mixpanel-browser 2.71.0 → 2.71.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.
- package/.claude/settings.local.json +9 -0
- package/CHANGELOG.md +3 -0
- package/dist/mixpanel-core.cjs.js +7 -5
- package/dist/mixpanel-recorder.js +1 -1
- package/dist/mixpanel-recorder.min.js +1 -1
- package/dist/mixpanel-recorder.min.js.map +1 -1
- package/dist/mixpanel-with-async-recorder.cjs.js +7 -5
- package/dist/mixpanel-with-recorder.js +7 -5
- package/dist/mixpanel-with-recorder.min.js +1 -1
- package/dist/mixpanel.amd.js +7 -5
- package/dist/mixpanel.cjs.js +7 -5
- package/dist/mixpanel.globals.js +7 -5
- package/dist/mixpanel.min.js +70 -70
- package/dist/mixpanel.module.js +7 -5
- package/dist/mixpanel.umd.js +7 -5
- package/package.json +1 -1
- package/src/autocapture/index.js +6 -4
- package/src/config.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(){"use strict";var I;if(typeof window=="undefined"){var Ss={hostname:""};I={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:Ss,referrer:""},screen:{width:0,height:0},location:Ss,addEventListener:function(){},removeEventListener:function(){}}}else I=window;function Cs(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,t=new Array(n);i<n;i++)t[i]=e[i];return t}function Is(e,n,i,t,r,o,s){try{var a=e[o](s),u=a.value}catch(c){i(c);return}a.done?n(u):Promise.resolve(u).then(t,r)}function vi(e){return function(){var n=this,i=arguments;return new Promise(function(t,r){var o=e.apply(n,i);function s(u){Is(o,t,r,s,a,"next",u)}function a(u){Is(o,t,r,s,a,"throw",u)}s(void 0)})}}function Gr(e,n,i){return Es()?Gr=Reflect.construct:Gr=function(r,o,s){var a=[null];a.push.apply(a,o);var u=Function.bind.apply(r,a),c=new u;return s&&ur(c,s.prototype),c},Gr.apply(null,arguments)}function Pl(e,n){for(var i=0;i<n.length;i++){var t=n[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function me(e,n,i){return n&&Pl(e.prototype,n),e}function j(){return j=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},j.apply(this,arguments)}function gi(e){return gi=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},gi(e)}function be(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&ur(e,n)}function N(e,n){return n!=null&&typeof Symbol!="undefined"&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](e):e instanceof n}function Ll(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function ar(e,n){if(e==null)return{};var i={},t=Object.keys(e),r,o;for(o=0;o<t.length;o++)r=t[o],!(n.indexOf(r)>=0)&&(i[r]=e[r]);return i}function ur(e,n){return ur=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},ur(e,n)}function z(e){"@swc/helpers - typeof";return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Dl(e,n){if(e){if(typeof e=="string")return Cs(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(i);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Cs(e,n)}}function Vr(e){var n=typeof Map=="function"?new Map:void 0;return Vr=function(t){if(t===null||!Ll(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n!="undefined"){if(n.has(t))return n.get(t);n.set(t,r)}function r(){return Gr(t,arguments,gi(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ur(r,t)},Vr(e)}function Es(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(Es=function(){return!!e})()}function k(e,n){var i=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(i)return(i=i.call(e)).next.bind(i);if(Array.isArray(e)||(i=Dl(e))||n){i&&(e=i);var t=0;return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}}}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 cr(e,n){var i,t,r,o,s={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(l){return u([c,l])}}function u(c){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,t&&(r=c[0]&2?t.return:c[0]?t.throw||((r=t.return)&&r.call(t),0):t.next)&&!(r=r.call(t,c[1])).done)return r;switch(t=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,t=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){s=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){s.label=c[1];break}if(c[0]===6&&s.label<r[1]){s.label=r[1],r=c;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(c);break}r[2]&&s.ops.pop(),s.trys.pop();continue}c=n.call(e,s)}catch(l){c=[6,l],t=0}finally{i=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function ks(e){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&e[n],t=0;if(i)return i.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}var Nl=Object.defineProperty,$l=function(e,n,i){return n in e?Nl(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i},E=function(e,n,i){return $l(e,(typeof n=="undefined"?"undefined":z(n))!=="symbol"?n+"":n,i)},Os,Fl=Object.defineProperty,Ul=function(e,n,i){return n in e?Fl(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i},xs=function(e,n,i){return Ul(e,(typeof n=="undefined"?"undefined":z(n))!=="symbol"?n+"":n,i)},ge=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}(ge||{}),Rs={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},As={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},jr={},Bl=function(){return!!globalThis.Zone};function mi(e){if(jr[e])return jr[e];var n=globalThis[e],i=n.prototype,t=e in Rs?Rs[e]:void 0,r=!!(t&&t.every(function(l){var f,p;return!!((p=(f=Object.getOwnPropertyDescriptor(i,l))==null?void 0:f.get)!=null&&p.toString().includes("[native code]"))})),o=e in As?As[e]:void 0,s=!!(o&&o.every(function(l){var f;return typeof i[l]=="function"&&((f=i[l])==null?void 0:f.toString().includes("[native code]"))}));if(r&&s&&!Bl())return jr[e]=n.prototype,n.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return n.prototype;var c=u[e].prototype;return document.body.removeChild(a),c?jr[e]=c:i}catch(l){return i}}var yi={};function rt(e,n,i){var t,r=e+"."+String(i);if(yi[r])return yi[r].call(n);var o=mi(e),s=(t=Object.getOwnPropertyDescriptor(o,i))==null?void 0:t.get;return s?(yi[r]=s,s.call(n)):n[i]}var _i={};function Ms(e,n,i){var t=e+"."+String(i);if(_i[t])return _i[t].bind(n);var r=mi(e),o=r[i];return typeof o!="function"?n[i]:(_i[t]=o,o.bind(n))}function zl(e){return rt("Node",e,"childNodes")}function Wl(e){return rt("Node",e,"parentNode")}function ql(e){return rt("Node",e,"parentElement")}function Gl(e){return rt("Node",e,"textContent")}function Vl(e,n){return Ms("Node",e,"contains")(n)}function jl(e){return Ms("Node",e,"getRootNode")()}function Hl(e){return!e||!("host"in e)?null:rt("ShadowRoot",e,"host")}function Yl(e){return e.styleSheets}function Kl(e){return!e||!("shadowRoot"in e)?null:rt("Element",e,"shadowRoot")}function Jl(e,n){return rt("Element",e,"querySelector")(n)}function Xl(e,n){return rt("Element",e,"querySelectorAll")(n)}function Zl(){return mi("MutationObserver").constructor}function Ql(e,n,i){try{if(!(n in e))return function(){};var t=e[n],r=i(t);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:t}})),e[n]=r,function(){e[n]=t}}catch(o){return function(){}}}var we={childNodes:zl,parentNode:Wl,parentElement:ql,textContent:Gl,contains:Vl,getRootNode:jl,host:Hl,styleSheets:Yl,shadowRoot:Kl,querySelector:Jl,querySelectorAll:Xl,mutationObserver:Zl,patch:Ql};function Ts(e){return e.nodeType===e.ELEMENT_NODE}function lr(e){var n=e&&"host"in e&&"mode"in e&&we.host(e)||null;return!!(n&&"shadowRoot"in n&&we.shadowRoot(n)===e)}function fr(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function ef(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function tf(e){var n=e.cssText;if(n.split('"').length<3)return n;var i=["@import","url("+JSON.stringify(e.href)+")"];return e.layerName===""?i.push("layer"):e.layerName&&i.push("layer("+e.layerName+")"),e.supportsText&&i.push("supports("+e.supportsText+")"),e.media.length&&i.push(e.media.mediaText),i.join(" ")+";"}function bi(e){try{var n=e.rules||e.cssRules;if(!n)return null;var i=e.href;!i&&e.ownerNode&&e.ownerNode.ownerDocument&&(i=e.ownerNode.ownerDocument.location.href);var t=Array.from(n,function(r){return Ps(r,i)}).join("");return ef(t)}catch(r){return null}}function Ps(e,n){if(nf(e)){var i;try{i=bi(e.styleSheet)||tf(e)}catch(r){i=e.cssText}return e.styleSheet.href?Kr(i,e.styleSheet.href):i}else{var t=e.cssText;return of(e)&&e.selectorText.includes(":")&&(t=rf(t)),n?Kr(t,n):t}}function rf(e){var n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(n,"$1\\$2")}function nf(e){return"styleSheet"in e}function of(e){return"selectorText"in e}var Ls=function(){function e(){xs(this,"idNodeMap",new Map),xs(this,"nodeMetaMap",new WeakMap)}var n=e.prototype;return n.getId=function(t){var r;if(!t)return-1;var o=(r=this.getMeta(t))==null?void 0:r.id;return o!=null?o:-1},n.getNode=function(t){return this.idNodeMap.get(t)||null},n.getIds=function(){return Array.from(this.idNodeMap.keys())},n.getMeta=function(t){return this.nodeMetaMap.get(t)||null},n.removeNodeFromMap=function(t){var r=this,o=this.getId(t);this.idNodeMap.delete(o),t.childNodes&&t.childNodes.forEach(function(s){return r.removeNodeFromMap(s)})},n.has=function(t){return this.idNodeMap.has(t)},n.hasNode=function(t){return this.nodeMetaMap.has(t)},n.add=function(t,r){var o=r.id;this.idNodeMap.set(o,t),this.nodeMetaMap.set(t,r)},n.replace=function(t,r){var o=this.getNode(t);if(o){var s=this.nodeMetaMap.get(o);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(t,r)},n.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function sf(){return new Ls}function Hr(e){var n=e.element,i=e.maskInputOptions,t=e.tagName,r=e.type,o=e.value,s=e.maskInputFn,a=o||"",u=r&&_t(r);return(i[t.toLowerCase()]||u&&i[u])&&(s?a=s(a,n):a="*".repeat(a.length)),a}function _t(e){return e.toLowerCase()}var Ds="__rrweb_original__";function af(e){var n=e.getContext("2d");if(!n)return!0;for(var i=50,t=0;t<e.width;t+=i)for(var r=0;r<e.height;r+=i){var o=n.getImageData,s=Ds in o?o[Ds]:o,a=new Uint32Array(s.call(n,t,r,Math.min(i,e.width-t),Math.min(i,e.height-r)).data.buffer);if(a.some(function(u){return u!==0}))return!1}return!0}function Yr(e){var n=e.type;return e.hasAttribute("data-rr-is-password")?"password":n?_t(n):null}function Ns(e,n){var i;try{i=new URL(e,n!=null?n:window.location.href)}catch(s){return null}var t=/\.([0-9a-z]+)(?:$)/i,r=i.pathname.match(t),o;return(o=r==null?void 0:r[1])!=null?o:null}function uf(e){var n="";return e.indexOf("//")>-1?n=e.split("/").slice(0,3).join("/"):n=e.split("/")[0],n=n.split("?")[0],n}var cf=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,lf=/^(?:[a-z+]+:)?\/\//i,ff=/^www\..*/i,hf=/^(data:)([^,]*),(.*)/i;function Kr(e,n){return(e||"").replace(cf,function(i,t,r,o,s,a){var u=r||s||a,c=t||o||"";if(!u)return i;if(lf.test(u)||ff.test(u)||hf.test(u))return"url("+c+u+c+")";if(u[0]==="/")return"url("+c+(uf(n)+u)+c+")";var l=n.split("/"),f=u.split("/");l.pop();for(var p=k(f),g;!(g=p()).done;){var d=g.value;d!=="."&&(d===".."?l.pop():l.push(d))}return"url("+c+l.join("/")+c+")"})}function Jr(e,n){return n===void 0&&(n=!1),n?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function pf(e,n,i){i===void 0&&(i=!1);var t=Array.from(n.childNodes),r=[],o=0;if(t.length>1&&e&&typeof e=="string"){for(var s=Jr(e,i),a=s.length/e.length,u=1;u<t.length;u++)if(t[u].textContent&&typeof t[u].textContent=="string"){for(var c=Jr(t[u].textContent,i),l=100,f=3;f<c.length&&(c[f].match(/[a-zA-Z0-9]/)||c.indexOf(c.substring(0,f),1)!==-1);f++);for(;f<c.length;f++){var p=c.substring(0,f),g=s.split(p),d=-1;if(g.length===2)d=g[0].length;else if(g.length>2&&g[0]===""&&t[u-1].textContent!=="")d=s.indexOf(p,1);else if(g.length===1){if(p=p.substring(0,p.length-1),g=s.split(p),g.length<=1)return r.push(e),r;f=l+1}else f===c.length-1&&(d=s.indexOf(p));if(g.length>=2&&f>l){var y=t[u-1].textContent;if(y&&typeof y=="string"){var v=Jr(y).length;d=s.indexOf(p,v)}d===-1&&(d=g[0].length)}if(d!==-1){for(var m=Math.floor(d/a);m>0&&m<e.length;){if(o+=1,o>50*t.length)return r.push(e),r;var _=Jr(e.substring(0,m),i);if(_.length===d){r.push(e.substring(0,m)),e=e.substring(m),s=s.substring(d);break}else _.length<d?m+=Math.max(1,Math.floor((d-_.length)/a)):m-=Math.max(1,Math.floor((_.length-d)*a))}break}}}}return r.push(e),r}function df(e,n){return pf(e,n).join("/* rr_split */")}var vf=1,gf=new RegExp("[^a-z0-9-_:]"),hr=-2;function $s(){return vf++}function mf(e){if(N(e,HTMLFormElement))return"form";var n=_t(e.tagName);return gf.test(n)?"div":n}var $t,Fs,yf=/^[^ \t\n\r\u000c]+/,_f=/^[, \t\n\r\u000c]+/;function bf(e,n){if(n.trim()==="")return n;var i=0;function t(c){var l,f=c.exec(n.substring(i));return f?(l=f[0],i+=l.length,l):""}for(var r=[];t(_f),!(i>=n.length);){var o=t(yf);if(o.slice(-1)===",")o=Ft(e,o.substring(0,o.length-1)),r.push(o);else{var s="";o=Ft(e,o);for(var a=!1;;){var u=n.charAt(i);if(u===""){r.push((o+s).trim());break}else if(a)u===")"&&(a=!1);else if(u===","){i+=1,r.push((o+s).trim());break}else u==="("&&(a=!0);s+=u,i+=1}}}return r.join(", ")}var Us=new WeakMap;function Ft(e,n){return!n||n.trim()===""?n:wi(e,n)}function wf(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function wi(e,n){var i=Us.get(e);if(i||(i=e.createElement("a"),Us.set(e,i)),!n)n="";else if(n.startsWith("blob:")||n.startsWith("data:"))return n;return i.setAttribute("href",n),i.href}function Bs(e,n,i,t){return t&&(i==="src"||i==="href"&&!(n==="use"&&t[0]==="#")||i==="xlink:href"&&t[0]!=="#"||i==="background"&&(n==="table"||n==="td"||n==="th")?Ft(e,t):i==="srcset"?bf(e,t):i==="style"?Kr(t,wi(e)):n==="object"&&i==="data"?Ft(e,t):t)}function zs(e,n,i){return(e==="video"||e==="audio")&&n==="autoplay"}function Sf(e,n,i){try{if(typeof n=="string"){if(e.classList.contains(n))return!0}else for(var t=e.classList.length;t--;){var r=e.classList[t];if(n.test(r))return!0}if(i)return e.matches(i)}catch(o){}return!1}function Xr(e,n,i){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return i?Xr(we.parentNode(e),n,i):!1;for(var t=e.classList.length;t--;){var r=e.classList[t];if(n.test(r))return!0}return i?Xr(we.parentNode(e),n,i):!1}function Ws(e,n,i,t){var r;if(Ts(e)){if(r=e,!we.childNodes(r).length)return!1}else{if(we.parentElement(e)===null)return!1;r=we.parentElement(e)}try{if(typeof n=="string"){if(t){if(r.closest("."+n))return!0}else if(r.classList.contains(n))return!0}else if(Xr(r,n,t))return!0;if(i){if(t){if(r.closest(i))return!0}else if(r.matches(i))return!0}}catch(o){}return!1}function Cf(e,n,i){var t=e.contentWindow;if(t){var r=!1,o;try{o=t.document.readyState}catch(u){return}if(o!=="complete"){var s=setTimeout(function(){r||(n(),r=!0)},i);e.addEventListener("load",function(){clearTimeout(s),r=!0,n()});return}var a="about:blank";if(t.location.href!==a||e.src===a||e.src==="")return setTimeout(n,0),e.addEventListener("load",n);e.addEventListener("load",n)}}function If(e,n,i){var t=!1,r;try{r=e.sheet}catch(s){return}if(!r){var o=setTimeout(function(){t||(n(),t=!0)},i);e.addEventListener("load",function(){clearTimeout(o),t=!0,n()})}}function Ef(e,n){var i=n.doc,t=n.mirror,r=n.blockClass,o=n.blockSelector,s=n.needsMask,a=n.inlineStylesheet,u=n.maskInputOptions,c=u===void 0?{}:u,l=n.maskTextFn,f=n.maskInputFn,p=n.dataURLOptions,g=p===void 0?{}:p,d=n.inlineImages,y=n.recordCanvas,v=n.keepIframeSrcFn,m=n.newlyAddedElement,_=m===void 0?!1:m,w=n.cssCaptured,S=w===void 0?!1:w,C=kf(i,t);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:ge.Document,childNodes:[],compatMode:e.compatMode}:{type:ge.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:ge.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:C};case e.ELEMENT_NODE:return xf(e,{doc:i,blockClass:r,blockSelector:o,inlineStylesheet:a,maskInputOptions:c,maskInputFn:f,dataURLOptions:g,inlineImages:d,recordCanvas:y,keepIframeSrcFn:v,newlyAddedElement:_,rootId:C});case e.TEXT_NODE:return Of(e,{doc:i,needsMask:s,maskTextFn:l,rootId:C,cssCaptured:S});case e.CDATA_SECTION_NODE:return{type:ge.CDATA,textContent:"",rootId:C};case e.COMMENT_NODE:return{type:ge.Comment,textContent:we.textContent(e)||"",rootId:C};default:return!1}}function kf(e,n){if(n.hasNode(e)){var i=n.getId(e);return i===1?void 0:i}}function Of(e,n){var i=n.needsMask,t=n.maskTextFn,r=n.rootId,o=n.cssCaptured,s=we.parentNode(e),a=s&&s.tagName,u="",c=a==="STYLE"?!0:void 0,l=a==="SCRIPT"?!0:void 0;return l?u="SCRIPT_PLACEHOLDER":o||(u=we.textContent(e),c&&u&&(u=Kr(u,wi(n.doc)))),!c&&!l&&u&&i&&(u=t?t(u,we.parentElement(e)):u.replace(/[\S]/g,"*")),{type:ge.Text,textContent:u||"",rootId:r}}function xf(e,n){for(var i=n.doc,t=n.blockClass,r=n.blockSelector,o=n.inlineStylesheet,s=n.maskInputOptions,a=s===void 0?{}:s,u=n.maskInputFn,c=n.dataURLOptions,l=c===void 0?{}:c,f=n.inlineImages,p=n.recordCanvas,g=n.keepIframeSrcFn,d=n.newlyAddedElement,y=d===void 0?!1:d,v=n.rootId,m=Sf(e,t,r),_=mf(e),w={},S=e.attributes.length,C=0;C<S;C++){var O=e.attributes[C];zs(_,O.name,O.value)||(w[O.name]=Bs(i,_,_t(O.name),O.value))}if(_==="link"&&o){var A=Array.from(i.styleSheets).find(function(Te){return Te.href===e.href}),x=null;A&&(x=bi(A)),x&&(delete w.rel,delete w.href,w._cssText=x)}if(_==="style"&&e.sheet){var L=bi(e.sheet);L&&(e.childNodes.length>1&&(L=df(L,e)),w._cssText=L)}if(_==="input"||_==="textarea"||_==="select"){var H=e.value,M=e.checked;w.type!=="radio"&&w.type!=="checkbox"&&w.type!=="submit"&&w.type!=="button"&&H?w.value=Hr({element:e,type:Yr(e),tagName:_,value:H,maskInputOptions:a,maskInputFn:u}):M&&(w.checked=M)}if(_==="option"&&(e.selected&&!a.select?w.selected=!0:delete w.selected),_==="dialog"&&e.open&&(w.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),_==="canvas"&&p){if(e.__context==="2d")af(e)||(w.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){var B=e.toDataURL(l.type,l.quality),K=i.createElement("canvas");K.width=e.width,K.height=e.height;var Oe=K.toDataURL(l.type,l.quality);B!==Oe&&(w.rr_dataURL=B)}}if(_==="img"&&f){$t||($t=i.createElement("canvas"),Fs=$t.getContext("2d"));var J=e,Ae=J.currentSrc||J.getAttribute("src")||"<unknown-src>",Ee=J.crossOrigin,ae=function(){J.removeEventListener("load",ae);try{$t.width=J.naturalWidth,$t.height=J.naturalHeight,Fs.drawImage(J,0,0),w.rr_dataURL=$t.toDataURL(l.type,l.quality)}catch(Te){if(J.crossOrigin!=="anonymous"){J.crossOrigin="anonymous",J.complete&&J.naturalWidth!==0?ae():J.addEventListener("load",ae);return}else console.warn("Cannot inline img src="+Ae+"! Error: "+Te)}J.crossOrigin==="anonymous"&&(Ee?w.crossOrigin=Ee:J.removeAttribute("crossorigin"))};J.complete&&J.naturalWidth!==0?ae():J.addEventListener("load",ae)}if(_==="audio"||_==="video"){var _e=w;_e.rr_mediaState=e.paused?"paused":"played",_e.rr_mediaCurrentTime=e.currentTime,_e.rr_mediaPlaybackRate=e.playbackRate,_e.rr_mediaMuted=e.muted,_e.rr_mediaLoop=e.loop,_e.rr_mediaVolume=e.volume}if(y||(e.scrollLeft&&(w.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(w.rr_scrollTop=e.scrollTop)),m){var Me=e.getBoundingClientRect(),xt=Me.width,Ve=Me.height;w={class:w.class,rr_width:""+xt+"px",rr_height:""+Ve+"px"}}_==="iframe"&&!g(w.src)&&(e.contentDocument||(w.rr_src=w.src),delete w.src);var nr;try{customElements.get(_)&&(nr=!0)}catch(Te){}return{type:ge.Element,tagName:_,attributes:w,childNodes:[],isSVG:wf(e)||void 0,needBlock:m,rootId:v,isCustom:nr}}function ee(e){return e==null?"":e.toLowerCase()}function Rf(e,n){if(n.comment&&e.type===ge.Comment)return!0;if(e.type===ge.Element){if(n.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Ns(e.attributes.href)==="js"))return!0;if(n.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(ee(e.attributes.name).match(/^msapplication-tile(image|color)$/)||ee(e.attributes.name)==="application-name"||ee(e.attributes.rel)==="icon"||ee(e.attributes.rel)==="apple-touch-icon"||ee(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(n.headMetaDescKeywords&&ee(e.attributes.name).match(/^description|keywords$/))return!0;if(n.headMetaSocial&&(ee(e.attributes.property).match(/^(og|twitter|fb):/)||ee(e.attributes.name).match(/^(og|twitter):/)||ee(e.attributes.name)==="pinterest"))return!0;if(n.headMetaRobots&&(ee(e.attributes.name)==="robots"||ee(e.attributes.name)==="googlebot"||ee(e.attributes.name)==="bingbot"))return!0;if(n.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(n.headMetaAuthorship&&(ee(e.attributes.name)==="author"||ee(e.attributes.name)==="generator"||ee(e.attributes.name)==="framework"||ee(e.attributes.name)==="publisher"||ee(e.attributes.name)==="progid"||ee(e.attributes.property).match(/^article:/)||ee(e.attributes.property).match(/^product:/)))return!0;if(n.headMetaVerification&&(ee(e.attributes.name)==="google-site-verification"||ee(e.attributes.name)==="yandex-verification"||ee(e.attributes.name)==="csrf-token"||ee(e.attributes.name)==="p:domain_verify"||ee(e.attributes.name)==="verify-v1"||ee(e.attributes.name)==="verification"||ee(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Ut(e,n){var i=n.doc,t=n.mirror,r=n.blockClass,o=n.blockSelector,s=n.maskTextClass,a=n.maskTextSelector,u=n.skipChild,c=u===void 0?!1:u,l=n.inlineStylesheet,f=l===void 0?!0:l,p=n.maskInputOptions,g=p===void 0?{}:p,d=n.maskTextFn,y=n.maskInputFn,v=n.slimDOMOptions,m=n.dataURLOptions,_=m===void 0?{}:m,w=n.inlineImages,S=w===void 0?!1:w,C=n.recordCanvas,O=C===void 0?!1:C,A=n.onSerialize,x=n.onIframeLoad,L=n.iframeLoadTimeout,H=L===void 0?5e3:L,M=n.onStylesheetLoad,B=n.stylesheetLoadTimeout,K=B===void 0?5e3:B,Oe=n.keepIframeSrcFn,J=Oe===void 0?function(){return!1}:Oe,Ae=n.newlyAddedElement,Ee=Ae===void 0?!1:Ae,ae=n.cssCaptured,_e=ae===void 0?!1:ae,Me=n.needsMask,xt=n.preserveWhiteSpace,Ve=xt===void 0?!0:xt;if(!Me){var nr=Me===void 0;Me=Ws(e,s,a,nr)}var Te=Ef(e,{doc:i,mirror:t,blockClass:r,blockSelector:o,needsMask:Me,inlineStylesheet:f,maskInputOptions:g,maskTextFn:d,maskInputFn:y,dataURLOptions:_,inlineImages:S,recordCanvas:O,keepIframeSrcFn:J,newlyAddedElement:Ee,cssCaptured:_e});if(!Te)return console.warn(e,"not serialized"),null;var Rt;t.hasNode(e)?Rt=t.getId(e):Rf(Te,v)||!Ve&&Te.type===ge.Text&&!Te.textContent.replace(/^\s+|\s+$/gm,"").length?Rt=hr:Rt=$s();var Y=Object.assign(Te,{id:Rt});if(t.add(e,Y),Rt===hr)return null;A&&A(e);var At=!c;if(Y.type===ge.Element){At=At&&!Y.needBlock,delete Y.needBlock;var Mt=we.shadowRoot(e);Mt&&fr(Mt)&&(Y.isShadowHost=!0)}if((Y.type===ge.Document||Y.type===ge.Element)&&At){v.headWhitespace&&Y.type===ge.Element&&Y.tagName==="head"&&(Ve=!1);var ir={doc:i,mirror:t,blockClass:r,blockSelector:o,needsMask:Me,maskTextClass:s,maskTextSelector:a,skipChild:c,inlineStylesheet:f,maskInputOptions:g,maskTextFn:d,maskInputFn:y,slimDOMOptions:v,dataURLOptions:_,inlineImages:S,recordCanvas:O,preserveWhiteSpace:Ve,onSerialize:A,onIframeLoad:x,iframeLoadTimeout:H,onStylesheetLoad:M,stylesheetLoadTimeout:K,keepIframeSrcFn:J,cssCaptured:!1};if(!(Y.type===ge.Element&&Y.tagName==="textarea"&&Y.attributes.value!==void 0)){Y.type===ge.Element&&Y.attributes._cssText!==void 0&&typeof Y.attributes._cssText=="string"&&(ir.cssCaptured=!0);for(var Br=k(Array.from(we.childNodes(e))),zr;!(zr=Br()).done;){var _s=zr.value,pi=Ut(_s,ir);pi&&Y.childNodes.push(pi)}}var yt=null;if(Ts(e)&&(yt=we.shadowRoot(e)))for(var Tt=k(Array.from(we.childNodes(yt))),or;!(or=Tt()).done;){var Wr=or.value,sr=Ut(Wr,ir);sr&&(fr(yt)&&(sr.isShadow=!0),Y.childNodes.push(sr))}}var Pt=we.parentNode(e);return Pt&&lr(Pt)&&fr(Pt)&&(Y.isShadow=!0),Y.type===ge.Element&&Y.tagName==="iframe"&&Cf(e,function(){var tt=e.contentDocument;if(tt&&x){var Lt=Ut(tt,{doc:tt,mirror:t,blockClass:r,blockSelector:o,needsMask:Me,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:g,maskTextFn:d,maskInputFn:y,slimDOMOptions:v,dataURLOptions:_,inlineImages:S,recordCanvas:O,preserveWhiteSpace:Ve,onSerialize:A,onIframeLoad:x,iframeLoadTimeout:H,onStylesheetLoad:M,stylesheetLoadTimeout:K,keepIframeSrcFn:J});Lt&&x(e,Lt)}},H),Y.type===ge.Element&&Y.tagName==="link"&&typeof Y.attributes.rel=="string"&&(Y.attributes.rel==="stylesheet"||Y.attributes.rel==="preload"&&typeof Y.attributes.href=="string"&&Ns(Y.attributes.href)==="css")&&If(e,function(){if(M){var tt=Ut(e,{doc:i,mirror:t,blockClass:r,blockSelector:o,needsMask:Me,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:g,maskTextFn:d,maskInputFn:y,slimDOMOptions:v,dataURLOptions:_,inlineImages:S,recordCanvas:O,preserveWhiteSpace:Ve,onSerialize:A,onIframeLoad:x,iframeLoadTimeout:H,onStylesheetLoad:M,stylesheetLoadTimeout:K,keepIframeSrcFn:J});tt&&M(e,tt)}},K),Y}function Af(e,n){var i=n||{},t=i.mirror,r=t===void 0?new Ls:t,o=i.blockClass,s=o===void 0?"rr-block":o,a=i.blockSelector,u=a===void 0?null:a,c=i.maskTextClass,l=c===void 0?"rr-mask":c,f=i.maskTextSelector,p=f===void 0?null:f,g=i.inlineStylesheet,d=g===void 0?!0:g,y=i.inlineImages,v=y===void 0?!1:y,m=i.recordCanvas,_=m===void 0?!1:m,w=i.maskAllInputs,S=w===void 0?!1:w,C=i.maskTextFn,O=i.maskInputFn,A=i.slimDOM,x=A===void 0?!1:A,L=i.dataURLOptions,H=i.preserveWhiteSpace,M=i.onSerialize,B=i.onIframeLoad,K=i.iframeLoadTimeout,Oe=i.onStylesheetLoad,J=i.stylesheetLoadTimeout,Ae=i.keepIframeSrcFn,Ee=Ae===void 0?function(){return!1}:Ae,ae=S===!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}:S===!1?{password:!0}:S,_e=x===!0||x==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:x==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:x===!1?{}:x;return Ut(e,{doc:e,mirror:r,blockClass:s,blockSelector:u,maskTextClass:l,maskTextSelector:p,skipChild:!1,inlineStylesheet:d,maskInputOptions:ae,maskTextFn:C,maskInputFn:O,slimDOMOptions:_e,dataURLOptions:L,inlineImages:v,recordCanvas:_,preserveWhiteSpace:H,onSerialize:M,onIframeLoad:B,iframeLoadTimeout:K,onStylesheetLoad:Oe,stylesheetLoadTimeout:J,keepIframeSrcFn:Ee,newlyAddedElement:!1})}function Mf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Tf(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var i=function t(){return N(this,t)?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),i}var Si={exports:{}},re=String,qs=function(){return{isColorSupported:!1,reset:re,bold:re,dim:re,italic:re,underline:re,inverse:re,hidden:re,strikethrough:re,black:re,red:re,green:re,yellow:re,blue:re,magenta:re,cyan:re,white:re,gray:re,bgBlack:re,bgRed:re,bgGreen:re,bgYellow:re,bgBlue:re,bgMagenta:re,bgCyan:re,bgWhite:re}};Si.exports=qs(),Si.exports.createColors=qs;var Pf=Si.exports,Lf={},Df=Object.freeze(Object.defineProperty({__proto__:null,default:Lf},Symbol.toStringTag,{value:"Module"})),le=Tf(Df),Gs=Pf,Vs=le,Ci=function(e){be(n,e);function n(t,r,o,s,a,u){var c;return c=e.call(this,t)||this,c.name="CssSyntaxError",c.reason=t,a&&(c.file=a),s&&(c.source=s),u&&(c.plugin=u),typeof r!="undefined"&&typeof o!="undefined"&&(typeof r=="number"?(c.line=r,c.column=o):(c.line=r.line,c.column=r.column,c.endLine=o.line,c.endColumn=o.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,n),c}var i=n.prototype;return i.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},i.showSourceCode=function(r){var o=this;if(!this.source)return"";var s=this.source;r==null&&(r=Gs.isColorSupported),Vs&&r&&(s=Vs(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),l=String(c).length,f,p;if(r){var g=Gs.createColors(!0),d=g.bold,y=g.gray,v=g.red;f=function(m){return d(v(m))},p=function(m){return y(m)}}else f=p=function(m){return m};return a.slice(u,c).map(function(m,_){var w=u+1+_,S=" "+(" "+w).slice(-l)+" | ";if(w===o.line){var C=p(S.replace(/\d/g," "))+m.slice(0,o.column-1).replace(/[^\t]/g," ");return f(">")+p(S)+m+"\n "+C+f("^")}return" "+p(S)+m}).join("\n")},i.toString=function(){var r=this.showSourceCode();return r&&(r="\n\n"+r+"\n"),this.name+": "+this.message+r},n}(Vr(Error)),Ii=Ci;Ci.default=Ci;var nt={};nt.isClean=Symbol("isClean"),nt.my=Symbol("my");var js={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Nf(e){return e[0].toUpperCase()+e.slice(1)}var Ei=function(){function e(i){this.builder=i}var n=e.prototype;return n.atrule=function(t,r){var o="@"+t.name,s=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName!="undefined"?o+=t.raws.afterName:s&&(o+=" "),t.nodes)this.block(t,o+s);else{var a=(t.raws.between||"")+(r?";":"");this.builder(o+s+a,t)}},n.beforeAfter=function(t,r){var o;t.type==="decl"?o=this.raw(t,null,"beforeDecl"):t.type==="comment"?o=this.raw(t,null,"beforeComment"):r==="before"?o=this.raw(t,null,"beforeRule"):o=this.raw(t,null,"beforeClose");for(var s=t.parent,a=0;s&&s.type!=="root";)a+=1,s=s.parent;if(o.includes("\n")){var u=this.raw(t,null,"indent");if(u.length)for(var c=0;c<a;c++)o+=u}return o},n.block=function(t,r){var o=this.raw(t,"between","beforeOpen");this.builder(r+o+"{",t,"start");var s;t.nodes&&t.nodes.length?(this.body(t),s=this.raw(t,"after")):s=this.raw(t,"after","emptyBody"),s&&this.builder(s),this.builder("}",t,"end")},n.body=function(t){for(var r=t.nodes.length-1;r>0&&t.nodes[r].type==="comment";)r-=1;for(var o=this.raw(t,"semicolon"),s=0;s<t.nodes.length;s++){var a=t.nodes[s],u=this.raw(a,"before");u&&this.builder(u),this.stringify(a,r!==s||o)}},n.comment=function(t){var r=this.raw(t,"left","commentLeft"),o=this.raw(t,"right","commentRight");this.builder("/*"+r+t.text+o+"*/",t)},n.decl=function(t,r){var o=this.raw(t,"between","colon"),s=t.prop+o+this.rawValue(t,"value");t.important&&(s+=t.raws.important||" !important"),r&&(s+=";"),this.builder(s,t)},n.document=function(t){this.body(t)},n.raw=function(t,r,o){var s;if(o||(o=r),r&&(s=t.raws[r],typeof s!="undefined"))return s;var a=t.parent;if(o==="before"&&(!a||a.type==="root"&&a.first===t||a&&a.type==="document"))return"";if(!a)return js[o];var u=t.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[o]!="undefined")return u.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(t,o);var c="raw"+Nf(o);return this[c]?s=this[c](u,t):u.walk(function(l){if(s=l.raws[r],typeof s!="undefined")return!1}),typeof s=="undefined"&&(s=js[o]),u.rawCache[o]=s,s},n.rawBeforeClose=function(t){var r;return t.walk(function(o){if(o.nodes&&o.nodes.length>0&&typeof o.raws.after!="undefined")return r=o.raws.after,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(t,r){var o;return t.walkComments(function(s){if(typeof s.raws.before!="undefined")return o=s.raws.before,o.includes("\n")&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(r,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeDecl=function(t,r){var o;return t.walkDecls(function(s){if(typeof s.raws.before!="undefined")return o=s.raws.before,o.includes("\n")&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(r,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeOpen=function(t){var r;return t.walk(function(o){if(o.type!=="decl"&&(r=o.raws.between,typeof r!="undefined"))return!1}),r},n.rawBeforeRule=function(t){var r;return t.walk(function(o){if(o.nodes&&(o.parent!==t||t.first!==o)&&typeof o.raws.before!="undefined")return r=o.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawColon=function(t){var r;return t.walkDecls(function(o){if(typeof o.raws.between!="undefined")return r=o.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(t){var r;return t.walk(function(o){if(o.nodes&&o.nodes.length===0&&(r=o.raws.after,typeof r!="undefined"))return!1}),r},n.rawIndent=function(t){if(t.raws.indent)return t.raws.indent;var r;return t.walk(function(o){var s=o.parent;if(s&&s!==t&&s.parent&&s.parent===t&&typeof o.raws.before!="undefined"){var a=o.raws.before.split("\n");return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r},n.rawSemicolon=function(t){var r;return t.walk(function(o){if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(r=o.raws.semicolon,typeof r!="undefined"))return!1}),r},n.rawValue=function(t,r){var o=t[r],s=t.raws[r];return s&&s.value===o?s.raw:o},n.root=function(t){this.body(t),t.raws.after&&this.builder(t.raws.after)},n.rule=function(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")},n.stringify=function(t,r){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,r)},e}(),Hs=Ei;Ei.default=Ei;var $f=Hs;function ki(e,n){var i=new $f(n);i.stringify(e)}var Zr=ki;ki.default=ki;var Qr=nt.isClean,Ff=nt.my,Uf=Ii,Bf=Hs,zf=Zr;function Oi(e,n){var i=new e.constructor;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t!=="proxyCache"){var r=e[t],o=typeof r=="undefined"?"undefined":z(r);t==="parent"&&o==="object"?n&&(i[t]=n):t==="source"?i[t]=r:Array.isArray(r)?i[t]=r.map(function(s){return Oi(s,i)}):(o==="object"&&r!==null&&(r=Oi(r)),i[t]=r)}return i}var xi=function(){function e(i){i===void 0&&(i={}),this.raws={},this[Qr]=!1,this[Ff]=!0;for(var t in i)if(t==="nodes"){this.nodes=[];for(var r=k(i[t]),o;!(o=r()).done;){var s=o.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[t]=i[t]}var n=e.prototype;return n.addToError=function(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){var r=this.source;t.stack=t.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return t},n.after=function(t){return this.parent.insertAfter(this,t),this},n.assign=function(t){t===void 0&&(t={});for(var r in t)this[r]=t[r];return this},n.before=function(t){return this.parent.insertBefore(this,t),this},n.cleanRaws=function(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between},n.clone=function(t){t===void 0&&(t={});var r=Oi(this);for(var o in t)r[o]=t[o];return r},n.cloneAfter=function(t){t===void 0&&(t={});var r=this.clone(t);return this.parent.insertAfter(this,r),r},n.cloneBefore=function(t){t===void 0&&(t={});var r=this.clone(t);return this.parent.insertBefore(this,r),r},n.error=function(t,r){if(r===void 0&&(r={}),this.source){var o=this.rangeBy(r),s=o.end,a=o.start;return this.source.input.error(t,{column:a.column,line:a.line},{column:s.column,line:s.line},r)}return new Uf(t)},n.getProxyProcessor=function(){return{get:function(r,o){return o==="proxyOf"?r:o==="root"?function(){return r.root().toProxy()}:r[o]},set:function(r,o,s){return r[o]===s||(r[o]=s,(o==="prop"||o==="value"||o==="name"||o==="params"||o==="important"||o==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[Qr]){this[Qr]=!1;for(var t=this;t=t.parent;)t[Qr]=!1}},n.next=function(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t+1]}},n.positionBy=function(t,r){var o=this.source.start;if(t.index)o=this.positionInside(t.index,r);else if(t.word){r=this.toString();var s=r.indexOf(t.word);s!==-1&&(o=this.positionInside(s,r))}return o},n.positionInside=function(t,r){for(var o=r||this.toString(),s=this.source.start.column,a=this.source.start.line,u=0;u<t;u++)o[u]==="\n"?(s=1,a+=1):s+=1;return{column:s,line:a}},n.prev=function(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t-1]}},n.rangeBy=function(t){var r={column:this.source.start.column,line:this.source.start.line},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(t.word){var s=this.toString(),a=s.indexOf(t.word);a!==-1&&(r=this.positionInside(a,s),o=this.positionInside(a+t.word.length,s))}else t.start?r={column:t.start.column,line:t.start.line}:t.index&&(r=this.positionInside(t.index)),t.end?o={column:t.end.column,line:t.end.line}:typeof t.endIndex=="number"?o=this.positionInside(t.endIndex):t.index&&(o=this.positionInside(t.index+1));return(o.line<r.line||o.line===r.line&&o.column<=r.column)&&(o={column:r.column+1,line:r.line}),{end:o,start:r}},n.raw=function(t,r){var o=new Bf;return o.raw(this,t,r)},n.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},n.replaceWith=function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];if(this.parent){for(var s=this,a=!1,u=k(r),c;!(c=u()).done;){var l=c.value;l===this?a=!0:a?(this.parent.insertAfter(s,l),s=l):this.parent.insertBefore(s,l)}a||this.remove()}return this},n.root=function(){for(var t=this;t.parent&&t.parent.type!=="document";)t=t.parent;return t},n.toJSON=function(t,r){var o={},s=r==null;r=r||new Map;var a=0;for(var u in this)if(Object.prototype.hasOwnProperty.call(this,u)&&!(u==="parent"||u==="proxyCache")){var c=this[u];if(Array.isArray(c))o[u]=c.map(function(f){return(typeof f=="undefined"?"undefined":z(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof c=="undefined"?"undefined":z(c))==="object"&&c.toJSON)o[u]=c.toJSON(null,r);else if(u==="source"){var l=r.get(c.input);l==null&&(l=a,r.set(c.input,a),a++),o[u]={end:c.end,inputId:l,start:c.start}}else o[u]=c}return s&&(o.inputs=[].concat(r.keys()).map(function(f){return f.toJSON()})),o},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(t){t===void 0&&(t=zf),t.stringify&&(t=t.stringify);var r="";return t(this,function(o){r+=o}),r},n.warn=function(t,r,o){var s={node:this};for(var a in o)s[a]=o[a];return t.warn(r,s)},me(e,[{key:"proxyOf",get:function(){return this}}]),e}(),en=xi;xi.default=xi;var Wf=en,Ri=function(e){be(n,e);function n(i){var t;return i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=j({},i,{value:String(i.value)})),t=e.call(this,i)||this,t.type="decl",t}return me(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n}(Wf),tn=Ri;Ri.default=Ri;var qf="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Gf=function(e){e===void 0&&(e=21);for(var n="",i=e;i--;)n+=qf[Math.random()*64|0];return n},Vf={nanoid:Gf},Ys=le.SourceMapConsumer,Ks=le.SourceMapGenerator,jf=le.existsSync,Hf=le.readFileSync,Ai=le.dirname,Yf=le.join;function Kf(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var Mi=function(){function e(i,t){if(t.map!==!1){this.loadAnnotation(i),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,o=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Ai(this.mapFile)),o&&(this.text=o)}}var n=e.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new Ys(this.text)),this.consumerCache},n.decodeInline=function(t){var r=/^data:application\/json;charset=utf-?8;base64,/,o=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(s.test(t)||a.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(r.test(t)||o.test(t))return Kf(t.substr(RegExp.lastMatch.length));var u=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},n.getAnnotationURL=function(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(t){return(typeof t=="undefined"?"undefined":z(t))!=="object"?!1:typeof t.mappings=="string"||typeof t._mappings=="string"||Array.isArray(t.sections)},n.loadAnnotation=function(t){var r=t.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var o=t.lastIndexOf(r.pop()),s=t.indexOf("*/",o);o>-1&&s>-1&&(this.annotation=this.getAnnotationURL(t.substring(o,s)))}},n.loadFile=function(t){if(this.root=Ai(t),jf(t))return this.mapFile=t,Hf(t,"utf-8").toString().trim()},n.loadMap=function(t,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){var o=r(t);if(o){var s=this.loadFile(o);if(!s)throw new Error("Unable to load previous source map: "+o.toString());return s}}else{if(N(r,Ys))return Ks.fromSourceMap(r).toString();if(N(r,Ks))return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var a=this.annotation;return t&&(a=Yf(Ai(t),a)),this.loadFile(a)}}},n.startWith=function(t,r){return t?t.substr(0,r.length)===r:!1},n.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),Js=Mi;Mi.default=Mi;var Jf=le.SourceMapConsumer,Xf=le.SourceMapGenerator,Xs=le.fileURLToPath,rn=le.pathToFileURL,Ti=le.isAbsolute,Pi=le.resolve,Zf=Vf.nanoid,Li=le,Zs=Ii,Qf=Js,Di=Symbol("fromOffsetCache"),eh=!!(Jf&&Xf),Qs=!!(Pi&&Ti),nn=function(){function e(i,t){if(t===void 0&&(t={}),i===null||typeof i=="undefined"||(typeof i=="undefined"?"undefined":z(i))==="object"&&!i.toString)throw new Error("PostCSS received "+i+" instead of CSS string");if(this.css=i.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Qs||/^\w+:\/\//.test(t.from)||Ti(t.from)?this.file=t.from:this.file=Pi(t.from)),Qs&&eh){var r=new Qf(this.css,t);if(r.text){this.map=r;var o=r.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+Zf(6)+">"),this.map&&(this.map.file=this.from)}var n=e.prototype;return n.error=function(t,r,o,s){s===void 0&&(s={});var a,u,c;if(r&&(typeof r=="undefined"?"undefined":z(r))==="object"){var l=r,f=o;if(typeof l.offset=="number"){var p=this.fromOffset(l.offset);r=p.line,o=p.col}else r=l.line,o=l.column;if(typeof f.offset=="number"){var g=this.fromOffset(f.offset);u=g.line,c=g.col}else u=f.line,c=f.column}else if(!o){var d=this.fromOffset(r);r=d.line,o=d.col}var y=this.origin(r,o,u,c);return y?a=new Zs(t,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,s.plugin):a=new Zs(t,u===void 0?r:{column:o,line:r},u===void 0?o:{column:c,line:u},this.css,this.file,s.plugin),a.input={column:o,endColumn:c,endLine:u,line:r,source:this.css},this.file&&(rn&&(a.input.url=rn(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(t){var r,o;if(this[Di])o=this[Di];else{var s=this.css.split("\n");o=new Array(s.length);for(var a=0,u=0,c=s.length;u<c;u++)o[u]=a,a+=s[u].length+1;this[Di]=o}r=o[o.length-1];var l=0;if(t>=r)l=o.length-1;else for(var f=o.length-2,p;l<f;)if(p=l+(f-l>>1),t<o[p])f=p-1;else if(t>=o[p+1])l=p+1;else{l=p;break}return{col:t-o[l]+1,line:l+1}},n.mapResolve=function(t){return/^\w+:\/\//.test(t)?t:Pi(this.map.consumer().sourceRoot||this.map.root||".",t)},n.origin=function(t,r,o,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:r,line:t});if(!u.source)return!1;var c;typeof o=="number"&&(c=a.originalPositionFor({column:s,line:o}));var l;Ti(u.source)?l=rn(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||rn(this.map.mapFile));var f={column:u.column,endColumn:c&&c.column,endLine:c&&c.line,line:u.line,url:l.toString()};if(l.protocol==="file:")if(Xs)f.file=Xs(l);else throw new Error("file: protocol is not available in this PostCSS build");var p=a.sourceContentFor(u.source);return p&&(f.source=p),f},n.toJSON=function(){for(var t={},r=0,o=["hasBOM","css","file","id"];r<o.length;r++){var s=o[r];this[s]!=null&&(t[s]=this[s])}return this.map&&(t.map=j({},this.map),t.map.consumerCache&&(t.map.consumerCache=void 0)),t},me(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),on=nn;nn.default=nn,Li&&Li.registerInput&&Li.registerInput(nn);var ea=le.SourceMapConsumer,sn=le.SourceMapGenerator,an=le.dirname,ta=le.relative,ra=le.resolve,na=le.sep,ia=le.pathToFileURL,th=on,rh=!!(ea&&sn),nh=!!(an&&ra&&ta&&na),ih=function(){function e(i,t,r,o){this.stringify=i,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var n=e.prototype;return n.addAnnotation=function(){var t;this.isInline()?t="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?t=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?t=this.mapOpts.annotation(this.opts.to,this.root):t=this.outputFile()+".map";var r="\n";this.css.includes("\r\n")&&(r="\r\n"),this.css+=r+"/*# sourceMappingURL="+t+" */"},n.applyPrevMaps=function(){for(var t=k(this.previous()),r;!(r=t()).done;){var o=r.value,s=this.toUrl(this.path(o.file)),a=o.root||an(o.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new ea(o.text),u.sourcesContent&&(u.sourcesContent=null)):u=o.consumer(),this.map.applySourceMap(u,s,this.toUrl(this.path(a)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var t,r=this.root.nodes.length-1;r>=0;r--)t=this.root.nodes[r],t.type==="comment"&&t.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},n.generate=function(){if(this.clearAnnotation(),nh&&rh&&this.isMap())return this.generateMap();var t="";return this.stringify(this.root,function(r){t+=r}),[t]},n.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=sn.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new sn({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]},n.generateString=function(){var t=this;this.css="",this.map=new sn({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,o=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,c;this.stringify(this.root,function(l,f,p){if(t.css+=l,f&&p!=="end"&&(a.generated.line=r,a.generated.column=o-1,f.source&&f.source.start?(a.source=t.sourcePath(f),a.original.line=f.source.start.line,a.original.column=f.source.start.column-1,t.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,t.map.addMapping(a))),u=l.match(/\n/g),u?(r+=u.length,c=l.lastIndexOf("\n"),o=l.length-c):o+=l.length,f&&p!=="start"){var g=f.parent||{raws:{}},d=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!d||f!==g.last||g.raws.semicolon)&&(f.source&&f.source.end?(a.source=t.sourcePath(f),a.original.line=f.source.end.line,a.original.column=f.source.end.column-1,a.generated.line=r,a.generated.column=o-2,t.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=o-1,t.map.addMapping(a)))}})},n.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(t){return t.annotation}):!0},n.isInline=function(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;var t=this.mapOpts.annotation;return typeof t!="undefined"&&t!==!0?!1:this.previous().length?this.previous().some(function(r){return r.inline}):!0},n.isMap=function(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0},n.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(t){return t.withContent()}):!0},n.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},n.path=function(t){if(this.mapOpts.absolute||t.charCodeAt(0)===60||/^\w+:\/\//.test(t))return t;var r=this.memoizedPaths.get(t);if(r)return r;var o=this.opts.to?an(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(o=an(ra(o,this.mapOpts.annotation)));var s=ta(o,t);return this.memoizedPaths.set(t,s),s},n.previous=function(){var t=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(o){if(o.source&&o.source.input.map){var s=o.source.input.map;t.previousMaps.includes(s)||t.previousMaps.push(s)}});else{var r=new th(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},n.setSourcesContent=function(){var t=this,r={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!r[a]){r[a]=!0;var u=t.usesFileUrls?t.toFileUrl(a):t.toUrl(t.path(a));t.map.setSourceContent(u,s.source.input.css)}}});else if(this.css){var o=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(o,this.css)}},n.sourcePath=function(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))},n.toBase64=function(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))},n.toFileUrl=function(t){var r=this.memoizedFileURLs.get(t);if(r)return r;if(ia){var o=ia(t).toString();return this.memoizedFileURLs.set(t,o),o}else throw new Error("`map.absolute` option is not available in this PostCSS build")},n.toUrl=function(t){var r=this.memoizedURLs.get(t);if(r)return r;na==="\\"&&(t=t.replace(/\\/g,"/"));var o=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,o),o},e}(),oa=ih,oh=en,Ni=function(e){be(n,e);function n(i){var t;return t=e.call(this,i)||this,t.type="comment",t}return n}(oh),un=Ni;Ni.default=Ni;var sa=nt.isClean,aa=nt.my,ua=tn,ca=un,sh=en,la,$i,Fi,fa;function ha(e){return e.map(function(n){return n.nodes&&(n.nodes=ha(n.nodes)),delete n.source,n})}function pa(e){if(e[sa]=!1,e.proxyOf.nodes)for(var n=k(e.proxyOf.nodes),i;!(i=n()).done;){var t=i.value;pa(t)}}var je=function(e){be(n,e);function n(){return e.apply(this,arguments)||this}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];for(var a=k(o),u;!(u=a()).done;)for(var c=u.value,l=this.normalize(c,this.last),f=k(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.push(g)}return this.markDirty(),this},i.cleanRaws=function(r){if(e.prototype.cleanRaws.call(this,r),this.nodes)for(var o=k(this.nodes),s;!(s=o()).done;){var a=s.value;a.cleanRaws(r)}},i.each=function(r){if(this.proxyOf.nodes){for(var o=this.getIterator(),s,a;this.indexes[o]<this.proxyOf.nodes.length&&(s=this.indexes[o],a=r(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[o]+=1;return delete this.indexes[o],a}},i.every=function(r){return this.nodes.every(r)},i.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},i.getProxyProcessor=function(){return{get:function(o,s){return s==="proxyOf"?o:o[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];var l;return(l=o)[s].apply(l,[].concat(u.map(function(f){return typeof f=="function"?function(p,g){return f(p.toProxy(),g)}:f})))}:s==="every"||s==="some"?function(a){return o[s](function(u){for(var c=arguments.length,l=new Array(c>1?c-1:0),f=1;f<c;f++)l[f-1]=arguments[f];return a.apply(void 0,[].concat([u.toProxy()],l))})}:s==="root"?function(){return o.root().toProxy()}:s==="nodes"?o.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?o[s].toProxy():o[s]:o[s]},set:function(o,s,a){return o[s]===a||(o[s]=a,(s==="name"||s==="params"||s==="selector")&&o.markDirty()),!0}}},i.index=function(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))},i.insertAfter=function(r,o){var s=this.index(r),a=this.normalize(o,this.proxyOf.nodes[s]).reverse();s=this.index(r);for(var u=k(a),c;!(c=u()).done;){var l=c.value;this.proxyOf.nodes.splice(s+1,0,l)}var f;for(var p in this.indexes)f=this.indexes[p],s<f&&(this.indexes[p]=f+a.length);return this.markDirty(),this},i.insertBefore=function(r,o){var s=this.index(r),a=s===0?"prepend":!1,u=this.normalize(o,this.proxyOf.nodes[s],a).reverse();s=this.index(r);for(var c=k(u),l;!(l=c()).done;){var f=l.value;this.proxyOf.nodes.splice(s,0,f)}var p;for(var g in this.indexes)p=this.indexes[g],s<=p&&(this.indexes[g]=p+u.length);return this.markDirty(),this},i.normalize=function(r,o){var s=this;if(typeof r=="string")r=ha(la(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=k(r),u;!(u=a()).done;){var c=u.value;c.parent&&c.parent.removeChild(c,"ignore")}}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(var l=k(r),f;!(f=l()).done;){var p=f.value;p.parent&&p.parent.removeChild(p,"ignore")}}else if(r.type)r=[r];else if(r.prop){if(typeof r.value=="undefined")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new ua(r)]}else if(r.selector)r=[new $i(r)];else if(r.name)r=[new Fi(r)];else if(r.text)r=[new ca(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(d){return d[aa]||n.rebuild(d),d=d.proxyOf,d.parent&&d.parent.removeChild(d),d[sa]&&pa(d),typeof d.raws.before=="undefined"&&o&&typeof o.raws.before!="undefined"&&(d.raws.before=o.raws.before.replace(/\S/g,"")),d.parent=s.proxyOf,d});return g},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];o=o.reverse();for(var a=k(o),u;!(u=a()).done;){for(var c=u.value,l=this.normalize(c,this.first,"prepend").reverse(),f=k(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.unshift(g)}for(var d in this.indexes)this.indexes[d]=this.indexes[d]+l.length}return this.markDirty(),this},i.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},i.removeAll=function(){for(var r=k(this.proxyOf.nodes),o;!(o=r()).done;){var s=o.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},i.removeChild=function(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);var o;for(var s in this.indexes)o=this.indexes[s],o>=r&&(this.indexes[s]=o-1);return this.markDirty(),this},i.replaceValues=function(r,o,s){return s||(s=o,o={}),this.walkDecls(function(a){o.props&&!o.props.includes(a.prop)||o.fast&&!a.value.includes(o.fast)||(a.value=a.value.replace(r,s))}),this.markDirty(),this},i.some=function(r){return this.nodes.some(r)},i.walk=function(r){return this.each(function(o,s){var a;try{a=r(o,s)}catch(u){throw o.addToError(u)}return a!==!1&&o.walk&&(a=o.walk(r)),a})},i.walkAtRules=function(r,o){return o?N(r,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&r.test(s.name))return o(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="atrule")return o(s,a)}))},i.walkComments=function(r){return this.walk(function(o,s){if(o.type==="comment")return r(o,s)})},i.walkDecls=function(r,o){return o?N(r,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&r.test(s.prop))return o(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="decl")return o(s,a)}))},i.walkRules=function(r,o){return o?N(r,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&r.test(s.selector))return o(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="rule")return o(s,a)}))},me(n,[{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]}}]),n}(sh);je.registerParse=function(e){la=e},je.registerRule=function(e){$i=e},je.registerAtRule=function(e){Fi=e},je.registerRoot=function(e){fa=e};var bt=je;je.default=je,je.rebuild=function(e){e.type==="atrule"?Object.setPrototypeOf(e,Fi.prototype):e.type==="rule"?Object.setPrototypeOf(e,$i.prototype):e.type==="decl"?Object.setPrototypeOf(e,ua.prototype):e.type==="comment"?Object.setPrototypeOf(e,ca.prototype):e.type==="root"&&Object.setPrototypeOf(e,fa.prototype),e[aa]=!0,e.nodes&&e.nodes.forEach(function(n){je.rebuild(n)})};var ah=bt,da,va,pr=function(e){be(n,e);function n(t){var r;return r=e.call(this,j({type:"document"},t))||this,r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.toResult=function(r){r===void 0&&(r={});var o=new da(new va,this,r);return o.stringify()},n}(ah);pr.registerLazyResult=function(e){da=e},pr.registerProcessor=function(e){va=e};var Ui=pr;pr.default=pr;var ga={},ma=function(n){ga[n]||(ga[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},Bi=function(){function e(i,t){if(t===void 0&&(t={}),this.type="warning",this.text=i,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 o in t)this[o]=t[o]}var n=e.prototype;return n.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}(),ya=Bi;Bi.default=Bi;var uh=ya,zi=function(){function e(i,t,r){this.processor=i,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var n=e.prototype;return n.toString=function(){return this.css},n.warn=function(t,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var o=new uh(t,r);return this.messages.push(o),o},n.warnings=function(){return this.messages.filter(function(t){return t.type==="warning"})},me(e,[{key:"content",get:function(){return this.css}}]),e}(),Wi=zi;zi.default=zi;var qi=39,_a=34,cn=92,ba=47,ln=10,dr=32,fn=12,hn=9,pn=13,ch=91,lh=93,fh=40,hh=41,ph=123,dh=125,vh=59,gh=42,mh=58,yh=64,dn=/[\t\n\f\r "#'()/;[\\\]{}]/g,vn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,_h=/.[\r\n"'(/\\]/,wa=/[\da-f]/i,bh=function(n,i){i===void 0&&(i={});var t=n.css.valueOf(),r=i.ignoreErrors,o,s,a,u,c,l,f,p,g,d,y=t.length,v=0,m=[],_=[];function w(){return v}function S(x){throw n.error("Unclosed "+x,v)}function C(){return _.length===0&&v>=y}function O(x){if(_.length)return _.pop();if(!(v>=y)){var L=x?x.ignoreUnclosed:!1;switch(o=t.charCodeAt(v),o){case ln:case dr:case hn:case pn:case fn:{s=v;do s+=1,o=t.charCodeAt(s);while(o===dr||o===ln||o===hn||o===pn||o===fn);d=["space",t.slice(v,s)],v=s-1;break}case ch:case lh:case ph:case dh:case mh:case vh:case hh:{var H=String.fromCharCode(o);d=[H,H,v];break}case fh:{if(p=m.length?m.pop()[1]:"",g=t.charCodeAt(v+1),p==="url"&&g!==qi&&g!==_a&&g!==dr&&g!==ln&&g!==hn&&g!==fn&&g!==pn){s=v;do{if(l=!1,s=t.indexOf(")",s+1),s===-1)if(r||L){s=v;break}else S("bracket");for(f=s;t.charCodeAt(f-1)===cn;)f-=1,l=!l}while(l);d=["brackets",t.slice(v,s+1),v,s],v=s}else s=t.indexOf(")",v+1),u=t.slice(v,s+1),s===-1||_h.test(u)?d=["(","(",v]:(d=["brackets",u,v,s],v=s);break}case qi:case _a:{a=o===qi?"'":'"',s=v;do{if(l=!1,s=t.indexOf(a,s+1),s===-1)if(r||L){s=v+1;break}else S("string");for(f=s;t.charCodeAt(f-1)===cn;)f-=1,l=!l}while(l);d=["string",t.slice(v,s+1),v,s],v=s;break}case yh:{dn.lastIndex=v+1,dn.test(t),dn.lastIndex===0?s=t.length-1:s=dn.lastIndex-2,d=["at-word",t.slice(v,s+1),v,s],v=s;break}case cn:{for(s=v,c=!0;t.charCodeAt(s+1)===cn;)s+=1,c=!c;if(o=t.charCodeAt(s+1),c&&o!==ba&&o!==dr&&o!==ln&&o!==hn&&o!==pn&&o!==fn&&(s+=1,wa.test(t.charAt(s)))){for(;wa.test(t.charAt(s+1));)s+=1;t.charCodeAt(s+1)===dr&&(s+=1)}d=["word",t.slice(v,s+1),v,s],v=s;break}default:{o===ba&&t.charCodeAt(v+1)===gh?(s=t.indexOf("*/",v+2)+1,s===0&&(r||L?s=t.length:S("comment")),d=["comment",t.slice(v,s+1),v,s],v=s):(vn.lastIndex=v+1,vn.test(t),vn.lastIndex===0?s=t.length-1:s=vn.lastIndex-2,d=["word",t.slice(v,s+1),v,s],m.push(d),v=s);break}}return v++,d}}function A(x){_.push(x)}return{back:A,endOfFile:C,nextToken:O,position:w}},Sa=bt,gn=function(e){be(n,e);function n(t){var r;return r=e.call(this,t)||this,r.type="atrule",r}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=e.prototype.append).call.apply(a,[].concat([this],o))},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=e.prototype.prepend).call.apply(a,[].concat([this],o))},n}(Sa),Gi=gn;gn.default=gn,Sa.registerAtRule(gn);var Ca=bt,Ia,Ea,Bt=function(e){be(n,e);function n(t){var r;return r=e.call(this,t)||this,r.type="root",r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.normalize=function(r,o,s){var a=e.prototype.normalize.call(this,r);if(o){if(s==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(var u=k(a),c;!(c=u()).done;){var l=c.value;l.raws.before=o.raws.before}}return a},i.removeChild=function(r,o){var s=this.index(r);return!o&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),e.prototype.removeChild.call(this,r)},i.toResult=function(r){r===void 0&&(r={});var o=new Ia(new Ea,this,r);return o.stringify()},n}(Ca);Bt.registerLazyResult=function(e){Ia=e},Bt.registerProcessor=function(e){Ea=e};var vr=Bt;Bt.default=Bt,Ca.registerRoot(Bt);var gr={comma:function(n){return gr.split(n,[","],!0)},space:function(n){var i=[" ","\n"," "];return gr.split(n,i)},split:function(n,i,t){for(var r=[],o="",s=!1,a=0,u=!1,c="",l=!1,f=k(n),p;!(p=f()).done;){var g=p.value;l?l=!1:g==="\\"?l=!0:u?g===c&&(u=!1):g==='"'||g==="'"?(u=!0,c=g):g==="("?a+=1:g===")"?a>0&&(a-=1):a===0&&i.includes(g)&&(s=!0),s?(o!==""&&r.push(o.trim()),o="",s=!1):o+=g}return(t||o!=="")&&r.push(o.trim()),r}},ka=gr;gr.default=gr;var Oa=bt,wh=ka,mn=function(e){be(n,e);function n(i){var t;return t=e.call(this,i)||this,t.type="rule",t.nodes||(t.nodes=[]),t}return me(n,[{key:"selectors",get:function(){return wh.comma(this.selector)},set:function(t){var r=this.selector?this.selector.match(/,\s*/):null,o=r?r[0]:","+this.raw("between","beforeOpen");this.selector=t.join(o)}}]),n}(Oa),Vi=mn;mn.default=mn,Oa.registerRule(mn);var Sh=tn,Ch=bh,Ih=un,Eh=Gi,kh=vr,xa=Vi,Ra={empty:!0,space:!0};function Oh(e){for(var n=e.length-1;n>=0;n--){var i=e[n],t=i[3]||i[2];if(t)return t}}var xh=function(){function e(i){this.input=i,this.root=new kh,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}var n=e.prototype;return n.atrule=function(t){var r=new Eh;r.name=t[1].slice(1),r.name===""&&this.unnamedAtrule(r,t),this.init(r,t[2]);for(var o,s,a,u=!1,c=!1,l=[],f=[];!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),o=t[0],o==="("||o==="["?f.push(o==="("?")":"]"):o==="{"&&f.length>0?f.push("}"):o===f[f.length-1]&&f.pop(),f.length===0)if(o===";"){r.source.end=this.getPosition(t[2]),r.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){c=!0;break}else if(o==="}"){if(l.length>0){for(a=l.length-1,s=l[a];s&&s[0]==="space";)s=l[--a];s&&(r.source.end=this.getPosition(s[3]||s[2]),r.source.end.offset++)}this.end(t);break}else l.push(t);else l.push(t);if(this.tokenizer.endOfFile()){u=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(r.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(r,"params",l),u&&(t=l[l.length-1],r.source.end=this.getPosition(t[3]||t[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),c&&(r.nodes=[],this.current=r)},n.checkMissedSemicolon=function(t){var r=this.colon(t);if(r!==!1){for(var o=0,s,a=r-1;a>=0&&(s=t[a],!(s[0]!=="space"&&(o+=1,o===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},n.colon=function(t){for(var r=0,o,s,a,u=k(t.entries()),c;!(c=u()).done;){var l=c.value,f=l[0],p=l[1];if(o=p,s=o[0],s==="("&&(r+=1),s===")"&&(r-=1),r===0&&s===":")if(!a)this.doubleColon(o);else{if(a[0]==="word"&&a[1]==="progid")continue;return f}a=o}return!1},n.comment=function(t){var r=new Ih;this.init(r,t[2]),r.source.end=this.getPosition(t[3]||t[2]),r.source.end.offset++;var o=t[1].slice(2,-2);if(/^\s*$/.test(o))r.text="",r.raws.left=o,r.raws.right="";else{var s=o.match(/^(\s*)([^]*\S)(\s*)$/);r.text=s[2],r.raws.left=s[1],r.raws.right=s[3]}},n.createTokenizer=function(){this.tokenizer=Ch(this.input)},n.decl=function(t,r){var o=new Sh;this.init(o,t[0][2]);var s=t[t.length-1];for(s[0]===";"&&(this.semicolon=!0,t.pop()),o.source.end=this.getPosition(s[3]||s[2]||Oh(t)),o.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),o.raws.before+=t.shift()[1];for(o.source.start=this.getPosition(t[0][2]),o.prop="";t.length;){var a=t[0][0];if(a===":"||a==="space"||a==="comment")break;o.prop+=t.shift()[1]}o.raws.between="";for(var u;t.length;)if(u=t.shift(),u[0]===":"){o.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),o.raws.between+=u[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));for(var c=[],l;t.length&&(l=t[0][0],!(l!=="space"&&l!=="comment"));)c.push(t.shift());this.precheckMissedSemicolon(t);for(var f=t.length-1;f>=0;f--){if(u=t[f],u[1].toLowerCase()==="!important"){o.important=!0;var p=this.stringFrom(t,f);p=this.spacesFromEnd(t)+p,p!==" !important"&&(o.raws.important=p);break}else if(u[1].toLowerCase()==="important"){for(var g=t.slice(0),d="",y=f;y>0;y--){var v=g[y][0];if(d.trim().indexOf("!")===0&&v!=="space")break;d=g.pop()[1]+d}d.trim().indexOf("!")===0&&(o.important=!0,o.raws.important=d,t=g)}if(u[0]!=="space"&&u[0]!=="comment")break}var m=t.some(function(_){return _[0]!=="space"&&_[0]!=="comment"});m&&(o.raws.between+=c.map(function(_){return _[1]}).join(""),c=[]),this.raw(o,"value",c.concat(t),r),o.value.includes(":")&&!r&&this.checkMissedSemicolon(t)},n.doubleColon=function(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})},n.emptyRule=function(t){var r=new xa;this.init(r,t[2]),r.selector="",r.raws.between="",this.current=r},n.end=function(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)},n.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())},n.freeSemicolon=function(t){if(this.spaces+=t[1],this.current.nodes){var r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="")}},n.getPosition=function(t){var r=this.input.fromOffset(t);return{column:r.col,line:r.line,offset:t}},n.init=function(t,r){this.current.push(t),t.source={input:this.input,start:this.getPosition(r)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)},n.other=function(t){for(var r=!1,o=null,s=!1,a=null,u=[],c=t[1].startsWith("--"),l=[],f=t;f;){if(o=f[0],l.push(f),o==="("||o==="[")a||(a=f),u.push(o==="("?")":"]");else if(c&&s&&o==="{")a||(a=f),u.push("}");else if(u.length===0)if(o===";")if(s){this.decl(l,c);return}else break;else if(o==="{"){this.rule(l);return}else if(o==="}"){this.tokenizer.back(l.pop()),r=!0;break}else o===":"&&(s=!0);else o===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),u.length>0&&this.unclosedBracket(a),r&&s){if(!c)for(;l.length&&(f=l[l.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,c)}else this.unknownWord(l)},n.parse=function(){for(var t;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()},n.precheckMissedSemicolon=function(){},n.raw=function(t,r,o,s){for(var a,u,c=o.length,l="",f=!0,p,g,d=0;d<c;d+=1)a=o[d],u=a[0],u==="space"&&d===c-1&&!s?f=!1:u==="comment"?(g=o[d-1]?o[d-1][0]:"empty",p=o[d+1]?o[d+1][0]:"empty",!Ra[g]&&!Ra[p]?l.slice(-1)===","?f=!1:l+=a[1]:f=!1):l+=a[1];if(!f){var y=o.reduce(function(v,m){return v+m[1]},"");t.raws[r]={raw:y,value:l}}t[r]=l},n.rule=function(t){t.pop();var r=new xa;this.init(r,t[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(r,"selector",t),this.current=r},n.spacesAndCommentsFromEnd=function(t){for(var r,o="";t.length&&(r=t[t.length-1][0],!(r!=="space"&&r!=="comment"));)o=t.pop()[1]+o;return o},n.spacesAndCommentsFromStart=function(t){for(var r,o="";t.length&&(r=t[0][0],!(r!=="space"&&r!=="comment"));)o+=t.shift()[1];return o},n.spacesFromEnd=function(t){for(var r,o="";t.length&&(r=t[t.length-1][0],r==="space");)o=t.pop()[1]+o;return o},n.stringFrom=function(t,r){for(var o="",s=r;s<t.length;s++)o+=t[s][1];return t.splice(r,t.length-r),o},n.unclosedBlock=function(){var t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)},n.unclosedBracket=function(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})},n.unexpectedClose=function(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})},n.unknownWord=function(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})},n.unnamedAtrule=function(t,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},e}(),Rh=xh,Ah=bt,Mh=Rh,Th=on;function yn(e,n){var i=new Th(e,n),t=new Mh(i);try{t.parse()}catch(r){throw process.env.NODE_ENV!=="production"&&r.name==="CssSyntaxError"&&n&&n.from&&(/\.scss$/i.test(n.from)?r.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(n.from)?r.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(n.from)&&(r.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),r}return t.root}var ji=yn;yn.default=yn,Ah.registerParse(yn);var Ue=nt.isClean,Ph=nt.my,Lh=oa,Dh=Zr,Nh=bt,$h=Ui,Fh=ma,Aa=Wi,Uh=ji,Bh=vr,zh={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Wh={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},qh={Once:!0,postcssPlugin:!0,prepare:!0},zt=0;function mr(e){return(typeof e=="undefined"?"undefined":z(e))==="object"&&typeof e.then=="function"}function Ma(e){var n=!1,i=zh[e.type];return e.type==="decl"?n=e.prop.toLowerCase():e.type==="atrule"&&(n=e.name.toLowerCase()),n&&e.append?[i,i+"-"+n,zt,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:e.append?[i,zt,i+"Exit"]:[i,i+"Exit"]}function Ta(e){var n;return e.type==="document"?n=["Document",zt,"DocumentExit"]:e.type==="root"?n=["Root",zt,"RootExit"]:n=Ma(e),{eventIndex:0,events:n,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Hi(e){return e[Ue]=!1,e.nodes&&e.nodes.forEach(function(n){return Hi(n)}),e}var Yi={},Wt=function(){function e(i,t,r){var o=this;this.stringified=!1,this.processed=!1;var s;if((typeof t=="undefined"?"undefined":z(t))==="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=Hi(t);else if(N(t,e)||N(t,Aa))s=Hi(t.root),t.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{var a=Uh;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{s=a(t,r)}catch(u){this.processed=!0,this.error=u}s&&!s[Ph]&&Nh.rebuild(s)}this.result=new Aa(i,s,r),this.helpers=j({},Yi,{postcss:Yi,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":z(u))==="object"&&u.prepare?j({},u,u.prepare(o.result)):u})}var n=e.prototype;return n.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},n.catch=function(t){return this.async().catch(t)},n.finally=function(t){return this.async().then(t,t)},n.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},n.handleError=function(t,r){var o=this.result.lastPlugin;try{if(r&&r.addToError(t),this.error=t,t.name==="CssSyntaxError"&&!t.plugin)t.plugin=o.postcssPlugin,t.setMessage();else if(o.postcssVersion&&process.env.NODE_ENV!=="production"){var s=o.postcssPlugin,a=o.postcssVersion,u=this.result.processor.version,c=a.split("."),l=u.split(".");(c[0]!==l[0]||parseInt(c[1])>parseInt(l[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+u+", but "+s+" uses "+a+". Perhaps this is the source of the error below.")}}catch(f){console&&console.error&&console.error(f)}return t},n.prepareVisitors=function(){var t=this;this.listeners={};for(var r=function(l,f,p){t.listeners[f]||(t.listeners[f]=[]),t.listeners[f].push([l,p])},o=k(this.plugins),s;!(s=o()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":z(a))==="object")for(var u in a){if(!Wh[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!qh[u])if(z(a[u])==="object")for(var c in a[u])c==="*"?r(a,u,a[u][c]):r(a,u+"-"+c.toLowerCase(),a[u][c]);else typeof a[u]=="function"&&r(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},n.runAsync=function(){var t=this;return vi(function(){var r,o,s,a,u,c,l,f,p,g,d,y;return cr(this,function(v){switch(v.label){case 0:t.plugin=0,r=0,v.label=1;case 1:if(!(r<t.plugins.length))return[3,6];if(o=t.plugins[r],s=t.runOnRoot(o),!mr(s))return[3,5];v.label=2;case 2:return v.trys.push([2,4,,5]),[4,s];case 3:return v.sent(),[3,5];case 4:throw a=v.sent(),t.handleError(a);case 5:return r++,[3,1];case 6:if(t.prepareVisitors(),!t.hasListener)return[3,18];u=t.result.root,v.label=7;case 7:if(u[Ue])return[3,14];u[Ue]=!0,c=[Ta(u)],v.label=8;case 8:if(!(c.length>0))return[3,13];if(l=t.visitTick(c),!mr(l))return[3,12];v.label=9;case 9:return v.trys.push([9,11,,12]),[4,l];case 10:return v.sent(),[3,12];case 11:throw f=v.sent(),p=c[c.length-1].node,t.handleError(f,p);case 12:return[3,8];case 13:return[3,7];case 14:if(!t.listeners.OnceExit)return[3,18];g=function(){var m,_,w,S,C;return cr(this,function(O){switch(O.label){case 0:m=y.value,_=m[0],w=m[1],t.result.lastPlugin=_,O.label=1;case 1:return O.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(S=u.nodes.map(function(A){return w(A,t.helpers)}),[4,Promise.all(S)]);case 2:return O.sent(),[3,5];case 3:return[4,w(u,t.helpers)];case 4:O.sent(),O.label=5;case 5:return[3,7];case 6:throw C=O.sent(),t.handleError(C);case 7:return[2]}})},d=k(t.listeners.OnceExit),v.label=15;case 15:return(y=d()).done?[3,18]:[5,ks(g())];case 16:v.sent(),v.label=17;case 17:return[3,15];case 18:return t.processed=!0,[2,t.stringify()]}})})()},n.runOnRoot=function(t){var r=this;this.result.lastPlugin=t;try{if((typeof t=="undefined"?"undefined":z(t))==="object"&&t.Once){if(this.result.root.type==="document"){var o=this.result.root.nodes.map(function(s){return t.Once(s,r.helpers)});return mr(o[0])?Promise.all(o):o}return t.Once(this.result.root,this.helpers)}else if(typeof t=="function")return t(this.result.root,this.result)}catch(s){throw this.handleError(s)}},n.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var t=this.result.opts,r=Dh;t.syntax&&(r=t.syntax.stringify),t.stringifier&&(r=t.stringifier),r.stringify&&(r=r.stringify);var o=new Lh(r,this.result.root,this.result.opts),s=o.generate();return this.result.css=s[0],this.result.map=s[1],this.result},n.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 t=k(this.plugins),r;!(r=t()).done;){var o=r.value,s=this.runOnRoot(o);if(mr(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Ue];)a[Ue]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=k(a.nodes),c;!(c=u()).done;){var l=c.value;this.visitSync(this.listeners.OnceExit,l)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},n.then=function(t,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||Fh("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,r)},n.toString=function(){return this.css},n.visitSync=function(t,r){for(var o=k(t),s;!(s=o()).done;){var a=s.value,u=a[0],c=a[1];this.result.lastPlugin=u;var l=void 0;try{l=c(r,this.helpers)}catch(f){throw this.handleError(f,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(mr(l))throw this.getAsyncError()}},n.visitTick=function(t){var r=t[t.length-1],o=r.node,s=r.visitors;if(o.type!=="root"&&o.type!=="document"&&!o.parent){t.pop();return}if(s.length>0&&r.visitorIndex<s.length){var a=s[r.visitorIndex],u=a[0],c=a[1];r.visitorIndex+=1,r.visitorIndex===s.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=u;try{return c(o.toProxy(),this.helpers)}catch(d){throw this.handleError(d,o)}}if(r.iterator!==0){for(var l=r.iterator,f;f=o.nodes[o.indexes[l]];)if(o.indexes[l]+=1,!f[Ue]){f[Ue]=!0,t.push(Ta(f));return}r.iterator=0,delete o.indexes[l]}for(var p=r.events;r.eventIndex<p.length;){var g=p[r.eventIndex];if(r.eventIndex+=1,g===zt){o.nodes&&o.nodes.length&&(o[Ue]=!0,r.iterator=o.getIterator());return}else if(this.listeners[g]){r.visitors=this.listeners[g];return}}t.pop()},n.walkSync=function(t){var r=this;t[Ue]=!0;for(var o=Ma(t),s=k(o),a;!(a=s()).done;){var u=a.value;if(u===zt)t.nodes&&t.each(function(l){l[Ue]||r.walkSync(l)});else{var c=this.listeners[u];if(c&&this.visitSync(c,t.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},me(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}();Wt.registerPostcss=function(e){Yi=e};var Pa=Wt;Wt.default=Wt,Bh.registerLazyResult(Wt),$h.registerLazyResult(Wt);var Gh=oa,Vh=Zr,jh=ma,Hh=ji,Yh=Wi,Ki=function(){function e(i,t,r){t=t.toString(),this.stringified=!1,this._processor=i,this._css=t,this._opts=r,this._map=void 0;var o,s=Vh;this.result=new Yh(this._processor,o,this._opts),this.result.css=t;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new Gh(s,o,this._opts,t);if(u.isMap()){var c=u.generate(),l=c[0],f=c[1];l&&(this.result.css=l),f&&(this.result.map=f)}else u.clearAnnotation(),this.result.css=u.css}var n=e.prototype;return n.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},n.catch=function(t){return this.async().catch(t)},n.finally=function(t){return this.async().then(t,t)},n.sync=function(){if(this.error)throw this.error;return this.result},n.then=function(t,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||jh("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,r)},n.toString=function(){return this._css},n.warnings=function(){return[]},me(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 t,r=Hh;try{t=r(this._css,this._opts)}catch(o){this.error=o}if(this.error)throw this.error;return this._root=t,t}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Kh=Ki;Ki.default=Ki;var Jh=Kh,Xh=Pa,Zh=Ui,Qh=vr,yr=function(){function e(i){i===void 0&&(i=[]),this.version="8.4.38",this.plugins=this.normalize(i)}var n=e.prototype;return n.normalize=function(t){for(var r=[],o=k(t),s;!(s=o()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":z(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":z(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":z(a))==="object"&&(a.parse||a.stringify)){if(process.env.NODE_ENV!=="production")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.")}else throw new Error(a+" is not a PostCSS plugin")}return r},n.process=function(t,r){return r===void 0&&(r={}),!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new Jh(this,t,r):new Xh(this,t,r)},n.use=function(t){return this.plugins=this.plugins.concat(this.normalize([t])),this},e}(),ep=yr;yr.default=yr,Qh.registerProcessor(yr),Zh.registerProcessor(yr);var tp=tn,rp=Js,np=un,ip=Gi,op=on,sp=vr,ap=Vi;function _r(e,n){if(Array.isArray(e))return e.map(function(f){return _r(f)});var i=e.inputs,t=ar(e,["inputs"]);if(i){n=[];for(var r=k(i),o;!(o=r()).done;){var s=o.value,a=j({},s,{__proto__:op.prototype});a.map&&(a.map=j({},a.map,{__proto__:rp.prototype})),n.push(a)}}if(t.nodes&&(t.nodes=e.nodes.map(function(f){return _r(f,n)})),t.source){var u=t.source,c=u.inputId,l=ar(u,["inputId"]);t.source=l,c!=null&&(t.source.input=n[c])}if(t.type==="root")return new sp(t);if(t.type==="decl")return new tp(t);if(t.type==="rule")return new ap(t);if(t.type==="comment")return new np(t);if(t.type==="atrule")return new ip(t);throw new Error("Unknown node type: "+e.type)}var up=_r;_r.default=_r;var cp=Ii,La=tn,lp=Pa,fp=bt,Ji=ep,hp=Zr,pp=up,Da=Ui,dp=ya,Na=un,$a=Gi,vp=Wi,gp=on,mp=ji,yp=ka,Fa=Vi,Ua=vr,_p=en;function X(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new Ji(n)}X.plugin=function(n,i){var t=!1;function r(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];console&&console.warn&&!t&&(t=!0,console.warn(n+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(n+": \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:\nhttps://www.w3ctech.com/topic/2226"));var c=i.apply(void 0,[].concat(a));return c.postcssPlugin=n,c.postcssVersion=new Ji().version,c}var o;return Object.defineProperty(r,"postcss",{get:function(){return o||(o=r()),o}}),r.process=function(s,a,u){return X([r(u)]).process(s,a)},r},X.stringify=hp,X.parse=mp,X.fromJSON=pp,X.list=yp,X.comment=function(e){return new Na(e)},X.atRule=function(e){return new $a(e)},X.decl=function(e){return new La(e)},X.rule=function(e){return new Fa(e)},X.root=function(e){return new Ua(e)},X.document=function(e){return new Da(e)},X.CssSyntaxError=cp,X.Declaration=La,X.Container=fp,X.Processor=Ji,X.Document=Da,X.Comment=Na,X.Warning=dp,X.AtRule=$a,X.Result=vp,X.Input=gp,X.Rule=Fa,X.Root=Ua,X.Node=_p,lp.registerPostcss(X);var bp=X;X.default=X;var oe=Mf(bp);oe.stringify,oe.fromJSON,oe.plugin,oe.parse,oe.list,oe.document,oe.comment,oe.atRule,oe.rule,oe.decl,oe.root,oe.CssSyntaxError,oe.Declaration,oe.Container,oe.Processor,oe.Document,oe.Comment,oe.Warning,oe.AtRule,oe.Result,oe.Input,oe.Rule,oe.Root,oe.Node;var wp=Object.defineProperty,Sp=function(e,n,i){return n in e?wp(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i},Pe=function(e,n,i){return Sp(e,(typeof n=="undefined"?"undefined":z(n))!=="symbol"?n+"":n,i)};function Cp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ip(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var i=function t(){return N(this,t)?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),i}var Xi={exports:{}},ne=String,Ba=function(){return{isColorSupported:!1,reset:ne,bold:ne,dim:ne,italic:ne,underline:ne,inverse:ne,hidden:ne,strikethrough:ne,black:ne,red:ne,green:ne,yellow:ne,blue:ne,magenta:ne,cyan:ne,white:ne,gray:ne,bgBlack:ne,bgRed:ne,bgGreen:ne,bgYellow:ne,bgBlue:ne,bgMagenta:ne,bgCyan:ne,bgWhite:ne}};Xi.exports=Ba(),Xi.exports.createColors=Ba;var Ep=Xi.exports,kp={},Op=Object.freeze(Object.defineProperty({__proto__:null,default:kp},Symbol.toStringTag,{value:"Module"})),fe=Ip(Op),za=Ep,Wa=fe,Zi=function(e){be(n,e);function n(t,r,o,s,a,u){var c;return c=e.call(this,t)||this,c.name="CssSyntaxError",c.reason=t,a&&(c.file=a),s&&(c.source=s),u&&(c.plugin=u),typeof r!="undefined"&&typeof o!="undefined"&&(typeof r=="number"?(c.line=r,c.column=o):(c.line=r.line,c.column=r.column,c.endLine=o.line,c.endColumn=o.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,n),c}var i=n.prototype;return i.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},i.showSourceCode=function(r){var o=this;if(!this.source)return"";var s=this.source;r==null&&(r=za.isColorSupported),Wa&&r&&(s=Wa(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),l=String(c).length,f,p;if(r){var g=za.createColors(!0),d=g.bold,y=g.gray,v=g.red;f=function(m){return d(v(m))},p=function(m){return y(m)}}else f=p=function(m){return m};return a.slice(u,c).map(function(m,_){var w=u+1+_,S=" "+(" "+w).slice(-l)+" | ";if(w===o.line){var C=p(S.replace(/\d/g," "))+m.slice(0,o.column-1).replace(/[^\t]/g," ");return f(">")+p(S)+m+"\n "+C+f("^")}return" "+p(S)+m}).join("\n")},i.toString=function(){var r=this.showSourceCode();return r&&(r="\n\n"+r+"\n"),this.name+": "+this.message+r},n}(Vr(Error)),Qi=Zi;Zi.default=Zi;var it={};it.isClean=Symbol("isClean"),it.my=Symbol("my");var qa={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function xp(e){return e[0].toUpperCase()+e.slice(1)}var eo=function(){function e(i){this.builder=i}var n=e.prototype;return n.atrule=function(t,r){var o="@"+t.name,s=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName!="undefined"?o+=t.raws.afterName:s&&(o+=" "),t.nodes)this.block(t,o+s);else{var a=(t.raws.between||"")+(r?";":"");this.builder(o+s+a,t)}},n.beforeAfter=function(t,r){var o;t.type==="decl"?o=this.raw(t,null,"beforeDecl"):t.type==="comment"?o=this.raw(t,null,"beforeComment"):r==="before"?o=this.raw(t,null,"beforeRule"):o=this.raw(t,null,"beforeClose");for(var s=t.parent,a=0;s&&s.type!=="root";)a+=1,s=s.parent;if(o.includes("\n")){var u=this.raw(t,null,"indent");if(u.length)for(var c=0;c<a;c++)o+=u}return o},n.block=function(t,r){var o=this.raw(t,"between","beforeOpen");this.builder(r+o+"{",t,"start");var s;t.nodes&&t.nodes.length?(this.body(t),s=this.raw(t,"after")):s=this.raw(t,"after","emptyBody"),s&&this.builder(s),this.builder("}",t,"end")},n.body=function(t){for(var r=t.nodes.length-1;r>0&&t.nodes[r].type==="comment";)r-=1;for(var o=this.raw(t,"semicolon"),s=0;s<t.nodes.length;s++){var a=t.nodes[s],u=this.raw(a,"before");u&&this.builder(u),this.stringify(a,r!==s||o)}},n.comment=function(t){var r=this.raw(t,"left","commentLeft"),o=this.raw(t,"right","commentRight");this.builder("/*"+r+t.text+o+"*/",t)},n.decl=function(t,r){var o=this.raw(t,"between","colon"),s=t.prop+o+this.rawValue(t,"value");t.important&&(s+=t.raws.important||" !important"),r&&(s+=";"),this.builder(s,t)},n.document=function(t){this.body(t)},n.raw=function(t,r,o){var s;if(o||(o=r),r&&(s=t.raws[r],typeof s!="undefined"))return s;var a=t.parent;if(o==="before"&&(!a||a.type==="root"&&a.first===t||a&&a.type==="document"))return"";if(!a)return qa[o];var u=t.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[o]!="undefined")return u.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(t,o);var c="raw"+xp(o);return this[c]?s=this[c](u,t):u.walk(function(l){if(s=l.raws[r],typeof s!="undefined")return!1}),typeof s=="undefined"&&(s=qa[o]),u.rawCache[o]=s,s},n.rawBeforeClose=function(t){var r;return t.walk(function(o){if(o.nodes&&o.nodes.length>0&&typeof o.raws.after!="undefined")return r=o.raws.after,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(t,r){var o;return t.walkComments(function(s){if(typeof s.raws.before!="undefined")return o=s.raws.before,o.includes("\n")&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(r,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeDecl=function(t,r){var o;return t.walkDecls(function(s){if(typeof s.raws.before!="undefined")return o=s.raws.before,o.includes("\n")&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(r,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeOpen=function(t){var r;return t.walk(function(o){if(o.type!=="decl"&&(r=o.raws.between,typeof r!="undefined"))return!1}),r},n.rawBeforeRule=function(t){var r;return t.walk(function(o){if(o.nodes&&(o.parent!==t||t.first!==o)&&typeof o.raws.before!="undefined")return r=o.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawColon=function(t){var r;return t.walkDecls(function(o){if(typeof o.raws.between!="undefined")return r=o.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(t){var r;return t.walk(function(o){if(o.nodes&&o.nodes.length===0&&(r=o.raws.after,typeof r!="undefined"))return!1}),r},n.rawIndent=function(t){if(t.raws.indent)return t.raws.indent;var r;return t.walk(function(o){var s=o.parent;if(s&&s!==t&&s.parent&&s.parent===t&&typeof o.raws.before!="undefined"){var a=o.raws.before.split("\n");return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r},n.rawSemicolon=function(t){var r;return t.walk(function(o){if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(r=o.raws.semicolon,typeof r!="undefined"))return!1}),r},n.rawValue=function(t,r){var o=t[r],s=t.raws[r];return s&&s.value===o?s.raw:o},n.root=function(t){this.body(t),t.raws.after&&this.builder(t.raws.after)},n.rule=function(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")},n.stringify=function(t,r){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,r)},e}(),Ga=eo;eo.default=eo;var Rp=Ga;function to(e,n){var i=new Rp(n);i.stringify(e)}var _n=to;to.default=to;var bn=it.isClean,Ap=it.my,Mp=Qi,Tp=Ga,Pp=_n;function ro(e,n){var i=new e.constructor;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t!=="proxyCache"){var r=e[t],o=typeof r=="undefined"?"undefined":z(r);t==="parent"&&o==="object"?n&&(i[t]=n):t==="source"?i[t]=r:Array.isArray(r)?i[t]=r.map(function(s){return ro(s,i)}):(o==="object"&&r!==null&&(r=ro(r)),i[t]=r)}return i}var no=function(){function e(i){i===void 0&&(i={}),this.raws={},this[bn]=!1,this[Ap]=!0;for(var t in i)if(t==="nodes"){this.nodes=[];for(var r=k(i[t]),o;!(o=r()).done;){var s=o.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[t]=i[t]}var n=e.prototype;return n.addToError=function(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){var r=this.source;t.stack=t.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return t},n.after=function(t){return this.parent.insertAfter(this,t),this},n.assign=function(t){t===void 0&&(t={});for(var r in t)this[r]=t[r];return this},n.before=function(t){return this.parent.insertBefore(this,t),this},n.cleanRaws=function(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between},n.clone=function(t){t===void 0&&(t={});var r=ro(this);for(var o in t)r[o]=t[o];return r},n.cloneAfter=function(t){t===void 0&&(t={});var r=this.clone(t);return this.parent.insertAfter(this,r),r},n.cloneBefore=function(t){t===void 0&&(t={});var r=this.clone(t);return this.parent.insertBefore(this,r),r},n.error=function(t,r){if(r===void 0&&(r={}),this.source){var o=this.rangeBy(r),s=o.end,a=o.start;return this.source.input.error(t,{column:a.column,line:a.line},{column:s.column,line:s.line},r)}return new Mp(t)},n.getProxyProcessor=function(){return{get:function(r,o){return o==="proxyOf"?r:o==="root"?function(){return r.root().toProxy()}:r[o]},set:function(r,o,s){return r[o]===s||(r[o]=s,(o==="prop"||o==="value"||o==="name"||o==="params"||o==="important"||o==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[bn]){this[bn]=!1;for(var t=this;t=t.parent;)t[bn]=!1}},n.next=function(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t+1]}},n.positionBy=function(t,r){var o=this.source.start;if(t.index)o=this.positionInside(t.index,r);else if(t.word){r=this.toString();var s=r.indexOf(t.word);s!==-1&&(o=this.positionInside(s,r))}return o},n.positionInside=function(t,r){for(var o=r||this.toString(),s=this.source.start.column,a=this.source.start.line,u=0;u<t;u++)o[u]==="\n"?(s=1,a+=1):s+=1;return{column:s,line:a}},n.prev=function(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t-1]}},n.rangeBy=function(t){var r={column:this.source.start.column,line:this.source.start.line},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(t.word){var s=this.toString(),a=s.indexOf(t.word);a!==-1&&(r=this.positionInside(a,s),o=this.positionInside(a+t.word.length,s))}else t.start?r={column:t.start.column,line:t.start.line}:t.index&&(r=this.positionInside(t.index)),t.end?o={column:t.end.column,line:t.end.line}:typeof t.endIndex=="number"?o=this.positionInside(t.endIndex):t.index&&(o=this.positionInside(t.index+1));return(o.line<r.line||o.line===r.line&&o.column<=r.column)&&(o={column:r.column+1,line:r.line}),{end:o,start:r}},n.raw=function(t,r){var o=new Tp;return o.raw(this,t,r)},n.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},n.replaceWith=function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];if(this.parent){for(var s=this,a=!1,u=k(r),c;!(c=u()).done;){var l=c.value;l===this?a=!0:a?(this.parent.insertAfter(s,l),s=l):this.parent.insertBefore(s,l)}a||this.remove()}return this},n.root=function(){for(var t=this;t.parent&&t.parent.type!=="document";)t=t.parent;return t},n.toJSON=function(t,r){var o={},s=r==null;r=r||new Map;var a=0;for(var u in this)if(Object.prototype.hasOwnProperty.call(this,u)&&!(u==="parent"||u==="proxyCache")){var c=this[u];if(Array.isArray(c))o[u]=c.map(function(f){return(typeof f=="undefined"?"undefined":z(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof c=="undefined"?"undefined":z(c))==="object"&&c.toJSON)o[u]=c.toJSON(null,r);else if(u==="source"){var l=r.get(c.input);l==null&&(l=a,r.set(c.input,a),a++),o[u]={end:c.end,inputId:l,start:c.start}}else o[u]=c}return s&&(o.inputs=[].concat(r.keys()).map(function(f){return f.toJSON()})),o},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(t){t===void 0&&(t=Pp),t.stringify&&(t=t.stringify);var r="";return t(this,function(o){r+=o}),r},n.warn=function(t,r,o){var s={node:this};for(var a in o)s[a]=o[a];return t.warn(r,s)},me(e,[{key:"proxyOf",get:function(){return this}}]),e}(),wn=no;no.default=no;var Lp=wn,io=function(e){be(n,e);function n(i){var t;return i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=j({},i,{value:String(i.value)})),t=e.call(this,i)||this,t.type="decl",t}return me(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n}(Lp),Sn=io;io.default=io;var Dp="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Np=function(e){e===void 0&&(e=21);for(var n="",i=e;i--;)n+=Dp[Math.random()*64|0];return n},$p={nanoid:Np},Va=fe.SourceMapConsumer,ja=fe.SourceMapGenerator,Fp=fe.existsSync,Up=fe.readFileSync,oo=fe.dirname,Bp=fe.join;function zp(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var so=function(){function e(i,t){if(t.map!==!1){this.loadAnnotation(i),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,o=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=oo(this.mapFile)),o&&(this.text=o)}}var n=e.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new Va(this.text)),this.consumerCache},n.decodeInline=function(t){var r=/^data:application\/json;charset=utf-?8;base64,/,o=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(s.test(t)||a.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(r.test(t)||o.test(t))return zp(t.substr(RegExp.lastMatch.length));var u=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},n.getAnnotationURL=function(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(t){return(typeof t=="undefined"?"undefined":z(t))!=="object"?!1:typeof t.mappings=="string"||typeof t._mappings=="string"||Array.isArray(t.sections)},n.loadAnnotation=function(t){var r=t.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var o=t.lastIndexOf(r.pop()),s=t.indexOf("*/",o);o>-1&&s>-1&&(this.annotation=this.getAnnotationURL(t.substring(o,s)))}},n.loadFile=function(t){if(this.root=oo(t),Fp(t))return this.mapFile=t,Up(t,"utf-8").toString().trim()},n.loadMap=function(t,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){var o=r(t);if(o){var s=this.loadFile(o);if(!s)throw new Error("Unable to load previous source map: "+o.toString());return s}}else{if(N(r,Va))return ja.fromSourceMap(r).toString();if(N(r,ja))return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var a=this.annotation;return t&&(a=Bp(oo(t),a)),this.loadFile(a)}}},n.startWith=function(t,r){return t?t.substr(0,r.length)===r:!1},n.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),Ha=so;so.default=so;var Wp=fe.SourceMapConsumer,qp=fe.SourceMapGenerator,Ya=fe.fileURLToPath,Cn=fe.pathToFileURL,ao=fe.isAbsolute,uo=fe.resolve,Gp=$p.nanoid,co=fe,Ka=Qi,Vp=Ha,lo=Symbol("fromOffsetCache"),jp=!!(Wp&&qp),Ja=!!(uo&&ao),In=function(){function e(i,t){if(t===void 0&&(t={}),i===null||typeof i=="undefined"||(typeof i=="undefined"?"undefined":z(i))==="object"&&!i.toString)throw new Error("PostCSS received "+i+" instead of CSS string");if(this.css=i.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Ja||/^\w+:\/\//.test(t.from)||ao(t.from)?this.file=t.from:this.file=uo(t.from)),Ja&&jp){var r=new Vp(this.css,t);if(r.text){this.map=r;var o=r.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+Gp(6)+">"),this.map&&(this.map.file=this.from)}var n=e.prototype;return n.error=function(t,r,o,s){s===void 0&&(s={});var a,u,c;if(r&&(typeof r=="undefined"?"undefined":z(r))==="object"){var l=r,f=o;if(typeof l.offset=="number"){var p=this.fromOffset(l.offset);r=p.line,o=p.col}else r=l.line,o=l.column;if(typeof f.offset=="number"){var g=this.fromOffset(f.offset);u=g.line,c=g.col}else u=f.line,c=f.column}else if(!o){var d=this.fromOffset(r);r=d.line,o=d.col}var y=this.origin(r,o,u,c);return y?a=new Ka(t,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,s.plugin):a=new Ka(t,u===void 0?r:{column:o,line:r},u===void 0?o:{column:c,line:u},this.css,this.file,s.plugin),a.input={column:o,endColumn:c,endLine:u,line:r,source:this.css},this.file&&(Cn&&(a.input.url=Cn(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(t){var r,o;if(this[lo])o=this[lo];else{var s=this.css.split("\n");o=new Array(s.length);for(var a=0,u=0,c=s.length;u<c;u++)o[u]=a,a+=s[u].length+1;this[lo]=o}r=o[o.length-1];var l=0;if(t>=r)l=o.length-1;else for(var f=o.length-2,p;l<f;)if(p=l+(f-l>>1),t<o[p])f=p-1;else if(t>=o[p+1])l=p+1;else{l=p;break}return{col:t-o[l]+1,line:l+1}},n.mapResolve=function(t){return/^\w+:\/\//.test(t)?t:uo(this.map.consumer().sourceRoot||this.map.root||".",t)},n.origin=function(t,r,o,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:r,line:t});if(!u.source)return!1;var c;typeof o=="number"&&(c=a.originalPositionFor({column:s,line:o}));var l;ao(u.source)?l=Cn(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||Cn(this.map.mapFile));var f={column:u.column,endColumn:c&&c.column,endLine:c&&c.line,line:u.line,url:l.toString()};if(l.protocol==="file:")if(Ya)f.file=Ya(l);else throw new Error("file: protocol is not available in this PostCSS build");var p=a.sourceContentFor(u.source);return p&&(f.source=p),f},n.toJSON=function(){for(var t={},r=0,o=["hasBOM","css","file","id"];r<o.length;r++){var s=o[r];this[s]!=null&&(t[s]=this[s])}return this.map&&(t.map=j({},this.map),t.map.consumerCache&&(t.map.consumerCache=void 0)),t},me(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),En=In;In.default=In,co&&co.registerInput&&co.registerInput(In);var Xa=fe.SourceMapConsumer,kn=fe.SourceMapGenerator,On=fe.dirname,Za=fe.relative,Qa=fe.resolve,eu=fe.sep,tu=fe.pathToFileURL,Hp=En,Yp=!!(Xa&&kn),Kp=!!(On&&Qa&&Za&&eu),Jp=function(){function e(i,t,r,o){this.stringify=i,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var n=e.prototype;return n.addAnnotation=function(){var t;this.isInline()?t="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?t=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?t=this.mapOpts.annotation(this.opts.to,this.root):t=this.outputFile()+".map";var r="\n";this.css.includes("\r\n")&&(r="\r\n"),this.css+=r+"/*# sourceMappingURL="+t+" */"},n.applyPrevMaps=function(){for(var t=k(this.previous()),r;!(r=t()).done;){var o=r.value,s=this.toUrl(this.path(o.file)),a=o.root||On(o.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new Xa(o.text),u.sourcesContent&&(u.sourcesContent=null)):u=o.consumer(),this.map.applySourceMap(u,s,this.toUrl(this.path(a)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var t,r=this.root.nodes.length-1;r>=0;r--)t=this.root.nodes[r],t.type==="comment"&&t.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},n.generate=function(){if(this.clearAnnotation(),Kp&&Yp&&this.isMap())return this.generateMap();var t="";return this.stringify(this.root,function(r){t+=r}),[t]},n.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=kn.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new kn({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]},n.generateString=function(){var t=this;this.css="",this.map=new kn({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,o=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,c;this.stringify(this.root,function(l,f,p){if(t.css+=l,f&&p!=="end"&&(a.generated.line=r,a.generated.column=o-1,f.source&&f.source.start?(a.source=t.sourcePath(f),a.original.line=f.source.start.line,a.original.column=f.source.start.column-1,t.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,t.map.addMapping(a))),u=l.match(/\n/g),u?(r+=u.length,c=l.lastIndexOf("\n"),o=l.length-c):o+=l.length,f&&p!=="start"){var g=f.parent||{raws:{}},d=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!d||f!==g.last||g.raws.semicolon)&&(f.source&&f.source.end?(a.source=t.sourcePath(f),a.original.line=f.source.end.line,a.original.column=f.source.end.column-1,a.generated.line=r,a.generated.column=o-2,t.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=o-1,t.map.addMapping(a)))}})},n.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(t){return t.annotation}):!0},n.isInline=function(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;var t=this.mapOpts.annotation;return typeof t!="undefined"&&t!==!0?!1:this.previous().length?this.previous().some(function(r){return r.inline}):!0},n.isMap=function(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0},n.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(t){return t.withContent()}):!0},n.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},n.path=function(t){if(this.mapOpts.absolute||t.charCodeAt(0)===60||/^\w+:\/\//.test(t))return t;var r=this.memoizedPaths.get(t);if(r)return r;var o=this.opts.to?On(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(o=On(Qa(o,this.mapOpts.annotation)));var s=Za(o,t);return this.memoizedPaths.set(t,s),s},n.previous=function(){var t=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(o){if(o.source&&o.source.input.map){var s=o.source.input.map;t.previousMaps.includes(s)||t.previousMaps.push(s)}});else{var r=new Hp(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},n.setSourcesContent=function(){var t=this,r={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!r[a]){r[a]=!0;var u=t.usesFileUrls?t.toFileUrl(a):t.toUrl(t.path(a));t.map.setSourceContent(u,s.source.input.css)}}});else if(this.css){var o=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(o,this.css)}},n.sourcePath=function(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))},n.toBase64=function(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))},n.toFileUrl=function(t){var r=this.memoizedFileURLs.get(t);if(r)return r;if(tu){var o=tu(t).toString();return this.memoizedFileURLs.set(t,o),o}else throw new Error("`map.absolute` option is not available in this PostCSS build")},n.toUrl=function(t){var r=this.memoizedURLs.get(t);if(r)return r;eu==="\\"&&(t=t.replace(/\\/g,"/"));var o=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,o),o},e}(),ru=Jp,Xp=wn,fo=function(e){be(n,e);function n(i){var t;return t=e.call(this,i)||this,t.type="comment",t}return n}(Xp),xn=fo;fo.default=fo;var nu=it.isClean,iu=it.my,ou=Sn,su=xn,Zp=wn,au,ho,po,uu;function cu(e){return e.map(function(n){return n.nodes&&(n.nodes=cu(n.nodes)),delete n.source,n})}function lu(e){if(e[nu]=!1,e.proxyOf.nodes)for(var n=k(e.proxyOf.nodes),i;!(i=n()).done;){var t=i.value;lu(t)}}var He=function(e){be(n,e);function n(){return e.apply(this,arguments)||this}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];for(var a=k(o),u;!(u=a()).done;)for(var c=u.value,l=this.normalize(c,this.last),f=k(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.push(g)}return this.markDirty(),this},i.cleanRaws=function(r){if(e.prototype.cleanRaws.call(this,r),this.nodes)for(var o=k(this.nodes),s;!(s=o()).done;){var a=s.value;a.cleanRaws(r)}},i.each=function(r){if(this.proxyOf.nodes){for(var o=this.getIterator(),s,a;this.indexes[o]<this.proxyOf.nodes.length&&(s=this.indexes[o],a=r(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[o]+=1;return delete this.indexes[o],a}},i.every=function(r){return this.nodes.every(r)},i.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},i.getProxyProcessor=function(){return{get:function(o,s){return s==="proxyOf"?o:o[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];var l;return(l=o)[s].apply(l,[].concat(u.map(function(f){return typeof f=="function"?function(p,g){return f(p.toProxy(),g)}:f})))}:s==="every"||s==="some"?function(a){return o[s](function(u){for(var c=arguments.length,l=new Array(c>1?c-1:0),f=1;f<c;f++)l[f-1]=arguments[f];return a.apply(void 0,[].concat([u.toProxy()],l))})}:s==="root"?function(){return o.root().toProxy()}:s==="nodes"?o.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?o[s].toProxy():o[s]:o[s]},set:function(o,s,a){return o[s]===a||(o[s]=a,(s==="name"||s==="params"||s==="selector")&&o.markDirty()),!0}}},i.index=function(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))},i.insertAfter=function(r,o){var s=this.index(r),a=this.normalize(o,this.proxyOf.nodes[s]).reverse();s=this.index(r);for(var u=k(a),c;!(c=u()).done;){var l=c.value;this.proxyOf.nodes.splice(s+1,0,l)}var f;for(var p in this.indexes)f=this.indexes[p],s<f&&(this.indexes[p]=f+a.length);return this.markDirty(),this},i.insertBefore=function(r,o){var s=this.index(r),a=s===0?"prepend":!1,u=this.normalize(o,this.proxyOf.nodes[s],a).reverse();s=this.index(r);for(var c=k(u),l;!(l=c()).done;){var f=l.value;this.proxyOf.nodes.splice(s,0,f)}var p;for(var g in this.indexes)p=this.indexes[g],s<=p&&(this.indexes[g]=p+u.length);return this.markDirty(),this},i.normalize=function(r,o){var s=this;if(typeof r=="string")r=cu(au(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=k(r),u;!(u=a()).done;){var c=u.value;c.parent&&c.parent.removeChild(c,"ignore")}}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(var l=k(r),f;!(f=l()).done;){var p=f.value;p.parent&&p.parent.removeChild(p,"ignore")}}else if(r.type)r=[r];else if(r.prop){if(typeof r.value=="undefined")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new ou(r)]}else if(r.selector)r=[new ho(r)];else if(r.name)r=[new po(r)];else if(r.text)r=[new su(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(d){return d[iu]||n.rebuild(d),d=d.proxyOf,d.parent&&d.parent.removeChild(d),d[nu]&&lu(d),typeof d.raws.before=="undefined"&&o&&typeof o.raws.before!="undefined"&&(d.raws.before=o.raws.before.replace(/\S/g,"")),d.parent=s.proxyOf,d});return g},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];o=o.reverse();for(var a=k(o),u;!(u=a()).done;){for(var c=u.value,l=this.normalize(c,this.first,"prepend").reverse(),f=k(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.unshift(g)}for(var d in this.indexes)this.indexes[d]=this.indexes[d]+l.length}return this.markDirty(),this},i.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},i.removeAll=function(){for(var r=k(this.proxyOf.nodes),o;!(o=r()).done;){var s=o.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},i.removeChild=function(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);var o;for(var s in this.indexes)o=this.indexes[s],o>=r&&(this.indexes[s]=o-1);return this.markDirty(),this},i.replaceValues=function(r,o,s){return s||(s=o,o={}),this.walkDecls(function(a){o.props&&!o.props.includes(a.prop)||o.fast&&!a.value.includes(o.fast)||(a.value=a.value.replace(r,s))}),this.markDirty(),this},i.some=function(r){return this.nodes.some(r)},i.walk=function(r){return this.each(function(o,s){var a;try{a=r(o,s)}catch(u){throw o.addToError(u)}return a!==!1&&o.walk&&(a=o.walk(r)),a})},i.walkAtRules=function(r,o){return o?N(r,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&r.test(s.name))return o(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="atrule")return o(s,a)}))},i.walkComments=function(r){return this.walk(function(o,s){if(o.type==="comment")return r(o,s)})},i.walkDecls=function(r,o){return o?N(r,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&r.test(s.prop))return o(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="decl")return o(s,a)}))},i.walkRules=function(r,o){return o?N(r,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&r.test(s.selector))return o(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="rule")return o(s,a)}))},me(n,[{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]}}]),n}(Zp);He.registerParse=function(e){au=e},He.registerRule=function(e){ho=e},He.registerAtRule=function(e){po=e},He.registerRoot=function(e){uu=e};var wt=He;He.default=He,He.rebuild=function(e){e.type==="atrule"?Object.setPrototypeOf(e,po.prototype):e.type==="rule"?Object.setPrototypeOf(e,ho.prototype):e.type==="decl"?Object.setPrototypeOf(e,ou.prototype):e.type==="comment"?Object.setPrototypeOf(e,su.prototype):e.type==="root"&&Object.setPrototypeOf(e,uu.prototype),e[iu]=!0,e.nodes&&e.nodes.forEach(function(n){He.rebuild(n)})};var Qp=wt,fu,hu,br=function(e){be(n,e);function n(t){var r;return r=e.call(this,j({type:"document"},t))||this,r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.toResult=function(r){r===void 0&&(r={});var o=new fu(new hu,this,r);return o.stringify()},n}(Qp);br.registerLazyResult=function(e){fu=e},br.registerProcessor=function(e){hu=e};var vo=br;br.default=br;var pu={},du=function(n){pu[n]||(pu[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},go=function(){function e(i,t){if(t===void 0&&(t={}),this.type="warning",this.text=i,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 o in t)this[o]=t[o]}var n=e.prototype;return n.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}(),vu=go;go.default=go;var ed=vu,mo=function(){function e(i,t,r){this.processor=i,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var n=e.prototype;return n.toString=function(){return this.css},n.warn=function(t,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var o=new ed(t,r);return this.messages.push(o),o},n.warnings=function(){return this.messages.filter(function(t){return t.type==="warning"})},me(e,[{key:"content",get:function(){return this.css}}]),e}(),yo=mo;mo.default=mo;var _o=39,gu=34,Rn=92,mu=47,An=10,wr=32,Mn=12,Tn=9,Pn=13,td=91,rd=93,nd=40,id=41,od=123,sd=125,ad=59,ud=42,cd=58,ld=64,Ln=/[\t\n\f\r "#'()/;[\\\]{}]/g,Dn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,fd=/.[\r\n"'(/\\]/,yu=/[\da-f]/i,hd=function(n,i){i===void 0&&(i={});var t=n.css.valueOf(),r=i.ignoreErrors,o,s,a,u,c,l,f,p,g,d,y=t.length,v=0,m=[],_=[];function w(){return v}function S(x){throw n.error("Unclosed "+x,v)}function C(){return _.length===0&&v>=y}function O(x){if(_.length)return _.pop();if(!(v>=y)){var L=x?x.ignoreUnclosed:!1;switch(o=t.charCodeAt(v),o){case An:case wr:case Tn:case Pn:case Mn:{s=v;do s+=1,o=t.charCodeAt(s);while(o===wr||o===An||o===Tn||o===Pn||o===Mn);d=["space",t.slice(v,s)],v=s-1;break}case td:case rd:case od:case sd:case cd:case ad:case id:{var H=String.fromCharCode(o);d=[H,H,v];break}case nd:{if(p=m.length?m.pop()[1]:"",g=t.charCodeAt(v+1),p==="url"&&g!==_o&&g!==gu&&g!==wr&&g!==An&&g!==Tn&&g!==Mn&&g!==Pn){s=v;do{if(l=!1,s=t.indexOf(")",s+1),s===-1)if(r||L){s=v;break}else S("bracket");for(f=s;t.charCodeAt(f-1)===Rn;)f-=1,l=!l}while(l);d=["brackets",t.slice(v,s+1),v,s],v=s}else s=t.indexOf(")",v+1),u=t.slice(v,s+1),s===-1||fd.test(u)?d=["(","(",v]:(d=["brackets",u,v,s],v=s);break}case _o:case gu:{a=o===_o?"'":'"',s=v;do{if(l=!1,s=t.indexOf(a,s+1),s===-1)if(r||L){s=v+1;break}else S("string");for(f=s;t.charCodeAt(f-1)===Rn;)f-=1,l=!l}while(l);d=["string",t.slice(v,s+1),v,s],v=s;break}case ld:{Ln.lastIndex=v+1,Ln.test(t),Ln.lastIndex===0?s=t.length-1:s=Ln.lastIndex-2,d=["at-word",t.slice(v,s+1),v,s],v=s;break}case Rn:{for(s=v,c=!0;t.charCodeAt(s+1)===Rn;)s+=1,c=!c;if(o=t.charCodeAt(s+1),c&&o!==mu&&o!==wr&&o!==An&&o!==Tn&&o!==Pn&&o!==Mn&&(s+=1,yu.test(t.charAt(s)))){for(;yu.test(t.charAt(s+1));)s+=1;t.charCodeAt(s+1)===wr&&(s+=1)}d=["word",t.slice(v,s+1),v,s],v=s;break}default:{o===mu&&t.charCodeAt(v+1)===ud?(s=t.indexOf("*/",v+2)+1,s===0&&(r||L?s=t.length:S("comment")),d=["comment",t.slice(v,s+1),v,s],v=s):(Dn.lastIndex=v+1,Dn.test(t),Dn.lastIndex===0?s=t.length-1:s=Dn.lastIndex-2,d=["word",t.slice(v,s+1),v,s],m.push(d),v=s);break}}return v++,d}}function A(x){_.push(x)}return{back:A,endOfFile:C,nextToken:O,position:w}},_u=wt,Nn=function(e){be(n,e);function n(t){var r;return r=e.call(this,t)||this,r.type="atrule",r}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=e.prototype.append).call.apply(a,[].concat([this],o))},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=e.prototype.prepend).call.apply(a,[].concat([this],o))},n}(_u),bo=Nn;Nn.default=Nn,_u.registerAtRule(Nn);var bu=wt,wu,Su,qt=function(e){be(n,e);function n(t){var r;return r=e.call(this,t)||this,r.type="root",r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.normalize=function(r,o,s){var a=e.prototype.normalize.call(this,r);if(o){if(s==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(var u=k(a),c;!(c=u()).done;){var l=c.value;l.raws.before=o.raws.before}}return a},i.removeChild=function(r,o){var s=this.index(r);return!o&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),e.prototype.removeChild.call(this,r)},i.toResult=function(r){r===void 0&&(r={});var o=new wu(new Su,this,r);return o.stringify()},n}(bu);qt.registerLazyResult=function(e){wu=e},qt.registerProcessor=function(e){Su=e};var Sr=qt;qt.default=qt,bu.registerRoot(qt);var Cr={comma:function(n){return Cr.split(n,[","],!0)},space:function(n){var i=[" ","\n"," "];return Cr.split(n,i)},split:function(n,i,t){for(var r=[],o="",s=!1,a=0,u=!1,c="",l=!1,f=k(n),p;!(p=f()).done;){var g=p.value;l?l=!1:g==="\\"?l=!0:u?g===c&&(u=!1):g==='"'||g==="'"?(u=!0,c=g):g==="("?a+=1:g===")"?a>0&&(a-=1):a===0&&i.includes(g)&&(s=!0),s?(o!==""&&r.push(o.trim()),o="",s=!1):o+=g}return(t||o!=="")&&r.push(o.trim()),r}},Cu=Cr;Cr.default=Cr;var Iu=wt,pd=Cu,$n=function(e){be(n,e);function n(i){var t;return t=e.call(this,i)||this,t.type="rule",t.nodes||(t.nodes=[]),t}return me(n,[{key:"selectors",get:function(){return pd.comma(this.selector)},set:function(t){var r=this.selector?this.selector.match(/,\s*/):null,o=r?r[0]:","+this.raw("between","beforeOpen");this.selector=t.join(o)}}]),n}(Iu),wo=$n;$n.default=$n,Iu.registerRule($n);var dd=Sn,vd=hd,gd=xn,md=bo,yd=Sr,Eu=wo,ku={empty:!0,space:!0};function _d(e){for(var n=e.length-1;n>=0;n--){var i=e[n],t=i[3]||i[2];if(t)return t}}var bd=function(){function e(i){this.input=i,this.root=new yd,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}var n=e.prototype;return n.atrule=function(t){var r=new md;r.name=t[1].slice(1),r.name===""&&this.unnamedAtrule(r,t),this.init(r,t[2]);for(var o,s,a,u=!1,c=!1,l=[],f=[];!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),o=t[0],o==="("||o==="["?f.push(o==="("?")":"]"):o==="{"&&f.length>0?f.push("}"):o===f[f.length-1]&&f.pop(),f.length===0)if(o===";"){r.source.end=this.getPosition(t[2]),r.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){c=!0;break}else if(o==="}"){if(l.length>0){for(a=l.length-1,s=l[a];s&&s[0]==="space";)s=l[--a];s&&(r.source.end=this.getPosition(s[3]||s[2]),r.source.end.offset++)}this.end(t);break}else l.push(t);else l.push(t);if(this.tokenizer.endOfFile()){u=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(r.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(r,"params",l),u&&(t=l[l.length-1],r.source.end=this.getPosition(t[3]||t[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),c&&(r.nodes=[],this.current=r)},n.checkMissedSemicolon=function(t){var r=this.colon(t);if(r!==!1){for(var o=0,s,a=r-1;a>=0&&(s=t[a],!(s[0]!=="space"&&(o+=1,o===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},n.colon=function(t){for(var r=0,o,s,a,u=k(t.entries()),c;!(c=u()).done;){var l=c.value,f=l[0],p=l[1];if(o=p,s=o[0],s==="("&&(r+=1),s===")"&&(r-=1),r===0&&s===":")if(!a)this.doubleColon(o);else{if(a[0]==="word"&&a[1]==="progid")continue;return f}a=o}return!1},n.comment=function(t){var r=new gd;this.init(r,t[2]),r.source.end=this.getPosition(t[3]||t[2]),r.source.end.offset++;var o=t[1].slice(2,-2);if(/^\s*$/.test(o))r.text="",r.raws.left=o,r.raws.right="";else{var s=o.match(/^(\s*)([^]*\S)(\s*)$/);r.text=s[2],r.raws.left=s[1],r.raws.right=s[3]}},n.createTokenizer=function(){this.tokenizer=vd(this.input)},n.decl=function(t,r){var o=new dd;this.init(o,t[0][2]);var s=t[t.length-1];for(s[0]===";"&&(this.semicolon=!0,t.pop()),o.source.end=this.getPosition(s[3]||s[2]||_d(t)),o.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),o.raws.before+=t.shift()[1];for(o.source.start=this.getPosition(t[0][2]),o.prop="";t.length;){var a=t[0][0];if(a===":"||a==="space"||a==="comment")break;o.prop+=t.shift()[1]}o.raws.between="";for(var u;t.length;)if(u=t.shift(),u[0]===":"){o.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),o.raws.between+=u[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));for(var c=[],l;t.length&&(l=t[0][0],!(l!=="space"&&l!=="comment"));)c.push(t.shift());this.precheckMissedSemicolon(t);for(var f=t.length-1;f>=0;f--){if(u=t[f],u[1].toLowerCase()==="!important"){o.important=!0;var p=this.stringFrom(t,f);p=this.spacesFromEnd(t)+p,p!==" !important"&&(o.raws.important=p);break}else if(u[1].toLowerCase()==="important"){for(var g=t.slice(0),d="",y=f;y>0;y--){var v=g[y][0];if(d.trim().indexOf("!")===0&&v!=="space")break;d=g.pop()[1]+d}d.trim().indexOf("!")===0&&(o.important=!0,o.raws.important=d,t=g)}if(u[0]!=="space"&&u[0]!=="comment")break}var m=t.some(function(_){return _[0]!=="space"&&_[0]!=="comment"});m&&(o.raws.between+=c.map(function(_){return _[1]}).join(""),c=[]),this.raw(o,"value",c.concat(t),r),o.value.includes(":")&&!r&&this.checkMissedSemicolon(t)},n.doubleColon=function(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})},n.emptyRule=function(t){var r=new Eu;this.init(r,t[2]),r.selector="",r.raws.between="",this.current=r},n.end=function(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)},n.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())},n.freeSemicolon=function(t){if(this.spaces+=t[1],this.current.nodes){var r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="")}},n.getPosition=function(t){var r=this.input.fromOffset(t);return{column:r.col,line:r.line,offset:t}},n.init=function(t,r){this.current.push(t),t.source={input:this.input,start:this.getPosition(r)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)},n.other=function(t){for(var r=!1,o=null,s=!1,a=null,u=[],c=t[1].startsWith("--"),l=[],f=t;f;){if(o=f[0],l.push(f),o==="("||o==="[")a||(a=f),u.push(o==="("?")":"]");else if(c&&s&&o==="{")a||(a=f),u.push("}");else if(u.length===0)if(o===";")if(s){this.decl(l,c);return}else break;else if(o==="{"){this.rule(l);return}else if(o==="}"){this.tokenizer.back(l.pop()),r=!0;break}else o===":"&&(s=!0);else o===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),u.length>0&&this.unclosedBracket(a),r&&s){if(!c)for(;l.length&&(f=l[l.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,c)}else this.unknownWord(l)},n.parse=function(){for(var t;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()},n.precheckMissedSemicolon=function(){},n.raw=function(t,r,o,s){for(var a,u,c=o.length,l="",f=!0,p,g,d=0;d<c;d+=1)a=o[d],u=a[0],u==="space"&&d===c-1&&!s?f=!1:u==="comment"?(g=o[d-1]?o[d-1][0]:"empty",p=o[d+1]?o[d+1][0]:"empty",!ku[g]&&!ku[p]?l.slice(-1)===","?f=!1:l+=a[1]:f=!1):l+=a[1];if(!f){var y=o.reduce(function(v,m){return v+m[1]},"");t.raws[r]={raw:y,value:l}}t[r]=l},n.rule=function(t){t.pop();var r=new Eu;this.init(r,t[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(r,"selector",t),this.current=r},n.spacesAndCommentsFromEnd=function(t){for(var r,o="";t.length&&(r=t[t.length-1][0],!(r!=="space"&&r!=="comment"));)o=t.pop()[1]+o;return o},n.spacesAndCommentsFromStart=function(t){for(var r,o="";t.length&&(r=t[0][0],!(r!=="space"&&r!=="comment"));)o+=t.shift()[1];return o},n.spacesFromEnd=function(t){for(var r,o="";t.length&&(r=t[t.length-1][0],r==="space");)o=t.pop()[1]+o;return o},n.stringFrom=function(t,r){for(var o="",s=r;s<t.length;s++)o+=t[s][1];return t.splice(r,t.length-r),o},n.unclosedBlock=function(){var t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)},n.unclosedBracket=function(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})},n.unexpectedClose=function(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})},n.unknownWord=function(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})},n.unnamedAtrule=function(t,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},e}(),wd=bd,Sd=wt,Cd=wd,Id=En;function Fn(e,n){var i=new Id(e,n),t=new Cd(i);try{t.parse()}catch(r){throw process.env.NODE_ENV!=="production"&&r.name==="CssSyntaxError"&&n&&n.from&&(/\.scss$/i.test(n.from)?r.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(n.from)?r.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(n.from)&&(r.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),r}return t.root}var So=Fn;Fn.default=Fn,Sd.registerParse(Fn);var Be=it.isClean,Ed=it.my,kd=ru,Od=_n,xd=wt,Rd=vo,Ad=du,Ou=yo,Md=So,Td=Sr,Pd={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Ld={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},Dd={Once:!0,postcssPlugin:!0,prepare:!0},Gt=0;function Ir(e){return(typeof e=="undefined"?"undefined":z(e))==="object"&&typeof e.then=="function"}function xu(e){var n=!1,i=Pd[e.type];return e.type==="decl"?n=e.prop.toLowerCase():e.type==="atrule"&&(n=e.name.toLowerCase()),n&&e.append?[i,i+"-"+n,Gt,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:e.append?[i,Gt,i+"Exit"]:[i,i+"Exit"]}function Ru(e){var n;return e.type==="document"?n=["Document",Gt,"DocumentExit"]:e.type==="root"?n=["Root",Gt,"RootExit"]:n=xu(e),{eventIndex:0,events:n,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Co(e){return e[Be]=!1,e.nodes&&e.nodes.forEach(function(n){return Co(n)}),e}var Io={},Vt=function(){function e(i,t,r){var o=this;this.stringified=!1,this.processed=!1;var s;if((typeof t=="undefined"?"undefined":z(t))==="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=Co(t);else if(N(t,e)||N(t,Ou))s=Co(t.root),t.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{var a=Md;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{s=a(t,r)}catch(u){this.processed=!0,this.error=u}s&&!s[Ed]&&xd.rebuild(s)}this.result=new Ou(i,s,r),this.helpers=j({},Io,{postcss:Io,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":z(u))==="object"&&u.prepare?j({},u,u.prepare(o.result)):u})}var n=e.prototype;return n.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},n.catch=function(t){return this.async().catch(t)},n.finally=function(t){return this.async().then(t,t)},n.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},n.handleError=function(t,r){var o=this.result.lastPlugin;try{if(r&&r.addToError(t),this.error=t,t.name==="CssSyntaxError"&&!t.plugin)t.plugin=o.postcssPlugin,t.setMessage();else if(o.postcssVersion&&process.env.NODE_ENV!=="production"){var s=o.postcssPlugin,a=o.postcssVersion,u=this.result.processor.version,c=a.split("."),l=u.split(".");(c[0]!==l[0]||parseInt(c[1])>parseInt(l[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+u+", but "+s+" uses "+a+". Perhaps this is the source of the error below.")}}catch(f){console&&console.error&&console.error(f)}return t},n.prepareVisitors=function(){var t=this;this.listeners={};for(var r=function(l,f,p){t.listeners[f]||(t.listeners[f]=[]),t.listeners[f].push([l,p])},o=k(this.plugins),s;!(s=o()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":z(a))==="object")for(var u in a){if(!Ld[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Dd[u])if(z(a[u])==="object")for(var c in a[u])c==="*"?r(a,u,a[u][c]):r(a,u+"-"+c.toLowerCase(),a[u][c]);else typeof a[u]=="function"&&r(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},n.runAsync=function(){var t=this;return vi(function(){var r,o,s,a,u,c,l,f,p,g,d,y;return cr(this,function(v){switch(v.label){case 0:t.plugin=0,r=0,v.label=1;case 1:if(!(r<t.plugins.length))return[3,6];if(o=t.plugins[r],s=t.runOnRoot(o),!Ir(s))return[3,5];v.label=2;case 2:return v.trys.push([2,4,,5]),[4,s];case 3:return v.sent(),[3,5];case 4:throw a=v.sent(),t.handleError(a);case 5:return r++,[3,1];case 6:if(t.prepareVisitors(),!t.hasListener)return[3,18];u=t.result.root,v.label=7;case 7:if(u[Be])return[3,14];u[Be]=!0,c=[Ru(u)],v.label=8;case 8:if(!(c.length>0))return[3,13];if(l=t.visitTick(c),!Ir(l))return[3,12];v.label=9;case 9:return v.trys.push([9,11,,12]),[4,l];case 10:return v.sent(),[3,12];case 11:throw f=v.sent(),p=c[c.length-1].node,t.handleError(f,p);case 12:return[3,8];case 13:return[3,7];case 14:if(!t.listeners.OnceExit)return[3,18];g=function(){var m,_,w,S,C;return cr(this,function(O){switch(O.label){case 0:m=y.value,_=m[0],w=m[1],t.result.lastPlugin=_,O.label=1;case 1:return O.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(S=u.nodes.map(function(A){return w(A,t.helpers)}),[4,Promise.all(S)]);case 2:return O.sent(),[3,5];case 3:return[4,w(u,t.helpers)];case 4:O.sent(),O.label=5;case 5:return[3,7];case 6:throw C=O.sent(),t.handleError(C);case 7:return[2]}})},d=k(t.listeners.OnceExit),v.label=15;case 15:return(y=d()).done?[3,18]:[5,ks(g())];case 16:v.sent(),v.label=17;case 17:return[3,15];case 18:return t.processed=!0,[2,t.stringify()]}})})()},n.runOnRoot=function(t){var r=this;this.result.lastPlugin=t;try{if((typeof t=="undefined"?"undefined":z(t))==="object"&&t.Once){if(this.result.root.type==="document"){var o=this.result.root.nodes.map(function(s){return t.Once(s,r.helpers)});return Ir(o[0])?Promise.all(o):o}return t.Once(this.result.root,this.helpers)}else if(typeof t=="function")return t(this.result.root,this.result)}catch(s){throw this.handleError(s)}},n.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var t=this.result.opts,r=Od;t.syntax&&(r=t.syntax.stringify),t.stringifier&&(r=t.stringifier),r.stringify&&(r=r.stringify);var o=new kd(r,this.result.root,this.result.opts),s=o.generate();return this.result.css=s[0],this.result.map=s[1],this.result},n.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 t=k(this.plugins),r;!(r=t()).done;){var o=r.value,s=this.runOnRoot(o);if(Ir(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Be];)a[Be]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=k(a.nodes),c;!(c=u()).done;){var l=c.value;this.visitSync(this.listeners.OnceExit,l)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},n.then=function(t,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||Ad("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,r)},n.toString=function(){return this.css},n.visitSync=function(t,r){for(var o=k(t),s;!(s=o()).done;){var a=s.value,u=a[0],c=a[1];this.result.lastPlugin=u;var l=void 0;try{l=c(r,this.helpers)}catch(f){throw this.handleError(f,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(Ir(l))throw this.getAsyncError()}},n.visitTick=function(t){var r=t[t.length-1],o=r.node,s=r.visitors;if(o.type!=="root"&&o.type!=="document"&&!o.parent){t.pop();return}if(s.length>0&&r.visitorIndex<s.length){var a=s[r.visitorIndex],u=a[0],c=a[1];r.visitorIndex+=1,r.visitorIndex===s.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=u;try{return c(o.toProxy(),this.helpers)}catch(d){throw this.handleError(d,o)}}if(r.iterator!==0){for(var l=r.iterator,f;f=o.nodes[o.indexes[l]];)if(o.indexes[l]+=1,!f[Be]){f[Be]=!0,t.push(Ru(f));return}r.iterator=0,delete o.indexes[l]}for(var p=r.events;r.eventIndex<p.length;){var g=p[r.eventIndex];if(r.eventIndex+=1,g===Gt){o.nodes&&o.nodes.length&&(o[Be]=!0,r.iterator=o.getIterator());return}else if(this.listeners[g]){r.visitors=this.listeners[g];return}}t.pop()},n.walkSync=function(t){var r=this;t[Be]=!0;for(var o=xu(t),s=k(o),a;!(a=s()).done;){var u=a.value;if(u===Gt)t.nodes&&t.each(function(l){l[Be]||r.walkSync(l)});else{var c=this.listeners[u];if(c&&this.visitSync(c,t.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},me(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}();Vt.registerPostcss=function(e){Io=e};var Au=Vt;Vt.default=Vt,Td.registerLazyResult(Vt),Rd.registerLazyResult(Vt);var Nd=ru,$d=_n,Fd=du,Ud=So,Bd=yo,Eo=function(){function e(i,t,r){t=t.toString(),this.stringified=!1,this._processor=i,this._css=t,this._opts=r,this._map=void 0;var o,s=$d;this.result=new Bd(this._processor,o,this._opts),this.result.css=t;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new Nd(s,o,this._opts,t);if(u.isMap()){var c=u.generate(),l=c[0],f=c[1];l&&(this.result.css=l),f&&(this.result.map=f)}else u.clearAnnotation(),this.result.css=u.css}var n=e.prototype;return n.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},n.catch=function(t){return this.async().catch(t)},n.finally=function(t){return this.async().then(t,t)},n.sync=function(){if(this.error)throw this.error;return this.result},n.then=function(t,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||Fd("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,r)},n.toString=function(){return this._css},n.warnings=function(){return[]},me(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 t,r=Ud;try{t=r(this._css,this._opts)}catch(o){this.error=o}if(this.error)throw this.error;return this._root=t,t}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),zd=Eo;Eo.default=Eo;var Wd=zd,qd=Au,Gd=vo,Vd=Sr,Er=function(){function e(i){i===void 0&&(i=[]),this.version="8.4.38",this.plugins=this.normalize(i)}var n=e.prototype;return n.normalize=function(t){for(var r=[],o=k(t),s;!(s=o()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":z(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":z(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":z(a))==="object"&&(a.parse||a.stringify)){if(process.env.NODE_ENV!=="production")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.")}else throw new Error(a+" is not a PostCSS plugin")}return r},n.process=function(t,r){return r===void 0&&(r={}),!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new Wd(this,t,r):new qd(this,t,r)},n.use=function(t){return this.plugins=this.plugins.concat(this.normalize([t])),this},e}(),jd=Er;Er.default=Er,Vd.registerProcessor(Er),Gd.registerProcessor(Er);var Hd=Sn,Yd=Ha,Kd=xn,Jd=bo,Xd=En,Zd=Sr,Qd=wo;function kr(e,n){if(Array.isArray(e))return e.map(function(f){return kr(f)});var i=e.inputs,t=ar(e,["inputs"]);if(i){n=[];for(var r=k(i),o;!(o=r()).done;){var s=o.value,a=j({},s,{__proto__:Xd.prototype});a.map&&(a.map=j({},a.map,{__proto__:Yd.prototype})),n.push(a)}}if(t.nodes&&(t.nodes=e.nodes.map(function(f){return kr(f,n)})),t.source){var u=t.source,c=u.inputId,l=ar(u,["inputId"]);t.source=l,c!=null&&(t.source.input=n[c])}if(t.type==="root")return new Zd(t);if(t.type==="decl")return new Hd(t);if(t.type==="rule")return new Qd(t);if(t.type==="comment")return new Kd(t);if(t.type==="atrule")return new Jd(t);throw new Error("Unknown node type: "+e.type)}var ev=kr;kr.default=kr;var tv=Qi,Mu=Sn,rv=Au,nv=wt,ko=jd,iv=_n,ov=ev,Tu=vo,sv=vu,Pu=xn,Lu=bo,av=yo,uv=En,cv=So,lv=Cu,Du=wo,Nu=Sr,fv=wn;function Z(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new ko(n)}Z.plugin=function(n,i){var t=!1;function r(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];console&&console.warn&&!t&&(t=!0,console.warn(n+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(n+": \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:\nhttps://www.w3ctech.com/topic/2226"));var c=i.apply(void 0,[].concat(a));return c.postcssPlugin=n,c.postcssVersion=new ko().version,c}var o;return Object.defineProperty(r,"postcss",{get:function(){return o||(o=r()),o}}),r.process=function(s,a,u){return Z([r(u)]).process(s,a)},r},Z.stringify=iv,Z.parse=cv,Z.fromJSON=ov,Z.list=lv,Z.comment=function(e){return new Pu(e)},Z.atRule=function(e){return new Lu(e)},Z.decl=function(e){return new Mu(e)},Z.rule=function(e){return new Du(e)},Z.root=function(e){return new Nu(e)},Z.document=function(e){return new Tu(e)},Z.CssSyntaxError=tv,Z.Declaration=Mu,Z.Container=nv,Z.Processor=ko,Z.Document=Tu,Z.Comment=Pu,Z.Warning=sv,Z.AtRule=Lu,Z.Result=av,Z.Input=uv,Z.Rule=Du,Z.Root=Nu,Z.Node=fv,rv.registerPostcss(Z);var hv=Z;Z.default=Z;var se=Cp(hv);se.stringify,se.fromJSON,se.plugin,se.parse,se.list,se.document,se.comment,se.atRule,se.rule,se.decl,se.root,se.CssSyntaxError,se.Declaration,se.Container,se.Processor,se.Document,se.Comment,se.Warning,se.AtRule,se.Result,se.Input,se.Rule,se.Root,se.Node;var pv=function(){function e(){for(var i=arguments.length,t=new Array(i),r=0;r<i;r++)t[r]=arguments[r];Pe(this,"parentElement",null),Pe(this,"parentNode",null),Pe(this,"ownerDocument"),Pe(this,"firstChild",null),Pe(this,"lastChild",null),Pe(this,"previousSibling",null),Pe(this,"nextSibling",null),Pe(this,"ELEMENT_NODE",1),Pe(this,"TEXT_NODE",3),Pe(this,"nodeType"),Pe(this,"nodeName"),Pe(this,"RRNodeType")}var n=e.prototype;return n.contains=function(t){if(N(t,e)){if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0}else return!1;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1},n.appendChild=function(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},n.insertBefore=function(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},n.removeChild=function(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},n.toString=function(){return"RRNode"},me(e,[{key:"childNodes",get:function(){for(var t=[],r=this.firstChild;r;)t.push(r),r=r.nextSibling;return t}}]),e}(),$u={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Fu={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Un={},dv=function(){return!!globalThis.Zone};function Oo(e){if(Un[e])return Un[e];var n=globalThis[e],i=n.prototype,t=e in $u?$u[e]:void 0,r=!!(t&&t.every(function(l){var f,p;return!!((p=(f=Object.getOwnPropertyDescriptor(i,l))==null?void 0:f.get)!=null&&p.toString().includes("[native code]"))})),o=e in Fu?Fu[e]:void 0,s=!!(o&&o.every(function(l){var f;return typeof i[l]=="function"&&((f=i[l])==null?void 0:f.toString().includes("[native code]"))}));if(r&&s&&!dv())return Un[e]=n.prototype,n.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return n.prototype;var c=u[e].prototype;return document.body.removeChild(a),c?Un[e]=c:i}catch(l){return i}}var xo={};function ot(e,n,i){var t,r=e+"."+String(i);if(xo[r])return xo[r].call(n);var o=Oo(e),s=(t=Object.getOwnPropertyDescriptor(o,i))==null?void 0:t.get;return s?(xo[r]=s,s.call(n)):n[i]}var Ro={};function Uu(e,n,i){var t=e+"."+String(i);if(Ro[t])return Ro[t].bind(n);var r=Oo(e),o=r[i];return typeof o!="function"?n[i]:(Ro[t]=o,o.bind(n))}function vv(e){return ot("Node",e,"childNodes")}function gv(e){return ot("Node",e,"parentNode")}function mv(e){return ot("Node",e,"parentElement")}function yv(e){return ot("Node",e,"textContent")}function _v(e,n){return Uu("Node",e,"contains")(n)}function bv(e){return Uu("Node",e,"getRootNode")()}function wv(e){return!e||!("host"in e)?null:ot("ShadowRoot",e,"host")}function Sv(e){return e.styleSheets}function Cv(e){return!e||!("shadowRoot"in e)?null:ot("Element",e,"shadowRoot")}function Iv(e,n){return ot("Element",e,"querySelector")(n)}function Ev(e,n){return ot("Element",e,"querySelectorAll")(n)}function Bu(){return Oo("MutationObserver").constructor}function St(e,n,i){try{if(!(n in e))return function(){};var t=e[n],r=i(t);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:t}})),e[n]=r,function(){e[n]=t}}catch(o){return function(){}}}var W={childNodes:vv,parentNode:gv,parentElement:mv,textContent:yv,contains:_v,getRootNode:bv,host:wv,styleSheets:Sv,shadowRoot:Cv,querySelector:Iv,querySelectorAll:Ev,mutationObserver:Bu,patch:St};function Se(e,n,i){i===void 0&&(i=document);var t={capture:!0,passive:!0};return i.addEventListener(e,n,t),function(){return i.removeEventListener(e,n,t)}}var jt="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.",zu={map:{},getId:function(){return console.error(jt),-1},getNode:function(){return console.error(jt),null},removeNodeFromMap:function(){console.error(jt)},has:function(){return console.error(jt),!1},reset:function(){console.error(jt)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(zu=new Proxy(zu,{get:function(n,i,t){return i==="map"&&console.error(jt),Reflect.get(n,i,t)}}));function Or(e,n,i){i===void 0&&(i={});var t=null,r=0;return function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];var u=Date.now();!r&&i.leading===!1&&(r=u);var c=n-(u-r),l=this;c<=0||c>n?(t&&(clearTimeout(t),t=null),r=u,e.apply(l,s)):!t&&i.trailing!==!1&&(t=setTimeout(function(){r=i.leading===!1?0:Date.now(),t=null,e.apply(l,s)},c))}}function Bn(e,n,i,t,r){r===void 0&&(r=window);var o=r.Object.getOwnPropertyDescriptor(e,n);return r.Object.defineProperty(e,n,t?i:{set:function(a){var u=this;setTimeout(function(){i.set.call(u,a)},0),o&&o.set&&o.set.call(this,a)}}),function(){return Bn(e,n,o||{},!0)}}var zn=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(zn=function(){return new Date().getTime()});function Wu(e){var n,i,t,r,o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:o.documentElement.scrollLeft||(o==null?void 0:o.body)&&((n=W.parentElement(o.body))==null?void 0:n.scrollLeft)||((i=o==null?void 0:o.body)==null?void 0:i.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:(o==null?void 0:o.documentElement.scrollTop)||(o==null?void 0:o.body)&&((t=W.parentElement(o.body))==null?void 0:t.scrollTop)||((r=o==null?void 0:o.body)==null?void 0:r.scrollTop)||0}}function qu(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Gu(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Vu(e){if(!e)return null;var n=e.nodeType===e.ELEMENT_NODE?e:W.parentElement(e);return n}function Ce(e,n,i,t){if(!e)return!1;var r=Vu(e);if(!r)return!1;try{if(typeof n=="string"){if(r.classList.contains(n)||t&&r.closest("."+n)!==null)return!0}else if(Xr(r,n,t))return!0}catch(o){}return!!(i&&(r.matches(i)||t&&r.closest(i)!==null))}function kv(e,n){return n.getId(e)!==-1}function Ao(e,n,i){return e.tagName==="TITLE"&&i.headTitleMutations?!0:n.getId(e)===hr}function ju(e,n){if(lr(e))return!1;var i=n.getId(e);if(!n.has(i))return!0;var t=W.parentNode(e);return t&&t.nodeType===e.DOCUMENT_NODE?!1:t?ju(t,n):!0}function Mo(e){return!!e.changedTouches}function Ov(e){e===void 0&&(e=window),"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Hu(e,n){return!!(e.nodeName==="IFRAME"&&n.getMeta(e))}function Yu(e,n){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&n.getMeta(e))}function To(e){return e?N(e,pv)&&"shadowRoot"in e?!!e.shadowRoot:!!W.shadowRoot(e):!1}var xv=function(){function e(){E(this,"id",1),E(this,"styleIDMap",new WeakMap),E(this,"idStyleMap",new Map)}var n=e.prototype;return n.getId=function(t){var r;return(r=this.styleIDMap.get(t))!=null?r:-1},n.has=function(t){return this.styleIDMap.has(t)},n.add=function(t,r){if(this.has(t))return this.getId(t);var o;return r===void 0?o=this.id++:o=r,this.styleIDMap.set(t,o),this.idStyleMap.set(o,t),o},n.getStyle=function(t){return this.idStyleMap.get(t)||null},n.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},n.generateId=function(){return this.id++},e}();function Ku(e){var n,i=null;return"getRootNode"in e&&((n=W.getRootNode(e))==null?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&W.host(W.getRootNode(e))&&(i=W.host(W.getRootNode(e))),i}function Rv(e){for(var n=e,i;i=Ku(n);)n=i;return n}function Av(e){var n=e.ownerDocument;if(!n)return!1;var i=Rv(e);return W.contains(n,i)}function Ju(e){var n=e.ownerDocument;return n?W.contains(n,e)||Av(e):!1}var q=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}(q||{}),T=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}(T||{}),ke=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}(ke||{}),Ye=function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e}(Ye||{}),Ht=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}(Ht||{}),Yt=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}(Yt||{}),Xu=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}(Xu||{});function Zu(e){return"__ln"in e}var Mv=function(){function e(){E(this,"length",0),E(this,"head",null),E(this,"tail",null)}var n=e.prototype;return n.get=function(t){if(t>=this.length)throw new Error("Position outside of list range");for(var r=this.head,o=0;o<t;o++)r=(r==null?void 0:r.next)||null;return r},n.addNode=function(t){var r={value:t,previous:null,next:null};if(t.__ln=r,t.previousSibling&&Zu(t.previousSibling)){var o=t.previousSibling.__ln.next;r.next=o,r.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=r,o&&(o.previous=r)}else if(t.nextSibling&&Zu(t.nextSibling)&&t.nextSibling.__ln.previous){var s=t.nextSibling.__ln.previous;r.previous=s,r.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=r,s&&(s.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++},n.removeNode=function(t){var r=t.__ln;this.head&&(r.previous?(r.previous.next=r.next,r.next?r.next.previous=r.previous:this.tail=r.previous):(this.head=r.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)},e}(),Qu=function(e,n){return e+"@"+n},Tv=function(){function e(){var i=this;E(this,"frozen",!1),E(this,"locked",!1),E(this,"texts",[]),E(this,"attributes",[]),E(this,"attributeMap",new WeakMap),E(this,"removes",[]),E(this,"mapRemoves",[]),E(this,"movedMap",{}),E(this,"addedSet",new Set),E(this,"movedSet",new Set),E(this,"droppedSet",new Set),E(this,"removesSubTreeCache",new Set),E(this,"mutationCb"),E(this,"blockClass"),E(this,"blockSelector"),E(this,"maskTextClass"),E(this,"maskTextSelector"),E(this,"inlineStylesheet"),E(this,"maskInputOptions"),E(this,"maskTextFn"),E(this,"maskInputFn"),E(this,"keepIframeSrcFn"),E(this,"recordCanvas"),E(this,"inlineImages"),E(this,"slimDOMOptions"),E(this,"dataURLOptions"),E(this,"doc"),E(this,"mirror"),E(this,"iframeManager"),E(this,"stylesheetManager"),E(this,"shadowDomManager"),E(this,"canvasManager"),E(this,"processedNodeManager"),E(this,"unattachedDoc"),E(this,"processMutations",function(t){t.forEach(i.processMutation),i.emit()}),E(this,"emit",function(){if(!(i.frozen||i.locked)){for(var t=[],r=new Set,o=new Mv,s=function(M){for(var B=M,K=hr;K===hr;)B=B&&B.nextSibling,K=B&&i.mirror.getId(B);return K},a=function(M){var B=W.parentNode(M);if(!(!B||!Ju(M))){var K=!1;if(M.nodeType===Node.TEXT_NODE){var Oe=B.tagName;if(Oe==="TEXTAREA")return;Oe==="STYLE"&&i.addedSet.has(B)&&(K=!0)}var J=lr(B)?i.mirror.getId(Ku(M)):i.mirror.getId(B),Ae=s(M);if(J===-1||Ae===-1)return o.addNode(M);var Ee=Ut(M,{doc:i.doc,mirror:i.mirror,blockClass:i.blockClass,blockSelector:i.blockSelector,maskTextClass:i.maskTextClass,maskTextSelector:i.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:i.inlineStylesheet,maskInputOptions:i.maskInputOptions,maskTextFn:i.maskTextFn,maskInputFn:i.maskInputFn,slimDOMOptions:i.slimDOMOptions,dataURLOptions:i.dataURLOptions,recordCanvas:i.recordCanvas,inlineImages:i.inlineImages,onSerialize:function(ae){Hu(ae,i.mirror)&&i.iframeManager.addIframe(ae),Yu(ae,i.mirror)&&i.stylesheetManager.trackLinkElement(ae),To(M)&&i.shadowDomManager.addShadowRoot(W.shadowRoot(M),i.doc)},onIframeLoad:function(ae,_e){i.iframeManager.attachIframe(ae,_e),i.shadowDomManager.observeAttachShadow(ae)},onStylesheetLoad:function(ae,_e){i.stylesheetManager.attachLinkElement(ae,_e)},cssCaptured:K});Ee&&(t.push({parentId:J,nextId:Ae,node:Ee}),r.add(Ee.id))}};i.mapRemoves.length;)i.mirror.removeNodeFromMap(i.mapRemoves.shift());for(var u=k(i.movedSet),c;!(c=u()).done;){var l=c.value;ec(i.removesSubTreeCache,l,i.mirror)&&!i.movedSet.has(W.parentNode(l))||a(l)}for(var f=k(i.addedSet),p;!(p=f()).done;){var g=p.value;!tc(i.droppedSet,g)&&!ec(i.removesSubTreeCache,g,i.mirror)||tc(i.movedSet,g)?a(g):i.droppedSet.add(g)}for(var d=null;o.length;){var y=null;if(d){var v=i.mirror.getId(W.parentNode(d.value)),m=s(d.value);v!==-1&&m!==-1&&(y=d)}if(!y)for(var _=o.tail;_;){var w=_;if(_=_.previous,w){var S=i.mirror.getId(W.parentNode(w.value)),C=s(w.value);if(C===-1)continue;if(S!==-1){y=w;break}else{var O=w.value,A=W.parentNode(O);if(A&&A.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var x=W.host(A),L=i.mirror.getId(x);if(L!==-1){y=w;break}}}}}if(!y){for(;o.head;)o.removeNode(o.head.value);break}d=y.previous,o.removeNode(y.value),a(y.value)}var H={texts:i.texts.map(function(M){var B=M.node,K=W.parentNode(B);return K&&K.tagName==="TEXTAREA"&&i.genTextAreaValueMutation(K),{id:i.mirror.getId(B),value:M.value}}).filter(function(M){return!r.has(M.id)}).filter(function(M){return i.mirror.has(M.id)}),attributes:i.attributes.map(function(M){var B=M.attributes;if(typeof B.style=="string"){var K=JSON.stringify(M.styleDiff),Oe=JSON.stringify(M._unchangedStyles);K.length<B.style.length&&(K+Oe).split("var(").length===B.style.split("var(").length&&(B.style=M.styleDiff)}return{id:i.mirror.getId(M.node),attributes:B}}).filter(function(M){return!r.has(M.id)}).filter(function(M){return i.mirror.has(M.id)}),removes:i.removes,adds:t};!H.texts.length&&!H.attributes.length&&!H.removes.length&&!H.adds.length||(i.texts=[],i.attributes=[],i.attributeMap=new WeakMap,i.removes=[],i.addedSet=new Set,i.movedSet=new Set,i.droppedSet=new Set,i.removesSubTreeCache=new Set,i.movedMap={},i.mutationCb(H))}}),E(this,"genTextAreaValueMutation",function(t){var r=i.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},i.attributes.push(r),i.attributeMap.set(t,r));var o=Array.from(W.childNodes(t),function(s){return W.textContent(s)||""}).join("");r.attributes.value=Hr({element:t,maskInputOptions:i.maskInputOptions,tagName:t.tagName,type:Yr(t),value:o,maskInputFn:i.maskInputFn})}),E(this,"processMutation",function(t){if(!Ao(t.target,i.mirror,i.slimDOMOptions))switch(t.type){case"characterData":{var r=W.textContent(t.target);!Ce(t.target,i.blockClass,i.blockSelector,!1)&&r!==t.oldValue&&i.texts.push({value:Ws(t.target,i.maskTextClass,i.maskTextSelector,!0)&&r?i.maskTextFn?i.maskTextFn(r,Vu(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{var o=t.target,s=t.attributeName,a=t.target.getAttribute(s);if(s==="value"){var u=Yr(o);a=Hr({element:o,maskInputOptions:i.maskInputOptions,tagName:o.tagName,type:u,value:a,maskInputFn:i.maskInputFn})}if(Ce(t.target,i.blockClass,i.blockSelector,!1)||a===t.oldValue)return;var c=i.attributeMap.get(t.target);if(o.tagName==="IFRAME"&&s==="src"&&!i.keepIframeSrcFn(a))if(!o.contentDocument)s="rr_src";else return;if(c||(c={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},i.attributes.push(c),i.attributeMap.set(t.target,c)),s==="type"&&o.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&o.setAttribute("data-rr-is-password","true"),!zs(o.tagName,s))if(c.attributes[s]=Bs(i.doc,_t(o.tagName),_t(s),a),s==="style"){if(!i.unattachedDoc)try{i.unattachedDoc=document.implementation.createHTMLDocument()}catch(w){i.unattachedDoc=i.doc}var l=i.unattachedDoc.createElement("span");t.oldValue&&l.setAttribute("style",t.oldValue);for(var f=k(Array.from(o.style)),p;!(p=f()).done;){var g=p.value,d=o.style.getPropertyValue(g),y=o.style.getPropertyPriority(g);d!==l.style.getPropertyValue(g)||y!==l.style.getPropertyPriority(g)?y===""?c.styleDiff[g]=d:c.styleDiff[g]=[d,y]:c._unchangedStyles[g]=[d,y]}for(var v=k(Array.from(l.style)),m;!(m=v()).done;){var _=m.value;o.style.getPropertyValue(_)===""&&(c.styleDiff[_]=!1)}}else s==="open"&&o.tagName==="DIALOG"&&(o.matches("dialog:modal")?c.attributes.rr_open_mode="modal":c.attributes.rr_open_mode="non-modal");break}case"childList":{if(Ce(t.target,i.blockClass,i.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){i.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(function(w){return i.genAdds(w,t.target)}),t.removedNodes.forEach(function(w){var S=i.mirror.getId(w),C=lr(t.target)?i.mirror.getId(W.host(t.target)):i.mirror.getId(t.target);Ce(t.target,i.blockClass,i.blockSelector,!1)||Ao(w,i.mirror,i.slimDOMOptions)||!kv(w,i.mirror)||(i.addedSet.has(w)?(Po(i.addedSet,w),i.droppedSet.add(w)):i.addedSet.has(t.target)&&S===-1||ju(t.target,i.mirror)||(i.movedSet.has(w)&&i.movedMap[Qu(S,C)]?Po(i.movedSet,w):(i.removes.push({parentId:C,id:S,isShadow:lr(t.target)&&fr(t.target)?!0:void 0}),Pv(w,i.removesSubTreeCache))),i.mapRemoves.push(w))});break}}}),E(this,"genAdds",function(t,r){if(!i.processedNodeManager.inOtherBuffer(t,i)&&!(i.addedSet.has(t)||i.movedSet.has(t))){if(i.mirror.hasNode(t)){if(Ao(t,i.mirror,i.slimDOMOptions))return;i.movedSet.add(t);var o=null;r&&i.mirror.hasNode(r)&&(o=i.mirror.getId(r)),o&&o!==-1&&(i.movedMap[Qu(i.mirror.getId(t),o)]=!0)}else i.addedSet.add(t),i.droppedSet.delete(t);Ce(t,i.blockClass,i.blockSelector,!1)||(W.childNodes(t).forEach(function(s){return i.genAdds(s)}),To(t)&&W.childNodes(W.shadowRoot(t)).forEach(function(s){i.processedNodeManager.add(s,i),i.genAdds(s,t)}))}})}var n=e.prototype;return n.init=function(t){var r=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(o){r[o]=t[o]})},n.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},n.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},n.isFrozen=function(){return this.frozen},n.lock=function(){this.locked=!0,this.canvasManager.lock()},n.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},n.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},e}();function Po(e,n){e.delete(n),W.childNodes(n).forEach(function(i){return Po(e,i)})}function Pv(e,n){for(var i=[e];i.length;){var t=i.pop();n.has(t)||(n.add(t),W.childNodes(t).forEach(function(r){return i.push(r)}))}}function ec(e,n,i){return e.size===0?!1:Lv(e,n)}function Lv(e,n,i){var t=W.parentNode(n);return t?e.has(t):!1}function tc(e,n){return e.size===0?!1:rc(e,n)}function rc(e,n){var i=W.parentNode(n);return i?e.has(i)?!0:rc(e,i):!1}var xr;function Dv(e){xr=e}function Nv(){xr=void 0}var V=function(e){if(!xr)return e;var n=function(){for(var i=arguments.length,t=new Array(i),r=0;r<i;r++)t[r]=arguments[r];try{return e.apply(void 0,[].concat(t))}catch(o){if(xr&&xr(o)===!0)return;throw o}};return n},Ct=[];function Rr(e){try{if("composedPath"in e){var n=e.composedPath();if(n.length)return n[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(i){}return e&&e.target}function nc(e,n){var i=new Tv;Ct.push(i),i.init(e);var t=new(Bu())(V(i.processMutations.bind(i)));return t.observe(n,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),t}function $v(e){var n=e.mousemoveCb,i=e.sampling,t=e.doc,r=e.mirror;if(i.mousemove===!1)return function(){};var o=typeof i.mousemove=="number"?i.mousemove:50,s=typeof i.mousemoveCallback=="number"?i.mousemoveCallback:500,a=[],u,c=Or(V(function(p){var g=Date.now()-u;n(a.map(function(d){return d.timeOffset-=g,d}),p),a=[],u=null}),s),l=V(Or(V(function(p){var g=Rr(p),d=Mo(p)?p.changedTouches[0]:p,y=d.clientX,v=d.clientY;u||(u=zn()),a.push({x:y,y:v,id:r.getId(g),timeOffset:zn()-u}),c(typeof DragEvent!="undefined"&&N(p,DragEvent)?T.Drag:N(p,MouseEvent)?T.MouseMove:T.TouchMove)}),o,{trailing:!1})),f=[Se("mousemove",l,t),Se("touchmove",l,t),Se("drag",l,t)];return V(function(){f.forEach(function(p){return p()})})}function Fv(e){var n=e.mouseInteractionCb,i=e.doc,t=e.mirror,r=e.blockClass,o=e.blockSelector,s=e.sampling;if(s.mouseInteraction===!1)return function(){};var a=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,u=[],c=null,l=function(f){return function(p){var g=Rr(p);if(!Ce(g,r,o,!0)){var d=null,y=f;if("pointerType"in p){switch(p.pointerType){case"mouse":d=Ye.Mouse;break;case"touch":d=Ye.Touch;break;case"pen":d=Ye.Pen;break}d===Ye.Touch?ke[f]===ke.MouseDown?y="TouchStart":ke[f]===ke.MouseUp&&(y="TouchEnd"):Ye.Pen}else Mo(p)&&(d=Ye.Touch);d!==null?(c=d,(y.startsWith("Touch")&&d===Ye.Touch||y.startsWith("Mouse")&&d===Ye.Mouse)&&(d=null)):ke[f]===ke.Click&&(d=c,c=null);var v=Mo(p)?p.changedTouches[0]:p;if(v){var m=t.getId(g),_=v.clientX,w=v.clientY;V(n)(j({type:ke[y],id:m,x:_,y:w},d!==null&&{pointerType:d}))}}}};return Object.keys(ke).filter(function(f){return Number.isNaN(Number(f))&&!f.endsWith("_Departed")&&a[f]!==!1}).forEach(function(f){var p=_t(f),g=l(f);if(window.PointerEvent)switch(ke[f]){case ke.MouseDown:case ke.MouseUp:p=p.replace("mouse","pointer");break;case ke.TouchStart:case ke.TouchEnd:return}u.push(Se(p,g,i))}),V(function(){u.forEach(function(f){return f()})})}function ic(e){var n=e.scrollCb,i=e.doc,t=e.mirror,r=e.blockClass,o=e.blockSelector,s=e.sampling,a=V(Or(V(function(u){var c=Rr(u);if(!(!c||Ce(c,r,o,!0))){var l=t.getId(c);if(c===i&&i.defaultView){var f=Wu(i.defaultView);n({id:l,x:f.left,y:f.top})}else n({id:l,x:c.scrollLeft,y:c.scrollTop})}}),s.scroll||100));return Se("scroll",a,i)}function Uv(e,n){var i=e.viewportResizeCb,t=n.win,r=-1,o=-1,s=V(Or(V(function(){var a=qu(),u=Gu();(r!==a||o!==u)&&(i({width:Number(u),height:Number(a)}),r=a,o=u)}),200));return Se("resize",s,t)}var Bv=["INPUT","TEXTAREA","SELECT"],oc=new WeakMap;function zv(e){var n=e.inputCb,i=e.doc,t=e.mirror,r=e.blockClass,o=e.blockSelector,s=e.ignoreClass,a=e.ignoreSelector,u=e.maskInputOptions,c=e.maskInputFn,l=e.sampling,f=e.userTriggeredOnInput;function p(S){var C=Rr(S),O=S.isTrusted,A=C&&C.tagName;if(C&&A==="OPTION"&&(C=W.parentElement(C)),!(!C||!A||Bv.indexOf(A)<0||Ce(C,r,o,!0))&&!(C.classList.contains(s)||a&&C.matches(a))){var x=C.value,L=!1,H=Yr(C)||"";H==="radio"||H==="checkbox"?L=C.checked:(u[A.toLowerCase()]||u[H])&&(x=Hr({element:C,maskInputOptions:u,tagName:A,type:H,value:x,maskInputFn:c})),g(C,f?{text:x,isChecked:L,userTriggered:O}:{text:x,isChecked:L});var M=C.name;H==="radio"&&M&&L&&i.querySelectorAll('input[type="radio"][name="'+M+'"]').forEach(function(B){if(B!==C){var K=B.value;g(B,f?{text:K,isChecked:!L,userTriggered:!1}:{text:K,isChecked:!L})}})}}function g(S,C){var O=oc.get(S);if(!O||O.text!==C.text||O.isChecked!==C.isChecked){oc.set(S,C);var A=t.getId(S);V(n)(j({},C,{id:A}))}}var d=l.input==="last"?["change"]:["input","change"],y=d.map(function(S){return Se(S,V(p),i)}),v=i.defaultView;if(!v)return function(){y.forEach(function(S){return S()})};var m=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),_=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]];if(m&&m.set){var w;(w=y).push.apply(w,[].concat(_.map(function(S){return Bn(S[0],S[1],{set:function(){V(p)({target:this,isTrusted:!1})}},!1,v)})))}return V(function(){y.forEach(function(S){return S()})})}function Wn(e){var n=[];function i(t,r){if(qn("CSSGroupingRule")&&N(t.parentRule,CSSGroupingRule)||qn("CSSMediaRule")&&N(t.parentRule,CSSMediaRule)||qn("CSSSupportsRule")&&N(t.parentRule,CSSSupportsRule)||qn("CSSConditionRule")&&N(t.parentRule,CSSConditionRule)){var o=Array.from(t.parentRule.cssRules),s=o.indexOf(t);r.unshift(s)}else if(t.parentStyleSheet){var a=Array.from(t.parentStyleSheet.cssRules),u=a.indexOf(t);r.unshift(u)}return r}return i(e,n)}function st(e,n,i){var t,r;return e?(e.ownerNode?t=n.getId(e.ownerNode):r=i.getId(e),{styleId:r,id:t}):{}}function Wv(e,n){var i=e.styleSheetRuleCb,t=e.mirror,r=e.stylesheetManager,o=n.win;if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return function(){};var s=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:V(function(p,g,d){var y=d[0],v=d[1],m=st(g,t,r.styleMirror),_=m.id,w=m.styleId;return(_&&_!==-1||w&&w!==-1)&&i({id:_,styleId:w,adds:[{rule:y,index:v}]}),p.apply(g,d)})}),o.CSSStyleSheet.prototype.addRule=function(p,g,d){d===void 0&&(d=this.cssRules.length);var y=p+" { "+g+" }";return o.CSSStyleSheet.prototype.insertRule.apply(this,[y,d])};var a=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:V(function(p,g,d){var y=d[0],v=st(g,t,r.styleMirror),m=v.id,_=v.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,removes:[{index:y}]}),p.apply(g,d)})}),o.CSSStyleSheet.prototype.removeRule=function(p){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[p])};var u;o.CSSStyleSheet.prototype.replace&&(u=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(u,{apply:V(function(p,g,d){var y=d[0],v=st(g,t,r.styleMirror),m=v.id,_=v.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,replace:y}),p.apply(g,d)})}));var c;o.CSSStyleSheet.prototype.replaceSync&&(c=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:V(function(p,g,d){var y=d[0],v=st(g,t,r.styleMirror),m=v.id,_=v.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,replaceSync:y}),p.apply(g,d)})}));var l={};Gn("CSSGroupingRule")?l.CSSGroupingRule=o.CSSGroupingRule:(Gn("CSSMediaRule")&&(l.CSSMediaRule=o.CSSMediaRule),Gn("CSSConditionRule")&&(l.CSSConditionRule=o.CSSConditionRule),Gn("CSSSupportsRule")&&(l.CSSSupportsRule=o.CSSSupportsRule));var f={};return Object.entries(l).forEach(function(p){var g=p[0],d=p[1];f[g]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(f[g].insertRule,{apply:V(function(y,v,m){var _=m[0],w=m[1],S=st(v.parentStyleSheet,t,r.styleMirror),C=S.id,O=S.styleId;return(C&&C!==-1||O&&O!==-1)&&i({id:C,styleId:O,adds:[{rule:_,index:[].concat(Wn(v),[w||0])}]}),y.apply(v,m)})}),d.prototype.deleteRule=new Proxy(f[g].deleteRule,{apply:V(function(y,v,m){var _=m[0],w=st(v.parentStyleSheet,t,r.styleMirror),S=w.id,C=w.styleId;return(S&&S!==-1||C&&C!==-1)&&i({id:S,styleId:C,removes:[{index:[].concat(Wn(v),[_])}]}),y.apply(v,m)})})}),V(function(){o.CSSStyleSheet.prototype.insertRule=s,o.CSSStyleSheet.prototype.deleteRule=a,u&&(o.CSSStyleSheet.prototype.replace=u),c&&(o.CSSStyleSheet.prototype.replaceSync=c),Object.entries(l).forEach(function(p){var g=p[0],d=p[1];d.prototype.insertRule=f[g].insertRule,d.prototype.deleteRule=f[g].deleteRule})})}function sc(e,n){var i=e.mirror,t=e.stylesheetManager,r,o,s,a=null;n.nodeName==="#document"?a=i.getId(n):a=i.getId(W.host(n));var u=n.nodeName==="#document"?(r=n.defaultView)==null?void 0:r.Document:(s=(o=n.ownerDocument)==null?void 0:o.defaultView)==null?void 0:s.ShadowRoot,c=u!=null&&u.prototype?Object.getOwnPropertyDescriptor(u==null?void 0:u.prototype,"adoptedStyleSheets"):void 0;return a===null||a===-1||!u||!c?function(){}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:function(){var f;return(f=c.get)==null?void 0:f.call(this)},set:function(f){var p,g=(p=c.set)==null?void 0:p.call(this,f);if(a!==null&&a!==-1)try{t.adoptStyleSheets(f,a)}catch(d){}return g}}),V(function(){Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}))}function qv(e,n){var i=e.styleDeclarationCb,t=e.mirror,r=e.ignoreCSSAttributes,o=e.stylesheetManager,s=n.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:V(function(c,l,f){var p,g=f[0],d=f[1],y=f[2];if(r.has(g))return a.apply(l,[g,d,y]);var v=st((p=l.parentRule)==null?void 0:p.parentStyleSheet,t,o.styleMirror),m=v.id,_=v.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,set:{property:g,value:d,priority:y},index:Wn(l.parentRule)}),c.apply(l,f)})});var u=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:V(function(c,l,f){var p,g=f[0];if(r.has(g))return u.apply(l,[g]);var d=st((p=l.parentRule)==null?void 0:p.parentStyleSheet,t,o.styleMirror),y=d.id,v=d.styleId;return(y&&y!==-1||v&&v!==-1)&&i({id:y,styleId:v,remove:{property:g},index:Wn(l.parentRule)}),c.apply(l,f)})}),V(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=u})}function Gv(e){var n=e.mediaInteractionCb,i=e.blockClass,t=e.blockSelector,r=e.mirror,o=e.sampling,s=e.doc,a=V(function(c){return Or(V(function(l){var f=Rr(l);if(!(!f||Ce(f,i,t,!0))){var p=f.currentTime,g=f.volume,d=f.muted,y=f.playbackRate,v=f.loop;n({type:c,id:r.getId(f),currentTime:p,volume:g,muted:d,playbackRate:y,loop:v})}}),o.media||500)}),u=[Se("play",a(Yt.Play),s),Se("pause",a(Yt.Pause),s),Se("seeked",a(Yt.Seeked),s),Se("volumechange",a(Yt.VolumeChange),s),Se("ratechange",a(Yt.RateChange),s)];return V(function(){u.forEach(function(c){return c()})})}function Vv(e){var n=e.fontCb,i=e.doc,t=i.defaultView;if(!t)return function(){};var r=[],o=new WeakMap,s=t.FontFace;t.FontFace=function(c,l,f){var p=new s(c,l,f);return o.set(p,{family:c,buffer:typeof l!="string",descriptors:f,fontSource:typeof l=="string"?l:JSON.stringify(Array.from(new Uint8Array(l)))}),p};var a=St(i.fonts,"add",function(u){return function(c){return setTimeout(V(function(){var l=o.get(c);l&&(n(l),o.delete(c))}),0),u.apply(this,[c])}});return r.push(function(){t.FontFace=s}),r.push(a),V(function(){r.forEach(function(u){return u()})})}function jv(e){var n=e.doc,i=e.mirror,t=e.blockClass,r=e.blockSelector,o=e.selectionCb,s=!0,a=V(function(){var u=n.getSelection();if(!(!u||s&&(u!=null&&u.isCollapsed))){s=u.isCollapsed||!1;for(var c=[],l=u.rangeCount||0,f=0;f<l;f++){var p=u.getRangeAt(f),g=p.startContainer,d=p.startOffset,y=p.endContainer,v=p.endOffset,m=Ce(g,t,r,!0)||Ce(y,t,r,!0);m||c.push({start:i.getId(g),startOffset:d,end:i.getId(y),endOffset:v})}o({ranges:c})}});return a(),Se("selectionchange",a)}function Hv(e){var n=e.doc,i=e.customElementCb,t=n.defaultView;if(!t||!t.customElements)return function(){};var r=St(t.customElements,"define",function(o){return function(s,a,u){try{i({define:{name:s}})}catch(c){console.warn("Custom element callback failed for "+s)}return o.apply(this,[s,a,u])}});return r}function Yv(e,n){var i=e.mutationCb,t=e.mousemoveCb,r=e.mouseInteractionCb,o=e.scrollCb,s=e.viewportResizeCb,a=e.inputCb,u=e.mediaInteractionCb,c=e.styleSheetRuleCb,l=e.styleDeclarationCb,f=e.canvasMutationCb,p=e.fontCb,g=e.selectionCb,d=e.customElementCb;e.mutationCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.mutation){var _;(_=n).mutation.apply(_,[].concat(v))}i.apply(void 0,[].concat(v))},e.mousemoveCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.mousemove){var _;(_=n).mousemove.apply(_,[].concat(v))}t.apply(void 0,[].concat(v))},e.mouseInteractionCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.mouseInteraction){var _;(_=n).mouseInteraction.apply(_,[].concat(v))}r.apply(void 0,[].concat(v))},e.scrollCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.scroll){var _;(_=n).scroll.apply(_,[].concat(v))}o.apply(void 0,[].concat(v))},e.viewportResizeCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.viewportResize){var _;(_=n).viewportResize.apply(_,[].concat(v))}s.apply(void 0,[].concat(v))},e.inputCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.input){var _;(_=n).input.apply(_,[].concat(v))}a.apply(void 0,[].concat(v))},e.mediaInteractionCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.mediaInteaction){var _;(_=n).mediaInteaction.apply(_,[].concat(v))}u.apply(void 0,[].concat(v))},e.styleSheetRuleCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.styleSheetRule){var _;(_=n).styleSheetRule.apply(_,[].concat(v))}c.apply(void 0,[].concat(v))},e.styleDeclarationCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.styleDeclaration){var _;(_=n).styleDeclaration.apply(_,[].concat(v))}l.apply(void 0,[].concat(v))},e.canvasMutationCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.canvasMutation){var _;(_=n).canvasMutation.apply(_,[].concat(v))}f.apply(void 0,[].concat(v))},e.fontCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.font){var _;(_=n).font.apply(_,[].concat(v))}p.apply(void 0,[].concat(v))},e.selectionCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.selection){var _;(_=n).selection.apply(_,[].concat(v))}g.apply(void 0,[].concat(v))},e.customElementCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.customElement){var _;(_=n).customElement.apply(_,[].concat(v))}d.apply(void 0,[].concat(v))}}function Kv(e,n){n===void 0&&(n={});var i=e.doc.defaultView;if(!i)return function(){};Yv(e,n);var t;e.recordDOM&&(t=nc(e,e.doc));var r=$v(e),o=Fv(e),s=ic(e),a=Uv(e,{win:i}),u=zv(e),c=Gv(e),l=function(){},f=function(){},p=function(){},g=function(){};e.recordDOM&&(l=Wv(e,{win:i}),f=sc(e,e.doc),p=qv(e,{win:i}),e.collectFonts&&(g=Vv(e)));for(var d=jv(e),y=Hv(e),v=[],m=k(e.plugins),_;!(_=m()).done;){var w=_.value;v.push(w.observer(w.callback,i,w.options))}return V(function(){Ct.forEach(function(S){return S.reset()}),t==null||t.disconnect(),r(),o(),s(),a(),u(),c(),l(),f(),p(),g(),d(),y(),v.forEach(function(S){return S()})})}function qn(e){return typeof window[e]!="undefined"}function Gn(e){return!!(typeof window[e]!="undefined"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var ac=function(){function e(i){E(this,"iframeIdToRemoteIdMap",new WeakMap),E(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=i}var n=e.prototype;return n.getId=function(t,r,o,s){var a=o||this.getIdToRemoteIdMap(t),u=s||this.getRemoteIdToIdMap(t),c=a.get(r);return c||(c=this.generateIdFn(),a.set(r,c),u.set(c,r)),c},n.getIds=function(t,r){var o=this,s=this.getIdToRemoteIdMap(t),a=this.getRemoteIdToIdMap(t);return r.map(function(u){return o.getId(t,u,s,a)})},n.getRemoteId=function(t,r,o){var s=o||this.getRemoteIdToIdMap(t);if(typeof r!="number")return r;var a=s.get(r);return a||-1},n.getRemoteIds=function(t,r){var o=this,s=this.getRemoteIdToIdMap(t);return r.map(function(a){return o.getRemoteId(t,a,s)})},n.reset=function(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)},n.getIdToRemoteIdMap=function(t){var r=this.iframeIdToRemoteIdMap.get(t);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(t,r)),r},n.getRemoteIdToIdMap=function(t){var r=this.iframeRemoteIdToIdMap.get(t);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(t,r)),r},e}(),Jv=function(){function e(i){E(this,"iframes",new WeakMap),E(this,"crossOriginIframeMap",new WeakMap),E(this,"crossOriginIframeMirror",new ac($s)),E(this,"crossOriginIframeStyleMirror"),E(this,"crossOriginIframeRootIdMap",new WeakMap),E(this,"mirror"),E(this,"mutationCb"),E(this,"wrappedEmit"),E(this,"loadListener"),E(this,"stylesheetManager"),E(this,"recordCrossOriginIframes"),this.mutationCb=i.mutationCb,this.wrappedEmit=i.wrappedEmit,this.stylesheetManager=i.stylesheetManager,this.recordCrossOriginIframes=i.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new ac(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=i.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var n=e.prototype;return n.addIframe=function(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)},n.addLoadListener=function(t){this.loadListener=t},n.attachIframe=function(t,r){var o,s;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((o=t.contentWindow)==null||o.addEventListener("message",this.handleMessage.bind(this))),(s=this.loadListener)==null||s.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))},n.handleMessage=function(t){var r=t;if(!(r.data.type!=="rrweb"||r.origin!==r.data.origin)){var o=t.source;if(o){var s=this.crossOriginIframeMap.get(t.source);if(s){var a=this.transformCrossOriginEvent(s,r.data.event);a&&this.wrappedEmit(a,r.data.isCheckout)}}}},n.transformCrossOriginEvent=function(t,r){var o=this,s;switch(r.type){case q.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(r.data.node,t);var a=r.data.node.id;return this.crossOriginIframeRootIdMap.set(t,a),this.patchRootIdOnNode(r.data.node,a),{timestamp:r.timestamp,type:q.IncrementalSnapshot,data:{source:T.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case q.Meta:case q.Load:case q.DomContentLoaded:return!1;case q.Plugin:return r;case q.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case q.IncrementalSnapshot:switch(r.data.source){case T.Mutation:return r.data.adds.forEach(function(u){o.replaceIds(u,t,["parentId","nextId","previousId"]),o.replaceIdOnNode(u.node,t);var c=o.crossOriginIframeRootIdMap.get(t);c&&o.patchRootIdOnNode(u.node,c)}),r.data.removes.forEach(function(u){o.replaceIds(u,t,["parentId","id"])}),r.data.attributes.forEach(function(u){o.replaceIds(u,t,["id"])}),r.data.texts.forEach(function(u){o.replaceIds(u,t,["id"])}),r;case T.Drag:case T.TouchMove:case T.MouseMove:return r.data.positions.forEach(function(u){o.replaceIds(u,t,["id"])}),r;case T.ViewportResize:return!1;case T.MediaInteraction:case T.MouseInteraction:case T.Scroll:case T.CanvasMutation:case T.Input:return this.replaceIds(r.data,t,["id"]),r;case T.StyleSheetRule:case T.StyleDeclaration:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleId"]),r;case T.Font:return r;case T.Selection:return r.data.ranges.forEach(function(u){o.replaceIds(u,t,["start","end"])}),r;case T.AdoptedStyleSheet:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleIds"]),(s=r.data.styles)==null||s.forEach(function(u){o.replaceStyleIds(u,t,["styleId"])}),r}}return!1},n.replace=function(t,r,o,s){for(var a=k(s),u;!(u=a()).done;){var c=u.value;!Array.isArray(r[c])&&typeof r[c]!="number"||(Array.isArray(r[c])?r[c]=t.getIds(o,r[c]):r[c]=t.getId(o,r[c]))}return r},n.replaceIds=function(t,r,o){return this.replace(this.crossOriginIframeMirror,t,r,o)},n.replaceStyleIds=function(t,r,o){return this.replace(this.crossOriginIframeStyleMirror,t,r,o)},n.replaceIdOnNode=function(t,r){var o=this;this.replaceIds(t,r,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(function(s){o.replaceIdOnNode(s,r)})},n.patchRootIdOnNode=function(t,r){var o=this;t.type!==Xu.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(function(s){o.patchRootIdOnNode(s,r)})},e}(),Xv=function(){function e(i){E(this,"shadowDoms",new WeakSet),E(this,"mutationCb"),E(this,"scrollCb"),E(this,"bypassOptions"),E(this,"mirror"),E(this,"restoreHandlers",[]),this.mutationCb=i.mutationCb,this.scrollCb=i.scrollCb,this.bypassOptions=i.bypassOptions,this.mirror=i.mirror,this.init()}var n=e.prototype;return n.init=function(){this.reset(),this.patchAttachShadow(Element,document)},n.addShadowRoot=function(t,r){var o=this;if(fr(t)&&!this.shadowDoms.has(t)){this.shadowDoms.add(t);var s=nc(j({},this.bypassOptions,{doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t);this.restoreHandlers.push(function(){return s.disconnect()}),this.restoreHandlers.push(ic(j({},this.bypassOptions,{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))),setTimeout(function(){t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&o.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,o.mirror.getId(W.host(t))),o.restoreHandlers.push(sc({mirror:o.mirror,stylesheetManager:o.bypassOptions.stylesheetManager},t))},0)}},n.observeAttachShadow=function(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)},n.patchAttachShadow=function(t,r){var o=this;this.restoreHandlers.push(St(t.prototype,"attachShadow",function(s){return function(a){var u=s.call(this,a),c=W.shadowRoot(this);return c&&Ju(this)&&o.addShadowRoot(c,r),u}}))},n.reset=function(){this.restoreHandlers.forEach(function(t){try{t()}catch(r){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),Kt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zv=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Vn=0;Vn<Kt.length;Vn++)Zv[Kt.charCodeAt(Vn)]=Vn;var Qv=function(n){var i=new Uint8Array(n),t,r=i.length,o="";for(t=0;t<r;t+=3)o+=Kt[i[t]>>2],o+=Kt[(i[t]&3)<<4|i[t+1]>>4],o+=Kt[(i[t+1]&15)<<2|i[t+2]>>6],o+=Kt[i[t+2]&63];return r%3===2?o=o.substring(0,o.length-1)+"=":r%3===1&&(o=o.substring(0,o.length-2)+"=="),o},uc=new Map;function eg(e,n){var i=uc.get(e);return i||(i=new Map,uc.set(e,i)),i.has(n)||i.set(n,[]),i.get(n)}var cc=function(e,n,i){if(!(!e||!(fc(e,n)||(typeof e=="undefined"?"undefined":z(e))==="object"))){var t=e.constructor.name,r=eg(i,t),o=r.indexOf(e);return o===-1&&(o=r.length,r.push(e)),o}};function jn(e,n,i){if(N(e,Array))return e.map(function(d){return jn(d,n,i)});if(e===null)return e;if(N(e,Float32Array)||N(e,Float64Array)||N(e,Int32Array)||N(e,Uint32Array)||N(e,Uint8Array)||N(e,Uint16Array)||N(e,Int16Array)||N(e,Int8Array)||N(e,Uint8ClampedArray)){var t=e.constructor.name;return{rr_type:t,args:[Object.values(e)]}}else if(N(e,ArrayBuffer)){var r=e.constructor.name,o=Qv(e);return{rr_type:r,base64:o}}else if(N(e,DataView)){var s=e.constructor.name;return{rr_type:s,args:[jn(e.buffer,n,i),e.byteOffset,e.byteLength]}}else if(N(e,HTMLImageElement)){var a=e.constructor.name,u=e.src;return{rr_type:a,src:u}}else if(N(e,HTMLCanvasElement)){var c="HTMLImageElement",l=e.toDataURL();return{rr_type:c,src:l}}else if(N(e,ImageData)){var f=e.constructor.name;return{rr_type:f,args:[jn(e.data,n,i),e.width,e.height]}}else if(fc(e,n)||(typeof e=="undefined"?"undefined":z(e))==="object"){var p=e.constructor.name,g=cc(e,n,i);return{rr_type:p,index:g}}return e}var lc=function(e,n,i){return e.map(function(t){return jn(t,n,i)})},fc=function(e,n){var i=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],t=i.filter(function(r){return typeof n[r]=="function"});return!!t.find(function(r){return N(e,n[r])})};function tg(e,n,i,t){for(var r=function(){var c=u.value;try{if(typeof n.CanvasRenderingContext2D.prototype[c]!="function")return"continue";var l=St(n.CanvasRenderingContext2D.prototype,c,function(p){return function(){for(var g=this,d=arguments.length,y=new Array(d),v=0;v<d;v++)y[v]=arguments[v];return Ce(this.canvas,i,t,!0)||setTimeout(function(){var m=lc(y,n,g);e(g.canvas,{type:Ht["2D"],property:c,args:m})},0),p.apply(this,y)}});o.push(l)}catch(p){var f=Bn(n.CanvasRenderingContext2D.prototype,c,{set:function(d){e(this.canvas,{type:Ht["2D"],property:c,args:[d],setter:!0})}});o.push(f)}},o=[],s=Object.getOwnPropertyNames(n.CanvasRenderingContext2D.prototype),a=k(s),u;!(u=a()).done;)r();return function(){o.forEach(function(c){return c()})}}function rg(e){return e==="experimental-webgl"?"webgl":e}function hc(e,n,i,t){var r=[];try{var o=St(e.HTMLCanvasElement.prototype,"getContext",function(s){return function(a){for(var u=arguments.length,c=new Array(u>1?u-1:0),l=1;l<u;l++)c[l-1]=arguments[l];if(!Ce(this,n,i,!0)){var f=rg(a);if("__context"in this||(this.__context=f),t&&["webgl","webgl2"].includes(f))if(c[0]&&z(c[0])==="object"){var p=c[0];p.preserveDrawingBuffer||(p.preserveDrawingBuffer=!0)}else c.splice(0,1,{preserveDrawingBuffer:!0})}return s.apply(this,[].concat([a],c))}});r.push(o)}catch(s){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){r.forEach(function(s){return s()})}}function pc(e,n,i,t,r,o){for(var s=function(){var f=l.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(f))return"continue";try{if(typeof e[f]!="function")return"continue";var p=St(e,f,function(d){return function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];var _=d.apply(this,v);if(cc(_,o,this),"tagName"in this.canvas&&!Ce(this.canvas,t,r,!0)){var w=lc(v,o,this),S={type:n,property:f,args:w};i(this.canvas,S)}return _}});a.push(p)}catch(d){var g=Bn(e,f,{set:function(v){i(this.canvas,{type:n,property:f,args:[v],setter:!0})}});a.push(g)}},a=[],u=Object.getOwnPropertyNames(e),c=k(u),l;!(l=c()).done;)s();return a}function ng(e,n,i,t){var r,o=[];if((r=o).push.apply(r,[].concat(pc(n.WebGLRenderingContext.prototype,Ht.WebGL,e,i,t,n))),typeof n.WebGL2RenderingContext!="undefined"){var s;(s=o).push.apply(s,[].concat(pc(n.WebGL2RenderingContext.prototype,Ht.WebGL2,e,i,t,n)))}return function(){o.forEach(function(a){return a()})}}var dc="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",ig=function(e){return Uint8Array.from(atob(e),function(n){return n.charCodeAt(0)})},vc=typeof window!="undefined"&&window.Blob&&new Blob([ig(dc)],{type:"text/javascript;charset=utf-8"});function og(e){var n;try{if(n=vc&&(window.URL||window.webkitURL).createObjectURL(vc),!n)throw"";var i=new Worker(n,{name:e==null?void 0:e.name});return i.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(n)}),i}catch(t){return new Worker("data:text/javascript;base64,"+dc,{name:e==null?void 0:e.name})}finally{n&&(window.URL||window.webkitURL).revokeObjectURL(n)}}var sg=function(){function e(i){var t=this;E(this,"pendingCanvasMutations",new Map),E(this,"rafStamps",{latestId:0,invokeId:null}),E(this,"mirror"),E(this,"mutationCb"),E(this,"resetObservers"),E(this,"frozen",!1),E(this,"locked",!1),E(this,"processMutation",function(f,p){var g=t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId;(g||!t.rafStamps.invokeId)&&(t.rafStamps.invokeId=t.rafStamps.latestId),t.pendingCanvasMutations.has(f)||t.pendingCanvasMutations.set(f,[]),t.pendingCanvasMutations.get(f).push(p)});var r=i.sampling,o=r===void 0?"all":r,s=i.win,a=i.blockClass,u=i.blockSelector,c=i.recordCanvas,l=i.dataURLOptions;this.mutationCb=i.mutationCb,this.mirror=i.mirror,c&&o==="all"&&this.initCanvasMutationObserver(s,a,u),c&&typeof o=="number"&&this.initCanvasFPSObserver(o,s,a,u,{dataURLOptions:l})}var n=e.prototype;return n.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},n.freeze=function(){this.frozen=!0},n.unfreeze=function(){this.frozen=!1},n.lock=function(){this.locked=!0},n.unlock=function(){this.locked=!1},n.initCanvasFPSObserver=function(t,r,o,s,a){var u=this,c=hc(r,o,s,!0),l=new Map,f=new og;f.onmessage=function(m){var _=m.data.id;if(l.set(_,!1),"base64"in m.data){var w=m.data,S=w.base64,C=w.type,O=w.width,A=w.height;u.mutationCb({id:_,type:Ht["2D"],commands:[{property:"clearRect",args:[0,0,O,A]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:S}],type:C}]},0,0]}]})}};var p=1e3/t,g=0,d,y=function(){var m=[];return r.document.querySelectorAll("canvas").forEach(function(_){Ce(_,o,s,!0)||m.push(_)}),m},v=function(m){if(g&&m-g<p){d=requestAnimationFrame(v);return}g=m;var _=u;y().forEach(vi(function(w){var S,C,O,A;return cr(this,function(x){switch(x.label){case 0:return C=_.mirror.getId(w),l.get(C)?[2]:w.width===0||w.height===0?[2]:(l.set(C,!0),["webgl","webgl2"].includes(w.__context)&&(O=w.getContext(w.__context),((S=O==null?void 0:O.getContextAttributes())==null?void 0:S.preserveDrawingBuffer)===!1&&O.clear(O.COLOR_BUFFER_BIT)),[4,createImageBitmap(w)]);case 1:return A=x.sent(),f.postMessage({id:C,bitmap:A,width:w.width,height:w.height,dataURLOptions:a.dataURLOptions},[A]),[2]}})})),d=requestAnimationFrame(v)};d=requestAnimationFrame(v),this.resetObservers=function(){c(),cancelAnimationFrame(d)}},n.initCanvasMutationObserver=function(t,r,o){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var s=hc(t,r,o,!1),a=tg(this.processMutation.bind(this),t,r,o),u=ng(this.processMutation.bind(this),t,r,o);this.resetObservers=function(){s(),a(),u()}},n.startPendingCanvasMutationFlusher=function(){var t=this;requestAnimationFrame(function(){return t.flushPendingCanvasMutations()})},n.startRAFTimestamping=function(){var t=this,r=function(o){t.rafStamps.latestId=o,requestAnimationFrame(r)};requestAnimationFrame(r)},n.flushPendingCanvasMutations=function(){var t=this;this.pendingCanvasMutations.forEach(function(r,o){var s=t.mirror.getId(o);t.flushPendingCanvasMutationFor(o,s)}),requestAnimationFrame(function(){return t.flushPendingCanvasMutations()})},n.flushPendingCanvasMutationFor=function(t,r){if(!(this.frozen||this.locked)){var o=this.pendingCanvasMutations.get(t);if(!(!o||r===-1)){var s=o.map(function(u){u.type;var c=ar(u,["type"]);return c}),a=o[0].type;this.mutationCb({id:r,type:a,commands:s}),this.pendingCanvasMutations.delete(t)}}},e}(),ag=function(){function e(i){E(this,"trackedLinkElements",new WeakSet),E(this,"mutationCb"),E(this,"adoptedStyleSheetCb"),E(this,"styleMirror",new xv),this.mutationCb=i.mutationCb,this.adoptedStyleSheetCb=i.adoptedStyleSheetCb}var n=e.prototype;return n.attachLinkElement=function(t,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(t)},n.trackLinkElement=function(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))},n.adoptStyleSheets=function(t,r){var o,s=function(){var f=l.value,p=void 0;o.styleMirror.has(f)?p=o.styleMirror.getId(f):(p=o.styleMirror.add(f),u.push({styleId:p,rules:Array.from(f.rules||CSSRule,function(g,d){return{rule:Ps(g,f.href),index:d}})})),a.styleIds.push(p)};if(t.length!==0){for(var a={id:r,styleIds:[]},u=[],c=k(t),l;!(l=c()).done;)o=this,s();u.length>0&&(a.styles=u),this.adoptedStyleSheetCb(a)}},n.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},n.trackStylesheetInLinkElement=function(t){},e}(),ug=function(){function e(){E(this,"nodeMap",new WeakMap),E(this,"active",!1)}var n=e.prototype;return n.inOtherBuffer=function(t,r){var o=this.nodeMap.get(t);return o&&Array.from(o).some(function(s){return s!==r})},n.add=function(t,r){var o=this;this.active||(this.active=!0,requestAnimationFrame(function(){o.nodeMap=new WeakMap,o.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(r))},n.destroy=function(){},e}(),ce,Hn,Lo,Yn=!1;try{if(Array.from([1],function(e){return e*2})[0]!==2){var Do=document.createElement("iframe");document.body.appendChild(Do),Array.from=((Os=Do.contentWindow)==null?void 0:Os.Array.from)||Array.from,document.body.removeChild(Do)}}catch(e){console.debug("Unable to override Array.from",e)}var Ne=sf();function at(e){e===void 0&&(e={});var n=e.emit,i=e.checkoutEveryNms,t=e.checkoutEveryNth,r=e.blockClass,o=r===void 0?"rr-block":r,s=e.blockSelector,a=s===void 0?null:s,u=e.ignoreClass,c=u===void 0?"rr-ignore":u,l=e.ignoreSelector,f=l===void 0?null:l,p=e.maskTextClass,g=p===void 0?"rr-mask":p,d=e.maskTextSelector,y=d===void 0?null:d,v=e.inlineStylesheet,m=v===void 0?!0:v,_=e.maskAllInputs,w=e.maskInputOptions,S=e.slimDOMOptions,C=e.maskInputFn,O=e.maskTextFn,A=e.hooks,x=e.packFn,L=e.sampling,H=L===void 0?{}:L,M=e.dataURLOptions,B=M===void 0?{}:M,K=e.mousemoveWait,Oe=e.recordDOM,J=Oe===void 0?!0:Oe,Ae=e.recordCanvas,Ee=Ae===void 0?!1:Ae,ae=e.recordCrossOriginIframes,_e=ae===void 0?!1:ae,Me=e.recordAfter,xt=Me===void 0?e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load":Me,Ve=e.userTriggeredOnInput,nr=Ve===void 0?!1:Ve,Te=e.collectFonts,Rt=Te===void 0?!1:Te,Y=e.inlineImages,At=Y===void 0?!1:Y,Mt=e.plugins,ir=e.keepIframeSrcFn,Br=ir===void 0?function(){return!1}:ir,zr=e.ignoreCSSAttributes,_s=zr===void 0?new Set([]):zr,pi=e.errorHandler;Dv(pi);var yt=_e?window.parent===window:!0,Tt=!1;if(!yt)try{window.parent.document&&(Tt=!1)}catch(Q){Tt=!0}if(yt&&!n)throw new Error("emit function is required");if(!yt&&!Tt)return function(){};K!==void 0&&H.mousemove===void 0&&(H.mousemove=K),Ne.reset();var or=_===!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}:w!==void 0?w:{password:!0},Wr=S===!0||S==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:S==="all",headMetaDescKeywords:S==="all",headTitleMutations:S==="all"}:S||{};Ov();var sr,Pt=0,tt=function(Q){for(var xe=k(Mt||[]),R;!(R=xe()).done;){var ue=R.value;ue.eventProcessor&&(Q=ue.eventProcessor(Q))}return x&&!Tt&&(Q=x(Q)),Q};ce=function(Q,xe){var R,ue=Q;if(ue.timestamp=zn(),(R=Ct[0])!=null&&R.isFrozen()&&ue.type!==q.FullSnapshot&&!(ue.type===q.IncrementalSnapshot&&ue.data.source===T.Mutation)&&Ct.forEach(function(Pm){return Pm.unfreeze()}),yt)n==null||n(tt(ue),xe);else if(Tt){var Am={type:"rrweb",event:tt(ue),origin:window.location.origin,isCheckout:xe};window.parent.postMessage(Am,"*")}if(ue.type===q.FullSnapshot)sr=ue,Pt=0;else if(ue.type===q.IncrementalSnapshot){if(ue.data.source===T.Mutation&&ue.data.isAttachIframe)return;Pt++;var Mm=t&&Pt>=t,Tm=i&&ue.timestamp-sr.timestamp>i;(Mm||Tm)&&Hn(!0)}};for(var Lt=function(Q){ce({type:q.IncrementalSnapshot,data:j({source:T.Mutation},Q)})},xl=function(Q){return ce({type:q.IncrementalSnapshot,data:j({source:T.Scroll},Q)})},Rl=function(Q){return ce({type:q.IncrementalSnapshot,data:j({source:T.CanvasMutation},Q)})},xm=function(Q){return ce({type:q.IncrementalSnapshot,data:j({source:T.AdoptedStyleSheet},Q)})},Dt=new ag({mutationCb:Lt,adoptedStyleSheetCb:xm}),Nt=new Jv({mirror:Ne,mutationCb:Lt,stylesheetManager:Dt,recordCrossOriginIframes:_e,wrappedEmit:ce}),Rm=k(Mt||[]),Al;!(Al=Rm()).done;){var Ml=Al.value;Ml.getMirror&&Ml.getMirror({nodeMirror:Ne,crossOriginIframeMirror:Nt.crossOriginIframeMirror,crossOriginIframeStyleMirror:Nt.crossOriginIframeStyleMirror})}var bs=new ug;Lo=new sg({recordCanvas:Ee,mutationCb:Rl,win:window,blockClass:o,blockSelector:a,mirror:Ne,sampling:H.canvas,dataURLOptions:B});var di=new Xv({mutationCb:Lt,scrollCb:xl,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:g,maskTextSelector:y,inlineStylesheet:m,maskInputOptions:or,dataURLOptions:B,maskTextFn:O,maskInputFn:C,recordCanvas:Ee,inlineImages:At,sampling:H,slimDOMOptions:Wr,iframeManager:Nt,stylesheetManager:Dt,canvasManager:Lo,keepIframeSrcFn:Br,processedNodeManager:bs},mirror:Ne});Hn=function(Q){if(Q===void 0&&(Q=!1),!!J){ce({type:q.Meta,data:{href:window.location.href,width:Gu(),height:qu()}},Q),Dt.reset(),di.init(),Ct.forEach(function(R){return R.lock()});var xe=Af(document,{mirror:Ne,blockClass:o,blockSelector:a,maskTextClass:g,maskTextSelector:y,inlineStylesheet:m,maskAllInputs:or,maskTextFn:O,maskInputFn:C,slimDOM:Wr,dataURLOptions:B,recordCanvas:Ee,inlineImages:At,onSerialize:function(R){Hu(R,Ne)&&Nt.addIframe(R),Yu(R,Ne)&&Dt.trackLinkElement(R),To(R)&&di.addShadowRoot(W.shadowRoot(R),document)},onIframeLoad:function(R,ue){Nt.attachIframe(R,ue),di.observeAttachShadow(R)},onStylesheetLoad:function(R,ue){Dt.attachLinkElement(R,ue)},keepIframeSrcFn:Br});if(!xe)return console.warn("Failed to snapshot the document");ce({type:q.FullSnapshot,data:{node:xe,initialOffset:Wu(window)}},Q),Ct.forEach(function(R){return R.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Dt.adoptStyleSheets(document.adoptedStyleSheets,Ne.getId(document))}};try{var qr=[],Tl=function(Q){var xe;return V(Kv)({mutationCb:Lt,mousemoveCb:function(R,ue){return ce({type:q.IncrementalSnapshot,data:{source:ue,positions:R}})},mouseInteractionCb:function(R){return ce({type:q.IncrementalSnapshot,data:j({source:T.MouseInteraction},R)})},scrollCb:xl,viewportResizeCb:function(R){return ce({type:q.IncrementalSnapshot,data:j({source:T.ViewportResize},R)})},inputCb:function(R){return ce({type:q.IncrementalSnapshot,data:j({source:T.Input},R)})},mediaInteractionCb:function(R){return ce({type:q.IncrementalSnapshot,data:j({source:T.MediaInteraction},R)})},styleSheetRuleCb:function(R){return ce({type:q.IncrementalSnapshot,data:j({source:T.StyleSheetRule},R)})},styleDeclarationCb:function(R){return ce({type:q.IncrementalSnapshot,data:j({source:T.StyleDeclaration},R)})},canvasMutationCb:Rl,fontCb:function(R){return ce({type:q.IncrementalSnapshot,data:j({source:T.Font},R)})},selectionCb:function(R){ce({type:q.IncrementalSnapshot,data:j({source:T.Selection},R)})},customElementCb:function(R){ce({type:q.IncrementalSnapshot,data:j({source:T.CustomElement},R)})},blockClass:o,ignoreClass:c,ignoreSelector:f,maskTextClass:g,maskTextSelector:y,maskInputOptions:or,inlineStylesheet:m,sampling:H,recordDOM:J,recordCanvas:Ee,inlineImages:At,userTriggeredOnInput:nr,collectFonts:Rt,doc:Q,maskInputFn:C,maskTextFn:O,keepIframeSrcFn:Br,blockSelector:a,slimDOMOptions:Wr,dataURLOptions:B,mirror:Ne,iframeManager:Nt,stylesheetManager:Dt,shadowDomManager:di,processedNodeManager:bs,canvasManager:Lo,ignoreCSSAttributes:_s,plugins:((xe=Mt==null?void 0:Mt.filter(function(R){return R.observer}))==null?void 0:xe.map(function(R){return{observer:R.observer,options:R.options,callback:function(ue){return ce({type:q.Plugin,data:{plugin:R.name,payload:ue}})}}}))||[]},A)};Nt.addLoadListener(function(Q){try{qr.push(Tl(Q.contentDocument))}catch(xe){console.warn(xe)}});var ws=function(){Hn(),qr.push(Tl(document)),Yn=!0};return document.readyState==="interactive"||document.readyState==="complete"?ws():(qr.push(Se("DOMContentLoaded",function(){ce({type:q.DomContentLoaded,data:{}}),xt==="DOMContentLoaded"&&ws()})),qr.push(Se("load",function(){ce({type:q.Load,data:{}}),xt==="load"&&ws()},window))),function(){qr.forEach(function(Q){try{Q()}catch(R){var xe=String(R).toLowerCase();xe.includes("cross-origin")||console.warn(R)}}),bs.destroy(),Yn=!1,Nv()}}catch(Q){console.warn(Q)}}at.addCustomEvent=function(e,n){if(!Yn)throw new Error("please add custom event after start recording");ce({type:q.Custom,data:{tag:e,payload:n}})},at.freezePage=function(){Ct.forEach(function(e){return e.freeze()})},at.takeFullSnapshot=function(e){if(!Yn)throw new Error("please take full snapshot after start recording");Hn(e)},at.mirror=Ne;var gc;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(gc||(gc={})),at.addCustomEvent,at.freezePage,at.takeFullSnapshot;var mc=I.setImmediate,ut,No,$o,yc=Object.prototype.toString,cg=typeof mc!="undefined"?function(n){return mc(n)}:setTimeout;try{Object.defineProperty({},"x",{}),ut=function(n,i,t,r){return Object.defineProperty(n,i,{value:t,writable:!0,configurable:r!==!1})}}catch(e){ut=function(i,t,r){return i[t]=r,i}}$o=function(){var n,i,t;function r(o,s){this.fn=o,this.self=s,this.next=void 0}return{add:function(s,a){t=new r(s,a),i?i.next=t:n=t,i=t,t=void 0},drain:function(){var s=n;for(n=i=No=void 0;s;)s.fn.call(s.self),s=s.next}}}();function Kn(e,n){$o.add(e,n),No||(No=cg($o.drain))}function _c(e){var n,i=typeof e;return e!==null&&(i==="object"||i==="function")&&(n=e.then),typeof n=="function"?n:!1}function Fo(){for(var e=0;e<this.chain.length;e++)lg(this,this.state===1?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function lg(e,n,i){var t,r;try{n===!1?i.reject(e.msg):(n===!0?t=e.msg:t=n.call(void 0,e.msg),t===i.promise?i.reject(TypeError("Promise-chain cycle")):(r=_c(t))?r.call(t,i.resolve,i.reject):i.resolve(t))}catch(o){i.reject(o)}}function bc(e){var n,i=this;if(!i.triggered){i.triggered=!0,i.def&&(i=i.def);try{(n=_c(e))?Kn(function(){var t=new Sc(i);try{n.call(e,function(){bc.apply(t,arguments)},function(){Ar.apply(t,arguments)})}catch(r){Ar.call(t,r)}}):(i.msg=e,i.state=1,i.chain.length>0&&Kn(Fo,i))}catch(t){Ar.call(new Sc(i),t)}}}function Ar(e){var n=this;n.triggered||(n.triggered=!0,n.def&&(n=n.def),n.msg=e,n.state=2,n.chain.length>0&&Kn(Fo,n))}function wc(e,n,i,t){for(var r=0;r<n.length;r++)(function(s){e.resolve(n[s]).then(function(u){i(s,u)},t)})(r)}function Sc(e){this.def=e,this.triggered=!1}function fg(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function ct(e){if(typeof e!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var n=new fg(this);this.then=function(t,r){var o={success:typeof t=="function"?t:!0,failure:typeof r=="function"?r:!1};return o.promise=new this.constructor(function(a,u){if(typeof a!="function"||typeof u!="function")throw TypeError("Not a function");o.resolve=a,o.reject=u}),n.chain.push(o),n.state!==0&&Kn(Fo,n),o.promise},this.catch=function(t){return this.then(void 0,t)};try{e.call(void 0,function(t){bc.call(n,t)},function(t){Ar.call(n,t)})}catch(i){Ar.call(n,i)}}var Cc=ut({},"constructor",ct,!1);ct.prototype=Cc,ut(Cc,"__NPO__",0,!1),ut(ct,"resolve",function(n){var i=this;return n&&typeof n=="object"&&n.__NPO__===1?n:new i(function(r,o){if(typeof r!="function"||typeof o!="function")throw TypeError("Not a function");r(n)})}),ut(ct,"reject",function(n){return new this(function(t,r){if(typeof t!="function"||typeof r!="function")throw TypeError("Not a function");r(n)})}),ut(ct,"all",function(n){var i=this;return yc.call(n)!=="[object Array]"?i.reject(TypeError("Not an array")):n.length===0?i.resolve([]):new i(function(r,o){if(typeof r!="function"||typeof o!="function")throw TypeError("Not a function");var s=n.length,a=Array(s),u=0;wc(i,n,function(l,f){a[l]=f,++u===s&&r(a)},o)})}),ut(ct,"race",function(n){var i=this;return yc.call(n)!=="[object Array]"?i.reject(TypeError("Not an array")):new i(function(r,o){if(typeof r!="function"||typeof o!="function")throw TypeError("Not a function");wc(i,n,function(a,u){r(u)},o)})});var G;typeof Promise!="undefined"&&Promise.toString().indexOf("[native code]")!==-1?G=Promise:G=ct;var Le={DEBUG:!1,LIB_VERSION:"2.71.0"},Mr=24*60*60*1e3,Uo=8*1e3,Jn=Array.prototype,hg=Function.prototype,Ic=Object.prototype,lt=Jn.slice,Tr=Ic.toString,Xn=Ic.hasOwnProperty,de=I.console,ft=I.navigator,P=I.document,Zn=I.opera,Ec=I.screen,Ke=ft.userAgent,Bo=hg.bind,kc=Jn.forEach,Oc=Jn.indexOf,xc=Jn.map,pg=Array.isArray,zo={},h={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},F={log:function(){if(Le.DEBUG&&!h.isUndefined(de)&&de)try{de.log.apply(de,arguments)}catch(e){h.each(arguments,function(n){de.log(n)})}},warn:function(){if(Le.DEBUG&&!h.isUndefined(de)&&de){var e=["Mixpanel warning:"].concat(h.toArray(arguments));try{de.warn.apply(de,e)}catch(n){h.each(e,function(i){de.warn(i)})}}},error:function(){if(Le.DEBUG&&!h.isUndefined(de)&&de){var e=["Mixpanel error:"].concat(h.toArray(arguments));try{de.error.apply(de,e)}catch(n){h.each(e,function(i){de.error(i)})}}},critical:function(){if(!h.isUndefined(de)&&de){var e=["Mixpanel error:"].concat(h.toArray(arguments));try{de.error.apply(de,e)}catch(n){h.each(e,function(i){de.error(i)})}}}},Wo=function(e,n){return function(){return arguments[0]="["+n+"] "+arguments[0],e.apply(F,arguments)}},It=function(e){return{log:Wo(F.log,e),error:Wo(F.error,e),critical:Wo(F.critical,e)}},Pr=function(e){return function(){try{return e.apply(this,arguments)}catch(n){F.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),Le.DEBUG&&F.critical(n)}}},Rc=function(e){var n=e.prototype;for(var i in n)typeof n[i]=="function"&&(n[i]=Pr(n[i]))};h.bind=function(e,n){var i,t;if(Bo&&e.bind===Bo)return Bo.apply(e,lt.call(arguments,1));if(!h.isFunction(e))throw new TypeError;return i=lt.call(arguments,2),t=function(){if(!(this instanceof t))return e.apply(n,i.concat(lt.call(arguments)));var r={};r.prototype=e.prototype;var o=new r;r.prototype=null;var s=e.apply(o,i.concat(lt.call(arguments)));return Object(s)===s?s:o},t},h.each=function(e,n,i){if(e!=null){if(kc&&e.forEach===kc)e.forEach(n,i);else if(e.length===+e.length){for(var t=0,r=e.length;t<r;t++)if(t in e&&n.call(i,e[t],t,e)===zo)return}else for(var o in e)if(Xn.call(e,o)&&n.call(i,e[o],o,e)===zo)return}},h.extend=function(e){return h.each(lt.call(arguments,1),function(n){for(var i in n)n[i]!==void 0&&(e[i]=n[i])}),e},h.isArray=pg||function(e){return Tr.call(e)==="[object Array]"},h.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(n){return!1}},h.isArguments=function(e){return!!(e&&Xn.call(e,"callee"))},h.toArray=function(e){return e?e.toArray?e.toArray():h.isArray(e)||h.isArguments(e)?lt.call(e):h.values(e):[]},h.map=function(e,n,i){if(xc&&e.map===xc)return e.map(n,i);var t=[];return h.each(e,function(r){t.push(n.call(i,r))}),t},h.keys=function(e){var n=[];return e===null||h.each(e,function(i,t){n[n.length]=t}),n},h.values=function(e){var n=[];return e===null||h.each(e,function(i){n[n.length]=i}),n},h.include=function(e,n){var i=!1;return e===null?i:Oc&&e.indexOf===Oc?e.indexOf(n)!=-1:(h.each(e,function(t){if(i||(i=t===n))return zo}),i)},h.includes=function(e,n){return e.indexOf(n)!==-1},h.inherit=function(e,n){return e.prototype=new n,e.prototype.constructor=e,e.superclass=n.prototype,e},h.isObject=function(e){return e===Object(e)&&!h.isArray(e)},h.isEmptyObject=function(e){if(h.isObject(e)){for(var n in e)if(Xn.call(e,n))return!1;return!0}return!1},h.isUndefined=function(e){return e===void 0},h.isString=function(e){return Tr.call(e)=="[object String]"},h.isDate=function(e){return Tr.call(e)=="[object Date]"},h.isNumber=function(e){return Tr.call(e)=="[object Number]"},h.isElement=function(e){return!!(e&&e.nodeType===1)},h.encodeDates=function(e){return h.each(e,function(n,i){h.isDate(n)?e[i]=h.formatDate(n):h.isObject(n)&&(e[i]=h.encodeDates(n))}),e},h.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},h.formatDate=function(e){function n(i){return i<10?"0"+i:i}return e.getUTCFullYear()+"-"+n(e.getUTCMonth()+1)+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())},h.strip_empty_properties=function(e){var n={};return h.each(e,function(i,t){h.isString(i)&&i.length>0&&(n[t]=i)}),n},h.truncate=function(e,n){var i;return typeof e=="string"?i=e.slice(0,n):h.isArray(e)?(i=[],h.each(e,function(t){i.push(h.truncate(t,n))})):h.isObject(e)?(i={},h.each(e,function(t,r){i[r]=h.truncate(t,n)})):i=e,i},h.JSONEncode=function(){return function(e){var n=e,i=function(r){var o=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,s={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return o.lastIndex=0,o.test(r)?'"'+r.replace(o,function(a){var u=s[a];return typeof u=="string"?u:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+r+'"'},t=function(r,o){var s="",a=" ",u=0,c="",l="",f=0,p=s,g=[],d=o[r];switch(d&&typeof d=="object"&&typeof d.toJSON=="function"&&(d=d.toJSON(r)),typeof d){case"string":return i(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(s+=a,g=[],Tr.apply(d)==="[object Array]"){for(f=d.length,u=0;u<f;u+=1)g[u]=t(u,d)||"null";return l=g.length===0?"[]":s?"[\n"+s+g.join(",\n"+s)+"\n"+p+"]":"["+g.join(",")+"]",s=p,l}for(c in d)Xn.call(d,c)&&(l=t(c,d),l&&g.push(i(c)+(s?": ":":")+l));return l=g.length===0?"{}":s?"{"+g.join(",")+p+"}":"{"+g.join(",")+"}",s=p,l}};return t("",{"":n})}}(),h.JSONDecode=function(){var e,n,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},t,r=function(g){var d=new SyntaxError(g);throw d.at=e,d.text=t,d},o=function(g){return g&&g!==n&&r("Expected '"+g+"' instead of '"+n+"'"),n=t.charAt(e),e+=1,n},s=function(){var g,d="";for(n==="-"&&(d="-",o("-"));n>="0"&&n<="9";)d+=n,o();if(n===".")for(d+=".";o()&&n>="0"&&n<="9";)d+=n;if(n==="e"||n==="E")for(d+=n,o(),(n==="-"||n==="+")&&(d+=n,o());n>="0"&&n<="9";)d+=n,o();if(g=+d,!isFinite(g))r("Bad number");else return g},a=function(){var g,d,y="",v;if(n==='"')for(;o();){if(n==='"')return o(),y;if(n==="\\")if(o(),n==="u"){for(v=0,d=0;d<4&&(g=parseInt(o(),16),!!isFinite(g));d+=1)v=v*16+g;y+=String.fromCharCode(v)}else if(typeof i[n]=="string")y+=i[n];else break;else y+=n}r("Bad string")},u=function(){for(;n&&n<=" ";)o()},c=function(){switch(n){case"t":return o("t"),o("r"),o("u"),o("e"),!0;case"f":return o("f"),o("a"),o("l"),o("s"),o("e"),!1;case"n":return o("n"),o("u"),o("l"),o("l"),null}r('Unexpected "'+n+'"')},l,f=function(){var g=[];if(n==="["){if(o("["),u(),n==="]")return o("]"),g;for(;n;){if(g.push(l()),u(),n==="]")return o("]"),g;o(","),u()}}r("Bad array")},p=function(){var g,d={};if(n==="{"){if(o("{"),u(),n==="}")return o("}"),d;for(;n;){if(g=a(),u(),o(":"),Object.hasOwnProperty.call(d,g)&&r('Duplicate key "'+g+'"'),d[g]=l(),u(),n==="}")return o("}"),d;o(","),u()}}r("Bad object")};return l=function(){switch(u(),n){case"{":return p();case"[":return f();case'"':return a();case"-":return s();default:return n>="0"&&n<="9"?s():c()}},function(g){var d;return t=g,e=0,n=" ",d=l(),u(),n&&r("Syntax error"),d}}(),h.base64Encode=function(e){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i,t,r,o,s,a,u,c,l=0,f=0,p="",g=[];if(!e)return e;e=h.utf8Encode(e);do i=e.charCodeAt(l++),t=e.charCodeAt(l++),r=e.charCodeAt(l++),c=i<<16|t<<8|r,o=c>>18&63,s=c>>12&63,a=c>>6&63,u=c&63,g[f++]=n.charAt(o)+n.charAt(s)+n.charAt(a)+n.charAt(u);while(l<e.length);switch(p=g.join(""),e.length%3){case 1:p=p.slice(0,-2)+"==";break;case 2:p=p.slice(0,-1)+"=";break}return p},h.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var n="",i,t,r=0,o;for(i=t=0,r=e.length,o=0;o<r;o++){var s=e.charCodeAt(o),a=null;s<128?t++:s>127&&s<2048?a=String.fromCharCode(s>>6|192,s&63|128):a=String.fromCharCode(s>>12|224,s>>6&63|128,s&63|128),a!==null&&(t>i&&(n+=e.substring(i,t)),n+=a,i=t=o+1)}return t>i&&(n+=e.substring(i,e.length)),n},h.UUID=function(){try{return I.crypto.randomUUID()}catch(i){for(var e=new Array(36),n=0;n<36;n++)e[n]=Math.floor(Math.random()*16);return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",h.map(e,function(t){return t.toString(16)}).join("")}};var Ac=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];h.isBlockedUA=function(e){var n;for(e=e.toLowerCase(),n=0;n<Ac.length;n++)if(e.indexOf(Ac[n])!==-1)return!0;return!1},h.HTTPBuildQuery=function(e,n){var i,t,r=[];return h.isUndefined(n)&&(n="&"),h.each(e,function(o,s){i=encodeURIComponent(o.toString()),t=encodeURIComponent(s),r[r.length]=t+"="+i}),r.join(n)},h.getQueryParam=function(e,n){n=n.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var i="[\\?&]"+n+"=([^&#]*)",t=new RegExp(i),r=t.exec(e);if(r===null||r&&typeof r[1]!="string"&&r[1].length)return"";var o=r[1];try{o=decodeURIComponent(o)}catch(s){F.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},h.cookie={get:function(e){for(var n=e+"=",i=P.cookie.split(";"),t=0;t<i.length;t++){for(var r=i[t];r.charAt(0)==" ";)r=r.substring(1,r.length);if(r.indexOf(n)===0)return decodeURIComponent(r.substring(n.length,r.length))}return null},parse:function(e){var n;try{n=h.JSONDecode(h.cookie.get(e))||{}}catch(i){}return n},set_seconds:function(e,n,i,t,r,o,s){var a="",u="",c="";if(s)a="; domain="+s;else if(t){var l=Pc(P.location.hostname);a=l?"; domain=."+l:""}if(i){var f=new Date;f.setTime(f.getTime()+i*1e3),u="; expires="+f.toGMTString()}o&&(r=!0,c="; SameSite=None"),r&&(c+="; secure"),P.cookie=e+"="+encodeURIComponent(n)+u+"; path=/"+a+c},set:function(e,n,i,t,r,o,s){var a="",u="",c="";if(s)a="; domain="+s;else if(t){var l=Pc(P.location.hostname);a=l?"; domain=."+l:""}if(i){var f=new Date;f.setTime(f.getTime()+i*24*60*60*1e3),u="; expires="+f.toGMTString()}o&&(r=!0,c="; SameSite=None"),r&&(c+="; secure");var p=e+"="+encodeURIComponent(n)+u+"; path=/"+a+c;return P.cookie=p,p},remove:function(e,n,i){h.cookie.set(e,"",-1,n,!1,!1,i)}};var Mc=function(e){var n=!0;try{var i="__mplss_"+Vo(8),t="xyz";e.setItem(i,t),e.getItem(i)!==t&&(n=!1),e.removeItem(i)}catch(r){n=!1}return n},qo=null,Lr=function(e,n){return qo!==null&&!n?qo:qo=Mc(e||I.localStorage)},Go=null,dg=function(e,n){return Go!==null&&!n?Go:Go=Mc(e||I.sessionStorage)};function Tc(e,n,i){var t=function(r){F.error(n+" error: "+r)};return{is_supported:function(r){var o=i(e,r);return o||F.error(n+" unsupported"),o},error:t,get:function(r){try{return e.getItem(r)}catch(o){t(o)}return null},parse:function(r){try{return h.JSONDecode(e.getItem(r))||{}}catch(o){}return null},set:function(r,o){try{e.setItem(r,o)}catch(s){t(s)}},remove:function(r){try{e.removeItem(r)}catch(o){t(o)}}}}h.localStorage=Tc(I.localStorage,"localStorage",Lr),h.sessionStorage=Tc(I.sessionStorage,"sessionStorage",dg),h.register_event=function(){var e=function(t,r,o,s,a){if(!t){F.error("No valid element provided to register_event");return}if(t.addEventListener&&!s)t.addEventListener(r,o,!!a);else{var u="on"+r,c=t[u];t[u]=n(t,o,c)}};function n(t,r,o){var s=function(a){if(a=a||i(I.event),!!a){var u=!0,c,l;return h.isFunction(o)&&(c=o(a)),l=r.call(t,a),(c===!1||l===!1)&&(u=!1),u}};return s}function i(t){return t&&(t.preventDefault=i.preventDefault,t.stopPropagation=i.stopPropagation),t}return i.preventDefault=function(){this.returnValue=!1},i.stopPropagation=function(){this.cancelBubble=!0},e}();var vg=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');h.dom_query=function(){function e(r){return r.all?r.all:r.getElementsByTagName("*")}var n=/[\t\r\n]/g;function i(r,o){var s=" "+o+" ";return(" "+r.className+" ").replace(n," ").indexOf(s)>=0}function t(r){if(!P.getElementsByTagName)return[];var o=r.split(" "),s,a,u,c,l,f,p,g,d,y,v=[P];for(f=0;f<o.length;f++){if(s=o[f].replace(/^\s+/,"").replace(/\s+$/,""),s.indexOf("#")>-1){a=s.split("#"),u=a[0];var m=a[1],_=P.getElementById(m);if(!_||u&&_.nodeName.toLowerCase()!=u)return[];v=[_];continue}if(s.indexOf(".")>-1){a=s.split("."),u=a[0];var w=a[1];for(u||(u="*"),c=[],l=0,p=0;p<v.length;p++)for(u=="*"?d=e(v[p]):d=v[p].getElementsByTagName(u),g=0;g<d.length;g++)c[l++]=d[g];for(v=[],y=0,p=0;p<c.length;p++)c[p].className&&h.isString(c[p].className)&&i(c[p],w)&&(v[y++]=c[p]);continue}var S=s.match(vg);if(S){u=S[1];var C=S[2],O=S[3],A=S[4];for(u||(u="*"),c=[],l=0,p=0;p<v.length;p++)for(u=="*"?d=e(v[p]):d=v[p].getElementsByTagName(u),g=0;g<d.length;g++)c[l++]=d[g];v=[],y=0;var x;switch(O){case"=":x=function(L){return L.getAttribute(C)==A};break;case"~":x=function(L){return L.getAttribute(C).match(new RegExp("\\b"+A+"\\b"))};break;case"|":x=function(L){return L.getAttribute(C).match(new RegExp("^"+A+"-?"))};break;case"^":x=function(L){return L.getAttribute(C).indexOf(A)===0};break;case"$":x=function(L){return L.getAttribute(C).lastIndexOf(A)==L.getAttribute(C).length-A.length};break;case"*":x=function(L){return L.getAttribute(C).indexOf(A)>-1};break;default:x=function(L){return L.getAttribute(C)}}for(v=[],y=0,p=0;p<c.length;p++)x(c[p])&&(v[y++]=c[p]);continue}for(u=s,c=[],l=0,p=0;p<v.length;p++)for(d=v[p].getElementsByTagName(u),g=0;g<d.length;g++)c[l++]=d[g];v=c}return v}return function(r){return h.isElement(r)?[r]:h.isObject(r)&&!h.isUndefined(r.length)?r:t.call(this,r)}}();var gg=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],mg=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];h.info={campaignParams:function(e){var n="",i={};return h.each(gg,function(t){n=h.getQueryParam(P.URL,t),n.length?i[t]=n:e!==void 0&&(i[t]=e)}),i},clickParams:function(){var e="",n={};return h.each(mg,function(i){e=h.getQueryParam(P.URL,i),e.length&&(n[i]=e)}),n},marketingParams:function(){return h.extend(h.info.campaignParams(),h.info.clickParams())},searchEngine:function(e){return e.search("https?://(.*)google.([^/?]*)")===0?"google":e.search("https?://(.*)bing.com")===0?"bing":e.search("https?://(.*)yahoo.com")===0?"yahoo":e.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null},searchInfo:function(e){var n=h.info.searchEngine(e),i=n!="yahoo"?"q":"p",t={};if(n!==null){t.$search_engine=n;var r=h.getQueryParam(e,i);r.length&&(t.mp_keyword=r)}return t},browser:function(e,n,i){return n=n||"",i||h.includes(e," OPR/")?h.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":h.includes(e,"IEMobile")||h.includes(e,"WPDesktop")?"Internet Explorer Mobile":h.includes(e,"SamsungBrowser/")?"Samsung Internet":h.includes(e,"Edge")||h.includes(e,"Edg/")?"Microsoft Edge":h.includes(e,"FBIOS")?"Facebook Mobile":h.includes(e,"Whale/")?"Whale Browser":h.includes(e,"Chrome")?"Chrome":h.includes(e,"CriOS")?"Chrome iOS":h.includes(e,"UCWEB")||h.includes(e,"UCBrowser")?"UC Browser":h.includes(e,"FxiOS")?"Firefox iOS":h.includes(n,"Apple")?h.includes(e,"Mobile")?"Mobile Safari":"Safari":h.includes(e,"Android")?"Android Mobile":h.includes(e,"Konqueror")?"Konqueror":h.includes(e,"Firefox")?"Firefox":h.includes(e,"MSIE")||h.includes(e,"Trident/")?"Internet Explorer":h.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,n,i){var t=h.info.browser(e,n,i),r={"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+)?)/},o=r[t];if(o===void 0)return null;var s=e.match(o);return s?parseFloat(s[s.length-2]):null},os:function(){var e=Ke;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 n=e.split("/");return n.length>=3?n[2]:""},currentUrl:function(){return I.location.href},properties:function(e){return typeof e!="object"&&(e={}),h.extend(h.strip_empty_properties({$os:h.info.os(),$browser:h.info.browser(Ke,ft.vendor,Zn),$referrer:P.referrer,$referring_domain:h.info.referringDomain(P.referrer),$device:h.info.device(Ke)}),{$current_url:h.info.currentUrl(),$browser_version:h.info.browserVersion(Ke,ft.vendor,Zn),$screen_height:Ec.height,$screen_width:Ec.width,mp_lib:"web",$lib_version:Le.LIB_VERSION,$insert_id:Vo(),time:h.timestamp()/1e3},h.strip_empty_properties(e))},people_properties:function(){return h.extend(h.strip_empty_properties({$os:h.info.os(),$browser:h.info.browser(Ke,ft.vendor,Zn)}),{$browser_version:h.info.browserVersion(Ke,ft.vendor,Zn)})},mpPageViewProperties:function(){return h.strip_empty_properties({current_page_title:P.title,current_domain:I.location.hostname,current_url_path:I.location.pathname,current_url_protocol:I.location.protocol,current_url_search:I.location.search})}};var yg=function(e,n){var i=null,t=[];return function(r){var o=this;return t.push(r),i||(i=new G(function(s){setTimeout(function(){var a=e.apply(o,[t]);i=null,t=[],s(a)},n)})),i}},Vo=function(e){var n=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?n.substring(0,e):n},_g=function(){var e=h.UUID().replace(/-/g,""),n=h.UUID().replace(/-/g,"").substring(0,16),i="01";return"00-"+e+"-"+n+"-"+i},bg=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,wg=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Pc=function(e){var n=wg,i=e.split("."),t=i[i.length-1];(t.length>4||t==="com"||t==="org")&&(n=bg);var r=e.match(n);return r?r[0]:""},Sg=function(){var e=I.navigator.onLine;return h.isUndefined(e)||e},ht=function(){},Jt=null,Qn=null;typeof JSON!="undefined"&&(Jt=JSON.stringify,Qn=JSON.parse),Jt=Jt||h.JSONEncode,Qn=Qn||h.JSONDecode,h.info=h.info,h.info.browser=h.info.browser,h.info.browserVersion=h.info.browserVersion,h.info.device=h.info.device,h.info.properties=h.info.properties,h.isBlockedUA=h.isBlockedUA,h.isEmptyObject=h.isEmptyObject,h.isObject=h.isObject,h.JSONDecode=h.JSONDecode,h.JSONEncode=h.JSONEncode,h.toArray=h.toArray,h.NPO=ct;var Cg="mixpanelBrowserDb",Lc="mixpanelRecordingEvents",jo="mixpanelRecordingRegistry",Ig=1,Eg=[Lc,jo],$e=function(e){this.dbPromise=null,this.storeName=e};$e.prototype._openDb=function(){return new G(function(e,n){var i=I.indexedDB.open(Cg,Ig);i.onerror=function(){n(i.error)},i.onsuccess=function(){e(i.result)},i.onupgradeneeded=function(t){var r=t.target.result;Eg.forEach(function(o){r.createObjectStore(o)})}})},$e.prototype.init=function(){return I.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof I.IDBDatabase?G.resolve():G.reject(e)})):G.reject("indexedDB is not supported in this browser")},$e.prototype.isInitialized=function(){return!!this.dbPromise},$e.prototype.makeTransaction=function(e,n){var i=this.storeName,t=function(r){return new G(function(o,s){var a=r.transaction(i,e);a.oncomplete=function(){o(a)},a.onabort=a.onerror=function(){s(a.error)},n(a.objectStore(i))})};return this.dbPromise.then(t).catch(function(r){return r&&r.name==="InvalidStateError"?(this.dbPromise=this._openDb(),this.dbPromise.then(t)):G.reject(r)}.bind(this))},$e.prototype.setItem=function(e,n){return this.makeTransaction("readwrite",function(i){i.put(n,e)})},$e.prototype.getItem=function(e){var n;return this.makeTransaction("readonly",function(i){n=i.get(e)}).then(function(){return n.result})},$e.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(n){n.delete(e)})},$e.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(n){e=n.getAll()}).then(function(){return e.result})};var kg="__mp_opt_in_out_";function Og(e,n){$c(!0,e,n)}function xg(e,n){$c(!1,e,n)}function Rg(e,n){return Nc(e,n)==="1"}function Dc(e,n){if(Mg(n))return F.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 i=Nc(e,n)==="0";return i&&F.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),i}function pt(e){return Ko(e,function(n){return this.get_config(n)})}function dt(e){return Ko(e,function(n){return this._get_config(n)})}function Xt(e){return Ko(e,function(n){return this._get_config(n)})}function Ag(e,n){n=n||{},Ho(n).remove(Yo(e,n),!!n.crossSubdomainCookie,n.cookieDomain)}function Ho(e){return e=e||{},e.persistenceType==="localStorage"?h.localStorage:h.cookie}function Yo(e,n){return n=n||{},(n.persistencePrefix||kg)+e}function Nc(e,n){return Ho(n).get(Yo(e,n))}function Mg(e){if(e&&e.ignoreDnt)return!1;var n=e&&e.window||I,i=n.navigator||{},t=!1;return h.each([i.doNotTrack,i.msDoNotTrack,n.doNotTrack],function(r){h.includes([!0,1,"1","yes"],r)&&(t=!0)}),t}function $c(e,n,i){if(!h.isString(n)||!n.length){F.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token");return}i=i||{},Ho(i).set(Yo(n,i),e?1:0,h.isNumber(i.cookieExpiration)?i.cookieExpiration:null,!!i.crossSubdomainCookie,!!i.secureCookie,!!i.crossSiteCookie,i.cookieDomain),i.track&&e&&i.track(i.trackEventName||"$opt_in",i.trackProperties,{send_immediately:!0})}function Ko(e,n){return function(){var i=!1;try{var t=n.call(this,"token"),r=n.call(this,"ignore_dnt"),o=n.call(this,"opt_out_tracking_persistence_type"),s=n.call(this,"opt_out_tracking_cookie_prefix"),a=n.call(this,"window");t&&(i=Dc(t,{ignoreDnt:r,persistenceType:o,persistencePrefix:s,window:a}))}catch(c){F.error("Unexpected error when checking tracking opt-out status: "+c)}if(!i)return e.apply(this,arguments);var u=arguments[arguments.length-1];typeof u=="function"&&u(0)}}var Tg=It("lock"),Fc=function(e,n){n=n||{},this.storageKey=e,this.storage=n.storage||I.localStorage,this.pollIntervalMS=n.pollIntervalMS||100,this.timeoutMS=n.timeoutMS||2e3,this.promiseImpl=n.promiseImpl||G};Fc.prototype.withLock=function(e,n){var i=this.promiseImpl;return new i(h.bind(function(t,r){var o=n||new Date().getTime()+"|"+Math.random(),s=new Date().getTime(),a=this.storageKey,u=this.pollIntervalMS,c=this.timeoutMS,l=this.storage,f=a+":X",p=a+":Y",g=a+":Z",d=function(w){if(new Date().getTime()-s>c){Tg.error("Timeout waiting for mutex on "+a+"; clearing lock. ["+o+"]"),l.removeItem(g),l.removeItem(p),m();return}setTimeout(function(){try{w()}catch(S){r(S)}},u*(Math.random()+.1))},y=function(w,S){w()?S():d(function(){y(w,S)})},v=function(){var w=l.getItem(p);return w&&w!==o?!1:(l.setItem(p,o),l.getItem(p)===o?!0:(Lr(l,!0)||r(new Error("localStorage support dropped while acquiring lock")),!1))},m=function(){l.setItem(f,o),y(v,function(){if(l.getItem(f)===o){_();return}d(function(){if(l.getItem(p)!==o){m();return}y(function(){return!l.getItem(g)},_)})})},_=function(){l.setItem(g,"1");var w=function(){l.removeItem(g),l.getItem(p)===o&&l.removeItem(p),l.getItem(f)===o&&l.removeItem(f)};e().then(function(S){w(),t(S)}).catch(function(S){w(),r(S)})};try{if(Lr(l,!0))m();else throw new Error("localStorage support check failed")}catch(w){r(w)}},this))};var Zt=function(e){this.storage=e||I.localStorage};Zt.prototype.init=function(){return G.resolve()},Zt.prototype.isInitialized=function(){return!0},Zt.prototype.setItem=function(e,n){return new G(h.bind(function(i,t){try{this.storage.setItem(e,Jt(n))}catch(r){t(r)}i()},this))},Zt.prototype.getItem=function(e){return new G(h.bind(function(n,i){var t;try{t=Qn(this.storage.getItem(e))}catch(r){i(r)}n(t)},this))},Zt.prototype.removeItem=function(e){return new G(h.bind(function(n,i){try{this.storage.removeItem(e)}catch(t){i(t)}n()},this))};var Uc=It("batch"),ze=function(e,n){n=n||{},this.storageKey=e,this.usePersistence=n.usePersistence,this.usePersistence&&(this.queueStorage=n.queueStorage||new Zt,this.lock=new Fc(e,{storage:n.sharedLockStorage||I.localStorage,timeoutMS:n.sharedLockTimeoutMS})),this.reportError=n.errorReporter||h.bind(Uc.error,Uc),this.pid=n.pid||null,this.memQueue=[],this.initialized=!1,n.enqueueThrottleMs?this.enqueuePersisted=yg(h.bind(this._enqueuePersisted,this),n.enqueueThrottleMs):this.enqueuePersisted=h.bind(function(i){return this._enqueuePersisted([i])},this)};ze.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?G.resolve():this.queueStorage.init().then(h.bind(function(){this.initialized=!0},this)).catch(h.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},ze.prototype.enqueue=function(e,n){var i={id:Vo(),flushAfter:new Date().getTime()+n*2,payload:e};return this.usePersistence?this.enqueuePersisted(i):(this.memQueue.push(i),G.resolve(!0))},ze.prototype._enqueuePersisted=function(e){var n=h.bind(function(){return this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(i){return this.saveToStorage(i.concat(e))},this)).then(h.bind(function(i){return i&&(this.memQueue=this.memQueue.concat(e)),i},this)).catch(h.bind(function(i){return this.reportError("Error enqueueing items",i,e),!1},this))},this);return this.lock.withLock(n,this.pid).catch(h.bind(function(i){return this.reportError("Error acquiring storage lock",i),!1},this))},ze.prototype.fillBatch=function(e){var n=this.memQueue.slice(0,e);return this.usePersistence&&n.length<e?this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(i){if(i.length){var t={};h.each(n,function(s){t[s.id]=!0});for(var r=0;r<i.length;r++){var o=i[r];if(new Date().getTime()>o.flushAfter&&!t[o.id]&&(o.orphaned=!0,n.push(o),n.length>=e))break}}return n},this)):G.resolve(n)};var Bc=function(e,n){var i=[];return h.each(e,function(t){t.id&&!n[t.id]&&i.push(t)}),i};ze.prototype.removeItemsByID=function(e){var n={};if(h.each(e,function(t){n[t]=!0}),this.memQueue=Bc(this.memQueue,n),this.usePersistence){var i=h.bind(function(){return this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(t){return t=Bc(t,n),this.saveToStorage(t)},this)).then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(t){for(var r=0;r<t.length;r++){var o=t[r];if(o.id&&n[o.id])throw new Error("Item not removed from storage")}return!0},this)).catch(h.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(i,this.pid).catch(h.bind(function(t){return this.reportError("Error acquiring storage lock",t),Lr(this.lock.storage,!0)?!1:i().then(h.bind(function(r){return r||this.queueStorage.removeItem(this.storageKey).then(function(){return r})},this)).catch(h.bind(function(r){return this.reportError("Error clearing queue",r),!1},this))},this))}else return G.resolve(!0)};var zc=function(e,n){var i=[];return h.each(e,function(t){var r=t.id;if(r in n){var o=n[r];o!==null&&(t.payload=o,i.push(t))}else i.push(t)}),i};ze.prototype.updatePayloads=function(e){return this.memQueue=zc(this.memQueue,e),this.usePersistence?this.lock.withLock(h.bind(function(){return this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(i){return i=zc(i,e),this.saveToStorage(i)},this)).catch(h.bind(function(i){return this.reportError("Error updating items",e,i),!1},this))},this),this.pid).catch(h.bind(function(n){return this.reportError("Error acquiring storage lock",n),!1},this)):G.resolve(!0)},ze.prototype.readFromStorage=function(){return this.ensureInit().then(h.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(h.bind(function(e){return e&&(h.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]},this)).catch(h.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},ze.prototype.saveToStorage=function(e){return this.ensureInit().then(h.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(h.bind(function(n){return this.reportError("Error saving queue",n),!1},this))},ze.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(h.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):G.resolve()};var Pg=10*60*1e3,Dr=It("batch"),De=function(e,n){this.errorReporter=n.errorReporter,this.queue=new ze(e,{errorReporter:h.bind(this.reportError,this),queueStorage:n.queueStorage,sharedLockStorage:n.sharedLockStorage,sharedLockTimeoutMS:n.sharedLockTimeoutMS,usePersistence:n.usePersistence,enqueueThrottleMs:n.enqueueThrottleMs}),this.libConfig=n.libConfig,this.sendRequest=n.sendRequestFunc,this.beforeSendHook=n.beforeSendHook,this.stopAllBatching=n.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=n.flushOnlyOnInterval||!1,this._flushPromise=null};De.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},De.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},De.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},De.prototype.clear=function(){return this.queue.clear()},De.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},De.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},De.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(h.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},De.prototype.sendRequestPromise=function(e,n){return new G(h.bind(function(i){this.sendRequest(e,n,i)},this))},De.prototype.flush=function(e){if(this.requestInProgress)return Dr.log("Flush: Request already in progress"),G.resolve();this.requestInProgress=!0,e=e||{};var n=this.libConfig.batch_request_timeout_ms,i=new Date().getTime(),t=this.batchSize;return this.queue.fillBatch(t).then(h.bind(function(r){var o=r.length===t,s=[],a={};if(h.each(r,function(f){var p=f.payload;if(this.beforeSendHook&&!f.orphaned&&(p=this.beforeSendHook(p)),p){p.event&&p.properties&&(p.properties=h.extend({},p.properties,{mp_sent_by_lib_version:Le.LIB_VERSION}));var g=!0,d=f.id;d?(this.itemIdsSentSuccessfully[d]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:f,batchSize:r.length,timesSent:this.itemIdsSentSuccessfully[d]}),g=!1):this.reportError("[dupe] found item with no ID",{item:f}),g&&s.push(p)}a[f.id]=p},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),G.resolve();var u=h.bind(function(){return this.queue.removeItemsByID(h.map(r,function(f){return f.id})).then(h.bind(function(f){return h.each(r,h.bind(function(p){var g=p.id;g?(this.itemIdsSentSuccessfully[g]=this.itemIdsSentSuccessfully[g]||0,this.itemIdsSentSuccessfully[g]++,this.itemIdsSentSuccessfully[g]>5&&this.reportError("[dupe] item ID sent too many times",{item:p,batchSize:r.length,timesSent:this.itemIdsSentSuccessfully[g]})):this.reportError("[dupe] found item with no ID while removing",{item:p})},this)),f?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!o?(this.resetFlush(),G.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),G.resolve())},this))},this),c=h.bind(function(f){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(h.isObject(f)&&f.error==="timeout"&&new Date().getTime()-i>=n)return this.reportError("Network timeout; retrying"),this.flush();if(h.isObject(f)&&(f.httpStatusCode>=500||f.httpStatusCode===429||f.httpStatusCode<=0&&!Sg()||f.error==="timeout")){var p=this.flushInterval*2;return f.retryAfter&&(p=parseInt(f.retryAfter,10)*1e3||p),p=Math.min(Pg,p),this.reportError("Error; retry in "+p+" ms"),this.scheduleFlush(p),G.resolve()}else if(h.isObject(f)&&f.httpStatusCode===413)if(r.length>1){var g=Math.max(1,Math.floor(t/2));return this.batchSize=Math.min(this.batchSize,g,r.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),G.resolve()}else return this.reportError("Single-event request too large; dropping",r),this.resetBatchSize(),u();else return u()}catch(d){this.reportError("Error handling API response",d),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:n};return e.unloading&&(l.transport="sendBeacon"),Dr.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,l).then(c)},this)).catch(h.bind(function(r){this.reportError("Error flushing request queue",r),this.resetFlush()},this))},De.prototype.reportError=function(e,n){if(Dr.error.apply(Dr.error,arguments),this.errorReporter)try{n instanceof Error||(n=new Error(e)),this.errorReporter(e,n)}catch(i){Dr.error(i)}};var Jo=function(e){var n=Date.now();return!e||n>e.maxExpires||n>e.idleExpires},Lg=250,Qt=It("recorder"),Wc=I.CompressionStream,Dg={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},Ng=new Set([T.MouseMove,T.MouseInteraction,T.Scroll,T.ViewportResize,T.Input,T.TouchMove,T.MediaInteraction,T.Drag,T.Selection]);function $g(e){return e.type===q.IncrementalSnapshot&&Ng.has(e.data.source)}var ye=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||ht,this._onMaxLengthReached=e.onMaxLengthReached||ht,this._onBatchSent=e.onBatchSent||ht,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=Mr,this.recordMinMs=0;var n=Lr(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new $e(Lc),this.batcher=new De(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:Dg,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:n,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:Lg,sharedLockTimeoutMS:10*1e3})};ye.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var e={distinct_id:String(this._mixpanel.get_distinct_id())},n=this._mixpanel.get_property("$device_id");n&&(e.$device_id=n);var i=this._mixpanel.get_property("$user_id");return i&&(e.$user_id=i),e},ye.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.batcher.flush().then(function(){return this.queueStorage.removeItem(this.batcherKey)}.bind(this))},ye.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},ye.prototype.get_config=function(e){return this.getConfig(e)},ye.prototype.startRecording=function(e){if(this._rrwebRecord===null){this.reportError("rrweb record function not provided. ");return}if(this._stopRecording!==null){Qt.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>Mr&&(this.recordMaxMs=Mr,Qt.critical("record_max_ms cannot be greater than "+Mr+"ms. Capping value.")),this.maxExpires||(this.maxExpires=new Date().getTime()+this.recordMaxMs),this.recordMinMs=this.getConfig("record_min_ms"),this.recordMinMs>Uo&&(this.recordMinMs=Uo,Qt.critical("record_min_ms cannot be greater than "+Uo+"ms. Capping value.")),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=h.info.currentUrl(),this.replayStartUrl=h.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var n=function(){clearTimeout(this.idleTimeoutId);var r=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,r),this.idleExpires=new Date().getTime()+r}.bind(this);n();var i=this.getConfig("record_block_selector");(i===""||i===null)&&(i=void 0);try{this._stopRecording=this._rrwebRecord({emit:function(r){if(this.idleExpires&&this.idleExpires<r.timestamp){this._onIdleTimeout();return}$g(r)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),n()),this.__enqueuePromise=this.batcher.enqueue(r)}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:i,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextClass:this.getConfig("record_mask_text_class"),maskTextSelector:this.getConfig("record_mask_text_selector"),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15}})}catch(r){this.reportError("Unexpected error when starting rrweb recording.",r)}if(typeof this._stopRecording!="function"){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var t=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),t)},ye.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(i){this.reportError("Error with rrweb stopRecording",i)}this._stopRecording=null}var n;return this.batcher.stopped?n=this.batcher.clear():e||(n=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),n},ye.prototype.isRrwebStopped=function(){return this._stopRecording===null},ye.prototype.flushEventsWithOptOut=function(e,n,i){var t=function(r){r===0&&(this.stopRecording(),i({error:"Tracking has been opted out, stopping recording."}))}.bind(this);this._flushEvents(e,n,i,t)},ye.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(n){this.reportError("Error getting tab ID for serialization ",n),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},ye.deserialize=function(e,n){var i=new ye(h.extend({},n,{replayId:e.replayId,batchStartUrl:e.batchStartUrl,replayStartUrl:e.replayStartUrl,idleExpires:e.idleExpires,maxExpires:e.maxExpires,replayStartTime:e.replayStartTime,seqNo:e.seqNo,sharedLockStorage:n.sharedLockStorage}));return i},ye.prototype._sendRequest=function(e,n,i,t){var r=function(s,a){s.status===200&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=h.info.currentUrl()),this._onBatchSent(),t({status:0,httpStatusCode:s.status,responseBody:a,retryAfter:s.headers.get("Retry-After")})}.bind(this),o=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");I.fetch(o+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(n),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:i}).then(function(s){s.json().then(function(a){r(s,a)}).catch(function(a){t({error:a})})}).catch(function(s){t({error:s,httpStatusCode:0})})},ye.prototype._flushEvents=pt(function(e,n,i){var t=e.length;if(t>0){for(var r=this.replayId,o=1/0,s=-1/0,a=!1,u=0;u<t;u++)o=Math.min(o,e[u].timestamp),s=Math.max(s,e[u].timestamp),e[u].type===q.FullSnapshot&&(a=!0);if(this.seqNo===0){if(!a){i({error:"First batch does not contain a full snapshot. Aborting recording."}),this.stopRecording(!0);return}this.replayStartTime=o}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=o);var c=s-this.replayStartTime,l={$current_url:this.batchStartUrl,$lib_version:Le.LIB_VERSION,batch_start_time:o/1e3,mp_lib:"web",replay_id:r,replay_length_ms:c,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},f=JSON.stringify(e);if(Object.assign(l,this.getUserIdInfo()),Wc){var p=new Blob([f],{type:"application/json"}).stream(),g=p.pipeThrough(new Wc("gzip"));new Response(g).blob().then(function(d){l.format="gzip",this._sendRequest(r,l,d,i)}.bind(this))}else l.format="body",this._sendRequest(r,l,f,i)}}),ye.prototype.reportError=function(e,n){Qt.error.apply(Qt.error,arguments);try{!n&&!(e instanceof Error)&&(e=new Error(e)),this.getConfig("error_reporter")(e,n)}catch(i){Qt.error(i)}};var Je=function(e){this.idb=new $e(jo),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};Je.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},Je.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},Je.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return G.resolve();var n=e.tabId;return n?this.idb.init().then(function(){return this.idb.setItem(n,e)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),G.resolve())},Je.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 Jo(e)?null:e}.bind(this)).catch(this.handleError.bind(this)):G.resolve(null)},Je.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},Je.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))},Je.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):G.resolve()},Je.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(e){var n=e.filter(function(i){return Jo(i)}).map(function(i){var t=ye.deserialize(i,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return t.unloadPersistedData().then(function(){return this.idb.removeItem(i.tabId)}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return G.all(n)}.bind(this)).catch(this.handleError.bind(this)):G.resolve([])};var Nr=It("recorder"),Xe=function(e,n,i){this.mixpanelInstance=e,this.rrwebRecord=n||at,this.sharedLockStorage=i,this.recordingRegistry=new Je({mixpanelInstance:this.mixpanelInstance,errorReporter:Nr.error,sharedLockStorage:i}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};Xe.prototype.startRecording=function(e){if(e=e||{},this.activeRecording&&!this.activeRecording.isRrwebStopped()){Nr.log("Recording already in progress, skipping startRecording.");return}var n=function(){Nr.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),i=function(){Nr.log("Max recording length reached, stopping recording."),this.resetRecording()}.bind(this),t=function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}.bind(this),r={mixpanelInstance:this.mixpanelInstance,onBatchSent:t,onIdleTimeout:n,onMaxLengthReached:i,replayId:h.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=ye.deserialize(e.activeSerializedRecording,r):this.activeRecording=new ye(r),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())},Xe.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))},Xe.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Xe.prototype._stopCurrentRecording=function(e,n){if(this.activeRecording){var i=this.activeRecording.stopRecording(e);return n&&(this.activeRecording=null),i}return G.resolve()},Xe.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),G.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(n){return n&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:n}):e?this.startRecording({shouldStopBatcher:!1}):(Nr.log("No resumable recording found."),null)}.bind(this))},Xe.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Xe.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(Xe.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),I.__mp_recorder=Xe;var $r="change",Ze="click",Xo="hashchange",Fg="input",qc="load",vt="mp_locationchange",Gc="popstate",ei="scrollend",Zo="scroll",Ug="select",ti="submit",Bg="toggle",Vc="visibilitychange",zg=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],jc=["mp-include"],Qo=["mp-no-track"],Hc=Qo.concat(["mp-sensitive"]),Wg=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],qg={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},Gg={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},Vg={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},Yc=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],jg=5,te=It("autocapture");function es(e){for(var n={},i=Kc(e).split(" "),t=0;t<i.length;t++){var r=i[t];r&&(n[r]=!0)}return n}function Kc(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function Hg(e){if(e.previousElementSibling)return e.previousElementSibling;do e=e.previousSibling;while(e&&!Zc(e));return e}function Jc(e,n,i,t,r,o){var s={$classes:Kc(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s.$id=a),ns(e,n,r,o)&&h.each(Wg.concat(t),function(f){if(e.hasAttribute(f)&&!i[f]){var p=e.getAttribute(f);ri(p)&&(s["$attr-"+f]=p)}});for(var u=1,c=1,l=e;l=Hg(l);)u++,l.tagName===e.tagName&&c++;return s.$nth_child=u,s.$nth_of_type=c,s}function Yg(e,n){var i=n.allowElementCallback,t=n.allowSelectors||[],r=n.blockAttrs||[],o=n.blockElementCallback,s=n.blockSelectors||[],a=n.captureTextContent||!1,u=n.captureExtraAttrs||[],c=n.capturedForHeatMap||!1,l={};h.each(r,function(C){l[C]=!0});var f=null,p=typeof e.target=="undefined"?e.srcElement:e.target;if(Qc(p)&&(p=p.parentNode),Zg(p,e)&&ts(p,e,i,t)&&!rs(p,e,o,s)){for(var g=[p],d=p;d.parentNode&&!We(d,"body");)g.push(d.parentNode),d=d.parentNode;var y=[],v,m=!1;if(h.each(g,function(C){var O=ns(C,e,i,t);!l.href&&C.tagName.toLowerCase()==="a"&&(v=C.getAttribute("href"),v=O&&ri(v)&&v),rs(C,e,o,s)&&(m=!0),y.push(Jc(C,e,l,u,i,t))},this),!m){var _=P.documentElement;if(f={$event_type:e.type,$host:I.location.host,$pathname:I.location.pathname,$elements:y,$el_attr__href:v,$viewportHeight:Math.max(_.clientHeight,I.innerHeight||0),$viewportWidth:Math.max(_.clientWidth,I.innerWidth||0),$pageHeight:P.body.offsetHeight||0,$pageWidth:P.body.offsetWidth||0},h.each(u,function(C){if(!l[C]&&p.hasAttribute(C)){var O=p.getAttribute(C);ri(O)&&(f["$el_attr__"+C]=O)}}),a&&(w=Xc(p,e,i,t),w&&w.length&&(f.$el_text=w)),e.type===Ze&&(h.each(zg,function(C){C in e&&(f["$"+C]=e[C])}),c&&(f.$captured_for_heatmap=!0),p=Kg(e)),a){var w=Xc(p,e,i,t);w&&w.length&&(f.$el_text=w)}if(p){if(!ts(p,e,i,t)||rs(p,e,o,s))return null;var S=Jc(p,e,l,u,i,t);f.$target=S,f.$el_classes=S.$classes,h.extend(f,h.strip_empty_properties({$el_id:S.$id,$el_tag_name:S.$tag_name}))}}}return f}function Xc(e,n,i,t){var r="";return ns(e,n,i,t)&&e.childNodes&&e.childNodes.length&&h.each(e.childNodes,function(o){Qc(o)&&o.textContent&&(r+=h.trim(o.textContent).split(/(\s+)/).filter(ri).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),h.trim(r)}function Kg(e){for(var n=e.target,i=e.composedPath(),t=0;t<i.length;t++){var r=i[t];if(We(r,"a")||We(r,"button")||We(r,"input")||We(r,"select")||r.getAttribute&&r.getAttribute("role")==="button"){n=r;break}if(r===n)break}return n}function ts(e,n,i,t){if(i)try{if(!i(e,n))return!1}catch(s){return te.critical("Error while checking element in allowElementCallback",s),!1}if(!t.length)return!0;for(var r=0;r<t.length;r++){var o=t[r];try{if(e.matches(o))return!0}catch(s){te.critical("Error while checking selector: "+o,s)}}return!1}function rs(e,n,i,t){var r;if(i)try{if(i(e,n))return!0}catch(a){return te.critical("Error while checking element in blockElementCallback",a),!0}if(t&&t.length)for(r=0;r<t.length;r++){var o=t[r];try{if(e.matches(o))return!0}catch(a){te.critical("Error while checking selector: "+o,a)}}var s=es(e);for(r=0;r<Qo.length;r++)if(s[Qo[r]])return!0;return!1}function Zc(e){return e&&e.nodeType===1}function We(e,n){return e&&e.tagName&&e.tagName.toLowerCase()===n.toLowerCase()}function Qc(e){return e&&e.nodeType===3}function Jg(){try{var e=P.createElement("div");return!!e.matches}catch(n){return!1}}function Xg(){return typeof WeakSet!="undefined"}function Zg(e,n){if(!e||We(e,"html")||!Zc(e))return!1;var i=e.tagName.toLowerCase();switch(i){case"form":return n.type===ti;case"input":return["button","submit"].indexOf(e.getAttribute("type"))===-1?n.type===$r:n.type===Ze;case"select":case"textarea":return n.type===$r;default:return n.type===Ze}}function ns(e,n,i,t){var r;if(!ts(e,n,i,t))return!1;for(var o=e;o.parentNode&&!We(o,"body");o=o.parentNode){var s=es(o);for(r=0;r<Hc.length;r++)if(s[Hc[r]])return!1}var a=es(e);for(r=0;r<jc.length;r++)if(a[jc[r]])return!0;if(We(e,"input")||We(e,"select")||We(e,"textarea")||e.getAttribute("contenteditable")==="true")return!1;var u=e.type||"";if(typeof u=="string")switch(u.toLowerCase()){case"hidden":return!1;case"password":return!1}var c=e.name||e.id||"";if(typeof c=="string"){var l=/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i;if(l.test(c.replace(/[^a-zA-Z0-9]/g,"")))return!1}return!0}function ri(e){if(e===null||h.isUndefined(e))return!1;if(typeof e=="string"){e=h.trim(e);var n=/^(?:(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}))$/;if(n.test((e||"").replace(/[- ]/g,"")))return!1;var i=/(^\d{3}-?\d{2}-?\d{4}$)/;if(i.test(e))return!1}return!0}function el(e){var n="onscrollend"in I,i=Pr(e),t=ei;if(!n){var r=null,o=100;i=Pr(function(){clearTimeout(r),r=setTimeout(e,o)}),t=Zo}return{listener:i,eventType:t}}function Qg(e){for(var n=0;n<Yc.length;n++)if(e.hasAttribute(Yc[n]))return!0;return!1}function em(e){var n=e.getAttribute("role");if(!n)return!1;var i=n.trim().split(/\s+/)[0].toLowerCase();return qg[i]}function is(e){var n=e.tagName.toLowerCase();return!!(n==="button"||n==="input"||n==="select"||n==="textarea"||n==="details"||n==="dialog"||e.isContentEditable||e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend||Qg(e)||em(e)||n==="a"&&e.hasAttribute("href")||e.hasAttribute("tabindex"))}function tm(e){if(!e||!e.tagName)return!0;var n=e.tagName.toLowerCase();if(Gg[n])return!0;if(is(e))return!1;for(var i=e.parentElement,t=0;i&&t<jg;){if(is(i))return!1;if(i.getRootNode&&i.getRootNode()!==P){var r=i.getRootNode();if(r.host&&is(r.host))return!1}i=i.parentElement,t++}return!!Vg[n]}var rm=30,nm=1e3,im=4;function tl(){this.clicks=[]}tl.prototype.isRageClick=function(e,n,i){i=i||{};var t=i.threshold_px||rm,r=i.timeout_ms||nm,o=i.click_count||im,s=Date.now(),a=this.clicks[this.clicks.length-1];if(a&&s-a.timestamp<r&&Math.sqrt(Math.pow(e-a.x,2)+Math.pow(n-a.y,2))<t){if(this.clicks.push({x:e,y:n,timestamp:s}),this.clicks.length>=o)return this.clicks=[],!0}else this.clicks=[{x:e,y:n,timestamp:s}];return!1};function Et(e,n){this.changeCallback=e||function(){},this.observerConfig=n,this.observedShadowRoots=null,this.shadowObservers=[]}Et.prototype.getEventTarget=function(e){if(this.observedShadowRoots){var n=this.getComposedPath(e);return n&&n.length?n[0]:e.target||e.srcElement}},Et.prototype.getComposedPath=function(e){return"composedPath"in e?e.composedPath():[]},Et.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var n=this.getComposedPath(e),i=0;i<n.length;i++){var t=n[i];t&&t.shadowRoot&&this.observeShadowRoot(t.shadowRoot)}},Et.prototype.observeShadowRoot=function(e){if(!(!this.observedShadowRoots||this.observedShadowRoots.has(e))){var n=this;try{this.observedShadowRoots.add(e);var i=new window.MutationObserver(function(){n.changeCallback()});i.observe(e,this.observerConfig),this.shadowObservers.push(i)}catch(t){te.critical("Error while observing shadow root",t)}}},Et.prototype.start=function(){if(!this.observedShadowRoots){if(!Xg()){te.critical("Shadow DOM observation unavailable: WeakSet not supported");return}this.observedShadowRoots=new WeakSet}},Et.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(n){te.critical("Error while disconnecting shadow DOM observer",n)}this.shadowObservers=[],this.observedShadowRoots=null}};var om=500,sm=[$r,Fg,ti,Ug,Bg],am=[ei],um=[Xo],rl={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function qe(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}qe.prototype.addClick=function(e){var n=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return n||(n=e.target||e.srcElement),!n||tm(n)?!1:(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:n,event:e,timestamp:Date.now()}),!0)},qe.prototype.trackClick=function(e,n){if(!this.isTracking)return!1;var i=this.addClick(e);return i&&this.triggerProcessing(n),i},qe.prototype.getDeadClicks=function(e){if(this.pendingClicks.length===0)return[];var n=e.timeout_ms,i=Date.now(),t=this.pendingClicks.slice();this.pendingClicks=[];for(var r=[],o=0;o<t.length;o++){var s=t[o];i-s.timestamp>=n?this.hasChangesAfter(s.timestamp)||r.push(s):this.pendingClicks.push(s)}return r},qe.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},qe.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},qe.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},qe.prototype.processRecursively=function(e){if(!this.isTracking||!this.onDeadClickCallback){this.processingActive=!1;return}var n=e.timeout_ms,i=this;this.processingTimeout=setTimeout(function(){if(i.processingActive){for(var t=i.getDeadClicks(e),r=0;r<t.length;r++)i.onDeadClickCallback(t[r].event);i.pendingClicks.length>0?i.processRecursively(e):i.processingActive=!1}},n)},qe.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;sm.forEach(function(i){var t=function(){e.recordChangeEvent()};document.addEventListener(i,t,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:i,handler:t,options:{capture:!0,passive:!0}})}),um.forEach(function(i){var t=function(){e.recordChangeEvent()};window.addEventListener(i,t),e.eventListeners.push({target:window,event:i,handler:t})}),am.forEach(function(i){var t=function(){e.recordChangeEvent()};window.addEventListener(i,t,{passive:!0}),e.eventListeners.push({target:window,event:i,handler:t,options:{passive:!0}})});var n=function(){e.recordChangeEvent()};if(document.addEventListener("selectionchange",n),e.eventListeners.push({target:document,event:"selectionchange",handler:n}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){e.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,rl)}catch(i){te.critical("Error while setting up mutation observer",i)}if(window.customElements)try{this.shadowDOMObserver=new Et(function(){e.recordChangeEvent()},rl),this.shadowDOMObserver.start()}catch(i){te.critical("Error while setting up shadow DOM observer",i),this.shadowDOMObserver=null}}},qe.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 n=this.eventListeners[e];try{n.target.removeEventListener(n.event,n.handler,n.options)}catch(i){te.critical("Error while removing event listener",i)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(i){te.critical("Error while disconnecting mutation observer",i)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(i){te.critical("Error while stopping shadow DOM observer",i)}this.shadowDOMObserver=null}}};var nl="autocapture",cm="track_pageview",il="full-url",lm="url-with-path-and-query-string",fm="url-with-path",hm="allow_element_callback",ol="allow_selectors",sl="allow_url_regexes",al="block_attrs",ul="block_element_callback",cl="block_selectors",ll="block_url_regexes",fl="capture_extra_attrs",hl="capture_text_content",pl="scroll_capture_all",dl="scroll_depth_percent_checkpoints",ni="click",ii="dead_click",os="input",vl="pageview",oi="rage_click",ss="scroll",si="page_leave",as="submit",ve={};ve[ol]=[],ve[sl]=[],ve[al]=[],ve[ul]=null,ve[cl]=[],ve[ll]=[],ve[fl]=[],ve[hl]=!1,ve[pl]=!1,ve[dl]=[25,50,75,100],ve[ni]=!0,ve[ii]=!0,ve[os]=!0,ve[vl]=il,ve[oi]=!0,ve[ss]=!0,ve[si]=!1,ve[as]=!0;var Fr={$mp_autocapture:!0},gl="$mp_click",ml="$mp_dead_click",pm="$mp_input_change",yl="$mp_rage_click",dm="$mp_scroll",vm="$mp_submit",gm="$mp_page_leave",he=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};he.prototype.init=function(){if(!Jg()){te.critical("Autocapture unavailable: missing required DOM APIs");return}this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking()},he.prototype.getFullConfig=function(){var e=this.mp.get_config(nl);return e?h.isObject(e)?h.extend({},ve,e):ve:{}},he.prototype.getConfig=function(e){return this.getFullConfig()[e]},he.prototype.currentUrlBlocked=function(){var e,n=h.info.currentUrl(),i=this.getConfig(sl)||[];if(i.length){var t=!1;for(e=0;e<i.length;e++){var r=i[e];try{if(n.match(r)){t=!0;break}}catch(s){return te.critical("Error while checking block URL regex: "+r,s),!0}}if(!t)return!0}var o=this.getConfig(ll)||[];if(!o||!o.length)return!1;for(e=0;e<o.length;e++)try{if(n.match(o[e]))return!0}catch(s){return te.critical("Error while checking block URL regex: "+o[e],s),!0}return!1},he.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(nl)?this.getConfig(vl):this.mp.get_config(cm)},he.prototype.trackDomEvent=function(e,n){if(!this.currentUrlBlocked()){var i=this.mp.is_recording_heatmap_data()&&(n===gl&&!this.getConfig(ni)||n===yl&&!this._getClickTrackingConfig(oi)||n===ml&&!this._getClickTrackingConfig(ii)),t=Yg(e,{allowElementCallback:this.getConfig(hm),allowSelectors:this.getConfig(ol),blockAttrs:this.getConfig(al),blockElementCallback:this.getConfig(ul),blockSelectors:this.getConfig(cl),captureExtraAttrs:this.getConfig(fl),captureTextContent:this.getConfig(hl),capturedForHeatMap:i});t&&(h.extend(t,Fr),this.mp.track(n,t))}},he.prototype.initPageListeners=function(){if(I.removeEventListener(Gc,this.listenerPopstate),I.removeEventListener(Xo,this.listenerHashchange),!(!this.pageviewTrackingConfig()&&!this.getConfig(si)&&!this.mp.get_config("record_heatmap_data"))){this.listenerPopstate=function(){I.dispatchEvent(new Event(vt))},this.listenerHashchange=function(){I.dispatchEvent(new Event(vt))},I.addEventListener(Gc,this.listenerPopstate),I.addEventListener(Xo,this.listenerHashchange);var e=I.history.pushState;typeof e=="function"&&(I.history.pushState=function(i,t,r){e.call(I.history,i,t,r),I.dispatchEvent(new Event(vt))});var n=I.history.replaceState;typeof n=="function"&&(I.history.replaceState=function(i,t,r){n.call(I.history,i,t,r),I.dispatchEvent(new Event(vt))})}},he.prototype._getClickTrackingConfig=function(e){var n=this.getConfig(e);return n?n===!0?{}:typeof n=="object"?n:{}:null},he.prototype._trackPageLeave=function(e,n,i){if(!this.hasTrackedScrollSession){this.hasTrackedScrollSession=!0;var t=Math.max(P.documentElement.clientHeight,I.innerHeight||0),r=Math.round(Math.max(this.maxScrollViewDepth-t,0)/(i-t)*100),o=Math.round(t/i*100);i<=t&&(r=100,o=100);var s=h.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:r,$fold_line_percentage:o,$scroll_height:i,$event_type:e.type,$current_url:n||h.info.currentUrl(),$viewportHeight:t,$viewportWidth:Math.max(P.documentElement.clientWidth,I.innerWidth||0)},Fr);this.mp.is_recording_heatmap_data()&&!this.getConfig(si)&&(s.$captured_for_heatmap=!0),this.mp.track(gm,s,{transport:"sendBeacon"})}},he.prototype._initScrollDepthTracking=function(){if(I.removeEventListener(Zo,this.listenerScrollDepth),I.removeEventListener(ei,this.listenerScrollDepth),!!this.mp.get_config("record_heatmap_data")){te.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(P.documentElement.clientHeight,I.innerHeight||0);var e=function(){if(!this.currentUrlBlocked()){var i=Math.max(P.documentElement.clientHeight,I.innerHeight||0)+I.scrollY;i>this.maxScrollViewDepth&&(this.maxScrollViewDepth=i),this.previousScrollHeight=P.body.scrollHeight}}.bind(this),n=el(e);this.listenerScrollDepth=n.listener,I.addEventListener(n.eventType,this.listenerScrollDepth)}},he.prototype.initClickTracking=function(){I.removeEventListener(Ze,this.listenerClick),!(!this.getConfig(ni)&&!this.mp.get_config("record_heatmap_data"))&&(te.log("Initializing click tracking"),this.listenerClick=function(e){!this.getConfig(ni)&&!this.mp.is_recording_heatmap_data()||this.trackDomEvent(e,gl)}.bind(this),I.addEventListener(Ze,this.listenerClick))},he.prototype.initDeadClickTracking=function(){var e=this._getClickTrackingConfig(ii);if(!e&&!this.mp.get_config("record_heatmap_data")){this.stopDeadClickTracking();return}te.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new qe(function(n){this.trackDomEvent(n,ml)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(n){var i=this._getClickTrackingConfig(ii);if(!(!i&&!this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var t=i||{};t.timeout_ms||(t.timeout_ms=om),this._deadClickTracker.trackClick(n,t)}}.bind(this),I.addEventListener(Ze,this.listenerDeadClick))},he.prototype.initInputTracking=function(){I.removeEventListener($r,this.listenerChange),this.getConfig(os)&&(te.log("Initializing input tracking"),this.listenerChange=function(e){this.getConfig(os)&&this.trackDomEvent(e,pm)}.bind(this),I.addEventListener($r,this.listenerChange))},he.prototype.initPageviewTracking=function(){if(I.removeEventListener(vt,this.listenerLocationchange),!!this.pageviewTrackingConfig()){te.log("Initializing pageview tracking");var e="",n=!1;this.currentUrlBlocked()||(n=this.mp.track_pageview(Fr)),n&&(e=h.info.currentUrl()),this.listenerLocationchange=Pr(function(){if(!this.currentUrlBlocked()){var i=h.info.currentUrl(),t=!1,r=i.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],o=this.pageviewTrackingConfig();if(o===il?t=i!==e:o===lm?t=i.split("#")[0]!==e.split("#")[0]:o===fm&&(t=r),t){var s=this.mp.track_pageview(Fr);s&&(e=i),r&&(this.lastScrollCheckpoint=0,te.log("Path change: re-initializing scroll depth checkpoints"))}}}.bind(this)),I.addEventListener(vt,this.listenerLocationchange)}},he.prototype.initRageClickTracking=function(){I.removeEventListener(Ze,this.listenerRageClick);var e=this._getClickTrackingConfig(oi);!e&&!this.mp.get_config("record_heatmap_data")||(te.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new tl),this.listenerRageClick=function(n){var i=this._getClickTrackingConfig(oi);!i&&!this.mp.is_recording_heatmap_data()||this.currentUrlBlocked()||this._rageClickTracker.isRageClick(n.pageX,n.pageY,i)&&this.trackDomEvent(n,yl)}.bind(this),I.addEventListener(Ze,this.listenerRageClick))},he.prototype.initScrollTracking=function(){if(I.removeEventListener(ei,this.listenerScroll),I.removeEventListener(Zo,this.listenerScroll),!!this.getConfig(ss)){te.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=function(){if(this.getConfig(ss)&&!this.currentUrlBlocked()){var i=this.getConfig(pl),t=(this.getConfig(dl)||[]).slice().sort(function(l,f){return l-f}),r=I.scrollY,o=h.extend({$scroll_top:r},Fr);try{var s=P.body.scrollHeight,a=Math.round(r/(s-I.innerHeight)*100);if(o.$scroll_height=s,o.$scroll_percentage=a,a>this.lastScrollCheckpoint)for(var u=0;u<t.length;u++){var c=t[u];a>=c&&this.lastScrollCheckpoint<c&&(o.$scroll_checkpoint=c,this.lastScrollCheckpoint=c,i=!0)}}catch(l){te.critical("Error while calculating scroll percentage",l)}i&&this.mp.track(dm,o)}}.bind(this),n=el(e);this.listenerScroll=n.listener,I.addEventListener(n.eventType,this.listenerScroll)}},he.prototype.initSubmitTracking=function(){I.removeEventListener(ti,this.listenerSubmit),this.getConfig(as)&&(te.log("Initializing submit tracking"),this.listenerSubmit=function(e){this.getConfig(as)&&this.trackDomEvent(e,vm)}.bind(this),I.addEventListener(ti,this.listenerSubmit))},he.prototype.initPageLeaveTracking=function(){if(P.removeEventListener(Vc,this.listenerPageLeaveVisibilitychange),I.removeEventListener(vt,this.listenerPageLeaveLocationchange),I.removeEventListener(qc,this.listenerPageLoad),!(!this.getConfig(si)&&!this.mp.get_config("record_heatmap_data"))){te.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=h.info.currentUrl();this.listenerPageLoad=function(){this.previousScrollHeight=P.body.scrollHeight}.bind(this),I.addEventListener(qc,this.listenerPageLoad),this.listenerPageLeaveLocationchange=Pr(function(n){if(!this.currentUrlBlocked()){var i=h.info.currentUrl(),t=i!==e;t&&(this._trackPageLeave(n,e,this.previousScrollHeight),e=i,this.maxScrollViewDepth=Math.max(P.documentElement.clientHeight,I.innerHeight||0),this.previousScrollHeight=P.body.scrollHeight,this.hasTrackedScrollSession=!1)}}.bind(this)),I.addEventListener(vt,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=function(n){P.hidden&&this._trackPageLeave(n,e,this.previousScrollHeight)}.bind(this),P.addEventListener(Vc,this.listenerPageLeaveVisibilitychange)}},he.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(I.removeEventListener(Ze,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},Rc(he);var Ie=It("flags"),ai="flags",ui="context",us={};us[ui]={};var U=function(e){this.fetch=I.fetch,this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc};U.prototype.init=function(){if(!this.minApisSupported()){Ie.critical("Feature Flags unavailable: missing minimum required APIs");return}this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set},U.prototype.getFullConfig=function(){var e=this.getMpConfig(ai);return e?h.isObject(e)?h.extend({},us,e):us:{}},U.prototype.getConfig=function(e){return this.getFullConfig()[e]},U.prototype.isSystemEnabled=function(){return!!this.getMpConfig(ai)},U.prototype.updateContext=function(e,n){if(!this.isSystemEnabled())return Ie.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var i=this.getMpConfig(ai);h.isObject(i)||(i={});var t=n&&n.replace?{}:this.getConfig(ui);return i[ui]=h.extend({},t,e),this.setMpConfig(ai,i),this.fetchFlags()},U.prototype.areFlagsReady=function(){return this.isSystemEnabled()||Ie.error("Feature Flags not enabled"),!!this.flags},U.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this.getMpProperty("distinct_id"),n=this.getMpProperty("$device_id"),i=_g();Ie.log("Fetching flags for distinct ID: "+e);var t=h.extend({distinct_id:e,device_id:n},this.getConfig(ui)),r=new URLSearchParams;r.set("context",JSON.stringify(t)),r.set("token",this.getMpConfig("token")),r.set("mp_lib","web"),r.set("$lib_version",Le.LIB_VERSION);var o=this.getFullApiRoute()+"?"+r.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(I,o,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:i}}).then(function(s){return this.markFetchComplete(),s.json().then(function(a){var u=a.flags;if(!u)throw new Error("No flags in API response");var c=new Map;h.each(u,function(l,f){c.set(f,{key:l.variant_key,value:l.variant_value,experiment_id:l.experiment_id,is_experiment_active:l.is_experiment_active,is_qa_tester:l.is_qa_tester})}),this.flags=c,this._traceparent=i}.bind(this)).catch(function(a){this.markFetchComplete(),Ie.error(a)}.bind(this))}.bind(this)).catch(function(s){this.markFetchComplete(),Ie.error(s)}.bind(this)),this.fetchPromise},U.prototype.markFetchComplete=function(){if(!this._fetchInProgressStartTime){Ie.error("Fetch in progress started time not set, cannot mark fetch complete");return}this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null},U.prototype.getVariant=function(e,n){return this.fetchPromise?this.fetchPromise.then(function(){return this.getVariantSync(e,n)}.bind(this)).catch(function(i){return Ie.error(i),n}):new Promise(function(i){Ie.critical("Feature Flags not initialized"),i(n)})},U.prototype.getVariantSync=function(e,n){if(!this.areFlagsReady())return Ie.log("Flags not loaded yet"),n;var i=this.flags.get(e);return i?(this.trackFeatureCheck(e,i),i):(Ie.log('No flag found: "'+e+'"'),n)},U.prototype.getVariantValue=function(e,n){return this.getVariant(e,{value:n}).then(function(i){return i.value}).catch(function(i){return Ie.error(i),n})},U.prototype.getFeatureData=function(e,n){return Ie.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,n)},U.prototype.getVariantValueSync=function(e,n){return this.getVariantSync(e,{value:n}).value},U.prototype.isEnabled=function(e,n){return this.getVariantValue(e).then(function(){return this.isEnabledSync(e,n)}.bind(this)).catch(function(i){return Ie.error(i),n})},U.prototype.isEnabledSync=function(e,n){n=n||!1;var i=this.getVariantValueSync(e,n);return i!==!0&&i!==!1&&(Ie.error('Feature flag "'+e+'" value: '+i+" is not a boolean; returning fallback value: "+n),i=n),i},U.prototype.trackFeatureCheck=function(e,n){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var i={"Experiment name":e,"Variant name":n.key,$experiment_type:"feature_flag","Variant fetch start time":new Date(this._fetchStartTime).toISOString(),"Variant fetch complete time":new Date(this._fetchCompleteTime).toISOString(),"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};n.experiment_id!=="undefined"&&(i.$experiment_id=n.experiment_id),n.is_experiment_active!=="undefined"&&(i.$is_experiment_active=n.is_experiment_active),n.is_qa_tester!=="undefined"&&(i.$is_qa_tester=n.is_qa_tester),this.track("$experiment_started",i)}},U.prototype.minApisSupported=function(){return!!this.fetch&&typeof Promise!="undefined"&&typeof Map!="undefined"&&typeof Set!="undefined"},Rc(U),U.prototype.are_flags_ready=U.prototype.areFlagsReady,U.prototype.get_variant=U.prototype.getVariant,U.prototype.get_variant_sync=U.prototype.getVariantSync,U.prototype.get_variant_value=U.prototype.getVariantValue,U.prototype.get_variant_value_sync=U.prototype.getVariantValueSync,U.prototype.is_enabled=U.prototype.isEnabled,U.prototype.is_enabled_sync=U.prototype.isEnabledSync,U.prototype.update_context=U.prototype.updateContext,U.prototype.get_feature_data=U.prototype.getFeatureData;var Qe=function(){};Qe.prototype.create_properties=function(){},Qe.prototype.event_handler=function(){},Qe.prototype.after_track_handler=function(){},Qe.prototype.init=function(e){return this.mp=e,this},Qe.prototype.track=function(e,n,i,t){var r=this,o=h.dom_query(e);if(o.length===0){F.error("The DOM query ("+e+") returned 0 elements");return}return h.each(o,function(s){h.register_event(s,this.override_event,function(a){var u={},c=r.create_properties(i,this),l=r.mp.get_config("track_links_timeout");r.event_handler(a,this,u),window.setTimeout(r.track_callback(t,c,u,!0),l),r.mp.track(n,c,r.track_callback(t,c,u))})},this),!0},Qe.prototype.track_callback=function(e,n,i,t){t=t||!1;var r=this;return function(){i.callback_fired||(i.callback_fired=!0,!(e&&e(t,n)===!1)&&r.after_track_handler(n,i,t))}},Qe.prototype.create_properties=function(e,n){var i;return typeof e=="function"?i=e(n):i=h.extend({},e),i};var er=function(){this.override_event="click"};h.inherit(er,Qe),er.prototype.create_properties=function(e,n){var i=er.superclass.create_properties.apply(this,arguments);return n.href&&(i.url=n.href),i},er.prototype.event_handler=function(e,n,i){i.new_tab=e.which===2||e.metaKey||e.ctrlKey||n.target==="_blank",i.href=n.href,i.new_tab||e.preventDefault()},er.prototype.after_track_handler=function(e,n){n.new_tab||setTimeout(function(){window.location=n.href},0)};var ci=function(){this.override_event="submit"};h.inherit(ci,Qe),ci.prototype.event_handler=function(e,n,i){i.element=n,e.preventDefault()},ci.prototype.after_track_handler=function(e,n){setTimeout(function(){n.element.submit()},0)};var gt="$set",tr="$set_once",Fe="$unset",kt="$add",Ge="$append",Ot="$union",et="$remove",mm="$delete",_l={set_action:function(e,n){var i={},t={};return h.isObject(e)?h.each(e,function(r,o){this._is_reserved_property(o)||(t[o]=r)},this):t[e]=n,i[gt]=t,i},unset_action:function(e){var n={},i=[];return h.isArray(e)||(e=[e]),h.each(e,function(t){this._is_reserved_property(t)||i.push(t)},this),n[Fe]=i,n},set_once_action:function(e,n){var i={},t={};return h.isObject(e)?h.each(e,function(r,o){this._is_reserved_property(o)||(t[o]=r)},this):t[e]=n,i[tr]=t,i},union_action:function(e,n){var i={},t={};return h.isObject(e)?h.each(e,function(r,o){this._is_reserved_property(o)||(t[o]=h.isArray(r)?r:[r])},this):t[e]=h.isArray(n)?n:[n],i[Ot]=t,i},append_action:function(e,n){var i={},t={};return h.isObject(e)?h.each(e,function(r,o){this._is_reserved_property(o)||(t[o]=r)},this):t[e]=n,i[Ge]=t,i},remove_action:function(e,n){var i={},t={};return h.isObject(e)?h.each(e,function(r,o){this._is_reserved_property(o)||(t[o]=r)},this):t[e]=n,i[et]=t,i},delete_action:function(){var e={};return e[mm]="",e}},ie=function(){};h.extend(ie.prototype,_l),ie.prototype._init=function(e,n,i){this._mixpanel=e,this._group_key=n,this._group_id=i},ie.prototype.set=Xt(function(e,n,i){var t=this.set_action(e,n);return h.isObject(e)&&(i=n),this._send_request(t,i)}),ie.prototype.set_once=Xt(function(e,n,i){var t=this.set_once_action(e,n);return h.isObject(e)&&(i=n),this._send_request(t,i)}),ie.prototype.unset=Xt(function(e,n){var i=this.unset_action(e);return this._send_request(i,n)}),ie.prototype.union=Xt(function(e,n,i){h.isObject(e)&&(i=n);var t=this.union_action(e,n);return this._send_request(t,i)}),ie.prototype.delete=Xt(function(e){var n=this.delete_action();return this._send_request(n,e)}),ie.prototype.remove=Xt(function(e,n,i){var t=this.remove_action(e,n);return this._send_request(t,i)}),ie.prototype._send_request=function(e,n){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var i=h.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:i,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},n)},ie.prototype._is_reserved_property=function(e){return e==="$group_key"||e==="$group_id"},ie.prototype._get_config=function(e){return this._mixpanel.get_config(e)},ie.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},ie.prototype.remove=ie.prototype.remove,ie.prototype.set=ie.prototype.set,ie.prototype.set_once=ie.prototype.set_once,ie.prototype.union=ie.prototype.union,ie.prototype.unset=ie.prototype.unset,ie.prototype.toString=ie.prototype.toString;var D=function(){};h.extend(D.prototype,_l),D.prototype._init=function(e){this._mixpanel=e},D.prototype.set=dt(function(e,n,i){var t=this.set_action(e,n);return h.isObject(e)&&(i=n),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),t[gt]=h.extend({},h.info.people_properties(),t[gt]),this._send_request(t,i)}),D.prototype.set_once=dt(function(e,n,i){var t=this.set_once_action(e,n);return h.isObject(e)&&(i=n),this._send_request(t,i)}),D.prototype.unset=dt(function(e,n){var i=this.unset_action(e);return this._send_request(i,n)}),D.prototype.increment=dt(function(e,n,i){var t={},r={};return h.isObject(e)?(h.each(e,function(o,s){if(!this._is_reserved_property(s))if(isNaN(parseFloat(o))){F.error("Invalid increment value passed to mixpanel.people.increment - must be a number");return}else r[s]=o},this),i=n):(h.isUndefined(n)&&(n=1),r[e]=n),t[kt]=r,this._send_request(t,i)}),D.prototype.append=dt(function(e,n,i){h.isObject(e)&&(i=n);var t=this.append_action(e,n);return this._send_request(t,i)}),D.prototype.remove=dt(function(e,n,i){h.isObject(e)&&(i=n);var t=this.remove_action(e,n);return this._send_request(t,i)}),D.prototype.union=dt(function(e,n,i){h.isObject(e)&&(i=n);var t=this.union_action(e,n);return this._send_request(t,i)}),D.prototype.track_charge=dt(function(){F.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),D.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},D.prototype.delete_user=function(){if(!this._identify_called()){F.error("mixpanel.people.delete_user() requires you to call identify() first");return}var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)},D.prototype.toString=function(){return this._mixpanel.toString()+".people"},D.prototype._send_request=function(e,n){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var i=this._mixpanel.get_property("$device_id"),t=this._mixpanel.get_property("$user_id"),r=this._mixpanel.get_property("$had_persisted_distinct_id");i&&(e.$device_id=i),t&&(e.$user_id=t),r&&(e.$had_persisted_distinct_id=r);var o=h.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},n):(this._enqueue(e),h.isUndefined(n)||(this._get_config("verbose")?n({status:-1,error:null}):n(-1)),h.truncate(o,255))},D.prototype._get_config=function(e){return this._mixpanel.get_config(e)},D.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0},D.prototype._enqueue=function(e){gt in e?this._mixpanel.persistence._add_to_people_queue(gt,e):tr in e?this._mixpanel.persistence._add_to_people_queue(tr,e):Fe in e?this._mixpanel.persistence._add_to_people_queue(Fe,e):kt in e?this._mixpanel.persistence._add_to_people_queue(kt,e):Ge in e?this._mixpanel.persistence._add_to_people_queue(Ge,e):et in e?this._mixpanel.persistence._add_to_people_queue(et,e):Ot in e?this._mixpanel.persistence._add_to_people_queue(Ot,e):F.error("Invalid call to _enqueue():",e)},D.prototype._flush_one_queue=function(e,n,i,t){var r=this,o=h.extend({},this._mixpanel.persistence.load_queue(e)),s=o;!h.isUndefined(o)&&h.isObject(o)&&!h.isEmptyObject(o)&&(r._mixpanel.persistence._pop_from_people_queue(e,o),r._mixpanel.persistence.save(),t&&(s=t(o)),n.call(r,s,function(a,u){a===0&&r._mixpanel.persistence._add_to_people_queue(e,o),h.isUndefined(i)||i(a,u)}))},D.prototype._flush=function(e,n,i,t,r,o,s){var a=this;this._flush_one_queue(gt,this.set,e),this._flush_one_queue(tr,this.set_once,t),this._flush_one_queue(Fe,this.unset,o,function(v){return h.keys(v)}),this._flush_one_queue(kt,this.increment,n),this._flush_one_queue(Ot,this.union,r);var u=this._mixpanel.persistence.load_queue(Ge);if(!h.isUndefined(u)&&h.isArray(u)&&u.length)for(var c,l=function(v,m){v===0&&a._mixpanel.persistence._add_to_people_queue(Ge,c),h.isUndefined(i)||i(v,m)},f=u.length-1;f>=0;f--)u=this._mixpanel.persistence.load_queue(Ge),c=u.pop(),a._mixpanel.persistence.save(),h.isEmptyObject(c)||a.append(c,l);var p=this._mixpanel.persistence.load_queue(et);if(!h.isUndefined(p)&&h.isArray(p)&&p.length)for(var g,d=function(v,m){v===0&&a._mixpanel.persistence._add_to_people_queue(et,g),h.isUndefined(s)||s(v,m)},y=p.length-1;y>=0;y--)p=this._mixpanel.persistence.load_queue(et),g=p.pop(),a._mixpanel.persistence.save(),h.isEmptyObject(g)||a.remove(g,d)},D.prototype._is_reserved_property=function(e){return e==="$distinct_id"||e==="$token"||e==="$device_id"||e==="$user_id"||e==="$had_persisted_distinct_id"},D.prototype.set=D.prototype.set,D.prototype.set_once=D.prototype.set_once,D.prototype.unset=D.prototype.unset,D.prototype.increment=D.prototype.increment,D.prototype.append=D.prototype.append,D.prototype.remove=D.prototype.remove,D.prototype.union=D.prototype.union,D.prototype.track_charge=D.prototype.track_charge,D.prototype.clear_charges=D.prototype.clear_charges,D.prototype.delete_user=D.prototype.delete_user,D.prototype.toString=D.prototype.toString;var cs="__mps",ls="__mpso",fs="__mpus",hs="__mpa",ps="__mpap",ds="__mpr",vs="__mpu",bl="$people_distinct_id",li="__alias",Ur="__timers",ym=[cs,ls,fs,hs,ps,ds,vs,bl,li,Ur],$=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 n=e.persistence;n!=="cookie"&&n!=="localStorage"&&(F.critical("Unknown persistence type "+n+"; falling back to cookie"),n=e.persistence="cookie"),n==="localStorage"&&h.localStorage.is_supported()?this.storage=h.localStorage:this.storage=h.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};$.prototype.properties=function(){var e={};return this.load(),h.each(this.props,function(n,i){h.include(ym,i)||(e[i]=n)}),e},$.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=h.extend({},e))}},$.prototype.upgrade=function(){var e,n;this.storage===h.localStorage?(e=h.cookie.parse(this.name),h.cookie.remove(this.name),h.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===h.cookie&&(n=h.localStorage.parse(this.name),h.localStorage.remove(this.name),n&&this.register_once(n))},$.prototype.save=function(){this.disabled||this.storage.set(this.name,Jt(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},$.prototype.load_prop=function(e){return this.load(),this.props[e]},$.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},$.prototype.clear=function(){this.remove(),this.props={}},$.prototype.register_once=function(e,n,i){return h.isObject(e)?(typeof n=="undefined"&&(n="None"),this.expire_days=typeof i=="undefined"?this.default_expiry:i,this.load(),h.each(e,function(t,r){(!this.props.hasOwnProperty(r)||this.props[r]===n)&&(this.props[r]=t)},this),this.save(),!0):!1},$.prototype.register=function(e,n){return h.isObject(e)?(this.expire_days=typeof n=="undefined"?this.default_expiry:n,this.load(),h.extend(this.props,e),this.save(),!0):!1},$.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},$.prototype.update_search_keyword=function(e){this.register(h.info.searchInfo(e))},$.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:h.info.referringDomain(e)||"$direct"},"")},$.prototype.get_referrer_info=function(){return h.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},$.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)},$.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},$.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},$.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},$.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},$.prototype.get_cross_subdomain=function(){return this.cross_subdomain},$.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},$.prototype._add_to_people_queue=function(e,n){var i=this._get_queue_key(e),t=n[e],r=this._get_or_create_queue(gt),o=this._get_or_create_queue(tr),s=this._get_or_create_queue(Fe),a=this._get_or_create_queue(kt),u=this._get_or_create_queue(Ot),c=this._get_or_create_queue(et,[]),l=this._get_or_create_queue(Ge,[]);i===cs?(h.extend(r,t),this._pop_from_people_queue(kt,t),this._pop_from_people_queue(Ot,t),this._pop_from_people_queue(Fe,t)):i===ls?(h.each(t,function(f,p){p in o||(o[p]=f)}),this._pop_from_people_queue(Fe,t)):i===fs?h.each(t,function(f){h.each([r,o,a,u],function(p){f in p&&delete p[f]}),h.each(l,function(p){f in p&&delete p[f]}),s[f]=!0}):i===hs?(h.each(t,function(f,p){p in r?r[p]+=f:(p in a||(a[p]=0),a[p]+=f)},this),this._pop_from_people_queue(Fe,t)):i===vs?(h.each(t,function(f,p){h.isArray(f)&&(p in u||(u[p]=[]),h.each(f,function(g){h.include(u[p],g)||u[p].push(g)}))}),this._pop_from_people_queue(Fe,t)):i===ds?(c.push(t),this._pop_from_people_queue(Ge,t)):i===ps&&(l.push(t),this._pop_from_people_queue(Fe,t)),F.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),F.log(n),this.save()},$.prototype._pop_from_people_queue=function(e,n){var i=this.props[this._get_queue_key(e)];h.isUndefined(i)||h.each(n,function(t,r){e===Ge||e===et?h.each(i,function(o){o[r]===t&&delete o[r]}):delete i[r]},this)},$.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},$.prototype._get_queue_key=function(e){if(e===gt)return cs;if(e===tr)return ls;if(e===Fe)return fs;if(e===kt)return hs;if(e===Ge)return ps;if(e===et)return ds;if(e===Ot)return vs;F.error("Invalid queue:",e)},$.prototype._get_or_create_queue=function(e,n){var i=this._get_queue_key(e);return n=h.isUndefined(n)?{}:n,this.props[i]||(this.props[i]=n)},$.prototype.set_event_timer=function(e,n){var i=this.load_prop(Ur)||{};i[e]=n,this.props[Ur]=i,this.save()},$.prototype.remove_event_timer=function(e){var n=this.load_prop(Ur)||{},i=n[e];return h.isUndefined(i)||(delete this.props[Ur][e],this.save()),i};var gs,wl=function(e,n){throw new Error(e+" not available in this build.")},pe,_m=0,Sl=1,bm=function(e){return e},Re="mixpanel",Cl="base64",wm="json",ms="$device:",rr=I.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Il=!rr&&Ke.indexOf("MSIE")===-1&&Ke.indexOf("Mozilla")===-1,fi=null;ft.sendBeacon&&(fi=function(){return ft.sendBeacon.apply(ft,arguments)});var El={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/"},kl={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:El,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:Cl,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:ht,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:ht,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class: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_heatmap_data:!1,record_idle_timeout_ms:30*60*1e3,record_mask_text_class:new RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:Mr,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},Ol=!1,b=function(){},hi=function(e,n,i){var t,r=i===Re?pe:pe[i];if(r&&gs===_m)t=r;else{if(r&&!h.isArray(r)){F.error("You have already initialized "+i);return}t=new b}if(t._cached_groups={},t._init(e,n,i),t.people=new D,t.people._init(t),!t.get_config("skip_first_touch_marketing")){var o=h.info.campaignParams(null),s={},a=!1;h.each(o,function(u,c){s["initial_"+c]=u,u&&(a=!0)}),a&&t.people.set_once(s)}return Le.DEBUG=Le.DEBUG||t.get_config("debug"),!h.isUndefined(r)&&h.isArray(r)&&(t._execute_array.call(t.people,r.people),t._execute_array(r)),t};b.prototype.init=function(e,n,i){if(h.isUndefined(i)){this.report_error("You must name your new library: init(token, config, name)");return}if(i===Re){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var t=hi(e,n,i);return pe[i]=t,t._loaded(),t},b.prototype._init=function(e,n,i){n=n||{},this.__loaded=!0,this.config={};var t={};if(!("api_payload_format"in n)){var r=n.api_host||kl.api_host;r.match(/\.mixpanel\.com/)&&(t.api_payload_format=wm)}if(this.set_config(h.extend({},kl,t,n,{name:i,token:e,callback_fn:(i===Re?i:Re+"."+i)+"._jsc"})),this._jsc=ht,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests){if(!h.localStorage.is_supported(!0)||!rr)this._batch_requests=!1,F.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),h.each(this.get_batcher_configs(),function(a){F.log("Clearing batch queue "+a.queue_key),h.localStorage.remove(a.queue_key)});else if(this.init_batchers(),fi&&I.addEventListener){var o=h.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);I.addEventListener("pagehide",function(a){a.persisted&&o()}),I.addEventListener("visibilitychange",function(){P.visibilityState==="hidden"&&o()})}}this.persistence=this.cookie=new $(this.config),this.unpersisted_superprops={},this._gdpr_init();var s=h.UUID();this.get_distinct_id()||this.register_once({distinct_id:ms+s,$device_id:s},""),this.flags=new U({getFullApiRoute:h.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:h.bind(this.get_config,this),setConfigFunc:h.bind(this.set_config,this),getPropertyFunc:h.bind(this.get_property,this),trackingFunc:h.bind(this.track,this)}),this.flags.init(),this.flags=this.flags,this.autocapture=new he(this),this.autocapture.init(),this._init_tab_id(),this._check_and_start_session_recording()},b.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))F.log("Tab ID initialization skipped due to disable_persistence config");else if(h.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),n="mp_tab_id_"+e,i="mp_gen_new_tab_id_"+e;(h.sessionStorage.get(i)||!h.sessionStorage.get(n))&&h.sessionStorage.set(n,"$tab-"+h.UUID()),h.sessionStorage.set(i,"1"),this.tab_id=h.sessionStorage.get(n),I.addEventListener("beforeunload",function(){h.sessionStorage.remove(i)})}catch(t){this.report_error("Error initializing tab id",t)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},b.prototype.get_tab_id=function(){return this.tab_id||null},b.prototype._should_load_recorder=function(){if(this.get_config("disable_persistence"))return F.log("Load recorder check skipped due to disable_persistence config"),Promise.resolve(!1);var e=new $e(jo),n=this.get_tab_id();return e.init().then(function(){return e.getAll()}).then(function(i){for(var t=0;t<i.length;t++)if(Jo(i[t])||i[t].tabId===n)return!0;return!1}).catch(h.bind(function(i){this.report_error("Error checking recording registry",i)},this))},b.prototype._check_and_start_session_recording=pt(function(e){if(!I.MutationObserver){F.critical("Browser does not support MutationObserver; skipping session recording");return}var n=h.bind(function(t){var r=h.bind(function(){this._recorder=this._recorder||new I.__mp_recorder(this),this._recorder.resumeRecording(t)},this);h.isUndefined(I.__mp_recorder)?wl(this.get_config("recorder_src"),r):r()},this),i=this.get_config("record_sessions_percent")>0&&Math.random()*100<=this.get_config("record_sessions_percent");e||i?n(!0):this._should_load_recorder().then(function(t){t&&n(!1)})}),b.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)},b.prototype.stop_session_recording=function(){return this._recorder?this._recorder.stopRecording():Promise.resolve()},b.prototype.pause_session_recording=function(){return this._recorder?this._recorder.pauseRecording():Promise.resolve()},b.prototype.resume_session_recording=function(){return this._recorder?this._recorder.resumeRecording():Promise.resolve()},b.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")},b.prototype.get_session_recording_properties=function(){var e={},n=this._get_session_replay_id();return n&&(e.$mp_replay_id=n),e},b.prototype.get_session_replay_url=function(){var e=null,n=this._get_session_replay_id();if(n){var i=h.HTTPBuildQuery({replay_id:n,distinct_id:this.get_distinct_id(),token:this.get_config("token")});e="https://mixpanel.com/projects/replay-redirect?"+i}return e},b.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},b.prototype.__get_recorder=function(){return this._recorder},b.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=h.info.campaignParams(null);h.each(e,function(n,i){this.unregister(i)}.bind(this))}},b.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(P.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(h.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(P.referrer)},b.prototype._dom_loaded=function(){h.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||h.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},b.prototype._track_dom=function(e,n){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!Ol)return this.__dom_loaded_queue.push([e,n]),!1;var i=new e().init(this);return i.track.apply(i,n)},b.prototype._prepare_callback=function(e,n){if(h.isUndefined(e))return null;if(rr){var i=function(s){e(s,n)};return i}else{var t=this._jsc,r=""+Math.floor(Math.random()*1e8),o=this.get_config("callback_fn")+"["+r+"]";return t[r]=function(s){delete t[r],e(s,n)},o}},b.prototype._send_request=function(e,n,i,t){var r=!0;if(Il)return this.__request_queue.push(arguments),r;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;!t&&(h.isFunction(i)||typeof i=="string")&&(t=i,i=null),i=h.extend(o,i||{}),rr||(i.method="GET");var a=i.method==="POST",u=fi&&a&&i.transport.toLowerCase()==="sendbeacon",c=i.verbose;n.verbose&&(c=!0),this.get_config("test")&&(n.test=1),c&&(n.verbose=1),this.get_config("img")&&(n.img=1),rr||(t?n.callback=t:(c||this.get_config("test"))&&(n.callback="(function(){})")),n.ip=this.get_config("ip")?1:0,n._=new Date().getTime().toString(),a&&(s="data="+encodeURIComponent(n.data),delete n.data),h.extend(n,this.get_config("api_extra_query_params")),e+="?"+h.HTTPBuildQuery(n);var l=this;if("img"in n){var f=P.createElement("img");f.src=e,P.body.appendChild(f)}else if(u){try{r=fi(e,s)}catch(m){l.report_error(m),r=!1}try{t&&t(r?1:0)}catch(m){l.report_error(m)}}else if(rr)try{var p=new XMLHttpRequest;p.open(i.method,e,!0);var g=this.get_config("xhr_headers");if(a&&(g["Content-Type"]="application/x-www-form-urlencoded"),h.each(g,function(m,_){p.setRequestHeader(_,m)}),i.timeout_ms&&typeof p.timeout!="undefined"){p.timeout=i.timeout_ms;var d=new Date().getTime()}p.withCredentials=!0,p.onreadystatechange=function(){if(p.readyState===4)if(p.status===200){if(t)if(c){var m;try{m=h.JSONDecode(p.responseText)}catch(S){if(l.report_error(S),i.ignore_json_errors)m=p.responseText;else return}t(m)}else t(Number(p.responseText))}else{var _;if(p.timeout&&!p.status&&new Date().getTime()-d>=p.timeout?_="timeout":_="Bad HTTP status: "+p.status+" "+p.statusText,l.report_error(_),t)if(c){var w=p.responseHeaders||{};t({status:0,httpStatusCode:p.status,error:_,retryAfter:w["Retry-After"]})}else t(0)}},p.send(s)}catch(m){l.report_error(m),r=!1}else{var y=P.createElement("script");y.type="text/javascript",y.async=!0,y.defer=!0,y.src=e;var v=P.getElementsByTagName("script")[0];v.parentNode.insertBefore(y,v)}return r},b.prototype._execute_array=function(e){var n,i=[],t=[],r=[];h.each(e,function(s){s&&(n=s[0],h.isArray(n)?r.push(s):typeof s=="function"?s.call(this):h.isArray(s)&&n==="alias"?i.push(s):h.isArray(s)&&n.indexOf("track")!==-1&&typeof this[n]=="function"?r.push(s):t.push(s))},this);var o=function(s,a){h.each(s,function(u){if(h.isArray(u[0])){var c=a;h.each(u,function(l){c=c[l[0]].apply(c,l.slice(1))})}else this[u[0]].apply(this,u.slice(1))},a)};o(i,this),o(t,this),o(r,this)},b.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},b.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},b.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=h.bind(function(i){return new De(i.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:h.bind(function(t,r,o){var s=this.get_config("api_routes");this._send_request(this.get_api_host(i.api_name)+"/"+s[i.api_name],this._encode_data_for_request(t),r,this._prepare_callback(o,t))},this),beforeSendHook:h.bind(function(t){return this._run_hook("before_send_"+i.type,t)},this),stopAllBatchingFunc:h.bind(this.stop_batch_senders,this),usePersistence:!0})},this),n=this.get_batcher_configs();this.request_batchers={events:e(n.events),people:e(n.people),groups:e(n.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},b.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,h.each(this.request_batchers,function(e){e.start()}))},b.prototype.stop_batch_senders=function(){this._batch_requests=!1,h.each(this.request_batchers,function(e){e.stop(),e.clear()})},b.prototype.push=function(e){this._execute_array([e])},b.prototype.disable=function(e){typeof e=="undefined"?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},b.prototype._encode_data_for_request=function(e){var n=Jt(e);return this.get_config("api_payload_format")===Cl&&(n=h.base64Encode(n)),{data:n}},b.prototype._track_or_batch=function(e,n){var i=h.truncate(e.data,255),t=e.endpoint,r=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};n=n||ht;var a=!0,u=h.bind(function(){return s.skip_hooks||(i=this._run_hook("before_send_"+e.type,i)),i?(F.log("MIXPANEL REQUEST:"),F.log(i),this._send_request(t,this._encode_data_for_request(i),s,this._prepare_callback(n,i))):null},this);return this._batch_requests&&!o?r.enqueue(i).then(function(c){c?n(1,i):u()}):a=u(),a&&i},b.prototype.track=pt(function(e,n,i,t){!t&&typeof i=="function"&&(t=i,i=null),i=i||{};var r=i.transport;r&&(i.transport=r);var o=i.send_immediately;if(typeof t!="function"&&(t=ht),h.isUndefined(e)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(e)){t(0);return}n=h.extend({},n),n.token=this.get_config("token");var s=this.persistence.remove_event_timer(e);if(!h.isUndefined(s)){var a=new Date().getTime()-s;n.$duration=parseFloat((a/1e3).toFixed(3))}this._set_default_superprops();var u=this.get_config("track_marketing")?h.info.marketingParams():{};n=h.extend({},h.info.properties({mp_loader:this.get_config("mp_loader")}),u,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),n);var c=this.get_config("property_blacklist");h.isArray(c)?h.each(c,function(p){delete n[p]}):this.report_error("Invalid value for property_blacklist config: "+c);var l={event:e,properties:n},f=this._track_or_batch({type:"events",data:l,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:o,send_request_options:i},t);return f}),b.prototype.set_group=pt(function(e,n,i){h.isArray(n)||(n=[n]);var t={};return t[e]=n,this.register(t),this.people.set(e,n,i)}),b.prototype.add_group=pt(function(e,n,i){var t=this.get_property(e),r={};return t===void 0?(r[e]=[n],this.register(r)):t.indexOf(n)===-1&&(t.push(n),r[e]=t,this.register(r)),this.people.union(e,n,i)}),b.prototype.remove_group=pt(function(e,n,i){var t=this.get_property(e);if(t!==void 0){var r=t.indexOf(n);r>-1&&(t.splice(r,1),this.register({group_key:t})),t.length===0&&this.unregister(e)}return this.people.remove(e,n,i)}),b.prototype.track_with_groups=pt(function(e,n,i,t){var r=h.extend({},n||{});return h.each(i,function(o,s){o!=null&&(r[s]=o)}),this.track(e,r,t)}),b.prototype._create_map_key=function(e,n){return e+"_"+JSON.stringify(n)},b.prototype._remove_group_from_cache=function(e,n){delete this._cached_groups[this._create_map_key(e,n)]},b.prototype.get_group=function(e,n){var i=this._create_map_key(e,n),t=this._cached_groups[i];return(t===void 0||t._group_key!==e||t._group_id!==n)&&(t=new ie,t._init(this,e,n),this._cached_groups[i]=t),t},b.prototype.track_pageview=pt(function(e,n){typeof e!="object"&&(e={}),n=n||{};var i=n.event_name||"$mp_web_page_view",t=h.extend(h.info.mpPageViewProperties(),h.info.campaignParams(),h.info.clickParams()),r=h.extend({},t,e);return this.track(i,r)}),b.prototype.track_links=function(){return this._track_dom.call(this,er,arguments)},b.prototype.track_forms=function(){return this._track_dom.call(this,ci,arguments)},b.prototype.time_event=function(e){if(h.isUndefined(e)){this.report_error("No event name provided to mixpanel.time_event");return}this._event_is_disabled(e)||this.persistence.set_event_timer(e,new Date().getTime())};var Sm={persistent:!0},ys=function(e){var n;return h.isObject(e)?n=e:h.isUndefined(e)?n={}:n={days:e},h.extend({},Sm,n)};b.prototype.register=function(e,n){var i=ys(n);i.persistent?this.persistence.register(e,i.days):h.extend(this.unpersisted_superprops,e)},b.prototype.register_once=function(e,n,i){var t=ys(i);t.persistent?this.persistence.register_once(e,n,t.days):(typeof n=="undefined"&&(n="None"),h.each(e,function(r,o){(!this.unpersisted_superprops.hasOwnProperty(o)||this.unpersisted_superprops[o]===n)&&(this.unpersisted_superprops[o]=r)},this))},b.prototype.unregister=function(e,n){n=ys(n),n.persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},b.prototype._register_single=function(e,n){var i={};i[e]=n,this.register(i)},b.prototype.identify=function(e,n,i,t,r,o,s,a){var u=this.get_distinct_id();if(e&&u!==e){if(typeof e=="string"&&e.indexOf(ms)===0)return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var c=u;this.register_once({$had_persisted_distinct_id:!0,$device_id:c},"")}e!==u&&e!==this.get_property(li)&&(this.unregister(li),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(n,i,t,r,o,s,a),e!==u&&this.track("$identify",{distinct_id:e,$anon_distinct_id:u},{skip_hooks:!0}),e!==u&&this.flags.fetchFlags()},b.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=h.UUID();this.register_once({distinct_id:ms+e,$device_id:e},""),this._check_and_start_session_recording()},b.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},b.prototype.alias=function(e,n){if(e===this.get_property(bl))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var i=this;return h.isUndefined(n)&&(n=this.get_distinct_id()),e!==n?(this._register_single(li,e),this.track("$create_alias",{alias:e,distinct_id:n},{skip_hooks:!0},function(){i.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},b.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},b.prototype.set_config=function(e){if(h.isObject(e)){h.extend(this.config,e);var n=e.batch_size;n&&h.each(this.request_batchers,function(i){i.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),Le.DEBUG=Le.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init()}},b.prototype.get_config=function(e){return this.config[e]},b.prototype._run_hook=function(e){var n=(this.config.hooks[e]||bm).apply(this,lt.call(arguments,1));return typeof n=="undefined"&&(this.report_error(e+" hook did not return a value"),n=null),n},b.prototype.get_property=function(e){return this.persistence.load_prop([e])},b.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},b.prototype.toString=function(){var e=this.get_config("name");return e!==Re&&(e=Re+"."+e),e},b.prototype._event_is_disabled=function(e){return h.isBlockedUA(Ke)||this._flags.disable_all_events||h.include(this.__disabled_events,e)},b.prototype._gdpr_init=function(){var e=this.get_config("opt_out_tracking_persistence_type")==="localStorage";e&&h.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")||h.cookie.get("mp_optout"))&&(h.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},b.prototype._gdpr_update_persistence=function(e){var n;if(e&&e.clear_persistence)n=!0;else if(e&&e.enable_persistence)n=!1;else return;!this.get_config("disable_persistence")&&this.persistence.disabled!==n&&this.persistence.set_disabled(n),n?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},b.prototype._gdpr_call_func=function(e,n){return n=h.extend({track:h.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")},n),h.localStorage.is_supported()||(n.persistence_type="cookie"),e(this.get_config("token"),{track:n.track,trackEventName:n.track_event_name,trackProperties:n.track_properties,persistenceType:n.persistence_type,persistencePrefix:n.cookie_prefix,cookieDomain:n.cookie_domain,cookieExpiration:n.cookie_expiration,crossSiteCookie:n.cross_site_cookie,crossSubdomainCookie:n.cross_subdomain_cookie,secureCookie:n.secure_cookie,ignoreDnt:n.ignore_dnt})},b.prototype.opt_in_tracking=function(e){e=h.extend({enable_persistence:!0},e),this._gdpr_call_func(Og,e),this._gdpr_update_persistence(e)},b.prototype.opt_out_tracking=function(e){e=h.extend({clear_persistence:!0,delete_user:!0},e),e.delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(xg,e),this._gdpr_update_persistence(e)},b.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(Rg,e)},b.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(Dc,e)},b.prototype.clear_opt_in_out_tracking=function(e){e=h.extend({enable_persistence:!0},e),this._gdpr_call_func(Ag,e),this._gdpr_update_persistence(e)},b.prototype.report_error=function(e,n){F.error.apply(F.error,arguments);try{!n&&!(e instanceof Error)&&(e=new Error(e)),this.get_config("error_reporter")(e,n)}catch(i){F.error(i)}},b.prototype.init=b.prototype.init,b.prototype.reset=b.prototype.reset,b.prototype.disable=b.prototype.disable,b.prototype.time_event=b.prototype.time_event,b.prototype.track=b.prototype.track,b.prototype.track_links=b.prototype.track_links,b.prototype.track_forms=b.prototype.track_forms,b.prototype.track_pageview=b.prototype.track_pageview,b.prototype.register=b.prototype.register,b.prototype.register_once=b.prototype.register_once,b.prototype.unregister=b.prototype.unregister,b.prototype.identify=b.prototype.identify,b.prototype.alias=b.prototype.alias,b.prototype.name_tag=b.prototype.name_tag,b.prototype.set_config=b.prototype.set_config,b.prototype.get_config=b.prototype.get_config,b.prototype.get_api_host=b.prototype.get_api_host,b.prototype.get_property=b.prototype.get_property,b.prototype.get_distinct_id=b.prototype.get_distinct_id,b.prototype.toString=b.prototype.toString,b.prototype.opt_out_tracking=b.prototype.opt_out_tracking,b.prototype.opt_in_tracking=b.prototype.opt_in_tracking,b.prototype.has_opted_out_tracking=b.prototype.has_opted_out_tracking,b.prototype.has_opted_in_tracking=b.prototype.has_opted_in_tracking,b.prototype.clear_opt_in_out_tracking=b.prototype.clear_opt_in_out_tracking,b.prototype.get_group=b.prototype.get_group,b.prototype.set_group=b.prototype.set_group,b.prototype.add_group=b.prototype.add_group,b.prototype.remove_group=b.prototype.remove_group,b.prototype.track_with_groups=b.prototype.track_with_groups,b.prototype.start_batch_senders=b.prototype.start_batch_senders,b.prototype.stop_batch_senders=b.prototype.stop_batch_senders,b.prototype.start_session_recording=b.prototype.start_session_recording,b.prototype.stop_session_recording=b.prototype.stop_session_recording,b.prototype.pause_session_recording=b.prototype.pause_session_recording,b.prototype.resume_session_recording=b.prototype.resume_session_recording,b.prototype.get_session_recording_properties=b.prototype.get_session_recording_properties,b.prototype.get_session_replay_url=b.prototype.get_session_replay_url,b.prototype.get_tab_id=b.prototype.get_tab_id,b.prototype.DEFAULT_API_ROUTES=El,b.prototype.__get_recorder=b.prototype.__get_recorder,$.prototype.properties=$.prototype.properties,$.prototype.update_search_keyword=$.prototype.update_search_keyword,$.prototype.update_referrer_info=$.prototype.update_referrer_info,$.prototype.get_cross_subdomain=$.prototype.get_cross_subdomain,$.prototype.clear=$.prototype.clear;var mt={},Cm=function(){h.each(mt,function(e,n){n!==Re&&(pe[n]=e)}),pe._=h},Im=function(){pe.init=function(e,n,i){if(i)return pe[i]||(pe[i]=mt[i]=hi(e,n,i),pe[i]._loaded()),pe[i];var t=pe;mt[Re]?t=mt[Re]:e&&(t=hi(e,n,Re),t._loaded(),mt[Re]=t),pe=t,gs===Sl&&(I[Re]=pe),Cm()}},Em=function(){function e(){e.done||(e.done=!0,Ol=!0,Il=!1,h.each(mt,function(t){t._dom_loaded()}))}function n(){try{P.documentElement.doScroll("left")}catch(t){setTimeout(n,1);return}e()}if(P.addEventListener)P.readyState==="complete"?e():P.addEventListener("DOMContentLoaded",e,!1);else if(P.attachEvent){P.attachEvent("onreadystatechange",e);var i=!1;try{i=I.frameElement===null}catch(t){}P.documentElement.doScroll&&i&&n()}h.register_event(I,"load",e,!0)};function km(e){if(wl=e,gs=Sl,pe=I[Re],h.isUndefined(pe)){F.critical('"mixpanel" object not initialized. Ensure you are using the latest version of the Mixpanel JS Library along with the snippet we provide.');return}if(pe.__loaded||pe.config&&pe.persistence){F.critical("The Mixpanel library has already been downloaded at least once. Ensure that the Mixpanel code snippet only appears once on the page (and is not double-loaded by a tag manager) in order to avoid errors.");return}var n=pe.__SV||0;if(n<1.1){F.critical("Version mismatch; please ensure you're using the latest version of the Mixpanel code snippet.");return}h.each(pe._i,function(i){i&&h.isArray(i)&&(mt[i[i.length-1]]=hi.apply(this,i))}),Im(),pe.init(),h.each(mt,function(i){i._loaded()}),Em()}function Om(e,n){n()}km(Om)})();
|
|
1
|
+
(function(){"use strict";var I;if(typeof window=="undefined"){var Ss={hostname:""};I={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:Ss,referrer:""},screen:{width:0,height:0},location:Ss,addEventListener:function(){},removeEventListener:function(){}}}else I=window;function Cs(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,t=new Array(n);i<n;i++)t[i]=e[i];return t}function Is(e,n,i,t,r,o,s){try{var a=e[o](s),u=a.value}catch(c){i(c);return}a.done?n(u):Promise.resolve(u).then(t,r)}function vi(e){return function(){var n=this,i=arguments;return new Promise(function(t,r){var o=e.apply(n,i);function s(u){Is(o,t,r,s,a,"next",u)}function a(u){Is(o,t,r,s,a,"throw",u)}s(void 0)})}}function Gr(e,n,i){return Es()?Gr=Reflect.construct:Gr=function(r,o,s){var a=[null];a.push.apply(a,o);var u=Function.bind.apply(r,a),c=new u;return s&&ur(c,s.prototype),c},Gr.apply(null,arguments)}function Pl(e,n){for(var i=0;i<n.length;i++){var t=n[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function me(e,n,i){return n&&Pl(e.prototype,n),e}function j(){return j=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},j.apply(this,arguments)}function gi(e){return gi=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},gi(e)}function be(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&ur(e,n)}function N(e,n){return n!=null&&typeof Symbol!="undefined"&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](e):e instanceof n}function Ll(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function ar(e,n){if(e==null)return{};var i={},t=Object.keys(e),r,o;for(o=0;o<t.length;o++)r=t[o],!(n.indexOf(r)>=0)&&(i[r]=e[r]);return i}function ur(e,n){return ur=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},ur(e,n)}function z(e){"@swc/helpers - typeof";return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function Dl(e,n){if(e){if(typeof e=="string")return Cs(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(i);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Cs(e,n)}}function Vr(e){var n=typeof Map=="function"?new Map:void 0;return Vr=function(t){if(t===null||!Ll(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n!="undefined"){if(n.has(t))return n.get(t);n.set(t,r)}function r(){return Gr(t,arguments,gi(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ur(r,t)},Vr(e)}function Es(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(Es=function(){return!!e})()}function k(e,n){var i=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(i)return(i=i.call(e)).next.bind(i);if(Array.isArray(e)||(i=Dl(e))||n){i&&(e=i);var t=0;return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}}}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 cr(e,n){var i,t,r,o,s={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(l){return u([c,l])}}function u(c){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,t&&(r=c[0]&2?t.return:c[0]?t.throw||((r=t.return)&&r.call(t),0):t.next)&&!(r=r.call(t,c[1])).done)return r;switch(t=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,t=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){s=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){s.label=c[1];break}if(c[0]===6&&s.label<r[1]){s.label=r[1],r=c;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(c);break}r[2]&&s.ops.pop(),s.trys.pop();continue}c=n.call(e,s)}catch(l){c=[6,l],t=0}finally{i=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function ks(e){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&e[n],t=0;if(i)return i.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}var Nl=Object.defineProperty,$l=function(e,n,i){return n in e?Nl(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i},E=function(e,n,i){return $l(e,(typeof n=="undefined"?"undefined":z(n))!=="symbol"?n+"":n,i)},Os,Fl=Object.defineProperty,Ul=function(e,n,i){return n in e?Fl(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i},xs=function(e,n,i){return Ul(e,(typeof n=="undefined"?"undefined":z(n))!=="symbol"?n+"":n,i)},ge=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}(ge||{}),Rs={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},As={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},jr={},Bl=function(){return!!globalThis.Zone};function mi(e){if(jr[e])return jr[e];var n=globalThis[e],i=n.prototype,t=e in Rs?Rs[e]:void 0,r=!!(t&&t.every(function(l){var f,p;return!!((p=(f=Object.getOwnPropertyDescriptor(i,l))==null?void 0:f.get)!=null&&p.toString().includes("[native code]"))})),o=e in As?As[e]:void 0,s=!!(o&&o.every(function(l){var f;return typeof i[l]=="function"&&((f=i[l])==null?void 0:f.toString().includes("[native code]"))}));if(r&&s&&!Bl())return jr[e]=n.prototype,n.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return n.prototype;var c=u[e].prototype;return document.body.removeChild(a),c?jr[e]=c:i}catch(l){return i}}var yi={};function rt(e,n,i){var t,r=e+"."+String(i);if(yi[r])return yi[r].call(n);var o=mi(e),s=(t=Object.getOwnPropertyDescriptor(o,i))==null?void 0:t.get;return s?(yi[r]=s,s.call(n)):n[i]}var _i={};function Ms(e,n,i){var t=e+"."+String(i);if(_i[t])return _i[t].bind(n);var r=mi(e),o=r[i];return typeof o!="function"?n[i]:(_i[t]=o,o.bind(n))}function zl(e){return rt("Node",e,"childNodes")}function Wl(e){return rt("Node",e,"parentNode")}function ql(e){return rt("Node",e,"parentElement")}function Gl(e){return rt("Node",e,"textContent")}function Vl(e,n){return Ms("Node",e,"contains")(n)}function jl(e){return Ms("Node",e,"getRootNode")()}function Hl(e){return!e||!("host"in e)?null:rt("ShadowRoot",e,"host")}function Yl(e){return e.styleSheets}function Kl(e){return!e||!("shadowRoot"in e)?null:rt("Element",e,"shadowRoot")}function Jl(e,n){return rt("Element",e,"querySelector")(n)}function Xl(e,n){return rt("Element",e,"querySelectorAll")(n)}function Zl(){return mi("MutationObserver").constructor}function Ql(e,n,i){try{if(!(n in e))return function(){};var t=e[n],r=i(t);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:t}})),e[n]=r,function(){e[n]=t}}catch(o){return function(){}}}var we={childNodes:zl,parentNode:Wl,parentElement:ql,textContent:Gl,contains:Vl,getRootNode:jl,host:Hl,styleSheets:Yl,shadowRoot:Kl,querySelector:Jl,querySelectorAll:Xl,mutationObserver:Zl,patch:Ql};function Ts(e){return e.nodeType===e.ELEMENT_NODE}function lr(e){var n=e&&"host"in e&&"mode"in e&&we.host(e)||null;return!!(n&&"shadowRoot"in n&&we.shadowRoot(n)===e)}function fr(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function ef(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function tf(e){var n=e.cssText;if(n.split('"').length<3)return n;var i=["@import","url("+JSON.stringify(e.href)+")"];return e.layerName===""?i.push("layer"):e.layerName&&i.push("layer("+e.layerName+")"),e.supportsText&&i.push("supports("+e.supportsText+")"),e.media.length&&i.push(e.media.mediaText),i.join(" ")+";"}function bi(e){try{var n=e.rules||e.cssRules;if(!n)return null;var i=e.href;!i&&e.ownerNode&&e.ownerNode.ownerDocument&&(i=e.ownerNode.ownerDocument.location.href);var t=Array.from(n,function(r){return Ps(r,i)}).join("");return ef(t)}catch(r){return null}}function Ps(e,n){if(nf(e)){var i;try{i=bi(e.styleSheet)||tf(e)}catch(r){i=e.cssText}return e.styleSheet.href?Kr(i,e.styleSheet.href):i}else{var t=e.cssText;return of(e)&&e.selectorText.includes(":")&&(t=rf(t)),n?Kr(t,n):t}}function rf(e){var n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(n,"$1\\$2")}function nf(e){return"styleSheet"in e}function of(e){return"selectorText"in e}var Ls=function(){function e(){xs(this,"idNodeMap",new Map),xs(this,"nodeMetaMap",new WeakMap)}var n=e.prototype;return n.getId=function(t){var r;if(!t)return-1;var o=(r=this.getMeta(t))==null?void 0:r.id;return o!=null?o:-1},n.getNode=function(t){return this.idNodeMap.get(t)||null},n.getIds=function(){return Array.from(this.idNodeMap.keys())},n.getMeta=function(t){return this.nodeMetaMap.get(t)||null},n.removeNodeFromMap=function(t){var r=this,o=this.getId(t);this.idNodeMap.delete(o),t.childNodes&&t.childNodes.forEach(function(s){return r.removeNodeFromMap(s)})},n.has=function(t){return this.idNodeMap.has(t)},n.hasNode=function(t){return this.nodeMetaMap.has(t)},n.add=function(t,r){var o=r.id;this.idNodeMap.set(o,t),this.nodeMetaMap.set(t,r)},n.replace=function(t,r){var o=this.getNode(t);if(o){var s=this.nodeMetaMap.get(o);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(t,r)},n.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function sf(){return new Ls}function Hr(e){var n=e.element,i=e.maskInputOptions,t=e.tagName,r=e.type,o=e.value,s=e.maskInputFn,a=o||"",u=r&&_t(r);return(i[t.toLowerCase()]||u&&i[u])&&(s?a=s(a,n):a="*".repeat(a.length)),a}function _t(e){return e.toLowerCase()}var Ds="__rrweb_original__";function af(e){var n=e.getContext("2d");if(!n)return!0;for(var i=50,t=0;t<e.width;t+=i)for(var r=0;r<e.height;r+=i){var o=n.getImageData,s=Ds in o?o[Ds]:o,a=new Uint32Array(s.call(n,t,r,Math.min(i,e.width-t),Math.min(i,e.height-r)).data.buffer);if(a.some(function(u){return u!==0}))return!1}return!0}function Yr(e){var n=e.type;return e.hasAttribute("data-rr-is-password")?"password":n?_t(n):null}function Ns(e,n){var i;try{i=new URL(e,n!=null?n:window.location.href)}catch(s){return null}var t=/\.([0-9a-z]+)(?:$)/i,r=i.pathname.match(t),o;return(o=r==null?void 0:r[1])!=null?o:null}function uf(e){var n="";return e.indexOf("//")>-1?n=e.split("/").slice(0,3).join("/"):n=e.split("/")[0],n=n.split("?")[0],n}var cf=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,lf=/^(?:[a-z+]+:)?\/\//i,ff=/^www\..*/i,hf=/^(data:)([^,]*),(.*)/i;function Kr(e,n){return(e||"").replace(cf,function(i,t,r,o,s,a){var u=r||s||a,c=t||o||"";if(!u)return i;if(lf.test(u)||ff.test(u)||hf.test(u))return"url("+c+u+c+")";if(u[0]==="/")return"url("+c+(uf(n)+u)+c+")";var l=n.split("/"),f=u.split("/");l.pop();for(var p=k(f),g;!(g=p()).done;){var d=g.value;d!=="."&&(d===".."?l.pop():l.push(d))}return"url("+c+l.join("/")+c+")"})}function Jr(e,n){return n===void 0&&(n=!1),n?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function pf(e,n,i){i===void 0&&(i=!1);var t=Array.from(n.childNodes),r=[],o=0;if(t.length>1&&e&&typeof e=="string"){for(var s=Jr(e,i),a=s.length/e.length,u=1;u<t.length;u++)if(t[u].textContent&&typeof t[u].textContent=="string"){for(var c=Jr(t[u].textContent,i),l=100,f=3;f<c.length&&(c[f].match(/[a-zA-Z0-9]/)||c.indexOf(c.substring(0,f),1)!==-1);f++);for(;f<c.length;f++){var p=c.substring(0,f),g=s.split(p),d=-1;if(g.length===2)d=g[0].length;else if(g.length>2&&g[0]===""&&t[u-1].textContent!=="")d=s.indexOf(p,1);else if(g.length===1){if(p=p.substring(0,p.length-1),g=s.split(p),g.length<=1)return r.push(e),r;f=l+1}else f===c.length-1&&(d=s.indexOf(p));if(g.length>=2&&f>l){var y=t[u-1].textContent;if(y&&typeof y=="string"){var v=Jr(y).length;d=s.indexOf(p,v)}d===-1&&(d=g[0].length)}if(d!==-1){for(var m=Math.floor(d/a);m>0&&m<e.length;){if(o+=1,o>50*t.length)return r.push(e),r;var _=Jr(e.substring(0,m),i);if(_.length===d){r.push(e.substring(0,m)),e=e.substring(m),s=s.substring(d);break}else _.length<d?m+=Math.max(1,Math.floor((d-_.length)/a)):m-=Math.max(1,Math.floor((_.length-d)*a))}break}}}}return r.push(e),r}function df(e,n){return pf(e,n).join("/* rr_split */")}var vf=1,gf=new RegExp("[^a-z0-9-_:]"),hr=-2;function $s(){return vf++}function mf(e){if(N(e,HTMLFormElement))return"form";var n=_t(e.tagName);return gf.test(n)?"div":n}var $t,Fs,yf=/^[^ \t\n\r\u000c]+/,_f=/^[, \t\n\r\u000c]+/;function bf(e,n){if(n.trim()==="")return n;var i=0;function t(c){var l,f=c.exec(n.substring(i));return f?(l=f[0],i+=l.length,l):""}for(var r=[];t(_f),!(i>=n.length);){var o=t(yf);if(o.slice(-1)===",")o=Ft(e,o.substring(0,o.length-1)),r.push(o);else{var s="";o=Ft(e,o);for(var a=!1;;){var u=n.charAt(i);if(u===""){r.push((o+s).trim());break}else if(a)u===")"&&(a=!1);else if(u===","){i+=1,r.push((o+s).trim());break}else u==="("&&(a=!0);s+=u,i+=1}}}return r.join(", ")}var Us=new WeakMap;function Ft(e,n){return!n||n.trim()===""?n:wi(e,n)}function wf(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function wi(e,n){var i=Us.get(e);if(i||(i=e.createElement("a"),Us.set(e,i)),!n)n="";else if(n.startsWith("blob:")||n.startsWith("data:"))return n;return i.setAttribute("href",n),i.href}function Bs(e,n,i,t){return t&&(i==="src"||i==="href"&&!(n==="use"&&t[0]==="#")||i==="xlink:href"&&t[0]!=="#"||i==="background"&&(n==="table"||n==="td"||n==="th")?Ft(e,t):i==="srcset"?bf(e,t):i==="style"?Kr(t,wi(e)):n==="object"&&i==="data"?Ft(e,t):t)}function zs(e,n,i){return(e==="video"||e==="audio")&&n==="autoplay"}function Sf(e,n,i){try{if(typeof n=="string"){if(e.classList.contains(n))return!0}else for(var t=e.classList.length;t--;){var r=e.classList[t];if(n.test(r))return!0}if(i)return e.matches(i)}catch(o){}return!1}function Xr(e,n,i){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return i?Xr(we.parentNode(e),n,i):!1;for(var t=e.classList.length;t--;){var r=e.classList[t];if(n.test(r))return!0}return i?Xr(we.parentNode(e),n,i):!1}function Ws(e,n,i,t){var r;if(Ts(e)){if(r=e,!we.childNodes(r).length)return!1}else{if(we.parentElement(e)===null)return!1;r=we.parentElement(e)}try{if(typeof n=="string"){if(t){if(r.closest("."+n))return!0}else if(r.classList.contains(n))return!0}else if(Xr(r,n,t))return!0;if(i){if(t){if(r.closest(i))return!0}else if(r.matches(i))return!0}}catch(o){}return!1}function Cf(e,n,i){var t=e.contentWindow;if(t){var r=!1,o;try{o=t.document.readyState}catch(u){return}if(o!=="complete"){var s=setTimeout(function(){r||(n(),r=!0)},i);e.addEventListener("load",function(){clearTimeout(s),r=!0,n()});return}var a="about:blank";if(t.location.href!==a||e.src===a||e.src==="")return setTimeout(n,0),e.addEventListener("load",n);e.addEventListener("load",n)}}function If(e,n,i){var t=!1,r;try{r=e.sheet}catch(s){return}if(!r){var o=setTimeout(function(){t||(n(),t=!0)},i);e.addEventListener("load",function(){clearTimeout(o),t=!0,n()})}}function Ef(e,n){var i=n.doc,t=n.mirror,r=n.blockClass,o=n.blockSelector,s=n.needsMask,a=n.inlineStylesheet,u=n.maskInputOptions,c=u===void 0?{}:u,l=n.maskTextFn,f=n.maskInputFn,p=n.dataURLOptions,g=p===void 0?{}:p,d=n.inlineImages,y=n.recordCanvas,v=n.keepIframeSrcFn,m=n.newlyAddedElement,_=m===void 0?!1:m,w=n.cssCaptured,S=w===void 0?!1:w,C=kf(i,t);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:ge.Document,childNodes:[],compatMode:e.compatMode}:{type:ge.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:ge.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:C};case e.ELEMENT_NODE:return xf(e,{doc:i,blockClass:r,blockSelector:o,inlineStylesheet:a,maskInputOptions:c,maskInputFn:f,dataURLOptions:g,inlineImages:d,recordCanvas:y,keepIframeSrcFn:v,newlyAddedElement:_,rootId:C});case e.TEXT_NODE:return Of(e,{doc:i,needsMask:s,maskTextFn:l,rootId:C,cssCaptured:S});case e.CDATA_SECTION_NODE:return{type:ge.CDATA,textContent:"",rootId:C};case e.COMMENT_NODE:return{type:ge.Comment,textContent:we.textContent(e)||"",rootId:C};default:return!1}}function kf(e,n){if(n.hasNode(e)){var i=n.getId(e);return i===1?void 0:i}}function Of(e,n){var i=n.needsMask,t=n.maskTextFn,r=n.rootId,o=n.cssCaptured,s=we.parentNode(e),a=s&&s.tagName,u="",c=a==="STYLE"?!0:void 0,l=a==="SCRIPT"?!0:void 0;return l?u="SCRIPT_PLACEHOLDER":o||(u=we.textContent(e),c&&u&&(u=Kr(u,wi(n.doc)))),!c&&!l&&u&&i&&(u=t?t(u,we.parentElement(e)):u.replace(/[\S]/g,"*")),{type:ge.Text,textContent:u||"",rootId:r}}function xf(e,n){for(var i=n.doc,t=n.blockClass,r=n.blockSelector,o=n.inlineStylesheet,s=n.maskInputOptions,a=s===void 0?{}:s,u=n.maskInputFn,c=n.dataURLOptions,l=c===void 0?{}:c,f=n.inlineImages,p=n.recordCanvas,g=n.keepIframeSrcFn,d=n.newlyAddedElement,y=d===void 0?!1:d,v=n.rootId,m=Sf(e,t,r),_=mf(e),w={},S=e.attributes.length,C=0;C<S;C++){var O=e.attributes[C];zs(_,O.name,O.value)||(w[O.name]=Bs(i,_,_t(O.name),O.value))}if(_==="link"&&o){var A=Array.from(i.styleSheets).find(function(Te){return Te.href===e.href}),x=null;A&&(x=bi(A)),x&&(delete w.rel,delete w.href,w._cssText=x)}if(_==="style"&&e.sheet){var L=bi(e.sheet);L&&(e.childNodes.length>1&&(L=df(L,e)),w._cssText=L)}if(_==="input"||_==="textarea"||_==="select"){var H=e.value,M=e.checked;w.type!=="radio"&&w.type!=="checkbox"&&w.type!=="submit"&&w.type!=="button"&&H?w.value=Hr({element:e,type:Yr(e),tagName:_,value:H,maskInputOptions:a,maskInputFn:u}):M&&(w.checked=M)}if(_==="option"&&(e.selected&&!a.select?w.selected=!0:delete w.selected),_==="dialog"&&e.open&&(w.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),_==="canvas"&&p){if(e.__context==="2d")af(e)||(w.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){var B=e.toDataURL(l.type,l.quality),K=i.createElement("canvas");K.width=e.width,K.height=e.height;var Oe=K.toDataURL(l.type,l.quality);B!==Oe&&(w.rr_dataURL=B)}}if(_==="img"&&f){$t||($t=i.createElement("canvas"),Fs=$t.getContext("2d"));var J=e,Ae=J.currentSrc||J.getAttribute("src")||"<unknown-src>",Ee=J.crossOrigin,ae=function(){J.removeEventListener("load",ae);try{$t.width=J.naturalWidth,$t.height=J.naturalHeight,Fs.drawImage(J,0,0),w.rr_dataURL=$t.toDataURL(l.type,l.quality)}catch(Te){if(J.crossOrigin!=="anonymous"){J.crossOrigin="anonymous",J.complete&&J.naturalWidth!==0?ae():J.addEventListener("load",ae);return}else console.warn("Cannot inline img src="+Ae+"! Error: "+Te)}J.crossOrigin==="anonymous"&&(Ee?w.crossOrigin=Ee:J.removeAttribute("crossorigin"))};J.complete&&J.naturalWidth!==0?ae():J.addEventListener("load",ae)}if(_==="audio"||_==="video"){var _e=w;_e.rr_mediaState=e.paused?"paused":"played",_e.rr_mediaCurrentTime=e.currentTime,_e.rr_mediaPlaybackRate=e.playbackRate,_e.rr_mediaMuted=e.muted,_e.rr_mediaLoop=e.loop,_e.rr_mediaVolume=e.volume}if(y||(e.scrollLeft&&(w.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(w.rr_scrollTop=e.scrollTop)),m){var Me=e.getBoundingClientRect(),xt=Me.width,Ve=Me.height;w={class:w.class,rr_width:""+xt+"px",rr_height:""+Ve+"px"}}_==="iframe"&&!g(w.src)&&(e.contentDocument||(w.rr_src=w.src),delete w.src);var nr;try{customElements.get(_)&&(nr=!0)}catch(Te){}return{type:ge.Element,tagName:_,attributes:w,childNodes:[],isSVG:wf(e)||void 0,needBlock:m,rootId:v,isCustom:nr}}function ee(e){return e==null?"":e.toLowerCase()}function Rf(e,n){if(n.comment&&e.type===ge.Comment)return!0;if(e.type===ge.Element){if(n.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Ns(e.attributes.href)==="js"))return!0;if(n.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(ee(e.attributes.name).match(/^msapplication-tile(image|color)$/)||ee(e.attributes.name)==="application-name"||ee(e.attributes.rel)==="icon"||ee(e.attributes.rel)==="apple-touch-icon"||ee(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(n.headMetaDescKeywords&&ee(e.attributes.name).match(/^description|keywords$/))return!0;if(n.headMetaSocial&&(ee(e.attributes.property).match(/^(og|twitter|fb):/)||ee(e.attributes.name).match(/^(og|twitter):/)||ee(e.attributes.name)==="pinterest"))return!0;if(n.headMetaRobots&&(ee(e.attributes.name)==="robots"||ee(e.attributes.name)==="googlebot"||ee(e.attributes.name)==="bingbot"))return!0;if(n.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(n.headMetaAuthorship&&(ee(e.attributes.name)==="author"||ee(e.attributes.name)==="generator"||ee(e.attributes.name)==="framework"||ee(e.attributes.name)==="publisher"||ee(e.attributes.name)==="progid"||ee(e.attributes.property).match(/^article:/)||ee(e.attributes.property).match(/^product:/)))return!0;if(n.headMetaVerification&&(ee(e.attributes.name)==="google-site-verification"||ee(e.attributes.name)==="yandex-verification"||ee(e.attributes.name)==="csrf-token"||ee(e.attributes.name)==="p:domain_verify"||ee(e.attributes.name)==="verify-v1"||ee(e.attributes.name)==="verification"||ee(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Ut(e,n){var i=n.doc,t=n.mirror,r=n.blockClass,o=n.blockSelector,s=n.maskTextClass,a=n.maskTextSelector,u=n.skipChild,c=u===void 0?!1:u,l=n.inlineStylesheet,f=l===void 0?!0:l,p=n.maskInputOptions,g=p===void 0?{}:p,d=n.maskTextFn,y=n.maskInputFn,v=n.slimDOMOptions,m=n.dataURLOptions,_=m===void 0?{}:m,w=n.inlineImages,S=w===void 0?!1:w,C=n.recordCanvas,O=C===void 0?!1:C,A=n.onSerialize,x=n.onIframeLoad,L=n.iframeLoadTimeout,H=L===void 0?5e3:L,M=n.onStylesheetLoad,B=n.stylesheetLoadTimeout,K=B===void 0?5e3:B,Oe=n.keepIframeSrcFn,J=Oe===void 0?function(){return!1}:Oe,Ae=n.newlyAddedElement,Ee=Ae===void 0?!1:Ae,ae=n.cssCaptured,_e=ae===void 0?!1:ae,Me=n.needsMask,xt=n.preserveWhiteSpace,Ve=xt===void 0?!0:xt;if(!Me){var nr=Me===void 0;Me=Ws(e,s,a,nr)}var Te=Ef(e,{doc:i,mirror:t,blockClass:r,blockSelector:o,needsMask:Me,inlineStylesheet:f,maskInputOptions:g,maskTextFn:d,maskInputFn:y,dataURLOptions:_,inlineImages:S,recordCanvas:O,keepIframeSrcFn:J,newlyAddedElement:Ee,cssCaptured:_e});if(!Te)return console.warn(e,"not serialized"),null;var Rt;t.hasNode(e)?Rt=t.getId(e):Rf(Te,v)||!Ve&&Te.type===ge.Text&&!Te.textContent.replace(/^\s+|\s+$/gm,"").length?Rt=hr:Rt=$s();var Y=Object.assign(Te,{id:Rt});if(t.add(e,Y),Rt===hr)return null;A&&A(e);var At=!c;if(Y.type===ge.Element){At=At&&!Y.needBlock,delete Y.needBlock;var Mt=we.shadowRoot(e);Mt&&fr(Mt)&&(Y.isShadowHost=!0)}if((Y.type===ge.Document||Y.type===ge.Element)&&At){v.headWhitespace&&Y.type===ge.Element&&Y.tagName==="head"&&(Ve=!1);var ir={doc:i,mirror:t,blockClass:r,blockSelector:o,needsMask:Me,maskTextClass:s,maskTextSelector:a,skipChild:c,inlineStylesheet:f,maskInputOptions:g,maskTextFn:d,maskInputFn:y,slimDOMOptions:v,dataURLOptions:_,inlineImages:S,recordCanvas:O,preserveWhiteSpace:Ve,onSerialize:A,onIframeLoad:x,iframeLoadTimeout:H,onStylesheetLoad:M,stylesheetLoadTimeout:K,keepIframeSrcFn:J,cssCaptured:!1};if(!(Y.type===ge.Element&&Y.tagName==="textarea"&&Y.attributes.value!==void 0)){Y.type===ge.Element&&Y.attributes._cssText!==void 0&&typeof Y.attributes._cssText=="string"&&(ir.cssCaptured=!0);for(var Br=k(Array.from(we.childNodes(e))),zr;!(zr=Br()).done;){var _s=zr.value,pi=Ut(_s,ir);pi&&Y.childNodes.push(pi)}}var yt=null;if(Ts(e)&&(yt=we.shadowRoot(e)))for(var Tt=k(Array.from(we.childNodes(yt))),or;!(or=Tt()).done;){var Wr=or.value,sr=Ut(Wr,ir);sr&&(fr(yt)&&(sr.isShadow=!0),Y.childNodes.push(sr))}}var Pt=we.parentNode(e);return Pt&&lr(Pt)&&fr(Pt)&&(Y.isShadow=!0),Y.type===ge.Element&&Y.tagName==="iframe"&&Cf(e,function(){var tt=e.contentDocument;if(tt&&x){var Lt=Ut(tt,{doc:tt,mirror:t,blockClass:r,blockSelector:o,needsMask:Me,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:g,maskTextFn:d,maskInputFn:y,slimDOMOptions:v,dataURLOptions:_,inlineImages:S,recordCanvas:O,preserveWhiteSpace:Ve,onSerialize:A,onIframeLoad:x,iframeLoadTimeout:H,onStylesheetLoad:M,stylesheetLoadTimeout:K,keepIframeSrcFn:J});Lt&&x(e,Lt)}},H),Y.type===ge.Element&&Y.tagName==="link"&&typeof Y.attributes.rel=="string"&&(Y.attributes.rel==="stylesheet"||Y.attributes.rel==="preload"&&typeof Y.attributes.href=="string"&&Ns(Y.attributes.href)==="css")&&If(e,function(){if(M){var tt=Ut(e,{doc:i,mirror:t,blockClass:r,blockSelector:o,needsMask:Me,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:g,maskTextFn:d,maskInputFn:y,slimDOMOptions:v,dataURLOptions:_,inlineImages:S,recordCanvas:O,preserveWhiteSpace:Ve,onSerialize:A,onIframeLoad:x,iframeLoadTimeout:H,onStylesheetLoad:M,stylesheetLoadTimeout:K,keepIframeSrcFn:J});tt&&M(e,tt)}},K),Y}function Af(e,n){var i=n||{},t=i.mirror,r=t===void 0?new Ls:t,o=i.blockClass,s=o===void 0?"rr-block":o,a=i.blockSelector,u=a===void 0?null:a,c=i.maskTextClass,l=c===void 0?"rr-mask":c,f=i.maskTextSelector,p=f===void 0?null:f,g=i.inlineStylesheet,d=g===void 0?!0:g,y=i.inlineImages,v=y===void 0?!1:y,m=i.recordCanvas,_=m===void 0?!1:m,w=i.maskAllInputs,S=w===void 0?!1:w,C=i.maskTextFn,O=i.maskInputFn,A=i.slimDOM,x=A===void 0?!1:A,L=i.dataURLOptions,H=i.preserveWhiteSpace,M=i.onSerialize,B=i.onIframeLoad,K=i.iframeLoadTimeout,Oe=i.onStylesheetLoad,J=i.stylesheetLoadTimeout,Ae=i.keepIframeSrcFn,Ee=Ae===void 0?function(){return!1}:Ae,ae=S===!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}:S===!1?{password:!0}:S,_e=x===!0||x==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:x==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:x===!1?{}:x;return Ut(e,{doc:e,mirror:r,blockClass:s,blockSelector:u,maskTextClass:l,maskTextSelector:p,skipChild:!1,inlineStylesheet:d,maskInputOptions:ae,maskTextFn:C,maskInputFn:O,slimDOMOptions:_e,dataURLOptions:L,inlineImages:v,recordCanvas:_,preserveWhiteSpace:H,onSerialize:M,onIframeLoad:B,iframeLoadTimeout:K,onStylesheetLoad:Oe,stylesheetLoadTimeout:J,keepIframeSrcFn:Ee,newlyAddedElement:!1})}function Mf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Tf(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var i=function t(){return N(this,t)?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),i}var Si={exports:{}},re=String,qs=function(){return{isColorSupported:!1,reset:re,bold:re,dim:re,italic:re,underline:re,inverse:re,hidden:re,strikethrough:re,black:re,red:re,green:re,yellow:re,blue:re,magenta:re,cyan:re,white:re,gray:re,bgBlack:re,bgRed:re,bgGreen:re,bgYellow:re,bgBlue:re,bgMagenta:re,bgCyan:re,bgWhite:re}};Si.exports=qs(),Si.exports.createColors=qs;var Pf=Si.exports,Lf={},Df=Object.freeze(Object.defineProperty({__proto__:null,default:Lf},Symbol.toStringTag,{value:"Module"})),le=Tf(Df),Gs=Pf,Vs=le,Ci=function(e){be(n,e);function n(t,r,o,s,a,u){var c;return c=e.call(this,t)||this,c.name="CssSyntaxError",c.reason=t,a&&(c.file=a),s&&(c.source=s),u&&(c.plugin=u),typeof r!="undefined"&&typeof o!="undefined"&&(typeof r=="number"?(c.line=r,c.column=o):(c.line=r.line,c.column=r.column,c.endLine=o.line,c.endColumn=o.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,n),c}var i=n.prototype;return i.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},i.showSourceCode=function(r){var o=this;if(!this.source)return"";var s=this.source;r==null&&(r=Gs.isColorSupported),Vs&&r&&(s=Vs(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),l=String(c).length,f,p;if(r){var g=Gs.createColors(!0),d=g.bold,y=g.gray,v=g.red;f=function(m){return d(v(m))},p=function(m){return y(m)}}else f=p=function(m){return m};return a.slice(u,c).map(function(m,_){var w=u+1+_,S=" "+(" "+w).slice(-l)+" | ";if(w===o.line){var C=p(S.replace(/\d/g," "))+m.slice(0,o.column-1).replace(/[^\t]/g," ");return f(">")+p(S)+m+"\n "+C+f("^")}return" "+p(S)+m}).join("\n")},i.toString=function(){var r=this.showSourceCode();return r&&(r="\n\n"+r+"\n"),this.name+": "+this.message+r},n}(Vr(Error)),Ii=Ci;Ci.default=Ci;var nt={};nt.isClean=Symbol("isClean"),nt.my=Symbol("my");var js={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Nf(e){return e[0].toUpperCase()+e.slice(1)}var Ei=function(){function e(i){this.builder=i}var n=e.prototype;return n.atrule=function(t,r){var o="@"+t.name,s=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName!="undefined"?o+=t.raws.afterName:s&&(o+=" "),t.nodes)this.block(t,o+s);else{var a=(t.raws.between||"")+(r?";":"");this.builder(o+s+a,t)}},n.beforeAfter=function(t,r){var o;t.type==="decl"?o=this.raw(t,null,"beforeDecl"):t.type==="comment"?o=this.raw(t,null,"beforeComment"):r==="before"?o=this.raw(t,null,"beforeRule"):o=this.raw(t,null,"beforeClose");for(var s=t.parent,a=0;s&&s.type!=="root";)a+=1,s=s.parent;if(o.includes("\n")){var u=this.raw(t,null,"indent");if(u.length)for(var c=0;c<a;c++)o+=u}return o},n.block=function(t,r){var o=this.raw(t,"between","beforeOpen");this.builder(r+o+"{",t,"start");var s;t.nodes&&t.nodes.length?(this.body(t),s=this.raw(t,"after")):s=this.raw(t,"after","emptyBody"),s&&this.builder(s),this.builder("}",t,"end")},n.body=function(t){for(var r=t.nodes.length-1;r>0&&t.nodes[r].type==="comment";)r-=1;for(var o=this.raw(t,"semicolon"),s=0;s<t.nodes.length;s++){var a=t.nodes[s],u=this.raw(a,"before");u&&this.builder(u),this.stringify(a,r!==s||o)}},n.comment=function(t){var r=this.raw(t,"left","commentLeft"),o=this.raw(t,"right","commentRight");this.builder("/*"+r+t.text+o+"*/",t)},n.decl=function(t,r){var o=this.raw(t,"between","colon"),s=t.prop+o+this.rawValue(t,"value");t.important&&(s+=t.raws.important||" !important"),r&&(s+=";"),this.builder(s,t)},n.document=function(t){this.body(t)},n.raw=function(t,r,o){var s;if(o||(o=r),r&&(s=t.raws[r],typeof s!="undefined"))return s;var a=t.parent;if(o==="before"&&(!a||a.type==="root"&&a.first===t||a&&a.type==="document"))return"";if(!a)return js[o];var u=t.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[o]!="undefined")return u.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(t,o);var c="raw"+Nf(o);return this[c]?s=this[c](u,t):u.walk(function(l){if(s=l.raws[r],typeof s!="undefined")return!1}),typeof s=="undefined"&&(s=js[o]),u.rawCache[o]=s,s},n.rawBeforeClose=function(t){var r;return t.walk(function(o){if(o.nodes&&o.nodes.length>0&&typeof o.raws.after!="undefined")return r=o.raws.after,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(t,r){var o;return t.walkComments(function(s){if(typeof s.raws.before!="undefined")return o=s.raws.before,o.includes("\n")&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(r,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeDecl=function(t,r){var o;return t.walkDecls(function(s){if(typeof s.raws.before!="undefined")return o=s.raws.before,o.includes("\n")&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(r,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeOpen=function(t){var r;return t.walk(function(o){if(o.type!=="decl"&&(r=o.raws.between,typeof r!="undefined"))return!1}),r},n.rawBeforeRule=function(t){var r;return t.walk(function(o){if(o.nodes&&(o.parent!==t||t.first!==o)&&typeof o.raws.before!="undefined")return r=o.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawColon=function(t){var r;return t.walkDecls(function(o){if(typeof o.raws.between!="undefined")return r=o.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(t){var r;return t.walk(function(o){if(o.nodes&&o.nodes.length===0&&(r=o.raws.after,typeof r!="undefined"))return!1}),r},n.rawIndent=function(t){if(t.raws.indent)return t.raws.indent;var r;return t.walk(function(o){var s=o.parent;if(s&&s!==t&&s.parent&&s.parent===t&&typeof o.raws.before!="undefined"){var a=o.raws.before.split("\n");return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r},n.rawSemicolon=function(t){var r;return t.walk(function(o){if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(r=o.raws.semicolon,typeof r!="undefined"))return!1}),r},n.rawValue=function(t,r){var o=t[r],s=t.raws[r];return s&&s.value===o?s.raw:o},n.root=function(t){this.body(t),t.raws.after&&this.builder(t.raws.after)},n.rule=function(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")},n.stringify=function(t,r){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,r)},e}(),Hs=Ei;Ei.default=Ei;var $f=Hs;function ki(e,n){var i=new $f(n);i.stringify(e)}var Zr=ki;ki.default=ki;var Qr=nt.isClean,Ff=nt.my,Uf=Ii,Bf=Hs,zf=Zr;function Oi(e,n){var i=new e.constructor;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t!=="proxyCache"){var r=e[t],o=typeof r=="undefined"?"undefined":z(r);t==="parent"&&o==="object"?n&&(i[t]=n):t==="source"?i[t]=r:Array.isArray(r)?i[t]=r.map(function(s){return Oi(s,i)}):(o==="object"&&r!==null&&(r=Oi(r)),i[t]=r)}return i}var xi=function(){function e(i){i===void 0&&(i={}),this.raws={},this[Qr]=!1,this[Ff]=!0;for(var t in i)if(t==="nodes"){this.nodes=[];for(var r=k(i[t]),o;!(o=r()).done;){var s=o.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[t]=i[t]}var n=e.prototype;return n.addToError=function(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){var r=this.source;t.stack=t.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return t},n.after=function(t){return this.parent.insertAfter(this,t),this},n.assign=function(t){t===void 0&&(t={});for(var r in t)this[r]=t[r];return this},n.before=function(t){return this.parent.insertBefore(this,t),this},n.cleanRaws=function(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between},n.clone=function(t){t===void 0&&(t={});var r=Oi(this);for(var o in t)r[o]=t[o];return r},n.cloneAfter=function(t){t===void 0&&(t={});var r=this.clone(t);return this.parent.insertAfter(this,r),r},n.cloneBefore=function(t){t===void 0&&(t={});var r=this.clone(t);return this.parent.insertBefore(this,r),r},n.error=function(t,r){if(r===void 0&&(r={}),this.source){var o=this.rangeBy(r),s=o.end,a=o.start;return this.source.input.error(t,{column:a.column,line:a.line},{column:s.column,line:s.line},r)}return new Uf(t)},n.getProxyProcessor=function(){return{get:function(r,o){return o==="proxyOf"?r:o==="root"?function(){return r.root().toProxy()}:r[o]},set:function(r,o,s){return r[o]===s||(r[o]=s,(o==="prop"||o==="value"||o==="name"||o==="params"||o==="important"||o==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[Qr]){this[Qr]=!1;for(var t=this;t=t.parent;)t[Qr]=!1}},n.next=function(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t+1]}},n.positionBy=function(t,r){var o=this.source.start;if(t.index)o=this.positionInside(t.index,r);else if(t.word){r=this.toString();var s=r.indexOf(t.word);s!==-1&&(o=this.positionInside(s,r))}return o},n.positionInside=function(t,r){for(var o=r||this.toString(),s=this.source.start.column,a=this.source.start.line,u=0;u<t;u++)o[u]==="\n"?(s=1,a+=1):s+=1;return{column:s,line:a}},n.prev=function(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t-1]}},n.rangeBy=function(t){var r={column:this.source.start.column,line:this.source.start.line},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(t.word){var s=this.toString(),a=s.indexOf(t.word);a!==-1&&(r=this.positionInside(a,s),o=this.positionInside(a+t.word.length,s))}else t.start?r={column:t.start.column,line:t.start.line}:t.index&&(r=this.positionInside(t.index)),t.end?o={column:t.end.column,line:t.end.line}:typeof t.endIndex=="number"?o=this.positionInside(t.endIndex):t.index&&(o=this.positionInside(t.index+1));return(o.line<r.line||o.line===r.line&&o.column<=r.column)&&(o={column:r.column+1,line:r.line}),{end:o,start:r}},n.raw=function(t,r){var o=new Bf;return o.raw(this,t,r)},n.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},n.replaceWith=function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];if(this.parent){for(var s=this,a=!1,u=k(r),c;!(c=u()).done;){var l=c.value;l===this?a=!0:a?(this.parent.insertAfter(s,l),s=l):this.parent.insertBefore(s,l)}a||this.remove()}return this},n.root=function(){for(var t=this;t.parent&&t.parent.type!=="document";)t=t.parent;return t},n.toJSON=function(t,r){var o={},s=r==null;r=r||new Map;var a=0;for(var u in this)if(Object.prototype.hasOwnProperty.call(this,u)&&!(u==="parent"||u==="proxyCache")){var c=this[u];if(Array.isArray(c))o[u]=c.map(function(f){return(typeof f=="undefined"?"undefined":z(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof c=="undefined"?"undefined":z(c))==="object"&&c.toJSON)o[u]=c.toJSON(null,r);else if(u==="source"){var l=r.get(c.input);l==null&&(l=a,r.set(c.input,a),a++),o[u]={end:c.end,inputId:l,start:c.start}}else o[u]=c}return s&&(o.inputs=[].concat(r.keys()).map(function(f){return f.toJSON()})),o},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(t){t===void 0&&(t=zf),t.stringify&&(t=t.stringify);var r="";return t(this,function(o){r+=o}),r},n.warn=function(t,r,o){var s={node:this};for(var a in o)s[a]=o[a];return t.warn(r,s)},me(e,[{key:"proxyOf",get:function(){return this}}]),e}(),en=xi;xi.default=xi;var Wf=en,Ri=function(e){be(n,e);function n(i){var t;return i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=j({},i,{value:String(i.value)})),t=e.call(this,i)||this,t.type="decl",t}return me(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n}(Wf),tn=Ri;Ri.default=Ri;var qf="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Gf=function(e){e===void 0&&(e=21);for(var n="",i=e;i--;)n+=qf[Math.random()*64|0];return n},Vf={nanoid:Gf},Ys=le.SourceMapConsumer,Ks=le.SourceMapGenerator,jf=le.existsSync,Hf=le.readFileSync,Ai=le.dirname,Yf=le.join;function Kf(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var Mi=function(){function e(i,t){if(t.map!==!1){this.loadAnnotation(i),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,o=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Ai(this.mapFile)),o&&(this.text=o)}}var n=e.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new Ys(this.text)),this.consumerCache},n.decodeInline=function(t){var r=/^data:application\/json;charset=utf-?8;base64,/,o=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(s.test(t)||a.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(r.test(t)||o.test(t))return Kf(t.substr(RegExp.lastMatch.length));var u=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},n.getAnnotationURL=function(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(t){return(typeof t=="undefined"?"undefined":z(t))!=="object"?!1:typeof t.mappings=="string"||typeof t._mappings=="string"||Array.isArray(t.sections)},n.loadAnnotation=function(t){var r=t.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var o=t.lastIndexOf(r.pop()),s=t.indexOf("*/",o);o>-1&&s>-1&&(this.annotation=this.getAnnotationURL(t.substring(o,s)))}},n.loadFile=function(t){if(this.root=Ai(t),jf(t))return this.mapFile=t,Hf(t,"utf-8").toString().trim()},n.loadMap=function(t,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){var o=r(t);if(o){var s=this.loadFile(o);if(!s)throw new Error("Unable to load previous source map: "+o.toString());return s}}else{if(N(r,Ys))return Ks.fromSourceMap(r).toString();if(N(r,Ks))return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var a=this.annotation;return t&&(a=Yf(Ai(t),a)),this.loadFile(a)}}},n.startWith=function(t,r){return t?t.substr(0,r.length)===r:!1},n.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),Js=Mi;Mi.default=Mi;var Jf=le.SourceMapConsumer,Xf=le.SourceMapGenerator,Xs=le.fileURLToPath,rn=le.pathToFileURL,Ti=le.isAbsolute,Pi=le.resolve,Zf=Vf.nanoid,Li=le,Zs=Ii,Qf=Js,Di=Symbol("fromOffsetCache"),eh=!!(Jf&&Xf),Qs=!!(Pi&&Ti),nn=function(){function e(i,t){if(t===void 0&&(t={}),i===null||typeof i=="undefined"||(typeof i=="undefined"?"undefined":z(i))==="object"&&!i.toString)throw new Error("PostCSS received "+i+" instead of CSS string");if(this.css=i.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Qs||/^\w+:\/\//.test(t.from)||Ti(t.from)?this.file=t.from:this.file=Pi(t.from)),Qs&&eh){var r=new Qf(this.css,t);if(r.text){this.map=r;var o=r.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+Zf(6)+">"),this.map&&(this.map.file=this.from)}var n=e.prototype;return n.error=function(t,r,o,s){s===void 0&&(s={});var a,u,c;if(r&&(typeof r=="undefined"?"undefined":z(r))==="object"){var l=r,f=o;if(typeof l.offset=="number"){var p=this.fromOffset(l.offset);r=p.line,o=p.col}else r=l.line,o=l.column;if(typeof f.offset=="number"){var g=this.fromOffset(f.offset);u=g.line,c=g.col}else u=f.line,c=f.column}else if(!o){var d=this.fromOffset(r);r=d.line,o=d.col}var y=this.origin(r,o,u,c);return y?a=new Zs(t,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,s.plugin):a=new Zs(t,u===void 0?r:{column:o,line:r},u===void 0?o:{column:c,line:u},this.css,this.file,s.plugin),a.input={column:o,endColumn:c,endLine:u,line:r,source:this.css},this.file&&(rn&&(a.input.url=rn(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(t){var r,o;if(this[Di])o=this[Di];else{var s=this.css.split("\n");o=new Array(s.length);for(var a=0,u=0,c=s.length;u<c;u++)o[u]=a,a+=s[u].length+1;this[Di]=o}r=o[o.length-1];var l=0;if(t>=r)l=o.length-1;else for(var f=o.length-2,p;l<f;)if(p=l+(f-l>>1),t<o[p])f=p-1;else if(t>=o[p+1])l=p+1;else{l=p;break}return{col:t-o[l]+1,line:l+1}},n.mapResolve=function(t){return/^\w+:\/\//.test(t)?t:Pi(this.map.consumer().sourceRoot||this.map.root||".",t)},n.origin=function(t,r,o,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:r,line:t});if(!u.source)return!1;var c;typeof o=="number"&&(c=a.originalPositionFor({column:s,line:o}));var l;Ti(u.source)?l=rn(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||rn(this.map.mapFile));var f={column:u.column,endColumn:c&&c.column,endLine:c&&c.line,line:u.line,url:l.toString()};if(l.protocol==="file:")if(Xs)f.file=Xs(l);else throw new Error("file: protocol is not available in this PostCSS build");var p=a.sourceContentFor(u.source);return p&&(f.source=p),f},n.toJSON=function(){for(var t={},r=0,o=["hasBOM","css","file","id"];r<o.length;r++){var s=o[r];this[s]!=null&&(t[s]=this[s])}return this.map&&(t.map=j({},this.map),t.map.consumerCache&&(t.map.consumerCache=void 0)),t},me(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),on=nn;nn.default=nn,Li&&Li.registerInput&&Li.registerInput(nn);var ea=le.SourceMapConsumer,sn=le.SourceMapGenerator,an=le.dirname,ta=le.relative,ra=le.resolve,na=le.sep,ia=le.pathToFileURL,th=on,rh=!!(ea&&sn),nh=!!(an&&ra&&ta&&na),ih=function(){function e(i,t,r,o){this.stringify=i,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var n=e.prototype;return n.addAnnotation=function(){var t;this.isInline()?t="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?t=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?t=this.mapOpts.annotation(this.opts.to,this.root):t=this.outputFile()+".map";var r="\n";this.css.includes("\r\n")&&(r="\r\n"),this.css+=r+"/*# sourceMappingURL="+t+" */"},n.applyPrevMaps=function(){for(var t=k(this.previous()),r;!(r=t()).done;){var o=r.value,s=this.toUrl(this.path(o.file)),a=o.root||an(o.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new ea(o.text),u.sourcesContent&&(u.sourcesContent=null)):u=o.consumer(),this.map.applySourceMap(u,s,this.toUrl(this.path(a)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var t,r=this.root.nodes.length-1;r>=0;r--)t=this.root.nodes[r],t.type==="comment"&&t.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},n.generate=function(){if(this.clearAnnotation(),nh&&rh&&this.isMap())return this.generateMap();var t="";return this.stringify(this.root,function(r){t+=r}),[t]},n.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=sn.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new sn({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]},n.generateString=function(){var t=this;this.css="",this.map=new sn({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,o=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,c;this.stringify(this.root,function(l,f,p){if(t.css+=l,f&&p!=="end"&&(a.generated.line=r,a.generated.column=o-1,f.source&&f.source.start?(a.source=t.sourcePath(f),a.original.line=f.source.start.line,a.original.column=f.source.start.column-1,t.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,t.map.addMapping(a))),u=l.match(/\n/g),u?(r+=u.length,c=l.lastIndexOf("\n"),o=l.length-c):o+=l.length,f&&p!=="start"){var g=f.parent||{raws:{}},d=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!d||f!==g.last||g.raws.semicolon)&&(f.source&&f.source.end?(a.source=t.sourcePath(f),a.original.line=f.source.end.line,a.original.column=f.source.end.column-1,a.generated.line=r,a.generated.column=o-2,t.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=o-1,t.map.addMapping(a)))}})},n.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(t){return t.annotation}):!0},n.isInline=function(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;var t=this.mapOpts.annotation;return typeof t!="undefined"&&t!==!0?!1:this.previous().length?this.previous().some(function(r){return r.inline}):!0},n.isMap=function(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0},n.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(t){return t.withContent()}):!0},n.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},n.path=function(t){if(this.mapOpts.absolute||t.charCodeAt(0)===60||/^\w+:\/\//.test(t))return t;var r=this.memoizedPaths.get(t);if(r)return r;var o=this.opts.to?an(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(o=an(ra(o,this.mapOpts.annotation)));var s=ta(o,t);return this.memoizedPaths.set(t,s),s},n.previous=function(){var t=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(o){if(o.source&&o.source.input.map){var s=o.source.input.map;t.previousMaps.includes(s)||t.previousMaps.push(s)}});else{var r=new th(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},n.setSourcesContent=function(){var t=this,r={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!r[a]){r[a]=!0;var u=t.usesFileUrls?t.toFileUrl(a):t.toUrl(t.path(a));t.map.setSourceContent(u,s.source.input.css)}}});else if(this.css){var o=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(o,this.css)}},n.sourcePath=function(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))},n.toBase64=function(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))},n.toFileUrl=function(t){var r=this.memoizedFileURLs.get(t);if(r)return r;if(ia){var o=ia(t).toString();return this.memoizedFileURLs.set(t,o),o}else throw new Error("`map.absolute` option is not available in this PostCSS build")},n.toUrl=function(t){var r=this.memoizedURLs.get(t);if(r)return r;na==="\\"&&(t=t.replace(/\\/g,"/"));var o=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,o),o},e}(),oa=ih,oh=en,Ni=function(e){be(n,e);function n(i){var t;return t=e.call(this,i)||this,t.type="comment",t}return n}(oh),un=Ni;Ni.default=Ni;var sa=nt.isClean,aa=nt.my,ua=tn,ca=un,sh=en,la,$i,Fi,fa;function ha(e){return e.map(function(n){return n.nodes&&(n.nodes=ha(n.nodes)),delete n.source,n})}function pa(e){if(e[sa]=!1,e.proxyOf.nodes)for(var n=k(e.proxyOf.nodes),i;!(i=n()).done;){var t=i.value;pa(t)}}var je=function(e){be(n,e);function n(){return e.apply(this,arguments)||this}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];for(var a=k(o),u;!(u=a()).done;)for(var c=u.value,l=this.normalize(c,this.last),f=k(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.push(g)}return this.markDirty(),this},i.cleanRaws=function(r){if(e.prototype.cleanRaws.call(this,r),this.nodes)for(var o=k(this.nodes),s;!(s=o()).done;){var a=s.value;a.cleanRaws(r)}},i.each=function(r){if(this.proxyOf.nodes){for(var o=this.getIterator(),s,a;this.indexes[o]<this.proxyOf.nodes.length&&(s=this.indexes[o],a=r(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[o]+=1;return delete this.indexes[o],a}},i.every=function(r){return this.nodes.every(r)},i.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},i.getProxyProcessor=function(){return{get:function(o,s){return s==="proxyOf"?o:o[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];var l;return(l=o)[s].apply(l,[].concat(u.map(function(f){return typeof f=="function"?function(p,g){return f(p.toProxy(),g)}:f})))}:s==="every"||s==="some"?function(a){return o[s](function(u){for(var c=arguments.length,l=new Array(c>1?c-1:0),f=1;f<c;f++)l[f-1]=arguments[f];return a.apply(void 0,[].concat([u.toProxy()],l))})}:s==="root"?function(){return o.root().toProxy()}:s==="nodes"?o.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?o[s].toProxy():o[s]:o[s]},set:function(o,s,a){return o[s]===a||(o[s]=a,(s==="name"||s==="params"||s==="selector")&&o.markDirty()),!0}}},i.index=function(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))},i.insertAfter=function(r,o){var s=this.index(r),a=this.normalize(o,this.proxyOf.nodes[s]).reverse();s=this.index(r);for(var u=k(a),c;!(c=u()).done;){var l=c.value;this.proxyOf.nodes.splice(s+1,0,l)}var f;for(var p in this.indexes)f=this.indexes[p],s<f&&(this.indexes[p]=f+a.length);return this.markDirty(),this},i.insertBefore=function(r,o){var s=this.index(r),a=s===0?"prepend":!1,u=this.normalize(o,this.proxyOf.nodes[s],a).reverse();s=this.index(r);for(var c=k(u),l;!(l=c()).done;){var f=l.value;this.proxyOf.nodes.splice(s,0,f)}var p;for(var g in this.indexes)p=this.indexes[g],s<=p&&(this.indexes[g]=p+u.length);return this.markDirty(),this},i.normalize=function(r,o){var s=this;if(typeof r=="string")r=ha(la(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=k(r),u;!(u=a()).done;){var c=u.value;c.parent&&c.parent.removeChild(c,"ignore")}}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(var l=k(r),f;!(f=l()).done;){var p=f.value;p.parent&&p.parent.removeChild(p,"ignore")}}else if(r.type)r=[r];else if(r.prop){if(typeof r.value=="undefined")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new ua(r)]}else if(r.selector)r=[new $i(r)];else if(r.name)r=[new Fi(r)];else if(r.text)r=[new ca(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(d){return d[aa]||n.rebuild(d),d=d.proxyOf,d.parent&&d.parent.removeChild(d),d[sa]&&pa(d),typeof d.raws.before=="undefined"&&o&&typeof o.raws.before!="undefined"&&(d.raws.before=o.raws.before.replace(/\S/g,"")),d.parent=s.proxyOf,d});return g},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];o=o.reverse();for(var a=k(o),u;!(u=a()).done;){for(var c=u.value,l=this.normalize(c,this.first,"prepend").reverse(),f=k(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.unshift(g)}for(var d in this.indexes)this.indexes[d]=this.indexes[d]+l.length}return this.markDirty(),this},i.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},i.removeAll=function(){for(var r=k(this.proxyOf.nodes),o;!(o=r()).done;){var s=o.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},i.removeChild=function(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);var o;for(var s in this.indexes)o=this.indexes[s],o>=r&&(this.indexes[s]=o-1);return this.markDirty(),this},i.replaceValues=function(r,o,s){return s||(s=o,o={}),this.walkDecls(function(a){o.props&&!o.props.includes(a.prop)||o.fast&&!a.value.includes(o.fast)||(a.value=a.value.replace(r,s))}),this.markDirty(),this},i.some=function(r){return this.nodes.some(r)},i.walk=function(r){return this.each(function(o,s){var a;try{a=r(o,s)}catch(u){throw o.addToError(u)}return a!==!1&&o.walk&&(a=o.walk(r)),a})},i.walkAtRules=function(r,o){return o?N(r,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&r.test(s.name))return o(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="atrule")return o(s,a)}))},i.walkComments=function(r){return this.walk(function(o,s){if(o.type==="comment")return r(o,s)})},i.walkDecls=function(r,o){return o?N(r,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&r.test(s.prop))return o(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="decl")return o(s,a)}))},i.walkRules=function(r,o){return o?N(r,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&r.test(s.selector))return o(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="rule")return o(s,a)}))},me(n,[{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]}}]),n}(sh);je.registerParse=function(e){la=e},je.registerRule=function(e){$i=e},je.registerAtRule=function(e){Fi=e},je.registerRoot=function(e){fa=e};var bt=je;je.default=je,je.rebuild=function(e){e.type==="atrule"?Object.setPrototypeOf(e,Fi.prototype):e.type==="rule"?Object.setPrototypeOf(e,$i.prototype):e.type==="decl"?Object.setPrototypeOf(e,ua.prototype):e.type==="comment"?Object.setPrototypeOf(e,ca.prototype):e.type==="root"&&Object.setPrototypeOf(e,fa.prototype),e[aa]=!0,e.nodes&&e.nodes.forEach(function(n){je.rebuild(n)})};var ah=bt,da,va,pr=function(e){be(n,e);function n(t){var r;return r=e.call(this,j({type:"document"},t))||this,r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.toResult=function(r){r===void 0&&(r={});var o=new da(new va,this,r);return o.stringify()},n}(ah);pr.registerLazyResult=function(e){da=e},pr.registerProcessor=function(e){va=e};var Ui=pr;pr.default=pr;var ga={},ma=function(n){ga[n]||(ga[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},Bi=function(){function e(i,t){if(t===void 0&&(t={}),this.type="warning",this.text=i,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 o in t)this[o]=t[o]}var n=e.prototype;return n.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}(),ya=Bi;Bi.default=Bi;var uh=ya,zi=function(){function e(i,t,r){this.processor=i,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var n=e.prototype;return n.toString=function(){return this.css},n.warn=function(t,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var o=new uh(t,r);return this.messages.push(o),o},n.warnings=function(){return this.messages.filter(function(t){return t.type==="warning"})},me(e,[{key:"content",get:function(){return this.css}}]),e}(),Wi=zi;zi.default=zi;var qi=39,_a=34,cn=92,ba=47,ln=10,dr=32,fn=12,hn=9,pn=13,ch=91,lh=93,fh=40,hh=41,ph=123,dh=125,vh=59,gh=42,mh=58,yh=64,dn=/[\t\n\f\r "#'()/;[\\\]{}]/g,vn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,_h=/.[\r\n"'(/\\]/,wa=/[\da-f]/i,bh=function(n,i){i===void 0&&(i={});var t=n.css.valueOf(),r=i.ignoreErrors,o,s,a,u,c,l,f,p,g,d,y=t.length,v=0,m=[],_=[];function w(){return v}function S(x){throw n.error("Unclosed "+x,v)}function C(){return _.length===0&&v>=y}function O(x){if(_.length)return _.pop();if(!(v>=y)){var L=x?x.ignoreUnclosed:!1;switch(o=t.charCodeAt(v),o){case ln:case dr:case hn:case pn:case fn:{s=v;do s+=1,o=t.charCodeAt(s);while(o===dr||o===ln||o===hn||o===pn||o===fn);d=["space",t.slice(v,s)],v=s-1;break}case ch:case lh:case ph:case dh:case mh:case vh:case hh:{var H=String.fromCharCode(o);d=[H,H,v];break}case fh:{if(p=m.length?m.pop()[1]:"",g=t.charCodeAt(v+1),p==="url"&&g!==qi&&g!==_a&&g!==dr&&g!==ln&&g!==hn&&g!==fn&&g!==pn){s=v;do{if(l=!1,s=t.indexOf(")",s+1),s===-1)if(r||L){s=v;break}else S("bracket");for(f=s;t.charCodeAt(f-1)===cn;)f-=1,l=!l}while(l);d=["brackets",t.slice(v,s+1),v,s],v=s}else s=t.indexOf(")",v+1),u=t.slice(v,s+1),s===-1||_h.test(u)?d=["(","(",v]:(d=["brackets",u,v,s],v=s);break}case qi:case _a:{a=o===qi?"'":'"',s=v;do{if(l=!1,s=t.indexOf(a,s+1),s===-1)if(r||L){s=v+1;break}else S("string");for(f=s;t.charCodeAt(f-1)===cn;)f-=1,l=!l}while(l);d=["string",t.slice(v,s+1),v,s],v=s;break}case yh:{dn.lastIndex=v+1,dn.test(t),dn.lastIndex===0?s=t.length-1:s=dn.lastIndex-2,d=["at-word",t.slice(v,s+1),v,s],v=s;break}case cn:{for(s=v,c=!0;t.charCodeAt(s+1)===cn;)s+=1,c=!c;if(o=t.charCodeAt(s+1),c&&o!==ba&&o!==dr&&o!==ln&&o!==hn&&o!==pn&&o!==fn&&(s+=1,wa.test(t.charAt(s)))){for(;wa.test(t.charAt(s+1));)s+=1;t.charCodeAt(s+1)===dr&&(s+=1)}d=["word",t.slice(v,s+1),v,s],v=s;break}default:{o===ba&&t.charCodeAt(v+1)===gh?(s=t.indexOf("*/",v+2)+1,s===0&&(r||L?s=t.length:S("comment")),d=["comment",t.slice(v,s+1),v,s],v=s):(vn.lastIndex=v+1,vn.test(t),vn.lastIndex===0?s=t.length-1:s=vn.lastIndex-2,d=["word",t.slice(v,s+1),v,s],m.push(d),v=s);break}}return v++,d}}function A(x){_.push(x)}return{back:A,endOfFile:C,nextToken:O,position:w}},Sa=bt,gn=function(e){be(n,e);function n(t){var r;return r=e.call(this,t)||this,r.type="atrule",r}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=e.prototype.append).call.apply(a,[].concat([this],o))},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=e.prototype.prepend).call.apply(a,[].concat([this],o))},n}(Sa),Gi=gn;gn.default=gn,Sa.registerAtRule(gn);var Ca=bt,Ia,Ea,Bt=function(e){be(n,e);function n(t){var r;return r=e.call(this,t)||this,r.type="root",r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.normalize=function(r,o,s){var a=e.prototype.normalize.call(this,r);if(o){if(s==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(var u=k(a),c;!(c=u()).done;){var l=c.value;l.raws.before=o.raws.before}}return a},i.removeChild=function(r,o){var s=this.index(r);return!o&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),e.prototype.removeChild.call(this,r)},i.toResult=function(r){r===void 0&&(r={});var o=new Ia(new Ea,this,r);return o.stringify()},n}(Ca);Bt.registerLazyResult=function(e){Ia=e},Bt.registerProcessor=function(e){Ea=e};var vr=Bt;Bt.default=Bt,Ca.registerRoot(Bt);var gr={comma:function(n){return gr.split(n,[","],!0)},space:function(n){var i=[" ","\n"," "];return gr.split(n,i)},split:function(n,i,t){for(var r=[],o="",s=!1,a=0,u=!1,c="",l=!1,f=k(n),p;!(p=f()).done;){var g=p.value;l?l=!1:g==="\\"?l=!0:u?g===c&&(u=!1):g==='"'||g==="'"?(u=!0,c=g):g==="("?a+=1:g===")"?a>0&&(a-=1):a===0&&i.includes(g)&&(s=!0),s?(o!==""&&r.push(o.trim()),o="",s=!1):o+=g}return(t||o!=="")&&r.push(o.trim()),r}},ka=gr;gr.default=gr;var Oa=bt,wh=ka,mn=function(e){be(n,e);function n(i){var t;return t=e.call(this,i)||this,t.type="rule",t.nodes||(t.nodes=[]),t}return me(n,[{key:"selectors",get:function(){return wh.comma(this.selector)},set:function(t){var r=this.selector?this.selector.match(/,\s*/):null,o=r?r[0]:","+this.raw("between","beforeOpen");this.selector=t.join(o)}}]),n}(Oa),Vi=mn;mn.default=mn,Oa.registerRule(mn);var Sh=tn,Ch=bh,Ih=un,Eh=Gi,kh=vr,xa=Vi,Ra={empty:!0,space:!0};function Oh(e){for(var n=e.length-1;n>=0;n--){var i=e[n],t=i[3]||i[2];if(t)return t}}var xh=function(){function e(i){this.input=i,this.root=new kh,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}var n=e.prototype;return n.atrule=function(t){var r=new Eh;r.name=t[1].slice(1),r.name===""&&this.unnamedAtrule(r,t),this.init(r,t[2]);for(var o,s,a,u=!1,c=!1,l=[],f=[];!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),o=t[0],o==="("||o==="["?f.push(o==="("?")":"]"):o==="{"&&f.length>0?f.push("}"):o===f[f.length-1]&&f.pop(),f.length===0)if(o===";"){r.source.end=this.getPosition(t[2]),r.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){c=!0;break}else if(o==="}"){if(l.length>0){for(a=l.length-1,s=l[a];s&&s[0]==="space";)s=l[--a];s&&(r.source.end=this.getPosition(s[3]||s[2]),r.source.end.offset++)}this.end(t);break}else l.push(t);else l.push(t);if(this.tokenizer.endOfFile()){u=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(r.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(r,"params",l),u&&(t=l[l.length-1],r.source.end=this.getPosition(t[3]||t[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),c&&(r.nodes=[],this.current=r)},n.checkMissedSemicolon=function(t){var r=this.colon(t);if(r!==!1){for(var o=0,s,a=r-1;a>=0&&(s=t[a],!(s[0]!=="space"&&(o+=1,o===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},n.colon=function(t){for(var r=0,o,s,a,u=k(t.entries()),c;!(c=u()).done;){var l=c.value,f=l[0],p=l[1];if(o=p,s=o[0],s==="("&&(r+=1),s===")"&&(r-=1),r===0&&s===":")if(!a)this.doubleColon(o);else{if(a[0]==="word"&&a[1]==="progid")continue;return f}a=o}return!1},n.comment=function(t){var r=new Ih;this.init(r,t[2]),r.source.end=this.getPosition(t[3]||t[2]),r.source.end.offset++;var o=t[1].slice(2,-2);if(/^\s*$/.test(o))r.text="",r.raws.left=o,r.raws.right="";else{var s=o.match(/^(\s*)([^]*\S)(\s*)$/);r.text=s[2],r.raws.left=s[1],r.raws.right=s[3]}},n.createTokenizer=function(){this.tokenizer=Ch(this.input)},n.decl=function(t,r){var o=new Sh;this.init(o,t[0][2]);var s=t[t.length-1];for(s[0]===";"&&(this.semicolon=!0,t.pop()),o.source.end=this.getPosition(s[3]||s[2]||Oh(t)),o.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),o.raws.before+=t.shift()[1];for(o.source.start=this.getPosition(t[0][2]),o.prop="";t.length;){var a=t[0][0];if(a===":"||a==="space"||a==="comment")break;o.prop+=t.shift()[1]}o.raws.between="";for(var u;t.length;)if(u=t.shift(),u[0]===":"){o.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),o.raws.between+=u[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));for(var c=[],l;t.length&&(l=t[0][0],!(l!=="space"&&l!=="comment"));)c.push(t.shift());this.precheckMissedSemicolon(t);for(var f=t.length-1;f>=0;f--){if(u=t[f],u[1].toLowerCase()==="!important"){o.important=!0;var p=this.stringFrom(t,f);p=this.spacesFromEnd(t)+p,p!==" !important"&&(o.raws.important=p);break}else if(u[1].toLowerCase()==="important"){for(var g=t.slice(0),d="",y=f;y>0;y--){var v=g[y][0];if(d.trim().indexOf("!")===0&&v!=="space")break;d=g.pop()[1]+d}d.trim().indexOf("!")===0&&(o.important=!0,o.raws.important=d,t=g)}if(u[0]!=="space"&&u[0]!=="comment")break}var m=t.some(function(_){return _[0]!=="space"&&_[0]!=="comment"});m&&(o.raws.between+=c.map(function(_){return _[1]}).join(""),c=[]),this.raw(o,"value",c.concat(t),r),o.value.includes(":")&&!r&&this.checkMissedSemicolon(t)},n.doubleColon=function(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})},n.emptyRule=function(t){var r=new xa;this.init(r,t[2]),r.selector="",r.raws.between="",this.current=r},n.end=function(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)},n.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())},n.freeSemicolon=function(t){if(this.spaces+=t[1],this.current.nodes){var r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="")}},n.getPosition=function(t){var r=this.input.fromOffset(t);return{column:r.col,line:r.line,offset:t}},n.init=function(t,r){this.current.push(t),t.source={input:this.input,start:this.getPosition(r)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)},n.other=function(t){for(var r=!1,o=null,s=!1,a=null,u=[],c=t[1].startsWith("--"),l=[],f=t;f;){if(o=f[0],l.push(f),o==="("||o==="[")a||(a=f),u.push(o==="("?")":"]");else if(c&&s&&o==="{")a||(a=f),u.push("}");else if(u.length===0)if(o===";")if(s){this.decl(l,c);return}else break;else if(o==="{"){this.rule(l);return}else if(o==="}"){this.tokenizer.back(l.pop()),r=!0;break}else o===":"&&(s=!0);else o===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),u.length>0&&this.unclosedBracket(a),r&&s){if(!c)for(;l.length&&(f=l[l.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,c)}else this.unknownWord(l)},n.parse=function(){for(var t;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()},n.precheckMissedSemicolon=function(){},n.raw=function(t,r,o,s){for(var a,u,c=o.length,l="",f=!0,p,g,d=0;d<c;d+=1)a=o[d],u=a[0],u==="space"&&d===c-1&&!s?f=!1:u==="comment"?(g=o[d-1]?o[d-1][0]:"empty",p=o[d+1]?o[d+1][0]:"empty",!Ra[g]&&!Ra[p]?l.slice(-1)===","?f=!1:l+=a[1]:f=!1):l+=a[1];if(!f){var y=o.reduce(function(v,m){return v+m[1]},"");t.raws[r]={raw:y,value:l}}t[r]=l},n.rule=function(t){t.pop();var r=new xa;this.init(r,t[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(r,"selector",t),this.current=r},n.spacesAndCommentsFromEnd=function(t){for(var r,o="";t.length&&(r=t[t.length-1][0],!(r!=="space"&&r!=="comment"));)o=t.pop()[1]+o;return o},n.spacesAndCommentsFromStart=function(t){for(var r,o="";t.length&&(r=t[0][0],!(r!=="space"&&r!=="comment"));)o+=t.shift()[1];return o},n.spacesFromEnd=function(t){for(var r,o="";t.length&&(r=t[t.length-1][0],r==="space");)o=t.pop()[1]+o;return o},n.stringFrom=function(t,r){for(var o="",s=r;s<t.length;s++)o+=t[s][1];return t.splice(r,t.length-r),o},n.unclosedBlock=function(){var t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)},n.unclosedBracket=function(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})},n.unexpectedClose=function(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})},n.unknownWord=function(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})},n.unnamedAtrule=function(t,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},e}(),Rh=xh,Ah=bt,Mh=Rh,Th=on;function yn(e,n){var i=new Th(e,n),t=new Mh(i);try{t.parse()}catch(r){throw process.env.NODE_ENV!=="production"&&r.name==="CssSyntaxError"&&n&&n.from&&(/\.scss$/i.test(n.from)?r.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(n.from)?r.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(n.from)&&(r.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),r}return t.root}var ji=yn;yn.default=yn,Ah.registerParse(yn);var Ue=nt.isClean,Ph=nt.my,Lh=oa,Dh=Zr,Nh=bt,$h=Ui,Fh=ma,Aa=Wi,Uh=ji,Bh=vr,zh={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Wh={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},qh={Once:!0,postcssPlugin:!0,prepare:!0},zt=0;function mr(e){return(typeof e=="undefined"?"undefined":z(e))==="object"&&typeof e.then=="function"}function Ma(e){var n=!1,i=zh[e.type];return e.type==="decl"?n=e.prop.toLowerCase():e.type==="atrule"&&(n=e.name.toLowerCase()),n&&e.append?[i,i+"-"+n,zt,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:e.append?[i,zt,i+"Exit"]:[i,i+"Exit"]}function Ta(e){var n;return e.type==="document"?n=["Document",zt,"DocumentExit"]:e.type==="root"?n=["Root",zt,"RootExit"]:n=Ma(e),{eventIndex:0,events:n,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Hi(e){return e[Ue]=!1,e.nodes&&e.nodes.forEach(function(n){return Hi(n)}),e}var Yi={},Wt=function(){function e(i,t,r){var o=this;this.stringified=!1,this.processed=!1;var s;if((typeof t=="undefined"?"undefined":z(t))==="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=Hi(t);else if(N(t,e)||N(t,Aa))s=Hi(t.root),t.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{var a=Uh;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{s=a(t,r)}catch(u){this.processed=!0,this.error=u}s&&!s[Ph]&&Nh.rebuild(s)}this.result=new Aa(i,s,r),this.helpers=j({},Yi,{postcss:Yi,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":z(u))==="object"&&u.prepare?j({},u,u.prepare(o.result)):u})}var n=e.prototype;return n.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},n.catch=function(t){return this.async().catch(t)},n.finally=function(t){return this.async().then(t,t)},n.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},n.handleError=function(t,r){var o=this.result.lastPlugin;try{if(r&&r.addToError(t),this.error=t,t.name==="CssSyntaxError"&&!t.plugin)t.plugin=o.postcssPlugin,t.setMessage();else if(o.postcssVersion&&process.env.NODE_ENV!=="production"){var s=o.postcssPlugin,a=o.postcssVersion,u=this.result.processor.version,c=a.split("."),l=u.split(".");(c[0]!==l[0]||parseInt(c[1])>parseInt(l[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+u+", but "+s+" uses "+a+". Perhaps this is the source of the error below.")}}catch(f){console&&console.error&&console.error(f)}return t},n.prepareVisitors=function(){var t=this;this.listeners={};for(var r=function(l,f,p){t.listeners[f]||(t.listeners[f]=[]),t.listeners[f].push([l,p])},o=k(this.plugins),s;!(s=o()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":z(a))==="object")for(var u in a){if(!Wh[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!qh[u])if(z(a[u])==="object")for(var c in a[u])c==="*"?r(a,u,a[u][c]):r(a,u+"-"+c.toLowerCase(),a[u][c]);else typeof a[u]=="function"&&r(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},n.runAsync=function(){var t=this;return vi(function(){var r,o,s,a,u,c,l,f,p,g,d,y;return cr(this,function(v){switch(v.label){case 0:t.plugin=0,r=0,v.label=1;case 1:if(!(r<t.plugins.length))return[3,6];if(o=t.plugins[r],s=t.runOnRoot(o),!mr(s))return[3,5];v.label=2;case 2:return v.trys.push([2,4,,5]),[4,s];case 3:return v.sent(),[3,5];case 4:throw a=v.sent(),t.handleError(a);case 5:return r++,[3,1];case 6:if(t.prepareVisitors(),!t.hasListener)return[3,18];u=t.result.root,v.label=7;case 7:if(u[Ue])return[3,14];u[Ue]=!0,c=[Ta(u)],v.label=8;case 8:if(!(c.length>0))return[3,13];if(l=t.visitTick(c),!mr(l))return[3,12];v.label=9;case 9:return v.trys.push([9,11,,12]),[4,l];case 10:return v.sent(),[3,12];case 11:throw f=v.sent(),p=c[c.length-1].node,t.handleError(f,p);case 12:return[3,8];case 13:return[3,7];case 14:if(!t.listeners.OnceExit)return[3,18];g=function(){var m,_,w,S,C;return cr(this,function(O){switch(O.label){case 0:m=y.value,_=m[0],w=m[1],t.result.lastPlugin=_,O.label=1;case 1:return O.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(S=u.nodes.map(function(A){return w(A,t.helpers)}),[4,Promise.all(S)]);case 2:return O.sent(),[3,5];case 3:return[4,w(u,t.helpers)];case 4:O.sent(),O.label=5;case 5:return[3,7];case 6:throw C=O.sent(),t.handleError(C);case 7:return[2]}})},d=k(t.listeners.OnceExit),v.label=15;case 15:return(y=d()).done?[3,18]:[5,ks(g())];case 16:v.sent(),v.label=17;case 17:return[3,15];case 18:return t.processed=!0,[2,t.stringify()]}})})()},n.runOnRoot=function(t){var r=this;this.result.lastPlugin=t;try{if((typeof t=="undefined"?"undefined":z(t))==="object"&&t.Once){if(this.result.root.type==="document"){var o=this.result.root.nodes.map(function(s){return t.Once(s,r.helpers)});return mr(o[0])?Promise.all(o):o}return t.Once(this.result.root,this.helpers)}else if(typeof t=="function")return t(this.result.root,this.result)}catch(s){throw this.handleError(s)}},n.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var t=this.result.opts,r=Dh;t.syntax&&(r=t.syntax.stringify),t.stringifier&&(r=t.stringifier),r.stringify&&(r=r.stringify);var o=new Lh(r,this.result.root,this.result.opts),s=o.generate();return this.result.css=s[0],this.result.map=s[1],this.result},n.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 t=k(this.plugins),r;!(r=t()).done;){var o=r.value,s=this.runOnRoot(o);if(mr(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Ue];)a[Ue]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=k(a.nodes),c;!(c=u()).done;){var l=c.value;this.visitSync(this.listeners.OnceExit,l)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},n.then=function(t,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||Fh("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,r)},n.toString=function(){return this.css},n.visitSync=function(t,r){for(var o=k(t),s;!(s=o()).done;){var a=s.value,u=a[0],c=a[1];this.result.lastPlugin=u;var l=void 0;try{l=c(r,this.helpers)}catch(f){throw this.handleError(f,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(mr(l))throw this.getAsyncError()}},n.visitTick=function(t){var r=t[t.length-1],o=r.node,s=r.visitors;if(o.type!=="root"&&o.type!=="document"&&!o.parent){t.pop();return}if(s.length>0&&r.visitorIndex<s.length){var a=s[r.visitorIndex],u=a[0],c=a[1];r.visitorIndex+=1,r.visitorIndex===s.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=u;try{return c(o.toProxy(),this.helpers)}catch(d){throw this.handleError(d,o)}}if(r.iterator!==0){for(var l=r.iterator,f;f=o.nodes[o.indexes[l]];)if(o.indexes[l]+=1,!f[Ue]){f[Ue]=!0,t.push(Ta(f));return}r.iterator=0,delete o.indexes[l]}for(var p=r.events;r.eventIndex<p.length;){var g=p[r.eventIndex];if(r.eventIndex+=1,g===zt){o.nodes&&o.nodes.length&&(o[Ue]=!0,r.iterator=o.getIterator());return}else if(this.listeners[g]){r.visitors=this.listeners[g];return}}t.pop()},n.walkSync=function(t){var r=this;t[Ue]=!0;for(var o=Ma(t),s=k(o),a;!(a=s()).done;){var u=a.value;if(u===zt)t.nodes&&t.each(function(l){l[Ue]||r.walkSync(l)});else{var c=this.listeners[u];if(c&&this.visitSync(c,t.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},me(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}();Wt.registerPostcss=function(e){Yi=e};var Pa=Wt;Wt.default=Wt,Bh.registerLazyResult(Wt),$h.registerLazyResult(Wt);var Gh=oa,Vh=Zr,jh=ma,Hh=ji,Yh=Wi,Ki=function(){function e(i,t,r){t=t.toString(),this.stringified=!1,this._processor=i,this._css=t,this._opts=r,this._map=void 0;var o,s=Vh;this.result=new Yh(this._processor,o,this._opts),this.result.css=t;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new Gh(s,o,this._opts,t);if(u.isMap()){var c=u.generate(),l=c[0],f=c[1];l&&(this.result.css=l),f&&(this.result.map=f)}else u.clearAnnotation(),this.result.css=u.css}var n=e.prototype;return n.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},n.catch=function(t){return this.async().catch(t)},n.finally=function(t){return this.async().then(t,t)},n.sync=function(){if(this.error)throw this.error;return this.result},n.then=function(t,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||jh("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,r)},n.toString=function(){return this._css},n.warnings=function(){return[]},me(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 t,r=Hh;try{t=r(this._css,this._opts)}catch(o){this.error=o}if(this.error)throw this.error;return this._root=t,t}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Kh=Ki;Ki.default=Ki;var Jh=Kh,Xh=Pa,Zh=Ui,Qh=vr,yr=function(){function e(i){i===void 0&&(i=[]),this.version="8.4.38",this.plugins=this.normalize(i)}var n=e.prototype;return n.normalize=function(t){for(var r=[],o=k(t),s;!(s=o()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":z(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":z(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":z(a))==="object"&&(a.parse||a.stringify)){if(process.env.NODE_ENV!=="production")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.")}else throw new Error(a+" is not a PostCSS plugin")}return r},n.process=function(t,r){return r===void 0&&(r={}),!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new Jh(this,t,r):new Xh(this,t,r)},n.use=function(t){return this.plugins=this.plugins.concat(this.normalize([t])),this},e}(),ep=yr;yr.default=yr,Qh.registerProcessor(yr),Zh.registerProcessor(yr);var tp=tn,rp=Js,np=un,ip=Gi,op=on,sp=vr,ap=Vi;function _r(e,n){if(Array.isArray(e))return e.map(function(f){return _r(f)});var i=e.inputs,t=ar(e,["inputs"]);if(i){n=[];for(var r=k(i),o;!(o=r()).done;){var s=o.value,a=j({},s,{__proto__:op.prototype});a.map&&(a.map=j({},a.map,{__proto__:rp.prototype})),n.push(a)}}if(t.nodes&&(t.nodes=e.nodes.map(function(f){return _r(f,n)})),t.source){var u=t.source,c=u.inputId,l=ar(u,["inputId"]);t.source=l,c!=null&&(t.source.input=n[c])}if(t.type==="root")return new sp(t);if(t.type==="decl")return new tp(t);if(t.type==="rule")return new ap(t);if(t.type==="comment")return new np(t);if(t.type==="atrule")return new ip(t);throw new Error("Unknown node type: "+e.type)}var up=_r;_r.default=_r;var cp=Ii,La=tn,lp=Pa,fp=bt,Ji=ep,hp=Zr,pp=up,Da=Ui,dp=ya,Na=un,$a=Gi,vp=Wi,gp=on,mp=ji,yp=ka,Fa=Vi,Ua=vr,_p=en;function X(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new Ji(n)}X.plugin=function(n,i){var t=!1;function r(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];console&&console.warn&&!t&&(t=!0,console.warn(n+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(n+": \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:\nhttps://www.w3ctech.com/topic/2226"));var c=i.apply(void 0,[].concat(a));return c.postcssPlugin=n,c.postcssVersion=new Ji().version,c}var o;return Object.defineProperty(r,"postcss",{get:function(){return o||(o=r()),o}}),r.process=function(s,a,u){return X([r(u)]).process(s,a)},r},X.stringify=hp,X.parse=mp,X.fromJSON=pp,X.list=yp,X.comment=function(e){return new Na(e)},X.atRule=function(e){return new $a(e)},X.decl=function(e){return new La(e)},X.rule=function(e){return new Fa(e)},X.root=function(e){return new Ua(e)},X.document=function(e){return new Da(e)},X.CssSyntaxError=cp,X.Declaration=La,X.Container=fp,X.Processor=Ji,X.Document=Da,X.Comment=Na,X.Warning=dp,X.AtRule=$a,X.Result=vp,X.Input=gp,X.Rule=Fa,X.Root=Ua,X.Node=_p,lp.registerPostcss(X);var bp=X;X.default=X;var oe=Mf(bp);oe.stringify,oe.fromJSON,oe.plugin,oe.parse,oe.list,oe.document,oe.comment,oe.atRule,oe.rule,oe.decl,oe.root,oe.CssSyntaxError,oe.Declaration,oe.Container,oe.Processor,oe.Document,oe.Comment,oe.Warning,oe.AtRule,oe.Result,oe.Input,oe.Rule,oe.Root,oe.Node;var wp=Object.defineProperty,Sp=function(e,n,i){return n in e?wp(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i},Pe=function(e,n,i){return Sp(e,(typeof n=="undefined"?"undefined":z(n))!=="symbol"?n+"":n,i)};function Cp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ip(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var i=function t(){return N(this,t)?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),i}var Xi={exports:{}},ne=String,Ba=function(){return{isColorSupported:!1,reset:ne,bold:ne,dim:ne,italic:ne,underline:ne,inverse:ne,hidden:ne,strikethrough:ne,black:ne,red:ne,green:ne,yellow:ne,blue:ne,magenta:ne,cyan:ne,white:ne,gray:ne,bgBlack:ne,bgRed:ne,bgGreen:ne,bgYellow:ne,bgBlue:ne,bgMagenta:ne,bgCyan:ne,bgWhite:ne}};Xi.exports=Ba(),Xi.exports.createColors=Ba;var Ep=Xi.exports,kp={},Op=Object.freeze(Object.defineProperty({__proto__:null,default:kp},Symbol.toStringTag,{value:"Module"})),fe=Ip(Op),za=Ep,Wa=fe,Zi=function(e){be(n,e);function n(t,r,o,s,a,u){var c;return c=e.call(this,t)||this,c.name="CssSyntaxError",c.reason=t,a&&(c.file=a),s&&(c.source=s),u&&(c.plugin=u),typeof r!="undefined"&&typeof o!="undefined"&&(typeof r=="number"?(c.line=r,c.column=o):(c.line=r.line,c.column=r.column,c.endLine=o.line,c.endColumn=o.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,n),c}var i=n.prototype;return i.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},i.showSourceCode=function(r){var o=this;if(!this.source)return"";var s=this.source;r==null&&(r=za.isColorSupported),Wa&&r&&(s=Wa(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),l=String(c).length,f,p;if(r){var g=za.createColors(!0),d=g.bold,y=g.gray,v=g.red;f=function(m){return d(v(m))},p=function(m){return y(m)}}else f=p=function(m){return m};return a.slice(u,c).map(function(m,_){var w=u+1+_,S=" "+(" "+w).slice(-l)+" | ";if(w===o.line){var C=p(S.replace(/\d/g," "))+m.slice(0,o.column-1).replace(/[^\t]/g," ");return f(">")+p(S)+m+"\n "+C+f("^")}return" "+p(S)+m}).join("\n")},i.toString=function(){var r=this.showSourceCode();return r&&(r="\n\n"+r+"\n"),this.name+": "+this.message+r},n}(Vr(Error)),Qi=Zi;Zi.default=Zi;var it={};it.isClean=Symbol("isClean"),it.my=Symbol("my");var qa={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function xp(e){return e[0].toUpperCase()+e.slice(1)}var eo=function(){function e(i){this.builder=i}var n=e.prototype;return n.atrule=function(t,r){var o="@"+t.name,s=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName!="undefined"?o+=t.raws.afterName:s&&(o+=" "),t.nodes)this.block(t,o+s);else{var a=(t.raws.between||"")+(r?";":"");this.builder(o+s+a,t)}},n.beforeAfter=function(t,r){var o;t.type==="decl"?o=this.raw(t,null,"beforeDecl"):t.type==="comment"?o=this.raw(t,null,"beforeComment"):r==="before"?o=this.raw(t,null,"beforeRule"):o=this.raw(t,null,"beforeClose");for(var s=t.parent,a=0;s&&s.type!=="root";)a+=1,s=s.parent;if(o.includes("\n")){var u=this.raw(t,null,"indent");if(u.length)for(var c=0;c<a;c++)o+=u}return o},n.block=function(t,r){var o=this.raw(t,"between","beforeOpen");this.builder(r+o+"{",t,"start");var s;t.nodes&&t.nodes.length?(this.body(t),s=this.raw(t,"after")):s=this.raw(t,"after","emptyBody"),s&&this.builder(s),this.builder("}",t,"end")},n.body=function(t){for(var r=t.nodes.length-1;r>0&&t.nodes[r].type==="comment";)r-=1;for(var o=this.raw(t,"semicolon"),s=0;s<t.nodes.length;s++){var a=t.nodes[s],u=this.raw(a,"before");u&&this.builder(u),this.stringify(a,r!==s||o)}},n.comment=function(t){var r=this.raw(t,"left","commentLeft"),o=this.raw(t,"right","commentRight");this.builder("/*"+r+t.text+o+"*/",t)},n.decl=function(t,r){var o=this.raw(t,"between","colon"),s=t.prop+o+this.rawValue(t,"value");t.important&&(s+=t.raws.important||" !important"),r&&(s+=";"),this.builder(s,t)},n.document=function(t){this.body(t)},n.raw=function(t,r,o){var s;if(o||(o=r),r&&(s=t.raws[r],typeof s!="undefined"))return s;var a=t.parent;if(o==="before"&&(!a||a.type==="root"&&a.first===t||a&&a.type==="document"))return"";if(!a)return qa[o];var u=t.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[o]!="undefined")return u.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(t,o);var c="raw"+xp(o);return this[c]?s=this[c](u,t):u.walk(function(l){if(s=l.raws[r],typeof s!="undefined")return!1}),typeof s=="undefined"&&(s=qa[o]),u.rawCache[o]=s,s},n.rawBeforeClose=function(t){var r;return t.walk(function(o){if(o.nodes&&o.nodes.length>0&&typeof o.raws.after!="undefined")return r=o.raws.after,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(t,r){var o;return t.walkComments(function(s){if(typeof s.raws.before!="undefined")return o=s.raws.before,o.includes("\n")&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(r,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeDecl=function(t,r){var o;return t.walkDecls(function(s){if(typeof s.raws.before!="undefined")return o=s.raws.before,o.includes("\n")&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(r,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeOpen=function(t){var r;return t.walk(function(o){if(o.type!=="decl"&&(r=o.raws.between,typeof r!="undefined"))return!1}),r},n.rawBeforeRule=function(t){var r;return t.walk(function(o){if(o.nodes&&(o.parent!==t||t.first!==o)&&typeof o.raws.before!="undefined")return r=o.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawColon=function(t){var r;return t.walkDecls(function(o){if(typeof o.raws.between!="undefined")return r=o.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(t){var r;return t.walk(function(o){if(o.nodes&&o.nodes.length===0&&(r=o.raws.after,typeof r!="undefined"))return!1}),r},n.rawIndent=function(t){if(t.raws.indent)return t.raws.indent;var r;return t.walk(function(o){var s=o.parent;if(s&&s!==t&&s.parent&&s.parent===t&&typeof o.raws.before!="undefined"){var a=o.raws.before.split("\n");return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r},n.rawSemicolon=function(t){var r;return t.walk(function(o){if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(r=o.raws.semicolon,typeof r!="undefined"))return!1}),r},n.rawValue=function(t,r){var o=t[r],s=t.raws[r];return s&&s.value===o?s.raw:o},n.root=function(t){this.body(t),t.raws.after&&this.builder(t.raws.after)},n.rule=function(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")},n.stringify=function(t,r){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,r)},e}(),Ga=eo;eo.default=eo;var Rp=Ga;function to(e,n){var i=new Rp(n);i.stringify(e)}var _n=to;to.default=to;var bn=it.isClean,Ap=it.my,Mp=Qi,Tp=Ga,Pp=_n;function ro(e,n){var i=new e.constructor;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t!=="proxyCache"){var r=e[t],o=typeof r=="undefined"?"undefined":z(r);t==="parent"&&o==="object"?n&&(i[t]=n):t==="source"?i[t]=r:Array.isArray(r)?i[t]=r.map(function(s){return ro(s,i)}):(o==="object"&&r!==null&&(r=ro(r)),i[t]=r)}return i}var no=function(){function e(i){i===void 0&&(i={}),this.raws={},this[bn]=!1,this[Ap]=!0;for(var t in i)if(t==="nodes"){this.nodes=[];for(var r=k(i[t]),o;!(o=r()).done;){var s=o.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[t]=i[t]}var n=e.prototype;return n.addToError=function(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){var r=this.source;t.stack=t.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return t},n.after=function(t){return this.parent.insertAfter(this,t),this},n.assign=function(t){t===void 0&&(t={});for(var r in t)this[r]=t[r];return this},n.before=function(t){return this.parent.insertBefore(this,t),this},n.cleanRaws=function(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between},n.clone=function(t){t===void 0&&(t={});var r=ro(this);for(var o in t)r[o]=t[o];return r},n.cloneAfter=function(t){t===void 0&&(t={});var r=this.clone(t);return this.parent.insertAfter(this,r),r},n.cloneBefore=function(t){t===void 0&&(t={});var r=this.clone(t);return this.parent.insertBefore(this,r),r},n.error=function(t,r){if(r===void 0&&(r={}),this.source){var o=this.rangeBy(r),s=o.end,a=o.start;return this.source.input.error(t,{column:a.column,line:a.line},{column:s.column,line:s.line},r)}return new Mp(t)},n.getProxyProcessor=function(){return{get:function(r,o){return o==="proxyOf"?r:o==="root"?function(){return r.root().toProxy()}:r[o]},set:function(r,o,s){return r[o]===s||(r[o]=s,(o==="prop"||o==="value"||o==="name"||o==="params"||o==="important"||o==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[bn]){this[bn]=!1;for(var t=this;t=t.parent;)t[bn]=!1}},n.next=function(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t+1]}},n.positionBy=function(t,r){var o=this.source.start;if(t.index)o=this.positionInside(t.index,r);else if(t.word){r=this.toString();var s=r.indexOf(t.word);s!==-1&&(o=this.positionInside(s,r))}return o},n.positionInside=function(t,r){for(var o=r||this.toString(),s=this.source.start.column,a=this.source.start.line,u=0;u<t;u++)o[u]==="\n"?(s=1,a+=1):s+=1;return{column:s,line:a}},n.prev=function(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t-1]}},n.rangeBy=function(t){var r={column:this.source.start.column,line:this.source.start.line},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(t.word){var s=this.toString(),a=s.indexOf(t.word);a!==-1&&(r=this.positionInside(a,s),o=this.positionInside(a+t.word.length,s))}else t.start?r={column:t.start.column,line:t.start.line}:t.index&&(r=this.positionInside(t.index)),t.end?o={column:t.end.column,line:t.end.line}:typeof t.endIndex=="number"?o=this.positionInside(t.endIndex):t.index&&(o=this.positionInside(t.index+1));return(o.line<r.line||o.line===r.line&&o.column<=r.column)&&(o={column:r.column+1,line:r.line}),{end:o,start:r}},n.raw=function(t,r){var o=new Tp;return o.raw(this,t,r)},n.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},n.replaceWith=function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];if(this.parent){for(var s=this,a=!1,u=k(r),c;!(c=u()).done;){var l=c.value;l===this?a=!0:a?(this.parent.insertAfter(s,l),s=l):this.parent.insertBefore(s,l)}a||this.remove()}return this},n.root=function(){for(var t=this;t.parent&&t.parent.type!=="document";)t=t.parent;return t},n.toJSON=function(t,r){var o={},s=r==null;r=r||new Map;var a=0;for(var u in this)if(Object.prototype.hasOwnProperty.call(this,u)&&!(u==="parent"||u==="proxyCache")){var c=this[u];if(Array.isArray(c))o[u]=c.map(function(f){return(typeof f=="undefined"?"undefined":z(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof c=="undefined"?"undefined":z(c))==="object"&&c.toJSON)o[u]=c.toJSON(null,r);else if(u==="source"){var l=r.get(c.input);l==null&&(l=a,r.set(c.input,a),a++),o[u]={end:c.end,inputId:l,start:c.start}}else o[u]=c}return s&&(o.inputs=[].concat(r.keys()).map(function(f){return f.toJSON()})),o},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(t){t===void 0&&(t=Pp),t.stringify&&(t=t.stringify);var r="";return t(this,function(o){r+=o}),r},n.warn=function(t,r,o){var s={node:this};for(var a in o)s[a]=o[a];return t.warn(r,s)},me(e,[{key:"proxyOf",get:function(){return this}}]),e}(),wn=no;no.default=no;var Lp=wn,io=function(e){be(n,e);function n(i){var t;return i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=j({},i,{value:String(i.value)})),t=e.call(this,i)||this,t.type="decl",t}return me(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n}(Lp),Sn=io;io.default=io;var Dp="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Np=function(e){e===void 0&&(e=21);for(var n="",i=e;i--;)n+=Dp[Math.random()*64|0];return n},$p={nanoid:Np},Va=fe.SourceMapConsumer,ja=fe.SourceMapGenerator,Fp=fe.existsSync,Up=fe.readFileSync,oo=fe.dirname,Bp=fe.join;function zp(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var so=function(){function e(i,t){if(t.map!==!1){this.loadAnnotation(i),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,o=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=oo(this.mapFile)),o&&(this.text=o)}}var n=e.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new Va(this.text)),this.consumerCache},n.decodeInline=function(t){var r=/^data:application\/json;charset=utf-?8;base64,/,o=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(s.test(t)||a.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(r.test(t)||o.test(t))return zp(t.substr(RegExp.lastMatch.length));var u=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},n.getAnnotationURL=function(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(t){return(typeof t=="undefined"?"undefined":z(t))!=="object"?!1:typeof t.mappings=="string"||typeof t._mappings=="string"||Array.isArray(t.sections)},n.loadAnnotation=function(t){var r=t.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var o=t.lastIndexOf(r.pop()),s=t.indexOf("*/",o);o>-1&&s>-1&&(this.annotation=this.getAnnotationURL(t.substring(o,s)))}},n.loadFile=function(t){if(this.root=oo(t),Fp(t))return this.mapFile=t,Up(t,"utf-8").toString().trim()},n.loadMap=function(t,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){var o=r(t);if(o){var s=this.loadFile(o);if(!s)throw new Error("Unable to load previous source map: "+o.toString());return s}}else{if(N(r,Va))return ja.fromSourceMap(r).toString();if(N(r,ja))return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var a=this.annotation;return t&&(a=Bp(oo(t),a)),this.loadFile(a)}}},n.startWith=function(t,r){return t?t.substr(0,r.length)===r:!1},n.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),Ha=so;so.default=so;var Wp=fe.SourceMapConsumer,qp=fe.SourceMapGenerator,Ya=fe.fileURLToPath,Cn=fe.pathToFileURL,ao=fe.isAbsolute,uo=fe.resolve,Gp=$p.nanoid,co=fe,Ka=Qi,Vp=Ha,lo=Symbol("fromOffsetCache"),jp=!!(Wp&&qp),Ja=!!(uo&&ao),In=function(){function e(i,t){if(t===void 0&&(t={}),i===null||typeof i=="undefined"||(typeof i=="undefined"?"undefined":z(i))==="object"&&!i.toString)throw new Error("PostCSS received "+i+" instead of CSS string");if(this.css=i.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Ja||/^\w+:\/\//.test(t.from)||ao(t.from)?this.file=t.from:this.file=uo(t.from)),Ja&&jp){var r=new Vp(this.css,t);if(r.text){this.map=r;var o=r.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+Gp(6)+">"),this.map&&(this.map.file=this.from)}var n=e.prototype;return n.error=function(t,r,o,s){s===void 0&&(s={});var a,u,c;if(r&&(typeof r=="undefined"?"undefined":z(r))==="object"){var l=r,f=o;if(typeof l.offset=="number"){var p=this.fromOffset(l.offset);r=p.line,o=p.col}else r=l.line,o=l.column;if(typeof f.offset=="number"){var g=this.fromOffset(f.offset);u=g.line,c=g.col}else u=f.line,c=f.column}else if(!o){var d=this.fromOffset(r);r=d.line,o=d.col}var y=this.origin(r,o,u,c);return y?a=new Ka(t,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,s.plugin):a=new Ka(t,u===void 0?r:{column:o,line:r},u===void 0?o:{column:c,line:u},this.css,this.file,s.plugin),a.input={column:o,endColumn:c,endLine:u,line:r,source:this.css},this.file&&(Cn&&(a.input.url=Cn(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(t){var r,o;if(this[lo])o=this[lo];else{var s=this.css.split("\n");o=new Array(s.length);for(var a=0,u=0,c=s.length;u<c;u++)o[u]=a,a+=s[u].length+1;this[lo]=o}r=o[o.length-1];var l=0;if(t>=r)l=o.length-1;else for(var f=o.length-2,p;l<f;)if(p=l+(f-l>>1),t<o[p])f=p-1;else if(t>=o[p+1])l=p+1;else{l=p;break}return{col:t-o[l]+1,line:l+1}},n.mapResolve=function(t){return/^\w+:\/\//.test(t)?t:uo(this.map.consumer().sourceRoot||this.map.root||".",t)},n.origin=function(t,r,o,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:r,line:t});if(!u.source)return!1;var c;typeof o=="number"&&(c=a.originalPositionFor({column:s,line:o}));var l;ao(u.source)?l=Cn(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||Cn(this.map.mapFile));var f={column:u.column,endColumn:c&&c.column,endLine:c&&c.line,line:u.line,url:l.toString()};if(l.protocol==="file:")if(Ya)f.file=Ya(l);else throw new Error("file: protocol is not available in this PostCSS build");var p=a.sourceContentFor(u.source);return p&&(f.source=p),f},n.toJSON=function(){for(var t={},r=0,o=["hasBOM","css","file","id"];r<o.length;r++){var s=o[r];this[s]!=null&&(t[s]=this[s])}return this.map&&(t.map=j({},this.map),t.map.consumerCache&&(t.map.consumerCache=void 0)),t},me(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),En=In;In.default=In,co&&co.registerInput&&co.registerInput(In);var Xa=fe.SourceMapConsumer,kn=fe.SourceMapGenerator,On=fe.dirname,Za=fe.relative,Qa=fe.resolve,eu=fe.sep,tu=fe.pathToFileURL,Hp=En,Yp=!!(Xa&&kn),Kp=!!(On&&Qa&&Za&&eu),Jp=function(){function e(i,t,r,o){this.stringify=i,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var n=e.prototype;return n.addAnnotation=function(){var t;this.isInline()?t="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?t=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?t=this.mapOpts.annotation(this.opts.to,this.root):t=this.outputFile()+".map";var r="\n";this.css.includes("\r\n")&&(r="\r\n"),this.css+=r+"/*# sourceMappingURL="+t+" */"},n.applyPrevMaps=function(){for(var t=k(this.previous()),r;!(r=t()).done;){var o=r.value,s=this.toUrl(this.path(o.file)),a=o.root||On(o.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new Xa(o.text),u.sourcesContent&&(u.sourcesContent=null)):u=o.consumer(),this.map.applySourceMap(u,s,this.toUrl(this.path(a)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var t,r=this.root.nodes.length-1;r>=0;r--)t=this.root.nodes[r],t.type==="comment"&&t.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},n.generate=function(){if(this.clearAnnotation(),Kp&&Yp&&this.isMap())return this.generateMap();var t="";return this.stringify(this.root,function(r){t+=r}),[t]},n.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=kn.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new kn({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]},n.generateString=function(){var t=this;this.css="",this.map=new kn({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,o=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,c;this.stringify(this.root,function(l,f,p){if(t.css+=l,f&&p!=="end"&&(a.generated.line=r,a.generated.column=o-1,f.source&&f.source.start?(a.source=t.sourcePath(f),a.original.line=f.source.start.line,a.original.column=f.source.start.column-1,t.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,t.map.addMapping(a))),u=l.match(/\n/g),u?(r+=u.length,c=l.lastIndexOf("\n"),o=l.length-c):o+=l.length,f&&p!=="start"){var g=f.parent||{raws:{}},d=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!d||f!==g.last||g.raws.semicolon)&&(f.source&&f.source.end?(a.source=t.sourcePath(f),a.original.line=f.source.end.line,a.original.column=f.source.end.column-1,a.generated.line=r,a.generated.column=o-2,t.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=o-1,t.map.addMapping(a)))}})},n.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(t){return t.annotation}):!0},n.isInline=function(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;var t=this.mapOpts.annotation;return typeof t!="undefined"&&t!==!0?!1:this.previous().length?this.previous().some(function(r){return r.inline}):!0},n.isMap=function(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0},n.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(t){return t.withContent()}):!0},n.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},n.path=function(t){if(this.mapOpts.absolute||t.charCodeAt(0)===60||/^\w+:\/\//.test(t))return t;var r=this.memoizedPaths.get(t);if(r)return r;var o=this.opts.to?On(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(o=On(Qa(o,this.mapOpts.annotation)));var s=Za(o,t);return this.memoizedPaths.set(t,s),s},n.previous=function(){var t=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(o){if(o.source&&o.source.input.map){var s=o.source.input.map;t.previousMaps.includes(s)||t.previousMaps.push(s)}});else{var r=new Hp(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},n.setSourcesContent=function(){var t=this,r={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!r[a]){r[a]=!0;var u=t.usesFileUrls?t.toFileUrl(a):t.toUrl(t.path(a));t.map.setSourceContent(u,s.source.input.css)}}});else if(this.css){var o=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(o,this.css)}},n.sourcePath=function(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))},n.toBase64=function(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))},n.toFileUrl=function(t){var r=this.memoizedFileURLs.get(t);if(r)return r;if(tu){var o=tu(t).toString();return this.memoizedFileURLs.set(t,o),o}else throw new Error("`map.absolute` option is not available in this PostCSS build")},n.toUrl=function(t){var r=this.memoizedURLs.get(t);if(r)return r;eu==="\\"&&(t=t.replace(/\\/g,"/"));var o=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,o),o},e}(),ru=Jp,Xp=wn,fo=function(e){be(n,e);function n(i){var t;return t=e.call(this,i)||this,t.type="comment",t}return n}(Xp),xn=fo;fo.default=fo;var nu=it.isClean,iu=it.my,ou=Sn,su=xn,Zp=wn,au,ho,po,uu;function cu(e){return e.map(function(n){return n.nodes&&(n.nodes=cu(n.nodes)),delete n.source,n})}function lu(e){if(e[nu]=!1,e.proxyOf.nodes)for(var n=k(e.proxyOf.nodes),i;!(i=n()).done;){var t=i.value;lu(t)}}var He=function(e){be(n,e);function n(){return e.apply(this,arguments)||this}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];for(var a=k(o),u;!(u=a()).done;)for(var c=u.value,l=this.normalize(c,this.last),f=k(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.push(g)}return this.markDirty(),this},i.cleanRaws=function(r){if(e.prototype.cleanRaws.call(this,r),this.nodes)for(var o=k(this.nodes),s;!(s=o()).done;){var a=s.value;a.cleanRaws(r)}},i.each=function(r){if(this.proxyOf.nodes){for(var o=this.getIterator(),s,a;this.indexes[o]<this.proxyOf.nodes.length&&(s=this.indexes[o],a=r(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[o]+=1;return delete this.indexes[o],a}},i.every=function(r){return this.nodes.every(r)},i.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},i.getProxyProcessor=function(){return{get:function(o,s){return s==="proxyOf"?o:o[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];var l;return(l=o)[s].apply(l,[].concat(u.map(function(f){return typeof f=="function"?function(p,g){return f(p.toProxy(),g)}:f})))}:s==="every"||s==="some"?function(a){return o[s](function(u){for(var c=arguments.length,l=new Array(c>1?c-1:0),f=1;f<c;f++)l[f-1]=arguments[f];return a.apply(void 0,[].concat([u.toProxy()],l))})}:s==="root"?function(){return o.root().toProxy()}:s==="nodes"?o.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?o[s].toProxy():o[s]:o[s]},set:function(o,s,a){return o[s]===a||(o[s]=a,(s==="name"||s==="params"||s==="selector")&&o.markDirty()),!0}}},i.index=function(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))},i.insertAfter=function(r,o){var s=this.index(r),a=this.normalize(o,this.proxyOf.nodes[s]).reverse();s=this.index(r);for(var u=k(a),c;!(c=u()).done;){var l=c.value;this.proxyOf.nodes.splice(s+1,0,l)}var f;for(var p in this.indexes)f=this.indexes[p],s<f&&(this.indexes[p]=f+a.length);return this.markDirty(),this},i.insertBefore=function(r,o){var s=this.index(r),a=s===0?"prepend":!1,u=this.normalize(o,this.proxyOf.nodes[s],a).reverse();s=this.index(r);for(var c=k(u),l;!(l=c()).done;){var f=l.value;this.proxyOf.nodes.splice(s,0,f)}var p;for(var g in this.indexes)p=this.indexes[g],s<=p&&(this.indexes[g]=p+u.length);return this.markDirty(),this},i.normalize=function(r,o){var s=this;if(typeof r=="string")r=cu(au(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=k(r),u;!(u=a()).done;){var c=u.value;c.parent&&c.parent.removeChild(c,"ignore")}}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(var l=k(r),f;!(f=l()).done;){var p=f.value;p.parent&&p.parent.removeChild(p,"ignore")}}else if(r.type)r=[r];else if(r.prop){if(typeof r.value=="undefined")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new ou(r)]}else if(r.selector)r=[new ho(r)];else if(r.name)r=[new po(r)];else if(r.text)r=[new su(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(d){return d[iu]||n.rebuild(d),d=d.proxyOf,d.parent&&d.parent.removeChild(d),d[nu]&&lu(d),typeof d.raws.before=="undefined"&&o&&typeof o.raws.before!="undefined"&&(d.raws.before=o.raws.before.replace(/\S/g,"")),d.parent=s.proxyOf,d});return g},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];o=o.reverse();for(var a=k(o),u;!(u=a()).done;){for(var c=u.value,l=this.normalize(c,this.first,"prepend").reverse(),f=k(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.unshift(g)}for(var d in this.indexes)this.indexes[d]=this.indexes[d]+l.length}return this.markDirty(),this},i.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},i.removeAll=function(){for(var r=k(this.proxyOf.nodes),o;!(o=r()).done;){var s=o.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},i.removeChild=function(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);var o;for(var s in this.indexes)o=this.indexes[s],o>=r&&(this.indexes[s]=o-1);return this.markDirty(),this},i.replaceValues=function(r,o,s){return s||(s=o,o={}),this.walkDecls(function(a){o.props&&!o.props.includes(a.prop)||o.fast&&!a.value.includes(o.fast)||(a.value=a.value.replace(r,s))}),this.markDirty(),this},i.some=function(r){return this.nodes.some(r)},i.walk=function(r){return this.each(function(o,s){var a;try{a=r(o,s)}catch(u){throw o.addToError(u)}return a!==!1&&o.walk&&(a=o.walk(r)),a})},i.walkAtRules=function(r,o){return o?N(r,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&r.test(s.name))return o(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="atrule")return o(s,a)}))},i.walkComments=function(r){return this.walk(function(o,s){if(o.type==="comment")return r(o,s)})},i.walkDecls=function(r,o){return o?N(r,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&r.test(s.prop))return o(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="decl")return o(s,a)}))},i.walkRules=function(r,o){return o?N(r,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&r.test(s.selector))return o(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="rule")return o(s,a)}))},me(n,[{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]}}]),n}(Zp);He.registerParse=function(e){au=e},He.registerRule=function(e){ho=e},He.registerAtRule=function(e){po=e},He.registerRoot=function(e){uu=e};var wt=He;He.default=He,He.rebuild=function(e){e.type==="atrule"?Object.setPrototypeOf(e,po.prototype):e.type==="rule"?Object.setPrototypeOf(e,ho.prototype):e.type==="decl"?Object.setPrototypeOf(e,ou.prototype):e.type==="comment"?Object.setPrototypeOf(e,su.prototype):e.type==="root"&&Object.setPrototypeOf(e,uu.prototype),e[iu]=!0,e.nodes&&e.nodes.forEach(function(n){He.rebuild(n)})};var Qp=wt,fu,hu,br=function(e){be(n,e);function n(t){var r;return r=e.call(this,j({type:"document"},t))||this,r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.toResult=function(r){r===void 0&&(r={});var o=new fu(new hu,this,r);return o.stringify()},n}(Qp);br.registerLazyResult=function(e){fu=e},br.registerProcessor=function(e){hu=e};var vo=br;br.default=br;var pu={},du=function(n){pu[n]||(pu[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},go=function(){function e(i,t){if(t===void 0&&(t={}),this.type="warning",this.text=i,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 o in t)this[o]=t[o]}var n=e.prototype;return n.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}(),vu=go;go.default=go;var ed=vu,mo=function(){function e(i,t,r){this.processor=i,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var n=e.prototype;return n.toString=function(){return this.css},n.warn=function(t,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var o=new ed(t,r);return this.messages.push(o),o},n.warnings=function(){return this.messages.filter(function(t){return t.type==="warning"})},me(e,[{key:"content",get:function(){return this.css}}]),e}(),yo=mo;mo.default=mo;var _o=39,gu=34,Rn=92,mu=47,An=10,wr=32,Mn=12,Tn=9,Pn=13,td=91,rd=93,nd=40,id=41,od=123,sd=125,ad=59,ud=42,cd=58,ld=64,Ln=/[\t\n\f\r "#'()/;[\\\]{}]/g,Dn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,fd=/.[\r\n"'(/\\]/,yu=/[\da-f]/i,hd=function(n,i){i===void 0&&(i={});var t=n.css.valueOf(),r=i.ignoreErrors,o,s,a,u,c,l,f,p,g,d,y=t.length,v=0,m=[],_=[];function w(){return v}function S(x){throw n.error("Unclosed "+x,v)}function C(){return _.length===0&&v>=y}function O(x){if(_.length)return _.pop();if(!(v>=y)){var L=x?x.ignoreUnclosed:!1;switch(o=t.charCodeAt(v),o){case An:case wr:case Tn:case Pn:case Mn:{s=v;do s+=1,o=t.charCodeAt(s);while(o===wr||o===An||o===Tn||o===Pn||o===Mn);d=["space",t.slice(v,s)],v=s-1;break}case td:case rd:case od:case sd:case cd:case ad:case id:{var H=String.fromCharCode(o);d=[H,H,v];break}case nd:{if(p=m.length?m.pop()[1]:"",g=t.charCodeAt(v+1),p==="url"&&g!==_o&&g!==gu&&g!==wr&&g!==An&&g!==Tn&&g!==Mn&&g!==Pn){s=v;do{if(l=!1,s=t.indexOf(")",s+1),s===-1)if(r||L){s=v;break}else S("bracket");for(f=s;t.charCodeAt(f-1)===Rn;)f-=1,l=!l}while(l);d=["brackets",t.slice(v,s+1),v,s],v=s}else s=t.indexOf(")",v+1),u=t.slice(v,s+1),s===-1||fd.test(u)?d=["(","(",v]:(d=["brackets",u,v,s],v=s);break}case _o:case gu:{a=o===_o?"'":'"',s=v;do{if(l=!1,s=t.indexOf(a,s+1),s===-1)if(r||L){s=v+1;break}else S("string");for(f=s;t.charCodeAt(f-1)===Rn;)f-=1,l=!l}while(l);d=["string",t.slice(v,s+1),v,s],v=s;break}case ld:{Ln.lastIndex=v+1,Ln.test(t),Ln.lastIndex===0?s=t.length-1:s=Ln.lastIndex-2,d=["at-word",t.slice(v,s+1),v,s],v=s;break}case Rn:{for(s=v,c=!0;t.charCodeAt(s+1)===Rn;)s+=1,c=!c;if(o=t.charCodeAt(s+1),c&&o!==mu&&o!==wr&&o!==An&&o!==Tn&&o!==Pn&&o!==Mn&&(s+=1,yu.test(t.charAt(s)))){for(;yu.test(t.charAt(s+1));)s+=1;t.charCodeAt(s+1)===wr&&(s+=1)}d=["word",t.slice(v,s+1),v,s],v=s;break}default:{o===mu&&t.charCodeAt(v+1)===ud?(s=t.indexOf("*/",v+2)+1,s===0&&(r||L?s=t.length:S("comment")),d=["comment",t.slice(v,s+1),v,s],v=s):(Dn.lastIndex=v+1,Dn.test(t),Dn.lastIndex===0?s=t.length-1:s=Dn.lastIndex-2,d=["word",t.slice(v,s+1),v,s],m.push(d),v=s);break}}return v++,d}}function A(x){_.push(x)}return{back:A,endOfFile:C,nextToken:O,position:w}},_u=wt,Nn=function(e){be(n,e);function n(t){var r;return r=e.call(this,t)||this,r.type="atrule",r}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=e.prototype.append).call.apply(a,[].concat([this],o))},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=e.prototype.prepend).call.apply(a,[].concat([this],o))},n}(_u),bo=Nn;Nn.default=Nn,_u.registerAtRule(Nn);var bu=wt,wu,Su,qt=function(e){be(n,e);function n(t){var r;return r=e.call(this,t)||this,r.type="root",r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.normalize=function(r,o,s){var a=e.prototype.normalize.call(this,r);if(o){if(s==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(var u=k(a),c;!(c=u()).done;){var l=c.value;l.raws.before=o.raws.before}}return a},i.removeChild=function(r,o){var s=this.index(r);return!o&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),e.prototype.removeChild.call(this,r)},i.toResult=function(r){r===void 0&&(r={});var o=new wu(new Su,this,r);return o.stringify()},n}(bu);qt.registerLazyResult=function(e){wu=e},qt.registerProcessor=function(e){Su=e};var Sr=qt;qt.default=qt,bu.registerRoot(qt);var Cr={comma:function(n){return Cr.split(n,[","],!0)},space:function(n){var i=[" ","\n"," "];return Cr.split(n,i)},split:function(n,i,t){for(var r=[],o="",s=!1,a=0,u=!1,c="",l=!1,f=k(n),p;!(p=f()).done;){var g=p.value;l?l=!1:g==="\\"?l=!0:u?g===c&&(u=!1):g==='"'||g==="'"?(u=!0,c=g):g==="("?a+=1:g===")"?a>0&&(a-=1):a===0&&i.includes(g)&&(s=!0),s?(o!==""&&r.push(o.trim()),o="",s=!1):o+=g}return(t||o!=="")&&r.push(o.trim()),r}},Cu=Cr;Cr.default=Cr;var Iu=wt,pd=Cu,$n=function(e){be(n,e);function n(i){var t;return t=e.call(this,i)||this,t.type="rule",t.nodes||(t.nodes=[]),t}return me(n,[{key:"selectors",get:function(){return pd.comma(this.selector)},set:function(t){var r=this.selector?this.selector.match(/,\s*/):null,o=r?r[0]:","+this.raw("between","beforeOpen");this.selector=t.join(o)}}]),n}(Iu),wo=$n;$n.default=$n,Iu.registerRule($n);var dd=Sn,vd=hd,gd=xn,md=bo,yd=Sr,Eu=wo,ku={empty:!0,space:!0};function _d(e){for(var n=e.length-1;n>=0;n--){var i=e[n],t=i[3]||i[2];if(t)return t}}var bd=function(){function e(i){this.input=i,this.root=new yd,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}var n=e.prototype;return n.atrule=function(t){var r=new md;r.name=t[1].slice(1),r.name===""&&this.unnamedAtrule(r,t),this.init(r,t[2]);for(var o,s,a,u=!1,c=!1,l=[],f=[];!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),o=t[0],o==="("||o==="["?f.push(o==="("?")":"]"):o==="{"&&f.length>0?f.push("}"):o===f[f.length-1]&&f.pop(),f.length===0)if(o===";"){r.source.end=this.getPosition(t[2]),r.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){c=!0;break}else if(o==="}"){if(l.length>0){for(a=l.length-1,s=l[a];s&&s[0]==="space";)s=l[--a];s&&(r.source.end=this.getPosition(s[3]||s[2]),r.source.end.offset++)}this.end(t);break}else l.push(t);else l.push(t);if(this.tokenizer.endOfFile()){u=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(r.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(r,"params",l),u&&(t=l[l.length-1],r.source.end=this.getPosition(t[3]||t[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),c&&(r.nodes=[],this.current=r)},n.checkMissedSemicolon=function(t){var r=this.colon(t);if(r!==!1){for(var o=0,s,a=r-1;a>=0&&(s=t[a],!(s[0]!=="space"&&(o+=1,o===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},n.colon=function(t){for(var r=0,o,s,a,u=k(t.entries()),c;!(c=u()).done;){var l=c.value,f=l[0],p=l[1];if(o=p,s=o[0],s==="("&&(r+=1),s===")"&&(r-=1),r===0&&s===":")if(!a)this.doubleColon(o);else{if(a[0]==="word"&&a[1]==="progid")continue;return f}a=o}return!1},n.comment=function(t){var r=new gd;this.init(r,t[2]),r.source.end=this.getPosition(t[3]||t[2]),r.source.end.offset++;var o=t[1].slice(2,-2);if(/^\s*$/.test(o))r.text="",r.raws.left=o,r.raws.right="";else{var s=o.match(/^(\s*)([^]*\S)(\s*)$/);r.text=s[2],r.raws.left=s[1],r.raws.right=s[3]}},n.createTokenizer=function(){this.tokenizer=vd(this.input)},n.decl=function(t,r){var o=new dd;this.init(o,t[0][2]);var s=t[t.length-1];for(s[0]===";"&&(this.semicolon=!0,t.pop()),o.source.end=this.getPosition(s[3]||s[2]||_d(t)),o.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),o.raws.before+=t.shift()[1];for(o.source.start=this.getPosition(t[0][2]),o.prop="";t.length;){var a=t[0][0];if(a===":"||a==="space"||a==="comment")break;o.prop+=t.shift()[1]}o.raws.between="";for(var u;t.length;)if(u=t.shift(),u[0]===":"){o.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),o.raws.between+=u[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));for(var c=[],l;t.length&&(l=t[0][0],!(l!=="space"&&l!=="comment"));)c.push(t.shift());this.precheckMissedSemicolon(t);for(var f=t.length-1;f>=0;f--){if(u=t[f],u[1].toLowerCase()==="!important"){o.important=!0;var p=this.stringFrom(t,f);p=this.spacesFromEnd(t)+p,p!==" !important"&&(o.raws.important=p);break}else if(u[1].toLowerCase()==="important"){for(var g=t.slice(0),d="",y=f;y>0;y--){var v=g[y][0];if(d.trim().indexOf("!")===0&&v!=="space")break;d=g.pop()[1]+d}d.trim().indexOf("!")===0&&(o.important=!0,o.raws.important=d,t=g)}if(u[0]!=="space"&&u[0]!=="comment")break}var m=t.some(function(_){return _[0]!=="space"&&_[0]!=="comment"});m&&(o.raws.between+=c.map(function(_){return _[1]}).join(""),c=[]),this.raw(o,"value",c.concat(t),r),o.value.includes(":")&&!r&&this.checkMissedSemicolon(t)},n.doubleColon=function(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})},n.emptyRule=function(t){var r=new Eu;this.init(r,t[2]),r.selector="",r.raws.between="",this.current=r},n.end=function(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)},n.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())},n.freeSemicolon=function(t){if(this.spaces+=t[1],this.current.nodes){var r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="")}},n.getPosition=function(t){var r=this.input.fromOffset(t);return{column:r.col,line:r.line,offset:t}},n.init=function(t,r){this.current.push(t),t.source={input:this.input,start:this.getPosition(r)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)},n.other=function(t){for(var r=!1,o=null,s=!1,a=null,u=[],c=t[1].startsWith("--"),l=[],f=t;f;){if(o=f[0],l.push(f),o==="("||o==="[")a||(a=f),u.push(o==="("?")":"]");else if(c&&s&&o==="{")a||(a=f),u.push("}");else if(u.length===0)if(o===";")if(s){this.decl(l,c);return}else break;else if(o==="{"){this.rule(l);return}else if(o==="}"){this.tokenizer.back(l.pop()),r=!0;break}else o===":"&&(s=!0);else o===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),u.length>0&&this.unclosedBracket(a),r&&s){if(!c)for(;l.length&&(f=l[l.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,c)}else this.unknownWord(l)},n.parse=function(){for(var t;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()},n.precheckMissedSemicolon=function(){},n.raw=function(t,r,o,s){for(var a,u,c=o.length,l="",f=!0,p,g,d=0;d<c;d+=1)a=o[d],u=a[0],u==="space"&&d===c-1&&!s?f=!1:u==="comment"?(g=o[d-1]?o[d-1][0]:"empty",p=o[d+1]?o[d+1][0]:"empty",!ku[g]&&!ku[p]?l.slice(-1)===","?f=!1:l+=a[1]:f=!1):l+=a[1];if(!f){var y=o.reduce(function(v,m){return v+m[1]},"");t.raws[r]={raw:y,value:l}}t[r]=l},n.rule=function(t){t.pop();var r=new Eu;this.init(r,t[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(r,"selector",t),this.current=r},n.spacesAndCommentsFromEnd=function(t){for(var r,o="";t.length&&(r=t[t.length-1][0],!(r!=="space"&&r!=="comment"));)o=t.pop()[1]+o;return o},n.spacesAndCommentsFromStart=function(t){for(var r,o="";t.length&&(r=t[0][0],!(r!=="space"&&r!=="comment"));)o+=t.shift()[1];return o},n.spacesFromEnd=function(t){for(var r,o="";t.length&&(r=t[t.length-1][0],r==="space");)o=t.pop()[1]+o;return o},n.stringFrom=function(t,r){for(var o="",s=r;s<t.length;s++)o+=t[s][1];return t.splice(r,t.length-r),o},n.unclosedBlock=function(){var t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)},n.unclosedBracket=function(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})},n.unexpectedClose=function(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})},n.unknownWord=function(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})},n.unnamedAtrule=function(t,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},e}(),wd=bd,Sd=wt,Cd=wd,Id=En;function Fn(e,n){var i=new Id(e,n),t=new Cd(i);try{t.parse()}catch(r){throw process.env.NODE_ENV!=="production"&&r.name==="CssSyntaxError"&&n&&n.from&&(/\.scss$/i.test(n.from)?r.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(n.from)?r.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(n.from)&&(r.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),r}return t.root}var So=Fn;Fn.default=Fn,Sd.registerParse(Fn);var Be=it.isClean,Ed=it.my,kd=ru,Od=_n,xd=wt,Rd=vo,Ad=du,Ou=yo,Md=So,Td=Sr,Pd={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Ld={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},Dd={Once:!0,postcssPlugin:!0,prepare:!0},Gt=0;function Ir(e){return(typeof e=="undefined"?"undefined":z(e))==="object"&&typeof e.then=="function"}function xu(e){var n=!1,i=Pd[e.type];return e.type==="decl"?n=e.prop.toLowerCase():e.type==="atrule"&&(n=e.name.toLowerCase()),n&&e.append?[i,i+"-"+n,Gt,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:e.append?[i,Gt,i+"Exit"]:[i,i+"Exit"]}function Ru(e){var n;return e.type==="document"?n=["Document",Gt,"DocumentExit"]:e.type==="root"?n=["Root",Gt,"RootExit"]:n=xu(e),{eventIndex:0,events:n,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Co(e){return e[Be]=!1,e.nodes&&e.nodes.forEach(function(n){return Co(n)}),e}var Io={},Vt=function(){function e(i,t,r){var o=this;this.stringified=!1,this.processed=!1;var s;if((typeof t=="undefined"?"undefined":z(t))==="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=Co(t);else if(N(t,e)||N(t,Ou))s=Co(t.root),t.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{var a=Md;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{s=a(t,r)}catch(u){this.processed=!0,this.error=u}s&&!s[Ed]&&xd.rebuild(s)}this.result=new Ou(i,s,r),this.helpers=j({},Io,{postcss:Io,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":z(u))==="object"&&u.prepare?j({},u,u.prepare(o.result)):u})}var n=e.prototype;return n.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},n.catch=function(t){return this.async().catch(t)},n.finally=function(t){return this.async().then(t,t)},n.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},n.handleError=function(t,r){var o=this.result.lastPlugin;try{if(r&&r.addToError(t),this.error=t,t.name==="CssSyntaxError"&&!t.plugin)t.plugin=o.postcssPlugin,t.setMessage();else if(o.postcssVersion&&process.env.NODE_ENV!=="production"){var s=o.postcssPlugin,a=o.postcssVersion,u=this.result.processor.version,c=a.split("."),l=u.split(".");(c[0]!==l[0]||parseInt(c[1])>parseInt(l[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+u+", but "+s+" uses "+a+". Perhaps this is the source of the error below.")}}catch(f){console&&console.error&&console.error(f)}return t},n.prepareVisitors=function(){var t=this;this.listeners={};for(var r=function(l,f,p){t.listeners[f]||(t.listeners[f]=[]),t.listeners[f].push([l,p])},o=k(this.plugins),s;!(s=o()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":z(a))==="object")for(var u in a){if(!Ld[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Dd[u])if(z(a[u])==="object")for(var c in a[u])c==="*"?r(a,u,a[u][c]):r(a,u+"-"+c.toLowerCase(),a[u][c]);else typeof a[u]=="function"&&r(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},n.runAsync=function(){var t=this;return vi(function(){var r,o,s,a,u,c,l,f,p,g,d,y;return cr(this,function(v){switch(v.label){case 0:t.plugin=0,r=0,v.label=1;case 1:if(!(r<t.plugins.length))return[3,6];if(o=t.plugins[r],s=t.runOnRoot(o),!Ir(s))return[3,5];v.label=2;case 2:return v.trys.push([2,4,,5]),[4,s];case 3:return v.sent(),[3,5];case 4:throw a=v.sent(),t.handleError(a);case 5:return r++,[3,1];case 6:if(t.prepareVisitors(),!t.hasListener)return[3,18];u=t.result.root,v.label=7;case 7:if(u[Be])return[3,14];u[Be]=!0,c=[Ru(u)],v.label=8;case 8:if(!(c.length>0))return[3,13];if(l=t.visitTick(c),!Ir(l))return[3,12];v.label=9;case 9:return v.trys.push([9,11,,12]),[4,l];case 10:return v.sent(),[3,12];case 11:throw f=v.sent(),p=c[c.length-1].node,t.handleError(f,p);case 12:return[3,8];case 13:return[3,7];case 14:if(!t.listeners.OnceExit)return[3,18];g=function(){var m,_,w,S,C;return cr(this,function(O){switch(O.label){case 0:m=y.value,_=m[0],w=m[1],t.result.lastPlugin=_,O.label=1;case 1:return O.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(S=u.nodes.map(function(A){return w(A,t.helpers)}),[4,Promise.all(S)]);case 2:return O.sent(),[3,5];case 3:return[4,w(u,t.helpers)];case 4:O.sent(),O.label=5;case 5:return[3,7];case 6:throw C=O.sent(),t.handleError(C);case 7:return[2]}})},d=k(t.listeners.OnceExit),v.label=15;case 15:return(y=d()).done?[3,18]:[5,ks(g())];case 16:v.sent(),v.label=17;case 17:return[3,15];case 18:return t.processed=!0,[2,t.stringify()]}})})()},n.runOnRoot=function(t){var r=this;this.result.lastPlugin=t;try{if((typeof t=="undefined"?"undefined":z(t))==="object"&&t.Once){if(this.result.root.type==="document"){var o=this.result.root.nodes.map(function(s){return t.Once(s,r.helpers)});return Ir(o[0])?Promise.all(o):o}return t.Once(this.result.root,this.helpers)}else if(typeof t=="function")return t(this.result.root,this.result)}catch(s){throw this.handleError(s)}},n.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var t=this.result.opts,r=Od;t.syntax&&(r=t.syntax.stringify),t.stringifier&&(r=t.stringifier),r.stringify&&(r=r.stringify);var o=new kd(r,this.result.root,this.result.opts),s=o.generate();return this.result.css=s[0],this.result.map=s[1],this.result},n.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 t=k(this.plugins),r;!(r=t()).done;){var o=r.value,s=this.runOnRoot(o);if(Ir(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Be];)a[Be]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=k(a.nodes),c;!(c=u()).done;){var l=c.value;this.visitSync(this.listeners.OnceExit,l)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},n.then=function(t,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||Ad("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,r)},n.toString=function(){return this.css},n.visitSync=function(t,r){for(var o=k(t),s;!(s=o()).done;){var a=s.value,u=a[0],c=a[1];this.result.lastPlugin=u;var l=void 0;try{l=c(r,this.helpers)}catch(f){throw this.handleError(f,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(Ir(l))throw this.getAsyncError()}},n.visitTick=function(t){var r=t[t.length-1],o=r.node,s=r.visitors;if(o.type!=="root"&&o.type!=="document"&&!o.parent){t.pop();return}if(s.length>0&&r.visitorIndex<s.length){var a=s[r.visitorIndex],u=a[0],c=a[1];r.visitorIndex+=1,r.visitorIndex===s.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=u;try{return c(o.toProxy(),this.helpers)}catch(d){throw this.handleError(d,o)}}if(r.iterator!==0){for(var l=r.iterator,f;f=o.nodes[o.indexes[l]];)if(o.indexes[l]+=1,!f[Be]){f[Be]=!0,t.push(Ru(f));return}r.iterator=0,delete o.indexes[l]}for(var p=r.events;r.eventIndex<p.length;){var g=p[r.eventIndex];if(r.eventIndex+=1,g===Gt){o.nodes&&o.nodes.length&&(o[Be]=!0,r.iterator=o.getIterator());return}else if(this.listeners[g]){r.visitors=this.listeners[g];return}}t.pop()},n.walkSync=function(t){var r=this;t[Be]=!0;for(var o=xu(t),s=k(o),a;!(a=s()).done;){var u=a.value;if(u===Gt)t.nodes&&t.each(function(l){l[Be]||r.walkSync(l)});else{var c=this.listeners[u];if(c&&this.visitSync(c,t.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},me(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}();Vt.registerPostcss=function(e){Io=e};var Au=Vt;Vt.default=Vt,Td.registerLazyResult(Vt),Rd.registerLazyResult(Vt);var Nd=ru,$d=_n,Fd=du,Ud=So,Bd=yo,Eo=function(){function e(i,t,r){t=t.toString(),this.stringified=!1,this._processor=i,this._css=t,this._opts=r,this._map=void 0;var o,s=$d;this.result=new Bd(this._processor,o,this._opts),this.result.css=t;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new Nd(s,o,this._opts,t);if(u.isMap()){var c=u.generate(),l=c[0],f=c[1];l&&(this.result.css=l),f&&(this.result.map=f)}else u.clearAnnotation(),this.result.css=u.css}var n=e.prototype;return n.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},n.catch=function(t){return this.async().catch(t)},n.finally=function(t){return this.async().then(t,t)},n.sync=function(){if(this.error)throw this.error;return this.result},n.then=function(t,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||Fd("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,r)},n.toString=function(){return this._css},n.warnings=function(){return[]},me(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 t,r=Ud;try{t=r(this._css,this._opts)}catch(o){this.error=o}if(this.error)throw this.error;return this._root=t,t}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),zd=Eo;Eo.default=Eo;var Wd=zd,qd=Au,Gd=vo,Vd=Sr,Er=function(){function e(i){i===void 0&&(i=[]),this.version="8.4.38",this.plugins=this.normalize(i)}var n=e.prototype;return n.normalize=function(t){for(var r=[],o=k(t),s;!(s=o()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":z(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":z(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":z(a))==="object"&&(a.parse||a.stringify)){if(process.env.NODE_ENV!=="production")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.")}else throw new Error(a+" is not a PostCSS plugin")}return r},n.process=function(t,r){return r===void 0&&(r={}),!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new Wd(this,t,r):new qd(this,t,r)},n.use=function(t){return this.plugins=this.plugins.concat(this.normalize([t])),this},e}(),jd=Er;Er.default=Er,Vd.registerProcessor(Er),Gd.registerProcessor(Er);var Hd=Sn,Yd=Ha,Kd=xn,Jd=bo,Xd=En,Zd=Sr,Qd=wo;function kr(e,n){if(Array.isArray(e))return e.map(function(f){return kr(f)});var i=e.inputs,t=ar(e,["inputs"]);if(i){n=[];for(var r=k(i),o;!(o=r()).done;){var s=o.value,a=j({},s,{__proto__:Xd.prototype});a.map&&(a.map=j({},a.map,{__proto__:Yd.prototype})),n.push(a)}}if(t.nodes&&(t.nodes=e.nodes.map(function(f){return kr(f,n)})),t.source){var u=t.source,c=u.inputId,l=ar(u,["inputId"]);t.source=l,c!=null&&(t.source.input=n[c])}if(t.type==="root")return new Zd(t);if(t.type==="decl")return new Hd(t);if(t.type==="rule")return new Qd(t);if(t.type==="comment")return new Kd(t);if(t.type==="atrule")return new Jd(t);throw new Error("Unknown node type: "+e.type)}var ev=kr;kr.default=kr;var tv=Qi,Mu=Sn,rv=Au,nv=wt,ko=jd,iv=_n,ov=ev,Tu=vo,sv=vu,Pu=xn,Lu=bo,av=yo,uv=En,cv=So,lv=Cu,Du=wo,Nu=Sr,fv=wn;function Z(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new ko(n)}Z.plugin=function(n,i){var t=!1;function r(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];console&&console.warn&&!t&&(t=!0,console.warn(n+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(n+": \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:\nhttps://www.w3ctech.com/topic/2226"));var c=i.apply(void 0,[].concat(a));return c.postcssPlugin=n,c.postcssVersion=new ko().version,c}var o;return Object.defineProperty(r,"postcss",{get:function(){return o||(o=r()),o}}),r.process=function(s,a,u){return Z([r(u)]).process(s,a)},r},Z.stringify=iv,Z.parse=cv,Z.fromJSON=ov,Z.list=lv,Z.comment=function(e){return new Pu(e)},Z.atRule=function(e){return new Lu(e)},Z.decl=function(e){return new Mu(e)},Z.rule=function(e){return new Du(e)},Z.root=function(e){return new Nu(e)},Z.document=function(e){return new Tu(e)},Z.CssSyntaxError=tv,Z.Declaration=Mu,Z.Container=nv,Z.Processor=ko,Z.Document=Tu,Z.Comment=Pu,Z.Warning=sv,Z.AtRule=Lu,Z.Result=av,Z.Input=uv,Z.Rule=Du,Z.Root=Nu,Z.Node=fv,rv.registerPostcss(Z);var hv=Z;Z.default=Z;var se=Cp(hv);se.stringify,se.fromJSON,se.plugin,se.parse,se.list,se.document,se.comment,se.atRule,se.rule,se.decl,se.root,se.CssSyntaxError,se.Declaration,se.Container,se.Processor,se.Document,se.Comment,se.Warning,se.AtRule,se.Result,se.Input,se.Rule,se.Root,se.Node;var pv=function(){function e(){for(var i=arguments.length,t=new Array(i),r=0;r<i;r++)t[r]=arguments[r];Pe(this,"parentElement",null),Pe(this,"parentNode",null),Pe(this,"ownerDocument"),Pe(this,"firstChild",null),Pe(this,"lastChild",null),Pe(this,"previousSibling",null),Pe(this,"nextSibling",null),Pe(this,"ELEMENT_NODE",1),Pe(this,"TEXT_NODE",3),Pe(this,"nodeType"),Pe(this,"nodeName"),Pe(this,"RRNodeType")}var n=e.prototype;return n.contains=function(t){if(N(t,e)){if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0}else return!1;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1},n.appendChild=function(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},n.insertBefore=function(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},n.removeChild=function(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},n.toString=function(){return"RRNode"},me(e,[{key:"childNodes",get:function(){for(var t=[],r=this.firstChild;r;)t.push(r),r=r.nextSibling;return t}}]),e}(),$u={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Fu={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Un={},dv=function(){return!!globalThis.Zone};function Oo(e){if(Un[e])return Un[e];var n=globalThis[e],i=n.prototype,t=e in $u?$u[e]:void 0,r=!!(t&&t.every(function(l){var f,p;return!!((p=(f=Object.getOwnPropertyDescriptor(i,l))==null?void 0:f.get)!=null&&p.toString().includes("[native code]"))})),o=e in Fu?Fu[e]:void 0,s=!!(o&&o.every(function(l){var f;return typeof i[l]=="function"&&((f=i[l])==null?void 0:f.toString().includes("[native code]"))}));if(r&&s&&!dv())return Un[e]=n.prototype,n.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return n.prototype;var c=u[e].prototype;return document.body.removeChild(a),c?Un[e]=c:i}catch(l){return i}}var xo={};function ot(e,n,i){var t,r=e+"."+String(i);if(xo[r])return xo[r].call(n);var o=Oo(e),s=(t=Object.getOwnPropertyDescriptor(o,i))==null?void 0:t.get;return s?(xo[r]=s,s.call(n)):n[i]}var Ro={};function Uu(e,n,i){var t=e+"."+String(i);if(Ro[t])return Ro[t].bind(n);var r=Oo(e),o=r[i];return typeof o!="function"?n[i]:(Ro[t]=o,o.bind(n))}function vv(e){return ot("Node",e,"childNodes")}function gv(e){return ot("Node",e,"parentNode")}function mv(e){return ot("Node",e,"parentElement")}function yv(e){return ot("Node",e,"textContent")}function _v(e,n){return Uu("Node",e,"contains")(n)}function bv(e){return Uu("Node",e,"getRootNode")()}function wv(e){return!e||!("host"in e)?null:ot("ShadowRoot",e,"host")}function Sv(e){return e.styleSheets}function Cv(e){return!e||!("shadowRoot"in e)?null:ot("Element",e,"shadowRoot")}function Iv(e,n){return ot("Element",e,"querySelector")(n)}function Ev(e,n){return ot("Element",e,"querySelectorAll")(n)}function Bu(){return Oo("MutationObserver").constructor}function St(e,n,i){try{if(!(n in e))return function(){};var t=e[n],r=i(t);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:t}})),e[n]=r,function(){e[n]=t}}catch(o){return function(){}}}var W={childNodes:vv,parentNode:gv,parentElement:mv,textContent:yv,contains:_v,getRootNode:bv,host:wv,styleSheets:Sv,shadowRoot:Cv,querySelector:Iv,querySelectorAll:Ev,mutationObserver:Bu,patch:St};function Se(e,n,i){i===void 0&&(i=document);var t={capture:!0,passive:!0};return i.addEventListener(e,n,t),function(){return i.removeEventListener(e,n,t)}}var jt="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.",zu={map:{},getId:function(){return console.error(jt),-1},getNode:function(){return console.error(jt),null},removeNodeFromMap:function(){console.error(jt)},has:function(){return console.error(jt),!1},reset:function(){console.error(jt)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(zu=new Proxy(zu,{get:function(n,i,t){return i==="map"&&console.error(jt),Reflect.get(n,i,t)}}));function Or(e,n,i){i===void 0&&(i={});var t=null,r=0;return function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];var u=Date.now();!r&&i.leading===!1&&(r=u);var c=n-(u-r),l=this;c<=0||c>n?(t&&(clearTimeout(t),t=null),r=u,e.apply(l,s)):!t&&i.trailing!==!1&&(t=setTimeout(function(){r=i.leading===!1?0:Date.now(),t=null,e.apply(l,s)},c))}}function Bn(e,n,i,t,r){r===void 0&&(r=window);var o=r.Object.getOwnPropertyDescriptor(e,n);return r.Object.defineProperty(e,n,t?i:{set:function(a){var u=this;setTimeout(function(){i.set.call(u,a)},0),o&&o.set&&o.set.call(this,a)}}),function(){return Bn(e,n,o||{},!0)}}var zn=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(zn=function(){return new Date().getTime()});function Wu(e){var n,i,t,r,o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:o.documentElement.scrollLeft||(o==null?void 0:o.body)&&((n=W.parentElement(o.body))==null?void 0:n.scrollLeft)||((i=o==null?void 0:o.body)==null?void 0:i.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:(o==null?void 0:o.documentElement.scrollTop)||(o==null?void 0:o.body)&&((t=W.parentElement(o.body))==null?void 0:t.scrollTop)||((r=o==null?void 0:o.body)==null?void 0:r.scrollTop)||0}}function qu(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Gu(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Vu(e){if(!e)return null;var n=e.nodeType===e.ELEMENT_NODE?e:W.parentElement(e);return n}function Ce(e,n,i,t){if(!e)return!1;var r=Vu(e);if(!r)return!1;try{if(typeof n=="string"){if(r.classList.contains(n)||t&&r.closest("."+n)!==null)return!0}else if(Xr(r,n,t))return!0}catch(o){}return!!(i&&(r.matches(i)||t&&r.closest(i)!==null))}function kv(e,n){return n.getId(e)!==-1}function Ao(e,n,i){return e.tagName==="TITLE"&&i.headTitleMutations?!0:n.getId(e)===hr}function ju(e,n){if(lr(e))return!1;var i=n.getId(e);if(!n.has(i))return!0;var t=W.parentNode(e);return t&&t.nodeType===e.DOCUMENT_NODE?!1:t?ju(t,n):!0}function Mo(e){return!!e.changedTouches}function Ov(e){e===void 0&&(e=window),"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Hu(e,n){return!!(e.nodeName==="IFRAME"&&n.getMeta(e))}function Yu(e,n){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&n.getMeta(e))}function To(e){return e?N(e,pv)&&"shadowRoot"in e?!!e.shadowRoot:!!W.shadowRoot(e):!1}var xv=function(){function e(){E(this,"id",1),E(this,"styleIDMap",new WeakMap),E(this,"idStyleMap",new Map)}var n=e.prototype;return n.getId=function(t){var r;return(r=this.styleIDMap.get(t))!=null?r:-1},n.has=function(t){return this.styleIDMap.has(t)},n.add=function(t,r){if(this.has(t))return this.getId(t);var o;return r===void 0?o=this.id++:o=r,this.styleIDMap.set(t,o),this.idStyleMap.set(o,t),o},n.getStyle=function(t){return this.idStyleMap.get(t)||null},n.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},n.generateId=function(){return this.id++},e}();function Ku(e){var n,i=null;return"getRootNode"in e&&((n=W.getRootNode(e))==null?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&W.host(W.getRootNode(e))&&(i=W.host(W.getRootNode(e))),i}function Rv(e){for(var n=e,i;i=Ku(n);)n=i;return n}function Av(e){var n=e.ownerDocument;if(!n)return!1;var i=Rv(e);return W.contains(n,i)}function Ju(e){var n=e.ownerDocument;return n?W.contains(n,e)||Av(e):!1}var q=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}(q||{}),T=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}(T||{}),ke=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}(ke||{}),Ye=function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e}(Ye||{}),Ht=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}(Ht||{}),Yt=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}(Yt||{}),Xu=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}(Xu||{});function Zu(e){return"__ln"in e}var Mv=function(){function e(){E(this,"length",0),E(this,"head",null),E(this,"tail",null)}var n=e.prototype;return n.get=function(t){if(t>=this.length)throw new Error("Position outside of list range");for(var r=this.head,o=0;o<t;o++)r=(r==null?void 0:r.next)||null;return r},n.addNode=function(t){var r={value:t,previous:null,next:null};if(t.__ln=r,t.previousSibling&&Zu(t.previousSibling)){var o=t.previousSibling.__ln.next;r.next=o,r.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=r,o&&(o.previous=r)}else if(t.nextSibling&&Zu(t.nextSibling)&&t.nextSibling.__ln.previous){var s=t.nextSibling.__ln.previous;r.previous=s,r.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=r,s&&(s.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++},n.removeNode=function(t){var r=t.__ln;this.head&&(r.previous?(r.previous.next=r.next,r.next?r.next.previous=r.previous:this.tail=r.previous):(this.head=r.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)},e}(),Qu=function(e,n){return e+"@"+n},Tv=function(){function e(){var i=this;E(this,"frozen",!1),E(this,"locked",!1),E(this,"texts",[]),E(this,"attributes",[]),E(this,"attributeMap",new WeakMap),E(this,"removes",[]),E(this,"mapRemoves",[]),E(this,"movedMap",{}),E(this,"addedSet",new Set),E(this,"movedSet",new Set),E(this,"droppedSet",new Set),E(this,"removesSubTreeCache",new Set),E(this,"mutationCb"),E(this,"blockClass"),E(this,"blockSelector"),E(this,"maskTextClass"),E(this,"maskTextSelector"),E(this,"inlineStylesheet"),E(this,"maskInputOptions"),E(this,"maskTextFn"),E(this,"maskInputFn"),E(this,"keepIframeSrcFn"),E(this,"recordCanvas"),E(this,"inlineImages"),E(this,"slimDOMOptions"),E(this,"dataURLOptions"),E(this,"doc"),E(this,"mirror"),E(this,"iframeManager"),E(this,"stylesheetManager"),E(this,"shadowDomManager"),E(this,"canvasManager"),E(this,"processedNodeManager"),E(this,"unattachedDoc"),E(this,"processMutations",function(t){t.forEach(i.processMutation),i.emit()}),E(this,"emit",function(){if(!(i.frozen||i.locked)){for(var t=[],r=new Set,o=new Mv,s=function(M){for(var B=M,K=hr;K===hr;)B=B&&B.nextSibling,K=B&&i.mirror.getId(B);return K},a=function(M){var B=W.parentNode(M);if(!(!B||!Ju(M))){var K=!1;if(M.nodeType===Node.TEXT_NODE){var Oe=B.tagName;if(Oe==="TEXTAREA")return;Oe==="STYLE"&&i.addedSet.has(B)&&(K=!0)}var J=lr(B)?i.mirror.getId(Ku(M)):i.mirror.getId(B),Ae=s(M);if(J===-1||Ae===-1)return o.addNode(M);var Ee=Ut(M,{doc:i.doc,mirror:i.mirror,blockClass:i.blockClass,blockSelector:i.blockSelector,maskTextClass:i.maskTextClass,maskTextSelector:i.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:i.inlineStylesheet,maskInputOptions:i.maskInputOptions,maskTextFn:i.maskTextFn,maskInputFn:i.maskInputFn,slimDOMOptions:i.slimDOMOptions,dataURLOptions:i.dataURLOptions,recordCanvas:i.recordCanvas,inlineImages:i.inlineImages,onSerialize:function(ae){Hu(ae,i.mirror)&&i.iframeManager.addIframe(ae),Yu(ae,i.mirror)&&i.stylesheetManager.trackLinkElement(ae),To(M)&&i.shadowDomManager.addShadowRoot(W.shadowRoot(M),i.doc)},onIframeLoad:function(ae,_e){i.iframeManager.attachIframe(ae,_e),i.shadowDomManager.observeAttachShadow(ae)},onStylesheetLoad:function(ae,_e){i.stylesheetManager.attachLinkElement(ae,_e)},cssCaptured:K});Ee&&(t.push({parentId:J,nextId:Ae,node:Ee}),r.add(Ee.id))}};i.mapRemoves.length;)i.mirror.removeNodeFromMap(i.mapRemoves.shift());for(var u=k(i.movedSet),c;!(c=u()).done;){var l=c.value;ec(i.removesSubTreeCache,l,i.mirror)&&!i.movedSet.has(W.parentNode(l))||a(l)}for(var f=k(i.addedSet),p;!(p=f()).done;){var g=p.value;!tc(i.droppedSet,g)&&!ec(i.removesSubTreeCache,g,i.mirror)||tc(i.movedSet,g)?a(g):i.droppedSet.add(g)}for(var d=null;o.length;){var y=null;if(d){var v=i.mirror.getId(W.parentNode(d.value)),m=s(d.value);v!==-1&&m!==-1&&(y=d)}if(!y)for(var _=o.tail;_;){var w=_;if(_=_.previous,w){var S=i.mirror.getId(W.parentNode(w.value)),C=s(w.value);if(C===-1)continue;if(S!==-1){y=w;break}else{var O=w.value,A=W.parentNode(O);if(A&&A.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var x=W.host(A),L=i.mirror.getId(x);if(L!==-1){y=w;break}}}}}if(!y){for(;o.head;)o.removeNode(o.head.value);break}d=y.previous,o.removeNode(y.value),a(y.value)}var H={texts:i.texts.map(function(M){var B=M.node,K=W.parentNode(B);return K&&K.tagName==="TEXTAREA"&&i.genTextAreaValueMutation(K),{id:i.mirror.getId(B),value:M.value}}).filter(function(M){return!r.has(M.id)}).filter(function(M){return i.mirror.has(M.id)}),attributes:i.attributes.map(function(M){var B=M.attributes;if(typeof B.style=="string"){var K=JSON.stringify(M.styleDiff),Oe=JSON.stringify(M._unchangedStyles);K.length<B.style.length&&(K+Oe).split("var(").length===B.style.split("var(").length&&(B.style=M.styleDiff)}return{id:i.mirror.getId(M.node),attributes:B}}).filter(function(M){return!r.has(M.id)}).filter(function(M){return i.mirror.has(M.id)}),removes:i.removes,adds:t};!H.texts.length&&!H.attributes.length&&!H.removes.length&&!H.adds.length||(i.texts=[],i.attributes=[],i.attributeMap=new WeakMap,i.removes=[],i.addedSet=new Set,i.movedSet=new Set,i.droppedSet=new Set,i.removesSubTreeCache=new Set,i.movedMap={},i.mutationCb(H))}}),E(this,"genTextAreaValueMutation",function(t){var r=i.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},i.attributes.push(r),i.attributeMap.set(t,r));var o=Array.from(W.childNodes(t),function(s){return W.textContent(s)||""}).join("");r.attributes.value=Hr({element:t,maskInputOptions:i.maskInputOptions,tagName:t.tagName,type:Yr(t),value:o,maskInputFn:i.maskInputFn})}),E(this,"processMutation",function(t){if(!Ao(t.target,i.mirror,i.slimDOMOptions))switch(t.type){case"characterData":{var r=W.textContent(t.target);!Ce(t.target,i.blockClass,i.blockSelector,!1)&&r!==t.oldValue&&i.texts.push({value:Ws(t.target,i.maskTextClass,i.maskTextSelector,!0)&&r?i.maskTextFn?i.maskTextFn(r,Vu(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{var o=t.target,s=t.attributeName,a=t.target.getAttribute(s);if(s==="value"){var u=Yr(o);a=Hr({element:o,maskInputOptions:i.maskInputOptions,tagName:o.tagName,type:u,value:a,maskInputFn:i.maskInputFn})}if(Ce(t.target,i.blockClass,i.blockSelector,!1)||a===t.oldValue)return;var c=i.attributeMap.get(t.target);if(o.tagName==="IFRAME"&&s==="src"&&!i.keepIframeSrcFn(a))if(!o.contentDocument)s="rr_src";else return;if(c||(c={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},i.attributes.push(c),i.attributeMap.set(t.target,c)),s==="type"&&o.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&o.setAttribute("data-rr-is-password","true"),!zs(o.tagName,s))if(c.attributes[s]=Bs(i.doc,_t(o.tagName),_t(s),a),s==="style"){if(!i.unattachedDoc)try{i.unattachedDoc=document.implementation.createHTMLDocument()}catch(w){i.unattachedDoc=i.doc}var l=i.unattachedDoc.createElement("span");t.oldValue&&l.setAttribute("style",t.oldValue);for(var f=k(Array.from(o.style)),p;!(p=f()).done;){var g=p.value,d=o.style.getPropertyValue(g),y=o.style.getPropertyPriority(g);d!==l.style.getPropertyValue(g)||y!==l.style.getPropertyPriority(g)?y===""?c.styleDiff[g]=d:c.styleDiff[g]=[d,y]:c._unchangedStyles[g]=[d,y]}for(var v=k(Array.from(l.style)),m;!(m=v()).done;){var _=m.value;o.style.getPropertyValue(_)===""&&(c.styleDiff[_]=!1)}}else s==="open"&&o.tagName==="DIALOG"&&(o.matches("dialog:modal")?c.attributes.rr_open_mode="modal":c.attributes.rr_open_mode="non-modal");break}case"childList":{if(Ce(t.target,i.blockClass,i.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){i.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(function(w){return i.genAdds(w,t.target)}),t.removedNodes.forEach(function(w){var S=i.mirror.getId(w),C=lr(t.target)?i.mirror.getId(W.host(t.target)):i.mirror.getId(t.target);Ce(t.target,i.blockClass,i.blockSelector,!1)||Ao(w,i.mirror,i.slimDOMOptions)||!kv(w,i.mirror)||(i.addedSet.has(w)?(Po(i.addedSet,w),i.droppedSet.add(w)):i.addedSet.has(t.target)&&S===-1||ju(t.target,i.mirror)||(i.movedSet.has(w)&&i.movedMap[Qu(S,C)]?Po(i.movedSet,w):(i.removes.push({parentId:C,id:S,isShadow:lr(t.target)&&fr(t.target)?!0:void 0}),Pv(w,i.removesSubTreeCache))),i.mapRemoves.push(w))});break}}}),E(this,"genAdds",function(t,r){if(!i.processedNodeManager.inOtherBuffer(t,i)&&!(i.addedSet.has(t)||i.movedSet.has(t))){if(i.mirror.hasNode(t)){if(Ao(t,i.mirror,i.slimDOMOptions))return;i.movedSet.add(t);var o=null;r&&i.mirror.hasNode(r)&&(o=i.mirror.getId(r)),o&&o!==-1&&(i.movedMap[Qu(i.mirror.getId(t),o)]=!0)}else i.addedSet.add(t),i.droppedSet.delete(t);Ce(t,i.blockClass,i.blockSelector,!1)||(W.childNodes(t).forEach(function(s){return i.genAdds(s)}),To(t)&&W.childNodes(W.shadowRoot(t)).forEach(function(s){i.processedNodeManager.add(s,i),i.genAdds(s,t)}))}})}var n=e.prototype;return n.init=function(t){var r=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(o){r[o]=t[o]})},n.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},n.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},n.isFrozen=function(){return this.frozen},n.lock=function(){this.locked=!0,this.canvasManager.lock()},n.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},n.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},e}();function Po(e,n){e.delete(n),W.childNodes(n).forEach(function(i){return Po(e,i)})}function Pv(e,n){for(var i=[e];i.length;){var t=i.pop();n.has(t)||(n.add(t),W.childNodes(t).forEach(function(r){return i.push(r)}))}}function ec(e,n,i){return e.size===0?!1:Lv(e,n)}function Lv(e,n,i){var t=W.parentNode(n);return t?e.has(t):!1}function tc(e,n){return e.size===0?!1:rc(e,n)}function rc(e,n){var i=W.parentNode(n);return i?e.has(i)?!0:rc(e,i):!1}var xr;function Dv(e){xr=e}function Nv(){xr=void 0}var V=function(e){if(!xr)return e;var n=function(){for(var i=arguments.length,t=new Array(i),r=0;r<i;r++)t[r]=arguments[r];try{return e.apply(void 0,[].concat(t))}catch(o){if(xr&&xr(o)===!0)return;throw o}};return n},Ct=[];function Rr(e){try{if("composedPath"in e){var n=e.composedPath();if(n.length)return n[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(i){}return e&&e.target}function nc(e,n){var i=new Tv;Ct.push(i),i.init(e);var t=new(Bu())(V(i.processMutations.bind(i)));return t.observe(n,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),t}function $v(e){var n=e.mousemoveCb,i=e.sampling,t=e.doc,r=e.mirror;if(i.mousemove===!1)return function(){};var o=typeof i.mousemove=="number"?i.mousemove:50,s=typeof i.mousemoveCallback=="number"?i.mousemoveCallback:500,a=[],u,c=Or(V(function(p){var g=Date.now()-u;n(a.map(function(d){return d.timeOffset-=g,d}),p),a=[],u=null}),s),l=V(Or(V(function(p){var g=Rr(p),d=Mo(p)?p.changedTouches[0]:p,y=d.clientX,v=d.clientY;u||(u=zn()),a.push({x:y,y:v,id:r.getId(g),timeOffset:zn()-u}),c(typeof DragEvent!="undefined"&&N(p,DragEvent)?T.Drag:N(p,MouseEvent)?T.MouseMove:T.TouchMove)}),o,{trailing:!1})),f=[Se("mousemove",l,t),Se("touchmove",l,t),Se("drag",l,t)];return V(function(){f.forEach(function(p){return p()})})}function Fv(e){var n=e.mouseInteractionCb,i=e.doc,t=e.mirror,r=e.blockClass,o=e.blockSelector,s=e.sampling;if(s.mouseInteraction===!1)return function(){};var a=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,u=[],c=null,l=function(f){return function(p){var g=Rr(p);if(!Ce(g,r,o,!0)){var d=null,y=f;if("pointerType"in p){switch(p.pointerType){case"mouse":d=Ye.Mouse;break;case"touch":d=Ye.Touch;break;case"pen":d=Ye.Pen;break}d===Ye.Touch?ke[f]===ke.MouseDown?y="TouchStart":ke[f]===ke.MouseUp&&(y="TouchEnd"):Ye.Pen}else Mo(p)&&(d=Ye.Touch);d!==null?(c=d,(y.startsWith("Touch")&&d===Ye.Touch||y.startsWith("Mouse")&&d===Ye.Mouse)&&(d=null)):ke[f]===ke.Click&&(d=c,c=null);var v=Mo(p)?p.changedTouches[0]:p;if(v){var m=t.getId(g),_=v.clientX,w=v.clientY;V(n)(j({type:ke[y],id:m,x:_,y:w},d!==null&&{pointerType:d}))}}}};return Object.keys(ke).filter(function(f){return Number.isNaN(Number(f))&&!f.endsWith("_Departed")&&a[f]!==!1}).forEach(function(f){var p=_t(f),g=l(f);if(window.PointerEvent)switch(ke[f]){case ke.MouseDown:case ke.MouseUp:p=p.replace("mouse","pointer");break;case ke.TouchStart:case ke.TouchEnd:return}u.push(Se(p,g,i))}),V(function(){u.forEach(function(f){return f()})})}function ic(e){var n=e.scrollCb,i=e.doc,t=e.mirror,r=e.blockClass,o=e.blockSelector,s=e.sampling,a=V(Or(V(function(u){var c=Rr(u);if(!(!c||Ce(c,r,o,!0))){var l=t.getId(c);if(c===i&&i.defaultView){var f=Wu(i.defaultView);n({id:l,x:f.left,y:f.top})}else n({id:l,x:c.scrollLeft,y:c.scrollTop})}}),s.scroll||100));return Se("scroll",a,i)}function Uv(e,n){var i=e.viewportResizeCb,t=n.win,r=-1,o=-1,s=V(Or(V(function(){var a=qu(),u=Gu();(r!==a||o!==u)&&(i({width:Number(u),height:Number(a)}),r=a,o=u)}),200));return Se("resize",s,t)}var Bv=["INPUT","TEXTAREA","SELECT"],oc=new WeakMap;function zv(e){var n=e.inputCb,i=e.doc,t=e.mirror,r=e.blockClass,o=e.blockSelector,s=e.ignoreClass,a=e.ignoreSelector,u=e.maskInputOptions,c=e.maskInputFn,l=e.sampling,f=e.userTriggeredOnInput;function p(S){var C=Rr(S),O=S.isTrusted,A=C&&C.tagName;if(C&&A==="OPTION"&&(C=W.parentElement(C)),!(!C||!A||Bv.indexOf(A)<0||Ce(C,r,o,!0))&&!(C.classList.contains(s)||a&&C.matches(a))){var x=C.value,L=!1,H=Yr(C)||"";H==="radio"||H==="checkbox"?L=C.checked:(u[A.toLowerCase()]||u[H])&&(x=Hr({element:C,maskInputOptions:u,tagName:A,type:H,value:x,maskInputFn:c})),g(C,f?{text:x,isChecked:L,userTriggered:O}:{text:x,isChecked:L});var M=C.name;H==="radio"&&M&&L&&i.querySelectorAll('input[type="radio"][name="'+M+'"]').forEach(function(B){if(B!==C){var K=B.value;g(B,f?{text:K,isChecked:!L,userTriggered:!1}:{text:K,isChecked:!L})}})}}function g(S,C){var O=oc.get(S);if(!O||O.text!==C.text||O.isChecked!==C.isChecked){oc.set(S,C);var A=t.getId(S);V(n)(j({},C,{id:A}))}}var d=l.input==="last"?["change"]:["input","change"],y=d.map(function(S){return Se(S,V(p),i)}),v=i.defaultView;if(!v)return function(){y.forEach(function(S){return S()})};var m=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),_=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]];if(m&&m.set){var w;(w=y).push.apply(w,[].concat(_.map(function(S){return Bn(S[0],S[1],{set:function(){V(p)({target:this,isTrusted:!1})}},!1,v)})))}return V(function(){y.forEach(function(S){return S()})})}function Wn(e){var n=[];function i(t,r){if(qn("CSSGroupingRule")&&N(t.parentRule,CSSGroupingRule)||qn("CSSMediaRule")&&N(t.parentRule,CSSMediaRule)||qn("CSSSupportsRule")&&N(t.parentRule,CSSSupportsRule)||qn("CSSConditionRule")&&N(t.parentRule,CSSConditionRule)){var o=Array.from(t.parentRule.cssRules),s=o.indexOf(t);r.unshift(s)}else if(t.parentStyleSheet){var a=Array.from(t.parentStyleSheet.cssRules),u=a.indexOf(t);r.unshift(u)}return r}return i(e,n)}function st(e,n,i){var t,r;return e?(e.ownerNode?t=n.getId(e.ownerNode):r=i.getId(e),{styleId:r,id:t}):{}}function Wv(e,n){var i=e.styleSheetRuleCb,t=e.mirror,r=e.stylesheetManager,o=n.win;if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return function(){};var s=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:V(function(p,g,d){var y=d[0],v=d[1],m=st(g,t,r.styleMirror),_=m.id,w=m.styleId;return(_&&_!==-1||w&&w!==-1)&&i({id:_,styleId:w,adds:[{rule:y,index:v}]}),p.apply(g,d)})}),o.CSSStyleSheet.prototype.addRule=function(p,g,d){d===void 0&&(d=this.cssRules.length);var y=p+" { "+g+" }";return o.CSSStyleSheet.prototype.insertRule.apply(this,[y,d])};var a=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:V(function(p,g,d){var y=d[0],v=st(g,t,r.styleMirror),m=v.id,_=v.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,removes:[{index:y}]}),p.apply(g,d)})}),o.CSSStyleSheet.prototype.removeRule=function(p){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[p])};var u;o.CSSStyleSheet.prototype.replace&&(u=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(u,{apply:V(function(p,g,d){var y=d[0],v=st(g,t,r.styleMirror),m=v.id,_=v.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,replace:y}),p.apply(g,d)})}));var c;o.CSSStyleSheet.prototype.replaceSync&&(c=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:V(function(p,g,d){var y=d[0],v=st(g,t,r.styleMirror),m=v.id,_=v.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,replaceSync:y}),p.apply(g,d)})}));var l={};Gn("CSSGroupingRule")?l.CSSGroupingRule=o.CSSGroupingRule:(Gn("CSSMediaRule")&&(l.CSSMediaRule=o.CSSMediaRule),Gn("CSSConditionRule")&&(l.CSSConditionRule=o.CSSConditionRule),Gn("CSSSupportsRule")&&(l.CSSSupportsRule=o.CSSSupportsRule));var f={};return Object.entries(l).forEach(function(p){var g=p[0],d=p[1];f[g]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(f[g].insertRule,{apply:V(function(y,v,m){var _=m[0],w=m[1],S=st(v.parentStyleSheet,t,r.styleMirror),C=S.id,O=S.styleId;return(C&&C!==-1||O&&O!==-1)&&i({id:C,styleId:O,adds:[{rule:_,index:[].concat(Wn(v),[w||0])}]}),y.apply(v,m)})}),d.prototype.deleteRule=new Proxy(f[g].deleteRule,{apply:V(function(y,v,m){var _=m[0],w=st(v.parentStyleSheet,t,r.styleMirror),S=w.id,C=w.styleId;return(S&&S!==-1||C&&C!==-1)&&i({id:S,styleId:C,removes:[{index:[].concat(Wn(v),[_])}]}),y.apply(v,m)})})}),V(function(){o.CSSStyleSheet.prototype.insertRule=s,o.CSSStyleSheet.prototype.deleteRule=a,u&&(o.CSSStyleSheet.prototype.replace=u),c&&(o.CSSStyleSheet.prototype.replaceSync=c),Object.entries(l).forEach(function(p){var g=p[0],d=p[1];d.prototype.insertRule=f[g].insertRule,d.prototype.deleteRule=f[g].deleteRule})})}function sc(e,n){var i=e.mirror,t=e.stylesheetManager,r,o,s,a=null;n.nodeName==="#document"?a=i.getId(n):a=i.getId(W.host(n));var u=n.nodeName==="#document"?(r=n.defaultView)==null?void 0:r.Document:(s=(o=n.ownerDocument)==null?void 0:o.defaultView)==null?void 0:s.ShadowRoot,c=u!=null&&u.prototype?Object.getOwnPropertyDescriptor(u==null?void 0:u.prototype,"adoptedStyleSheets"):void 0;return a===null||a===-1||!u||!c?function(){}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:function(){var f;return(f=c.get)==null?void 0:f.call(this)},set:function(f){var p,g=(p=c.set)==null?void 0:p.call(this,f);if(a!==null&&a!==-1)try{t.adoptStyleSheets(f,a)}catch(d){}return g}}),V(function(){Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}))}function qv(e,n){var i=e.styleDeclarationCb,t=e.mirror,r=e.ignoreCSSAttributes,o=e.stylesheetManager,s=n.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:V(function(c,l,f){var p,g=f[0],d=f[1],y=f[2];if(r.has(g))return a.apply(l,[g,d,y]);var v=st((p=l.parentRule)==null?void 0:p.parentStyleSheet,t,o.styleMirror),m=v.id,_=v.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,set:{property:g,value:d,priority:y},index:Wn(l.parentRule)}),c.apply(l,f)})});var u=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:V(function(c,l,f){var p,g=f[0];if(r.has(g))return u.apply(l,[g]);var d=st((p=l.parentRule)==null?void 0:p.parentStyleSheet,t,o.styleMirror),y=d.id,v=d.styleId;return(y&&y!==-1||v&&v!==-1)&&i({id:y,styleId:v,remove:{property:g},index:Wn(l.parentRule)}),c.apply(l,f)})}),V(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=u})}function Gv(e){var n=e.mediaInteractionCb,i=e.blockClass,t=e.blockSelector,r=e.mirror,o=e.sampling,s=e.doc,a=V(function(c){return Or(V(function(l){var f=Rr(l);if(!(!f||Ce(f,i,t,!0))){var p=f.currentTime,g=f.volume,d=f.muted,y=f.playbackRate,v=f.loop;n({type:c,id:r.getId(f),currentTime:p,volume:g,muted:d,playbackRate:y,loop:v})}}),o.media||500)}),u=[Se("play",a(Yt.Play),s),Se("pause",a(Yt.Pause),s),Se("seeked",a(Yt.Seeked),s),Se("volumechange",a(Yt.VolumeChange),s),Se("ratechange",a(Yt.RateChange),s)];return V(function(){u.forEach(function(c){return c()})})}function Vv(e){var n=e.fontCb,i=e.doc,t=i.defaultView;if(!t)return function(){};var r=[],o=new WeakMap,s=t.FontFace;t.FontFace=function(c,l,f){var p=new s(c,l,f);return o.set(p,{family:c,buffer:typeof l!="string",descriptors:f,fontSource:typeof l=="string"?l:JSON.stringify(Array.from(new Uint8Array(l)))}),p};var a=St(i.fonts,"add",function(u){return function(c){return setTimeout(V(function(){var l=o.get(c);l&&(n(l),o.delete(c))}),0),u.apply(this,[c])}});return r.push(function(){t.FontFace=s}),r.push(a),V(function(){r.forEach(function(u){return u()})})}function jv(e){var n=e.doc,i=e.mirror,t=e.blockClass,r=e.blockSelector,o=e.selectionCb,s=!0,a=V(function(){var u=n.getSelection();if(!(!u||s&&(u!=null&&u.isCollapsed))){s=u.isCollapsed||!1;for(var c=[],l=u.rangeCount||0,f=0;f<l;f++){var p=u.getRangeAt(f),g=p.startContainer,d=p.startOffset,y=p.endContainer,v=p.endOffset,m=Ce(g,t,r,!0)||Ce(y,t,r,!0);m||c.push({start:i.getId(g),startOffset:d,end:i.getId(y),endOffset:v})}o({ranges:c})}});return a(),Se("selectionchange",a)}function Hv(e){var n=e.doc,i=e.customElementCb,t=n.defaultView;if(!t||!t.customElements)return function(){};var r=St(t.customElements,"define",function(o){return function(s,a,u){try{i({define:{name:s}})}catch(c){console.warn("Custom element callback failed for "+s)}return o.apply(this,[s,a,u])}});return r}function Yv(e,n){var i=e.mutationCb,t=e.mousemoveCb,r=e.mouseInteractionCb,o=e.scrollCb,s=e.viewportResizeCb,a=e.inputCb,u=e.mediaInteractionCb,c=e.styleSheetRuleCb,l=e.styleDeclarationCb,f=e.canvasMutationCb,p=e.fontCb,g=e.selectionCb,d=e.customElementCb;e.mutationCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.mutation){var _;(_=n).mutation.apply(_,[].concat(v))}i.apply(void 0,[].concat(v))},e.mousemoveCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.mousemove){var _;(_=n).mousemove.apply(_,[].concat(v))}t.apply(void 0,[].concat(v))},e.mouseInteractionCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.mouseInteraction){var _;(_=n).mouseInteraction.apply(_,[].concat(v))}r.apply(void 0,[].concat(v))},e.scrollCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.scroll){var _;(_=n).scroll.apply(_,[].concat(v))}o.apply(void 0,[].concat(v))},e.viewportResizeCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.viewportResize){var _;(_=n).viewportResize.apply(_,[].concat(v))}s.apply(void 0,[].concat(v))},e.inputCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.input){var _;(_=n).input.apply(_,[].concat(v))}a.apply(void 0,[].concat(v))},e.mediaInteractionCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.mediaInteaction){var _;(_=n).mediaInteaction.apply(_,[].concat(v))}u.apply(void 0,[].concat(v))},e.styleSheetRuleCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.styleSheetRule){var _;(_=n).styleSheetRule.apply(_,[].concat(v))}c.apply(void 0,[].concat(v))},e.styleDeclarationCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.styleDeclaration){var _;(_=n).styleDeclaration.apply(_,[].concat(v))}l.apply(void 0,[].concat(v))},e.canvasMutationCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.canvasMutation){var _;(_=n).canvasMutation.apply(_,[].concat(v))}f.apply(void 0,[].concat(v))},e.fontCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.font){var _;(_=n).font.apply(_,[].concat(v))}p.apply(void 0,[].concat(v))},e.selectionCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.selection){var _;(_=n).selection.apply(_,[].concat(v))}g.apply(void 0,[].concat(v))},e.customElementCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.customElement){var _;(_=n).customElement.apply(_,[].concat(v))}d.apply(void 0,[].concat(v))}}function Kv(e,n){n===void 0&&(n={});var i=e.doc.defaultView;if(!i)return function(){};Yv(e,n);var t;e.recordDOM&&(t=nc(e,e.doc));var r=$v(e),o=Fv(e),s=ic(e),a=Uv(e,{win:i}),u=zv(e),c=Gv(e),l=function(){},f=function(){},p=function(){},g=function(){};e.recordDOM&&(l=Wv(e,{win:i}),f=sc(e,e.doc),p=qv(e,{win:i}),e.collectFonts&&(g=Vv(e)));for(var d=jv(e),y=Hv(e),v=[],m=k(e.plugins),_;!(_=m()).done;){var w=_.value;v.push(w.observer(w.callback,i,w.options))}return V(function(){Ct.forEach(function(S){return S.reset()}),t==null||t.disconnect(),r(),o(),s(),a(),u(),c(),l(),f(),p(),g(),d(),y(),v.forEach(function(S){return S()})})}function qn(e){return typeof window[e]!="undefined"}function Gn(e){return!!(typeof window[e]!="undefined"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var ac=function(){function e(i){E(this,"iframeIdToRemoteIdMap",new WeakMap),E(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=i}var n=e.prototype;return n.getId=function(t,r,o,s){var a=o||this.getIdToRemoteIdMap(t),u=s||this.getRemoteIdToIdMap(t),c=a.get(r);return c||(c=this.generateIdFn(),a.set(r,c),u.set(c,r)),c},n.getIds=function(t,r){var o=this,s=this.getIdToRemoteIdMap(t),a=this.getRemoteIdToIdMap(t);return r.map(function(u){return o.getId(t,u,s,a)})},n.getRemoteId=function(t,r,o){var s=o||this.getRemoteIdToIdMap(t);if(typeof r!="number")return r;var a=s.get(r);return a||-1},n.getRemoteIds=function(t,r){var o=this,s=this.getRemoteIdToIdMap(t);return r.map(function(a){return o.getRemoteId(t,a,s)})},n.reset=function(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)},n.getIdToRemoteIdMap=function(t){var r=this.iframeIdToRemoteIdMap.get(t);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(t,r)),r},n.getRemoteIdToIdMap=function(t){var r=this.iframeRemoteIdToIdMap.get(t);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(t,r)),r},e}(),Jv=function(){function e(i){E(this,"iframes",new WeakMap),E(this,"crossOriginIframeMap",new WeakMap),E(this,"crossOriginIframeMirror",new ac($s)),E(this,"crossOriginIframeStyleMirror"),E(this,"crossOriginIframeRootIdMap",new WeakMap),E(this,"mirror"),E(this,"mutationCb"),E(this,"wrappedEmit"),E(this,"loadListener"),E(this,"stylesheetManager"),E(this,"recordCrossOriginIframes"),this.mutationCb=i.mutationCb,this.wrappedEmit=i.wrappedEmit,this.stylesheetManager=i.stylesheetManager,this.recordCrossOriginIframes=i.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new ac(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=i.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var n=e.prototype;return n.addIframe=function(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)},n.addLoadListener=function(t){this.loadListener=t},n.attachIframe=function(t,r){var o,s;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((o=t.contentWindow)==null||o.addEventListener("message",this.handleMessage.bind(this))),(s=this.loadListener)==null||s.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))},n.handleMessage=function(t){var r=t;if(!(r.data.type!=="rrweb"||r.origin!==r.data.origin)){var o=t.source;if(o){var s=this.crossOriginIframeMap.get(t.source);if(s){var a=this.transformCrossOriginEvent(s,r.data.event);a&&this.wrappedEmit(a,r.data.isCheckout)}}}},n.transformCrossOriginEvent=function(t,r){var o=this,s;switch(r.type){case q.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(r.data.node,t);var a=r.data.node.id;return this.crossOriginIframeRootIdMap.set(t,a),this.patchRootIdOnNode(r.data.node,a),{timestamp:r.timestamp,type:q.IncrementalSnapshot,data:{source:T.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case q.Meta:case q.Load:case q.DomContentLoaded:return!1;case q.Plugin:return r;case q.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case q.IncrementalSnapshot:switch(r.data.source){case T.Mutation:return r.data.adds.forEach(function(u){o.replaceIds(u,t,["parentId","nextId","previousId"]),o.replaceIdOnNode(u.node,t);var c=o.crossOriginIframeRootIdMap.get(t);c&&o.patchRootIdOnNode(u.node,c)}),r.data.removes.forEach(function(u){o.replaceIds(u,t,["parentId","id"])}),r.data.attributes.forEach(function(u){o.replaceIds(u,t,["id"])}),r.data.texts.forEach(function(u){o.replaceIds(u,t,["id"])}),r;case T.Drag:case T.TouchMove:case T.MouseMove:return r.data.positions.forEach(function(u){o.replaceIds(u,t,["id"])}),r;case T.ViewportResize:return!1;case T.MediaInteraction:case T.MouseInteraction:case T.Scroll:case T.CanvasMutation:case T.Input:return this.replaceIds(r.data,t,["id"]),r;case T.StyleSheetRule:case T.StyleDeclaration:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleId"]),r;case T.Font:return r;case T.Selection:return r.data.ranges.forEach(function(u){o.replaceIds(u,t,["start","end"])}),r;case T.AdoptedStyleSheet:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleIds"]),(s=r.data.styles)==null||s.forEach(function(u){o.replaceStyleIds(u,t,["styleId"])}),r}}return!1},n.replace=function(t,r,o,s){for(var a=k(s),u;!(u=a()).done;){var c=u.value;!Array.isArray(r[c])&&typeof r[c]!="number"||(Array.isArray(r[c])?r[c]=t.getIds(o,r[c]):r[c]=t.getId(o,r[c]))}return r},n.replaceIds=function(t,r,o){return this.replace(this.crossOriginIframeMirror,t,r,o)},n.replaceStyleIds=function(t,r,o){return this.replace(this.crossOriginIframeStyleMirror,t,r,o)},n.replaceIdOnNode=function(t,r){var o=this;this.replaceIds(t,r,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(function(s){o.replaceIdOnNode(s,r)})},n.patchRootIdOnNode=function(t,r){var o=this;t.type!==Xu.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(function(s){o.patchRootIdOnNode(s,r)})},e}(),Xv=function(){function e(i){E(this,"shadowDoms",new WeakSet),E(this,"mutationCb"),E(this,"scrollCb"),E(this,"bypassOptions"),E(this,"mirror"),E(this,"restoreHandlers",[]),this.mutationCb=i.mutationCb,this.scrollCb=i.scrollCb,this.bypassOptions=i.bypassOptions,this.mirror=i.mirror,this.init()}var n=e.prototype;return n.init=function(){this.reset(),this.patchAttachShadow(Element,document)},n.addShadowRoot=function(t,r){var o=this;if(fr(t)&&!this.shadowDoms.has(t)){this.shadowDoms.add(t);var s=nc(j({},this.bypassOptions,{doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t);this.restoreHandlers.push(function(){return s.disconnect()}),this.restoreHandlers.push(ic(j({},this.bypassOptions,{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))),setTimeout(function(){t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&o.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,o.mirror.getId(W.host(t))),o.restoreHandlers.push(sc({mirror:o.mirror,stylesheetManager:o.bypassOptions.stylesheetManager},t))},0)}},n.observeAttachShadow=function(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)},n.patchAttachShadow=function(t,r){var o=this;this.restoreHandlers.push(St(t.prototype,"attachShadow",function(s){return function(a){var u=s.call(this,a),c=W.shadowRoot(this);return c&&Ju(this)&&o.addShadowRoot(c,r),u}}))},n.reset=function(){this.restoreHandlers.forEach(function(t){try{t()}catch(r){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),Kt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zv=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Vn=0;Vn<Kt.length;Vn++)Zv[Kt.charCodeAt(Vn)]=Vn;var Qv=function(n){var i=new Uint8Array(n),t,r=i.length,o="";for(t=0;t<r;t+=3)o+=Kt[i[t]>>2],o+=Kt[(i[t]&3)<<4|i[t+1]>>4],o+=Kt[(i[t+1]&15)<<2|i[t+2]>>6],o+=Kt[i[t+2]&63];return r%3===2?o=o.substring(0,o.length-1)+"=":r%3===1&&(o=o.substring(0,o.length-2)+"=="),o},uc=new Map;function eg(e,n){var i=uc.get(e);return i||(i=new Map,uc.set(e,i)),i.has(n)||i.set(n,[]),i.get(n)}var cc=function(e,n,i){if(!(!e||!(fc(e,n)||(typeof e=="undefined"?"undefined":z(e))==="object"))){var t=e.constructor.name,r=eg(i,t),o=r.indexOf(e);return o===-1&&(o=r.length,r.push(e)),o}};function jn(e,n,i){if(N(e,Array))return e.map(function(d){return jn(d,n,i)});if(e===null)return e;if(N(e,Float32Array)||N(e,Float64Array)||N(e,Int32Array)||N(e,Uint32Array)||N(e,Uint8Array)||N(e,Uint16Array)||N(e,Int16Array)||N(e,Int8Array)||N(e,Uint8ClampedArray)){var t=e.constructor.name;return{rr_type:t,args:[Object.values(e)]}}else if(N(e,ArrayBuffer)){var r=e.constructor.name,o=Qv(e);return{rr_type:r,base64:o}}else if(N(e,DataView)){var s=e.constructor.name;return{rr_type:s,args:[jn(e.buffer,n,i),e.byteOffset,e.byteLength]}}else if(N(e,HTMLImageElement)){var a=e.constructor.name,u=e.src;return{rr_type:a,src:u}}else if(N(e,HTMLCanvasElement)){var c="HTMLImageElement",l=e.toDataURL();return{rr_type:c,src:l}}else if(N(e,ImageData)){var f=e.constructor.name;return{rr_type:f,args:[jn(e.data,n,i),e.width,e.height]}}else if(fc(e,n)||(typeof e=="undefined"?"undefined":z(e))==="object"){var p=e.constructor.name,g=cc(e,n,i);return{rr_type:p,index:g}}return e}var lc=function(e,n,i){return e.map(function(t){return jn(t,n,i)})},fc=function(e,n){var i=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],t=i.filter(function(r){return typeof n[r]=="function"});return!!t.find(function(r){return N(e,n[r])})};function tg(e,n,i,t){for(var r=function(){var c=u.value;try{if(typeof n.CanvasRenderingContext2D.prototype[c]!="function")return"continue";var l=St(n.CanvasRenderingContext2D.prototype,c,function(p){return function(){for(var g=this,d=arguments.length,y=new Array(d),v=0;v<d;v++)y[v]=arguments[v];return Ce(this.canvas,i,t,!0)||setTimeout(function(){var m=lc(y,n,g);e(g.canvas,{type:Ht["2D"],property:c,args:m})},0),p.apply(this,y)}});o.push(l)}catch(p){var f=Bn(n.CanvasRenderingContext2D.prototype,c,{set:function(d){e(this.canvas,{type:Ht["2D"],property:c,args:[d],setter:!0})}});o.push(f)}},o=[],s=Object.getOwnPropertyNames(n.CanvasRenderingContext2D.prototype),a=k(s),u;!(u=a()).done;)r();return function(){o.forEach(function(c){return c()})}}function rg(e){return e==="experimental-webgl"?"webgl":e}function hc(e,n,i,t){var r=[];try{var o=St(e.HTMLCanvasElement.prototype,"getContext",function(s){return function(a){for(var u=arguments.length,c=new Array(u>1?u-1:0),l=1;l<u;l++)c[l-1]=arguments[l];if(!Ce(this,n,i,!0)){var f=rg(a);if("__context"in this||(this.__context=f),t&&["webgl","webgl2"].includes(f))if(c[0]&&z(c[0])==="object"){var p=c[0];p.preserveDrawingBuffer||(p.preserveDrawingBuffer=!0)}else c.splice(0,1,{preserveDrawingBuffer:!0})}return s.apply(this,[].concat([a],c))}});r.push(o)}catch(s){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){r.forEach(function(s){return s()})}}function pc(e,n,i,t,r,o){for(var s=function(){var f=l.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(f))return"continue";try{if(typeof e[f]!="function")return"continue";var p=St(e,f,function(d){return function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];var _=d.apply(this,v);if(cc(_,o,this),"tagName"in this.canvas&&!Ce(this.canvas,t,r,!0)){var w=lc(v,o,this),S={type:n,property:f,args:w};i(this.canvas,S)}return _}});a.push(p)}catch(d){var g=Bn(e,f,{set:function(v){i(this.canvas,{type:n,property:f,args:[v],setter:!0})}});a.push(g)}},a=[],u=Object.getOwnPropertyNames(e),c=k(u),l;!(l=c()).done;)s();return a}function ng(e,n,i,t){var r,o=[];if((r=o).push.apply(r,[].concat(pc(n.WebGLRenderingContext.prototype,Ht.WebGL,e,i,t,n))),typeof n.WebGL2RenderingContext!="undefined"){var s;(s=o).push.apply(s,[].concat(pc(n.WebGL2RenderingContext.prototype,Ht.WebGL2,e,i,t,n)))}return function(){o.forEach(function(a){return a()})}}var dc="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",ig=function(e){return Uint8Array.from(atob(e),function(n){return n.charCodeAt(0)})},vc=typeof window!="undefined"&&window.Blob&&new Blob([ig(dc)],{type:"text/javascript;charset=utf-8"});function og(e){var n;try{if(n=vc&&(window.URL||window.webkitURL).createObjectURL(vc),!n)throw"";var i=new Worker(n,{name:e==null?void 0:e.name});return i.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(n)}),i}catch(t){return new Worker("data:text/javascript;base64,"+dc,{name:e==null?void 0:e.name})}finally{n&&(window.URL||window.webkitURL).revokeObjectURL(n)}}var sg=function(){function e(i){var t=this;E(this,"pendingCanvasMutations",new Map),E(this,"rafStamps",{latestId:0,invokeId:null}),E(this,"mirror"),E(this,"mutationCb"),E(this,"resetObservers"),E(this,"frozen",!1),E(this,"locked",!1),E(this,"processMutation",function(f,p){var g=t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId;(g||!t.rafStamps.invokeId)&&(t.rafStamps.invokeId=t.rafStamps.latestId),t.pendingCanvasMutations.has(f)||t.pendingCanvasMutations.set(f,[]),t.pendingCanvasMutations.get(f).push(p)});var r=i.sampling,o=r===void 0?"all":r,s=i.win,a=i.blockClass,u=i.blockSelector,c=i.recordCanvas,l=i.dataURLOptions;this.mutationCb=i.mutationCb,this.mirror=i.mirror,c&&o==="all"&&this.initCanvasMutationObserver(s,a,u),c&&typeof o=="number"&&this.initCanvasFPSObserver(o,s,a,u,{dataURLOptions:l})}var n=e.prototype;return n.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},n.freeze=function(){this.frozen=!0},n.unfreeze=function(){this.frozen=!1},n.lock=function(){this.locked=!0},n.unlock=function(){this.locked=!1},n.initCanvasFPSObserver=function(t,r,o,s,a){var u=this,c=hc(r,o,s,!0),l=new Map,f=new og;f.onmessage=function(m){var _=m.data.id;if(l.set(_,!1),"base64"in m.data){var w=m.data,S=w.base64,C=w.type,O=w.width,A=w.height;u.mutationCb({id:_,type:Ht["2D"],commands:[{property:"clearRect",args:[0,0,O,A]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:S}],type:C}]},0,0]}]})}};var p=1e3/t,g=0,d,y=function(){var m=[];return r.document.querySelectorAll("canvas").forEach(function(_){Ce(_,o,s,!0)||m.push(_)}),m},v=function(m){if(g&&m-g<p){d=requestAnimationFrame(v);return}g=m;var _=u;y().forEach(vi(function(w){var S,C,O,A;return cr(this,function(x){switch(x.label){case 0:return C=_.mirror.getId(w),l.get(C)?[2]:w.width===0||w.height===0?[2]:(l.set(C,!0),["webgl","webgl2"].includes(w.__context)&&(O=w.getContext(w.__context),((S=O==null?void 0:O.getContextAttributes())==null?void 0:S.preserveDrawingBuffer)===!1&&O.clear(O.COLOR_BUFFER_BIT)),[4,createImageBitmap(w)]);case 1:return A=x.sent(),f.postMessage({id:C,bitmap:A,width:w.width,height:w.height,dataURLOptions:a.dataURLOptions},[A]),[2]}})})),d=requestAnimationFrame(v)};d=requestAnimationFrame(v),this.resetObservers=function(){c(),cancelAnimationFrame(d)}},n.initCanvasMutationObserver=function(t,r,o){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var s=hc(t,r,o,!1),a=tg(this.processMutation.bind(this),t,r,o),u=ng(this.processMutation.bind(this),t,r,o);this.resetObservers=function(){s(),a(),u()}},n.startPendingCanvasMutationFlusher=function(){var t=this;requestAnimationFrame(function(){return t.flushPendingCanvasMutations()})},n.startRAFTimestamping=function(){var t=this,r=function(o){t.rafStamps.latestId=o,requestAnimationFrame(r)};requestAnimationFrame(r)},n.flushPendingCanvasMutations=function(){var t=this;this.pendingCanvasMutations.forEach(function(r,o){var s=t.mirror.getId(o);t.flushPendingCanvasMutationFor(o,s)}),requestAnimationFrame(function(){return t.flushPendingCanvasMutations()})},n.flushPendingCanvasMutationFor=function(t,r){if(!(this.frozen||this.locked)){var o=this.pendingCanvasMutations.get(t);if(!(!o||r===-1)){var s=o.map(function(u){u.type;var c=ar(u,["type"]);return c}),a=o[0].type;this.mutationCb({id:r,type:a,commands:s}),this.pendingCanvasMutations.delete(t)}}},e}(),ag=function(){function e(i){E(this,"trackedLinkElements",new WeakSet),E(this,"mutationCb"),E(this,"adoptedStyleSheetCb"),E(this,"styleMirror",new xv),this.mutationCb=i.mutationCb,this.adoptedStyleSheetCb=i.adoptedStyleSheetCb}var n=e.prototype;return n.attachLinkElement=function(t,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(t)},n.trackLinkElement=function(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))},n.adoptStyleSheets=function(t,r){var o,s=function(){var f=l.value,p=void 0;o.styleMirror.has(f)?p=o.styleMirror.getId(f):(p=o.styleMirror.add(f),u.push({styleId:p,rules:Array.from(f.rules||CSSRule,function(g,d){return{rule:Ps(g,f.href),index:d}})})),a.styleIds.push(p)};if(t.length!==0){for(var a={id:r,styleIds:[]},u=[],c=k(t),l;!(l=c()).done;)o=this,s();u.length>0&&(a.styles=u),this.adoptedStyleSheetCb(a)}},n.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},n.trackStylesheetInLinkElement=function(t){},e}(),ug=function(){function e(){E(this,"nodeMap",new WeakMap),E(this,"active",!1)}var n=e.prototype;return n.inOtherBuffer=function(t,r){var o=this.nodeMap.get(t);return o&&Array.from(o).some(function(s){return s!==r})},n.add=function(t,r){var o=this;this.active||(this.active=!0,requestAnimationFrame(function(){o.nodeMap=new WeakMap,o.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(r))},n.destroy=function(){},e}(),ce,Hn,Lo,Yn=!1;try{if(Array.from([1],function(e){return e*2})[0]!==2){var Do=document.createElement("iframe");document.body.appendChild(Do),Array.from=((Os=Do.contentWindow)==null?void 0:Os.Array.from)||Array.from,document.body.removeChild(Do)}}catch(e){console.debug("Unable to override Array.from",e)}var Ne=sf();function at(e){e===void 0&&(e={});var n=e.emit,i=e.checkoutEveryNms,t=e.checkoutEveryNth,r=e.blockClass,o=r===void 0?"rr-block":r,s=e.blockSelector,a=s===void 0?null:s,u=e.ignoreClass,c=u===void 0?"rr-ignore":u,l=e.ignoreSelector,f=l===void 0?null:l,p=e.maskTextClass,g=p===void 0?"rr-mask":p,d=e.maskTextSelector,y=d===void 0?null:d,v=e.inlineStylesheet,m=v===void 0?!0:v,_=e.maskAllInputs,w=e.maskInputOptions,S=e.slimDOMOptions,C=e.maskInputFn,O=e.maskTextFn,A=e.hooks,x=e.packFn,L=e.sampling,H=L===void 0?{}:L,M=e.dataURLOptions,B=M===void 0?{}:M,K=e.mousemoveWait,Oe=e.recordDOM,J=Oe===void 0?!0:Oe,Ae=e.recordCanvas,Ee=Ae===void 0?!1:Ae,ae=e.recordCrossOriginIframes,_e=ae===void 0?!1:ae,Me=e.recordAfter,xt=Me===void 0?e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load":Me,Ve=e.userTriggeredOnInput,nr=Ve===void 0?!1:Ve,Te=e.collectFonts,Rt=Te===void 0?!1:Te,Y=e.inlineImages,At=Y===void 0?!1:Y,Mt=e.plugins,ir=e.keepIframeSrcFn,Br=ir===void 0?function(){return!1}:ir,zr=e.ignoreCSSAttributes,_s=zr===void 0?new Set([]):zr,pi=e.errorHandler;Dv(pi);var yt=_e?window.parent===window:!0,Tt=!1;if(!yt)try{window.parent.document&&(Tt=!1)}catch(Q){Tt=!0}if(yt&&!n)throw new Error("emit function is required");if(!yt&&!Tt)return function(){};K!==void 0&&H.mousemove===void 0&&(H.mousemove=K),Ne.reset();var or=_===!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}:w!==void 0?w:{password:!0},Wr=S===!0||S==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:S==="all",headMetaDescKeywords:S==="all",headTitleMutations:S==="all"}:S||{};Ov();var sr,Pt=0,tt=function(Q){for(var xe=k(Mt||[]),R;!(R=xe()).done;){var ue=R.value;ue.eventProcessor&&(Q=ue.eventProcessor(Q))}return x&&!Tt&&(Q=x(Q)),Q};ce=function(Q,xe){var R,ue=Q;if(ue.timestamp=zn(),(R=Ct[0])!=null&&R.isFrozen()&&ue.type!==q.FullSnapshot&&!(ue.type===q.IncrementalSnapshot&&ue.data.source===T.Mutation)&&Ct.forEach(function(Pm){return Pm.unfreeze()}),yt)n==null||n(tt(ue),xe);else if(Tt){var Am={type:"rrweb",event:tt(ue),origin:window.location.origin,isCheckout:xe};window.parent.postMessage(Am,"*")}if(ue.type===q.FullSnapshot)sr=ue,Pt=0;else if(ue.type===q.IncrementalSnapshot){if(ue.data.source===T.Mutation&&ue.data.isAttachIframe)return;Pt++;var Mm=t&&Pt>=t,Tm=i&&ue.timestamp-sr.timestamp>i;(Mm||Tm)&&Hn(!0)}};for(var Lt=function(Q){ce({type:q.IncrementalSnapshot,data:j({source:T.Mutation},Q)})},xl=function(Q){return ce({type:q.IncrementalSnapshot,data:j({source:T.Scroll},Q)})},Rl=function(Q){return ce({type:q.IncrementalSnapshot,data:j({source:T.CanvasMutation},Q)})},xm=function(Q){return ce({type:q.IncrementalSnapshot,data:j({source:T.AdoptedStyleSheet},Q)})},Dt=new ag({mutationCb:Lt,adoptedStyleSheetCb:xm}),Nt=new Jv({mirror:Ne,mutationCb:Lt,stylesheetManager:Dt,recordCrossOriginIframes:_e,wrappedEmit:ce}),Rm=k(Mt||[]),Al;!(Al=Rm()).done;){var Ml=Al.value;Ml.getMirror&&Ml.getMirror({nodeMirror:Ne,crossOriginIframeMirror:Nt.crossOriginIframeMirror,crossOriginIframeStyleMirror:Nt.crossOriginIframeStyleMirror})}var bs=new ug;Lo=new sg({recordCanvas:Ee,mutationCb:Rl,win:window,blockClass:o,blockSelector:a,mirror:Ne,sampling:H.canvas,dataURLOptions:B});var di=new Xv({mutationCb:Lt,scrollCb:xl,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:g,maskTextSelector:y,inlineStylesheet:m,maskInputOptions:or,dataURLOptions:B,maskTextFn:O,maskInputFn:C,recordCanvas:Ee,inlineImages:At,sampling:H,slimDOMOptions:Wr,iframeManager:Nt,stylesheetManager:Dt,canvasManager:Lo,keepIframeSrcFn:Br,processedNodeManager:bs},mirror:Ne});Hn=function(Q){if(Q===void 0&&(Q=!1),!!J){ce({type:q.Meta,data:{href:window.location.href,width:Gu(),height:qu()}},Q),Dt.reset(),di.init(),Ct.forEach(function(R){return R.lock()});var xe=Af(document,{mirror:Ne,blockClass:o,blockSelector:a,maskTextClass:g,maskTextSelector:y,inlineStylesheet:m,maskAllInputs:or,maskTextFn:O,maskInputFn:C,slimDOM:Wr,dataURLOptions:B,recordCanvas:Ee,inlineImages:At,onSerialize:function(R){Hu(R,Ne)&&Nt.addIframe(R),Yu(R,Ne)&&Dt.trackLinkElement(R),To(R)&&di.addShadowRoot(W.shadowRoot(R),document)},onIframeLoad:function(R,ue){Nt.attachIframe(R,ue),di.observeAttachShadow(R)},onStylesheetLoad:function(R,ue){Dt.attachLinkElement(R,ue)},keepIframeSrcFn:Br});if(!xe)return console.warn("Failed to snapshot the document");ce({type:q.FullSnapshot,data:{node:xe,initialOffset:Wu(window)}},Q),Ct.forEach(function(R){return R.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Dt.adoptStyleSheets(document.adoptedStyleSheets,Ne.getId(document))}};try{var qr=[],Tl=function(Q){var xe;return V(Kv)({mutationCb:Lt,mousemoveCb:function(R,ue){return ce({type:q.IncrementalSnapshot,data:{source:ue,positions:R}})},mouseInteractionCb:function(R){return ce({type:q.IncrementalSnapshot,data:j({source:T.MouseInteraction},R)})},scrollCb:xl,viewportResizeCb:function(R){return ce({type:q.IncrementalSnapshot,data:j({source:T.ViewportResize},R)})},inputCb:function(R){return ce({type:q.IncrementalSnapshot,data:j({source:T.Input},R)})},mediaInteractionCb:function(R){return ce({type:q.IncrementalSnapshot,data:j({source:T.MediaInteraction},R)})},styleSheetRuleCb:function(R){return ce({type:q.IncrementalSnapshot,data:j({source:T.StyleSheetRule},R)})},styleDeclarationCb:function(R){return ce({type:q.IncrementalSnapshot,data:j({source:T.StyleDeclaration},R)})},canvasMutationCb:Rl,fontCb:function(R){return ce({type:q.IncrementalSnapshot,data:j({source:T.Font},R)})},selectionCb:function(R){ce({type:q.IncrementalSnapshot,data:j({source:T.Selection},R)})},customElementCb:function(R){ce({type:q.IncrementalSnapshot,data:j({source:T.CustomElement},R)})},blockClass:o,ignoreClass:c,ignoreSelector:f,maskTextClass:g,maskTextSelector:y,maskInputOptions:or,inlineStylesheet:m,sampling:H,recordDOM:J,recordCanvas:Ee,inlineImages:At,userTriggeredOnInput:nr,collectFonts:Rt,doc:Q,maskInputFn:C,maskTextFn:O,keepIframeSrcFn:Br,blockSelector:a,slimDOMOptions:Wr,dataURLOptions:B,mirror:Ne,iframeManager:Nt,stylesheetManager:Dt,shadowDomManager:di,processedNodeManager:bs,canvasManager:Lo,ignoreCSSAttributes:_s,plugins:((xe=Mt==null?void 0:Mt.filter(function(R){return R.observer}))==null?void 0:xe.map(function(R){return{observer:R.observer,options:R.options,callback:function(ue){return ce({type:q.Plugin,data:{plugin:R.name,payload:ue}})}}}))||[]},A)};Nt.addLoadListener(function(Q){try{qr.push(Tl(Q.contentDocument))}catch(xe){console.warn(xe)}});var ws=function(){Hn(),qr.push(Tl(document)),Yn=!0};return document.readyState==="interactive"||document.readyState==="complete"?ws():(qr.push(Se("DOMContentLoaded",function(){ce({type:q.DomContentLoaded,data:{}}),xt==="DOMContentLoaded"&&ws()})),qr.push(Se("load",function(){ce({type:q.Load,data:{}}),xt==="load"&&ws()},window))),function(){qr.forEach(function(Q){try{Q()}catch(R){var xe=String(R).toLowerCase();xe.includes("cross-origin")||console.warn(R)}}),bs.destroy(),Yn=!1,Nv()}}catch(Q){console.warn(Q)}}at.addCustomEvent=function(e,n){if(!Yn)throw new Error("please add custom event after start recording");ce({type:q.Custom,data:{tag:e,payload:n}})},at.freezePage=function(){Ct.forEach(function(e){return e.freeze()})},at.takeFullSnapshot=function(e){if(!Yn)throw new Error("please take full snapshot after start recording");Hn(e)},at.mirror=Ne;var gc;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(gc||(gc={})),at.addCustomEvent,at.freezePage,at.takeFullSnapshot;var mc=I.setImmediate,ut,No,$o,yc=Object.prototype.toString,cg=typeof mc!="undefined"?function(n){return mc(n)}:setTimeout;try{Object.defineProperty({},"x",{}),ut=function(n,i,t,r){return Object.defineProperty(n,i,{value:t,writable:!0,configurable:r!==!1})}}catch(e){ut=function(i,t,r){return i[t]=r,i}}$o=function(){var n,i,t;function r(o,s){this.fn=o,this.self=s,this.next=void 0}return{add:function(s,a){t=new r(s,a),i?i.next=t:n=t,i=t,t=void 0},drain:function(){var s=n;for(n=i=No=void 0;s;)s.fn.call(s.self),s=s.next}}}();function Kn(e,n){$o.add(e,n),No||(No=cg($o.drain))}function _c(e){var n,i=typeof e;return e!==null&&(i==="object"||i==="function")&&(n=e.then),typeof n=="function"?n:!1}function Fo(){for(var e=0;e<this.chain.length;e++)lg(this,this.state===1?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function lg(e,n,i){var t,r;try{n===!1?i.reject(e.msg):(n===!0?t=e.msg:t=n.call(void 0,e.msg),t===i.promise?i.reject(TypeError("Promise-chain cycle")):(r=_c(t))?r.call(t,i.resolve,i.reject):i.resolve(t))}catch(o){i.reject(o)}}function bc(e){var n,i=this;if(!i.triggered){i.triggered=!0,i.def&&(i=i.def);try{(n=_c(e))?Kn(function(){var t=new Sc(i);try{n.call(e,function(){bc.apply(t,arguments)},function(){Ar.apply(t,arguments)})}catch(r){Ar.call(t,r)}}):(i.msg=e,i.state=1,i.chain.length>0&&Kn(Fo,i))}catch(t){Ar.call(new Sc(i),t)}}}function Ar(e){var n=this;n.triggered||(n.triggered=!0,n.def&&(n=n.def),n.msg=e,n.state=2,n.chain.length>0&&Kn(Fo,n))}function wc(e,n,i,t){for(var r=0;r<n.length;r++)(function(s){e.resolve(n[s]).then(function(u){i(s,u)},t)})(r)}function Sc(e){this.def=e,this.triggered=!1}function fg(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function ct(e){if(typeof e!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var n=new fg(this);this.then=function(t,r){var o={success:typeof t=="function"?t:!0,failure:typeof r=="function"?r:!1};return o.promise=new this.constructor(function(a,u){if(typeof a!="function"||typeof u!="function")throw TypeError("Not a function");o.resolve=a,o.reject=u}),n.chain.push(o),n.state!==0&&Kn(Fo,n),o.promise},this.catch=function(t){return this.then(void 0,t)};try{e.call(void 0,function(t){bc.call(n,t)},function(t){Ar.call(n,t)})}catch(i){Ar.call(n,i)}}var Cc=ut({},"constructor",ct,!1);ct.prototype=Cc,ut(Cc,"__NPO__",0,!1),ut(ct,"resolve",function(n){var i=this;return n&&typeof n=="object"&&n.__NPO__===1?n:new i(function(r,o){if(typeof r!="function"||typeof o!="function")throw TypeError("Not a function");r(n)})}),ut(ct,"reject",function(n){return new this(function(t,r){if(typeof t!="function"||typeof r!="function")throw TypeError("Not a function");r(n)})}),ut(ct,"all",function(n){var i=this;return yc.call(n)!=="[object Array]"?i.reject(TypeError("Not an array")):n.length===0?i.resolve([]):new i(function(r,o){if(typeof r!="function"||typeof o!="function")throw TypeError("Not a function");var s=n.length,a=Array(s),u=0;wc(i,n,function(l,f){a[l]=f,++u===s&&r(a)},o)})}),ut(ct,"race",function(n){var i=this;return yc.call(n)!=="[object Array]"?i.reject(TypeError("Not an array")):new i(function(r,o){if(typeof r!="function"||typeof o!="function")throw TypeError("Not a function");wc(i,n,function(a,u){r(u)},o)})});var G;typeof Promise!="undefined"&&Promise.toString().indexOf("[native code]")!==-1?G=Promise:G=ct;var Le={DEBUG:!1,LIB_VERSION:"2.71.1"},Mr=24*60*60*1e3,Uo=8*1e3,Jn=Array.prototype,hg=Function.prototype,Ic=Object.prototype,lt=Jn.slice,Tr=Ic.toString,Xn=Ic.hasOwnProperty,de=I.console,ft=I.navigator,P=I.document,Zn=I.opera,Ec=I.screen,Ke=ft.userAgent,Bo=hg.bind,kc=Jn.forEach,Oc=Jn.indexOf,xc=Jn.map,pg=Array.isArray,zo={},h={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},F={log:function(){if(Le.DEBUG&&!h.isUndefined(de)&&de)try{de.log.apply(de,arguments)}catch(e){h.each(arguments,function(n){de.log(n)})}},warn:function(){if(Le.DEBUG&&!h.isUndefined(de)&&de){var e=["Mixpanel warning:"].concat(h.toArray(arguments));try{de.warn.apply(de,e)}catch(n){h.each(e,function(i){de.warn(i)})}}},error:function(){if(Le.DEBUG&&!h.isUndefined(de)&&de){var e=["Mixpanel error:"].concat(h.toArray(arguments));try{de.error.apply(de,e)}catch(n){h.each(e,function(i){de.error(i)})}}},critical:function(){if(!h.isUndefined(de)&&de){var e=["Mixpanel error:"].concat(h.toArray(arguments));try{de.error.apply(de,e)}catch(n){h.each(e,function(i){de.error(i)})}}}},Wo=function(e,n){return function(){return arguments[0]="["+n+"] "+arguments[0],e.apply(F,arguments)}},It=function(e){return{log:Wo(F.log,e),error:Wo(F.error,e),critical:Wo(F.critical,e)}},Pr=function(e){return function(){try{return e.apply(this,arguments)}catch(n){F.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),Le.DEBUG&&F.critical(n)}}},Rc=function(e){var n=e.prototype;for(var i in n)typeof n[i]=="function"&&(n[i]=Pr(n[i]))};h.bind=function(e,n){var i,t;if(Bo&&e.bind===Bo)return Bo.apply(e,lt.call(arguments,1));if(!h.isFunction(e))throw new TypeError;return i=lt.call(arguments,2),t=function(){if(!(this instanceof t))return e.apply(n,i.concat(lt.call(arguments)));var r={};r.prototype=e.prototype;var o=new r;r.prototype=null;var s=e.apply(o,i.concat(lt.call(arguments)));return Object(s)===s?s:o},t},h.each=function(e,n,i){if(e!=null){if(kc&&e.forEach===kc)e.forEach(n,i);else if(e.length===+e.length){for(var t=0,r=e.length;t<r;t++)if(t in e&&n.call(i,e[t],t,e)===zo)return}else for(var o in e)if(Xn.call(e,o)&&n.call(i,e[o],o,e)===zo)return}},h.extend=function(e){return h.each(lt.call(arguments,1),function(n){for(var i in n)n[i]!==void 0&&(e[i]=n[i])}),e},h.isArray=pg||function(e){return Tr.call(e)==="[object Array]"},h.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(n){return!1}},h.isArguments=function(e){return!!(e&&Xn.call(e,"callee"))},h.toArray=function(e){return e?e.toArray?e.toArray():h.isArray(e)||h.isArguments(e)?lt.call(e):h.values(e):[]},h.map=function(e,n,i){if(xc&&e.map===xc)return e.map(n,i);var t=[];return h.each(e,function(r){t.push(n.call(i,r))}),t},h.keys=function(e){var n=[];return e===null||h.each(e,function(i,t){n[n.length]=t}),n},h.values=function(e){var n=[];return e===null||h.each(e,function(i){n[n.length]=i}),n},h.include=function(e,n){var i=!1;return e===null?i:Oc&&e.indexOf===Oc?e.indexOf(n)!=-1:(h.each(e,function(t){if(i||(i=t===n))return zo}),i)},h.includes=function(e,n){return e.indexOf(n)!==-1},h.inherit=function(e,n){return e.prototype=new n,e.prototype.constructor=e,e.superclass=n.prototype,e},h.isObject=function(e){return e===Object(e)&&!h.isArray(e)},h.isEmptyObject=function(e){if(h.isObject(e)){for(var n in e)if(Xn.call(e,n))return!1;return!0}return!1},h.isUndefined=function(e){return e===void 0},h.isString=function(e){return Tr.call(e)=="[object String]"},h.isDate=function(e){return Tr.call(e)=="[object Date]"},h.isNumber=function(e){return Tr.call(e)=="[object Number]"},h.isElement=function(e){return!!(e&&e.nodeType===1)},h.encodeDates=function(e){return h.each(e,function(n,i){h.isDate(n)?e[i]=h.formatDate(n):h.isObject(n)&&(e[i]=h.encodeDates(n))}),e},h.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},h.formatDate=function(e){function n(i){return i<10?"0"+i:i}return e.getUTCFullYear()+"-"+n(e.getUTCMonth()+1)+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())},h.strip_empty_properties=function(e){var n={};return h.each(e,function(i,t){h.isString(i)&&i.length>0&&(n[t]=i)}),n},h.truncate=function(e,n){var i;return typeof e=="string"?i=e.slice(0,n):h.isArray(e)?(i=[],h.each(e,function(t){i.push(h.truncate(t,n))})):h.isObject(e)?(i={},h.each(e,function(t,r){i[r]=h.truncate(t,n)})):i=e,i},h.JSONEncode=function(){return function(e){var n=e,i=function(r){var o=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,s={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return o.lastIndex=0,o.test(r)?'"'+r.replace(o,function(a){var u=s[a];return typeof u=="string"?u:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+r+'"'},t=function(r,o){var s="",a=" ",u=0,c="",l="",f=0,p=s,g=[],d=o[r];switch(d&&typeof d=="object"&&typeof d.toJSON=="function"&&(d=d.toJSON(r)),typeof d){case"string":return i(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(s+=a,g=[],Tr.apply(d)==="[object Array]"){for(f=d.length,u=0;u<f;u+=1)g[u]=t(u,d)||"null";return l=g.length===0?"[]":s?"[\n"+s+g.join(",\n"+s)+"\n"+p+"]":"["+g.join(",")+"]",s=p,l}for(c in d)Xn.call(d,c)&&(l=t(c,d),l&&g.push(i(c)+(s?": ":":")+l));return l=g.length===0?"{}":s?"{"+g.join(",")+p+"}":"{"+g.join(",")+"}",s=p,l}};return t("",{"":n})}}(),h.JSONDecode=function(){var e,n,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},t,r=function(g){var d=new SyntaxError(g);throw d.at=e,d.text=t,d},o=function(g){return g&&g!==n&&r("Expected '"+g+"' instead of '"+n+"'"),n=t.charAt(e),e+=1,n},s=function(){var g,d="";for(n==="-"&&(d="-",o("-"));n>="0"&&n<="9";)d+=n,o();if(n===".")for(d+=".";o()&&n>="0"&&n<="9";)d+=n;if(n==="e"||n==="E")for(d+=n,o(),(n==="-"||n==="+")&&(d+=n,o());n>="0"&&n<="9";)d+=n,o();if(g=+d,!isFinite(g))r("Bad number");else return g},a=function(){var g,d,y="",v;if(n==='"')for(;o();){if(n==='"')return o(),y;if(n==="\\")if(o(),n==="u"){for(v=0,d=0;d<4&&(g=parseInt(o(),16),!!isFinite(g));d+=1)v=v*16+g;y+=String.fromCharCode(v)}else if(typeof i[n]=="string")y+=i[n];else break;else y+=n}r("Bad string")},u=function(){for(;n&&n<=" ";)o()},c=function(){switch(n){case"t":return o("t"),o("r"),o("u"),o("e"),!0;case"f":return o("f"),o("a"),o("l"),o("s"),o("e"),!1;case"n":return o("n"),o("u"),o("l"),o("l"),null}r('Unexpected "'+n+'"')},l,f=function(){var g=[];if(n==="["){if(o("["),u(),n==="]")return o("]"),g;for(;n;){if(g.push(l()),u(),n==="]")return o("]"),g;o(","),u()}}r("Bad array")},p=function(){var g,d={};if(n==="{"){if(o("{"),u(),n==="}")return o("}"),d;for(;n;){if(g=a(),u(),o(":"),Object.hasOwnProperty.call(d,g)&&r('Duplicate key "'+g+'"'),d[g]=l(),u(),n==="}")return o("}"),d;o(","),u()}}r("Bad object")};return l=function(){switch(u(),n){case"{":return p();case"[":return f();case'"':return a();case"-":return s();default:return n>="0"&&n<="9"?s():c()}},function(g){var d;return t=g,e=0,n=" ",d=l(),u(),n&&r("Syntax error"),d}}(),h.base64Encode=function(e){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i,t,r,o,s,a,u,c,l=0,f=0,p="",g=[];if(!e)return e;e=h.utf8Encode(e);do i=e.charCodeAt(l++),t=e.charCodeAt(l++),r=e.charCodeAt(l++),c=i<<16|t<<8|r,o=c>>18&63,s=c>>12&63,a=c>>6&63,u=c&63,g[f++]=n.charAt(o)+n.charAt(s)+n.charAt(a)+n.charAt(u);while(l<e.length);switch(p=g.join(""),e.length%3){case 1:p=p.slice(0,-2)+"==";break;case 2:p=p.slice(0,-1)+"=";break}return p},h.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var n="",i,t,r=0,o;for(i=t=0,r=e.length,o=0;o<r;o++){var s=e.charCodeAt(o),a=null;s<128?t++:s>127&&s<2048?a=String.fromCharCode(s>>6|192,s&63|128):a=String.fromCharCode(s>>12|224,s>>6&63|128,s&63|128),a!==null&&(t>i&&(n+=e.substring(i,t)),n+=a,i=t=o+1)}return t>i&&(n+=e.substring(i,e.length)),n},h.UUID=function(){try{return I.crypto.randomUUID()}catch(i){for(var e=new Array(36),n=0;n<36;n++)e[n]=Math.floor(Math.random()*16);return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",h.map(e,function(t){return t.toString(16)}).join("")}};var Ac=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];h.isBlockedUA=function(e){var n;for(e=e.toLowerCase(),n=0;n<Ac.length;n++)if(e.indexOf(Ac[n])!==-1)return!0;return!1},h.HTTPBuildQuery=function(e,n){var i,t,r=[];return h.isUndefined(n)&&(n="&"),h.each(e,function(o,s){i=encodeURIComponent(o.toString()),t=encodeURIComponent(s),r[r.length]=t+"="+i}),r.join(n)},h.getQueryParam=function(e,n){n=n.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var i="[\\?&]"+n+"=([^&#]*)",t=new RegExp(i),r=t.exec(e);if(r===null||r&&typeof r[1]!="string"&&r[1].length)return"";var o=r[1];try{o=decodeURIComponent(o)}catch(s){F.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},h.cookie={get:function(e){for(var n=e+"=",i=P.cookie.split(";"),t=0;t<i.length;t++){for(var r=i[t];r.charAt(0)==" ";)r=r.substring(1,r.length);if(r.indexOf(n)===0)return decodeURIComponent(r.substring(n.length,r.length))}return null},parse:function(e){var n;try{n=h.JSONDecode(h.cookie.get(e))||{}}catch(i){}return n},set_seconds:function(e,n,i,t,r,o,s){var a="",u="",c="";if(s)a="; domain="+s;else if(t){var l=Pc(P.location.hostname);a=l?"; domain=."+l:""}if(i){var f=new Date;f.setTime(f.getTime()+i*1e3),u="; expires="+f.toGMTString()}o&&(r=!0,c="; SameSite=None"),r&&(c+="; secure"),P.cookie=e+"="+encodeURIComponent(n)+u+"; path=/"+a+c},set:function(e,n,i,t,r,o,s){var a="",u="",c="";if(s)a="; domain="+s;else if(t){var l=Pc(P.location.hostname);a=l?"; domain=."+l:""}if(i){var f=new Date;f.setTime(f.getTime()+i*24*60*60*1e3),u="; expires="+f.toGMTString()}o&&(r=!0,c="; SameSite=None"),r&&(c+="; secure");var p=e+"="+encodeURIComponent(n)+u+"; path=/"+a+c;return P.cookie=p,p},remove:function(e,n,i){h.cookie.set(e,"",-1,n,!1,!1,i)}};var Mc=function(e){var n=!0;try{var i="__mplss_"+Vo(8),t="xyz";e.setItem(i,t),e.getItem(i)!==t&&(n=!1),e.removeItem(i)}catch(r){n=!1}return n},qo=null,Lr=function(e,n){return qo!==null&&!n?qo:qo=Mc(e||I.localStorage)},Go=null,dg=function(e,n){return Go!==null&&!n?Go:Go=Mc(e||I.sessionStorage)};function Tc(e,n,i){var t=function(r){F.error(n+" error: "+r)};return{is_supported:function(r){var o=i(e,r);return o||F.error(n+" unsupported"),o},error:t,get:function(r){try{return e.getItem(r)}catch(o){t(o)}return null},parse:function(r){try{return h.JSONDecode(e.getItem(r))||{}}catch(o){}return null},set:function(r,o){try{e.setItem(r,o)}catch(s){t(s)}},remove:function(r){try{e.removeItem(r)}catch(o){t(o)}}}}h.localStorage=Tc(I.localStorage,"localStorage",Lr),h.sessionStorage=Tc(I.sessionStorage,"sessionStorage",dg),h.register_event=function(){var e=function(t,r,o,s,a){if(!t){F.error("No valid element provided to register_event");return}if(t.addEventListener&&!s)t.addEventListener(r,o,!!a);else{var u="on"+r,c=t[u];t[u]=n(t,o,c)}};function n(t,r,o){var s=function(a){if(a=a||i(I.event),!!a){var u=!0,c,l;return h.isFunction(o)&&(c=o(a)),l=r.call(t,a),(c===!1||l===!1)&&(u=!1),u}};return s}function i(t){return t&&(t.preventDefault=i.preventDefault,t.stopPropagation=i.stopPropagation),t}return i.preventDefault=function(){this.returnValue=!1},i.stopPropagation=function(){this.cancelBubble=!0},e}();var vg=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');h.dom_query=function(){function e(r){return r.all?r.all:r.getElementsByTagName("*")}var n=/[\t\r\n]/g;function i(r,o){var s=" "+o+" ";return(" "+r.className+" ").replace(n," ").indexOf(s)>=0}function t(r){if(!P.getElementsByTagName)return[];var o=r.split(" "),s,a,u,c,l,f,p,g,d,y,v=[P];for(f=0;f<o.length;f++){if(s=o[f].replace(/^\s+/,"").replace(/\s+$/,""),s.indexOf("#")>-1){a=s.split("#"),u=a[0];var m=a[1],_=P.getElementById(m);if(!_||u&&_.nodeName.toLowerCase()!=u)return[];v=[_];continue}if(s.indexOf(".")>-1){a=s.split("."),u=a[0];var w=a[1];for(u||(u="*"),c=[],l=0,p=0;p<v.length;p++)for(u=="*"?d=e(v[p]):d=v[p].getElementsByTagName(u),g=0;g<d.length;g++)c[l++]=d[g];for(v=[],y=0,p=0;p<c.length;p++)c[p].className&&h.isString(c[p].className)&&i(c[p],w)&&(v[y++]=c[p]);continue}var S=s.match(vg);if(S){u=S[1];var C=S[2],O=S[3],A=S[4];for(u||(u="*"),c=[],l=0,p=0;p<v.length;p++)for(u=="*"?d=e(v[p]):d=v[p].getElementsByTagName(u),g=0;g<d.length;g++)c[l++]=d[g];v=[],y=0;var x;switch(O){case"=":x=function(L){return L.getAttribute(C)==A};break;case"~":x=function(L){return L.getAttribute(C).match(new RegExp("\\b"+A+"\\b"))};break;case"|":x=function(L){return L.getAttribute(C).match(new RegExp("^"+A+"-?"))};break;case"^":x=function(L){return L.getAttribute(C).indexOf(A)===0};break;case"$":x=function(L){return L.getAttribute(C).lastIndexOf(A)==L.getAttribute(C).length-A.length};break;case"*":x=function(L){return L.getAttribute(C).indexOf(A)>-1};break;default:x=function(L){return L.getAttribute(C)}}for(v=[],y=0,p=0;p<c.length;p++)x(c[p])&&(v[y++]=c[p]);continue}for(u=s,c=[],l=0,p=0;p<v.length;p++)for(d=v[p].getElementsByTagName(u),g=0;g<d.length;g++)c[l++]=d[g];v=c}return v}return function(r){return h.isElement(r)?[r]:h.isObject(r)&&!h.isUndefined(r.length)?r:t.call(this,r)}}();var gg=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],mg=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];h.info={campaignParams:function(e){var n="",i={};return h.each(gg,function(t){n=h.getQueryParam(P.URL,t),n.length?i[t]=n:e!==void 0&&(i[t]=e)}),i},clickParams:function(){var e="",n={};return h.each(mg,function(i){e=h.getQueryParam(P.URL,i),e.length&&(n[i]=e)}),n},marketingParams:function(){return h.extend(h.info.campaignParams(),h.info.clickParams())},searchEngine:function(e){return e.search("https?://(.*)google.([^/?]*)")===0?"google":e.search("https?://(.*)bing.com")===0?"bing":e.search("https?://(.*)yahoo.com")===0?"yahoo":e.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null},searchInfo:function(e){var n=h.info.searchEngine(e),i=n!="yahoo"?"q":"p",t={};if(n!==null){t.$search_engine=n;var r=h.getQueryParam(e,i);r.length&&(t.mp_keyword=r)}return t},browser:function(e,n,i){return n=n||"",i||h.includes(e," OPR/")?h.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":h.includes(e,"IEMobile")||h.includes(e,"WPDesktop")?"Internet Explorer Mobile":h.includes(e,"SamsungBrowser/")?"Samsung Internet":h.includes(e,"Edge")||h.includes(e,"Edg/")?"Microsoft Edge":h.includes(e,"FBIOS")?"Facebook Mobile":h.includes(e,"Whale/")?"Whale Browser":h.includes(e,"Chrome")?"Chrome":h.includes(e,"CriOS")?"Chrome iOS":h.includes(e,"UCWEB")||h.includes(e,"UCBrowser")?"UC Browser":h.includes(e,"FxiOS")?"Firefox iOS":h.includes(n,"Apple")?h.includes(e,"Mobile")?"Mobile Safari":"Safari":h.includes(e,"Android")?"Android Mobile":h.includes(e,"Konqueror")?"Konqueror":h.includes(e,"Firefox")?"Firefox":h.includes(e,"MSIE")||h.includes(e,"Trident/")?"Internet Explorer":h.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,n,i){var t=h.info.browser(e,n,i),r={"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+)?)/},o=r[t];if(o===void 0)return null;var s=e.match(o);return s?parseFloat(s[s.length-2]):null},os:function(){var e=Ke;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 n=e.split("/");return n.length>=3?n[2]:""},currentUrl:function(){return I.location.href},properties:function(e){return typeof e!="object"&&(e={}),h.extend(h.strip_empty_properties({$os:h.info.os(),$browser:h.info.browser(Ke,ft.vendor,Zn),$referrer:P.referrer,$referring_domain:h.info.referringDomain(P.referrer),$device:h.info.device(Ke)}),{$current_url:h.info.currentUrl(),$browser_version:h.info.browserVersion(Ke,ft.vendor,Zn),$screen_height:Ec.height,$screen_width:Ec.width,mp_lib:"web",$lib_version:Le.LIB_VERSION,$insert_id:Vo(),time:h.timestamp()/1e3},h.strip_empty_properties(e))},people_properties:function(){return h.extend(h.strip_empty_properties({$os:h.info.os(),$browser:h.info.browser(Ke,ft.vendor,Zn)}),{$browser_version:h.info.browserVersion(Ke,ft.vendor,Zn)})},mpPageViewProperties:function(){return h.strip_empty_properties({current_page_title:P.title,current_domain:I.location.hostname,current_url_path:I.location.pathname,current_url_protocol:I.location.protocol,current_url_search:I.location.search})}};var yg=function(e,n){var i=null,t=[];return function(r){var o=this;return t.push(r),i||(i=new G(function(s){setTimeout(function(){var a=e.apply(o,[t]);i=null,t=[],s(a)},n)})),i}},Vo=function(e){var n=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?n.substring(0,e):n},_g=function(){var e=h.UUID().replace(/-/g,""),n=h.UUID().replace(/-/g,"").substring(0,16),i="01";return"00-"+e+"-"+n+"-"+i},bg=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,wg=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Pc=function(e){var n=wg,i=e.split("."),t=i[i.length-1];(t.length>4||t==="com"||t==="org")&&(n=bg);var r=e.match(n);return r?r[0]:""},Sg=function(){var e=I.navigator.onLine;return h.isUndefined(e)||e},ht=function(){},Jt=null,Qn=null;typeof JSON!="undefined"&&(Jt=JSON.stringify,Qn=JSON.parse),Jt=Jt||h.JSONEncode,Qn=Qn||h.JSONDecode,h.info=h.info,h.info.browser=h.info.browser,h.info.browserVersion=h.info.browserVersion,h.info.device=h.info.device,h.info.properties=h.info.properties,h.isBlockedUA=h.isBlockedUA,h.isEmptyObject=h.isEmptyObject,h.isObject=h.isObject,h.JSONDecode=h.JSONDecode,h.JSONEncode=h.JSONEncode,h.toArray=h.toArray,h.NPO=ct;var Cg="mixpanelBrowserDb",Lc="mixpanelRecordingEvents",jo="mixpanelRecordingRegistry",Ig=1,Eg=[Lc,jo],$e=function(e){this.dbPromise=null,this.storeName=e};$e.prototype._openDb=function(){return new G(function(e,n){var i=I.indexedDB.open(Cg,Ig);i.onerror=function(){n(i.error)},i.onsuccess=function(){e(i.result)},i.onupgradeneeded=function(t){var r=t.target.result;Eg.forEach(function(o){r.createObjectStore(o)})}})},$e.prototype.init=function(){return I.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof I.IDBDatabase?G.resolve():G.reject(e)})):G.reject("indexedDB is not supported in this browser")},$e.prototype.isInitialized=function(){return!!this.dbPromise},$e.prototype.makeTransaction=function(e,n){var i=this.storeName,t=function(r){return new G(function(o,s){var a=r.transaction(i,e);a.oncomplete=function(){o(a)},a.onabort=a.onerror=function(){s(a.error)},n(a.objectStore(i))})};return this.dbPromise.then(t).catch(function(r){return r&&r.name==="InvalidStateError"?(this.dbPromise=this._openDb(),this.dbPromise.then(t)):G.reject(r)}.bind(this))},$e.prototype.setItem=function(e,n){return this.makeTransaction("readwrite",function(i){i.put(n,e)})},$e.prototype.getItem=function(e){var n;return this.makeTransaction("readonly",function(i){n=i.get(e)}).then(function(){return n.result})},$e.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(n){n.delete(e)})},$e.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(n){e=n.getAll()}).then(function(){return e.result})};var kg="__mp_opt_in_out_";function Og(e,n){$c(!0,e,n)}function xg(e,n){$c(!1,e,n)}function Rg(e,n){return Nc(e,n)==="1"}function Dc(e,n){if(Mg(n))return F.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 i=Nc(e,n)==="0";return i&&F.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),i}function pt(e){return Ko(e,function(n){return this.get_config(n)})}function dt(e){return Ko(e,function(n){return this._get_config(n)})}function Xt(e){return Ko(e,function(n){return this._get_config(n)})}function Ag(e,n){n=n||{},Ho(n).remove(Yo(e,n),!!n.crossSubdomainCookie,n.cookieDomain)}function Ho(e){return e=e||{},e.persistenceType==="localStorage"?h.localStorage:h.cookie}function Yo(e,n){return n=n||{},(n.persistencePrefix||kg)+e}function Nc(e,n){return Ho(n).get(Yo(e,n))}function Mg(e){if(e&&e.ignoreDnt)return!1;var n=e&&e.window||I,i=n.navigator||{},t=!1;return h.each([i.doNotTrack,i.msDoNotTrack,n.doNotTrack],function(r){h.includes([!0,1,"1","yes"],r)&&(t=!0)}),t}function $c(e,n,i){if(!h.isString(n)||!n.length){F.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token");return}i=i||{},Ho(i).set(Yo(n,i),e?1:0,h.isNumber(i.cookieExpiration)?i.cookieExpiration:null,!!i.crossSubdomainCookie,!!i.secureCookie,!!i.crossSiteCookie,i.cookieDomain),i.track&&e&&i.track(i.trackEventName||"$opt_in",i.trackProperties,{send_immediately:!0})}function Ko(e,n){return function(){var i=!1;try{var t=n.call(this,"token"),r=n.call(this,"ignore_dnt"),o=n.call(this,"opt_out_tracking_persistence_type"),s=n.call(this,"opt_out_tracking_cookie_prefix"),a=n.call(this,"window");t&&(i=Dc(t,{ignoreDnt:r,persistenceType:o,persistencePrefix:s,window:a}))}catch(c){F.error("Unexpected error when checking tracking opt-out status: "+c)}if(!i)return e.apply(this,arguments);var u=arguments[arguments.length-1];typeof u=="function"&&u(0)}}var Tg=It("lock"),Fc=function(e,n){n=n||{},this.storageKey=e,this.storage=n.storage||I.localStorage,this.pollIntervalMS=n.pollIntervalMS||100,this.timeoutMS=n.timeoutMS||2e3,this.promiseImpl=n.promiseImpl||G};Fc.prototype.withLock=function(e,n){var i=this.promiseImpl;return new i(h.bind(function(t,r){var o=n||new Date().getTime()+"|"+Math.random(),s=new Date().getTime(),a=this.storageKey,u=this.pollIntervalMS,c=this.timeoutMS,l=this.storage,f=a+":X",p=a+":Y",g=a+":Z",d=function(w){if(new Date().getTime()-s>c){Tg.error("Timeout waiting for mutex on "+a+"; clearing lock. ["+o+"]"),l.removeItem(g),l.removeItem(p),m();return}setTimeout(function(){try{w()}catch(S){r(S)}},u*(Math.random()+.1))},y=function(w,S){w()?S():d(function(){y(w,S)})},v=function(){var w=l.getItem(p);return w&&w!==o?!1:(l.setItem(p,o),l.getItem(p)===o?!0:(Lr(l,!0)||r(new Error("localStorage support dropped while acquiring lock")),!1))},m=function(){l.setItem(f,o),y(v,function(){if(l.getItem(f)===o){_();return}d(function(){if(l.getItem(p)!==o){m();return}y(function(){return!l.getItem(g)},_)})})},_=function(){l.setItem(g,"1");var w=function(){l.removeItem(g),l.getItem(p)===o&&l.removeItem(p),l.getItem(f)===o&&l.removeItem(f)};e().then(function(S){w(),t(S)}).catch(function(S){w(),r(S)})};try{if(Lr(l,!0))m();else throw new Error("localStorage support check failed")}catch(w){r(w)}},this))};var Zt=function(e){this.storage=e||I.localStorage};Zt.prototype.init=function(){return G.resolve()},Zt.prototype.isInitialized=function(){return!0},Zt.prototype.setItem=function(e,n){return new G(h.bind(function(i,t){try{this.storage.setItem(e,Jt(n))}catch(r){t(r)}i()},this))},Zt.prototype.getItem=function(e){return new G(h.bind(function(n,i){var t;try{t=Qn(this.storage.getItem(e))}catch(r){i(r)}n(t)},this))},Zt.prototype.removeItem=function(e){return new G(h.bind(function(n,i){try{this.storage.removeItem(e)}catch(t){i(t)}n()},this))};var Uc=It("batch"),ze=function(e,n){n=n||{},this.storageKey=e,this.usePersistence=n.usePersistence,this.usePersistence&&(this.queueStorage=n.queueStorage||new Zt,this.lock=new Fc(e,{storage:n.sharedLockStorage||I.localStorage,timeoutMS:n.sharedLockTimeoutMS})),this.reportError=n.errorReporter||h.bind(Uc.error,Uc),this.pid=n.pid||null,this.memQueue=[],this.initialized=!1,n.enqueueThrottleMs?this.enqueuePersisted=yg(h.bind(this._enqueuePersisted,this),n.enqueueThrottleMs):this.enqueuePersisted=h.bind(function(i){return this._enqueuePersisted([i])},this)};ze.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?G.resolve():this.queueStorage.init().then(h.bind(function(){this.initialized=!0},this)).catch(h.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},ze.prototype.enqueue=function(e,n){var i={id:Vo(),flushAfter:new Date().getTime()+n*2,payload:e};return this.usePersistence?this.enqueuePersisted(i):(this.memQueue.push(i),G.resolve(!0))},ze.prototype._enqueuePersisted=function(e){var n=h.bind(function(){return this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(i){return this.saveToStorage(i.concat(e))},this)).then(h.bind(function(i){return i&&(this.memQueue=this.memQueue.concat(e)),i},this)).catch(h.bind(function(i){return this.reportError("Error enqueueing items",i,e),!1},this))},this);return this.lock.withLock(n,this.pid).catch(h.bind(function(i){return this.reportError("Error acquiring storage lock",i),!1},this))},ze.prototype.fillBatch=function(e){var n=this.memQueue.slice(0,e);return this.usePersistence&&n.length<e?this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(i){if(i.length){var t={};h.each(n,function(s){t[s.id]=!0});for(var r=0;r<i.length;r++){var o=i[r];if(new Date().getTime()>o.flushAfter&&!t[o.id]&&(o.orphaned=!0,n.push(o),n.length>=e))break}}return n},this)):G.resolve(n)};var Bc=function(e,n){var i=[];return h.each(e,function(t){t.id&&!n[t.id]&&i.push(t)}),i};ze.prototype.removeItemsByID=function(e){var n={};if(h.each(e,function(t){n[t]=!0}),this.memQueue=Bc(this.memQueue,n),this.usePersistence){var i=h.bind(function(){return this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(t){return t=Bc(t,n),this.saveToStorage(t)},this)).then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(t){for(var r=0;r<t.length;r++){var o=t[r];if(o.id&&n[o.id])throw new Error("Item not removed from storage")}return!0},this)).catch(h.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(i,this.pid).catch(h.bind(function(t){return this.reportError("Error acquiring storage lock",t),Lr(this.lock.storage,!0)?!1:i().then(h.bind(function(r){return r||this.queueStorage.removeItem(this.storageKey).then(function(){return r})},this)).catch(h.bind(function(r){return this.reportError("Error clearing queue",r),!1},this))},this))}else return G.resolve(!0)};var zc=function(e,n){var i=[];return h.each(e,function(t){var r=t.id;if(r in n){var o=n[r];o!==null&&(t.payload=o,i.push(t))}else i.push(t)}),i};ze.prototype.updatePayloads=function(e){return this.memQueue=zc(this.memQueue,e),this.usePersistence?this.lock.withLock(h.bind(function(){return this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(i){return i=zc(i,e),this.saveToStorage(i)},this)).catch(h.bind(function(i){return this.reportError("Error updating items",e,i),!1},this))},this),this.pid).catch(h.bind(function(n){return this.reportError("Error acquiring storage lock",n),!1},this)):G.resolve(!0)},ze.prototype.readFromStorage=function(){return this.ensureInit().then(h.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(h.bind(function(e){return e&&(h.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]},this)).catch(h.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},ze.prototype.saveToStorage=function(e){return this.ensureInit().then(h.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(h.bind(function(n){return this.reportError("Error saving queue",n),!1},this))},ze.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(h.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):G.resolve()};var Pg=10*60*1e3,Dr=It("batch"),De=function(e,n){this.errorReporter=n.errorReporter,this.queue=new ze(e,{errorReporter:h.bind(this.reportError,this),queueStorage:n.queueStorage,sharedLockStorage:n.sharedLockStorage,sharedLockTimeoutMS:n.sharedLockTimeoutMS,usePersistence:n.usePersistence,enqueueThrottleMs:n.enqueueThrottleMs}),this.libConfig=n.libConfig,this.sendRequest=n.sendRequestFunc,this.beforeSendHook=n.beforeSendHook,this.stopAllBatching=n.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=n.flushOnlyOnInterval||!1,this._flushPromise=null};De.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},De.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},De.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},De.prototype.clear=function(){return this.queue.clear()},De.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},De.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},De.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(h.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},De.prototype.sendRequestPromise=function(e,n){return new G(h.bind(function(i){this.sendRequest(e,n,i)},this))},De.prototype.flush=function(e){if(this.requestInProgress)return Dr.log("Flush: Request already in progress"),G.resolve();this.requestInProgress=!0,e=e||{};var n=this.libConfig.batch_request_timeout_ms,i=new Date().getTime(),t=this.batchSize;return this.queue.fillBatch(t).then(h.bind(function(r){var o=r.length===t,s=[],a={};if(h.each(r,function(f){var p=f.payload;if(this.beforeSendHook&&!f.orphaned&&(p=this.beforeSendHook(p)),p){p.event&&p.properties&&(p.properties=h.extend({},p.properties,{mp_sent_by_lib_version:Le.LIB_VERSION}));var g=!0,d=f.id;d?(this.itemIdsSentSuccessfully[d]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:f,batchSize:r.length,timesSent:this.itemIdsSentSuccessfully[d]}),g=!1):this.reportError("[dupe] found item with no ID",{item:f}),g&&s.push(p)}a[f.id]=p},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),G.resolve();var u=h.bind(function(){return this.queue.removeItemsByID(h.map(r,function(f){return f.id})).then(h.bind(function(f){return h.each(r,h.bind(function(p){var g=p.id;g?(this.itemIdsSentSuccessfully[g]=this.itemIdsSentSuccessfully[g]||0,this.itemIdsSentSuccessfully[g]++,this.itemIdsSentSuccessfully[g]>5&&this.reportError("[dupe] item ID sent too many times",{item:p,batchSize:r.length,timesSent:this.itemIdsSentSuccessfully[g]})):this.reportError("[dupe] found item with no ID while removing",{item:p})},this)),f?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!o?(this.resetFlush(),G.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),G.resolve())},this))},this),c=h.bind(function(f){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(h.isObject(f)&&f.error==="timeout"&&new Date().getTime()-i>=n)return this.reportError("Network timeout; retrying"),this.flush();if(h.isObject(f)&&(f.httpStatusCode>=500||f.httpStatusCode===429||f.httpStatusCode<=0&&!Sg()||f.error==="timeout")){var p=this.flushInterval*2;return f.retryAfter&&(p=parseInt(f.retryAfter,10)*1e3||p),p=Math.min(Pg,p),this.reportError("Error; retry in "+p+" ms"),this.scheduleFlush(p),G.resolve()}else if(h.isObject(f)&&f.httpStatusCode===413)if(r.length>1){var g=Math.max(1,Math.floor(t/2));return this.batchSize=Math.min(this.batchSize,g,r.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),G.resolve()}else return this.reportError("Single-event request too large; dropping",r),this.resetBatchSize(),u();else return u()}catch(d){this.reportError("Error handling API response",d),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:n};return e.unloading&&(l.transport="sendBeacon"),Dr.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,l).then(c)},this)).catch(h.bind(function(r){this.reportError("Error flushing request queue",r),this.resetFlush()},this))},De.prototype.reportError=function(e,n){if(Dr.error.apply(Dr.error,arguments),this.errorReporter)try{n instanceof Error||(n=new Error(e)),this.errorReporter(e,n)}catch(i){Dr.error(i)}};var Jo=function(e){var n=Date.now();return!e||n>e.maxExpires||n>e.idleExpires},Lg=250,Qt=It("recorder"),Wc=I.CompressionStream,Dg={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},Ng=new Set([T.MouseMove,T.MouseInteraction,T.Scroll,T.ViewportResize,T.Input,T.TouchMove,T.MediaInteraction,T.Drag,T.Selection]);function $g(e){return e.type===q.IncrementalSnapshot&&Ng.has(e.data.source)}var ye=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||ht,this._onMaxLengthReached=e.onMaxLengthReached||ht,this._onBatchSent=e.onBatchSent||ht,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=Mr,this.recordMinMs=0;var n=Lr(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new $e(Lc),this.batcher=new De(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:Dg,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:n,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:Lg,sharedLockTimeoutMS:10*1e3})};ye.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var e={distinct_id:String(this._mixpanel.get_distinct_id())},n=this._mixpanel.get_property("$device_id");n&&(e.$device_id=n);var i=this._mixpanel.get_property("$user_id");return i&&(e.$user_id=i),e},ye.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.batcher.flush().then(function(){return this.queueStorage.removeItem(this.batcherKey)}.bind(this))},ye.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},ye.prototype.get_config=function(e){return this.getConfig(e)},ye.prototype.startRecording=function(e){if(this._rrwebRecord===null){this.reportError("rrweb record function not provided. ");return}if(this._stopRecording!==null){Qt.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>Mr&&(this.recordMaxMs=Mr,Qt.critical("record_max_ms cannot be greater than "+Mr+"ms. Capping value.")),this.maxExpires||(this.maxExpires=new Date().getTime()+this.recordMaxMs),this.recordMinMs=this.getConfig("record_min_ms"),this.recordMinMs>Uo&&(this.recordMinMs=Uo,Qt.critical("record_min_ms cannot be greater than "+Uo+"ms. Capping value.")),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=h.info.currentUrl(),this.replayStartUrl=h.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var n=function(){clearTimeout(this.idleTimeoutId);var r=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,r),this.idleExpires=new Date().getTime()+r}.bind(this);n();var i=this.getConfig("record_block_selector");(i===""||i===null)&&(i=void 0);try{this._stopRecording=this._rrwebRecord({emit:function(r){if(this.idleExpires&&this.idleExpires<r.timestamp){this._onIdleTimeout();return}$g(r)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),n()),this.__enqueuePromise=this.batcher.enqueue(r)}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:i,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextClass:this.getConfig("record_mask_text_class"),maskTextSelector:this.getConfig("record_mask_text_selector"),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15}})}catch(r){this.reportError("Unexpected error when starting rrweb recording.",r)}if(typeof this._stopRecording!="function"){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var t=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),t)},ye.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(i){this.reportError("Error with rrweb stopRecording",i)}this._stopRecording=null}var n;return this.batcher.stopped?n=this.batcher.clear():e||(n=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),n},ye.prototype.isRrwebStopped=function(){return this._stopRecording===null},ye.prototype.flushEventsWithOptOut=function(e,n,i){var t=function(r){r===0&&(this.stopRecording(),i({error:"Tracking has been opted out, stopping recording."}))}.bind(this);this._flushEvents(e,n,i,t)},ye.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(n){this.reportError("Error getting tab ID for serialization ",n),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},ye.deserialize=function(e,n){var i=new ye(h.extend({},n,{replayId:e.replayId,batchStartUrl:e.batchStartUrl,replayStartUrl:e.replayStartUrl,idleExpires:e.idleExpires,maxExpires:e.maxExpires,replayStartTime:e.replayStartTime,seqNo:e.seqNo,sharedLockStorage:n.sharedLockStorage}));return i},ye.prototype._sendRequest=function(e,n,i,t){var r=function(s,a){s.status===200&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=h.info.currentUrl()),this._onBatchSent(),t({status:0,httpStatusCode:s.status,responseBody:a,retryAfter:s.headers.get("Retry-After")})}.bind(this),o=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");I.fetch(o+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(n),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:i}).then(function(s){s.json().then(function(a){r(s,a)}).catch(function(a){t({error:a})})}).catch(function(s){t({error:s,httpStatusCode:0})})},ye.prototype._flushEvents=pt(function(e,n,i){var t=e.length;if(t>0){for(var r=this.replayId,o=1/0,s=-1/0,a=!1,u=0;u<t;u++)o=Math.min(o,e[u].timestamp),s=Math.max(s,e[u].timestamp),e[u].type===q.FullSnapshot&&(a=!0);if(this.seqNo===0){if(!a){i({error:"First batch does not contain a full snapshot. Aborting recording."}),this.stopRecording(!0);return}this.replayStartTime=o}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=o);var c=s-this.replayStartTime,l={$current_url:this.batchStartUrl,$lib_version:Le.LIB_VERSION,batch_start_time:o/1e3,mp_lib:"web",replay_id:r,replay_length_ms:c,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},f=JSON.stringify(e);if(Object.assign(l,this.getUserIdInfo()),Wc){var p=new Blob([f],{type:"application/json"}).stream(),g=p.pipeThrough(new Wc("gzip"));new Response(g).blob().then(function(d){l.format="gzip",this._sendRequest(r,l,d,i)}.bind(this))}else l.format="body",this._sendRequest(r,l,f,i)}}),ye.prototype.reportError=function(e,n){Qt.error.apply(Qt.error,arguments);try{!n&&!(e instanceof Error)&&(e=new Error(e)),this.getConfig("error_reporter")(e,n)}catch(i){Qt.error(i)}};var Je=function(e){this.idb=new $e(jo),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};Je.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},Je.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},Je.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return G.resolve();var n=e.tabId;return n?this.idb.init().then(function(){return this.idb.setItem(n,e)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),G.resolve())},Je.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 Jo(e)?null:e}.bind(this)).catch(this.handleError.bind(this)):G.resolve(null)},Je.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},Je.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))},Je.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):G.resolve()},Je.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(e){var n=e.filter(function(i){return Jo(i)}).map(function(i){var t=ye.deserialize(i,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return t.unloadPersistedData().then(function(){return this.idb.removeItem(i.tabId)}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return G.all(n)}.bind(this)).catch(this.handleError.bind(this)):G.resolve([])};var Nr=It("recorder"),Xe=function(e,n,i){this.mixpanelInstance=e,this.rrwebRecord=n||at,this.sharedLockStorage=i,this.recordingRegistry=new Je({mixpanelInstance:this.mixpanelInstance,errorReporter:Nr.error,sharedLockStorage:i}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};Xe.prototype.startRecording=function(e){if(e=e||{},this.activeRecording&&!this.activeRecording.isRrwebStopped()){Nr.log("Recording already in progress, skipping startRecording.");return}var n=function(){Nr.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),i=function(){Nr.log("Max recording length reached, stopping recording."),this.resetRecording()}.bind(this),t=function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}.bind(this),r={mixpanelInstance:this.mixpanelInstance,onBatchSent:t,onIdleTimeout:n,onMaxLengthReached:i,replayId:h.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=ye.deserialize(e.activeSerializedRecording,r):this.activeRecording=new ye(r),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())},Xe.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))},Xe.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Xe.prototype._stopCurrentRecording=function(e,n){if(this.activeRecording){var i=this.activeRecording.stopRecording(e);return n&&(this.activeRecording=null),i}return G.resolve()},Xe.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),G.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(n){return n&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:n}):e?this.startRecording({shouldStopBatcher:!1}):(Nr.log("No resumable recording found."),null)}.bind(this))},Xe.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Xe.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(Xe.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),I.__mp_recorder=Xe;var $r="change",Ze="click",Xo="hashchange",Fg="input",qc="load",vt="mp_locationchange",Gc="popstate",ei="scrollend",Zo="scroll",Ug="select",ti="submit",Bg="toggle",Vc="visibilitychange",zg=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],jc=["mp-include"],Qo=["mp-no-track"],Hc=Qo.concat(["mp-sensitive"]),Wg=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],qg={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},Gg={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},Vg={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},Yc=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],jg=5,te=It("autocapture");function es(e){for(var n={},i=Kc(e).split(" "),t=0;t<i.length;t++){var r=i[t];r&&(n[r]=!0)}return n}function Kc(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function Hg(e){if(e.previousElementSibling)return e.previousElementSibling;do e=e.previousSibling;while(e&&!Zc(e));return e}function Jc(e,n,i,t,r,o){var s={$classes:Kc(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s.$id=a),ns(e,n,r,o)&&h.each(Wg.concat(t),function(f){if(e.hasAttribute(f)&&!i[f]){var p=e.getAttribute(f);ri(p)&&(s["$attr-"+f]=p)}});for(var u=1,c=1,l=e;l=Hg(l);)u++,l.tagName===e.tagName&&c++;return s.$nth_child=u,s.$nth_of_type=c,s}function Yg(e,n){var i=n.allowElementCallback,t=n.allowSelectors||[],r=n.blockAttrs||[],o=n.blockElementCallback,s=n.blockSelectors||[],a=n.captureTextContent||!1,u=n.captureExtraAttrs||[],c=n.capturedForHeatMap||!1,l={};h.each(r,function(C){l[C]=!0});var f=null,p=typeof e.target=="undefined"?e.srcElement:e.target;if(Qc(p)&&(p=p.parentNode),Zg(p,e)&&ts(p,e,i,t)&&!rs(p,e,o,s)){for(var g=[p],d=p;d.parentNode&&!We(d,"body");)g.push(d.parentNode),d=d.parentNode;var y=[],v,m=!1;if(h.each(g,function(C){var O=ns(C,e,i,t);!l.href&&C.tagName.toLowerCase()==="a"&&(v=C.getAttribute("href"),v=O&&ri(v)&&v),rs(C,e,o,s)&&(m=!0),y.push(Jc(C,e,l,u,i,t))},this),!m){var _=P.documentElement;if(f={$event_type:e.type,$host:I.location.host,$pathname:I.location.pathname,$elements:y,$el_attr__href:v,$viewportHeight:Math.max(_.clientHeight,I.innerHeight||0),$viewportWidth:Math.max(_.clientWidth,I.innerWidth||0),$pageHeight:P.body.offsetHeight||0,$pageWidth:P.body.offsetWidth||0},h.each(u,function(C){if(!l[C]&&p.hasAttribute(C)){var O=p.getAttribute(C);ri(O)&&(f["$el_attr__"+C]=O)}}),a&&(w=Xc(p,e,i,t),w&&w.length&&(f.$el_text=w)),e.type===Ze&&(h.each(zg,function(C){C in e&&(f["$"+C]=e[C])}),c&&(f.$captured_for_heatmap=!0),p=Kg(e)),a){var w=Xc(p,e,i,t);w&&w.length&&(f.$el_text=w)}if(p){if(!ts(p,e,i,t)||rs(p,e,o,s))return null;var S=Jc(p,e,l,u,i,t);f.$target=S,f.$el_classes=S.$classes,h.extend(f,h.strip_empty_properties({$el_id:S.$id,$el_tag_name:S.$tag_name}))}}}return f}function Xc(e,n,i,t){var r="";return ns(e,n,i,t)&&e.childNodes&&e.childNodes.length&&h.each(e.childNodes,function(o){Qc(o)&&o.textContent&&(r+=h.trim(o.textContent).split(/(\s+)/).filter(ri).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),h.trim(r)}function Kg(e){for(var n=e.target,i=e.composedPath(),t=0;t<i.length;t++){var r=i[t];if(We(r,"a")||We(r,"button")||We(r,"input")||We(r,"select")||r.getAttribute&&r.getAttribute("role")==="button"){n=r;break}if(r===n)break}return n}function ts(e,n,i,t){if(i)try{if(!i(e,n))return!1}catch(s){return te.critical("Error while checking element in allowElementCallback",s),!1}if(!t.length)return!0;for(var r=0;r<t.length;r++){var o=t[r];try{if(e.matches(o))return!0}catch(s){te.critical("Error while checking selector: "+o,s)}}return!1}function rs(e,n,i,t){var r;if(i)try{if(i(e,n))return!0}catch(a){return te.critical("Error while checking element in blockElementCallback",a),!0}if(t&&t.length)for(r=0;r<t.length;r++){var o=t[r];try{if(e.matches(o))return!0}catch(a){te.critical("Error while checking selector: "+o,a)}}var s=es(e);for(r=0;r<Qo.length;r++)if(s[Qo[r]])return!0;return!1}function Zc(e){return e&&e.nodeType===1}function We(e,n){return e&&e.tagName&&e.tagName.toLowerCase()===n.toLowerCase()}function Qc(e){return e&&e.nodeType===3}function Jg(){try{var e=P.createElement("div");return!!e.matches}catch(n){return!1}}function Xg(){return typeof WeakSet!="undefined"}function Zg(e,n){if(!e||We(e,"html")||!Zc(e))return!1;var i=e.tagName.toLowerCase();switch(i){case"form":return n.type===ti;case"input":return["button","submit"].indexOf(e.getAttribute("type"))===-1?n.type===$r:n.type===Ze;case"select":case"textarea":return n.type===$r;default:return n.type===Ze}}function ns(e,n,i,t){var r;if(!ts(e,n,i,t))return!1;for(var o=e;o.parentNode&&!We(o,"body");o=o.parentNode){var s=es(o);for(r=0;r<Hc.length;r++)if(s[Hc[r]])return!1}var a=es(e);for(r=0;r<jc.length;r++)if(a[jc[r]])return!0;if(We(e,"input")||We(e,"select")||We(e,"textarea")||e.getAttribute("contenteditable")==="true")return!1;var u=e.type||"";if(typeof u=="string")switch(u.toLowerCase()){case"hidden":return!1;case"password":return!1}var c=e.name||e.id||"";if(typeof c=="string"){var l=/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i;if(l.test(c.replace(/[^a-zA-Z0-9]/g,"")))return!1}return!0}function ri(e){if(e===null||h.isUndefined(e))return!1;if(typeof e=="string"){e=h.trim(e);var n=/^(?:(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}))$/;if(n.test((e||"").replace(/[- ]/g,"")))return!1;var i=/(^\d{3}-?\d{2}-?\d{4}$)/;if(i.test(e))return!1}return!0}function el(e){var n="onscrollend"in I,i=Pr(e),t=ei;if(!n){var r=null,o=100;i=Pr(function(){clearTimeout(r),r=setTimeout(e,o)}),t=Zo}return{listener:i,eventType:t}}function Qg(e){for(var n=0;n<Yc.length;n++)if(e.hasAttribute(Yc[n]))return!0;return!1}function em(e){var n=e.getAttribute("role");if(!n)return!1;var i=n.trim().split(/\s+/)[0].toLowerCase();return qg[i]}function is(e){var n=e.tagName.toLowerCase();return!!(n==="button"||n==="input"||n==="select"||n==="textarea"||n==="details"||n==="dialog"||e.isContentEditable||e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend||Qg(e)||em(e)||n==="a"&&e.hasAttribute("href")||e.hasAttribute("tabindex"))}function tm(e){if(!e||!e.tagName)return!0;var n=e.tagName.toLowerCase();if(Gg[n])return!0;if(is(e))return!1;for(var i=e.parentElement,t=0;i&&t<jg;){if(is(i))return!1;if(i.getRootNode&&i.getRootNode()!==P){var r=i.getRootNode();if(r.host&&is(r.host))return!1}i=i.parentElement,t++}return!!Vg[n]}var rm=30,nm=1e3,im=4;function tl(){this.clicks=[]}tl.prototype.isRageClick=function(e,n,i){i=i||{};var t=i.threshold_px||rm,r=i.timeout_ms||nm,o=i.click_count||im,s=Date.now(),a=this.clicks[this.clicks.length-1];if(a&&s-a.timestamp<r&&Math.sqrt(Math.pow(e-a.x,2)+Math.pow(n-a.y,2))<t){if(this.clicks.push({x:e,y:n,timestamp:s}),this.clicks.length>=o)return this.clicks=[],!0}else this.clicks=[{x:e,y:n,timestamp:s}];return!1};function Et(e,n){this.changeCallback=e||function(){},this.observerConfig=n,this.observedShadowRoots=null,this.shadowObservers=[]}Et.prototype.getEventTarget=function(e){if(this.observedShadowRoots){var n=this.getComposedPath(e);return n&&n.length?n[0]:e.target||e.srcElement}},Et.prototype.getComposedPath=function(e){return"composedPath"in e?e.composedPath():[]},Et.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var n=this.getComposedPath(e),i=0;i<n.length;i++){var t=n[i];t&&t.shadowRoot&&this.observeShadowRoot(t.shadowRoot)}},Et.prototype.observeShadowRoot=function(e){if(!(!this.observedShadowRoots||this.observedShadowRoots.has(e))){var n=this;try{this.observedShadowRoots.add(e);var i=new window.MutationObserver(function(){n.changeCallback()});i.observe(e,this.observerConfig),this.shadowObservers.push(i)}catch(t){te.critical("Error while observing shadow root",t)}}},Et.prototype.start=function(){if(!this.observedShadowRoots){if(!Xg()){te.critical("Shadow DOM observation unavailable: WeakSet not supported");return}this.observedShadowRoots=new WeakSet}},Et.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(n){te.critical("Error while disconnecting shadow DOM observer",n)}this.shadowObservers=[],this.observedShadowRoots=null}};var om=500,sm=[$r,Fg,ti,Ug,Bg],am=[ei],um=[Xo],rl={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function qe(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}qe.prototype.addClick=function(e){var n=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return n||(n=e.target||e.srcElement),!n||tm(n)?!1:(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:n,event:e,timestamp:Date.now()}),!0)},qe.prototype.trackClick=function(e,n){if(!this.isTracking)return!1;var i=this.addClick(e);return i&&this.triggerProcessing(n),i},qe.prototype.getDeadClicks=function(e){if(this.pendingClicks.length===0)return[];var n=e.timeout_ms,i=Date.now(),t=this.pendingClicks.slice();this.pendingClicks=[];for(var r=[],o=0;o<t.length;o++){var s=t[o];i-s.timestamp>=n?this.hasChangesAfter(s.timestamp)||r.push(s):this.pendingClicks.push(s)}return r},qe.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},qe.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},qe.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},qe.prototype.processRecursively=function(e){if(!this.isTracking||!this.onDeadClickCallback){this.processingActive=!1;return}var n=e.timeout_ms,i=this;this.processingTimeout=setTimeout(function(){if(i.processingActive){for(var t=i.getDeadClicks(e),r=0;r<t.length;r++)i.onDeadClickCallback(t[r].event);i.pendingClicks.length>0?i.processRecursively(e):i.processingActive=!1}},n)},qe.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;sm.forEach(function(i){var t=function(){e.recordChangeEvent()};document.addEventListener(i,t,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:i,handler:t,options:{capture:!0,passive:!0}})}),um.forEach(function(i){var t=function(){e.recordChangeEvent()};window.addEventListener(i,t),e.eventListeners.push({target:window,event:i,handler:t})}),am.forEach(function(i){var t=function(){e.recordChangeEvent()};window.addEventListener(i,t,{passive:!0}),e.eventListeners.push({target:window,event:i,handler:t,options:{passive:!0}})});var n=function(){e.recordChangeEvent()};if(document.addEventListener("selectionchange",n),e.eventListeners.push({target:document,event:"selectionchange",handler:n}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){e.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,rl)}catch(i){te.critical("Error while setting up mutation observer",i)}if(window.customElements)try{this.shadowDOMObserver=new Et(function(){e.recordChangeEvent()},rl),this.shadowDOMObserver.start()}catch(i){te.critical("Error while setting up shadow DOM observer",i),this.shadowDOMObserver=null}}},qe.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 n=this.eventListeners[e];try{n.target.removeEventListener(n.event,n.handler,n.options)}catch(i){te.critical("Error while removing event listener",i)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(i){te.critical("Error while disconnecting mutation observer",i)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(i){te.critical("Error while stopping shadow DOM observer",i)}this.shadowDOMObserver=null}}};var nl="autocapture",cm="track_pageview",il="full-url",lm="url-with-path-and-query-string",fm="url-with-path",hm="allow_element_callback",ol="allow_selectors",sl="allow_url_regexes",al="block_attrs",ul="block_element_callback",cl="block_selectors",ll="block_url_regexes",fl="capture_extra_attrs",hl="capture_text_content",pl="scroll_capture_all",dl="scroll_depth_percent_checkpoints",ni="click",ii="dead_click",os="input",vl="pageview",oi="rage_click",ss="scroll",si="page_leave",as="submit",ve={};ve[ol]=[],ve[sl]=[],ve[al]=[],ve[ul]=null,ve[cl]=[],ve[ll]=[],ve[fl]=[],ve[hl]=!1,ve[pl]=!1,ve[dl]=[25,50,75,100],ve[ni]=!0,ve[ii]=!0,ve[os]=!0,ve[vl]=il,ve[oi]=!0,ve[ss]=!0,ve[si]=!1,ve[as]=!0;var Fr={$mp_autocapture:!0},gl="$mp_click",ml="$mp_dead_click",pm="$mp_input_change",yl="$mp_rage_click",dm="$mp_scroll",vm="$mp_submit",gm="$mp_page_leave",he=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};he.prototype.init=function(){if(!Jg()){te.critical("Autocapture unavailable: missing required DOM APIs");return}this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking()},he.prototype.getFullConfig=function(){var e=this.mp.get_config(nl);return e?h.isObject(e)?h.extend({},ve,e):ve:{}},he.prototype.getConfig=function(e){return this.getFullConfig()[e]},he.prototype.currentUrlBlocked=function(){var e,n=h.info.currentUrl(),i=this.getConfig(sl)||[];if(i.length){var t=!1;for(e=0;e<i.length;e++){var r=i[e];try{if(n.match(r)){t=!0;break}}catch(s){return te.critical("Error while checking block URL regex: "+r,s),!0}}if(!t)return!0}var o=this.getConfig(ll)||[];if(!o||!o.length)return!1;for(e=0;e<o.length;e++)try{if(n.match(o[e]))return!0}catch(s){return te.critical("Error while checking block URL regex: "+o[e],s),!0}return!1},he.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(nl)?this.getConfig(vl):this.mp.get_config(cm)},he.prototype.trackDomEvent=function(e,n){if(!this.currentUrlBlocked()){var i=this.mp.is_recording_heatmap_data()&&(n===gl&&!this.getConfig(ni)||n===yl&&!this._getClickTrackingConfig(oi)||n===ml&&!this._getClickTrackingConfig(ii)),t=Yg(e,{allowElementCallback:this.getConfig(hm),allowSelectors:this.getConfig(ol),blockAttrs:this.getConfig(al),blockElementCallback:this.getConfig(ul),blockSelectors:this.getConfig(cl),captureExtraAttrs:this.getConfig(fl),captureTextContent:this.getConfig(hl),capturedForHeatMap:i});t&&(h.extend(t,Fr),this.mp.track(n,t))}},he.prototype.initPageListeners=function(){if(I.removeEventListener(Gc,this.listenerPopstate),I.removeEventListener(Xo,this.listenerHashchange),!(!this.pageviewTrackingConfig()&&!this.getConfig(si)&&!this.mp.get_config("record_heatmap_data"))){this.listenerPopstate=function(){I.dispatchEvent(new Event(vt))},this.listenerHashchange=function(){I.dispatchEvent(new Event(vt))},I.addEventListener(Gc,this.listenerPopstate),I.addEventListener(Xo,this.listenerHashchange);var e=I.history.pushState;typeof e=="function"&&(I.history.pushState=function(i,t,r){e.call(I.history,i,t,r),I.dispatchEvent(new Event(vt))});var n=I.history.replaceState;typeof n=="function"&&(I.history.replaceState=function(i,t,r){n.call(I.history,i,t,r),I.dispatchEvent(new Event(vt))})}},he.prototype._getClickTrackingConfig=function(e){var n=this.getConfig(e);return n?n===!0?{}:typeof n=="object"?n:{}:null},he.prototype._trackPageLeave=function(e,n,i){if(!this.hasTrackedScrollSession&&!(!this.getConfig(si)&&!this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var t=Math.max(P.documentElement.clientHeight,I.innerHeight||0),r=Math.round(Math.max(this.maxScrollViewDepth-t,0)/(i-t)*100),o=Math.round(t/i*100);i<=t&&(r=100,o=100);var s=h.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:r,$fold_line_percentage:o,$scroll_height:i,$event_type:e.type,$current_url:n||h.info.currentUrl(),$viewportHeight:t,$viewportWidth:Math.max(P.documentElement.clientWidth,I.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},Fr);this.mp.track(gm,s,{transport:"sendBeacon"})}},he.prototype._initScrollDepthTracking=function(){if(I.removeEventListener(Zo,this.listenerScrollDepth),I.removeEventListener(ei,this.listenerScrollDepth),!!this.mp.get_config("record_heatmap_data")){te.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(P.documentElement.clientHeight,I.innerHeight||0);var e=function(){if(!this.currentUrlBlocked()){var i=Math.max(P.documentElement.clientHeight,I.innerHeight||0)+I.scrollY;i>this.maxScrollViewDepth&&(this.maxScrollViewDepth=i),this.previousScrollHeight=P.body.scrollHeight}}.bind(this),n=el(e);this.listenerScrollDepth=n.listener,I.addEventListener(n.eventType,this.listenerScrollDepth)}},he.prototype.initClickTracking=function(){I.removeEventListener(Ze,this.listenerClick),!(!this.getConfig(ni)&&!this.mp.get_config("record_heatmap_data"))&&(te.log("Initializing click tracking"),this.listenerClick=function(e){!this.getConfig(ni)&&!this.mp.is_recording_heatmap_data()||this.trackDomEvent(e,gl)}.bind(this),I.addEventListener(Ze,this.listenerClick))},he.prototype.initDeadClickTracking=function(){var e=this._getClickTrackingConfig(ii);if(!e&&!this.mp.get_config("record_heatmap_data")){this.stopDeadClickTracking();return}te.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new qe(function(n){this.trackDomEvent(n,ml)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(n){var i=this._getClickTrackingConfig(ii);if(!(!i&&!this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var t=i||{};t.timeout_ms||(t.timeout_ms=om),this._deadClickTracker.trackClick(n,t)}}.bind(this),I.addEventListener(Ze,this.listenerDeadClick))},he.prototype.initInputTracking=function(){I.removeEventListener($r,this.listenerChange),this.getConfig(os)&&(te.log("Initializing input tracking"),this.listenerChange=function(e){this.getConfig(os)&&this.trackDomEvent(e,pm)}.bind(this),I.addEventListener($r,this.listenerChange))},he.prototype.initPageviewTracking=function(){if(I.removeEventListener(vt,this.listenerLocationchange),!!this.pageviewTrackingConfig()){te.log("Initializing pageview tracking");var e="",n=!1;this.currentUrlBlocked()||(n=this.mp.track_pageview(Fr)),n&&(e=h.info.currentUrl()),this.listenerLocationchange=Pr(function(){if(!this.currentUrlBlocked()){var i=h.info.currentUrl(),t=!1,r=i.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],o=this.pageviewTrackingConfig();if(o===il?t=i!==e:o===lm?t=i.split("#")[0]!==e.split("#")[0]:o===fm&&(t=r),t){var s=this.mp.track_pageview(Fr);s&&(e=i),r&&(this.lastScrollCheckpoint=0,te.log("Path change: re-initializing scroll depth checkpoints"))}}}.bind(this)),I.addEventListener(vt,this.listenerLocationchange)}},he.prototype.initRageClickTracking=function(){I.removeEventListener(Ze,this.listenerRageClick);var e=this._getClickTrackingConfig(oi);!e&&!this.mp.get_config("record_heatmap_data")||(te.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new tl),this.listenerRageClick=function(n){var i=this._getClickTrackingConfig(oi);!i&&!this.mp.is_recording_heatmap_data()||this.currentUrlBlocked()||this._rageClickTracker.isRageClick(n.pageX,n.pageY,i)&&this.trackDomEvent(n,yl)}.bind(this),I.addEventListener(Ze,this.listenerRageClick))},he.prototype.initScrollTracking=function(){if(I.removeEventListener(ei,this.listenerScroll),I.removeEventListener(Zo,this.listenerScroll),!!this.getConfig(ss)){te.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=function(){if(this.getConfig(ss)&&!this.currentUrlBlocked()){var i=this.getConfig(pl),t=(this.getConfig(dl)||[]).slice().sort(function(l,f){return l-f}),r=I.scrollY,o=h.extend({$scroll_top:r},Fr);try{var s=P.body.scrollHeight,a=Math.round(r/(s-I.innerHeight)*100);if(o.$scroll_height=s,o.$scroll_percentage=a,a>this.lastScrollCheckpoint)for(var u=0;u<t.length;u++){var c=t[u];a>=c&&this.lastScrollCheckpoint<c&&(o.$scroll_checkpoint=c,this.lastScrollCheckpoint=c,i=!0)}}catch(l){te.critical("Error while calculating scroll percentage",l)}i&&this.mp.track(dm,o)}}.bind(this),n=el(e);this.listenerScroll=n.listener,I.addEventListener(n.eventType,this.listenerScroll)}},he.prototype.initSubmitTracking=function(){I.removeEventListener(ti,this.listenerSubmit),this.getConfig(as)&&(te.log("Initializing submit tracking"),this.listenerSubmit=function(e){this.getConfig(as)&&this.trackDomEvent(e,vm)}.bind(this),I.addEventListener(ti,this.listenerSubmit))},he.prototype.initPageLeaveTracking=function(){if(P.removeEventListener(Vc,this.listenerPageLeaveVisibilitychange),I.removeEventListener(vt,this.listenerPageLeaveLocationchange),I.removeEventListener(qc,this.listenerPageLoad),!(!this.getConfig(si)&&!this.mp.get_config("record_heatmap_data"))){te.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=h.info.currentUrl();this.listenerPageLoad=function(){this.previousScrollHeight=P.body.scrollHeight}.bind(this),I.addEventListener(qc,this.listenerPageLoad),this.listenerPageLeaveLocationchange=Pr(function(n){if(!this.currentUrlBlocked()){var i=h.info.currentUrl(),t=i!==e;t&&(this._trackPageLeave(n,e,this.previousScrollHeight),e=i,this.maxScrollViewDepth=Math.max(P.documentElement.clientHeight,I.innerHeight||0),this.previousScrollHeight=P.body.scrollHeight,this.hasTrackedScrollSession=!1)}}.bind(this)),I.addEventListener(vt,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=function(n){P.hidden&&this._trackPageLeave(n,e,this.previousScrollHeight)}.bind(this),P.addEventListener(Vc,this.listenerPageLeaveVisibilitychange)}},he.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(I.removeEventListener(Ze,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},Rc(he);var Ie=It("flags"),ai="flags",ui="context",us={};us[ui]={};var U=function(e){this.fetch=I.fetch,this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc};U.prototype.init=function(){if(!this.minApisSupported()){Ie.critical("Feature Flags unavailable: missing minimum required APIs");return}this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set},U.prototype.getFullConfig=function(){var e=this.getMpConfig(ai);return e?h.isObject(e)?h.extend({},us,e):us:{}},U.prototype.getConfig=function(e){return this.getFullConfig()[e]},U.prototype.isSystemEnabled=function(){return!!this.getMpConfig(ai)},U.prototype.updateContext=function(e,n){if(!this.isSystemEnabled())return Ie.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var i=this.getMpConfig(ai);h.isObject(i)||(i={});var t=n&&n.replace?{}:this.getConfig(ui);return i[ui]=h.extend({},t,e),this.setMpConfig(ai,i),this.fetchFlags()},U.prototype.areFlagsReady=function(){return this.isSystemEnabled()||Ie.error("Feature Flags not enabled"),!!this.flags},U.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this.getMpProperty("distinct_id"),n=this.getMpProperty("$device_id"),i=_g();Ie.log("Fetching flags for distinct ID: "+e);var t=h.extend({distinct_id:e,device_id:n},this.getConfig(ui)),r=new URLSearchParams;r.set("context",JSON.stringify(t)),r.set("token",this.getMpConfig("token")),r.set("mp_lib","web"),r.set("$lib_version",Le.LIB_VERSION);var o=this.getFullApiRoute()+"?"+r.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(I,o,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:i}}).then(function(s){return this.markFetchComplete(),s.json().then(function(a){var u=a.flags;if(!u)throw new Error("No flags in API response");var c=new Map;h.each(u,function(l,f){c.set(f,{key:l.variant_key,value:l.variant_value,experiment_id:l.experiment_id,is_experiment_active:l.is_experiment_active,is_qa_tester:l.is_qa_tester})}),this.flags=c,this._traceparent=i}.bind(this)).catch(function(a){this.markFetchComplete(),Ie.error(a)}.bind(this))}.bind(this)).catch(function(s){this.markFetchComplete(),Ie.error(s)}.bind(this)),this.fetchPromise},U.prototype.markFetchComplete=function(){if(!this._fetchInProgressStartTime){Ie.error("Fetch in progress started time not set, cannot mark fetch complete");return}this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null},U.prototype.getVariant=function(e,n){return this.fetchPromise?this.fetchPromise.then(function(){return this.getVariantSync(e,n)}.bind(this)).catch(function(i){return Ie.error(i),n}):new Promise(function(i){Ie.critical("Feature Flags not initialized"),i(n)})},U.prototype.getVariantSync=function(e,n){if(!this.areFlagsReady())return Ie.log("Flags not loaded yet"),n;var i=this.flags.get(e);return i?(this.trackFeatureCheck(e,i),i):(Ie.log('No flag found: "'+e+'"'),n)},U.prototype.getVariantValue=function(e,n){return this.getVariant(e,{value:n}).then(function(i){return i.value}).catch(function(i){return Ie.error(i),n})},U.prototype.getFeatureData=function(e,n){return Ie.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,n)},U.prototype.getVariantValueSync=function(e,n){return this.getVariantSync(e,{value:n}).value},U.prototype.isEnabled=function(e,n){return this.getVariantValue(e).then(function(){return this.isEnabledSync(e,n)}.bind(this)).catch(function(i){return Ie.error(i),n})},U.prototype.isEnabledSync=function(e,n){n=n||!1;var i=this.getVariantValueSync(e,n);return i!==!0&&i!==!1&&(Ie.error('Feature flag "'+e+'" value: '+i+" is not a boolean; returning fallback value: "+n),i=n),i},U.prototype.trackFeatureCheck=function(e,n){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var i={"Experiment name":e,"Variant name":n.key,$experiment_type:"feature_flag","Variant fetch start time":new Date(this._fetchStartTime).toISOString(),"Variant fetch complete time":new Date(this._fetchCompleteTime).toISOString(),"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};n.experiment_id!=="undefined"&&(i.$experiment_id=n.experiment_id),n.is_experiment_active!=="undefined"&&(i.$is_experiment_active=n.is_experiment_active),n.is_qa_tester!=="undefined"&&(i.$is_qa_tester=n.is_qa_tester),this.track("$experiment_started",i)}},U.prototype.minApisSupported=function(){return!!this.fetch&&typeof Promise!="undefined"&&typeof Map!="undefined"&&typeof Set!="undefined"},Rc(U),U.prototype.are_flags_ready=U.prototype.areFlagsReady,U.prototype.get_variant=U.prototype.getVariant,U.prototype.get_variant_sync=U.prototype.getVariantSync,U.prototype.get_variant_value=U.prototype.getVariantValue,U.prototype.get_variant_value_sync=U.prototype.getVariantValueSync,U.prototype.is_enabled=U.prototype.isEnabled,U.prototype.is_enabled_sync=U.prototype.isEnabledSync,U.prototype.update_context=U.prototype.updateContext,U.prototype.get_feature_data=U.prototype.getFeatureData;var Qe=function(){};Qe.prototype.create_properties=function(){},Qe.prototype.event_handler=function(){},Qe.prototype.after_track_handler=function(){},Qe.prototype.init=function(e){return this.mp=e,this},Qe.prototype.track=function(e,n,i,t){var r=this,o=h.dom_query(e);if(o.length===0){F.error("The DOM query ("+e+") returned 0 elements");return}return h.each(o,function(s){h.register_event(s,this.override_event,function(a){var u={},c=r.create_properties(i,this),l=r.mp.get_config("track_links_timeout");r.event_handler(a,this,u),window.setTimeout(r.track_callback(t,c,u,!0),l),r.mp.track(n,c,r.track_callback(t,c,u))})},this),!0},Qe.prototype.track_callback=function(e,n,i,t){t=t||!1;var r=this;return function(){i.callback_fired||(i.callback_fired=!0,!(e&&e(t,n)===!1)&&r.after_track_handler(n,i,t))}},Qe.prototype.create_properties=function(e,n){var i;return typeof e=="function"?i=e(n):i=h.extend({},e),i};var er=function(){this.override_event="click"};h.inherit(er,Qe),er.prototype.create_properties=function(e,n){var i=er.superclass.create_properties.apply(this,arguments);return n.href&&(i.url=n.href),i},er.prototype.event_handler=function(e,n,i){i.new_tab=e.which===2||e.metaKey||e.ctrlKey||n.target==="_blank",i.href=n.href,i.new_tab||e.preventDefault()},er.prototype.after_track_handler=function(e,n){n.new_tab||setTimeout(function(){window.location=n.href},0)};var ci=function(){this.override_event="submit"};h.inherit(ci,Qe),ci.prototype.event_handler=function(e,n,i){i.element=n,e.preventDefault()},ci.prototype.after_track_handler=function(e,n){setTimeout(function(){n.element.submit()},0)};var gt="$set",tr="$set_once",Fe="$unset",kt="$add",Ge="$append",Ot="$union",et="$remove",mm="$delete",_l={set_action:function(e,n){var i={},t={};return h.isObject(e)?h.each(e,function(r,o){this._is_reserved_property(o)||(t[o]=r)},this):t[e]=n,i[gt]=t,i},unset_action:function(e){var n={},i=[];return h.isArray(e)||(e=[e]),h.each(e,function(t){this._is_reserved_property(t)||i.push(t)},this),n[Fe]=i,n},set_once_action:function(e,n){var i={},t={};return h.isObject(e)?h.each(e,function(r,o){this._is_reserved_property(o)||(t[o]=r)},this):t[e]=n,i[tr]=t,i},union_action:function(e,n){var i={},t={};return h.isObject(e)?h.each(e,function(r,o){this._is_reserved_property(o)||(t[o]=h.isArray(r)?r:[r])},this):t[e]=h.isArray(n)?n:[n],i[Ot]=t,i},append_action:function(e,n){var i={},t={};return h.isObject(e)?h.each(e,function(r,o){this._is_reserved_property(o)||(t[o]=r)},this):t[e]=n,i[Ge]=t,i},remove_action:function(e,n){var i={},t={};return h.isObject(e)?h.each(e,function(r,o){this._is_reserved_property(o)||(t[o]=r)},this):t[e]=n,i[et]=t,i},delete_action:function(){var e={};return e[mm]="",e}},ie=function(){};h.extend(ie.prototype,_l),ie.prototype._init=function(e,n,i){this._mixpanel=e,this._group_key=n,this._group_id=i},ie.prototype.set=Xt(function(e,n,i){var t=this.set_action(e,n);return h.isObject(e)&&(i=n),this._send_request(t,i)}),ie.prototype.set_once=Xt(function(e,n,i){var t=this.set_once_action(e,n);return h.isObject(e)&&(i=n),this._send_request(t,i)}),ie.prototype.unset=Xt(function(e,n){var i=this.unset_action(e);return this._send_request(i,n)}),ie.prototype.union=Xt(function(e,n,i){h.isObject(e)&&(i=n);var t=this.union_action(e,n);return this._send_request(t,i)}),ie.prototype.delete=Xt(function(e){var n=this.delete_action();return this._send_request(n,e)}),ie.prototype.remove=Xt(function(e,n,i){var t=this.remove_action(e,n);return this._send_request(t,i)}),ie.prototype._send_request=function(e,n){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var i=h.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:i,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},n)},ie.prototype._is_reserved_property=function(e){return e==="$group_key"||e==="$group_id"},ie.prototype._get_config=function(e){return this._mixpanel.get_config(e)},ie.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},ie.prototype.remove=ie.prototype.remove,ie.prototype.set=ie.prototype.set,ie.prototype.set_once=ie.prototype.set_once,ie.prototype.union=ie.prototype.union,ie.prototype.unset=ie.prototype.unset,ie.prototype.toString=ie.prototype.toString;var D=function(){};h.extend(D.prototype,_l),D.prototype._init=function(e){this._mixpanel=e},D.prototype.set=dt(function(e,n,i){var t=this.set_action(e,n);return h.isObject(e)&&(i=n),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),t[gt]=h.extend({},h.info.people_properties(),t[gt]),this._send_request(t,i)}),D.prototype.set_once=dt(function(e,n,i){var t=this.set_once_action(e,n);return h.isObject(e)&&(i=n),this._send_request(t,i)}),D.prototype.unset=dt(function(e,n){var i=this.unset_action(e);return this._send_request(i,n)}),D.prototype.increment=dt(function(e,n,i){var t={},r={};return h.isObject(e)?(h.each(e,function(o,s){if(!this._is_reserved_property(s))if(isNaN(parseFloat(o))){F.error("Invalid increment value passed to mixpanel.people.increment - must be a number");return}else r[s]=o},this),i=n):(h.isUndefined(n)&&(n=1),r[e]=n),t[kt]=r,this._send_request(t,i)}),D.prototype.append=dt(function(e,n,i){h.isObject(e)&&(i=n);var t=this.append_action(e,n);return this._send_request(t,i)}),D.prototype.remove=dt(function(e,n,i){h.isObject(e)&&(i=n);var t=this.remove_action(e,n);return this._send_request(t,i)}),D.prototype.union=dt(function(e,n,i){h.isObject(e)&&(i=n);var t=this.union_action(e,n);return this._send_request(t,i)}),D.prototype.track_charge=dt(function(){F.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),D.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},D.prototype.delete_user=function(){if(!this._identify_called()){F.error("mixpanel.people.delete_user() requires you to call identify() first");return}var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)},D.prototype.toString=function(){return this._mixpanel.toString()+".people"},D.prototype._send_request=function(e,n){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var i=this._mixpanel.get_property("$device_id"),t=this._mixpanel.get_property("$user_id"),r=this._mixpanel.get_property("$had_persisted_distinct_id");i&&(e.$device_id=i),t&&(e.$user_id=t),r&&(e.$had_persisted_distinct_id=r);var o=h.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},n):(this._enqueue(e),h.isUndefined(n)||(this._get_config("verbose")?n({status:-1,error:null}):n(-1)),h.truncate(o,255))},D.prototype._get_config=function(e){return this._mixpanel.get_config(e)},D.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0},D.prototype._enqueue=function(e){gt in e?this._mixpanel.persistence._add_to_people_queue(gt,e):tr in e?this._mixpanel.persistence._add_to_people_queue(tr,e):Fe in e?this._mixpanel.persistence._add_to_people_queue(Fe,e):kt in e?this._mixpanel.persistence._add_to_people_queue(kt,e):Ge in e?this._mixpanel.persistence._add_to_people_queue(Ge,e):et in e?this._mixpanel.persistence._add_to_people_queue(et,e):Ot in e?this._mixpanel.persistence._add_to_people_queue(Ot,e):F.error("Invalid call to _enqueue():",e)},D.prototype._flush_one_queue=function(e,n,i,t){var r=this,o=h.extend({},this._mixpanel.persistence.load_queue(e)),s=o;!h.isUndefined(o)&&h.isObject(o)&&!h.isEmptyObject(o)&&(r._mixpanel.persistence._pop_from_people_queue(e,o),r._mixpanel.persistence.save(),t&&(s=t(o)),n.call(r,s,function(a,u){a===0&&r._mixpanel.persistence._add_to_people_queue(e,o),h.isUndefined(i)||i(a,u)}))},D.prototype._flush=function(e,n,i,t,r,o,s){var a=this;this._flush_one_queue(gt,this.set,e),this._flush_one_queue(tr,this.set_once,t),this._flush_one_queue(Fe,this.unset,o,function(v){return h.keys(v)}),this._flush_one_queue(kt,this.increment,n),this._flush_one_queue(Ot,this.union,r);var u=this._mixpanel.persistence.load_queue(Ge);if(!h.isUndefined(u)&&h.isArray(u)&&u.length)for(var c,l=function(v,m){v===0&&a._mixpanel.persistence._add_to_people_queue(Ge,c),h.isUndefined(i)||i(v,m)},f=u.length-1;f>=0;f--)u=this._mixpanel.persistence.load_queue(Ge),c=u.pop(),a._mixpanel.persistence.save(),h.isEmptyObject(c)||a.append(c,l);var p=this._mixpanel.persistence.load_queue(et);if(!h.isUndefined(p)&&h.isArray(p)&&p.length)for(var g,d=function(v,m){v===0&&a._mixpanel.persistence._add_to_people_queue(et,g),h.isUndefined(s)||s(v,m)},y=p.length-1;y>=0;y--)p=this._mixpanel.persistence.load_queue(et),g=p.pop(),a._mixpanel.persistence.save(),h.isEmptyObject(g)||a.remove(g,d)},D.prototype._is_reserved_property=function(e){return e==="$distinct_id"||e==="$token"||e==="$device_id"||e==="$user_id"||e==="$had_persisted_distinct_id"},D.prototype.set=D.prototype.set,D.prototype.set_once=D.prototype.set_once,D.prototype.unset=D.prototype.unset,D.prototype.increment=D.prototype.increment,D.prototype.append=D.prototype.append,D.prototype.remove=D.prototype.remove,D.prototype.union=D.prototype.union,D.prototype.track_charge=D.prototype.track_charge,D.prototype.clear_charges=D.prototype.clear_charges,D.prototype.delete_user=D.prototype.delete_user,D.prototype.toString=D.prototype.toString;var cs="__mps",ls="__mpso",fs="__mpus",hs="__mpa",ps="__mpap",ds="__mpr",vs="__mpu",bl="$people_distinct_id",li="__alias",Ur="__timers",ym=[cs,ls,fs,hs,ps,ds,vs,bl,li,Ur],$=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 n=e.persistence;n!=="cookie"&&n!=="localStorage"&&(F.critical("Unknown persistence type "+n+"; falling back to cookie"),n=e.persistence="cookie"),n==="localStorage"&&h.localStorage.is_supported()?this.storage=h.localStorage:this.storage=h.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};$.prototype.properties=function(){var e={};return this.load(),h.each(this.props,function(n,i){h.include(ym,i)||(e[i]=n)}),e},$.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=h.extend({},e))}},$.prototype.upgrade=function(){var e,n;this.storage===h.localStorage?(e=h.cookie.parse(this.name),h.cookie.remove(this.name),h.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===h.cookie&&(n=h.localStorage.parse(this.name),h.localStorage.remove(this.name),n&&this.register_once(n))},$.prototype.save=function(){this.disabled||this.storage.set(this.name,Jt(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},$.prototype.load_prop=function(e){return this.load(),this.props[e]},$.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},$.prototype.clear=function(){this.remove(),this.props={}},$.prototype.register_once=function(e,n,i){return h.isObject(e)?(typeof n=="undefined"&&(n="None"),this.expire_days=typeof i=="undefined"?this.default_expiry:i,this.load(),h.each(e,function(t,r){(!this.props.hasOwnProperty(r)||this.props[r]===n)&&(this.props[r]=t)},this),this.save(),!0):!1},$.prototype.register=function(e,n){return h.isObject(e)?(this.expire_days=typeof n=="undefined"?this.default_expiry:n,this.load(),h.extend(this.props,e),this.save(),!0):!1},$.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},$.prototype.update_search_keyword=function(e){this.register(h.info.searchInfo(e))},$.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:h.info.referringDomain(e)||"$direct"},"")},$.prototype.get_referrer_info=function(){return h.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},$.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)},$.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},$.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},$.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},$.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},$.prototype.get_cross_subdomain=function(){return this.cross_subdomain},$.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},$.prototype._add_to_people_queue=function(e,n){var i=this._get_queue_key(e),t=n[e],r=this._get_or_create_queue(gt),o=this._get_or_create_queue(tr),s=this._get_or_create_queue(Fe),a=this._get_or_create_queue(kt),u=this._get_or_create_queue(Ot),c=this._get_or_create_queue(et,[]),l=this._get_or_create_queue(Ge,[]);i===cs?(h.extend(r,t),this._pop_from_people_queue(kt,t),this._pop_from_people_queue(Ot,t),this._pop_from_people_queue(Fe,t)):i===ls?(h.each(t,function(f,p){p in o||(o[p]=f)}),this._pop_from_people_queue(Fe,t)):i===fs?h.each(t,function(f){h.each([r,o,a,u],function(p){f in p&&delete p[f]}),h.each(l,function(p){f in p&&delete p[f]}),s[f]=!0}):i===hs?(h.each(t,function(f,p){p in r?r[p]+=f:(p in a||(a[p]=0),a[p]+=f)},this),this._pop_from_people_queue(Fe,t)):i===vs?(h.each(t,function(f,p){h.isArray(f)&&(p in u||(u[p]=[]),h.each(f,function(g){h.include(u[p],g)||u[p].push(g)}))}),this._pop_from_people_queue(Fe,t)):i===ds?(c.push(t),this._pop_from_people_queue(Ge,t)):i===ps&&(l.push(t),this._pop_from_people_queue(Fe,t)),F.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),F.log(n),this.save()},$.prototype._pop_from_people_queue=function(e,n){var i=this.props[this._get_queue_key(e)];h.isUndefined(i)||h.each(n,function(t,r){e===Ge||e===et?h.each(i,function(o){o[r]===t&&delete o[r]}):delete i[r]},this)},$.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},$.prototype._get_queue_key=function(e){if(e===gt)return cs;if(e===tr)return ls;if(e===Fe)return fs;if(e===kt)return hs;if(e===Ge)return ps;if(e===et)return ds;if(e===Ot)return vs;F.error("Invalid queue:",e)},$.prototype._get_or_create_queue=function(e,n){var i=this._get_queue_key(e);return n=h.isUndefined(n)?{}:n,this.props[i]||(this.props[i]=n)},$.prototype.set_event_timer=function(e,n){var i=this.load_prop(Ur)||{};i[e]=n,this.props[Ur]=i,this.save()},$.prototype.remove_event_timer=function(e){var n=this.load_prop(Ur)||{},i=n[e];return h.isUndefined(i)||(delete this.props[Ur][e],this.save()),i};var gs,wl=function(e,n){throw new Error(e+" not available in this build.")},pe,_m=0,Sl=1,bm=function(e){return e},Re="mixpanel",Cl="base64",wm="json",ms="$device:",rr=I.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Il=!rr&&Ke.indexOf("MSIE")===-1&&Ke.indexOf("Mozilla")===-1,fi=null;ft.sendBeacon&&(fi=function(){return ft.sendBeacon.apply(ft,arguments)});var El={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/"},kl={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:El,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:Cl,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:ht,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:ht,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class: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_heatmap_data:!1,record_idle_timeout_ms:30*60*1e3,record_mask_text_class:new RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:Mr,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},Ol=!1,b=function(){},hi=function(e,n,i){var t,r=i===Re?pe:pe[i];if(r&&gs===_m)t=r;else{if(r&&!h.isArray(r)){F.error("You have already initialized "+i);return}t=new b}if(t._cached_groups={},t._init(e,n,i),t.people=new D,t.people._init(t),!t.get_config("skip_first_touch_marketing")){var o=h.info.campaignParams(null),s={},a=!1;h.each(o,function(u,c){s["initial_"+c]=u,u&&(a=!0)}),a&&t.people.set_once(s)}return Le.DEBUG=Le.DEBUG||t.get_config("debug"),!h.isUndefined(r)&&h.isArray(r)&&(t._execute_array.call(t.people,r.people),t._execute_array(r)),t};b.prototype.init=function(e,n,i){if(h.isUndefined(i)){this.report_error("You must name your new library: init(token, config, name)");return}if(i===Re){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var t=hi(e,n,i);return pe[i]=t,t._loaded(),t},b.prototype._init=function(e,n,i){n=n||{},this.__loaded=!0,this.config={};var t={};if(!("api_payload_format"in n)){var r=n.api_host||kl.api_host;r.match(/\.mixpanel\.com/)&&(t.api_payload_format=wm)}if(this.set_config(h.extend({},kl,t,n,{name:i,token:e,callback_fn:(i===Re?i:Re+"."+i)+"._jsc"})),this._jsc=ht,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests){if(!h.localStorage.is_supported(!0)||!rr)this._batch_requests=!1,F.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),h.each(this.get_batcher_configs(),function(a){F.log("Clearing batch queue "+a.queue_key),h.localStorage.remove(a.queue_key)});else if(this.init_batchers(),fi&&I.addEventListener){var o=h.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);I.addEventListener("pagehide",function(a){a.persisted&&o()}),I.addEventListener("visibilitychange",function(){P.visibilityState==="hidden"&&o()})}}this.persistence=this.cookie=new $(this.config),this.unpersisted_superprops={},this._gdpr_init();var s=h.UUID();this.get_distinct_id()||this.register_once({distinct_id:ms+s,$device_id:s},""),this.flags=new U({getFullApiRoute:h.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:h.bind(this.get_config,this),setConfigFunc:h.bind(this.set_config,this),getPropertyFunc:h.bind(this.get_property,this),trackingFunc:h.bind(this.track,this)}),this.flags.init(),this.flags=this.flags,this.autocapture=new he(this),this.autocapture.init(),this._init_tab_id(),this._check_and_start_session_recording()},b.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))F.log("Tab ID initialization skipped due to disable_persistence config");else if(h.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),n="mp_tab_id_"+e,i="mp_gen_new_tab_id_"+e;(h.sessionStorage.get(i)||!h.sessionStorage.get(n))&&h.sessionStorage.set(n,"$tab-"+h.UUID()),h.sessionStorage.set(i,"1"),this.tab_id=h.sessionStorage.get(n),I.addEventListener("beforeunload",function(){h.sessionStorage.remove(i)})}catch(t){this.report_error("Error initializing tab id",t)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},b.prototype.get_tab_id=function(){return this.tab_id||null},b.prototype._should_load_recorder=function(){if(this.get_config("disable_persistence"))return F.log("Load recorder check skipped due to disable_persistence config"),Promise.resolve(!1);var e=new $e(jo),n=this.get_tab_id();return e.init().then(function(){return e.getAll()}).then(function(i){for(var t=0;t<i.length;t++)if(Jo(i[t])||i[t].tabId===n)return!0;return!1}).catch(h.bind(function(i){this.report_error("Error checking recording registry",i)},this))},b.prototype._check_and_start_session_recording=pt(function(e){if(!I.MutationObserver){F.critical("Browser does not support MutationObserver; skipping session recording");return}var n=h.bind(function(t){var r=h.bind(function(){this._recorder=this._recorder||new I.__mp_recorder(this),this._recorder.resumeRecording(t)},this);h.isUndefined(I.__mp_recorder)?wl(this.get_config("recorder_src"),r):r()},this),i=this.get_config("record_sessions_percent")>0&&Math.random()*100<=this.get_config("record_sessions_percent");e||i?n(!0):this._should_load_recorder().then(function(t){t&&n(!1)})}),b.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)},b.prototype.stop_session_recording=function(){return this._recorder?this._recorder.stopRecording():Promise.resolve()},b.prototype.pause_session_recording=function(){return this._recorder?this._recorder.pauseRecording():Promise.resolve()},b.prototype.resume_session_recording=function(){return this._recorder?this._recorder.resumeRecording():Promise.resolve()},b.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")},b.prototype.get_session_recording_properties=function(){var e={},n=this._get_session_replay_id();return n&&(e.$mp_replay_id=n),e},b.prototype.get_session_replay_url=function(){var e=null,n=this._get_session_replay_id();if(n){var i=h.HTTPBuildQuery({replay_id:n,distinct_id:this.get_distinct_id(),token:this.get_config("token")});e="https://mixpanel.com/projects/replay-redirect?"+i}return e},b.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},b.prototype.__get_recorder=function(){return this._recorder},b.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=h.info.campaignParams(null);h.each(e,function(n,i){this.unregister(i)}.bind(this))}},b.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(P.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(h.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(P.referrer)},b.prototype._dom_loaded=function(){h.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||h.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},b.prototype._track_dom=function(e,n){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!Ol)return this.__dom_loaded_queue.push([e,n]),!1;var i=new e().init(this);return i.track.apply(i,n)},b.prototype._prepare_callback=function(e,n){if(h.isUndefined(e))return null;if(rr){var i=function(s){e(s,n)};return i}else{var t=this._jsc,r=""+Math.floor(Math.random()*1e8),o=this.get_config("callback_fn")+"["+r+"]";return t[r]=function(s){delete t[r],e(s,n)},o}},b.prototype._send_request=function(e,n,i,t){var r=!0;if(Il)return this.__request_queue.push(arguments),r;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;!t&&(h.isFunction(i)||typeof i=="string")&&(t=i,i=null),i=h.extend(o,i||{}),rr||(i.method="GET");var a=i.method==="POST",u=fi&&a&&i.transport.toLowerCase()==="sendbeacon",c=i.verbose;n.verbose&&(c=!0),this.get_config("test")&&(n.test=1),c&&(n.verbose=1),this.get_config("img")&&(n.img=1),rr||(t?n.callback=t:(c||this.get_config("test"))&&(n.callback="(function(){})")),n.ip=this.get_config("ip")?1:0,n._=new Date().getTime().toString(),a&&(s="data="+encodeURIComponent(n.data),delete n.data),h.extend(n,this.get_config("api_extra_query_params")),e+="?"+h.HTTPBuildQuery(n);var l=this;if("img"in n){var f=P.createElement("img");f.src=e,P.body.appendChild(f)}else if(u){try{r=fi(e,s)}catch(m){l.report_error(m),r=!1}try{t&&t(r?1:0)}catch(m){l.report_error(m)}}else if(rr)try{var p=new XMLHttpRequest;p.open(i.method,e,!0);var g=this.get_config("xhr_headers");if(a&&(g["Content-Type"]="application/x-www-form-urlencoded"),h.each(g,function(m,_){p.setRequestHeader(_,m)}),i.timeout_ms&&typeof p.timeout!="undefined"){p.timeout=i.timeout_ms;var d=new Date().getTime()}p.withCredentials=!0,p.onreadystatechange=function(){if(p.readyState===4)if(p.status===200){if(t)if(c){var m;try{m=h.JSONDecode(p.responseText)}catch(S){if(l.report_error(S),i.ignore_json_errors)m=p.responseText;else return}t(m)}else t(Number(p.responseText))}else{var _;if(p.timeout&&!p.status&&new Date().getTime()-d>=p.timeout?_="timeout":_="Bad HTTP status: "+p.status+" "+p.statusText,l.report_error(_),t)if(c){var w=p.responseHeaders||{};t({status:0,httpStatusCode:p.status,error:_,retryAfter:w["Retry-After"]})}else t(0)}},p.send(s)}catch(m){l.report_error(m),r=!1}else{var y=P.createElement("script");y.type="text/javascript",y.async=!0,y.defer=!0,y.src=e;var v=P.getElementsByTagName("script")[0];v.parentNode.insertBefore(y,v)}return r},b.prototype._execute_array=function(e){var n,i=[],t=[],r=[];h.each(e,function(s){s&&(n=s[0],h.isArray(n)?r.push(s):typeof s=="function"?s.call(this):h.isArray(s)&&n==="alias"?i.push(s):h.isArray(s)&&n.indexOf("track")!==-1&&typeof this[n]=="function"?r.push(s):t.push(s))},this);var o=function(s,a){h.each(s,function(u){if(h.isArray(u[0])){var c=a;h.each(u,function(l){c=c[l[0]].apply(c,l.slice(1))})}else this[u[0]].apply(this,u.slice(1))},a)};o(i,this),o(t,this),o(r,this)},b.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},b.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},b.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=h.bind(function(i){return new De(i.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:h.bind(function(t,r,o){var s=this.get_config("api_routes");this._send_request(this.get_api_host(i.api_name)+"/"+s[i.api_name],this._encode_data_for_request(t),r,this._prepare_callback(o,t))},this),beforeSendHook:h.bind(function(t){return this._run_hook("before_send_"+i.type,t)},this),stopAllBatchingFunc:h.bind(this.stop_batch_senders,this),usePersistence:!0})},this),n=this.get_batcher_configs();this.request_batchers={events:e(n.events),people:e(n.people),groups:e(n.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},b.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,h.each(this.request_batchers,function(e){e.start()}))},b.prototype.stop_batch_senders=function(){this._batch_requests=!1,h.each(this.request_batchers,function(e){e.stop(),e.clear()})},b.prototype.push=function(e){this._execute_array([e])},b.prototype.disable=function(e){typeof e=="undefined"?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},b.prototype._encode_data_for_request=function(e){var n=Jt(e);return this.get_config("api_payload_format")===Cl&&(n=h.base64Encode(n)),{data:n}},b.prototype._track_or_batch=function(e,n){var i=h.truncate(e.data,255),t=e.endpoint,r=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};n=n||ht;var a=!0,u=h.bind(function(){return s.skip_hooks||(i=this._run_hook("before_send_"+e.type,i)),i?(F.log("MIXPANEL REQUEST:"),F.log(i),this._send_request(t,this._encode_data_for_request(i),s,this._prepare_callback(n,i))):null},this);return this._batch_requests&&!o?r.enqueue(i).then(function(c){c?n(1,i):u()}):a=u(),a&&i},b.prototype.track=pt(function(e,n,i,t){!t&&typeof i=="function"&&(t=i,i=null),i=i||{};var r=i.transport;r&&(i.transport=r);var o=i.send_immediately;if(typeof t!="function"&&(t=ht),h.isUndefined(e)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(e)){t(0);return}n=h.extend({},n),n.token=this.get_config("token");var s=this.persistence.remove_event_timer(e);if(!h.isUndefined(s)){var a=new Date().getTime()-s;n.$duration=parseFloat((a/1e3).toFixed(3))}this._set_default_superprops();var u=this.get_config("track_marketing")?h.info.marketingParams():{};n=h.extend({},h.info.properties({mp_loader:this.get_config("mp_loader")}),u,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),n);var c=this.get_config("property_blacklist");h.isArray(c)?h.each(c,function(p){delete n[p]}):this.report_error("Invalid value for property_blacklist config: "+c);var l={event:e,properties:n},f=this._track_or_batch({type:"events",data:l,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:o,send_request_options:i},t);return f}),b.prototype.set_group=pt(function(e,n,i){h.isArray(n)||(n=[n]);var t={};return t[e]=n,this.register(t),this.people.set(e,n,i)}),b.prototype.add_group=pt(function(e,n,i){var t=this.get_property(e),r={};return t===void 0?(r[e]=[n],this.register(r)):t.indexOf(n)===-1&&(t.push(n),r[e]=t,this.register(r)),this.people.union(e,n,i)}),b.prototype.remove_group=pt(function(e,n,i){var t=this.get_property(e);if(t!==void 0){var r=t.indexOf(n);r>-1&&(t.splice(r,1),this.register({group_key:t})),t.length===0&&this.unregister(e)}return this.people.remove(e,n,i)}),b.prototype.track_with_groups=pt(function(e,n,i,t){var r=h.extend({},n||{});return h.each(i,function(o,s){o!=null&&(r[s]=o)}),this.track(e,r,t)}),b.prototype._create_map_key=function(e,n){return e+"_"+JSON.stringify(n)},b.prototype._remove_group_from_cache=function(e,n){delete this._cached_groups[this._create_map_key(e,n)]},b.prototype.get_group=function(e,n){var i=this._create_map_key(e,n),t=this._cached_groups[i];return(t===void 0||t._group_key!==e||t._group_id!==n)&&(t=new ie,t._init(this,e,n),this._cached_groups[i]=t),t},b.prototype.track_pageview=pt(function(e,n){typeof e!="object"&&(e={}),n=n||{};var i=n.event_name||"$mp_web_page_view",t=h.extend(h.info.mpPageViewProperties(),h.info.campaignParams(),h.info.clickParams()),r=h.extend({},t,e);return this.track(i,r)}),b.prototype.track_links=function(){return this._track_dom.call(this,er,arguments)},b.prototype.track_forms=function(){return this._track_dom.call(this,ci,arguments)},b.prototype.time_event=function(e){if(h.isUndefined(e)){this.report_error("No event name provided to mixpanel.time_event");return}this._event_is_disabled(e)||this.persistence.set_event_timer(e,new Date().getTime())};var Sm={persistent:!0},ys=function(e){var n;return h.isObject(e)?n=e:h.isUndefined(e)?n={}:n={days:e},h.extend({},Sm,n)};b.prototype.register=function(e,n){var i=ys(n);i.persistent?this.persistence.register(e,i.days):h.extend(this.unpersisted_superprops,e)},b.prototype.register_once=function(e,n,i){var t=ys(i);t.persistent?this.persistence.register_once(e,n,t.days):(typeof n=="undefined"&&(n="None"),h.each(e,function(r,o){(!this.unpersisted_superprops.hasOwnProperty(o)||this.unpersisted_superprops[o]===n)&&(this.unpersisted_superprops[o]=r)},this))},b.prototype.unregister=function(e,n){n=ys(n),n.persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},b.prototype._register_single=function(e,n){var i={};i[e]=n,this.register(i)},b.prototype.identify=function(e,n,i,t,r,o,s,a){var u=this.get_distinct_id();if(e&&u!==e){if(typeof e=="string"&&e.indexOf(ms)===0)return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var c=u;this.register_once({$had_persisted_distinct_id:!0,$device_id:c},"")}e!==u&&e!==this.get_property(li)&&(this.unregister(li),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(n,i,t,r,o,s,a),e!==u&&this.track("$identify",{distinct_id:e,$anon_distinct_id:u},{skip_hooks:!0}),e!==u&&this.flags.fetchFlags()},b.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=h.UUID();this.register_once({distinct_id:ms+e,$device_id:e},""),this._check_and_start_session_recording()},b.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},b.prototype.alias=function(e,n){if(e===this.get_property(bl))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var i=this;return h.isUndefined(n)&&(n=this.get_distinct_id()),e!==n?(this._register_single(li,e),this.track("$create_alias",{alias:e,distinct_id:n},{skip_hooks:!0},function(){i.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},b.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},b.prototype.set_config=function(e){if(h.isObject(e)){h.extend(this.config,e);var n=e.batch_size;n&&h.each(this.request_batchers,function(i){i.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),Le.DEBUG=Le.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init()}},b.prototype.get_config=function(e){return this.config[e]},b.prototype._run_hook=function(e){var n=(this.config.hooks[e]||bm).apply(this,lt.call(arguments,1));return typeof n=="undefined"&&(this.report_error(e+" hook did not return a value"),n=null),n},b.prototype.get_property=function(e){return this.persistence.load_prop([e])},b.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},b.prototype.toString=function(){var e=this.get_config("name");return e!==Re&&(e=Re+"."+e),e},b.prototype._event_is_disabled=function(e){return h.isBlockedUA(Ke)||this._flags.disable_all_events||h.include(this.__disabled_events,e)},b.prototype._gdpr_init=function(){var e=this.get_config("opt_out_tracking_persistence_type")==="localStorage";e&&h.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")||h.cookie.get("mp_optout"))&&(h.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},b.prototype._gdpr_update_persistence=function(e){var n;if(e&&e.clear_persistence)n=!0;else if(e&&e.enable_persistence)n=!1;else return;!this.get_config("disable_persistence")&&this.persistence.disabled!==n&&this.persistence.set_disabled(n),n?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},b.prototype._gdpr_call_func=function(e,n){return n=h.extend({track:h.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")},n),h.localStorage.is_supported()||(n.persistence_type="cookie"),e(this.get_config("token"),{track:n.track,trackEventName:n.track_event_name,trackProperties:n.track_properties,persistenceType:n.persistence_type,persistencePrefix:n.cookie_prefix,cookieDomain:n.cookie_domain,cookieExpiration:n.cookie_expiration,crossSiteCookie:n.cross_site_cookie,crossSubdomainCookie:n.cross_subdomain_cookie,secureCookie:n.secure_cookie,ignoreDnt:n.ignore_dnt})},b.prototype.opt_in_tracking=function(e){e=h.extend({enable_persistence:!0},e),this._gdpr_call_func(Og,e),this._gdpr_update_persistence(e)},b.prototype.opt_out_tracking=function(e){e=h.extend({clear_persistence:!0,delete_user:!0},e),e.delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(xg,e),this._gdpr_update_persistence(e)},b.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(Rg,e)},b.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(Dc,e)},b.prototype.clear_opt_in_out_tracking=function(e){e=h.extend({enable_persistence:!0},e),this._gdpr_call_func(Ag,e),this._gdpr_update_persistence(e)},b.prototype.report_error=function(e,n){F.error.apply(F.error,arguments);try{!n&&!(e instanceof Error)&&(e=new Error(e)),this.get_config("error_reporter")(e,n)}catch(i){F.error(i)}},b.prototype.init=b.prototype.init,b.prototype.reset=b.prototype.reset,b.prototype.disable=b.prototype.disable,b.prototype.time_event=b.prototype.time_event,b.prototype.track=b.prototype.track,b.prototype.track_links=b.prototype.track_links,b.prototype.track_forms=b.prototype.track_forms,b.prototype.track_pageview=b.prototype.track_pageview,b.prototype.register=b.prototype.register,b.prototype.register_once=b.prototype.register_once,b.prototype.unregister=b.prototype.unregister,b.prototype.identify=b.prototype.identify,b.prototype.alias=b.prototype.alias,b.prototype.name_tag=b.prototype.name_tag,b.prototype.set_config=b.prototype.set_config,b.prototype.get_config=b.prototype.get_config,b.prototype.get_api_host=b.prototype.get_api_host,b.prototype.get_property=b.prototype.get_property,b.prototype.get_distinct_id=b.prototype.get_distinct_id,b.prototype.toString=b.prototype.toString,b.prototype.opt_out_tracking=b.prototype.opt_out_tracking,b.prototype.opt_in_tracking=b.prototype.opt_in_tracking,b.prototype.has_opted_out_tracking=b.prototype.has_opted_out_tracking,b.prototype.has_opted_in_tracking=b.prototype.has_opted_in_tracking,b.prototype.clear_opt_in_out_tracking=b.prototype.clear_opt_in_out_tracking,b.prototype.get_group=b.prototype.get_group,b.prototype.set_group=b.prototype.set_group,b.prototype.add_group=b.prototype.add_group,b.prototype.remove_group=b.prototype.remove_group,b.prototype.track_with_groups=b.prototype.track_with_groups,b.prototype.start_batch_senders=b.prototype.start_batch_senders,b.prototype.stop_batch_senders=b.prototype.stop_batch_senders,b.prototype.start_session_recording=b.prototype.start_session_recording,b.prototype.stop_session_recording=b.prototype.stop_session_recording,b.prototype.pause_session_recording=b.prototype.pause_session_recording,b.prototype.resume_session_recording=b.prototype.resume_session_recording,b.prototype.get_session_recording_properties=b.prototype.get_session_recording_properties,b.prototype.get_session_replay_url=b.prototype.get_session_replay_url,b.prototype.get_tab_id=b.prototype.get_tab_id,b.prototype.DEFAULT_API_ROUTES=El,b.prototype.__get_recorder=b.prototype.__get_recorder,$.prototype.properties=$.prototype.properties,$.prototype.update_search_keyword=$.prototype.update_search_keyword,$.prototype.update_referrer_info=$.prototype.update_referrer_info,$.prototype.get_cross_subdomain=$.prototype.get_cross_subdomain,$.prototype.clear=$.prototype.clear;var mt={},Cm=function(){h.each(mt,function(e,n){n!==Re&&(pe[n]=e)}),pe._=h},Im=function(){pe.init=function(e,n,i){if(i)return pe[i]||(pe[i]=mt[i]=hi(e,n,i),pe[i]._loaded()),pe[i];var t=pe;mt[Re]?t=mt[Re]:e&&(t=hi(e,n,Re),t._loaded(),mt[Re]=t),pe=t,gs===Sl&&(I[Re]=pe),Cm()}},Em=function(){function e(){e.done||(e.done=!0,Ol=!0,Il=!1,h.each(mt,function(t){t._dom_loaded()}))}function n(){try{P.documentElement.doScroll("left")}catch(t){setTimeout(n,1);return}e()}if(P.addEventListener)P.readyState==="complete"?e():P.addEventListener("DOMContentLoaded",e,!1);else if(P.attachEvent){P.attachEvent("onreadystatechange",e);var i=!1;try{i=I.frameElement===null}catch(t){}P.documentElement.doScroll&&i&&n()}h.register_event(I,"load",e,!0)};function km(e){if(wl=e,gs=Sl,pe=I[Re],h.isUndefined(pe)){F.critical('"mixpanel" object not initialized. Ensure you are using the latest version of the Mixpanel JS Library along with the snippet we provide.');return}if(pe.__loaded||pe.config&&pe.persistence){F.critical("The Mixpanel library has already been downloaded at least once. Ensure that the Mixpanel code snippet only appears once on the page (and is not double-loaded by a tag manager) in order to avoid errors.");return}var n=pe.__SV||0;if(n<1.1){F.critical("Version mismatch; please ensure you're using the latest version of the Mixpanel code snippet.");return}h.each(pe._i,function(i){i&&h.isArray(i)&&(mt[i[i.length-1]]=hi.apply(this,i))}),Im(),pe.init(),h.each(mt,function(i){i._loaded()}),Em()}function Om(e,n){n()}km(Om)})();
|