@walkeros/web-destination-mixpanel 4.7.0 → 4.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use strict";var Destination=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,i={};((t,r)=>{for(var n in r)e(t,n,{get:r[n],enumerable:!0})})(i,{DestinationMixpanel:()=>m_,default:()=>k_,destinationMixpanel:()=>w_});var o=Object.defineProperty,s=(e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})};function a(e,t){if("collector"===e)return"collector";if(!t)throw new Error(`stepId(${e}) requires an id`);return`${e}.${t}`}s({},{stepId:()=>a});function c(e,t){const r=e.destinations[t];if(!r)throw new Error(`Destination not found: ${t}`);return r}s({},{getDestination:()=>c});s({},{Level:()=>l});var u,l=((u=l||{})[u.ERROR=0]="ERROR",u[u.WARN=1]="WARN",u[u.INFO=2]="INFO",u[u.DEBUG=3]="DEBUG",u);function h(e,t){const r=e.transformers[t];if(!r)throw new Error(`Transformer not found: ${t}`);return r}s({},{getTransformer:()=>h});function p(e,t){const r=e.sources[t];if(!r)throw new Error(`Source not found: ${t}`);return r}s({},{getSource:()=>p});function f(e,t){const r=e.stores[t];if(!r)throw new Error(`Store not found: ${t}`);return r}async function d(e,t){return await e.get(t)}function g(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function v(e){return void 0!==e}function y(e){return"object"==typeof e&&null!==e&&!g(e)&&"[object Object]"===Object.prototype.toString.call(e)}function _(e){return"string"==typeof e}function b(e,t="",r){const n=t.split(".");let i=e;for(let e=0;e<n.length;e++){const t=n[e];if("*"===t&&g(i)){const t=n.slice(e+1).join("."),o=[];for(const e of i){const n=b(e,t,r);o.push(n)}return o}if(i=y(i)||g(i)?i[t]:void 0,void 0===i)break}return v(i)?i:r}function w(e){return m(e)||_(e)||function(e){return"number"==typeof e&&!Number.isNaN(e)}(e)||!v(e)||g(e)&&e.every(w)||y(e)&&Object.values(e).every(w)}function k(e){return w(e)?e:void 0}function S(e,t,r){return async function(...n){try{return await e(...n)}catch(e){if(!t)return;return await t(e)}finally{await(null==r?void 0:r())}}}s({},{getStore:()=>f,getStoreValue:()=>d});var C,x,I=class e extends Error{constructor(t,r){super(t,r),this.name="FatalError",Object.setPrototypeOf(this,e.prototype)}};async function E(e,t={},r={}){var n,i;if(!v(e))return;const o=y(e)&&e.consent||r.consent||(null==(n=r.collector)?void 0:n.consent),s=null!=(i=r.event)?i:y(e)?e:{};return O(e,t,{...r,consent:o,event:s})}async function O(e,t={},r={}){var n,i;const o=r.consent||(null==(n=r.collector)?void 0:n.consent),s=null!=(i=r.event)?i:{};if(!r.collector)throw new Error("getMappingValue: context.collector is required");const a={event:s,mapping:t,collector:r.collector,logger:r.collector.logger,consent:o},c=g(t)?t:[t];for(const t of c){const n=await S(M,e=>{if(e instanceof I)throw e;r.collector&&r.collector.status.failed++,a.logger.error("mapping processing failed",{event:s,error:e})})(e,t,{...a,mapping:t});if(v(n))return n}}async function M(e,t,r){return(g(t)?t:[t]).reduce(async(t,n)=>{const i=await t;if(i)return i;const o=_(n)?{key:n}:n;if(!Object.keys(o).length)return;const{condition:s,consent:a,fn:c,key:u,loop:l,map:h,set:p,validate:f,value:d}=o,m={...r,mapping:n};if(s&&!await S(s,e=>{if(e instanceof I)throw e;return m.logger.error("mapping condition failed",{event:m.event,error:e}),!1})(e,m))return;if(a&&!function(e,t={},r={}){const n={...t,...r},i={};let o=!e||0===Object.keys(e).length;return Object.keys(n).forEach(t=>{n[t]&&(i[t]=!0,e&&e[t]&&(o=!0))}),!!o&&i}(a,m.consent))return d;let y=v(d)?d:e;if(l){const[t,r]=l,n="this"===t?[e]:await O(e,t,m);y=g(n)?(await Promise.all(n.map(e=>E(e,r,m)))).filter(v):void 0}else h?y=await Object.entries(h).reduce(async(t,[r,n])=>{const i=await t,o=await O(e,n,m);return v(o)&&(i[r]=o),i},Promise.resolve({})):p?y=await Promise.all(p.map(t=>M(e,t,m))):u?y=b(e,u,d):c&&(y=await S(c,e=>{if(e instanceof I)throw e;m.logger.error("mapping fn failed",{event:m.event,error:e})})(e,m));f&&!await S(f,e=>{if(e instanceof I)throw e;return m.logger.error("mapping validate failed",{event:m.event,error:e}),!1})(y,m)&&(y=void 0);const w=k(y);return v(w)?w:k(d)},Promise.resolve(void 0))}C="undefined"==typeof window?{crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:x={hostname:""},referrer:""},screen:{width:0,height:0},location:x,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}:window;var R={DEBUG:!1,LIB_VERSION:"2.80.0"},A="__mp_targeting",T="__mp_recorder",P="__MP_TARGETING_FILENAME__";function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function D(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,i)}function F(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(e){D(o,n,i,s,a,"next",e)}function a(e){D(o,n,i,s,a,"throw",e)}s(void 0)})}}function L(e,t,r){return(L=G()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&W(i,r.prototype),i}).apply(null,arguments)}function U(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 B(){return B=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},B.apply(this,arguments)}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function q(e,t){if("function"!=typeof t&&null!==t)throw new 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&&W(e,t)}function z(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function V(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 W(e,t){return(W=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function H(e){var t="function"==typeof Map?new Map:void 0;return H=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new 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,n)}function n(){return L(e,arguments,j(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),W(n,e)},H(e)}function G(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(G=function(){return!!e})()}function Y(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 N(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?N(e,t):void 0}}(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function J(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 new 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=s.trys,(i=i.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 Z(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var K,X=Object.defineProperty,Q=function(e,t,r){return function(e,t,r){return t in e?X(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":$(t))?t+"":t,r)},ee=Object.defineProperty,te=function(e,t,r){return function(e,t,r){return t in e?ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":$(t))?t+"":t,r)},re=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(re||{}),ne={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ie={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},oe={};function se(e){if(oe[e])return oe[e];var t=globalThis[e],r=t.prototype,n=e in ne?ne[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in ie?ie[e]:void 0,s=Boolean(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 oe[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;return document.body.removeChild(a),u?oe[e]=u:r}catch(e){return r}}var ae={};function ce(e,t,r){var n,i=e+"."+String(r);if(ae[i])return ae[i].call(t);var o=se(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(ae[i]=s,s.call(t)):t[r]}var ue={};function le(e,t,r){var n=e+"."+String(r);if(ue[n])return ue[n].bind(t);var i=se(e)[r];return"function"!=typeof i?t[r]:(ue[n]=i,i.bind(t))}var he={childNodes:function(e){return ce("Node",e,"childNodes")},parentNode:function(e){return ce("Node",e,"parentNode")},parentElement:function(e){return ce("Node",e,"parentElement")},textContent:function(e){return ce("Node",e,"textContent")},contains:function(e,t){return le("Node",e,"contains")(t)},getRootNode:function(e){return le("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?ce("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?ce("Element",e,"shadowRoot"):null},querySelector:function(e,t){return ce("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return ce("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return se("MutationObserver").constructor},patch:function(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(){}}}};function pe(e){return e.nodeType===e.ELEMENT_NODE}function fe(e){var t=e&&"host"in e&&"mode"in e&&he.host(e)||null;return Boolean(t&&"shadowRoot"in t&&he.shadowRoot(t)===e)}function de(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function ge(e){try{var t=e.rules||e.cssRules;if(!t)return null;var r=e.href;!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href);var n=Array.from(t,function(e){return me(e,r)}).join("");return(i=n).includes(" background-clip: text;")&&!i.includes(" -webkit-background-clip: text;")&&(i=i.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),i}catch(e){return null}var i}function me(e,t){if(function(e){return"styleSheet"in e}(e)){var r;try{r=ge(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?Ee(r,e.styleSheet.href):r}var n,i=e.cssText;return function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":")&&(n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,i=i.replace(n,"$1\\$2")),t?Ee(i,t):i}var ve=function(){function e(){te(this,"idNodeMap",new Map),te(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(e){var t;if(!e)return-1;var r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1},t.getNode=function(e){return this.idNodeMap.get(e)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(e){return this.nodeMetaMap.get(e)||null},t.removeNodeFromMap=function(e,t){var r=this;void 0===t&&(t=!1);var n=this.getId(e);this.idNodeMap.delete(n),t&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEach(function(e){return r.removeNodeFromMap(e,t)})},t.has=function(e){return this.idNodeMap.has(e)},t.hasNode=function(e){return this.nodeMetaMap.has(e)},t.add=function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)},t.replace=function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function ye(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",c=i&&_e(i);return(r[n.toLowerCase()]||c&&r[c])&&(a=s?s(a,t):"*".repeat(a.length)),a}function _e(e){return e.toLowerCase()}var be="__rrweb_original__";function we(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?_e(t):null}function ke(e,t){var r;try{r=new URL(e,null!=t?t:window.location.href)}catch(e){return null}var n,i=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(n=null==i?void 0:i[1])?n:null}var Se=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Ce=/^(?:[a-z+]+:)?\/\//i,xe=/^www\..*/i,Ie=/^(data:)([^,]*),(.*)/i;function Ee(e,t){return(e||"").replace(Se,function(e,r,n,i,o,s){var a,c=n||o||s,u=r||i||"";if(!c)return e;if(Ce.test(c)||xe.test(c))return"url("+u+c+u+")";if(Ie.test(c))return"url("+u+c+u+")";if("/"===c[0])return"url("+u+(((a=t).indexOf("//")>-1?a.split("/").slice(0,3).join("/"):a.split("/")[0]).split("?")[0]+c)+u+")";var l=t.split("/"),h=c.split("/");l.pop();for(var p,f=Y(h);!(p=f()).done;){var d=p.value;"."!==d&&(".."===d?l.pop():l.push(d))}return"url("+u+l.join("/")+u+")"})}function Oe(e,t){return void 0===t&&(t=!1),t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Me(e,t){return function(e,t,r){void 0===r&&(r=!1);var n=Array.from(t.childNodes),i=[],o=0;if(n.length>1&&e&&"string"==typeof e)for(var s=Oe(e,r),a=s.length/e.length,c=1;c<n.length;c++)if(n[c].textContent&&"string"==typeof n[c].textContent){for(var u=Oe(n[c].textContent,r),l=3;l<u.length&&(u[l].match(/[a-zA-Z0-9]/)||-1!==u.indexOf(u.substring(0,l),1));l++);for(;l<u.length;l++){var h=u.substring(0,l),p=s.split(h),f=-1;if(2===p.length)f=p[0].length;else if(p.length>2&&""===p[0]&&""!==n[c-1].textContent)f=s.indexOf(h,1);else if(1===p.length){if(h=h.substring(0,h.length-1),(p=s.split(h)).length<=1)return i.push(e),i;l=101}else l===u.length-1&&(f=s.indexOf(h));if(p.length>=2&&l>100){var d=n[c-1].textContent;if(d&&"string"==typeof d){var g=Oe(d).length;f=s.indexOf(h,g)}-1===f&&(f=p[0].length)}if(-1!==f){for(var m=Math.floor(f/a);m>0&&m<e.length;){if((o+=1)>50*n.length)return i.push(e),i;var v=Oe(e.substring(0,m),r);if(v.length===f){i.push(e.substring(0,m)),e=e.substring(m),s=s.substring(f);break}v.length<f?m+=Math.max(1,Math.floor((f-v.length)/a)):m-=Math.max(1,Math.floor((v.length-f)*a))}break}}}return i.push(e),i}(e,t).join("/* rr_split */")}var Re,Ae,Te=1,Pe=new RegExp("[^a-z0-9-_:]");function Ne(){return Te++}var De=/^[^ \t\n\r\u000c]+/,Fe=/^[, \t\n\r\u000c]+/;var Le=new WeakMap;function Ue(e,t){return t&&""!==t.trim()?je(e,t):t}function Be(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function je(e,t){var r=Le.get(e);if(r||(r=e.createElement("a"),Le.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function qe(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?Ue(e,n):"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(Fe),!(r>=t.length);){var o=n(De);if(","===o.slice(-1))o=Ue(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=Ue(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?Ee(n,je(e)):"object"===t&&"data"===r?Ue(e,n):n:Ue(e,n):n}function ze(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function Ve(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&Ve(he.parentNode(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&Ve(he.parentNode(e),t,r)}function We(e,t,r,n){var i;if(pe(e)){if(i=e,!he.childNodes(i).length)return!1}else{if(null===he.parentElement(e))return!1;i=he.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(Ve(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 $e(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.needsMask,a=t.inlineStylesheet,c=t.maskInputOptions,u=void 0===c?{}:c,l=t.maskTextFn,h=t.maskInputFn,p=t.dataURLOptions,f=void 0===p?{}:p,d=t.inlineImages,g=t.recordCanvas,m=t.keepIframeSrcFn,v=t.newlyAddedElement,y=void 0!==v&&v,_=t.cssCaptured,b=void 0!==_&&_,w=function(e,t){if(!t.hasNode(e))return;var r=t.getId(e);return 1===r?void 0:r}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:re.Document,childNodes:[],compatMode:e.compatMode}:{type:re.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:re.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w};case e.ELEMENT_NODE:return function(e,t){for(var r,n=t.doc,i=t.blockClass,o=t.blockSelector,s=t.inlineStylesheet,a=t.maskInputOptions,c=void 0===a?{}:a,u=t.maskInputFn,l=t.dataURLOptions,h=void 0===l?{}:l,p=t.inlineImages,f=t.recordCanvas,d=t.keepIframeSrcFn,g=t.newlyAddedElement,m=void 0!==g&&g,v=t.rootId,y=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),_=function(e){if(z(e,HTMLFormElement))return"form";var t=_e(e.tagName);return Pe.test(t)?"div":t}(e),b={},w=e.attributes.length,k=0;k<w;k++){var S=e.attributes[k];ze(_,S.name,S.value)||(b[S.name]=qe(n,_,_e(S.name),S.value))}if("link"===_&&s){var C=Array.from(n.styleSheets).find(function(t){return t.href===e.href}),x=null;C&&(x=ge(C)),x&&(delete b.rel,delete b.href,b._cssText=x)}if("style"===_&&e.sheet){var I=ge(e.sheet);I&&(e.childNodes.length>1&&(I=Me(I,e)),b._cssText=I)}if("input"===_||"textarea"===_||"select"===_){var E=e.value,O=e.checked;"radio"!==b.type&&"checkbox"!==b.type&&"submit"!==b.type&&"button"!==b.type&&E?b.value=ye({element:e,type:we(e),tagName:_,value:E,maskInputOptions:c,maskInputFn:u}):O&&(b.checked=O)}"option"===_&&(e.selected&&!c.select?b.selected=!0:delete b.selected);"dialog"===_&&e.open&&(b.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal");if("canvas"===_&&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=be in i?i[be]:i;if(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)||(b.rr_dataURL=e.toDataURL(h.type,h.quality));else if(!("__context"in e)){var M=e.toDataURL(h.type,h.quality),R=n.createElement("canvas");R.width=e.width,R.height=e.height,M!==R.toDataURL(h.type,h.quality)&&(b.rr_dataURL=M)}if("img"===_&&p){Re||(Re=n.createElement("canvas"),Ae=Re.getContext("2d"));var A=e,T=A.currentSrc||A.getAttribute("src")||"<unknown-src>",P=A.crossOrigin,N=function(){A.removeEventListener("load",N);try{Re.width=A.naturalWidth,Re.height=A.naturalHeight,Ae.drawImage(A,0,0),b.rr_dataURL=Re.toDataURL(h.type,h.quality)}catch(e){if("anonymous"!==A.crossOrigin)return A.crossOrigin="anonymous",void(A.complete&&0!==A.naturalWidth?N():A.addEventListener("load",N));console.warn("Cannot inline img src="+T+"! Error: "+e)}"anonymous"===A.crossOrigin&&(P?b.crossOrigin=P:A.removeAttribute("crossorigin"))};A.complete&&0!==A.naturalWidth?N():A.addEventListener("load",N)}if("audio"===_||"video"===_){var D=b;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}m||(e.scrollLeft&&(b.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(b.rr_scrollTop=e.scrollTop));if(y){var F=e.getBoundingClientRect(),L=F.width,U=F.height;b={class:b.class,rr_width:L+"px",rr_height:U+"px"}}"iframe"!==_||d(b.src)||(e.contentDocument||(b.rr_src=b.src),delete b.src);try{customElements.get(_)&&(r=!0)}catch(e){}return{type:re.Element,tagName:_,attributes:b,childNodes:[],isSVG:Be(e)||void 0,needBlock:y,rootId:v,isCustom:r}}(e,{doc:r,blockClass:i,blockSelector:o,inlineStylesheet:a,maskInputOptions:u,maskInputFn:h,dataURLOptions:f,inlineImages:d,recordCanvas:g,keepIframeSrcFn:m,newlyAddedElement:y,rootId:w});case e.TEXT_NODE:return function(e,t){var r=t.needsMask,n=t.maskTextFn,i=t.rootId,o=t.cssCaptured,s=he.parentNode(e),a=s&&s.tagName,c="",u="STYLE"===a||void 0,l="SCRIPT"===a||void 0;l?c="SCRIPT_PLACEHOLDER":o||(c=he.textContent(e),u&&c&&(c=Ee(c,je(t.doc))));!u&&!l&&c&&r&&(c=n?n(c,he.parentElement(e)):c.replace(/[\S]/g,"*"));return{type:re.Text,textContent:c||"",rootId:i}}(e,{doc:r,needsMask:s,maskTextFn:l,rootId:w,cssCaptured:b});case e.CDATA_SECTION_NODE:return{type:re.CDATA,textContent:"",rootId:w};case e.COMMENT_NODE:return{type:re.Comment,textContent:he.textContent(e)||"",rootId:w};default:return!1}}function He(e){return null==e?"":e.toLowerCase()}function Ge(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.maskTextClass,a=t.maskTextSelector,c=t.skipChild,u=void 0!==c&&c,l=t.inlineStylesheet,h=void 0===l||l,p=t.maskInputOptions,f=void 0===p?{}:p,d=t.maskTextFn,g=t.maskInputFn,m=t.slimDOMOptions,v=t.dataURLOptions,y=void 0===v?{}:v,_=t.inlineImages,b=void 0!==_&&_,w=t.recordCanvas,k=void 0!==w&&w,S=t.onSerialize,C=t.onIframeLoad,x=t.iframeLoadTimeout,I=void 0===x?5e3:x,E=t.onStylesheetLoad,O=t.stylesheetLoadTimeout,M=void 0===O?5e3:O,R=t.keepIframeSrcFn,A=void 0===R?function(){return!1}:R,T=t.newlyAddedElement,P=void 0!==T&&T,N=t.cssCaptured,D=void 0!==N&&N,F=t.needsMask,L=t.preserveWhiteSpace,U=void 0===L||L;F||(F=We(e,s,a,void 0===F));var B,j=$e(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:F,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,dataURLOptions:y,inlineImages:b,recordCanvas:k,keepIframeSrcFn:A,newlyAddedElement:P,cssCaptured:D});if(!j)return console.warn(e,"not serialized"),null;B=n.hasNode(e)?n.getId(e):function(e,t){if(t.comment&&e.type===re.Comment)return!0;if(e.type===re.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===ke(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(He(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===He(e.attributes.name)||"icon"===He(e.attributes.rel)||"apple-touch-icon"===He(e.attributes.rel)||"shortcut icon"===He(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&He(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(He(e.attributes.property).match(/^(og|twitter|fb):/)||He(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===He(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===He(e.attributes.name)||"googlebot"===He(e.attributes.name)||"bingbot"===He(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===He(e.attributes.name)||"generator"===He(e.attributes.name)||"framework"===He(e.attributes.name)||"publisher"===He(e.attributes.name)||"progid"===He(e.attributes.name)||He(e.attributes.property).match(/^article:/)||He(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===He(e.attributes.name)||"yandex-verification"===He(e.attributes.name)||"csrf-token"===He(e.attributes.name)||"p:domain_verify"===He(e.attributes.name)||"verify-v1"===He(e.attributes.name)||"verification"===He(e.attributes.name)||"shopify-checkout-api-token"===He(e.attributes.name)))return!0}}return!1}(j,m)||!U&&j.type===re.Text&&!j.textContent.replace(/^\s+|\s+$/gm,"").length?-2:Ne();var q=Object.assign(j,{id:B});if(n.add(e,q),-2===B)return null;S&&S(e);var z=!u;if(q.type===re.Element){z=z&&!q.needBlock,delete q.needBlock;var V=he.shadowRoot(e);V&&de(V)&&(q.isShadowHost=!0)}if((q.type===re.Document||q.type===re.Element)&&z){m.headWhitespace&&q.type===re.Element&&"head"===q.tagName&&(U=!1);var W={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:F,maskTextClass:s,maskTextSelector:a,skipChild:u,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:U,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:I,onStylesheetLoad:E,stylesheetLoadTimeout:M,keepIframeSrcFn:A,cssCaptured:!1};if(q.type===re.Element&&"textarea"===q.tagName&&void 0!==q.attributes.value);else{q.type===re.Element&&void 0!==q.attributes._cssText&&"string"==typeof q.attributes._cssText&&(W.cssCaptured=!0);for(var $,H=Y(Array.from(he.childNodes(e)));!($=H()).done;){var G=Ge($.value,W);G&&q.childNodes.push(G)}}var J=null;if(pe(e)&&(J=he.shadowRoot(e)))for(var Z,K=Y(Array.from(he.childNodes(J)));!(Z=K()).done;){var X=Ge(Z.value,W);X&&(de(J)&&(X.isShadow=!0),q.childNodes.push(X))}}var Q=he.parentNode(e);return Q&&fe(Q)&&de(Q)&&(q.isShadow=!0),q.type===re.Element&&"iframe"===q.tagName&&function(e,t,r){var n=e.contentWindow;if(n){var i,o=!1;try{i=n.document.readyState}catch(e){return}if("complete"===i){var s="about:blank";if(n.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}else{var a=setTimeout(function(){o||(t(),o=!0)},r);e.addEventListener("load",function(){clearTimeout(a),o=!0,t()})}}}(e,function(){var t=e.contentDocument;if(t&&C){var r=Ge(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:F,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:U,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:I,onStylesheetLoad:E,stylesheetLoadTimeout:M,keepIframeSrcFn:A});r&&C(e,r)}},I),q.type===re.Element&&"link"===q.tagName&&"string"==typeof q.attributes.rel&&("stylesheet"===q.attributes.rel||"preload"===q.attributes.rel&&"string"==typeof q.attributes.href&&"css"===ke(q.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=Ge(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:F,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:U,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:I,onStylesheetLoad:E,stylesheetLoadTimeout:M,keepIframeSrcFn:A});t&&E(e,t)}},M),q}function Ye(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Je(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return z(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}var Ze={exports:{}},Ke=String,Xe=function(){return{isColorSupported:!1,reset:Ke,bold:Ke,dim:Ke,italic:Ke,underline:Ke,inverse:Ke,hidden:Ke,strikethrough:Ke,black:Ke,red:Ke,green:Ke,yellow:Ke,blue:Ke,magenta:Ke,cyan:Ke,white:Ke,gray:Ke,bgBlack:Ke,bgRed:Ke,bgGreen:Ke,bgYellow:Ke,bgBlue:Ke,bgMagenta:Ke,bgCyan:Ke,bgWhite:Ke}};Ze.exports=Xe(),Ze.exports.createColors=Xe;var Qe=Ze.exports,et=Je(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),tt=Qe,rt=et,nt=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}q(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=this;if(!this.source)return"";var r=this.source;null==e&&(e=tt.isColorSupported),rt&&e&&(r=rt(r));var n,i,o=r.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=tt.createColors(!0),l=u.bold,h=u.gray,p=u.red;n=function(e){return l(p(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var u=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+u+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(H(Error)),it=nt;nt.default=nt;var ot={};ot.isClean=Symbol("isClean"),ot.my=Symbol("my");var st={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var at=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){var r;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 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){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return st[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=st[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){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);var 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 new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),ct=at;at.default=at;var ut=ct;function lt(e,t){new ut(t).stringify(e)}var ht=lt;lt.default=lt;var pt=ot.isClean,ft=ot.my,dt=it,gt=ct,mt=ht;function vt(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":$(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return vt(e,r)}):("object"===o&&null!==i&&(i=vt(i)),r[n]=i)}return r}var yt=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[pt]=!1,this[ft]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Y(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=vt(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 dt(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[pt]){this[pt]=!1;for(var e=this;e=e.parent;)e[pt]=!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);else 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 gt).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=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=Y(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"object"===(void 0===e?"undefined":$(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===(void 0===s?"undefined":$(s))&&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=mt),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)},U(e,[{key:"proxyOf",get:function(){return this}}]),e}(),_t=yt;yt.default=yt;var bt=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=B({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return q(t,e),U(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(_t),wt=bt;bt.default=bt;var kt=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},St=et.SourceMapConsumer,Ct=et.SourceMapGenerator,xt=et.existsSync,It=et.readFileSync,Et=et.dirname,Ot=et.join;var Mt=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=Et(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new St(this.text)),this.consumerCache},t.decodeInline=function(e){var t;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))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===(void 0===e?"undefined":$(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(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=Et(e),xt(e))return this.mapFile=e,It(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){if(z(t,St))return Ct.fromSourceMap(t).toString();if(z(t,Ct))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=Ot(Et(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=Mt;Mt.default=Mt;var At=et.SourceMapConsumer,Tt=et.SourceMapGenerator,Pt=et.fileURLToPath,Nt=et.pathToFileURL,Dt=et.isAbsolute,Ft=et.resolve,Lt=kt,Ut=et,Bt=it,jt=Rt,qt=Symbol("fromOffsetCache"),zt=Boolean(At&&Tt),Vt=Boolean(Ft&&Dt),Wt=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":$(e))&&!e.toString)throw new 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&&(!Vt||/^\w+:\/\//.test(t.from)||Dt(t.from)?this.file=t.from:this.file=Ft(t.from)),Vt&&zt){var r=new jt(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 "+Lt(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":$(t))){var a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(i=p?new Bt(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new Bt(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&&(Nt&&(i.input.url=Nt(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[qt])t=this[qt];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i<o;i++)t[i]=n,n+=r[i].length+1;this[qt]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,c=t.length-2;s<c;)if(e<t[a=s+(c-s>>1)])c=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Ft(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=Dt(a.source)?Nt(a.source):new URL(a.source,this.map.consumer().sourceRoot||Nt(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(!Pt)throw new Error("file: protocol is not available in this PostCSS build");c.file=Pt(o)}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=B({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},U(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),$t=Wt;Wt.default=Wt,Ut&&Ut.registerInput&&Ut.registerInput(Wt);var Ht=et.SourceMapConsumer,Gt=et.SourceMapGenerator,Yt=et.dirname,Jt=et.relative,Zt=et.resolve,Kt=et.sep,Xt=et.pathToFileURL,Qt=$t,er=Boolean(Ht&&Gt),tr=Boolean(Yt&&Zt&&Jt&&Kt),rr=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;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 t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=Y(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||Yt(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new Ht(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(),tr&&er&&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=Gt.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Gt({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=this;this.css="",this.map=new Gt({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,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(e.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):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=e.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,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.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)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?Yt(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=Yt(Zt(r,this.mapOpts.annotation)));var n=Jt(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 Qt(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 Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(Xt){var r=Xt(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new 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;"\\"===Kt&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),nr=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return q(t,e),t}(_t),ir=nr;nr.default=nr;var or,sr,ar,cr,ur=ot.isClean,lr=ot.my,hr=wt,pr=ir;function fr(e){return e.map(function(e){return e.nodes&&(e.nodes=fr(e.nodes)),delete e.source,e})}function dr(e){if(e[ur]=!1,e.proxyOf.nodes)for(var t,r=Y(e.proxyOf.nodes);!(t=r()).done;){dr(t.value)}}var gr=function(e){function t(){return e.apply(this,arguments)||this}q(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Y(t);!(n=i()).done;)for(var o,s=n.value,a=Y(this.normalize(s,this.last));!(o=a()).done;){var c=o.value;this.proxyOf.nodes.push(c)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=Y(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){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))}:"every"===t||"some"===t?function(r){return e[t](function(e){for(var t=arguments.length,n=new 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))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]: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=Y(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=Y(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=fr(or(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i,o=Y(e=e.slice(0));!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}else if("root"===e.type&&"document"!==this.type)for(var a,c=Y(e=e.nodes.slice(0));!(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 new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new hr(e)]}else if(e.selector)e=[new sr(e)];else if(e.name)e=[new ar(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new pr(e)]}return e.map(function(e){return e[lr]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[ur]&&dr(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=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Y(t=t.reverse());!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=Y(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=Y(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?z(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?z(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?z(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)}))},U(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}(_t);gr.registerParse=function(e){or=e},gr.registerRule=function(e){sr=e},gr.registerAtRule=function(e){ar=e},gr.registerRoot=function(e){cr=e};var mr=gr;gr.default=gr,gr.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,ar.prototype):"rule"===e.type?Object.setPrototypeOf(e,sr.prototype):"decl"===e.type?Object.setPrototypeOf(e,hr.prototype):"comment"===e.type?Object.setPrototypeOf(e,pr.prototype):"root"===e.type&&Object.setPrototypeOf(e,cr.prototype),e[lr]=!0,e.nodes&&e.nodes.forEach(function(e){gr.rebuild(e)})};var vr,yr,_r=function(e){function t(t){var r;return(r=e.call(this,B({type:"document"},t))||this).nodes||(r.nodes=[]),r}return q(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new vr(new yr,this,e).stringify()},t}(mr);_r.registerLazyResult=function(e){vr=e},_r.registerProcessor=function(e){yr=e};var br=_r;_r.default=_r;var wr={},kr=function(e){wr[e]||(wr[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))},Sr=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}(),Cr=Sr;Sr.default=Sr;var xr=Cr,Ir=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 xr(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},U(e,[{key:"content",get:function(){return this.css}}]),e}(),Er=Ir;Ir.default=Ir;var Or="'".charCodeAt(0),Mr='"'.charCodeAt(0),Rr="\\".charCodeAt(0),Ar="/".charCodeAt(0),Tr="\n".charCodeAt(0),Pr=" ".charCodeAt(0),Nr="\f".charCodeAt(0),Dr="\t".charCodeAt(0),Fr="\r".charCodeAt(0),Lr="[".charCodeAt(0),Ur="]".charCodeAt(0),Br="(".charCodeAt(0),jr=")".charCodeAt(0),qr="{".charCodeAt(0),zr="}".charCodeAt(0),Vr=";".charCodeAt(0),Wr="*".charCodeAt(0),$r=":".charCodeAt(0),Hr="@".charCodeAt(0),Gr=/[\t\n\f\r "#'()/;[\\\]{}]/g,Yr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Jr=/.[\r\n"'(/\\]/,Zr=/[\da-f]/i,Kr=mr,Xr=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}q(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(Kr),Qr=Xr;Xr.default=Xr,Kr.registerAtRule(Xr);var en,tn,rn=mr,nn=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}q(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=Y(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 en(new tn,this,e).stringify()},t}(rn);nn.registerLazyResult=function(e){en=e},nn.registerProcessor=function(e){tn=e};var on=nn;nn.default=nn,rn.registerRoot(nn);var sn={comma:function(e){return sn.split(e,[","],!0)},space:function(e){return sn.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=Y(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:c?p===u&&(c=!1):'"'===p||"'"===p?(c=!0,u=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}},an=sn;sn.default=sn;var cn=mr,un=an,ln=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return q(t,e),U(t,[{key:"selectors",get:function(){return un.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}(cn),hn=ln;ln.default=ln,cn.registerRule(ln);var pn=wt,fn=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,p=e.css.valueOf(),f=t.ignoreErrors,d=p.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=d},nextToken:function(e){if(v.length)return v.pop();if(!(g>=d)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case Tr:case Pr:case Dr:case Fr:case Nr:n=g;do{n+=1,r=p.charCodeAt(n)}while(r===Pr||r===Tr||r===Dr||r===Fr||r===Nr);h=["space",p.slice(g,n)],g=n-1;break;case Lr:case Ur:case qr:case zr:case $r:case Vr:case jr:var _=String.fromCharCode(r);h=[_,_,g];break;case Br:if(u=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===u&&l!==Or&&l!==Mr&&l!==Pr&&l!==Tr&&l!==Dr&&l!==Nr&&l!==Fr){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1))){if(f||t){n=g;break}y("bracket")}for(c=n;p.charCodeAt(c-1)===Rr;)c-=1,a=!a}while(a);h=["brackets",p.slice(g,n+1),g,n],g=n}else n=p.indexOf(")",g+1),o=p.slice(g,n+1),-1===n||Jr.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case Or:case Mr:i=r===Or?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1))){if(f||t){n=g+1;break}y("string")}for(c=n;p.charCodeAt(c-1)===Rr;)c-=1,a=!a}while(a);h=["string",p.slice(g,n+1),g,n],g=n;break;case Hr:Gr.lastIndex=g+1,Gr.test(p),n=0===Gr.lastIndex?p.length-1:Gr.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case Rr:for(n=g,s=!0;p.charCodeAt(n+1)===Rr;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==Ar&&r!==Pr&&r!==Tr&&r!==Dr&&r!==Fr&&r!==Nr&&(n+=1,Zr.test(p.charAt(n)))){for(;Zr.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===Pr&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:r===Ar&&p.charCodeAt(g+1)===Wr?(0===(n=p.indexOf("*/",g+2)+1)&&(f||t?n=p.length:y("comment")),h=["comment",p.slice(g,n+1),g,n],g=n):(Yr.lastIndex=g+1,Yr.test(p),n=0===Yr.lastIndex?p.length-1:Yr.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h),g=n)}return g++,h}},position:function(){return g}}},dn=ir,gn=Qr,mn=on,vn=hn,yn={empty:!0,space:!0};var _n=function(){function e(e){this.input=e,this.root=new mn,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 gn;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(r=a[n=a.length-1];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=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=Y(e.entries());!(i=s()).done;){var a=i.value,c=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new dn;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=fn(this.input)},t.decl=function(e,t){var r=new pn;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[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)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(n=e[c])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",p=c;p>0;p--){var f=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==f)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.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 vn;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;c;){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);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,h=0;h<c;h+=1)"space"!==(o=(i=r[h])[0])||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",yn[a]||yn[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var p=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new vn;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}(),bn=mr,wn=_n,kn=$t;function Sn(e,t){var r=new kn(e,t),n=new wn(r);try{n.parse()}catch(e){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===e.name&&t&&t.from&&(/\.scss$/i.test(t.from)?e.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?e.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(e.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),e}return n.root}var Cn=Sn;Sn.default=Sn,bn.registerParse(Sn);var xn=ot.isClean,In=ot.my,En=rr,On=ht,Mn=mr,Rn=br,An=kr,Tn=Er,Pn=Cn,Nn=on,Dn={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Fn={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},Ln={Once:!0,postcssPlugin:!0,prepare:!0};function Un(e){return"object"===(void 0===e?"undefined":$(e))&&"function"==typeof e.then}function Bn(e){var t=!1,r=Dn[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 jn(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:Bn(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function qn(e){return e[xn]=!1,e.nodes&&e.nodes.forEach(function(e){return qn(e)}),e}var zn={},Vn=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===r?"undefined":$(r))||null===r||"root"!==r.type&&"document"!==r.type)if(z(r,e)||z(r,Tn))i=qn(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=Pn;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[In]&&Mn.rebuild(i)}else i=qn(r);this.result=new Tn(t,i,n),this.helpers=B({},zn,{postcss:zn,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===(void 0===e?"undefined":$(e))&&e.prepare?B({},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 new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){var n=r.postcssPlugin,i=r.postcssVersion,o=this.result.processor.version,s=i.split("."),a=o.split(".");(s[0]!==a[0]||parseInt(s[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", but "+n+" uses "+i+". Perhaps this is the source of the error below.")}}else 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=Y(this.plugins);!(t=n()).done;){var i=t.value;if("object"===(void 0===i?"undefined":$(i)))for(var o in i){if(!Fn[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Ln[o])if("object"===$(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 F(function(){var t,r,n,i,o,s,a,c,u,l,h,p;return J(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],!Un(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[xn])return[3,14];o[xn]=!0,s=[jn(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!Un(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,s;return J(this,function(a){switch(a.label){case 0:t=p.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},h=Y(e.listeners.OnceExit),f.label=15;case 15:return(p=h()).done?[3,18]:[5,Z(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===(void 0===e?"undefined":$(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return Un(r[0])?Promise.all(r):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=On;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new En(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=Y(this.plugins);!(e=t()).done;){var r=e.value;if(Un(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[xn];)n[xn]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=Y(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"production"!==process.env.NODE_ENV&&("from"in this.opts||An("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Y(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(Un(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){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[xn])return a[xn]=!0,void e.push(jn(a));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)return void(r.nodes&&r.nodes.length&&(r[xn]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[xn]=!0;for(var r,n=Y(Bn(e));!(r=n()).done;){var i=r.value;if(0===i)e.nodes&&e.each(function(e){e[xn]||t.walkSync(e)});else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},U(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}();Vn.registerPostcss=function(e){zn=e};var Wn=Vn;Vn.default=Vn,Nn.registerLazyResult(Vn),Rn.registerLazyResult(Vn);var $n=rr,Hn=ht,Gn=kr,Yn=Cn,Jn=Er,Zn=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=Hn;this.result=new Jn(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new $n(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.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"production"!==process.env.NODE_ENV&&("from"in this._opts||Gn("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},U(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(){if(this._root)return this._root;var e,t=Yn;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Kn=Zn;Zn.default=Zn;var Xn=Kn,Qn=Wn,ei=br,ti=on,ri=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=Y(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===(void 0===i?"undefined":$(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===(void 0===i?"undefined":$(i))&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else{if("object"!==(void 0===i?"undefined":$(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new Qn(this,e,t):new Xn(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),ni=ri;ri.default=ri,ti.registerProcessor(ri),ei.registerProcessor(ri);var ii=wt,oi=Rt,si=ir,ai=Qr,ci=$t,ui=on,li=hn;function hi(e,t){if(Array.isArray(e))return e.map(function(e){return hi(e)});var r=e.inputs,n=V(e,["inputs"]);if(r){t=[];for(var i,o=Y(r);!(i=o()).done;){var s=B({},i.value,{__proto__:ci.prototype});s.map&&(s.map=B({},s.map,{__proto__:oi.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return hi(e,t)})),n.source){var a=n.source,c=a.inputId,u=V(a,["inputId"]);n.source=u,null!=c&&(n.source.input=t[c])}if("root"===n.type)return new ui(n);if("decl"===n.type)return new ii(n);if("rule"===n.type)return new li(n);if("comment"===n.type)return new si(n);if("atrule"===n.type)return new ai(n);throw new Error("Unknown node type: "+e.type)}var pi=hi;hi.default=hi;var fi=it,di=wt,gi=Wn,mi=mr,vi=ni,yi=ht,_i=pi,bi=br,wi=Cr,ki=ir,Si=Qr,Ci=Er,xi=$t,Ii=Cn,Ei=an,Oi=hn,Mi=on,Ri=_t;function Ai(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new vi(t)}Ai.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new 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"),process.env.LANG&&process.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 vi).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return Ai([i(r)]).process(e,t)},i},Ai.stringify=yi,Ai.parse=Ii,Ai.fromJSON=_i,Ai.list=Ei,Ai.comment=function(e){return new ki(e)},Ai.atRule=function(e){return new Si(e)},Ai.decl=function(e){return new di(e)},Ai.rule=function(e){return new Oi(e)},Ai.root=function(e){return new Mi(e)},Ai.document=function(e){return new bi(e)},Ai.CssSyntaxError=fi,Ai.Declaration=di,Ai.Container=mi,Ai.Processor=vi,Ai.Document=bi,Ai.Comment=ki,Ai.Warning=wi,Ai.AtRule=Si,Ai.Result=Ci,Ai.Input=xi,Ai.Rule=Oi,Ai.Root=Mi,Ai.Node=Ri,gi.registerPostcss(Ai);var Ti=Ai;Ai.default=Ai;var Pi=Ye(Ti);Pi.stringify,Pi.fromJSON,Pi.plugin,Pi.parse,Pi.list,Pi.document,Pi.comment,Pi.atRule,Pi.rule,Pi.decl,Pi.root,Pi.CssSyntaxError,Pi.Declaration,Pi.Container,Pi.Processor,Pi.Document,Pi.Comment,Pi.Warning,Pi.AtRule,Pi.Result,Pi.Input,Pi.Rule,Pi.Root,Pi.Node;var Ni=Object.defineProperty,Di=function(e,t,r){return function(e,t,r){return t in e?Ni(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":$(t))?t+"":t,r)};function Fi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Li(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return z(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}var Ui={exports:{}},Bi=String,ji=function(){return{isColorSupported:!1,reset:Bi,bold:Bi,dim:Bi,italic:Bi,underline:Bi,inverse:Bi,hidden:Bi,strikethrough:Bi,black:Bi,red:Bi,green:Bi,yellow:Bi,blue:Bi,magenta:Bi,cyan:Bi,white:Bi,gray:Bi,bgBlack:Bi,bgRed:Bi,bgGreen:Bi,bgYellow:Bi,bgBlue:Bi,bgMagenta:Bi,bgCyan:Bi,bgWhite:Bi}};Ui.exports=ji(),Ui.exports.createColors=ji;var qi=Ui.exports,zi=Li(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Vi=qi,Wi=zi,$i=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}q(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=this;if(!this.source)return"";var r=this.source;null==e&&(e=Vi.isColorSupported),Wi&&e&&(r=Wi(r));var n,i,o=r.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=Vi.createColors(!0),l=u.bold,h=u.gray,p=u.red;n=function(e){return l(p(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var u=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+u+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(H(Error)),Hi=$i;$i.default=$i;var Gi={};Gi.isClean=Symbol("isClean"),Gi.my=Symbol("my");var Yi={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var Ji=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){var r;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 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){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return Yi[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=Yi[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){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);var 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 new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),Zi=Ji;Ji.default=Ji;var Ki=Zi;function Xi(e,t){new Ki(t).stringify(e)}var Qi=Xi;Xi.default=Xi;var eo=Gi.isClean,to=Gi.my,ro=Hi,no=Zi,io=Qi;function oo(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":$(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return oo(e,r)}):("object"===o&&null!==i&&(i=oo(i)),r[n]=i)}return r}var so=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[eo]=!1,this[to]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Y(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=oo(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 ro(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[eo]){this[eo]=!1;for(var e=this;e=e.parent;)e[eo]=!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);else 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 no).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=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=Y(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"object"===(void 0===e?"undefined":$(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===(void 0===s?"undefined":$(s))&&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=io),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)},U(e,[{key:"proxyOf",get:function(){return this}}]),e}(),ao=so;so.default=so;var co=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=B({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return q(t,e),U(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(ao),uo=co;co.default=co;var lo=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},ho=zi.SourceMapConsumer,po=zi.SourceMapGenerator,fo=zi.existsSync,go=zi.readFileSync,mo=zi.dirname,vo=zi.join;var yo=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=mo(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new ho(this.text)),this.consumerCache},t.decodeInline=function(e){var t;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))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===(void 0===e?"undefined":$(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(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=mo(e),fo(e))return this.mapFile=e,go(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){if(z(t,ho))return po.fromSourceMap(t).toString();if(z(t,po))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=vo(mo(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}(),_o=yo;yo.default=yo;var bo=zi.SourceMapConsumer,wo=zi.SourceMapGenerator,ko=zi.fileURLToPath,So=zi.pathToFileURL,Co=zi.isAbsolute,xo=zi.resolve,Io=lo,Eo=zi,Oo=Hi,Mo=_o,Ro=Symbol("fromOffsetCache"),Ao=Boolean(bo&&wo),To=Boolean(xo&&Co),Po=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":$(e))&&!e.toString)throw new 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&&(!To||/^\w+:\/\//.test(t.from)||Co(t.from)?this.file=t.from:this.file=xo(t.from)),To&&Ao){var r=new Mo(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 "+Io(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":$(t))){var a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(i=p?new Oo(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new Oo(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&&(So&&(i.input.url=So(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[Ro])t=this[Ro];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i<o;i++)t[i]=n,n+=r[i].length+1;this[Ro]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,c=t.length-2;s<c;)if(e<t[a=s+(c-s>>1)])c=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:xo(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=Co(a.source)?So(a.source):new URL(a.source,this.map.consumer().sourceRoot||So(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(!ko)throw new Error("file: protocol is not available in this PostCSS build");c.file=ko(o)}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=B({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},U(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),No=Po;Po.default=Po,Eo&&Eo.registerInput&&Eo.registerInput(Po);var Do=zi.SourceMapConsumer,Fo=zi.SourceMapGenerator,Lo=zi.dirname,Uo=zi.relative,Bo=zi.resolve,jo=zi.sep,qo=zi.pathToFileURL,zo=No,Vo=Boolean(Do&&Fo),Wo=Boolean(Lo&&Bo&&Uo&&jo),$o=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;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 t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=Y(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||Lo(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new Do(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(),Wo&&Vo&&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=Fo.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Fo({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=this;this.css="",this.map=new Fo({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,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(e.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):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=e.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,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.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)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?Lo(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=Lo(Bo(r,this.mapOpts.annotation)));var n=Uo(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 zo(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 Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(qo){var r=qo(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new 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;"\\"===jo&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Ho=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return q(t,e),t}(ao),Go=Ho;Ho.default=Ho;var Yo,Jo,Zo,Ko,Xo=Gi.isClean,Qo=Gi.my,es=uo,ts=Go;function rs(e){return e.map(function(e){return e.nodes&&(e.nodes=rs(e.nodes)),delete e.source,e})}function ns(e){if(e[Xo]=!1,e.proxyOf.nodes)for(var t,r=Y(e.proxyOf.nodes);!(t=r()).done;){ns(t.value)}}var is=function(e){function t(){return e.apply(this,arguments)||this}q(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Y(t);!(n=i()).done;)for(var o,s=n.value,a=Y(this.normalize(s,this.last));!(o=a()).done;){var c=o.value;this.proxyOf.nodes.push(c)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=Y(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){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))}:"every"===t||"some"===t?function(r){return e[t](function(e){for(var t=arguments.length,n=new 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))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]: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=Y(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=Y(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=rs(Yo(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i,o=Y(e=e.slice(0));!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}else if("root"===e.type&&"document"!==this.type)for(var a,c=Y(e=e.nodes.slice(0));!(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 new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new es(e)]}else if(e.selector)e=[new Jo(e)];else if(e.name)e=[new Zo(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new ts(e)]}return e.map(function(e){return e[Qo]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[Xo]&&ns(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=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Y(t=t.reverse());!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=Y(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=Y(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?z(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?z(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?z(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)}))},U(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}(ao);is.registerParse=function(e){Yo=e},is.registerRule=function(e){Jo=e},is.registerAtRule=function(e){Zo=e},is.registerRoot=function(e){Ko=e};var os=is;is.default=is,is.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Zo.prototype):"rule"===e.type?Object.setPrototypeOf(e,Jo.prototype):"decl"===e.type?Object.setPrototypeOf(e,es.prototype):"comment"===e.type?Object.setPrototypeOf(e,ts.prototype):"root"===e.type&&Object.setPrototypeOf(e,Ko.prototype),e[Qo]=!0,e.nodes&&e.nodes.forEach(function(e){is.rebuild(e)})};var ss,as,cs=function(e){function t(t){var r;return(r=e.call(this,B({type:"document"},t))||this).nodes||(r.nodes=[]),r}return q(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new ss(new as,this,e).stringify()},t}(os);cs.registerLazyResult=function(e){ss=e},cs.registerProcessor=function(e){as=e};var us=cs;cs.default=cs;var ls={},hs=function(e){ls[e]||(ls[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))},ps=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}(),fs=ps;ps.default=ps;var ds=fs,gs=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 ds(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},U(e,[{key:"content",get:function(){return this.css}}]),e}(),ms=gs;gs.default=gs;var vs="'".charCodeAt(0),ys='"'.charCodeAt(0),_s="\\".charCodeAt(0),bs="/".charCodeAt(0),ws="\n".charCodeAt(0),ks=" ".charCodeAt(0),Ss="\f".charCodeAt(0),Cs="\t".charCodeAt(0),xs="\r".charCodeAt(0),Is="[".charCodeAt(0),Es="]".charCodeAt(0),Os="(".charCodeAt(0),Ms=")".charCodeAt(0),Rs="{".charCodeAt(0),As="}".charCodeAt(0),Ts=";".charCodeAt(0),Ps="*".charCodeAt(0),Ns=":".charCodeAt(0),Ds="@".charCodeAt(0),Fs=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ls=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Us=/.[\r\n"'(/\\]/,Bs=/[\da-f]/i,js=os,qs=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}q(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(js),zs=qs;qs.default=qs,js.registerAtRule(qs);var Vs,Ws,$s=os,Hs=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}q(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=Y(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 Vs(new Ws,this,e).stringify()},t}($s);Hs.registerLazyResult=function(e){Vs=e},Hs.registerProcessor=function(e){Ws=e};var Gs=Hs;Hs.default=Hs,$s.registerRoot(Hs);var Ys={comma:function(e){return Ys.split(e,[","],!0)},space:function(e){return Ys.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=Y(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:c?p===u&&(c=!1):'"'===p||"'"===p?(c=!0,u=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}},Js=Ys;Ys.default=Ys;var Zs=os,Ks=Js,Xs=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return q(t,e),U(t,[{key:"selectors",get:function(){return Ks.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}(Zs),Qs=Xs;Xs.default=Xs,Zs.registerRule(Xs);var ea=uo,ta=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,p=e.css.valueOf(),f=t.ignoreErrors,d=p.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=d},nextToken:function(e){if(v.length)return v.pop();if(!(g>=d)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case ws:case ks:case Cs:case xs:case Ss:n=g;do{n+=1,r=p.charCodeAt(n)}while(r===ks||r===ws||r===Cs||r===xs||r===Ss);h=["space",p.slice(g,n)],g=n-1;break;case Is:case Es:case Rs:case As:case Ns:case Ts:case Ms:var _=String.fromCharCode(r);h=[_,_,g];break;case Os:if(u=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===u&&l!==vs&&l!==ys&&l!==ks&&l!==ws&&l!==Cs&&l!==Ss&&l!==xs){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1))){if(f||t){n=g;break}y("bracket")}for(c=n;p.charCodeAt(c-1)===_s;)c-=1,a=!a}while(a);h=["brackets",p.slice(g,n+1),g,n],g=n}else n=p.indexOf(")",g+1),o=p.slice(g,n+1),-1===n||Us.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case vs:case ys:i=r===vs?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1))){if(f||t){n=g+1;break}y("string")}for(c=n;p.charCodeAt(c-1)===_s;)c-=1,a=!a}while(a);h=["string",p.slice(g,n+1),g,n],g=n;break;case Ds:Fs.lastIndex=g+1,Fs.test(p),n=0===Fs.lastIndex?p.length-1:Fs.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case _s:for(n=g,s=!0;p.charCodeAt(n+1)===_s;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==bs&&r!==ks&&r!==ws&&r!==Cs&&r!==xs&&r!==Ss&&(n+=1,Bs.test(p.charAt(n)))){for(;Bs.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===ks&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:r===bs&&p.charCodeAt(g+1)===Ps?(0===(n=p.indexOf("*/",g+2)+1)&&(f||t?n=p.length:y("comment")),h=["comment",p.slice(g,n+1),g,n],g=n):(Ls.lastIndex=g+1,Ls.test(p),n=0===Ls.lastIndex?p.length-1:Ls.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h),g=n)}return g++,h}},position:function(){return g}}},ra=Go,na=zs,ia=Gs,oa=Qs,sa={empty:!0,space:!0};var aa=function(){function e(e){this.input=e,this.root=new ia,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 na;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(r=a[n=a.length-1];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=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=Y(e.entries());!(i=s()).done;){var a=i.value,c=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new ra;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=ta(this.input)},t.decl=function(e,t){var r=new ea;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[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)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(n=e[c])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",p=c;p>0;p--){var f=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==f)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.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 oa;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;c;){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);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,h=0;h<c;h+=1)"space"!==(o=(i=r[h])[0])||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",sa[a]||sa[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var p=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new oa;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}(),ca=os,ua=aa,la=No;function ha(e,t){var r=new la(e,t),n=new ua(r);try{n.parse()}catch(e){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===e.name&&t&&t.from&&(/\.scss$/i.test(t.from)?e.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?e.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(e.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),e}return n.root}var pa=ha;ha.default=ha,ca.registerParse(ha);var fa=Gi.isClean,da=Gi.my,ga=$o,ma=Qi,va=os,ya=us,_a=hs,ba=ms,wa=pa,ka=Gs,Sa={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Ca={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},xa={Once:!0,postcssPlugin:!0,prepare:!0};function Ia(e){return"object"===(void 0===e?"undefined":$(e))&&"function"==typeof e.then}function Ea(e){var t=!1,r=Sa[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 Oa(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:Ea(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function Ma(e){return e[fa]=!1,e.nodes&&e.nodes.forEach(function(e){return Ma(e)}),e}var Ra={},Aa=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===r?"undefined":$(r))||null===r||"root"!==r.type&&"document"!==r.type)if(z(r,e)||z(r,ba))i=Ma(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=wa;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[da]&&va.rebuild(i)}else i=Ma(r);this.result=new ba(t,i,n),this.helpers=B({},Ra,{postcss:Ra,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===(void 0===e?"undefined":$(e))&&e.prepare?B({},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 new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){var n=r.postcssPlugin,i=r.postcssVersion,o=this.result.processor.version,s=i.split("."),a=o.split(".");(s[0]!==a[0]||parseInt(s[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", but "+n+" uses "+i+". Perhaps this is the source of the error below.")}}else 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=Y(this.plugins);!(t=n()).done;){var i=t.value;if("object"===(void 0===i?"undefined":$(i)))for(var o in i){if(!Ca[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!xa[o])if("object"===$(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 F(function(){var t,r,n,i,o,s,a,c,u,l,h,p;return J(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],!Ia(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[fa])return[3,14];o[fa]=!0,s=[Oa(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!Ia(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,s;return J(this,function(a){switch(a.label){case 0:t=p.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},h=Y(e.listeners.OnceExit),f.label=15;case 15:return(p=h()).done?[3,18]:[5,Z(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===(void 0===e?"undefined":$(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return Ia(r[0])?Promise.all(r):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=ma;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new ga(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=Y(this.plugins);!(e=t()).done;){var r=e.value;if(Ia(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[fa];)n[fa]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=Y(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"production"!==process.env.NODE_ENV&&("from"in this.opts||_a("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Y(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(Ia(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){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[fa])return a[fa]=!0,void e.push(Oa(a));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)return void(r.nodes&&r.nodes.length&&(r[fa]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[fa]=!0;for(var r,n=Y(Ea(e));!(r=n()).done;){var i=r.value;if(0===i)e.nodes&&e.each(function(e){e[fa]||t.walkSync(e)});else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},U(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}();Aa.registerPostcss=function(e){Ra=e};var Ta=Aa;Aa.default=Aa,ka.registerLazyResult(Aa),ya.registerLazyResult(Aa);var Pa=$o,Na=Qi,Da=hs,Fa=pa,La=ms,Ua=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=Na;this.result=new La(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new Pa(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.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"production"!==process.env.NODE_ENV&&("from"in this._opts||Da("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},U(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(){if(this._root)return this._root;var e,t=Fa;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Ba=Ua;Ua.default=Ua;var ja=Ba,qa=Ta,za=us,Va=Gs,Wa=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=Y(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===(void 0===i?"undefined":$(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===(void 0===i?"undefined":$(i))&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else{if("object"!==(void 0===i?"undefined":$(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new qa(this,e,t):new ja(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),$a=Wa;Wa.default=Wa,Va.registerProcessor(Wa),za.registerProcessor(Wa);var Ha=uo,Ga=_o,Ya=Go,Ja=zs,Za=No,Ka=Gs,Xa=Qs;function Qa(e,t){if(Array.isArray(e))return e.map(function(e){return Qa(e)});var r=e.inputs,n=V(e,["inputs"]);if(r){t=[];for(var i,o=Y(r);!(i=o()).done;){var s=B({},i.value,{__proto__:Za.prototype});s.map&&(s.map=B({},s.map,{__proto__:Ga.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return Qa(e,t)})),n.source){var a=n.source,c=a.inputId,u=V(a,["inputId"]);n.source=u,null!=c&&(n.source.input=t[c])}if("root"===n.type)return new Ka(n);if("decl"===n.type)return new Ha(n);if("rule"===n.type)return new Xa(n);if("comment"===n.type)return new Ya(n);if("atrule"===n.type)return new Ja(n);throw new Error("Unknown node type: "+e.type)}var ec=Qa;Qa.default=Qa;var tc=Hi,rc=uo,nc=Ta,ic=os,oc=$a,sc=Qi,ac=ec,cc=us,uc=fs,lc=Go,hc=zs,pc=ms,fc=No,dc=pa,gc=Js,mc=Qs,vc=Gs,yc=ao;function _c(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new oc(t)}_c.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new 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"),process.env.LANG&&process.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 oc).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return _c([i(r)]).process(e,t)},i},_c.stringify=sc,_c.parse=dc,_c.fromJSON=ac,_c.list=gc,_c.comment=function(e){return new lc(e)},_c.atRule=function(e){return new hc(e)},_c.decl=function(e){return new rc(e)},_c.rule=function(e){return new mc(e)},_c.root=function(e){return new vc(e)},_c.document=function(e){return new cc(e)},_c.CssSyntaxError=tc,_c.Declaration=rc,_c.Container=ic,_c.Processor=oc,_c.Document=cc,_c.Comment=lc,_c.Warning=uc,_c.AtRule=hc,_c.Result=pc,_c.Input=fc,_c.Rule=mc,_c.Root=vc,_c.Node=yc,nc.registerPostcss(_c);var bc=_c;_c.default=_c;var wc=Fi(bc);wc.stringify,wc.fromJSON,wc.plugin,wc.parse,wc.list,wc.document,wc.comment,wc.atRule,wc.rule,wc.decl,wc.root,wc.CssSyntaxError,wc.Declaration,wc.Container,wc.Processor,wc.Document,wc.Comment,wc.Warning,wc.AtRule,wc.Result,wc.Input,wc.Rule,wc.Root,wc.Node;var kc=function(){function e(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];Di(this,"parentElement",null),Di(this,"parentNode",null),Di(this,"ownerDocument"),Di(this,"firstChild",null),Di(this,"lastChild",null),Di(this,"previousSibling",null),Di(this,"nextSibling",null),Di(this,"ELEMENT_NODE",1),Di(this,"TEXT_NODE",3),Di(this,"nodeType"),Di(this,"nodeName"),Di(this,"RRNodeType")}var t=e.prototype;return t.contains=function(t){if(!z(t,e))return!1;if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1},t.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},t.insertBefore=function(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},t.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},t.toString=function(){return"RRNode"},U(e,[{key:"childNodes",get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}}]),e}(),Sc={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Cc={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},xc={};function Ic(e){if(xc[e])return xc[e];var t=globalThis[e],r=t.prototype,n=e in Sc?Sc[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in Cc?Cc[e]:void 0,s=Boolean(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 xc[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;return document.body.removeChild(a),u?xc[e]=u:r}catch(e){return r}}var Ec={};function Oc(e,t,r){var n,i=e+"."+String(r);if(Ec[i])return Ec[i].call(t);var o=Ic(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(Ec[i]=s,s.call(t)):t[r]}var Mc={};function Rc(e,t,r){var n=e+"."+String(r);if(Mc[n])return Mc[n].bind(t);var i=Ic(e)[r];return"function"!=typeof i?t[r]:(Mc[n]=i,i.bind(t))}function Ac(){return Ic("MutationObserver").constructor}function Tc(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}var Pc={childNodes:function(e){return Oc("Node",e,"childNodes")},parentNode:function(e){return Oc("Node",e,"parentNode")},parentElement:function(e){return Oc("Node",e,"parentElement")},textContent:function(e){return Oc("Node",e,"textContent")},contains:function(e,t){return Rc("Node",e,"contains")(t)},getRootNode:function(e){return Rc("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?Oc("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?Oc("Element",e,"shadowRoot"):null},querySelector:function(e,t){return Oc("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return Oc("Element",e,"querySelectorAll")(t)},mutationObserver:Ac,patch:Tc};function Nc(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 Dc="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.",Fc={map:{},getId:function(){return console.error(Dc),-1},getNode:function(){return console.error(Dc),null},removeNodeFromMap:function(){console.error(Dc)},has:function(){return console.error(Dc),!1},reset:function(){console.error(Dc)}};function Lc(e,t,r){void 0===r&&(r={});var n=null,i=0;return function(){for(var o=arguments.length,s=new 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>t?(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 Uc(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 Uc(e,t,o||{},!0)}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Fc=new Proxy(Fc,{get:function(e,t,r){return"map"===t&&console.error(Dc),Reflect.get(e,t,r)}}));var Bc=Date.now;function jc(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=Pc.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=Pc.parentElement(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function qc(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function zc(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Vc(e){return e?e.nodeType===e.ELEMENT_NODE?e:Pc.parentElement(e):null}function Wc(e,t,r,n){if(!e)return!1;var i=Vc(e);if(!i)return!1;try{if("string"==typeof t){if(i.classList.contains(t))return!0;if(n&&null!==i.closest("."+t))return!0}else if(Ve(i,t,n))return!0}catch(e){}if(r){if(i.matches(r))return!0;if(n&&null!==i.closest(r))return!0}return!1}function $c(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||-2===t.getId(e)}function Hc(e,t){if(fe(e))return!1;var r=t.getId(e);if(!t.has(r))return!0;var n=Pc.parentNode(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||Hc(n,t))}function Gc(e){return Boolean(e.changedTouches)}function Yc(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function Jc(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Zc(e){return!!e&&(z(e,kc)&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(Pc.shadowRoot(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(Bc=function(){return(new Date).getTime()});var Kc=function(){function e(){Q(this,"id",1),Q(this,"styleIDMap",new WeakMap),Q(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){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);var r},t.getStyle=function(e){return this.idStyleMap.get(e)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},t.remove=function(e){var t=this.styleIDMap.get(e);return void 0!==t&&(this.styleIDMap.delete(e),this.idStyleMap.delete(t),!0)},e}();function Xc(e){var t,r=null;return"getRootNode"in e&&(null==(t=Pc.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&Pc.host(Pc.getRootNode(e))&&(r=Pc.host(Pc.getRootNode(e))),r}function Qc(e){var t=e.ownerDocument;if(!t)return!1;var r=function(e){for(var t,r=e;t=Xc(r);)r=t;return r}(e);return Pc.contains(t,r)}function eu(e){var t=e.ownerDocument;return!!t&&(Pc.contains(t,e)||Qc(e))}var tu=function(e){return e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e}(tu||{}),ru=function(e){return e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e}(ru||{}),nu=function(e){return e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e}(nu||{}),iu=function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e}(iu||{}),ou=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}(ou||{}),su=function(e){return e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e}(su||{}),au=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(au||{});function cu(e){return"__ln"in e}var uu,lu=function(){function e(){Q(this,"length",0),Q(this,"head",null),Q(this,"tail",null)}var t=e.prototype;return t.get=function(e){if(e>=this.length)throw new 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&&cu(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&&cu(e.nextSibling)&&e.nextSibling.__ln.previous){var n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++},t.removeNode=function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},e}(),hu=function(e,t){return e+"@"+t},pu=function(){function e(){var e=this;Q(this,"frozen",!1),Q(this,"locked",!1),Q(this,"texts",[]),Q(this,"attributes",[]),Q(this,"attributeMap",new WeakMap),Q(this,"removes",[]),Q(this,"mapRemoves",[]),Q(this,"movedMap",{}),Q(this,"addedSet",new Set),Q(this,"movedSet",new Set),Q(this,"droppedSet",new Set),Q(this,"removesSubTreeCache",new Set),Q(this,"mutationCb"),Q(this,"blockClass"),Q(this,"blockSelector"),Q(this,"maskTextClass"),Q(this,"maskTextSelector"),Q(this,"inlineStylesheet"),Q(this,"maskInputOptions"),Q(this,"maskTextFn"),Q(this,"maskInputFn"),Q(this,"keepIframeSrcFn"),Q(this,"recordCanvas"),Q(this,"inlineImages"),Q(this,"slimDOMOptions"),Q(this,"dataURLOptions"),Q(this,"doc"),Q(this,"mirror"),Q(this,"iframeManager"),Q(this,"stylesheetManager"),Q(this,"shadowDomManager"),Q(this,"canvasManager"),Q(this,"processedNodeManager"),Q(this,"unattachedDoc"),Q(this,"processMutations",function(t){t.forEach(e.processMutation),e.emit()}),Q(this,"emit",function(){if(!e.frozen&&!e.locked){for(var t=[],r=new Set,n=new lu,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=Pc.parentNode(o);if(s&&eu(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=fe(s)?e.mirror.getId(Xc(o)):e.mirror.getId(s),l=i(o);if(-1===u||-1===l)return n.addNode(o);var h=Ge(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){Yc(t,e.mirror)&&e.iframeManager.addIframe(t),Jc(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),Zc(o)&&e.shadowDomManager.addShadowRoot(Pc.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});h&&(t.push({parentId:u,nextId:l,node:h}),r.add(h.id))}};e.mapRemoves.length;){var s=e.mapRemoves.shift();e.cleanupRemovedNode(s),e.mirror.removeNodeFromMap(s)}for(var a,c=Y(e.movedSet);!(a=c()).done;){var u=a.value;du(e.removesSubTreeCache,u,e.mirror)&&!e.movedSet.has(Pc.parentNode(u))||o(u)}for(var l,h=Y(e.addedSet);!(l=h()).done;){var p=l.value;gu(e.droppedSet,p)||du(e.removesSubTreeCache,p,e.mirror)?gu(e.movedSet,p)?o(p):e.droppedSet.add(p):o(p)}for(var f=null;n.length;){var d=null;if(f){var g=e.mirror.getId(Pc.parentNode(f.value)),m=i(f.value);-1!==g&&-1!==m&&(d=f)}if(!d)for(var v=n.tail;v;){var y=v;if(v=v.previous,y){var _=e.mirror.getId(Pc.parentNode(y.value));if(-1===i(y.value))continue;if(-1!==_){d=y;break}var b=y.value,w=Pc.parentNode(b);if(w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var k=Pc.host(w);if(-1!==e.mirror.getId(k)){d=y;break}}}}if(!d){for(;n.head;)n.removeNode(n.head.value);break}f=d.previous,n.removeNode(d.value),o(d.value)}var S={texts:e.texts.map(function(t){var r=t.node,n=Pc.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))}}),Q(this,"genTextAreaValueMutation",function(t){var r=e.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(r),e.attributeMap.set(t,r));var n=Array.from(Pc.childNodes(t),function(e){return Pc.textContent(e)||""}).join("");r.attributes.value=ye({element:t,maskInputOptions:e.maskInputOptions,tagName:t.tagName,type:we(t),value:n,maskInputFn:e.maskInputFn})}),Q(this,"processMutation",function(t){if(!$c(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case"characterData":var r=Pc.textContent(t.target);Wc(t.target,e.blockClass,e.blockSelector,!1)||r===t.oldValue||e.texts.push({value:We(t.target,e.maskTextClass,e.maskTextSelector,!0)&&r?e.maskTextFn?e.maskTextFn(r,Vc(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=we(n);o=ye({element:n,maskInputOptions:e.maskInputOptions,tagName:n.tagName,type:s,value:o,maskInputFn:e.maskInputFn})}if(Wc(t.target,e.blockClass,e.blockSelector,!1)||o===t.oldValue)return;var a=e.attributeMap.get(t.target);if("IFRAME"===n.tagName&&"src"===i&&!e.keepIframeSrcFn(o)){if(n.contentDocument)return;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"),!ze(n.tagName,i))if(a.attributes[i]=qe(e.doc,_e(n.tagName),_e(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=Y(Array.from(n.style));!(u=l()).done;){var h=u.value,p=n.style.getPropertyValue(h),f=n.style.getPropertyPriority(h);p!==c.style.getPropertyValue(h)||f!==c.style.getPropertyPriority(h)?a.styleDiff[h]=""===f?p:[p,f]:a._unchangedStyles[h]=[p,f]}for(var d,g=Y(Array.from(c.style));!(d=g()).done;){var m=d.value;""===n.style.getPropertyValue(m)&&(a.styleDiff[m]=!1)}}else"open"===i&&"DIALOG"===n.tagName&&(n.matches("dialog:modal")?a.attributes.rr_open_mode="modal":a.attributes.rr_open_mode="non-modal");break;case"childList":if(Wc(t.target,e.blockClass,e.blockSelector,!0))return;if("TEXTAREA"===t.target.tagName)return void e.genTextAreaValueMutation(t.target);t.addedNodes.forEach(function(r){return e.genAdds(r,t.target)}),t.removedNodes.forEach(function(r){var n=e.mirror.getId(r),i=fe(t.target)?e.mirror.getId(Pc.host(t.target)):e.mirror.getId(t.target);Wc(t.target,e.blockClass,e.blockSelector,!1)||$c(r,e.mirror,e.slimDOMOptions)||!function(e,t){return-1!==t.getId(e)}(r,e.mirror)||(e.addedSet.has(r)?(fu(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||Hc(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[hu(n,i)]?fu(e.movedSet,r):(e.removes.push({parentId:i,id:n,isShadow:!(!fe(t.target)||!de(t.target))||void 0}),function(e,t){var r=[e];for(;r.length;){var n=r.pop();t.has(n)||(t.add(n),Pc.childNodes(n).forEach(function(e){return r.push(e)}))}}(r,e.removesSubTreeCache))),e.mapRemoves.push(r))})}}),Q(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($c(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[hu(e.mirror.getId(t),n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);Wc(t,e.blockClass,e.blockSelector,!1)||(Pc.childNodes(t).forEach(function(t){return e.genAdds(t)}),Zc(t)&&Pc.childNodes(Pc.shadowRoot(t)).forEach(function(r){e.processedNodeManager.add(r,e),e.genAdds(r,t)}))}}),Q(this,"cleanupRemovedNode",function(t){if("IFRAME"===t.nodeName)try{e.iframeManager.removeIframe(t)}catch(e){}else try{e.stylesheetManager.cleanupStylesheetsForRemovedNode(t)}catch(e){}t.childNodes.forEach(function(t){e.cleanupRemovedNode(t)})})}var t=e.prototype;return t.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(r){t[r]=e[r]})},t.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.isFrozen=function(){return this.frozen},t.lock=function(){this.locked=!0,this.canvasManager.lock()},t.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},t.getDoc=function(){return this.doc},e}();function fu(e,t){e.delete(t),Pc.childNodes(t).forEach(function(t){return fu(e,t)})}function du(e,t,r){return 0!==e.size&&function(e,t){var r=Pc.parentNode(t);return!!r&&e.has(r)}(e,t)}function gu(e,t){return 0!==e.size&&mu(e,t)}function mu(e,t){var r=Pc.parentNode(t);return!!r&&(!!e.has(r)||mu(e,r))}var vu=function(e){if(!uu)return e;return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];try{return e.apply(void 0,[].concat(r))}catch(e){if(uu&&!0===uu(e))return;throw e}}},yu=[];function _u(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 bu(e,t){var r=new pu;yu.push(r),r.init(e);var n=new(Ac())(vu(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function wu(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(nu).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]}).forEach(function(e){var s=_e(e),a=function(e){return function(r){var s=_u(r);if(!Wc(s,i,o,!0)){var a=null,c=e;if("pointerType"in r){switch(r.pointerType){case"mouse":a=iu.Mouse;break;case"touch":a=iu.Touch;break;case"pen":a=iu.Pen}a===iu.Touch?nu[e]===nu.MouseDown?c="TouchStart":nu[e]===nu.MouseUp&&(c="TouchEnd"):iu.Pen}else Gc(r)&&(a=iu.Touch);null!==a?(u=a,(c.startsWith("Touch")&&a===iu.Touch||c.startsWith("Mouse")&&a===iu.Mouse)&&(a=null)):nu[e]===nu.Click&&(a=u,u=null);var l=Gc(r)?r.changedTouches[0]:r;if(l){var h=n.getId(s),p=l.clientX,f=l.clientY;vu(t)(B({type:nu[c],id:h,x:p,y:f},null!==a&&{pointerType:a}))}}}}(e);if(window.PointerEvent)switch(nu[e]){case nu.MouseDown:case nu.MouseUp:s=s.replace("mouse","pointer");break;case nu.TouchStart:case nu.TouchEnd:return}c.push(Nc(s,a,r))}),vu(function(){c.forEach(function(e){return e()})})}function ku(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;return Nc("scroll",vu(Lc(vu(function(e){var s=_u(e);if(s&&!Wc(s,i,o,!0)){var a=n.getId(s);if(s===r&&r.defaultView){var c=jc(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 Su=["INPUT","TEXTAREA","SELECT"],Cu=new WeakMap;function xu(e){return function(e,t){if(Mu("CSSGroupingRule")&&z(e.parentRule,CSSGroupingRule)||Mu("CSSMediaRule")&&z(e.parentRule,CSSMediaRule)||Mu("CSSSupportsRule")&&z(e.parentRule,CSSSupportsRule)||Mu("CSSConditionRule")&&z(e.parentRule,CSSConditionRule)){var r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){var n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function Iu(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function Eu(e,t){var r,n,i,o=e.mirror,s=e.stylesheetManager,a=null;a="#document"===t.nodeName?o.getId(t):o.getId(Pc.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}}),vu(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})})):function(){}}function Ou(e,t){void 0===t&&(t={});var r,n=e.doc.defaultView;if(!n)return function(){};!function(e,t){var r=e.mutationCb,n=e.mousemoveCb,i=e.mouseInteractionCb,o=e.scrollCb,s=e.viewportResizeCb,a=e.inputCb,c=e.mediaInteractionCb,u=e.styleSheetRuleCb,l=e.styleDeclarationCb,h=e.canvasMutationCb,p=e.fontCb,f=e.selectionCb,d=e.customElementCb;e.mutationCb=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var o;t.mutation&&(o=t).mutation.apply(o,[].concat(n)),r.apply(void 0,[].concat(n))},e.mousemoveCb=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var o;t.mousemove&&(o=t).mousemove.apply(o,[].concat(r)),n.apply(void 0,[].concat(r))},e.mouseInteractionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o;t.mouseInteraction&&(o=t).mouseInteraction.apply(o,[].concat(r)),i.apply(void 0,[].concat(r))},e.scrollCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.scroll&&(i=t).scroll.apply(i,[].concat(r)),o.apply(void 0,[].concat(r))},e.viewportResizeCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.viewportResize&&(i=t).viewportResize.apply(i,[].concat(r)),s.apply(void 0,[].concat(r))},e.inputCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.input&&(i=t).input.apply(i,[].concat(r)),a.apply(void 0,[].concat(r))},e.mediaInteractionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.mediaInteaction&&(i=t).mediaInteaction.apply(i,[].concat(r)),c.apply(void 0,[].concat(r))},e.styleSheetRuleCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.styleSheetRule&&(i=t).styleSheetRule.apply(i,[].concat(r)),u.apply(void 0,[].concat(r))},e.styleDeclarationCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.styleDeclaration&&(i=t).styleDeclaration.apply(i,[].concat(r)),l.apply(void 0,[].concat(r))},e.canvasMutationCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.canvasMutation&&(i=t).canvasMutation.apply(i,[].concat(r)),h.apply(void 0,[].concat(r))},e.fontCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.font&&(i=t).font.apply(i,[].concat(r)),p.apply(void 0,[].concat(r))},e.selectionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.selection&&(i=t).selection.apply(i,[].concat(r)),f.apply(void 0,[].concat(r))},e.customElementCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.customElement&&(i=t).customElement.apply(i,[].concat(r)),d.apply(void 0,[].concat(r))}}(e,t),e.recordDOM&&(r=bu(e,e.doc));var i,o,s,a,c,u=function(e){var t=e.mousemoveCb,r=e.sampling,n=e.doc,i=e.mirror;if(!1===r.mousemove)return function(){};var o,s="number"==typeof r.mousemove?r.mousemove:50,a="number"==typeof r.mousemoveCallback?r.mousemoveCallback:500,c=[],u=Lc(vu(function(e){var r=Date.now()-o;t(c.map(function(e){return e.timeOffset-=r,e}),e),c=[],o=null}),a),l=vu(Lc(vu(function(e){var t=_u(e),r=Gc(e)?e.changedTouches[0]:e,n=r.clientX,s=r.clientY;o||(o=Bc()),c.push({x:n,y:s,id:i.getId(t),timeOffset:Bc()-o}),u("undefined"!=typeof DragEvent&&z(e,DragEvent)?ru.Drag:z(e,MouseEvent)?ru.MouseMove:ru.TouchMove)}),s,{trailing:!1})),h=[Nc("mousemove",l,n),Nc("touchmove",l,n),Nc("drag",l,n)];return vu(function(){h.forEach(function(e){return e()})})}(e),l=wu(e),h=ku(e),p=(i={win:n},o=e.viewportResizeCb,s=i.win,a=-1,c=-1,Nc("resize",vu(Lc(vu(function(){var e=qc(),t=zc();a===e&&c===t||(o({width:Number(t),height:Number(e)}),a=e,c=t)}),200)),s)),f=function(e){var t=e.inputCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.ignoreClass,a=e.ignoreSelector,c=e.maskInputOptions,u=e.maskInputFn,l=e.sampling,h=e.userTriggeredOnInput;function p(e){var t=_u(e),n=e.isTrusted,l=t&&t.tagName;if(t&&"OPTION"===l&&(t=Pc.parentElement(t)),t&&l&&!(Su.indexOf(l)<0)&&!Wc(t,i,o,!0)&&!(t.classList.contains(s)||a&&t.matches(a))){var p=t.value,d=!1,g=we(t)||"";"radio"===g||"checkbox"===g?d=t.checked:(c[l.toLowerCase()]||c[g])&&(p=ye({element:t,maskInputOptions:c,tagName:l,type:g,value:p,maskInputFn:u})),f(t,h?{text:p,isChecked:d,userTriggered:n}:{text:p,isChecked:d});var m=t.name;"radio"===g&&m&&d&&r.querySelectorAll('input[type="radio"][name="'+m+'"]').forEach(function(e){if(e!==t){var r=e.value;f(e,h?{text:r,isChecked:!d,userTriggered:!1}:{text:r,isChecked:!d})}})}}function f(e,r){var i=Cu.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){Cu.set(e,r);var o=n.getId(e);vu(t)(B({},r,{id:o}))}}var d=("last"===l.input?["change"]:["input","change"]).map(function(e){return Nc(e,vu(p),r)}),g=r.defaultView;if(!g)return function(){d.forEach(function(e){return e()})};var m,v=g.Object.getOwnPropertyDescriptor(g.HTMLInputElement.prototype,"value"),y=[[g.HTMLInputElement.prototype,"value"],[g.HTMLInputElement.prototype,"checked"],[g.HTMLSelectElement.prototype,"value"],[g.HTMLTextAreaElement.prototype,"value"],[g.HTMLSelectElement.prototype,"selectedIndex"],[g.HTMLOptionElement.prototype,"selected"]];return v&&v.set&&(m=d).push.apply(m,[].concat(y.map(function(e){return Uc(e[0],e[1],{set:function(){vu(p)({target:this,isTrusted:!1})}},!1,g)}))),vu(function(){d.forEach(function(e){return e()})})}(e),d=function(e){var t=e.mediaInteractionCb,r=e.blockClass,n=e.blockSelector,i=e.mirror,o=e.sampling,s=e.doc,a=vu(function(e){return Lc(vu(function(o){var s=_u(o);if(s&&!Wc(s,r,n,!0)){var a=s.currentTime,c=s.volume,u=s.muted,l=s.playbackRate,h=s.loop;t({type:e,id:i.getId(s),currentTime:a,volume:c,muted:u,playbackRate:l,loop:h})}}),o.media||500)}),c=[Nc("play",a(su.Play),s),Nc("pause",a(su.Pause),s),Nc("seeked",a(su.Seeked),s),Nc("volumechange",a(su.VolumeChange),s),Nc("ratechange",a(su.RateChange),s)];return vu(function(){c.forEach(function(e){return e()})})}(e),g=function(){},m=function(){},v=function(){},y=function(){};e.recordDOM&&(g=function(e,t){var r=e.styleSheetRuleCb,n=e.mirror,i=e.stylesheetManager,o=t.win;if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return function(){};var s=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:vu(function(e,t,o){var s=o[0],a=o[1],c=Iu(t,n,i.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,adds:[{rule:s,index:a}]}),e.apply(t,o)})}),o.CSSStyleSheet.prototype.addRule=function(e,t,r){void 0===r&&(r=this.cssRules.length);var n=e+" { "+t+" }";return o.CSSStyleSheet.prototype.insertRule.apply(this,[n,r])};var a,c,u=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(u,{apply:vu(function(e,t,o){var s=o[0],a=Iu(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,removes:[{index:s}]}),e.apply(t,o)})}),o.CSSStyleSheet.prototype.removeRule=function(e){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},o.CSSStyleSheet.prototype.replace&&(a=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:vu(function(e,t,o){var s=o[0],a=Iu(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,replace:s}),e.apply(t,o)})})),o.CSSStyleSheet.prototype.replaceSync&&(c=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:vu(function(e,t,o){var s=o[0],a=Iu(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,replaceSync:s}),e.apply(t,o)})}));var l={};Ru("CSSGroupingRule")?l.CSSGroupingRule=o.CSSGroupingRule:(Ru("CSSMediaRule")&&(l.CSSMediaRule=o.CSSMediaRule),Ru("CSSConditionRule")&&(l.CSSConditionRule=o.CSSConditionRule),Ru("CSSSupportsRule")&&(l.CSSSupportsRule=o.CSSSupportsRule));var h={};return Object.entries(l).forEach(function(e){var t=e[0],o=e[1];h[t]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(h[t].insertRule,{apply:vu(function(e,t,o){var s=o[0],a=o[1],c=Iu(t.parentStyleSheet,n,i.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,adds:[{rule:s,index:[].concat(xu(t),[a||0])}]}),e.apply(t,o)})}),o.prototype.deleteRule=new Proxy(h[t].deleteRule,{apply:vu(function(e,t,o){var s=o[0],a=Iu(t.parentStyleSheet,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,removes:[{index:[].concat(xu(t),[s])}]}),e.apply(t,o)})})}),vu(function(){o.CSSStyleSheet.prototype.insertRule=s,o.CSSStyleSheet.prototype.deleteRule=u,a&&(o.CSSStyleSheet.prototype.replace=a),c&&(o.CSSStyleSheet.prototype.replaceSync=c),Object.entries(l).forEach(function(e){var t=e[0],r=e[1];r.prototype.insertRule=h[t].insertRule,r.prototype.deleteRule=h[t].deleteRule})})}(e,{win:n}),m=Eu(e,e.doc),v=function(e,t){var r=e.styleDeclarationCb,n=e.mirror,i=e.ignoreCSSAttributes,o=e.stylesheetManager,s=t.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:vu(function(e,t,s){var c,u=s[0],l=s[1],h=s[2];if(i.has(u))return a.apply(t,[u,l,h]);var p=Iu(null==(c=t.parentRule)?void 0:c.parentStyleSheet,n,o.styleMirror),f=p.id,d=p.styleId;return(f&&-1!==f||d&&-1!==d)&&r({id:f,styleId:d,set:{property:u,value:l,priority:h},index:xu(t.parentRule)}),e.apply(t,s)})});var c=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:vu(function(e,t,s){var a,u=s[0];if(i.has(u))return c.apply(t,[u]);var l=Iu(null==(a=t.parentRule)?void 0:a.parentStyleSheet,n,o.styleMirror),h=l.id,p=l.styleId;return(h&&-1!==h||p&&-1!==p)&&r({id:h,styleId:p,remove:{property:u},index:xu(t.parentRule)}),e.apply(t,s)})}),vu(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=c})}(e,{win:n}),e.collectFonts&&(y=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=Tc(r.fonts,"add",function(e){return function(r){return setTimeout(vu(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),vu(function(){i.forEach(function(e){return e()})})}(e)));for(var _,b=function(e){var t=e.doc,r=e.mirror,n=e.blockClass,i=e.blockSelector,o=e.selectionCb,s=!0,a=vu(function(){var e=t.getSelection();if(!(!e||s&&(null==e?void 0:e.isCollapsed))){s=e.isCollapsed||!1;for(var a=[],c=e.rangeCount||0,u=0;u<c;u++){var l=e.getRangeAt(u),h=l.startContainer,p=l.startOffset,f=l.endContainer,d=l.endOffset;Wc(h,n,i,!0)||Wc(f,n,i,!0)||a.push({start:r.getId(h),startOffset:p,end:r.getId(f),endOffset:d})}o({ranges:a})}});return a(),Nc("selectionchange",a)}(e),w=function(e){var t=e.doc,r=e.customElementCb,n=t.defaultView;return n&&n.customElements?Tc(n.customElements,"define",function(e){return function(t,n,i){try{r({define:{name:t}})}catch(e){console.warn("Custom element callback failed for "+t)}return e.apply(this,[t,n,i])}}):function(){}}(e),k=[],S=Y(e.plugins);!(_=S()).done;){var C=_.value;k.push(C.observer(C.callback,n,C.options))}return vu(function(){yu.forEach(function(e){return e.reset()}),null==r||r.disconnect(),u(),l(),h(),p(),f(),d(),g(),m(),v(),y(),b(),w(),k.forEach(function(e){return e()})})}function Mu(e){return void 0!==window[e]}function Ru(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var Au,Tu=function(){function e(e){Q(this,"iframeIdToRemoteIdMap",new WeakMap),Q(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}var t=e.prototype;return t.getId=function(e,t,r,n){var i=r||this.getIdToRemoteIdMap(e),o=n||this.getRemoteIdToIdMap(e),s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),o.set(s,t)),s},t.getIds=function(e,t){var r=this,n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getId(e,t,n,i)})},t.getRemoteId=function(e,t,r){var n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;var i=n.get(t);return i||-1},t.getRemoteIds=function(e,t){var r=this,n=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getRemoteId(e,t,n)})},t.reset=function(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);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}(),Pu=function(){function e(e){Q(this,"iframes",new WeakMap),Q(this,"crossOriginIframeMap",new WeakMap),Q(this,"crossOriginIframeMirror",new Tu(Ne)),Q(this,"crossOriginIframeStyleMirror"),Q(this,"crossOriginIframeRootIdMap",new WeakMap),Q(this,"iframeContentDocumentMap",new WeakMap),Q(this,"iframeObserverCleanupMap",new WeakMap),Q(this,"mirror"),Q(this,"mutationCb"),Q(this,"wrappedEmit"),Q(this,"loadListener"),Q(this,"stylesheetManager"),Q(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Tu(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.getIframeContentDocument=function(e){return this.iframeContentDocumentMap.get(e)},t.setObserverCleanup=function(e,t){this.iframeObserverCleanupMap.set(e,t)},t.getObserverCleanup=function(e){return this.iframeObserverCleanupMap.get(e)},t.removeIframe=function(e){var t=this.iframeContentDocumentMap.get(e);t&&(this.stylesheetManager.cleanupStylesheetsForRemovedNode(t),this.mirror.removeNodeFromMap(t,!0)),this.iframes.delete(e),this.iframeContentDocumentMap.delete(e);var r=this.iframeObserverCleanupMap.get(e);if(r){try{r()}catch(e){}this.iframeObserverCleanupMap.delete(e)}},t.addLoadListener=function(e){this.loadListener=e},t.attachIframe=function(e,t){var r,n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),e.contentDocument&&this.iframeContentDocumentMap.set(e,e.contentDocument),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(n=this.loadListener)||n.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},t.handleMessage=function(e){var t=e;if("rrweb"===t.data.type&&t.origin===t.data.origin&&e.source){var r=this.crossOriginIframeMap.get(e.source);if(r){var n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}}},t.transformCrossOriginEvent=function(e,t){var r,n=this;switch(t.type){case tu.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:tu.IncrementalSnapshot,data:{source:ru.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case tu.Meta:case tu.Load:case tu.DomContentLoaded:return!1;case tu.Plugin:return t;case tu.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case tu.IncrementalSnapshot:switch(t.data.source){case ru.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 ru.Drag:case ru.TouchMove:case ru.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case ru.ViewportResize:return!1;case ru.MediaInteraction:case ru.MouseInteraction:case ru.Scroll:case ru.CanvasMutation:case ru.Input:return this.replaceIds(t.data,e,["id"]),t;case ru.StyleSheetRule:case ru.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case ru.Font:return t;case ru.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,["start","end"])}),t;case ru.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=Y(n);!(i=o()).done;){var s=i.value;(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(r,t[s]):t[s]=e.getId(r,t[s]))}return t},t.replaceIds=function(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)},t.replaceStyleIds=function(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)},t.replaceIdOnNode=function(e,t){var r=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(e){r.replaceIdOnNode(e,t)})},t.patchRootIdOnNode=function(e,t){var r=this;e.type===au.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})},e}(),Nu=function(){function e(e){Q(this,"shadowDoms",new WeakSet),Q(this,"mutationCb"),Q(this,"scrollCb"),Q(this,"bypassOptions"),Q(this,"mirror"),Q(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(de(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=bu(B({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(ku(B({},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(Pc.host(e))),r.restoreHandlers.push(Eu({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(Tc(e.prototype,"attachShadow",function(e){return function(n){var i=e.call(this,n),o=Pc.shadowRoot(this);return o&&eu(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}(),Du="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fu="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(Au=0;Au<64;Au++)Fu[Du.charCodeAt(Au)]=Au;var Lu=new Map;var Uu=function(e,t,r){if(e&&(qu(e,t)||"object"===(void 0===e?"undefined":$(e)))){var n=function(e,t){var r=Lu.get(e);return r||(r=new Map,Lu.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name),i=n.indexOf(e);return-1===i&&(i=n.length,n.push(e)),i}};function Bu(e,t,r){if(z(e,Array))return e.map(function(e){return Bu(e,t,r)});if(null===e)return e;if(z(e,Float32Array)||z(e,Float64Array)||z(e,Int32Array)||z(e,Uint32Array)||z(e,Uint8Array)||z(e,Uint16Array)||z(e,Int16Array)||z(e,Int8Array)||z(e,Uint8ClampedArray))return{rr_type:e.constructor.name,args:[Object.values(e)]};if(z(e,ArrayBuffer))return{rr_type:e.constructor.name,base64:function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=Du[r[t]>>2],i+=Du[(3&r[t])<<4|r[t+1]>>4],i+=Du[(15&r[t+1])<<2|r[t+2]>>6],i+=Du[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}(e)};if(z(e,DataView))return{rr_type:e.constructor.name,args:[Bu(e.buffer,t,r),e.byteOffset,e.byteLength]};if(z(e,HTMLImageElement))return{rr_type:e.constructor.name,src:e.src};if(z(e,HTMLCanvasElement)){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}return z(e,ImageData)?{rr_type:e.constructor.name,args:[Bu(e.data,t,r),e.width,e.height]}:qu(e,t)||"object"===(void 0===e?"undefined":$(e))?{rr_type:e.constructor.name,index:Uu(e,t,r)}:e}var ju=function(e,t,r){return e.map(function(e){return Bu(e,t,r)})},qu=function(e,t){var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(function(e){return"function"==typeof t[e]});return Boolean(r.find(function(r){return z(e,t[r])}))};function zu(e,t,r,n){var i=[];try{var o=Tc(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];if(!Wc(this,t,r,!0)){var c=function(e){return"experimental-webgl"===e?"webgl":e}(i);if("__context"in this||(this.__context=c),n&&["webgl","webgl2"].includes(c))if(s[0]&&"object"===$(s[0])){var u=s[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[].concat([i],s))}});i.push(o)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){i.forEach(function(e){return e()})}}function Vu(e,t,r,n,i,o){for(var s,a=function(){var a=s.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))return"continue";try{if("function"!=typeof e[a])return"continue";var u=Tc(e,a,function(e){return function(){for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];var l=e.apply(this,c);if(Uu(l,o,this),"tagName"in this.canvas&&!Wc(this.canvas,n,i,!0)){var h=ju(c,o,this),p={type:t,property:a,args:h};r(this.canvas,p)}return l}});c.push(u)}catch(n){var l=Uc(e,a,{set:function(e){r(this.canvas,{type:t,property:a,args:[e],setter:!0})}});c.push(l)}},c=[],u=Y(Object.getOwnPropertyNames(e));!(s=u()).done;)a();return c}var Wu,$u="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Hu="undefined"!=typeof window&&window.Blob&&new Blob([(Wu=$u,Uint8Array.from(atob(Wu),function(e){return e.charCodeAt(0)}))],{type:"text/javascript;charset=utf-8"});function Gu(e){var t;try{if(!(t=Hu&&(window.URL||window.webkitURL).createObjectURL(Hu)))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,"+$u,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var Yu,Ju,Zu,Ku=function(){function e(e){var t=this;Q(this,"pendingCanvasMutations",new Map),Q(this,"rafStamps",{latestId:0,invokeId:null}),Q(this,"mirror"),Q(this,"mutationCb"),Q(this,"resetObservers"),Q(this,"frozen",!1),Q(this,"locked",!1),Q(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=this,s=zu(t,r,n,!0),a=new Map,c=new Gu;c.onmessage=function(e){var t=e.data.id;if(a.set(t,!1),"base64"in e.data){var r=e.data,n=r.base64,i=r.type,s=r.width,c=r.height;o.mutationCb({id:t,type:ou["2D"],commands:[{property:"clearRect",args:[0,0,s,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0]}]})}};var u,l=1e3/e,h=0,p=function(e){if(h&&e-h<l)u=requestAnimationFrame(p);else{h=e;var s,f=o;(s=[],t.document.querySelectorAll("canvas").forEach(function(e){Wc(e,r,n,!0)||s.push(e)}),s).forEach(F(function(e){var t,r,n,o;return J(this,function(s){switch(s.label){case 0:return r=f.mirror.getId(e),a.get(r)?[2]:0===e.width||0===e.height?[2]:(a.set(r,!0),["webgl","webgl2"].includes(e.__context)&&(n=e.getContext(e.__context),!1===(null==(t=null==n?void 0:n.getContextAttributes())?void 0:t.preserveDrawingBuffer)&&n.clear(n.COLOR_BUFFER_BIT)),[4,createImageBitmap(e)]);case 1:return o=s.sent(),c.postMessage({id:r,bitmap:o,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[o]),[2]}})})),u=requestAnimationFrame(p)}};u=requestAnimationFrame(p),this.resetObservers=function(){s(),cancelAnimationFrame(u)}},t.initCanvasMutationObserver=function(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var n=zu(e,t,r,!1),i=function(e,t,r,n){for(var i,o=function(){var o=i.value;try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[o])return"continue";var a=Tc(t.CanvasRenderingContext2D.prototype,o,function(i){return function(){for(var s=this,a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];return Wc(this.canvas,r,n,!0)||setTimeout(function(){var r=ju(c,t,s);e(s.canvas,{type:ou["2D"],property:o,args:r})},0),i.apply(this,c)}});s.push(a)}catch(r){var c=Uc(t.CanvasRenderingContext2D.prototype,o,{set:function(t){e(this.canvas,{type:ou["2D"],property:o,args:[t],setter:!0})}});s.push(c)}},s=[],a=Y(Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype));!(i=a()).done;)o();return function(){s.forEach(function(e){return e()})}}(this.processMutation.bind(this),e,t,r),o=function(e,t,r,n){var i,o,s=[];return(i=s).push.apply(i,[].concat(Vu(t.WebGLRenderingContext.prototype,ou.WebGL,e,r,n,t))),void 0!==t.WebGL2RenderingContext&&(o=s).push.apply(o,[].concat(Vu(t.WebGL2RenderingContext.prototype,ou.WebGL2,e,r,n,t))),function(){s.forEach(function(e){return e()})}}(this.processMutation.bind(this),e,t,r);this.resetObservers=function(){n(),i(),o()}},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,V(e,["type"])}),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}},e}(),Xu=function(){function e(e){Q(this,"trackedLinkElements",new WeakSet),Q(this,"mutationCb"),Q(this,"adoptedStyleSheetCb"),Q(this,"styleMirror",new Kc),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){var r,n=function(){var e=i.value,t=void 0;r.styleMirror.has(e)?t=r.styleMirror.getId(e):(t=r.styleMirror.add(e),s.push({styleId:t,rules:Array.from(e.rules||CSSRule,function(t,r){return{rule:me(t,e.href),index:r}})})),o.styleIds.push(t)};if(0!==e.length){for(var i,o={id:t,styleIds:[]},s=[],a=Y(e);!(i=a()).done;)r=this,n();s.length>0&&(o.styles=s),this.adoptedStyleSheetCb(o)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.cleanupStylesheetsForRemovedNode=function(e){var t=this;try{if(e.nodeType===Node.DOCUMENT_NODE){var r=e;if(r.adoptedStyleSheets)for(var n,i=Y(r.adoptedStyleSheets);!(n=i()).done;){var o=n.value;this.styleMirror.remove(o)}}if("STYLE"===e.nodeName){var s=e;s.sheet&&this.styleMirror.remove(s.sheet)}if("LINK"===e.nodeName&&"stylesheet"===e.rel){var a=e;a.sheet&&this.styleMirror.remove(a.sheet)}e.childNodes&&e.childNodes.forEach(function(e){t.cleanupStylesheetsForRemovedNode(e)})}catch(e){}},t.trackStylesheetInLinkElement=function(e){},e}(),Qu=function(){function e(){Q(this,"nodeMap",new WeakMap),Q(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}();function el(e){try{var t=new URL(e).origin;return"null"!==t?t:null}catch(e){return null}}var tl,rl=!1;try{2!==Array.from([1],function(e){return 2*e})[0]&&(tl=document.createElement("iframe"),document.body.appendChild(tl),Array.from=(null==(K=tl.contentWindow)?void 0:K.Array.from)||Array.from,document.body.removeChild(tl))}catch(e){console.debug("Unable to override Array.from",e)}var nl,il,ol=new ve;function sl(e){void 0===e&&(e={});var t,r=e.emit,n=e.checkoutEveryNms,i=e.checkoutEveryNth,o=e.blockClass,s=void 0===o?"rr-block":o,a=e.blockSelector,c=void 0===a?null:a,u=e.ignoreClass,l=void 0===u?"rr-ignore":u,h=e.ignoreSelector,p=void 0===h?null:h,f=e.maskTextClass,d=void 0===f?"rr-mask":f,g=e.maskTextSelector,m=void 0===g?null:g,v=e.inlineStylesheet,y=void 0===v||v,_=e.maskAllInputs,b=e.maskInputOptions,w=e.slimDOMOptions,k=e.maskInputFn,S=e.maskTextFn,C=e.hooks,x=e.packFn,I=e.sampling,E=void 0===I?{}:I,O=e.dataURLOptions,M=void 0===O?{}:O,R=e.mousemoveWait,A=e.recordDOM,T=void 0===A||A,P=e.recordCanvas,N=void 0!==P&&P,D=e.recordCrossOriginIframes,F=void 0!==D&&D,L=e.allowedIframeOrigins,U=e.recordAfter,j=void 0===U?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":U,q=e.userTriggeredOnInput,z=void 0!==q&&q,V=e.collectFonts,W=void 0!==V&&V,H=e.inlineImages,G=void 0!==H&&H,J=e.plugins,Z=e.keepIframeSrcFn,K=void 0===Z?function(){return!1}:Z,X=e.ignoreCSSAttributes,Q=void 0===X?new Set([]):X,ee=e.errorHandler;uu=ee,F&&L&&L.length>0&&0===(t=function(e){if(!Array.isArray(e)||0===e.length)throw new Error("[rrweb] allowedIframeOrigins must be a non-empty array of origin strings.");for(var t=new Set,r=0;r<e.length;r++){var n=e[r];if("string"!=typeof n)throw new Error("[rrweb] allowedIframeOrigins["+r+"] must be a string, got "+(void 0===n?"undefined":$(n))+".");var i=el(n);i&&t.add(i)}return Object.freeze(t)}(L)).size&&(t=void 0);var te=!F||window.parent===window,re=!1;if(!te)try{window.parent.document&&(re=!1)}catch(e){re=!0}if(te&&!r)throw new Error("emit function is required");if(!te&&!re)return function(){};void 0!==R&&void 0===E.mousemove&&(E.mousemove=R),ol.reset();var ne,ie,oe=!0===_?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:void 0!==b?b:{password:!0},se=!0===w||"all"===w?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===w,headMetaDescKeywords:"all"===w,headTitleMutations:"all"===w}:w||{};void 0===ne&&(ne=window),"NodeList"in ne&&!ne.NodeList.prototype.forEach&&(ne.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in ne&&!ne.DOMTokenList.prototype.forEach&&(ne.DOMTokenList.prototype.forEach=Array.prototype.forEach);var ae=0,ce=function(e){for(var t,r=Y(J||[]);!(t=r()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}return x&&!re&&(e=x(e)),e};Yu=function(e,o){var s,a=e;if(a.timestamp=Bc(),!(null==(s=yu[0])?void 0:s.isFrozen())||a.type===tu.FullSnapshot||a.type===tu.IncrementalSnapshot&&a.data.source===ru.Mutation||yu.forEach(function(e){return e.unfreeze()}),te)null==r||r(ce(a),o);else if(re){var c={type:"rrweb",event:ce(a),origin:window.location.origin,isCheckout:o};if(t)for(var u,l=Y(t);!(u=l()).done;){var h=u.value;window.parent.postMessage(c,h)}else window.parent.postMessage(c,"*")}if(a.type===tu.FullSnapshot)ie=a,ae=0;else if(a.type===tu.IncrementalSnapshot){if(a.data.source===ru.Mutation&&a.data.isAttachIframe)return;ae++;var p=i&&ae>=i,f=n&&a.timestamp-ie.timestamp>n;(p||f)&&Ju(!0)}};for(var ue,le=function(e){Yu({type:tu.IncrementalSnapshot,data:B({source:ru.Mutation},e)})},he=function(e){return Yu({type:tu.IncrementalSnapshot,data:B({source:ru.Scroll},e)})},pe=function(e){return Yu({type:tu.IncrementalSnapshot,data:B({source:ru.CanvasMutation},e)})},fe=new Xu({mutationCb:le,adoptedStyleSheetCb:function(e){return Yu({type:tu.IncrementalSnapshot,data:B({source:ru.AdoptedStyleSheet},e)})}}),de=new Pu({mirror:ol,mutationCb:le,stylesheetManager:fe,recordCrossOriginIframes:F,wrappedEmit:Yu}),ge=Y(J||[]);!(ue=ge()).done;){var me=ue.value;me.getMirror&&me.getMirror({nodeMirror:ol,crossOriginIframeMirror:de.crossOriginIframeMirror,crossOriginIframeStyleMirror:de.crossOriginIframeStyleMirror})}var ye=new Qu;Zu=new Ku({recordCanvas:N,mutationCb:pe,win:window,blockClass:s,blockSelector:c,mirror:ol,sampling:E.canvas,dataURLOptions:M});var _e=new Nu({mutationCb:le,scrollCb:he,bypassOptions:{blockClass:s,blockSelector:c,maskTextClass:d,maskTextSelector:m,inlineStylesheet:y,maskInputOptions:oe,dataURLOptions:M,maskTextFn:S,maskInputFn:k,recordCanvas:N,inlineImages:G,sampling:E,slimDOMOptions:se,iframeManager:de,stylesheetManager:fe,canvasManager:Zu,keepIframeSrcFn:K,processedNodeManager:ye},mirror:ol});Ju=function(e){if(void 0===e&&(e=!1),T){Yu({type:tu.Meta,data:{href:window.location.href,width:zc(),height:qc()}},e),fe.reset(),_e.init(),yu.forEach(function(e){return e.lock()});var t=function(e,t){var r=t||{},n=r.mirror,i=void 0===n?new ve:n,o=r.blockClass,s=void 0===o?"rr-block":o,a=r.blockSelector,c=void 0===a?null:a,u=r.maskTextClass,l=void 0===u?"rr-mask":u,h=r.maskTextSelector,p=void 0===h?null:h,f=r.inlineStylesheet,d=void 0===f||f,g=r.inlineImages,m=void 0!==g&&g,v=r.recordCanvas,y=void 0!==v&&v,_=r.maskAllInputs,b=void 0!==_&&_,w=r.maskTextFn,k=r.maskInputFn,S=r.slimDOM,C=void 0!==S&&S,x=r.dataURLOptions,I=r.preserveWhiteSpace,E=r.onSerialize,O=r.onIframeLoad,M=r.iframeLoadTimeout,R=r.onStylesheetLoad,A=r.stylesheetLoadTimeout,T=r.keepIframeSrcFn;return Ge(e,{doc:e,mirror:i,blockClass:s,blockSelector:c,maskTextClass:l,maskTextSelector:p,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===b?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:!1===b?{password:!0}:b,maskTextFn:w,maskInputFn:k,slimDOMOptions:!0===C||"all"===C?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===C,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===C?{}:C,dataURLOptions:x,inlineImages:m,recordCanvas:y,preserveWhiteSpace:I,onSerialize:E,onIframeLoad:O,iframeLoadTimeout:M,onStylesheetLoad:R,stylesheetLoadTimeout:A,keepIframeSrcFn:void 0===T?function(){return!1}:T,newlyAddedElement:!1})}(document,{mirror:ol,blockClass:s,blockSelector:c,maskTextClass:d,maskTextSelector:m,inlineStylesheet:y,maskAllInputs:oe,maskTextFn:S,maskInputFn:k,slimDOM:se,dataURLOptions:M,recordCanvas:N,inlineImages:G,onSerialize:function(e){Yc(e,ol)&&de.addIframe(e),Jc(e,ol)&&fe.trackLinkElement(e),Zc(e)&&_e.addShadowRoot(Pc.shadowRoot(e),document)},onIframeLoad:function(e,t){de.attachIframe(e,t),_e.observeAttachShadow(e)},onStylesheetLoad:function(e,t){fe.attachLinkElement(e,t)},keepIframeSrcFn:K});if(!t)return console.warn("Failed to snapshot the document");Yu({type:tu.FullSnapshot,data:{node:t,initialOffset:jc(window)}},e),yu.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&fe.adoptStyleSheets(document.adoptedStyleSheets,ol.getId(document))}};try{var be=[],we=function(e){var t;return vu(Ou)({mutationCb:le,mousemoveCb:function(e,t){return Yu({type:tu.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return Yu({type:tu.IncrementalSnapshot,data:B({source:ru.MouseInteraction},e)})},scrollCb:he,viewportResizeCb:function(e){return Yu({type:tu.IncrementalSnapshot,data:B({source:ru.ViewportResize},e)})},inputCb:function(e){return Yu({type:tu.IncrementalSnapshot,data:B({source:ru.Input},e)})},mediaInteractionCb:function(e){return Yu({type:tu.IncrementalSnapshot,data:B({source:ru.MediaInteraction},e)})},styleSheetRuleCb:function(e){return Yu({type:tu.IncrementalSnapshot,data:B({source:ru.StyleSheetRule},e)})},styleDeclarationCb:function(e){return Yu({type:tu.IncrementalSnapshot,data:B({source:ru.StyleDeclaration},e)})},canvasMutationCb:pe,fontCb:function(e){return Yu({type:tu.IncrementalSnapshot,data:B({source:ru.Font},e)})},selectionCb:function(e){Yu({type:tu.IncrementalSnapshot,data:B({source:ru.Selection},e)})},customElementCb:function(e){Yu({type:tu.IncrementalSnapshot,data:B({source:ru.CustomElement},e)})},blockClass:s,ignoreClass:l,ignoreSelector:p,maskTextClass:d,maskTextSelector:m,maskInputOptions:oe,inlineStylesheet:y,sampling:E,recordDOM:T,recordCanvas:N,inlineImages:G,userTriggeredOnInput:z,collectFonts:W,doc:e,maskInputFn:k,maskTextFn:S,keepIframeSrcFn:K,blockSelector:c,slimDOMOptions:se,dataURLOptions:M,mirror:ol,iframeManager:de,stylesheetManager:fe,shadowDomManager:_e,processedNodeManager:ye,canvasManager:Zu,ignoreCSSAttributes:Q,plugins:(null==(t=null==J?void 0:J.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return Yu({type:tu.Plugin,data:{plugin:e.name,payload:t}})}}}))||[]},C)};de.addLoadListener(function(e){try{var t=e.contentDocument,r=we(t);be.push(r);var n=de.getObserverCleanup(e);de.setObserverCleanup(e,function(){if(n)try{n()}catch(e){}try{r();var e=be.indexOf(r);-1!==e&&be.splice(e,1),function(e){for(var t=yu.length-1;t>=0;t--)yu[t].getDoc()===e&&yu.splice(t,1)}(t)}catch(e){}})}catch(e){console.warn(e)}});var ke=function(){Ju(),be.push(we(document)),rl=!0};return"interactive"===document.readyState||"complete"===document.readyState?ke():(be.push(Nc("DOMContentLoaded",function(){Yu({type:tu.DomContentLoaded,data:{}}),"DOMContentLoaded"===j&&ke()})),be.push(Nc("load",function(){Yu({type:tu.Load,data:{}}),"load"===j&&ke()},window))),function(){be.forEach(function(e){try{e()}catch(e){String(e).toLowerCase().includes("cross-origin")||console.warn(e)}}),ye.destroy(),rl=!1,uu=void 0}}catch(e){console.warn(e)}}sl.addCustomEvent=function(e,t){if(!rl)throw new Error("please add custom event after start recording");Yu({type:tu.Custom,data:{tag:e,payload:t}})},sl.freezePage=function(){yu.forEach(function(e){return e.freeze()})},sl.takeFullSnapshot=function(e){if(!rl)throw new Error("please take full snapshot after start recording");Ju(e)},sl.mirror=ol,(il=nl||(nl={}))[il.NotStarted=0]="NotStarted",il[il.Running=1]="Running",il[il.Stopped=2]="Stopped",sl.addCustomEvent,sl.freezePage,sl.takeFullSnapshot;var al={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},cl={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ul={};function ll(e){if(ul[e])return ul[e];var t=globalThis[e],r=t.prototype,n=e in al?al[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in cl?cl[e]:void 0,s=Boolean(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 ul[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;return document.body.removeChild(a),u?ul[e]=u:r}catch(e){return r}}var hl={};function pl(e,t,r){var n,i=e+"."+String(r);if(hl[i])return hl[i].call(t);var o=ll(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(hl[i]=s,s.call(t)):t[r]}var fl={};function dl(e,t,r){var n=e+"."+String(r);if(fl[n])return fl[n].bind(t);var i=ll(e)[r];return"function"!=typeof i?t[r]:(fl[n]=i,i.bind(t))}var gl={childNodes:function(e){return pl("Node",e,"childNodes")},parentNode:function(e){return pl("Node",e,"parentNode")},parentElement:function(e){return pl("Node",e,"parentElement")},textContent:function(e){return pl("Node",e,"textContent")},contains:function(e,t){return dl("Node",e,"contains")(t)},getRootNode:function(e){return dl("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?pl("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?pl("Element",e,"shadowRoot"):null},querySelector:function(e,t){return pl("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return pl("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return ll("MutationObserver").constructor},patch:function(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(){}}}};function ml(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return ml(gl.parentNode(e),t);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return ml(gl.parentNode(e),t)}function vl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function yl(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return z(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}var _l={exports:{}},bl=String,wl=function(){return{isColorSupported:!1,reset:bl,bold:bl,dim:bl,italic:bl,underline:bl,inverse:bl,hidden:bl,strikethrough:bl,black:bl,red:bl,green:bl,yellow:bl,blue:bl,magenta:bl,cyan:bl,white:bl,gray:bl,bgBlack:bl,bgRed:bl,bgGreen:bl,bgYellow:bl,bgBlue:bl,bgMagenta:bl,bgCyan:bl,bgWhite:bl}};_l.exports=wl(),_l.exports.createColors=wl;var kl=_l.exports,Sl=yl(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Cl=kl,xl=Sl,Il=function(e){function t(r,n,i,o,s,a){var c;return(c=e.call(this,r)||this).name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}q(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=this;if(!this.source)return"";var r=this.source;null==e&&(e=Cl.isColorSupported),xl&&e&&(r=xl(r));var n,i,o=r.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=Cl.createColors(!0),l=u.bold,h=u.gray,p=u.red;n=function(e){return l(p(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var u=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+u+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(H(Error)),El=Il;Il.default=Il;var Ol={};Ol.isClean=Symbol("isClean"),Ol.my=Symbol("my");var Ml={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var Rl=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){var r;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 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){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return Ml[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=Ml[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){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);var 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 new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),Al=Rl;Rl.default=Rl;var Tl=Al;function Pl(e,t){new Tl(t).stringify(e)}var Nl=Pl;Pl.default=Pl;var Dl=Ol.isClean,Fl=Ol.my,Ll=El,Ul=Al,Bl=Nl;function jl(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":$(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return jl(e,r)}):("object"===o&&null!==i&&(i=jl(i)),r[n]=i)}return r}var ql=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[Dl]=!1,this[Fl]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Y(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=jl(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 Ll(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[Dl]){this[Dl]=!1;for(var e=this;e=e.parent;)e[Dl]=!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);else 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 Ul).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=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=Y(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"object"===(void 0===e?"undefined":$(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===(void 0===s?"undefined":$(s))&&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=Bl),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)},U(e,[{key:"proxyOf",get:function(){return this}}]),e}(),zl=ql;ql.default=ql;var Vl=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=B({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return q(t,e),U(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(zl),Wl=Vl;Vl.default=Vl;var $l=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},Hl=Sl.SourceMapConsumer,Gl=Sl.SourceMapGenerator,Yl=Sl.existsSync,Jl=Sl.readFileSync,Zl=Sl.dirname,Kl=Sl.join;var Xl=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=Zl(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new Hl(this.text)),this.consumerCache},t.decodeInline=function(e){var t;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))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===(void 0===e?"undefined":$(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(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=Zl(e),Yl(e))return this.mapFile=e,Jl(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){if(z(t,Hl))return Gl.fromSourceMap(t).toString();if(z(t,Gl))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=Kl(Zl(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}(),Ql=Xl;Xl.default=Xl;var eh=Sl.SourceMapConsumer,th=Sl.SourceMapGenerator,rh=Sl.fileURLToPath,nh=Sl.pathToFileURL,ih=Sl.isAbsolute,oh=Sl.resolve,sh=$l,ah=Sl,ch=El,uh=Ql,lh=Symbol("fromOffsetCache"),hh=Boolean(eh&&th),ph=Boolean(oh&&ih),fh=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":$(e))&&!e.toString)throw new 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&&(!ph||/^\w+:\/\//.test(t.from)||ih(t.from)?this.file=t.from:this.file=oh(t.from)),ph&&hh){var r=new uh(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 "+sh(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":$(t))){var a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(i=p?new ch(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new ch(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&&(nh&&(i.input.url=nh(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[lh])t=this[lh];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i<o;i++)t[i]=n,n+=r[i].length+1;this[lh]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,c=t.length-2;s<c;)if(e<t[a=s+(c-s>>1)])c=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:oh(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=ih(a.source)?nh(a.source):new URL(a.source,this.map.consumer().sourceRoot||nh(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(!rh)throw new Error("file: protocol is not available in this PostCSS build");c.file=rh(o)}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=B({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},U(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),dh=fh;fh.default=fh,ah&&ah.registerInput&&ah.registerInput(fh);var gh=Sl.SourceMapConsumer,mh=Sl.SourceMapGenerator,vh=Sl.dirname,yh=Sl.relative,_h=Sl.resolve,bh=Sl.sep,wh=Sl.pathToFileURL,kh=dh,Sh=Boolean(gh&&mh),Ch=Boolean(vh&&_h&&yh&&bh),xh=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;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 t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=Y(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||vh(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new gh(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(),Ch&&Sh&&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=mh.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new mh({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=this;this.css="",this.map=new mh({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,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(e.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):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=e.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,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.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)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?vh(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=vh(_h(r,this.mapOpts.annotation)));var n=yh(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 kh(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 Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(wh){var r=wh(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new 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;"\\"===bh&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Ih=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return q(t,e),t}(zl),Eh=Ih;Ih.default=Ih;var Oh,Mh,Rh,Ah,Th=Ol.isClean,Ph=Ol.my,Nh=Wl,Dh=Eh;function Fh(e){return e.map(function(e){return e.nodes&&(e.nodes=Fh(e.nodes)),delete e.source,e})}function Lh(e){if(e[Th]=!1,e.proxyOf.nodes)for(var t,r=Y(e.proxyOf.nodes);!(t=r()).done;){Lh(t.value)}}var Uh=function(e){function t(){return e.apply(this,arguments)||this}q(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Y(t);!(n=i()).done;)for(var o,s=n.value,a=Y(this.normalize(s,this.last));!(o=a()).done;){var c=o.value;this.proxyOf.nodes.push(c)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=Y(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){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))}:"every"===t||"some"===t?function(r){return e[t](function(e){for(var t=arguments.length,n=new 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))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]: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=Y(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=Y(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=Fh(Oh(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i,o=Y(e=e.slice(0));!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}else if("root"===e.type&&"document"!==this.type)for(var a,c=Y(e=e.nodes.slice(0));!(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 new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new Nh(e)]}else if(e.selector)e=[new Mh(e)];else if(e.name)e=[new Rh(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new Dh(e)]}return e.map(function(e){return e[Ph]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[Th]&&Lh(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=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Y(t=t.reverse());!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=Y(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=Y(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?z(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?z(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?z(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)}))},U(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}(zl);Uh.registerParse=function(e){Oh=e},Uh.registerRule=function(e){Mh=e},Uh.registerAtRule=function(e){Rh=e},Uh.registerRoot=function(e){Ah=e};var Bh=Uh;Uh.default=Uh,Uh.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Rh.prototype):"rule"===e.type?Object.setPrototypeOf(e,Mh.prototype):"decl"===e.type?Object.setPrototypeOf(e,Nh.prototype):"comment"===e.type?Object.setPrototypeOf(e,Dh.prototype):"root"===e.type&&Object.setPrototypeOf(e,Ah.prototype),e[Ph]=!0,e.nodes&&e.nodes.forEach(function(e){Uh.rebuild(e)})};var jh,qh,zh=function(e){function t(t){var r;return(r=e.call(this,B({type:"document"},t))||this).nodes||(r.nodes=[]),r}return q(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new jh(new qh,this,e).stringify()},t}(Bh);zh.registerLazyResult=function(e){jh=e},zh.registerProcessor=function(e){qh=e};var Vh=zh;zh.default=zh;var Wh={},$h=function(e){Wh[e]||(Wh[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))},Hh=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}(),Gh=Hh;Hh.default=Hh;var Yh=Gh,Jh=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 Yh(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},U(e,[{key:"content",get:function(){return this.css}}]),e}(),Zh=Jh;Jh.default=Jh;var Kh="'".charCodeAt(0),Xh='"'.charCodeAt(0),Qh="\\".charCodeAt(0),ep="/".charCodeAt(0),tp="\n".charCodeAt(0),rp=" ".charCodeAt(0),np="\f".charCodeAt(0),ip="\t".charCodeAt(0),op="\r".charCodeAt(0),sp="[".charCodeAt(0),ap="]".charCodeAt(0),cp="(".charCodeAt(0),up=")".charCodeAt(0),lp="{".charCodeAt(0),hp="}".charCodeAt(0),pp=";".charCodeAt(0),fp="*".charCodeAt(0),dp=":".charCodeAt(0),gp="@".charCodeAt(0),mp=/[\t\n\f\r "#'()/;[\\\]{}]/g,vp=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,yp=/.[\r\n"'(/\\]/,_p=/[\da-f]/i,bp=Bh,wp=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}q(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(bp),kp=wp;wp.default=wp,bp.registerAtRule(wp);var Sp,Cp,xp=Bh,Ip=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}q(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=Y(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 Sp(new Cp,this,e).stringify()},t}(xp);Ip.registerLazyResult=function(e){Sp=e},Ip.registerProcessor=function(e){Cp=e};var Ep=Ip;Ip.default=Ip,xp.registerRoot(Ip);var Op={comma:function(e){return Op.split(e,[","],!0)},space:function(e){return Op.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=Y(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:c?p===u&&(c=!1):'"'===p||"'"===p?(c=!0,u=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}},Mp=Op;Op.default=Op;var Rp=Bh,Ap=Mp,Tp=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return q(t,e),U(t,[{key:"selectors",get:function(){return Ap.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}(Rp),Pp=Tp;Tp.default=Tp,Rp.registerRule(Tp);var Np=Wl,Dp=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,p=e.css.valueOf(),f=t.ignoreErrors,d=p.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=d},nextToken:function(e){if(v.length)return v.pop();if(!(g>=d)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case tp:case rp:case ip:case op:case np:n=g;do{n+=1,r=p.charCodeAt(n)}while(r===rp||r===tp||r===ip||r===op||r===np);h=["space",p.slice(g,n)],g=n-1;break;case sp:case ap:case lp:case hp:case dp:case pp:case up:var _=String.fromCharCode(r);h=[_,_,g];break;case cp:if(u=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===u&&l!==Kh&&l!==Xh&&l!==rp&&l!==tp&&l!==ip&&l!==np&&l!==op){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1))){if(f||t){n=g;break}y("bracket")}for(c=n;p.charCodeAt(c-1)===Qh;)c-=1,a=!a}while(a);h=["brackets",p.slice(g,n+1),g,n],g=n}else n=p.indexOf(")",g+1),o=p.slice(g,n+1),-1===n||yp.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case Kh:case Xh:i=r===Kh?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1))){if(f||t){n=g+1;break}y("string")}for(c=n;p.charCodeAt(c-1)===Qh;)c-=1,a=!a}while(a);h=["string",p.slice(g,n+1),g,n],g=n;break;case gp:mp.lastIndex=g+1,mp.test(p),n=0===mp.lastIndex?p.length-1:mp.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case Qh:for(n=g,s=!0;p.charCodeAt(n+1)===Qh;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==ep&&r!==rp&&r!==tp&&r!==ip&&r!==op&&r!==np&&(n+=1,_p.test(p.charAt(n)))){for(;_p.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===rp&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:r===ep&&p.charCodeAt(g+1)===fp?(0===(n=p.indexOf("*/",g+2)+1)&&(f||t?n=p.length:y("comment")),h=["comment",p.slice(g,n+1),g,n],g=n):(vp.lastIndex=g+1,vp.test(p),n=0===vp.lastIndex?p.length-1:vp.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h),g=n)}return g++,h}},position:function(){return g}}},Fp=Eh,Lp=kp,Up=Ep,Bp=Pp,jp={empty:!0,space:!0};var qp=function(){function e(e){this.input=e,this.root=new Up,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 Lp;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(r=a[n=a.length-1];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=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=Y(e.entries());!(i=s()).done;){var a=i.value,c=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new Fp;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=Dp(this.input)},t.decl=function(e,t){var r=new Np;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[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)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(n=e[c])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",p=c;p>0;p--){var f=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==f)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.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 Bp;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;c;){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);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,h=0;h<c;h+=1)"space"!==(o=(i=r[h])[0])||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",jp[a]||jp[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var p=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new Bp;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}(),zp=Bh,Vp=qp,Wp=dh;function $p(e,t){var r=new Wp(e,t),n=new Vp(r);try{n.parse()}catch(e){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===e.name&&t&&t.from&&(/\.scss$/i.test(t.from)?e.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?e.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(e.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),e}return n.root}var Hp=$p;$p.default=$p,zp.registerParse($p);var Gp=Ol.isClean,Yp=Ol.my,Jp=xh,Zp=Nl,Kp=Bh,Xp=Vh,Qp=$h,ef=Zh,tf=Hp,rf=Ep,nf={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},of={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},sf={Once:!0,postcssPlugin:!0,prepare:!0};function af(e){return"object"===(void 0===e?"undefined":$(e))&&"function"==typeof e.then}function cf(e){var t=!1,r=nf[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 uf(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:cf(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function lf(e){return e[Gp]=!1,e.nodes&&e.nodes.forEach(function(e){return lf(e)}),e}var hf={},pf=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===r?"undefined":$(r))||null===r||"root"!==r.type&&"document"!==r.type)if(z(r,e)||z(r,ef))i=lf(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=tf;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[Yp]&&Kp.rebuild(i)}else i=lf(r);this.result=new ef(t,i,n),this.helpers=B({},hf,{postcss:hf,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===(void 0===e?"undefined":$(e))&&e.prepare?B({},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 new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){var n=r.postcssPlugin,i=r.postcssVersion,o=this.result.processor.version,s=i.split("."),a=o.split(".");(s[0]!==a[0]||parseInt(s[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", but "+n+" uses "+i+". Perhaps this is the source of the error below.")}}else 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=Y(this.plugins);!(t=n()).done;){var i=t.value;if("object"===(void 0===i?"undefined":$(i)))for(var o in i){if(!of[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!sf[o])if("object"===$(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 F(function(){var t,r,n,i,o,s,a,c,u,l,h,p;return J(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],!af(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[Gp])return[3,14];o[Gp]=!0,s=[uf(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!af(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,s;return J(this,function(a){switch(a.label){case 0:t=p.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},h=Y(e.listeners.OnceExit),f.label=15;case 15:return(p=h()).done?[3,18]:[5,Z(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===(void 0===e?"undefined":$(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return af(r[0])?Promise.all(r):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=Zp;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Jp(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=Y(this.plugins);!(e=t()).done;){var r=e.value;if(af(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[Gp];)n[Gp]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=Y(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"production"!==process.env.NODE_ENV&&("from"in this.opts||Qp("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Y(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(af(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){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[Gp])return a[Gp]=!0,void e.push(uf(a));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)return void(r.nodes&&r.nodes.length&&(r[Gp]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[Gp]=!0;for(var r,n=Y(cf(e));!(r=n()).done;){var i=r.value;if(0===i)e.nodes&&e.each(function(e){e[Gp]||t.walkSync(e)});else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},U(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}();pf.registerPostcss=function(e){hf=e};var ff=pf;pf.default=pf,rf.registerLazyResult(pf),Xp.registerLazyResult(pf);var df=xh,gf=Nl,mf=$h,vf=Hp,yf=Zh,_f=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=gf;this.result=new yf(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new df(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.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"production"!==process.env.NODE_ENV&&("from"in this._opts||mf("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},U(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(){if(this._root)return this._root;var e,t=vf;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),bf=_f;_f.default=_f;var wf=bf,kf=ff,Sf=Vh,Cf=Ep,xf=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=Y(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===(void 0===i?"undefined":$(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===(void 0===i?"undefined":$(i))&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else{if("object"!==(void 0===i?"undefined":$(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new kf(this,e,t):new wf(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),If=xf;xf.default=xf,Cf.registerProcessor(xf),Sf.registerProcessor(xf);var Ef=Wl,Of=Ql,Mf=Eh,Rf=kp,Af=dh,Tf=Ep,Pf=Pp;function Nf(e,t){if(Array.isArray(e))return e.map(function(e){return Nf(e)});var r=e.inputs,n=V(e,["inputs"]);if(r){t=[];for(var i,o=Y(r);!(i=o()).done;){var s=B({},i.value,{__proto__:Af.prototype});s.map&&(s.map=B({},s.map,{__proto__:Of.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return Nf(e,t)})),n.source){var a=n.source,c=a.inputId,u=V(a,["inputId"]);n.source=u,null!=c&&(n.source.input=t[c])}if("root"===n.type)return new Tf(n);if("decl"===n.type)return new Ef(n);if("rule"===n.type)return new Pf(n);if("comment"===n.type)return new Mf(n);if("atrule"===n.type)return new Rf(n);throw new Error("Unknown node type: "+e.type)}var Df=Nf;Nf.default=Nf;var Ff=El,Lf=Wl,Uf=ff,Bf=Bh,jf=If,qf=Nl,zf=Df,Vf=Vh,Wf=Gh,$f=Eh,Hf=kp,Gf=Zh,Yf=dh,Jf=Hp,Zf=Mp,Kf=Pp,Xf=Ep,Qf=zl;function ed(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new jf(t)}ed.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new 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"),process.env.LANG&&process.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 jf).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return ed([i(r)]).process(e,t)},i},ed.stringify=qf,ed.parse=Jf,ed.fromJSON=zf,ed.list=Zf,ed.comment=function(e){return new $f(e)},ed.atRule=function(e){return new Hf(e)},ed.decl=function(e){return new Lf(e)},ed.rule=function(e){return new Kf(e)},ed.root=function(e){return new Xf(e)},ed.document=function(e){return new Vf(e)},ed.CssSyntaxError=Ff,ed.Declaration=Lf,ed.Container=Bf,ed.Processor=jf,ed.Document=Vf,ed.Comment=$f,ed.Warning=Wf,ed.AtRule=Hf,ed.Result=Gf,ed.Input=Yf,ed.Rule=Kf,ed.Root=Xf,ed.Node=Qf,Uf.registerPostcss(ed);var td=ed;ed.default=ed;var rd=vl(td);rd.stringify,rd.fromJSON,rd.plugin,rd.parse,rd.list,rd.document,rd.comment,rd.atRule,rd.rule,rd.decl,rd.root,rd.CssSyntaxError,rd.Declaration,rd.Container,rd.Processor,rd.Document,rd.Comment,rd.Warning,rd.AtRule,rd.Result,rd.Input,rd.Rule,rd.Root,rd.Node;var nd=Object.defineProperty,id=function(e,t,r){return function(e,t,r){return t in e?nd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":$(t))?t+"":t,r)};var od=function(){function e(e){id(this,"fileName"),id(this,"functionName"),id(this,"lineNumber"),id(this,"columnNumber"),this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}return e.prototype.toString=function(){var e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+t+")":this.fileName+":"+e+":"+t},e}(),sd=/(^|@)\S+:\d+/,ad=/^\s*at .*(\S+:\d+|\(native\))/m,cd=/^(eval@)?(\[native code])?$/,ud={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(ad)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!t)throw new Error("Cannot parse given url: "+e);return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(ad)},this).map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/),n=(t=r?t.replace(r[0],""):t).split(/\s+/).slice(1),i=this.extractLocation(r?r[1]:n.pop()),o=n.join(" ")||void 0,s=["eval","<anonymous>"].indexOf(i[0])>-1?void 0:i[0];return new od({functionName:o,fileName:s,lineNumber:i[1],columnNumber:i[2]})},this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter(function(e){return!e.match(cd)},this).map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new od({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,i=this.extractLocation(e.replace(t,""));return new od({functionName:n,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),n=[],i=2,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new od({fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),n=[],i=0,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new od({functionName:s[3]||void 0,fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera11:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(sd)&&!e.match(/^Error created at/)},this).map(function(e){var t=e.split("@"),r=this.extractLocation(t.pop()),n=(t.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new od({functionName:n,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function ld(e){if(!e||!e.outerHTML)return"";for(var t="";e.parentElement;){var r=e.localName;if(!r)break;r=r.toLowerCase();var n=e.parentElement,i=[];if(n.children&&n.children.length>0)for(var o=0;o<n.children.length;o++){var s=n.children[o];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===r&&i.push(s)}i.length>1&&(r+=":eq("+i.indexOf(e)+")"),t=r+(t?">"+t:""),e=n}return t}function hd(e){return"[object Object]"===Object.prototype.toString.call(e)}function pd(e,t){if(0===t)return!0;for(var r,n=Y(Object.keys(e));!(r=n()).done;){var i=r.value;if(hd(e[i])&&pd(e[i],t-1))return!0}return!1}function fd(e,t){var r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);var n=[],i=[];return JSON.stringify(e,function(e,t){if(n.length>0){var o=n.indexOf(this);~o?n.splice(o+1):n.push(this),~o?i.splice(o,1/0,e):i.push(e),~n.indexOf(t)&&(t=n[0]===t?"[Circular ~]":"[Circular ~."+i.slice(0,n.indexOf(t)).join(".")+"]")}else n.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(function(e){if(hd(e)&&Object.keys(e).length>r.numOfKeysLimit)return!0;if("function"==typeof e)return!0;if(hd(e)&&pd(e,r.depthOfLimit))return!0;return!1}(t))return function(e){var t=e.toString();r.stringLengthLimit&&t.length>r.stringLengthLimit&&(t=t.slice(0,r.stringLengthLimit)+"...");return t}(t);if("bigint"===(void 0===t?"undefined":$(t)))return t.toString()+"n";if(z(t,Event)){var s={};for(var a in t){var c=t[a];Array.isArray(c)?s[a]=ld(c.length?c[0]:null):s[a]=c}return s}return z(t,Node)?z(t,HTMLElement)?t?t.outerHTML:"":t.nodeName:z(t,Error)?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t})}var dd={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function gd(e,t,r){var n,i=r?Object.assign({},dd,r):dd,o=i.logger;if(!o)return function(){};n="string"==typeof o?t[o]:o;var s=0,a=!1,c=[];if(i.level.includes("error")){var u=function(t){var r=t.message,n=t.error,o=ud.parse(n).map(function(e){return e.toString()}),s=[fd(r,i.stringifyOptions)];e({level:"error",trace:o,payload:s})};t.addEventListener("error",u),c.push(function(){t.removeEventListener("error",u)});var l=function(t){var r,n;z(t.reason,Error)?n=[fd("Uncaught (in promise) "+(r=t.reason).name+": "+r.message,i.stringifyOptions)]:(r=new Error,n=[fd("Uncaught (in promise)",i.stringifyOptions),fd(t.reason,i.stringifyOptions)]);var o=ud.parse(r).map(function(e){return e.toString()});e({level:"error",trace:o,payload:n})};t.addEventListener("unhandledrejection",l),c.push(function(){t.removeEventListener("unhandledrejection",l)})}for(var h,p=Y(i.level);!(h=p()).done;){var f=h.value;c.push(d(n,f))}return function(){c.forEach(function(e){return e()})};function d(t,r){var n=this;return t[r]?function(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(){}}}(t,r,function(t){var o=n;return function(){for(var n=arguments.length,c=new Array(n),u=0;u<n;u++)c[u]=arguments[u];if(t.apply(o,c),!("assert"===r&&c[0]||a)){a=!0;try{var l=ud.parse(new Error).map(function(e){return e.toString()}).splice(1),h=("assert"===r?c.slice(1):c).map(function(e){return fd(e,i.stringifyOptions)});++s<i.lengthThreshold?e({level:r,trace:l,payload:h}):s===i.lengthThreshold&&e({level:"warn",trace:[],payload:[fd("The number of log records reached the threshold.")]})}catch(e){t.apply(void 0,[].concat(["rrweb logger error:",e],c))}finally{a=!1}}}}):function(){}}}var md,vd,yd,_d=C.setImmediate,bd=Object.prototype.toString,wd=void 0!==_d?function(e){return _d(e)}:setTimeout;try{Object.defineProperty({},"x",{}),md=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(e){md=function(e,t,r){return e[t]=r,e}}function kd(e,t){yd.add(e,t),vd||(vd=wd(yd.drain))}function Sd(e){var t,r=typeof e;return null===e||"object"!==r&&"function"!==r||(t=e.then),"function"==typeof t&&t}function Cd(){for(var e=0;e<this.chain.length;e++)xd(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function xd(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=Sd(n))?i.call(n,r.resolve,r.reject):r.resolve(n)}catch(e){r.reject(e)}}function Id(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=Sd(e))?kd(function(){var n=new Md(r);try{t.call(e,function(){Id.apply(n,arguments)},function(){Ed.apply(n,arguments)})}catch(e){Ed.call(n,e)}}):(r.msg=e,r.state=1,r.chain.length>0&&kd(Cd,r))}catch(e){Ed.call(new Md(r),e)}}}function Ed(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&kd(Cd,t))}function Od(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 Md(e){this.def=e,this.triggered=!1}function Rd(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function Ad(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 Rd(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&&kd(Cd,t),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){Id.call(t,e)},function(e){Ed.call(t,e)})}catch(e){Ed.call(t,e)}}yd=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=vd=void 0;r;)r.fn.call(r.self),r=r.next}}}();var Td,Pd=md({},"constructor",Ad,!1);Ad.prototype=Pd,md(Pd,"__NPO__",0,!1),md(Ad,"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)})}),md(Ad,"reject",function(e){return new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)})}),md(Ad,"all",function(e){var t=this;return"[object Array]"!==bd.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;Od(t,e,function(e,t){o[e]=t,++s===i&&r(o)},n)})}),md(Ad,"race",function(e){var t=this;return"[object Array]"!==bd.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");Od(t,e,function(e,t){r(t)},n)})}),Td="undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:Ad;var Nd,Dd,Fd,Ld,Ud,Bd,jd,qd,zd,Vd,Wd=864e5,$d=8e3,Hd=Array.prototype,Gd=Function.prototype,Yd=Object.prototype,Jd=Hd.slice,Zd=Yd.toString,Kd=Yd.hasOwnProperty,Xd=C.console,Qd=C.navigator,eg=C.document,tg=C.opera,rg=C.screen,ng=Qd.userAgent,ig=Gd.bind,og=Hd.forEach,sg=Hd.indexOf,ag=Hd.map,cg=Array.isArray,ug={},lg={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},hg={log:function(){if(R.DEBUG&&!lg.isUndefined(Xd)&&Xd)try{Xd.log.apply(Xd,arguments)}catch(e){lg.each(arguments,function(e){Xd.log(e)})}},warn:function(){if(R.DEBUG&&!lg.isUndefined(Xd)&&Xd){var e=["Mixpanel warning:"].concat(lg.toArray(arguments));try{Xd.warn.apply(Xd,e)}catch(t){lg.each(e,function(e){Xd.warn(e)})}}},error:function(){if(R.DEBUG&&!lg.isUndefined(Xd)&&Xd){var e=["Mixpanel error:"].concat(lg.toArray(arguments));try{Xd.error.apply(Xd,e)}catch(t){lg.each(e,function(e){Xd.error(e)})}}},critical:function(){if(!lg.isUndefined(Xd)&&Xd){var e=["Mixpanel error:"].concat(lg.toArray(arguments));try{Xd.error.apply(Xd,e)}catch(t){lg.each(e,function(e){Xd.error(e)})}}}},pg=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(hg,arguments)}},fg=function(e){return{log:pg(hg.log,e),warn:pg(hg.warn,e),error:pg(hg.error,e),critical:pg(hg.critical,e)}},dg=function(e){return function(){try{return e.apply(this,arguments)}catch(e){hg.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),R.DEBUG&&hg.critical(e)}}},gg=function(e){var t=e.prototype;for(var r in t)"function"==typeof t[r]&&(t[r]=dg(t[r]))};lg.bind=function(e,t){var r,n;if(ig&&e.bind===ig)return ig.apply(e,Jd.call(arguments,1));if(!lg.isFunction(e))throw new TypeError;return r=Jd.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(Jd.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var s=e.apply(o,r.concat(Jd.call(arguments)));return Object(s)===s?s:o},n},lg.each=function(e,t,r){if(null!=e)if(og&&e.forEach===og)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)===ug)return}else for(var o in e)if(Kd.call(e,o)&&t.call(r,e[o],o,e)===ug)return},lg.extend=function(e){return lg.each(Jd.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},lg.isArray=cg||function(e){return"[object Array]"===Zd.call(e)},lg.isFunction=function(e){return"function"==typeof e},lg.isArguments=function(e){return!(!e||!Kd.call(e,"callee"))},lg.toArray=function(e){return e?e.toArray?e.toArray():lg.isArray(e)||lg.isArguments(e)?Jd.call(e):lg.values(e):[]},lg.map=function(e,t,r){if(ag&&e.map===ag)return e.map(t,r);var n=[];return lg.each(e,function(e){n.push(t.call(r,e))}),n},lg.keys=function(e){var t=[];return null===e||lg.each(e,function(e,r){t[t.length]=r}),t},lg.values=function(e){var t=[];return null===e||lg.each(e,function(e){t[t.length]=e}),t},lg.include=function(e,t){var r=!1;return null===e?r:sg&&e.indexOf===sg?-1!=e.indexOf(t):(lg.each(e,function(e){if(r||(r=e===t))return ug}),r)},lg.includes=function(e,t){return-1!==e.indexOf(t)},lg.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},lg.isObject=function(e){return e===Object(e)&&!lg.isArray(e)},lg.isEmptyObject=function(e){if(lg.isObject(e)){for(var t in e)if(Kd.call(e,t))return!1;return!0}return!1},lg.isUndefined=function(e){return void 0===e},lg.isString=function(e){return"[object String]"==Zd.call(e)},lg.isDate=function(e){return"[object Date]"==Zd.call(e)},lg.isNumber=function(e){return"[object Number]"==Zd.call(e)},lg.isElement=function(e){return!(!e||1!==e.nodeType)},lg.encodeDates=function(e){return lg.each(e,function(t,r){lg.isDate(t)?e[r]=lg.formatDate(t):lg.isObject(t)&&(e[r]=lg.encodeDates(t))}),e},lg.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},lg.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())},lg.strip_empty_properties=function(e){var t={};return lg.each(e,function(e,r){lg.isString(e)&&e.length>0&&(t[r]=e)}),t},lg.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):lg.isArray(e)?(r=[],lg.each(e,function(e){r.push(lg.truncate(e,t))})):lg.isObject(e)?(r={},lg.each(e,function(e,n){r[n]=lg.truncate(e,t)})):r=e,r},lg.JSONEncode=function(){return 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":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},r=function(e,n){var i="",o=0,s="",a="",c=0,u=i,l=[],h=n[e];switch(h&&"object"==typeof h&&"function"==typeof h.toJSON&&(h=h.toJSON(e)),typeof h){case"string":return t(h);case"number":return isFinite(h)?String(h):"null";case"boolean":case"null":return String(h);case"object":if(!h)return"null";if(i+=" ",l=[],"[object Array]"===Zd.apply(h)){for(c=h.length,o=0;o<c;o+=1)l[o]=r(o,h)||"null";return a=0===l.length?"[]":i?"[\n"+i+l.join(",\n"+i)+"\n"+u+"]":"["+l.join(",")+"]",i=u,a}for(s in h)Kd.call(h,s)&&(a=r(s,h))&&l.push(t(s)+(i?": ":":")+a);return a=0===l.length?"{}":i?"{"+l.join(",")+u+"}":"{"+l.join(",")+"}",i=u,a}};return r("",{"":e})}}(),lg.JSONDecode=(Ud={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},Bd=function(e){var t=new SyntaxError(e);throw t.at=Nd,t.text=Fd,t},jd=function(e){return e&&e!==Dd&&Bd("Expected '"+e+"' instead of '"+Dd+"'"),Dd=Fd.charAt(Nd),Nd+=1,Dd},qd=function(){var e,t="";for("-"===Dd&&(t="-",jd("-"));Dd>="0"&&Dd<="9";)t+=Dd,jd();if("."===Dd)for(t+=".";jd()&&Dd>="0"&&Dd<="9";)t+=Dd;if("e"===Dd||"E"===Dd)for(t+=Dd,jd(),"-"!==Dd&&"+"!==Dd||(t+=Dd,jd());Dd>="0"&&Dd<="9";)t+=Dd,jd();if(e=+t,isFinite(e))return e;Bd("Bad number")},zd=function(){var e,t,r,n="";if('"'===Dd)for(;jd();){if('"'===Dd)return jd(),n;if("\\"===Dd)if(jd(),"u"===Dd){for(r=0,t=0;t<4&&(e=parseInt(jd(),16),isFinite(e));t+=1)r=16*r+e;n+=String.fromCharCode(r)}else{if("string"!=typeof Ud[Dd])break;n+=Ud[Dd]}else n+=Dd}Bd("Bad string")},Vd=function(){for(;Dd&&Dd<=" ";)jd()},Ld=function(){switch(Vd(),Dd){case"{":return function(){var e,t={};if("{"===Dd){if(jd("{"),Vd(),"}"===Dd)return jd("}"),t;for(;Dd;){if(e=zd(),Vd(),jd(":"),Object.hasOwnProperty.call(t,e)&&Bd('Duplicate key "'+e+'"'),t[e]=Ld(),Vd(),"}"===Dd)return jd("}"),t;jd(","),Vd()}}Bd("Bad object")}();case"[":return function(){var e=[];if("["===Dd){if(jd("["),Vd(),"]"===Dd)return jd("]"),e;for(;Dd;){if(e.push(Ld()),Vd(),"]"===Dd)return jd("]"),e;jd(","),Vd()}}Bd("Bad array")}();case'"':return zd();case"-":return qd();default:return Dd>="0"&&Dd<="9"?qd():function(){switch(Dd){case"t":return jd("t"),jd("r"),jd("u"),jd("e"),!0;case"f":return jd("f"),jd("a"),jd("l"),jd("s"),jd("e"),!1;case"n":return jd("n"),jd("u"),jd("l"),jd("l"),null}Bd('Unexpected "'+Dd+'"')}()}},function(e){var t;return Fd=e,Nd=0,Dd=" ",t=Ld(),Vd(),Dd&&Bd("Syntax error"),t}),lg.base64Encode=function(e){var t,r,n,i,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,c=0,u="",l=[];if(!e)return e;e=lg.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},lg.utf8Encode=function(e){var t,r,n,i,o="";for(t=r=0,n=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<n;i++){var s=e.charCodeAt(i),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&&(o+=e.substring(t,r)),o+=a,t=r=i+1)}return r>t&&(o+=e.substring(t,e.length)),o},lg.UUID=function(){try{return C.crypto.randomUUID()}catch(r){for(var e=new 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]="-",lg.map(e,function(e){return e.toString(16)}).join("")}};var mg=["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"];lg.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<mg.length;t++)if(-1!==e.indexOf(mg[t]))return!0;return!1},lg.HTTPBuildQuery=function(e,t){var r,n,i=[];return lg.isUndefined(t)&&(t="&"),lg.each(e,function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r}),i.join(t)},lg.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var r=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);if(null===r||r&&"string"!=typeof r[1]&&r[1].length)return"";var n=r[1];try{n=decodeURIComponent(n)}catch(e){hg.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},lg.cookie={get:function(e){for(var t=e+"=",r=eg.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=lg.JSONDecode(lg.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=Rg(eg.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+1e3*r),c="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure"),eg.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=Rg(eg.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+24*r*60*60*1e3),c="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure");var p=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u;return eg.cookie=p,p},remove:function(e,t,r){lg.cookie.set(e,"",-1,t,!1,!1,r)}};var vg=function(e){var t=!0;try{var r="__mplss_"+Ig(8);e.setItem(r,"xyz"),"xyz"!==e.getItem(r)&&(t=!1),e.removeItem(r)}catch(e){t=!1}return t},yg=null,_g=function(e,t){return null===yg||t?yg=vg(e):yg},bg=null;function wg(e,t,r){var n=function(e){hg.error(t+" error: "+e)};return{is_supported:function(n){var i=r(e,n);return i||hg.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 lg.JSONDecode(e.getItem(t))||{}}catch(e){}return null},set:function(t,r){try{e.setItem(t,r)}catch(e){n(e)}},remove:function(t){try{e.removeItem(t)}catch(e){n(e)}}}}var kg=function(){try{return C.localStorage}catch(e){return null}};lg.localStorage=wg(kg(),"localStorage",_g),lg.sessionStorage=wg(function(){try{return C.sessionStorage}catch(e){return null}}(),"sessionStorage",function(e,t){return null===bg||t?bg=vg(e):bg}),lg.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)if(t.addEventListener&&!i)t.addEventListener(r,n,!!o);else{var s="on"+r,a=t[s];t[s]=function(t,r,n){var i=function(i){if(i=i||e(C.event)){var o,s,a=!0;return lg.isFunction(n)&&(o=n(i)),s=r.call(t,i),!1!==o&&!1!==s||(a=!1),a}};return i}(t,n,a)}else hg.error("No valid element provided to register_event")}}();var Sg=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');lg.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(e,r){var n=" "+r+" ";return(" "+e.className+" ").replace(t," ").indexOf(n)>=0}function n(t){if(!eg.getElementsByTagName)return[];var n,i,o,s,a,c,u,l,h,p,f=t.split(" "),d=[eg];for(c=0;c<f.length;c++)if((n=f[c].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){o=(i=n.split("#"))[0];var g=i[1],m=eg.getElementById(g);if(!m||o&&m.nodeName.toLowerCase()!=o)return[];d=[m]}else if(n.indexOf(".")>-1){o=(i=n.split("."))[0];var v=i[1];for(o||(o="*"),s=[],a=0,u=0;u<d.length;u++)for(h="*"==o?e(d[u]):d[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];for(d=[],p=0,u=0;u<s.length;u++)s[u].className&&lg.isString(s[u].className)&&r(s[u],v)&&(d[p++]=s[u])}else{var y=n.match(Sg);if(y){o=y[1];var _,b=y[2],w=y[3],k=y[4];for(o||(o="*"),s=[],a=0,u=0;u<d.length;u++)for(h="*"==o?e(d[u]):d[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];switch(d=[],p=0,w){case"=":_=function(e){return e.getAttribute(b)==k};break;case"~":_=function(e){return e.getAttribute(b).match(new RegExp("\\b"+k+"\\b"))};break;case"|":_=function(e){return e.getAttribute(b).match(new RegExp("^"+k+"-?"))};break;case"^":_=function(e){return 0===e.getAttribute(b).indexOf(k)};break;case"$":_=function(e){return e.getAttribute(b).lastIndexOf(k)==e.getAttribute(b).length-k.length};break;case"*":_=function(e){return e.getAttribute(b).indexOf(k)>-1};break;default:_=function(e){return e.getAttribute(b)}}for(d=[],p=0,u=0;u<s.length;u++)_(s[u])&&(d[p++]=s[u])}else{for(o=n,s=[],a=0,u=0;u<d.length;u++)for(h=d[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];d=s}}return d}return function(e){return lg.isElement(e)?[e]:lg.isObject(e)&&!lg.isUndefined(e.length)?e:n.call(this,e)}}();var Cg=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],xg=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];lg.info={campaignParams:function(e){var t="",r={};return lg.each(Cg,function(n){(t=lg.getQueryParam(eg.URL,n)).length?r[n]=t:void 0!==e&&(r[n]=e)}),r},clickParams:function(){var e="",t={};return lg.each(xg,function(r){(e=lg.getQueryParam(eg.URL,r)).length&&(t[r]=e)}),t},marketingParams:function(){return lg.extend(lg.info.campaignParams(),lg.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=lg.info.searchEngine(e),r="yahoo"!=t?"q":"p",n={};if(null!==t){n.$search_engine=t;var i=lg.getQueryParam(e,r);i.length&&(n.mp_keyword=i)}return n},browser:function(e,t,r){return t=t||"",r||lg.includes(e," OPR/")?lg.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":lg.includes(e,"IEMobile")||lg.includes(e,"WPDesktop")?"Internet Explorer Mobile":lg.includes(e,"SamsungBrowser/")?"Samsung Internet":lg.includes(e,"Edge")||lg.includes(e,"Edg/")?"Microsoft Edge":lg.includes(e,"FBIOS")?"Facebook Mobile":lg.includes(e,"Whale/")?"Whale Browser":lg.includes(e,"Chrome")?"Chrome":lg.includes(e,"CriOS")?"Chrome iOS":lg.includes(e,"UCWEB")||lg.includes(e,"UCBrowser")?"UC Browser":lg.includes(e,"FxiOS")?"Firefox iOS":lg.includes(t,"Apple")?lg.includes(e,"Mobile")?"Mobile Safari":"Safari":lg.includes(e,"Android")?"Android Mobile":lg.includes(e,"Konqueror")?"Konqueror":lg.includes(e,"Firefox")?"Firefox":lg.includes(e,"MSIE")||lg.includes(e,"Trident/")?"Internet Explorer":lg.includes(e,"Gecko")?"Mozilla":""},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+)?)/}[lg.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(){var e=ng;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},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 C.location.href},properties:function(e){return"object"!=typeof e&&(e={}),lg.extend(lg.strip_empty_properties({$os:lg.info.os(),$browser:lg.info.browser(ng,Qd.vendor,tg),$referrer:eg.referrer,$referring_domain:lg.info.referringDomain(eg.referrer),$device:lg.info.device(ng)}),{$current_url:lg.info.currentUrl(),$browser_version:lg.info.browserVersion(ng,Qd.vendor,tg),$screen_height:rg.height,$screen_width:rg.width,mp_lib:"web",$lib_version:R.LIB_VERSION,$insert_id:Ig(),time:lg.timestamp()/1e3},lg.strip_empty_properties(e))},people_properties:function(){return lg.extend(lg.strip_empty_properties({$os:lg.info.os(),$browser:lg.info.browser(ng,Qd.vendor,tg)}),{$browser_version:lg.info.browserVersion(ng,Qd.vendor,tg)})},mpPageViewProperties:function(){return lg.strip_empty_properties({current_page_title:eg.title,current_domain:C.location.hostname,current_url_path:C.location.pathname,current_url_protocol:C.location.protocol,current_url_search:C.location.search})}};var Ig=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},Eg=function(){return"00-"+lg.UUID().replace(/-/g,"")+"-"+lg.UUID().replace(/-/g,"").substring(0,16)+"-01"},Og=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Mg=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Rg=function(e){var t=Mg,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=Og);var i=e.match(t);return i?i[0]:""},Ag=function(){},Tg=function(e,t){for(var r=!1,n=0;n<t.length;n++)if(e.match(t[n])){r=!0;break}return r},Pg=null,Ng=null;"undefined"!=typeof JSON&&(Pg=JSON.stringify,Ng=JSON.parse),Pg=Pg||lg.JSONEncode,Ng=Ng||lg.JSONDecode;lg.info=lg.info,lg.info.browser=lg.info.browser,lg.info.browserVersion=lg.info.browserVersion,lg.info.device=lg.info.device,lg.info.properties=lg.info.properties,lg.isBlockedUA=lg.isBlockedUA,lg.isEmptyObject=lg.isEmptyObject,lg.isObject=lg.isObject,lg.JSONDecode=lg.JSONDecode,lg.JSONEncode=lg.JSONEncode,lg.toArray=lg.toArray,lg.NPO=Ad;var Dg=function(e,t,r){this.dbName=e,this.storeName=t,this.version=r.version,this.storeNamesInDb=r.storeNames,this.dbPromise=null};Dg.prototype._openDb=function(){var e=this.dbName,t=this.version,r=this.storeNamesInDb;return new Td(function(n,i){var o=C.indexedDB.open(e,t);o.onerror=function(){i(o.error)},o.onsuccess=function(){n(o.result)},o.onupgradeneeded=function(e){var t=e.target.result;r.forEach(function(e){t.objectStoreNames.contains(e)||t.createObjectStore(e)})}})},Dg.prototype.init=function(){return C.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof C.IDBDatabase?Td.resolve():Td.reject(e)})):Td.reject("indexedDB is not supported in this browser")},Dg.prototype.isInitialized=function(){return!!this.dbPromise},Dg.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(n){return new Td(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)):Td.reject(e)}.bind(this))},Dg.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})},Dg.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})},Dg.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},Dg.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var Fg="mixpanelBrowserDb",Lg="mixpanelRecordingEvents",Ug="mixpanelRecordingRegistry",Bg={version:1,storeNames:[Lg,Ug]};function jg(e,t){Kg(!0,e,t)}function qg(e,t){Kg(!1,e,t)}function zg(e,t){return"1"===Zg(e,t)}function Vg(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||C,r=t.navigator||{},n=!1;return lg.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(e){lg.includes([!0,1,"1","yes"],e)&&(n=!0)}),n}(t))return hg.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"===Zg(e,t);return r&&hg.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function Wg(e){return Xg(e,function(e){return this.get_config(e)})}function $g(e){return Xg(e,function(e){return this._get_config(e)})}function Hg(e){return Xg(e,function(e){return this._get_config(e)})}function Gg(e,t){Yg(t=t||{}).remove(Jg(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function Yg(e){return"localStorage"===(e=e||{}).persistenceType?lg.localStorage:lg.cookie}function Jg(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function Zg(e,t){return Yg(t).get(Jg(e,t))}function Kg(e,t,r){lg.isString(t)&&t.length?(Yg(r=r||{}).set(Jg(t,r),e?1:0,lg.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})):hg.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function Xg(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=Vg(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(e){hg.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)}}var Qg=fg("lock"),em=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||kg(),this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||Td};em.prototype.withLock=function(e,t){return new(0,this.promiseImpl)(lg.bind(function(r,n){var i=t||(new Date).getTime()+"|"+Math.random(),o=(new Date).getTime(),s=this.storageKey,a=this.pollIntervalMS,c=this.timeoutMS,u=this.storage,l=s+":X",h=s+":Y",p=s+":Z",f=function(e){if((new Date).getTime()-o>c)return Qg.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+i+"]"),u.removeItem(p),u.removeItem(h),void m();setTimeout(function(){try{e()}catch(e){n(e)}},a*(Math.random()+.1))},d=function(e,t){e()?t():f(function(){d(e,t)})},g=function(){var e=u.getItem(h);return(!e||e===i)&&(u.setItem(h,i),u.getItem(h)===i||(_g(u,!0)||n(new Error("localStorage support dropped while acquiring lock")),!1))},m=function(){u.setItem(l,i),d(g,function(){u.getItem(l)!==i?f(function(){u.getItem(h)===i?d(function(){return!u.getItem(p)},v):m()}):v()})},v=function(){u.setItem(p,"1");var t=function(){u.removeItem(p),u.getItem(h)===i&&u.removeItem(h),u.getItem(l)===i&&u.removeItem(l)};e().then(function(e){t(),r(e)}).catch(function(e){t(),n(e)})};try{if(!_g(u,!0))throw new Error("localStorage support check failed");m()}catch(e){n(e)}},this))};var tm=function(e){this.storage=e||kg()};tm.prototype.init=function(){return this.storage?Td.resolve():Td.reject(new Error("localStorage is not available"))},tm.prototype.isInitialized=function(){return!0},tm.prototype.setItem=function(e,t){return new Td(lg.bind(function(r,n){try{this.storage.setItem(e,Pg(t))}catch(e){n(e)}r()},this))},tm.prototype.getItem=function(e){return new Td(lg.bind(function(t,r){var n;try{n=Ng(this.storage.getItem(e))}catch(e){r(e)}t(n)},this))},tm.prototype.removeItem=function(e){return new Td(lg.bind(function(t,r){try{this.storage.removeItem(e)}catch(e){r(e)}t()},this))};var rm=fg("batch"),nm=function(e,t){var r,n,i,o;t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new tm,this.lock=new em(e,{storage:t.sharedLockStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||lg.bind(rm.error,rm),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=(r=lg.bind(this._enqueuePersisted,this),n=t.enqueueThrottleMs,i=null,o=[],function(e){var t=this;return o.push(e),i||(i=new Td(function(e){setTimeout(function(){var n=r.apply(t,[o]);i=null,o=[],e(n)},n)})),i}):this.enqueuePersisted=lg.bind(function(e){return this._enqueuePersisted([e])},this)};nm.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?Td.resolve():this.queueStorage.init().then(lg.bind(function(){this.initialized=!0},this)).catch(lg.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},nm.prototype.enqueue=function(e,t){var r={id:Ig(),flushAfter:(new Date).getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),Td.resolve(!0))},nm.prototype._enqueuePersisted=function(e){var t=lg.bind(function(){return this.ensureInit().then(lg.bind(function(){return this.readFromStorage()},this)).then(lg.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(lg.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(lg.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(lg.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},nm.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(lg.bind(function(){return this.readFromStorage()},this)).then(lg.bind(function(r){if(r.length){var n={};lg.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)):Td.resolve(t)};var im=function(e,t){var r=[];return lg.each(e,function(e){e.id&&!t[e.id]&&r.push(e)}),r};nm.prototype.removeItemsByID=function(e){var t={};if(lg.each(e,function(e){t[e]=!0}),this.memQueue=im(this.memQueue,t),this.usePersistence){var r=lg.bind(function(){return this.ensureInit().then(lg.bind(function(){return this.readFromStorage()},this)).then(lg.bind(function(e){return e=im(e,t),this.saveToStorage(e)},this)).then(lg.bind(function(){return this.readFromStorage()},this)).then(lg.bind(function(e){for(var r=0;r<e.length;r++){var n=e[r];if(n.id&&t[n.id])throw new Error("Item not removed from storage")}return!0},this)).catch(lg.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(r,this.pid).catch(lg.bind(function(e){return this.reportError("Error acquiring storage lock",e),!_g(this.lock.storage,!0)&&r().then(lg.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(lg.bind(function(e){return this.reportError("Error clearing queue",e),!1},this))},this))}return Td.resolve(!0)};var om=function(e,t){var r=[];return lg.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};nm.prototype.updatePayloads=function(e){return this.memQueue=om(this.memQueue,e),this.usePersistence?this.lock.withLock(lg.bind(function(){return this.ensureInit().then(lg.bind(function(){return this.readFromStorage()},this)).then(lg.bind(function(t){return t=om(t,e),this.saveToStorage(t)},this)).catch(lg.bind(function(t){return this.reportError("Error updating items",e,t),!1},this))},this),this.pid).catch(lg.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this)):Td.resolve(!0)},nm.prototype.readFromStorage=function(){return this.ensureInit().then(lg.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(lg.bind(function(e){return e&&(lg.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]},this)).catch(lg.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},nm.prototype.saveToStorage=function(e){return this.ensureInit().then(lg.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(lg.bind(function(e){return this.reportError("Error saving queue",e),!1},this))},nm.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(lg.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):Td.resolve()};var sm=fg("batch"),am=function(e,t){this.errorReporter=t.errorReporter,this.queue=new nm(e,{errorReporter:lg.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};am.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},am.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},am.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},am.prototype.clear=function(){return this.queue.clear()},am.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},am.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},am.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(lg.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},am.prototype.sendRequestPromise=function(e,t){return new Td(lg.bind(function(r){this.sendRequest(e,t,r)},this))},am.prototype.flush=function(e){if(this.requestInProgress)return sm.log("Flush: Request already in progress"),Td.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(lg.bind(function(i){var o=i.length===n,s=[],a={};if(lg.each(i,function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=lg.extend({},t.properties,{mp_sent_by_lib_version:R.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(),Td.resolve();var c=lg.bind(function(){return this.queue.removeItemsByID(lg.map(i,function(e){return e.id})).then(lg.bind(function(e){return lg.each(i,lg.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(),Td.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),Td.resolve())},this))},this),u=lg.bind(function(o){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(lg.isObject(o)&&"timeout"===o.error&&(new Date).getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(lg.isObject(o)&&(o.httpStatusCode>=500||429===o.httpStatusCode||o.httpStatusCode<=0&&(l=C.navigator.onLine,!lg.isUndefined(l)&&!l)||"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),Td.resolve()}if(lg.isObject(o)&&413===o.httpStatusCode){if(i.length>1){var u=Math.max(1,Math.floor(n/2));return this.batchSize=Math.min(this.batchSize,u,i.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),Td.resolve()}return this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),c()}return c()}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}var l},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(l.transport="sendBeacon"),sm.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,l).then(u)},this)).catch(lg.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},am.prototype.reportError=function(e,t){if(sm.error.apply(sm.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(e){sm.error(e)}};var cm=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},um=function(e,t){if(!lg.isArray(e))return e&&t.critical("record_allowed_iframe_origins must be an array of origin strings, cross-origin recording will be disabled."),[];for(var r=[],n=0;n<e.length;n++)try{var i=new URL(e[n]).origin;if("null"===i){t.critical(e[n]+" has an opaque origin. Skipping this entry.");continue}r.push(i)}catch(r){t.critical(e[n]+" is not a valid origin URL. Skipping this entry.")}return r},lm="change",hm="click",pm="hashchange",fm="load",dm="mp_locationchange",gm="popstate",mm="scrollend",vm="scroll",ym="submit",_m="visibilitychange",bm=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],wm=["mp-include"],km=["mp-no-track"],Sm=km.concat(["mp-sensitive"]),Cm=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],xm={button:!0,checkbox:!0,combobox:!0,grid:!0,link:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,navigation:!0,option:!0,radio:!0,radiogroup:!0,searchbox:!0,slider:!0,spinbutton:!0,switch:!0,tab:!0,tablist:!0,textbox:!0,tree:!0,treegrid:!0,treeitem:!0},Im={base:!0,head:!0,html:!0,link:!0,meta:!0,script:!0,style:!0,title:!0,br:!0,hr:!0,wbr:!0,noscript:!0,picture:!0,source:!0,template:!0,track:!0},Em={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},Om=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],Mm=fg("autocapture");function Rm(e){for(var t={},r=Am(e).split(" "),n=0;n<r.length;n++){var i=r[n];i&&(t[i]=!0)}return t}function Am(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function Tm(e){if(e.previousElementSibling)return e.previousElementSibling;do{e=e.previousSibling}while(e&&!Um(e));return e}function Pm(e,t,r,n,i,o){var s={$classes:Am(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s.$id=a),zm(e,t,i,o)&&lg.each(Cm.concat(n),function(t){if(e.hasAttribute(t)&&!r[t]){var n=e.getAttribute(t);Vm(n)&&(s["$attr-"+t]=n)}});for(var c=1,u=1,l=e;l=Tm(l);)c++,l.tagName===e.tagName&&u++;return s.$nth_child=c,s.$nth_of_type=u,s}function Nm(e,t){var r=t.allowElementCallback,n=t.allowSelectors||[],i=t.blockAttrs||[],o=t.blockElementCallback,s=t.blockSelectors||[],a=t.captureTextContent||!1,c=t.captureExtraAttrs||[],u=t.capturedForHeatMap||!1,l={};lg.each(i,function(e){l[e]=!0});var h=null,p=void 0===e.target?e.srcElement:e.target;if(jm(p)&&(p=p.parentNode),function(e,t){if(!e||Bm(e,"html")||!Um(e))return!1;switch(e.tagName.toLowerCase()){case"form":return t.type===ym;case"input":return-1===["button","submit"].indexOf(e.getAttribute("type"))?t.type===lm:t.type===hm;case"select":case"textarea":return t.type===lm;default:return t.type===hm}}(p,e)&&Fm(p,e,r,n)&&!Lm(p,e,o,s)){for(var f=[p],d=p;d.parentNode&&!Bm(d,"body");)f.push(d.parentNode),d=d.parentNode;var g,m=[],v=!1;if(lg.each(f,function(t){var i=zm(t,e,r,n);l.href||"a"!==t.tagName.toLowerCase()||(g=t.getAttribute("href"),g=i&&Vm(g)&&g),Lm(t,e,o,s)&&(v=!0),m.push(Pm(t,e,l,c,r,n))},this),!v){var y=eg.documentElement;if(h={$event_type:e.type,$host:C.location.host,$pathname:C.location.pathname,$elements:m,$el_attr__href:g,$viewportHeight:Math.max(y.clientHeight,C.innerHeight||0),$viewportWidth:Math.max(y.clientWidth,C.innerWidth||0),$pageHeight:eg.body.offsetHeight||0,$pageWidth:eg.body.offsetWidth||0},lg.each(c,function(e){if(!l[e]&&p.hasAttribute(e)){var t=p.getAttribute(e);Vm(t)&&(h["$el_attr__"+e]=t)}}),a&&(_=Dm(p,e,r,n))&&_.length&&(h.$el_text=_),e.type===hm&&(lg.each(bm,function(t){t in e&&(h["$"+t]=e[t])}),u&&(h.$captured_for_heatmap=!0),p=function(e){for(var t=e.target,r=e.composedPath(),n=0;n<r.length;n++){var i=r[n];if(Bm(i,"a")||Bm(i,"button")||Bm(i,"input")||Bm(i,"select")||i.getAttribute&&"button"===i.getAttribute("role")){t=i;break}if(i===t)break}return t}(e)),a){var _=Dm(p,e,r,n);_&&_.length&&(h.$el_text=_)}if(p){if(!Fm(p,e,r,n)||Lm(p,e,o,s))return null;var b=Pm(p,e,l,c,r,n);h.$target=b,h.$el_classes=b.$classes,lg.extend(h,lg.strip_empty_properties({$el_id:b.$id,$el_tag_name:b.$tag_name}))}}}return h}function Dm(e,t,r,n){var i="";return zm(e,t,r,n)&&e.childNodes&&e.childNodes.length&&lg.each(e.childNodes,function(e){jm(e)&&e.textContent&&(i+=lg.trim(e.textContent).split(/(\s+)/).filter(Vm).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),lg.trim(i)}function Fm(e,t,r,n){if(r)try{if(!r(e,t))return!1}catch(e){return Mm.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){Mm.critical("Error while checking selector: "+o,e)}}return!1}function Lm(e,t,r,n){var i;if(r)try{if(r(e,t))return!0}catch(e){return Mm.critical("Error while checking element in blockElementCallback",e),!0}if(n&&n.length)for(i=0;i<n.length;i++){var o=n[i];try{if(e.matches(o))return!0}catch(e){Mm.critical("Error while checking selector: "+o,e)}}var s=Rm(e);for(i=0;i<km.length;i++)if(s[km[i]])return!0;return!1}function Um(e){return e&&1===e.nodeType}function Bm(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function jm(e){return e&&3===e.nodeType}function qm(e){var t=(e.name||e.id||"").toString().toLowerCase();if("string"==typeof t){if(/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(t.replace(/[^a-zA-Z0-9]/g,"")))return!0}return!1}function zm(e,t,r,n){var i;if(!Fm(e,t,r,n))return!1;for(var o=e;o.parentNode&&!Bm(o,"body");o=o.parentNode){var s=Rm(o);for(i=0;i<Sm.length;i++)if(s[Sm[i]])return!1}var a=Rm(e);for(i=0;i<wm.length;i++)if(a[wm[i]])return!0;if(Bm(e,"input")||Bm(e,"select")||Bm(e,"textarea")||"true"===e.getAttribute("contenteditable"))return!1;var c=e.type||"";if("string"==typeof c)switch(c.toLowerCase()){case"hidden":case"password":return!1}return!qm(e)}function Vm(e){if(null===e||lg.isUndefined(e))return!1;if("string"==typeof e){e=lg.trim(e);if(/^(?:(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,"")))return!1;if(/(^\d{3}-?\d{2}-?\d{4}$)/.test(e))return!1}return!0}function Wm(e){var t="onscrollend"in C,r=dg(e),n=mm;if(!t){var i=null;r=dg(function(){clearTimeout(i),i=setTimeout(e,100)}),n=vm}return{listener:r,eventType:n}}function $m(e){var t=e.tagName.toLowerCase();return"button"===t||"input"===t||"select"===t||"textarea"===t||"details"===t||"dialog"===t||(!!e.isContentEditable||(!!(e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend)||(!!function(e){for(var t=0;t<Om.length;t++)if(e.hasAttribute(Om[t]))return!0;return!1}(e)||(!!function(e){var t=e.getAttribute("role");if(!t)return!1;var r=t.trim().split(/\s+/)[0].toLowerCase();return xm[r]}(e)||(!("a"!==t||!e.hasAttribute("href"))||!!e.hasAttribute("tabindex"))))))}function Hm(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(Im[t])return!0;if($m(e))return!1;for(var r=e.parentElement,n=0;r&&n<5;){if($m(r))return!1;if(r.getRootNode&&r.getRootNode()!==eg){var i=r.getRootNode();if(i.host&&$m(i.host))return!1}r=r.parentElement,n++}return!!Em[t]}function Gm(e){return"composedPath"in e?e.composedPath():[]}function Ym(e){var t=Gm(e);return t&&t.length>0?t[0]:e.target||e.srcElement}var Jm=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",Zm=["password","email","tel","hidden"];function Km(e){return e?Array.isArray(e)?e:[e]:[]}function Xm(e,t){return!!t&&!!e.closest(t)}function Qm(e,t){var r=(e.getAttribute("type")||"").toLowerCase();if(-1!==Zm.indexOf(r))return!0;var n=(e.getAttribute("autocomplete")||"").toLowerCase();return!(!n||""===n||"off"===n)||(!!e.hasAttribute("data-rr-is-password")||(!!qm(e)||(t.input.maskAll?!Xm(e,t.input.unmaskingSelector):!!Xm(e,t.input.maskingSelector)||!!Xm(e,Jm))))}function ev(e,t){return!!e&&(!(!t.text._legacyClassRegex||!ml(e,t.text._legacyClassRegex))||(t.text.maskAll?!Xm(e,t.text.unmaskingSelector):!!Xm(e,t.text.maskingSelector)||!!Xm(e,Jm)))}var tv=fg("network-plugin");function rv(e){return Math.round(Date.now()-e.performance.now())}var nv={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],ignoreRequestFn:function(){return!1},recordHeaders:{request:[],response:[]},recordBodyUrls:{request:[],response:[]},recordInitialRequests:!1};function iv(e){return"resource"===e.entryType}function ov(e,t,r){if(!(t in e)||"function"!=typeof e[t])return function(){};var n=e[t],i=r(n);return e[t]=i,function(){e[t]=n}}var sv=1048576;function av(e){return e&&"string"==typeof e&&e.length>sv?(tv.error("Body truncated from "+e.length+" to "+sv+" characters"),e.substring(0,sv)+"... [truncated]"):e}function cv(e,t,r){return!(!t[e]||0===t[e].length)&&t[e].includes(r.toLowerCase())}function uv(e,t,r){return!(!t[e]||0===t[e].length)&&Tg(r,t[e])}function lv(e){if(null==e)return null;var t;if("string"==typeof e)t=e;else if(e instanceof Document)t=e.textContent;else if(e instanceof FormData)t=lg.HTTPBuildQuery(e);else{if(!lg.isObject(e))return"Cannot read body of type "+typeof e;try{t=JSON.stringify(e)}catch(e){return"Failed to stringify response object"}}return av(t)}function hv(e){return new Promise(function(t){var r=setTimeout(function(){t("Timeout while trying to read body")},500);try{e.clone().text().then(function(e){clearTimeout(r),t(av(e))},function(e){clearTimeout(r),t("Failed to read body: "+String(e))})}catch(e){clearTimeout(r),t("Failed to read body: "+String(e))}})}function pv(e,t,r,n,i,o){if(void 0===o&&(o=0),o>10)return tv.error("Cannot find performance entry"),Promise.resolve(null);var s=function(e,t){for(var r=e.length-1;r>=0;r-=1)if(t(e[r]))return e[r]}(e.performance.getEntriesByName(r),function(e){return iv(e)&&e.initiatorType===t&&(!n||e.startTime>=n)&&(!i||e.startTime<=i)});return s?Promise.resolve(s):new Promise(function(e){setTimeout(e,50*o)}).then(function(){return pv(e,t,r,n,i,o+1)})}function fv(e,t,r){if(!("performance"in t))return function(){};var n=Object.assign({},nv.recordHeaders,r.recordHeaders||{}),i=Object.assign({},nv.recordBodyUrls,r.recordBodyUrls||{});r=Object.assign({},r,{recordHeaders:n,recordBodyUrls:i});var o=Object.assign({},nv,r),s=function(t){var r=t.requests.filter(function(e){return!Tg(e.url,o.ignoreRequestUrls||[])&&!o.ignoreRequestFn(e)});(r.length>0||t.isInitial)&&e(Object.assign({},t,{requests:r}))},a=function(e,t,r){if(!t.PerformanceObserver)return tv.error("PerformanceObserver not supported"),function(){};if(r.recordInitialRequests){var n=t.performance.getEntries().filter(function(e){return function(e){return"navigation"===e.entryType}(e)||iv(e)&&r.initiatorTypes.includes(e.initiatorType)});e({requests:n.map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:rv(t)}}),isInitial:!0})}var i=new t.PerformanceObserver(function(n){var i=n.getEntries().filter(function(e){return iv(e)&&r.initiatorTypes.includes(e.initiatorType)&&"xmlhttprequest"!==e.initiatorType&&"fetch"!==e.initiatorType});e({requests:i.map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:rv(t)}})})});return i.observe({entryTypes:["navigation","resource"]}),function(){i.disconnect()}}(s,t,o),c=function(e,t,r){if(!r.initiatorTypes.includes("xmlhttprequest"))return function(){};var n=ov(t.XMLHttpRequest.prototype,"open",function(n){return function(i,o,s,a,c){void 0===s&&(s=!0);var u,l,h=this,p=new Request(o,{method:i}),f={},d={},g=h.setRequestHeader.bind(h);h.setRequestHeader=function(e,t){return cv("request",r.recordHeaders,e)&&(d[e]=t),g(e,t)},f.requestHeaders=d;var m=h.send.bind(h);h.send=function(e){return uv("request",r.recordBodyUrls,p.url)&&(f.requestBody=lv(e)),u=t.performance.now(),m(e)},h.addEventListener("readystatechange",function(){if(h.readyState===h.DONE){l=t.performance.now();var n={},i=h.getAllResponseHeaders();i&&i.trim().split(/[\r\n]+/).forEach(function(e){if(e){var t=e.indexOf(": ");if(-1!==t){var i=e.substring(0,t),o=e.substring(t+2);i&&cv("response",r.recordHeaders,i)&&(n[i]=o)}}}),f.responseHeaders=n,uv("response",r.recordBodyUrls,p.url)&&(f.responseBody=lv(h.response)),pv(t,"xmlhttprequest",p.url,u,l).then(function(r){if(r){var n={url:r.name,method:p.method,initiatorType:r.initiatorType,status:h.status,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:rv(t),requestHeaders:f.requestHeaders,requestBody:f.requestBody,responseHeaders:f.responseHeaders,responseBody:f.responseBody};e({requests:[n]})}else tv.error("Failed to get performance entry for XHR request to "+p.url)}).catch(function(e){tv.error("Error recording XHR request to "+p.url+": "+String(e))})}}),n.call(h,i,o,s,a,c)}});return function(){n()}}(s,t,o),u=function(e,t,r){if(!r.initiatorTypes.includes("fetch"))return function(){};var n=ov(t,"fetch",function(n){return function(){var i,o,s,a,c=new Request(arguments[0],arguments[1]),u={},l=Promise.resolve(void 0),h=Promise.resolve(void 0);try{var p={};c.headers.forEach(function(e,t){cv("request",r.recordHeaders,t)&&(p[t]=e)}),u.requestHeaders=p,uv("request",r.recordBodyUrls,c.url)&&(l=hv(c).then(function(e){u.requestBody=e})),o=t.performance.now(),a=n.apply(t,arguments).then(function(e){i=e,s=t.performance.now();var n={};return i.headers.forEach(function(e,t){cv("response",r.recordHeaders,t)&&(n[t]=e)}),u.responseHeaders=n,uv("response",r.recordBodyUrls,c.url)&&(h=hv(i).then(function(e){u.responseBody=e})),i})}catch(e){a=Promise.reject(e)}return Promise.all([l,h,a]).then(function(){return pv(t,"fetch",c.url,o,s)}).then(function(r){if(r){var n={url:r.name,method:c.method,initiatorType:r.initiatorType,status:i?i.status:void 0,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:rv(t),requestHeaders:u.requestHeaders,requestBody:u.requestBody,responseHeaders:u.responseHeaders,responseBody:u.responseBody};e({requests:[n]})}else tv.error("Failed to get performance entry for fetch request to "+c.url)}).catch(function(e){tv.error("Error recording fetch request to "+c.url+": "+String(e))}),a}});return function(){n()}}(s,t,o);return function(){a(),c(),u()}}var dv=fg("recorder"),gv=C.CompressionStream,mv={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},vv=new Set([ru.MouseMove,ru.MouseInteraction,ru.Scroll,ru.ViewportResize,ru.Input,ru.TouchMove,ru.MediaInteraction,ru.Drag,ru.Selection]);var yv=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||Ag,this._onMaxLengthReached=e.onMaxLengthReached||Ag,this._onBatchSent=e.onBatchSent||Ag,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.lastEventTimestamp=e.lastEventTimestamp||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=Wd,this.recordMinMs=0,this._recordMinMsCheckStart=null;var t=_g(e.sharedLockStorage||kg(),!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new Dg(Fg,Lg,Bg),this.batcher=new am(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:mv,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:250,sharedLockTimeoutMS:1e4})};yv.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},yv.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init().catch(function(){this.reportError("Error initializing IndexedDB storage for unloading persisted data.")}.bind(this)).then(function(){return this.getDurationMs()<this._getRecordMinMs()?this.queueStorage.removeItem(this.batcherKey):this.batcher.flush().then(function(){return this.queueStorage.removeItem(this.batcherKey)}.bind(this))}.bind(this))},yv.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},yv.prototype.get_config=function(e){return this.getConfig(e)},yv.prototype.startRecording=function(e){if(null!==this._rrwebRecord)if(null===this._stopRecording){this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>Wd&&(this.recordMaxMs=Wd,dv.critical("record_max_ms cannot be greater than "+Wd+"ms. Capping value.")),this.maxExpires||(this.maxExpires=(new Date).getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=(new Date).getTime(),this.batchStartUrl=lg.info.currentUrl(),this.replayStartUrl=lg.info.currentUrl()),e||this.recordMinMs>0?(this.batcher.stop(),this._recordMinMsCheckStart=null):this.batcher.start();var t=function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=(new Date).getTime()+e}.bind(this);t();var r=this.getConfig("record_block_selector");""!==r&&null!==r||(r=void 0);var n=function(e){var t={input:{maskingSelector:"",unmaskingSelector:"",maskAll:!0},text:{maskingSelector:"",unmaskingSelector:"",maskAll:!0}},r=e.get_config("record_mask_input_selector"),n=e.get_config("record_unmask_input_selector"),i=e.get_config("record_mask_all_inputs");t.input.maskingSelector=Km(r).join(","),t.input.unmaskingSelector=Km(n).join(","),void 0!==i&&(t.input.maskAll=i);var o=e.get_config("record_mask_text_selector"),s=e.get_config("record_unmask_text_selector"),a=e.get_config("record_mask_all_text"),c=e.get_config("record_mask_text_class"),u=Km(o);if(c)if(c instanceof RegExp)t.text._legacyClassRegex=c;else{var l="."+c;-1===u.indexOf(l)&&u.push(l)}return t.text.maskingSelector=u.join(","),t.text.unmaskingSelector=Km(s).join(","),void 0===a&&void 0!==o?t.text.maskAll=!1:void 0!==a&&(t.text.maskAll=a),t}(this._mixpanel),i=[];if(this.getConfig("record_network")){var o=this.getConfig("record_network_options")||{},s=(o.ignoreRequestUrls||[]).slice();s.push(this._getApiRoute()),o.ignoreRequestUrls=s,i.push(function(e){return{name:"rrweb/network@1.mp",observer:fv,options:e}}(o))}this.getConfig("record_console")&&i.push(function(e){return{name:"rrweb/console@1",observer:gd,options:e}}({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}}));var a=um(this.getConfig("record_allowed_iframe_origins"),dv);try{this._stopRecording=this._rrwebRecord({emit:function(e){this.idleExpires&&this.idleExpires<e.timestamp?this._onIdleTimeout():(null===this._recordMinMsCheckStart&&(this._recordMinMsCheckStart=e.timestamp),function(e){return e.type===tu.IncrementalSnapshot&&vv.has(e.data.source)}(e)&&(this.batcher.stopped&&e.timestamp-this._recordMinMsCheckStart>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e),(null===this.lastEventTimestamp||e.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=e.timestamp))}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn(Qm,n),maskTextFn:this._getMaskFn(ev,n),recordCrossOriginIframes:a.length>0,allowedIframeOrigins:a,recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:i})}catch(e){this.reportError("Unexpected error when starting rrweb recording.",e)}if("function"!=typeof this._stopRecording)return this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,void this.stopRecording();var c=this.maxExpires-(new Date).getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),c)}else dv.log("Recording already in progress, skipping startRecording.");else this.reportError("rrweb record function not provided. ")},yv.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError("Error with rrweb stopRecording",e)}this._stopRecording=null}var t;return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},yv.prototype.isRrwebStopped=function(){return null===this._stopRecording},yv.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)},yv.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(t){this.reportError("Error getting tab ID for serialization ",t),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},yv.deserialize=function(e,t){return new yv(lg.extend({},t,{replayId:e.replayId,batchStartUrl:e.batchStartUrl,replayStartUrl:e.replayStartUrl,idleExpires:e.idleExpires,maxExpires:e.maxExpires,replayStartTime:e.replayStartTime,lastEventTimestamp:e.lastEventTimestamp,seqNo:e.seqNo,sharedLockStorage:t.sharedLockStorage}))},yv.prototype._getApiRoute=function(){return this.getConfig("api_routes").record},yv.prototype._sendRequest=function(e,t,r,n){var i=function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=lg.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");C.fetch(o+"/"+this._getApiRoute()+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then(function(e){e.json().then(function(t){i(e,t)}).catch(function(e){n({error:e})})}).catch(function(e){n({error:e,httpStatusCode:0})})},yv.prototype._flushEvents=Wg(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===tu.FullSnapshot&&(a=!0);if(0===this.seqNo){if(!a)return r({error:"First batch does not contain a full snapshot. Aborting recording."}),void this.stopRecording(!0);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:R.LIB_VERSION,batch_start_time:o/1e3,mp_lib:"web",replay_id:i,replay_length_ms:u,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},h=JSON.stringify(e);if(Object.assign(l,this.getUserIdInfo()),function(e,t,r){if(!C.CompressionStream)return!1;var n=lg.info.browser(e,t,r),i=lg.info.browserVersion(e,t,r);return!(("Safari"===n||"Mobile Safari"===n)&&i>=16.4&&i<16.6)}(ng,Qd.vendor,tg)){var p=new Blob([h],{type:"application/json"}).stream().pipeThrough(new gv("gzip"));new Response(p).blob().then(function(e){l.format="gzip",this._sendRequest(i,l,e,r)}.bind(this))}else l.format="body",this._sendRequest(i,l,h,r)}}),yv.prototype.reportError=function(e,t){dv.error.apply(dv.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(e){dv.error(e)}},yv.prototype.getDurationMs=function(){return null===this.replayStartTime?0:null===this.lastEventTimestamp?(new Date).getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},yv.prototype._getRecordMinMs=function(){var e=this.getConfig("record_min_ms");return e>$d?(dv.critical("record_min_ms cannot be greater than 8000ms. Capping value."),$d):e},yv.prototype._getMaskFn=function(e,t){return function(r,n){if(!r.trim().length)return"";var i=!0;try{i=e(n,t)}catch(e){this.reportError("Error checking if text should be masked, defaulting to masked",e)}if(i){var o=Math.min(r.length,1e4);return"*".repeat(o)}return r}.bind(this)};var _v=function(e){this.idb=new Dg(Fg,Ug,Bg),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};_v.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},_v.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},_v.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return Td.resolve();var t=e.tabId;return t?this.idb.init().then(function(){return this.idb.setItem(t,e)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),Td.resolve())},_v.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}.bind(this)).then(function(e){return cm(e)?null:e}.bind(this)).catch(this.handleError.bind(this)):Td.resolve(null)},_v.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},_v.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then(function(e){if(e)return e.maxExpires=0,this.setActiveRecording(e)}.bind(this)).catch(this.handleError.bind(this))},_v.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):Td.resolve()},_v.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(e){var t=e.filter(function(e){return cm(e)}).map(function(e){return yv.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 Td.all(t)}.bind(this)).catch(this.handleError.bind(this)):Td.resolve([])};var bv=fg("recorder"),wv=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||sl,this.sharedLockStorage=r,this.recordingRegistry=new _v({mixpanelInstance:this.mixpanelInstance,errorReporter:bv.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};function kv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}wv.prototype.startRecording=function(e){if(e=e||{},!this.activeRecording||this.activeRecording.isRrwebStopped()){var t=function(){bv.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),r=function(){bv.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:lg.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=yv.deserialize(e.activeSerializedRecording,i):this.activeRecording=new yv(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())}bv.log("Recording already in progress, skipping startRecording.")},wv.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))},wv.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},wv.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return Td.resolve()},wv.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),Td.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(bv.log("No resumable recording found."),null)}.bind(this))},wv.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},wv.prototype.isRecording=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()},wv.prototype.getActiveReplayId=function(){return this.isRecording()?this.activeRecording.replayId:null},Object.defineProperty(wv.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),C[T]=wv;var Sv,Cv={exports:{}};var xv=(Sv||(Sv=1,Cv.exports=function(){function e(e){for(var t=[],r=0,n=e.length;r<n;r++)-1===t.indexOf(e[r])&&t.push(e[r]);return t}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var t={},r={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,r){return void 0===r?e<t:e<t&&t<r},"<=":function(e,t,r){return void 0===r?e<=t:e<=t&&t<=r},"!!":function(e){return t.truthy(e)},"!":function(e){return!t.truthy(e)},"%":function(e,t){return e%t},log:function(e){return console.log(e),e},in:function(e,t){return!(!t||void 0===t.indexOf)&&-1!==t.indexOf(e)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(e,t,r){if(r<0){var n=String(e).substr(t);return n.substr(0,n.length+r)}return String(e).substr(t,r)},"+":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)+parseFloat(t,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)*parseFloat(t,10)})},"-":function(e,t){return void 0===t?-e:e-t},"/":function(e,t){return e/t},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,function(e,t){return e.concat(t)},[])},var:function(e,t){var r=void 0===t?null:t,n=this;if(void 0===e||""===e||null===e)return n;for(var i=String(e).split("."),o=0;o<i.length;o++){if(null==n)return r;if(void 0===(n=n[i[o]]))return r}return n},missing:function(){for(var e=[],r=Array.isArray(arguments[0])?arguments[0]:arguments,n=0;n<r.length;n++){var i=r[n],o=t.apply({var:i},this);null!==o&&""!==o||e.push(i)}return e},missing_some:function(e,r){var n=t.apply({missing:r},this);return r.length-n.length>=e?[]:n}};return t.is_logic=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},t.truthy=function(e){return!(Array.isArray(e)&&0===e.length||!e)},t.get_operator=function(e){return Object.keys(e)[0]},t.get_values=function(e){return e[t.get_operator(e)]},t.apply=function(e,n){if(Array.isArray(e))return e.map(function(e){return t.apply(e,n)});if(!t.is_logic(e))return e;var i,o,s,a,c,u=t.get_operator(e),l=e[u];if(Array.isArray(l)||(l=[l]),"if"===u||"?:"==u){for(i=0;i<l.length-1;i+=2)if(t.truthy(t.apply(l[i],n)))return t.apply(l[i+1],n);return l.length===i+1?t.apply(l[i],n):null}if("and"===u){for(i=0;i<l.length;i+=1)if(o=t.apply(l[i],n),!t.truthy(o))return o;return o}if("or"===u){for(i=0;i<l.length;i+=1)if(o=t.apply(l[i],n),t.truthy(o))return o;return o}if("filter"===u)return a=t.apply(l[0],n),s=l[1],Array.isArray(a)?a.filter(function(e){return t.truthy(t.apply(s,e))}):[];if("map"===u)return a=t.apply(l[0],n),s=l[1],Array.isArray(a)?a.map(function(e){return t.apply(s,e)}):[];if("reduce"===u)return a=t.apply(l[0],n),s=l[1],c=void 0!==l[2]?t.apply(l[2],n):null,Array.isArray(a)?a.reduce(function(e,r){return t.apply(s,{current:r,accumulator:e})},c):c;if("all"===u){if(a=t.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!1;for(i=0;i<a.length;i+=1)if(!t.truthy(t.apply(s,a[i])))return!1;return!0}if("none"===u){if(a=t.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!0;for(i=0;i<a.length;i+=1)if(t.truthy(t.apply(s,a[i])))return!1;return!0}if("some"===u){if(a=t.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!1;for(i=0;i<a.length;i+=1)if(t.truthy(t.apply(s,a[i])))return!0;return!1}if(l=l.map(function(e){return t.apply(e,n)}),r.hasOwnProperty(u)&&"function"==typeof r[u])return r[u].apply(n,l);if(u.indexOf(".")>0){var h=String(u).split("."),p=r;for(i=0;i<h.length;i++){if(!p.hasOwnProperty(h[i]))throw new Error("Unrecognized operation "+u+" (failed at "+h.slice(0,i+1).join(".")+")");p=p[h[i]]}return p.apply(n,l)}throw new Error("Unrecognized operation "+u)},t.uses_data=function(r){var n=[];if(t.is_logic(r)){var i=t.get_operator(r),o=r[i];Array.isArray(o)||(o=[o]),"var"===i?n.push(o[0]):o.forEach(function(e){n.push.apply(n,t.uses_data(e))})}return e(n)},t.add_operation=function(e,t){r[e]=t},t.rm_operation=function(e){delete r[e]},t.rule_like=function(e,r){if(r===e)return!0;if("@"===r)return!0;if("number"===r)return"number"==typeof e;if("string"===r)return"string"==typeof e;if("array"===r)return Array.isArray(e)&&!t.is_logic(e);if(t.is_logic(r)){if(t.is_logic(e)){var n=t.get_operator(r),i=t.get_operator(e);if("@"===n||n===i)return t.rule_like(t.get_values(e,!1),t.get_values(r,!1))}return!1}if(Array.isArray(r)){if(Array.isArray(e)){if(r.length!==e.length)return!1;for(var o=0;o<r.length;o+=1)if(!t.rule_like(e[o],r[o]))return!1;return!0}return!1}return!1},t}()),Cv.exports),Iv=kv(xv),Ev={eventMatchesCriteria:function(e,t,r){if(e!==r.event_name)return{matches:!1};var n=r.property_filters,i=!0;if(n&&!lg.isEmptyObject(n))try{i=Iv.apply(n,t||{})}catch(e){return{matches:!1,error:e.toString()}}return{matches:i}}};C[A]=Promise.resolve(Ev);function Ov(){this.clicks=[]}function Mv(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}Ov.prototype.isRageClick=function(e,t){var r=(t=t||{}).threshold_px||30,n=t.timeout_ms||1e3,i=t.click_count||4;if(t.interactive_elements_only||false){var o=Ym(e);if(!o||Hm(o))return!1}var s=Date.now(),a=e.pageX,c=e.pageY,u=this.clicks[this.clicks.length-1];if(u&&s-u.timestamp<n&&Math.sqrt(Math.pow(a-u.x,2)+Math.pow(c-u.y,2))<r){if(this.clicks.push({x:a,y:c,timestamp:s}),this.clicks.length>=i)return this.clicks=[],!0}else this.clicks=[{x:a,y:c,timestamp:s}];return!1},Mv.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return Ym(e)},Mv.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=Gm(e),r=0;r<t.length;r++){var n=t[r];n&&n.shadowRoot&&this.observeShadowRoot(n.shadowRoot)}},Mv.prototype.observeShadowRoot=function(e){if(this.observedShadowRoots&&!this.observedShadowRoots.has(e)){var t=this;try{this.observedShadowRoots.add(e);var r=new window.MutationObserver(function(){t.changeCallback()});r.observe(e,this.observerConfig),this.shadowObservers.push(r)}catch(e){Mm.critical("Error while observing shadow root",e)}}},Mv.prototype.start=function(){this.observedShadowRoots||("undefined"!=typeof WeakSet?this.observedShadowRoots=new WeakSet:Mm.critical("Shadow DOM observation unavailable: WeakSet not supported"))},Mv.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(e){Mm.critical("Error while disconnecting shadow DOM observer",e)}this.shadowObservers=[],this.observedShadowRoots=null}};var Rv=[lm,"input",ym,"select","toggle"],Av=[mm],Tv=[pm],Pv={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function Nv(e){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=e,this.processingActive=!1,this.processingTimeout=null}Nv.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e.target||e.srcElement),!(!t||Hm(t))&&(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),!0)},Nv.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var r=this.addClick(e);return r&&this.triggerProcessing(t),r},Nv.prototype.getDeadClicks=function(e){if(0===this.pendingClicks.length)return[];var t=e.timeout_ms,r=Date.now(),n=this.pendingClicks.slice();this.pendingClicks=[];for(var i=[],o=0;o<n.length;o++){var s=n[o];r-s.timestamp>=t?this.hasChangesAfter(s.timestamp)||i.push(s):this.pendingClicks.push(s)}return i},Nv.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},Nv.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},Nv.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},Nv.prototype.processRecursively=function(e){if(this.isTracking&&this.onDeadClickCallback){var t=e.timeout_ms,r=this;this.processingTimeout=setTimeout(function(){if(r.processingActive){for(var t=r.getDeadClicks(e),n=0;n<t.length;n++)r.onDeadClickCallback(t[n].event);r.pendingClicks.length>0?r.processRecursively(e):r.processingActive=!1}},t)}else this.processingActive=!1},Nv.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;Rv.forEach(function(t){var r=function(){e.recordChangeEvent()};document.addEventListener(t,r,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:t,handler:r,options:{capture:!0,passive:!0}})}),Tv.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})}),Av.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r,{passive:!0}),e.eventListeners.push({target:window,event:t,handler:r,options:{passive:!0}})});var t=function(){e.recordChangeEvent()};if(document.addEventListener("selectionchange",t),e.eventListeners.push({target:document,event:"selectionchange",handler:t}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){e.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,Pv)}catch(e){Mm.critical("Error while setting up mutation observer",e)}if(window.customElements)try{this.shadowDOMObserver=new Mv(function(){e.recordChangeEvent()},Pv),this.shadowDOMObserver.start()}catch(e){Mm.critical("Error while setting up shadow DOM observer",e),this.shadowDOMObserver=null}}},Nv.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var e=0;e<this.eventListeners.length;e++){var t=this.eventListeners[e];try{t.target.removeEventListener(t.event,t.handler,t.options)}catch(e){Mm.critical("Error while removing event listener",e)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(e){Mm.critical("Error while disconnecting mutation observer",e)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(e){Mm.critical("Error while stopping shadow DOM observer",e)}this.shadowDOMObserver=null}}};var Dv="autocapture",Fv="full-url",Lv="allow_selectors",Uv="allow_url_regexes",Bv="block_attrs",jv="block_element_callback",qv="block_selectors",zv="block_url_regexes",Vv="capture_extra_attrs",Wv="capture_text_content",$v="scroll_capture_all",Hv="scroll_depth_percent_checkpoints",Gv="click",Yv="dead_click",Jv="input",Zv="pageview",Kv="rage_click",Xv="scroll",Qv="page_leave",ey="submit",ty={};ty[Lv]=[],ty[Uv]=[],ty[Bv]=[],ty[jv]=null,ty[qv]=[],ty[zv]=[],ty[Vv]=[],ty[Wv]=!1,ty[$v]=!1,ty[Hv]=[25,50,75,100],ty[Gv]=!0,ty[Yv]=!0,ty[Jv]=!0,ty[Zv]=Fv,ty[Kv]=!0,ty[Xv]=!0,ty[Qv]=!1,ty[ey]=!0;var ry={$mp_autocapture:!0},ny="$mp_click",iy="$mp_dead_click",oy="$mp_rage_click",sy=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};sy.prototype.init=function(){!function(){try{return!!eg.createElement("div").matches}catch(e){return!1}}()?Mm.critical("Autocapture unavailable: missing required DOM APIs"):(this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking())},sy.prototype.getFullConfig=function(){var e=this.mp.get_config(Dv);return e?lg.isObject(e)?lg.extend({},ty,e):ty:{}},sy.prototype.getConfig=function(e){return this.getFullConfig()[e]},sy.prototype.currentUrlBlocked=function(){var e=lg.info.currentUrl(),t=this.getConfig(Uv)||[];if(t.length)try{return!Tg(e,t)}catch(e){return Mm.critical("Error while checking block URL regexes: ",e),!0}var r=this.getConfig(zv)||[];if(!r||!r.length)return!1;try{return Tg(e,r)}catch(e){return Mm.critical("Error while checking block URL regexes: ",e),!0}},sy.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(Dv)?this.getConfig(Zv):this.mp.get_config("track_pageview")},sy.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=this.mp.is_recording_heatmap_data()&&(t===ny&&!this.getConfig(Gv)||t===oy&&!this._getClickTrackingConfig(Kv)||t===iy&&!this._getClickTrackingConfig(Yv)),n=Nm(e,{allowElementCallback:this.getConfig("allow_element_callback"),allowSelectors:this.getConfig(Lv),blockAttrs:this.getConfig(Bv),blockElementCallback:this.getConfig(jv),blockSelectors:this.getConfig(qv),captureExtraAttrs:this.getConfig(Vv),captureTextContent:this.getConfig(Wv),capturedForHeatMap:r});n&&(lg.extend(n,ry),this.mp.track(t,n))}},sy.prototype.initPageListeners=function(){if(C.removeEventListener(gm,this.listenerPopstate),C.removeEventListener(pm,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(Qv)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){C.dispatchEvent(new Event(dm))},this.listenerHashchange=function(){C.dispatchEvent(new Event(dm))},C.addEventListener(gm,this.listenerPopstate),C.addEventListener(pm,this.listenerHashchange);var e=C.history.pushState;"function"==typeof e&&(C.history.pushState=function(t,r,n){e.call(C.history,t,r,n),C.dispatchEvent(new Event(dm))});var t=C.history.replaceState;"function"==typeof t&&(C.history.replaceState=function(e,r,n){t.call(C.history,e,r,n),C.dispatchEvent(new Event(dm))})}},sy.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?!0===t?{}:"object"==typeof t?t:{}:null},sy.prototype._trackPageLeave=function(e,t,r){if(!this.hasTrackedScrollSession&&(this.getConfig(Qv)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var n=Math.max(eg.documentElement.clientHeight,C.innerHeight||0),i=Math.round(Math.max(this.maxScrollViewDepth-n,0)/(r-n)*100),o=Math.round(n/r*100);r<=n&&(i=100,o=100);var s=lg.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:i,$fold_line_percentage:o,$scroll_height:r,$event_type:e.type,$current_url:t||lg.info.currentUrl(),$viewportHeight:n,$viewportWidth:Math.max(eg.documentElement.clientWidth,C.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},ry);this.mp.track("$mp_page_leave",s,{transport:"sendBeacon"})}},sy.prototype._initScrollDepthTracking=function(){if(C.removeEventListener(vm,this.listenerScrollDepth),C.removeEventListener(mm,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){Mm.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(eg.documentElement.clientHeight,C.innerHeight||0);var e=Wm(function(){if(!this.currentUrlBlocked()){var e=Math.max(eg.documentElement.clientHeight,C.innerHeight||0)+C.scrollY;e>this.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=eg.body.scrollHeight}}.bind(this));this.listenerScrollDepth=e.listener,C.addEventListener(e.eventType,this.listenerScrollDepth)}},sy.prototype.initClickTracking=function(){C.removeEventListener(hm,this.listenerClick,!0),(this.getConfig(Gv)||this.mp.get_config("record_heatmap_data"))&&(Mm.log("Initializing click tracking"),this.listenerClick=function(e){(this.getConfig(Gv)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,ny)}.bind(this),C.addEventListener(hm,this.listenerClick,!0))},sy.prototype.initDeadClickTracking=function(){this._getClickTrackingConfig(Yv)||this.mp.get_config("record_heatmap_data")?(Mm.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new Nv(function(e){this.trackDomEvent(e,iy)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(e){var t=this._getClickTrackingConfig(Yv);if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=t||{};r.timeout_ms||(r.timeout_ms=500),this._deadClickTracker.trackClick(e,r)}}.bind(this),C.addEventListener(hm,this.listenerDeadClick,!0))):this.stopDeadClickTracking()},sy.prototype.initInputTracking=function(){C.removeEventListener(lm,this.listenerChange,!0),this.getConfig(Jv)&&(Mm.log("Initializing input tracking"),this.listenerChange=function(e){this.getConfig(Jv)&&this.trackDomEvent(e,"$mp_input_change")}.bind(this),C.addEventListener(lm,this.listenerChange,!0))},sy.prototype.initPageviewTracking=function(){if(C.removeEventListener(dm,this.listenerLocationchange),this.pageviewTrackingConfig()||this.mp.get_config("record_heatmap_data")){Mm.log("Initializing pageview tracking");var e="",t=!1;!this.pageviewTrackingConfig()&&!this.mp.is_recording_heatmap_data()||this.currentUrlBlocked()||(t=this.mp.track_pageview(ry)),t&&(e=lg.info.currentUrl()),this.listenerLocationchange=dg(function(){if(!this.currentUrlBlocked()){var t=lg.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();if(!i&&this.mp.is_recording_heatmap_data()&&(i=Fv),i===Fv?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(ry)&&(e=t),n&&(this.lastScrollCheckpoint=0,Mm.log("Path change: re-initializing scroll depth checkpoints"))}}.bind(this)),C.addEventListener(dm,this.listenerLocationchange)}},sy.prototype.initRageClickTracking=function(){C.removeEventListener(hm,this.listenerRageClick,!0),(this._getClickTrackingConfig(Kv)||this.mp.get_config("record_heatmap_data"))&&(Mm.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new Ov),this.listenerRageClick=function(e){var t=this._getClickTrackingConfig(Kv);(t||this.mp.is_recording_heatmap_data())&&(this.currentUrlBlocked()||this._rageClickTracker.isRageClick(e,t)&&this.trackDomEvent(e,oy))}.bind(this),C.addEventListener(hm,this.listenerRageClick,!0))},sy.prototype.initScrollTracking=function(){if(C.removeEventListener(mm,this.listenerScroll),C.removeEventListener(vm,this.listenerScroll),this.getConfig(Xv)){Mm.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=Wm(function(){if(this.getConfig(Xv)&&!this.currentUrlBlocked()){var e=this.getConfig($v),t=(this.getConfig(Hv)||[]).slice().sort(function(e,t){return e-t}),r=C.scrollY,n=lg.extend({$scroll_top:r},ry);try{var i=eg.body.scrollHeight,o=Math.round(r/(i-C.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){Mm.critical("Error while calculating scroll percentage",e)}e&&this.mp.track("$mp_scroll",n)}}.bind(this));this.listenerScroll=e.listener,C.addEventListener(e.eventType,this.listenerScroll)}},sy.prototype.initSubmitTracking=function(){C.removeEventListener(ym,this.listenerSubmit,!0),this.getConfig(ey)&&(Mm.log("Initializing submit tracking"),this.listenerSubmit=function(e){this.getConfig(ey)&&this.trackDomEvent(e,"$mp_submit")}.bind(this),C.addEventListener(ym,this.listenerSubmit,!0))},sy.prototype.initPageLeaveTracking=function(){if(eg.removeEventListener(_m,this.listenerPageLeaveVisibilitychange),C.removeEventListener(dm,this.listenerPageLeaveLocationchange),C.removeEventListener(fm,this.listenerPageLoad),this.getConfig(Qv)||this.mp.get_config("record_heatmap_data")){Mm.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=lg.info.currentUrl();this.listenerPageLoad=function(){this.previousScrollHeight=eg.body.scrollHeight}.bind(this),C.addEventListener(fm,this.listenerPageLoad),this.listenerPageLeaveLocationchange=dg(function(t){if(!this.currentUrlBlocked()){var r=lg.info.currentUrl();r!==e&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=r,this.maxScrollViewDepth=Math.max(eg.documentElement.clientHeight,C.innerHeight||0),this.previousScrollHeight=eg.body.scrollHeight,this.hasTrackedScrollSession=!1)}}.bind(this)),C.addEventListener(dm,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=function(t){eg.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}.bind(this),eg.addEventListener(_m,this.listenerPageLeaveVisibilitychange)}},sy.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(C.removeEventListener(hm,this.listenerDeadClick,!0),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},gg(sy);var ay=function(e,t){return C[A]&&"function"==typeof C[A].then||(C[A]=new Promise(function(r){e(t,r)}).then(function(){var e=C[A];if(e&&"function"==typeof e.then)return e;throw new Error("targeting failed to load")}).catch(function(e){throw delete C[A],e})),C[A]},cy=fg("flags"),uy="mixpanelFlags",ly={version:1,storeNames:[uy]},hy=864e5,py=Object.freeze({NETWORK_ONLY:"networkOnly",NETWORK_FIRST:"networkFirst",PERSISTENCE_UNTIL_NETWORK_SUCCESS:"persistenceUntilNetworkSuccess"}),fy=[py.NETWORK_ONLY,py.NETWORK_FIRST,py.PERSISTENCE_UNTIL_NETWORK_SUCCESS],dy=function(e,t,r){this.idb=new Dg("mixpanelFlagsDb",uy,ly),this.persistenceConfig=e,this.persistedVariantsKey="persisted_variants_for_"+t,this.isGloballyDisabled=r||function(){return!1}};dy.prototype.getPolicy=function(){return this.isGloballyDisabled()||!this._isConfigValid()?py.NETWORK_ONLY:this.persistenceConfig.variantLookupPolicy},dy.prototype.getTtlMs=function(){if(!this._isConfigValid())return hy;var e=this.persistenceConfig.persistenceTtlMs;return null==e?hy:e},dy.prototype._isConfigValid=function(){var e=this.persistenceConfig;return!!e&&(-1===fy.indexOf(e.variantLookupPolicy)?(cy.error("Invalid variantLookupPolicy:",e.variantLookupPolicy),!1):!(void 0!==e.persistenceTtlMs&&null!==e.persistenceTtlMs&&e.persistenceTtlMs<=0)||(cy.error("If provided, persistenceTtlMs must be a positive number. Provided value:",e.persistenceTtlMs),!1))},dy.prototype.loadFlagsFromStorage=function(e){var t=lg.bind(function(){return this.clear().then(function(){return null}).catch(function(){return null})},this);if(this.getPolicy()===py.NETWORK_ONLY)return t();var r=this.getTtlMs();return this.idb.init().then(lg.bind(function(){return this.idb.getItem(this.persistedVariantsKey)},this)).then(lg.bind(function(n){if(!n)return cy.log("No persisted variants found in IndexedDB"),null;if(r&&Date.now()-n.persistedAt>=r)return cy.log("Persisted variants are expiring"),null;if(!e||n.distinctId!==e.distinct_id)return cy.log("Persisted variants found, but for a different distinct_id so clearing."),t();var i=new Map;return lg.each(n.flagVariants,function(e,t){i.set(t,{key:e.variant_key,value:e.variant_value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester,variant_source:"persistence",persisted_at_in_ms:n.persistedAt,ttl_in_ms:r})}),cy.log("Loaded",i.size,"variants from IndexedDB for distinct_id",n.distinctId),{flags:i,pendingFirstTimeEvents:n.pendingFirstTimeEvents||{},persistedAtMs:n.persistedAt,ttlMs:r}},this)).catch(lg.bind(function(e){return cy.error("Failed to load persisted variants from IndexedDB, so clearing",e),t()},this))},dy.prototype.save=function(e,t,r){if(this.getPolicy()===py.NETWORK_ONLY)return Promise.resolve();var n={};t.forEach(function(e,t){n[t]={variant_key:e.key,variant_value:e.value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester}});var i={persistedAt:Date.now(),distinctId:e&&e.distinct_id,context:e,flagVariants:n,pendingFirstTimeEvents:r||{}};return this.idb.init().then(lg.bind(function(){return this.idb.setItem(this.persistedVariantsKey,i)},this)).then(function(){cy.log("Saved",t.size,"variants to IndexedDB for distinct_id",i.distinctId)}).catch(function(e){cy.error("Failed to persist variants to IndexedDB:",e)})},dy.prototype.clear=function(){return this.isGloballyDisabled()?Promise.resolve():this.idb.init().then(lg.bind(function(){return this.idb.removeItem(this.persistedVariantsKey)},this)).then(function(){cy.log("Cleared persisted variants from IndexedDB")}).catch(function(e){cy.error("Failed to clear persisted variants from IndexedDB:",e)})};var gy=fg("flags"),my="flags",vy="context",yy={};yy[vy]={};var _y=function(e){return lg.isObject(e)?lg.extend({},e,{variant_source:"fallback"}):{value:e,variant_source:"fallback"}},by=function(e){this.fetch=C.fetch,this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc,this.loadExtraBundle=e.loadExtraBundle||function(){},this.targetingSrc=e.targetingSrc||""};function wy(e){return null!=e}by.prototype.init=function(){if(this.minApisSupported())return this.flags=null,this.trackedFeatures=new Set,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={},this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this.persistence=new dy(this.getConfig("persistence"),this.getMpConfig("token"),lg.bind(function(){return this.getMpConfig("disable_persistence")},this)),this.persistenceLoadedPromise=this.persistence.loadFlagsFromStorage(this._buildContext()).then(lg.bind(function(e){e&&(this.flags=e.flags,this.pendingFirstTimeEvents=e.pendingFirstTimeEvents,this._loadedPersistedAtMs=e.persistedAtMs,this._loadedTtlMs=e.ttlMs)},this)),this.persistenceLoadedPromise.then(lg.bind(function(){return this.fetchFlags()},this)).catch(function(){gy.error("Error initializing feature flags")});gy.critical("Feature Flags unavailable: missing minimum required APIs")},by.prototype._buildContext=function(){return lg.extend({distinct_id:this.getMpProperty("distinct_id"),device_id:this.getMpProperty("$device_id")},this.getConfig(vy))},by.prototype.reset=function(){return this.persistence?(this.flags=null,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={},this.trackedFeatures=new Set,this.fetchPromise=null,this._fetchInProgressStartTime=null,this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this.persistence.clear().then(lg.bind(function(){return this.fetchFlags()},this)).catch(function(){gy.error("Error during flags reset")})):Promise.resolve()},by.prototype.getFullConfig=function(){var e=this.getMpConfig(my);return e?lg.isObject(e)?lg.extend({},yy,e):yy:{}},by.prototype.getConfig=function(e){return this.getFullConfig()[e]},by.prototype.isSystemEnabled=function(){return!!this.getMpConfig(my)},by.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return gy.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var r=this.getMpConfig(my);lg.isObject(r)||(r={});var n=t&&t.replace?{}:this.getConfig(vy);r[vy]=lg.extend({},n,e);var i={};return i[my]=r,this.setMpConfig(i),this.fetchFlags().catch(function(){gy.error("Error fetching flags during updateContext")})},by.prototype.areFlagsReady=function(){return this.isSystemEnabled()||gy.error("Feature Flags not enabled"),!!this.flags},by.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this._buildContext(),t=e.distinct_id,r=Eg();gy.log("Fetching flags for distinct ID: "+t);var n=new URLSearchParams;n.set("context",JSON.stringify(e)),n.set("token",this.getMpConfig("token")),n.set("mp_lib","web"),n.set("$lib_version",R.LIB_VERSION);var i=this.getFullApiRoute()+"?"+n.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(C,i,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:r}}).then(function(e){return this.markFetchComplete(),e.json()}.bind(this)).then(function(t){var n=t.flags;if(!n)throw new Error("No flags in API response");var i=new Map,o={};lg.each(n,function(e,t){var r=!1,n=t+":";if(lg.each(this.activatedFirstTimeEvents,function(e,t){t.startsWith(n)&&(r=!0)}),r){var o=this.flags&&this.flags.get(t);o&&i.set(t,o)}else i.set(t,{key:e.variant_key,value:e.variant_value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester,variant_source:"network"})},this);var s=t.pending_first_time_events;s&&s.length>0&&lg.each(s,function(e){var t=e.flag_key,r=function(e,t){return e+":"+t}(t,e.first_time_event_hash);this.activatedFirstTimeEvents[r]||(o[r]={flag_key:t,flag_id:e.flag_id,project_id:e.project_id,first_time_event_hash:e.first_time_event_hash,event_name:e.event_name,property_filters:e.property_filters,pending_variant:e.pending_variant})},this),this.activatedFirstTimeEvents&&lg.each(this.activatedFirstTimeEvents,function(e,t){var r=function(e){return e.split(":")[0]}(t);e&&!i.has(r)&&this.flags&&this.flags.has(r)&&i.set(r,this.flags.get(r))},this),this.flags=i,this.trackedFeatures=new Set,this.pendingFirstTimeEvents=o,this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this._traceparent=r,this._loadTargetingIfNeeded(),this.persistence.save(e,this.flags,this.pendingFirstTimeEvents)}.bind(this)).catch(function(e){throw this._fetchInProgressStartTime&&this.markFetchComplete(),gy.error(e),e}.bind(this)),this.fetchPromise},by.prototype.loadFlags=function(){return this.isSystemEnabled()?this.trackedFeatures?this._fetchInProgressStartTime?this.fetchPromise:this.fetchFlags():(gy.error("loadFlags called before init"),Promise.resolve()):Promise.resolve()},by.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):gy.error("Fetch in progress started time not set, cannot mark fetch complete")},by.prototype._loadTargetingIfNeeded=function(){var e=!1;lg.each(this.pendingFirstTimeEvents,function(t){t.property_filters&&!lg.isEmptyObject(t.property_filters)&&(e=!0)}),e&&this.getTargeting().then(function(){gy.log("targeting loaded for property filter evaluation")})},by.prototype.getTargeting=function(){return ay(this.loadExtraBundle.bind(this),this.targetingSrc).catch(function(e){gy.error("Failed to load targeting: "+e)}.bind(this))},by.prototype.checkFirstTimeEvents=function(e,t){this.pendingFirstTimeEvents&&!lg.isEmptyObject(this.pendingFirstTimeEvents)&&(C[A]&&lg.isFunction(C[A].then)?C[A].then(function(r){this._processFirstTimeEventCheck(e,t,r)}.bind(this)).catch(function(){this._processFirstTimeEventCheck(e,t,null)}.bind(this)):this._processFirstTimeEventCheck(e,t,null))},by.prototype._processFirstTimeEventCheck=function(e,t,r){lg.each(this.pendingFirstTimeEvents,function(n,i){if(!this.activatedFirstTimeEvents[i]){var o,s=n.flag_key;if(r||!n.property_filters||lg.isEmptyObject(n.property_filters)){if(r){var a={event_name:n.event_name,property_filters:n.property_filters};o=r.eventMatchesCriteria(e,t,a)}else o={matches:e===n.event_name,error:null};if(o.error)gy.error('Error checking first-time event for flag "'+s+'": '+o.error);else if(o.matches){gy.log('First-time event matched for flag "'+s+'": '+e);var c={key:n.pending_variant.variant_key,value:n.pending_variant.variant_value,experiment_id:n.pending_variant.experiment_id,is_experiment_active:n.pending_variant.is_experiment_active};this.flags.set(s,c),this.trackedFeatures.delete(s),this.activatedFirstTimeEvents[i]=!0,this.recordFirstTimeEvent(n.flag_id,n.project_id,n.first_time_event_hash)}}else gy.warn('Skipping event check for "'+s+'" - property filters require targeting library')}},this)},by.prototype.getFirstTimeEventApiRoute=function(e){return this.getFullApiRoute().replace(/\/$/,"")+"/"+e+"/first-time-events"},by.prototype.recordFirstTimeEvent=function(e,t,r){var n=this.getMpProperty("distinct_id"),i=Eg(),o=new URLSearchParams;o.set("mp_lib","web"),o.set("$lib_version",R.LIB_VERSION);var s=this.getFirstTimeEventApiRoute(e)+"?"+o.toString(),a={distinct_id:n,project_id:t,first_time_event_hash:r};gy.log("Recording first-time event for flag: "+e),this.fetch.call(C,s,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:i},body:JSON.stringify(a)}).catch(function(t){gy.error("Failed to record first-time event for flag "+e+": "+t)})},by.prototype.getVariant=function(e,t){if(!this.persistenceLoadedPromise)return new Promise(function(e){gy.critical("Feature Flags not initialized"),e(_y(t))});var r=this.persistence.getPolicy();return this.persistenceLoadedPromise.then(lg.bind(function(){if(r===py.PERSISTENCE_UNTIL_NETWORK_SUCCESS)return this.areFlagsReady()&&!this._loadedPersistenceIsStale()?this.getVariantSync(e,t):this.fetchPromise?this.fetchPromise.then(lg.bind(function(){return this.getVariantSync(e,t)},this)).catch(function(e){return gy.error(e),_y(t)}):_y(t);var n=lg.bind(function(){return this.getVariantSync(e,t)},this);return this.fetchPromise?this.fetchPromise.then(n).catch(n):_y(t)},this))},by.prototype._loadedPersistenceIsStale=function(){return!(!this._loadedPersistedAtMs||!this._loadedTtlMs)&&Date.now()-this._loadedPersistedAtMs>=this._loadedTtlMs},by.prototype.getVariantSync=function(e,t){if(this._loadedPersistenceIsStale())return gy.log('Loaded persisted variants are past TTL so returning fallback for "'+e+'"'),_y(t);if(!this.areFlagsReady())return gy.log("Flags not loaded yet"),_y(t);var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(gy.log('No flag found: "'+e+'"'),_y(t))},by.prototype.getAllVariants=function(){if(!this.persistenceLoadedPromise)return gy.critical("Feature Flags not initialized"),Promise.resolve(new Map);var e=this.persistence.getPolicy();return this.persistenceLoadedPromise.then(lg.bind(function(){if(e===py.PERSISTENCE_UNTIL_NETWORK_SUCCESS)return this.areFlagsReady()&&!this._loadedPersistenceIsStale()?this.getAllVariantsSync():this.fetchPromise?this.fetchPromise.then(lg.bind(function(){return this.getAllVariantsSync()},this)).catch(function(e){return gy.error(e),new Map}):new Map;var t=lg.bind(this.getAllVariantsSync,this);return this.fetchPromise?this.fetchPromise.then(t).catch(t):new Map},this))},by.prototype.getAllVariantsSync=function(){return this._loadedPersistenceIsStale()?(gy.log("Loaded persisted variants are past TTL so returning empty Map"),new Map):this.flags||new Map},by.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(e){return e.value}).catch(function(e){return gy.error(e),t})},by.prototype.getFeatureData=function(e,t){return gy.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(e,t)},by.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t}).value},by.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then(function(){return this.isEnabledSync(e,t)}.bind(this)).catch(function(e){return gy.error(e),t})},by.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(gy.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},by.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var r={"Experiment name":e,"Variant name":t.key,$experiment_type:"feature_flag","Variant fetch start time":wy(this._fetchStartTime)?new Date(this._fetchStartTime).toISOString():null,"Variant fetch complete time":wy(this._fetchCompleteTime)?new Date(this._fetchCompleteTime).toISOString():null,"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};wy(t.experiment_id)&&(r.$experiment_id=t.experiment_id),wy(t.is_experiment_active)&&(r.$is_experiment_active=t.is_experiment_active),wy(t.is_qa_tester)&&(r.$is_qa_tester=t.is_qa_tester),wy(t.variant_source)&&(r.$variant_source=t.variant_source),wy(t.persisted_at_in_ms)&&(r.$persisted_at_in_ms=t.persisted_at_in_ms),wy(t.ttl_in_ms)&&(r.$ttl_in_ms=t.ttl_in_ms),this.track("$experiment_started",r)}},by.prototype.whenReady=function(){return this.fetchPromise?this.fetchPromise:Promise.resolve()},by.prototype.minApisSupported=function(){return!!this.fetch&&"undefined"!=typeof Promise&&"undefined"!=typeof Map&&"undefined"!=typeof Set},gg(by),by.prototype.are_flags_ready=by.prototype.areFlagsReady,by.prototype.get_variant=by.prototype.getVariant,by.prototype.get_variant_sync=by.prototype.getVariantSync,by.prototype.get_all_variants=by.prototype.getAllVariants,by.prototype.get_all_variants_sync=by.prototype.getAllVariantsSync,by.prototype.get_variant_value=by.prototype.getVariantValue,by.prototype.get_variant_value_sync=by.prototype.getVariantValueSync,by.prototype.is_enabled=by.prototype.isEnabled,by.prototype.is_enabled_sync=by.prototype.isEnabledSync,by.prototype.load_flags=by.prototype.loadFlags,by.prototype.update_context=by.prototype.updateContext,by.prototype.when_ready=by.prototype.whenReady,by.prototype.get_feature_data=by.prototype.getFeatureData,by.prototype.getTargeting=by.prototype.getTargeting;var ky=fg("recorder"),Sy="mp_iframe_handshake_request",Cy="mp_iframe_handshake_response",xy=function(e){this.mixpanelInstance=e.mixpanelInstance,this.getMpConfig=e.getConfigFunc,this.getTabId=e.getTabIdFunc,this.reportError=e.reportErrorFunc,this.getDistinctId=e.getDistinctIdFunc,this.loadExtraBundle=e.loadExtraBundle,this.recorderSrc=e.recorderSrc,this.targetingSrc=e.targetingSrc,this.libBasePath=e.libBasePath,this._recorder=null,this._parentReplayId=null,this._parentFrameRetryInterval=null};xy.prototype.shouldLoadRecorder=function(){if(this.getMpConfig("disable_persistence"))return hg.log("Load recorder check skipped due to disable_persistence config"),Td.resolve(!1);var e=new Dg(Fg,Ug,Bg),t=this.getTabId();return e.init().then(function(){return e.getAll()}).then(function(e){for(var r=0;r<e.length;r++)if(cm(e[r])||e[r].tabId===t)return!0;return!1}).catch(lg.bind(function(e){return this.reportError("Error checking recording registry",e),!1},this))},xy.prototype.checkAndStartSessionRecording=function(e,t){if(!C.MutationObserver)return hg.critical("Browser does not support MutationObserver; skipping session recording"),Td.resolve();var r=lg.bind(function(e){return new Td(lg.bind(function(t){var r=dg(lg.bind(function(){this._recorder=this._recorder||new C[T](this.mixpanelInstance),this._recorder.resumeRecording(e),t()},this));if(lg.isUndefined(C[T])){var n=this.recorderSrc||this.libBasePath+"__MP_RECORDER_FILENAME__";this.loadExtraBundle(n,r)}else r()},this))},this),n=um(this.getMpConfig("record_allowed_iframe_origins"),ky);if(n.length>0&&(this._setupParentFrameListener(n),C.parent!==C))return this._setupChildFrameListener(n,r),this._sendParentFrameRequestWithRetry(n),Td.resolve();var i=lg.isUndefined(t)?this.getMpConfig("record_sessions_percent"):t,o=i>0&&100*Math.random()<=i;return e||o?r(!0):this.shouldLoadRecorder().then(lg.bind(function(e){return e?r(!1):Td.resolve()},this))},xy.prototype.isRecording=function(){if(!this._recorder||!lg.isFunction(this._recorder.isRecording))return!1;try{return this._recorder.isRecording()}catch(e){return this.reportError("Error checking if recording is active",e),!1}},xy.prototype.startRecordingOnEvent=function(e,t){var r=this.isRecording(),n=this.getMpConfig("recording_event_triggers");if(!r&&n){var i=n[e];if(i&&"number"==typeof i.percentage){var o=i.percentage,s=i.property_filters;if(s&&!lg.isEmptyObject(s)){var a=this.targetingSrc||this.libBasePath+P;ay(this.loadExtraBundle,a).then(function(r){try{r.eventMatchesCriteria(e,t,{event_name:e,property_filters:s}).matches&&this.checkAndStartSessionRecording(!1,o)}catch(e){hg.critical("Could not parse recording event trigger properties logic:",e)}}.bind(this)).catch(function(e){hg.critical("Failed to load targeting library:",e)})}else this.checkAndStartSessionRecording(!1,o)}}},xy.prototype.stopSessionRecording=function(){return this._recorder?this._recorder.stopRecording():Td.resolve()},xy.prototype.pauseSessionRecording=function(){return this._recorder?this._recorder.pauseRecording():Td.resolve()},xy.prototype.resumeSessionRecording=function(){return this._recorder?this._recorder.resumeRecording():Td.resolve()},xy.prototype.isRecordingHeatmapData=function(){return this.getSessionReplayId()&&this.getMpConfig("record_heatmap_data")},xy.prototype.getSessionRecordingProperties=function(){var e={},t=this.getSessionReplayId();return t&&(e.$mp_replay_id=t),e},xy.prototype.getSessionReplayUrl=function(){var e=null,t=this.getSessionReplayId();t&&(e="https://mixpanel.com/projects/replay-redirect?"+lg.HTTPBuildQuery({replay_id:t,distinct_id:this.getDistinctId(),token:this.getMpConfig("token")}));return e},xy.prototype.getSessionReplayId=function(){if(this._parentReplayId)return this._parentReplayId;var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},xy.prototype.getRecorder=function(){return this._recorder},xy.prototype._setupChildFrameListener=function(e,t){if(!this._childFrameMessageHandler){var r=this;this._childFrameMessageHandler=function(n){if(-1!==e.indexOf(n.origin)){var i=n.data;i&&i.type===Cy&&i.token===r.getMpConfig("token")&&i.replayId&&(r._parentReplayId=i.replayId,i.distinctId&&r.mixpanelInstance.identify(i.distinctId),r._parentFrameRetryActive=!1,C.removeEventListener("message",r._childFrameMessageHandler),r._childFrameMessageHandler=null,t(!0))}},C.addEventListener("message",this._childFrameMessageHandler)}},xy.prototype._sendParentFrameRequest=function(e){var t={};t.type=Sy,t.token=this.getMpConfig("token");for(var r=0;r<e.length;r++)try{C.parent.postMessage(t,e[r])}catch(e){}},xy.prototype._sendParentFrameRequestWithRetry=function(e){var t=this,r=0,n=50;this._parentFrameRetryActive=!0,this._sendParentFrameRequest(e),function i(){setTimeout(function(){!t._parentFrameRetryActive||t._parentReplayId||++r>=10||(t._sendParentFrameRequest(e),n*=2,i())},n)}()},xy.prototype._setupParentFrameListener=function(e){if(!this._parentFrameMessageHandler){var t=this;this._parentFrameMessageHandler=function(r){if(-1!==e.indexOf(r.origin)){var n=r.data;if(n&&n.type===Sy&&n.token===t.getMpConfig("token")){var i=t.getSessionReplayId();if(i){var o={};o.type=Cy,o.token=t.getMpConfig("token"),o.replayId=i,o.distinctId=t.getDistinctId(),r.source.postMessage(o,r.origin)}}}},C.addEventListener("message",this._parentFrameMessageHandler)}},gg(xy);var Iy=function(){};Iy.prototype.create_properties=function(){},Iy.prototype.event_handler=function(){},Iy.prototype.after_track_handler=function(){},Iy.prototype.init=function(e){return this.mp=e,this},Iy.prototype.track=function(e,t,r,n){var i=this,o=lg.dom_query(e);if(0!==o.length)return lg.each(o,function(e){lg.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;hg.error("The DOM query ("+e+") returned 0 elements")},Iy.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))}},Iy.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):lg.extend({},e)};var Ey=function(){this.override_event="click"};lg.inherit(Ey,Iy),Ey.prototype.create_properties=function(e,t){var r=Ey.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},Ey.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()},Ey.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var Oy=function(){this.override_event="submit"};lg.inherit(Oy,Iy),Oy.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},Oy.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var My="$set",Ry="$set_once",Ay="$unset",Ty="$add",Py="$append",Ny="$union",Dy="$remove",Fy={set_action:function(e,t){var r={},n={};return lg.isObject(e)?lg.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[My]=n,r},unset_action:function(e){var t={},r=[];return lg.isArray(e)||(e=[e]),lg.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[Ay]=r,t},set_once_action:function(e,t){var r={},n={};return lg.isObject(e)?lg.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[Ry]=n,r},union_action:function(e,t){var r={},n={};return lg.isObject(e)?lg.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=lg.isArray(e)?e:[e])},this):n[e]=lg.isArray(t)?t:[t],r[Ny]=n,r},append_action:function(e,t){var r={},n={};return lg.isObject(e)?lg.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[Py]=n,r},remove_action:function(e,t){var r={},n={};return lg.isObject(e)?lg.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[Dy]=n,r},delete_action:function(){var e={$delete:""};return e}},Ly=function(){};lg.extend(Ly.prototype,Fy),Ly.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},Ly.prototype.set=Hg(function(e,t,r){var n=this.set_action(e,t);return lg.isObject(e)&&(r=t),this._send_request(n,r)}),Ly.prototype.set_once=Hg(function(e,t,r){var n=this.set_once_action(e,t);return lg.isObject(e)&&(r=t),this._send_request(n,r)}),Ly.prototype.unset=Hg(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),Ly.prototype.union=Hg(function(e,t,r){lg.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),Ly.prototype.delete=Hg(function(e){var t=this.delete_action();return this._send_request(t,e)}),Ly.prototype.remove=Hg(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)}),Ly.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=lg.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)},Ly.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},Ly.prototype._get_config=function(e){return this._mixpanel.get_config(e)},Ly.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},Ly.prototype.remove=Ly.prototype.remove,Ly.prototype.set=Ly.prototype.set,Ly.prototype.set_once=Ly.prototype.set_once,Ly.prototype.union=Ly.prototype.union,Ly.prototype.unset=Ly.prototype.unset,Ly.prototype.toString=Ly.prototype.toString;var Uy=function(){};lg.extend(Uy.prototype,Fy),Uy.prototype._init=function(e){this._mixpanel=e},Uy.prototype.set=$g(function(e,t,r){var n=this.set_action(e,t);return lg.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[My]=lg.extend({},lg.info.people_properties(),n[My]),this._send_request(n,r)}),Uy.prototype.set_once=$g(function(e,t,r){var n=this.set_once_action(e,t);return lg.isObject(e)&&(r=t),this._send_request(n,r)}),Uy.prototype.unset=$g(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),Uy.prototype.increment=$g(function(e,t,r){var n={},i={};return lg.isObject(e)?(lg.each(e,function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void hg.error("Invalid increment value passed to mixpanel.people.increment - must be a number");i[t]=e}},this),r=t):(lg.isUndefined(t)&&(t=1),i[e]=t),n[Ty]=i,this._send_request(n,r)}),Uy.prototype.append=$g(function(e,t,r){lg.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)}),Uy.prototype.remove=$g(function(e,t,r){lg.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)}),Uy.prototype.union=$g(function(e,t,r){lg.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),Uy.prototype.track_charge=$g(function(){hg.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),Uy.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},Uy.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}hg.error("mixpanel.people.delete_user() requires you to call identify() first")},Uy.prototype.toString=function(){return this._mixpanel.toString()+".people"},Uy.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=lg.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),lg.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),lg.truncate(o,255))},Uy.prototype._get_config=function(e){return this._mixpanel.get_config(e)},Uy.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},Uy.prototype._enqueue=function(e){My in e?this._mixpanel.persistence._add_to_people_queue(My,e):Ry in e?this._mixpanel.persistence._add_to_people_queue(Ry,e):Ay in e?this._mixpanel.persistence._add_to_people_queue(Ay,e):Ty in e?this._mixpanel.persistence._add_to_people_queue(Ty,e):Py in e?this._mixpanel.persistence._add_to_people_queue(Py,e):Dy in e?this._mixpanel.persistence._add_to_people_queue(Dy,e):Ny in e?this._mixpanel.persistence._add_to_people_queue(Ny,e):hg.error("Invalid call to _enqueue():",e)},Uy.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=lg.extend({},this._mixpanel.persistence.load_queue(e)),s=o;lg.isUndefined(o)||!lg.isObject(o)||lg.isEmptyObject(o)||(i._mixpanel.persistence._pop_from_people_queue(e,o),i._mixpanel.persistence.save(),n&&(s=n(o)),t.call(i,s,function(t,n){0===t&&i._mixpanel.persistence._add_to_people_queue(e,o),lg.isUndefined(r)||r(t,n)}))},Uy.prototype._flush=function(e,t,r,n,i,o,s){var a=this;this._flush_one_queue(My,this.set,e),this._flush_one_queue(Ry,this.set_once,n),this._flush_one_queue(Ay,this.unset,o,function(e){return lg.keys(e)}),this._flush_one_queue(Ty,this.increment,t),this._flush_one_queue(Ny,this.union,i);var c=this._mixpanel.persistence.load_queue(Py);if(!lg.isUndefined(c)&&lg.isArray(c)&&c.length)for(var u,l=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(Py,u),lg.isUndefined(r)||r(e,t)},h=c.length-1;h>=0;h--)c=this._mixpanel.persistence.load_queue(Py),u=c.pop(),a._mixpanel.persistence.save(),lg.isEmptyObject(u)||a.append(u,l);var p=this._mixpanel.persistence.load_queue(Dy);if(!lg.isUndefined(p)&&lg.isArray(p)&&p.length)for(var f,d=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(Dy,f),lg.isUndefined(s)||s(e,t)},g=p.length-1;g>=0;g--)p=this._mixpanel.persistence.load_queue(Dy),f=p.pop(),a._mixpanel.persistence.save(),lg.isEmptyObject(f)||a.remove(f,d)},Uy.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},Uy.prototype.set=Uy.prototype.set,Uy.prototype.set_once=Uy.prototype.set_once,Uy.prototype.unset=Uy.prototype.unset,Uy.prototype.increment=Uy.prototype.increment,Uy.prototype.append=Uy.prototype.append,Uy.prototype.remove=Uy.prototype.remove,Uy.prototype.union=Uy.prototype.union,Uy.prototype.track_charge=Uy.prototype.track_charge,Uy.prototype.clear_charges=Uy.prototype.clear_charges,Uy.prototype.delete_user=Uy.prototype.delete_user,Uy.prototype.toString=Uy.prototype.toString;var By,jy="__mps",qy="__mpso",zy="__mpus",Vy="__mpa",Wy="__mpap",$y="__mpr",Hy="__mpu",Gy="$people_distinct_id",Yy="__alias",Jy="__timers",Zy=[jy,qy,zy,Vy,Wy,$y,Hy,Gy,Yy,Jy],Ky=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&&(hg.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&lg.localStorage.is_supported()?this.storage=lg.localStorage:this.storage=lg.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};Ky.prototype.properties=function(){var e={};return this.load(),lg.each(this.props,function(t,r){lg.include(Zy,r)||(e[r]=t)}),e},Ky.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=lg.extend({},e))}},Ky.prototype.upgrade=function(){var e,t;this.storage===lg.localStorage?(e=lg.cookie.parse(this.name),lg.cookie.remove(this.name),lg.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===lg.cookie&&(t=lg.localStorage.parse(this.name),lg.localStorage.remove(this.name),t&&this.register_once(t))},Ky.prototype.save=function(){this.disabled||this.storage.set(this.name,Pg(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},Ky.prototype.load_prop=function(e){return this.load(),this.props[e]},Ky.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},Ky.prototype.clear=function(){this.remove(),this.props={}},Ky.prototype.register_once=function(e,t,r){return!!lg.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),lg.each(e,function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)},this),this.save(),!0)},Ky.prototype.register=function(e,t){return!!lg.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),lg.extend(this.props,e),this.save(),!0)},Ky.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},Ky.prototype.update_search_keyword=function(e){this.register(lg.info.searchInfo(e))},Ky.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:lg.info.referringDomain(e)||"$direct"},"")},Ky.prototype.get_referrer_info=function(){return lg.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},Ky.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)},Ky.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},Ky.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},Ky.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},Ky.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},Ky.prototype.get_cross_subdomain=function(){return this.cross_subdomain},Ky.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},Ky.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(My),o=this._get_or_create_queue(Ry),s=this._get_or_create_queue(Ay),a=this._get_or_create_queue(Ty),c=this._get_or_create_queue(Ny),u=this._get_or_create_queue(Dy,[]),l=this._get_or_create_queue(Py,[]);r===jy?(lg.extend(i,n),this._pop_from_people_queue(Ty,n),this._pop_from_people_queue(Ny,n),this._pop_from_people_queue(Ay,n)):r===qy?(lg.each(n,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(Ay,n)):r===zy?lg.each(n,function(e){lg.each([i,o,a,c],function(t){e in t&&delete t[e]}),lg.each(l,function(t){e in t&&delete t[e]}),s[e]=!0}):r===Vy?(lg.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(Ay,n)):r===Hy?(lg.each(n,function(e,t){lg.isArray(e)&&(t in c||(c[t]=[]),lg.each(e,function(e){lg.include(c[t],e)||c[t].push(e)}))}),this._pop_from_people_queue(Ay,n)):r===$y?(u.push(n),this._pop_from_people_queue(Py,n)):r===Wy&&(l.push(n),this._pop_from_people_queue(Ay,n)),hg.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),hg.log(t),this.save()},Ky.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];lg.isUndefined(r)||lg.each(t,function(t,n){e===Py||e===Dy?lg.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this)},Ky.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},Ky.prototype._get_queue_key=function(e){return e===My?jy:e===Ry?qy:e===Ay?zy:e===Ty?Vy:e===Py?Wy:e===Dy?$y:e===Ny?Hy:void hg.error("Invalid queue:",e)},Ky.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=lg.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},Ky.prototype.set_event_timer=function(e,t){var r=this.load_prop(Jy)||{};r[e]=t,this.props[Jy]=r,this.save()},Ky.prototype.remove_event_timer=function(e){var t=(this.load_prop(Jy)||{})[e];return lg.isUndefined(t)||(delete this.props[Jy][e],this.save()),t};var Xy,Qy=function(e,t){throw new Error(e+" not available in this build.")},e_="mixpanel",t_="base64",r_="$device:",n_=C.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,i_=!n_&&-1===ng.indexOf("MSIE")&&-1===ng.indexOf("Mozilla"),o_=null;Qd.sendBeacon&&(o_=function(){return Qd.sendBeacon.apply(Qd,arguments)});var s_={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},a_={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:s_,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:t_,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Ag,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Ag,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_allowed_iframe_origins:[],record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,recording_event_triggers:{},record_idle_timeout_ms:18e5,record_mask_inputs:!0,record_max_ms:Wd,record_min_ms:0,record_network:!1,record_network_options:{},record_sessions_percent:0,recorder_src:null,targeting_src:null,lib_base_path:"https://cdn.mxpnl.com/libs/",remote_settings_mode:"disabled"},c_=!1,u_=function(){},l_=function(e,t,r){var n,i=r===e_?Xy:Xy[r];if(i&&0===By)n=i;else{if(i&&!lg.isArray(i))return void hg.error("You have already initialized "+r);n=new u_}if(n._cached_groups={},n._init(e,t,r),n.people=new Uy,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var o=lg.info.campaignParams(null),s={},a=!1;lg.each(o,function(e,t){s["initial_"+t]=e,e&&(a=!0)}),a&&n.people.set_once(s)}R.DEBUG=R.DEBUG||n.get_config("debug");var c=0===By?"module":"snippet";return C.dispatchEvent(new C.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:n,source:c,token:e,name:r,info:lg.info}})),!lg.isUndefined(i)&&lg.isArray(i)&&(n._execute_array.call(n.people,i.people),n._execute_array(i)),n};u_.prototype.init=function(e,t,r){if(lg.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)");else{if(r!==e_){var n=l_(e,t,r);return Xy[r]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},u_.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var n={};"api_payload_format"in t||(t.api_host||a_.api_host).match(/\.mixpanel\.com/)&&(n.api_payload_format="json");if(this.hooks={},this.set_config(lg.extend({},a_,n,t,{name:r,token:e,callback_fn:(r===e_?r:e_+"."+r)+"._jsc"})),this.recorderManager=new xy({mixpanelInstance:this,getConfigFunc:lg.bind(this.get_config,this),setConfigFunc:lg.bind(this.set_config,this),getTabIdFunc:lg.bind(this.get_tab_id,this),reportErrorFunc:lg.bind(this.report_error,this),getDistinctIdFunc:lg.bind(this.get_distinct_id,this),recorderSrc:this.get_config("recorder_src"),targetingSrc:this.get_config("targeting_src"),libBasePath:this.get_config("lib_base_path"),loadExtraBundle:Qy}),this._jsc=Ag,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this._remote_settings_strict_disabled=!1,this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(lg.localStorage.is_supported(!0)&&n_){if(this.init_batchers(),o_&&C.addEventListener){var i=lg.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);C.addEventListener("pagehide",function(e){e.persisted&&i()}),C.addEventListener("visibilitychange",function(){"hidden"===eg.visibilityState&&i()})}}else this._batch_requests=!1,hg.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),lg.each(this.get_batcher_configs(),function(e){hg.log("Clearing batch queue "+e.queue_key),lg.localStorage.remove(e.queue_key)});this.persistence=this.cookie=new Ky(this.config),this.unpersisted_superprops={},this._gdpr_init();var o=lg.UUID();this.get_distinct_id()||this.register_once({distinct_id:r_+o,$device_id:o},""),this.flags=new by({getFullApiRoute:lg.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:lg.bind(this.get_config,this),setConfigFunc:lg.bind(this.set_config,this),getPropertyFunc:lg.bind(this.get_property,this),trackingFunc:lg.bind(this.track,this),loadExtraBundle:Qy,targetingSrc:this.get_config("targeting_src")||this.get_config("lib_base_path")+P}),this.flags.init(),this.flags=this.flags,this._init_tab_id();var s=this.get_config("remote_settings_mode");this.__session_recording_init_promise="strict"===s||"fallback"===s?this._fetch_remote_settings(s).then(lg.bind(function(){return this._check_and_start_session_recording()},this)):this._check_and_start_session_recording(),this.autocapture=new sy(this),this.autocapture.init()},u_.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))hg.log("Tab ID initialization skipped due to disable_persistence config");else if(lg.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;!lg.sessionStorage.get(r)&&lg.sessionStorage.get(t)||lg.sessionStorage.set(t,"$tab-"+lg.UUID()),lg.sessionStorage.set(r,"1"),this.tab_id=lg.sessionStorage.get(t),C.addEventListener("beforeunload",function(){lg.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.")},u_.prototype.get_tab_id=function(){return this.tab_id||null},u_.prototype._check_and_start_session_recording=Wg(function(e){return this.recorderManager.checkAndStartSessionRecording(e)}),u_.prototype._start_recording_on_event=dg(function(e,t){this.__session_recording_init_promise&&this.__session_recording_init_promise.then(lg.bind(function(){if(!this._remote_settings_strict_disabled)return this.recorderManager.startRecordingOnEvent(e,t)},this))}),u_.prototype.start_session_recording=function(){return this._check_and_start_session_recording(!0)},u_.prototype.stop_session_recording=function(){return this.recorderManager.stopSessionRecording()},u_.prototype.pause_session_recording=function(){return this.recorderManager.pauseSessionRecording()},u_.prototype.resume_session_recording=function(){return this.recorderManager.resumeSessionRecording()},u_.prototype.is_recording_heatmap_data=function(){return this.recorderManager.isRecordingHeatmapData()},u_.prototype.get_session_recording_properties=function(){return this.recorderManager.getSessionRecordingProperties()},u_.prototype.get_session_replay_url=function(){return this.recorderManager.getSessionReplayUrl()},u_.prototype.__get_recorder=function(){return this.recorderManager.getRecorder()},u_.prototype.__get_recording_init_promise=function(){return this.__session_recording_init_promise},u_.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=lg.info.campaignParams(null);lg.each(e,function(e,t){this.unregister(t)}.bind(this))}},u_.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(eg.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(lg.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(eg.referrer)},u_.prototype._dom_loaded=function(){lg.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||lg.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},u_.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(!c_)return this.__dom_loaded_queue.push([e,t]),!1;var r=(new e).init(this);return r.track.apply(r,t)},u_.prototype._prepare_callback=function(e,t){if(lg.isUndefined(e))return null;if(n_){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},u_.prototype._send_request=function(e,t,r,n){var i=!0;if(i_)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;n||!lg.isFunction(r)&&"string"!=typeof r||(n=r,r=null),r=lg.extend(o,r||{}),n_||(r.method="GET");var a="POST"===r.method,c=o_&&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),n_||(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),lg.extend(t,this.get_config("api_extra_query_params")),e+="?"+lg.HTTPBuildQuery(t);var l=this;if("img"in t){var h=eg.createElement("img");h.src=e,eg.body.appendChild(h)}else if(c){try{i=o_(e,s)}catch(e){l.report_error(e),i=!1}try{n&&n(i?1:0)}catch(e){l.report_error(e)}}else if(n_)try{var p=new XMLHttpRequest;p.open(r.method,e,!0);var f=this.get_config("xhr_headers");if(a&&(f["Content-Type"]="application/x-www-form-urlencoded"),lg.each(f,function(e,t){p.setRequestHeader(t,e)}),r.timeout_ms&&void 0!==p.timeout){p.timeout=r.timeout_ms;var d=(new Date).getTime()}p.withCredentials=!0,p.onreadystatechange=function(){var e;if(4===p.readyState)if(200===p.status){if(n)if(u){var t;try{t=lg.JSONDecode(p.responseText)}catch(e){if(l.report_error(e),!r.ignore_json_errors)return;t=p.responseText}n(t)}else n(Number(p.responseText))}else if(e=p.timeout&&!p.status&&(new Date).getTime()-d>=p.timeout?"timeout":"Bad HTTP status: "+p.status+" "+p.statusText,l.report_error(e),n)if(u){var i=p.responseHeaders||{};n({status:0,httpStatusCode:p.status,error:e,retryAfter:i["Retry-After"]})}else n(0)},p.send(s)}catch(e){l.report_error(e),i=!1}else{var g=eg.createElement("script");g.type="text/javascript",g.async=!0,g.defer=!0,g.src=e;var m=eg.getElementsByTagName("script")[0];m.parentNode.insertBefore(g,m)}return i},u_.prototype._fetch_remote_settings=function(e){var t=this,r=function(){"strict"===e&&(t.set_config({record_sessions_percent:0}),t._remote_settings_strict_disabled=!0)};if(!C.AbortController)return hg.critical("Remote settings unavailable: missing minimum required APIs"),r(),Promise.resolve();var n=this.get_api_host("settings")+"/"+this.get_config("api_routes").settings,i={$lib_version:R.LIB_VERSION,mp_lib:"web",sdk_config:"1"},o=n+"?"+lg.HTTPBuildQuery(i),s=new AbortController,a=setTimeout(function(){s.abort()},500),c={method:"GET",headers:{Authorization:"Basic "+btoa(t.get_config("token")+":")},signal:s.signal};return C.fetch(o,c).then(function(e){return clearTimeout(a),e.ok?e.json():(hg.critical("Network response was not ok"),void r())}).then(function(e){if(e&&e.sdk_config&&e.sdk_config.config){var n=e.sdk_config.config,i={};lg.each(n,function(e,t){a_.hasOwnProperty(t)&&(i[t]=e)}),lg.isEmptyObject(i)?(hg.critical("No valid config keys found in remote settings."),r()):t.set_config(i)}else r()}).catch(function(e){clearTimeout(a),hg.critical("Failed to fetch remote settings",e),r()})},u_.prototype._execute_array=function(e){var t,r=[],n=[],i=[];lg.each(e,function(e){e&&(t=e[0],lg.isArray(t)?i.push(e):"function"==typeof e?e.call(this):lg.isArray(e)&&"alias"===t?r.push(e):lg.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?i.push(e):n.push(e))},this);var o=function(e,t){lg.each(e,function(e){if(lg.isArray(e[0])){var r=t;lg.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)},u_.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},u_.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},u_.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=lg.bind(function(e){return new am(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:lg.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:lg.bind(function(t){var r=this._run_hook("before_send_"+e.type,t);return r?r[0]:null},this),stopAllBatchingFunc:lg.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()},u_.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,lg.each(this.request_batchers,function(e){e.start()}))},u_.prototype.stop_batch_senders=function(){this._batch_requests=!1,lg.each(this.request_batchers,function(e){e.stop(),e.clear()})},u_.prototype.push=function(e){this._execute_array([e])},u_.prototype.enable=function(e){var t,r,n,i;if(void 0===e)this._flags.disable_all_events=!1;else{for(t={},r=[],n=0;n<e.length;n++)t[e[n]]=!0;for(i=0;i<this.__disabled_events.length;i++)t[this.__disabled_events[i]]||r.push(this.__disabled_events[i]);this.__disabled_events=r}},u_.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},u_.prototype._encode_data_for_request=function(e){var t=Pg(e);return this.get_config("api_payload_format")===t_&&(t=lg.base64Encode(t)),{data:t}},u_.prototype._track_or_batch=function(e,t){var r=lg.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||Ag;var a=!0,c=lg.bind(function(){return s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r))&&(r=r[0]),r?(hg.log("MIXPANEL REQUEST:"),hg.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},u_.prototype.track=Wg(function(e,t,r,n){var i;if(!r||!r.skip_hooks){if(null===(i=this._run_hook("before_track",e,t)))return;e=i[0],t=i[1]}n||"function"!=typeof r||(n=r,r=null);var o=(r=r||{}).transport;o&&(r.transport=o);var s=r.send_immediately;if("function"!=typeof n&&(n=Ag),lg.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){(t=lg.extend({},t)).token=this.get_config("token");var a=this.persistence.remove_event_timer(e);if(!lg.isUndefined(a)){var c=(new Date).getTime()-a;t.$duration=parseFloat((c/1e3).toFixed(3))}this._set_default_superprops();var u=this.get_config("track_marketing")?lg.info.marketingParams():{};t=lg.extend({},lg.info.properties({mp_loader:this.get_config("mp_loader")}),u,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var l=this.get_config("property_blacklist");lg.isArray(l)?lg.each(l,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+l),this._start_recording_on_event(e,t);var h={event:e,properties:t};return i=this._track_or_batch({type:"events",data:h,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:s,send_request_options:r},n),this.flags&&this.flags.checkFirstTimeEvents&&this.flags.checkFirstTimeEvents(e,t),i}n(0)}}),u_.prototype.set_group=Wg(function(e,t,r){lg.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)}),u_.prototype.add_group=Wg(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)}),u_.prototype.remove_group=Wg(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)}),u_.prototype.track_with_groups=Wg(function(e,t,r,n){var i=lg.extend({},t||{});return lg.each(r,function(e,t){null!=e&&(i[t]=e)}),this.track(e,i,n)}),u_.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},u_.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},u_.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 Ly)._init(this,e,t),this._cached_groups[r]=n),n},u_.prototype.track_pageview=Wg(function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=lg.extend(lg.info.mpPageViewProperties(),lg.info.campaignParams(),lg.info.clickParams()),i=lg.extend({},n,e);return this.is_recording_heatmap_data()&&(i.$captured_for_heatmap=!0),this.track(r,i)}),u_.prototype.track_links=function(){return this._track_dom.call(this,Ey,arguments)},u_.prototype.track_forms=function(){return this._track_dom.call(this,Oy,arguments)},u_.prototype.time_event=function(e){lg.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,(new Date).getTime())};var h_={persistent:!0},p_=function(e){var t;return t=lg.isObject(e)?e:lg.isUndefined(e)?{}:{days:e},lg.extend({},h_,t)};u_.prototype.register=function(e,t){var r=this._run_hook("before_register",e,t);if(null!==r){e=r[0],t=r[1];var n=p_(t);n.persistent?this.persistence.register(e,n.days):lg.extend(this.unpersisted_superprops,e)}},u_.prototype.register_once=function(e,t,r){var n=this._run_hook("before_register_once",e,t,r);if(null!==n){e=n[0],t=n[1],r=n[2];var i=p_(r);i.persistent?this.persistence.register_once(e,t,i.days):(void 0===t&&(t="None"),lg.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))}},u_.prototype.unregister=function(e,t){var r=this._run_hook("before_unregister",e,t);null!==r&&(e=r[0],t=r[1],(t=p_(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e])},u_.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},u_.prototype.identify=function(e,t,r,n,i,o,s,a){var c=this._run_hook("before_identify",e);if(null===c)return-1;e=c[0];var u=this.get_distinct_id();if(e&&u!==e){if("string"==typeof e&&0===e.indexOf(r_))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var l=u;this.register_once({$had_persisted_distinct_id:!0,$device_id:l},"")}e!==u&&e!==this.get_property(Yy)&&(this.unregister(Yy),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,i,o,s,a),e!==u&&this.track("$identify",{distinct_id:e,$anon_distinct_id:u},{skip_hooks:!0}),e!==u&&this.flags.fetchFlags().catch(function(){hg.error("[flags] Error fetching flags during identify")})},u_.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=lg.UUID();this.register_once({distinct_id:r_+e,$device_id:e},""),this._check_and_start_session_recording(),this.flags.reset()},u_.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},u_.prototype.alias=function(e,t){if(e===this.get_property(Gy))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return lg.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(Yy,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)},u_.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},u_.prototype.set_config=function(e){lg.isObject(e)&&(lg.extend(this.config,e),e.batch_size&&lg.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),R.DEBUG=R.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init(),lg.isObject(e.hooks)&&(this.hooks={},lg.each(e.hooks,function(e,t){if(lg.isFunction(e))this.hooks[t]=[e];else if(lg.isArray(e)){this.hooks[t]=[];for(var r=0;r<e.length;r++)lg.isFunction(e[r])||hg.critical("Invalid hook added. Hook is not a function"),this.hooks[t].push(e[r])}else hg.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this)))},u_.prototype.get_config=function(e){return this.config[e]},u_.prototype._run_hook=function(e){var t=Jd.call(arguments,1);return lg.each(this.hooks[e],function(r){if(null===t)return null;var n=r.apply(this,t);void 0===n?(this.report_error(e+" hook did not return a valid value"),t=null):(lg.isArray(n)||(n=[n]),t.splice.apply(t,[0,n.length].concat(n)))},this),t},u_.prototype.get_property=function(e){return this.persistence.load_prop([e])},u_.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},u_.prototype.toString=function(){var e=this.get_config("name");return e!==e_&&(e=e_+"."+e),e},u_.prototype._event_is_disabled=function(e){return lg.isBlockedUA(ng)||this._flags.disable_all_events||lg.include(this.__disabled_events,e)},u_.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&lg.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")&&!lg.cookie.get("mp_optout")||(lg.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},u_.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()},u_.prototype._gdpr_call_func=function(e,t){return t=lg.extend({track:lg.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),lg.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})},u_.prototype.opt_in_tracking=function(e){e=lg.extend({enable_persistence:!0},e),this._gdpr_call_func(jg,e),this._gdpr_update_persistence(e)},u_.prototype.opt_out_tracking=function(e){(e=lg.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(qg,e),this._gdpr_update_persistence(e)},u_.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(zg,e)},u_.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(Vg,e)},u_.prototype.clear_opt_in_out_tracking=function(e){e=lg.extend({enable_persistence:!0},e),this._gdpr_call_func(Gg,e),this._gdpr_update_persistence(e)},u_.prototype.report_error=function(e,t){hg.error.apply(hg.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(e){hg.error(e)}},u_.prototype.add_hook=function(e,t){this.hooks[e]||(this.hooks[e]=[]),this.hooks[e].push(t)},u_.prototype.remove_hook=function(e,t){var r;this.hooks[e]&&(-1!==(r=this.hooks[e].indexOf(t))?this.hooks[e].splice(r,1):hg.log("remove_hook failed. Matching hook was not found"))},u_.prototype.init=u_.prototype.init,u_.prototype.reset=u_.prototype.reset,u_.prototype.enable=u_.prototype.enable,u_.prototype.disable=u_.prototype.disable,u_.prototype.time_event=u_.prototype.time_event,u_.prototype.track=u_.prototype.track,u_.prototype.track_links=u_.prototype.track_links,u_.prototype.track_forms=u_.prototype.track_forms,u_.prototype.track_pageview=u_.prototype.track_pageview,u_.prototype.register=u_.prototype.register,u_.prototype.register_once=u_.prototype.register_once,u_.prototype.unregister=u_.prototype.unregister,u_.prototype.identify=u_.prototype.identify,u_.prototype.alias=u_.prototype.alias,u_.prototype.name_tag=u_.prototype.name_tag,u_.prototype.set_config=u_.prototype.set_config,u_.prototype.get_config=u_.prototype.get_config,u_.prototype.get_api_host=u_.prototype.get_api_host,u_.prototype.get_property=u_.prototype.get_property,u_.prototype.get_distinct_id=u_.prototype.get_distinct_id,u_.prototype.toString=u_.prototype.toString,u_.prototype.opt_out_tracking=u_.prototype.opt_out_tracking,u_.prototype.opt_in_tracking=u_.prototype.opt_in_tracking,u_.prototype.has_opted_out_tracking=u_.prototype.has_opted_out_tracking,u_.prototype.has_opted_in_tracking=u_.prototype.has_opted_in_tracking,u_.prototype.clear_opt_in_out_tracking=u_.prototype.clear_opt_in_out_tracking,u_.prototype.get_group=u_.prototype.get_group,u_.prototype.set_group=u_.prototype.set_group,u_.prototype.add_group=u_.prototype.add_group,u_.prototype.remove_group=u_.prototype.remove_group,u_.prototype.add_hook=u_.prototype.add_hook,u_.prototype.remove_hook=u_.prototype.remove_hook,u_.prototype.track_with_groups=u_.prototype.track_with_groups,u_.prototype.start_batch_senders=u_.prototype.start_batch_senders,u_.prototype.stop_batch_senders=u_.prototype.stop_batch_senders,u_.prototype.start_session_recording=u_.prototype.start_session_recording,u_.prototype.stop_session_recording=u_.prototype.stop_session_recording,u_.prototype.pause_session_recording=u_.prototype.pause_session_recording,u_.prototype.resume_session_recording=u_.prototype.resume_session_recording,u_.prototype.get_session_recording_properties=u_.prototype.get_session_recording_properties,u_.prototype.get_session_replay_url=u_.prototype.get_session_replay_url,u_.prototype.get_tab_id=u_.prototype.get_tab_id,u_.prototype.DEFAULT_API_ROUTES=s_,u_.prototype.__get_recorder=u_.prototype.__get_recorder,u_.prototype.__get_recording_init_promise=u_.prototype.__get_recording_init_promise,Ky.prototype.properties=Ky.prototype.properties,Ky.prototype.update_search_keyword=Ky.prototype.update_search_keyword,Ky.prototype.update_referrer_info=Ky.prototype.update_referrer_info,Ky.prototype.get_cross_subdomain=Ky.prototype.get_cross_subdomain,Ky.prototype.clear=Ky.prototype.clear;var f_={},d_=function(){Xy.init=function(e,t,r){if(r)return Xy[r]||(Xy[r]=f_[r]=l_(e,t,r),Xy[r]._loaded()),Xy[r];var n=Xy;f_[e_]?n=f_[e_]:e&&((n=l_(e,t,e_))._loaded(),f_[e_]=n),Xy=n,1===By&&(C[e_]=Xy),lg.each(f_,function(e,t){t!==e_&&(Xy[t]=e)}),Xy._=lg}};var g_=(Qy=function(e,t){t()},By=0,Xy=new u_,d_(),Xy.init(),function(){function e(){e.done||(e.done=!0,c_=!0,i_=!1,lg.each(f_,function(e){e._dom_loaded()}))}if(eg.addEventListener)"complete"===eg.readyState?e():eg.addEventListener("DOMContentLoaded",e,!1);else if(eg.attachEvent){eg.attachEvent("onreadystatechange",e);var t=!1;try{t=null===C.frameElement}catch(e){}eg.documentElement.doScroll&&t&&function t(){try{eg.documentElement.doScroll("left")}catch(e){return void setTimeout(t,1)}e()}()}lg.register_event(C,"load",e,!0)}(),Xy),m_={};function v_(e){var t;return null!=(t=null==e?void 0:e.mixpanel)?t:g_}var y_=["set","set_once","increment","append","union","remove"];var __=["set","set_once","union","remove"];var b_,w_={type:"mixpanel",config:{},init({config:e,env:t}){const r=e.settings;if(!(null==r?void 0:r.apiKey))return!1;const n=v_(t),{apiKey:i,identify:o,group:s,_state:a,...c}=r,u={track_pageview:!1,autocapture:!1,...c};n.init(i,u);return{...e,settings:{...r,_state:{lastIdentity:{}}}}},async push(e,{config:t,rule:r,env:n,data:i,collector:o}){var s,a;const c=v_(n),u=t.settings||{},l=(null==r?void 0:r.settings)||{},h=u._state||{};if(void 0!==l.reset){(m(l.reset)?l.reset:await E(e,l.reset,{collector:o}))&&(c.reset(),h.lastIdentity={})}const p=null!=(s=l.identify)?s:u.identify;if(void 0!==p){const t=await E(e,p,{collector:o});y(t)&&(h.lastIdentity=function(e,t,r={}){const n={...r},i=t.distinctId;return _(i)&&""!==i?(i===r.distinctId||(e.identify(i),n.distinctId=i),n):n}(c,t,h.lastIdentity))}if(void 0!==l.people){const t=await E(e,l.people,{collector:o});y(t)&&function(e,t){for(const r of y_){const n=t[r];y(n)&&0!==Object.keys(n).length&&e.people[r](n)}if(g(t.unset)){const r=t.unset.filter(e=>_(e));r.length>0&&e.people.unset(r)}!0===t.delete_user&&e.people.delete_user()}(c,t)}const f=null!=(a=l.group)?a:u.group;if(void 0!==f){const t=await E(e,f,{collector:o});if(y(t)){const{key:e,id:r}=t;_(e)&&""!==e&&(_(r)||g(r))&&""!==r&&c.set_group(e,r)}}if(void 0!==l.groupProfile){const t=await E(e,l.groupProfile,{collector:o});y(t)&&function(e,t){const{key:r,id:n}=t;if(!_(r)||""===r||!_(n)||""===n)return;const i=e.get_group(r,n);for(const e of __){const r=t[e];y(r)&&0!==Object.keys(r).length&&i[e](r)}if(g(t.unset)){const e=t.unset.filter(e=>_(e));e.length>0&&i.unset(e)}!0===t.delete&&i.delete()}(c,t)}if(!0!==(null==r?void 0:r.silent)){const t=_(null==r?void 0:r.name)?r.name:e.name,n=y(i)?i:{};c.track(t,n)}u._state=h},on(e,t){var r;if("consent"!==e||!t.data)return;const n=v_(t.env),i=t.data,o=null==(r=t.config)?void 0:r.consent;if(!o||0===Object.keys(o).length)return;Object.keys(o).every(e=>!0===i[e])?n.opt_in_tracking():n.opt_out_tracking()},destroy({config:e,env:t}){var r;const n=v_(t);null==(r=n.stop_batch_senders)||r.call(n);const i=null==e?void 0:e.settings;(null==i?void 0:i._state)&&(i._state={lastIdentity:{}})}},k_=w_;return b_=i,((i,o,s,a)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let c of r(o))n.call(i,c)||c===s||e(i,c,{get:()=>o[c],enumerable:!(a=t(o,c))||a.enumerable});return i})(e({},"__esModule",{value:!0}),b_)})();
1
+ "use strict";var Destination=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,i={};((t,r)=>{for(var n in r)e(t,n,{get:r[n],enumerable:!0})})(i,{DestinationMixpanel:()=>m_,default:()=>k_,destinationMixpanel:()=>w_});var o=Object.defineProperty,s=(e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})};function a(e,t){if("collector"===e)return"collector";if(!t)throw new Error(`stepId(${e}) requires an id`);return`${e}.${t}`}s({},{stepId:()=>a});function c(e,t){const r=e.destinations[t];if(!r)throw new Error(`Destination not found: ${t}`);return r}s({},{getDestination:()=>c});s({},{Level:()=>l});var u,l=((u=l||{})[u.ERROR=0]="ERROR",u[u.WARN=1]="WARN",u[u.INFO=2]="INFO",u[u.DEBUG=3]="DEBUG",u);function h(e,t){const r=e.transformers[t];if(!r)throw new Error(`Transformer not found: ${t}`);return r}s({},{getTransformer:()=>h});function p(e,t){const r=e.sources[t];if(!r)throw new Error(`Source not found: ${t}`);return r}s({},{getSource:()=>p});function f(e,t){const r=e.stores[t];if(!r)throw new Error(`Store not found: ${t}`);return r}async function d(e,t){return await e.get(t)}function g(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function v(e){return void 0!==e}function y(e){return"object"==typeof e&&null!==e&&!g(e)&&"[object Object]"===Object.prototype.toString.call(e)}function _(e){return"string"==typeof e}function b(e,t="",r){const n=t.split(".");let i=e;for(let e=0;e<n.length;e++){const t=n[e];if("*"===t&&g(i)){const t=n.slice(e+1).join("."),o=[];for(const e of i){const n=b(e,t,r);o.push(n)}return o}if(i=y(i)||g(i)?i[t]:void 0,void 0===i)break}return v(i)?i:r}function w(e){return m(e)||_(e)||function(e){return"number"==typeof e&&!Number.isNaN(e)}(e)||!v(e)||g(e)&&e.every(w)||y(e)&&Object.values(e).every(w)}function k(e){return w(e)?e:void 0}function S(e,t,r){return async function(...n){try{return await e(...n)}catch(e){if(!t)return;return await t(e)}finally{await(null==r?void 0:r())}}}s({},{getStore:()=>f,getStoreValue:()=>d});var C,x,I=class e extends Error{constructor(t,r){super(t,r),this.name="FatalError",Object.setPrototypeOf(this,e.prototype)}};async function E(e,t={},r={}){var n,i;if(!v(e))return;const o=y(e)&&e.consent||r.consent||(null==(n=r.collector)?void 0:n.consent),s=null!=(i=r.event)?i:y(e)?e:{};return O(e,t,{...r,consent:o,event:s})}async function O(e,t={},r={}){var n,i;const o=r.consent||(null==(n=r.collector)?void 0:n.consent),s=null!=(i=r.event)?i:{};if(!r.collector)throw new Error("getMappingValue: context.collector is required");const a={event:s,mapping:t,collector:r.collector,logger:r.collector.logger,consent:o},c=g(t)?t:[t];for(const t of c){const n=await S(M,e=>{if(e instanceof I)throw e;r.collector&&r.collector.status.failed++,a.logger.error("mapping processing failed",{event:s,error:e})})(e,t,{...a,mapping:t});if(v(n))return n}}async function M(e,t,r){return(g(t)?t:[t]).reduce(async(t,n)=>{const i=await t;if(i)return i;const o=_(n)?{key:n}:n;if(!Object.keys(o).length)return;const{condition:s,consent:a,fn:c,key:u,loop:l,map:h,set:p,validate:f,value:d}=o,m={...r,mapping:n};if(s&&!await S(s,e=>{if(e instanceof I)throw e;return m.logger.error("mapping condition failed",{event:m.event,error:e}),!1})(e,m))return;if(a&&!function(e,t={},r={}){const n={...t,...r},i={};let o=!e||0===Object.keys(e).length;return Object.keys(n).forEach(t=>{n[t]&&(i[t]=!0,e&&e[t]&&(o=!0))}),!!o&&i}(a,m.consent))return d;let y=v(d)?d:e;if(l){const[t,r]=l,n="this"===t?[e]:await O(e,t,m);y=g(n)?(await Promise.all(n.map(e=>v(e)?O(e,r,m):void 0))).filter(v):void 0}else h?y=await Object.entries(h).reduce(async(t,[r,n])=>{const i=await t,o=await O(e,n,m);return v(o)&&(i[r]=o),i},Promise.resolve({})):p?y=await Promise.all(p.map(t=>M(e,t,m))):u?y=b(e,u,d):c&&(y=await S(c,e=>{if(e instanceof I)throw e;m.logger.error("mapping fn failed",{event:m.event,error:e})})(e,m));f&&!await S(f,e=>{if(e instanceof I)throw e;return m.logger.error("mapping validate failed",{event:m.event,error:e}),!1})(y,m)&&(y=void 0);const w=k(y);return v(w)?w:k(d)},Promise.resolve(void 0))}C="undefined"==typeof window?{crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:x={hostname:""},referrer:""},screen:{width:0,height:0},location:x,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}:window;var R={DEBUG:!1,LIB_VERSION:"2.80.0"},A="__mp_targeting",T="__mp_recorder",P="__MP_TARGETING_FILENAME__";function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function D(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,i)}function F(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(e){D(o,n,i,s,a,"next",e)}function a(e){D(o,n,i,s,a,"throw",e)}s(void 0)})}}function L(e,t,r){return(L=G()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&W(i,r.prototype),i}).apply(null,arguments)}function U(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 B(){return B=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},B.apply(this,arguments)}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function q(e,t){if("function"!=typeof t&&null!==t)throw new 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&&W(e,t)}function z(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function V(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 W(e,t){return(W=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function H(e){var t="function"==typeof Map?new Map:void 0;return H=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new 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,n)}function n(){return L(e,arguments,j(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),W(n,e)},H(e)}function G(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(G=function(){return!!e})()}function Y(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 N(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?N(e,t):void 0}}(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function J(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 new 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=s.trys,(i=i.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 Z(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var K,X=Object.defineProperty,Q=function(e,t,r){return function(e,t,r){return t in e?X(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":$(t))?t+"":t,r)},ee=Object.defineProperty,te=function(e,t,r){return function(e,t,r){return t in e?ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":$(t))?t+"":t,r)},re=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(re||{}),ne={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ie={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},oe={};function se(e){if(oe[e])return oe[e];var t=globalThis[e],r=t.prototype,n=e in ne?ne[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in ie?ie[e]:void 0,s=Boolean(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 oe[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;return document.body.removeChild(a),u?oe[e]=u:r}catch(e){return r}}var ae={};function ce(e,t,r){var n,i=e+"."+String(r);if(ae[i])return ae[i].call(t);var o=se(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(ae[i]=s,s.call(t)):t[r]}var ue={};function le(e,t,r){var n=e+"."+String(r);if(ue[n])return ue[n].bind(t);var i=se(e)[r];return"function"!=typeof i?t[r]:(ue[n]=i,i.bind(t))}var he={childNodes:function(e){return ce("Node",e,"childNodes")},parentNode:function(e){return ce("Node",e,"parentNode")},parentElement:function(e){return ce("Node",e,"parentElement")},textContent:function(e){return ce("Node",e,"textContent")},contains:function(e,t){return le("Node",e,"contains")(t)},getRootNode:function(e){return le("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?ce("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?ce("Element",e,"shadowRoot"):null},querySelector:function(e,t){return ce("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return ce("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return se("MutationObserver").constructor},patch:function(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(){}}}};function pe(e){return e.nodeType===e.ELEMENT_NODE}function fe(e){var t=e&&"host"in e&&"mode"in e&&he.host(e)||null;return Boolean(t&&"shadowRoot"in t&&he.shadowRoot(t)===e)}function de(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function ge(e){try{var t=e.rules||e.cssRules;if(!t)return null;var r=e.href;!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href);var n=Array.from(t,function(e){return me(e,r)}).join("");return(i=n).includes(" background-clip: text;")&&!i.includes(" -webkit-background-clip: text;")&&(i=i.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),i}catch(e){return null}var i}function me(e,t){if(function(e){return"styleSheet"in e}(e)){var r;try{r=ge(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?Ee(r,e.styleSheet.href):r}var n,i=e.cssText;return function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":")&&(n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,i=i.replace(n,"$1\\$2")),t?Ee(i,t):i}var ve=function(){function e(){te(this,"idNodeMap",new Map),te(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(e){var t;if(!e)return-1;var r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1},t.getNode=function(e){return this.idNodeMap.get(e)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(e){return this.nodeMetaMap.get(e)||null},t.removeNodeFromMap=function(e,t){var r=this;void 0===t&&(t=!1);var n=this.getId(e);this.idNodeMap.delete(n),t&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEach(function(e){return r.removeNodeFromMap(e,t)})},t.has=function(e){return this.idNodeMap.has(e)},t.hasNode=function(e){return this.nodeMetaMap.has(e)},t.add=function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)},t.replace=function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function ye(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",c=i&&_e(i);return(r[n.toLowerCase()]||c&&r[c])&&(a=s?s(a,t):"*".repeat(a.length)),a}function _e(e){return e.toLowerCase()}var be="__rrweb_original__";function we(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?_e(t):null}function ke(e,t){var r;try{r=new URL(e,null!=t?t:window.location.href)}catch(e){return null}var n,i=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(n=null==i?void 0:i[1])?n:null}var Se=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Ce=/^(?:[a-z+]+:)?\/\//i,xe=/^www\..*/i,Ie=/^(data:)([^,]*),(.*)/i;function Ee(e,t){return(e||"").replace(Se,function(e,r,n,i,o,s){var a,c=n||o||s,u=r||i||"";if(!c)return e;if(Ce.test(c)||xe.test(c))return"url("+u+c+u+")";if(Ie.test(c))return"url("+u+c+u+")";if("/"===c[0])return"url("+u+(((a=t).indexOf("//")>-1?a.split("/").slice(0,3).join("/"):a.split("/")[0]).split("?")[0]+c)+u+")";var l=t.split("/"),h=c.split("/");l.pop();for(var p,f=Y(h);!(p=f()).done;){var d=p.value;"."!==d&&(".."===d?l.pop():l.push(d))}return"url("+u+l.join("/")+u+")"})}function Oe(e,t){return void 0===t&&(t=!1),t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Me(e,t){return function(e,t,r){void 0===r&&(r=!1);var n=Array.from(t.childNodes),i=[],o=0;if(n.length>1&&e&&"string"==typeof e)for(var s=Oe(e,r),a=s.length/e.length,c=1;c<n.length;c++)if(n[c].textContent&&"string"==typeof n[c].textContent){for(var u=Oe(n[c].textContent,r),l=3;l<u.length&&(u[l].match(/[a-zA-Z0-9]/)||-1!==u.indexOf(u.substring(0,l),1));l++);for(;l<u.length;l++){var h=u.substring(0,l),p=s.split(h),f=-1;if(2===p.length)f=p[0].length;else if(p.length>2&&""===p[0]&&""!==n[c-1].textContent)f=s.indexOf(h,1);else if(1===p.length){if(h=h.substring(0,h.length-1),(p=s.split(h)).length<=1)return i.push(e),i;l=101}else l===u.length-1&&(f=s.indexOf(h));if(p.length>=2&&l>100){var d=n[c-1].textContent;if(d&&"string"==typeof d){var g=Oe(d).length;f=s.indexOf(h,g)}-1===f&&(f=p[0].length)}if(-1!==f){for(var m=Math.floor(f/a);m>0&&m<e.length;){if((o+=1)>50*n.length)return i.push(e),i;var v=Oe(e.substring(0,m),r);if(v.length===f){i.push(e.substring(0,m)),e=e.substring(m),s=s.substring(f);break}v.length<f?m+=Math.max(1,Math.floor((f-v.length)/a)):m-=Math.max(1,Math.floor((v.length-f)*a))}break}}}return i.push(e),i}(e,t).join("/* rr_split */")}var Re,Ae,Te=1,Pe=new RegExp("[^a-z0-9-_:]");function Ne(){return Te++}var De=/^[^ \t\n\r\u000c]+/,Fe=/^[, \t\n\r\u000c]+/;var Le=new WeakMap;function Ue(e,t){return t&&""!==t.trim()?je(e,t):t}function Be(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function je(e,t){var r=Le.get(e);if(r||(r=e.createElement("a"),Le.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function qe(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?Ue(e,n):"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(Fe),!(r>=t.length);){var o=n(De);if(","===o.slice(-1))o=Ue(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=Ue(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?Ee(n,je(e)):"object"===t&&"data"===r?Ue(e,n):n:Ue(e,n):n}function ze(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function Ve(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&Ve(he.parentNode(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&Ve(he.parentNode(e),t,r)}function We(e,t,r,n){var i;if(pe(e)){if(i=e,!he.childNodes(i).length)return!1}else{if(null===he.parentElement(e))return!1;i=he.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(Ve(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 $e(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.needsMask,a=t.inlineStylesheet,c=t.maskInputOptions,u=void 0===c?{}:c,l=t.maskTextFn,h=t.maskInputFn,p=t.dataURLOptions,f=void 0===p?{}:p,d=t.inlineImages,g=t.recordCanvas,m=t.keepIframeSrcFn,v=t.newlyAddedElement,y=void 0!==v&&v,_=t.cssCaptured,b=void 0!==_&&_,w=function(e,t){if(!t.hasNode(e))return;var r=t.getId(e);return 1===r?void 0:r}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:re.Document,childNodes:[],compatMode:e.compatMode}:{type:re.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:re.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w};case e.ELEMENT_NODE:return function(e,t){for(var r,n=t.doc,i=t.blockClass,o=t.blockSelector,s=t.inlineStylesheet,a=t.maskInputOptions,c=void 0===a?{}:a,u=t.maskInputFn,l=t.dataURLOptions,h=void 0===l?{}:l,p=t.inlineImages,f=t.recordCanvas,d=t.keepIframeSrcFn,g=t.newlyAddedElement,m=void 0!==g&&g,v=t.rootId,y=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),_=function(e){if(z(e,HTMLFormElement))return"form";var t=_e(e.tagName);return Pe.test(t)?"div":t}(e),b={},w=e.attributes.length,k=0;k<w;k++){var S=e.attributes[k];ze(_,S.name,S.value)||(b[S.name]=qe(n,_,_e(S.name),S.value))}if("link"===_&&s){var C=Array.from(n.styleSheets).find(function(t){return t.href===e.href}),x=null;C&&(x=ge(C)),x&&(delete b.rel,delete b.href,b._cssText=x)}if("style"===_&&e.sheet){var I=ge(e.sheet);I&&(e.childNodes.length>1&&(I=Me(I,e)),b._cssText=I)}if("input"===_||"textarea"===_||"select"===_){var E=e.value,O=e.checked;"radio"!==b.type&&"checkbox"!==b.type&&"submit"!==b.type&&"button"!==b.type&&E?b.value=ye({element:e,type:we(e),tagName:_,value:E,maskInputOptions:c,maskInputFn:u}):O&&(b.checked=O)}"option"===_&&(e.selected&&!c.select?b.selected=!0:delete b.selected);"dialog"===_&&e.open&&(b.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal");if("canvas"===_&&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=be in i?i[be]:i;if(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)||(b.rr_dataURL=e.toDataURL(h.type,h.quality));else if(!("__context"in e)){var M=e.toDataURL(h.type,h.quality),R=n.createElement("canvas");R.width=e.width,R.height=e.height,M!==R.toDataURL(h.type,h.quality)&&(b.rr_dataURL=M)}if("img"===_&&p){Re||(Re=n.createElement("canvas"),Ae=Re.getContext("2d"));var A=e,T=A.currentSrc||A.getAttribute("src")||"<unknown-src>",P=A.crossOrigin,N=function(){A.removeEventListener("load",N);try{Re.width=A.naturalWidth,Re.height=A.naturalHeight,Ae.drawImage(A,0,0),b.rr_dataURL=Re.toDataURL(h.type,h.quality)}catch(e){if("anonymous"!==A.crossOrigin)return A.crossOrigin="anonymous",void(A.complete&&0!==A.naturalWidth?N():A.addEventListener("load",N));console.warn("Cannot inline img src="+T+"! Error: "+e)}"anonymous"===A.crossOrigin&&(P?b.crossOrigin=P:A.removeAttribute("crossorigin"))};A.complete&&0!==A.naturalWidth?N():A.addEventListener("load",N)}if("audio"===_||"video"===_){var D=b;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}m||(e.scrollLeft&&(b.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(b.rr_scrollTop=e.scrollTop));if(y){var F=e.getBoundingClientRect(),L=F.width,U=F.height;b={class:b.class,rr_width:L+"px",rr_height:U+"px"}}"iframe"!==_||d(b.src)||(e.contentDocument||(b.rr_src=b.src),delete b.src);try{customElements.get(_)&&(r=!0)}catch(e){}return{type:re.Element,tagName:_,attributes:b,childNodes:[],isSVG:Be(e)||void 0,needBlock:y,rootId:v,isCustom:r}}(e,{doc:r,blockClass:i,blockSelector:o,inlineStylesheet:a,maskInputOptions:u,maskInputFn:h,dataURLOptions:f,inlineImages:d,recordCanvas:g,keepIframeSrcFn:m,newlyAddedElement:y,rootId:w});case e.TEXT_NODE:return function(e,t){var r=t.needsMask,n=t.maskTextFn,i=t.rootId,o=t.cssCaptured,s=he.parentNode(e),a=s&&s.tagName,c="",u="STYLE"===a||void 0,l="SCRIPT"===a||void 0;l?c="SCRIPT_PLACEHOLDER":o||(c=he.textContent(e),u&&c&&(c=Ee(c,je(t.doc))));!u&&!l&&c&&r&&(c=n?n(c,he.parentElement(e)):c.replace(/[\S]/g,"*"));return{type:re.Text,textContent:c||"",rootId:i}}(e,{doc:r,needsMask:s,maskTextFn:l,rootId:w,cssCaptured:b});case e.CDATA_SECTION_NODE:return{type:re.CDATA,textContent:"",rootId:w};case e.COMMENT_NODE:return{type:re.Comment,textContent:he.textContent(e)||"",rootId:w};default:return!1}}function He(e){return null==e?"":e.toLowerCase()}function Ge(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.maskTextClass,a=t.maskTextSelector,c=t.skipChild,u=void 0!==c&&c,l=t.inlineStylesheet,h=void 0===l||l,p=t.maskInputOptions,f=void 0===p?{}:p,d=t.maskTextFn,g=t.maskInputFn,m=t.slimDOMOptions,v=t.dataURLOptions,y=void 0===v?{}:v,_=t.inlineImages,b=void 0!==_&&_,w=t.recordCanvas,k=void 0!==w&&w,S=t.onSerialize,C=t.onIframeLoad,x=t.iframeLoadTimeout,I=void 0===x?5e3:x,E=t.onStylesheetLoad,O=t.stylesheetLoadTimeout,M=void 0===O?5e3:O,R=t.keepIframeSrcFn,A=void 0===R?function(){return!1}:R,T=t.newlyAddedElement,P=void 0!==T&&T,N=t.cssCaptured,D=void 0!==N&&N,F=t.needsMask,L=t.preserveWhiteSpace,U=void 0===L||L;F||(F=We(e,s,a,void 0===F));var B,j=$e(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:F,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,dataURLOptions:y,inlineImages:b,recordCanvas:k,keepIframeSrcFn:A,newlyAddedElement:P,cssCaptured:D});if(!j)return console.warn(e,"not serialized"),null;B=n.hasNode(e)?n.getId(e):function(e,t){if(t.comment&&e.type===re.Comment)return!0;if(e.type===re.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===ke(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(He(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===He(e.attributes.name)||"icon"===He(e.attributes.rel)||"apple-touch-icon"===He(e.attributes.rel)||"shortcut icon"===He(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&He(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(He(e.attributes.property).match(/^(og|twitter|fb):/)||He(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===He(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===He(e.attributes.name)||"googlebot"===He(e.attributes.name)||"bingbot"===He(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===He(e.attributes.name)||"generator"===He(e.attributes.name)||"framework"===He(e.attributes.name)||"publisher"===He(e.attributes.name)||"progid"===He(e.attributes.name)||He(e.attributes.property).match(/^article:/)||He(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===He(e.attributes.name)||"yandex-verification"===He(e.attributes.name)||"csrf-token"===He(e.attributes.name)||"p:domain_verify"===He(e.attributes.name)||"verify-v1"===He(e.attributes.name)||"verification"===He(e.attributes.name)||"shopify-checkout-api-token"===He(e.attributes.name)))return!0}}return!1}(j,m)||!U&&j.type===re.Text&&!j.textContent.replace(/^\s+|\s+$/gm,"").length?-2:Ne();var q=Object.assign(j,{id:B});if(n.add(e,q),-2===B)return null;S&&S(e);var z=!u;if(q.type===re.Element){z=z&&!q.needBlock,delete q.needBlock;var V=he.shadowRoot(e);V&&de(V)&&(q.isShadowHost=!0)}if((q.type===re.Document||q.type===re.Element)&&z){m.headWhitespace&&q.type===re.Element&&"head"===q.tagName&&(U=!1);var W={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:F,maskTextClass:s,maskTextSelector:a,skipChild:u,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:U,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:I,onStylesheetLoad:E,stylesheetLoadTimeout:M,keepIframeSrcFn:A,cssCaptured:!1};if(q.type===re.Element&&"textarea"===q.tagName&&void 0!==q.attributes.value);else{q.type===re.Element&&void 0!==q.attributes._cssText&&"string"==typeof q.attributes._cssText&&(W.cssCaptured=!0);for(var $,H=Y(Array.from(he.childNodes(e)));!($=H()).done;){var G=Ge($.value,W);G&&q.childNodes.push(G)}}var J=null;if(pe(e)&&(J=he.shadowRoot(e)))for(var Z,K=Y(Array.from(he.childNodes(J)));!(Z=K()).done;){var X=Ge(Z.value,W);X&&(de(J)&&(X.isShadow=!0),q.childNodes.push(X))}}var Q=he.parentNode(e);return Q&&fe(Q)&&de(Q)&&(q.isShadow=!0),q.type===re.Element&&"iframe"===q.tagName&&function(e,t,r){var n=e.contentWindow;if(n){var i,o=!1;try{i=n.document.readyState}catch(e){return}if("complete"===i){var s="about:blank";if(n.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}else{var a=setTimeout(function(){o||(t(),o=!0)},r);e.addEventListener("load",function(){clearTimeout(a),o=!0,t()})}}}(e,function(){var t=e.contentDocument;if(t&&C){var r=Ge(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:F,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:U,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:I,onStylesheetLoad:E,stylesheetLoadTimeout:M,keepIframeSrcFn:A});r&&C(e,r)}},I),q.type===re.Element&&"link"===q.tagName&&"string"==typeof q.attributes.rel&&("stylesheet"===q.attributes.rel||"preload"===q.attributes.rel&&"string"==typeof q.attributes.href&&"css"===ke(q.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=Ge(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:F,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:U,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:I,onStylesheetLoad:E,stylesheetLoadTimeout:M,keepIframeSrcFn:A});t&&E(e,t)}},M),q}function Ye(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Je(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return z(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}var Ze={exports:{}},Ke=String,Xe=function(){return{isColorSupported:!1,reset:Ke,bold:Ke,dim:Ke,italic:Ke,underline:Ke,inverse:Ke,hidden:Ke,strikethrough:Ke,black:Ke,red:Ke,green:Ke,yellow:Ke,blue:Ke,magenta:Ke,cyan:Ke,white:Ke,gray:Ke,bgBlack:Ke,bgRed:Ke,bgGreen:Ke,bgYellow:Ke,bgBlue:Ke,bgMagenta:Ke,bgCyan:Ke,bgWhite:Ke}};Ze.exports=Xe(),Ze.exports.createColors=Xe;var Qe=Ze.exports,et=Je(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),tt=Qe,rt=et,nt=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}q(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=this;if(!this.source)return"";var r=this.source;null==e&&(e=tt.isColorSupported),rt&&e&&(r=rt(r));var n,i,o=r.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=tt.createColors(!0),l=u.bold,h=u.gray,p=u.red;n=function(e){return l(p(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var u=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+u+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(H(Error)),it=nt;nt.default=nt;var ot={};ot.isClean=Symbol("isClean"),ot.my=Symbol("my");var st={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var at=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){var r;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 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){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return st[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=st[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){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);var 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 new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),ct=at;at.default=at;var ut=ct;function lt(e,t){new ut(t).stringify(e)}var ht=lt;lt.default=lt;var pt=ot.isClean,ft=ot.my,dt=it,gt=ct,mt=ht;function vt(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":$(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return vt(e,r)}):("object"===o&&null!==i&&(i=vt(i)),r[n]=i)}return r}var yt=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[pt]=!1,this[ft]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Y(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=vt(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 dt(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[pt]){this[pt]=!1;for(var e=this;e=e.parent;)e[pt]=!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);else 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 gt).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=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=Y(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"object"===(void 0===e?"undefined":$(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===(void 0===s?"undefined":$(s))&&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=mt),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)},U(e,[{key:"proxyOf",get:function(){return this}}]),e}(),_t=yt;yt.default=yt;var bt=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=B({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return q(t,e),U(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(_t),wt=bt;bt.default=bt;var kt=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},St=et.SourceMapConsumer,Ct=et.SourceMapGenerator,xt=et.existsSync,It=et.readFileSync,Et=et.dirname,Ot=et.join;var Mt=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=Et(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new St(this.text)),this.consumerCache},t.decodeInline=function(e){var t;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))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===(void 0===e?"undefined":$(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(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=Et(e),xt(e))return this.mapFile=e,It(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){if(z(t,St))return Ct.fromSourceMap(t).toString();if(z(t,Ct))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=Ot(Et(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=Mt;Mt.default=Mt;var At=et.SourceMapConsumer,Tt=et.SourceMapGenerator,Pt=et.fileURLToPath,Nt=et.pathToFileURL,Dt=et.isAbsolute,Ft=et.resolve,Lt=kt,Ut=et,Bt=it,jt=Rt,qt=Symbol("fromOffsetCache"),zt=Boolean(At&&Tt),Vt=Boolean(Ft&&Dt),Wt=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":$(e))&&!e.toString)throw new 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&&(!Vt||/^\w+:\/\//.test(t.from)||Dt(t.from)?this.file=t.from:this.file=Ft(t.from)),Vt&&zt){var r=new jt(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 "+Lt(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":$(t))){var a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(i=p?new Bt(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new Bt(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&&(Nt&&(i.input.url=Nt(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[qt])t=this[qt];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i<o;i++)t[i]=n,n+=r[i].length+1;this[qt]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,c=t.length-2;s<c;)if(e<t[a=s+(c-s>>1)])c=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Ft(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=Dt(a.source)?Nt(a.source):new URL(a.source,this.map.consumer().sourceRoot||Nt(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(!Pt)throw new Error("file: protocol is not available in this PostCSS build");c.file=Pt(o)}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=B({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},U(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),$t=Wt;Wt.default=Wt,Ut&&Ut.registerInput&&Ut.registerInput(Wt);var Ht=et.SourceMapConsumer,Gt=et.SourceMapGenerator,Yt=et.dirname,Jt=et.relative,Zt=et.resolve,Kt=et.sep,Xt=et.pathToFileURL,Qt=$t,er=Boolean(Ht&&Gt),tr=Boolean(Yt&&Zt&&Jt&&Kt),rr=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;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 t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=Y(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||Yt(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new Ht(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(),tr&&er&&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=Gt.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Gt({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=this;this.css="",this.map=new Gt({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,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(e.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):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=e.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,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.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)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?Yt(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=Yt(Zt(r,this.mapOpts.annotation)));var n=Jt(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 Qt(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 Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(Xt){var r=Xt(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new 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;"\\"===Kt&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),nr=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return q(t,e),t}(_t),ir=nr;nr.default=nr;var or,sr,ar,cr,ur=ot.isClean,lr=ot.my,hr=wt,pr=ir;function fr(e){return e.map(function(e){return e.nodes&&(e.nodes=fr(e.nodes)),delete e.source,e})}function dr(e){if(e[ur]=!1,e.proxyOf.nodes)for(var t,r=Y(e.proxyOf.nodes);!(t=r()).done;){dr(t.value)}}var gr=function(e){function t(){return e.apply(this,arguments)||this}q(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Y(t);!(n=i()).done;)for(var o,s=n.value,a=Y(this.normalize(s,this.last));!(o=a()).done;){var c=o.value;this.proxyOf.nodes.push(c)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=Y(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){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))}:"every"===t||"some"===t?function(r){return e[t](function(e){for(var t=arguments.length,n=new 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))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]: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=Y(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=Y(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=fr(or(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i,o=Y(e=e.slice(0));!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}else if("root"===e.type&&"document"!==this.type)for(var a,c=Y(e=e.nodes.slice(0));!(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 new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new hr(e)]}else if(e.selector)e=[new sr(e)];else if(e.name)e=[new ar(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new pr(e)]}return e.map(function(e){return e[lr]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[ur]&&dr(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=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Y(t=t.reverse());!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=Y(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=Y(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?z(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?z(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?z(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)}))},U(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}(_t);gr.registerParse=function(e){or=e},gr.registerRule=function(e){sr=e},gr.registerAtRule=function(e){ar=e},gr.registerRoot=function(e){cr=e};var mr=gr;gr.default=gr,gr.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,ar.prototype):"rule"===e.type?Object.setPrototypeOf(e,sr.prototype):"decl"===e.type?Object.setPrototypeOf(e,hr.prototype):"comment"===e.type?Object.setPrototypeOf(e,pr.prototype):"root"===e.type&&Object.setPrototypeOf(e,cr.prototype),e[lr]=!0,e.nodes&&e.nodes.forEach(function(e){gr.rebuild(e)})};var vr,yr,_r=function(e){function t(t){var r;return(r=e.call(this,B({type:"document"},t))||this).nodes||(r.nodes=[]),r}return q(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new vr(new yr,this,e).stringify()},t}(mr);_r.registerLazyResult=function(e){vr=e},_r.registerProcessor=function(e){yr=e};var br=_r;_r.default=_r;var wr={},kr=function(e){wr[e]||(wr[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))},Sr=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}(),Cr=Sr;Sr.default=Sr;var xr=Cr,Ir=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 xr(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},U(e,[{key:"content",get:function(){return this.css}}]),e}(),Er=Ir;Ir.default=Ir;var Or="'".charCodeAt(0),Mr='"'.charCodeAt(0),Rr="\\".charCodeAt(0),Ar="/".charCodeAt(0),Tr="\n".charCodeAt(0),Pr=" ".charCodeAt(0),Nr="\f".charCodeAt(0),Dr="\t".charCodeAt(0),Fr="\r".charCodeAt(0),Lr="[".charCodeAt(0),Ur="]".charCodeAt(0),Br="(".charCodeAt(0),jr=")".charCodeAt(0),qr="{".charCodeAt(0),zr="}".charCodeAt(0),Vr=";".charCodeAt(0),Wr="*".charCodeAt(0),$r=":".charCodeAt(0),Hr="@".charCodeAt(0),Gr=/[\t\n\f\r "#'()/;[\\\]{}]/g,Yr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Jr=/.[\r\n"'(/\\]/,Zr=/[\da-f]/i,Kr=mr,Xr=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}q(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(Kr),Qr=Xr;Xr.default=Xr,Kr.registerAtRule(Xr);var en,tn,rn=mr,nn=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}q(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=Y(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 en(new tn,this,e).stringify()},t}(rn);nn.registerLazyResult=function(e){en=e},nn.registerProcessor=function(e){tn=e};var on=nn;nn.default=nn,rn.registerRoot(nn);var sn={comma:function(e){return sn.split(e,[","],!0)},space:function(e){return sn.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=Y(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:c?p===u&&(c=!1):'"'===p||"'"===p?(c=!0,u=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}},an=sn;sn.default=sn;var cn=mr,un=an,ln=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return q(t,e),U(t,[{key:"selectors",get:function(){return un.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}(cn),hn=ln;ln.default=ln,cn.registerRule(ln);var pn=wt,fn=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,p=e.css.valueOf(),f=t.ignoreErrors,d=p.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=d},nextToken:function(e){if(v.length)return v.pop();if(!(g>=d)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case Tr:case Pr:case Dr:case Fr:case Nr:n=g;do{n+=1,r=p.charCodeAt(n)}while(r===Pr||r===Tr||r===Dr||r===Fr||r===Nr);h=["space",p.slice(g,n)],g=n-1;break;case Lr:case Ur:case qr:case zr:case $r:case Vr:case jr:var _=String.fromCharCode(r);h=[_,_,g];break;case Br:if(u=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===u&&l!==Or&&l!==Mr&&l!==Pr&&l!==Tr&&l!==Dr&&l!==Nr&&l!==Fr){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1))){if(f||t){n=g;break}y("bracket")}for(c=n;p.charCodeAt(c-1)===Rr;)c-=1,a=!a}while(a);h=["brackets",p.slice(g,n+1),g,n],g=n}else n=p.indexOf(")",g+1),o=p.slice(g,n+1),-1===n||Jr.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case Or:case Mr:i=r===Or?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1))){if(f||t){n=g+1;break}y("string")}for(c=n;p.charCodeAt(c-1)===Rr;)c-=1,a=!a}while(a);h=["string",p.slice(g,n+1),g,n],g=n;break;case Hr:Gr.lastIndex=g+1,Gr.test(p),n=0===Gr.lastIndex?p.length-1:Gr.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case Rr:for(n=g,s=!0;p.charCodeAt(n+1)===Rr;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==Ar&&r!==Pr&&r!==Tr&&r!==Dr&&r!==Fr&&r!==Nr&&(n+=1,Zr.test(p.charAt(n)))){for(;Zr.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===Pr&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:r===Ar&&p.charCodeAt(g+1)===Wr?(0===(n=p.indexOf("*/",g+2)+1)&&(f||t?n=p.length:y("comment")),h=["comment",p.slice(g,n+1),g,n],g=n):(Yr.lastIndex=g+1,Yr.test(p),n=0===Yr.lastIndex?p.length-1:Yr.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h),g=n)}return g++,h}},position:function(){return g}}},dn=ir,gn=Qr,mn=on,vn=hn,yn={empty:!0,space:!0};var _n=function(){function e(e){this.input=e,this.root=new mn,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 gn;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(r=a[n=a.length-1];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=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=Y(e.entries());!(i=s()).done;){var a=i.value,c=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new dn;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=fn(this.input)},t.decl=function(e,t){var r=new pn;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[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)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(n=e[c])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",p=c;p>0;p--){var f=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==f)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.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 vn;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;c;){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);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,h=0;h<c;h+=1)"space"!==(o=(i=r[h])[0])||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",yn[a]||yn[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var p=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new vn;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}(),bn=mr,wn=_n,kn=$t;function Sn(e,t){var r=new kn(e,t),n=new wn(r);try{n.parse()}catch(e){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===e.name&&t&&t.from&&(/\.scss$/i.test(t.from)?e.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?e.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(e.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),e}return n.root}var Cn=Sn;Sn.default=Sn,bn.registerParse(Sn);var xn=ot.isClean,In=ot.my,En=rr,On=ht,Mn=mr,Rn=br,An=kr,Tn=Er,Pn=Cn,Nn=on,Dn={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Fn={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},Ln={Once:!0,postcssPlugin:!0,prepare:!0};function Un(e){return"object"===(void 0===e?"undefined":$(e))&&"function"==typeof e.then}function Bn(e){var t=!1,r=Dn[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 jn(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:Bn(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function qn(e){return e[xn]=!1,e.nodes&&e.nodes.forEach(function(e){return qn(e)}),e}var zn={},Vn=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===r?"undefined":$(r))||null===r||"root"!==r.type&&"document"!==r.type)if(z(r,e)||z(r,Tn))i=qn(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=Pn;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[In]&&Mn.rebuild(i)}else i=qn(r);this.result=new Tn(t,i,n),this.helpers=B({},zn,{postcss:zn,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===(void 0===e?"undefined":$(e))&&e.prepare?B({},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 new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){var n=r.postcssPlugin,i=r.postcssVersion,o=this.result.processor.version,s=i.split("."),a=o.split(".");(s[0]!==a[0]||parseInt(s[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", but "+n+" uses "+i+". Perhaps this is the source of the error below.")}}else 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=Y(this.plugins);!(t=n()).done;){var i=t.value;if("object"===(void 0===i?"undefined":$(i)))for(var o in i){if(!Fn[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Ln[o])if("object"===$(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 F(function(){var t,r,n,i,o,s,a,c,u,l,h,p;return J(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],!Un(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[xn])return[3,14];o[xn]=!0,s=[jn(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!Un(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,s;return J(this,function(a){switch(a.label){case 0:t=p.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},h=Y(e.listeners.OnceExit),f.label=15;case 15:return(p=h()).done?[3,18]:[5,Z(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===(void 0===e?"undefined":$(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return Un(r[0])?Promise.all(r):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=On;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new En(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=Y(this.plugins);!(e=t()).done;){var r=e.value;if(Un(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[xn];)n[xn]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=Y(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"production"!==process.env.NODE_ENV&&("from"in this.opts||An("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Y(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(Un(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){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[xn])return a[xn]=!0,void e.push(jn(a));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)return void(r.nodes&&r.nodes.length&&(r[xn]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[xn]=!0;for(var r,n=Y(Bn(e));!(r=n()).done;){var i=r.value;if(0===i)e.nodes&&e.each(function(e){e[xn]||t.walkSync(e)});else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},U(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}();Vn.registerPostcss=function(e){zn=e};var Wn=Vn;Vn.default=Vn,Nn.registerLazyResult(Vn),Rn.registerLazyResult(Vn);var $n=rr,Hn=ht,Gn=kr,Yn=Cn,Jn=Er,Zn=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=Hn;this.result=new Jn(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new $n(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.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"production"!==process.env.NODE_ENV&&("from"in this._opts||Gn("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},U(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(){if(this._root)return this._root;var e,t=Yn;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Kn=Zn;Zn.default=Zn;var Xn=Kn,Qn=Wn,ei=br,ti=on,ri=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=Y(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===(void 0===i?"undefined":$(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===(void 0===i?"undefined":$(i))&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else{if("object"!==(void 0===i?"undefined":$(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new Qn(this,e,t):new Xn(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),ni=ri;ri.default=ri,ti.registerProcessor(ri),ei.registerProcessor(ri);var ii=wt,oi=Rt,si=ir,ai=Qr,ci=$t,ui=on,li=hn;function hi(e,t){if(Array.isArray(e))return e.map(function(e){return hi(e)});var r=e.inputs,n=V(e,["inputs"]);if(r){t=[];for(var i,o=Y(r);!(i=o()).done;){var s=B({},i.value,{__proto__:ci.prototype});s.map&&(s.map=B({},s.map,{__proto__:oi.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return hi(e,t)})),n.source){var a=n.source,c=a.inputId,u=V(a,["inputId"]);n.source=u,null!=c&&(n.source.input=t[c])}if("root"===n.type)return new ui(n);if("decl"===n.type)return new ii(n);if("rule"===n.type)return new li(n);if("comment"===n.type)return new si(n);if("atrule"===n.type)return new ai(n);throw new Error("Unknown node type: "+e.type)}var pi=hi;hi.default=hi;var fi=it,di=wt,gi=Wn,mi=mr,vi=ni,yi=ht,_i=pi,bi=br,wi=Cr,ki=ir,Si=Qr,Ci=Er,xi=$t,Ii=Cn,Ei=an,Oi=hn,Mi=on,Ri=_t;function Ai(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new vi(t)}Ai.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new 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"),process.env.LANG&&process.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 vi).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return Ai([i(r)]).process(e,t)},i},Ai.stringify=yi,Ai.parse=Ii,Ai.fromJSON=_i,Ai.list=Ei,Ai.comment=function(e){return new ki(e)},Ai.atRule=function(e){return new Si(e)},Ai.decl=function(e){return new di(e)},Ai.rule=function(e){return new Oi(e)},Ai.root=function(e){return new Mi(e)},Ai.document=function(e){return new bi(e)},Ai.CssSyntaxError=fi,Ai.Declaration=di,Ai.Container=mi,Ai.Processor=vi,Ai.Document=bi,Ai.Comment=ki,Ai.Warning=wi,Ai.AtRule=Si,Ai.Result=Ci,Ai.Input=xi,Ai.Rule=Oi,Ai.Root=Mi,Ai.Node=Ri,gi.registerPostcss(Ai);var Ti=Ai;Ai.default=Ai;var Pi=Ye(Ti);Pi.stringify,Pi.fromJSON,Pi.plugin,Pi.parse,Pi.list,Pi.document,Pi.comment,Pi.atRule,Pi.rule,Pi.decl,Pi.root,Pi.CssSyntaxError,Pi.Declaration,Pi.Container,Pi.Processor,Pi.Document,Pi.Comment,Pi.Warning,Pi.AtRule,Pi.Result,Pi.Input,Pi.Rule,Pi.Root,Pi.Node;var Ni=Object.defineProperty,Di=function(e,t,r){return function(e,t,r){return t in e?Ni(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":$(t))?t+"":t,r)};function Fi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Li(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return z(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}var Ui={exports:{}},Bi=String,ji=function(){return{isColorSupported:!1,reset:Bi,bold:Bi,dim:Bi,italic:Bi,underline:Bi,inverse:Bi,hidden:Bi,strikethrough:Bi,black:Bi,red:Bi,green:Bi,yellow:Bi,blue:Bi,magenta:Bi,cyan:Bi,white:Bi,gray:Bi,bgBlack:Bi,bgRed:Bi,bgGreen:Bi,bgYellow:Bi,bgBlue:Bi,bgMagenta:Bi,bgCyan:Bi,bgWhite:Bi}};Ui.exports=ji(),Ui.exports.createColors=ji;var qi=Ui.exports,zi=Li(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Vi=qi,Wi=zi,$i=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}q(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=this;if(!this.source)return"";var r=this.source;null==e&&(e=Vi.isColorSupported),Wi&&e&&(r=Wi(r));var n,i,o=r.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=Vi.createColors(!0),l=u.bold,h=u.gray,p=u.red;n=function(e){return l(p(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var u=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+u+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(H(Error)),Hi=$i;$i.default=$i;var Gi={};Gi.isClean=Symbol("isClean"),Gi.my=Symbol("my");var Yi={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var Ji=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){var r;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 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){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return Yi[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=Yi[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){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);var 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 new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),Zi=Ji;Ji.default=Ji;var Ki=Zi;function Xi(e,t){new Ki(t).stringify(e)}var Qi=Xi;Xi.default=Xi;var eo=Gi.isClean,to=Gi.my,ro=Hi,no=Zi,io=Qi;function oo(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":$(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return oo(e,r)}):("object"===o&&null!==i&&(i=oo(i)),r[n]=i)}return r}var so=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[eo]=!1,this[to]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Y(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=oo(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 ro(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[eo]){this[eo]=!1;for(var e=this;e=e.parent;)e[eo]=!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);else 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 no).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=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=Y(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"object"===(void 0===e?"undefined":$(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===(void 0===s?"undefined":$(s))&&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=io),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)},U(e,[{key:"proxyOf",get:function(){return this}}]),e}(),ao=so;so.default=so;var co=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=B({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return q(t,e),U(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(ao),uo=co;co.default=co;var lo=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},ho=zi.SourceMapConsumer,po=zi.SourceMapGenerator,fo=zi.existsSync,go=zi.readFileSync,mo=zi.dirname,vo=zi.join;var yo=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=mo(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new ho(this.text)),this.consumerCache},t.decodeInline=function(e){var t;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))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===(void 0===e?"undefined":$(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(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=mo(e),fo(e))return this.mapFile=e,go(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){if(z(t,ho))return po.fromSourceMap(t).toString();if(z(t,po))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=vo(mo(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}(),_o=yo;yo.default=yo;var bo=zi.SourceMapConsumer,wo=zi.SourceMapGenerator,ko=zi.fileURLToPath,So=zi.pathToFileURL,Co=zi.isAbsolute,xo=zi.resolve,Io=lo,Eo=zi,Oo=Hi,Mo=_o,Ro=Symbol("fromOffsetCache"),Ao=Boolean(bo&&wo),To=Boolean(xo&&Co),Po=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":$(e))&&!e.toString)throw new 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&&(!To||/^\w+:\/\//.test(t.from)||Co(t.from)?this.file=t.from:this.file=xo(t.from)),To&&Ao){var r=new Mo(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 "+Io(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":$(t))){var a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(i=p?new Oo(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new Oo(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&&(So&&(i.input.url=So(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[Ro])t=this[Ro];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i<o;i++)t[i]=n,n+=r[i].length+1;this[Ro]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,c=t.length-2;s<c;)if(e<t[a=s+(c-s>>1)])c=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:xo(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=Co(a.source)?So(a.source):new URL(a.source,this.map.consumer().sourceRoot||So(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(!ko)throw new Error("file: protocol is not available in this PostCSS build");c.file=ko(o)}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=B({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},U(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),No=Po;Po.default=Po,Eo&&Eo.registerInput&&Eo.registerInput(Po);var Do=zi.SourceMapConsumer,Fo=zi.SourceMapGenerator,Lo=zi.dirname,Uo=zi.relative,Bo=zi.resolve,jo=zi.sep,qo=zi.pathToFileURL,zo=No,Vo=Boolean(Do&&Fo),Wo=Boolean(Lo&&Bo&&Uo&&jo),$o=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;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 t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=Y(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||Lo(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new Do(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(),Wo&&Vo&&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=Fo.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Fo({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=this;this.css="",this.map=new Fo({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,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(e.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):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=e.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,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.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)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?Lo(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=Lo(Bo(r,this.mapOpts.annotation)));var n=Uo(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 zo(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 Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(qo){var r=qo(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new 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;"\\"===jo&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Ho=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return q(t,e),t}(ao),Go=Ho;Ho.default=Ho;var Yo,Jo,Zo,Ko,Xo=Gi.isClean,Qo=Gi.my,es=uo,ts=Go;function rs(e){return e.map(function(e){return e.nodes&&(e.nodes=rs(e.nodes)),delete e.source,e})}function ns(e){if(e[Xo]=!1,e.proxyOf.nodes)for(var t,r=Y(e.proxyOf.nodes);!(t=r()).done;){ns(t.value)}}var is=function(e){function t(){return e.apply(this,arguments)||this}q(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Y(t);!(n=i()).done;)for(var o,s=n.value,a=Y(this.normalize(s,this.last));!(o=a()).done;){var c=o.value;this.proxyOf.nodes.push(c)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=Y(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){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))}:"every"===t||"some"===t?function(r){return e[t](function(e){for(var t=arguments.length,n=new 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))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]: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=Y(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=Y(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=rs(Yo(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i,o=Y(e=e.slice(0));!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}else if("root"===e.type&&"document"!==this.type)for(var a,c=Y(e=e.nodes.slice(0));!(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 new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new es(e)]}else if(e.selector)e=[new Jo(e)];else if(e.name)e=[new Zo(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new ts(e)]}return e.map(function(e){return e[Qo]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[Xo]&&ns(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=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Y(t=t.reverse());!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=Y(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=Y(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?z(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?z(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?z(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)}))},U(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}(ao);is.registerParse=function(e){Yo=e},is.registerRule=function(e){Jo=e},is.registerAtRule=function(e){Zo=e},is.registerRoot=function(e){Ko=e};var os=is;is.default=is,is.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Zo.prototype):"rule"===e.type?Object.setPrototypeOf(e,Jo.prototype):"decl"===e.type?Object.setPrototypeOf(e,es.prototype):"comment"===e.type?Object.setPrototypeOf(e,ts.prototype):"root"===e.type&&Object.setPrototypeOf(e,Ko.prototype),e[Qo]=!0,e.nodes&&e.nodes.forEach(function(e){is.rebuild(e)})};var ss,as,cs=function(e){function t(t){var r;return(r=e.call(this,B({type:"document"},t))||this).nodes||(r.nodes=[]),r}return q(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new ss(new as,this,e).stringify()},t}(os);cs.registerLazyResult=function(e){ss=e},cs.registerProcessor=function(e){as=e};var us=cs;cs.default=cs;var ls={},hs=function(e){ls[e]||(ls[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))},ps=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}(),fs=ps;ps.default=ps;var ds=fs,gs=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 ds(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},U(e,[{key:"content",get:function(){return this.css}}]),e}(),ms=gs;gs.default=gs;var vs="'".charCodeAt(0),ys='"'.charCodeAt(0),_s="\\".charCodeAt(0),bs="/".charCodeAt(0),ws="\n".charCodeAt(0),ks=" ".charCodeAt(0),Ss="\f".charCodeAt(0),Cs="\t".charCodeAt(0),xs="\r".charCodeAt(0),Is="[".charCodeAt(0),Es="]".charCodeAt(0),Os="(".charCodeAt(0),Ms=")".charCodeAt(0),Rs="{".charCodeAt(0),As="}".charCodeAt(0),Ts=";".charCodeAt(0),Ps="*".charCodeAt(0),Ns=":".charCodeAt(0),Ds="@".charCodeAt(0),Fs=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ls=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Us=/.[\r\n"'(/\\]/,Bs=/[\da-f]/i,js=os,qs=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}q(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(js),zs=qs;qs.default=qs,js.registerAtRule(qs);var Vs,Ws,$s=os,Hs=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}q(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=Y(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 Vs(new Ws,this,e).stringify()},t}($s);Hs.registerLazyResult=function(e){Vs=e},Hs.registerProcessor=function(e){Ws=e};var Gs=Hs;Hs.default=Hs,$s.registerRoot(Hs);var Ys={comma:function(e){return Ys.split(e,[","],!0)},space:function(e){return Ys.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=Y(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:c?p===u&&(c=!1):'"'===p||"'"===p?(c=!0,u=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}},Js=Ys;Ys.default=Ys;var Zs=os,Ks=Js,Xs=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return q(t,e),U(t,[{key:"selectors",get:function(){return Ks.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}(Zs),Qs=Xs;Xs.default=Xs,Zs.registerRule(Xs);var ea=uo,ta=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,p=e.css.valueOf(),f=t.ignoreErrors,d=p.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=d},nextToken:function(e){if(v.length)return v.pop();if(!(g>=d)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case ws:case ks:case Cs:case xs:case Ss:n=g;do{n+=1,r=p.charCodeAt(n)}while(r===ks||r===ws||r===Cs||r===xs||r===Ss);h=["space",p.slice(g,n)],g=n-1;break;case Is:case Es:case Rs:case As:case Ns:case Ts:case Ms:var _=String.fromCharCode(r);h=[_,_,g];break;case Os:if(u=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===u&&l!==vs&&l!==ys&&l!==ks&&l!==ws&&l!==Cs&&l!==Ss&&l!==xs){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1))){if(f||t){n=g;break}y("bracket")}for(c=n;p.charCodeAt(c-1)===_s;)c-=1,a=!a}while(a);h=["brackets",p.slice(g,n+1),g,n],g=n}else n=p.indexOf(")",g+1),o=p.slice(g,n+1),-1===n||Us.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case vs:case ys:i=r===vs?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1))){if(f||t){n=g+1;break}y("string")}for(c=n;p.charCodeAt(c-1)===_s;)c-=1,a=!a}while(a);h=["string",p.slice(g,n+1),g,n],g=n;break;case Ds:Fs.lastIndex=g+1,Fs.test(p),n=0===Fs.lastIndex?p.length-1:Fs.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case _s:for(n=g,s=!0;p.charCodeAt(n+1)===_s;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==bs&&r!==ks&&r!==ws&&r!==Cs&&r!==xs&&r!==Ss&&(n+=1,Bs.test(p.charAt(n)))){for(;Bs.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===ks&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:r===bs&&p.charCodeAt(g+1)===Ps?(0===(n=p.indexOf("*/",g+2)+1)&&(f||t?n=p.length:y("comment")),h=["comment",p.slice(g,n+1),g,n],g=n):(Ls.lastIndex=g+1,Ls.test(p),n=0===Ls.lastIndex?p.length-1:Ls.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h),g=n)}return g++,h}},position:function(){return g}}},ra=Go,na=zs,ia=Gs,oa=Qs,sa={empty:!0,space:!0};var aa=function(){function e(e){this.input=e,this.root=new ia,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 na;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(r=a[n=a.length-1];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=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=Y(e.entries());!(i=s()).done;){var a=i.value,c=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new ra;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=ta(this.input)},t.decl=function(e,t){var r=new ea;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[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)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(n=e[c])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",p=c;p>0;p--){var f=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==f)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.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 oa;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;c;){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);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,h=0;h<c;h+=1)"space"!==(o=(i=r[h])[0])||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",sa[a]||sa[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var p=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new oa;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}(),ca=os,ua=aa,la=No;function ha(e,t){var r=new la(e,t),n=new ua(r);try{n.parse()}catch(e){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===e.name&&t&&t.from&&(/\.scss$/i.test(t.from)?e.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?e.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(e.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),e}return n.root}var pa=ha;ha.default=ha,ca.registerParse(ha);var fa=Gi.isClean,da=Gi.my,ga=$o,ma=Qi,va=os,ya=us,_a=hs,ba=ms,wa=pa,ka=Gs,Sa={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Ca={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},xa={Once:!0,postcssPlugin:!0,prepare:!0};function Ia(e){return"object"===(void 0===e?"undefined":$(e))&&"function"==typeof e.then}function Ea(e){var t=!1,r=Sa[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 Oa(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:Ea(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function Ma(e){return e[fa]=!1,e.nodes&&e.nodes.forEach(function(e){return Ma(e)}),e}var Ra={},Aa=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===r?"undefined":$(r))||null===r||"root"!==r.type&&"document"!==r.type)if(z(r,e)||z(r,ba))i=Ma(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=wa;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[da]&&va.rebuild(i)}else i=Ma(r);this.result=new ba(t,i,n),this.helpers=B({},Ra,{postcss:Ra,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===(void 0===e?"undefined":$(e))&&e.prepare?B({},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 new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){var n=r.postcssPlugin,i=r.postcssVersion,o=this.result.processor.version,s=i.split("."),a=o.split(".");(s[0]!==a[0]||parseInt(s[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", but "+n+" uses "+i+". Perhaps this is the source of the error below.")}}else 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=Y(this.plugins);!(t=n()).done;){var i=t.value;if("object"===(void 0===i?"undefined":$(i)))for(var o in i){if(!Ca[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!xa[o])if("object"===$(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 F(function(){var t,r,n,i,o,s,a,c,u,l,h,p;return J(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],!Ia(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[fa])return[3,14];o[fa]=!0,s=[Oa(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!Ia(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,s;return J(this,function(a){switch(a.label){case 0:t=p.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},h=Y(e.listeners.OnceExit),f.label=15;case 15:return(p=h()).done?[3,18]:[5,Z(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===(void 0===e?"undefined":$(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return Ia(r[0])?Promise.all(r):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=ma;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new ga(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=Y(this.plugins);!(e=t()).done;){var r=e.value;if(Ia(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[fa];)n[fa]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=Y(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"production"!==process.env.NODE_ENV&&("from"in this.opts||_a("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Y(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(Ia(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){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[fa])return a[fa]=!0,void e.push(Oa(a));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)return void(r.nodes&&r.nodes.length&&(r[fa]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[fa]=!0;for(var r,n=Y(Ea(e));!(r=n()).done;){var i=r.value;if(0===i)e.nodes&&e.each(function(e){e[fa]||t.walkSync(e)});else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},U(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}();Aa.registerPostcss=function(e){Ra=e};var Ta=Aa;Aa.default=Aa,ka.registerLazyResult(Aa),ya.registerLazyResult(Aa);var Pa=$o,Na=Qi,Da=hs,Fa=pa,La=ms,Ua=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=Na;this.result=new La(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new Pa(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.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"production"!==process.env.NODE_ENV&&("from"in this._opts||Da("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},U(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(){if(this._root)return this._root;var e,t=Fa;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Ba=Ua;Ua.default=Ua;var ja=Ba,qa=Ta,za=us,Va=Gs,Wa=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=Y(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===(void 0===i?"undefined":$(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===(void 0===i?"undefined":$(i))&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else{if("object"!==(void 0===i?"undefined":$(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new qa(this,e,t):new ja(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),$a=Wa;Wa.default=Wa,Va.registerProcessor(Wa),za.registerProcessor(Wa);var Ha=uo,Ga=_o,Ya=Go,Ja=zs,Za=No,Ka=Gs,Xa=Qs;function Qa(e,t){if(Array.isArray(e))return e.map(function(e){return Qa(e)});var r=e.inputs,n=V(e,["inputs"]);if(r){t=[];for(var i,o=Y(r);!(i=o()).done;){var s=B({},i.value,{__proto__:Za.prototype});s.map&&(s.map=B({},s.map,{__proto__:Ga.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return Qa(e,t)})),n.source){var a=n.source,c=a.inputId,u=V(a,["inputId"]);n.source=u,null!=c&&(n.source.input=t[c])}if("root"===n.type)return new Ka(n);if("decl"===n.type)return new Ha(n);if("rule"===n.type)return new Xa(n);if("comment"===n.type)return new Ya(n);if("atrule"===n.type)return new Ja(n);throw new Error("Unknown node type: "+e.type)}var ec=Qa;Qa.default=Qa;var tc=Hi,rc=uo,nc=Ta,ic=os,oc=$a,sc=Qi,ac=ec,cc=us,uc=fs,lc=Go,hc=zs,pc=ms,fc=No,dc=pa,gc=Js,mc=Qs,vc=Gs,yc=ao;function _c(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new oc(t)}_c.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new 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"),process.env.LANG&&process.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 oc).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return _c([i(r)]).process(e,t)},i},_c.stringify=sc,_c.parse=dc,_c.fromJSON=ac,_c.list=gc,_c.comment=function(e){return new lc(e)},_c.atRule=function(e){return new hc(e)},_c.decl=function(e){return new rc(e)},_c.rule=function(e){return new mc(e)},_c.root=function(e){return new vc(e)},_c.document=function(e){return new cc(e)},_c.CssSyntaxError=tc,_c.Declaration=rc,_c.Container=ic,_c.Processor=oc,_c.Document=cc,_c.Comment=lc,_c.Warning=uc,_c.AtRule=hc,_c.Result=pc,_c.Input=fc,_c.Rule=mc,_c.Root=vc,_c.Node=yc,nc.registerPostcss(_c);var bc=_c;_c.default=_c;var wc=Fi(bc);wc.stringify,wc.fromJSON,wc.plugin,wc.parse,wc.list,wc.document,wc.comment,wc.atRule,wc.rule,wc.decl,wc.root,wc.CssSyntaxError,wc.Declaration,wc.Container,wc.Processor,wc.Document,wc.Comment,wc.Warning,wc.AtRule,wc.Result,wc.Input,wc.Rule,wc.Root,wc.Node;var kc=function(){function e(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];Di(this,"parentElement",null),Di(this,"parentNode",null),Di(this,"ownerDocument"),Di(this,"firstChild",null),Di(this,"lastChild",null),Di(this,"previousSibling",null),Di(this,"nextSibling",null),Di(this,"ELEMENT_NODE",1),Di(this,"TEXT_NODE",3),Di(this,"nodeType"),Di(this,"nodeName"),Di(this,"RRNodeType")}var t=e.prototype;return t.contains=function(t){if(!z(t,e))return!1;if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1},t.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},t.insertBefore=function(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},t.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},t.toString=function(){return"RRNode"},U(e,[{key:"childNodes",get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}}]),e}(),Sc={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Cc={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},xc={};function Ic(e){if(xc[e])return xc[e];var t=globalThis[e],r=t.prototype,n=e in Sc?Sc[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in Cc?Cc[e]:void 0,s=Boolean(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 xc[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;return document.body.removeChild(a),u?xc[e]=u:r}catch(e){return r}}var Ec={};function Oc(e,t,r){var n,i=e+"."+String(r);if(Ec[i])return Ec[i].call(t);var o=Ic(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(Ec[i]=s,s.call(t)):t[r]}var Mc={};function Rc(e,t,r){var n=e+"."+String(r);if(Mc[n])return Mc[n].bind(t);var i=Ic(e)[r];return"function"!=typeof i?t[r]:(Mc[n]=i,i.bind(t))}function Ac(){return Ic("MutationObserver").constructor}function Tc(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}var Pc={childNodes:function(e){return Oc("Node",e,"childNodes")},parentNode:function(e){return Oc("Node",e,"parentNode")},parentElement:function(e){return Oc("Node",e,"parentElement")},textContent:function(e){return Oc("Node",e,"textContent")},contains:function(e,t){return Rc("Node",e,"contains")(t)},getRootNode:function(e){return Rc("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?Oc("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?Oc("Element",e,"shadowRoot"):null},querySelector:function(e,t){return Oc("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return Oc("Element",e,"querySelectorAll")(t)},mutationObserver:Ac,patch:Tc};function Nc(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 Dc="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.",Fc={map:{},getId:function(){return console.error(Dc),-1},getNode:function(){return console.error(Dc),null},removeNodeFromMap:function(){console.error(Dc)},has:function(){return console.error(Dc),!1},reset:function(){console.error(Dc)}};function Lc(e,t,r){void 0===r&&(r={});var n=null,i=0;return function(){for(var o=arguments.length,s=new 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>t?(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 Uc(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 Uc(e,t,o||{},!0)}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Fc=new Proxy(Fc,{get:function(e,t,r){return"map"===t&&console.error(Dc),Reflect.get(e,t,r)}}));var Bc=Date.now;function jc(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=Pc.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=Pc.parentElement(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function qc(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function zc(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Vc(e){return e?e.nodeType===e.ELEMENT_NODE?e:Pc.parentElement(e):null}function Wc(e,t,r,n){if(!e)return!1;var i=Vc(e);if(!i)return!1;try{if("string"==typeof t){if(i.classList.contains(t))return!0;if(n&&null!==i.closest("."+t))return!0}else if(Ve(i,t,n))return!0}catch(e){}if(r){if(i.matches(r))return!0;if(n&&null!==i.closest(r))return!0}return!1}function $c(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||-2===t.getId(e)}function Hc(e,t){if(fe(e))return!1;var r=t.getId(e);if(!t.has(r))return!0;var n=Pc.parentNode(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||Hc(n,t))}function Gc(e){return Boolean(e.changedTouches)}function Yc(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function Jc(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Zc(e){return!!e&&(z(e,kc)&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(Pc.shadowRoot(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(Bc=function(){return(new Date).getTime()});var Kc=function(){function e(){Q(this,"id",1),Q(this,"styleIDMap",new WeakMap),Q(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){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);var r},t.getStyle=function(e){return this.idStyleMap.get(e)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},t.remove=function(e){var t=this.styleIDMap.get(e);return void 0!==t&&(this.styleIDMap.delete(e),this.idStyleMap.delete(t),!0)},e}();function Xc(e){var t,r=null;return"getRootNode"in e&&(null==(t=Pc.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&Pc.host(Pc.getRootNode(e))&&(r=Pc.host(Pc.getRootNode(e))),r}function Qc(e){var t=e.ownerDocument;if(!t)return!1;var r=function(e){for(var t,r=e;t=Xc(r);)r=t;return r}(e);return Pc.contains(t,r)}function eu(e){var t=e.ownerDocument;return!!t&&(Pc.contains(t,e)||Qc(e))}var tu=function(e){return e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e}(tu||{}),ru=function(e){return e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e}(ru||{}),nu=function(e){return e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e}(nu||{}),iu=function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e}(iu||{}),ou=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}(ou||{}),su=function(e){return e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e}(su||{}),au=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(au||{});function cu(e){return"__ln"in e}var uu,lu=function(){function e(){Q(this,"length",0),Q(this,"head",null),Q(this,"tail",null)}var t=e.prototype;return t.get=function(e){if(e>=this.length)throw new 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&&cu(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&&cu(e.nextSibling)&&e.nextSibling.__ln.previous){var n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++},t.removeNode=function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},e}(),hu=function(e,t){return e+"@"+t},pu=function(){function e(){var e=this;Q(this,"frozen",!1),Q(this,"locked",!1),Q(this,"texts",[]),Q(this,"attributes",[]),Q(this,"attributeMap",new WeakMap),Q(this,"removes",[]),Q(this,"mapRemoves",[]),Q(this,"movedMap",{}),Q(this,"addedSet",new Set),Q(this,"movedSet",new Set),Q(this,"droppedSet",new Set),Q(this,"removesSubTreeCache",new Set),Q(this,"mutationCb"),Q(this,"blockClass"),Q(this,"blockSelector"),Q(this,"maskTextClass"),Q(this,"maskTextSelector"),Q(this,"inlineStylesheet"),Q(this,"maskInputOptions"),Q(this,"maskTextFn"),Q(this,"maskInputFn"),Q(this,"keepIframeSrcFn"),Q(this,"recordCanvas"),Q(this,"inlineImages"),Q(this,"slimDOMOptions"),Q(this,"dataURLOptions"),Q(this,"doc"),Q(this,"mirror"),Q(this,"iframeManager"),Q(this,"stylesheetManager"),Q(this,"shadowDomManager"),Q(this,"canvasManager"),Q(this,"processedNodeManager"),Q(this,"unattachedDoc"),Q(this,"processMutations",function(t){t.forEach(e.processMutation),e.emit()}),Q(this,"emit",function(){if(!e.frozen&&!e.locked){for(var t=[],r=new Set,n=new lu,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=Pc.parentNode(o);if(s&&eu(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=fe(s)?e.mirror.getId(Xc(o)):e.mirror.getId(s),l=i(o);if(-1===u||-1===l)return n.addNode(o);var h=Ge(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){Yc(t,e.mirror)&&e.iframeManager.addIframe(t),Jc(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),Zc(o)&&e.shadowDomManager.addShadowRoot(Pc.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});h&&(t.push({parentId:u,nextId:l,node:h}),r.add(h.id))}};e.mapRemoves.length;){var s=e.mapRemoves.shift();e.cleanupRemovedNode(s),e.mirror.removeNodeFromMap(s)}for(var a,c=Y(e.movedSet);!(a=c()).done;){var u=a.value;du(e.removesSubTreeCache,u,e.mirror)&&!e.movedSet.has(Pc.parentNode(u))||o(u)}for(var l,h=Y(e.addedSet);!(l=h()).done;){var p=l.value;gu(e.droppedSet,p)||du(e.removesSubTreeCache,p,e.mirror)?gu(e.movedSet,p)?o(p):e.droppedSet.add(p):o(p)}for(var f=null;n.length;){var d=null;if(f){var g=e.mirror.getId(Pc.parentNode(f.value)),m=i(f.value);-1!==g&&-1!==m&&(d=f)}if(!d)for(var v=n.tail;v;){var y=v;if(v=v.previous,y){var _=e.mirror.getId(Pc.parentNode(y.value));if(-1===i(y.value))continue;if(-1!==_){d=y;break}var b=y.value,w=Pc.parentNode(b);if(w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var k=Pc.host(w);if(-1!==e.mirror.getId(k)){d=y;break}}}}if(!d){for(;n.head;)n.removeNode(n.head.value);break}f=d.previous,n.removeNode(d.value),o(d.value)}var S={texts:e.texts.map(function(t){var r=t.node,n=Pc.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))}}),Q(this,"genTextAreaValueMutation",function(t){var r=e.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(r),e.attributeMap.set(t,r));var n=Array.from(Pc.childNodes(t),function(e){return Pc.textContent(e)||""}).join("");r.attributes.value=ye({element:t,maskInputOptions:e.maskInputOptions,tagName:t.tagName,type:we(t),value:n,maskInputFn:e.maskInputFn})}),Q(this,"processMutation",function(t){if(!$c(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case"characterData":var r=Pc.textContent(t.target);Wc(t.target,e.blockClass,e.blockSelector,!1)||r===t.oldValue||e.texts.push({value:We(t.target,e.maskTextClass,e.maskTextSelector,!0)&&r?e.maskTextFn?e.maskTextFn(r,Vc(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=we(n);o=ye({element:n,maskInputOptions:e.maskInputOptions,tagName:n.tagName,type:s,value:o,maskInputFn:e.maskInputFn})}if(Wc(t.target,e.blockClass,e.blockSelector,!1)||o===t.oldValue)return;var a=e.attributeMap.get(t.target);if("IFRAME"===n.tagName&&"src"===i&&!e.keepIframeSrcFn(o)){if(n.contentDocument)return;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"),!ze(n.tagName,i))if(a.attributes[i]=qe(e.doc,_e(n.tagName),_e(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=Y(Array.from(n.style));!(u=l()).done;){var h=u.value,p=n.style.getPropertyValue(h),f=n.style.getPropertyPriority(h);p!==c.style.getPropertyValue(h)||f!==c.style.getPropertyPriority(h)?a.styleDiff[h]=""===f?p:[p,f]:a._unchangedStyles[h]=[p,f]}for(var d,g=Y(Array.from(c.style));!(d=g()).done;){var m=d.value;""===n.style.getPropertyValue(m)&&(a.styleDiff[m]=!1)}}else"open"===i&&"DIALOG"===n.tagName&&(n.matches("dialog:modal")?a.attributes.rr_open_mode="modal":a.attributes.rr_open_mode="non-modal");break;case"childList":if(Wc(t.target,e.blockClass,e.blockSelector,!0))return;if("TEXTAREA"===t.target.tagName)return void e.genTextAreaValueMutation(t.target);t.addedNodes.forEach(function(r){return e.genAdds(r,t.target)}),t.removedNodes.forEach(function(r){var n=e.mirror.getId(r),i=fe(t.target)?e.mirror.getId(Pc.host(t.target)):e.mirror.getId(t.target);Wc(t.target,e.blockClass,e.blockSelector,!1)||$c(r,e.mirror,e.slimDOMOptions)||!function(e,t){return-1!==t.getId(e)}(r,e.mirror)||(e.addedSet.has(r)?(fu(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||Hc(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[hu(n,i)]?fu(e.movedSet,r):(e.removes.push({parentId:i,id:n,isShadow:!(!fe(t.target)||!de(t.target))||void 0}),function(e,t){var r=[e];for(;r.length;){var n=r.pop();t.has(n)||(t.add(n),Pc.childNodes(n).forEach(function(e){return r.push(e)}))}}(r,e.removesSubTreeCache))),e.mapRemoves.push(r))})}}),Q(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($c(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[hu(e.mirror.getId(t),n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);Wc(t,e.blockClass,e.blockSelector,!1)||(Pc.childNodes(t).forEach(function(t){return e.genAdds(t)}),Zc(t)&&Pc.childNodes(Pc.shadowRoot(t)).forEach(function(r){e.processedNodeManager.add(r,e),e.genAdds(r,t)}))}}),Q(this,"cleanupRemovedNode",function(t){if("IFRAME"===t.nodeName)try{e.iframeManager.removeIframe(t)}catch(e){}else try{e.stylesheetManager.cleanupStylesheetsForRemovedNode(t)}catch(e){}t.childNodes.forEach(function(t){e.cleanupRemovedNode(t)})})}var t=e.prototype;return t.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(r){t[r]=e[r]})},t.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.isFrozen=function(){return this.frozen},t.lock=function(){this.locked=!0,this.canvasManager.lock()},t.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},t.getDoc=function(){return this.doc},e}();function fu(e,t){e.delete(t),Pc.childNodes(t).forEach(function(t){return fu(e,t)})}function du(e,t,r){return 0!==e.size&&function(e,t){var r=Pc.parentNode(t);return!!r&&e.has(r)}(e,t)}function gu(e,t){return 0!==e.size&&mu(e,t)}function mu(e,t){var r=Pc.parentNode(t);return!!r&&(!!e.has(r)||mu(e,r))}var vu=function(e){if(!uu)return e;return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];try{return e.apply(void 0,[].concat(r))}catch(e){if(uu&&!0===uu(e))return;throw e}}},yu=[];function _u(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 bu(e,t){var r=new pu;yu.push(r),r.init(e);var n=new(Ac())(vu(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function wu(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(nu).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]}).forEach(function(e){var s=_e(e),a=function(e){return function(r){var s=_u(r);if(!Wc(s,i,o,!0)){var a=null,c=e;if("pointerType"in r){switch(r.pointerType){case"mouse":a=iu.Mouse;break;case"touch":a=iu.Touch;break;case"pen":a=iu.Pen}a===iu.Touch?nu[e]===nu.MouseDown?c="TouchStart":nu[e]===nu.MouseUp&&(c="TouchEnd"):iu.Pen}else Gc(r)&&(a=iu.Touch);null!==a?(u=a,(c.startsWith("Touch")&&a===iu.Touch||c.startsWith("Mouse")&&a===iu.Mouse)&&(a=null)):nu[e]===nu.Click&&(a=u,u=null);var l=Gc(r)?r.changedTouches[0]:r;if(l){var h=n.getId(s),p=l.clientX,f=l.clientY;vu(t)(B({type:nu[c],id:h,x:p,y:f},null!==a&&{pointerType:a}))}}}}(e);if(window.PointerEvent)switch(nu[e]){case nu.MouseDown:case nu.MouseUp:s=s.replace("mouse","pointer");break;case nu.TouchStart:case nu.TouchEnd:return}c.push(Nc(s,a,r))}),vu(function(){c.forEach(function(e){return e()})})}function ku(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;return Nc("scroll",vu(Lc(vu(function(e){var s=_u(e);if(s&&!Wc(s,i,o,!0)){var a=n.getId(s);if(s===r&&r.defaultView){var c=jc(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 Su=["INPUT","TEXTAREA","SELECT"],Cu=new WeakMap;function xu(e){return function(e,t){if(Mu("CSSGroupingRule")&&z(e.parentRule,CSSGroupingRule)||Mu("CSSMediaRule")&&z(e.parentRule,CSSMediaRule)||Mu("CSSSupportsRule")&&z(e.parentRule,CSSSupportsRule)||Mu("CSSConditionRule")&&z(e.parentRule,CSSConditionRule)){var r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){var n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function Iu(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function Eu(e,t){var r,n,i,o=e.mirror,s=e.stylesheetManager,a=null;a="#document"===t.nodeName?o.getId(t):o.getId(Pc.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}}),vu(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})})):function(){}}function Ou(e,t){void 0===t&&(t={});var r,n=e.doc.defaultView;if(!n)return function(){};!function(e,t){var r=e.mutationCb,n=e.mousemoveCb,i=e.mouseInteractionCb,o=e.scrollCb,s=e.viewportResizeCb,a=e.inputCb,c=e.mediaInteractionCb,u=e.styleSheetRuleCb,l=e.styleDeclarationCb,h=e.canvasMutationCb,p=e.fontCb,f=e.selectionCb,d=e.customElementCb;e.mutationCb=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var o;t.mutation&&(o=t).mutation.apply(o,[].concat(n)),r.apply(void 0,[].concat(n))},e.mousemoveCb=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var o;t.mousemove&&(o=t).mousemove.apply(o,[].concat(r)),n.apply(void 0,[].concat(r))},e.mouseInteractionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o;t.mouseInteraction&&(o=t).mouseInteraction.apply(o,[].concat(r)),i.apply(void 0,[].concat(r))},e.scrollCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.scroll&&(i=t).scroll.apply(i,[].concat(r)),o.apply(void 0,[].concat(r))},e.viewportResizeCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.viewportResize&&(i=t).viewportResize.apply(i,[].concat(r)),s.apply(void 0,[].concat(r))},e.inputCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.input&&(i=t).input.apply(i,[].concat(r)),a.apply(void 0,[].concat(r))},e.mediaInteractionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.mediaInteaction&&(i=t).mediaInteaction.apply(i,[].concat(r)),c.apply(void 0,[].concat(r))},e.styleSheetRuleCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.styleSheetRule&&(i=t).styleSheetRule.apply(i,[].concat(r)),u.apply(void 0,[].concat(r))},e.styleDeclarationCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.styleDeclaration&&(i=t).styleDeclaration.apply(i,[].concat(r)),l.apply(void 0,[].concat(r))},e.canvasMutationCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.canvasMutation&&(i=t).canvasMutation.apply(i,[].concat(r)),h.apply(void 0,[].concat(r))},e.fontCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.font&&(i=t).font.apply(i,[].concat(r)),p.apply(void 0,[].concat(r))},e.selectionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.selection&&(i=t).selection.apply(i,[].concat(r)),f.apply(void 0,[].concat(r))},e.customElementCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.customElement&&(i=t).customElement.apply(i,[].concat(r)),d.apply(void 0,[].concat(r))}}(e,t),e.recordDOM&&(r=bu(e,e.doc));var i,o,s,a,c,u=function(e){var t=e.mousemoveCb,r=e.sampling,n=e.doc,i=e.mirror;if(!1===r.mousemove)return function(){};var o,s="number"==typeof r.mousemove?r.mousemove:50,a="number"==typeof r.mousemoveCallback?r.mousemoveCallback:500,c=[],u=Lc(vu(function(e){var r=Date.now()-o;t(c.map(function(e){return e.timeOffset-=r,e}),e),c=[],o=null}),a),l=vu(Lc(vu(function(e){var t=_u(e),r=Gc(e)?e.changedTouches[0]:e,n=r.clientX,s=r.clientY;o||(o=Bc()),c.push({x:n,y:s,id:i.getId(t),timeOffset:Bc()-o}),u("undefined"!=typeof DragEvent&&z(e,DragEvent)?ru.Drag:z(e,MouseEvent)?ru.MouseMove:ru.TouchMove)}),s,{trailing:!1})),h=[Nc("mousemove",l,n),Nc("touchmove",l,n),Nc("drag",l,n)];return vu(function(){h.forEach(function(e){return e()})})}(e),l=wu(e),h=ku(e),p=(i={win:n},o=e.viewportResizeCb,s=i.win,a=-1,c=-1,Nc("resize",vu(Lc(vu(function(){var e=qc(),t=zc();a===e&&c===t||(o({width:Number(t),height:Number(e)}),a=e,c=t)}),200)),s)),f=function(e){var t=e.inputCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.ignoreClass,a=e.ignoreSelector,c=e.maskInputOptions,u=e.maskInputFn,l=e.sampling,h=e.userTriggeredOnInput;function p(e){var t=_u(e),n=e.isTrusted,l=t&&t.tagName;if(t&&"OPTION"===l&&(t=Pc.parentElement(t)),t&&l&&!(Su.indexOf(l)<0)&&!Wc(t,i,o,!0)&&!(t.classList.contains(s)||a&&t.matches(a))){var p=t.value,d=!1,g=we(t)||"";"radio"===g||"checkbox"===g?d=t.checked:(c[l.toLowerCase()]||c[g])&&(p=ye({element:t,maskInputOptions:c,tagName:l,type:g,value:p,maskInputFn:u})),f(t,h?{text:p,isChecked:d,userTriggered:n}:{text:p,isChecked:d});var m=t.name;"radio"===g&&m&&d&&r.querySelectorAll('input[type="radio"][name="'+m+'"]').forEach(function(e){if(e!==t){var r=e.value;f(e,h?{text:r,isChecked:!d,userTriggered:!1}:{text:r,isChecked:!d})}})}}function f(e,r){var i=Cu.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){Cu.set(e,r);var o=n.getId(e);vu(t)(B({},r,{id:o}))}}var d=("last"===l.input?["change"]:["input","change"]).map(function(e){return Nc(e,vu(p),r)}),g=r.defaultView;if(!g)return function(){d.forEach(function(e){return e()})};var m,v=g.Object.getOwnPropertyDescriptor(g.HTMLInputElement.prototype,"value"),y=[[g.HTMLInputElement.prototype,"value"],[g.HTMLInputElement.prototype,"checked"],[g.HTMLSelectElement.prototype,"value"],[g.HTMLTextAreaElement.prototype,"value"],[g.HTMLSelectElement.prototype,"selectedIndex"],[g.HTMLOptionElement.prototype,"selected"]];return v&&v.set&&(m=d).push.apply(m,[].concat(y.map(function(e){return Uc(e[0],e[1],{set:function(){vu(p)({target:this,isTrusted:!1})}},!1,g)}))),vu(function(){d.forEach(function(e){return e()})})}(e),d=function(e){var t=e.mediaInteractionCb,r=e.blockClass,n=e.blockSelector,i=e.mirror,o=e.sampling,s=e.doc,a=vu(function(e){return Lc(vu(function(o){var s=_u(o);if(s&&!Wc(s,r,n,!0)){var a=s.currentTime,c=s.volume,u=s.muted,l=s.playbackRate,h=s.loop;t({type:e,id:i.getId(s),currentTime:a,volume:c,muted:u,playbackRate:l,loop:h})}}),o.media||500)}),c=[Nc("play",a(su.Play),s),Nc("pause",a(su.Pause),s),Nc("seeked",a(su.Seeked),s),Nc("volumechange",a(su.VolumeChange),s),Nc("ratechange",a(su.RateChange),s)];return vu(function(){c.forEach(function(e){return e()})})}(e),g=function(){},m=function(){},v=function(){},y=function(){};e.recordDOM&&(g=function(e,t){var r=e.styleSheetRuleCb,n=e.mirror,i=e.stylesheetManager,o=t.win;if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return function(){};var s=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:vu(function(e,t,o){var s=o[0],a=o[1],c=Iu(t,n,i.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,adds:[{rule:s,index:a}]}),e.apply(t,o)})}),o.CSSStyleSheet.prototype.addRule=function(e,t,r){void 0===r&&(r=this.cssRules.length);var n=e+" { "+t+" }";return o.CSSStyleSheet.prototype.insertRule.apply(this,[n,r])};var a,c,u=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(u,{apply:vu(function(e,t,o){var s=o[0],a=Iu(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,removes:[{index:s}]}),e.apply(t,o)})}),o.CSSStyleSheet.prototype.removeRule=function(e){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},o.CSSStyleSheet.prototype.replace&&(a=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:vu(function(e,t,o){var s=o[0],a=Iu(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,replace:s}),e.apply(t,o)})})),o.CSSStyleSheet.prototype.replaceSync&&(c=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:vu(function(e,t,o){var s=o[0],a=Iu(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,replaceSync:s}),e.apply(t,o)})}));var l={};Ru("CSSGroupingRule")?l.CSSGroupingRule=o.CSSGroupingRule:(Ru("CSSMediaRule")&&(l.CSSMediaRule=o.CSSMediaRule),Ru("CSSConditionRule")&&(l.CSSConditionRule=o.CSSConditionRule),Ru("CSSSupportsRule")&&(l.CSSSupportsRule=o.CSSSupportsRule));var h={};return Object.entries(l).forEach(function(e){var t=e[0],o=e[1];h[t]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(h[t].insertRule,{apply:vu(function(e,t,o){var s=o[0],a=o[1],c=Iu(t.parentStyleSheet,n,i.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,adds:[{rule:s,index:[].concat(xu(t),[a||0])}]}),e.apply(t,o)})}),o.prototype.deleteRule=new Proxy(h[t].deleteRule,{apply:vu(function(e,t,o){var s=o[0],a=Iu(t.parentStyleSheet,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,removes:[{index:[].concat(xu(t),[s])}]}),e.apply(t,o)})})}),vu(function(){o.CSSStyleSheet.prototype.insertRule=s,o.CSSStyleSheet.prototype.deleteRule=u,a&&(o.CSSStyleSheet.prototype.replace=a),c&&(o.CSSStyleSheet.prototype.replaceSync=c),Object.entries(l).forEach(function(e){var t=e[0],r=e[1];r.prototype.insertRule=h[t].insertRule,r.prototype.deleteRule=h[t].deleteRule})})}(e,{win:n}),m=Eu(e,e.doc),v=function(e,t){var r=e.styleDeclarationCb,n=e.mirror,i=e.ignoreCSSAttributes,o=e.stylesheetManager,s=t.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:vu(function(e,t,s){var c,u=s[0],l=s[1],h=s[2];if(i.has(u))return a.apply(t,[u,l,h]);var p=Iu(null==(c=t.parentRule)?void 0:c.parentStyleSheet,n,o.styleMirror),f=p.id,d=p.styleId;return(f&&-1!==f||d&&-1!==d)&&r({id:f,styleId:d,set:{property:u,value:l,priority:h},index:xu(t.parentRule)}),e.apply(t,s)})});var c=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:vu(function(e,t,s){var a,u=s[0];if(i.has(u))return c.apply(t,[u]);var l=Iu(null==(a=t.parentRule)?void 0:a.parentStyleSheet,n,o.styleMirror),h=l.id,p=l.styleId;return(h&&-1!==h||p&&-1!==p)&&r({id:h,styleId:p,remove:{property:u},index:xu(t.parentRule)}),e.apply(t,s)})}),vu(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=c})}(e,{win:n}),e.collectFonts&&(y=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=Tc(r.fonts,"add",function(e){return function(r){return setTimeout(vu(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),vu(function(){i.forEach(function(e){return e()})})}(e)));for(var _,b=function(e){var t=e.doc,r=e.mirror,n=e.blockClass,i=e.blockSelector,o=e.selectionCb,s=!0,a=vu(function(){var e=t.getSelection();if(!(!e||s&&(null==e?void 0:e.isCollapsed))){s=e.isCollapsed||!1;for(var a=[],c=e.rangeCount||0,u=0;u<c;u++){var l=e.getRangeAt(u),h=l.startContainer,p=l.startOffset,f=l.endContainer,d=l.endOffset;Wc(h,n,i,!0)||Wc(f,n,i,!0)||a.push({start:r.getId(h),startOffset:p,end:r.getId(f),endOffset:d})}o({ranges:a})}});return a(),Nc("selectionchange",a)}(e),w=function(e){var t=e.doc,r=e.customElementCb,n=t.defaultView;return n&&n.customElements?Tc(n.customElements,"define",function(e){return function(t,n,i){try{r({define:{name:t}})}catch(e){console.warn("Custom element callback failed for "+t)}return e.apply(this,[t,n,i])}}):function(){}}(e),k=[],S=Y(e.plugins);!(_=S()).done;){var C=_.value;k.push(C.observer(C.callback,n,C.options))}return vu(function(){yu.forEach(function(e){return e.reset()}),null==r||r.disconnect(),u(),l(),h(),p(),f(),d(),g(),m(),v(),y(),b(),w(),k.forEach(function(e){return e()})})}function Mu(e){return void 0!==window[e]}function Ru(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var Au,Tu=function(){function e(e){Q(this,"iframeIdToRemoteIdMap",new WeakMap),Q(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}var t=e.prototype;return t.getId=function(e,t,r,n){var i=r||this.getIdToRemoteIdMap(e),o=n||this.getRemoteIdToIdMap(e),s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),o.set(s,t)),s},t.getIds=function(e,t){var r=this,n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getId(e,t,n,i)})},t.getRemoteId=function(e,t,r){var n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;var i=n.get(t);return i||-1},t.getRemoteIds=function(e,t){var r=this,n=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getRemoteId(e,t,n)})},t.reset=function(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);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}(),Pu=function(){function e(e){Q(this,"iframes",new WeakMap),Q(this,"crossOriginIframeMap",new WeakMap),Q(this,"crossOriginIframeMirror",new Tu(Ne)),Q(this,"crossOriginIframeStyleMirror"),Q(this,"crossOriginIframeRootIdMap",new WeakMap),Q(this,"iframeContentDocumentMap",new WeakMap),Q(this,"iframeObserverCleanupMap",new WeakMap),Q(this,"mirror"),Q(this,"mutationCb"),Q(this,"wrappedEmit"),Q(this,"loadListener"),Q(this,"stylesheetManager"),Q(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Tu(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.getIframeContentDocument=function(e){return this.iframeContentDocumentMap.get(e)},t.setObserverCleanup=function(e,t){this.iframeObserverCleanupMap.set(e,t)},t.getObserverCleanup=function(e){return this.iframeObserverCleanupMap.get(e)},t.removeIframe=function(e){var t=this.iframeContentDocumentMap.get(e);t&&(this.stylesheetManager.cleanupStylesheetsForRemovedNode(t),this.mirror.removeNodeFromMap(t,!0)),this.iframes.delete(e),this.iframeContentDocumentMap.delete(e);var r=this.iframeObserverCleanupMap.get(e);if(r){try{r()}catch(e){}this.iframeObserverCleanupMap.delete(e)}},t.addLoadListener=function(e){this.loadListener=e},t.attachIframe=function(e,t){var r,n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),e.contentDocument&&this.iframeContentDocumentMap.set(e,e.contentDocument),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(n=this.loadListener)||n.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},t.handleMessage=function(e){var t=e;if("rrweb"===t.data.type&&t.origin===t.data.origin&&e.source){var r=this.crossOriginIframeMap.get(e.source);if(r){var n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}}},t.transformCrossOriginEvent=function(e,t){var r,n=this;switch(t.type){case tu.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:tu.IncrementalSnapshot,data:{source:ru.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case tu.Meta:case tu.Load:case tu.DomContentLoaded:return!1;case tu.Plugin:return t;case tu.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case tu.IncrementalSnapshot:switch(t.data.source){case ru.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 ru.Drag:case ru.TouchMove:case ru.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case ru.ViewportResize:return!1;case ru.MediaInteraction:case ru.MouseInteraction:case ru.Scroll:case ru.CanvasMutation:case ru.Input:return this.replaceIds(t.data,e,["id"]),t;case ru.StyleSheetRule:case ru.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case ru.Font:return t;case ru.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,["start","end"])}),t;case ru.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=Y(n);!(i=o()).done;){var s=i.value;(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(r,t[s]):t[s]=e.getId(r,t[s]))}return t},t.replaceIds=function(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)},t.replaceStyleIds=function(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)},t.replaceIdOnNode=function(e,t){var r=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(e){r.replaceIdOnNode(e,t)})},t.patchRootIdOnNode=function(e,t){var r=this;e.type===au.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})},e}(),Nu=function(){function e(e){Q(this,"shadowDoms",new WeakSet),Q(this,"mutationCb"),Q(this,"scrollCb"),Q(this,"bypassOptions"),Q(this,"mirror"),Q(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(de(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=bu(B({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(ku(B({},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(Pc.host(e))),r.restoreHandlers.push(Eu({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(Tc(e.prototype,"attachShadow",function(e){return function(n){var i=e.call(this,n),o=Pc.shadowRoot(this);return o&&eu(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}(),Du="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fu="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(Au=0;Au<64;Au++)Fu[Du.charCodeAt(Au)]=Au;var Lu=new Map;var Uu=function(e,t,r){if(e&&(qu(e,t)||"object"===(void 0===e?"undefined":$(e)))){var n=function(e,t){var r=Lu.get(e);return r||(r=new Map,Lu.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name),i=n.indexOf(e);return-1===i&&(i=n.length,n.push(e)),i}};function Bu(e,t,r){if(z(e,Array))return e.map(function(e){return Bu(e,t,r)});if(null===e)return e;if(z(e,Float32Array)||z(e,Float64Array)||z(e,Int32Array)||z(e,Uint32Array)||z(e,Uint8Array)||z(e,Uint16Array)||z(e,Int16Array)||z(e,Int8Array)||z(e,Uint8ClampedArray))return{rr_type:e.constructor.name,args:[Object.values(e)]};if(z(e,ArrayBuffer))return{rr_type:e.constructor.name,base64:function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=Du[r[t]>>2],i+=Du[(3&r[t])<<4|r[t+1]>>4],i+=Du[(15&r[t+1])<<2|r[t+2]>>6],i+=Du[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}(e)};if(z(e,DataView))return{rr_type:e.constructor.name,args:[Bu(e.buffer,t,r),e.byteOffset,e.byteLength]};if(z(e,HTMLImageElement))return{rr_type:e.constructor.name,src:e.src};if(z(e,HTMLCanvasElement)){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}return z(e,ImageData)?{rr_type:e.constructor.name,args:[Bu(e.data,t,r),e.width,e.height]}:qu(e,t)||"object"===(void 0===e?"undefined":$(e))?{rr_type:e.constructor.name,index:Uu(e,t,r)}:e}var ju=function(e,t,r){return e.map(function(e){return Bu(e,t,r)})},qu=function(e,t){var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(function(e){return"function"==typeof t[e]});return Boolean(r.find(function(r){return z(e,t[r])}))};function zu(e,t,r,n){var i=[];try{var o=Tc(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];if(!Wc(this,t,r,!0)){var c=function(e){return"experimental-webgl"===e?"webgl":e}(i);if("__context"in this||(this.__context=c),n&&["webgl","webgl2"].includes(c))if(s[0]&&"object"===$(s[0])){var u=s[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[].concat([i],s))}});i.push(o)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){i.forEach(function(e){return e()})}}function Vu(e,t,r,n,i,o){for(var s,a=function(){var a=s.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))return"continue";try{if("function"!=typeof e[a])return"continue";var u=Tc(e,a,function(e){return function(){for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];var l=e.apply(this,c);if(Uu(l,o,this),"tagName"in this.canvas&&!Wc(this.canvas,n,i,!0)){var h=ju(c,o,this),p={type:t,property:a,args:h};r(this.canvas,p)}return l}});c.push(u)}catch(n){var l=Uc(e,a,{set:function(e){r(this.canvas,{type:t,property:a,args:[e],setter:!0})}});c.push(l)}},c=[],u=Y(Object.getOwnPropertyNames(e));!(s=u()).done;)a();return c}var Wu,$u="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Hu="undefined"!=typeof window&&window.Blob&&new Blob([(Wu=$u,Uint8Array.from(atob(Wu),function(e){return e.charCodeAt(0)}))],{type:"text/javascript;charset=utf-8"});function Gu(e){var t;try{if(!(t=Hu&&(window.URL||window.webkitURL).createObjectURL(Hu)))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,"+$u,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var Yu,Ju,Zu,Ku=function(){function e(e){var t=this;Q(this,"pendingCanvasMutations",new Map),Q(this,"rafStamps",{latestId:0,invokeId:null}),Q(this,"mirror"),Q(this,"mutationCb"),Q(this,"resetObservers"),Q(this,"frozen",!1),Q(this,"locked",!1),Q(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=this,s=zu(t,r,n,!0),a=new Map,c=new Gu;c.onmessage=function(e){var t=e.data.id;if(a.set(t,!1),"base64"in e.data){var r=e.data,n=r.base64,i=r.type,s=r.width,c=r.height;o.mutationCb({id:t,type:ou["2D"],commands:[{property:"clearRect",args:[0,0,s,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0]}]})}};var u,l=1e3/e,h=0,p=function(e){if(h&&e-h<l)u=requestAnimationFrame(p);else{h=e;var s,f=o;(s=[],t.document.querySelectorAll("canvas").forEach(function(e){Wc(e,r,n,!0)||s.push(e)}),s).forEach(F(function(e){var t,r,n,o;return J(this,function(s){switch(s.label){case 0:return r=f.mirror.getId(e),a.get(r)?[2]:0===e.width||0===e.height?[2]:(a.set(r,!0),["webgl","webgl2"].includes(e.__context)&&(n=e.getContext(e.__context),!1===(null==(t=null==n?void 0:n.getContextAttributes())?void 0:t.preserveDrawingBuffer)&&n.clear(n.COLOR_BUFFER_BIT)),[4,createImageBitmap(e)]);case 1:return o=s.sent(),c.postMessage({id:r,bitmap:o,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[o]),[2]}})})),u=requestAnimationFrame(p)}};u=requestAnimationFrame(p),this.resetObservers=function(){s(),cancelAnimationFrame(u)}},t.initCanvasMutationObserver=function(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var n=zu(e,t,r,!1),i=function(e,t,r,n){for(var i,o=function(){var o=i.value;try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[o])return"continue";var a=Tc(t.CanvasRenderingContext2D.prototype,o,function(i){return function(){for(var s=this,a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];return Wc(this.canvas,r,n,!0)||setTimeout(function(){var r=ju(c,t,s);e(s.canvas,{type:ou["2D"],property:o,args:r})},0),i.apply(this,c)}});s.push(a)}catch(r){var c=Uc(t.CanvasRenderingContext2D.prototype,o,{set:function(t){e(this.canvas,{type:ou["2D"],property:o,args:[t],setter:!0})}});s.push(c)}},s=[],a=Y(Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype));!(i=a()).done;)o();return function(){s.forEach(function(e){return e()})}}(this.processMutation.bind(this),e,t,r),o=function(e,t,r,n){var i,o,s=[];return(i=s).push.apply(i,[].concat(Vu(t.WebGLRenderingContext.prototype,ou.WebGL,e,r,n,t))),void 0!==t.WebGL2RenderingContext&&(o=s).push.apply(o,[].concat(Vu(t.WebGL2RenderingContext.prototype,ou.WebGL2,e,r,n,t))),function(){s.forEach(function(e){return e()})}}(this.processMutation.bind(this),e,t,r);this.resetObservers=function(){n(),i(),o()}},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,V(e,["type"])}),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}},e}(),Xu=function(){function e(e){Q(this,"trackedLinkElements",new WeakSet),Q(this,"mutationCb"),Q(this,"adoptedStyleSheetCb"),Q(this,"styleMirror",new Kc),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){var r,n=function(){var e=i.value,t=void 0;r.styleMirror.has(e)?t=r.styleMirror.getId(e):(t=r.styleMirror.add(e),s.push({styleId:t,rules:Array.from(e.rules||CSSRule,function(t,r){return{rule:me(t,e.href),index:r}})})),o.styleIds.push(t)};if(0!==e.length){for(var i,o={id:t,styleIds:[]},s=[],a=Y(e);!(i=a()).done;)r=this,n();s.length>0&&(o.styles=s),this.adoptedStyleSheetCb(o)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.cleanupStylesheetsForRemovedNode=function(e){var t=this;try{if(e.nodeType===Node.DOCUMENT_NODE){var r=e;if(r.adoptedStyleSheets)for(var n,i=Y(r.adoptedStyleSheets);!(n=i()).done;){var o=n.value;this.styleMirror.remove(o)}}if("STYLE"===e.nodeName){var s=e;s.sheet&&this.styleMirror.remove(s.sheet)}if("LINK"===e.nodeName&&"stylesheet"===e.rel){var a=e;a.sheet&&this.styleMirror.remove(a.sheet)}e.childNodes&&e.childNodes.forEach(function(e){t.cleanupStylesheetsForRemovedNode(e)})}catch(e){}},t.trackStylesheetInLinkElement=function(e){},e}(),Qu=function(){function e(){Q(this,"nodeMap",new WeakMap),Q(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}();function el(e){try{var t=new URL(e).origin;return"null"!==t?t:null}catch(e){return null}}var tl,rl=!1;try{2!==Array.from([1],function(e){return 2*e})[0]&&(tl=document.createElement("iframe"),document.body.appendChild(tl),Array.from=(null==(K=tl.contentWindow)?void 0:K.Array.from)||Array.from,document.body.removeChild(tl))}catch(e){console.debug("Unable to override Array.from",e)}var nl,il,ol=new ve;function sl(e){void 0===e&&(e={});var t,r=e.emit,n=e.checkoutEveryNms,i=e.checkoutEveryNth,o=e.blockClass,s=void 0===o?"rr-block":o,a=e.blockSelector,c=void 0===a?null:a,u=e.ignoreClass,l=void 0===u?"rr-ignore":u,h=e.ignoreSelector,p=void 0===h?null:h,f=e.maskTextClass,d=void 0===f?"rr-mask":f,g=e.maskTextSelector,m=void 0===g?null:g,v=e.inlineStylesheet,y=void 0===v||v,_=e.maskAllInputs,b=e.maskInputOptions,w=e.slimDOMOptions,k=e.maskInputFn,S=e.maskTextFn,C=e.hooks,x=e.packFn,I=e.sampling,E=void 0===I?{}:I,O=e.dataURLOptions,M=void 0===O?{}:O,R=e.mousemoveWait,A=e.recordDOM,T=void 0===A||A,P=e.recordCanvas,N=void 0!==P&&P,D=e.recordCrossOriginIframes,F=void 0!==D&&D,L=e.allowedIframeOrigins,U=e.recordAfter,j=void 0===U?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":U,q=e.userTriggeredOnInput,z=void 0!==q&&q,V=e.collectFonts,W=void 0!==V&&V,H=e.inlineImages,G=void 0!==H&&H,J=e.plugins,Z=e.keepIframeSrcFn,K=void 0===Z?function(){return!1}:Z,X=e.ignoreCSSAttributes,Q=void 0===X?new Set([]):X,ee=e.errorHandler;uu=ee,F&&L&&L.length>0&&0===(t=function(e){if(!Array.isArray(e)||0===e.length)throw new Error("[rrweb] allowedIframeOrigins must be a non-empty array of origin strings.");for(var t=new Set,r=0;r<e.length;r++){var n=e[r];if("string"!=typeof n)throw new Error("[rrweb] allowedIframeOrigins["+r+"] must be a string, got "+(void 0===n?"undefined":$(n))+".");var i=el(n);i&&t.add(i)}return Object.freeze(t)}(L)).size&&(t=void 0);var te=!F||window.parent===window,re=!1;if(!te)try{window.parent.document&&(re=!1)}catch(e){re=!0}if(te&&!r)throw new Error("emit function is required");if(!te&&!re)return function(){};void 0!==R&&void 0===E.mousemove&&(E.mousemove=R),ol.reset();var ne,ie,oe=!0===_?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:void 0!==b?b:{password:!0},se=!0===w||"all"===w?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===w,headMetaDescKeywords:"all"===w,headTitleMutations:"all"===w}:w||{};void 0===ne&&(ne=window),"NodeList"in ne&&!ne.NodeList.prototype.forEach&&(ne.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in ne&&!ne.DOMTokenList.prototype.forEach&&(ne.DOMTokenList.prototype.forEach=Array.prototype.forEach);var ae=0,ce=function(e){for(var t,r=Y(J||[]);!(t=r()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}return x&&!re&&(e=x(e)),e};Yu=function(e,o){var s,a=e;if(a.timestamp=Bc(),!(null==(s=yu[0])?void 0:s.isFrozen())||a.type===tu.FullSnapshot||a.type===tu.IncrementalSnapshot&&a.data.source===ru.Mutation||yu.forEach(function(e){return e.unfreeze()}),te)null==r||r(ce(a),o);else if(re){var c={type:"rrweb",event:ce(a),origin:window.location.origin,isCheckout:o};if(t)for(var u,l=Y(t);!(u=l()).done;){var h=u.value;window.parent.postMessage(c,h)}else window.parent.postMessage(c,"*")}if(a.type===tu.FullSnapshot)ie=a,ae=0;else if(a.type===tu.IncrementalSnapshot){if(a.data.source===ru.Mutation&&a.data.isAttachIframe)return;ae++;var p=i&&ae>=i,f=n&&a.timestamp-ie.timestamp>n;(p||f)&&Ju(!0)}};for(var ue,le=function(e){Yu({type:tu.IncrementalSnapshot,data:B({source:ru.Mutation},e)})},he=function(e){return Yu({type:tu.IncrementalSnapshot,data:B({source:ru.Scroll},e)})},pe=function(e){return Yu({type:tu.IncrementalSnapshot,data:B({source:ru.CanvasMutation},e)})},fe=new Xu({mutationCb:le,adoptedStyleSheetCb:function(e){return Yu({type:tu.IncrementalSnapshot,data:B({source:ru.AdoptedStyleSheet},e)})}}),de=new Pu({mirror:ol,mutationCb:le,stylesheetManager:fe,recordCrossOriginIframes:F,wrappedEmit:Yu}),ge=Y(J||[]);!(ue=ge()).done;){var me=ue.value;me.getMirror&&me.getMirror({nodeMirror:ol,crossOriginIframeMirror:de.crossOriginIframeMirror,crossOriginIframeStyleMirror:de.crossOriginIframeStyleMirror})}var ye=new Qu;Zu=new Ku({recordCanvas:N,mutationCb:pe,win:window,blockClass:s,blockSelector:c,mirror:ol,sampling:E.canvas,dataURLOptions:M});var _e=new Nu({mutationCb:le,scrollCb:he,bypassOptions:{blockClass:s,blockSelector:c,maskTextClass:d,maskTextSelector:m,inlineStylesheet:y,maskInputOptions:oe,dataURLOptions:M,maskTextFn:S,maskInputFn:k,recordCanvas:N,inlineImages:G,sampling:E,slimDOMOptions:se,iframeManager:de,stylesheetManager:fe,canvasManager:Zu,keepIframeSrcFn:K,processedNodeManager:ye},mirror:ol});Ju=function(e){if(void 0===e&&(e=!1),T){Yu({type:tu.Meta,data:{href:window.location.href,width:zc(),height:qc()}},e),fe.reset(),_e.init(),yu.forEach(function(e){return e.lock()});var t=function(e,t){var r=t||{},n=r.mirror,i=void 0===n?new ve:n,o=r.blockClass,s=void 0===o?"rr-block":o,a=r.blockSelector,c=void 0===a?null:a,u=r.maskTextClass,l=void 0===u?"rr-mask":u,h=r.maskTextSelector,p=void 0===h?null:h,f=r.inlineStylesheet,d=void 0===f||f,g=r.inlineImages,m=void 0!==g&&g,v=r.recordCanvas,y=void 0!==v&&v,_=r.maskAllInputs,b=void 0!==_&&_,w=r.maskTextFn,k=r.maskInputFn,S=r.slimDOM,C=void 0!==S&&S,x=r.dataURLOptions,I=r.preserveWhiteSpace,E=r.onSerialize,O=r.onIframeLoad,M=r.iframeLoadTimeout,R=r.onStylesheetLoad,A=r.stylesheetLoadTimeout,T=r.keepIframeSrcFn;return Ge(e,{doc:e,mirror:i,blockClass:s,blockSelector:c,maskTextClass:l,maskTextSelector:p,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===b?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:!1===b?{password:!0}:b,maskTextFn:w,maskInputFn:k,slimDOMOptions:!0===C||"all"===C?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===C,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===C?{}:C,dataURLOptions:x,inlineImages:m,recordCanvas:y,preserveWhiteSpace:I,onSerialize:E,onIframeLoad:O,iframeLoadTimeout:M,onStylesheetLoad:R,stylesheetLoadTimeout:A,keepIframeSrcFn:void 0===T?function(){return!1}:T,newlyAddedElement:!1})}(document,{mirror:ol,blockClass:s,blockSelector:c,maskTextClass:d,maskTextSelector:m,inlineStylesheet:y,maskAllInputs:oe,maskTextFn:S,maskInputFn:k,slimDOM:se,dataURLOptions:M,recordCanvas:N,inlineImages:G,onSerialize:function(e){Yc(e,ol)&&de.addIframe(e),Jc(e,ol)&&fe.trackLinkElement(e),Zc(e)&&_e.addShadowRoot(Pc.shadowRoot(e),document)},onIframeLoad:function(e,t){de.attachIframe(e,t),_e.observeAttachShadow(e)},onStylesheetLoad:function(e,t){fe.attachLinkElement(e,t)},keepIframeSrcFn:K});if(!t)return console.warn("Failed to snapshot the document");Yu({type:tu.FullSnapshot,data:{node:t,initialOffset:jc(window)}},e),yu.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&fe.adoptStyleSheets(document.adoptedStyleSheets,ol.getId(document))}};try{var be=[],we=function(e){var t;return vu(Ou)({mutationCb:le,mousemoveCb:function(e,t){return Yu({type:tu.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return Yu({type:tu.IncrementalSnapshot,data:B({source:ru.MouseInteraction},e)})},scrollCb:he,viewportResizeCb:function(e){return Yu({type:tu.IncrementalSnapshot,data:B({source:ru.ViewportResize},e)})},inputCb:function(e){return Yu({type:tu.IncrementalSnapshot,data:B({source:ru.Input},e)})},mediaInteractionCb:function(e){return Yu({type:tu.IncrementalSnapshot,data:B({source:ru.MediaInteraction},e)})},styleSheetRuleCb:function(e){return Yu({type:tu.IncrementalSnapshot,data:B({source:ru.StyleSheetRule},e)})},styleDeclarationCb:function(e){return Yu({type:tu.IncrementalSnapshot,data:B({source:ru.StyleDeclaration},e)})},canvasMutationCb:pe,fontCb:function(e){return Yu({type:tu.IncrementalSnapshot,data:B({source:ru.Font},e)})},selectionCb:function(e){Yu({type:tu.IncrementalSnapshot,data:B({source:ru.Selection},e)})},customElementCb:function(e){Yu({type:tu.IncrementalSnapshot,data:B({source:ru.CustomElement},e)})},blockClass:s,ignoreClass:l,ignoreSelector:p,maskTextClass:d,maskTextSelector:m,maskInputOptions:oe,inlineStylesheet:y,sampling:E,recordDOM:T,recordCanvas:N,inlineImages:G,userTriggeredOnInput:z,collectFonts:W,doc:e,maskInputFn:k,maskTextFn:S,keepIframeSrcFn:K,blockSelector:c,slimDOMOptions:se,dataURLOptions:M,mirror:ol,iframeManager:de,stylesheetManager:fe,shadowDomManager:_e,processedNodeManager:ye,canvasManager:Zu,ignoreCSSAttributes:Q,plugins:(null==(t=null==J?void 0:J.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return Yu({type:tu.Plugin,data:{plugin:e.name,payload:t}})}}}))||[]},C)};de.addLoadListener(function(e){try{var t=e.contentDocument,r=we(t);be.push(r);var n=de.getObserverCleanup(e);de.setObserverCleanup(e,function(){if(n)try{n()}catch(e){}try{r();var e=be.indexOf(r);-1!==e&&be.splice(e,1),function(e){for(var t=yu.length-1;t>=0;t--)yu[t].getDoc()===e&&yu.splice(t,1)}(t)}catch(e){}})}catch(e){console.warn(e)}});var ke=function(){Ju(),be.push(we(document)),rl=!0};return"interactive"===document.readyState||"complete"===document.readyState?ke():(be.push(Nc("DOMContentLoaded",function(){Yu({type:tu.DomContentLoaded,data:{}}),"DOMContentLoaded"===j&&ke()})),be.push(Nc("load",function(){Yu({type:tu.Load,data:{}}),"load"===j&&ke()},window))),function(){be.forEach(function(e){try{e()}catch(e){String(e).toLowerCase().includes("cross-origin")||console.warn(e)}}),ye.destroy(),rl=!1,uu=void 0}}catch(e){console.warn(e)}}sl.addCustomEvent=function(e,t){if(!rl)throw new Error("please add custom event after start recording");Yu({type:tu.Custom,data:{tag:e,payload:t}})},sl.freezePage=function(){yu.forEach(function(e){return e.freeze()})},sl.takeFullSnapshot=function(e){if(!rl)throw new Error("please take full snapshot after start recording");Ju(e)},sl.mirror=ol,(il=nl||(nl={}))[il.NotStarted=0]="NotStarted",il[il.Running=1]="Running",il[il.Stopped=2]="Stopped",sl.addCustomEvent,sl.freezePage,sl.takeFullSnapshot;var al={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},cl={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ul={};function ll(e){if(ul[e])return ul[e];var t=globalThis[e],r=t.prototype,n=e in al?al[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in cl?cl[e]:void 0,s=Boolean(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 ul[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;return document.body.removeChild(a),u?ul[e]=u:r}catch(e){return r}}var hl={};function pl(e,t,r){var n,i=e+"."+String(r);if(hl[i])return hl[i].call(t);var o=ll(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(hl[i]=s,s.call(t)):t[r]}var fl={};function dl(e,t,r){var n=e+"."+String(r);if(fl[n])return fl[n].bind(t);var i=ll(e)[r];return"function"!=typeof i?t[r]:(fl[n]=i,i.bind(t))}var gl={childNodes:function(e){return pl("Node",e,"childNodes")},parentNode:function(e){return pl("Node",e,"parentNode")},parentElement:function(e){return pl("Node",e,"parentElement")},textContent:function(e){return pl("Node",e,"textContent")},contains:function(e,t){return dl("Node",e,"contains")(t)},getRootNode:function(e){return dl("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?pl("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?pl("Element",e,"shadowRoot"):null},querySelector:function(e,t){return pl("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return pl("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return ll("MutationObserver").constructor},patch:function(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(){}}}};function ml(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return ml(gl.parentNode(e),t);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return ml(gl.parentNode(e),t)}function vl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function yl(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return z(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}var _l={exports:{}},bl=String,wl=function(){return{isColorSupported:!1,reset:bl,bold:bl,dim:bl,italic:bl,underline:bl,inverse:bl,hidden:bl,strikethrough:bl,black:bl,red:bl,green:bl,yellow:bl,blue:bl,magenta:bl,cyan:bl,white:bl,gray:bl,bgBlack:bl,bgRed:bl,bgGreen:bl,bgYellow:bl,bgBlue:bl,bgMagenta:bl,bgCyan:bl,bgWhite:bl}};_l.exports=wl(),_l.exports.createColors=wl;var kl=_l.exports,Sl=yl(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Cl=kl,xl=Sl,Il=function(e){function t(r,n,i,o,s,a){var c;return(c=e.call(this,r)||this).name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}q(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=this;if(!this.source)return"";var r=this.source;null==e&&(e=Cl.isColorSupported),xl&&e&&(r=xl(r));var n,i,o=r.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=Cl.createColors(!0),l=u.bold,h=u.gray,p=u.red;n=function(e){return l(p(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map(function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var u=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+u+n("^")}return" "+i(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(H(Error)),El=Il;Il.default=Il;var Ol={};Ol.isClean=Symbol("isClean"),Ol.my=Symbol("my");var Ml={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var Rl=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){var r;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 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){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return Ml[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=Ml[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){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);var 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 new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),Al=Rl;Rl.default=Rl;var Tl=Al;function Pl(e,t){new Tl(t).stringify(e)}var Nl=Pl;Pl.default=Pl;var Dl=Ol.isClean,Fl=Ol.my,Ll=El,Ul=Al,Bl=Nl;function jl(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":$(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return jl(e,r)}):("object"===o&&null!==i&&(i=jl(i)),r[n]=i)}return r}var ql=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[Dl]=!1,this[Fl]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Y(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=jl(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 Ll(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[Dl]){this[Dl]=!1;for(var e=this;e=e.parent;)e[Dl]=!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);else 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 Ul).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=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=Y(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"object"===(void 0===e?"undefined":$(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===(void 0===s?"undefined":$(s))&&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=Bl),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)},U(e,[{key:"proxyOf",get:function(){return this}}]),e}(),zl=ql;ql.default=ql;var Vl=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=B({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return q(t,e),U(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(zl),Wl=Vl;Vl.default=Vl;var $l=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},Hl=Sl.SourceMapConsumer,Gl=Sl.SourceMapGenerator,Yl=Sl.existsSync,Jl=Sl.readFileSync,Zl=Sl.dirname,Kl=Sl.join;var Xl=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=Zl(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new Hl(this.text)),this.consumerCache},t.decodeInline=function(e){var t;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))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===(void 0===e?"undefined":$(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(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=Zl(e),Yl(e))return this.mapFile=e,Jl(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){if(z(t,Hl))return Gl.fromSourceMap(t).toString();if(z(t,Gl))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=Kl(Zl(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}(),Ql=Xl;Xl.default=Xl;var eh=Sl.SourceMapConsumer,th=Sl.SourceMapGenerator,rh=Sl.fileURLToPath,nh=Sl.pathToFileURL,ih=Sl.isAbsolute,oh=Sl.resolve,sh=$l,ah=Sl,ch=El,uh=Ql,lh=Symbol("fromOffsetCache"),hh=Boolean(eh&&th),ph=Boolean(oh&&ih),fh=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":$(e))&&!e.toString)throw new 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&&(!ph||/^\w+:\/\//.test(t.from)||ih(t.from)?this.file=t.from:this.file=oh(t.from)),ph&&hh){var r=new uh(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 "+sh(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":$(t))){var a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(i=p?new ch(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new ch(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&&(nh&&(i.input.url=nh(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[lh])t=this[lh];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i<o;i++)t[i]=n,n+=r[i].length+1;this[lh]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,c=t.length-2;s<c;)if(e<t[a=s+(c-s>>1)])c=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:oh(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=ih(a.source)?nh(a.source):new URL(a.source,this.map.consumer().sourceRoot||nh(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(!rh)throw new Error("file: protocol is not available in this PostCSS build");c.file=rh(o)}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=B({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},U(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),dh=fh;fh.default=fh,ah&&ah.registerInput&&ah.registerInput(fh);var gh=Sl.SourceMapConsumer,mh=Sl.SourceMapGenerator,vh=Sl.dirname,yh=Sl.relative,_h=Sl.resolve,bh=Sl.sep,wh=Sl.pathToFileURL,kh=dh,Sh=Boolean(gh&&mh),Ch=Boolean(vh&&_h&&yh&&bh),xh=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;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 t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=Y(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||vh(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new gh(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(),Ch&&Sh&&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=mh.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new mh({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=this;this.css="",this.map=new mh({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,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(e.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):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=e.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,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.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)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?vh(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=vh(_h(r,this.mapOpts.annotation)));var n=yh(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 kh(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 Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(wh){var r=wh(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new 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;"\\"===bh&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Ih=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return q(t,e),t}(zl),Eh=Ih;Ih.default=Ih;var Oh,Mh,Rh,Ah,Th=Ol.isClean,Ph=Ol.my,Nh=Wl,Dh=Eh;function Fh(e){return e.map(function(e){return e.nodes&&(e.nodes=Fh(e.nodes)),delete e.source,e})}function Lh(e){if(e[Th]=!1,e.proxyOf.nodes)for(var t,r=Y(e.proxyOf.nodes);!(t=r()).done;){Lh(t.value)}}var Uh=function(e){function t(){return e.apply(this,arguments)||this}q(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Y(t);!(n=i()).done;)for(var o,s=n.value,a=Y(this.normalize(s,this.last));!(o=a()).done;){var c=o.value;this.proxyOf.nodes.push(c)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=Y(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){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))}:"every"===t||"some"===t?function(r){return e[t](function(e){for(var t=arguments.length,n=new 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))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]: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=Y(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=Y(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=Fh(Oh(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i,o=Y(e=e.slice(0));!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}else if("root"===e.type&&"document"!==this.type)for(var a,c=Y(e=e.nodes.slice(0));!(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 new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new Nh(e)]}else if(e.selector)e=[new Mh(e)];else if(e.name)e=[new Rh(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new Dh(e)]}return e.map(function(e){return e[Ph]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[Th]&&Lh(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=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Y(t=t.reverse());!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=Y(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=Y(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?z(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?z(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?z(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)}))},U(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}(zl);Uh.registerParse=function(e){Oh=e},Uh.registerRule=function(e){Mh=e},Uh.registerAtRule=function(e){Rh=e},Uh.registerRoot=function(e){Ah=e};var Bh=Uh;Uh.default=Uh,Uh.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Rh.prototype):"rule"===e.type?Object.setPrototypeOf(e,Mh.prototype):"decl"===e.type?Object.setPrototypeOf(e,Nh.prototype):"comment"===e.type?Object.setPrototypeOf(e,Dh.prototype):"root"===e.type&&Object.setPrototypeOf(e,Ah.prototype),e[Ph]=!0,e.nodes&&e.nodes.forEach(function(e){Uh.rebuild(e)})};var jh,qh,zh=function(e){function t(t){var r;return(r=e.call(this,B({type:"document"},t))||this).nodes||(r.nodes=[]),r}return q(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new jh(new qh,this,e).stringify()},t}(Bh);zh.registerLazyResult=function(e){jh=e},zh.registerProcessor=function(e){qh=e};var Vh=zh;zh.default=zh;var Wh={},$h=function(e){Wh[e]||(Wh[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))},Hh=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}(),Gh=Hh;Hh.default=Hh;var Yh=Gh,Jh=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 Yh(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},U(e,[{key:"content",get:function(){return this.css}}]),e}(),Zh=Jh;Jh.default=Jh;var Kh="'".charCodeAt(0),Xh='"'.charCodeAt(0),Qh="\\".charCodeAt(0),ep="/".charCodeAt(0),tp="\n".charCodeAt(0),rp=" ".charCodeAt(0),np="\f".charCodeAt(0),ip="\t".charCodeAt(0),op="\r".charCodeAt(0),sp="[".charCodeAt(0),ap="]".charCodeAt(0),cp="(".charCodeAt(0),up=")".charCodeAt(0),lp="{".charCodeAt(0),hp="}".charCodeAt(0),pp=";".charCodeAt(0),fp="*".charCodeAt(0),dp=":".charCodeAt(0),gp="@".charCodeAt(0),mp=/[\t\n\f\r "#'()/;[\\\]{}]/g,vp=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,yp=/.[\r\n"'(/\\]/,_p=/[\da-f]/i,bp=Bh,wp=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}q(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(bp),kp=wp;wp.default=wp,bp.registerAtRule(wp);var Sp,Cp,xp=Bh,Ip=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}q(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=Y(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 Sp(new Cp,this,e).stringify()},t}(xp);Ip.registerLazyResult=function(e){Sp=e},Ip.registerProcessor=function(e){Cp=e};var Ep=Ip;Ip.default=Ip,xp.registerRoot(Ip);var Op={comma:function(e){return Op.split(e,[","],!0)},space:function(e){return Op.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=Y(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:c?p===u&&(c=!1):'"'===p||"'"===p?(c=!0,u=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}},Mp=Op;Op.default=Op;var Rp=Bh,Ap=Mp,Tp=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return q(t,e),U(t,[{key:"selectors",get:function(){return Ap.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}(Rp),Pp=Tp;Tp.default=Tp,Rp.registerRule(Tp);var Np=Wl,Dp=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,p=e.css.valueOf(),f=t.ignoreErrors,d=p.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=d},nextToken:function(e){if(v.length)return v.pop();if(!(g>=d)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case tp:case rp:case ip:case op:case np:n=g;do{n+=1,r=p.charCodeAt(n)}while(r===rp||r===tp||r===ip||r===op||r===np);h=["space",p.slice(g,n)],g=n-1;break;case sp:case ap:case lp:case hp:case dp:case pp:case up:var _=String.fromCharCode(r);h=[_,_,g];break;case cp:if(u=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===u&&l!==Kh&&l!==Xh&&l!==rp&&l!==tp&&l!==ip&&l!==np&&l!==op){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1))){if(f||t){n=g;break}y("bracket")}for(c=n;p.charCodeAt(c-1)===Qh;)c-=1,a=!a}while(a);h=["brackets",p.slice(g,n+1),g,n],g=n}else n=p.indexOf(")",g+1),o=p.slice(g,n+1),-1===n||yp.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case Kh:case Xh:i=r===Kh?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1))){if(f||t){n=g+1;break}y("string")}for(c=n;p.charCodeAt(c-1)===Qh;)c-=1,a=!a}while(a);h=["string",p.slice(g,n+1),g,n],g=n;break;case gp:mp.lastIndex=g+1,mp.test(p),n=0===mp.lastIndex?p.length-1:mp.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case Qh:for(n=g,s=!0;p.charCodeAt(n+1)===Qh;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==ep&&r!==rp&&r!==tp&&r!==ip&&r!==op&&r!==np&&(n+=1,_p.test(p.charAt(n)))){for(;_p.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===rp&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:r===ep&&p.charCodeAt(g+1)===fp?(0===(n=p.indexOf("*/",g+2)+1)&&(f||t?n=p.length:y("comment")),h=["comment",p.slice(g,n+1),g,n],g=n):(vp.lastIndex=g+1,vp.test(p),n=0===vp.lastIndex?p.length-1:vp.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h),g=n)}return g++,h}},position:function(){return g}}},Fp=Eh,Lp=kp,Up=Ep,Bp=Pp,jp={empty:!0,space:!0};var qp=function(){function e(e){this.input=e,this.root=new Up,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 Lp;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(r=a[n=a.length-1];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=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=Y(e.entries());!(i=s()).done;){var a=i.value,c=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new Fp;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=Dp(this.input)},t.decl=function(e,t){var r=new Np;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[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)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(n=e[c])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",p=c;p>0;p--){var f=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==f)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(r.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.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 Bp;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;c;){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);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,h=0;h<c;h+=1)"space"!==(o=(i=r[h])[0])||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",jp[a]||jp[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var p=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new Bp;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}(),zp=Bh,Vp=qp,Wp=dh;function $p(e,t){var r=new Wp(e,t),n=new Vp(r);try{n.parse()}catch(e){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===e.name&&t&&t.from&&(/\.scss$/i.test(t.from)?e.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?e.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(e.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),e}return n.root}var Hp=$p;$p.default=$p,zp.registerParse($p);var Gp=Ol.isClean,Yp=Ol.my,Jp=xh,Zp=Nl,Kp=Bh,Xp=Vh,Qp=$h,ef=Zh,tf=Hp,rf=Ep,nf={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},of={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},sf={Once:!0,postcssPlugin:!0,prepare:!0};function af(e){return"object"===(void 0===e?"undefined":$(e))&&"function"==typeof e.then}function cf(e){var t=!1,r=nf[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 uf(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:cf(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function lf(e){return e[Gp]=!1,e.nodes&&e.nodes.forEach(function(e){return lf(e)}),e}var hf={},pf=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===r?"undefined":$(r))||null===r||"root"!==r.type&&"document"!==r.type)if(z(r,e)||z(r,ef))i=lf(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=tf;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[Yp]&&Kp.rebuild(i)}else i=lf(r);this.result=new ef(t,i,n),this.helpers=B({},hf,{postcss:hf,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===(void 0===e?"undefined":$(e))&&e.prepare?B({},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 new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){var n=r.postcssPlugin,i=r.postcssVersion,o=this.result.processor.version,s=i.split("."),a=o.split(".");(s[0]!==a[0]||parseInt(s[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", but "+n+" uses "+i+". Perhaps this is the source of the error below.")}}else 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=Y(this.plugins);!(t=n()).done;){var i=t.value;if("object"===(void 0===i?"undefined":$(i)))for(var o in i){if(!of[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!sf[o])if("object"===$(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 F(function(){var t,r,n,i,o,s,a,c,u,l,h,p;return J(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],!af(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[Gp])return[3,14];o[Gp]=!0,s=[uf(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!af(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,s;return J(this,function(a){switch(a.label){case 0:t=p.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},h=Y(e.listeners.OnceExit),f.label=15;case 15:return(p=h()).done?[3,18]:[5,Z(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===(void 0===e?"undefined":$(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return af(r[0])?Promise.all(r):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=Zp;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Jp(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=Y(this.plugins);!(e=t()).done;){var r=e.value;if(af(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[Gp];)n[Gp]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=Y(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"production"!==process.env.NODE_ENV&&("from"in this.opts||Qp("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Y(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(af(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){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[Gp])return a[Gp]=!0,void e.push(uf(a));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)return void(r.nodes&&r.nodes.length&&(r[Gp]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[Gp]=!0;for(var r,n=Y(cf(e));!(r=n()).done;){var i=r.value;if(0===i)e.nodes&&e.each(function(e){e[Gp]||t.walkSync(e)});else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},U(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}();pf.registerPostcss=function(e){hf=e};var ff=pf;pf.default=pf,rf.registerLazyResult(pf),Xp.registerLazyResult(pf);var df=xh,gf=Nl,mf=$h,vf=Hp,yf=Zh,_f=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=gf;this.result=new yf(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new df(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.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"production"!==process.env.NODE_ENV&&("from"in this._opts||mf("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},U(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(){if(this._root)return this._root;var e,t=vf;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),bf=_f;_f.default=_f;var wf=bf,kf=ff,Sf=Vh,Cf=Ep,xf=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=Y(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===(void 0===i?"undefined":$(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===(void 0===i?"undefined":$(i))&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else{if("object"!==(void 0===i?"undefined":$(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new kf(this,e,t):new wf(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),If=xf;xf.default=xf,Cf.registerProcessor(xf),Sf.registerProcessor(xf);var Ef=Wl,Of=Ql,Mf=Eh,Rf=kp,Af=dh,Tf=Ep,Pf=Pp;function Nf(e,t){if(Array.isArray(e))return e.map(function(e){return Nf(e)});var r=e.inputs,n=V(e,["inputs"]);if(r){t=[];for(var i,o=Y(r);!(i=o()).done;){var s=B({},i.value,{__proto__:Af.prototype});s.map&&(s.map=B({},s.map,{__proto__:Of.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return Nf(e,t)})),n.source){var a=n.source,c=a.inputId,u=V(a,["inputId"]);n.source=u,null!=c&&(n.source.input=t[c])}if("root"===n.type)return new Tf(n);if("decl"===n.type)return new Ef(n);if("rule"===n.type)return new Pf(n);if("comment"===n.type)return new Mf(n);if("atrule"===n.type)return new Rf(n);throw new Error("Unknown node type: "+e.type)}var Df=Nf;Nf.default=Nf;var Ff=El,Lf=Wl,Uf=ff,Bf=Bh,jf=If,qf=Nl,zf=Df,Vf=Vh,Wf=Gh,$f=Eh,Hf=kp,Gf=Zh,Yf=dh,Jf=Hp,Zf=Mp,Kf=Pp,Xf=Ep,Qf=zl;function ed(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new jf(t)}ed.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new 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"),process.env.LANG&&process.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 jf).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return ed([i(r)]).process(e,t)},i},ed.stringify=qf,ed.parse=Jf,ed.fromJSON=zf,ed.list=Zf,ed.comment=function(e){return new $f(e)},ed.atRule=function(e){return new Hf(e)},ed.decl=function(e){return new Lf(e)},ed.rule=function(e){return new Kf(e)},ed.root=function(e){return new Xf(e)},ed.document=function(e){return new Vf(e)},ed.CssSyntaxError=Ff,ed.Declaration=Lf,ed.Container=Bf,ed.Processor=jf,ed.Document=Vf,ed.Comment=$f,ed.Warning=Wf,ed.AtRule=Hf,ed.Result=Gf,ed.Input=Yf,ed.Rule=Kf,ed.Root=Xf,ed.Node=Qf,Uf.registerPostcss(ed);var td=ed;ed.default=ed;var rd=vl(td);rd.stringify,rd.fromJSON,rd.plugin,rd.parse,rd.list,rd.document,rd.comment,rd.atRule,rd.rule,rd.decl,rd.root,rd.CssSyntaxError,rd.Declaration,rd.Container,rd.Processor,rd.Document,rd.Comment,rd.Warning,rd.AtRule,rd.Result,rd.Input,rd.Rule,rd.Root,rd.Node;var nd=Object.defineProperty,id=function(e,t,r){return function(e,t,r){return t in e?nd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":$(t))?t+"":t,r)};var od=function(){function e(e){id(this,"fileName"),id(this,"functionName"),id(this,"lineNumber"),id(this,"columnNumber"),this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}return e.prototype.toString=function(){var e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+t+")":this.fileName+":"+e+":"+t},e}(),sd=/(^|@)\S+:\d+/,ad=/^\s*at .*(\S+:\d+|\(native\))/m,cd=/^(eval@)?(\[native code])?$/,ud={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(ad)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!t)throw new Error("Cannot parse given url: "+e);return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(ad)},this).map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/),n=(t=r?t.replace(r[0],""):t).split(/\s+/).slice(1),i=this.extractLocation(r?r[1]:n.pop()),o=n.join(" ")||void 0,s=["eval","<anonymous>"].indexOf(i[0])>-1?void 0:i[0];return new od({functionName:o,fileName:s,lineNumber:i[1],columnNumber:i[2]})},this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter(function(e){return!e.match(cd)},this).map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new od({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,i=this.extractLocation(e.replace(t,""));return new od({functionName:n,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),n=[],i=2,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new od({fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),n=[],i=0,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new od({functionName:s[3]||void 0,fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera11:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(sd)&&!e.match(/^Error created at/)},this).map(function(e){var t=e.split("@"),r=this.extractLocation(t.pop()),n=(t.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new od({functionName:n,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function ld(e){if(!e||!e.outerHTML)return"";for(var t="";e.parentElement;){var r=e.localName;if(!r)break;r=r.toLowerCase();var n=e.parentElement,i=[];if(n.children&&n.children.length>0)for(var o=0;o<n.children.length;o++){var s=n.children[o];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===r&&i.push(s)}i.length>1&&(r+=":eq("+i.indexOf(e)+")"),t=r+(t?">"+t:""),e=n}return t}function hd(e){return"[object Object]"===Object.prototype.toString.call(e)}function pd(e,t){if(0===t)return!0;for(var r,n=Y(Object.keys(e));!(r=n()).done;){var i=r.value;if(hd(e[i])&&pd(e[i],t-1))return!0}return!1}function fd(e,t){var r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);var n=[],i=[];return JSON.stringify(e,function(e,t){if(n.length>0){var o=n.indexOf(this);~o?n.splice(o+1):n.push(this),~o?i.splice(o,1/0,e):i.push(e),~n.indexOf(t)&&(t=n[0]===t?"[Circular ~]":"[Circular ~."+i.slice(0,n.indexOf(t)).join(".")+"]")}else n.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(function(e){if(hd(e)&&Object.keys(e).length>r.numOfKeysLimit)return!0;if("function"==typeof e)return!0;if(hd(e)&&pd(e,r.depthOfLimit))return!0;return!1}(t))return function(e){var t=e.toString();r.stringLengthLimit&&t.length>r.stringLengthLimit&&(t=t.slice(0,r.stringLengthLimit)+"...");return t}(t);if("bigint"===(void 0===t?"undefined":$(t)))return t.toString()+"n";if(z(t,Event)){var s={};for(var a in t){var c=t[a];Array.isArray(c)?s[a]=ld(c.length?c[0]:null):s[a]=c}return s}return z(t,Node)?z(t,HTMLElement)?t?t.outerHTML:"":t.nodeName:z(t,Error)?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t})}var dd={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function gd(e,t,r){var n,i=r?Object.assign({},dd,r):dd,o=i.logger;if(!o)return function(){};n="string"==typeof o?t[o]:o;var s=0,a=!1,c=[];if(i.level.includes("error")){var u=function(t){var r=t.message,n=t.error,o=ud.parse(n).map(function(e){return e.toString()}),s=[fd(r,i.stringifyOptions)];e({level:"error",trace:o,payload:s})};t.addEventListener("error",u),c.push(function(){t.removeEventListener("error",u)});var l=function(t){var r,n;z(t.reason,Error)?n=[fd("Uncaught (in promise) "+(r=t.reason).name+": "+r.message,i.stringifyOptions)]:(r=new Error,n=[fd("Uncaught (in promise)",i.stringifyOptions),fd(t.reason,i.stringifyOptions)]);var o=ud.parse(r).map(function(e){return e.toString()});e({level:"error",trace:o,payload:n})};t.addEventListener("unhandledrejection",l),c.push(function(){t.removeEventListener("unhandledrejection",l)})}for(var h,p=Y(i.level);!(h=p()).done;){var f=h.value;c.push(d(n,f))}return function(){c.forEach(function(e){return e()})};function d(t,r){var n=this;return t[r]?function(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(){}}}(t,r,function(t){var o=n;return function(){for(var n=arguments.length,c=new Array(n),u=0;u<n;u++)c[u]=arguments[u];if(t.apply(o,c),!("assert"===r&&c[0]||a)){a=!0;try{var l=ud.parse(new Error).map(function(e){return e.toString()}).splice(1),h=("assert"===r?c.slice(1):c).map(function(e){return fd(e,i.stringifyOptions)});++s<i.lengthThreshold?e({level:r,trace:l,payload:h}):s===i.lengthThreshold&&e({level:"warn",trace:[],payload:[fd("The number of log records reached the threshold.")]})}catch(e){t.apply(void 0,[].concat(["rrweb logger error:",e],c))}finally{a=!1}}}}):function(){}}}var md,vd,yd,_d=C.setImmediate,bd=Object.prototype.toString,wd=void 0!==_d?function(e){return _d(e)}:setTimeout;try{Object.defineProperty({},"x",{}),md=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(e){md=function(e,t,r){return e[t]=r,e}}function kd(e,t){yd.add(e,t),vd||(vd=wd(yd.drain))}function Sd(e){var t,r=typeof e;return null===e||"object"!==r&&"function"!==r||(t=e.then),"function"==typeof t&&t}function Cd(){for(var e=0;e<this.chain.length;e++)xd(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function xd(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=Sd(n))?i.call(n,r.resolve,r.reject):r.resolve(n)}catch(e){r.reject(e)}}function Id(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=Sd(e))?kd(function(){var n=new Md(r);try{t.call(e,function(){Id.apply(n,arguments)},function(){Ed.apply(n,arguments)})}catch(e){Ed.call(n,e)}}):(r.msg=e,r.state=1,r.chain.length>0&&kd(Cd,r))}catch(e){Ed.call(new Md(r),e)}}}function Ed(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&kd(Cd,t))}function Od(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 Md(e){this.def=e,this.triggered=!1}function Rd(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function Ad(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 Rd(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&&kd(Cd,t),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){Id.call(t,e)},function(e){Ed.call(t,e)})}catch(e){Ed.call(t,e)}}yd=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=vd=void 0;r;)r.fn.call(r.self),r=r.next}}}();var Td,Pd=md({},"constructor",Ad,!1);Ad.prototype=Pd,md(Pd,"__NPO__",0,!1),md(Ad,"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)})}),md(Ad,"reject",function(e){return new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)})}),md(Ad,"all",function(e){var t=this;return"[object Array]"!==bd.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;Od(t,e,function(e,t){o[e]=t,++s===i&&r(o)},n)})}),md(Ad,"race",function(e){var t=this;return"[object Array]"!==bd.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");Od(t,e,function(e,t){r(t)},n)})}),Td="undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:Ad;var Nd,Dd,Fd,Ld,Ud,Bd,jd,qd,zd,Vd,Wd=864e5,$d=8e3,Hd=Array.prototype,Gd=Function.prototype,Yd=Object.prototype,Jd=Hd.slice,Zd=Yd.toString,Kd=Yd.hasOwnProperty,Xd=C.console,Qd=C.navigator,eg=C.document,tg=C.opera,rg=C.screen,ng=Qd.userAgent,ig=Gd.bind,og=Hd.forEach,sg=Hd.indexOf,ag=Hd.map,cg=Array.isArray,ug={},lg={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},hg={log:function(){if(R.DEBUG&&!lg.isUndefined(Xd)&&Xd)try{Xd.log.apply(Xd,arguments)}catch(e){lg.each(arguments,function(e){Xd.log(e)})}},warn:function(){if(R.DEBUG&&!lg.isUndefined(Xd)&&Xd){var e=["Mixpanel warning:"].concat(lg.toArray(arguments));try{Xd.warn.apply(Xd,e)}catch(t){lg.each(e,function(e){Xd.warn(e)})}}},error:function(){if(R.DEBUG&&!lg.isUndefined(Xd)&&Xd){var e=["Mixpanel error:"].concat(lg.toArray(arguments));try{Xd.error.apply(Xd,e)}catch(t){lg.each(e,function(e){Xd.error(e)})}}},critical:function(){if(!lg.isUndefined(Xd)&&Xd){var e=["Mixpanel error:"].concat(lg.toArray(arguments));try{Xd.error.apply(Xd,e)}catch(t){lg.each(e,function(e){Xd.error(e)})}}}},pg=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(hg,arguments)}},fg=function(e){return{log:pg(hg.log,e),warn:pg(hg.warn,e),error:pg(hg.error,e),critical:pg(hg.critical,e)}},dg=function(e){return function(){try{return e.apply(this,arguments)}catch(e){hg.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),R.DEBUG&&hg.critical(e)}}},gg=function(e){var t=e.prototype;for(var r in t)"function"==typeof t[r]&&(t[r]=dg(t[r]))};lg.bind=function(e,t){var r,n;if(ig&&e.bind===ig)return ig.apply(e,Jd.call(arguments,1));if(!lg.isFunction(e))throw new TypeError;return r=Jd.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(Jd.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var s=e.apply(o,r.concat(Jd.call(arguments)));return Object(s)===s?s:o},n},lg.each=function(e,t,r){if(null!=e)if(og&&e.forEach===og)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)===ug)return}else for(var o in e)if(Kd.call(e,o)&&t.call(r,e[o],o,e)===ug)return},lg.extend=function(e){return lg.each(Jd.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},lg.isArray=cg||function(e){return"[object Array]"===Zd.call(e)},lg.isFunction=function(e){return"function"==typeof e},lg.isArguments=function(e){return!(!e||!Kd.call(e,"callee"))},lg.toArray=function(e){return e?e.toArray?e.toArray():lg.isArray(e)||lg.isArguments(e)?Jd.call(e):lg.values(e):[]},lg.map=function(e,t,r){if(ag&&e.map===ag)return e.map(t,r);var n=[];return lg.each(e,function(e){n.push(t.call(r,e))}),n},lg.keys=function(e){var t=[];return null===e||lg.each(e,function(e,r){t[t.length]=r}),t},lg.values=function(e){var t=[];return null===e||lg.each(e,function(e){t[t.length]=e}),t},lg.include=function(e,t){var r=!1;return null===e?r:sg&&e.indexOf===sg?-1!=e.indexOf(t):(lg.each(e,function(e){if(r||(r=e===t))return ug}),r)},lg.includes=function(e,t){return-1!==e.indexOf(t)},lg.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},lg.isObject=function(e){return e===Object(e)&&!lg.isArray(e)},lg.isEmptyObject=function(e){if(lg.isObject(e)){for(var t in e)if(Kd.call(e,t))return!1;return!0}return!1},lg.isUndefined=function(e){return void 0===e},lg.isString=function(e){return"[object String]"==Zd.call(e)},lg.isDate=function(e){return"[object Date]"==Zd.call(e)},lg.isNumber=function(e){return"[object Number]"==Zd.call(e)},lg.isElement=function(e){return!(!e||1!==e.nodeType)},lg.encodeDates=function(e){return lg.each(e,function(t,r){lg.isDate(t)?e[r]=lg.formatDate(t):lg.isObject(t)&&(e[r]=lg.encodeDates(t))}),e},lg.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},lg.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())},lg.strip_empty_properties=function(e){var t={};return lg.each(e,function(e,r){lg.isString(e)&&e.length>0&&(t[r]=e)}),t},lg.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):lg.isArray(e)?(r=[],lg.each(e,function(e){r.push(lg.truncate(e,t))})):lg.isObject(e)?(r={},lg.each(e,function(e,n){r[n]=lg.truncate(e,t)})):r=e,r},lg.JSONEncode=function(){return 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":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},r=function(e,n){var i="",o=0,s="",a="",c=0,u=i,l=[],h=n[e];switch(h&&"object"==typeof h&&"function"==typeof h.toJSON&&(h=h.toJSON(e)),typeof h){case"string":return t(h);case"number":return isFinite(h)?String(h):"null";case"boolean":case"null":return String(h);case"object":if(!h)return"null";if(i+=" ",l=[],"[object Array]"===Zd.apply(h)){for(c=h.length,o=0;o<c;o+=1)l[o]=r(o,h)||"null";return a=0===l.length?"[]":i?"[\n"+i+l.join(",\n"+i)+"\n"+u+"]":"["+l.join(",")+"]",i=u,a}for(s in h)Kd.call(h,s)&&(a=r(s,h))&&l.push(t(s)+(i?": ":":")+a);return a=0===l.length?"{}":i?"{"+l.join(",")+u+"}":"{"+l.join(",")+"}",i=u,a}};return r("",{"":e})}}(),lg.JSONDecode=(Ud={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},Bd=function(e){var t=new SyntaxError(e);throw t.at=Nd,t.text=Fd,t},jd=function(e){return e&&e!==Dd&&Bd("Expected '"+e+"' instead of '"+Dd+"'"),Dd=Fd.charAt(Nd),Nd+=1,Dd},qd=function(){var e,t="";for("-"===Dd&&(t="-",jd("-"));Dd>="0"&&Dd<="9";)t+=Dd,jd();if("."===Dd)for(t+=".";jd()&&Dd>="0"&&Dd<="9";)t+=Dd;if("e"===Dd||"E"===Dd)for(t+=Dd,jd(),"-"!==Dd&&"+"!==Dd||(t+=Dd,jd());Dd>="0"&&Dd<="9";)t+=Dd,jd();if(e=+t,isFinite(e))return e;Bd("Bad number")},zd=function(){var e,t,r,n="";if('"'===Dd)for(;jd();){if('"'===Dd)return jd(),n;if("\\"===Dd)if(jd(),"u"===Dd){for(r=0,t=0;t<4&&(e=parseInt(jd(),16),isFinite(e));t+=1)r=16*r+e;n+=String.fromCharCode(r)}else{if("string"!=typeof Ud[Dd])break;n+=Ud[Dd]}else n+=Dd}Bd("Bad string")},Vd=function(){for(;Dd&&Dd<=" ";)jd()},Ld=function(){switch(Vd(),Dd){case"{":return function(){var e,t={};if("{"===Dd){if(jd("{"),Vd(),"}"===Dd)return jd("}"),t;for(;Dd;){if(e=zd(),Vd(),jd(":"),Object.hasOwnProperty.call(t,e)&&Bd('Duplicate key "'+e+'"'),t[e]=Ld(),Vd(),"}"===Dd)return jd("}"),t;jd(","),Vd()}}Bd("Bad object")}();case"[":return function(){var e=[];if("["===Dd){if(jd("["),Vd(),"]"===Dd)return jd("]"),e;for(;Dd;){if(e.push(Ld()),Vd(),"]"===Dd)return jd("]"),e;jd(","),Vd()}}Bd("Bad array")}();case'"':return zd();case"-":return qd();default:return Dd>="0"&&Dd<="9"?qd():function(){switch(Dd){case"t":return jd("t"),jd("r"),jd("u"),jd("e"),!0;case"f":return jd("f"),jd("a"),jd("l"),jd("s"),jd("e"),!1;case"n":return jd("n"),jd("u"),jd("l"),jd("l"),null}Bd('Unexpected "'+Dd+'"')}()}},function(e){var t;return Fd=e,Nd=0,Dd=" ",t=Ld(),Vd(),Dd&&Bd("Syntax error"),t}),lg.base64Encode=function(e){var t,r,n,i,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,c=0,u="",l=[];if(!e)return e;e=lg.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},lg.utf8Encode=function(e){var t,r,n,i,o="";for(t=r=0,n=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<n;i++){var s=e.charCodeAt(i),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&&(o+=e.substring(t,r)),o+=a,t=r=i+1)}return r>t&&(o+=e.substring(t,e.length)),o},lg.UUID=function(){try{return C.crypto.randomUUID()}catch(r){for(var e=new 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]="-",lg.map(e,function(e){return e.toString(16)}).join("")}};var mg=["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"];lg.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<mg.length;t++)if(-1!==e.indexOf(mg[t]))return!0;return!1},lg.HTTPBuildQuery=function(e,t){var r,n,i=[];return lg.isUndefined(t)&&(t="&"),lg.each(e,function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r}),i.join(t)},lg.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var r=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);if(null===r||r&&"string"!=typeof r[1]&&r[1].length)return"";var n=r[1];try{n=decodeURIComponent(n)}catch(e){hg.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},lg.cookie={get:function(e){for(var t=e+"=",r=eg.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=lg.JSONDecode(lg.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=Rg(eg.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+1e3*r),c="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure"),eg.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=Rg(eg.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+24*r*60*60*1e3),c="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure");var p=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u;return eg.cookie=p,p},remove:function(e,t,r){lg.cookie.set(e,"",-1,t,!1,!1,r)}};var vg=function(e){var t=!0;try{var r="__mplss_"+Ig(8);e.setItem(r,"xyz"),"xyz"!==e.getItem(r)&&(t=!1),e.removeItem(r)}catch(e){t=!1}return t},yg=null,_g=function(e,t){return null===yg||t?yg=vg(e):yg},bg=null;function wg(e,t,r){var n=function(e){hg.error(t+" error: "+e)};return{is_supported:function(n){var i=r(e,n);return i||hg.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 lg.JSONDecode(e.getItem(t))||{}}catch(e){}return null},set:function(t,r){try{e.setItem(t,r)}catch(e){n(e)}},remove:function(t){try{e.removeItem(t)}catch(e){n(e)}}}}var kg=function(){try{return C.localStorage}catch(e){return null}};lg.localStorage=wg(kg(),"localStorage",_g),lg.sessionStorage=wg(function(){try{return C.sessionStorage}catch(e){return null}}(),"sessionStorage",function(e,t){return null===bg||t?bg=vg(e):bg}),lg.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)if(t.addEventListener&&!i)t.addEventListener(r,n,!!o);else{var s="on"+r,a=t[s];t[s]=function(t,r,n){var i=function(i){if(i=i||e(C.event)){var o,s,a=!0;return lg.isFunction(n)&&(o=n(i)),s=r.call(t,i),!1!==o&&!1!==s||(a=!1),a}};return i}(t,n,a)}else hg.error("No valid element provided to register_event")}}();var Sg=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');lg.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(e,r){var n=" "+r+" ";return(" "+e.className+" ").replace(t," ").indexOf(n)>=0}function n(t){if(!eg.getElementsByTagName)return[];var n,i,o,s,a,c,u,l,h,p,f=t.split(" "),d=[eg];for(c=0;c<f.length;c++)if((n=f[c].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){o=(i=n.split("#"))[0];var g=i[1],m=eg.getElementById(g);if(!m||o&&m.nodeName.toLowerCase()!=o)return[];d=[m]}else if(n.indexOf(".")>-1){o=(i=n.split("."))[0];var v=i[1];for(o||(o="*"),s=[],a=0,u=0;u<d.length;u++)for(h="*"==o?e(d[u]):d[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];for(d=[],p=0,u=0;u<s.length;u++)s[u].className&&lg.isString(s[u].className)&&r(s[u],v)&&(d[p++]=s[u])}else{var y=n.match(Sg);if(y){o=y[1];var _,b=y[2],w=y[3],k=y[4];for(o||(o="*"),s=[],a=0,u=0;u<d.length;u++)for(h="*"==o?e(d[u]):d[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];switch(d=[],p=0,w){case"=":_=function(e){return e.getAttribute(b)==k};break;case"~":_=function(e){return e.getAttribute(b).match(new RegExp("\\b"+k+"\\b"))};break;case"|":_=function(e){return e.getAttribute(b).match(new RegExp("^"+k+"-?"))};break;case"^":_=function(e){return 0===e.getAttribute(b).indexOf(k)};break;case"$":_=function(e){return e.getAttribute(b).lastIndexOf(k)==e.getAttribute(b).length-k.length};break;case"*":_=function(e){return e.getAttribute(b).indexOf(k)>-1};break;default:_=function(e){return e.getAttribute(b)}}for(d=[],p=0,u=0;u<s.length;u++)_(s[u])&&(d[p++]=s[u])}else{for(o=n,s=[],a=0,u=0;u<d.length;u++)for(h=d[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];d=s}}return d}return function(e){return lg.isElement(e)?[e]:lg.isObject(e)&&!lg.isUndefined(e.length)?e:n.call(this,e)}}();var Cg=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],xg=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];lg.info={campaignParams:function(e){var t="",r={};return lg.each(Cg,function(n){(t=lg.getQueryParam(eg.URL,n)).length?r[n]=t:void 0!==e&&(r[n]=e)}),r},clickParams:function(){var e="",t={};return lg.each(xg,function(r){(e=lg.getQueryParam(eg.URL,r)).length&&(t[r]=e)}),t},marketingParams:function(){return lg.extend(lg.info.campaignParams(),lg.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=lg.info.searchEngine(e),r="yahoo"!=t?"q":"p",n={};if(null!==t){n.$search_engine=t;var i=lg.getQueryParam(e,r);i.length&&(n.mp_keyword=i)}return n},browser:function(e,t,r){return t=t||"",r||lg.includes(e," OPR/")?lg.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":lg.includes(e,"IEMobile")||lg.includes(e,"WPDesktop")?"Internet Explorer Mobile":lg.includes(e,"SamsungBrowser/")?"Samsung Internet":lg.includes(e,"Edge")||lg.includes(e,"Edg/")?"Microsoft Edge":lg.includes(e,"FBIOS")?"Facebook Mobile":lg.includes(e,"Whale/")?"Whale Browser":lg.includes(e,"Chrome")?"Chrome":lg.includes(e,"CriOS")?"Chrome iOS":lg.includes(e,"UCWEB")||lg.includes(e,"UCBrowser")?"UC Browser":lg.includes(e,"FxiOS")?"Firefox iOS":lg.includes(t,"Apple")?lg.includes(e,"Mobile")?"Mobile Safari":"Safari":lg.includes(e,"Android")?"Android Mobile":lg.includes(e,"Konqueror")?"Konqueror":lg.includes(e,"Firefox")?"Firefox":lg.includes(e,"MSIE")||lg.includes(e,"Trident/")?"Internet Explorer":lg.includes(e,"Gecko")?"Mozilla":""},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+)?)/}[lg.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(){var e=ng;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},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 C.location.href},properties:function(e){return"object"!=typeof e&&(e={}),lg.extend(lg.strip_empty_properties({$os:lg.info.os(),$browser:lg.info.browser(ng,Qd.vendor,tg),$referrer:eg.referrer,$referring_domain:lg.info.referringDomain(eg.referrer),$device:lg.info.device(ng)}),{$current_url:lg.info.currentUrl(),$browser_version:lg.info.browserVersion(ng,Qd.vendor,tg),$screen_height:rg.height,$screen_width:rg.width,mp_lib:"web",$lib_version:R.LIB_VERSION,$insert_id:Ig(),time:lg.timestamp()/1e3},lg.strip_empty_properties(e))},people_properties:function(){return lg.extend(lg.strip_empty_properties({$os:lg.info.os(),$browser:lg.info.browser(ng,Qd.vendor,tg)}),{$browser_version:lg.info.browserVersion(ng,Qd.vendor,tg)})},mpPageViewProperties:function(){return lg.strip_empty_properties({current_page_title:eg.title,current_domain:C.location.hostname,current_url_path:C.location.pathname,current_url_protocol:C.location.protocol,current_url_search:C.location.search})}};var Ig=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},Eg=function(){return"00-"+lg.UUID().replace(/-/g,"")+"-"+lg.UUID().replace(/-/g,"").substring(0,16)+"-01"},Og=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Mg=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Rg=function(e){var t=Mg,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=Og);var i=e.match(t);return i?i[0]:""},Ag=function(){},Tg=function(e,t){for(var r=!1,n=0;n<t.length;n++)if(e.match(t[n])){r=!0;break}return r},Pg=null,Ng=null;"undefined"!=typeof JSON&&(Pg=JSON.stringify,Ng=JSON.parse),Pg=Pg||lg.JSONEncode,Ng=Ng||lg.JSONDecode;lg.info=lg.info,lg.info.browser=lg.info.browser,lg.info.browserVersion=lg.info.browserVersion,lg.info.device=lg.info.device,lg.info.properties=lg.info.properties,lg.isBlockedUA=lg.isBlockedUA,lg.isEmptyObject=lg.isEmptyObject,lg.isObject=lg.isObject,lg.JSONDecode=lg.JSONDecode,lg.JSONEncode=lg.JSONEncode,lg.toArray=lg.toArray,lg.NPO=Ad;var Dg=function(e,t,r){this.dbName=e,this.storeName=t,this.version=r.version,this.storeNamesInDb=r.storeNames,this.dbPromise=null};Dg.prototype._openDb=function(){var e=this.dbName,t=this.version,r=this.storeNamesInDb;return new Td(function(n,i){var o=C.indexedDB.open(e,t);o.onerror=function(){i(o.error)},o.onsuccess=function(){n(o.result)},o.onupgradeneeded=function(e){var t=e.target.result;r.forEach(function(e){t.objectStoreNames.contains(e)||t.createObjectStore(e)})}})},Dg.prototype.init=function(){return C.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof C.IDBDatabase?Td.resolve():Td.reject(e)})):Td.reject("indexedDB is not supported in this browser")},Dg.prototype.isInitialized=function(){return!!this.dbPromise},Dg.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(n){return new Td(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)):Td.reject(e)}.bind(this))},Dg.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})},Dg.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})},Dg.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},Dg.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var Fg="mixpanelBrowserDb",Lg="mixpanelRecordingEvents",Ug="mixpanelRecordingRegistry",Bg={version:1,storeNames:[Lg,Ug]};function jg(e,t){Kg(!0,e,t)}function qg(e,t){Kg(!1,e,t)}function zg(e,t){return"1"===Zg(e,t)}function Vg(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||C,r=t.navigator||{},n=!1;return lg.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(e){lg.includes([!0,1,"1","yes"],e)&&(n=!0)}),n}(t))return hg.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"===Zg(e,t);return r&&hg.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function Wg(e){return Xg(e,function(e){return this.get_config(e)})}function $g(e){return Xg(e,function(e){return this._get_config(e)})}function Hg(e){return Xg(e,function(e){return this._get_config(e)})}function Gg(e,t){Yg(t=t||{}).remove(Jg(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function Yg(e){return"localStorage"===(e=e||{}).persistenceType?lg.localStorage:lg.cookie}function Jg(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function Zg(e,t){return Yg(t).get(Jg(e,t))}function Kg(e,t,r){lg.isString(t)&&t.length?(Yg(r=r||{}).set(Jg(t,r),e?1:0,lg.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})):hg.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function Xg(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=Vg(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(e){hg.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)}}var Qg=fg("lock"),em=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||kg(),this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||Td};em.prototype.withLock=function(e,t){return new(0,this.promiseImpl)(lg.bind(function(r,n){var i=t||(new Date).getTime()+"|"+Math.random(),o=(new Date).getTime(),s=this.storageKey,a=this.pollIntervalMS,c=this.timeoutMS,u=this.storage,l=s+":X",h=s+":Y",p=s+":Z",f=function(e){if((new Date).getTime()-o>c)return Qg.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+i+"]"),u.removeItem(p),u.removeItem(h),void m();setTimeout(function(){try{e()}catch(e){n(e)}},a*(Math.random()+.1))},d=function(e,t){e()?t():f(function(){d(e,t)})},g=function(){var e=u.getItem(h);return(!e||e===i)&&(u.setItem(h,i),u.getItem(h)===i||(_g(u,!0)||n(new Error("localStorage support dropped while acquiring lock")),!1))},m=function(){u.setItem(l,i),d(g,function(){u.getItem(l)!==i?f(function(){u.getItem(h)===i?d(function(){return!u.getItem(p)},v):m()}):v()})},v=function(){u.setItem(p,"1");var t=function(){u.removeItem(p),u.getItem(h)===i&&u.removeItem(h),u.getItem(l)===i&&u.removeItem(l)};e().then(function(e){t(),r(e)}).catch(function(e){t(),n(e)})};try{if(!_g(u,!0))throw new Error("localStorage support check failed");m()}catch(e){n(e)}},this))};var tm=function(e){this.storage=e||kg()};tm.prototype.init=function(){return this.storage?Td.resolve():Td.reject(new Error("localStorage is not available"))},tm.prototype.isInitialized=function(){return!0},tm.prototype.setItem=function(e,t){return new Td(lg.bind(function(r,n){try{this.storage.setItem(e,Pg(t))}catch(e){n(e)}r()},this))},tm.prototype.getItem=function(e){return new Td(lg.bind(function(t,r){var n;try{n=Ng(this.storage.getItem(e))}catch(e){r(e)}t(n)},this))},tm.prototype.removeItem=function(e){return new Td(lg.bind(function(t,r){try{this.storage.removeItem(e)}catch(e){r(e)}t()},this))};var rm=fg("batch"),nm=function(e,t){var r,n,i,o;t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new tm,this.lock=new em(e,{storage:t.sharedLockStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||lg.bind(rm.error,rm),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=(r=lg.bind(this._enqueuePersisted,this),n=t.enqueueThrottleMs,i=null,o=[],function(e){var t=this;return o.push(e),i||(i=new Td(function(e){setTimeout(function(){var n=r.apply(t,[o]);i=null,o=[],e(n)},n)})),i}):this.enqueuePersisted=lg.bind(function(e){return this._enqueuePersisted([e])},this)};nm.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?Td.resolve():this.queueStorage.init().then(lg.bind(function(){this.initialized=!0},this)).catch(lg.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},nm.prototype.enqueue=function(e,t){var r={id:Ig(),flushAfter:(new Date).getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),Td.resolve(!0))},nm.prototype._enqueuePersisted=function(e){var t=lg.bind(function(){return this.ensureInit().then(lg.bind(function(){return this.readFromStorage()},this)).then(lg.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(lg.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(lg.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(lg.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},nm.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(lg.bind(function(){return this.readFromStorage()},this)).then(lg.bind(function(r){if(r.length){var n={};lg.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)):Td.resolve(t)};var im=function(e,t){var r=[];return lg.each(e,function(e){e.id&&!t[e.id]&&r.push(e)}),r};nm.prototype.removeItemsByID=function(e){var t={};if(lg.each(e,function(e){t[e]=!0}),this.memQueue=im(this.memQueue,t),this.usePersistence){var r=lg.bind(function(){return this.ensureInit().then(lg.bind(function(){return this.readFromStorage()},this)).then(lg.bind(function(e){return e=im(e,t),this.saveToStorage(e)},this)).then(lg.bind(function(){return this.readFromStorage()},this)).then(lg.bind(function(e){for(var r=0;r<e.length;r++){var n=e[r];if(n.id&&t[n.id])throw new Error("Item not removed from storage")}return!0},this)).catch(lg.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(r,this.pid).catch(lg.bind(function(e){return this.reportError("Error acquiring storage lock",e),!_g(this.lock.storage,!0)&&r().then(lg.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(lg.bind(function(e){return this.reportError("Error clearing queue",e),!1},this))},this))}return Td.resolve(!0)};var om=function(e,t){var r=[];return lg.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};nm.prototype.updatePayloads=function(e){return this.memQueue=om(this.memQueue,e),this.usePersistence?this.lock.withLock(lg.bind(function(){return this.ensureInit().then(lg.bind(function(){return this.readFromStorage()},this)).then(lg.bind(function(t){return t=om(t,e),this.saveToStorage(t)},this)).catch(lg.bind(function(t){return this.reportError("Error updating items",e,t),!1},this))},this),this.pid).catch(lg.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this)):Td.resolve(!0)},nm.prototype.readFromStorage=function(){return this.ensureInit().then(lg.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(lg.bind(function(e){return e&&(lg.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]},this)).catch(lg.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},nm.prototype.saveToStorage=function(e){return this.ensureInit().then(lg.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(lg.bind(function(e){return this.reportError("Error saving queue",e),!1},this))},nm.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(lg.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):Td.resolve()};var sm=fg("batch"),am=function(e,t){this.errorReporter=t.errorReporter,this.queue=new nm(e,{errorReporter:lg.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};am.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},am.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},am.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},am.prototype.clear=function(){return this.queue.clear()},am.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},am.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},am.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(lg.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},am.prototype.sendRequestPromise=function(e,t){return new Td(lg.bind(function(r){this.sendRequest(e,t,r)},this))},am.prototype.flush=function(e){if(this.requestInProgress)return sm.log("Flush: Request already in progress"),Td.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(lg.bind(function(i){var o=i.length===n,s=[],a={};if(lg.each(i,function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=lg.extend({},t.properties,{mp_sent_by_lib_version:R.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(),Td.resolve();var c=lg.bind(function(){return this.queue.removeItemsByID(lg.map(i,function(e){return e.id})).then(lg.bind(function(e){return lg.each(i,lg.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(),Td.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),Td.resolve())},this))},this),u=lg.bind(function(o){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(lg.isObject(o)&&"timeout"===o.error&&(new Date).getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(lg.isObject(o)&&(o.httpStatusCode>=500||429===o.httpStatusCode||o.httpStatusCode<=0&&(l=C.navigator.onLine,!lg.isUndefined(l)&&!l)||"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),Td.resolve()}if(lg.isObject(o)&&413===o.httpStatusCode){if(i.length>1){var u=Math.max(1,Math.floor(n/2));return this.batchSize=Math.min(this.batchSize,u,i.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),Td.resolve()}return this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),c()}return c()}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}var l},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(l.transport="sendBeacon"),sm.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,l).then(u)},this)).catch(lg.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},am.prototype.reportError=function(e,t){if(sm.error.apply(sm.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(e){sm.error(e)}};var cm=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},um=function(e,t){if(!lg.isArray(e))return e&&t.critical("record_allowed_iframe_origins must be an array of origin strings, cross-origin recording will be disabled."),[];for(var r=[],n=0;n<e.length;n++)try{var i=new URL(e[n]).origin;if("null"===i){t.critical(e[n]+" has an opaque origin. Skipping this entry.");continue}r.push(i)}catch(r){t.critical(e[n]+" is not a valid origin URL. Skipping this entry.")}return r},lm="change",hm="click",pm="hashchange",fm="load",dm="mp_locationchange",gm="popstate",mm="scrollend",vm="scroll",ym="submit",_m="visibilitychange",bm=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],wm=["mp-include"],km=["mp-no-track"],Sm=km.concat(["mp-sensitive"]),Cm=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],xm={button:!0,checkbox:!0,combobox:!0,grid:!0,link:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,navigation:!0,option:!0,radio:!0,radiogroup:!0,searchbox:!0,slider:!0,spinbutton:!0,switch:!0,tab:!0,tablist:!0,textbox:!0,tree:!0,treegrid:!0,treeitem:!0},Im={base:!0,head:!0,html:!0,link:!0,meta:!0,script:!0,style:!0,title:!0,br:!0,hr:!0,wbr:!0,noscript:!0,picture:!0,source:!0,template:!0,track:!0},Em={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},Om=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],Mm=fg("autocapture");function Rm(e){for(var t={},r=Am(e).split(" "),n=0;n<r.length;n++){var i=r[n];i&&(t[i]=!0)}return t}function Am(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function Tm(e){if(e.previousElementSibling)return e.previousElementSibling;do{e=e.previousSibling}while(e&&!Um(e));return e}function Pm(e,t,r,n,i,o){var s={$classes:Am(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s.$id=a),zm(e,t,i,o)&&lg.each(Cm.concat(n),function(t){if(e.hasAttribute(t)&&!r[t]){var n=e.getAttribute(t);Vm(n)&&(s["$attr-"+t]=n)}});for(var c=1,u=1,l=e;l=Tm(l);)c++,l.tagName===e.tagName&&u++;return s.$nth_child=c,s.$nth_of_type=u,s}function Nm(e,t){var r=t.allowElementCallback,n=t.allowSelectors||[],i=t.blockAttrs||[],o=t.blockElementCallback,s=t.blockSelectors||[],a=t.captureTextContent||!1,c=t.captureExtraAttrs||[],u=t.capturedForHeatMap||!1,l={};lg.each(i,function(e){l[e]=!0});var h=null,p=void 0===e.target?e.srcElement:e.target;if(jm(p)&&(p=p.parentNode),function(e,t){if(!e||Bm(e,"html")||!Um(e))return!1;switch(e.tagName.toLowerCase()){case"form":return t.type===ym;case"input":return-1===["button","submit"].indexOf(e.getAttribute("type"))?t.type===lm:t.type===hm;case"select":case"textarea":return t.type===lm;default:return t.type===hm}}(p,e)&&Fm(p,e,r,n)&&!Lm(p,e,o,s)){for(var f=[p],d=p;d.parentNode&&!Bm(d,"body");)f.push(d.parentNode),d=d.parentNode;var g,m=[],v=!1;if(lg.each(f,function(t){var i=zm(t,e,r,n);l.href||"a"!==t.tagName.toLowerCase()||(g=t.getAttribute("href"),g=i&&Vm(g)&&g),Lm(t,e,o,s)&&(v=!0),m.push(Pm(t,e,l,c,r,n))},this),!v){var y=eg.documentElement;if(h={$event_type:e.type,$host:C.location.host,$pathname:C.location.pathname,$elements:m,$el_attr__href:g,$viewportHeight:Math.max(y.clientHeight,C.innerHeight||0),$viewportWidth:Math.max(y.clientWidth,C.innerWidth||0),$pageHeight:eg.body.offsetHeight||0,$pageWidth:eg.body.offsetWidth||0},lg.each(c,function(e){if(!l[e]&&p.hasAttribute(e)){var t=p.getAttribute(e);Vm(t)&&(h["$el_attr__"+e]=t)}}),a&&(_=Dm(p,e,r,n))&&_.length&&(h.$el_text=_),e.type===hm&&(lg.each(bm,function(t){t in e&&(h["$"+t]=e[t])}),u&&(h.$captured_for_heatmap=!0),p=function(e){for(var t=e.target,r=e.composedPath(),n=0;n<r.length;n++){var i=r[n];if(Bm(i,"a")||Bm(i,"button")||Bm(i,"input")||Bm(i,"select")||i.getAttribute&&"button"===i.getAttribute("role")){t=i;break}if(i===t)break}return t}(e)),a){var _=Dm(p,e,r,n);_&&_.length&&(h.$el_text=_)}if(p){if(!Fm(p,e,r,n)||Lm(p,e,o,s))return null;var b=Pm(p,e,l,c,r,n);h.$target=b,h.$el_classes=b.$classes,lg.extend(h,lg.strip_empty_properties({$el_id:b.$id,$el_tag_name:b.$tag_name}))}}}return h}function Dm(e,t,r,n){var i="";return zm(e,t,r,n)&&e.childNodes&&e.childNodes.length&&lg.each(e.childNodes,function(e){jm(e)&&e.textContent&&(i+=lg.trim(e.textContent).split(/(\s+)/).filter(Vm).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),lg.trim(i)}function Fm(e,t,r,n){if(r)try{if(!r(e,t))return!1}catch(e){return Mm.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){Mm.critical("Error while checking selector: "+o,e)}}return!1}function Lm(e,t,r,n){var i;if(r)try{if(r(e,t))return!0}catch(e){return Mm.critical("Error while checking element in blockElementCallback",e),!0}if(n&&n.length)for(i=0;i<n.length;i++){var o=n[i];try{if(e.matches(o))return!0}catch(e){Mm.critical("Error while checking selector: "+o,e)}}var s=Rm(e);for(i=0;i<km.length;i++)if(s[km[i]])return!0;return!1}function Um(e){return e&&1===e.nodeType}function Bm(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function jm(e){return e&&3===e.nodeType}function qm(e){var t=(e.name||e.id||"").toString().toLowerCase();if("string"==typeof t){if(/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(t.replace(/[^a-zA-Z0-9]/g,"")))return!0}return!1}function zm(e,t,r,n){var i;if(!Fm(e,t,r,n))return!1;for(var o=e;o.parentNode&&!Bm(o,"body");o=o.parentNode){var s=Rm(o);for(i=0;i<Sm.length;i++)if(s[Sm[i]])return!1}var a=Rm(e);for(i=0;i<wm.length;i++)if(a[wm[i]])return!0;if(Bm(e,"input")||Bm(e,"select")||Bm(e,"textarea")||"true"===e.getAttribute("contenteditable"))return!1;var c=e.type||"";if("string"==typeof c)switch(c.toLowerCase()){case"hidden":case"password":return!1}return!qm(e)}function Vm(e){if(null===e||lg.isUndefined(e))return!1;if("string"==typeof e){e=lg.trim(e);if(/^(?:(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,"")))return!1;if(/(^\d{3}-?\d{2}-?\d{4}$)/.test(e))return!1}return!0}function Wm(e){var t="onscrollend"in C,r=dg(e),n=mm;if(!t){var i=null;r=dg(function(){clearTimeout(i),i=setTimeout(e,100)}),n=vm}return{listener:r,eventType:n}}function $m(e){var t=e.tagName.toLowerCase();return"button"===t||"input"===t||"select"===t||"textarea"===t||"details"===t||"dialog"===t||(!!e.isContentEditable||(!!(e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend)||(!!function(e){for(var t=0;t<Om.length;t++)if(e.hasAttribute(Om[t]))return!0;return!1}(e)||(!!function(e){var t=e.getAttribute("role");if(!t)return!1;var r=t.trim().split(/\s+/)[0].toLowerCase();return xm[r]}(e)||(!("a"!==t||!e.hasAttribute("href"))||!!e.hasAttribute("tabindex"))))))}function Hm(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(Im[t])return!0;if($m(e))return!1;for(var r=e.parentElement,n=0;r&&n<5;){if($m(r))return!1;if(r.getRootNode&&r.getRootNode()!==eg){var i=r.getRootNode();if(i.host&&$m(i.host))return!1}r=r.parentElement,n++}return!!Em[t]}function Gm(e){return"composedPath"in e?e.composedPath():[]}function Ym(e){var t=Gm(e);return t&&t.length>0?t[0]:e.target||e.srcElement}var Jm=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",Zm=["password","email","tel","hidden"];function Km(e){return e?Array.isArray(e)?e:[e]:[]}function Xm(e,t){return!!t&&!!e.closest(t)}function Qm(e,t){var r=(e.getAttribute("type")||"").toLowerCase();if(-1!==Zm.indexOf(r))return!0;var n=(e.getAttribute("autocomplete")||"").toLowerCase();return!(!n||""===n||"off"===n)||(!!e.hasAttribute("data-rr-is-password")||(!!qm(e)||(t.input.maskAll?!Xm(e,t.input.unmaskingSelector):!!Xm(e,t.input.maskingSelector)||!!Xm(e,Jm))))}function ev(e,t){return!!e&&(!(!t.text._legacyClassRegex||!ml(e,t.text._legacyClassRegex))||(t.text.maskAll?!Xm(e,t.text.unmaskingSelector):!!Xm(e,t.text.maskingSelector)||!!Xm(e,Jm)))}var tv=fg("network-plugin");function rv(e){return Math.round(Date.now()-e.performance.now())}var nv={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],ignoreRequestFn:function(){return!1},recordHeaders:{request:[],response:[]},recordBodyUrls:{request:[],response:[]},recordInitialRequests:!1};function iv(e){return"resource"===e.entryType}function ov(e,t,r){if(!(t in e)||"function"!=typeof e[t])return function(){};var n=e[t],i=r(n);return e[t]=i,function(){e[t]=n}}var sv=1048576;function av(e){return e&&"string"==typeof e&&e.length>sv?(tv.error("Body truncated from "+e.length+" to "+sv+" characters"),e.substring(0,sv)+"... [truncated]"):e}function cv(e,t,r){return!(!t[e]||0===t[e].length)&&t[e].includes(r.toLowerCase())}function uv(e,t,r){return!(!t[e]||0===t[e].length)&&Tg(r,t[e])}function lv(e){if(null==e)return null;var t;if("string"==typeof e)t=e;else if(e instanceof Document)t=e.textContent;else if(e instanceof FormData)t=lg.HTTPBuildQuery(e);else{if(!lg.isObject(e))return"Cannot read body of type "+typeof e;try{t=JSON.stringify(e)}catch(e){return"Failed to stringify response object"}}return av(t)}function hv(e){return new Promise(function(t){var r=setTimeout(function(){t("Timeout while trying to read body")},500);try{e.clone().text().then(function(e){clearTimeout(r),t(av(e))},function(e){clearTimeout(r),t("Failed to read body: "+String(e))})}catch(e){clearTimeout(r),t("Failed to read body: "+String(e))}})}function pv(e,t,r,n,i,o){if(void 0===o&&(o=0),o>10)return tv.error("Cannot find performance entry"),Promise.resolve(null);var s=function(e,t){for(var r=e.length-1;r>=0;r-=1)if(t(e[r]))return e[r]}(e.performance.getEntriesByName(r),function(e){return iv(e)&&e.initiatorType===t&&(!n||e.startTime>=n)&&(!i||e.startTime<=i)});return s?Promise.resolve(s):new Promise(function(e){setTimeout(e,50*o)}).then(function(){return pv(e,t,r,n,i,o+1)})}function fv(e,t,r){if(!("performance"in t))return function(){};var n=Object.assign({},nv.recordHeaders,r.recordHeaders||{}),i=Object.assign({},nv.recordBodyUrls,r.recordBodyUrls||{});r=Object.assign({},r,{recordHeaders:n,recordBodyUrls:i});var o=Object.assign({},nv,r),s=function(t){var r=t.requests.filter(function(e){return!Tg(e.url,o.ignoreRequestUrls||[])&&!o.ignoreRequestFn(e)});(r.length>0||t.isInitial)&&e(Object.assign({},t,{requests:r}))},a=function(e,t,r){if(!t.PerformanceObserver)return tv.error("PerformanceObserver not supported"),function(){};if(r.recordInitialRequests){var n=t.performance.getEntries().filter(function(e){return function(e){return"navigation"===e.entryType}(e)||iv(e)&&r.initiatorTypes.includes(e.initiatorType)});e({requests:n.map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:rv(t)}}),isInitial:!0})}var i=new t.PerformanceObserver(function(n){var i=n.getEntries().filter(function(e){return iv(e)&&r.initiatorTypes.includes(e.initiatorType)&&"xmlhttprequest"!==e.initiatorType&&"fetch"!==e.initiatorType});e({requests:i.map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:rv(t)}})})});return i.observe({entryTypes:["navigation","resource"]}),function(){i.disconnect()}}(s,t,o),c=function(e,t,r){if(!r.initiatorTypes.includes("xmlhttprequest"))return function(){};var n=ov(t.XMLHttpRequest.prototype,"open",function(n){return function(i,o,s,a,c){void 0===s&&(s=!0);var u,l,h=this,p=new Request(o,{method:i}),f={},d={},g=h.setRequestHeader.bind(h);h.setRequestHeader=function(e,t){return cv("request",r.recordHeaders,e)&&(d[e]=t),g(e,t)},f.requestHeaders=d;var m=h.send.bind(h);h.send=function(e){return uv("request",r.recordBodyUrls,p.url)&&(f.requestBody=lv(e)),u=t.performance.now(),m(e)},h.addEventListener("readystatechange",function(){if(h.readyState===h.DONE){l=t.performance.now();var n={},i=h.getAllResponseHeaders();i&&i.trim().split(/[\r\n]+/).forEach(function(e){if(e){var t=e.indexOf(": ");if(-1!==t){var i=e.substring(0,t),o=e.substring(t+2);i&&cv("response",r.recordHeaders,i)&&(n[i]=o)}}}),f.responseHeaders=n,uv("response",r.recordBodyUrls,p.url)&&(f.responseBody=lv(h.response)),pv(t,"xmlhttprequest",p.url,u,l).then(function(r){if(r){var n={url:r.name,method:p.method,initiatorType:r.initiatorType,status:h.status,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:rv(t),requestHeaders:f.requestHeaders,requestBody:f.requestBody,responseHeaders:f.responseHeaders,responseBody:f.responseBody};e({requests:[n]})}else tv.error("Failed to get performance entry for XHR request to "+p.url)}).catch(function(e){tv.error("Error recording XHR request to "+p.url+": "+String(e))})}}),n.call(h,i,o,s,a,c)}});return function(){n()}}(s,t,o),u=function(e,t,r){if(!r.initiatorTypes.includes("fetch"))return function(){};var n=ov(t,"fetch",function(n){return function(){var i,o,s,a,c=new Request(arguments[0],arguments[1]),u={},l=Promise.resolve(void 0),h=Promise.resolve(void 0);try{var p={};c.headers.forEach(function(e,t){cv("request",r.recordHeaders,t)&&(p[t]=e)}),u.requestHeaders=p,uv("request",r.recordBodyUrls,c.url)&&(l=hv(c).then(function(e){u.requestBody=e})),o=t.performance.now(),a=n.apply(t,arguments).then(function(e){i=e,s=t.performance.now();var n={};return i.headers.forEach(function(e,t){cv("response",r.recordHeaders,t)&&(n[t]=e)}),u.responseHeaders=n,uv("response",r.recordBodyUrls,c.url)&&(h=hv(i).then(function(e){u.responseBody=e})),i})}catch(e){a=Promise.reject(e)}return Promise.all([l,h,a]).then(function(){return pv(t,"fetch",c.url,o,s)}).then(function(r){if(r){var n={url:r.name,method:c.method,initiatorType:r.initiatorType,status:i?i.status:void 0,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:rv(t),requestHeaders:u.requestHeaders,requestBody:u.requestBody,responseHeaders:u.responseHeaders,responseBody:u.responseBody};e({requests:[n]})}else tv.error("Failed to get performance entry for fetch request to "+c.url)}).catch(function(e){tv.error("Error recording fetch request to "+c.url+": "+String(e))}),a}});return function(){n()}}(s,t,o);return function(){a(),c(),u()}}var dv=fg("recorder"),gv=C.CompressionStream,mv={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},vv=new Set([ru.MouseMove,ru.MouseInteraction,ru.Scroll,ru.ViewportResize,ru.Input,ru.TouchMove,ru.MediaInteraction,ru.Drag,ru.Selection]);var yv=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||Ag,this._onMaxLengthReached=e.onMaxLengthReached||Ag,this._onBatchSent=e.onBatchSent||Ag,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.lastEventTimestamp=e.lastEventTimestamp||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=Wd,this.recordMinMs=0,this._recordMinMsCheckStart=null;var t=_g(e.sharedLockStorage||kg(),!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new Dg(Fg,Lg,Bg),this.batcher=new am(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:mv,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:250,sharedLockTimeoutMS:1e4})};yv.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},yv.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init().catch(function(){this.reportError("Error initializing IndexedDB storage for unloading persisted data.")}.bind(this)).then(function(){return this.getDurationMs()<this._getRecordMinMs()?this.queueStorage.removeItem(this.batcherKey):this.batcher.flush().then(function(){return this.queueStorage.removeItem(this.batcherKey)}.bind(this))}.bind(this))},yv.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},yv.prototype.get_config=function(e){return this.getConfig(e)},yv.prototype.startRecording=function(e){if(null!==this._rrwebRecord)if(null===this._stopRecording){this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>Wd&&(this.recordMaxMs=Wd,dv.critical("record_max_ms cannot be greater than "+Wd+"ms. Capping value.")),this.maxExpires||(this.maxExpires=(new Date).getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=(new Date).getTime(),this.batchStartUrl=lg.info.currentUrl(),this.replayStartUrl=lg.info.currentUrl()),e||this.recordMinMs>0?(this.batcher.stop(),this._recordMinMsCheckStart=null):this.batcher.start();var t=function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=(new Date).getTime()+e}.bind(this);t();var r=this.getConfig("record_block_selector");""!==r&&null!==r||(r=void 0);var n=function(e){var t={input:{maskingSelector:"",unmaskingSelector:"",maskAll:!0},text:{maskingSelector:"",unmaskingSelector:"",maskAll:!0}},r=e.get_config("record_mask_input_selector"),n=e.get_config("record_unmask_input_selector"),i=e.get_config("record_mask_all_inputs");t.input.maskingSelector=Km(r).join(","),t.input.unmaskingSelector=Km(n).join(","),void 0!==i&&(t.input.maskAll=i);var o=e.get_config("record_mask_text_selector"),s=e.get_config("record_unmask_text_selector"),a=e.get_config("record_mask_all_text"),c=e.get_config("record_mask_text_class"),u=Km(o);if(c)if(c instanceof RegExp)t.text._legacyClassRegex=c;else{var l="."+c;-1===u.indexOf(l)&&u.push(l)}return t.text.maskingSelector=u.join(","),t.text.unmaskingSelector=Km(s).join(","),void 0===a&&void 0!==o?t.text.maskAll=!1:void 0!==a&&(t.text.maskAll=a),t}(this._mixpanel),i=[];if(this.getConfig("record_network")){var o=this.getConfig("record_network_options")||{},s=(o.ignoreRequestUrls||[]).slice();s.push(this._getApiRoute()),o.ignoreRequestUrls=s,i.push(function(e){return{name:"rrweb/network@1.mp",observer:fv,options:e}}(o))}this.getConfig("record_console")&&i.push(function(e){return{name:"rrweb/console@1",observer:gd,options:e}}({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}}));var a=um(this.getConfig("record_allowed_iframe_origins"),dv);try{this._stopRecording=this._rrwebRecord({emit:function(e){this.idleExpires&&this.idleExpires<e.timestamp?this._onIdleTimeout():(null===this._recordMinMsCheckStart&&(this._recordMinMsCheckStart=e.timestamp),function(e){return e.type===tu.IncrementalSnapshot&&vv.has(e.data.source)}(e)&&(this.batcher.stopped&&e.timestamp-this._recordMinMsCheckStart>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e),(null===this.lastEventTimestamp||e.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=e.timestamp))}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn(Qm,n),maskTextFn:this._getMaskFn(ev,n),recordCrossOriginIframes:a.length>0,allowedIframeOrigins:a,recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:i})}catch(e){this.reportError("Unexpected error when starting rrweb recording.",e)}if("function"!=typeof this._stopRecording)return this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,void this.stopRecording();var c=this.maxExpires-(new Date).getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),c)}else dv.log("Recording already in progress, skipping startRecording.");else this.reportError("rrweb record function not provided. ")},yv.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError("Error with rrweb stopRecording",e)}this._stopRecording=null}var t;return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},yv.prototype.isRrwebStopped=function(){return null===this._stopRecording},yv.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)},yv.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(t){this.reportError("Error getting tab ID for serialization ",t),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},yv.deserialize=function(e,t){return new yv(lg.extend({},t,{replayId:e.replayId,batchStartUrl:e.batchStartUrl,replayStartUrl:e.replayStartUrl,idleExpires:e.idleExpires,maxExpires:e.maxExpires,replayStartTime:e.replayStartTime,lastEventTimestamp:e.lastEventTimestamp,seqNo:e.seqNo,sharedLockStorage:t.sharedLockStorage}))},yv.prototype._getApiRoute=function(){return this.getConfig("api_routes").record},yv.prototype._sendRequest=function(e,t,r,n){var i=function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=lg.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");C.fetch(o+"/"+this._getApiRoute()+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then(function(e){e.json().then(function(t){i(e,t)}).catch(function(e){n({error:e})})}).catch(function(e){n({error:e,httpStatusCode:0})})},yv.prototype._flushEvents=Wg(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===tu.FullSnapshot&&(a=!0);if(0===this.seqNo){if(!a)return r({error:"First batch does not contain a full snapshot. Aborting recording."}),void this.stopRecording(!0);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:R.LIB_VERSION,batch_start_time:o/1e3,mp_lib:"web",replay_id:i,replay_length_ms:u,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},h=JSON.stringify(e);if(Object.assign(l,this.getUserIdInfo()),function(e,t,r){if(!C.CompressionStream)return!1;var n=lg.info.browser(e,t,r),i=lg.info.browserVersion(e,t,r);return!(("Safari"===n||"Mobile Safari"===n)&&i>=16.4&&i<16.6)}(ng,Qd.vendor,tg)){var p=new Blob([h],{type:"application/json"}).stream().pipeThrough(new gv("gzip"));new Response(p).blob().then(function(e){l.format="gzip",this._sendRequest(i,l,e,r)}.bind(this))}else l.format="body",this._sendRequest(i,l,h,r)}}),yv.prototype.reportError=function(e,t){dv.error.apply(dv.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(e){dv.error(e)}},yv.prototype.getDurationMs=function(){return null===this.replayStartTime?0:null===this.lastEventTimestamp?(new Date).getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},yv.prototype._getRecordMinMs=function(){var e=this.getConfig("record_min_ms");return e>$d?(dv.critical("record_min_ms cannot be greater than 8000ms. Capping value."),$d):e},yv.prototype._getMaskFn=function(e,t){return function(r,n){if(!r.trim().length)return"";var i=!0;try{i=e(n,t)}catch(e){this.reportError("Error checking if text should be masked, defaulting to masked",e)}if(i){var o=Math.min(r.length,1e4);return"*".repeat(o)}return r}.bind(this)};var _v=function(e){this.idb=new Dg(Fg,Ug,Bg),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};_v.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},_v.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},_v.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return Td.resolve();var t=e.tabId;return t?this.idb.init().then(function(){return this.idb.setItem(t,e)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),Td.resolve())},_v.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}.bind(this)).then(function(e){return cm(e)?null:e}.bind(this)).catch(this.handleError.bind(this)):Td.resolve(null)},_v.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},_v.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then(function(e){if(e)return e.maxExpires=0,this.setActiveRecording(e)}.bind(this)).catch(this.handleError.bind(this))},_v.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):Td.resolve()},_v.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(e){var t=e.filter(function(e){return cm(e)}).map(function(e){return yv.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 Td.all(t)}.bind(this)).catch(this.handleError.bind(this)):Td.resolve([])};var bv=fg("recorder"),wv=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||sl,this.sharedLockStorage=r,this.recordingRegistry=new _v({mixpanelInstance:this.mixpanelInstance,errorReporter:bv.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};function kv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}wv.prototype.startRecording=function(e){if(e=e||{},!this.activeRecording||this.activeRecording.isRrwebStopped()){var t=function(){bv.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),r=function(){bv.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:lg.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=yv.deserialize(e.activeSerializedRecording,i):this.activeRecording=new yv(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())}bv.log("Recording already in progress, skipping startRecording.")},wv.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))},wv.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},wv.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return Td.resolve()},wv.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),Td.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(bv.log("No resumable recording found."),null)}.bind(this))},wv.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},wv.prototype.isRecording=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()},wv.prototype.getActiveReplayId=function(){return this.isRecording()?this.activeRecording.replayId:null},Object.defineProperty(wv.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),C[T]=wv;var Sv,Cv={exports:{}};var xv=(Sv||(Sv=1,Cv.exports=function(){function e(e){for(var t=[],r=0,n=e.length;r<n;r++)-1===t.indexOf(e[r])&&t.push(e[r]);return t}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var t={},r={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,r){return void 0===r?e<t:e<t&&t<r},"<=":function(e,t,r){return void 0===r?e<=t:e<=t&&t<=r},"!!":function(e){return t.truthy(e)},"!":function(e){return!t.truthy(e)},"%":function(e,t){return e%t},log:function(e){return console.log(e),e},in:function(e,t){return!(!t||void 0===t.indexOf)&&-1!==t.indexOf(e)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(e,t,r){if(r<0){var n=String(e).substr(t);return n.substr(0,n.length+r)}return String(e).substr(t,r)},"+":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)+parseFloat(t,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)*parseFloat(t,10)})},"-":function(e,t){return void 0===t?-e:e-t},"/":function(e,t){return e/t},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,function(e,t){return e.concat(t)},[])},var:function(e,t){var r=void 0===t?null:t,n=this;if(void 0===e||""===e||null===e)return n;for(var i=String(e).split("."),o=0;o<i.length;o++){if(null==n)return r;if(void 0===(n=n[i[o]]))return r}return n},missing:function(){for(var e=[],r=Array.isArray(arguments[0])?arguments[0]:arguments,n=0;n<r.length;n++){var i=r[n],o=t.apply({var:i},this);null!==o&&""!==o||e.push(i)}return e},missing_some:function(e,r){var n=t.apply({missing:r},this);return r.length-n.length>=e?[]:n}};return t.is_logic=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},t.truthy=function(e){return!(Array.isArray(e)&&0===e.length||!e)},t.get_operator=function(e){return Object.keys(e)[0]},t.get_values=function(e){return e[t.get_operator(e)]},t.apply=function(e,n){if(Array.isArray(e))return e.map(function(e){return t.apply(e,n)});if(!t.is_logic(e))return e;var i,o,s,a,c,u=t.get_operator(e),l=e[u];if(Array.isArray(l)||(l=[l]),"if"===u||"?:"==u){for(i=0;i<l.length-1;i+=2)if(t.truthy(t.apply(l[i],n)))return t.apply(l[i+1],n);return l.length===i+1?t.apply(l[i],n):null}if("and"===u){for(i=0;i<l.length;i+=1)if(o=t.apply(l[i],n),!t.truthy(o))return o;return o}if("or"===u){for(i=0;i<l.length;i+=1)if(o=t.apply(l[i],n),t.truthy(o))return o;return o}if("filter"===u)return a=t.apply(l[0],n),s=l[1],Array.isArray(a)?a.filter(function(e){return t.truthy(t.apply(s,e))}):[];if("map"===u)return a=t.apply(l[0],n),s=l[1],Array.isArray(a)?a.map(function(e){return t.apply(s,e)}):[];if("reduce"===u)return a=t.apply(l[0],n),s=l[1],c=void 0!==l[2]?t.apply(l[2],n):null,Array.isArray(a)?a.reduce(function(e,r){return t.apply(s,{current:r,accumulator:e})},c):c;if("all"===u){if(a=t.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!1;for(i=0;i<a.length;i+=1)if(!t.truthy(t.apply(s,a[i])))return!1;return!0}if("none"===u){if(a=t.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!0;for(i=0;i<a.length;i+=1)if(t.truthy(t.apply(s,a[i])))return!1;return!0}if("some"===u){if(a=t.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!1;for(i=0;i<a.length;i+=1)if(t.truthy(t.apply(s,a[i])))return!0;return!1}if(l=l.map(function(e){return t.apply(e,n)}),r.hasOwnProperty(u)&&"function"==typeof r[u])return r[u].apply(n,l);if(u.indexOf(".")>0){var h=String(u).split("."),p=r;for(i=0;i<h.length;i++){if(!p.hasOwnProperty(h[i]))throw new Error("Unrecognized operation "+u+" (failed at "+h.slice(0,i+1).join(".")+")");p=p[h[i]]}return p.apply(n,l)}throw new Error("Unrecognized operation "+u)},t.uses_data=function(r){var n=[];if(t.is_logic(r)){var i=t.get_operator(r),o=r[i];Array.isArray(o)||(o=[o]),"var"===i?n.push(o[0]):o.forEach(function(e){n.push.apply(n,t.uses_data(e))})}return e(n)},t.add_operation=function(e,t){r[e]=t},t.rm_operation=function(e){delete r[e]},t.rule_like=function(e,r){if(r===e)return!0;if("@"===r)return!0;if("number"===r)return"number"==typeof e;if("string"===r)return"string"==typeof e;if("array"===r)return Array.isArray(e)&&!t.is_logic(e);if(t.is_logic(r)){if(t.is_logic(e)){var n=t.get_operator(r),i=t.get_operator(e);if("@"===n||n===i)return t.rule_like(t.get_values(e,!1),t.get_values(r,!1))}return!1}if(Array.isArray(r)){if(Array.isArray(e)){if(r.length!==e.length)return!1;for(var o=0;o<r.length;o+=1)if(!t.rule_like(e[o],r[o]))return!1;return!0}return!1}return!1},t}()),Cv.exports),Iv=kv(xv),Ev={eventMatchesCriteria:function(e,t,r){if(e!==r.event_name)return{matches:!1};var n=r.property_filters,i=!0;if(n&&!lg.isEmptyObject(n))try{i=Iv.apply(n,t||{})}catch(e){return{matches:!1,error:e.toString()}}return{matches:i}}};C[A]=Promise.resolve(Ev);function Ov(){this.clicks=[]}function Mv(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}Ov.prototype.isRageClick=function(e,t){var r=(t=t||{}).threshold_px||30,n=t.timeout_ms||1e3,i=t.click_count||4;if(t.interactive_elements_only||false){var o=Ym(e);if(!o||Hm(o))return!1}var s=Date.now(),a=e.pageX,c=e.pageY,u=this.clicks[this.clicks.length-1];if(u&&s-u.timestamp<n&&Math.sqrt(Math.pow(a-u.x,2)+Math.pow(c-u.y,2))<r){if(this.clicks.push({x:a,y:c,timestamp:s}),this.clicks.length>=i)return this.clicks=[],!0}else this.clicks=[{x:a,y:c,timestamp:s}];return!1},Mv.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return Ym(e)},Mv.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=Gm(e),r=0;r<t.length;r++){var n=t[r];n&&n.shadowRoot&&this.observeShadowRoot(n.shadowRoot)}},Mv.prototype.observeShadowRoot=function(e){if(this.observedShadowRoots&&!this.observedShadowRoots.has(e)){var t=this;try{this.observedShadowRoots.add(e);var r=new window.MutationObserver(function(){t.changeCallback()});r.observe(e,this.observerConfig),this.shadowObservers.push(r)}catch(e){Mm.critical("Error while observing shadow root",e)}}},Mv.prototype.start=function(){this.observedShadowRoots||("undefined"!=typeof WeakSet?this.observedShadowRoots=new WeakSet:Mm.critical("Shadow DOM observation unavailable: WeakSet not supported"))},Mv.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(e){Mm.critical("Error while disconnecting shadow DOM observer",e)}this.shadowObservers=[],this.observedShadowRoots=null}};var Rv=[lm,"input",ym,"select","toggle"],Av=[mm],Tv=[pm],Pv={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function Nv(e){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=e,this.processingActive=!1,this.processingTimeout=null}Nv.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e.target||e.srcElement),!(!t||Hm(t))&&(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),!0)},Nv.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var r=this.addClick(e);return r&&this.triggerProcessing(t),r},Nv.prototype.getDeadClicks=function(e){if(0===this.pendingClicks.length)return[];var t=e.timeout_ms,r=Date.now(),n=this.pendingClicks.slice();this.pendingClicks=[];for(var i=[],o=0;o<n.length;o++){var s=n[o];r-s.timestamp>=t?this.hasChangesAfter(s.timestamp)||i.push(s):this.pendingClicks.push(s)}return i},Nv.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},Nv.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},Nv.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},Nv.prototype.processRecursively=function(e){if(this.isTracking&&this.onDeadClickCallback){var t=e.timeout_ms,r=this;this.processingTimeout=setTimeout(function(){if(r.processingActive){for(var t=r.getDeadClicks(e),n=0;n<t.length;n++)r.onDeadClickCallback(t[n].event);r.pendingClicks.length>0?r.processRecursively(e):r.processingActive=!1}},t)}else this.processingActive=!1},Nv.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;Rv.forEach(function(t){var r=function(){e.recordChangeEvent()};document.addEventListener(t,r,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:t,handler:r,options:{capture:!0,passive:!0}})}),Tv.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})}),Av.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r,{passive:!0}),e.eventListeners.push({target:window,event:t,handler:r,options:{passive:!0}})});var t=function(){e.recordChangeEvent()};if(document.addEventListener("selectionchange",t),e.eventListeners.push({target:document,event:"selectionchange",handler:t}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){e.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,Pv)}catch(e){Mm.critical("Error while setting up mutation observer",e)}if(window.customElements)try{this.shadowDOMObserver=new Mv(function(){e.recordChangeEvent()},Pv),this.shadowDOMObserver.start()}catch(e){Mm.critical("Error while setting up shadow DOM observer",e),this.shadowDOMObserver=null}}},Nv.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var e=0;e<this.eventListeners.length;e++){var t=this.eventListeners[e];try{t.target.removeEventListener(t.event,t.handler,t.options)}catch(e){Mm.critical("Error while removing event listener",e)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(e){Mm.critical("Error while disconnecting mutation observer",e)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(e){Mm.critical("Error while stopping shadow DOM observer",e)}this.shadowDOMObserver=null}}};var Dv="autocapture",Fv="full-url",Lv="allow_selectors",Uv="allow_url_regexes",Bv="block_attrs",jv="block_element_callback",qv="block_selectors",zv="block_url_regexes",Vv="capture_extra_attrs",Wv="capture_text_content",$v="scroll_capture_all",Hv="scroll_depth_percent_checkpoints",Gv="click",Yv="dead_click",Jv="input",Zv="pageview",Kv="rage_click",Xv="scroll",Qv="page_leave",ey="submit",ty={};ty[Lv]=[],ty[Uv]=[],ty[Bv]=[],ty[jv]=null,ty[qv]=[],ty[zv]=[],ty[Vv]=[],ty[Wv]=!1,ty[$v]=!1,ty[Hv]=[25,50,75,100],ty[Gv]=!0,ty[Yv]=!0,ty[Jv]=!0,ty[Zv]=Fv,ty[Kv]=!0,ty[Xv]=!0,ty[Qv]=!1,ty[ey]=!0;var ry={$mp_autocapture:!0},ny="$mp_click",iy="$mp_dead_click",oy="$mp_rage_click",sy=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};sy.prototype.init=function(){!function(){try{return!!eg.createElement("div").matches}catch(e){return!1}}()?Mm.critical("Autocapture unavailable: missing required DOM APIs"):(this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking())},sy.prototype.getFullConfig=function(){var e=this.mp.get_config(Dv);return e?lg.isObject(e)?lg.extend({},ty,e):ty:{}},sy.prototype.getConfig=function(e){return this.getFullConfig()[e]},sy.prototype.currentUrlBlocked=function(){var e=lg.info.currentUrl(),t=this.getConfig(Uv)||[];if(t.length)try{return!Tg(e,t)}catch(e){return Mm.critical("Error while checking block URL regexes: ",e),!0}var r=this.getConfig(zv)||[];if(!r||!r.length)return!1;try{return Tg(e,r)}catch(e){return Mm.critical("Error while checking block URL regexes: ",e),!0}},sy.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(Dv)?this.getConfig(Zv):this.mp.get_config("track_pageview")},sy.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=this.mp.is_recording_heatmap_data()&&(t===ny&&!this.getConfig(Gv)||t===oy&&!this._getClickTrackingConfig(Kv)||t===iy&&!this._getClickTrackingConfig(Yv)),n=Nm(e,{allowElementCallback:this.getConfig("allow_element_callback"),allowSelectors:this.getConfig(Lv),blockAttrs:this.getConfig(Bv),blockElementCallback:this.getConfig(jv),blockSelectors:this.getConfig(qv),captureExtraAttrs:this.getConfig(Vv),captureTextContent:this.getConfig(Wv),capturedForHeatMap:r});n&&(lg.extend(n,ry),this.mp.track(t,n))}},sy.prototype.initPageListeners=function(){if(C.removeEventListener(gm,this.listenerPopstate),C.removeEventListener(pm,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(Qv)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){C.dispatchEvent(new Event(dm))},this.listenerHashchange=function(){C.dispatchEvent(new Event(dm))},C.addEventListener(gm,this.listenerPopstate),C.addEventListener(pm,this.listenerHashchange);var e=C.history.pushState;"function"==typeof e&&(C.history.pushState=function(t,r,n){e.call(C.history,t,r,n),C.dispatchEvent(new Event(dm))});var t=C.history.replaceState;"function"==typeof t&&(C.history.replaceState=function(e,r,n){t.call(C.history,e,r,n),C.dispatchEvent(new Event(dm))})}},sy.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?!0===t?{}:"object"==typeof t?t:{}:null},sy.prototype._trackPageLeave=function(e,t,r){if(!this.hasTrackedScrollSession&&(this.getConfig(Qv)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var n=Math.max(eg.documentElement.clientHeight,C.innerHeight||0),i=Math.round(Math.max(this.maxScrollViewDepth-n,0)/(r-n)*100),o=Math.round(n/r*100);r<=n&&(i=100,o=100);var s=lg.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:i,$fold_line_percentage:o,$scroll_height:r,$event_type:e.type,$current_url:t||lg.info.currentUrl(),$viewportHeight:n,$viewportWidth:Math.max(eg.documentElement.clientWidth,C.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},ry);this.mp.track("$mp_page_leave",s,{transport:"sendBeacon"})}},sy.prototype._initScrollDepthTracking=function(){if(C.removeEventListener(vm,this.listenerScrollDepth),C.removeEventListener(mm,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){Mm.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(eg.documentElement.clientHeight,C.innerHeight||0);var e=Wm(function(){if(!this.currentUrlBlocked()){var e=Math.max(eg.documentElement.clientHeight,C.innerHeight||0)+C.scrollY;e>this.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=eg.body.scrollHeight}}.bind(this));this.listenerScrollDepth=e.listener,C.addEventListener(e.eventType,this.listenerScrollDepth)}},sy.prototype.initClickTracking=function(){C.removeEventListener(hm,this.listenerClick,!0),(this.getConfig(Gv)||this.mp.get_config("record_heatmap_data"))&&(Mm.log("Initializing click tracking"),this.listenerClick=function(e){(this.getConfig(Gv)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,ny)}.bind(this),C.addEventListener(hm,this.listenerClick,!0))},sy.prototype.initDeadClickTracking=function(){this._getClickTrackingConfig(Yv)||this.mp.get_config("record_heatmap_data")?(Mm.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new Nv(function(e){this.trackDomEvent(e,iy)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(e){var t=this._getClickTrackingConfig(Yv);if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=t||{};r.timeout_ms||(r.timeout_ms=500),this._deadClickTracker.trackClick(e,r)}}.bind(this),C.addEventListener(hm,this.listenerDeadClick,!0))):this.stopDeadClickTracking()},sy.prototype.initInputTracking=function(){C.removeEventListener(lm,this.listenerChange,!0),this.getConfig(Jv)&&(Mm.log("Initializing input tracking"),this.listenerChange=function(e){this.getConfig(Jv)&&this.trackDomEvent(e,"$mp_input_change")}.bind(this),C.addEventListener(lm,this.listenerChange,!0))},sy.prototype.initPageviewTracking=function(){if(C.removeEventListener(dm,this.listenerLocationchange),this.pageviewTrackingConfig()||this.mp.get_config("record_heatmap_data")){Mm.log("Initializing pageview tracking");var e="",t=!1;!this.pageviewTrackingConfig()&&!this.mp.is_recording_heatmap_data()||this.currentUrlBlocked()||(t=this.mp.track_pageview(ry)),t&&(e=lg.info.currentUrl()),this.listenerLocationchange=dg(function(){if(!this.currentUrlBlocked()){var t=lg.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();if(!i&&this.mp.is_recording_heatmap_data()&&(i=Fv),i===Fv?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(ry)&&(e=t),n&&(this.lastScrollCheckpoint=0,Mm.log("Path change: re-initializing scroll depth checkpoints"))}}.bind(this)),C.addEventListener(dm,this.listenerLocationchange)}},sy.prototype.initRageClickTracking=function(){C.removeEventListener(hm,this.listenerRageClick,!0),(this._getClickTrackingConfig(Kv)||this.mp.get_config("record_heatmap_data"))&&(Mm.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new Ov),this.listenerRageClick=function(e){var t=this._getClickTrackingConfig(Kv);(t||this.mp.is_recording_heatmap_data())&&(this.currentUrlBlocked()||this._rageClickTracker.isRageClick(e,t)&&this.trackDomEvent(e,oy))}.bind(this),C.addEventListener(hm,this.listenerRageClick,!0))},sy.prototype.initScrollTracking=function(){if(C.removeEventListener(mm,this.listenerScroll),C.removeEventListener(vm,this.listenerScroll),this.getConfig(Xv)){Mm.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=Wm(function(){if(this.getConfig(Xv)&&!this.currentUrlBlocked()){var e=this.getConfig($v),t=(this.getConfig(Hv)||[]).slice().sort(function(e,t){return e-t}),r=C.scrollY,n=lg.extend({$scroll_top:r},ry);try{var i=eg.body.scrollHeight,o=Math.round(r/(i-C.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){Mm.critical("Error while calculating scroll percentage",e)}e&&this.mp.track("$mp_scroll",n)}}.bind(this));this.listenerScroll=e.listener,C.addEventListener(e.eventType,this.listenerScroll)}},sy.prototype.initSubmitTracking=function(){C.removeEventListener(ym,this.listenerSubmit,!0),this.getConfig(ey)&&(Mm.log("Initializing submit tracking"),this.listenerSubmit=function(e){this.getConfig(ey)&&this.trackDomEvent(e,"$mp_submit")}.bind(this),C.addEventListener(ym,this.listenerSubmit,!0))},sy.prototype.initPageLeaveTracking=function(){if(eg.removeEventListener(_m,this.listenerPageLeaveVisibilitychange),C.removeEventListener(dm,this.listenerPageLeaveLocationchange),C.removeEventListener(fm,this.listenerPageLoad),this.getConfig(Qv)||this.mp.get_config("record_heatmap_data")){Mm.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=lg.info.currentUrl();this.listenerPageLoad=function(){this.previousScrollHeight=eg.body.scrollHeight}.bind(this),C.addEventListener(fm,this.listenerPageLoad),this.listenerPageLeaveLocationchange=dg(function(t){if(!this.currentUrlBlocked()){var r=lg.info.currentUrl();r!==e&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=r,this.maxScrollViewDepth=Math.max(eg.documentElement.clientHeight,C.innerHeight||0),this.previousScrollHeight=eg.body.scrollHeight,this.hasTrackedScrollSession=!1)}}.bind(this)),C.addEventListener(dm,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=function(t){eg.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}.bind(this),eg.addEventListener(_m,this.listenerPageLeaveVisibilitychange)}},sy.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(C.removeEventListener(hm,this.listenerDeadClick,!0),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},gg(sy);var ay=function(e,t){return C[A]&&"function"==typeof C[A].then||(C[A]=new Promise(function(r){e(t,r)}).then(function(){var e=C[A];if(e&&"function"==typeof e.then)return e;throw new Error("targeting failed to load")}).catch(function(e){throw delete C[A],e})),C[A]},cy=fg("flags"),uy="mixpanelFlags",ly={version:1,storeNames:[uy]},hy=864e5,py=Object.freeze({NETWORK_ONLY:"networkOnly",NETWORK_FIRST:"networkFirst",PERSISTENCE_UNTIL_NETWORK_SUCCESS:"persistenceUntilNetworkSuccess"}),fy=[py.NETWORK_ONLY,py.NETWORK_FIRST,py.PERSISTENCE_UNTIL_NETWORK_SUCCESS],dy=function(e,t,r){this.idb=new Dg("mixpanelFlagsDb",uy,ly),this.persistenceConfig=e,this.persistedVariantsKey="persisted_variants_for_"+t,this.isGloballyDisabled=r||function(){return!1}};dy.prototype.getPolicy=function(){return this.isGloballyDisabled()||!this._isConfigValid()?py.NETWORK_ONLY:this.persistenceConfig.variantLookupPolicy},dy.prototype.getTtlMs=function(){if(!this._isConfigValid())return hy;var e=this.persistenceConfig.persistenceTtlMs;return null==e?hy:e},dy.prototype._isConfigValid=function(){var e=this.persistenceConfig;return!!e&&(-1===fy.indexOf(e.variantLookupPolicy)?(cy.error("Invalid variantLookupPolicy:",e.variantLookupPolicy),!1):!(void 0!==e.persistenceTtlMs&&null!==e.persistenceTtlMs&&e.persistenceTtlMs<=0)||(cy.error("If provided, persistenceTtlMs must be a positive number. Provided value:",e.persistenceTtlMs),!1))},dy.prototype.loadFlagsFromStorage=function(e){var t=lg.bind(function(){return this.clear().then(function(){return null}).catch(function(){return null})},this);if(this.getPolicy()===py.NETWORK_ONLY)return t();var r=this.getTtlMs();return this.idb.init().then(lg.bind(function(){return this.idb.getItem(this.persistedVariantsKey)},this)).then(lg.bind(function(n){if(!n)return cy.log("No persisted variants found in IndexedDB"),null;if(r&&Date.now()-n.persistedAt>=r)return cy.log("Persisted variants are expiring"),null;if(!e||n.distinctId!==e.distinct_id)return cy.log("Persisted variants found, but for a different distinct_id so clearing."),t();var i=new Map;return lg.each(n.flagVariants,function(e,t){i.set(t,{key:e.variant_key,value:e.variant_value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester,variant_source:"persistence",persisted_at_in_ms:n.persistedAt,ttl_in_ms:r})}),cy.log("Loaded",i.size,"variants from IndexedDB for distinct_id",n.distinctId),{flags:i,pendingFirstTimeEvents:n.pendingFirstTimeEvents||{},persistedAtMs:n.persistedAt,ttlMs:r}},this)).catch(lg.bind(function(e){return cy.error("Failed to load persisted variants from IndexedDB, so clearing",e),t()},this))},dy.prototype.save=function(e,t,r){if(this.getPolicy()===py.NETWORK_ONLY)return Promise.resolve();var n={};t.forEach(function(e,t){n[t]={variant_key:e.key,variant_value:e.value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester}});var i={persistedAt:Date.now(),distinctId:e&&e.distinct_id,context:e,flagVariants:n,pendingFirstTimeEvents:r||{}};return this.idb.init().then(lg.bind(function(){return this.idb.setItem(this.persistedVariantsKey,i)},this)).then(function(){cy.log("Saved",t.size,"variants to IndexedDB for distinct_id",i.distinctId)}).catch(function(e){cy.error("Failed to persist variants to IndexedDB:",e)})},dy.prototype.clear=function(){return this.isGloballyDisabled()?Promise.resolve():this.idb.init().then(lg.bind(function(){return this.idb.removeItem(this.persistedVariantsKey)},this)).then(function(){cy.log("Cleared persisted variants from IndexedDB")}).catch(function(e){cy.error("Failed to clear persisted variants from IndexedDB:",e)})};var gy=fg("flags"),my="flags",vy="context",yy={};yy[vy]={};var _y=function(e){return lg.isObject(e)?lg.extend({},e,{variant_source:"fallback"}):{value:e,variant_source:"fallback"}},by=function(e){this.fetch=C.fetch,this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc,this.loadExtraBundle=e.loadExtraBundle||function(){},this.targetingSrc=e.targetingSrc||""};function wy(e){return null!=e}by.prototype.init=function(){if(this.minApisSupported())return this.flags=null,this.trackedFeatures=new Set,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={},this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this.persistence=new dy(this.getConfig("persistence"),this.getMpConfig("token"),lg.bind(function(){return this.getMpConfig("disable_persistence")},this)),this.persistenceLoadedPromise=this.persistence.loadFlagsFromStorage(this._buildContext()).then(lg.bind(function(e){e&&(this.flags=e.flags,this.pendingFirstTimeEvents=e.pendingFirstTimeEvents,this._loadedPersistedAtMs=e.persistedAtMs,this._loadedTtlMs=e.ttlMs)},this)),this.persistenceLoadedPromise.then(lg.bind(function(){return this.fetchFlags()},this)).catch(function(){gy.error("Error initializing feature flags")});gy.critical("Feature Flags unavailable: missing minimum required APIs")},by.prototype._buildContext=function(){return lg.extend({distinct_id:this.getMpProperty("distinct_id"),device_id:this.getMpProperty("$device_id")},this.getConfig(vy))},by.prototype.reset=function(){return this.persistence?(this.flags=null,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={},this.trackedFeatures=new Set,this.fetchPromise=null,this._fetchInProgressStartTime=null,this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this.persistence.clear().then(lg.bind(function(){return this.fetchFlags()},this)).catch(function(){gy.error("Error during flags reset")})):Promise.resolve()},by.prototype.getFullConfig=function(){var e=this.getMpConfig(my);return e?lg.isObject(e)?lg.extend({},yy,e):yy:{}},by.prototype.getConfig=function(e){return this.getFullConfig()[e]},by.prototype.isSystemEnabled=function(){return!!this.getMpConfig(my)},by.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return gy.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var r=this.getMpConfig(my);lg.isObject(r)||(r={});var n=t&&t.replace?{}:this.getConfig(vy);r[vy]=lg.extend({},n,e);var i={};return i[my]=r,this.setMpConfig(i),this.fetchFlags().catch(function(){gy.error("Error fetching flags during updateContext")})},by.prototype.areFlagsReady=function(){return this.isSystemEnabled()||gy.error("Feature Flags not enabled"),!!this.flags},by.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this._buildContext(),t=e.distinct_id,r=Eg();gy.log("Fetching flags for distinct ID: "+t);var n=new URLSearchParams;n.set("context",JSON.stringify(e)),n.set("token",this.getMpConfig("token")),n.set("mp_lib","web"),n.set("$lib_version",R.LIB_VERSION);var i=this.getFullApiRoute()+"?"+n.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(C,i,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:r}}).then(function(e){return this.markFetchComplete(),e.json()}.bind(this)).then(function(t){var n=t.flags;if(!n)throw new Error("No flags in API response");var i=new Map,o={};lg.each(n,function(e,t){var r=!1,n=t+":";if(lg.each(this.activatedFirstTimeEvents,function(e,t){t.startsWith(n)&&(r=!0)}),r){var o=this.flags&&this.flags.get(t);o&&i.set(t,o)}else i.set(t,{key:e.variant_key,value:e.variant_value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester,variant_source:"network"})},this);var s=t.pending_first_time_events;s&&s.length>0&&lg.each(s,function(e){var t=e.flag_key,r=function(e,t){return e+":"+t}(t,e.first_time_event_hash);this.activatedFirstTimeEvents[r]||(o[r]={flag_key:t,flag_id:e.flag_id,project_id:e.project_id,first_time_event_hash:e.first_time_event_hash,event_name:e.event_name,property_filters:e.property_filters,pending_variant:e.pending_variant})},this),this.activatedFirstTimeEvents&&lg.each(this.activatedFirstTimeEvents,function(e,t){var r=function(e){return e.split(":")[0]}(t);e&&!i.has(r)&&this.flags&&this.flags.has(r)&&i.set(r,this.flags.get(r))},this),this.flags=i,this.trackedFeatures=new Set,this.pendingFirstTimeEvents=o,this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this._traceparent=r,this._loadTargetingIfNeeded(),this.persistence.save(e,this.flags,this.pendingFirstTimeEvents)}.bind(this)).catch(function(e){throw this._fetchInProgressStartTime&&this.markFetchComplete(),gy.error(e),e}.bind(this)),this.fetchPromise},by.prototype.loadFlags=function(){return this.isSystemEnabled()?this.trackedFeatures?this._fetchInProgressStartTime?this.fetchPromise:this.fetchFlags():(gy.error("loadFlags called before init"),Promise.resolve()):Promise.resolve()},by.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):gy.error("Fetch in progress started time not set, cannot mark fetch complete")},by.prototype._loadTargetingIfNeeded=function(){var e=!1;lg.each(this.pendingFirstTimeEvents,function(t){t.property_filters&&!lg.isEmptyObject(t.property_filters)&&(e=!0)}),e&&this.getTargeting().then(function(){gy.log("targeting loaded for property filter evaluation")})},by.prototype.getTargeting=function(){return ay(this.loadExtraBundle.bind(this),this.targetingSrc).catch(function(e){gy.error("Failed to load targeting: "+e)}.bind(this))},by.prototype.checkFirstTimeEvents=function(e,t){this.pendingFirstTimeEvents&&!lg.isEmptyObject(this.pendingFirstTimeEvents)&&(C[A]&&lg.isFunction(C[A].then)?C[A].then(function(r){this._processFirstTimeEventCheck(e,t,r)}.bind(this)).catch(function(){this._processFirstTimeEventCheck(e,t,null)}.bind(this)):this._processFirstTimeEventCheck(e,t,null))},by.prototype._processFirstTimeEventCheck=function(e,t,r){lg.each(this.pendingFirstTimeEvents,function(n,i){if(!this.activatedFirstTimeEvents[i]){var o,s=n.flag_key;if(r||!n.property_filters||lg.isEmptyObject(n.property_filters)){if(r){var a={event_name:n.event_name,property_filters:n.property_filters};o=r.eventMatchesCriteria(e,t,a)}else o={matches:e===n.event_name,error:null};if(o.error)gy.error('Error checking first-time event for flag "'+s+'": '+o.error);else if(o.matches){gy.log('First-time event matched for flag "'+s+'": '+e);var c={key:n.pending_variant.variant_key,value:n.pending_variant.variant_value,experiment_id:n.pending_variant.experiment_id,is_experiment_active:n.pending_variant.is_experiment_active};this.flags.set(s,c),this.trackedFeatures.delete(s),this.activatedFirstTimeEvents[i]=!0,this.recordFirstTimeEvent(n.flag_id,n.project_id,n.first_time_event_hash)}}else gy.warn('Skipping event check for "'+s+'" - property filters require targeting library')}},this)},by.prototype.getFirstTimeEventApiRoute=function(e){return this.getFullApiRoute().replace(/\/$/,"")+"/"+e+"/first-time-events"},by.prototype.recordFirstTimeEvent=function(e,t,r){var n=this.getMpProperty("distinct_id"),i=Eg(),o=new URLSearchParams;o.set("mp_lib","web"),o.set("$lib_version",R.LIB_VERSION);var s=this.getFirstTimeEventApiRoute(e)+"?"+o.toString(),a={distinct_id:n,project_id:t,first_time_event_hash:r};gy.log("Recording first-time event for flag: "+e),this.fetch.call(C,s,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:i},body:JSON.stringify(a)}).catch(function(t){gy.error("Failed to record first-time event for flag "+e+": "+t)})},by.prototype.getVariant=function(e,t){if(!this.persistenceLoadedPromise)return new Promise(function(e){gy.critical("Feature Flags not initialized"),e(_y(t))});var r=this.persistence.getPolicy();return this.persistenceLoadedPromise.then(lg.bind(function(){if(r===py.PERSISTENCE_UNTIL_NETWORK_SUCCESS)return this.areFlagsReady()&&!this._loadedPersistenceIsStale()?this.getVariantSync(e,t):this.fetchPromise?this.fetchPromise.then(lg.bind(function(){return this.getVariantSync(e,t)},this)).catch(function(e){return gy.error(e),_y(t)}):_y(t);var n=lg.bind(function(){return this.getVariantSync(e,t)},this);return this.fetchPromise?this.fetchPromise.then(n).catch(n):_y(t)},this))},by.prototype._loadedPersistenceIsStale=function(){return!(!this._loadedPersistedAtMs||!this._loadedTtlMs)&&Date.now()-this._loadedPersistedAtMs>=this._loadedTtlMs},by.prototype.getVariantSync=function(e,t){if(this._loadedPersistenceIsStale())return gy.log('Loaded persisted variants are past TTL so returning fallback for "'+e+'"'),_y(t);if(!this.areFlagsReady())return gy.log("Flags not loaded yet"),_y(t);var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(gy.log('No flag found: "'+e+'"'),_y(t))},by.prototype.getAllVariants=function(){if(!this.persistenceLoadedPromise)return gy.critical("Feature Flags not initialized"),Promise.resolve(new Map);var e=this.persistence.getPolicy();return this.persistenceLoadedPromise.then(lg.bind(function(){if(e===py.PERSISTENCE_UNTIL_NETWORK_SUCCESS)return this.areFlagsReady()&&!this._loadedPersistenceIsStale()?this.getAllVariantsSync():this.fetchPromise?this.fetchPromise.then(lg.bind(function(){return this.getAllVariantsSync()},this)).catch(function(e){return gy.error(e),new Map}):new Map;var t=lg.bind(this.getAllVariantsSync,this);return this.fetchPromise?this.fetchPromise.then(t).catch(t):new Map},this))},by.prototype.getAllVariantsSync=function(){return this._loadedPersistenceIsStale()?(gy.log("Loaded persisted variants are past TTL so returning empty Map"),new Map):this.flags||new Map},by.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(e){return e.value}).catch(function(e){return gy.error(e),t})},by.prototype.getFeatureData=function(e,t){return gy.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(e,t)},by.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t}).value},by.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then(function(){return this.isEnabledSync(e,t)}.bind(this)).catch(function(e){return gy.error(e),t})},by.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(gy.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},by.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var r={"Experiment name":e,"Variant name":t.key,$experiment_type:"feature_flag","Variant fetch start time":wy(this._fetchStartTime)?new Date(this._fetchStartTime).toISOString():null,"Variant fetch complete time":wy(this._fetchCompleteTime)?new Date(this._fetchCompleteTime).toISOString():null,"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};wy(t.experiment_id)&&(r.$experiment_id=t.experiment_id),wy(t.is_experiment_active)&&(r.$is_experiment_active=t.is_experiment_active),wy(t.is_qa_tester)&&(r.$is_qa_tester=t.is_qa_tester),wy(t.variant_source)&&(r.$variant_source=t.variant_source),wy(t.persisted_at_in_ms)&&(r.$persisted_at_in_ms=t.persisted_at_in_ms),wy(t.ttl_in_ms)&&(r.$ttl_in_ms=t.ttl_in_ms),this.track("$experiment_started",r)}},by.prototype.whenReady=function(){return this.fetchPromise?this.fetchPromise:Promise.resolve()},by.prototype.minApisSupported=function(){return!!this.fetch&&"undefined"!=typeof Promise&&"undefined"!=typeof Map&&"undefined"!=typeof Set},gg(by),by.prototype.are_flags_ready=by.prototype.areFlagsReady,by.prototype.get_variant=by.prototype.getVariant,by.prototype.get_variant_sync=by.prototype.getVariantSync,by.prototype.get_all_variants=by.prototype.getAllVariants,by.prototype.get_all_variants_sync=by.prototype.getAllVariantsSync,by.prototype.get_variant_value=by.prototype.getVariantValue,by.prototype.get_variant_value_sync=by.prototype.getVariantValueSync,by.prototype.is_enabled=by.prototype.isEnabled,by.prototype.is_enabled_sync=by.prototype.isEnabledSync,by.prototype.load_flags=by.prototype.loadFlags,by.prototype.update_context=by.prototype.updateContext,by.prototype.when_ready=by.prototype.whenReady,by.prototype.get_feature_data=by.prototype.getFeatureData,by.prototype.getTargeting=by.prototype.getTargeting;var ky=fg("recorder"),Sy="mp_iframe_handshake_request",Cy="mp_iframe_handshake_response",xy=function(e){this.mixpanelInstance=e.mixpanelInstance,this.getMpConfig=e.getConfigFunc,this.getTabId=e.getTabIdFunc,this.reportError=e.reportErrorFunc,this.getDistinctId=e.getDistinctIdFunc,this.loadExtraBundle=e.loadExtraBundle,this.recorderSrc=e.recorderSrc,this.targetingSrc=e.targetingSrc,this.libBasePath=e.libBasePath,this._recorder=null,this._parentReplayId=null,this._parentFrameRetryInterval=null};xy.prototype.shouldLoadRecorder=function(){if(this.getMpConfig("disable_persistence"))return hg.log("Load recorder check skipped due to disable_persistence config"),Td.resolve(!1);var e=new Dg(Fg,Ug,Bg),t=this.getTabId();return e.init().then(function(){return e.getAll()}).then(function(e){for(var r=0;r<e.length;r++)if(cm(e[r])||e[r].tabId===t)return!0;return!1}).catch(lg.bind(function(e){return this.reportError("Error checking recording registry",e),!1},this))},xy.prototype.checkAndStartSessionRecording=function(e,t){if(!C.MutationObserver)return hg.critical("Browser does not support MutationObserver; skipping session recording"),Td.resolve();var r=lg.bind(function(e){return new Td(lg.bind(function(t){var r=dg(lg.bind(function(){this._recorder=this._recorder||new C[T](this.mixpanelInstance),this._recorder.resumeRecording(e),t()},this));if(lg.isUndefined(C[T])){var n=this.recorderSrc||this.libBasePath+"__MP_RECORDER_FILENAME__";this.loadExtraBundle(n,r)}else r()},this))},this),n=um(this.getMpConfig("record_allowed_iframe_origins"),ky);if(n.length>0&&(this._setupParentFrameListener(n),C.parent!==C))return this._setupChildFrameListener(n,r),this._sendParentFrameRequestWithRetry(n),Td.resolve();var i=lg.isUndefined(t)?this.getMpConfig("record_sessions_percent"):t,o=i>0&&100*Math.random()<=i;return e||o?r(!0):this.shouldLoadRecorder().then(lg.bind(function(e){return e?r(!1):Td.resolve()},this))},xy.prototype.isRecording=function(){if(!this._recorder||!lg.isFunction(this._recorder.isRecording))return!1;try{return this._recorder.isRecording()}catch(e){return this.reportError("Error checking if recording is active",e),!1}},xy.prototype.startRecordingOnEvent=function(e,t){var r=this.isRecording(),n=this.getMpConfig("recording_event_triggers");if(!r&&n){var i=n[e];if(i&&"number"==typeof i.percentage){var o=i.percentage,s=i.property_filters;if(s&&!lg.isEmptyObject(s)){var a=this.targetingSrc||this.libBasePath+P;ay(this.loadExtraBundle,a).then(function(r){try{r.eventMatchesCriteria(e,t,{event_name:e,property_filters:s}).matches&&this.checkAndStartSessionRecording(!1,o)}catch(e){hg.critical("Could not parse recording event trigger properties logic:",e)}}.bind(this)).catch(function(e){hg.critical("Failed to load targeting library:",e)})}else this.checkAndStartSessionRecording(!1,o)}}},xy.prototype.stopSessionRecording=function(){return this._recorder?this._recorder.stopRecording():Td.resolve()},xy.prototype.pauseSessionRecording=function(){return this._recorder?this._recorder.pauseRecording():Td.resolve()},xy.prototype.resumeSessionRecording=function(){return this._recorder?this._recorder.resumeRecording():Td.resolve()},xy.prototype.isRecordingHeatmapData=function(){return this.getSessionReplayId()&&this.getMpConfig("record_heatmap_data")},xy.prototype.getSessionRecordingProperties=function(){var e={},t=this.getSessionReplayId();return t&&(e.$mp_replay_id=t),e},xy.prototype.getSessionReplayUrl=function(){var e=null,t=this.getSessionReplayId();t&&(e="https://mixpanel.com/projects/replay-redirect?"+lg.HTTPBuildQuery({replay_id:t,distinct_id:this.getDistinctId(),token:this.getMpConfig("token")}));return e},xy.prototype.getSessionReplayId=function(){if(this._parentReplayId)return this._parentReplayId;var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},xy.prototype.getRecorder=function(){return this._recorder},xy.prototype._setupChildFrameListener=function(e,t){if(!this._childFrameMessageHandler){var r=this;this._childFrameMessageHandler=function(n){if(-1!==e.indexOf(n.origin)){var i=n.data;i&&i.type===Cy&&i.token===r.getMpConfig("token")&&i.replayId&&(r._parentReplayId=i.replayId,i.distinctId&&r.mixpanelInstance.identify(i.distinctId),r._parentFrameRetryActive=!1,C.removeEventListener("message",r._childFrameMessageHandler),r._childFrameMessageHandler=null,t(!0))}},C.addEventListener("message",this._childFrameMessageHandler)}},xy.prototype._sendParentFrameRequest=function(e){var t={};t.type=Sy,t.token=this.getMpConfig("token");for(var r=0;r<e.length;r++)try{C.parent.postMessage(t,e[r])}catch(e){}},xy.prototype._sendParentFrameRequestWithRetry=function(e){var t=this,r=0,n=50;this._parentFrameRetryActive=!0,this._sendParentFrameRequest(e),function i(){setTimeout(function(){!t._parentFrameRetryActive||t._parentReplayId||++r>=10||(t._sendParentFrameRequest(e),n*=2,i())},n)}()},xy.prototype._setupParentFrameListener=function(e){if(!this._parentFrameMessageHandler){var t=this;this._parentFrameMessageHandler=function(r){if(-1!==e.indexOf(r.origin)){var n=r.data;if(n&&n.type===Sy&&n.token===t.getMpConfig("token")){var i=t.getSessionReplayId();if(i){var o={};o.type=Cy,o.token=t.getMpConfig("token"),o.replayId=i,o.distinctId=t.getDistinctId(),r.source.postMessage(o,r.origin)}}}},C.addEventListener("message",this._parentFrameMessageHandler)}},gg(xy);var Iy=function(){};Iy.prototype.create_properties=function(){},Iy.prototype.event_handler=function(){},Iy.prototype.after_track_handler=function(){},Iy.prototype.init=function(e){return this.mp=e,this},Iy.prototype.track=function(e,t,r,n){var i=this,o=lg.dom_query(e);if(0!==o.length)return lg.each(o,function(e){lg.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;hg.error("The DOM query ("+e+") returned 0 elements")},Iy.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))}},Iy.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):lg.extend({},e)};var Ey=function(){this.override_event="click"};lg.inherit(Ey,Iy),Ey.prototype.create_properties=function(e,t){var r=Ey.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},Ey.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()},Ey.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var Oy=function(){this.override_event="submit"};lg.inherit(Oy,Iy),Oy.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},Oy.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var My="$set",Ry="$set_once",Ay="$unset",Ty="$add",Py="$append",Ny="$union",Dy="$remove",Fy={set_action:function(e,t){var r={},n={};return lg.isObject(e)?lg.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[My]=n,r},unset_action:function(e){var t={},r=[];return lg.isArray(e)||(e=[e]),lg.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[Ay]=r,t},set_once_action:function(e,t){var r={},n={};return lg.isObject(e)?lg.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[Ry]=n,r},union_action:function(e,t){var r={},n={};return lg.isObject(e)?lg.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=lg.isArray(e)?e:[e])},this):n[e]=lg.isArray(t)?t:[t],r[Ny]=n,r},append_action:function(e,t){var r={},n={};return lg.isObject(e)?lg.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[Py]=n,r},remove_action:function(e,t){var r={},n={};return lg.isObject(e)?lg.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[Dy]=n,r},delete_action:function(){var e={$delete:""};return e}},Ly=function(){};lg.extend(Ly.prototype,Fy),Ly.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},Ly.prototype.set=Hg(function(e,t,r){var n=this.set_action(e,t);return lg.isObject(e)&&(r=t),this._send_request(n,r)}),Ly.prototype.set_once=Hg(function(e,t,r){var n=this.set_once_action(e,t);return lg.isObject(e)&&(r=t),this._send_request(n,r)}),Ly.prototype.unset=Hg(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),Ly.prototype.union=Hg(function(e,t,r){lg.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),Ly.prototype.delete=Hg(function(e){var t=this.delete_action();return this._send_request(t,e)}),Ly.prototype.remove=Hg(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)}),Ly.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=lg.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)},Ly.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},Ly.prototype._get_config=function(e){return this._mixpanel.get_config(e)},Ly.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},Ly.prototype.remove=Ly.prototype.remove,Ly.prototype.set=Ly.prototype.set,Ly.prototype.set_once=Ly.prototype.set_once,Ly.prototype.union=Ly.prototype.union,Ly.prototype.unset=Ly.prototype.unset,Ly.prototype.toString=Ly.prototype.toString;var Uy=function(){};lg.extend(Uy.prototype,Fy),Uy.prototype._init=function(e){this._mixpanel=e},Uy.prototype.set=$g(function(e,t,r){var n=this.set_action(e,t);return lg.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[My]=lg.extend({},lg.info.people_properties(),n[My]),this._send_request(n,r)}),Uy.prototype.set_once=$g(function(e,t,r){var n=this.set_once_action(e,t);return lg.isObject(e)&&(r=t),this._send_request(n,r)}),Uy.prototype.unset=$g(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),Uy.prototype.increment=$g(function(e,t,r){var n={},i={};return lg.isObject(e)?(lg.each(e,function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void hg.error("Invalid increment value passed to mixpanel.people.increment - must be a number");i[t]=e}},this),r=t):(lg.isUndefined(t)&&(t=1),i[e]=t),n[Ty]=i,this._send_request(n,r)}),Uy.prototype.append=$g(function(e,t,r){lg.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)}),Uy.prototype.remove=$g(function(e,t,r){lg.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)}),Uy.prototype.union=$g(function(e,t,r){lg.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),Uy.prototype.track_charge=$g(function(){hg.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),Uy.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},Uy.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}hg.error("mixpanel.people.delete_user() requires you to call identify() first")},Uy.prototype.toString=function(){return this._mixpanel.toString()+".people"},Uy.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=lg.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),lg.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),lg.truncate(o,255))},Uy.prototype._get_config=function(e){return this._mixpanel.get_config(e)},Uy.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},Uy.prototype._enqueue=function(e){My in e?this._mixpanel.persistence._add_to_people_queue(My,e):Ry in e?this._mixpanel.persistence._add_to_people_queue(Ry,e):Ay in e?this._mixpanel.persistence._add_to_people_queue(Ay,e):Ty in e?this._mixpanel.persistence._add_to_people_queue(Ty,e):Py in e?this._mixpanel.persistence._add_to_people_queue(Py,e):Dy in e?this._mixpanel.persistence._add_to_people_queue(Dy,e):Ny in e?this._mixpanel.persistence._add_to_people_queue(Ny,e):hg.error("Invalid call to _enqueue():",e)},Uy.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=lg.extend({},this._mixpanel.persistence.load_queue(e)),s=o;lg.isUndefined(o)||!lg.isObject(o)||lg.isEmptyObject(o)||(i._mixpanel.persistence._pop_from_people_queue(e,o),i._mixpanel.persistence.save(),n&&(s=n(o)),t.call(i,s,function(t,n){0===t&&i._mixpanel.persistence._add_to_people_queue(e,o),lg.isUndefined(r)||r(t,n)}))},Uy.prototype._flush=function(e,t,r,n,i,o,s){var a=this;this._flush_one_queue(My,this.set,e),this._flush_one_queue(Ry,this.set_once,n),this._flush_one_queue(Ay,this.unset,o,function(e){return lg.keys(e)}),this._flush_one_queue(Ty,this.increment,t),this._flush_one_queue(Ny,this.union,i);var c=this._mixpanel.persistence.load_queue(Py);if(!lg.isUndefined(c)&&lg.isArray(c)&&c.length)for(var u,l=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(Py,u),lg.isUndefined(r)||r(e,t)},h=c.length-1;h>=0;h--)c=this._mixpanel.persistence.load_queue(Py),u=c.pop(),a._mixpanel.persistence.save(),lg.isEmptyObject(u)||a.append(u,l);var p=this._mixpanel.persistence.load_queue(Dy);if(!lg.isUndefined(p)&&lg.isArray(p)&&p.length)for(var f,d=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(Dy,f),lg.isUndefined(s)||s(e,t)},g=p.length-1;g>=0;g--)p=this._mixpanel.persistence.load_queue(Dy),f=p.pop(),a._mixpanel.persistence.save(),lg.isEmptyObject(f)||a.remove(f,d)},Uy.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},Uy.prototype.set=Uy.prototype.set,Uy.prototype.set_once=Uy.prototype.set_once,Uy.prototype.unset=Uy.prototype.unset,Uy.prototype.increment=Uy.prototype.increment,Uy.prototype.append=Uy.prototype.append,Uy.prototype.remove=Uy.prototype.remove,Uy.prototype.union=Uy.prototype.union,Uy.prototype.track_charge=Uy.prototype.track_charge,Uy.prototype.clear_charges=Uy.prototype.clear_charges,Uy.prototype.delete_user=Uy.prototype.delete_user,Uy.prototype.toString=Uy.prototype.toString;var By,jy="__mps",qy="__mpso",zy="__mpus",Vy="__mpa",Wy="__mpap",$y="__mpr",Hy="__mpu",Gy="$people_distinct_id",Yy="__alias",Jy="__timers",Zy=[jy,qy,zy,Vy,Wy,$y,Hy,Gy,Yy,Jy],Ky=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&&(hg.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&lg.localStorage.is_supported()?this.storage=lg.localStorage:this.storage=lg.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};Ky.prototype.properties=function(){var e={};return this.load(),lg.each(this.props,function(t,r){lg.include(Zy,r)||(e[r]=t)}),e},Ky.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=lg.extend({},e))}},Ky.prototype.upgrade=function(){var e,t;this.storage===lg.localStorage?(e=lg.cookie.parse(this.name),lg.cookie.remove(this.name),lg.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===lg.cookie&&(t=lg.localStorage.parse(this.name),lg.localStorage.remove(this.name),t&&this.register_once(t))},Ky.prototype.save=function(){this.disabled||this.storage.set(this.name,Pg(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},Ky.prototype.load_prop=function(e){return this.load(),this.props[e]},Ky.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},Ky.prototype.clear=function(){this.remove(),this.props={}},Ky.prototype.register_once=function(e,t,r){return!!lg.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),lg.each(e,function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)},this),this.save(),!0)},Ky.prototype.register=function(e,t){return!!lg.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),lg.extend(this.props,e),this.save(),!0)},Ky.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},Ky.prototype.update_search_keyword=function(e){this.register(lg.info.searchInfo(e))},Ky.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:lg.info.referringDomain(e)||"$direct"},"")},Ky.prototype.get_referrer_info=function(){return lg.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},Ky.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)},Ky.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},Ky.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},Ky.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},Ky.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},Ky.prototype.get_cross_subdomain=function(){return this.cross_subdomain},Ky.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},Ky.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(My),o=this._get_or_create_queue(Ry),s=this._get_or_create_queue(Ay),a=this._get_or_create_queue(Ty),c=this._get_or_create_queue(Ny),u=this._get_or_create_queue(Dy,[]),l=this._get_or_create_queue(Py,[]);r===jy?(lg.extend(i,n),this._pop_from_people_queue(Ty,n),this._pop_from_people_queue(Ny,n),this._pop_from_people_queue(Ay,n)):r===qy?(lg.each(n,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(Ay,n)):r===zy?lg.each(n,function(e){lg.each([i,o,a,c],function(t){e in t&&delete t[e]}),lg.each(l,function(t){e in t&&delete t[e]}),s[e]=!0}):r===Vy?(lg.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(Ay,n)):r===Hy?(lg.each(n,function(e,t){lg.isArray(e)&&(t in c||(c[t]=[]),lg.each(e,function(e){lg.include(c[t],e)||c[t].push(e)}))}),this._pop_from_people_queue(Ay,n)):r===$y?(u.push(n),this._pop_from_people_queue(Py,n)):r===Wy&&(l.push(n),this._pop_from_people_queue(Ay,n)),hg.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),hg.log(t),this.save()},Ky.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];lg.isUndefined(r)||lg.each(t,function(t,n){e===Py||e===Dy?lg.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this)},Ky.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},Ky.prototype._get_queue_key=function(e){return e===My?jy:e===Ry?qy:e===Ay?zy:e===Ty?Vy:e===Py?Wy:e===Dy?$y:e===Ny?Hy:void hg.error("Invalid queue:",e)},Ky.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=lg.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},Ky.prototype.set_event_timer=function(e,t){var r=this.load_prop(Jy)||{};r[e]=t,this.props[Jy]=r,this.save()},Ky.prototype.remove_event_timer=function(e){var t=(this.load_prop(Jy)||{})[e];return lg.isUndefined(t)||(delete this.props[Jy][e],this.save()),t};var Xy,Qy=function(e,t){throw new Error(e+" not available in this build.")},e_="mixpanel",t_="base64",r_="$device:",n_=C.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,i_=!n_&&-1===ng.indexOf("MSIE")&&-1===ng.indexOf("Mozilla"),o_=null;Qd.sendBeacon&&(o_=function(){return Qd.sendBeacon.apply(Qd,arguments)});var s_={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},a_={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:s_,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:t_,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Ag,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Ag,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_allowed_iframe_origins:[],record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,recording_event_triggers:{},record_idle_timeout_ms:18e5,record_mask_inputs:!0,record_max_ms:Wd,record_min_ms:0,record_network:!1,record_network_options:{},record_sessions_percent:0,recorder_src:null,targeting_src:null,lib_base_path:"https://cdn.mxpnl.com/libs/",remote_settings_mode:"disabled"},c_=!1,u_=function(){},l_=function(e,t,r){var n,i=r===e_?Xy:Xy[r];if(i&&0===By)n=i;else{if(i&&!lg.isArray(i))return void hg.error("You have already initialized "+r);n=new u_}if(n._cached_groups={},n._init(e,t,r),n.people=new Uy,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var o=lg.info.campaignParams(null),s={},a=!1;lg.each(o,function(e,t){s["initial_"+t]=e,e&&(a=!0)}),a&&n.people.set_once(s)}R.DEBUG=R.DEBUG||n.get_config("debug");var c=0===By?"module":"snippet";return C.dispatchEvent(new C.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:n,source:c,token:e,name:r,info:lg.info}})),!lg.isUndefined(i)&&lg.isArray(i)&&(n._execute_array.call(n.people,i.people),n._execute_array(i)),n};u_.prototype.init=function(e,t,r){if(lg.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)");else{if(r!==e_){var n=l_(e,t,r);return Xy[r]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},u_.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var n={};"api_payload_format"in t||(t.api_host||a_.api_host).match(/\.mixpanel\.com/)&&(n.api_payload_format="json");if(this.hooks={},this.set_config(lg.extend({},a_,n,t,{name:r,token:e,callback_fn:(r===e_?r:e_+"."+r)+"._jsc"})),this.recorderManager=new xy({mixpanelInstance:this,getConfigFunc:lg.bind(this.get_config,this),setConfigFunc:lg.bind(this.set_config,this),getTabIdFunc:lg.bind(this.get_tab_id,this),reportErrorFunc:lg.bind(this.report_error,this),getDistinctIdFunc:lg.bind(this.get_distinct_id,this),recorderSrc:this.get_config("recorder_src"),targetingSrc:this.get_config("targeting_src"),libBasePath:this.get_config("lib_base_path"),loadExtraBundle:Qy}),this._jsc=Ag,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this._remote_settings_strict_disabled=!1,this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(lg.localStorage.is_supported(!0)&&n_){if(this.init_batchers(),o_&&C.addEventListener){var i=lg.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);C.addEventListener("pagehide",function(e){e.persisted&&i()}),C.addEventListener("visibilitychange",function(){"hidden"===eg.visibilityState&&i()})}}else this._batch_requests=!1,hg.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),lg.each(this.get_batcher_configs(),function(e){hg.log("Clearing batch queue "+e.queue_key),lg.localStorage.remove(e.queue_key)});this.persistence=this.cookie=new Ky(this.config),this.unpersisted_superprops={},this._gdpr_init();var o=lg.UUID();this.get_distinct_id()||this.register_once({distinct_id:r_+o,$device_id:o},""),this.flags=new by({getFullApiRoute:lg.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:lg.bind(this.get_config,this),setConfigFunc:lg.bind(this.set_config,this),getPropertyFunc:lg.bind(this.get_property,this),trackingFunc:lg.bind(this.track,this),loadExtraBundle:Qy,targetingSrc:this.get_config("targeting_src")||this.get_config("lib_base_path")+P}),this.flags.init(),this.flags=this.flags,this._init_tab_id();var s=this.get_config("remote_settings_mode");this.__session_recording_init_promise="strict"===s||"fallback"===s?this._fetch_remote_settings(s).then(lg.bind(function(){return this._check_and_start_session_recording()},this)):this._check_and_start_session_recording(),this.autocapture=new sy(this),this.autocapture.init()},u_.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))hg.log("Tab ID initialization skipped due to disable_persistence config");else if(lg.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;!lg.sessionStorage.get(r)&&lg.sessionStorage.get(t)||lg.sessionStorage.set(t,"$tab-"+lg.UUID()),lg.sessionStorage.set(r,"1"),this.tab_id=lg.sessionStorage.get(t),C.addEventListener("beforeunload",function(){lg.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.")},u_.prototype.get_tab_id=function(){return this.tab_id||null},u_.prototype._check_and_start_session_recording=Wg(function(e){return this.recorderManager.checkAndStartSessionRecording(e)}),u_.prototype._start_recording_on_event=dg(function(e,t){this.__session_recording_init_promise&&this.__session_recording_init_promise.then(lg.bind(function(){if(!this._remote_settings_strict_disabled)return this.recorderManager.startRecordingOnEvent(e,t)},this))}),u_.prototype.start_session_recording=function(){return this._check_and_start_session_recording(!0)},u_.prototype.stop_session_recording=function(){return this.recorderManager.stopSessionRecording()},u_.prototype.pause_session_recording=function(){return this.recorderManager.pauseSessionRecording()},u_.prototype.resume_session_recording=function(){return this.recorderManager.resumeSessionRecording()},u_.prototype.is_recording_heatmap_data=function(){return this.recorderManager.isRecordingHeatmapData()},u_.prototype.get_session_recording_properties=function(){return this.recorderManager.getSessionRecordingProperties()},u_.prototype.get_session_replay_url=function(){return this.recorderManager.getSessionReplayUrl()},u_.prototype.__get_recorder=function(){return this.recorderManager.getRecorder()},u_.prototype.__get_recording_init_promise=function(){return this.__session_recording_init_promise},u_.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=lg.info.campaignParams(null);lg.each(e,function(e,t){this.unregister(t)}.bind(this))}},u_.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(eg.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(lg.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(eg.referrer)},u_.prototype._dom_loaded=function(){lg.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||lg.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},u_.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(!c_)return this.__dom_loaded_queue.push([e,t]),!1;var r=(new e).init(this);return r.track.apply(r,t)},u_.prototype._prepare_callback=function(e,t){if(lg.isUndefined(e))return null;if(n_){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},u_.prototype._send_request=function(e,t,r,n){var i=!0;if(i_)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;n||!lg.isFunction(r)&&"string"!=typeof r||(n=r,r=null),r=lg.extend(o,r||{}),n_||(r.method="GET");var a="POST"===r.method,c=o_&&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),n_||(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),lg.extend(t,this.get_config("api_extra_query_params")),e+="?"+lg.HTTPBuildQuery(t);var l=this;if("img"in t){var h=eg.createElement("img");h.src=e,eg.body.appendChild(h)}else if(c){try{i=o_(e,s)}catch(e){l.report_error(e),i=!1}try{n&&n(i?1:0)}catch(e){l.report_error(e)}}else if(n_)try{var p=new XMLHttpRequest;p.open(r.method,e,!0);var f=this.get_config("xhr_headers");if(a&&(f["Content-Type"]="application/x-www-form-urlencoded"),lg.each(f,function(e,t){p.setRequestHeader(t,e)}),r.timeout_ms&&void 0!==p.timeout){p.timeout=r.timeout_ms;var d=(new Date).getTime()}p.withCredentials=!0,p.onreadystatechange=function(){var e;if(4===p.readyState)if(200===p.status){if(n)if(u){var t;try{t=lg.JSONDecode(p.responseText)}catch(e){if(l.report_error(e),!r.ignore_json_errors)return;t=p.responseText}n(t)}else n(Number(p.responseText))}else if(e=p.timeout&&!p.status&&(new Date).getTime()-d>=p.timeout?"timeout":"Bad HTTP status: "+p.status+" "+p.statusText,l.report_error(e),n)if(u){var i=p.responseHeaders||{};n({status:0,httpStatusCode:p.status,error:e,retryAfter:i["Retry-After"]})}else n(0)},p.send(s)}catch(e){l.report_error(e),i=!1}else{var g=eg.createElement("script");g.type="text/javascript",g.async=!0,g.defer=!0,g.src=e;var m=eg.getElementsByTagName("script")[0];m.parentNode.insertBefore(g,m)}return i},u_.prototype._fetch_remote_settings=function(e){var t=this,r=function(){"strict"===e&&(t.set_config({record_sessions_percent:0}),t._remote_settings_strict_disabled=!0)};if(!C.AbortController)return hg.critical("Remote settings unavailable: missing minimum required APIs"),r(),Promise.resolve();var n=this.get_api_host("settings")+"/"+this.get_config("api_routes").settings,i={$lib_version:R.LIB_VERSION,mp_lib:"web",sdk_config:"1"},o=n+"?"+lg.HTTPBuildQuery(i),s=new AbortController,a=setTimeout(function(){s.abort()},500),c={method:"GET",headers:{Authorization:"Basic "+btoa(t.get_config("token")+":")},signal:s.signal};return C.fetch(o,c).then(function(e){return clearTimeout(a),e.ok?e.json():(hg.critical("Network response was not ok"),void r())}).then(function(e){if(e&&e.sdk_config&&e.sdk_config.config){var n=e.sdk_config.config,i={};lg.each(n,function(e,t){a_.hasOwnProperty(t)&&(i[t]=e)}),lg.isEmptyObject(i)?(hg.critical("No valid config keys found in remote settings."),r()):t.set_config(i)}else r()}).catch(function(e){clearTimeout(a),hg.critical("Failed to fetch remote settings",e),r()})},u_.prototype._execute_array=function(e){var t,r=[],n=[],i=[];lg.each(e,function(e){e&&(t=e[0],lg.isArray(t)?i.push(e):"function"==typeof e?e.call(this):lg.isArray(e)&&"alias"===t?r.push(e):lg.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?i.push(e):n.push(e))},this);var o=function(e,t){lg.each(e,function(e){if(lg.isArray(e[0])){var r=t;lg.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)},u_.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},u_.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},u_.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=lg.bind(function(e){return new am(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:lg.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:lg.bind(function(t){var r=this._run_hook("before_send_"+e.type,t);return r?r[0]:null},this),stopAllBatchingFunc:lg.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()},u_.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,lg.each(this.request_batchers,function(e){e.start()}))},u_.prototype.stop_batch_senders=function(){this._batch_requests=!1,lg.each(this.request_batchers,function(e){e.stop(),e.clear()})},u_.prototype.push=function(e){this._execute_array([e])},u_.prototype.enable=function(e){var t,r,n,i;if(void 0===e)this._flags.disable_all_events=!1;else{for(t={},r=[],n=0;n<e.length;n++)t[e[n]]=!0;for(i=0;i<this.__disabled_events.length;i++)t[this.__disabled_events[i]]||r.push(this.__disabled_events[i]);this.__disabled_events=r}},u_.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},u_.prototype._encode_data_for_request=function(e){var t=Pg(e);return this.get_config("api_payload_format")===t_&&(t=lg.base64Encode(t)),{data:t}},u_.prototype._track_or_batch=function(e,t){var r=lg.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||Ag;var a=!0,c=lg.bind(function(){return s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r))&&(r=r[0]),r?(hg.log("MIXPANEL REQUEST:"),hg.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},u_.prototype.track=Wg(function(e,t,r,n){var i;if(!r||!r.skip_hooks){if(null===(i=this._run_hook("before_track",e,t)))return;e=i[0],t=i[1]}n||"function"!=typeof r||(n=r,r=null);var o=(r=r||{}).transport;o&&(r.transport=o);var s=r.send_immediately;if("function"!=typeof n&&(n=Ag),lg.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){(t=lg.extend({},t)).token=this.get_config("token");var a=this.persistence.remove_event_timer(e);if(!lg.isUndefined(a)){var c=(new Date).getTime()-a;t.$duration=parseFloat((c/1e3).toFixed(3))}this._set_default_superprops();var u=this.get_config("track_marketing")?lg.info.marketingParams():{};t=lg.extend({},lg.info.properties({mp_loader:this.get_config("mp_loader")}),u,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var l=this.get_config("property_blacklist");lg.isArray(l)?lg.each(l,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+l),this._start_recording_on_event(e,t);var h={event:e,properties:t};return i=this._track_or_batch({type:"events",data:h,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:s,send_request_options:r},n),this.flags&&this.flags.checkFirstTimeEvents&&this.flags.checkFirstTimeEvents(e,t),i}n(0)}}),u_.prototype.set_group=Wg(function(e,t,r){lg.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)}),u_.prototype.add_group=Wg(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)}),u_.prototype.remove_group=Wg(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)}),u_.prototype.track_with_groups=Wg(function(e,t,r,n){var i=lg.extend({},t||{});return lg.each(r,function(e,t){null!=e&&(i[t]=e)}),this.track(e,i,n)}),u_.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},u_.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},u_.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 Ly)._init(this,e,t),this._cached_groups[r]=n),n},u_.prototype.track_pageview=Wg(function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=lg.extend(lg.info.mpPageViewProperties(),lg.info.campaignParams(),lg.info.clickParams()),i=lg.extend({},n,e);return this.is_recording_heatmap_data()&&(i.$captured_for_heatmap=!0),this.track(r,i)}),u_.prototype.track_links=function(){return this._track_dom.call(this,Ey,arguments)},u_.prototype.track_forms=function(){return this._track_dom.call(this,Oy,arguments)},u_.prototype.time_event=function(e){lg.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,(new Date).getTime())};var h_={persistent:!0},p_=function(e){var t;return t=lg.isObject(e)?e:lg.isUndefined(e)?{}:{days:e},lg.extend({},h_,t)};u_.prototype.register=function(e,t){var r=this._run_hook("before_register",e,t);if(null!==r){e=r[0],t=r[1];var n=p_(t);n.persistent?this.persistence.register(e,n.days):lg.extend(this.unpersisted_superprops,e)}},u_.prototype.register_once=function(e,t,r){var n=this._run_hook("before_register_once",e,t,r);if(null!==n){e=n[0],t=n[1],r=n[2];var i=p_(r);i.persistent?this.persistence.register_once(e,t,i.days):(void 0===t&&(t="None"),lg.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))}},u_.prototype.unregister=function(e,t){var r=this._run_hook("before_unregister",e,t);null!==r&&(e=r[0],t=r[1],(t=p_(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e])},u_.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},u_.prototype.identify=function(e,t,r,n,i,o,s,a){var c=this._run_hook("before_identify",e);if(null===c)return-1;e=c[0];var u=this.get_distinct_id();if(e&&u!==e){if("string"==typeof e&&0===e.indexOf(r_))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var l=u;this.register_once({$had_persisted_distinct_id:!0,$device_id:l},"")}e!==u&&e!==this.get_property(Yy)&&(this.unregister(Yy),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,i,o,s,a),e!==u&&this.track("$identify",{distinct_id:e,$anon_distinct_id:u},{skip_hooks:!0}),e!==u&&this.flags.fetchFlags().catch(function(){hg.error("[flags] Error fetching flags during identify")})},u_.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=lg.UUID();this.register_once({distinct_id:r_+e,$device_id:e},""),this._check_and_start_session_recording(),this.flags.reset()},u_.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},u_.prototype.alias=function(e,t){if(e===this.get_property(Gy))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return lg.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(Yy,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)},u_.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},u_.prototype.set_config=function(e){lg.isObject(e)&&(lg.extend(this.config,e),e.batch_size&&lg.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),R.DEBUG=R.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init(),lg.isObject(e.hooks)&&(this.hooks={},lg.each(e.hooks,function(e,t){if(lg.isFunction(e))this.hooks[t]=[e];else if(lg.isArray(e)){this.hooks[t]=[];for(var r=0;r<e.length;r++)lg.isFunction(e[r])||hg.critical("Invalid hook added. Hook is not a function"),this.hooks[t].push(e[r])}else hg.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this)))},u_.prototype.get_config=function(e){return this.config[e]},u_.prototype._run_hook=function(e){var t=Jd.call(arguments,1);return lg.each(this.hooks[e],function(r){if(null===t)return null;var n=r.apply(this,t);void 0===n?(this.report_error(e+" hook did not return a valid value"),t=null):(lg.isArray(n)||(n=[n]),t.splice.apply(t,[0,n.length].concat(n)))},this),t},u_.prototype.get_property=function(e){return this.persistence.load_prop([e])},u_.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},u_.prototype.toString=function(){var e=this.get_config("name");return e!==e_&&(e=e_+"."+e),e},u_.prototype._event_is_disabled=function(e){return lg.isBlockedUA(ng)||this._flags.disable_all_events||lg.include(this.__disabled_events,e)},u_.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&lg.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")&&!lg.cookie.get("mp_optout")||(lg.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},u_.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()},u_.prototype._gdpr_call_func=function(e,t){return t=lg.extend({track:lg.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),lg.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})},u_.prototype.opt_in_tracking=function(e){e=lg.extend({enable_persistence:!0},e),this._gdpr_call_func(jg,e),this._gdpr_update_persistence(e)},u_.prototype.opt_out_tracking=function(e){(e=lg.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(qg,e),this._gdpr_update_persistence(e)},u_.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(zg,e)},u_.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(Vg,e)},u_.prototype.clear_opt_in_out_tracking=function(e){e=lg.extend({enable_persistence:!0},e),this._gdpr_call_func(Gg,e),this._gdpr_update_persistence(e)},u_.prototype.report_error=function(e,t){hg.error.apply(hg.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(e){hg.error(e)}},u_.prototype.add_hook=function(e,t){this.hooks[e]||(this.hooks[e]=[]),this.hooks[e].push(t)},u_.prototype.remove_hook=function(e,t){var r;this.hooks[e]&&(-1!==(r=this.hooks[e].indexOf(t))?this.hooks[e].splice(r,1):hg.log("remove_hook failed. Matching hook was not found"))},u_.prototype.init=u_.prototype.init,u_.prototype.reset=u_.prototype.reset,u_.prototype.enable=u_.prototype.enable,u_.prototype.disable=u_.prototype.disable,u_.prototype.time_event=u_.prototype.time_event,u_.prototype.track=u_.prototype.track,u_.prototype.track_links=u_.prototype.track_links,u_.prototype.track_forms=u_.prototype.track_forms,u_.prototype.track_pageview=u_.prototype.track_pageview,u_.prototype.register=u_.prototype.register,u_.prototype.register_once=u_.prototype.register_once,u_.prototype.unregister=u_.prototype.unregister,u_.prototype.identify=u_.prototype.identify,u_.prototype.alias=u_.prototype.alias,u_.prototype.name_tag=u_.prototype.name_tag,u_.prototype.set_config=u_.prototype.set_config,u_.prototype.get_config=u_.prototype.get_config,u_.prototype.get_api_host=u_.prototype.get_api_host,u_.prototype.get_property=u_.prototype.get_property,u_.prototype.get_distinct_id=u_.prototype.get_distinct_id,u_.prototype.toString=u_.prototype.toString,u_.prototype.opt_out_tracking=u_.prototype.opt_out_tracking,u_.prototype.opt_in_tracking=u_.prototype.opt_in_tracking,u_.prototype.has_opted_out_tracking=u_.prototype.has_opted_out_tracking,u_.prototype.has_opted_in_tracking=u_.prototype.has_opted_in_tracking,u_.prototype.clear_opt_in_out_tracking=u_.prototype.clear_opt_in_out_tracking,u_.prototype.get_group=u_.prototype.get_group,u_.prototype.set_group=u_.prototype.set_group,u_.prototype.add_group=u_.prototype.add_group,u_.prototype.remove_group=u_.prototype.remove_group,u_.prototype.add_hook=u_.prototype.add_hook,u_.prototype.remove_hook=u_.prototype.remove_hook,u_.prototype.track_with_groups=u_.prototype.track_with_groups,u_.prototype.start_batch_senders=u_.prototype.start_batch_senders,u_.prototype.stop_batch_senders=u_.prototype.stop_batch_senders,u_.prototype.start_session_recording=u_.prototype.start_session_recording,u_.prototype.stop_session_recording=u_.prototype.stop_session_recording,u_.prototype.pause_session_recording=u_.prototype.pause_session_recording,u_.prototype.resume_session_recording=u_.prototype.resume_session_recording,u_.prototype.get_session_recording_properties=u_.prototype.get_session_recording_properties,u_.prototype.get_session_replay_url=u_.prototype.get_session_replay_url,u_.prototype.get_tab_id=u_.prototype.get_tab_id,u_.prototype.DEFAULT_API_ROUTES=s_,u_.prototype.__get_recorder=u_.prototype.__get_recorder,u_.prototype.__get_recording_init_promise=u_.prototype.__get_recording_init_promise,Ky.prototype.properties=Ky.prototype.properties,Ky.prototype.update_search_keyword=Ky.prototype.update_search_keyword,Ky.prototype.update_referrer_info=Ky.prototype.update_referrer_info,Ky.prototype.get_cross_subdomain=Ky.prototype.get_cross_subdomain,Ky.prototype.clear=Ky.prototype.clear;var f_={},d_=function(){Xy.init=function(e,t,r){if(r)return Xy[r]||(Xy[r]=f_[r]=l_(e,t,r),Xy[r]._loaded()),Xy[r];var n=Xy;f_[e_]?n=f_[e_]:e&&((n=l_(e,t,e_))._loaded(),f_[e_]=n),Xy=n,1===By&&(C[e_]=Xy),lg.each(f_,function(e,t){t!==e_&&(Xy[t]=e)}),Xy._=lg}};var g_=(Qy=function(e,t){t()},By=0,Xy=new u_,d_(),Xy.init(),function(){function e(){e.done||(e.done=!0,c_=!0,i_=!1,lg.each(f_,function(e){e._dom_loaded()}))}if(eg.addEventListener)"complete"===eg.readyState?e():eg.addEventListener("DOMContentLoaded",e,!1);else if(eg.attachEvent){eg.attachEvent("onreadystatechange",e);var t=!1;try{t=null===C.frameElement}catch(e){}eg.documentElement.doScroll&&t&&function t(){try{eg.documentElement.doScroll("left")}catch(e){return void setTimeout(t,1)}e()}()}lg.register_event(C,"load",e,!0)}(),Xy),m_={};function v_(e){var t;return null!=(t=null==e?void 0:e.mixpanel)?t:g_}var y_=["set","set_once","increment","append","union","remove"];var __=["set","set_once","union","remove"];var b_,w_={type:"mixpanel",config:{},init({config:e,env:t}){const r=e.settings;if(!(null==r?void 0:r.apiKey))return!1;const n=v_(t),{apiKey:i,identify:o,group:s,_state:a,...c}=r,u={track_pageview:!1,autocapture:!1,...c};n.init(i,u);return{...e,settings:{...r,_state:{lastIdentity:{}}}}},async push(e,{config:t,rule:r,env:n,data:i,collector:o}){var s,a;const c=v_(n),u=t.settings||{},l=(null==r?void 0:r.settings)||{},h=u._state||{};if(void 0!==l.reset){(m(l.reset)?l.reset:await E(e,l.reset,{collector:o}))&&(c.reset(),h.lastIdentity={})}const p=null!=(s=l.identify)?s:u.identify;if(void 0!==p){const t=await E(e,p,{collector:o});y(t)&&(h.lastIdentity=function(e,t,r={}){const n={...r},i=t.distinctId;return _(i)&&""!==i?(i===r.distinctId||(e.identify(i),n.distinctId=i),n):n}(c,t,h.lastIdentity))}if(void 0!==l.people){const t=await E(e,l.people,{collector:o});y(t)&&function(e,t){for(const r of y_){const n=t[r];y(n)&&0!==Object.keys(n).length&&e.people[r](n)}if(g(t.unset)){const r=t.unset.filter(e=>_(e));r.length>0&&e.people.unset(r)}!0===t.delete_user&&e.people.delete_user()}(c,t)}const f=null!=(a=l.group)?a:u.group;if(void 0!==f){const t=await E(e,f,{collector:o});if(y(t)){const{key:e,id:r}=t;_(e)&&""!==e&&(_(r)||g(r))&&""!==r&&c.set_group(e,r)}}if(void 0!==l.groupProfile){const t=await E(e,l.groupProfile,{collector:o});y(t)&&function(e,t){const{key:r,id:n}=t;if(!_(r)||""===r||!_(n)||""===n)return;const i=e.get_group(r,n);for(const e of __){const r=t[e];y(r)&&0!==Object.keys(r).length&&i[e](r)}if(g(t.unset)){const e=t.unset.filter(e=>_(e));e.length>0&&i.unset(e)}!0===t.delete&&i.delete()}(c,t)}if(!0!==(null==r?void 0:r.silent)){const t=_(null==r?void 0:r.name)?r.name:e.name,n=y(i)?i:{};c.track(t,n)}u._state=h},on(e,t){var r;if("consent"!==e||!t.data)return;const n=v_(t.env),i=t.data,o=null==(r=t.config)?void 0:r.consent;if(!o||0===Object.keys(o).length)return;Object.keys(o).every(e=>!0===i[e])?n.opt_in_tracking():n.opt_out_tracking()},destroy({config:e,env:t}){var r;const n=v_(t);null==(r=n.stop_batch_senders)||r.call(n);const i=null==e?void 0:e.settings;(null==i?void 0:i._state)&&(i._state={lastIdentity:{}})}},k_=w_;return b_=i,((i,o,s,a)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let c of r(o))n.call(i,c)||c===s||e(i,c,{get:()=>o[c],enumerable:!(a=t(o,c))||a.enumerable});return i})(e({},"__esModule",{value:!0}),b_)})();