mixpanel-browser 2.62.0 → 2.63.0
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/CHANGELOG.md +4 -0
- package/build.sh +4 -21
- package/dist/mixpanel-core.cjs.js +10 -3
- package/dist/mixpanel-js-wrapper.min.js +5 -5
- package/dist/mixpanel-jslib-snippet.min.js +3 -3
- package/dist/mixpanel-jslib-snippet.min.test.js +3 -3
- package/dist/mixpanel-recorder.js +13552 -4502
- package/dist/mixpanel-recorder.min.js +1 -38
- package/dist/mixpanel-recorder.min.js.map +1 -1
- package/dist/mixpanel-with-async-recorder.cjs.js +9 -3
- package/dist/mixpanel-with-recorder.js +22218 -0
- package/dist/mixpanel-with-recorder.min.js +1 -0
- package/dist/mixpanel.amd.js +13558 -4501
- package/dist/mixpanel.cjs.js +13558 -4501
- package/dist/mixpanel.globals.js +9 -3
- package/dist/mixpanel.min.js +144 -144
- package/dist/mixpanel.module.js +13558 -4501
- package/dist/mixpanel.umd.js +13558 -4501
- package/dist/rrweb-compiled.js +18693 -0
- package/package.json +8 -4
- package/rollup.config.mjs +223 -0
- package/src/config.js +1 -1
- package/src/loaders/loader-globals-with-recorder.js +7 -0
- package/src/recorder/session-recording.js +1 -1
- package/src/storage/local-storage.js +2 -1
- package/rollup.config.js +0 -11
- package/src/recorder/rollup.config.js +0 -20
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(){"use strict";var E;if(typeof window=="undefined"){var us={hostname:""};E={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:us,referrer:""},screen:{width:0,height:0},location:us,addEventListener:function(){},removeEventListener:function(){}}}else E=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 ls(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 Qn(e){return function(){var n=this,i=arguments;return new Promise(function(t,r){var o=e.apply(n,i);function s(u){ls(o,t,r,s,a,"next",u)}function a(u){ls(o,t,r,s,a,"throw",u)}s(void 0)})}}function Dr(e,n,i){return fs()?Dr=Reflect.construct:Dr=function(r,o,s){var a=[null];a.push.apply(a,o);var u=Function.bind.apply(r,a),c=new u;return s&&rr(c,s.prototype),c},Dr.apply(null,arguments)}function fl(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 pe(e,n,i){return n&&fl(e.prototype,n),e}function q(){return q=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},q.apply(this,arguments)}function ei(e){return ei=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},ei(e)}function me(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&&rr(e,n)}function $(e,n){return n!=null&&typeof Symbol!="undefined"&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](e):e instanceof n}function hl(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function tr(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 rr(e,n){return rr=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},rr(e,n)}function F(e){"@swc/helpers - typeof";return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function pl(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 Fr(e){var n=typeof Map=="function"?new Map:void 0;return Fr=function(t){if(t===null||!hl(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 Dr(t,arguments,ei(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),rr(r,t)},Fr(e)}function fs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(fs=function(){return!!e})()}function x(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=pl(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 nr(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 hs(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 dl=Object.defineProperty,vl=function(e,n,i){return n in e?dl(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i},I=function(e,n,i){return vl(e,(typeof n=="undefined"?"undefined":F(n))!=="symbol"?n+"":n,i)},ps,ml=Object.defineProperty,gl=function(e,n,i){return n in e?ml(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i},ds=function(e,n,i){return gl(e,(typeof n=="undefined"?"undefined":F(n))!=="symbol"?n+"":n,i)},he=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}(he||{}),vs={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ms={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ur={},yl=function(){return!!globalThis.Zone};function ti(e){if(Ur[e])return Ur[e];var n=globalThis[e],i=n.prototype,t=e in vs?vs[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 ms?ms[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&&!yl())return Ur[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?Ur[e]=c:i}catch(l){return i}}var ri={};function Ze(e,n,i){var t,r=e+"."+String(i);if(ri[r])return ri[r].call(n);var o=ti(e),s=(t=Object.getOwnPropertyDescriptor(o,i))==null?void 0:t.get;return s?(ri[r]=s,s.call(n)):n[i]}var ni={};function gs(e,n,i){var t=e+"."+String(i);if(ni[t])return ni[t].bind(n);var r=ti(e),o=r[i];return typeof o!="function"?n[i]:(ni[t]=o,o.bind(n))}function _l(e){return Ze("Node",e,"childNodes")}function bl(e){return Ze("Node",e,"parentNode")}function wl(e){return Ze("Node",e,"parentElement")}function Sl(e){return Ze("Node",e,"textContent")}function Cl(e,n){return gs("Node",e,"contains")(n)}function Il(e){return gs("Node",e,"getRootNode")()}function El(e){return!e||!("host"in e)?null:Ze("ShadowRoot",e,"host")}function xl(e){return e.styleSheets}function Ol(e){return!e||!("shadowRoot"in e)?null:Ze("Element",e,"shadowRoot")}function kl(e,n){return Ze("Element",e,"querySelector")(n)}function Rl(e,n){return Ze("Element",e,"querySelectorAll")(n)}function Al(){return ti("MutationObserver").constructor}var ge={childNodes:_l,parentNode:bl,parentElement:wl,textContent:Sl,contains:Cl,getRootNode:Il,host:El,styleSheets:xl,shadowRoot:Ol,querySelector:kl,querySelectorAll:Rl,mutationObserver:Al};function ys(e){return e.nodeType===e.ELEMENT_NODE}function ir(e){var n=e&&"host"in e&&"mode"in e&&ge.host(e)||null;return!!(n&&"shadowRoot"in n&&ge.shadowRoot(n)===e)}function or(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Ml(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 Tl(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 ii(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 _s(r,i)}).join("");return Ml(t)}catch(r){return null}}function _s(e,n){if(Pl(e)){var i;try{i=ii(e.styleSheet)||Tl(e)}catch(r){i=e.cssText}return e.styleSheet.href?Br(i,e.styleSheet.href):i}else{var t=e.cssText;return $l(e)&&e.selectorText.includes(":")&&(t=Nl(t)),n?Br(t,n):t}}function Nl(e){var n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(n,"$1\\$2")}function Pl(e){return"styleSheet"in e}function $l(e){return"selectorText"in e}var bs=function(){function e(){ds(this,"idNodeMap",new Map),ds(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 Ll(){return new bs}function oi(e){var n=e.element,i=e.maskInputOptions,t=e.tagName,r=e.type,o=e.value,s=e.maskInputFn,a=o||"",u=r&&pt(r);return(i[t.toLowerCase()]||u&&i[u])&&(s?a=s(a,n):a="*".repeat(a.length)),a}function pt(e){return e.toLowerCase()}var ws="__rrweb_original__";function Dl(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=ws in o?o[ws]: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 si(e){var n=e.type;return e.hasAttribute("data-rr-is-password")?"password":n?pt(n):null}function Ss(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 Fl(e){var n="";return e.indexOf("//")>-1?n=e.split("/").slice(0,3).join("/"):n=e.split("/")[0],n=n.split("?")[0],n}var Ul=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Bl=/^(?:[a-z+]+:)?\/\//i,zl=/^www\..*/i,Wl=/^(data:)([^,]*),(.*)/i;function Br(e,n){return(e||"").replace(Ul,function(i,t,r,o,s,a){var u=r||s||a,c=t||o||"";if(!u)return i;if(Bl.test(u)||zl.test(u)||Wl.test(u))return"url("+c+u+c+")";if(u[0]==="/")return"url("+c+(Fl(n)+u)+c+")";var l=n.split("/"),f=u.split("/");l.pop();for(var p=x(f),v;!(v=p()).done;){var m=v.value;m!=="."&&(m===".."?l.pop():l.push(m))}return"url("+c+l.join("/")+c+")"})}function ai(e){return e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"")}function ql(e,n){var i=Array.from(n.childNodes),t=[];if(i.length>1&&e&&typeof e=="string"){for(var r=ai(e),o=1;o<i.length;o++)if(i[o].textContent&&typeof i[o].textContent=="string")for(var s=ai(i[o].textContent),a=3;a<s.length;a++){var u=s.substring(0,a);if(r.split(u).length===2){for(var c=r.indexOf(u),l=c;l<e.length;l++)if(ai(e.substring(0,l)).length===c){t.push(e.substring(0,l)),e=e.substring(l);break}break}}}return t.push(e),t}function Gl(e,n){return ql(e,n).join("/* rr_split */")}var jl=1,Vl=new RegExp("[^a-z0-9-_:]"),sr=-2;function Cs(){return jl++}function Yl(e){if($(e,HTMLFormElement))return"form";var n=pt(e.tagName);return Vl.test(n)?"div":n}var kt,Is,Hl=/^[^ \t\n\r\u000c]+/,Kl=/^[, \t\n\r\u000c]+/;function Jl(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(Kl),!(i>=n.length);){var o=t(Hl);if(o.slice(-1)===",")o=Rt(e,o.substring(0,o.length-1)),r.push(o);else{var s="";o=Rt(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 Es=new WeakMap;function Rt(e,n){return!n||n.trim()===""?n:ui(e,n)}function Zl(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function ui(e,n){var i=Es.get(e);if(i||(i=e.createElement("a"),Es.set(e,i)),!n)n="";else if(n.startsWith("blob:")||n.startsWith("data:"))return n;return i.setAttribute("href",n),i.href}function xs(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")?Rt(e,t):i==="srcset"?Jl(e,t):i==="style"?Br(t,ui(e)):n==="object"&&i==="data"?Rt(e,t):t)}function Os(e,n,i){return(e==="video"||e==="audio")&&n==="autoplay"}function Xl(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 zr(e,n,i){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return i?zr(ge.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?zr(ge.parentNode(e),n,i):!1}function ks(e,n,i,t){var r;if(ys(e)){if(r=e,!ge.childNodes(r).length)return!1}else{if(ge.parentElement(e)===null)return!1;r=ge.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(zr(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 Ql(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 ef(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 tf(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,v=p===void 0?{}:p,m=n.inlineImages,y=n.recordCanvas,d=n.keepIframeSrcFn,g=n.newlyAddedElement,_=g===void 0?!1:g,w=n.cssCaptured,S=w===void 0?!1:w,C=rf(i,t);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:he.Document,childNodes:[],compatMode:e.compatMode}:{type:he.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:he.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:C};case e.ELEMENT_NODE:return of(e,{doc:i,blockClass:r,blockSelector:o,inlineStylesheet:a,maskInputOptions:c,maskInputFn:f,dataURLOptions:v,inlineImages:m,recordCanvas:y,keepIframeSrcFn:d,newlyAddedElement:_,rootId:C});case e.TEXT_NODE:return nf(e,{doc:i,needsMask:s,maskTextFn:l,rootId:C,cssCaptured:S});case e.CDATA_SECTION_NODE:return{type:he.CDATA,textContent:"",rootId:C};case e.COMMENT_NODE:return{type:he.Comment,textContent:ge.textContent(e)||"",rootId:C};default:return!1}}function rf(e,n){if(n.hasNode(e)){var i=n.getId(e);return i===1?void 0:i}}function nf(e,n){var i=n.needsMask,t=n.maskTextFn,r=n.rootId,o=n.cssCaptured,s=ge.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=ge.textContent(e),c&&u&&(u=Br(u,ui(n.doc)))),!c&&!l&&u&&i&&(u=t?t(u,ge.parentElement(e)):u.replace(/[\S]/g,"*")),{type:he.Text,textContent:u||"",rootId:r}}function of(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,v=n.keepIframeSrcFn,m=n.newlyAddedElement,y=m===void 0?!1:m,d=n.rootId,g=Xl(e,t,r),_=Yl(e),w={},S=e.attributes.length,C=0;C<S;C++){var O=e.attributes[C];Os(_,O.name,O.value)||(w[O.name]=xs(i,_,pt(O.name),O.value))}if(_==="link"&&o){var R=Array.from(i.styleSheets).find(function(Re){return Re.href===e.href}),k=null;R&&(k=ii(R)),k&&(delete w.rel,delete w.href,w._cssText=k)}if(_==="style"&&e.sheet){var N=ii(e.sheet);N&&(e.childNodes.length>1&&(N=Gl(N,e)),w._cssText=N)}if(_==="input"||_==="textarea"||_==="select"){var G=e.value,M=e.checked;w.type!=="radio"&&w.type!=="checkbox"&&w.type!=="submit"&&w.type!=="button"&&G?w.value=oi({element:e,type:si(e),tagName:_,value:G,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")Dl(e)||(w.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){var D=e.toDataURL(l.type,l.quality),H=i.createElement("canvas");H.width=e.width,H.height=e.height;var Ie=H.toDataURL(l.type,l.quality);D!==Ie&&(w.rr_dataURL=D)}}if(_==="img"&&f){kt||(kt=i.createElement("canvas"),Is=kt.getContext("2d"));var K=e,Oe=K.currentSrc||K.getAttribute("src")||"<unknown-src>",we=K.crossOrigin,oe=function(){K.removeEventListener("load",oe);try{kt.width=K.naturalWidth,kt.height=K.naturalHeight,Is.drawImage(K,0,0),w.rr_dataURL=kt.toDataURL(l.type,l.quality)}catch(Re){if(K.crossOrigin!=="anonymous"){K.crossOrigin="anonymous",K.complete&&K.naturalWidth!==0?oe():K.addEventListener("load",oe);return}else console.warn("Cannot inline img src="+Oe+"! Error: "+Re)}K.crossOrigin==="anonymous"&&(we?w.crossOrigin=we:K.removeAttribute("crossorigin"))};K.complete&&K.naturalWidth!==0?oe():K.addEventListener("load",oe)}if(_==="audio"||_==="video"){var ve=w;ve.rr_mediaState=e.paused?"paused":"played",ve.rr_mediaCurrentTime=e.currentTime,ve.rr_mediaPlaybackRate=e.playbackRate,ve.rr_mediaMuted=e.muted,ve.rr_mediaLoop=e.loop,ve.rr_mediaVolume=e.volume}if(y||(e.scrollLeft&&(w.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(w.rr_scrollTop=e.scrollTop)),g){var ke=e.getBoundingClientRect(),_t=ke.width,We=ke.height;w={class:w.class,rr_width:""+_t+"px",rr_height:""+We+"px"}}_==="iframe"&&!v(w.src)&&(e.contentDocument||(w.rr_src=w.src),delete w.src);var Zt;try{customElements.get(_)&&(Zt=!0)}catch(Re){}return{type:he.Element,tagName:_,attributes:w,childNodes:[],isSVG:Zl(e)||void 0,needBlock:g,rootId:d,isCustom:Zt}}function Q(e){return e==null?"":e.toLowerCase()}function sf(e,n){if(n.comment&&e.type===he.Comment)return!0;if(e.type===he.Element){if(n.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Ss(e.attributes.href)==="js"))return!0;if(n.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(Q(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Q(e.attributes.name)==="application-name"||Q(e.attributes.rel)==="icon"||Q(e.attributes.rel)==="apple-touch-icon"||Q(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(n.headMetaDescKeywords&&Q(e.attributes.name).match(/^description|keywords$/))return!0;if(n.headMetaSocial&&(Q(e.attributes.property).match(/^(og|twitter|fb):/)||Q(e.attributes.name).match(/^(og|twitter):/)||Q(e.attributes.name)==="pinterest"))return!0;if(n.headMetaRobots&&(Q(e.attributes.name)==="robots"||Q(e.attributes.name)==="googlebot"||Q(e.attributes.name)==="bingbot"))return!0;if(n.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(n.headMetaAuthorship&&(Q(e.attributes.name)==="author"||Q(e.attributes.name)==="generator"||Q(e.attributes.name)==="framework"||Q(e.attributes.name)==="publisher"||Q(e.attributes.name)==="progid"||Q(e.attributes.property).match(/^article:/)||Q(e.attributes.property).match(/^product:/)))return!0;if(n.headMetaVerification&&(Q(e.attributes.name)==="google-site-verification"||Q(e.attributes.name)==="yandex-verification"||Q(e.attributes.name)==="csrf-token"||Q(e.attributes.name)==="p:domain_verify"||Q(e.attributes.name)==="verify-v1"||Q(e.attributes.name)==="verification"||Q(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function At(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,v=p===void 0?{}:p,m=n.maskTextFn,y=n.maskInputFn,d=n.slimDOMOptions,g=n.dataURLOptions,_=g===void 0?{}:g,w=n.inlineImages,S=w===void 0?!1:w,C=n.recordCanvas,O=C===void 0?!1:C,R=n.onSerialize,k=n.onIframeLoad,N=n.iframeLoadTimeout,G=N===void 0?5e3:N,M=n.onStylesheetLoad,D=n.stylesheetLoadTimeout,H=D===void 0?5e3:D,Ie=n.keepIframeSrcFn,K=Ie===void 0?function(){return!1}:Ie,Oe=n.newlyAddedElement,we=Oe===void 0?!1:Oe,oe=n.cssCaptured,ve=oe===void 0?!1:oe,ke=n.needsMask,_t=n.preserveWhiteSpace,We=_t===void 0?!0:_t;if(!ke){var Zt=ke===void 0;ke=ks(e,s,a,Zt)}var Re=tf(e,{doc:i,mirror:t,blockClass:r,blockSelector:o,needsMask:ke,inlineStylesheet:f,maskInputOptions:v,maskTextFn:m,maskInputFn:y,dataURLOptions:_,inlineImages:S,recordCanvas:O,keepIframeSrcFn:K,newlyAddedElement:we,cssCaptured:ve});if(!Re)return console.warn(e,"not serialized"),null;var bt;t.hasNode(e)?bt=t.getId(e):sf(Re,d)||!We&&Re.type===he.Text&&!Re.textContent.replace(/^\s+|\s+$/gm,"").length?bt=sr:bt=Cs();var V=Object.assign(Re,{id:bt});if(t.add(e,V),bt===sr)return null;R&&R(e);var wt=!c;if(V.type===he.Element){wt=wt&&!V.needBlock,delete V.needBlock;var St=ge.shadowRoot(e);St&&or(St)&&(V.isShadowHost=!0)}if((V.type===he.Document||V.type===he.Element)&&wt){d.headWhitespace&&V.type===he.Element&&V.tagName==="head"&&(We=!1);var Xt={doc:i,mirror:t,blockClass:r,blockSelector:o,needsMask:ke,maskTextClass:s,maskTextSelector:a,skipChild:c,inlineStylesheet:f,maskInputOptions:v,maskTextFn:m,maskInputFn:y,slimDOMOptions:d,dataURLOptions:_,inlineImages:S,recordCanvas:O,preserveWhiteSpace:We,onSerialize:R,onIframeLoad:k,iframeLoadTimeout:G,onStylesheetLoad:M,stylesheetLoadTimeout:H,keepIframeSrcFn:K,cssCaptured:!1};if(!(V.type===he.Element&&V.tagName==="textarea"&&V.attributes.value!==void 0)){V.type===he.Element&&V.attributes._cssText!==void 0&&typeof V.attributes._cssText=="string"&&(Xt.cssCaptured=!0);for(var Nr=x(Array.from(ge.childNodes(e))),Pr;!(Pr=Nr()).done;){var os=Pr.value,Zn=At(os,Xt);Zn&&V.childNodes.push(Zn)}}var ht=null;if(ys(e)&&(ht=ge.shadowRoot(e)))for(var Ct=x(Array.from(ge.childNodes(ht))),Qt;!(Qt=Ct()).done;){var $r=Qt.value,er=At($r,Xt);er&&(or(ht)&&(er.isShadow=!0),V.childNodes.push(er))}}var It=ge.parentNode(e);return It&&ir(It)&&or(It)&&(V.isShadow=!0),V.type===he.Element&&V.tagName==="iframe"&&Ql(e,function(){var Je=e.contentDocument;if(Je&&k){var Et=At(Je,{doc:Je,mirror:t,blockClass:r,blockSelector:o,needsMask:ke,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:v,maskTextFn:m,maskInputFn:y,slimDOMOptions:d,dataURLOptions:_,inlineImages:S,recordCanvas:O,preserveWhiteSpace:We,onSerialize:R,onIframeLoad:k,iframeLoadTimeout:G,onStylesheetLoad:M,stylesheetLoadTimeout:H,keepIframeSrcFn:K});Et&&k(e,Et)}},G),V.type===he.Element&&V.tagName==="link"&&typeof V.attributes.rel=="string"&&(V.attributes.rel==="stylesheet"||V.attributes.rel==="preload"&&typeof V.attributes.href=="string"&&Ss(V.attributes.href)==="css")&&ef(e,function(){if(M){var Je=At(e,{doc:i,mirror:t,blockClass:r,blockSelector:o,needsMask:ke,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:v,maskTextFn:m,maskInputFn:y,slimDOMOptions:d,dataURLOptions:_,inlineImages:S,recordCanvas:O,preserveWhiteSpace:We,onSerialize:R,onIframeLoad:k,iframeLoadTimeout:G,onStylesheetLoad:M,stylesheetLoadTimeout:H,keepIframeSrcFn:K});Je&&M(e,Je)}},H),V}function af(e,n){var i=n||{},t=i.mirror,r=t===void 0?new bs: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,v=i.inlineStylesheet,m=v===void 0?!0:v,y=i.inlineImages,d=y===void 0?!1:y,g=i.recordCanvas,_=g===void 0?!1:g,w=i.maskAllInputs,S=w===void 0?!1:w,C=i.maskTextFn,O=i.maskInputFn,R=i.slimDOM,k=R===void 0?!1:R,N=i.dataURLOptions,G=i.preserveWhiteSpace,M=i.onSerialize,D=i.onIframeLoad,H=i.iframeLoadTimeout,Ie=i.onStylesheetLoad,K=i.stylesheetLoadTimeout,Oe=i.keepIframeSrcFn,we=Oe===void 0?function(){return!1}:Oe,oe=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}:S===!1?{password:!0}:S,ve=k===!0||k==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:k==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:k===!1?{}:k;return At(e,{doc:e,mirror:r,blockClass:s,blockSelector:u,maskTextClass:l,maskTextSelector:p,skipChild:!1,inlineStylesheet:m,maskInputOptions:oe,maskTextFn:C,maskInputFn:O,slimDOMOptions:ve,dataURLOptions:N,inlineImages:d,recordCanvas:_,preserveWhiteSpace:G,onSerialize:M,onIframeLoad:D,iframeLoadTimeout:H,onStylesheetLoad:Ie,stylesheetLoadTimeout:K,keepIframeSrcFn:we,newlyAddedElement:!1})}function uf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function cf(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var i=function t(){return $(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 ci={exports:{}},ee=String,Rs=function(){return{isColorSupported:!1,reset:ee,bold:ee,dim:ee,italic:ee,underline:ee,inverse:ee,hidden:ee,strikethrough:ee,black:ee,red:ee,green:ee,yellow:ee,blue:ee,magenta:ee,cyan:ee,white:ee,gray:ee,bgBlack:ee,bgRed:ee,bgGreen:ee,bgYellow:ee,bgBlue:ee,bgMagenta:ee,bgCyan:ee,bgWhite:ee}};ci.exports=Rs(),ci.exports.createColors=Rs;var lf=ci.exports,ff={},hf=Object.freeze(Object.defineProperty({__proto__:null,default:ff},Symbol.toStringTag,{value:"Module"})),ue=cf(hf),As=lf,Ms=ue,li=function(e){me(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=As.isColorSupported),Ms&&r&&(s=Ms(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 v=As.createColors(!0),m=v.bold,y=v.gray,d=v.red;f=function(g){return m(d(g))},p=function(g){return y(g)}}else f=p=function(g){return g};return a.slice(u,c).map(function(g,_){var w=u+1+_,S=" "+(" "+w).slice(-l)+" | ";if(w===o.line){var C=p(S.replace(/\d/g," "))+g.slice(0,o.column-1).replace(/[^\t]/g," ");return f(">")+p(S)+g+"\n "+C+f("^")}return" "+p(S)+g}).join("\n")},i.toString=function(){var r=this.showSourceCode();return r&&(r="\n\n"+r+"\n"),this.name+": "+this.message+r},n}(Fr(Error)),fi=li;li.default=li;var Xe={};Xe.isClean=Symbol("isClean"),Xe.my=Symbol("my");var Ts={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function pf(e){return e[0].toUpperCase()+e.slice(1)}var hi=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 Ts[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"+pf(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=Ts[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}(),Ns=hi;hi.default=hi;var df=Ns;function pi(e,n){var i=new df(n);i.stringify(e)}var Wr=pi;pi.default=pi;var qr=Xe.isClean,vf=Xe.my,mf=fi,gf=Ns,yf=Wr;function di(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":F(r);t==="parent"&&o==="object"?n&&(i[t]=n):t==="source"?i[t]=r:Array.isArray(r)?i[t]=r.map(function(s){return di(s,i)}):(o==="object"&&r!==null&&(r=di(r)),i[t]=r)}return i}var vi=function(){function e(i){i===void 0&&(i={}),this.raws={},this[qr]=!1,this[vf]=!0;for(var t in i)if(t==="nodes"){this.nodes=[];for(var r=x(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=di(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 mf(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 gf;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=x(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":F(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof c=="undefined"?"undefined":F(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=yf),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)},pe(e,[{key:"proxyOf",get:function(){return this}}]),e}(),Gr=vi;vi.default=vi;var _f=Gr,mi=function(e){me(n,e);function n(i){var t;return i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=q({},i,{value:String(i.value)})),t=e.call(this,i)||this,t.type="decl",t}return pe(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n}(_f),jr=mi;mi.default=mi;var bf="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",wf=function(e){e===void 0&&(e=21);for(var n="",i=e;i--;)n+=bf[Math.random()*64|0];return n},Sf={nanoid:wf},Ps=ue.SourceMapConsumer,$s=ue.SourceMapGenerator,Cf=ue.existsSync,If=ue.readFileSync,gi=ue.dirname,Ef=ue.join;function xf(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var yi=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=gi(this.mapFile)),o&&(this.text=o)}}var n=e.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new Ps(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 xf(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":F(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=gi(t),Cf(t))return this.mapFile=t,If(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($(r,Ps))return $s.fromSourceMap(r).toString();if($(r,$s))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=Ef(gi(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}(),Ls=yi;yi.default=yi;var Of=ue.SourceMapConsumer,kf=ue.SourceMapGenerator,Ds=ue.fileURLToPath,Vr=ue.pathToFileURL,_i=ue.isAbsolute,bi=ue.resolve,Rf=Sf.nanoid,wi=ue,Fs=fi,Af=Ls,Si=Symbol("fromOffsetCache"),Mf=!!(Of&&kf),Us=!!(bi&&_i),Yr=function(){function e(i,t){if(t===void 0&&(t={}),i===null||typeof i=="undefined"||(typeof i=="undefined"?"undefined":F(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&&(!Us||/^\w+:\/\//.test(t.from)||_i(t.from)?this.file=t.from:this.file=bi(t.from)),Us&&Mf){var r=new Af(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 "+Rf(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":F(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 v=this.fromOffset(f.offset);u=v.line,c=v.col}else u=f.line,c=f.column}else if(!o){var m=this.fromOffset(r);r=m.line,o=m.col}var y=this.origin(r,o,u,c);return y?a=new Fs(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 Fs(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&&(Vr&&(a.input.url=Vr(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(t){var r,o;if(this[Si])o=this[Si];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[Si]=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:bi(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;_i(u.source)?l=Vr(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||Vr(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(Ds)f.file=Ds(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=q({},this.map),t.map.consumerCache&&(t.map.consumerCache=void 0)),t},pe(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),Hr=Yr;Yr.default=Yr,wi&&wi.registerInput&&wi.registerInput(Yr);var Bs=ue.SourceMapConsumer,Kr=ue.SourceMapGenerator,Jr=ue.dirname,zs=ue.relative,Ws=ue.resolve,qs=ue.sep,Gs=ue.pathToFileURL,Tf=Hr,Nf=!!(Bs&&Kr),Pf=!!(Jr&&Ws&&zs&&qs),$f=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=x(this.previous()),r;!(r=t()).done;){var o=r.value,s=this.toUrl(this.path(o.file)),a=o.root||Jr(o.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new Bs(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(),Pf&&Nf&&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=Kr.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new Kr({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 Kr({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 v=f.parent||{raws:{}},m=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!m||f!==v.last||v.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?Jr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(o=Jr(Ws(o,this.mapOpts.annotation)));var s=zs(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 Tf(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(Gs){var o=Gs(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;qs==="\\"&&(t=t.replace(/\\/g,"/"));var o=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,o),o},e}(),js=$f,Lf=Gr,Ci=function(e){me(n,e);function n(i){var t;return t=e.call(this,i)||this,t.type="comment",t}return n}(Lf),Zr=Ci;Ci.default=Ci;var Vs=Xe.isClean,Ys=Xe.my,Hs=jr,Ks=Zr,Df=Gr,Js,Ii,Ei,Zs;function Xs(e){return e.map(function(n){return n.nodes&&(n.nodes=Xs(n.nodes)),delete n.source,n})}function Qs(e){if(e[Vs]=!1,e.proxyOf.nodes)for(var n=x(e.proxyOf.nodes),i;!(i=n()).done;){var t=i.value;Qs(t)}}var qe=function(e){me(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=x(o),u;!(u=a()).done;)for(var c=u.value,l=this.normalize(c,this.last),f=x(l),p;!(p=f()).done;){var v=p.value;this.proxyOf.nodes.push(v)}return this.markDirty(),this},i.cleanRaws=function(r){if(e.prototype.cleanRaws.call(this,r),this.nodes)for(var o=x(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,v){return f(p.toProxy(),v)}: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=x(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=x(u),l;!(l=c()).done;){var f=l.value;this.proxyOf.nodes.splice(s,0,f)}var p;for(var v in this.indexes)p=this.indexes[v],s<=p&&(this.indexes[v]=p+u.length);return this.markDirty(),this},i.normalize=function(r,o){var s=this;if(typeof r=="string")r=Xs(Js(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=x(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=x(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 Hs(r)]}else if(r.selector)r=[new Ii(r)];else if(r.name)r=[new Ei(r)];else if(r.text)r=[new Ks(r)];else throw new Error("Unknown node type in node creation");var v=r.map(function(m){return m[Ys]||n.rebuild(m),m=m.proxyOf,m.parent&&m.parent.removeChild(m),m[Vs]&&Qs(m),typeof m.raws.before=="undefined"&&o&&typeof o.raws.before!="undefined"&&(m.raws.before=o.raws.before.replace(/\S/g,"")),m.parent=s.proxyOf,m});return v},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=x(o),u;!(u=a()).done;){for(var c=u.value,l=this.normalize(c,this.first,"prepend").reverse(),f=x(l),p;!(p=f()).done;){var v=p.value;this.proxyOf.nodes.unshift(v)}for(var m in this.indexes)this.indexes[m]=this.indexes[m]+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=x(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?$(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?$(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?$(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)}))},pe(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}(Df);qe.registerParse=function(e){Js=e},qe.registerRule=function(e){Ii=e},qe.registerAtRule=function(e){Ei=e},qe.registerRoot=function(e){Zs=e};var dt=qe;qe.default=qe,qe.rebuild=function(e){e.type==="atrule"?Object.setPrototypeOf(e,Ei.prototype):e.type==="rule"?Object.setPrototypeOf(e,Ii.prototype):e.type==="decl"?Object.setPrototypeOf(e,Hs.prototype):e.type==="comment"?Object.setPrototypeOf(e,Ks.prototype):e.type==="root"&&Object.setPrototypeOf(e,Zs.prototype),e[Ys]=!0,e.nodes&&e.nodes.forEach(function(n){qe.rebuild(n)})};var Ff=dt,ea,ta,ar=function(e){me(n,e);function n(t){var r;return r=e.call(this,q({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 ea(new ta,this,r);return o.stringify()},n}(Ff);ar.registerLazyResult=function(e){ea=e},ar.registerProcessor=function(e){ta=e};var xi=ar;ar.default=ar;var ra={},na=function(n){ra[n]||(ra[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},Oi=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}(),ia=Oi;Oi.default=Oi;var Uf=ia,ki=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 Uf(t,r);return this.messages.push(o),o},n.warnings=function(){return this.messages.filter(function(t){return t.type==="warning"})},pe(e,[{key:"content",get:function(){return this.css}}]),e}(),Ri=ki;ki.default=ki;var Ai=39,oa=34,Xr=92,sa=47,Qr=10,ur=32,en=12,tn=9,rn=13,Bf=91,zf=93,Wf=40,qf=41,Gf=123,jf=125,Vf=59,Yf=42,Hf=58,Kf=64,nn=/[\t\n\f\r "#'()/;[\\\]{}]/g,on=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Jf=/.[\r\n"'(/\\]/,aa=/[\da-f]/i,Zf=function(n,i){i===void 0&&(i={});var t=n.css.valueOf(),r=i.ignoreErrors,o,s,a,u,c,l,f,p,v,m,y=t.length,d=0,g=[],_=[];function w(){return d}function S(k){throw n.error("Unclosed "+k,d)}function C(){return _.length===0&&d>=y}function O(k){if(_.length)return _.pop();if(!(d>=y)){var N=k?k.ignoreUnclosed:!1;switch(o=t.charCodeAt(d),o){case Qr:case ur:case tn:case rn:case en:{s=d;do s+=1,o=t.charCodeAt(s);while(o===ur||o===Qr||o===tn||o===rn||o===en);m=["space",t.slice(d,s)],d=s-1;break}case Bf:case zf:case Gf:case jf:case Hf:case Vf:case qf:{var G=String.fromCharCode(o);m=[G,G,d];break}case Wf:{if(p=g.length?g.pop()[1]:"",v=t.charCodeAt(d+1),p==="url"&&v!==Ai&&v!==oa&&v!==ur&&v!==Qr&&v!==tn&&v!==en&&v!==rn){s=d;do{if(l=!1,s=t.indexOf(")",s+1),s===-1)if(r||N){s=d;break}else S("bracket");for(f=s;t.charCodeAt(f-1)===Xr;)f-=1,l=!l}while(l);m=["brackets",t.slice(d,s+1),d,s],d=s}else s=t.indexOf(")",d+1),u=t.slice(d,s+1),s===-1||Jf.test(u)?m=["(","(",d]:(m=["brackets",u,d,s],d=s);break}case Ai:case oa:{a=o===Ai?"'":'"',s=d;do{if(l=!1,s=t.indexOf(a,s+1),s===-1)if(r||N){s=d+1;break}else S("string");for(f=s;t.charCodeAt(f-1)===Xr;)f-=1,l=!l}while(l);m=["string",t.slice(d,s+1),d,s],d=s;break}case Kf:{nn.lastIndex=d+1,nn.test(t),nn.lastIndex===0?s=t.length-1:s=nn.lastIndex-2,m=["at-word",t.slice(d,s+1),d,s],d=s;break}case Xr:{for(s=d,c=!0;t.charCodeAt(s+1)===Xr;)s+=1,c=!c;if(o=t.charCodeAt(s+1),c&&o!==sa&&o!==ur&&o!==Qr&&o!==tn&&o!==rn&&o!==en&&(s+=1,aa.test(t.charAt(s)))){for(;aa.test(t.charAt(s+1));)s+=1;t.charCodeAt(s+1)===ur&&(s+=1)}m=["word",t.slice(d,s+1),d,s],d=s;break}default:{o===sa&&t.charCodeAt(d+1)===Yf?(s=t.indexOf("*/",d+2)+1,s===0&&(r||N?s=t.length:S("comment")),m=["comment",t.slice(d,s+1),d,s],d=s):(on.lastIndex=d+1,on.test(t),on.lastIndex===0?s=t.length-1:s=on.lastIndex-2,m=["word",t.slice(d,s+1),d,s],g.push(m),d=s);break}}return d++,m}}function R(k){_.push(k)}return{back:R,endOfFile:C,nextToken:O,position:w}},ua=dt,sn=function(e){me(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}(ua),Mi=sn;sn.default=sn,ua.registerAtRule(sn);var ca=dt,la,fa,Mt=function(e){me(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=x(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 la(new fa,this,r);return o.stringify()},n}(ca);Mt.registerLazyResult=function(e){la=e},Mt.registerProcessor=function(e){fa=e};var cr=Mt;Mt.default=Mt,ca.registerRoot(Mt);var lr={comma:function(n){return lr.split(n,[","],!0)},space:function(n){var i=[" ","\n"," "];return lr.split(n,i)},split:function(n,i,t){for(var r=[],o="",s=!1,a=0,u=!1,c="",l=!1,f=x(n),p;!(p=f()).done;){var v=p.value;l?l=!1:v==="\\"?l=!0:u?v===c&&(u=!1):v==='"'||v==="'"?(u=!0,c=v):v==="("?a+=1:v===")"?a>0&&(a-=1):a===0&&i.includes(v)&&(s=!0),s?(o!==""&&r.push(o.trim()),o="",s=!1):o+=v}return(t||o!=="")&&r.push(o.trim()),r}},ha=lr;lr.default=lr;var pa=dt,Xf=ha,an=function(e){me(n,e);function n(i){var t;return t=e.call(this,i)||this,t.type="rule",t.nodes||(t.nodes=[]),t}return pe(n,[{key:"selectors",get:function(){return Xf.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}(pa),Ti=an;an.default=an,pa.registerRule(an);var Qf=jr,eh=Zf,th=Zr,rh=Mi,nh=cr,da=Ti,va={empty:!0,space:!0};function ih(e){for(var n=e.length-1;n>=0;n--){var i=e[n],t=i[3]||i[2];if(t)return t}}var oh=function(){function e(i){this.input=i,this.root=new nh,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 rh;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=x(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 th;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=eh(this.input)},n.decl=function(t,r){var o=new Qf;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]||ih(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 v=t.slice(0),m="",y=f;y>0;y--){var d=v[y][0];if(m.trim().indexOf("!")===0&&d!=="space")break;m=v.pop()[1]+m}m.trim().indexOf("!")===0&&(o.important=!0,o.raws.important=m,t=v)}if(u[0]!=="space"&&u[0]!=="comment")break}var g=t.some(function(_){return _[0]!=="space"&&_[0]!=="comment"});g&&(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 da;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,v,m=0;m<c;m+=1)a=o[m],u=a[0],u==="space"&&m===c-1&&!s?f=!1:u==="comment"?(v=o[m-1]?o[m-1][0]:"empty",p=o[m+1]?o[m+1][0]:"empty",!va[v]&&!va[p]?l.slice(-1)===","?f=!1:l+=a[1]:f=!1):l+=a[1];if(!f){var y=o.reduce(function(d,g){return d+g[1]},"");t.raws[r]={raw:y,value:l}}t[r]=l},n.rule=function(t){t.pop();var r=new da;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}(),sh=oh,ah=dt,uh=sh,ch=Hr;function un(e,n){var i=new ch(e,n),t=new uh(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 Ni=un;un.default=un,ah.registerParse(un);var Le=Xe.isClean,lh=Xe.my,fh=js,hh=Wr,ph=dt,dh=xi,vh=na,ma=Ri,mh=Ni,gh=cr,yh={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},_h={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},bh={Once:!0,postcssPlugin:!0,prepare:!0},Tt=0;function fr(e){return(typeof e=="undefined"?"undefined":F(e))==="object"&&typeof e.then=="function"}function ga(e){var n=!1,i=yh[e.type];return e.type==="decl"?n=e.prop.toLowerCase():e.type==="atrule"&&(n=e.name.toLowerCase()),n&&e.append?[i,i+"-"+n,Tt,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:e.append?[i,Tt,i+"Exit"]:[i,i+"Exit"]}function ya(e){var n;return e.type==="document"?n=["Document",Tt,"DocumentExit"]:e.type==="root"?n=["Root",Tt,"RootExit"]:n=ga(e),{eventIndex:0,events:n,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Pi(e){return e[Le]=!1,e.nodes&&e.nodes.forEach(function(n){return Pi(n)}),e}var $i={},Nt=function(){function e(i,t,r){var o=this;this.stringified=!1,this.processed=!1;var s;if((typeof t=="undefined"?"undefined":F(t))==="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=Pi(t);else if($(t,e)||$(t,ma))s=Pi(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=mh;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[lh]&&ph.rebuild(s)}this.result=new ma(i,s,r),this.helpers=q({},$i,{postcss:$i,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":F(u))==="object"&&u.prepare?q({},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=x(this.plugins),s;!(s=o()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":F(a))==="object")for(var u in a){if(!_h[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!bh[u])if(F(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 Qn(function(){var r,o,s,a,u,c,l,f,p,v,m,y;return nr(this,function(d){switch(d.label){case 0:t.plugin=0,r=0,d.label=1;case 1:if(!(r<t.plugins.length))return[3,6];if(o=t.plugins[r],s=t.runOnRoot(o),!fr(s))return[3,5];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,s];case 3:return d.sent(),[3,5];case 4:throw a=d.sent(),t.handleError(a);case 5:return r++,[3,1];case 6:if(t.prepareVisitors(),!t.hasListener)return[3,18];u=t.result.root,d.label=7;case 7:if(u[Le])return[3,14];u[Le]=!0,c=[ya(u)],d.label=8;case 8:if(!(c.length>0))return[3,13];if(l=t.visitTick(c),!fr(l))return[3,12];d.label=9;case 9:return d.trys.push([9,11,,12]),[4,l];case 10:return d.sent(),[3,12];case 11:throw f=d.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];v=function(){var g,_,w,S,C;return nr(this,function(O){switch(O.label){case 0:g=y.value,_=g[0],w=g[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(R){return w(R,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]}})},m=x(t.listeners.OnceExit),d.label=15;case 15:return(y=m()).done?[3,18]:[5,hs(v())];case 16:d.sent(),d.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":F(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 fr(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=hh;t.syntax&&(r=t.syntax.stringify),t.stringifier&&(r=t.stringifier),r.stringify&&(r=r.stringify);var o=new fh(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=x(this.plugins),r;!(r=t()).done;){var o=r.value,s=this.runOnRoot(o);if(fr(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Le];)a[Le]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=x(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||vh("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=x(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(fr(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(m){throw this.handleError(m,o)}}if(r.iterator!==0){for(var l=r.iterator,f;f=o.nodes[o.indexes[l]];)if(o.indexes[l]+=1,!f[Le]){f[Le]=!0,t.push(ya(f));return}r.iterator=0,delete o.indexes[l]}for(var p=r.events;r.eventIndex<p.length;){var v=p[r.eventIndex];if(r.eventIndex+=1,v===Tt){o.nodes&&o.nodes.length&&(o[Le]=!0,r.iterator=o.getIterator());return}else if(this.listeners[v]){r.visitors=this.listeners[v];return}}t.pop()},n.walkSync=function(t){var r=this;t[Le]=!0;for(var o=ga(t),s=x(o),a;!(a=s()).done;){var u=a.value;if(u===Tt)t.nodes&&t.each(function(l){l[Le]||r.walkSync(l)});else{var c=this.listeners[u];if(c&&this.visitSync(c,t.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},pe(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}();Nt.registerPostcss=function(e){$i=e};var _a=Nt;Nt.default=Nt,gh.registerLazyResult(Nt),dh.registerLazyResult(Nt);var wh=js,Sh=Wr,Ch=na,Ih=Ni,Eh=Ri,Li=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=Sh;this.result=new Eh(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 wh(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||Ch("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[]},pe(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=Ih;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}(),xh=Li;Li.default=Li;var Oh=xh,kh=_a,Rh=xi,Ah=cr,hr=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=x(t),s;!(s=o()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":F(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":F(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":F(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 Oh(this,t,r):new kh(this,t,r)},n.use=function(t){return this.plugins=this.plugins.concat(this.normalize([t])),this},e}(),Mh=hr;hr.default=hr,Ah.registerProcessor(hr),Rh.registerProcessor(hr);var Th=jr,Nh=Ls,Ph=Zr,$h=Mi,Lh=Hr,Dh=cr,Fh=Ti;function pr(e,n){if(Array.isArray(e))return e.map(function(f){return pr(f)});var i=e.inputs,t=tr(e,["inputs"]);if(i){n=[];for(var r=x(i),o;!(o=r()).done;){var s=o.value,a=q({},s,{__proto__:Lh.prototype});a.map&&(a.map=q({},a.map,{__proto__:Nh.prototype})),n.push(a)}}if(t.nodes&&(t.nodes=e.nodes.map(function(f){return pr(f,n)})),t.source){var u=t.source,c=u.inputId,l=tr(u,["inputId"]);t.source=l,c!=null&&(t.source.input=n[c])}if(t.type==="root")return new Dh(t);if(t.type==="decl")return new Th(t);if(t.type==="rule")return new Fh(t);if(t.type==="comment")return new Ph(t);if(t.type==="atrule")return new $h(t);throw new Error("Unknown node type: "+e.type)}var Uh=pr;pr.default=pr;var Bh=fi,ba=jr,zh=_a,Wh=dt,Di=Mh,qh=Wr,Gh=Uh,wa=xi,jh=ia,Sa=Zr,Ca=Mi,Vh=Ri,Yh=Hr,Hh=Ni,Kh=ha,Ia=Ti,Ea=cr,Jh=Gr;function J(){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 Di(n)}J.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 Di().version,c}var o;return Object.defineProperty(r,"postcss",{get:function(){return o||(o=r()),o}}),r.process=function(s,a,u){return J([r(u)]).process(s,a)},r},J.stringify=qh,J.parse=Hh,J.fromJSON=Gh,J.list=Kh,J.comment=function(e){return new Sa(e)},J.atRule=function(e){return new Ca(e)},J.decl=function(e){return new ba(e)},J.rule=function(e){return new Ia(e)},J.root=function(e){return new Ea(e)},J.document=function(e){return new wa(e)},J.CssSyntaxError=Bh,J.Declaration=ba,J.Container=Wh,J.Processor=Di,J.Document=wa,J.Comment=Sa,J.Warning=jh,J.AtRule=Ca,J.Result=Vh,J.Input=Yh,J.Rule=Ia,J.Root=Ea,J.Node=Jh,zh.registerPostcss(J);var Zh=J;J.default=J;var ne=uf(Zh);ne.stringify,ne.fromJSON,ne.plugin,ne.parse,ne.list,ne.document,ne.comment,ne.atRule,ne.rule,ne.decl,ne.root,ne.CssSyntaxError,ne.Declaration,ne.Container,ne.Processor,ne.Document,ne.Comment,ne.Warning,ne.AtRule,ne.Result,ne.Input,ne.Rule,ne.Root,ne.Node;var Xh=Object.defineProperty,Qh=function(e,n,i){return n in e?Xh(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i},Ae=function(e,n,i){return Qh(e,(typeof n=="undefined"?"undefined":F(n))!=="symbol"?n+"":n,i)};function ep(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function tp(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var i=function t(){return $(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 Fi={exports:{}},te=String,xa=function(){return{isColorSupported:!1,reset:te,bold:te,dim:te,italic:te,underline:te,inverse:te,hidden:te,strikethrough:te,black:te,red:te,green:te,yellow:te,blue:te,magenta:te,cyan:te,white:te,gray:te,bgBlack:te,bgRed:te,bgGreen:te,bgYellow:te,bgBlue:te,bgMagenta:te,bgCyan:te,bgWhite:te}};Fi.exports=xa(),Fi.exports.createColors=xa;var rp=Fi.exports,np={},ip=Object.freeze(Object.defineProperty({__proto__:null,default:np},Symbol.toStringTag,{value:"Module"})),ce=tp(ip),Oa=rp,ka=ce,Ui=function(e){me(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=Oa.isColorSupported),ka&&r&&(s=ka(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 v=Oa.createColors(!0),m=v.bold,y=v.gray,d=v.red;f=function(g){return m(d(g))},p=function(g){return y(g)}}else f=p=function(g){return g};return a.slice(u,c).map(function(g,_){var w=u+1+_,S=" "+(" "+w).slice(-l)+" | ";if(w===o.line){var C=p(S.replace(/\d/g," "))+g.slice(0,o.column-1).replace(/[^\t]/g," ");return f(">")+p(S)+g+"\n "+C+f("^")}return" "+p(S)+g}).join("\n")},i.toString=function(){var r=this.showSourceCode();return r&&(r="\n\n"+r+"\n"),this.name+": "+this.message+r},n}(Fr(Error)),Bi=Ui;Ui.default=Ui;var Qe={};Qe.isClean=Symbol("isClean"),Qe.my=Symbol("my");var Ra={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function op(e){return e[0].toUpperCase()+e.slice(1)}var zi=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 Ra[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"+op(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=Ra[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}(),Aa=zi;zi.default=zi;var sp=Aa;function Wi(e,n){var i=new sp(n);i.stringify(e)}var cn=Wi;Wi.default=Wi;var ln=Qe.isClean,ap=Qe.my,up=Bi,cp=Aa,lp=cn;function qi(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":F(r);t==="parent"&&o==="object"?n&&(i[t]=n):t==="source"?i[t]=r:Array.isArray(r)?i[t]=r.map(function(s){return qi(s,i)}):(o==="object"&&r!==null&&(r=qi(r)),i[t]=r)}return i}var Gi=function(){function e(i){i===void 0&&(i={}),this.raws={},this[ln]=!1,this[ap]=!0;for(var t in i)if(t==="nodes"){this.nodes=[];for(var r=x(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=qi(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 up(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[ln]){this[ln]=!1;for(var t=this;t=t.parent;)t[ln]=!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 cp;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=x(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":F(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof c=="undefined"?"undefined":F(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=lp),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)},pe(e,[{key:"proxyOf",get:function(){return this}}]),e}(),fn=Gi;Gi.default=Gi;var fp=fn,ji=function(e){me(n,e);function n(i){var t;return i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=q({},i,{value:String(i.value)})),t=e.call(this,i)||this,t.type="decl",t}return pe(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n}(fp),hn=ji;ji.default=ji;var hp="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",pp=function(e){e===void 0&&(e=21);for(var n="",i=e;i--;)n+=hp[Math.random()*64|0];return n},dp={nanoid:pp},Ma=ce.SourceMapConsumer,Ta=ce.SourceMapGenerator,vp=ce.existsSync,mp=ce.readFileSync,Vi=ce.dirname,gp=ce.join;function yp(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var Yi=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=Vi(this.mapFile)),o&&(this.text=o)}}var n=e.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new Ma(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 yp(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":F(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=Vi(t),vp(t))return this.mapFile=t,mp(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($(r,Ma))return Ta.fromSourceMap(r).toString();if($(r,Ta))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=gp(Vi(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}(),Na=Yi;Yi.default=Yi;var _p=ce.SourceMapConsumer,bp=ce.SourceMapGenerator,Pa=ce.fileURLToPath,pn=ce.pathToFileURL,Hi=ce.isAbsolute,Ki=ce.resolve,wp=dp.nanoid,Ji=ce,$a=Bi,Sp=Na,Zi=Symbol("fromOffsetCache"),Cp=!!(_p&&bp),La=!!(Ki&&Hi),dn=function(){function e(i,t){if(t===void 0&&(t={}),i===null||typeof i=="undefined"||(typeof i=="undefined"?"undefined":F(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&&(!La||/^\w+:\/\//.test(t.from)||Hi(t.from)?this.file=t.from:this.file=Ki(t.from)),La&&Cp){var r=new Sp(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 "+wp(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":F(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 v=this.fromOffset(f.offset);u=v.line,c=v.col}else u=f.line,c=f.column}else if(!o){var m=this.fromOffset(r);r=m.line,o=m.col}var y=this.origin(r,o,u,c);return y?a=new $a(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 $a(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&&(pn&&(a.input.url=pn(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(t){var r,o;if(this[Zi])o=this[Zi];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[Zi]=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:Ki(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;Hi(u.source)?l=pn(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||pn(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(Pa)f.file=Pa(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=q({},this.map),t.map.consumerCache&&(t.map.consumerCache=void 0)),t},pe(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),vn=dn;dn.default=dn,Ji&&Ji.registerInput&&Ji.registerInput(dn);var Da=ce.SourceMapConsumer,mn=ce.SourceMapGenerator,gn=ce.dirname,Fa=ce.relative,Ua=ce.resolve,Ba=ce.sep,za=ce.pathToFileURL,Ip=vn,Ep=!!(Da&&mn),xp=!!(gn&&Ua&&Fa&&Ba),Op=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=x(this.previous()),r;!(r=t()).done;){var o=r.value,s=this.toUrl(this.path(o.file)),a=o.root||gn(o.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new Da(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(),xp&&Ep&&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=mn.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new mn({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 mn({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 v=f.parent||{raws:{}},m=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!m||f!==v.last||v.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?gn(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(o=gn(Ua(o,this.mapOpts.annotation)));var s=Fa(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 Ip(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(za){var o=za(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;Ba==="\\"&&(t=t.replace(/\\/g,"/"));var o=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,o),o},e}(),Wa=Op,kp=fn,Xi=function(e){me(n,e);function n(i){var t;return t=e.call(this,i)||this,t.type="comment",t}return n}(kp),yn=Xi;Xi.default=Xi;var qa=Qe.isClean,Ga=Qe.my,ja=hn,Va=yn,Rp=fn,Ya,Qi,eo,Ha;function Ka(e){return e.map(function(n){return n.nodes&&(n.nodes=Ka(n.nodes)),delete n.source,n})}function Ja(e){if(e[qa]=!1,e.proxyOf.nodes)for(var n=x(e.proxyOf.nodes),i;!(i=n()).done;){var t=i.value;Ja(t)}}var Ge=function(e){me(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=x(o),u;!(u=a()).done;)for(var c=u.value,l=this.normalize(c,this.last),f=x(l),p;!(p=f()).done;){var v=p.value;this.proxyOf.nodes.push(v)}return this.markDirty(),this},i.cleanRaws=function(r){if(e.prototype.cleanRaws.call(this,r),this.nodes)for(var o=x(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,v){return f(p.toProxy(),v)}: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=x(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=x(u),l;!(l=c()).done;){var f=l.value;this.proxyOf.nodes.splice(s,0,f)}var p;for(var v in this.indexes)p=this.indexes[v],s<=p&&(this.indexes[v]=p+u.length);return this.markDirty(),this},i.normalize=function(r,o){var s=this;if(typeof r=="string")r=Ka(Ya(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=x(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=x(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 ja(r)]}else if(r.selector)r=[new Qi(r)];else if(r.name)r=[new eo(r)];else if(r.text)r=[new Va(r)];else throw new Error("Unknown node type in node creation");var v=r.map(function(m){return m[Ga]||n.rebuild(m),m=m.proxyOf,m.parent&&m.parent.removeChild(m),m[qa]&&Ja(m),typeof m.raws.before=="undefined"&&o&&typeof o.raws.before!="undefined"&&(m.raws.before=o.raws.before.replace(/\S/g,"")),m.parent=s.proxyOf,m});return v},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=x(o),u;!(u=a()).done;){for(var c=u.value,l=this.normalize(c,this.first,"prepend").reverse(),f=x(l),p;!(p=f()).done;){var v=p.value;this.proxyOf.nodes.unshift(v)}for(var m in this.indexes)this.indexes[m]=this.indexes[m]+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=x(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?$(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?$(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?$(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)}))},pe(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}(Rp);Ge.registerParse=function(e){Ya=e},Ge.registerRule=function(e){Qi=e},Ge.registerAtRule=function(e){eo=e},Ge.registerRoot=function(e){Ha=e};var vt=Ge;Ge.default=Ge,Ge.rebuild=function(e){e.type==="atrule"?Object.setPrototypeOf(e,eo.prototype):e.type==="rule"?Object.setPrototypeOf(e,Qi.prototype):e.type==="decl"?Object.setPrototypeOf(e,ja.prototype):e.type==="comment"?Object.setPrototypeOf(e,Va.prototype):e.type==="root"&&Object.setPrototypeOf(e,Ha.prototype),e[Ga]=!0,e.nodes&&e.nodes.forEach(function(n){Ge.rebuild(n)})};var Ap=vt,Za,Xa,dr=function(e){me(n,e);function n(t){var r;return r=e.call(this,q({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 Za(new Xa,this,r);return o.stringify()},n}(Ap);dr.registerLazyResult=function(e){Za=e},dr.registerProcessor=function(e){Xa=e};var to=dr;dr.default=dr;var Qa={},eu=function(n){Qa[n]||(Qa[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},ro=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}(),tu=ro;ro.default=ro;var Mp=tu,no=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 Mp(t,r);return this.messages.push(o),o},n.warnings=function(){return this.messages.filter(function(t){return t.type==="warning"})},pe(e,[{key:"content",get:function(){return this.css}}]),e}(),io=no;no.default=no;var oo=39,ru=34,_n=92,nu=47,bn=10,vr=32,wn=12,Sn=9,Cn=13,Tp=91,Np=93,Pp=40,$p=41,Lp=123,Dp=125,Fp=59,Up=42,Bp=58,zp=64,In=/[\t\n\f\r "#'()/;[\\\]{}]/g,En=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Wp=/.[\r\n"'(/\\]/,iu=/[\da-f]/i,qp=function(n,i){i===void 0&&(i={});var t=n.css.valueOf(),r=i.ignoreErrors,o,s,a,u,c,l,f,p,v,m,y=t.length,d=0,g=[],_=[];function w(){return d}function S(k){throw n.error("Unclosed "+k,d)}function C(){return _.length===0&&d>=y}function O(k){if(_.length)return _.pop();if(!(d>=y)){var N=k?k.ignoreUnclosed:!1;switch(o=t.charCodeAt(d),o){case bn:case vr:case Sn:case Cn:case wn:{s=d;do s+=1,o=t.charCodeAt(s);while(o===vr||o===bn||o===Sn||o===Cn||o===wn);m=["space",t.slice(d,s)],d=s-1;break}case Tp:case Np:case Lp:case Dp:case Bp:case Fp:case $p:{var G=String.fromCharCode(o);m=[G,G,d];break}case Pp:{if(p=g.length?g.pop()[1]:"",v=t.charCodeAt(d+1),p==="url"&&v!==oo&&v!==ru&&v!==vr&&v!==bn&&v!==Sn&&v!==wn&&v!==Cn){s=d;do{if(l=!1,s=t.indexOf(")",s+1),s===-1)if(r||N){s=d;break}else S("bracket");for(f=s;t.charCodeAt(f-1)===_n;)f-=1,l=!l}while(l);m=["brackets",t.slice(d,s+1),d,s],d=s}else s=t.indexOf(")",d+1),u=t.slice(d,s+1),s===-1||Wp.test(u)?m=["(","(",d]:(m=["brackets",u,d,s],d=s);break}case oo:case ru:{a=o===oo?"'":'"',s=d;do{if(l=!1,s=t.indexOf(a,s+1),s===-1)if(r||N){s=d+1;break}else S("string");for(f=s;t.charCodeAt(f-1)===_n;)f-=1,l=!l}while(l);m=["string",t.slice(d,s+1),d,s],d=s;break}case zp:{In.lastIndex=d+1,In.test(t),In.lastIndex===0?s=t.length-1:s=In.lastIndex-2,m=["at-word",t.slice(d,s+1),d,s],d=s;break}case _n:{for(s=d,c=!0;t.charCodeAt(s+1)===_n;)s+=1,c=!c;if(o=t.charCodeAt(s+1),c&&o!==nu&&o!==vr&&o!==bn&&o!==Sn&&o!==Cn&&o!==wn&&(s+=1,iu.test(t.charAt(s)))){for(;iu.test(t.charAt(s+1));)s+=1;t.charCodeAt(s+1)===vr&&(s+=1)}m=["word",t.slice(d,s+1),d,s],d=s;break}default:{o===nu&&t.charCodeAt(d+1)===Up?(s=t.indexOf("*/",d+2)+1,s===0&&(r||N?s=t.length:S("comment")),m=["comment",t.slice(d,s+1),d,s],d=s):(En.lastIndex=d+1,En.test(t),En.lastIndex===0?s=t.length-1:s=En.lastIndex-2,m=["word",t.slice(d,s+1),d,s],g.push(m),d=s);break}}return d++,m}}function R(k){_.push(k)}return{back:R,endOfFile:C,nextToken:O,position:w}},ou=vt,xn=function(e){me(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}(ou),so=xn;xn.default=xn,ou.registerAtRule(xn);var su=vt,au,uu,Pt=function(e){me(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=x(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 au(new uu,this,r);return o.stringify()},n}(su);Pt.registerLazyResult=function(e){au=e},Pt.registerProcessor=function(e){uu=e};var mr=Pt;Pt.default=Pt,su.registerRoot(Pt);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=x(n),p;!(p=f()).done;){var v=p.value;l?l=!1:v==="\\"?l=!0:u?v===c&&(u=!1):v==='"'||v==="'"?(u=!0,c=v):v==="("?a+=1:v===")"?a>0&&(a-=1):a===0&&i.includes(v)&&(s=!0),s?(o!==""&&r.push(o.trim()),o="",s=!1):o+=v}return(t||o!=="")&&r.push(o.trim()),r}},cu=gr;gr.default=gr;var lu=vt,Gp=cu,On=function(e){me(n,e);function n(i){var t;return t=e.call(this,i)||this,t.type="rule",t.nodes||(t.nodes=[]),t}return pe(n,[{key:"selectors",get:function(){return Gp.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}(lu),ao=On;On.default=On,lu.registerRule(On);var jp=hn,Vp=qp,Yp=yn,Hp=so,Kp=mr,fu=ao,hu={empty:!0,space:!0};function Jp(e){for(var n=e.length-1;n>=0;n--){var i=e[n],t=i[3]||i[2];if(t)return t}}var Zp=function(){function e(i){this.input=i,this.root=new Kp,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 Hp;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=x(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 Yp;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=Vp(this.input)},n.decl=function(t,r){var o=new jp;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]||Jp(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 v=t.slice(0),m="",y=f;y>0;y--){var d=v[y][0];if(m.trim().indexOf("!")===0&&d!=="space")break;m=v.pop()[1]+m}m.trim().indexOf("!")===0&&(o.important=!0,o.raws.important=m,t=v)}if(u[0]!=="space"&&u[0]!=="comment")break}var g=t.some(function(_){return _[0]!=="space"&&_[0]!=="comment"});g&&(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 fu;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,v,m=0;m<c;m+=1)a=o[m],u=a[0],u==="space"&&m===c-1&&!s?f=!1:u==="comment"?(v=o[m-1]?o[m-1][0]:"empty",p=o[m+1]?o[m+1][0]:"empty",!hu[v]&&!hu[p]?l.slice(-1)===","?f=!1:l+=a[1]:f=!1):l+=a[1];if(!f){var y=o.reduce(function(d,g){return d+g[1]},"");t.raws[r]={raw:y,value:l}}t[r]=l},n.rule=function(t){t.pop();var r=new fu;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}(),Xp=Zp,Qp=vt,ed=Xp,td=vn;function kn(e,n){var i=new td(e,n),t=new ed(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 uo=kn;kn.default=kn,Qp.registerParse(kn);var De=Qe.isClean,rd=Qe.my,nd=Wa,id=cn,od=vt,sd=to,ad=eu,pu=io,ud=uo,cd=mr,ld={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},fd={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},hd={Once:!0,postcssPlugin:!0,prepare:!0},$t=0;function yr(e){return(typeof e=="undefined"?"undefined":F(e))==="object"&&typeof e.then=="function"}function du(e){var n=!1,i=ld[e.type];return e.type==="decl"?n=e.prop.toLowerCase():e.type==="atrule"&&(n=e.name.toLowerCase()),n&&e.append?[i,i+"-"+n,$t,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:e.append?[i,$t,i+"Exit"]:[i,i+"Exit"]}function vu(e){var n;return e.type==="document"?n=["Document",$t,"DocumentExit"]:e.type==="root"?n=["Root",$t,"RootExit"]:n=du(e),{eventIndex:0,events:n,iterator:0,node:e,visitorIndex:0,visitors:[]}}function co(e){return e[De]=!1,e.nodes&&e.nodes.forEach(function(n){return co(n)}),e}var lo={},Lt=function(){function e(i,t,r){var o=this;this.stringified=!1,this.processed=!1;var s;if((typeof t=="undefined"?"undefined":F(t))==="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=co(t);else if($(t,e)||$(t,pu))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=ud;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[rd]&&od.rebuild(s)}this.result=new pu(i,s,r),this.helpers=q({},lo,{postcss:lo,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":F(u))==="object"&&u.prepare?q({},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=x(this.plugins),s;!(s=o()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":F(a))==="object")for(var u in a){if(!fd[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!hd[u])if(F(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 Qn(function(){var r,o,s,a,u,c,l,f,p,v,m,y;return nr(this,function(d){switch(d.label){case 0:t.plugin=0,r=0,d.label=1;case 1:if(!(r<t.plugins.length))return[3,6];if(o=t.plugins[r],s=t.runOnRoot(o),!yr(s))return[3,5];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,s];case 3:return d.sent(),[3,5];case 4:throw a=d.sent(),t.handleError(a);case 5:return r++,[3,1];case 6:if(t.prepareVisitors(),!t.hasListener)return[3,18];u=t.result.root,d.label=7;case 7:if(u[De])return[3,14];u[De]=!0,c=[vu(u)],d.label=8;case 8:if(!(c.length>0))return[3,13];if(l=t.visitTick(c),!yr(l))return[3,12];d.label=9;case 9:return d.trys.push([9,11,,12]),[4,l];case 10:return d.sent(),[3,12];case 11:throw f=d.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];v=function(){var g,_,w,S,C;return nr(this,function(O){switch(O.label){case 0:g=y.value,_=g[0],w=g[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(R){return w(R,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]}})},m=x(t.listeners.OnceExit),d.label=15;case 15:return(y=m()).done?[3,18]:[5,hs(v())];case 16:d.sent(),d.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":F(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 yr(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=id;t.syntax&&(r=t.syntax.stringify),t.stringifier&&(r=t.stringifier),r.stringify&&(r=r.stringify);var o=new nd(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=x(this.plugins),r;!(r=t()).done;){var o=r.value,s=this.runOnRoot(o);if(yr(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[De];)a[De]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=x(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=x(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(yr(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(m){throw this.handleError(m,o)}}if(r.iterator!==0){for(var l=r.iterator,f;f=o.nodes[o.indexes[l]];)if(o.indexes[l]+=1,!f[De]){f[De]=!0,t.push(vu(f));return}r.iterator=0,delete o.indexes[l]}for(var p=r.events;r.eventIndex<p.length;){var v=p[r.eventIndex];if(r.eventIndex+=1,v===$t){o.nodes&&o.nodes.length&&(o[De]=!0,r.iterator=o.getIterator());return}else if(this.listeners[v]){r.visitors=this.listeners[v];return}}t.pop()},n.walkSync=function(t){var r=this;t[De]=!0;for(var o=du(t),s=x(o),a;!(a=s()).done;){var u=a.value;if(u===$t)t.nodes&&t.each(function(l){l[De]||r.walkSync(l)});else{var c=this.listeners[u];if(c&&this.visitSync(c,t.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},pe(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}();Lt.registerPostcss=function(e){lo=e};var mu=Lt;Lt.default=Lt,cd.registerLazyResult(Lt),sd.registerLazyResult(Lt);var pd=Wa,dd=cn,vd=eu,md=uo,gd=io,fo=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=dd;this.result=new gd(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 pd(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||vd("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[]},pe(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=md;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}(),yd=fo;fo.default=fo;var _d=yd,bd=mu,wd=to,Sd=mr,_r=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=x(t),s;!(s=o()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":F(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":F(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":F(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 _d(this,t,r):new bd(this,t,r)},n.use=function(t){return this.plugins=this.plugins.concat(this.normalize([t])),this},e}(),Cd=_r;_r.default=_r,Sd.registerProcessor(_r),wd.registerProcessor(_r);var Id=hn,Ed=Na,xd=yn,Od=so,kd=vn,Rd=mr,Ad=ao;function br(e,n){if(Array.isArray(e))return e.map(function(f){return br(f)});var i=e.inputs,t=tr(e,["inputs"]);if(i){n=[];for(var r=x(i),o;!(o=r()).done;){var s=o.value,a=q({},s,{__proto__:kd.prototype});a.map&&(a.map=q({},a.map,{__proto__:Ed.prototype})),n.push(a)}}if(t.nodes&&(t.nodes=e.nodes.map(function(f){return br(f,n)})),t.source){var u=t.source,c=u.inputId,l=tr(u,["inputId"]);t.source=l,c!=null&&(t.source.input=n[c])}if(t.type==="root")return new Rd(t);if(t.type==="decl")return new Id(t);if(t.type==="rule")return new Ad(t);if(t.type==="comment")return new xd(t);if(t.type==="atrule")return new Od(t);throw new Error("Unknown node type: "+e.type)}var Md=br;br.default=br;var Td=Bi,gu=hn,Nd=mu,Pd=vt,ho=Cd,$d=cn,Ld=Md,yu=to,Dd=tu,_u=yn,bu=so,Fd=io,Ud=vn,Bd=uo,zd=cu,wu=ao,Su=mr,Wd=fn;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 ho(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 ho().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=$d,Z.parse=Bd,Z.fromJSON=Ld,Z.list=zd,Z.comment=function(e){return new _u(e)},Z.atRule=function(e){return new bu(e)},Z.decl=function(e){return new gu(e)},Z.rule=function(e){return new wu(e)},Z.root=function(e){return new Su(e)},Z.document=function(e){return new yu(e)},Z.CssSyntaxError=Td,Z.Declaration=gu,Z.Container=Pd,Z.Processor=ho,Z.Document=yu,Z.Comment=_u,Z.Warning=Dd,Z.AtRule=bu,Z.Result=Fd,Z.Input=Ud,Z.Rule=wu,Z.Root=Su,Z.Node=Wd,Nd.registerPostcss(Z);var qd=Z;Z.default=Z;var ie=ep(qd);ie.stringify,ie.fromJSON,ie.plugin,ie.parse,ie.list,ie.document,ie.comment,ie.atRule,ie.rule,ie.decl,ie.root,ie.CssSyntaxError,ie.Declaration,ie.Container,ie.Processor,ie.Document,ie.Comment,ie.Warning,ie.AtRule,ie.Result,ie.Input,ie.Rule,ie.Root,ie.Node;var Gd=function(){function e(){for(var i=arguments.length,t=new Array(i),r=0;r<i;r++)t[r]=arguments[r];Ae(this,"parentElement",null),Ae(this,"parentNode",null),Ae(this,"ownerDocument"),Ae(this,"firstChild",null),Ae(this,"lastChild",null),Ae(this,"previousSibling",null),Ae(this,"nextSibling",null),Ae(this,"ELEMENT_NODE",1),Ae(this,"TEXT_NODE",3),Ae(this,"nodeType"),Ae(this,"nodeName"),Ae(this,"RRNodeType")}var n=e.prototype;return n.contains=function(t){if($(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"},pe(e,[{key:"childNodes",get:function(){for(var t=[],r=this.firstChild;r;)t.push(r),r=r.nextSibling;return t}}]),e}(),Cu={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Iu={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Rn={},jd=function(){return!!globalThis.Zone};function po(e){if(Rn[e])return Rn[e];var n=globalThis[e],i=n.prototype,t=e in Cu?Cu[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 Iu?Iu[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&&!jd())return Rn[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?Rn[e]=c:i}catch(l){return i}}var vo={};function et(e,n,i){var t,r=e+"."+String(i);if(vo[r])return vo[r].call(n);var o=po(e),s=(t=Object.getOwnPropertyDescriptor(o,i))==null?void 0:t.get;return s?(vo[r]=s,s.call(n)):n[i]}var mo={};function Eu(e,n,i){var t=e+"."+String(i);if(mo[t])return mo[t].bind(n);var r=po(e),o=r[i];return typeof o!="function"?n[i]:(mo[t]=o,o.bind(n))}function Vd(e){return et("Node",e,"childNodes")}function Yd(e){return et("Node",e,"parentNode")}function Hd(e){return et("Node",e,"parentElement")}function Kd(e){return et("Node",e,"textContent")}function Jd(e,n){return Eu("Node",e,"contains")(n)}function Zd(e){return Eu("Node",e,"getRootNode")()}function Xd(e){return!e||!("host"in e)?null:et("ShadowRoot",e,"host")}function Qd(e){return e.styleSheets}function ev(e){return!e||!("shadowRoot"in e)?null:et("Element",e,"shadowRoot")}function tv(e,n){return et("Element",e,"querySelector")(n)}function rv(e,n){return et("Element",e,"querySelectorAll")(n)}function xu(){return po("MutationObserver").constructor}var U={childNodes:Vd,parentNode:Yd,parentElement:Hd,textContent:Kd,contains:Jd,getRootNode:Zd,host:Xd,styleSheets:Qd,shadowRoot:ev,querySelector:tv,querySelectorAll:rv,mutationObserver:xu};function _e(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 Dt="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.",Ou={map:{},getId:function(){return console.error(Dt),-1},getNode:function(){return console.error(Dt),null},removeNodeFromMap:function(){console.error(Dt)},has:function(){return console.error(Dt),!1},reset:function(){console.error(Dt)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(Ou=new Proxy(Ou,{get:function(n,i,t){return i==="map"&&console.error(Dt),Reflect.get(n,i,t)}}));function wr(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 An(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 An(e,n,o||{},!0)}}function Ft(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 Mn=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Mn=function(){return new Date().getTime()});function ku(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=U.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=U.parentElement(o.body))==null?void 0:t.scrollTop)||((r=o==null?void 0:o.body)==null?void 0:r.scrollTop)||0}}function Ru(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Au(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Mu(e){if(!e)return null;var n=e.nodeType===e.ELEMENT_NODE?e:U.parentElement(e);return n}function be(e,n,i,t){if(!e)return!1;var r=Mu(e);if(!r)return!1;try{if(typeof n=="string"){if(r.classList.contains(n)||t&&r.closest("."+n)!==null)return!0}else if(zr(r,n,t))return!0}catch(o){}return!!(i&&(r.matches(i)||t&&r.closest(i)!==null))}function nv(e,n){return n.getId(e)!==-1}function go(e,n,i){return e.tagName==="TITLE"&&i.headTitleMutations?!0:n.getId(e)===sr}function Tu(e,n){if(ir(e))return!1;var i=n.getId(e);if(!n.has(i))return!0;var t=U.parentNode(e);return t&&t.nodeType===e.DOCUMENT_NODE?!1:t?Tu(t,n):!0}function yo(e){return!!e.changedTouches}function iv(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 Nu(e,n){return!!(e.nodeName==="IFRAME"&&n.getMeta(e))}function Pu(e,n){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&n.getMeta(e))}function _o(e){return e?$(e,Gd)&&"shadowRoot"in e?!!e.shadowRoot:!!U.shadowRoot(e):!1}var ov=function(){function e(){I(this,"id",1),I(this,"styleIDMap",new WeakMap),I(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 $u(e){var n,i=null;return"getRootNode"in e&&((n=U.getRootNode(e))==null?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&U.host(U.getRootNode(e))&&(i=U.host(U.getRootNode(e))),i}function sv(e){for(var n=e,i;i=$u(n);)n=i;return n}function av(e){var n=e.ownerDocument;if(!n)return!1;var i=sv(e);return U.contains(n,i)}function Lu(e){var n=e.ownerDocument;return n?U.contains(n,e)||av(e):!1}var B=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}(B||{}),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||{}),Se=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}(Se||{}),je=function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e}(je||{}),Ut=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}(Ut||{}),Bt=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}(Bt||{}),Du=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}(Du||{});function Fu(e){return"__ln"in e}var uv=function(){function e(){I(this,"length",0),I(this,"head",null),I(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&&Fu(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&&Fu(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}(),Uu=function(e,n){return e+"@"+n},cv=function(){function e(){var i=this;I(this,"frozen",!1),I(this,"locked",!1),I(this,"texts",[]),I(this,"attributes",[]),I(this,"attributeMap",new WeakMap),I(this,"removes",[]),I(this,"mapRemoves",[]),I(this,"movedMap",{}),I(this,"addedSet",new Set),I(this,"movedSet",new Set),I(this,"droppedSet",new Set),I(this,"removesSubTreeCache",new Set),I(this,"mutationCb"),I(this,"blockClass"),I(this,"blockSelector"),I(this,"maskTextClass"),I(this,"maskTextSelector"),I(this,"inlineStylesheet"),I(this,"maskInputOptions"),I(this,"maskTextFn"),I(this,"maskInputFn"),I(this,"keepIframeSrcFn"),I(this,"recordCanvas"),I(this,"inlineImages"),I(this,"slimDOMOptions"),I(this,"dataURLOptions"),I(this,"doc"),I(this,"mirror"),I(this,"iframeManager"),I(this,"stylesheetManager"),I(this,"shadowDomManager"),I(this,"canvasManager"),I(this,"processedNodeManager"),I(this,"unattachedDoc"),I(this,"processMutations",function(t){t.forEach(i.processMutation),i.emit()}),I(this,"emit",function(){if(!(i.frozen||i.locked)){for(var t=[],r=new Set,o=new uv,s=function(M){for(var D=M,H=sr;H===sr;)D=D&&D.nextSibling,H=D&&i.mirror.getId(D);return H},a=function(M){var D=U.parentNode(M);if(!(!D||!Lu(M))){var H=!1;if(M.nodeType===Node.TEXT_NODE){var Ie=D.tagName;if(Ie==="TEXTAREA")return;Ie==="STYLE"&&i.addedSet.has(D)&&(H=!0)}var K=ir(D)?i.mirror.getId($u(M)):i.mirror.getId(D),Oe=s(M);if(K===-1||Oe===-1)return o.addNode(M);var we=At(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(oe){Nu(oe,i.mirror)&&i.iframeManager.addIframe(oe),Pu(oe,i.mirror)&&i.stylesheetManager.trackLinkElement(oe),_o(M)&&i.shadowDomManager.addShadowRoot(U.shadowRoot(M),i.doc)},onIframeLoad:function(oe,ve){i.iframeManager.attachIframe(oe,ve),i.shadowDomManager.observeAttachShadow(oe)},onStylesheetLoad:function(oe,ve){i.stylesheetManager.attachLinkElement(oe,ve)},cssCaptured:H});we&&(t.push({parentId:K,nextId:Oe,node:we}),r.add(we.id))}};i.mapRemoves.length;)i.mirror.removeNodeFromMap(i.mapRemoves.shift());for(var u=x(i.movedSet),c;!(c=u()).done;){var l=c.value;Bu(i.removesSubTreeCache,l,i.mirror)&&!i.movedSet.has(U.parentNode(l))||a(l)}for(var f=x(i.addedSet),p;!(p=f()).done;){var v=p.value;!zu(i.droppedSet,v)&&!Bu(i.removesSubTreeCache,v,i.mirror)||zu(i.movedSet,v)?a(v):i.droppedSet.add(v)}for(var m=null;o.length;){var y=null;if(m){var d=i.mirror.getId(U.parentNode(m.value)),g=s(m.value);d!==-1&&g!==-1&&(y=m)}if(!y)for(var _=o.tail;_;){var w=_;if(_=_.previous,w){var S=i.mirror.getId(U.parentNode(w.value)),C=s(w.value);if(C===-1)continue;if(S!==-1){y=w;break}else{var O=w.value,R=U.parentNode(O);if(R&&R.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var k=U.host(R),N=i.mirror.getId(k);if(N!==-1){y=w;break}}}}}if(!y){for(;o.head;)o.removeNode(o.head.value);break}m=y.previous,o.removeNode(y.value),a(y.value)}var G={texts:i.texts.map(function(M){var D=M.node,H=U.parentNode(D);return H&&H.tagName==="TEXTAREA"&&i.genTextAreaValueMutation(H),{id:i.mirror.getId(D),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 D=M.attributes;if(typeof D.style=="string"){var H=JSON.stringify(M.styleDiff),Ie=JSON.stringify(M._unchangedStyles);H.length<D.style.length&&(H+Ie).split("var(").length===D.style.split("var(").length&&(D.style=M.styleDiff)}return{id:i.mirror.getId(M.node),attributes:D}}).filter(function(M){return!r.has(M.id)}).filter(function(M){return i.mirror.has(M.id)}),removes:i.removes,adds:t};!G.texts.length&&!G.attributes.length&&!G.removes.length&&!G.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(G))}}),I(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)),r.attributes.value=Array.from(U.childNodes(t),function(o){return U.textContent(o)||""}).join("")}),I(this,"processMutation",function(t){if(!go(t.target,i.mirror,i.slimDOMOptions))switch(t.type){case"characterData":{var r=U.textContent(t.target);!be(t.target,i.blockClass,i.blockSelector,!1)&&r!==t.oldValue&&i.texts.push({value:ks(t.target,i.maskTextClass,i.maskTextSelector,!0)&&r?i.maskTextFn?i.maskTextFn(r,Mu(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=si(o);a=oi({element:o,maskInputOptions:i.maskInputOptions,tagName:o.tagName,type:u,value:a,maskInputFn:i.maskInputFn})}if(be(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"),!Os(o.tagName,s))if(c.attributes[s]=xs(i.doc,pt(o.tagName),pt(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=x(Array.from(o.style)),p;!(p=f()).done;){var v=p.value,m=o.style.getPropertyValue(v),y=o.style.getPropertyPriority(v);m!==l.style.getPropertyValue(v)||y!==l.style.getPropertyPriority(v)?y===""?c.styleDiff[v]=m:c.styleDiff[v]=[m,y]:c._unchangedStyles[v]=[m,y]}for(var d=x(Array.from(l.style)),g;!(g=d()).done;){var _=g.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(be(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=ir(t.target)?i.mirror.getId(U.host(t.target)):i.mirror.getId(t.target);be(t.target,i.blockClass,i.blockSelector,!1)||go(w,i.mirror,i.slimDOMOptions)||!nv(w,i.mirror)||(i.addedSet.has(w)?(bo(i.addedSet,w),i.droppedSet.add(w)):i.addedSet.has(t.target)&&S===-1||Tu(t.target,i.mirror)||(i.movedSet.has(w)&&i.movedMap[Uu(S,C)]?bo(i.movedSet,w):(i.removes.push({parentId:C,id:S,isShadow:ir(t.target)&&or(t.target)?!0:void 0}),lv(w,i.removesSubTreeCache))),i.mapRemoves.push(w))});break}}}),I(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(go(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[Uu(i.mirror.getId(t),o)]=!0)}else i.addedSet.add(t),i.droppedSet.delete(t);be(t,i.blockClass,i.blockSelector,!1)||(U.childNodes(t).forEach(function(s){return i.genAdds(s)}),_o(t)&&U.childNodes(U.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 bo(e,n){e.delete(n),U.childNodes(n).forEach(function(i){return bo(e,i)})}function lv(e,n){for(var i=[e];i.length;){var t=i.pop();n.has(t)||(n.add(t),U.childNodes(t).forEach(function(r){return i.push(r)}))}}function Bu(e,n,i){return e.size===0?!1:fv(e,n)}function fv(e,n,i){var t=U.parentNode(n);return t?e.has(t):!1}function zu(e,n){return e.size===0?!1:Wu(e,n)}function Wu(e,n){var i=U.parentNode(n);return i?e.has(i)?!0:Wu(e,i):!1}var Sr;function hv(e){Sr=e}function pv(){Sr=void 0}var W=function(e){if(!Sr)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(Sr&&Sr(o)===!0)return;throw o}};return n},mt=[];function Cr(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 qu(e,n){var i=new cv;mt.push(i),i.init(e);var t=new(xu())(W(i.processMutations.bind(i)));return t.observe(n,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),t}function dv(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=wr(W(function(p){var v=Date.now()-u;n(a.map(function(m){return m.timeOffset-=v,m}),p),a=[],u=null}),s),l=W(wr(W(function(p){var v=Cr(p),m=yo(p)?p.changedTouches[0]:p,y=m.clientX,d=m.clientY;u||(u=Mn()),a.push({x:y,y:d,id:r.getId(v),timeOffset:Mn()-u}),c(typeof DragEvent!="undefined"&&$(p,DragEvent)?T.Drag:$(p,MouseEvent)?T.MouseMove:T.TouchMove)}),o,{trailing:!1})),f=[_e("mousemove",l,t),_e("touchmove",l,t),_e("drag",l,t)];return W(function(){f.forEach(function(p){return p()})})}function vv(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 v=Cr(p);if(!be(v,r,o,!0)){var m=null,y=f;if("pointerType"in p){switch(p.pointerType){case"mouse":m=je.Mouse;break;case"touch":m=je.Touch;break;case"pen":m=je.Pen;break}m===je.Touch?Se[f]===Se.MouseDown?y="TouchStart":Se[f]===Se.MouseUp&&(y="TouchEnd"):je.Pen}else yo(p)&&(m=je.Touch);m!==null?(c=m,(y.startsWith("Touch")&&m===je.Touch||y.startsWith("Mouse")&&m===je.Mouse)&&(m=null)):Se[f]===Se.Click&&(m=c,c=null);var d=yo(p)?p.changedTouches[0]:p;if(d){var g=t.getId(v),_=d.clientX,w=d.clientY;W(n)(q({type:Se[y],id:g,x:_,y:w},m!==null&&{pointerType:m}))}}}};return Object.keys(Se).filter(function(f){return Number.isNaN(Number(f))&&!f.endsWith("_Departed")&&a[f]!==!1}).forEach(function(f){var p=pt(f),v=l(f);if(window.PointerEvent)switch(Se[f]){case Se.MouseDown:case Se.MouseUp:p=p.replace("mouse","pointer");break;case Se.TouchStart:case Se.TouchEnd:return}u.push(_e(p,v,i))}),W(function(){u.forEach(function(f){return f()})})}function Gu(e){var n=e.scrollCb,i=e.doc,t=e.mirror,r=e.blockClass,o=e.blockSelector,s=e.sampling,a=W(wr(W(function(u){var c=Cr(u);if(!(!c||be(c,r,o,!0))){var l=t.getId(c);if(c===i&&i.defaultView){var f=ku(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 _e("scroll",a,i)}function mv(e,n){var i=e.viewportResizeCb,t=n.win,r=-1,o=-1,s=W(wr(W(function(){var a=Ru(),u=Au();(r!==a||o!==u)&&(i({width:Number(u),height:Number(a)}),r=a,o=u)}),200));return _e("resize",s,t)}var gv=["INPUT","TEXTAREA","SELECT"],ju=new WeakMap;function yv(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=Cr(S),O=S.isTrusted,R=C&&C.tagName;if(C&&R==="OPTION"&&(C=U.parentElement(C)),!(!C||!R||gv.indexOf(R)<0||be(C,r,o,!0))&&!(C.classList.contains(s)||a&&C.matches(a))){var k=C.value,N=!1,G=si(C)||"";G==="radio"||G==="checkbox"?N=C.checked:(u[R.toLowerCase()]||u[G])&&(k=oi({element:C,maskInputOptions:u,tagName:R,type:G,value:k,maskInputFn:c})),v(C,f?{text:k,isChecked:N,userTriggered:O}:{text:k,isChecked:N});var M=C.name;G==="radio"&&M&&N&&i.querySelectorAll('input[type="radio"][name="'+M+'"]').forEach(function(D){if(D!==C){var H=D.value;v(D,f?{text:H,isChecked:!N,userTriggered:!1}:{text:H,isChecked:!N})}})}}function v(S,C){var O=ju.get(S);if(!O||O.text!==C.text||O.isChecked!==C.isChecked){ju.set(S,C);var R=t.getId(S);W(n)(q({},C,{id:R}))}}var m=l.input==="last"?["change"]:["input","change"],y=m.map(function(S){return _e(S,W(p),i)}),d=i.defaultView;if(!d)return function(){y.forEach(function(S){return S()})};var g=d.Object.getOwnPropertyDescriptor(d.HTMLInputElement.prototype,"value"),_=[[d.HTMLInputElement.prototype,"value"],[d.HTMLInputElement.prototype,"checked"],[d.HTMLSelectElement.prototype,"value"],[d.HTMLTextAreaElement.prototype,"value"],[d.HTMLSelectElement.prototype,"selectedIndex"],[d.HTMLOptionElement.prototype,"selected"]];if(g&&g.set){var w;(w=y).push.apply(w,[].concat(_.map(function(S){return An(S[0],S[1],{set:function(){W(p)({target:this,isTrusted:!1})}},!1,d)})))}return W(function(){y.forEach(function(S){return S()})})}function Tn(e){var n=[];function i(t,r){if(Nn("CSSGroupingRule")&&$(t.parentRule,CSSGroupingRule)||Nn("CSSMediaRule")&&$(t.parentRule,CSSMediaRule)||Nn("CSSSupportsRule")&&$(t.parentRule,CSSSupportsRule)||Nn("CSSConditionRule")&&$(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 tt(e,n,i){var t,r;return e?(e.ownerNode?t=n.getId(e.ownerNode):r=i.getId(e),{styleId:r,id:t}):{}}function _v(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:W(function(p,v,m){var y=m[0],d=m[1],g=tt(v,t,r.styleMirror),_=g.id,w=g.styleId;return(_&&_!==-1||w&&w!==-1)&&i({id:_,styleId:w,adds:[{rule:y,index:d}]}),p.apply(v,m)})}),o.CSSStyleSheet.prototype.addRule=function(p,v,m){m===void 0&&(m=this.cssRules.length);var y=p+" { "+v+" }";return o.CSSStyleSheet.prototype.insertRule.apply(this,[y,m])};var a=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:W(function(p,v,m){var y=m[0],d=tt(v,t,r.styleMirror),g=d.id,_=d.styleId;return(g&&g!==-1||_&&_!==-1)&&i({id:g,styleId:_,removes:[{index:y}]}),p.apply(v,m)})}),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:W(function(p,v,m){var y=m[0],d=tt(v,t,r.styleMirror),g=d.id,_=d.styleId;return(g&&g!==-1||_&&_!==-1)&&i({id:g,styleId:_,replace:y}),p.apply(v,m)})}));var c;o.CSSStyleSheet.prototype.replaceSync&&(c=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:W(function(p,v,m){var y=m[0],d=tt(v,t,r.styleMirror),g=d.id,_=d.styleId;return(g&&g!==-1||_&&_!==-1)&&i({id:g,styleId:_,replaceSync:y}),p.apply(v,m)})}));var l={};Pn("CSSGroupingRule")?l.CSSGroupingRule=o.CSSGroupingRule:(Pn("CSSMediaRule")&&(l.CSSMediaRule=o.CSSMediaRule),Pn("CSSConditionRule")&&(l.CSSConditionRule=o.CSSConditionRule),Pn("CSSSupportsRule")&&(l.CSSSupportsRule=o.CSSSupportsRule));var f={};return Object.entries(l).forEach(function(p){var v=p[0],m=p[1];f[v]={insertRule:m.prototype.insertRule,deleteRule:m.prototype.deleteRule},m.prototype.insertRule=new Proxy(f[v].insertRule,{apply:W(function(y,d,g){var _=g[0],w=g[1],S=tt(d.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(Tn(d),[w||0])}]}),y.apply(d,g)})}),m.prototype.deleteRule=new Proxy(f[v].deleteRule,{apply:W(function(y,d,g){var _=g[0],w=tt(d.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(Tn(d),[_])}]}),y.apply(d,g)})})}),W(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 v=p[0],m=p[1];m.prototype.insertRule=f[v].insertRule,m.prototype.deleteRule=f[v].deleteRule})})}function Vu(e,n){var i=e.mirror,t=e.stylesheetManager,r,o,s,a=null;n.nodeName==="#document"?a=i.getId(n):a=i.getId(U.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,v=(p=c.set)==null?void 0:p.call(this,f);if(a!==null&&a!==-1)try{t.adoptStyleSheets(f,a)}catch(m){}return v}}),W(function(){Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}))}function bv(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:W(function(c,l,f){var p,v=f[0],m=f[1],y=f[2];if(r.has(v))return a.apply(l,[v,m,y]);var d=tt((p=l.parentRule)==null?void 0:p.parentStyleSheet,t,o.styleMirror),g=d.id,_=d.styleId;return(g&&g!==-1||_&&_!==-1)&&i({id:g,styleId:_,set:{property:v,value:m,priority:y},index:Tn(l.parentRule)}),c.apply(l,f)})});var u=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:W(function(c,l,f){var p,v=f[0];if(r.has(v))return u.apply(l,[v]);var m=tt((p=l.parentRule)==null?void 0:p.parentStyleSheet,t,o.styleMirror),y=m.id,d=m.styleId;return(y&&y!==-1||d&&d!==-1)&&i({id:y,styleId:d,remove:{property:v},index:Tn(l.parentRule)}),c.apply(l,f)})}),W(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=u})}function wv(e){var n=e.mediaInteractionCb,i=e.blockClass,t=e.blockSelector,r=e.mirror,o=e.sampling,s=e.doc,a=W(function(c){return wr(W(function(l){var f=Cr(l);if(!(!f||be(f,i,t,!0))){var p=f.currentTime,v=f.volume,m=f.muted,y=f.playbackRate,d=f.loop;n({type:c,id:r.getId(f),currentTime:p,volume:v,muted:m,playbackRate:y,loop:d})}}),o.media||500)}),u=[_e("play",a(Bt.Play),s),_e("pause",a(Bt.Pause),s),_e("seeked",a(Bt.Seeked),s),_e("volumechange",a(Bt.VolumeChange),s),_e("ratechange",a(Bt.RateChange),s)];return W(function(){u.forEach(function(c){return c()})})}function Sv(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=Ft(i.fonts,"add",function(u){return function(c){return setTimeout(W(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),W(function(){r.forEach(function(u){return u()})})}function Cv(e){var n=e.doc,i=e.mirror,t=e.blockClass,r=e.blockSelector,o=e.selectionCb,s=!0,a=W(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),v=p.startContainer,m=p.startOffset,y=p.endContainer,d=p.endOffset,g=be(v,t,r,!0)||be(y,t,r,!0);g||c.push({start:i.getId(v),startOffset:m,end:i.getId(y),endOffset:d})}o({ranges:c})}});return a(),_e("selectionchange",a)}function Iv(e){var n=e.doc,i=e.customElementCb,t=n.defaultView;if(!t||!t.customElements)return function(){};var r=Ft(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 Ev(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,v=e.selectionCb,m=e.customElementCb;e.mutationCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.mutation){var _;(_=n).mutation.apply(_,[].concat(d))}i.apply(void 0,[].concat(d))},e.mousemoveCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.mousemove){var _;(_=n).mousemove.apply(_,[].concat(d))}t.apply(void 0,[].concat(d))},e.mouseInteractionCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.mouseInteraction){var _;(_=n).mouseInteraction.apply(_,[].concat(d))}r.apply(void 0,[].concat(d))},e.scrollCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.scroll){var _;(_=n).scroll.apply(_,[].concat(d))}o.apply(void 0,[].concat(d))},e.viewportResizeCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.viewportResize){var _;(_=n).viewportResize.apply(_,[].concat(d))}s.apply(void 0,[].concat(d))},e.inputCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.input){var _;(_=n).input.apply(_,[].concat(d))}a.apply(void 0,[].concat(d))},e.mediaInteractionCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.mediaInteaction){var _;(_=n).mediaInteaction.apply(_,[].concat(d))}u.apply(void 0,[].concat(d))},e.styleSheetRuleCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.styleSheetRule){var _;(_=n).styleSheetRule.apply(_,[].concat(d))}c.apply(void 0,[].concat(d))},e.styleDeclarationCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.styleDeclaration){var _;(_=n).styleDeclaration.apply(_,[].concat(d))}l.apply(void 0,[].concat(d))},e.canvasMutationCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.canvasMutation){var _;(_=n).canvasMutation.apply(_,[].concat(d))}f.apply(void 0,[].concat(d))},e.fontCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.font){var _;(_=n).font.apply(_,[].concat(d))}p.apply(void 0,[].concat(d))},e.selectionCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.selection){var _;(_=n).selection.apply(_,[].concat(d))}v.apply(void 0,[].concat(d))},e.customElementCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.customElement){var _;(_=n).customElement.apply(_,[].concat(d))}m.apply(void 0,[].concat(d))}}function xv(e,n){n===void 0&&(n={});var i=e.doc.defaultView;if(!i)return function(){};Ev(e,n);var t;e.recordDOM&&(t=qu(e,e.doc));var r=dv(e),o=vv(e),s=Gu(e),a=mv(e,{win:i}),u=yv(e),c=wv(e),l=function(){},f=function(){},p=function(){},v=function(){};e.recordDOM&&(l=_v(e,{win:i}),f=Vu(e,e.doc),p=bv(e,{win:i}),e.collectFonts&&(v=Sv(e)));for(var m=Cv(e),y=Iv(e),d=[],g=x(e.plugins),_;!(_=g()).done;){var w=_.value;d.push(w.observer(w.callback,i,w.options))}return W(function(){mt.forEach(function(S){return S.reset()}),t==null||t.disconnect(),r(),o(),s(),a(),u(),c(),l(),f(),p(),v(),m(),y(),d.forEach(function(S){return S()})})}function Nn(e){return typeof window[e]!="undefined"}function Pn(e){return!!(typeof window[e]!="undefined"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var Yu=function(){function e(i){I(this,"iframeIdToRemoteIdMap",new WeakMap),I(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}(),Ov=function(){function e(i){I(this,"iframes",new WeakMap),I(this,"crossOriginIframeMap",new WeakMap),I(this,"crossOriginIframeMirror",new Yu(Cs)),I(this,"crossOriginIframeStyleMirror"),I(this,"crossOriginIframeRootIdMap",new WeakMap),I(this,"mirror"),I(this,"mutationCb"),I(this,"wrappedEmit"),I(this,"loadListener"),I(this,"stylesheetManager"),I(this,"recordCrossOriginIframes"),this.mutationCb=i.mutationCb,this.wrappedEmit=i.wrappedEmit,this.stylesheetManager=i.stylesheetManager,this.recordCrossOriginIframes=i.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Yu(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 B.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:B.IncrementalSnapshot,data:{source:T.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case B.Meta:case B.Load:case B.DomContentLoaded:return!1;case B.Plugin:return r;case B.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case B.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=x(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!==Du.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(function(s){o.patchRootIdOnNode(s,r)})},e}(),kv=function(){function e(i){I(this,"shadowDoms",new WeakSet),I(this,"mutationCb"),I(this,"scrollCb"),I(this,"bypassOptions"),I(this,"mirror"),I(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(or(t)&&!this.shadowDoms.has(t)){this.shadowDoms.add(t);var s=qu(q({},this.bypassOptions,{doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t);this.restoreHandlers.push(function(){return s.disconnect()}),this.restoreHandlers.push(Gu(q({},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(U.host(t))),o.restoreHandlers.push(Vu({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(Ft(t.prototype,"attachShadow",function(s){return function(a){var u=s.call(this,a),c=U.shadowRoot(this);return c&&Lu(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}(),zt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Rv=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),$n=0;$n<zt.length;$n++)Rv[zt.charCodeAt($n)]=$n;var Av=function(n){var i=new Uint8Array(n),t,r=i.length,o="";for(t=0;t<r;t+=3)o+=zt[i[t]>>2],o+=zt[(i[t]&3)<<4|i[t+1]>>4],o+=zt[(i[t+1]&15)<<2|i[t+2]>>6],o+=zt[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},Hu=new Map;function Mv(e,n){var i=Hu.get(e);return i||(i=new Map,Hu.set(e,i)),i.has(n)||i.set(n,[]),i.get(n)}var Ku=function(e,n,i){if(!(!e||!(Zu(e,n)||(typeof e=="undefined"?"undefined":F(e))==="object"))){var t=e.constructor.name,r=Mv(i,t),o=r.indexOf(e);return o===-1&&(o=r.length,r.push(e)),o}};function Ln(e,n,i){if($(e,Array))return e.map(function(m){return Ln(m,n,i)});if(e===null)return e;if($(e,Float32Array)||$(e,Float64Array)||$(e,Int32Array)||$(e,Uint32Array)||$(e,Uint8Array)||$(e,Uint16Array)||$(e,Int16Array)||$(e,Int8Array)||$(e,Uint8ClampedArray)){var t=e.constructor.name;return{rr_type:t,args:[Object.values(e)]}}else if($(e,ArrayBuffer)){var r=e.constructor.name,o=Av(e);return{rr_type:r,base64:o}}else if($(e,DataView)){var s=e.constructor.name;return{rr_type:s,args:[Ln(e.buffer,n,i),e.byteOffset,e.byteLength]}}else if($(e,HTMLImageElement)){var a=e.constructor.name,u=e.src;return{rr_type:a,src:u}}else if($(e,HTMLCanvasElement)){var c="HTMLImageElement",l=e.toDataURL();return{rr_type:c,src:l}}else if($(e,ImageData)){var f=e.constructor.name;return{rr_type:f,args:[Ln(e.data,n,i),e.width,e.height]}}else if(Zu(e,n)||(typeof e=="undefined"?"undefined":F(e))==="object"){var p=e.constructor.name,v=Ku(e,n,i);return{rr_type:p,index:v}}return e}var Ju=function(e,n,i){return e.map(function(t){return Ln(t,n,i)})},Zu=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 $(e,n[r])})};function Tv(e,n,i,t){for(var r=function(){var c=u.value;try{if(typeof n.CanvasRenderingContext2D.prototype[c]!="function")return"continue";var l=Ft(n.CanvasRenderingContext2D.prototype,c,function(p){return function(){for(var v=this,m=arguments.length,y=new Array(m),d=0;d<m;d++)y[d]=arguments[d];return be(this.canvas,i,t,!0)||setTimeout(function(){var g=Ju(y,n,v);e(v.canvas,{type:Ut["2D"],property:c,args:g})},0),p.apply(this,y)}});o.push(l)}catch(p){var f=An(n.CanvasRenderingContext2D.prototype,c,{set:function(m){e(this.canvas,{type:Ut["2D"],property:c,args:[m],setter:!0})}});o.push(f)}},o=[],s=Object.getOwnPropertyNames(n.CanvasRenderingContext2D.prototype),a=x(s),u;!(u=a()).done;)r();return function(){o.forEach(function(c){return c()})}}function Nv(e){return e==="experimental-webgl"?"webgl":e}function Xu(e,n,i,t){var r=[];try{var o=Ft(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(!be(this,n,i,!0)){var f=Nv(a);if("__context"in this||(this.__context=f),t&&["webgl","webgl2"].includes(f))if(c[0]&&F(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 Qu(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=Ft(e,f,function(m){return function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];var _=m.apply(this,d);if(Ku(_,o,this),"tagName"in this.canvas&&!be(this.canvas,t,r,!0)){var w=Ju(d,o,this),S={type:n,property:f,args:w};i(this.canvas,S)}return _}});a.push(p)}catch(m){var v=An(e,f,{set:function(d){i(this.canvas,{type:n,property:f,args:[d],setter:!0})}});a.push(v)}},a=[],u=Object.getOwnPropertyNames(e),c=x(u),l;!(l=c()).done;)s();return a}function Pv(e,n,i,t){var r,o=[];if((r=o).push.apply(r,[].concat(Qu(n.WebGLRenderingContext.prototype,Ut.WebGL,e,i,t,n))),typeof n.WebGL2RenderingContext!="undefined"){var s;(s=o).push.apply(s,[].concat(Qu(n.WebGL2RenderingContext.prototype,Ut.WebGL2,e,i,t,n)))}return function(){o.forEach(function(a){return a()})}}var ec="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",$v=function(e){return Uint8Array.from(atob(e),function(n){return n.charCodeAt(0)})},tc=typeof window!="undefined"&&window.Blob&&new Blob([$v(ec)],{type:"text/javascript;charset=utf-8"});function Lv(e){var n;try{if(n=tc&&(window.URL||window.webkitURL).createObjectURL(tc),!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,"+ec,{name:e==null?void 0:e.name})}finally{n&&(window.URL||window.webkitURL).revokeObjectURL(n)}}var Dv=function(){function e(i){var t=this;I(this,"pendingCanvasMutations",new Map),I(this,"rafStamps",{latestId:0,invokeId:null}),I(this,"mirror"),I(this,"mutationCb"),I(this,"resetObservers"),I(this,"frozen",!1),I(this,"locked",!1),I(this,"processMutation",function(f,p){var v=t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId;(v||!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=Xu(r,o,s,!0),l=new Map,f=new Lv;f.onmessage=function(g){var _=g.data.id;if(l.set(_,!1),"base64"in g.data){var w=g.data,S=w.base64,C=w.type,O=w.width,R=w.height;u.mutationCb({id:_,type:Ut["2D"],commands:[{property:"clearRect",args:[0,0,O,R]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:S}],type:C}]},0,0]}]})}};var p=1e3/t,v=0,m,y=function(){var g=[];return r.document.querySelectorAll("canvas").forEach(function(_){be(_,o,s,!0)||g.push(_)}),g},d=function(g){if(v&&g-v<p){m=requestAnimationFrame(d);return}v=g;var _=u;y().forEach(Qn(function(w){var S,C,O,R;return nr(this,function(k){switch(k.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 R=k.sent(),f.postMessage({id:C,bitmap:R,width:w.width,height:w.height,dataURLOptions:a.dataURLOptions},[R]),[2]}})})),m=requestAnimationFrame(d)};m=requestAnimationFrame(d),this.resetObservers=function(){c(),cancelAnimationFrame(m)}},n.initCanvasMutationObserver=function(t,r,o){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var s=Xu(t,r,o,!1),a=Tv(this.processMutation.bind(this),t,r,o),u=Pv(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=tr(u,["type"]);return c}),a=o[0].type;this.mutationCb({id:r,type:a,commands:s}),this.pendingCanvasMutations.delete(t)}}},e}(),Fv=function(){function e(i){I(this,"trackedLinkElements",new WeakSet),I(this,"mutationCb"),I(this,"adoptedStyleSheetCb"),I(this,"styleMirror",new ov),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(v,m){return{rule:_s(v,f.href),index:m}})})),a.styleIds.push(p)};if(t.length!==0){for(var a={id:r,styleIds:[]},u=[],c=x(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}(),Uv=function(){function e(){I(this,"nodeMap",new WeakMap),I(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}(),ae,Dn,wo,Fn=!1;try{if(Array.from([1],function(e){return e*2})[0]!==2){var So=document.createElement("iframe");document.body.appendChild(So),Array.from=((ps=So.contentWindow)==null?void 0:ps.Array.from)||Array.from,document.body.removeChild(So)}}catch(e){console.debug("Unable to override Array.from",e)}var Ne=Ll();function rt(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,v=p===void 0?"rr-mask":p,m=e.maskTextSelector,y=m===void 0?null:m,d=e.inlineStylesheet,g=d===void 0?!0:d,_=e.maskAllInputs,w=e.maskInputOptions,S=e.slimDOMOptions,C=e.maskInputFn,O=e.maskTextFn,R=e.hooks,k=e.packFn,N=e.sampling,G=N===void 0?{}:N,M=e.dataURLOptions,D=M===void 0?{}:M,H=e.mousemoveWait,Ie=e.recordDOM,K=Ie===void 0?!0:Ie,Oe=e.recordCanvas,we=Oe===void 0?!1:Oe,oe=e.recordCrossOriginIframes,ve=oe===void 0?!1:oe,ke=e.recordAfter,_t=ke===void 0?e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load":ke,We=e.userTriggeredOnInput,Zt=We===void 0?!1:We,Re=e.collectFonts,bt=Re===void 0?!1:Re,V=e.inlineImages,wt=V===void 0?!1:V,St=e.plugins,Xt=e.keepIframeSrcFn,Nr=Xt===void 0?function(){return!1}:Xt,Pr=e.ignoreCSSAttributes,os=Pr===void 0?new Set([]):Pr,Zn=e.errorHandler;hv(Zn);var ht=ve?window.parent===window:!0,Ct=!1;if(!ht)try{window.parent.document&&(Ct=!1)}catch(X){Ct=!0}if(ht&&!n)throw new Error("emit function is required");if(!ht&&!Ct)return function(){};H!==void 0&&G.mousemove===void 0&&(G.mousemove=H),Ne.reset();var Qt=_===!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}:w!==void 0?w:{password:!0},$r=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||{};iv();var er,It=0,Je=function(X){for(var Te=x(St||[]),A;!(A=Te()).done;){var se=A.value;se.eventProcessor&&(X=se.eventProcessor(X))}return k&&!Ct&&(X=k(X)),X};ae=function(X,Te){var A,se=X;if(se.timestamp=Mn(),(A=mt[0])!=null&&A.isFrozen()&&se.type!==B.FullSnapshot&&!(se.type===B.IncrementalSnapshot&&se.data.source===T.Mutation)&&mt.forEach(function(Vm){return Vm.unfreeze()}),ht)n==null||n(Je(se),Te);else if(Ct){var qm={type:"rrweb",event:Je(se),origin:window.location.origin,isCheckout:Te};window.parent.postMessage(qm,"*")}if(se.type===B.FullSnapshot)er=se,It=0;else if(se.type===B.IncrementalSnapshot){if(se.data.source===T.Mutation&&se.data.isAttachIframe)return;It++;var Gm=t&&It>=t,jm=i&&se.timestamp-er.timestamp>i;(Gm||jm)&&Dn(!0)}};for(var Et=function(X){ae({type:B.IncrementalSnapshot,data:q({source:T.Mutation},X)})},sl=function(X){return ae({type:B.IncrementalSnapshot,data:q({source:T.Scroll},X)})},al=function(X){return ae({type:B.IncrementalSnapshot,data:q({source:T.CanvasMutation},X)})},zm=function(X){return ae({type:B.IncrementalSnapshot,data:q({source:T.AdoptedStyleSheet},X)})},xt=new Fv({mutationCb:Et,adoptedStyleSheetCb:zm}),Ot=new Ov({mirror:Ne,mutationCb:Et,stylesheetManager:xt,recordCrossOriginIframes:ve,wrappedEmit:ae}),Wm=x(St||[]),ul;!(ul=Wm()).done;){var cl=ul.value;cl.getMirror&&cl.getMirror({nodeMirror:Ne,crossOriginIframeMirror:Ot.crossOriginIframeMirror,crossOriginIframeStyleMirror:Ot.crossOriginIframeStyleMirror})}var ss=new Uv;wo=new Dv({recordCanvas:we,mutationCb:al,win:window,blockClass:o,blockSelector:a,mirror:Ne,sampling:G.canvas,dataURLOptions:D});var Xn=new kv({mutationCb:Et,scrollCb:sl,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:v,maskTextSelector:y,inlineStylesheet:g,maskInputOptions:Qt,dataURLOptions:D,maskTextFn:O,maskInputFn:C,recordCanvas:we,inlineImages:wt,sampling:G,slimDOMOptions:$r,iframeManager:Ot,stylesheetManager:xt,canvasManager:wo,keepIframeSrcFn:Nr,processedNodeManager:ss},mirror:Ne});Dn=function(X){if(X===void 0&&(X=!1),!!K){ae({type:B.Meta,data:{href:window.location.href,width:Au(),height:Ru()}},X),xt.reset(),Xn.init(),mt.forEach(function(A){return A.lock()});var Te=af(document,{mirror:Ne,blockClass:o,blockSelector:a,maskTextClass:v,maskTextSelector:y,inlineStylesheet:g,maskAllInputs:Qt,maskTextFn:O,maskInputFn:C,slimDOM:$r,dataURLOptions:D,recordCanvas:we,inlineImages:wt,onSerialize:function(A){Nu(A,Ne)&&Ot.addIframe(A),Pu(A,Ne)&&xt.trackLinkElement(A),_o(A)&&Xn.addShadowRoot(U.shadowRoot(A),document)},onIframeLoad:function(A,se){Ot.attachIframe(A,se),Xn.observeAttachShadow(A)},onStylesheetLoad:function(A,se){xt.attachLinkElement(A,se)},keepIframeSrcFn:Nr});if(!Te)return console.warn("Failed to snapshot the document");ae({type:B.FullSnapshot,data:{node:Te,initialOffset:ku(window)}},X),mt.forEach(function(A){return A.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&xt.adoptStyleSheets(document.adoptedStyleSheets,Ne.getId(document))}};try{var Lr=[],ll=function(X){var Te;return W(xv)({mutationCb:Et,mousemoveCb:function(A,se){return ae({type:B.IncrementalSnapshot,data:{source:se,positions:A}})},mouseInteractionCb:function(A){return ae({type:B.IncrementalSnapshot,data:q({source:T.MouseInteraction},A)})},scrollCb:sl,viewportResizeCb:function(A){return ae({type:B.IncrementalSnapshot,data:q({source:T.ViewportResize},A)})},inputCb:function(A){return ae({type:B.IncrementalSnapshot,data:q({source:T.Input},A)})},mediaInteractionCb:function(A){return ae({type:B.IncrementalSnapshot,data:q({source:T.MediaInteraction},A)})},styleSheetRuleCb:function(A){return ae({type:B.IncrementalSnapshot,data:q({source:T.StyleSheetRule},A)})},styleDeclarationCb:function(A){return ae({type:B.IncrementalSnapshot,data:q({source:T.StyleDeclaration},A)})},canvasMutationCb:al,fontCb:function(A){return ae({type:B.IncrementalSnapshot,data:q({source:T.Font},A)})},selectionCb:function(A){ae({type:B.IncrementalSnapshot,data:q({source:T.Selection},A)})},customElementCb:function(A){ae({type:B.IncrementalSnapshot,data:q({source:T.CustomElement},A)})},blockClass:o,ignoreClass:c,ignoreSelector:f,maskTextClass:v,maskTextSelector:y,maskInputOptions:Qt,inlineStylesheet:g,sampling:G,recordDOM:K,recordCanvas:we,inlineImages:wt,userTriggeredOnInput:Zt,collectFonts:bt,doc:X,maskInputFn:C,maskTextFn:O,keepIframeSrcFn:Nr,blockSelector:a,slimDOMOptions:$r,dataURLOptions:D,mirror:Ne,iframeManager:Ot,stylesheetManager:xt,shadowDomManager:Xn,processedNodeManager:ss,canvasManager:wo,ignoreCSSAttributes:os,plugins:((Te=St==null?void 0:St.filter(function(A){return A.observer}))==null?void 0:Te.map(function(A){return{observer:A.observer,options:A.options,callback:function(se){return ae({type:B.Plugin,data:{plugin:A.name,payload:se}})}}}))||[]},R)};Ot.addLoadListener(function(X){try{Lr.push(ll(X.contentDocument))}catch(Te){console.warn(Te)}});var as=function(){Dn(),Lr.push(ll(document)),Fn=!0};return document.readyState==="interactive"||document.readyState==="complete"?as():(Lr.push(_e("DOMContentLoaded",function(){ae({type:B.DomContentLoaded,data:{}}),_t==="DOMContentLoaded"&&as()})),Lr.push(_e("load",function(){ae({type:B.Load,data:{}}),_t==="load"&&as()},window))),function(){Lr.forEach(function(X){return X()}),ss.destroy(),Fn=!1,pv()}}catch(X){console.warn(X)}}rt.addCustomEvent=function(e,n){if(!Fn)throw new Error("please add custom event after start recording");ae({type:B.Custom,data:{tag:e,payload:n}})},rt.freezePage=function(){mt.forEach(function(e){return e.freeze()})},rt.takeFullSnapshot=function(e){if(!Fn)throw new Error("please take full snapshot after start recording");Dn(e)},rt.mirror=Ne;var rc;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(rc||(rc={})),rt.addCustomEvent,rt.freezePage,rt.takeFullSnapshot;var nc=E.setImmediate,nt,Co,Io,ic=Object.prototype.toString,Bv=typeof nc!="undefined"?function(n){return nc(n)}:setTimeout;try{Object.defineProperty({},"x",{}),nt=function(n,i,t,r){return Object.defineProperty(n,i,{value:t,writable:!0,configurable:r!==!1})}}catch(e){nt=function(i,t,r){return i[t]=r,i}}Io=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=Co=void 0;s;)s.fn.call(s.self),s=s.next}}}();function Un(e,n){Io.add(e,n),Co||(Co=Bv(Io.drain))}function oc(e){var n,i=typeof e;return e!==null&&(i==="object"||i==="function")&&(n=e.then),typeof n=="function"?n:!1}function Eo(){for(var e=0;e<this.chain.length;e++)zv(this,this.state===1?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function zv(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=oc(t))?r.call(t,i.resolve,i.reject):i.resolve(t))}catch(o){i.reject(o)}}function sc(e){var n,i=this;if(!i.triggered){i.triggered=!0,i.def&&(i=i.def);try{(n=oc(e))?Un(function(){var t=new uc(i);try{n.call(e,function(){sc.apply(t,arguments)},function(){Ir.apply(t,arguments)})}catch(r){Ir.call(t,r)}}):(i.msg=e,i.state=1,i.chain.length>0&&Un(Eo,i))}catch(t){Ir.call(new uc(i),t)}}}function Ir(e){var n=this;n.triggered||(n.triggered=!0,n.def&&(n=n.def),n.msg=e,n.state=2,n.chain.length>0&&Un(Eo,n))}function ac(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 uc(e){this.def=e,this.triggered=!1}function Wv(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function it(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 Wv(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&&Un(Eo,n),o.promise},this.catch=function(t){return this.then(void 0,t)};try{e.call(void 0,function(t){sc.call(n,t)},function(t){Ir.call(n,t)})}catch(i){Ir.call(n,i)}}var cc=nt({},"constructor",it,!1);it.prototype=cc,nt(cc,"__NPO__",0,!1),nt(it,"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)})}),nt(it,"reject",function(n){return new this(function(t,r){if(typeof t!="function"||typeof r!="function")throw TypeError("Not a function");r(n)})}),nt(it,"all",function(n){var i=this;return ic.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;ac(i,n,function(l,f){a[l]=f,++u===s&&r(a)},o)})}),nt(it,"race",function(n){var i=this;return ic.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");ac(i,n,function(a,u){r(u)},o)})});var j;typeof Promise!="undefined"&&Promise.toString().indexOf("[native code]")!==-1?j=Promise:j=it;var Pe={DEBUG:!1,LIB_VERSION:"2.63.0"},Er=24*60*60*1e3,xo=8*1e3,Bn=Array.prototype,qv=Function.prototype,lc=Object.prototype,ot=Bn.slice,xr=lc.toString,zn=lc.hasOwnProperty,fe=E.console,st=E.navigator,Y=E.document,Wn=E.opera,fc=E.screen,Ve=st.userAgent,Oo=qv.bind,hc=Bn.forEach,pc=Bn.indexOf,dc=Bn.map,Gv=Array.isArray,ko={},h={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},z={log:function(){if(Pe.DEBUG&&!h.isUndefined(fe)&&fe)try{fe.log.apply(fe,arguments)}catch(e){h.each(arguments,function(n){fe.log(n)})}},warn:function(){if(Pe.DEBUG&&!h.isUndefined(fe)&&fe){var e=["Mixpanel warning:"].concat(h.toArray(arguments));try{fe.warn.apply(fe,e)}catch(n){h.each(e,function(i){fe.warn(i)})}}},error:function(){if(Pe.DEBUG&&!h.isUndefined(fe)&&fe){var e=["Mixpanel error:"].concat(h.toArray(arguments));try{fe.error.apply(fe,e)}catch(n){h.each(e,function(i){fe.error(i)})}}},critical:function(){if(!h.isUndefined(fe)&&fe){var e=["Mixpanel error:"].concat(h.toArray(arguments));try{fe.error.apply(fe,e)}catch(n){h.each(e,function(i){fe.error(i)})}}}},Ro=function(e,n){return function(){return arguments[0]="["+n+"] "+arguments[0],e.apply(z,arguments)}},Wt=function(e){return{log:Ro(z.log,e),error:Ro(z.error,e),critical:Ro(z.critical,e)}},Ao=function(e){return function(){try{return e.apply(this,arguments)}catch(n){z.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),Pe.DEBUG&&z.critical(n)}}},jv=function(e){var n=e.prototype;for(var i in n)typeof n[i]=="function"&&(n[i]=Ao(n[i]))};h.bind=function(e,n){var i,t;if(Oo&&e.bind===Oo)return Oo.apply(e,ot.call(arguments,1));if(!h.isFunction(e))throw new TypeError;return i=ot.call(arguments,2),t=function(){if(!(this instanceof t))return e.apply(n,i.concat(ot.call(arguments)));var r={};r.prototype=e.prototype;var o=new r;r.prototype=null;var s=e.apply(o,i.concat(ot.call(arguments)));return Object(s)===s?s:o},t},h.each=function(e,n,i){if(e!=null){if(hc&&e.forEach===hc)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)===ko)return}else for(var o in e)if(zn.call(e,o)&&n.call(i,e[o],o,e)===ko)return}},h.extend=function(e){return h.each(ot.call(arguments,1),function(n){for(var i in n)n[i]!==void 0&&(e[i]=n[i])}),e},h.isArray=Gv||function(e){return xr.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&&zn.call(e,"callee"))},h.toArray=function(e){return e?e.toArray?e.toArray():h.isArray(e)||h.isArguments(e)?ot.call(e):h.values(e):[]},h.map=function(e,n,i){if(dc&&e.map===dc)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:pc&&e.indexOf===pc?e.indexOf(n)!=-1:(h.each(e,function(t){if(i||(i=t===n))return ko}),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(zn.call(e,n))return!1;return!0}return!1},h.isUndefined=function(e){return e===void 0},h.isString=function(e){return xr.call(e)=="[object String]"},h.isDate=function(e){return xr.call(e)=="[object Date]"},h.isNumber=function(e){return xr.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,v=[],m=o[r];switch(m&&typeof m=="object"&&typeof m.toJSON=="function"&&(m=m.toJSON(r)),typeof m){case"string":return i(m);case"number":return isFinite(m)?String(m):"null";case"boolean":case"null":return String(m);case"object":if(!m)return"null";if(s+=a,v=[],xr.apply(m)==="[object Array]"){for(f=m.length,u=0;u<f;u+=1)v[u]=t(u,m)||"null";return l=v.length===0?"[]":s?"[\n"+s+v.join(",\n"+s)+"\n"+p+"]":"["+v.join(",")+"]",s=p,l}for(c in m)zn.call(m,c)&&(l=t(c,m),l&&v.push(i(c)+(s?": ":":")+l));return l=v.length===0?"{}":s?"{"+v.join(",")+p+"}":"{"+v.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(v){var m=new SyntaxError(v);throw m.at=e,m.text=t,m},o=function(v){return v&&v!==n&&r("Expected '"+v+"' instead of '"+n+"'"),n=t.charAt(e),e+=1,n},s=function(){var v,m="";for(n==="-"&&(m="-",o("-"));n>="0"&&n<="9";)m+=n,o();if(n===".")for(m+=".";o()&&n>="0"&&n<="9";)m+=n;if(n==="e"||n==="E")for(m+=n,o(),(n==="-"||n==="+")&&(m+=n,o());n>="0"&&n<="9";)m+=n,o();if(v=+m,!isFinite(v))r("Bad number");else return v},a=function(){var v,m,y="",d;if(n==='"')for(;o();){if(n==='"')return o(),y;if(n==="\\")if(o(),n==="u"){for(d=0,m=0;m<4&&(v=parseInt(o(),16),!!isFinite(v));m+=1)d=d*16+v;y+=String.fromCharCode(d)}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 v=[];if(n==="["){if(o("["),u(),n==="]")return o("]"),v;for(;n;){if(v.push(l()),u(),n==="]")return o("]"),v;o(","),u()}}r("Bad array")},p=function(){var v,m={};if(n==="{"){if(o("{"),u(),n==="}")return o("}"),m;for(;n;){if(v=a(),u(),o(":"),Object.hasOwnProperty.call(m,v)&&r('Duplicate key "'+v+'"'),m[v]=l(),u(),n==="}")return o("}"),m;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(v){var m;return t=v,e=0,n=" ",m=l(),u(),n&&r("Syntax error"),m}}(),h.base64Encode=function(e){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i,t,r,o,s,a,u,c,l=0,f=0,p="",v=[];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,v[f++]=n.charAt(o)+n.charAt(s)+n.charAt(a)+n.charAt(u);while(l<e.length);switch(p=v.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 E.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 vc=["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<vc.length;n++)if(e.indexOf(vc[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){z.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},h.cookie={get:function(e){for(var n=e+"=",i=Y.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=yc(Y.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"),Y.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=yc(Y.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 Y.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_"+No(8),t="xyz";e.setItem(i,t),e.getItem(i)!==t&&(n=!1),e.removeItem(i)}catch(r){n=!1}return n},Mo=null,Or=function(e,n){return Mo!==null&&!n?Mo:Mo=mc(e||E.localStorage)},To=null,Vv=function(e,n){return To!==null&&!n?To:To=mc(e||E.sessionStorage)};function gc(e,n,i){var t=function(r){z.error(n+" error: "+r)};return{is_supported:function(r){var o=i(e,r);return o||z.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=gc(E.localStorage,"localStorage",Or),h.sessionStorage=gc(E.sessionStorage,"sessionStorage",Vv),h.register_event=function(){var e=function(t,r,o,s,a){if(!t){z.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(E.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 Yv=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(!Y.getElementsByTagName)return[];var o=r.split(" "),s,a,u,c,l,f,p,v,m,y,d=[Y];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 g=a[1],_=Y.getElementById(g);if(!_||u&&_.nodeName.toLowerCase()!=u)return[];d=[_];continue}if(s.indexOf(".")>-1){a=s.split("."),u=a[0];var w=a[1];for(u||(u="*"),c=[],l=0,p=0;p<d.length;p++)for(u=="*"?m=e(d[p]):m=d[p].getElementsByTagName(u),v=0;v<m.length;v++)c[l++]=m[v];for(d=[],y=0,p=0;p<c.length;p++)c[p].className&&h.isString(c[p].className)&&i(c[p],w)&&(d[y++]=c[p]);continue}var S=s.match(Yv);if(S){u=S[1];var C=S[2],O=S[3],R=S[4];for(u||(u="*"),c=[],l=0,p=0;p<d.length;p++)for(u=="*"?m=e(d[p]):m=d[p].getElementsByTagName(u),v=0;v<m.length;v++)c[l++]=m[v];d=[],y=0;var k;switch(O){case"=":k=function(N){return N.getAttribute(C)==R};break;case"~":k=function(N){return N.getAttribute(C).match(new RegExp("\\b"+R+"\\b"))};break;case"|":k=function(N){return N.getAttribute(C).match(new RegExp("^"+R+"-?"))};break;case"^":k=function(N){return N.getAttribute(C).indexOf(R)===0};break;case"$":k=function(N){return N.getAttribute(C).lastIndexOf(R)==N.getAttribute(C).length-R.length};break;case"*":k=function(N){return N.getAttribute(C).indexOf(R)>-1};break;default:k=function(N){return N.getAttribute(C)}}for(d=[],y=0,p=0;p<c.length;p++)k(c[p])&&(d[y++]=c[p]);continue}for(u=s,c=[],l=0,p=0;p<d.length;p++)for(m=d[p].getElementsByTagName(u),v=0;v<m.length;v++)c[l++]=m[v];d=c}return d}return function(r){return h.isElement(r)?[r]:h.isObject(r)&&!h.isUndefined(r.length)?r:t.call(this,r)}}();var Hv=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],Kv=["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(Hv,function(t){n=h.getQueryParam(Y.URL,t),n.length?i[t]=n:e!==void 0&&(i[t]=e)}),i},clickParams:function(){var e="",n={};return h.each(Kv,function(i){e=h.getQueryParam(Y.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,"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+)?)/},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=Ve;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 E.location.href},properties:function(e){return typeof e!="object"&&(e={}),h.extend(h.strip_empty_properties({$os:h.info.os(),$browser:h.info.browser(Ve,st.vendor,Wn),$referrer:Y.referrer,$referring_domain:h.info.referringDomain(Y.referrer),$device:h.info.device(Ve)}),{$current_url:h.info.currentUrl(),$browser_version:h.info.browserVersion(Ve,st.vendor,Wn),$screen_height:fc.height,$screen_width:fc.width,mp_lib:"web",$lib_version:Pe.LIB_VERSION,$insert_id:No(),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(Ve,st.vendor,Wn)}),{$browser_version:h.info.browserVersion(Ve,st.vendor,Wn)})},mpPageViewProperties:function(){return h.strip_empty_properties({current_page_title:Y.title,current_domain:E.location.hostname,current_url_path:E.location.pathname,current_url_protocol:E.location.protocol,current_url_search:E.location.search})}};var Jv=function(e,n){var i=null,t=[];return function(r){var o=this;return t.push(r),i||(i=new j(function(s){setTimeout(function(){var a=e.apply(o,[t]);i=null,t=[],s(a)},n)})),i}},No=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},Zv=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Xv=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,yc=function(e){var n=Xv,i=e.split("."),t=i[i.length-1];(t.length>4||t==="com"||t==="org")&&(n=Zv);var r=e.match(n);return r?r[0]:""},Qv=function(){var e=E.navigator.onLine;return h.isUndefined(e)||e},at=function(){},qt=null,qn=null;typeof JSON!="undefined"&&(qt=JSON.stringify,qn=JSON.parse),qt=qt||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=it;var em="mixpanelBrowserDb",_c="mixpanelRecordingEvents",Po="mixpanelRecordingRegistry",tm=1,rm=[_c,Po],Fe=function(e){this.dbPromise=null,this.storeName=e};Fe.prototype._openDb=function(){return new j(function(e,n){var i=E.indexedDB.open(em,tm);i.onerror=function(){n(i.error)},i.onsuccess=function(){e(i.result)},i.onupgradeneeded=function(t){var r=t.target.result;rm.forEach(function(o){r.createObjectStore(o)})}})},Fe.prototype.init=function(){return E.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof E.IDBDatabase?j.resolve():j.reject(e)})):j.reject("indexedDB is not supported in this browser")},Fe.prototype.makeTransaction=function(e,n){var i=this.storeName,t=function(r){return new j(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)):j.reject(r)}.bind(this))},Fe.prototype.setItem=function(e,n){return this.makeTransaction("readwrite",function(i){i.put(n,e)})},Fe.prototype.getItem=function(e){var n;return this.makeTransaction("readonly",function(i){n=i.get(e)}).then(function(){return n.result})},Fe.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(n){n.delete(e)})},Fe.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(n){e=n.getAll()}).then(function(){return e.result})};var nm="__mp_opt_in_out_";function im(e,n){Sc(!0,e,n)}function om(e,n){Sc(!1,e,n)}function sm(e,n){return wc(e,n)==="1"}function bc(e,n){if(um(n))return z.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=wc(e,n)==="0";return i&&z.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),i}function ut(e){return Do(e,function(n){return this.get_config(n)})}function ct(e){return Do(e,function(n){return this._get_config(n)})}function Gt(e){return Do(e,function(n){return this._get_config(n)})}function am(e,n){n=n||{},$o(n).remove(Lo(e,n),!!n.crossSubdomainCookie,n.cookieDomain)}function $o(e){return e=e||{},e.persistenceType==="localStorage"?h.localStorage:h.cookie}function Lo(e,n){return n=n||{},(n.persistencePrefix||nm)+e}function wc(e,n){return $o(n).get(Lo(e,n))}function um(e){if(e&&e.ignoreDnt)return!1;var n=e&&e.window||E,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 Sc(e,n,i){if(!h.isString(n)||!n.length){z.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token");return}i=i||{},$o(i).set(Lo(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 Do(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=bc(t,{ignoreDnt:r,persistenceType:o,persistencePrefix:s,window:a}))}catch(c){z.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 cm=Wt("lock"),Cc=function(e,n){n=n||{},this.storageKey=e,this.storage=n.storage||E.localStorage,this.pollIntervalMS=n.pollIntervalMS||100,this.timeoutMS=n.timeoutMS||2e3,this.promiseImpl=n.promiseImpl||j};Cc.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",v=a+":Z",m=function(w){if(new Date().getTime()-s>c){cm.error("Timeout waiting for mutex on "+a+"; clearing lock. ["+o+"]"),l.removeItem(v),l.removeItem(p),g();return}setTimeout(function(){try{w()}catch(S){r(S)}},u*(Math.random()+.1))},y=function(w,S){w()?S():m(function(){y(w,S)})},d=function(){var w=l.getItem(p);return w&&w!==o?!1:(l.setItem(p,o),l.getItem(p)===o?!0:(Or(l,!0)||r(new Error("localStorage support dropped while acquiring lock")),!1))},g=function(){l.setItem(f,o),y(d,function(){if(l.getItem(f)===o){_();return}m(function(){if(l.getItem(p)!==o){g();return}y(function(){return!l.getItem(v)},_)})})},_=function(){l.setItem(v,"1");var w=function(){l.removeItem(v),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(Or(l,!0))g();else throw new Error("localStorage support check failed")}catch(w){r(w)}},this))};var kr=function(e){this.storage=e||E.localStorage};kr.prototype.init=function(){return j.resolve()},kr.prototype.setItem=function(e,n){return new j(h.bind(function(i,t){try{this.storage.setItem(e,qt(n))}catch(r){t(r)}i()},this))},kr.prototype.getItem=function(e){return new j(h.bind(function(n,i){var t;try{t=qn(this.storage.getItem(e))}catch(r){i(r)}n(t)},this))},kr.prototype.removeItem=function(e){return new j(h.bind(function(n,i){try{this.storage.removeItem(e)}catch(t){i(t)}n()},this))};var Ic=Wt("batch"),Ue=function(e,n){n=n||{},this.storageKey=e,this.usePersistence=n.usePersistence,this.usePersistence&&(this.queueStorage=n.queueStorage||new kr,this.lock=new Cc(e,{storage:n.sharedLockStorage||E.localStorage,timeoutMS:n.sharedLockTimeoutMS})),this.reportError=n.errorReporter||h.bind(Ic.error,Ic),this.pid=n.pid||null,this.memQueue=[],this.initialized=!1,n.enqueueThrottleMs?this.enqueuePersisted=Jv(h.bind(this._enqueuePersisted,this),n.enqueueThrottleMs):this.enqueuePersisted=h.bind(function(i){return this._enqueuePersisted([i])},this)};Ue.prototype.ensureInit=function(){return this.initialized?j.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))},Ue.prototype.enqueue=function(e,n){var i={id:No(),flushAfter:new Date().getTime()+n*2,payload:e};return this.usePersistence?this.enqueuePersisted(i):(this.memQueue.push(i),j.resolve(!0))},Ue.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))},Ue.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)):j.resolve(n)};var Ec=function(e,n){var i=[];return h.each(e,function(t){t.id&&!n[t.id]&&i.push(t)}),i};Ue.prototype.removeItemsByID=function(e){var n={};if(h.each(e,function(t){n[t]=!0}),this.memQueue=Ec(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=Ec(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),Or(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 j.resolve(!0)};var xc=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};Ue.prototype.updatePayloads=function(e){return this.memQueue=xc(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=xc(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)):j.resolve(!0)},Ue.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))},Ue.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))},Ue.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(h.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):j.resolve()};var lm=10*60*1e3,Rr=Wt("batch"),Me=function(e,n){this.errorReporter=n.errorReporter,this.queue=new Ue(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};Me.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},Me.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},Me.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},Me.prototype.clear=function(){return this.queue.clear()},Me.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},Me.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},Me.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(h.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},Me.prototype.sendRequestPromise=function(e,n){return new j(h.bind(function(i){this.sendRequest(e,n,i)},this))},Me.prototype.flush=function(e){if(this.requestInProgress)return Rr.log("Flush: Request already in progress"),j.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:Pe.LIB_VERSION}));var v=!0,m=f.id;m?(this.itemIdsSentSuccessfully[m]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:f,batchSize:r.length,timesSent:this.itemIdsSentSuccessfully[m]}),v=!1):this.reportError("[dupe] found item with no ID",{item:f}),v&&s.push(p)}a[f.id]=p},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),j.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 v=p.id;v?(this.itemIdsSentSuccessfully[v]=this.itemIdsSentSuccessfully[v]||0,this.itemIdsSentSuccessfully[v]++,this.itemIdsSentSuccessfully[v]>5&&this.reportError("[dupe] item ID sent too many times",{item:p,batchSize:r.length,timesSent:this.itemIdsSentSuccessfully[v]})):this.reportError("[dupe] found item with no ID while removing",{item:p})},this)),f?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!o?(this.resetFlush(),j.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),j.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&&!Qv()||f.error==="timeout")){var p=this.flushInterval*2;return f.retryAfter&&(p=parseInt(f.retryAfter,10)*1e3||p),p=Math.min(lm,p),this.reportError("Error; retry in "+p+" ms"),this.scheduleFlush(p),j.resolve()}else if(h.isObject(f)&&f.httpStatusCode===413)if(r.length>1){var v=Math.max(1,Math.floor(t/2));return this.batchSize=Math.min(this.batchSize,v,r.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),j.resolve()}else return this.reportError("Single-event request too large; dropping",r),this.resetBatchSize(),u();else return u()}catch(m){this.reportError("Error handling API response",m),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:n};return e.unloading&&(l.transport="sendBeacon"),Rr.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))},Me.prototype.reportError=function(e,n){if(Rr.error.apply(Rr.error,arguments),this.errorReporter)try{n instanceof Error||(n=new Error(e)),this.errorReporter(e,n)}catch(i){Rr.error(i)}};var Fo=function(e){var n=Date.now();return!e||n>e.maxExpires||n>e.idleExpires},fm=250,jt=Wt("recorder"),Oc=E.CompressionStream,hm={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},pm=new Set([T.MouseMove,T.MouseInteraction,T.Scroll,T.ViewportResize,T.Input,T.TouchMove,T.MediaInteraction,T.Drag,T.Selection]);function dm(e){return e.type===B.IncrementalSnapshot&&pm.has(e.data.source)}var ye=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||at,this._onMaxLengthReached=e.onMaxLengthReached||at,this._onBatchSent=e.onBatchSent||at,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=Er,this.recordMinMs=0;var n=Or(e.sharedLockStorage,!0);this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new Fe(_c),this.batcher=new Me(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:hm,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:n,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:fm,sharedLockTimeoutMS:10*1e3})};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){jt.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>Er&&(this.recordMaxMs=Er,jt.critical("record_max_ms cannot be greater than "+Er+"ms. Capping value.")),this.maxExpires||(this.maxExpires=new Date().getTime()+this.recordMaxMs),this.recordMinMs=this.getConfig("record_min_ms"),this.recordMinMs>xo&&(this.recordMinMs=xo,jt.critical("record_min_ms cannot be greater than "+xo+"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}dm(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.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(o,s){o.status===200&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=h.info.currentUrl()),this._onBatchSent(),t({status:0,httpStatusCode:o.status,responseBody:s,retryAfter:o.headers.get("Retry-After")})}.bind(this);E.fetch(this.getConfig("api_host")+"/"+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(o){o.json().then(function(s){r(o,s)}).catch(function(s){t({error:s})})}).catch(function(o){t({error:o,httpStatusCode:0})})},ye.prototype._flushEvents=ut(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===B.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:Pe.LIB_VERSION,batch_start_time:o/1e3,distinct_id:String(this._mixpanel.get_distinct_id()),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),p=this._mixpanel.get_property("$device_id");p&&(l.$device_id=p);var v=this._mixpanel.get_property("$user_id");if(v&&(l.$user_id=v),Oc){var m=new Blob([f],{type:"application/json"}).stream(),y=m.pipeThrough(new Oc("gzip"));new Response(y).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){jt.error.apply(jt.error,arguments);try{!n&&!(e instanceof Error)&&(e=new Error(e)),this.getConfig("error_reporter")(e,n)}catch(i){jt.error(i)}};var Vt=function(e){this.idb=new Fe(Po),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};Vt.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},Vt.prototype.setActiveRecording=function(e){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."),j.resolve())},Vt.prototype.getActiveRecording=function(){return this.idb.init().then(function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}.bind(this)).then(function(e){return Fo(e)?null:e}.bind(this)).catch(this.handleError.bind(this))},Vt.prototype.clearActiveRecording=function(){return this.getActiveRecording().then(function(e){if(e)return e.maxExpires=0,this.setActiveRecording(e)}.bind(this)).catch(this.handleError.bind(this))},Vt.prototype.flushInactiveRecordings=function(){return this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(e){var n=e.filter(function(i){return Fo(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 j.all(n)}.bind(this)).catch(this.handleError.bind(this))};var Ar=Wt("recorder"),Ye=function(e,n,i){this.mixpanelInstance=e,this.rrwebRecord=n||rt,this.sharedLockStorage=i,this.recordingRegistry=new Vt({mixpanelInstance:this.mixpanelInstance,errorReporter:Ar.error,sharedLockStorage:i}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null};Ye.prototype.startRecording=function(e){if(e=e||{},this.activeRecording&&!this.activeRecording.isRrwebStopped()){Ar.log("Recording already in progress, skipping startRecording.");return}var n=function(){Ar.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),i=function(){Ar.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())},Ye.prototype.stopRecording=function(){var e=this._stopCurrentRecording(!1);return this.recordingRegistry.clearActiveRecording(),this.activeRecording=null,e},Ye.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Ye.prototype._stopCurrentRecording=function(e){return this.activeRecording?this.activeRecording.stopRecording(e):j.resolve()},Ye.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),j.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(n){return n?this.startRecording({activeSerializedRecording:n}):e?this.startRecording({shouldStopBatcher:!1}):(Ar.log("No resumable recording found."),null)}.bind(this))},Ye.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Ye.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(Ye.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),E.__mp_recorder=Ye;var Gn="change",Mr="click",kc="hashchange",Yt="mp_locationchange",Rc="popstate",Ac="scrollend",Uo="submit",vm=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],Mc=["mp-include"],Bo=["mp-no-track"],Tc=Bo.concat(["mp-sensitive"]),mm=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],Ce=Wt("autocapture");function zo(e){for(var n={},i=Nc(e).split(" "),t=0;t<i.length;t++){var r=i[t];r&&(n[r]=!0)}return n}function Nc(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function gm(e){if(e.previousElementSibling)return e.previousElementSibling;do e=e.previousSibling;while(e&&!Lc(e));return e}function Pc(e,n,i,t,r,o){var s={$classes:Nc(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s.$id=a),Go(e,n,r,o)&&h.each(mm.concat(t),function(f){if(e.hasAttribute(f)&&!i[f]){var p=e.getAttribute(f);jn(p)&&(s["$attr-"+f]=p)}});for(var u=1,c=1,l=e;l=gm(l);)u++,l.tagName===e.tagName&&c++;return s.$nth_child=u,s.$nth_of_type=c,s}function ym(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={};h.each(r,function(S){c[S]=!0});var l=null,f=typeof e.target=="undefined"?e.srcElement:e.target;if(Dc(f)&&(f=f.parentNode),wm(f,e)&&Wo(f,e,i,t)&&!qo(f,e,o,s)){for(var p=[f],v=f;v.parentNode&&!Be(v,"body");)p.push(v.parentNode),v=v.parentNode;var m=[],y,d=!1;if(h.each(p,function(S){var C=Go(S,e,i,t);!c.href&&S.tagName.toLowerCase()==="a"&&(y=S.getAttribute("href"),y=C&&jn(y)&&y),qo(S,e,o,s)&&(d=!0),m.push(Pc(S,e,c,u,i,t))},this),!d){var g=Y.documentElement;if(l={$event_type:e.type,$host:E.location.host,$pathname:E.location.pathname,$elements:m,$el_attr__href:y,$viewportHeight:Math.max(g.clientHeight,E.innerHeight||0),$viewportWidth:Math.max(g.clientWidth,E.innerWidth||0)},h.each(u,function(S){if(!c[S]&&f.hasAttribute(S)){var C=f.getAttribute(S);jn(C)&&(l["$el_attr__"+S]=C)}}),a&&(_=$c(f,e,i,t),_&&_.length&&(l.$el_text=_)),e.type===Mr&&(h.each(vm,function(S){S in e&&(l["$"+S]=e[S])}),f=_m(e)),a){var _=$c(f,e,i,t);_&&_.length&&(l.$el_text=_)}if(f){if(!Wo(f,e,i,t)||qo(f,e,o,s))return null;var w=Pc(f,e,c,u,i,t);l.$target=w,l.$el_classes=w.$classes,h.extend(l,h.strip_empty_properties({$el_id:w.$id,$el_tag_name:w.$tag_name}))}}}return l}function $c(e,n,i,t){var r="";return Go(e,n,i,t)&&e.childNodes&&e.childNodes.length&&h.each(e.childNodes,function(o){Dc(o)&&o.textContent&&(r+=h.trim(o.textContent).split(/(\s+)/).filter(jn).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),h.trim(r)}function _m(e){for(var n=e.target,i=e.composedPath(),t=0;t<i.length;t++){var r=i[t];if(Be(r,"a")||Be(r,"button")||Be(r,"input")||Be(r,"select")||r.getAttribute&&r.getAttribute("role")==="button"){n=r;break}if(r===n)break}return n}function Wo(e,n,i,t){if(i)try{if(!i(e,n))return!1}catch(s){return Ce.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){Ce.critical("Error while checking selector: "+o,s)}}return!1}function qo(e,n,i,t){var r;if(i)try{if(i(e,n))return!0}catch(a){return Ce.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){Ce.critical("Error while checking selector: "+o,a)}}var s=zo(e);for(r=0;r<Bo.length;r++)if(s[Bo[r]])return!0;return!1}function Lc(e){return e&&e.nodeType===1}function Be(e,n){return e&&e.tagName&&e.tagName.toLowerCase()===n.toLowerCase()}function Dc(e){return e&&e.nodeType===3}function bm(){try{var e=Y.createElement("div");return!!e.matches}catch(n){return!1}}function wm(e,n){if(!e||Be(e,"html")||!Lc(e))return!1;var i=e.tagName.toLowerCase();switch(i){case"form":return n.type===Uo;case"input":return["button","submit"].indexOf(e.getAttribute("type"))===-1?n.type===Gn:n.type===Mr;case"select":case"textarea":return n.type===Gn;default:return n.type===Mr}}function Go(e,n,i,t){var r;if(!Wo(e,n,i,t))return!1;for(var o=e;o.parentNode&&!Be(o,"body");o=o.parentNode){var s=zo(o);for(r=0;r<Tc.length;r++)if(s[Tc[r]])return!1}var a=zo(e);for(r=0;r<Mc.length;r++)if(a[Mc[r]])return!0;if(Be(e,"input")||Be(e,"select")||Be(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 jn(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}var Fc="autocapture",Sm="track_pageview",Uc="full-url",Cm="url-with-path-and-query-string",Im="url-with-path",Em="allow_element_callback",Bc="allow_selectors",zc="allow_url_regexes",Wc="block_attrs",qc="block_element_callback",Gc="block_selectors",jc="block_url_regexes",Vc="capture_extra_attrs",Yc="capture_text_content",Hc="scroll_capture_all",Kc="scroll_depth_percent_checkpoints",jo="click",Vo="input",Jc="pageview",Yo="scroll",Ho="submit",de={};de[Bc]=[],de[zc]=[],de[Wc]=[],de[qc]=null,de[Gc]=[],de[jc]=[],de[Vc]=[],de[Yc]=!1,de[Hc]=!1,de[Kc]=[25,50,75,100],de[jo]=!0,de[Vo]=!0,de[Jc]=Uc,de[Yo]=!0,de[Ho]=!0;var Vn={$mp_autocapture:!0},xm="$mp_click",Om="$mp_input_change",km="$mp_scroll",Rm="$mp_submit",Ee=function(e){this.mp=e};Ee.prototype.init=function(){if(!bm()){Ce.critical("Autocapture unavailable: missing required DOM APIs");return}this.initPageviewTracking(),this.initClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking()},Ee.prototype.getFullConfig=function(){var e=this.mp.get_config(Fc);return e?h.isObject(e)?h.extend({},de,e):de:{}},Ee.prototype.getConfig=function(e){return this.getFullConfig()[e]},Ee.prototype.currentUrlBlocked=function(){var e,n=h.info.currentUrl(),i=this.getConfig(zc)||[];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 Ce.critical("Error while checking block URL regex: "+r,s),!0}}if(!t)return!0}var o=this.getConfig(jc)||[];if(!o||!o.length)return!1;for(e=0;e<o.length;e++)try{if(n.match(o[e]))return!0}catch(s){return Ce.critical("Error while checking block URL regex: "+o[e],s),!0}return!1},Ee.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(Fc)?this.getConfig(Jc):this.mp.get_config(Sm)},Ee.prototype.trackDomEvent=function(e,n){if(!this.currentUrlBlocked()){var i=ym(e,{allowElementCallback:this.getConfig(Em),allowSelectors:this.getConfig(Bc),blockAttrs:this.getConfig(Wc),blockElementCallback:this.getConfig(qc),blockSelectors:this.getConfig(Gc),captureExtraAttrs:this.getConfig(Vc),captureTextContent:this.getConfig(Yc)});i&&(h.extend(i,Vn),this.mp.track(n,i))}},Ee.prototype.initClickTracking=function(){E.removeEventListener(Mr,this.listenerClick),this.getConfig(jo)&&(Ce.log("Initializing click tracking"),this.listenerClick=E.addEventListener(Mr,function(e){this.getConfig(jo)&&this.trackDomEvent(e,xm)}.bind(this)))},Ee.prototype.initInputTracking=function(){E.removeEventListener(Gn,this.listenerChange),this.getConfig(Vo)&&(Ce.log("Initializing input tracking"),this.listenerChange=E.addEventListener(Gn,function(e){this.getConfig(Vo)&&this.trackDomEvent(e,Om)}.bind(this)))},Ee.prototype.initPageviewTracking=function(){if(E.removeEventListener(Rc,this.listenerPopstate),E.removeEventListener(kc,this.listenerHashchange),E.removeEventListener(Yt,this.listenerLocationchange),!!this.pageviewTrackingConfig()){Ce.log("Initializing pageview tracking");var e="",n=!1;this.currentUrlBlocked()||(n=this.mp.track_pageview(Vn)),n&&(e=h.info.currentUrl()),this.listenerPopstate=E.addEventListener(Rc,function(){E.dispatchEvent(new Event(Yt))}),this.listenerHashchange=E.addEventListener(kc,function(){E.dispatchEvent(new Event(Yt))});var i=E.history.pushState;typeof i=="function"&&(E.history.pushState=function(r,o,s){i.call(E.history,r,o,s),E.dispatchEvent(new Event(Yt))});var t=E.history.replaceState;typeof t=="function"&&(E.history.replaceState=function(r,o,s){t.call(E.history,r,o,s),E.dispatchEvent(new Event(Yt))}),this.listenerLocationchange=E.addEventListener(Yt,Ao(function(){if(!this.currentUrlBlocked()){var r=h.info.currentUrl(),o=!1,s=r.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],a=this.pageviewTrackingConfig();if(a===Uc?o=r!==e:a===Cm?o=r.split("#")[0]!==e.split("#")[0]:a===Im&&(o=s),o){var u=this.mp.track_pageview(Vn);u&&(e=r),s&&(this.lastScrollCheckpoint=0,Ce.log("Path change: re-initializing scroll depth checkpoints"))}}}.bind(this)))}},Ee.prototype.initScrollTracking=function(){E.removeEventListener(Ac,this.listenerScroll),this.getConfig(Yo)&&(Ce.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0,this.listenerScroll=E.addEventListener(Ac,Ao(function(){if(this.getConfig(Yo)&&!this.currentUrlBlocked()){var e=this.getConfig(Hc),n=(this.getConfig(Kc)||[]).slice().sort(function(u,c){return u-c}),i=E.scrollY,t=h.extend({$scroll_top:i},Vn);try{var r=Y.body.scrollHeight,o=Math.round(i/(r-E.innerHeight)*100);if(t.$scroll_height=r,t.$scroll_percentage=o,o>this.lastScrollCheckpoint)for(var s=0;s<n.length;s++){var a=n[s];o>=a&&this.lastScrollCheckpoint<a&&(t.$scroll_checkpoint=a,this.lastScrollCheckpoint=a,e=!0)}}catch(u){Ce.critical("Error while calculating scroll percentage",u)}e&&this.mp.track(km,t)}}.bind(this))))},Ee.prototype.initSubmitTracking=function(){E.removeEventListener(Uo,this.listenerSubmit),this.getConfig(Ho)&&(Ce.log("Initializing submit tracking"),this.listenerSubmit=E.addEventListener(Uo,function(e){this.getConfig(Ho)&&this.trackDomEvent(e,Rm)}.bind(this)))},jv(Ee);var He=function(){};He.prototype.create_properties=function(){},He.prototype.event_handler=function(){},He.prototype.after_track_handler=function(){},He.prototype.init=function(e){return this.mp=e,this},He.prototype.track=function(e,n,i,t){var r=this,o=h.dom_query(e);if(o.length===0){z.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},He.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))}},He.prototype.create_properties=function(e,n){var i;return typeof e=="function"?i=e(n):i=h.extend({},e),i};var Ht=function(){this.override_event="click"};h.inherit(Ht,He),Ht.prototype.create_properties=function(e,n){var i=Ht.superclass.create_properties.apply(this,arguments);return n.href&&(i.url=n.href),i},Ht.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()},Ht.prototype.after_track_handler=function(e,n){n.new_tab||setTimeout(function(){window.location=n.href},0)};var Yn=function(){this.override_event="submit"};h.inherit(Yn,He),Yn.prototype.event_handler=function(e,n,i){i.element=n,e.preventDefault()},Yn.prototype.after_track_handler=function(e,n){setTimeout(function(){n.element.submit()},0)};var lt="$set",Kt="$set_once",$e="$unset",gt="$add",ze="$append",yt="$union",Ke="$remove",Am="$delete",Zc={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[lt]=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[$e]=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[Kt]=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[yt]=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[ze]=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[Ke]=t,i},delete_action:function(){var e={};return e[Am]="",e}},re=function(){};h.extend(re.prototype,Zc),re.prototype._init=function(e,n,i){this._mixpanel=e,this._group_key=n,this._group_id=i},re.prototype.set=Gt(function(e,n,i){var t=this.set_action(e,n);return h.isObject(e)&&(i=n),this._send_request(t,i)}),re.prototype.set_once=Gt(function(e,n,i){var t=this.set_once_action(e,n);return h.isObject(e)&&(i=n),this._send_request(t,i)}),re.prototype.unset=Gt(function(e,n){var i=this.unset_action(e);return this._send_request(i,n)}),re.prototype.union=Gt(function(e,n,i){h.isObject(e)&&(i=n);var t=this.union_action(e,n);return this._send_request(t,i)}),re.prototype.delete=Gt(function(e){var n=this.delete_action();return this._send_request(n,e)}),re.prototype.remove=Gt(function(e,n,i){var t=this.remove_action(e,n);return this._send_request(t,i)}),re.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._get_config("api_host")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},n)},re.prototype._is_reserved_property=function(e){return e==="$group_key"||e==="$group_id"},re.prototype._get_config=function(e){return this._mixpanel.get_config(e)},re.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},re.prototype.remove=re.prototype.remove,re.prototype.set=re.prototype.set,re.prototype.set_once=re.prototype.set_once,re.prototype.union=re.prototype.union,re.prototype.unset=re.prototype.unset,re.prototype.toString=re.prototype.toString;var P=function(){};h.extend(P.prototype,Zc),P.prototype._init=function(e){this._mixpanel=e},P.prototype.set=ct(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[lt]=h.extend({},h.info.people_properties(),t[lt]),this._send_request(t,i)}),P.prototype.set_once=ct(function(e,n,i){var t=this.set_once_action(e,n);return h.isObject(e)&&(i=n),this._send_request(t,i)}),P.prototype.unset=ct(function(e,n){var i=this.unset_action(e);return this._send_request(i,n)}),P.prototype.increment=ct(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))){z.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[gt]=r,this._send_request(t,i)}),P.prototype.append=ct(function(e,n,i){h.isObject(e)&&(i=n);var t=this.append_action(e,n);return this._send_request(t,i)}),P.prototype.remove=ct(function(e,n,i){h.isObject(e)&&(i=n);var t=this.remove_action(e,n);return this._send_request(t,i)}),P.prototype.union=ct(function(e,n,i){h.isObject(e)&&(i=n);var t=this.union_action(e,n);return this._send_request(t,i)}),P.prototype.track_charge=ct(function(e,n,i){if(!h.isNumber(e)&&(e=parseFloat(e),isNaN(e))){z.error("Invalid value passed to mixpanel.people.track_charge - must be a number");return}return this.append("$transactions",h.extend({$amount:e},n),i)}),P.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},P.prototype.delete_user=function(){if(!this._identify_called()){z.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)},P.prototype.toString=function(){return this._mixpanel.toString()+".people"},P.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._get_config("api_host")+"/"+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))},P.prototype._get_config=function(e){return this._mixpanel.get_config(e)},P.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0},P.prototype._enqueue=function(e){lt in e?this._mixpanel.persistence._add_to_people_queue(lt,e):Kt in e?this._mixpanel.persistence._add_to_people_queue(Kt,e):$e in e?this._mixpanel.persistence._add_to_people_queue($e,e):gt in e?this._mixpanel.persistence._add_to_people_queue(gt,e):ze in e?this._mixpanel.persistence._add_to_people_queue(ze,e):Ke in e?this._mixpanel.persistence._add_to_people_queue(Ke,e):yt in e?this._mixpanel.persistence._add_to_people_queue(yt,e):z.error("Invalid call to _enqueue():",e)},P.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)}))},P.prototype._flush=function(e,n,i,t,r,o,s){var a=this;this._flush_one_queue(lt,this.set,e),this._flush_one_queue(Kt,this.set_once,t),this._flush_one_queue($e,this.unset,o,function(d){return h.keys(d)}),this._flush_one_queue(gt,this.increment,n),this._flush_one_queue(yt,this.union,r);var u=this._mixpanel.persistence.load_queue(ze);if(!h.isUndefined(u)&&h.isArray(u)&&u.length)for(var c,l=function(d,g){d===0&&a._mixpanel.persistence._add_to_people_queue(ze,c),h.isUndefined(i)||i(d,g)},f=u.length-1;f>=0;f--)u=this._mixpanel.persistence.load_queue(ze),c=u.pop(),a._mixpanel.persistence.save(),h.isEmptyObject(c)||a.append(c,l);var p=this._mixpanel.persistence.load_queue(Ke);if(!h.isUndefined(p)&&h.isArray(p)&&p.length)for(var v,m=function(d,g){d===0&&a._mixpanel.persistence._add_to_people_queue(Ke,v),h.isUndefined(s)||s(d,g)},y=p.length-1;y>=0;y--)p=this._mixpanel.persistence.load_queue(Ke),v=p.pop(),a._mixpanel.persistence.save(),h.isEmptyObject(v)||a.remove(v,m)},P.prototype._is_reserved_property=function(e){return e==="$distinct_id"||e==="$token"||e==="$device_id"||e==="$user_id"||e==="$had_persisted_distinct_id"},P.prototype.set=P.prototype.set,P.prototype.set_once=P.prototype.set_once,P.prototype.unset=P.prototype.unset,P.prototype.increment=P.prototype.increment,P.prototype.append=P.prototype.append,P.prototype.remove=P.prototype.remove,P.prototype.union=P.prototype.union,P.prototype.track_charge=P.prototype.track_charge,P.prototype.clear_charges=P.prototype.clear_charges,P.prototype.delete_user=P.prototype.delete_user,P.prototype.toString=P.prototype.toString;var Ko="__mps",Jo="__mpso",Zo="__mpus",Xo="__mpa",Qo="__mpap",es="__mpr",ts="__mpu",Xc="$people_distinct_id",Hn="__alias",Tr="__timers",Mm=[Ko,Jo,Zo,Xo,Qo,es,ts,Xc,Hn,Tr],L=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"&&(z.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()};L.prototype.properties=function(){var e={};return this.load(),h.each(this.props,function(n,i){h.include(Mm,i)||(e[i]=n)}),e},L.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=h.extend({},e))}},L.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))},L.prototype.save=function(){this.disabled||this.storage.set(this.name,qt(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},L.prototype.load_prop=function(e){return this.load(),this.props[e]},L.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},L.prototype.clear=function(){this.remove(),this.props={}},L.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},L.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},L.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},L.prototype.update_search_keyword=function(e){this.register(h.info.searchInfo(e))},L.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:h.info.referringDomain(e)||"$direct"},"")},L.prototype.get_referrer_info=function(){return h.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},L.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)},L.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},L.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},L.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},L.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},L.prototype.get_cross_subdomain=function(){return this.cross_subdomain},L.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},L.prototype._add_to_people_queue=function(e,n){var i=this._get_queue_key(e),t=n[e],r=this._get_or_create_queue(lt),o=this._get_or_create_queue(Kt),s=this._get_or_create_queue($e),a=this._get_or_create_queue(gt),u=this._get_or_create_queue(yt),c=this._get_or_create_queue(Ke,[]),l=this._get_or_create_queue(ze,[]);i===Ko?(h.extend(r,t),this._pop_from_people_queue(gt,t),this._pop_from_people_queue(yt,t),this._pop_from_people_queue($e,t)):i===Jo?(h.each(t,function(f,p){p in o||(o[p]=f)}),this._pop_from_people_queue($e,t)):i===Zo?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===Xo?(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($e,t)):i===ts?(h.each(t,function(f,p){h.isArray(f)&&(p in u||(u[p]=[]),h.each(f,function(v){h.include(u[p],v)||u[p].push(v)}))}),this._pop_from_people_queue($e,t)):i===es?(c.push(t),this._pop_from_people_queue(ze,t)):i===Qo&&(l.push(t),this._pop_from_people_queue($e,t)),z.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),z.log(n),this.save()},L.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===ze||e===Ke?h.each(i,function(o){o[r]===t&&delete o[r]}):delete i[r]},this)},L.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},L.prototype._get_queue_key=function(e){if(e===lt)return Ko;if(e===Kt)return Jo;if(e===$e)return Zo;if(e===gt)return Xo;if(e===ze)return Qo;if(e===Ke)return es;if(e===yt)return ts;z.error("Invalid queue:",e)},L.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)},L.prototype.set_event_timer=function(e,n){var i=this.load_prop(Tr)||{};i[e]=n,this.props[Tr]=i,this.save()},L.prototype.remove_event_timer=function(e){var n=this.load_prop(Tr)||{},i=n[e];return h.isUndefined(i)||(delete this.props[Tr][e],this.save()),i};var rs,Qc=function(e,n){throw new Error(e+" not available in this build.")},le,Tm=0,el=1,Nm=function(e){return e},xe="mixpanel",tl="base64",Pm="json",ns="$device:",Jt=E.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,rl=!Jt&&Ve.indexOf("MSIE")===-1&&Ve.indexOf("Mozilla")===-1,Kn=null;st.sendBeacon&&(Kn=function(){return st.sendBeacon.apply(st,arguments)});var nl={track:"track/",engage:"engage/",groups:"groups/",record:"record/"},il={api_host:"https://api-js.mixpanel.com",api_routes:nl,api_method:"POST",api_transport:"XHR",api_payload_format:tl,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:at,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:at,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",record_canvas:!1,record_collect_fonts:!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:Er,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},ol=!1,b=function(){},Jn=function(e,n,i){var t,r=i===xe?le:le[i];if(r&&rs===Tm)t=r;else{if(r&&!h.isArray(r)){z.error("You have already initialized "+i);return}t=new b}if(t._cached_groups={},t._init(e,n,i),t.people=new P,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 Pe.DEBUG=Pe.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===xe){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var t=Jn(e,n,i);return le[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||il.api_host;r.match(/\.mixpanel\.com/)&&(t.api_payload_format=Pm)}if(this.set_config(h.extend({},il,t,n,{name:i,token:e,callback_fn:(i===xe?i:xe+"."+i)+"._jsc"})),this._jsc=at,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)||!Jt)this._batch_requests=!1,z.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),h.each(this.get_batcher_configs(),function(a){z.log("Clearing batch queue "+a.queue_key),h.localStorage.remove(a.queue_key)});else if(this.init_batchers(),Kn&&E.addEventListener){var o=h.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);E.addEventListener("pagehide",function(a){a.persisted&&o()}),E.addEventListener("visibilitychange",function(){Y.visibilityState==="hidden"&&o()})}}this.persistence=this.cookie=new L(this.config),this.unpersisted_superprops={},this._gdpr_init();var s=h.UUID();this.get_distinct_id()||this.register_once({distinct_id:ns+s,$device_id:s},""),this.autocapture=new Ee(this),this.autocapture.init(),this._init_tab_id(),this._check_and_start_session_recording()},b.prototype._init_tab_id=function(){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),E.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(){var e=new Fe(Po),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(Fo(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=ut(function(e){if(!E.MutationObserver){z.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 E.__mp_recorder(this),this._recorder.resumeRecording(t)},this);h.isUndefined(E.__mp_recorder)?Qc(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(){this._recorder&&this._recorder.stopRecording()},b.prototype.pause_session_recording=function(){this._recorder&&this._recorder.pauseRecording()},b.prototype.resume_session_recording=function(){this._recorder&&this._recorder.resumeRecording()},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(Y.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(Y.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(Jt){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(rl)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||{}),Jt||(i.method="GET");var a=i.method==="POST",u=Kn&&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),Jt||(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),e+="?"+h.HTTPBuildQuery(n);var l=this;if("img"in n){var f=Y.createElement("img");f.src=e,Y.body.appendChild(f)}else if(u){try{r=Kn(e,s)}catch(g){l.report_error(g),r=!1}try{t&&t(r?1:0)}catch(g){l.report_error(g)}}else if(Jt)try{var p=new XMLHttpRequest;p.open(i.method,e,!0);var v=this.get_config("xhr_headers");if(a&&(v["Content-Type"]="application/x-www-form-urlencoded"),h.each(v,function(g,_){p.setRequestHeader(_,g)}),i.timeout_ms&&typeof p.timeout!="undefined"){p.timeout=i.timeout_ms;var m=new Date().getTime()}p.withCredentials=!0,p.onreadystatechange=function(){if(p.readyState===4)if(p.status===200){if(t)if(c){var g;try{g=h.JSONDecode(p.responseText)}catch(S){if(l.report_error(S),i.ignore_json_errors)g=p.responseText;else return}t(g)}else t(Number(p.responseText))}else{var _;if(p.timeout&&!p.status&&new Date().getTime()-m>=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(g){l.report_error(g),r=!1}else{var y=Y.createElement("script");y.type="text/javascript",y.async=!0,y.defer=!0,y.src=e;var d=Y.getElementsByTagName("script")[0];d.parentNode.insertBefore(y,d)}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"),n=this.get_config("api_routes");return this._batcher_configs=this._batcher_configs||{events:{type:"events",endpoint:"/"+n.track,queue_key:e+"_ev"},people:{type:"people",endpoint:"/"+n.engage,queue_key:e+"_pp"},groups:{type:"groups",endpoint:"/"+n.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 Me(i.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:h.bind(function(t,r,o){this._send_request(this.get_config("api_host")+i.endpoint,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=qt(e);return this.get_config("api_payload_format")===tl&&(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||at;var a=!0,u=h.bind(function(){return s.skip_hooks||(i=this._run_hook("before_send_"+e.type,i)),i?(z.log("MIXPANEL REQUEST:"),z.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=ut(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=at),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_config("api_host")+"/"+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=ut(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=ut(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=ut(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=ut(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 re,t._init(this,e,n),this._cached_groups[i]=t),t},b.prototype.track_pageview=ut(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,Ht,arguments)},b.prototype.track_forms=function(){return this._track_dom.call(this,Yn,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 $m={persistent:!0},is=function(e){var n;return h.isObject(e)?n=e:h.isUndefined(e)?n={}:n={days:e},h.extend({},$m,n)};b.prototype.register=function(e,n){var i=is(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=is(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=is(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(ns)===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(Hn)&&(this.unregister(Hn),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})},b.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1;var e=h.UUID();this.register_once({distinct_id:ns+e,$device_id:e},"")},b.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},b.prototype.alias=function(e,n){if(e===this.get_property(Xc))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(Hn,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),Pe.DEBUG=Pe.DEBUG||this.get_config("debug"),"autocapture"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]||Nm).apply(this,ot.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.toString=function(){var e=this.get_config("name");return e!==xe&&(e=xe+"."+e),e},b.prototype._event_is_disabled=function(e){return h.isBlockedUA(Ve)||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(im,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(om,e),this._gdpr_update_persistence(e)},b.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(sm,e)},b.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(bc,e)},b.prototype.clear_opt_in_out_tracking=function(e){e=h.extend({enable_persistence:!0},e),this._gdpr_call_func(am,e),this._gdpr_update_persistence(e)},b.prototype.report_error=function(e,n){z.error.apply(z.error,arguments);try{!n&&!(e instanceof Error)&&(e=new Error(e)),this.get_config("error_reporter")(e,n)}catch(i){z.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_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=nl,b.prototype.__get_recorder=b.prototype.__get_recorder,L.prototype.properties=L.prototype.properties,L.prototype.update_search_keyword=L.prototype.update_search_keyword,L.prototype.update_referrer_info=L.prototype.update_referrer_info,L.prototype.get_cross_subdomain=L.prototype.get_cross_subdomain,L.prototype.clear=L.prototype.clear;var ft={},Lm=function(){h.each(ft,function(e,n){n!==xe&&(le[n]=e)}),le._=h},Dm=function(){le.init=function(e,n,i){if(i)return le[i]||(le[i]=ft[i]=Jn(e,n,i),le[i]._loaded()),le[i];var t=le;ft[xe]?t=ft[xe]:e&&(t=Jn(e,n,xe),t._loaded(),ft[xe]=t),le=t,rs===el&&(E[xe]=le),Lm()}},Fm=function(){function e(){e.done||(e.done=!0,ol=!0,rl=!1,h.each(ft,function(t){t._dom_loaded()}))}function n(){try{Y.documentElement.doScroll("left")}catch(t){setTimeout(n,1);return}e()}if(Y.addEventListener)Y.readyState==="complete"?e():Y.addEventListener("DOMContentLoaded",e,!1);else if(Y.attachEvent){Y.attachEvent("onreadystatechange",e);var i=!1;try{i=E.frameElement===null}catch(t){}Y.documentElement.doScroll&&i&&n()}h.register_event(E,"load",e,!0)};function Um(e){if(Qc=e,rs=el,le=E[xe],h.isUndefined(le)){z.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(le.__loaded||le.config&&le.persistence){z.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=le.__SV||0;if(n<1.1){z.critical("Version mismatch; please ensure you're using the latest version of the Mixpanel code snippet.");return}h.each(le._i,function(i){i&&h.isArray(i)&&(ft[i[i.length-1]]=Jn.apply(this,i))}),Dm(),le.init(),h.each(ft,function(i){i._loaded()}),Fm()}function Bm(e,n){n()}Um(Bm)})();
|