mixpanel-browser 2.79.0 → 2.80.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/.github/workflows/integration-tests.yml +1 -0
- package/CHANGELOG.md +6 -0
- package/dist/async-modules/{mixpanel-recorder-D5HJyV2E.min.js → mixpanel-recorder-B61POiHc.min.js} +2 -2
- package/dist/async-modules/{mixpanel-recorder-D5HJyV2E.min.js.map → mixpanel-recorder-B61POiHc.min.js.map} +1 -1
- package/dist/async-modules/{mixpanel-recorder-P6SEnnPV.js → mixpanel-recorder-C3AW7mPl.js} +7 -3
- package/dist/async-modules/{mixpanel-targeting-BBMVbgJF.js → mixpanel-targeting-CBwOQJZw.js} +1 -1
- package/dist/async-modules/{mixpanel-targeting-1L9FyetZ.min.js → mixpanel-targeting-kdl-eE-1.min.js} +2 -2
- package/dist/async-modules/{mixpanel-targeting-1L9FyetZ.min.js.map → mixpanel-targeting-kdl-eE-1.min.js.map} +1 -1
- package/dist/mixpanel-core.cjs.js +13 -13
- package/dist/mixpanel-recorder.js +7 -3
- package/dist/mixpanel-recorder.min.js +1 -1
- package/dist/mixpanel-recorder.min.js.map +1 -1
- package/dist/mixpanel-targeting.js +1 -1
- package/dist/mixpanel-targeting.min.js +1 -1
- package/dist/mixpanel-targeting.min.js.map +1 -1
- package/dist/mixpanel-with-async-modules.cjs.js +15 -15
- package/dist/mixpanel-with-async-recorder.cjs.js +15 -15
- package/dist/mixpanel-with-recorder.js +19 -15
- package/dist/mixpanel-with-recorder.min.js +1 -1
- package/dist/mixpanel.amd.js +19 -15
- package/dist/mixpanel.cjs.js +19 -15
- package/dist/mixpanel.globals.js +15 -15
- package/dist/mixpanel.min.js +104 -104
- package/dist/mixpanel.module.js +19 -15
- package/dist/mixpanel.umd.js +19 -15
- package/package.json +1 -1
- package/src/autocapture/index.js +10 -10
- package/src/config.js +1 -1
- package/src/flags/index.js +2 -2
- package/src/recorder/session-recording.js +6 -2
- package/.claude/settings.local.json +0 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(){"use strict";var E;if(typeof window=="undefined"){var Su={hostname:""};E={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:Su,referrer:""},screen:{width:0,height:0},location:Su,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else E=window;var Pe={DEBUG:!1,LIB_VERSION:"2.79.0"},Ve="__mp_targeting",Is="__mp_recorder",Zp="__MP_RECORDER_FILENAME__",Cu="__MP_TARGETING_FILENAME__";function Eu(t,n){(n==null||n>t.length)&&(n=t.length);for(var i=0,e=new Array(n);i<n;i++)e[i]=t[i];return e}function Iu(t,n,i,e,r,s,o){try{var a=t[s](o),u=a.value}catch(c){i(c);return}a.done?n(u):Promise.resolve(u).then(e,r)}function Cn(t){return function(){var n=this,i=arguments;return new Promise(function(e,r){var s=t.apply(n,i);function o(u){Iu(s,e,r,o,a,"next",u)}function a(u){Iu(s,e,r,o,a,"throw",u)}o(void 0)})}}function En(t,n,i){return Ou()?En=Reflect.construct:En=function(r,s,o){var a=[null];a.push.apply(a,s);var u=Function.bind.apply(r,a),c=new u;return o&&Lr(c,o.prototype),c},En.apply(null,arguments)}function Qp(t,n){for(var i=0;i<n.length;i++){var e=n[i];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}function ie(t,n,i){return n&&Qp(t.prototype,n),t}function z(){return z=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])}return t},z.apply(this,arguments)}function Os(t){return Os=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},Os(t)}function ce(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&Lr(t,n)}function M(t,n){return n!=null&&typeof Symbol!="undefined"&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](t):t instanceof n}function ed(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Lt(t,n){if(t==null)return{};var i={},e=Object.keys(t),r,s;for(s=0;s<e.length;s++)r=e[s],!(n.indexOf(r)>=0)&&(i[r]=t[r]);return i}function Lr(t,n){return Lr=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e},Lr(t,n)}function T(t){"@swc/helpers - typeof";return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function td(t,n){if(t){if(typeof t=="string")return Eu(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set")return Array.from(i);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Eu(t,n)}}function Dr(t){var n=typeof Map=="function"?new Map:void 0;return Dr=function(e){if(e===null||!ed(e))return e;if(typeof e!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n!="undefined"){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return En(e,arguments,Os(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Lr(r,e)},Dr(t)}function Ou(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(Ou=function(){return!!t})()}function I(t,n){var i=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=td(t))||n){i&&(t=i);var e=0;return function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}}}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 Dt(t,n){var i,e,r,s,o={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(l){return u([c,l])}}function u(c){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,e&&(r=c[0]&2?e.return:c[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,c[1])).done)return r;switch(e=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,e=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(r=o.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){o=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(c[0]===6&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=n.call(t,o)}catch(l){c=[6,l],e=0}finally{i=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function xs(t){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&t[n],e=0;if(i)return i.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}var rd=Object.defineProperty,nd=function(t,n,i){return n in t?rd(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},x=function(t,n,i){return nd(t,(typeof n=="undefined"?"undefined":T(n))!=="symbol"?n+"":n,i)},xu,id=Object.defineProperty,sd=function(t,n,i){return n in t?id(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},ku=function(t,n,i){return sd(t,(typeof n=="undefined"?"undefined":T(n))!=="symbol"?n+"":n,i)},Ie=(function(t){return t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t})(Ie||{}),Ru={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Au={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},In={},od=function(){return!!globalThis.Zone};function ks(t){if(In[t])return In[t];var n=globalThis[t],i=n.prototype,e=t in Ru?Ru[t]:void 0,r=!!(e&&e.every(function(l){var f,p;return!!((p=(f=Object.getOwnPropertyDescriptor(i,l))==null?void 0:f.get)!=null&&p.toString().includes("[native code]"))})),s=t in Au?Au[t]:void 0,o=!!(s&&s.every(function(l){var f;return typeof i[l]=="function"&&((f=i[l])==null?void 0:f.toString().includes("[native code]"))}));if(r&&o&&!od())return In[t]=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[t].prototype;return document.body.removeChild(a),c?In[t]=c:i}catch(l){return i}}var Rs={};function vt(t,n,i){var e,r=t+"."+String(i);if(Rs[r])return Rs[r].call(n);var s=ks(t),o=(e=Object.getOwnPropertyDescriptor(s,i))==null?void 0:e.get;return o?(Rs[r]=o,o.call(n)):n[i]}var As={};function Mu(t,n,i){var e=t+"."+String(i);if(As[e])return As[e].bind(n);var r=ks(t),s=r[i];return typeof s!="function"?n[i]:(As[e]=s,s.bind(n))}function ad(t){return vt("Node",t,"childNodes")}function ud(t){return vt("Node",t,"parentNode")}function cd(t){return vt("Node",t,"parentElement")}function ld(t){return vt("Node",t,"textContent")}function fd(t,n){return Mu("Node",t,"contains")(n)}function hd(t){return Mu("Node",t,"getRootNode")()}function pd(t){return!t||!("host"in t)?null:vt("ShadowRoot",t,"host")}function dd(t){return t.styleSheets}function vd(t){return!t||!("shadowRoot"in t)?null:vt("Element",t,"shadowRoot")}function gd(t,n){return vt("Element",t,"querySelector")(n)}function md(t,n){return vt("Element",t,"querySelectorAll")(n)}function yd(){return ks("MutationObserver").constructor}function _d(t,n,i){try{if(!(n in t))return function(){};var e=t[n],r=i(e);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:e}})),t[n]=r,function(){t[n]=e}}catch(s){return function(){}}}var Re={childNodes:ad,parentNode:ud,parentElement:cd,textContent:ld,contains:fd,getRootNode:hd,host:pd,styleSheets:dd,shadowRoot:vd,querySelector:gd,querySelectorAll:md,mutationObserver:yd,patch:_d};function Tu(t){return t.nodeType===t.ELEMENT_NODE}function Fr(t){var n=t&&"host"in t&&"mode"in t&&Re.host(t)||null;return!!(n&&"shadowRoot"in n&&Re.shadowRoot(n)===t)}function Ur(t){return Object.prototype.toString.call(t)==="[object ShadowRoot]"}function wd(t){return t.includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}function bd(t){var n=t.cssText;if(n.split('"').length<3)return n;var i=["@import","url("+JSON.stringify(t.href)+")"];return t.layerName===""?i.push("layer"):t.layerName&&i.push("layer("+t.layerName+")"),t.supportsText&&i.push("supports("+t.supportsText+")"),t.media.length&&i.push(t.media.mediaText),i.join(" ")+";"}function Ms(t){try{var n=t.rules||t.cssRules;if(!n)return null;var i=t.href;!i&&t.ownerNode&&t.ownerNode.ownerDocument&&(i=t.ownerNode.ownerDocument.location.href);var e=Array.from(n,function(r){return Pu(r,i)}).join("");return wd(e)}catch(r){return null}}function Pu(t,n){if(Cd(t)){var i;try{i=Ms(t.styleSheet)||bd(t)}catch(r){i=t.cssText}return t.styleSheet.href?kn(i,t.styleSheet.href):i}else{var e=t.cssText;return Ed(t)&&t.selectorText.includes(":")&&(e=Sd(e)),n?kn(e,n):e}}function Sd(t){var n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(n,"$1\\$2")}function Cd(t){return"styleSheet"in t}function Ed(t){return"selectorText"in t}var $u=(function(){function t(){ku(this,"idNodeMap",new Map),ku(this,"nodeMetaMap",new WeakMap)}var n=t.prototype;return n.getId=function(e){var r;if(!e)return-1;var s=(r=this.getMeta(e))==null?void 0:r.id;return s!=null?s:-1},n.getNode=function(e){return this.idNodeMap.get(e)||null},n.getIds=function(){return Array.from(this.idNodeMap.keys())},n.getMeta=function(e){return this.nodeMetaMap.get(e)||null},n.removeNodeFromMap=function(e,r){var s=this;r===void 0&&(r=!1);var o=this.getId(e);this.idNodeMap.delete(o),r&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEach(function(a){return s.removeNodeFromMap(a,r)})},n.has=function(e){return this.idNodeMap.has(e)},n.hasNode=function(e){return this.nodeMetaMap.has(e)},n.add=function(e,r){var s=r.id;this.idNodeMap.set(s,e),this.nodeMetaMap.set(e,r)},n.replace=function(e,r){var s=this.getNode(e);if(s){var o=this.nodeMetaMap.get(s);o&&this.nodeMetaMap.set(r,o)}this.idNodeMap.set(e,r)},n.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},t})();function Id(){return new $u}function On(t){var n=t.element,i=t.maskInputOptions,e=t.tagName,r=t.type,s=t.value,o=t.maskInputFn,a=s||"",u=r&&Ft(r);return(i[e.toLowerCase()]||u&&i[u])&&(o?a=o(a,n):a="*".repeat(a.length)),a}function Ft(t){return t.toLowerCase()}var Nu="__rrweb_original__";function Od(t){var n=t.getContext("2d");if(!n)return!0;for(var i=50,e=0;e<t.width;e+=i)for(var r=0;r<t.height;r+=i){var s=n.getImageData,o=Nu in s?s[Nu]:s,a=new Uint32Array(o.call(n,e,r,Math.min(i,t.width-e),Math.min(i,t.height-r)).data.buffer);if(a.some(function(u){return u!==0}))return!1}return!0}function xn(t){var n=t.type;return t.hasAttribute("data-rr-is-password")?"password":n?Ft(n):null}function Lu(t,n){var i;try{i=new URL(t,n!=null?n:window.location.href)}catch(o){return null}var e=/\.([0-9a-z]+)(?:$)/i,r=i.pathname.match(e),s;return(s=r==null?void 0:r[1])!=null?s:null}function xd(t){var n="";return t.indexOf("//")>-1?n=t.split("/").slice(0,3).join("/"):n=t.split("/")[0],n=n.split("?")[0],n}var kd=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Rd=/^(?:[a-z+]+:)?\/\//i,Ad=/^www\..*/i,Md=/^(data:)([^,]*),(.*)/i;function kn(t,n){return(t||"").replace(kd,function(i,e,r,s,o,a){var u=r||o||a,c=e||s||"";if(!u)return i;if(Rd.test(u)||Ad.test(u)||Md.test(u))return"url("+c+u+c+")";if(u[0]==="/")return"url("+c+(xd(n)+u)+c+")";var l=n.split("/"),f=u.split("/");l.pop();for(var p=I(f),g;!(g=p()).done;){var v=g.value;v!=="."&&(v===".."?l.pop():l.push(v))}return"url("+c+l.join("/")+c+")"})}function Rn(t,n){return n===void 0&&(n=!1),n?t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Td(t,n,i){i===void 0&&(i=!1);var e=Array.from(n.childNodes),r=[],s=0;if(e.length>1&&t&&typeof t=="string"){for(var o=Rn(t,i),a=o.length/t.length,u=1;u<e.length;u++)if(e[u].textContent&&typeof e[u].textContent=="string"){for(var c=Rn(e[u].textContent,i),l=100,f=3;f<c.length&&(c[f].match(/[a-zA-Z0-9]/)||c.indexOf(c.substring(0,f),1)!==-1);f++);for(;f<c.length;f++){var p=c.substring(0,f),g=o.split(p),v=-1;if(g.length===2)v=g[0].length;else if(g.length>2&&g[0]===""&&e[u-1].textContent!=="")v=o.indexOf(p,1);else if(g.length===1){if(p=p.substring(0,p.length-1),g=o.split(p),g.length<=1)return r.push(t),r;f=l+1}else f===c.length-1&&(v=o.indexOf(p));if(g.length>=2&&f>l){var y=e[u-1].textContent;if(y&&typeof y=="string"){var d=Rn(y).length;v=o.indexOf(p,d)}v===-1&&(v=g[0].length)}if(v!==-1){for(var m=Math.floor(v/a);m>0&&m<t.length;){if(s+=1,s>50*e.length)return r.push(t),r;var _=Rn(t.substring(0,m),i);if(_.length===v){r.push(t.substring(0,m)),t=t.substring(m),o=o.substring(v);break}else _.length<v?m+=Math.max(1,Math.floor((v-_.length)/a)):m-=Math.max(1,Math.floor((_.length-v)*a))}break}}}}return r.push(t),r}function Pd(t,n){return Td(t,n).join("/* rr_split */")}var $d=1,Nd=new RegExp("[^a-z0-9-_:]"),Br=-2;function Du(){return $d++}function Ld(t){if(M(t,HTMLFormElement))return"form";var n=Ft(t.tagName);return Nd.test(n)?"div":n}var or,Fu,Dd=/^[^ \t\n\r\u000c]+/,Fd=/^[, \t\n\r\u000c]+/;function Ud(t,n){if(n.trim()==="")return n;var i=0;function e(c){var l,f=c.exec(n.substring(i));return f?(l=f[0],i+=l.length,l):""}for(var r=[];e(Fd),!(i>=n.length);){var s=e(Dd);if(s.slice(-1)===",")s=ar(t,s.substring(0,s.length-1)),r.push(s);else{var o="";s=ar(t,s);for(var a=!1;;){var u=n.charAt(i);if(u===""){r.push((s+o).trim());break}else if(a)u===")"&&(a=!1);else if(u===","){i+=1,r.push((s+o).trim());break}else u==="("&&(a=!0);o+=u,i+=1}}}return r.join(", ")}var Uu=new WeakMap;function ar(t,n){return!n||n.trim()===""?n:Ts(t,n)}function Bd(t){return!!(t.tagName==="svg"||t.ownerSVGElement)}function Ts(t,n){var i=Uu.get(t);if(i||(i=t.createElement("a"),Uu.set(t,i)),!n)n="";else if(n.startsWith("blob:")||n.startsWith("data:"))return n;return i.setAttribute("href",n),i.href}function Bu(t,n,i,e){return e&&(i==="src"||i==="href"&&!(n==="use"&&e[0]==="#")||i==="xlink:href"&&e[0]!=="#"||i==="background"&&(n==="table"||n==="td"||n==="th")?ar(t,e):i==="srcset"?Ud(t,e):i==="style"?kn(e,Ts(t)):n==="object"&&i==="data"?ar(t,e):e)}function zu(t,n,i){return(t==="video"||t==="audio")&&n==="autoplay"}function zd(t,n,i){try{if(typeof n=="string"){if(t.classList.contains(n))return!0}else for(var e=t.classList.length;e--;){var r=t.classList[e];if(n.test(r))return!0}if(i)return t.matches(i)}catch(s){}return!1}function An(t,n,i){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return i?An(Re.parentNode(t),n,i):!1;for(var e=t.classList.length;e--;){var r=t.classList[e];if(n.test(r))return!0}return i?An(Re.parentNode(t),n,i):!1}function qu(t,n,i,e){var r;if(Tu(t)){if(r=t,!Re.childNodes(r).length)return!1}else{if(Re.parentElement(t)===null)return!1;r=Re.parentElement(t)}try{if(typeof n=="string"){if(e){if(r.closest("."+n))return!0}else if(r.classList.contains(n))return!0}else if(An(r,n,e))return!0;if(i){if(e){if(r.closest(i))return!0}else if(r.matches(i))return!0}}catch(s){}return!1}function qd(t,n,i){var e=t.contentWindow;if(e){var r=!1,s;try{s=e.document.readyState}catch(u){return}if(s!=="complete"){var o=setTimeout(function(){r||(n(),r=!0)},i);t.addEventListener("load",function(){clearTimeout(o),r=!0,n()});return}var a="about:blank";if(e.location.href!==a||t.src===a||t.src==="")return setTimeout(n,0),t.addEventListener("load",n);t.addEventListener("load",n)}}function Wd(t,n,i){var e=!1,r;try{r=t.sheet}catch(o){return}if(!r){var s=setTimeout(function(){e||(n(),e=!0)},i);t.addEventListener("load",function(){clearTimeout(s),e=!0,n()})}}function Gd(t,n){var i=n.doc,e=n.mirror,r=n.blockClass,s=n.blockSelector,o=n.needsMask,a=n.inlineStylesheet,u=n.maskInputOptions,c=u===void 0?{}:u,l=n.maskTextFn,f=n.maskInputFn,p=n.dataURLOptions,g=p===void 0?{}:p,v=n.inlineImages,y=n.recordCanvas,d=n.keepIframeSrcFn,m=n.newlyAddedElement,_=m===void 0?!1:m,b=n.cssCaptured,C=b===void 0?!1:b,S=Vd(i,e);switch(t.nodeType){case t.DOCUMENT_NODE:return t.compatMode!=="CSS1Compat"?{type:Ie.Document,childNodes:[],compatMode:t.compatMode}:{type:Ie.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:Ie.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:S};case t.ELEMENT_NODE:return Hd(t,{doc:i,blockClass:r,blockSelector:s,inlineStylesheet:a,maskInputOptions:c,maskInputFn:f,dataURLOptions:g,inlineImages:v,recordCanvas:y,keepIframeSrcFn:d,newlyAddedElement:_,rootId:S});case t.TEXT_NODE:return jd(t,{doc:i,needsMask:o,maskTextFn:l,rootId:S,cssCaptured:C});case t.CDATA_SECTION_NODE:return{type:Ie.CDATA,textContent:"",rootId:S};case t.COMMENT_NODE:return{type:Ie.Comment,textContent:Re.textContent(t)||"",rootId:S};default:return!1}}function Vd(t,n){if(n.hasNode(t)){var i=n.getId(t);return i===1?void 0:i}}function jd(t,n){var i=n.needsMask,e=n.maskTextFn,r=n.rootId,s=n.cssCaptured,o=Re.parentNode(t),a=o&&o.tagName,u="",c=a==="STYLE"?!0:void 0,l=a==="SCRIPT"?!0:void 0;return l?u="SCRIPT_PLACEHOLDER":s||(u=Re.textContent(t),c&&u&&(u=kn(u,Ts(n.doc)))),!c&&!l&&u&&i&&(u=e?e(u,Re.parentElement(t)):u.replace(/[\S]/g,"*")),{type:Ie.Text,textContent:u||"",rootId:r}}function Hd(t,n){for(var i=n.doc,e=n.blockClass,r=n.blockSelector,s=n.inlineStylesheet,o=n.maskInputOptions,a=o===void 0?{}:o,u=n.maskInputFn,c=n.dataURLOptions,l=c===void 0?{}:c,f=n.inlineImages,p=n.recordCanvas,g=n.keepIframeSrcFn,v=n.newlyAddedElement,y=v===void 0?!1:v,d=n.rootId,m=zd(t,e,r),_=Ld(t),b={},C=t.attributes.length,S=0;S<C;S++){var O=t.attributes[S];zu(_,O.name,O.value)||(b[O.name]=Bu(i,_,Ft(O.name),O.value))}if(_==="link"&&s){var A=Array.from(i.styleSheets).find(function(ze){return ze.href===t.href}),k=null;A&&(k=Ms(A)),k&&(delete b.rel,delete b.href,b._cssText=k)}if(_==="style"&&t.sheet){var $=Ms(t.sheet);$&&(t.childNodes.length>1&&($=Pd($,t)),b._cssText=$)}if(_==="input"||_==="textarea"||_==="select"){var W=t.value,ge=t.checked;b.type!=="radio"&&b.type!=="checkbox"&&b.type!=="submit"&&b.type!=="button"&&W?b.value=On({element:t,type:xn(t),tagName:_,value:W,maskInputOptions:a,maskInputFn:u}):ge&&(b.checked=ge)}if(_==="option"&&(t.selected&&!a.select?b.selected=!0:delete b.selected),_==="dialog"&&t.open&&(b.rr_open_mode=t.matches("dialog:modal")?"modal":"non-modal"),_==="canvas"&&p){if(t.__context==="2d")Od(t)||(b.rr_dataURL=t.toDataURL(l.type,l.quality));else if(!("__context"in t)){var L=t.toDataURL(l.type,l.quality),G=i.createElement("canvas");G.width=t.width,G.height=t.height;var de=G.toDataURL(l.type,l.quality);L!==de&&(b.rr_dataURL=L)}}if(_==="img"&&f){or||(or=i.createElement("canvas"),Fu=or.getContext("2d"));var Y=t,De=Y.currentSrc||Y.getAttribute("src")||"<unknown-src>",Ne=Y.crossOrigin,ke=function(){Y.removeEventListener("load",ke);try{or.width=Y.naturalWidth,or.height=Y.naturalHeight,Fu.drawImage(Y,0,0),b.rr_dataURL=or.toDataURL(l.type,l.quality)}catch(ze){if(Y.crossOrigin!=="anonymous"){Y.crossOrigin="anonymous",Y.complete&&Y.naturalWidth!==0?ke():Y.addEventListener("load",ke);return}else console.warn("Cannot inline img src="+De+"! Error: "+ze)}Y.crossOrigin==="anonymous"&&(Ne?b.crossOrigin=Ne:Y.removeAttribute("crossorigin"))};Y.complete&&Y.naturalWidth!==0?ke():Y.addEventListener("load",ke)}if(_==="audio"||_==="video"){var pe=b;pe.rr_mediaState=t.paused?"paused":"played",pe.rr_mediaCurrentTime=t.currentTime,pe.rr_mediaPlaybackRate=t.playbackRate,pe.rr_mediaMuted=t.muted,pe.rr_mediaLoop=t.loop,pe.rr_mediaVolume=t.volume}if(y||(t.scrollLeft&&(b.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(b.rr_scrollTop=t.scrollTop)),m){var xe=t.getBoundingClientRect(),Jt=xe.width,nt=xe.height;b={class:b.class,rr_width:""+Jt+"px",rr_height:""+nt+"px"}}_==="iframe"&&!g(b.src)&&(t.contentDocument||(b.rr_src=b.src),delete b.src);var Xt;try{customElements.get(_)&&(Xt=!0)}catch(ze){}return{type:Ie.Element,tagName:_,attributes:b,childNodes:[],isSVG:Bd(t)||void 0,needBlock:m,rootId:d,isCustom:Xt}}function te(t){return t==null?"":t.toLowerCase()}function Yd(t,n){if(n.comment&&t.type===Ie.Comment)return!0;if(t.type===Ie.Element){if(n.script&&(t.tagName==="script"||t.tagName==="link"&&(t.attributes.rel==="preload"&&t.attributes.as==="script"||t.attributes.rel==="modulepreload")||t.tagName==="link"&&t.attributes.rel==="prefetch"&&typeof t.attributes.href=="string"&&Lu(t.attributes.href)==="js"))return!0;if(n.headFavicon&&(t.tagName==="link"&&t.attributes.rel==="shortcut icon"||t.tagName==="meta"&&(te(t.attributes.name).match(/^msapplication-tile(image|color)$/)||te(t.attributes.name)==="application-name"||te(t.attributes.rel)==="icon"||te(t.attributes.rel)==="apple-touch-icon"||te(t.attributes.rel)==="shortcut icon")))return!0;if(t.tagName==="meta"){if(n.headMetaDescKeywords&&te(t.attributes.name).match(/^description|keywords$/))return!0;if(n.headMetaSocial&&(te(t.attributes.property).match(/^(og|twitter|fb):/)||te(t.attributes.name).match(/^(og|twitter):/)||te(t.attributes.name)==="pinterest"))return!0;if(n.headMetaRobots&&(te(t.attributes.name)==="robots"||te(t.attributes.name)==="googlebot"||te(t.attributes.name)==="bingbot"))return!0;if(n.headMetaHttpEquiv&&t.attributes["http-equiv"]!==void 0)return!0;if(n.headMetaAuthorship&&(te(t.attributes.name)==="author"||te(t.attributes.name)==="generator"||te(t.attributes.name)==="framework"||te(t.attributes.name)==="publisher"||te(t.attributes.name)==="progid"||te(t.attributes.property).match(/^article:/)||te(t.attributes.property).match(/^product:/)))return!0;if(n.headMetaVerification&&(te(t.attributes.name)==="google-site-verification"||te(t.attributes.name)==="yandex-verification"||te(t.attributes.name)==="csrf-token"||te(t.attributes.name)==="p:domain_verify"||te(t.attributes.name)==="verify-v1"||te(t.attributes.name)==="verification"||te(t.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function ur(t,n){var i=n.doc,e=n.mirror,r=n.blockClass,s=n.blockSelector,o=n.maskTextClass,a=n.maskTextSelector,u=n.skipChild,c=u===void 0?!1:u,l=n.inlineStylesheet,f=l===void 0?!0:l,p=n.maskInputOptions,g=p===void 0?{}:p,v=n.maskTextFn,y=n.maskInputFn,d=n.slimDOMOptions,m=n.dataURLOptions,_=m===void 0?{}:m,b=n.inlineImages,C=b===void 0?!1:b,S=n.recordCanvas,O=S===void 0?!1:S,A=n.onSerialize,k=n.onIframeLoad,$=n.iframeLoadTimeout,W=$===void 0?5e3:$,ge=n.onStylesheetLoad,L=n.stylesheetLoadTimeout,G=L===void 0?5e3:L,de=n.keepIframeSrcFn,Y=de===void 0?function(){return!1}:de,De=n.newlyAddedElement,Ne=De===void 0?!1:De,ke=n.cssCaptured,pe=ke===void 0?!1:ke,xe=n.needsMask,Jt=n.preserveWhiteSpace,nt=Jt===void 0?!0:Jt;if(!xe){var Xt=xe===void 0;xe=qu(t,o,a,Xt)}var ze=Gd(t,{doc:i,mirror:e,blockClass:r,blockSelector:s,needsMask:xe,inlineStylesheet:f,maskInputOptions:g,maskTextFn:v,maskInputFn:y,dataURLOptions:_,inlineImages:C,recordCanvas:O,keepIframeSrcFn:Y,newlyAddedElement:Ne,cssCaptured:pe});if(!ze)return console.warn(t,"not serialized"),null;var $t;e.hasNode(t)?$t=e.getId(t):Yd(ze,d)||!nt&&ze.type===Ie.Text&&!ze.textContent.replace(/^\s+|\s+$/gm,"").length?$t=Br:$t=Du();var J=Object.assign(ze,{id:$t});if(e.add(t,J),$t===Br)return null;A&&A(t);var Tr=!c;if(J.type===Ie.Element){Tr=Tr&&!J.needBlock,delete J.needBlock;var Pr=Re.shadowRoot(t);Pr&&Ur(Pr)&&(J.isShadowHost=!0)}if((J.type===Ie.Document||J.type===Ie.Element)&&Tr){d.headWhitespace&&J.type===Ie.Element&&J.tagName==="head"&&(nt=!1);var Nt={doc:i,mirror:e,blockClass:r,blockSelector:s,needsMask:xe,maskTextClass:o,maskTextSelector:a,skipChild:c,inlineStylesheet:f,maskInputOptions:g,maskTextFn:v,maskInputFn:y,slimDOMOptions:d,dataURLOptions:_,inlineImages:C,recordCanvas:O,preserveWhiteSpace:nt,onSerialize:A,onIframeLoad:k,iframeLoadTimeout:W,onStylesheetLoad:ge,stylesheetLoadTimeout:G,keepIframeSrcFn:Y,cssCaptured:!1};if(!(J.type===Ie.Element&&J.tagName==="textarea"&&J.attributes.value!==void 0)){J.type===Ie.Element&&J.attributes._cssText!==void 0&&typeof J.attributes._cssText=="string"&&(Nt.cssCaptured=!0);for(var ws=I(Array.from(Re.childNodes(t))),$r;!($r=ws()).done;){var bs=$r.value,Ss=ur(bs,Nt);Ss&&J.childNodes.push(Ss)}}var Sn=null;if(Tu(t)&&(Sn=Re.shadowRoot(t)))for(var Zt=I(Array.from(Re.childNodes(Sn))),Qt;!(Qt=Zt()).done;){var er=Qt.value,tr=ur(er,Nt);tr&&(Ur(Sn)&&(tr.isShadow=!0),J.childNodes.push(tr))}}var rr=Re.parentNode(t);return rr&&Fr(rr)&&Ur(rr)&&(J.isShadow=!0),J.type===Ie.Element&&J.tagName==="iframe"&&qd(t,function(){var pt=t.contentDocument;if(pt&&k){var Nr=ur(pt,{doc:pt,mirror:e,blockClass:r,blockSelector:s,needsMask:xe,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:g,maskTextFn:v,maskInputFn:y,slimDOMOptions:d,dataURLOptions:_,inlineImages:C,recordCanvas:O,preserveWhiteSpace:nt,onSerialize:A,onIframeLoad:k,iframeLoadTimeout:W,onStylesheetLoad:ge,stylesheetLoadTimeout:G,keepIframeSrcFn:Y});Nr&&k(t,Nr)}},W),J.type===Ie.Element&&J.tagName==="link"&&typeof J.attributes.rel=="string"&&(J.attributes.rel==="stylesheet"||J.attributes.rel==="preload"&&typeof J.attributes.href=="string"&&Lu(J.attributes.href)==="css")&&Wd(t,function(){if(ge){var pt=ur(t,{doc:i,mirror:e,blockClass:r,blockSelector:s,needsMask:xe,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:g,maskTextFn:v,maskInputFn:y,slimDOMOptions:d,dataURLOptions:_,inlineImages:C,recordCanvas:O,preserveWhiteSpace:nt,onSerialize:A,onIframeLoad:k,iframeLoadTimeout:W,onStylesheetLoad:ge,stylesheetLoadTimeout:G,keepIframeSrcFn:Y});pt&&ge(t,pt)}},G),J}function Kd(t,n){var i=n||{},e=i.mirror,r=e===void 0?new $u:e,s=i.blockClass,o=s===void 0?"rr-block":s,a=i.blockSelector,u=a===void 0?null:a,c=i.maskTextClass,l=c===void 0?"rr-mask":c,f=i.maskTextSelector,p=f===void 0?null:f,g=i.inlineStylesheet,v=g===void 0?!0:g,y=i.inlineImages,d=y===void 0?!1:y,m=i.recordCanvas,_=m===void 0?!1:m,b=i.maskAllInputs,C=b===void 0?!1:b,S=i.maskTextFn,O=i.maskInputFn,A=i.slimDOM,k=A===void 0?!1:A,$=i.dataURLOptions,W=i.preserveWhiteSpace,ge=i.onSerialize,L=i.onIframeLoad,G=i.iframeLoadTimeout,de=i.onStylesheetLoad,Y=i.stylesheetLoadTimeout,De=i.keepIframeSrcFn,Ne=De===void 0?function(){return!1}:De,ke=C===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:C===!1?{password:!0}:C,pe=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 ur(t,{doc:t,mirror:r,blockClass:o,blockSelector:u,maskTextClass:l,maskTextSelector:p,skipChild:!1,inlineStylesheet:v,maskInputOptions:ke,maskTextFn:S,maskInputFn:O,slimDOMOptions:pe,dataURLOptions:$,inlineImages:d,recordCanvas:_,preserveWhiteSpace:W,onSerialize:ge,onIframeLoad:L,iframeLoadTimeout:G,onStylesheetLoad:de,stylesheetLoadTimeout:Y,keepIframeSrcFn:Ne,newlyAddedElement:!1})}function Jd(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Xd(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var i=function e(){return M(this,e)?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(t).forEach(function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(i,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}),i}var Ps={exports:{}},se=String,Wu=function(){return{isColorSupported:!1,reset:se,bold:se,dim:se,italic:se,underline:se,inverse:se,hidden:se,strikethrough:se,black:se,red:se,green:se,yellow:se,blue:se,magenta:se,cyan:se,white:se,gray:se,bgBlack:se,bgRed:se,bgGreen:se,bgYellow:se,bgBlue:se,bgMagenta:se,bgCyan:se,bgWhite:se}};Ps.exports=Wu(),Ps.exports.createColors=Wu;var Zd=Ps.exports,Qd={},ev=Object.freeze(Object.defineProperty({__proto__:null,default:Qd},Symbol.toStringTag,{value:"Module"})),me=Xd(ev),Gu=Zd,Vu=me,$s=(function(t){ce(n,t);function n(e,r,s,o,a,u){var c;return c=t.call(this,e)||this,c.name="CssSyntaxError",c.reason=e,a&&(c.file=a),o&&(c.source=o),u&&(c.plugin=u),typeof r!="undefined"&&typeof s!="undefined"&&(typeof r=="number"?(c.line=r,c.column=s):(c.line=r.line,c.column=r.column,c.endLine=s.line,c.endColumn=s.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 s=this;if(!this.source)return"";var o=this.source;r==null&&(r=Gu.isColorSupported),Vu&&r&&(o=Vu(o));var a=o.split(/\r?\n/),u=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),l=String(c).length,f,p;if(r){var g=Gu.createColors(!0),v=g.bold,y=g.gray,d=g.red;f=function(m){return v(d(m))},p=function(m){return y(m)}}else f=p=function(m){return m};return a.slice(u,c).map(function(m,_){var b=u+1+_,C=" "+(" "+b).slice(-l)+" | ";if(b===s.line){var S=p(C.replace(/\d/g," "))+m.slice(0,s.column-1).replace(/[^\t]/g," ");return f(">")+p(C)+m+"\n "+S+f("^")}return" "+p(C)+m}).join("\n")},i.toString=function(){var r=this.showSourceCode();return r&&(r="\n\n"+r+"\n"),this.name+": "+this.message+r},n})(Dr(Error)),Ns=$s;$s.default=$s;var gt={};gt.isClean=Symbol("isClean"),gt.my=Symbol("my");var ju={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function tv(t){return t[0].toUpperCase()+t.slice(1)}var Ls=(function(){function t(i){this.builder=i}var n=t.prototype;return n.atrule=function(e,r){var s="@"+e.name,o=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?s+=e.raws.afterName:o&&(s+=" "),e.nodes)this.block(e,s+o);else{var a=(e.raws.between||"")+(r?";":"");this.builder(s+o+a,e)}},n.beforeAfter=function(e,r){var s;e.type==="decl"?s=this.raw(e,null,"beforeDecl"):e.type==="comment"?s=this.raw(e,null,"beforeComment"):r==="before"?s=this.raw(e,null,"beforeRule"):s=this.raw(e,null,"beforeClose");for(var o=e.parent,a=0;o&&o.type!=="root";)a+=1,o=o.parent;if(s.includes("\n")){var u=this.raw(e,null,"indent");if(u.length)for(var c=0;c<a;c++)s+=u}return s},n.block=function(e,r){var s=this.raw(e,"between","beforeOpen");this.builder(r+s+"{",e,"start");var o;e.nodes&&e.nodes.length?(this.body(e),o=this.raw(e,"after")):o=this.raw(e,"after","emptyBody"),o&&this.builder(o),this.builder("}",e,"end")},n.body=function(e){for(var r=e.nodes.length-1;r>0&&e.nodes[r].type==="comment";)r-=1;for(var s=this.raw(e,"semicolon"),o=0;o<e.nodes.length;o++){var a=e.nodes[o],u=this.raw(a,"before");u&&this.builder(u),this.stringify(a,r!==o||s)}},n.comment=function(e){var r=this.raw(e,"left","commentLeft"),s=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+s+"*/",e)},n.decl=function(e,r){var s=this.raw(e,"between","colon"),o=e.prop+s+this.rawValue(e,"value");e.important&&(o+=e.raws.important||" !important"),r&&(o+=";"),this.builder(o,e)},n.document=function(e){this.body(e)},n.raw=function(e,r,s){var o;if(s||(s=r),r&&(o=e.raws[r],typeof o!="undefined"))return o;var a=e.parent;if(s==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return ju[s];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[s]!="undefined")return u.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(e,s);var c="raw"+tv(s);return this[c]?o=this[c](u,e):u.walk(function(l){if(o=l.raws[r],typeof o!="undefined")return!1}),typeof o=="undefined"&&(o=ju[s]),u.rawCache[s]=o,o},n.rawBeforeClose=function(e){var r;return e.walk(function(s){if(s.nodes&&s.nodes.length>0&&typeof s.raws.after!="undefined")return r=s.raws.after,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(e,r){var s;return e.walkComments(function(o){if(typeof o.raws.before!="undefined")return s=o.raws.before,s.includes("\n")&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s=="undefined"?s=this.raw(r,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s},n.rawBeforeDecl=function(e,r){var s;return e.walkDecls(function(o){if(typeof o.raws.before!="undefined")return s=o.raws.before,s.includes("\n")&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s=="undefined"?s=this.raw(r,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s},n.rawBeforeOpen=function(e){var r;return e.walk(function(s){if(s.type!=="decl"&&(r=s.raws.between,typeof r!="undefined"))return!1}),r},n.rawBeforeRule=function(e){var r;return e.walk(function(s){if(s.nodes&&(s.parent!==e||e.first!==s)&&typeof s.raws.before!="undefined")return r=s.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawColon=function(e){var r;return e.walkDecls(function(s){if(typeof s.raws.between!="undefined")return r=s.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(e){var r;return e.walk(function(s){if(s.nodes&&s.nodes.length===0&&(r=s.raws.after,typeof r!="undefined"))return!1}),r},n.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var r;return e.walk(function(s){var o=s.parent;if(o&&o!==e&&o.parent&&o.parent===e&&typeof s.raws.before!="undefined"){var a=s.raws.before.split("\n");return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r},n.rawSemicolon=function(e){var r;return e.walk(function(s){if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(r=s.raws.semicolon,typeof r!="undefined"))return!1}),r},n.rawValue=function(e,r){var s=e[r],o=e.raws[r];return o&&o.value===s?o.raw:s},n.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},n.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},n.stringify=function(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)},t})(),Hu=Ls;Ls.default=Ls;var rv=Hu;function Ds(t,n){var i=new rv(n);i.stringify(t)}var Mn=Ds;Ds.default=Ds;var Tn=gt.isClean,nv=gt.my,iv=Ns,sv=Hu,ov=Mn;function Fs(t,n){var i=new t.constructor;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&e!=="proxyCache"){var r=t[e],s=typeof r=="undefined"?"undefined":T(r);e==="parent"&&s==="object"?n&&(i[e]=n):e==="source"?i[e]=r:Array.isArray(r)?i[e]=r.map(function(o){return Fs(o,i)}):(s==="object"&&r!==null&&(r=Fs(r)),i[e]=r)}return i}var Us=(function(){function t(i){i===void 0&&(i={}),this.raws={},this[Tn]=!1,this[nv]=!0;for(var e in i)if(e==="nodes"){this.nodes=[];for(var r=I(i[e]),s;!(s=r()).done;){var o=s.value;typeof o.clone=="function"?this.append(o.clone()):this.append(o)}}else this[e]=i[e]}var n=t.prototype;return n.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return e},n.after=function(e){return this.parent.insertAfter(this,e),this},n.assign=function(e){e===void 0&&(e={});for(var r in e)this[r]=e[r];return this},n.before=function(e){return this.parent.insertBefore(this,e),this},n.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},n.clone=function(e){e===void 0&&(e={});var r=Fs(this);for(var s in e)r[s]=e[s];return r},n.cloneAfter=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertAfter(this,r),r},n.cloneBefore=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertBefore(this,r),r},n.error=function(e,r){if(r===void 0&&(r={}),this.source){var s=this.rangeBy(r),o=s.end,a=s.start;return this.source.input.error(e,{column:a.column,line:a.line},{column:o.column,line:o.line},r)}return new iv(e)},n.getProxyProcessor=function(){return{get:function(r,s){return s==="proxyOf"?r:s==="root"?function(){return r.root().toProxy()}:r[s]},set:function(r,s,o){return r[s]===o||(r[s]=o,(s==="prop"||s==="value"||s==="name"||s==="params"||s==="important"||s==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[Tn]){this[Tn]=!1;for(var e=this;e=e.parent;)e[Tn]=!1}},n.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},n.positionBy=function(e,r){var s=this.source.start;if(e.index)s=this.positionInside(e.index,r);else if(e.word){r=this.toString();var o=r.indexOf(e.word);o!==-1&&(s=this.positionInside(o,r))}return s},n.positionInside=function(e,r){for(var s=r||this.toString(),o=this.source.start.column,a=this.source.start.line,u=0;u<e;u++)s[u]==="\n"?(o=1,a+=1):o+=1;return{column:o,line:a}},n.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},n.rangeBy=function(e){var r={column:this.source.start.column,line:this.source.start.line},s=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(e.word){var o=this.toString(),a=o.indexOf(e.word);a!==-1&&(r=this.positionInside(a,o),s=this.positionInside(a+e.word.length,o))}else e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=this.positionInside(e.index)),e.end?s={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?s=this.positionInside(e.endIndex):e.index&&(s=this.positionInside(e.index+1));return(s.line<r.line||s.line===r.line&&s.column<=r.column)&&(s={column:r.column+1,line:r.line}),{end:s,start:r}},n.raw=function(e,r){var s=new sv;return s.raw(this,e,r)},n.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},n.replaceWith=function(){for(var e=arguments.length,r=new Array(e),s=0;s<e;s++)r[s]=arguments[s];if(this.parent){for(var o=this,a=!1,u=I(r),c;!(c=u()).done;){var l=c.value;l===this?a=!0:a?(this.parent.insertAfter(o,l),o=l):this.parent.insertBefore(o,l)}a||this.remove()}return this},n.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},n.toJSON=function(e,r){var s={},o=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))s[u]=c.map(function(f){return(typeof f=="undefined"?"undefined":T(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof c=="undefined"?"undefined":T(c))==="object"&&c.toJSON)s[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++),s[u]={end:c.end,inputId:l,start:c.start}}else s[u]=c}return o&&(s.inputs=[].concat(r.keys()).map(function(f){return f.toJSON()})),s},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(e){e===void 0&&(e=ov),e.stringify&&(e=e.stringify);var r="";return e(this,function(s){r+=s}),r},n.warn=function(e,r,s){var o={node:this};for(var a in s)o[a]=s[a];return e.warn(r,o)},ie(t,[{key:"proxyOf",get:function(){return this}}]),t})(),Pn=Us;Us.default=Us;var av=Pn,Bs=(function(t){ce(n,t);function n(i){var e;return i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=z({},i,{value:String(i.value)})),e=t.call(this,i)||this,e.type="decl",e}return ie(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n})(av),$n=Bs;Bs.default=Bs;var uv="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",cv=function(t){t===void 0&&(t=21);for(var n="",i=t;i--;)n+=uv[Math.random()*64|0];return n},lv={nanoid:cv},Yu=me.SourceMapConsumer,Ku=me.SourceMapGenerator,fv=me.existsSync,hv=me.readFileSync,zs=me.dirname,pv=me.join;function dv(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var qs=(function(){function t(i,e){if(e.map!==!1){this.loadAnnotation(i),this.inline=this.startWith(this.annotation,"data:");var r=e.map?e.map.prev:void 0,s=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=zs(this.mapFile)),s&&(this.text=s)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new Yu(this.text)),this.consumerCache},n.decodeInline=function(e){var r=/^data:application\/json;charset=utf-?8;base64,/,s=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(o.test(e)||a.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(r.test(e)||s.test(e))return dv(e.substr(RegExp.lastMatch.length));var u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},n.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(e){return(typeof e=="undefined"?"undefined":T(e))!=="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)},n.loadAnnotation=function(e){var r=e.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var s=e.lastIndexOf(r.pop()),o=e.indexOf("*/",s);s>-1&&o>-1&&(this.annotation=this.getAnnotationURL(e.substring(s,o)))}},n.loadFile=function(e){if(this.root=zs(e),fv(e))return this.mapFile=e,hv(e,"utf-8").toString().trim()},n.loadMap=function(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){var s=r(e);if(s){var o=this.loadFile(s);if(!o)throw new Error("Unable to load previous source map: "+s.toString());return o}}else{if(M(r,Yu))return Ku.fromSourceMap(r).toString();if(M(r,Ku))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 e&&(a=pv(zs(e),a)),this.loadFile(a)}}},n.startWith=function(e,r){return e?e.substr(0,r.length)===r:!1},n.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t})(),Ju=qs;qs.default=qs;var vv=me.SourceMapConsumer,gv=me.SourceMapGenerator,Xu=me.fileURLToPath,Nn=me.pathToFileURL,Ws=me.isAbsolute,Gs=me.resolve,mv=lv.nanoid,Vs=me,Zu=Ns,yv=Ju,js=Symbol("fromOffsetCache"),_v=!!(vv&&gv),Qu=!!(Gs&&Ws),Ln=(function(){function t(i,e){if(e===void 0&&(e={}),i===null||typeof i=="undefined"||(typeof i=="undefined"?"undefined":T(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,e.from&&(!Qu||/^\w+:\/\//.test(e.from)||Ws(e.from)?this.file=e.from:this.file=Gs(e.from)),Qu&&_v){var r=new yv(this.css,e);if(r.text){this.map=r;var s=r.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+mv(6)+">"),this.map&&(this.map.file=this.from)}var n=t.prototype;return n.error=function(e,r,s,o){o===void 0&&(o={});var a,u,c;if(r&&(typeof r=="undefined"?"undefined":T(r))==="object"){var l=r,f=s;if(typeof l.offset=="number"){var p=this.fromOffset(l.offset);r=p.line,s=p.col}else r=l.line,s=l.column;if(typeof f.offset=="number"){var g=this.fromOffset(f.offset);u=g.line,c=g.col}else u=f.line,c=f.column}else if(!s){var v=this.fromOffset(r);r=v.line,s=v.col}var y=this.origin(r,s,u,c);return y?a=new Zu(e,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,o.plugin):a=new Zu(e,u===void 0?r:{column:s,line:r},u===void 0?s:{column:c,line:u},this.css,this.file,o.plugin),a.input={column:s,endColumn:c,endLine:u,line:r,source:this.css},this.file&&(Nn&&(a.input.url=Nn(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(e){var r,s;if(this[js])s=this[js];else{var o=this.css.split("\n");s=new Array(o.length);for(var a=0,u=0,c=o.length;u<c;u++)s[u]=a,a+=o[u].length+1;this[js]=s}r=s[s.length-1];var l=0;if(e>=r)l=s.length-1;else for(var f=s.length-2,p;l<f;)if(p=l+(f-l>>1),e<s[p])f=p-1;else if(e>=s[p+1])l=p+1;else{l=p;break}return{col:e-s[l]+1,line:l+1}},n.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Gs(this.map.consumer().sourceRoot||this.map.root||".",e)},n.origin=function(e,r,s,o){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:r,line:e});if(!u.source)return!1;var c;typeof s=="number"&&(c=a.originalPositionFor({column:o,line:s}));var l;Ws(u.source)?l=Nn(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||Nn(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(Xu)f.file=Xu(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 e={},r=0,s=["hasBOM","css","file","id"];r<s.length;r++){var o=s[r];this[o]!=null&&(e[o]=this[o])}return this.map&&(e.map=z({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},ie(t,[{key:"from",get:function(){return this.file||this.id}}]),t})(),Dn=Ln;Ln.default=Ln,Vs&&Vs.registerInput&&Vs.registerInput(Ln);var ec=me.SourceMapConsumer,Fn=me.SourceMapGenerator,Un=me.dirname,tc=me.relative,rc=me.resolve,nc=me.sep,ic=me.pathToFileURL,wv=Dn,bv=!!(ec&&Fn),Sv=!!(Un&&rc&&tc&&nc),Cv=(function(){function t(i,e,r,s){this.stringify=i,this.mapOpts=r.map||{},this.root=e,this.opts=r,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var n=t.prototype;return n.addAnnotation=function(){var e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";var r="\n";this.css.includes("\r\n")&&(r="\r\n"),this.css+=r+"/*# sourceMappingURL="+e+" */"},n.applyPrevMaps=function(){for(var e=I(this.previous()),r;!(r=e()).done;){var s=r.value,o=this.toUrl(this.path(s.file)),a=s.root||Un(s.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new ec(s.text),u.sourcesContent&&(u.sourcesContent=null)):u=s.consumer(),this.map.applySourceMap(u,o,this.toUrl(this.path(a)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.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(),Sv&&bv&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(r){e+=r}),[e]},n.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Fn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Fn({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 e=this;this.css="",this.map=new Fn({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,s=1,o="<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(e.css+=l,f&&p!=="end"&&(a.generated.line=r,a.generated.column=s-1,f.source&&f.source.start?(a.source=e.sourcePath(f),a.original.line=f.source.start.line,a.original.column=f.source.start.column-1,e.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,e.map.addMapping(a))),u=l.match(/\n/g),u?(r+=u.length,c=l.lastIndexOf("\n"),s=l.length-c):s+=l.length,f&&p!=="start"){var g=f.parent||{raws:{}},v=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!v||f!==g.last||g.raws.semicolon)&&(f.source&&f.source.end?(a.source=e.sourcePath(f),a.original.line=f.source.end.line,a.original.column=f.source.end.column-1,a.generated.line=r,a.generated.column=s-2,e.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=s-1,e.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(e){return e.annotation}):!0},n.isInline=function(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;var e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!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(e){return e.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(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var r=this.memoizedPaths.get(e);if(r)return r;var s=this.opts.to?Un(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(s=Un(rc(s,this.mapOpts.annotation)));var o=tc(s,e);return this.memoizedPaths.set(e,o),o},n.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(s){if(s.source&&s.source.input.map){var o=s.source.input.map;e.previousMaps.includes(o)||e.previousMaps.push(o)}});else{var r=new wv(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},n.setSourcesContent=function(){var e=this,r={};if(this.root)this.root.walk(function(o){if(o.source){var a=o.source.input.from;if(a&&!r[a]){r[a]=!0;var u=e.usesFileUrls?e.toFileUrl(a):e.toUrl(e.path(a));e.map.setSourceContent(u,o.source.input.css)}}});else if(this.css){var s=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(s,this.css)}},n.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},n.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},n.toFileUrl=function(e){var r=this.memoizedFileURLs.get(e);if(r)return r;if(ic){var s=ic(e).toString();return this.memoizedFileURLs.set(e,s),s}else throw new Error("`map.absolute` option is not available in this PostCSS build")},n.toUrl=function(e){var r=this.memoizedURLs.get(e);if(r)return r;nc==="\\"&&(e=e.replace(/\\/g,"/"));var s=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,s),s},t})(),sc=Cv,Ev=Pn,Hs=(function(t){ce(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="comment",e}return n})(Ev),Bn=Hs;Hs.default=Hs;var oc=gt.isClean,ac=gt.my,uc=$n,cc=Bn,Iv=Pn,lc,Ys,Ks,fc;function hc(t){return t.map(function(n){return n.nodes&&(n.nodes=hc(n.nodes)),delete n.source,n})}function pc(t){if(t[oc]=!1,t.proxyOf.nodes)for(var n=I(t.proxyOf.nodes),i;!(i=n()).done;){var e=i.value;pc(e)}}var it=(function(t){ce(n,t);function n(){return t.apply(this,arguments)||this}var i=n.prototype;return i.append=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];for(var a=I(s),u;!(u=a()).done;)for(var c=u.value,l=this.normalize(c,this.last),f=I(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.push(g)}return this.markDirty(),this},i.cleanRaws=function(r){if(t.prototype.cleanRaws.call(this,r),this.nodes)for(var s=I(this.nodes),o;!(o=s()).done;){var a=o.value;a.cleanRaws(r)}},i.each=function(r){if(this.proxyOf.nodes){for(var s=this.getIterator(),o,a;this.indexes[s]<this.proxyOf.nodes.length&&(o=this.indexes[s],a=r(this.proxyOf.nodes[o],o),a!==!1);)this.indexes[s]+=1;return delete this.indexes[s],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(s,o){return o==="proxyOf"?s:s[o]?o==="each"||typeof o=="string"&&o.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=s)[o].apply(l,[].concat(u.map(function(f){return typeof f=="function"?function(p,g){return f(p.toProxy(),g)}:f})))}:o==="every"||o==="some"?function(a){return s[o](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))})}:o==="root"?function(){return s.root().toProxy()}:o==="nodes"?s.nodes.map(function(a){return a.toProxy()}):o==="first"||o==="last"?s[o].toProxy():s[o]:s[o]},set:function(s,o,a){return s[o]===a||(s[o]=a,(o==="name"||o==="params"||o==="selector")&&s.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,s){var o=this.index(r),a=this.normalize(s,this.proxyOf.nodes[o]).reverse();o=this.index(r);for(var u=I(a),c;!(c=u()).done;){var l=c.value;this.proxyOf.nodes.splice(o+1,0,l)}var f;for(var p in this.indexes)f=this.indexes[p],o<f&&(this.indexes[p]=f+a.length);return this.markDirty(),this},i.insertBefore=function(r,s){var o=this.index(r),a=o===0?"prepend":!1,u=this.normalize(s,this.proxyOf.nodes[o],a).reverse();o=this.index(r);for(var c=I(u),l;!(l=c()).done;){var f=l.value;this.proxyOf.nodes.splice(o,0,f)}var p;for(var g in this.indexes)p=this.indexes[g],o<=p&&(this.indexes[g]=p+u.length);return this.markDirty(),this},i.normalize=function(r,s){var o=this;if(typeof r=="string")r=hc(lc(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=I(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=I(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 uc(r)]}else if(r.selector)r=[new Ys(r)];else if(r.name)r=[new Ks(r)];else if(r.text)r=[new cc(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(v){return v[ac]||n.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[oc]&&pc(v),typeof v.raws.before=="undefined"&&s&&typeof s.raws.before!="undefined"&&(v.raws.before=s.raws.before.replace(/\S/g,"")),v.parent=o.proxyOf,v});return g},i.prepend=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];s=s.reverse();for(var a=I(s),u;!(u=a()).done;){for(var c=u.value,l=this.normalize(c,this.first,"prepend").reverse(),f=I(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.unshift(g)}for(var v in this.indexes)this.indexes[v]=this.indexes[v]+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=I(this.proxyOf.nodes),s;!(s=r()).done;){var o=s.value;o.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 s;for(var o in this.indexes)s=this.indexes[o],s>=r&&(this.indexes[o]=s-1);return this.markDirty(),this},i.replaceValues=function(r,s,o){return o||(o=s,s={}),this.walkDecls(function(a){s.props&&!s.props.includes(a.prop)||s.fast&&!a.value.includes(s.fast)||(a.value=a.value.replace(r,o))}),this.markDirty(),this},i.some=function(r){return this.nodes.some(r)},i.walk=function(r){return this.each(function(s,o){var a;try{a=r(s,o)}catch(u){throw s.addToError(u)}return a!==!1&&s.walk&&(a=s.walk(r)),a})},i.walkAtRules=function(r,s){return s?M(r,RegExp)?this.walk(function(o,a){if(o.type==="atrule"&&r.test(o.name))return s(o,a)}):this.walk(function(o,a){if(o.type==="atrule"&&o.name===r)return s(o,a)}):(s=r,this.walk(function(o,a){if(o.type==="atrule")return s(o,a)}))},i.walkComments=function(r){return this.walk(function(s,o){if(s.type==="comment")return r(s,o)})},i.walkDecls=function(r,s){return s?M(r,RegExp)?this.walk(function(o,a){if(o.type==="decl"&&r.test(o.prop))return s(o,a)}):this.walk(function(o,a){if(o.type==="decl"&&o.prop===r)return s(o,a)}):(s=r,this.walk(function(o,a){if(o.type==="decl")return s(o,a)}))},i.walkRules=function(r,s){return s?M(r,RegExp)?this.walk(function(o,a){if(o.type==="rule"&&r.test(o.selector))return s(o,a)}):this.walk(function(o,a){if(o.type==="rule"&&o.selector===r)return s(o,a)}):(s=r,this.walk(function(o,a){if(o.type==="rule")return s(o,a)}))},ie(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})(Iv);it.registerParse=function(t){lc=t},it.registerRule=function(t){Ys=t},it.registerAtRule=function(t){Ks=t},it.registerRoot=function(t){fc=t};var Ut=it;it.default=it,it.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,Ks.prototype):t.type==="rule"?Object.setPrototypeOf(t,Ys.prototype):t.type==="decl"?Object.setPrototypeOf(t,uc.prototype):t.type==="comment"?Object.setPrototypeOf(t,cc.prototype):t.type==="root"&&Object.setPrototypeOf(t,fc.prototype),t[ac]=!0,t.nodes&&t.nodes.forEach(function(n){it.rebuild(n)})};var Ov=Ut,dc,vc,zr=(function(t){ce(n,t);function n(e){var r;return r=t.call(this,z({type:"document"},e))||this,r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.toResult=function(r){r===void 0&&(r={});var s=new dc(new vc,this,r);return s.stringify()},n})(Ov);zr.registerLazyResult=function(t){dc=t},zr.registerProcessor=function(t){vc=t};var Js=zr;zr.default=zr;var gc={},mc=function(n){gc[n]||(gc[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},Xs=(function(){function t(i,e){if(e===void 0&&(e={}),this.type="warning",this.text=i,e.node&&e.node.source){var r=e.node.rangeBy(e);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var s in e)this[s]=e[s]}var n=t.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},t})(),yc=Xs;Xs.default=Xs;var xv=yc,Zs=(function(){function t(i,e,r){this.processor=i,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}var n=t.prototype;return n.toString=function(){return this.css},n.warn=function(e,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var s=new xv(e,r);return this.messages.push(s),s},n.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},ie(t,[{key:"content",get:function(){return this.css}}]),t})(),Qs=Zs;Zs.default=Zs;var eo=39,_c=34,zn=92,wc=47,qn=10,qr=32,Wn=12,Gn=9,Vn=13,kv=91,Rv=93,Av=40,Mv=41,Tv=123,Pv=125,$v=59,Nv=42,Lv=58,Dv=64,jn=/[\t\n\f\r "#'()/;[\\\]{}]/g,Hn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Fv=/.[\r\n"'(/\\]/,bc=/[\da-f]/i,Uv=function(n,i){i===void 0&&(i={});var e=n.css.valueOf(),r=i.ignoreErrors,s,o,a,u,c,l,f,p,g,v,y=e.length,d=0,m=[],_=[];function b(){return d}function C(k){throw n.error("Unclosed "+k,d)}function S(){return _.length===0&&d>=y}function O(k){if(_.length)return _.pop();if(!(d>=y)){var $=k?k.ignoreUnclosed:!1;switch(s=e.charCodeAt(d),s){case qn:case qr:case Gn:case Vn:case Wn:{o=d;do o+=1,s=e.charCodeAt(o);while(s===qr||s===qn||s===Gn||s===Vn||s===Wn);v=["space",e.slice(d,o)],d=o-1;break}case kv:case Rv:case Tv:case Pv:case Lv:case $v:case Mv:{var W=String.fromCharCode(s);v=[W,W,d];break}case Av:{if(p=m.length?m.pop()[1]:"",g=e.charCodeAt(d+1),p==="url"&&g!==eo&&g!==_c&&g!==qr&&g!==qn&&g!==Gn&&g!==Wn&&g!==Vn){o=d;do{if(l=!1,o=e.indexOf(")",o+1),o===-1)if(r||$){o=d;break}else C("bracket");for(f=o;e.charCodeAt(f-1)===zn;)f-=1,l=!l}while(l);v=["brackets",e.slice(d,o+1),d,o],d=o}else o=e.indexOf(")",d+1),u=e.slice(d,o+1),o===-1||Fv.test(u)?v=["(","(",d]:(v=["brackets",u,d,o],d=o);break}case eo:case _c:{a=s===eo?"'":'"',o=d;do{if(l=!1,o=e.indexOf(a,o+1),o===-1)if(r||$){o=d+1;break}else C("string");for(f=o;e.charCodeAt(f-1)===zn;)f-=1,l=!l}while(l);v=["string",e.slice(d,o+1),d,o],d=o;break}case Dv:{jn.lastIndex=d+1,jn.test(e),jn.lastIndex===0?o=e.length-1:o=jn.lastIndex-2,v=["at-word",e.slice(d,o+1),d,o],d=o;break}case zn:{for(o=d,c=!0;e.charCodeAt(o+1)===zn;)o+=1,c=!c;if(s=e.charCodeAt(o+1),c&&s!==wc&&s!==qr&&s!==qn&&s!==Gn&&s!==Vn&&s!==Wn&&(o+=1,bc.test(e.charAt(o)))){for(;bc.test(e.charAt(o+1));)o+=1;e.charCodeAt(o+1)===qr&&(o+=1)}v=["word",e.slice(d,o+1),d,o],d=o;break}default:{s===wc&&e.charCodeAt(d+1)===Nv?(o=e.indexOf("*/",d+2)+1,o===0&&(r||$?o=e.length:C("comment")),v=["comment",e.slice(d,o+1),d,o],d=o):(Hn.lastIndex=d+1,Hn.test(e),Hn.lastIndex===0?o=e.length-1:o=Hn.lastIndex-2,v=["word",e.slice(d,o+1),d,o],m.push(v),d=o);break}}return d++,v}}function A(k){_.push(k)}return{back:A,endOfFile:S,nextToken:O,position:b}},Sc=Ut,Yn=(function(t){ce(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="atrule",r}var i=n.prototype;return i.append=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.append).call.apply(a,[].concat([this],s))},i.prepend=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.prepend).call.apply(a,[].concat([this],s))},n})(Sc),to=Yn;Yn.default=Yn,Sc.registerAtRule(Yn);var Cc=Ut,Ec,Ic,cr=(function(t){ce(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="root",r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.normalize=function(r,s,o){var a=t.prototype.normalize.call(this,r);if(s){if(o==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(var u=I(a),c;!(c=u()).done;){var l=c.value;l.raws.before=s.raws.before}}return a},i.removeChild=function(r,s){var o=this.index(r);return!s&&o===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[o].raws.before),t.prototype.removeChild.call(this,r)},i.toResult=function(r){r===void 0&&(r={});var s=new Ec(new Ic,this,r);return s.stringify()},n})(Cc);cr.registerLazyResult=function(t){Ec=t},cr.registerProcessor=function(t){Ic=t};var Wr=cr;cr.default=cr,Cc.registerRoot(cr);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,e){for(var r=[],s="",o=!1,a=0,u=!1,c="",l=!1,f=I(n),p;!(p=f()).done;){var g=p.value;l?l=!1:g==="\\"?l=!0:u?g===c&&(u=!1):g==='"'||g==="'"?(u=!0,c=g):g==="("?a+=1:g===")"?a>0&&(a-=1):a===0&&i.includes(g)&&(o=!0),o?(s!==""&&r.push(s.trim()),s="",o=!1):s+=g}return(e||s!=="")&&r.push(s.trim()),r}},Oc=Gr;Gr.default=Gr;var xc=Ut,Bv=Oc,Kn=(function(t){ce(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return ie(n,[{key:"selectors",get:function(){return Bv.comma(this.selector)},set:function(e){var r=this.selector?this.selector.match(/,\s*/):null,s=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(s)}}]),n})(xc),ro=Kn;Kn.default=Kn,xc.registerRule(Kn);var zv=$n,qv=Uv,Wv=Bn,Gv=to,Vv=Wr,kc=ro,Rc={empty:!0,space:!0};function jv(t){for(var n=t.length-1;n>=0;n--){var i=t[n],e=i[3]||i[2];if(e)return e}}var Hv=(function(){function t(i){this.input=i,this.root=new Vv,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=t.prototype;return n.atrule=function(e){var r=new Gv;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);for(var s,o,a,u=!1,c=!1,l=[],f=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),s=e[0],s==="("||s==="["?f.push(s==="("?")":"]"):s==="{"&&f.length>0?f.push("}"):s===f[f.length-1]&&f.pop(),f.length===0)if(s===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(s==="{"){c=!0;break}else if(s==="}"){if(l.length>0){for(a=l.length-1,o=l[a];o&&o[0]==="space";)o=l[--a];o&&(r.source.end=this.getPosition(o[3]||o[2]),r.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);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&&(e=l[l.length-1],r.source.end=this.getPosition(e[3]||e[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(e){var r=this.colon(e);if(r!==!1){for(var s=0,o,a=r-1;a>=0&&(o=e[a],!(o[0]!=="space"&&(s+=1,s===2)));a--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}},n.colon=function(e){for(var r=0,s,o,a,u=I(e.entries()),c;!(c=u()).done;){var l=c.value,f=l[0],p=l[1];if(s=p,o=s[0],o==="("&&(r+=1),o===")"&&(r-=1),r===0&&o===":")if(!a)this.doubleColon(s);else{if(a[0]==="word"&&a[1]==="progid")continue;return f}a=s}return!1},n.comment=function(e){var r=new Wv;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;var s=e[1].slice(2,-2);if(/^\s*$/.test(s))r.text="",r.raws.left=s,r.raws.right="";else{var o=s.match(/^(\s*)([^]*\S)(\s*)$/);r.text=o[2],r.raws.left=o[1],r.raws.right=o[3]}},n.createTokenizer=function(){this.tokenizer=qv(this.input)},n.decl=function(e,r){var s=new zv;this.init(s,e[0][2]);var o=e[e.length-1];for(o[0]===";"&&(this.semicolon=!0,e.pop()),s.source.end=this.getPosition(o[3]||o[2]||jv(e)),s.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),s.raws.before+=e.shift()[1];for(s.source.start=this.getPosition(e[0][2]),s.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;s.prop+=e.shift()[1]}s.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){s.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),s.raws.between+=u[1];(s.prop[0]==="_"||s.prop[0]==="*")&&(s.raws.before+=s.prop[0],s.prop=s.prop.slice(1));for(var c=[],l;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)c.push(e.shift());this.precheckMissedSemicolon(e);for(var f=e.length-1;f>=0;f--){if(u=e[f],u[1].toLowerCase()==="!important"){s.important=!0;var p=this.stringFrom(e,f);p=this.spacesFromEnd(e)+p,p!==" !important"&&(s.raws.important=p);break}else if(u[1].toLowerCase()==="important"){for(var g=e.slice(0),v="",y=f;y>0;y--){var d=g[y][0];if(v.trim().indexOf("!")===0&&d!=="space")break;v=g.pop()[1]+v}v.trim().indexOf("!")===0&&(s.important=!0,s.raws.important=v,e=g)}if(u[0]!=="space"&&u[0]!=="comment")break}var m=e.some(function(_){return _[0]!=="space"&&_[0]!=="comment"});m&&(s.raws.between+=c.map(function(_){return _[1]}).join(""),c=[]),this.raw(s,"value",c.concat(e),r),s.value.includes(":")&&!r&&this.checkMissedSemicolon(e)},n.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},n.emptyRule=function(e){var r=new kc;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r},n.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},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(e){if(this.spaces+=e[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(e){var r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}},n.init=function(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},n.other=function(e){for(var r=!1,s=null,o=!1,a=null,u=[],c=e[1].startsWith("--"),l=[],f=e;f;){if(s=f[0],l.push(f),s==="("||s==="[")a||(a=f),u.push(s==="("?")":"]");else if(c&&o&&s==="{")a||(a=f),u.push("}");else if(u.length===0)if(s===";")if(o){this.decl(l,c);return}else break;else if(s==="{"){this.rule(l);return}else if(s==="}"){this.tokenizer.back(l.pop()),r=!0;break}else s===":"&&(o=!0);else s===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&&o){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 e;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},n.precheckMissedSemicolon=function(){},n.raw=function(e,r,s,o){for(var a,u,c=s.length,l="",f=!0,p,g,v=0;v<c;v+=1)a=s[v],u=a[0],u==="space"&&v===c-1&&!o?f=!1:u==="comment"?(g=s[v-1]?s[v-1][0]:"empty",p=s[v+1]?s[v+1][0]:"empty",!Rc[g]&&!Rc[p]?l.slice(-1)===","?f=!1:l+=a[1]:f=!1):l+=a[1];if(!f){var y=s.reduce(function(d,m){return d+m[1]},"");e.raws[r]={raw:y,value:l}}e[r]=l},n.rule=function(e){e.pop();var r=new kc;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r},n.spacesAndCommentsFromEnd=function(e){for(var r,s="";e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)s=e.pop()[1]+s;return s},n.spacesAndCommentsFromStart=function(e){for(var r,s="";e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)s+=e.shift()[1];return s},n.spacesFromEnd=function(e){for(var r,s="";e.length&&(r=e[e.length-1][0],r==="space");)s=e.pop()[1]+s;return s},n.stringFrom=function(e,r){for(var s="",o=r;o<e.length;o++)s+=e[o][1];return e.splice(r,e.length-r),s},n.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},n.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},n.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},n.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},n.unnamedAtrule=function(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},t})(),Yv=Hv,Kv=Ut,Jv=Yv,Xv=Dn;function Jn(t,n){var i=new Xv(t,n),e=new Jv(i);try{e.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 e.root}var no=Jn;Jn.default=Jn,Kv.registerParse(Jn);var je=gt.isClean,Zv=gt.my,Qv=sc,eg=Mn,tg=Ut,rg=Js,ng=mc,Ac=Qs,ig=no,sg=Wr,og={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},ag={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},ug={Once:!0,postcssPlugin:!0,prepare:!0},lr=0;function Vr(t){return(typeof t=="undefined"?"undefined":T(t))==="object"&&typeof t.then=="function"}function Mc(t){var n=!1,i=og[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[i,i+"-"+n,lr,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:t.append?[i,lr,i+"Exit"]:[i,i+"Exit"]}function Tc(t){var n;return t.type==="document"?n=["Document",lr,"DocumentExit"]:t.type==="root"?n=["Root",lr,"RootExit"]:n=Mc(t),{eventIndex:0,events:n,iterator:0,node:t,visitorIndex:0,visitors:[]}}function io(t){return t[je]=!1,t.nodes&&t.nodes.forEach(function(n){return io(n)}),t}var so={},fr=(function(){function t(i,e,r){var s=this;this.stringified=!1,this.processed=!1;var o;if((typeof e=="undefined"?"undefined":T(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))o=io(e);else if(M(e,t)||M(e,Ac))o=io(e.root),e.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=e.map);else{var a=ig;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{o=a(e,r)}catch(u){this.processed=!0,this.error=u}o&&!o[Zv]&&tg.rebuild(o)}this.result=new Ac(i,o,r),this.helpers=z({},so,{postcss:so,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":T(u))==="object"&&u.prepare?z({},u,u.prepare(s.result)):u})}var n=t.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(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},n.handleError=function(e,r){var s=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=s.postcssPlugin,e.setMessage();else if(s.postcssVersion&&process.env.NODE_ENV!=="production"){var o=s.postcssPlugin,a=s.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 "+o+" uses "+a+". Perhaps this is the source of the error below.")}}catch(f){console&&console.error&&console.error(f)}return e},n.prepareVisitors=function(){var e=this;this.listeners={};for(var r=function(l,f,p){e.listeners[f]||(e.listeners[f]=[]),e.listeners[f].push([l,p])},s=I(this.plugins),o;!(o=s()).done;){var a=o.value;if((typeof a=="undefined"?"undefined":T(a))==="object")for(var u in a){if(!ag[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!ug[u])if(T(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 e=this;return Cn(function(){var r,s,o,a,u,c,l,f,p,g,v,y;return Dt(this,function(d){switch(d.label){case 0:e.plugin=0,r=0,d.label=1;case 1:if(!(r<e.plugins.length))return[3,6];if(s=e.plugins[r],o=e.runOnRoot(s),!Vr(o))return[3,5];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,o];case 3:return d.sent(),[3,5];case 4:throw a=d.sent(),e.handleError(a);case 5:return r++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];u=e.result.root,d.label=7;case 7:if(u[je])return[3,14];u[je]=!0,c=[Tc(u)],d.label=8;case 8:if(!(c.length>0))return[3,13];if(l=e.visitTick(c),!Vr(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,e.handleError(f,p);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];g=function(){var m,_,b,C,S;return Dt(this,function(O){switch(O.label){case 0:m=y.value,_=m[0],b=m[1],e.result.lastPlugin=_,O.label=1;case 1:return O.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(C=u.nodes.map(function(A){return b(A,e.helpers)}),[4,Promise.all(C)]);case 2:return O.sent(),[3,5];case 3:return[4,b(u,e.helpers)];case 4:O.sent(),O.label=5;case 5:return[3,7];case 6:throw S=O.sent(),e.handleError(S);case 7:return[2]}})},v=I(e.listeners.OnceExit),d.label=15;case 15:return(y=v()).done?[3,18]:[5,xs(g())];case 16:d.sent(),d.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},n.runOnRoot=function(e){var r=this;this.result.lastPlugin=e;try{if((typeof e=="undefined"?"undefined":T(e))==="object"&&e.Once){if(this.result.root.type==="document"){var s=this.result.root.nodes.map(function(o){return e.Once(o,r.helpers)});return Vr(s[0])?Promise.all(s):s}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(o){throw this.handleError(o)}},n.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,r=eg;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var s=new Qv(r,this.result.root,this.result.opts),o=s.generate();return this.result.css=o[0],this.result.map=o[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 e=I(this.plugins),r;!(r=e()).done;){var s=r.value,o=this.runOnRoot(s);if(Vr(o))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[je];)a[je]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=I(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(e,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||ng("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)},n.toString=function(){return this.css},n.visitSync=function(e,r){for(var s=I(e),o;!(o=s()).done;){var a=o.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(Vr(l))throw this.getAsyncError()}},n.visitTick=function(e){var r=e[e.length-1],s=r.node,o=r.visitors;if(s.type!=="root"&&s.type!=="document"&&!s.parent){e.pop();return}if(o.length>0&&r.visitorIndex<o.length){var a=o[r.visitorIndex],u=a[0],c=a[1];r.visitorIndex+=1,r.visitorIndex===o.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=u;try{return c(s.toProxy(),this.helpers)}catch(v){throw this.handleError(v,s)}}if(r.iterator!==0){for(var l=r.iterator,f;f=s.nodes[s.indexes[l]];)if(s.indexes[l]+=1,!f[je]){f[je]=!0,e.push(Tc(f));return}r.iterator=0,delete s.indexes[l]}for(var p=r.events;r.eventIndex<p.length;){var g=p[r.eventIndex];if(r.eventIndex+=1,g===lr){s.nodes&&s.nodes.length&&(s[je]=!0,r.iterator=s.getIterator());return}else if(this.listeners[g]){r.visitors=this.listeners[g];return}}e.pop()},n.walkSync=function(e){var r=this;e[je]=!0;for(var s=Mc(e),o=I(s),a;!(a=o()).done;){var u=a.value;if(u===lr)e.nodes&&e.each(function(l){l[je]||r.walkSync(l)});else{var c=this.listeners[u];if(c&&this.visitSync(c,e.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},ie(t,[{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"}}]),t})();fr.registerPostcss=function(t){so=t};var Pc=fr;fr.default=fr,sg.registerLazyResult(fr),rg.registerLazyResult(fr);var cg=sc,lg=Mn,fg=mc,hg=no,pg=Qs,oo=(function(){function t(i,e,r){e=e.toString(),this.stringified=!1,this._processor=i,this._css=e,this._opts=r,this._map=void 0;var s,o=lg;this.result=new pg(this._processor,s,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new cg(o,s,this._opts,e);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=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.sync=function(){if(this.error)throw this.error;return this.result},n.then=function(e,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||fg("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)},n.toString=function(){return this._css},n.warnings=function(){return[]},ie(t,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,r=hg;try{e=r(this._css,this._opts)}catch(s){this.error=s}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),t})(),dg=oo;oo.default=oo;var vg=dg,gg=Pc,mg=Js,yg=Wr,jr=(function(){function t(i){i===void 0&&(i=[]),this.version="8.4.38",this.plugins=this.normalize(i)}var n=t.prototype;return n.normalize=function(e){for(var r=[],s=I(e),o;!(o=s()).done;){var a=o.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":T(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":T(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":T(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(e,r){return r===void 0&&(r={}),!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new vg(this,e,r):new gg(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t})(),_g=jr;jr.default=jr,yg.registerProcessor(jr),mg.registerProcessor(jr);var wg=$n,bg=Ju,Sg=Bn,Cg=to,Eg=Dn,Ig=Wr,Og=ro;function Hr(t,n){if(Array.isArray(t))return t.map(function(f){return Hr(f)});var i=t.inputs,e=Lt(t,["inputs"]);if(i){n=[];for(var r=I(i),s;!(s=r()).done;){var o=s.value,a=z({},o,{__proto__:Eg.prototype});a.map&&(a.map=z({},a.map,{__proto__:bg.prototype})),n.push(a)}}if(e.nodes&&(e.nodes=t.nodes.map(function(f){return Hr(f,n)})),e.source){var u=e.source,c=u.inputId,l=Lt(u,["inputId"]);e.source=l,c!=null&&(e.source.input=n[c])}if(e.type==="root")return new Ig(e);if(e.type==="decl")return new wg(e);if(e.type==="rule")return new Og(e);if(e.type==="comment")return new Sg(e);if(e.type==="atrule")return new Cg(e);throw new Error("Unknown node type: "+t.type)}var xg=Hr;Hr.default=Hr;var kg=Ns,$c=$n,Rg=Pc,Ag=Ut,ao=_g,Mg=Mn,Tg=xg,Nc=Js,Pg=yc,Lc=Bn,Dc=to,$g=Qs,Ng=Dn,Lg=no,Dg=Oc,Fc=ro,Uc=Wr,Fg=Pn;function X(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new ao(n)}X.plugin=function(n,i){var e=!1;function r(){for(var o=arguments.length,a=new Array(o),u=0;u<o;u++)a[u]=arguments[u];console&&console.warn&&!e&&(e=!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 ao().version,c}var s;return Object.defineProperty(r,"postcss",{get:function(){return s||(s=r()),s}}),r.process=function(o,a,u){return X([r(u)]).process(o,a)},r},X.stringify=Mg,X.parse=Lg,X.fromJSON=Tg,X.list=Dg,X.comment=function(t){return new Lc(t)},X.atRule=function(t){return new Dc(t)},X.decl=function(t){return new $c(t)},X.rule=function(t){return new Fc(t)},X.root=function(t){return new Uc(t)},X.document=function(t){return new Nc(t)},X.CssSyntaxError=kg,X.Declaration=$c,X.Container=Ag,X.Processor=ao,X.Document=Nc,X.Comment=Lc,X.Warning=Pg,X.AtRule=Dc,X.Result=$g,X.Input=Ng,X.Rule=Fc,X.Root=Uc,X.Node=Fg,Rg.registerPostcss(X);var Ug=X;X.default=X;var le=Jd(Ug);le.stringify,le.fromJSON,le.plugin,le.parse,le.list,le.document,le.comment,le.atRule,le.rule,le.decl,le.root,le.CssSyntaxError,le.Declaration,le.Container,le.Processor,le.Document,le.Comment,le.Warning,le.AtRule,le.Result,le.Input,le.Rule,le.Root,le.Node;var Bg=Object.defineProperty,zg=function(t,n,i){return n in t?Bg(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},Fe=function(t,n,i){return zg(t,(typeof n=="undefined"?"undefined":T(n))!=="symbol"?n+"":n,i)};function qg(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Wg(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var i=function e(){return M(this,e)?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(t).forEach(function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(i,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}),i}var uo={exports:{}},oe=String,Bc=function(){return{isColorSupported:!1,reset:oe,bold:oe,dim:oe,italic:oe,underline:oe,inverse:oe,hidden:oe,strikethrough:oe,black:oe,red:oe,green:oe,yellow:oe,blue:oe,magenta:oe,cyan:oe,white:oe,gray:oe,bgBlack:oe,bgRed:oe,bgGreen:oe,bgYellow:oe,bgBlue:oe,bgMagenta:oe,bgCyan:oe,bgWhite:oe}};uo.exports=Bc(),uo.exports.createColors=Bc;var Gg=uo.exports,Vg={},jg=Object.freeze(Object.defineProperty({__proto__:null,default:Vg},Symbol.toStringTag,{value:"Module"})),ye=Wg(jg),zc=Gg,qc=ye,co=(function(t){ce(n,t);function n(e,r,s,o,a,u){var c;return c=t.call(this,e)||this,c.name="CssSyntaxError",c.reason=e,a&&(c.file=a),o&&(c.source=o),u&&(c.plugin=u),typeof r!="undefined"&&typeof s!="undefined"&&(typeof r=="number"?(c.line=r,c.column=s):(c.line=r.line,c.column=r.column,c.endLine=s.line,c.endColumn=s.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 s=this;if(!this.source)return"";var o=this.source;r==null&&(r=zc.isColorSupported),qc&&r&&(o=qc(o));var a=o.split(/\r?\n/),u=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),l=String(c).length,f,p;if(r){var g=zc.createColors(!0),v=g.bold,y=g.gray,d=g.red;f=function(m){return v(d(m))},p=function(m){return y(m)}}else f=p=function(m){return m};return a.slice(u,c).map(function(m,_){var b=u+1+_,C=" "+(" "+b).slice(-l)+" | ";if(b===s.line){var S=p(C.replace(/\d/g," "))+m.slice(0,s.column-1).replace(/[^\t]/g," ");return f(">")+p(C)+m+"\n "+S+f("^")}return" "+p(C)+m}).join("\n")},i.toString=function(){var r=this.showSourceCode();return r&&(r="\n\n"+r+"\n"),this.name+": "+this.message+r},n})(Dr(Error)),lo=co;co.default=co;var mt={};mt.isClean=Symbol("isClean"),mt.my=Symbol("my");var Wc={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Hg(t){return t[0].toUpperCase()+t.slice(1)}var fo=(function(){function t(i){this.builder=i}var n=t.prototype;return n.atrule=function(e,r){var s="@"+e.name,o=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?s+=e.raws.afterName:o&&(s+=" "),e.nodes)this.block(e,s+o);else{var a=(e.raws.between||"")+(r?";":"");this.builder(s+o+a,e)}},n.beforeAfter=function(e,r){var s;e.type==="decl"?s=this.raw(e,null,"beforeDecl"):e.type==="comment"?s=this.raw(e,null,"beforeComment"):r==="before"?s=this.raw(e,null,"beforeRule"):s=this.raw(e,null,"beforeClose");for(var o=e.parent,a=0;o&&o.type!=="root";)a+=1,o=o.parent;if(s.includes("\n")){var u=this.raw(e,null,"indent");if(u.length)for(var c=0;c<a;c++)s+=u}return s},n.block=function(e,r){var s=this.raw(e,"between","beforeOpen");this.builder(r+s+"{",e,"start");var o;e.nodes&&e.nodes.length?(this.body(e),o=this.raw(e,"after")):o=this.raw(e,"after","emptyBody"),o&&this.builder(o),this.builder("}",e,"end")},n.body=function(e){for(var r=e.nodes.length-1;r>0&&e.nodes[r].type==="comment";)r-=1;for(var s=this.raw(e,"semicolon"),o=0;o<e.nodes.length;o++){var a=e.nodes[o],u=this.raw(a,"before");u&&this.builder(u),this.stringify(a,r!==o||s)}},n.comment=function(e){var r=this.raw(e,"left","commentLeft"),s=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+s+"*/",e)},n.decl=function(e,r){var s=this.raw(e,"between","colon"),o=e.prop+s+this.rawValue(e,"value");e.important&&(o+=e.raws.important||" !important"),r&&(o+=";"),this.builder(o,e)},n.document=function(e){this.body(e)},n.raw=function(e,r,s){var o;if(s||(s=r),r&&(o=e.raws[r],typeof o!="undefined"))return o;var a=e.parent;if(s==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return Wc[s];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[s]!="undefined")return u.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(e,s);var c="raw"+Hg(s);return this[c]?o=this[c](u,e):u.walk(function(l){if(o=l.raws[r],typeof o!="undefined")return!1}),typeof o=="undefined"&&(o=Wc[s]),u.rawCache[s]=o,o},n.rawBeforeClose=function(e){var r;return e.walk(function(s){if(s.nodes&&s.nodes.length>0&&typeof s.raws.after!="undefined")return r=s.raws.after,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(e,r){var s;return e.walkComments(function(o){if(typeof o.raws.before!="undefined")return s=o.raws.before,s.includes("\n")&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s=="undefined"?s=this.raw(r,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s},n.rawBeforeDecl=function(e,r){var s;return e.walkDecls(function(o){if(typeof o.raws.before!="undefined")return s=o.raws.before,s.includes("\n")&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s=="undefined"?s=this.raw(r,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s},n.rawBeforeOpen=function(e){var r;return e.walk(function(s){if(s.type!=="decl"&&(r=s.raws.between,typeof r!="undefined"))return!1}),r},n.rawBeforeRule=function(e){var r;return e.walk(function(s){if(s.nodes&&(s.parent!==e||e.first!==s)&&typeof s.raws.before!="undefined")return r=s.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawColon=function(e){var r;return e.walkDecls(function(s){if(typeof s.raws.between!="undefined")return r=s.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(e){var r;return e.walk(function(s){if(s.nodes&&s.nodes.length===0&&(r=s.raws.after,typeof r!="undefined"))return!1}),r},n.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var r;return e.walk(function(s){var o=s.parent;if(o&&o!==e&&o.parent&&o.parent===e&&typeof s.raws.before!="undefined"){var a=s.raws.before.split("\n");return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r},n.rawSemicolon=function(e){var r;return e.walk(function(s){if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(r=s.raws.semicolon,typeof r!="undefined"))return!1}),r},n.rawValue=function(e,r){var s=e[r],o=e.raws[r];return o&&o.value===s?o.raw:s},n.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},n.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},n.stringify=function(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)},t})(),Gc=fo;fo.default=fo;var Yg=Gc;function ho(t,n){var i=new Yg(n);i.stringify(t)}var Xn=ho;ho.default=ho;var Zn=mt.isClean,Kg=mt.my,Jg=lo,Xg=Gc,Zg=Xn;function po(t,n){var i=new t.constructor;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&e!=="proxyCache"){var r=t[e],s=typeof r=="undefined"?"undefined":T(r);e==="parent"&&s==="object"?n&&(i[e]=n):e==="source"?i[e]=r:Array.isArray(r)?i[e]=r.map(function(o){return po(o,i)}):(s==="object"&&r!==null&&(r=po(r)),i[e]=r)}return i}var vo=(function(){function t(i){i===void 0&&(i={}),this.raws={},this[Zn]=!1,this[Kg]=!0;for(var e in i)if(e==="nodes"){this.nodes=[];for(var r=I(i[e]),s;!(s=r()).done;){var o=s.value;typeof o.clone=="function"?this.append(o.clone()):this.append(o)}}else this[e]=i[e]}var n=t.prototype;return n.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return e},n.after=function(e){return this.parent.insertAfter(this,e),this},n.assign=function(e){e===void 0&&(e={});for(var r in e)this[r]=e[r];return this},n.before=function(e){return this.parent.insertBefore(this,e),this},n.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},n.clone=function(e){e===void 0&&(e={});var r=po(this);for(var s in e)r[s]=e[s];return r},n.cloneAfter=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertAfter(this,r),r},n.cloneBefore=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertBefore(this,r),r},n.error=function(e,r){if(r===void 0&&(r={}),this.source){var s=this.rangeBy(r),o=s.end,a=s.start;return this.source.input.error(e,{column:a.column,line:a.line},{column:o.column,line:o.line},r)}return new Jg(e)},n.getProxyProcessor=function(){return{get:function(r,s){return s==="proxyOf"?r:s==="root"?function(){return r.root().toProxy()}:r[s]},set:function(r,s,o){return r[s]===o||(r[s]=o,(s==="prop"||s==="value"||s==="name"||s==="params"||s==="important"||s==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[Zn]){this[Zn]=!1;for(var e=this;e=e.parent;)e[Zn]=!1}},n.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},n.positionBy=function(e,r){var s=this.source.start;if(e.index)s=this.positionInside(e.index,r);else if(e.word){r=this.toString();var o=r.indexOf(e.word);o!==-1&&(s=this.positionInside(o,r))}return s},n.positionInside=function(e,r){for(var s=r||this.toString(),o=this.source.start.column,a=this.source.start.line,u=0;u<e;u++)s[u]==="\n"?(o=1,a+=1):o+=1;return{column:o,line:a}},n.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},n.rangeBy=function(e){var r={column:this.source.start.column,line:this.source.start.line},s=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(e.word){var o=this.toString(),a=o.indexOf(e.word);a!==-1&&(r=this.positionInside(a,o),s=this.positionInside(a+e.word.length,o))}else e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=this.positionInside(e.index)),e.end?s={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?s=this.positionInside(e.endIndex):e.index&&(s=this.positionInside(e.index+1));return(s.line<r.line||s.line===r.line&&s.column<=r.column)&&(s={column:r.column+1,line:r.line}),{end:s,start:r}},n.raw=function(e,r){var s=new Xg;return s.raw(this,e,r)},n.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},n.replaceWith=function(){for(var e=arguments.length,r=new Array(e),s=0;s<e;s++)r[s]=arguments[s];if(this.parent){for(var o=this,a=!1,u=I(r),c;!(c=u()).done;){var l=c.value;l===this?a=!0:a?(this.parent.insertAfter(o,l),o=l):this.parent.insertBefore(o,l)}a||this.remove()}return this},n.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},n.toJSON=function(e,r){var s={},o=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))s[u]=c.map(function(f){return(typeof f=="undefined"?"undefined":T(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof c=="undefined"?"undefined":T(c))==="object"&&c.toJSON)s[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++),s[u]={end:c.end,inputId:l,start:c.start}}else s[u]=c}return o&&(s.inputs=[].concat(r.keys()).map(function(f){return f.toJSON()})),s},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(e){e===void 0&&(e=Zg),e.stringify&&(e=e.stringify);var r="";return e(this,function(s){r+=s}),r},n.warn=function(e,r,s){var o={node:this};for(var a in s)o[a]=s[a];return e.warn(r,o)},ie(t,[{key:"proxyOf",get:function(){return this}}]),t})(),Qn=vo;vo.default=vo;var Qg=Qn,go=(function(t){ce(n,t);function n(i){var e;return i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=z({},i,{value:String(i.value)})),e=t.call(this,i)||this,e.type="decl",e}return ie(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n})(Qg),ei=go;go.default=go;var em="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",tm=function(t){t===void 0&&(t=21);for(var n="",i=t;i--;)n+=em[Math.random()*64|0];return n},rm={nanoid:tm},Vc=ye.SourceMapConsumer,jc=ye.SourceMapGenerator,nm=ye.existsSync,im=ye.readFileSync,mo=ye.dirname,sm=ye.join;function om(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var yo=(function(){function t(i,e){if(e.map!==!1){this.loadAnnotation(i),this.inline=this.startWith(this.annotation,"data:");var r=e.map?e.map.prev:void 0,s=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=mo(this.mapFile)),s&&(this.text=s)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new Vc(this.text)),this.consumerCache},n.decodeInline=function(e){var r=/^data:application\/json;charset=utf-?8;base64,/,s=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(o.test(e)||a.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(r.test(e)||s.test(e))return om(e.substr(RegExp.lastMatch.length));var u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},n.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(e){return(typeof e=="undefined"?"undefined":T(e))!=="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)},n.loadAnnotation=function(e){var r=e.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var s=e.lastIndexOf(r.pop()),o=e.indexOf("*/",s);s>-1&&o>-1&&(this.annotation=this.getAnnotationURL(e.substring(s,o)))}},n.loadFile=function(e){if(this.root=mo(e),nm(e))return this.mapFile=e,im(e,"utf-8").toString().trim()},n.loadMap=function(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){var s=r(e);if(s){var o=this.loadFile(s);if(!o)throw new Error("Unable to load previous source map: "+s.toString());return o}}else{if(M(r,Vc))return jc.fromSourceMap(r).toString();if(M(r,jc))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 e&&(a=sm(mo(e),a)),this.loadFile(a)}}},n.startWith=function(e,r){return e?e.substr(0,r.length)===r:!1},n.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t})(),Hc=yo;yo.default=yo;var am=ye.SourceMapConsumer,um=ye.SourceMapGenerator,Yc=ye.fileURLToPath,ti=ye.pathToFileURL,_o=ye.isAbsolute,wo=ye.resolve,cm=rm.nanoid,bo=ye,Kc=lo,lm=Hc,So=Symbol("fromOffsetCache"),fm=!!(am&&um),Jc=!!(wo&&_o),ri=(function(){function t(i,e){if(e===void 0&&(e={}),i===null||typeof i=="undefined"||(typeof i=="undefined"?"undefined":T(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,e.from&&(!Jc||/^\w+:\/\//.test(e.from)||_o(e.from)?this.file=e.from:this.file=wo(e.from)),Jc&&fm){var r=new lm(this.css,e);if(r.text){this.map=r;var s=r.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+cm(6)+">"),this.map&&(this.map.file=this.from)}var n=t.prototype;return n.error=function(e,r,s,o){o===void 0&&(o={});var a,u,c;if(r&&(typeof r=="undefined"?"undefined":T(r))==="object"){var l=r,f=s;if(typeof l.offset=="number"){var p=this.fromOffset(l.offset);r=p.line,s=p.col}else r=l.line,s=l.column;if(typeof f.offset=="number"){var g=this.fromOffset(f.offset);u=g.line,c=g.col}else u=f.line,c=f.column}else if(!s){var v=this.fromOffset(r);r=v.line,s=v.col}var y=this.origin(r,s,u,c);return y?a=new Kc(e,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,o.plugin):a=new Kc(e,u===void 0?r:{column:s,line:r},u===void 0?s:{column:c,line:u},this.css,this.file,o.plugin),a.input={column:s,endColumn:c,endLine:u,line:r,source:this.css},this.file&&(ti&&(a.input.url=ti(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(e){var r,s;if(this[So])s=this[So];else{var o=this.css.split("\n");s=new Array(o.length);for(var a=0,u=0,c=o.length;u<c;u++)s[u]=a,a+=o[u].length+1;this[So]=s}r=s[s.length-1];var l=0;if(e>=r)l=s.length-1;else for(var f=s.length-2,p;l<f;)if(p=l+(f-l>>1),e<s[p])f=p-1;else if(e>=s[p+1])l=p+1;else{l=p;break}return{col:e-s[l]+1,line:l+1}},n.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:wo(this.map.consumer().sourceRoot||this.map.root||".",e)},n.origin=function(e,r,s,o){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:r,line:e});if(!u.source)return!1;var c;typeof s=="number"&&(c=a.originalPositionFor({column:o,line:s}));var l;_o(u.source)?l=ti(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||ti(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(Yc)f.file=Yc(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 e={},r=0,s=["hasBOM","css","file","id"];r<s.length;r++){var o=s[r];this[o]!=null&&(e[o]=this[o])}return this.map&&(e.map=z({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},ie(t,[{key:"from",get:function(){return this.file||this.id}}]),t})(),ni=ri;ri.default=ri,bo&&bo.registerInput&&bo.registerInput(ri);var Xc=ye.SourceMapConsumer,ii=ye.SourceMapGenerator,si=ye.dirname,Zc=ye.relative,Qc=ye.resolve,el=ye.sep,tl=ye.pathToFileURL,hm=ni,pm=!!(Xc&&ii),dm=!!(si&&Qc&&Zc&&el),vm=(function(){function t(i,e,r,s){this.stringify=i,this.mapOpts=r.map||{},this.root=e,this.opts=r,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var n=t.prototype;return n.addAnnotation=function(){var e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";var r="\n";this.css.includes("\r\n")&&(r="\r\n"),this.css+=r+"/*# sourceMappingURL="+e+" */"},n.applyPrevMaps=function(){for(var e=I(this.previous()),r;!(r=e()).done;){var s=r.value,o=this.toUrl(this.path(s.file)),a=s.root||si(s.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new Xc(s.text),u.sourcesContent&&(u.sourcesContent=null)):u=s.consumer(),this.map.applySourceMap(u,o,this.toUrl(this.path(a)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.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(),dm&&pm&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(r){e+=r}),[e]},n.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=ii.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new ii({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 e=this;this.css="",this.map=new ii({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,s=1,o="<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(e.css+=l,f&&p!=="end"&&(a.generated.line=r,a.generated.column=s-1,f.source&&f.source.start?(a.source=e.sourcePath(f),a.original.line=f.source.start.line,a.original.column=f.source.start.column-1,e.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,e.map.addMapping(a))),u=l.match(/\n/g),u?(r+=u.length,c=l.lastIndexOf("\n"),s=l.length-c):s+=l.length,f&&p!=="start"){var g=f.parent||{raws:{}},v=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!v||f!==g.last||g.raws.semicolon)&&(f.source&&f.source.end?(a.source=e.sourcePath(f),a.original.line=f.source.end.line,a.original.column=f.source.end.column-1,a.generated.line=r,a.generated.column=s-2,e.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=s-1,e.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(e){return e.annotation}):!0},n.isInline=function(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;var e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!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(e){return e.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(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var r=this.memoizedPaths.get(e);if(r)return r;var s=this.opts.to?si(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(s=si(Qc(s,this.mapOpts.annotation)));var o=Zc(s,e);return this.memoizedPaths.set(e,o),o},n.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(s){if(s.source&&s.source.input.map){var o=s.source.input.map;e.previousMaps.includes(o)||e.previousMaps.push(o)}});else{var r=new hm(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},n.setSourcesContent=function(){var e=this,r={};if(this.root)this.root.walk(function(o){if(o.source){var a=o.source.input.from;if(a&&!r[a]){r[a]=!0;var u=e.usesFileUrls?e.toFileUrl(a):e.toUrl(e.path(a));e.map.setSourceContent(u,o.source.input.css)}}});else if(this.css){var s=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(s,this.css)}},n.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},n.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},n.toFileUrl=function(e){var r=this.memoizedFileURLs.get(e);if(r)return r;if(tl){var s=tl(e).toString();return this.memoizedFileURLs.set(e,s),s}else throw new Error("`map.absolute` option is not available in this PostCSS build")},n.toUrl=function(e){var r=this.memoizedURLs.get(e);if(r)return r;el==="\\"&&(e=e.replace(/\\/g,"/"));var s=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,s),s},t})(),rl=vm,gm=Qn,Co=(function(t){ce(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="comment",e}return n})(gm),oi=Co;Co.default=Co;var nl=mt.isClean,il=mt.my,sl=ei,ol=oi,mm=Qn,al,Eo,Io,ul;function cl(t){return t.map(function(n){return n.nodes&&(n.nodes=cl(n.nodes)),delete n.source,n})}function ll(t){if(t[nl]=!1,t.proxyOf.nodes)for(var n=I(t.proxyOf.nodes),i;!(i=n()).done;){var e=i.value;ll(e)}}var st=(function(t){ce(n,t);function n(){return t.apply(this,arguments)||this}var i=n.prototype;return i.append=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];for(var a=I(s),u;!(u=a()).done;)for(var c=u.value,l=this.normalize(c,this.last),f=I(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.push(g)}return this.markDirty(),this},i.cleanRaws=function(r){if(t.prototype.cleanRaws.call(this,r),this.nodes)for(var s=I(this.nodes),o;!(o=s()).done;){var a=o.value;a.cleanRaws(r)}},i.each=function(r){if(this.proxyOf.nodes){for(var s=this.getIterator(),o,a;this.indexes[s]<this.proxyOf.nodes.length&&(o=this.indexes[s],a=r(this.proxyOf.nodes[o],o),a!==!1);)this.indexes[s]+=1;return delete this.indexes[s],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(s,o){return o==="proxyOf"?s:s[o]?o==="each"||typeof o=="string"&&o.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=s)[o].apply(l,[].concat(u.map(function(f){return typeof f=="function"?function(p,g){return f(p.toProxy(),g)}:f})))}:o==="every"||o==="some"?function(a){return s[o](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))})}:o==="root"?function(){return s.root().toProxy()}:o==="nodes"?s.nodes.map(function(a){return a.toProxy()}):o==="first"||o==="last"?s[o].toProxy():s[o]:s[o]},set:function(s,o,a){return s[o]===a||(s[o]=a,(o==="name"||o==="params"||o==="selector")&&s.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,s){var o=this.index(r),a=this.normalize(s,this.proxyOf.nodes[o]).reverse();o=this.index(r);for(var u=I(a),c;!(c=u()).done;){var l=c.value;this.proxyOf.nodes.splice(o+1,0,l)}var f;for(var p in this.indexes)f=this.indexes[p],o<f&&(this.indexes[p]=f+a.length);return this.markDirty(),this},i.insertBefore=function(r,s){var o=this.index(r),a=o===0?"prepend":!1,u=this.normalize(s,this.proxyOf.nodes[o],a).reverse();o=this.index(r);for(var c=I(u),l;!(l=c()).done;){var f=l.value;this.proxyOf.nodes.splice(o,0,f)}var p;for(var g in this.indexes)p=this.indexes[g],o<=p&&(this.indexes[g]=p+u.length);return this.markDirty(),this},i.normalize=function(r,s){var o=this;if(typeof r=="string")r=cl(al(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=I(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=I(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 sl(r)]}else if(r.selector)r=[new Eo(r)];else if(r.name)r=[new Io(r)];else if(r.text)r=[new ol(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(v){return v[il]||n.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[nl]&&ll(v),typeof v.raws.before=="undefined"&&s&&typeof s.raws.before!="undefined"&&(v.raws.before=s.raws.before.replace(/\S/g,"")),v.parent=o.proxyOf,v});return g},i.prepend=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];s=s.reverse();for(var a=I(s),u;!(u=a()).done;){for(var c=u.value,l=this.normalize(c,this.first,"prepend").reverse(),f=I(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.unshift(g)}for(var v in this.indexes)this.indexes[v]=this.indexes[v]+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=I(this.proxyOf.nodes),s;!(s=r()).done;){var o=s.value;o.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 s;for(var o in this.indexes)s=this.indexes[o],s>=r&&(this.indexes[o]=s-1);return this.markDirty(),this},i.replaceValues=function(r,s,o){return o||(o=s,s={}),this.walkDecls(function(a){s.props&&!s.props.includes(a.prop)||s.fast&&!a.value.includes(s.fast)||(a.value=a.value.replace(r,o))}),this.markDirty(),this},i.some=function(r){return this.nodes.some(r)},i.walk=function(r){return this.each(function(s,o){var a;try{a=r(s,o)}catch(u){throw s.addToError(u)}return a!==!1&&s.walk&&(a=s.walk(r)),a})},i.walkAtRules=function(r,s){return s?M(r,RegExp)?this.walk(function(o,a){if(o.type==="atrule"&&r.test(o.name))return s(o,a)}):this.walk(function(o,a){if(o.type==="atrule"&&o.name===r)return s(o,a)}):(s=r,this.walk(function(o,a){if(o.type==="atrule")return s(o,a)}))},i.walkComments=function(r){return this.walk(function(s,o){if(s.type==="comment")return r(s,o)})},i.walkDecls=function(r,s){return s?M(r,RegExp)?this.walk(function(o,a){if(o.type==="decl"&&r.test(o.prop))return s(o,a)}):this.walk(function(o,a){if(o.type==="decl"&&o.prop===r)return s(o,a)}):(s=r,this.walk(function(o,a){if(o.type==="decl")return s(o,a)}))},i.walkRules=function(r,s){return s?M(r,RegExp)?this.walk(function(o,a){if(o.type==="rule"&&r.test(o.selector))return s(o,a)}):this.walk(function(o,a){if(o.type==="rule"&&o.selector===r)return s(o,a)}):(s=r,this.walk(function(o,a){if(o.type==="rule")return s(o,a)}))},ie(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})(mm);st.registerParse=function(t){al=t},st.registerRule=function(t){Eo=t},st.registerAtRule=function(t){Io=t},st.registerRoot=function(t){ul=t};var Bt=st;st.default=st,st.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,Io.prototype):t.type==="rule"?Object.setPrototypeOf(t,Eo.prototype):t.type==="decl"?Object.setPrototypeOf(t,sl.prototype):t.type==="comment"?Object.setPrototypeOf(t,ol.prototype):t.type==="root"&&Object.setPrototypeOf(t,ul.prototype),t[il]=!0,t.nodes&&t.nodes.forEach(function(n){st.rebuild(n)})};var ym=Bt,fl,hl,Yr=(function(t){ce(n,t);function n(e){var r;return r=t.call(this,z({type:"document"},e))||this,r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.toResult=function(r){r===void 0&&(r={});var s=new fl(new hl,this,r);return s.stringify()},n})(ym);Yr.registerLazyResult=function(t){fl=t},Yr.registerProcessor=function(t){hl=t};var Oo=Yr;Yr.default=Yr;var pl={},dl=function(n){pl[n]||(pl[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},xo=(function(){function t(i,e){if(e===void 0&&(e={}),this.type="warning",this.text=i,e.node&&e.node.source){var r=e.node.rangeBy(e);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var s in e)this[s]=e[s]}var n=t.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},t})(),vl=xo;xo.default=xo;var _m=vl,ko=(function(){function t(i,e,r){this.processor=i,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}var n=t.prototype;return n.toString=function(){return this.css},n.warn=function(e,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var s=new _m(e,r);return this.messages.push(s),s},n.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},ie(t,[{key:"content",get:function(){return this.css}}]),t})(),Ro=ko;ko.default=ko;var Ao=39,gl=34,ai=92,ml=47,ui=10,Kr=32,ci=12,li=9,fi=13,wm=91,bm=93,Sm=40,Cm=41,Em=123,Im=125,Om=59,xm=42,km=58,Rm=64,hi=/[\t\n\f\r "#'()/;[\\\]{}]/g,pi=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Am=/.[\r\n"'(/\\]/,yl=/[\da-f]/i,Mm=function(n,i){i===void 0&&(i={});var e=n.css.valueOf(),r=i.ignoreErrors,s,o,a,u,c,l,f,p,g,v,y=e.length,d=0,m=[],_=[];function b(){return d}function C(k){throw n.error("Unclosed "+k,d)}function S(){return _.length===0&&d>=y}function O(k){if(_.length)return _.pop();if(!(d>=y)){var $=k?k.ignoreUnclosed:!1;switch(s=e.charCodeAt(d),s){case ui:case Kr:case li:case fi:case ci:{o=d;do o+=1,s=e.charCodeAt(o);while(s===Kr||s===ui||s===li||s===fi||s===ci);v=["space",e.slice(d,o)],d=o-1;break}case wm:case bm:case Em:case Im:case km:case Om:case Cm:{var W=String.fromCharCode(s);v=[W,W,d];break}case Sm:{if(p=m.length?m.pop()[1]:"",g=e.charCodeAt(d+1),p==="url"&&g!==Ao&&g!==gl&&g!==Kr&&g!==ui&&g!==li&&g!==ci&&g!==fi){o=d;do{if(l=!1,o=e.indexOf(")",o+1),o===-1)if(r||$){o=d;break}else C("bracket");for(f=o;e.charCodeAt(f-1)===ai;)f-=1,l=!l}while(l);v=["brackets",e.slice(d,o+1),d,o],d=o}else o=e.indexOf(")",d+1),u=e.slice(d,o+1),o===-1||Am.test(u)?v=["(","(",d]:(v=["brackets",u,d,o],d=o);break}case Ao:case gl:{a=s===Ao?"'":'"',o=d;do{if(l=!1,o=e.indexOf(a,o+1),o===-1)if(r||$){o=d+1;break}else C("string");for(f=o;e.charCodeAt(f-1)===ai;)f-=1,l=!l}while(l);v=["string",e.slice(d,o+1),d,o],d=o;break}case Rm:{hi.lastIndex=d+1,hi.test(e),hi.lastIndex===0?o=e.length-1:o=hi.lastIndex-2,v=["at-word",e.slice(d,o+1),d,o],d=o;break}case ai:{for(o=d,c=!0;e.charCodeAt(o+1)===ai;)o+=1,c=!c;if(s=e.charCodeAt(o+1),c&&s!==ml&&s!==Kr&&s!==ui&&s!==li&&s!==fi&&s!==ci&&(o+=1,yl.test(e.charAt(o)))){for(;yl.test(e.charAt(o+1));)o+=1;e.charCodeAt(o+1)===Kr&&(o+=1)}v=["word",e.slice(d,o+1),d,o],d=o;break}default:{s===ml&&e.charCodeAt(d+1)===xm?(o=e.indexOf("*/",d+2)+1,o===0&&(r||$?o=e.length:C("comment")),v=["comment",e.slice(d,o+1),d,o],d=o):(pi.lastIndex=d+1,pi.test(e),pi.lastIndex===0?o=e.length-1:o=pi.lastIndex-2,v=["word",e.slice(d,o+1),d,o],m.push(v),d=o);break}}return d++,v}}function A(k){_.push(k)}return{back:A,endOfFile:S,nextToken:O,position:b}},_l=Bt,di=(function(t){ce(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="atrule",r}var i=n.prototype;return i.append=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.append).call.apply(a,[].concat([this],s))},i.prepend=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.prepend).call.apply(a,[].concat([this],s))},n})(_l),Mo=di;di.default=di,_l.registerAtRule(di);var wl=Bt,bl,Sl,hr=(function(t){ce(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="root",r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.normalize=function(r,s,o){var a=t.prototype.normalize.call(this,r);if(s){if(o==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(var u=I(a),c;!(c=u()).done;){var l=c.value;l.raws.before=s.raws.before}}return a},i.removeChild=function(r,s){var o=this.index(r);return!s&&o===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[o].raws.before),t.prototype.removeChild.call(this,r)},i.toResult=function(r){r===void 0&&(r={});var s=new bl(new Sl,this,r);return s.stringify()},n})(wl);hr.registerLazyResult=function(t){bl=t},hr.registerProcessor=function(t){Sl=t};var Jr=hr;hr.default=hr,wl.registerRoot(hr);var Xr={comma:function(n){return Xr.split(n,[","],!0)},space:function(n){var i=[" ","\n"," "];return Xr.split(n,i)},split:function(n,i,e){for(var r=[],s="",o=!1,a=0,u=!1,c="",l=!1,f=I(n),p;!(p=f()).done;){var g=p.value;l?l=!1:g==="\\"?l=!0:u?g===c&&(u=!1):g==='"'||g==="'"?(u=!0,c=g):g==="("?a+=1:g===")"?a>0&&(a-=1):a===0&&i.includes(g)&&(o=!0),o?(s!==""&&r.push(s.trim()),s="",o=!1):s+=g}return(e||s!=="")&&r.push(s.trim()),r}},Cl=Xr;Xr.default=Xr;var El=Bt,Tm=Cl,vi=(function(t){ce(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return ie(n,[{key:"selectors",get:function(){return Tm.comma(this.selector)},set:function(e){var r=this.selector?this.selector.match(/,\s*/):null,s=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(s)}}]),n})(El),To=vi;vi.default=vi,El.registerRule(vi);var Pm=ei,$m=Mm,Nm=oi,Lm=Mo,Dm=Jr,Il=To,Ol={empty:!0,space:!0};function Fm(t){for(var n=t.length-1;n>=0;n--){var i=t[n],e=i[3]||i[2];if(e)return e}}var Um=(function(){function t(i){this.input=i,this.root=new Dm,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=t.prototype;return n.atrule=function(e){var r=new Lm;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);for(var s,o,a,u=!1,c=!1,l=[],f=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),s=e[0],s==="("||s==="["?f.push(s==="("?")":"]"):s==="{"&&f.length>0?f.push("}"):s===f[f.length-1]&&f.pop(),f.length===0)if(s===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(s==="{"){c=!0;break}else if(s==="}"){if(l.length>0){for(a=l.length-1,o=l[a];o&&o[0]==="space";)o=l[--a];o&&(r.source.end=this.getPosition(o[3]||o[2]),r.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);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&&(e=l[l.length-1],r.source.end=this.getPosition(e[3]||e[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(e){var r=this.colon(e);if(r!==!1){for(var s=0,o,a=r-1;a>=0&&(o=e[a],!(o[0]!=="space"&&(s+=1,s===2)));a--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}},n.colon=function(e){for(var r=0,s,o,a,u=I(e.entries()),c;!(c=u()).done;){var l=c.value,f=l[0],p=l[1];if(s=p,o=s[0],o==="("&&(r+=1),o===")"&&(r-=1),r===0&&o===":")if(!a)this.doubleColon(s);else{if(a[0]==="word"&&a[1]==="progid")continue;return f}a=s}return!1},n.comment=function(e){var r=new Nm;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;var s=e[1].slice(2,-2);if(/^\s*$/.test(s))r.text="",r.raws.left=s,r.raws.right="";else{var o=s.match(/^(\s*)([^]*\S)(\s*)$/);r.text=o[2],r.raws.left=o[1],r.raws.right=o[3]}},n.createTokenizer=function(){this.tokenizer=$m(this.input)},n.decl=function(e,r){var s=new Pm;this.init(s,e[0][2]);var o=e[e.length-1];for(o[0]===";"&&(this.semicolon=!0,e.pop()),s.source.end=this.getPosition(o[3]||o[2]||Fm(e)),s.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),s.raws.before+=e.shift()[1];for(s.source.start=this.getPosition(e[0][2]),s.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;s.prop+=e.shift()[1]}s.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){s.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),s.raws.between+=u[1];(s.prop[0]==="_"||s.prop[0]==="*")&&(s.raws.before+=s.prop[0],s.prop=s.prop.slice(1));for(var c=[],l;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)c.push(e.shift());this.precheckMissedSemicolon(e);for(var f=e.length-1;f>=0;f--){if(u=e[f],u[1].toLowerCase()==="!important"){s.important=!0;var p=this.stringFrom(e,f);p=this.spacesFromEnd(e)+p,p!==" !important"&&(s.raws.important=p);break}else if(u[1].toLowerCase()==="important"){for(var g=e.slice(0),v="",y=f;y>0;y--){var d=g[y][0];if(v.trim().indexOf("!")===0&&d!=="space")break;v=g.pop()[1]+v}v.trim().indexOf("!")===0&&(s.important=!0,s.raws.important=v,e=g)}if(u[0]!=="space"&&u[0]!=="comment")break}var m=e.some(function(_){return _[0]!=="space"&&_[0]!=="comment"});m&&(s.raws.between+=c.map(function(_){return _[1]}).join(""),c=[]),this.raw(s,"value",c.concat(e),r),s.value.includes(":")&&!r&&this.checkMissedSemicolon(e)},n.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},n.emptyRule=function(e){var r=new Il;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r},n.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},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(e){if(this.spaces+=e[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(e){var r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}},n.init=function(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},n.other=function(e){for(var r=!1,s=null,o=!1,a=null,u=[],c=e[1].startsWith("--"),l=[],f=e;f;){if(s=f[0],l.push(f),s==="("||s==="[")a||(a=f),u.push(s==="("?")":"]");else if(c&&o&&s==="{")a||(a=f),u.push("}");else if(u.length===0)if(s===";")if(o){this.decl(l,c);return}else break;else if(s==="{"){this.rule(l);return}else if(s==="}"){this.tokenizer.back(l.pop()),r=!0;break}else s===":"&&(o=!0);else s===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&&o){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 e;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},n.precheckMissedSemicolon=function(){},n.raw=function(e,r,s,o){for(var a,u,c=s.length,l="",f=!0,p,g,v=0;v<c;v+=1)a=s[v],u=a[0],u==="space"&&v===c-1&&!o?f=!1:u==="comment"?(g=s[v-1]?s[v-1][0]:"empty",p=s[v+1]?s[v+1][0]:"empty",!Ol[g]&&!Ol[p]?l.slice(-1)===","?f=!1:l+=a[1]:f=!1):l+=a[1];if(!f){var y=s.reduce(function(d,m){return d+m[1]},"");e.raws[r]={raw:y,value:l}}e[r]=l},n.rule=function(e){e.pop();var r=new Il;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r},n.spacesAndCommentsFromEnd=function(e){for(var r,s="";e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)s=e.pop()[1]+s;return s},n.spacesAndCommentsFromStart=function(e){for(var r,s="";e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)s+=e.shift()[1];return s},n.spacesFromEnd=function(e){for(var r,s="";e.length&&(r=e[e.length-1][0],r==="space");)s=e.pop()[1]+s;return s},n.stringFrom=function(e,r){for(var s="",o=r;o<e.length;o++)s+=e[o][1];return e.splice(r,e.length-r),s},n.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},n.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},n.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},n.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},n.unnamedAtrule=function(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},t})(),Bm=Um,zm=Bt,qm=Bm,Wm=ni;function gi(t,n){var i=new Wm(t,n),e=new qm(i);try{e.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 e.root}var Po=gi;gi.default=gi,zm.registerParse(gi);var He=mt.isClean,Gm=mt.my,Vm=rl,jm=Xn,Hm=Bt,Ym=Oo,Km=dl,xl=Ro,Jm=Po,Xm=Jr,Zm={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Qm={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},ey={Once:!0,postcssPlugin:!0,prepare:!0},pr=0;function Zr(t){return(typeof t=="undefined"?"undefined":T(t))==="object"&&typeof t.then=="function"}function kl(t){var n=!1,i=Zm[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[i,i+"-"+n,pr,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:t.append?[i,pr,i+"Exit"]:[i,i+"Exit"]}function Rl(t){var n;return t.type==="document"?n=["Document",pr,"DocumentExit"]:t.type==="root"?n=["Root",pr,"RootExit"]:n=kl(t),{eventIndex:0,events:n,iterator:0,node:t,visitorIndex:0,visitors:[]}}function $o(t){return t[He]=!1,t.nodes&&t.nodes.forEach(function(n){return $o(n)}),t}var No={},dr=(function(){function t(i,e,r){var s=this;this.stringified=!1,this.processed=!1;var o;if((typeof e=="undefined"?"undefined":T(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))o=$o(e);else if(M(e,t)||M(e,xl))o=$o(e.root),e.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=e.map);else{var a=Jm;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{o=a(e,r)}catch(u){this.processed=!0,this.error=u}o&&!o[Gm]&&Hm.rebuild(o)}this.result=new xl(i,o,r),this.helpers=z({},No,{postcss:No,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":T(u))==="object"&&u.prepare?z({},u,u.prepare(s.result)):u})}var n=t.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(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},n.handleError=function(e,r){var s=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=s.postcssPlugin,e.setMessage();else if(s.postcssVersion&&process.env.NODE_ENV!=="production"){var o=s.postcssPlugin,a=s.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 "+o+" uses "+a+". Perhaps this is the source of the error below.")}}catch(f){console&&console.error&&console.error(f)}return e},n.prepareVisitors=function(){var e=this;this.listeners={};for(var r=function(l,f,p){e.listeners[f]||(e.listeners[f]=[]),e.listeners[f].push([l,p])},s=I(this.plugins),o;!(o=s()).done;){var a=o.value;if((typeof a=="undefined"?"undefined":T(a))==="object")for(var u in a){if(!Qm[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!ey[u])if(T(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 e=this;return Cn(function(){var r,s,o,a,u,c,l,f,p,g,v,y;return Dt(this,function(d){switch(d.label){case 0:e.plugin=0,r=0,d.label=1;case 1:if(!(r<e.plugins.length))return[3,6];if(s=e.plugins[r],o=e.runOnRoot(s),!Zr(o))return[3,5];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,o];case 3:return d.sent(),[3,5];case 4:throw a=d.sent(),e.handleError(a);case 5:return r++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];u=e.result.root,d.label=7;case 7:if(u[He])return[3,14];u[He]=!0,c=[Rl(u)],d.label=8;case 8:if(!(c.length>0))return[3,13];if(l=e.visitTick(c),!Zr(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,e.handleError(f,p);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];g=function(){var m,_,b,C,S;return Dt(this,function(O){switch(O.label){case 0:m=y.value,_=m[0],b=m[1],e.result.lastPlugin=_,O.label=1;case 1:return O.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(C=u.nodes.map(function(A){return b(A,e.helpers)}),[4,Promise.all(C)]);case 2:return O.sent(),[3,5];case 3:return[4,b(u,e.helpers)];case 4:O.sent(),O.label=5;case 5:return[3,7];case 6:throw S=O.sent(),e.handleError(S);case 7:return[2]}})},v=I(e.listeners.OnceExit),d.label=15;case 15:return(y=v()).done?[3,18]:[5,xs(g())];case 16:d.sent(),d.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},n.runOnRoot=function(e){var r=this;this.result.lastPlugin=e;try{if((typeof e=="undefined"?"undefined":T(e))==="object"&&e.Once){if(this.result.root.type==="document"){var s=this.result.root.nodes.map(function(o){return e.Once(o,r.helpers)});return Zr(s[0])?Promise.all(s):s}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(o){throw this.handleError(o)}},n.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,r=jm;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var s=new Vm(r,this.result.root,this.result.opts),o=s.generate();return this.result.css=o[0],this.result.map=o[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 e=I(this.plugins),r;!(r=e()).done;){var s=r.value,o=this.runOnRoot(s);if(Zr(o))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[He];)a[He]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=I(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(e,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||Km("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)},n.toString=function(){return this.css},n.visitSync=function(e,r){for(var s=I(e),o;!(o=s()).done;){var a=o.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(Zr(l))throw this.getAsyncError()}},n.visitTick=function(e){var r=e[e.length-1],s=r.node,o=r.visitors;if(s.type!=="root"&&s.type!=="document"&&!s.parent){e.pop();return}if(o.length>0&&r.visitorIndex<o.length){var a=o[r.visitorIndex],u=a[0],c=a[1];r.visitorIndex+=1,r.visitorIndex===o.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=u;try{return c(s.toProxy(),this.helpers)}catch(v){throw this.handleError(v,s)}}if(r.iterator!==0){for(var l=r.iterator,f;f=s.nodes[s.indexes[l]];)if(s.indexes[l]+=1,!f[He]){f[He]=!0,e.push(Rl(f));return}r.iterator=0,delete s.indexes[l]}for(var p=r.events;r.eventIndex<p.length;){var g=p[r.eventIndex];if(r.eventIndex+=1,g===pr){s.nodes&&s.nodes.length&&(s[He]=!0,r.iterator=s.getIterator());return}else if(this.listeners[g]){r.visitors=this.listeners[g];return}}e.pop()},n.walkSync=function(e){var r=this;e[He]=!0;for(var s=kl(e),o=I(s),a;!(a=o()).done;){var u=a.value;if(u===pr)e.nodes&&e.each(function(l){l[He]||r.walkSync(l)});else{var c=this.listeners[u];if(c&&this.visitSync(c,e.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},ie(t,[{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"}}]),t})();dr.registerPostcss=function(t){No=t};var Al=dr;dr.default=dr,Xm.registerLazyResult(dr),Ym.registerLazyResult(dr);var ty=rl,ry=Xn,ny=dl,iy=Po,sy=Ro,Lo=(function(){function t(i,e,r){e=e.toString(),this.stringified=!1,this._processor=i,this._css=e,this._opts=r,this._map=void 0;var s,o=ry;this.result=new sy(this._processor,s,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new ty(o,s,this._opts,e);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=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.sync=function(){if(this.error)throw this.error;return this.result},n.then=function(e,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||ny("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)},n.toString=function(){return this._css},n.warnings=function(){return[]},ie(t,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,r=iy;try{e=r(this._css,this._opts)}catch(s){this.error=s}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),t})(),oy=Lo;Lo.default=Lo;var ay=oy,uy=Al,cy=Oo,ly=Jr,Qr=(function(){function t(i){i===void 0&&(i=[]),this.version="8.4.38",this.plugins=this.normalize(i)}var n=t.prototype;return n.normalize=function(e){for(var r=[],s=I(e),o;!(o=s()).done;){var a=o.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":T(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":T(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":T(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(e,r){return r===void 0&&(r={}),!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new ay(this,e,r):new uy(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t})(),fy=Qr;Qr.default=Qr,ly.registerProcessor(Qr),cy.registerProcessor(Qr);var hy=ei,py=Hc,dy=oi,vy=Mo,gy=ni,my=Jr,yy=To;function en(t,n){if(Array.isArray(t))return t.map(function(f){return en(f)});var i=t.inputs,e=Lt(t,["inputs"]);if(i){n=[];for(var r=I(i),s;!(s=r()).done;){var o=s.value,a=z({},o,{__proto__:gy.prototype});a.map&&(a.map=z({},a.map,{__proto__:py.prototype})),n.push(a)}}if(e.nodes&&(e.nodes=t.nodes.map(function(f){return en(f,n)})),e.source){var u=e.source,c=u.inputId,l=Lt(u,["inputId"]);e.source=l,c!=null&&(e.source.input=n[c])}if(e.type==="root")return new my(e);if(e.type==="decl")return new hy(e);if(e.type==="rule")return new yy(e);if(e.type==="comment")return new dy(e);if(e.type==="atrule")return new vy(e);throw new Error("Unknown node type: "+t.type)}var _y=en;en.default=en;var wy=lo,Ml=ei,by=Al,Sy=Bt,Do=fy,Cy=Xn,Ey=_y,Tl=Oo,Iy=vl,Pl=oi,$l=Mo,Oy=Ro,xy=ni,ky=Po,Ry=Cl,Nl=To,Ll=Jr,Ay=Qn;function Z(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new Do(n)}Z.plugin=function(n,i){var e=!1;function r(){for(var o=arguments.length,a=new Array(o),u=0;u<o;u++)a[u]=arguments[u];console&&console.warn&&!e&&(e=!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 Do().version,c}var s;return Object.defineProperty(r,"postcss",{get:function(){return s||(s=r()),s}}),r.process=function(o,a,u){return Z([r(u)]).process(o,a)},r},Z.stringify=Cy,Z.parse=ky,Z.fromJSON=Ey,Z.list=Ry,Z.comment=function(t){return new Pl(t)},Z.atRule=function(t){return new $l(t)},Z.decl=function(t){return new Ml(t)},Z.rule=function(t){return new Nl(t)},Z.root=function(t){return new Ll(t)},Z.document=function(t){return new Tl(t)},Z.CssSyntaxError=wy,Z.Declaration=Ml,Z.Container=Sy,Z.Processor=Do,Z.Document=Tl,Z.Comment=Pl,Z.Warning=Iy,Z.AtRule=$l,Z.Result=Oy,Z.Input=xy,Z.Rule=Nl,Z.Root=Ll,Z.Node=Ay,by.registerPostcss(Z);var My=Z;Z.default=Z;var fe=qg(My);fe.stringify,fe.fromJSON,fe.plugin,fe.parse,fe.list,fe.document,fe.comment,fe.atRule,fe.rule,fe.decl,fe.root,fe.CssSyntaxError,fe.Declaration,fe.Container,fe.Processor,fe.Document,fe.Comment,fe.Warning,fe.AtRule,fe.Result,fe.Input,fe.Rule,fe.Root,fe.Node;var Ty=(function(){function t(){for(var i=arguments.length,e=new Array(i),r=0;r<i;r++)e[r]=arguments[r];Fe(this,"parentElement",null),Fe(this,"parentNode",null),Fe(this,"ownerDocument"),Fe(this,"firstChild",null),Fe(this,"lastChild",null),Fe(this,"previousSibling",null),Fe(this,"nextSibling",null),Fe(this,"ELEMENT_NODE",1),Fe(this,"TEXT_NODE",3),Fe(this,"nodeType"),Fe(this,"nodeName"),Fe(this,"RRNodeType")}var n=t.prototype;return n.contains=function(e){if(M(e,t)){if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0}else return!1;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1},n.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},n.insertBefore=function(e,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},n.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},n.toString=function(){return"RRNode"},ie(t,[{key:"childNodes",get:function(){for(var e=[],r=this.firstChild;r;)e.push(r),r=r.nextSibling;return e}}]),t})(),Dl={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Fl={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},mi={},Py=function(){return!!globalThis.Zone};function Fo(t){if(mi[t])return mi[t];var n=globalThis[t],i=n.prototype,e=t in Dl?Dl[t]:void 0,r=!!(e&&e.every(function(l){var f,p;return!!((p=(f=Object.getOwnPropertyDescriptor(i,l))==null?void 0:f.get)!=null&&p.toString().includes("[native code]"))})),s=t in Fl?Fl[t]:void 0,o=!!(s&&s.every(function(l){var f;return typeof i[l]=="function"&&((f=i[l])==null?void 0:f.toString().includes("[native code]"))}));if(r&&o&&!Py())return mi[t]=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[t].prototype;return document.body.removeChild(a),c?mi[t]=c:i}catch(l){return i}}var Uo={};function yt(t,n,i){var e,r=t+"."+String(i);if(Uo[r])return Uo[r].call(n);var s=Fo(t),o=(e=Object.getOwnPropertyDescriptor(s,i))==null?void 0:e.get;return o?(Uo[r]=o,o.call(n)):n[i]}var Bo={};function Ul(t,n,i){var e=t+"."+String(i);if(Bo[e])return Bo[e].bind(n);var r=Fo(t),s=r[i];return typeof s!="function"?n[i]:(Bo[e]=s,s.bind(n))}function $y(t){return yt("Node",t,"childNodes")}function Ny(t){return yt("Node",t,"parentNode")}function Ly(t){return yt("Node",t,"parentElement")}function Dy(t){return yt("Node",t,"textContent")}function Fy(t,n){return Ul("Node",t,"contains")(n)}function Uy(t){return Ul("Node",t,"getRootNode")()}function By(t){return!t||!("host"in t)?null:yt("ShadowRoot",t,"host")}function zy(t){return t.styleSheets}function qy(t){return!t||!("shadowRoot"in t)?null:yt("Element",t,"shadowRoot")}function Wy(t,n){return yt("Element",t,"querySelector")(n)}function Gy(t,n){return yt("Element",t,"querySelectorAll")(n)}function Bl(){return Fo("MutationObserver").constructor}function zt(t,n,i){try{if(!(n in t))return function(){};var e=t[n],r=i(e);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:e}})),t[n]=r,function(){t[n]=e}}catch(s){return function(){}}}var V={childNodes:$y,parentNode:Ny,parentElement:Ly,textContent:Dy,contains:Fy,getRootNode:Uy,host:By,styleSheets:zy,shadowRoot:qy,querySelector:Wy,querySelectorAll:Gy,mutationObserver:Bl,patch:zt};function Ae(t,n,i){i===void 0&&(i=document);var e={capture:!0,passive:!0};return i.addEventListener(t,n,e),function(){return i.removeEventListener(t,n,e)}}var vr="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.",zl={map:{},getId:function(){return console.error(vr),-1},getNode:function(){return console.error(vr),null},removeNodeFromMap:function(){console.error(vr)},has:function(){return console.error(vr),!1},reset:function(){console.error(vr)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(zl=new Proxy(zl,{get:function(n,i,e){return i==="map"&&console.error(vr),Reflect.get(n,i,e)}}));function tn(t,n,i){i===void 0&&(i={});var e=null,r=0;return function(){for(var s=arguments.length,o=new Array(s),a=0;a<s;a++)o[a]=arguments[a];var u=Date.now();!r&&i.leading===!1&&(r=u);var c=n-(u-r),l=this;c<=0||c>n?(e&&(clearTimeout(e),e=null),r=u,t.apply(l,o)):!e&&i.trailing!==!1&&(e=setTimeout(function(){r=i.leading===!1?0:Date.now(),e=null,t.apply(l,o)},c))}}function yi(t,n,i,e,r){r===void 0&&(r=window);var s=r.Object.getOwnPropertyDescriptor(t,n);return r.Object.defineProperty(t,n,e?i:{set:function(a){var u=this;setTimeout(function(){i.set.call(u,a)},0),s&&s.set&&s.set.call(this,a)}}),function(){return yi(t,n,s||{},!0)}}var _i=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(_i=function(){return new Date().getTime()});function ql(t){var n,i,e,r,s=t.document;return{left:s.scrollingElement?s.scrollingElement.scrollLeft:t.pageXOffset!==void 0?t.pageXOffset:s.documentElement.scrollLeft||(s==null?void 0:s.body)&&((n=V.parentElement(s.body))==null?void 0:n.scrollLeft)||((i=s==null?void 0:s.body)==null?void 0:i.scrollLeft)||0,top:s.scrollingElement?s.scrollingElement.scrollTop:t.pageYOffset!==void 0?t.pageYOffset:(s==null?void 0:s.documentElement.scrollTop)||(s==null?void 0:s.body)&&((e=V.parentElement(s.body))==null?void 0:e.scrollTop)||((r=s==null?void 0:s.body)==null?void 0:r.scrollTop)||0}}function Wl(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Gl(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Vl(t){if(!t)return null;var n=t.nodeType===t.ELEMENT_NODE?t:V.parentElement(t);return n}function Me(t,n,i,e){if(!t)return!1;var r=Vl(t);if(!r)return!1;try{if(typeof n=="string"){if(r.classList.contains(n)||e&&r.closest("."+n)!==null)return!0}else if(An(r,n,e))return!0}catch(s){}return!!(i&&(r.matches(i)||e&&r.closest(i)!==null))}function Vy(t,n){return n.getId(t)!==-1}function zo(t,n,i){return t.tagName==="TITLE"&&i.headTitleMutations?!0:n.getId(t)===Br}function jl(t,n){if(Fr(t))return!1;var i=n.getId(t);if(!n.has(i))return!0;var e=V.parentNode(t);return e&&e.nodeType===t.DOCUMENT_NODE?!1:e?jl(e,n):!0}function qo(t){return!!t.changedTouches}function jy(t){t===void 0&&(t=window),"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Hl(t,n){return!!(t.nodeName==="IFRAME"&&n.getMeta(t))}function Yl(t,n){return!!(t.nodeName==="LINK"&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&t.getAttribute("rel")==="stylesheet"&&n.getMeta(t))}function Wo(t){return t?M(t,Ty)&&"shadowRoot"in t?!!t.shadowRoot:!!V.shadowRoot(t):!1}var Hy=(function(){function t(){x(this,"id",1),x(this,"styleIDMap",new WeakMap),x(this,"idStyleMap",new Map)}var n=t.prototype;return n.getId=function(e){var r;return(r=this.styleIDMap.get(e))!=null?r:-1},n.has=function(e){return this.styleIDMap.has(e)},n.add=function(e,r){if(this.has(e))return this.getId(e);var s;return r===void 0?s=this.id++:s=r,this.styleIDMap.set(e,s),this.idStyleMap.set(s,e),s},n.getStyle=function(e){return this.idStyleMap.get(e)||null},n.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},n.generateId=function(){return this.id++},n.remove=function(e){var r=this.styleIDMap.get(e);return r!==void 0?(this.styleIDMap.delete(e),this.idStyleMap.delete(r),!0):!1},t})();function Kl(t){var n,i=null;return"getRootNode"in t&&((n=V.getRootNode(t))==null?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&V.host(V.getRootNode(t))&&(i=V.host(V.getRootNode(t))),i}function Yy(t){for(var n=t,i;i=Kl(n);)n=i;return n}function Ky(t){var n=t.ownerDocument;if(!n)return!1;var i=Yy(t);return V.contains(n,i)}function Jl(t){var n=t.ownerDocument;return n?V.contains(n,t)||Ky(t):!1}var j=(function(t){return t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t})(j||{}),D=(function(t){return t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t})(D||{}),$e=(function(t){return t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel",t})($e||{}),ot=(function(t){return t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t})(ot||{}),gr=(function(t){return t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t})(gr||{}),mr=(function(t){return t[t.Play=0]="Play",t[t.Pause=1]="Pause",t[t.Seeked=2]="Seeked",t[t.VolumeChange=3]="VolumeChange",t[t.RateChange=4]="RateChange",t})(mr||{}),Xl=(function(t){return t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t})(Xl||{});function Zl(t){return"__ln"in t}var Jy=(function(){function t(){x(this,"length",0),x(this,"head",null),x(this,"tail",null)}var n=t.prototype;return n.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var r=this.head,s=0;s<e;s++)r=(r==null?void 0:r.next)||null;return r},n.addNode=function(e){var r={value:e,previous:null,next:null};if(e.__ln=r,e.previousSibling&&Zl(e.previousSibling)){var s=e.previousSibling.__ln.next;r.next=s,r.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=r,s&&(s.previous=r)}else if(e.nextSibling&&Zl(e.nextSibling)&&e.nextSibling.__ln.previous){var o=e.nextSibling.__ln.previous;r.previous=o,r.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=r,o&&(o.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(e){var r=e.__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),e.__ln&&delete e.__ln,this.length--)},t})(),Ql=function(t,n){return t+"@"+n},Xy=(function(){function t(){var i=this;x(this,"frozen",!1),x(this,"locked",!1),x(this,"texts",[]),x(this,"attributes",[]),x(this,"attributeMap",new WeakMap),x(this,"removes",[]),x(this,"mapRemoves",[]),x(this,"movedMap",{}),x(this,"addedSet",new Set),x(this,"movedSet",new Set),x(this,"droppedSet",new Set),x(this,"removesSubTreeCache",new Set),x(this,"mutationCb"),x(this,"blockClass"),x(this,"blockSelector"),x(this,"maskTextClass"),x(this,"maskTextSelector"),x(this,"inlineStylesheet"),x(this,"maskInputOptions"),x(this,"maskTextFn"),x(this,"maskInputFn"),x(this,"keepIframeSrcFn"),x(this,"recordCanvas"),x(this,"inlineImages"),x(this,"slimDOMOptions"),x(this,"dataURLOptions"),x(this,"doc"),x(this,"mirror"),x(this,"iframeManager"),x(this,"stylesheetManager"),x(this,"shadowDomManager"),x(this,"canvasManager"),x(this,"processedNodeManager"),x(this,"unattachedDoc"),x(this,"processMutations",function(e){e.forEach(i.processMutation),i.emit()}),x(this,"emit",function(){if(!(i.frozen||i.locked)){for(var e=[],r=new Set,s=new Jy,o=function(L){for(var G=L,de=Br;de===Br;)G=G&&G.nextSibling,de=G&&i.mirror.getId(G);return de},a=function(L){var G=V.parentNode(L);if(!(!G||!Jl(L))){var de=!1;if(L.nodeType===Node.TEXT_NODE){var Y=G.tagName;if(Y==="TEXTAREA")return;Y==="STYLE"&&i.addedSet.has(G)&&(de=!0)}var De=Fr(G)?i.mirror.getId(Kl(L)):i.mirror.getId(G),Ne=o(L);if(De===-1||Ne===-1)return s.addNode(L);var ke=ur(L,{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(pe){Hl(pe,i.mirror)&&i.iframeManager.addIframe(pe),Yl(pe,i.mirror)&&i.stylesheetManager.trackLinkElement(pe),Wo(L)&&i.shadowDomManager.addShadowRoot(V.shadowRoot(L),i.doc)},onIframeLoad:function(pe,xe){i.iframeManager.attachIframe(pe,xe),i.shadowDomManager.observeAttachShadow(pe)},onStylesheetLoad:function(pe,xe){i.stylesheetManager.attachLinkElement(pe,xe)},cssCaptured:de});ke&&(e.push({parentId:De,nextId:Ne,node:ke}),r.add(ke.id))}};i.mapRemoves.length;){var u=i.mapRemoves.shift();i.cleanupRemovedNode(u),i.mirror.removeNodeFromMap(u)}for(var c=I(i.movedSet),l;!(l=c()).done;){var f=l.value;ef(i.removesSubTreeCache,f,i.mirror)&&!i.movedSet.has(V.parentNode(f))||a(f)}for(var p=I(i.addedSet),g;!(g=p()).done;){var v=g.value;!tf(i.droppedSet,v)&&!ef(i.removesSubTreeCache,v,i.mirror)||tf(i.movedSet,v)?a(v):i.droppedSet.add(v)}for(var y=null;s.length;){var d=null;if(y){var m=i.mirror.getId(V.parentNode(y.value)),_=o(y.value);m!==-1&&_!==-1&&(d=y)}if(!d)for(var b=s.tail;b;){var C=b;if(b=b.previous,C){var S=i.mirror.getId(V.parentNode(C.value)),O=o(C.value);if(O===-1)continue;if(S!==-1){d=C;break}else{var A=C.value,k=V.parentNode(A);if(k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var $=V.host(k),W=i.mirror.getId($);if(W!==-1){d=C;break}}}}}if(!d){for(;s.head;)s.removeNode(s.head.value);break}y=d.previous,s.removeNode(d.value),a(d.value)}var ge={texts:i.texts.map(function(L){var G=L.node,de=V.parentNode(G);return de&&de.tagName==="TEXTAREA"&&i.genTextAreaValueMutation(de),{id:i.mirror.getId(G),value:L.value}}).filter(function(L){return!r.has(L.id)}).filter(function(L){return i.mirror.has(L.id)}),attributes:i.attributes.map(function(L){var G=L.attributes;if(typeof G.style=="string"){var de=JSON.stringify(L.styleDiff),Y=JSON.stringify(L._unchangedStyles);de.length<G.style.length&&(de+Y).split("var(").length===G.style.split("var(").length&&(G.style=L.styleDiff)}return{id:i.mirror.getId(L.node),attributes:G}}).filter(function(L){return!r.has(L.id)}).filter(function(L){return i.mirror.has(L.id)}),removes:i.removes,adds:e};!ge.texts.length&&!ge.attributes.length&&!ge.removes.length&&!ge.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(ge))}}),x(this,"genTextAreaValueMutation",function(e){var r=i.attributeMap.get(e);r||(r={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},i.attributes.push(r),i.attributeMap.set(e,r));var s=Array.from(V.childNodes(e),function(o){return V.textContent(o)||""}).join("");r.attributes.value=On({element:e,maskInputOptions:i.maskInputOptions,tagName:e.tagName,type:xn(e),value:s,maskInputFn:i.maskInputFn})}),x(this,"processMutation",function(e){if(!zo(e.target,i.mirror,i.slimDOMOptions))switch(e.type){case"characterData":{var r=V.textContent(e.target);!Me(e.target,i.blockClass,i.blockSelector,!1)&&r!==e.oldValue&&i.texts.push({value:qu(e.target,i.maskTextClass,i.maskTextSelector,!0)&&r?i.maskTextFn?i.maskTextFn(r,Vl(e.target)):r.replace(/[\S]/g,"*"):r,node:e.target});break}case"attributes":{var s=e.target,o=e.attributeName,a=e.target.getAttribute(o);if(o==="value"){var u=xn(s);a=On({element:s,maskInputOptions:i.maskInputOptions,tagName:s.tagName,type:u,value:a,maskInputFn:i.maskInputFn})}if(Me(e.target,i.blockClass,i.blockSelector,!1)||a===e.oldValue)return;var c=i.attributeMap.get(e.target);if(s.tagName==="IFRAME"&&o==="src"&&!i.keepIframeSrcFn(a))if(!s.contentDocument)o="rr_src";else return;if(c||(c={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},i.attributes.push(c),i.attributeMap.set(e.target,c)),o==="type"&&s.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&s.setAttribute("data-rr-is-password","true"),!zu(s.tagName,o))if(c.attributes[o]=Bu(i.doc,Ft(s.tagName),Ft(o),a),o==="style"){if(!i.unattachedDoc)try{i.unattachedDoc=document.implementation.createHTMLDocument()}catch(b){i.unattachedDoc=i.doc}var l=i.unattachedDoc.createElement("span");e.oldValue&&l.setAttribute("style",e.oldValue);for(var f=I(Array.from(s.style)),p;!(p=f()).done;){var g=p.value,v=s.style.getPropertyValue(g),y=s.style.getPropertyPriority(g);v!==l.style.getPropertyValue(g)||y!==l.style.getPropertyPriority(g)?y===""?c.styleDiff[g]=v:c.styleDiff[g]=[v,y]:c._unchangedStyles[g]=[v,y]}for(var d=I(Array.from(l.style)),m;!(m=d()).done;){var _=m.value;s.style.getPropertyValue(_)===""&&(c.styleDiff[_]=!1)}}else o==="open"&&s.tagName==="DIALOG"&&(s.matches("dialog:modal")?c.attributes.rr_open_mode="modal":c.attributes.rr_open_mode="non-modal");break}case"childList":{if(Me(e.target,i.blockClass,i.blockSelector,!0))return;if(e.target.tagName==="TEXTAREA"){i.genTextAreaValueMutation(e.target);return}e.addedNodes.forEach(function(b){return i.genAdds(b,e.target)}),e.removedNodes.forEach(function(b){var C=i.mirror.getId(b),S=Fr(e.target)?i.mirror.getId(V.host(e.target)):i.mirror.getId(e.target);Me(e.target,i.blockClass,i.blockSelector,!1)||zo(b,i.mirror,i.slimDOMOptions)||!Vy(b,i.mirror)||(i.addedSet.has(b)?(Go(i.addedSet,b),i.droppedSet.add(b)):i.addedSet.has(e.target)&&C===-1||jl(e.target,i.mirror)||(i.movedSet.has(b)&&i.movedMap[Ql(C,S)]?Go(i.movedSet,b):(i.removes.push({parentId:S,id:C,isShadow:Fr(e.target)&&Ur(e.target)?!0:void 0}),Zy(b,i.removesSubTreeCache))),i.mapRemoves.push(b))});break}}}),x(this,"genAdds",function(e,r){if(!i.processedNodeManager.inOtherBuffer(e,i)&&!(i.addedSet.has(e)||i.movedSet.has(e))){if(i.mirror.hasNode(e)){if(zo(e,i.mirror,i.slimDOMOptions))return;i.movedSet.add(e);var s=null;r&&i.mirror.hasNode(r)&&(s=i.mirror.getId(r)),s&&s!==-1&&(i.movedMap[Ql(i.mirror.getId(e),s)]=!0)}else i.addedSet.add(e),i.droppedSet.delete(e);Me(e,i.blockClass,i.blockSelector,!1)||(V.childNodes(e).forEach(function(o){return i.genAdds(o)}),Wo(e)&&V.childNodes(V.shadowRoot(e)).forEach(function(o){i.processedNodeManager.add(o,i),i.genAdds(o,e)}))}}),x(this,"cleanupRemovedNode",function(e){if(e.nodeName==="IFRAME")try{i.iframeManager.removeIframe(e)}catch(r){}else try{i.stylesheetManager.cleanupStylesheetsForRemovedNode(e)}catch(r){}e.childNodes.forEach(function(r){i.cleanupRemovedNode(r)})})}var n=t.prototype;return n.init=function(e){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(s){r[s]=e[s]})},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()},n.getDoc=function(){return this.doc},t})();function Go(t,n){t.delete(n),V.childNodes(n).forEach(function(i){return Go(t,i)})}function Zy(t,n){for(var i=[t];i.length;){var e=i.pop();n.has(e)||(n.add(e),V.childNodes(e).forEach(function(r){return i.push(r)}))}}function ef(t,n,i){return t.size===0?!1:Qy(t,n)}function Qy(t,n,i){var e=V.parentNode(n);return e?t.has(e):!1}function tf(t,n){return t.size===0?!1:rf(t,n)}function rf(t,n){var i=V.parentNode(n);return i?t.has(i)?!0:rf(t,i):!1}var rn;function e_(t){rn=t}function t_(){rn=void 0}var H=function(t){if(!rn)return t;var n=function(){for(var i=arguments.length,e=new Array(i),r=0;r<i;r++)e[r]=arguments[r];try{return t.apply(void 0,[].concat(e))}catch(s){if(rn&&rn(s)===!0)return;throw s}};return n},Ye=[];function nn(t){try{if("composedPath"in t){var n=t.composedPath();if(n.length)return n[0]}else if("path"in t&&t.path.length)return t.path[0]}catch(i){}return t&&t.target}function nf(t,n){var i=new Xy;Ye.push(i),i.init(t);var e=new(Bl())(H(i.processMutations.bind(i)));return e.observe(n,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),e}function r_(t){for(var n=Ye.length-1;n>=0;n--){var i=Ye[n];i.getDoc()===t&&Ye.splice(n,1)}}function n_(t){var n=t.mousemoveCb,i=t.sampling,e=t.doc,r=t.mirror;if(i.mousemove===!1)return function(){};var s=typeof i.mousemove=="number"?i.mousemove:50,o=typeof i.mousemoveCallback=="number"?i.mousemoveCallback:500,a=[],u,c=tn(H(function(p){var g=Date.now()-u;n(a.map(function(v){return v.timeOffset-=g,v}),p),a=[],u=null}),o),l=H(tn(H(function(p){var g=nn(p),v=qo(p)?p.changedTouches[0]:p,y=v.clientX,d=v.clientY;u||(u=_i()),a.push({x:y,y:d,id:r.getId(g),timeOffset:_i()-u}),c(typeof DragEvent!="undefined"&&M(p,DragEvent)?D.Drag:M(p,MouseEvent)?D.MouseMove:D.TouchMove)}),s,{trailing:!1})),f=[Ae("mousemove",l,e),Ae("touchmove",l,e),Ae("drag",l,e)];return H(function(){f.forEach(function(p){return p()})})}function i_(t){var n=t.mouseInteractionCb,i=t.doc,e=t.mirror,r=t.blockClass,s=t.blockSelector,o=t.sampling;if(o.mouseInteraction===!1)return function(){};var a=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,u=[],c=null,l=function(f){return function(p){var g=nn(p);if(!Me(g,r,s,!0)){var v=null,y=f;if("pointerType"in p){switch(p.pointerType){case"mouse":v=ot.Mouse;break;case"touch":v=ot.Touch;break;case"pen":v=ot.Pen;break}v===ot.Touch?$e[f]===$e.MouseDown?y="TouchStart":$e[f]===$e.MouseUp&&(y="TouchEnd"):ot.Pen}else qo(p)&&(v=ot.Touch);v!==null?(c=v,(y.startsWith("Touch")&&v===ot.Touch||y.startsWith("Mouse")&&v===ot.Mouse)&&(v=null)):$e[f]===$e.Click&&(v=c,c=null);var d=qo(p)?p.changedTouches[0]:p;if(d){var m=e.getId(g),_=d.clientX,b=d.clientY;H(n)(z({type:$e[y],id:m,x:_,y:b},v!==null&&{pointerType:v}))}}}};return Object.keys($e).filter(function(f){return Number.isNaN(Number(f))&&!f.endsWith("_Departed")&&a[f]!==!1}).forEach(function(f){var p=Ft(f),g=l(f);if(window.PointerEvent)switch($e[f]){case $e.MouseDown:case $e.MouseUp:p=p.replace("mouse","pointer");break;case $e.TouchStart:case $e.TouchEnd:return}u.push(Ae(p,g,i))}),H(function(){u.forEach(function(f){return f()})})}function sf(t){var n=t.scrollCb,i=t.doc,e=t.mirror,r=t.blockClass,s=t.blockSelector,o=t.sampling,a=H(tn(H(function(u){var c=nn(u);if(!(!c||Me(c,r,s,!0))){var l=e.getId(c);if(c===i&&i.defaultView){var f=ql(i.defaultView);n({id:l,x:f.left,y:f.top})}else n({id:l,x:c.scrollLeft,y:c.scrollTop})}}),o.scroll||100));return Ae("scroll",a,i)}function s_(t,n){var i=t.viewportResizeCb,e=n.win,r=-1,s=-1,o=H(tn(H(function(){var a=Wl(),u=Gl();(r!==a||s!==u)&&(i({width:Number(u),height:Number(a)}),r=a,s=u)}),200));return Ae("resize",o,e)}var o_=["INPUT","TEXTAREA","SELECT"],of=new WeakMap;function a_(t){var n=t.inputCb,i=t.doc,e=t.mirror,r=t.blockClass,s=t.blockSelector,o=t.ignoreClass,a=t.ignoreSelector,u=t.maskInputOptions,c=t.maskInputFn,l=t.sampling,f=t.userTriggeredOnInput;function p(C){var S=nn(C),O=C.isTrusted,A=S&&S.tagName;if(S&&A==="OPTION"&&(S=V.parentElement(S)),!(!S||!A||o_.indexOf(A)<0||Me(S,r,s,!0))&&!(S.classList.contains(o)||a&&S.matches(a))){var k=S.value,$=!1,W=xn(S)||"";W==="radio"||W==="checkbox"?$=S.checked:(u[A.toLowerCase()]||u[W])&&(k=On({element:S,maskInputOptions:u,tagName:A,type:W,value:k,maskInputFn:c})),g(S,f?{text:k,isChecked:$,userTriggered:O}:{text:k,isChecked:$});var ge=S.name;W==="radio"&&ge&&$&&i.querySelectorAll('input[type="radio"][name="'+ge+'"]').forEach(function(L){if(L!==S){var G=L.value;g(L,f?{text:G,isChecked:!$,userTriggered:!1}:{text:G,isChecked:!$})}})}}function g(C,S){var O=of.get(C);if(!O||O.text!==S.text||O.isChecked!==S.isChecked){of.set(C,S);var A=e.getId(C);H(n)(z({},S,{id:A}))}}var v=l.input==="last"?["change"]:["input","change"],y=v.map(function(C){return Ae(C,H(p),i)}),d=i.defaultView;if(!d)return function(){y.forEach(function(C){return C()})};var m=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(m&&m.set){var b;(b=y).push.apply(b,[].concat(_.map(function(C){return yi(C[0],C[1],{set:function(){H(p)({target:this,isTrusted:!1})}},!1,d)})))}return H(function(){y.forEach(function(C){return C()})})}function wi(t){var n=[];function i(e,r){if(bi("CSSGroupingRule")&&M(e.parentRule,CSSGroupingRule)||bi("CSSMediaRule")&&M(e.parentRule,CSSMediaRule)||bi("CSSSupportsRule")&&M(e.parentRule,CSSSupportsRule)||bi("CSSConditionRule")&&M(e.parentRule,CSSConditionRule)){var s=Array.from(e.parentRule.cssRules),o=s.indexOf(e);r.unshift(o)}else if(e.parentStyleSheet){var a=Array.from(e.parentStyleSheet.cssRules),u=a.indexOf(e);r.unshift(u)}return r}return i(t,n)}function _t(t,n,i){var e,r;return t?(t.ownerNode?e=n.getId(t.ownerNode):r=i.getId(t),{styleId:r,id:e}):{}}function u_(t,n){var i=t.styleSheetRuleCb,e=t.mirror,r=t.stylesheetManager,s=n.win;if(!s.CSSStyleSheet||!s.CSSStyleSheet.prototype)return function(){};var o=s.CSSStyleSheet.prototype.insertRule;s.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:H(function(p,g,v){var y=v[0],d=v[1],m=_t(g,e,r.styleMirror),_=m.id,b=m.styleId;return(_&&_!==-1||b&&b!==-1)&&i({id:_,styleId:b,adds:[{rule:y,index:d}]}),p.apply(g,v)})}),s.CSSStyleSheet.prototype.addRule=function(p,g,v){v===void 0&&(v=this.cssRules.length);var y=p+" { "+g+" }";return s.CSSStyleSheet.prototype.insertRule.apply(this,[y,v])};var a=s.CSSStyleSheet.prototype.deleteRule;s.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:H(function(p,g,v){var y=v[0],d=_t(g,e,r.styleMirror),m=d.id,_=d.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,removes:[{index:y}]}),p.apply(g,v)})}),s.CSSStyleSheet.prototype.removeRule=function(p){return s.CSSStyleSheet.prototype.deleteRule.apply(this,[p])};var u;s.CSSStyleSheet.prototype.replace&&(u=s.CSSStyleSheet.prototype.replace,s.CSSStyleSheet.prototype.replace=new Proxy(u,{apply:H(function(p,g,v){var y=v[0],d=_t(g,e,r.styleMirror),m=d.id,_=d.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,replace:y}),p.apply(g,v)})}));var c;s.CSSStyleSheet.prototype.replaceSync&&(c=s.CSSStyleSheet.prototype.replaceSync,s.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:H(function(p,g,v){var y=v[0],d=_t(g,e,r.styleMirror),m=d.id,_=d.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,replaceSync:y}),p.apply(g,v)})}));var l={};Si("CSSGroupingRule")?l.CSSGroupingRule=s.CSSGroupingRule:(Si("CSSMediaRule")&&(l.CSSMediaRule=s.CSSMediaRule),Si("CSSConditionRule")&&(l.CSSConditionRule=s.CSSConditionRule),Si("CSSSupportsRule")&&(l.CSSSupportsRule=s.CSSSupportsRule));var f={};return Object.entries(l).forEach(function(p){var g=p[0],v=p[1];f[g]={insertRule:v.prototype.insertRule,deleteRule:v.prototype.deleteRule},v.prototype.insertRule=new Proxy(f[g].insertRule,{apply:H(function(y,d,m){var _=m[0],b=m[1],C=_t(d.parentStyleSheet,e,r.styleMirror),S=C.id,O=C.styleId;return(S&&S!==-1||O&&O!==-1)&&i({id:S,styleId:O,adds:[{rule:_,index:[].concat(wi(d),[b||0])}]}),y.apply(d,m)})}),v.prototype.deleteRule=new Proxy(f[g].deleteRule,{apply:H(function(y,d,m){var _=m[0],b=_t(d.parentStyleSheet,e,r.styleMirror),C=b.id,S=b.styleId;return(C&&C!==-1||S&&S!==-1)&&i({id:C,styleId:S,removes:[{index:[].concat(wi(d),[_])}]}),y.apply(d,m)})})}),H(function(){s.CSSStyleSheet.prototype.insertRule=o,s.CSSStyleSheet.prototype.deleteRule=a,u&&(s.CSSStyleSheet.prototype.replace=u),c&&(s.CSSStyleSheet.prototype.replaceSync=c),Object.entries(l).forEach(function(p){var g=p[0],v=p[1];v.prototype.insertRule=f[g].insertRule,v.prototype.deleteRule=f[g].deleteRule})})}function af(t,n){var i=t.mirror,e=t.stylesheetManager,r,s,o,a=null;n.nodeName==="#document"?a=i.getId(n):a=i.getId(V.host(n));var u=n.nodeName==="#document"?(r=n.defaultView)==null?void 0:r.Document:(o=(s=n.ownerDocument)==null?void 0:s.defaultView)==null?void 0:o.ShadowRoot,c=u!=null&&u.prototype?Object.getOwnPropertyDescriptor(u==null?void 0:u.prototype,"adoptedStyleSheets"):void 0;return a===null||a===-1||!u||!c?function(){}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:function(){var f;return(f=c.get)==null?void 0:f.call(this)},set:function(f){var p,g=(p=c.set)==null?void 0:p.call(this,f);if(a!==null&&a!==-1)try{e.adoptStyleSheets(f,a)}catch(v){}return g}}),H(function(){Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}))}function c_(t,n){var i=t.styleDeclarationCb,e=t.mirror,r=t.ignoreCSSAttributes,s=t.stylesheetManager,o=n.win,a=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:H(function(c,l,f){var p,g=f[0],v=f[1],y=f[2];if(r.has(g))return a.apply(l,[g,v,y]);var d=_t((p=l.parentRule)==null?void 0:p.parentStyleSheet,e,s.styleMirror),m=d.id,_=d.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,set:{property:g,value:v,priority:y},index:wi(l.parentRule)}),c.apply(l,f)})});var u=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:H(function(c,l,f){var p,g=f[0];if(r.has(g))return u.apply(l,[g]);var v=_t((p=l.parentRule)==null?void 0:p.parentStyleSheet,e,s.styleMirror),y=v.id,d=v.styleId;return(y&&y!==-1||d&&d!==-1)&&i({id:y,styleId:d,remove:{property:g},index:wi(l.parentRule)}),c.apply(l,f)})}),H(function(){o.CSSStyleDeclaration.prototype.setProperty=a,o.CSSStyleDeclaration.prototype.removeProperty=u})}function l_(t){var n=t.mediaInteractionCb,i=t.blockClass,e=t.blockSelector,r=t.mirror,s=t.sampling,o=t.doc,a=H(function(c){return tn(H(function(l){var f=nn(l);if(!(!f||Me(f,i,e,!0))){var p=f.currentTime,g=f.volume,v=f.muted,y=f.playbackRate,d=f.loop;n({type:c,id:r.getId(f),currentTime:p,volume:g,muted:v,playbackRate:y,loop:d})}}),s.media||500)}),u=[Ae("play",a(mr.Play),o),Ae("pause",a(mr.Pause),o),Ae("seeked",a(mr.Seeked),o),Ae("volumechange",a(mr.VolumeChange),o),Ae("ratechange",a(mr.RateChange),o)];return H(function(){u.forEach(function(c){return c()})})}function f_(t){var n=t.fontCb,i=t.doc,e=i.defaultView;if(!e)return function(){};var r=[],s=new WeakMap,o=e.FontFace;e.FontFace=function(c,l,f){var p=new o(c,l,f);return s.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=zt(i.fonts,"add",function(u){return function(c){return setTimeout(H(function(){var l=s.get(c);l&&(n(l),s.delete(c))}),0),u.apply(this,[c])}});return r.push(function(){e.FontFace=o}),r.push(a),H(function(){r.forEach(function(u){return u()})})}function h_(t){var n=t.doc,i=t.mirror,e=t.blockClass,r=t.blockSelector,s=t.selectionCb,o=!0,a=H(function(){var u=n.getSelection();if(!(!u||o&&(u!=null&&u.isCollapsed))){o=u.isCollapsed||!1;for(var c=[],l=u.rangeCount||0,f=0;f<l;f++){var p=u.getRangeAt(f),g=p.startContainer,v=p.startOffset,y=p.endContainer,d=p.endOffset,m=Me(g,e,r,!0)||Me(y,e,r,!0);m||c.push({start:i.getId(g),startOffset:v,end:i.getId(y),endOffset:d})}s({ranges:c})}});return a(),Ae("selectionchange",a)}function p_(t){var n=t.doc,i=t.customElementCb,e=n.defaultView;if(!e||!e.customElements)return function(){};var r=zt(e.customElements,"define",function(s){return function(o,a,u){try{i({define:{name:o}})}catch(c){console.warn("Custom element callback failed for "+o)}return s.apply(this,[o,a,u])}});return r}function d_(t,n){var i=t.mutationCb,e=t.mousemoveCb,r=t.mouseInteractionCb,s=t.scrollCb,o=t.viewportResizeCb,a=t.inputCb,u=t.mediaInteractionCb,c=t.styleSheetRuleCb,l=t.styleDeclarationCb,f=t.canvasMutationCb,p=t.fontCb,g=t.selectionCb,v=t.customElementCb;t.mutationCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.mutation){var _;(_=n).mutation.apply(_,[].concat(d))}i.apply(void 0,[].concat(d))},t.mousemoveCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.mousemove){var _;(_=n).mousemove.apply(_,[].concat(d))}e.apply(void 0,[].concat(d))},t.mouseInteractionCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.mouseInteraction){var _;(_=n).mouseInteraction.apply(_,[].concat(d))}r.apply(void 0,[].concat(d))},t.scrollCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.scroll){var _;(_=n).scroll.apply(_,[].concat(d))}s.apply(void 0,[].concat(d))},t.viewportResizeCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.viewportResize){var _;(_=n).viewportResize.apply(_,[].concat(d))}o.apply(void 0,[].concat(d))},t.inputCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.input){var _;(_=n).input.apply(_,[].concat(d))}a.apply(void 0,[].concat(d))},t.mediaInteractionCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.mediaInteaction){var _;(_=n).mediaInteaction.apply(_,[].concat(d))}u.apply(void 0,[].concat(d))},t.styleSheetRuleCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.styleSheetRule){var _;(_=n).styleSheetRule.apply(_,[].concat(d))}c.apply(void 0,[].concat(d))},t.styleDeclarationCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.styleDeclaration){var _;(_=n).styleDeclaration.apply(_,[].concat(d))}l.apply(void 0,[].concat(d))},t.canvasMutationCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.canvasMutation){var _;(_=n).canvasMutation.apply(_,[].concat(d))}f.apply(void 0,[].concat(d))},t.fontCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.font){var _;(_=n).font.apply(_,[].concat(d))}p.apply(void 0,[].concat(d))},t.selectionCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.selection){var _;(_=n).selection.apply(_,[].concat(d))}g.apply(void 0,[].concat(d))},t.customElementCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.customElement){var _;(_=n).customElement.apply(_,[].concat(d))}v.apply(void 0,[].concat(d))}}function v_(t,n){n===void 0&&(n={});var i=t.doc.defaultView;if(!i)return function(){};d_(t,n);var e;t.recordDOM&&(e=nf(t,t.doc));var r=n_(t),s=i_(t),o=sf(t),a=s_(t,{win:i}),u=a_(t),c=l_(t),l=function(){},f=function(){},p=function(){},g=function(){};t.recordDOM&&(l=u_(t,{win:i}),f=af(t,t.doc),p=c_(t,{win:i}),t.collectFonts&&(g=f_(t)));for(var v=h_(t),y=p_(t),d=[],m=I(t.plugins),_;!(_=m()).done;){var b=_.value;d.push(b.observer(b.callback,i,b.options))}return H(function(){Ye.forEach(function(C){return C.reset()}),e==null||e.disconnect(),r(),s(),o(),a(),u(),c(),l(),f(),p(),g(),v(),y(),d.forEach(function(C){return C()})})}function bi(t){return typeof window[t]!="undefined"}function Si(t){return!!(typeof window[t]!="undefined"&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}for(var uf=(function(){function t(i){x(this,"iframeIdToRemoteIdMap",new WeakMap),x(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=i}var n=t.prototype;return n.getId=function(e,r,s,o){var a=s||this.getIdToRemoteIdMap(e),u=o||this.getRemoteIdToIdMap(e),c=a.get(r);return c||(c=this.generateIdFn(),a.set(r,c),u.set(c,r)),c},n.getIds=function(e,r){var s=this,o=this.getIdToRemoteIdMap(e),a=this.getRemoteIdToIdMap(e);return r.map(function(u){return s.getId(e,u,o,a)})},n.getRemoteId=function(e,r,s){var o=s||this.getRemoteIdToIdMap(e);if(typeof r!="number")return r;var a=o.get(r);return a||-1},n.getRemoteIds=function(e,r){var s=this,o=this.getRemoteIdToIdMap(e);return r.map(function(a){return s.getRemoteId(e,a,o)})},n.reset=function(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},n.getIdToRemoteIdMap=function(e){var r=this.iframeIdToRemoteIdMap.get(e);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(e,r)),r},n.getRemoteIdToIdMap=function(e){var r=this.iframeRemoteIdToIdMap.get(e);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(e,r)),r},t})(),g_=(function(){function t(i){x(this,"iframes",new WeakMap),x(this,"crossOriginIframeMap",new WeakMap),x(this,"crossOriginIframeMirror",new uf(Du)),x(this,"crossOriginIframeStyleMirror"),x(this,"crossOriginIframeRootIdMap",new WeakMap),x(this,"iframeContentDocumentMap",new WeakMap),x(this,"iframeObserverCleanupMap",new WeakMap),x(this,"mirror"),x(this,"mutationCb"),x(this,"wrappedEmit"),x(this,"loadListener"),x(this,"stylesheetManager"),x(this,"recordCrossOriginIframes"),this.mutationCb=i.mutationCb,this.wrappedEmit=i.wrappedEmit,this.stylesheetManager=i.stylesheetManager,this.recordCrossOriginIframes=i.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new uf(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=i.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var n=t.prototype;return n.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},n.getIframeContentDocument=function(e){return this.iframeContentDocumentMap.get(e)},n.setObserverCleanup=function(e,r){this.iframeObserverCleanupMap.set(e,r)},n.getObserverCleanup=function(e){return this.iframeObserverCleanupMap.get(e)},n.removeIframe=function(e){var r=this.iframeContentDocumentMap.get(e);r&&(this.stylesheetManager.cleanupStylesheetsForRemovedNode(r),this.mirror.removeNodeFromMap(r,!0)),this.iframes.delete(e),this.iframeContentDocumentMap.delete(e);var s=this.iframeObserverCleanupMap.get(e);if(s){try{s()}catch(o){}this.iframeObserverCleanupMap.delete(e)}},n.addLoadListener=function(e){this.loadListener=e},n.attachIframe=function(e,r){var s,o;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),e.contentDocument&&this.iframeContentDocumentMap.set(e,e.contentDocument),this.recordCrossOriginIframes&&((s=e.contentWindow)==null||s.addEventListener("message",this.handleMessage.bind(this))),(o=this.loadListener)==null||o.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},n.handleMessage=function(e){var r=e;if(!(r.data.type!=="rrweb"||r.origin!==r.data.origin)){var s=e.source;if(s){var o=this.crossOriginIframeMap.get(e.source);if(o){var a=this.transformCrossOriginEvent(o,r.data.event);a&&this.wrappedEmit(a,r.data.isCheckout)}}}},n.transformCrossOriginEvent=function(e,r){var s=this,o;switch(r.type){case j.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(r.data.node,e);var a=r.data.node.id;return this.crossOriginIframeRootIdMap.set(e,a),this.patchRootIdOnNode(r.data.node,a),{timestamp:r.timestamp,type:j.IncrementalSnapshot,data:{source:D.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case j.Meta:case j.Load:case j.DomContentLoaded:return!1;case j.Plugin:return r;case j.Custom:return this.replaceIds(r.data.payload,e,["id","parentId","previousId","nextId"]),r;case j.IncrementalSnapshot:switch(r.data.source){case D.Mutation:return r.data.adds.forEach(function(u){s.replaceIds(u,e,["parentId","nextId","previousId"]),s.replaceIdOnNode(u.node,e);var c=s.crossOriginIframeRootIdMap.get(e);c&&s.patchRootIdOnNode(u.node,c)}),r.data.removes.forEach(function(u){s.replaceIds(u,e,["parentId","id"])}),r.data.attributes.forEach(function(u){s.replaceIds(u,e,["id"])}),r.data.texts.forEach(function(u){s.replaceIds(u,e,["id"])}),r;case D.Drag:case D.TouchMove:case D.MouseMove:return r.data.positions.forEach(function(u){s.replaceIds(u,e,["id"])}),r;case D.ViewportResize:return!1;case D.MediaInteraction:case D.MouseInteraction:case D.Scroll:case D.CanvasMutation:case D.Input:return this.replaceIds(r.data,e,["id"]),r;case D.StyleSheetRule:case D.StyleDeclaration:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleId"]),r;case D.Font:return r;case D.Selection:return r.data.ranges.forEach(function(u){s.replaceIds(u,e,["start","end"])}),r;case D.AdoptedStyleSheet:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleIds"]),(o=r.data.styles)==null||o.forEach(function(u){s.replaceStyleIds(u,e,["styleId"])}),r}}return!1},n.replace=function(e,r,s,o){for(var a=I(o),u;!(u=a()).done;){var c=u.value;!Array.isArray(r[c])&&typeof r[c]!="number"||(Array.isArray(r[c])?r[c]=e.getIds(s,r[c]):r[c]=e.getId(s,r[c]))}return r},n.replaceIds=function(e,r,s){return this.replace(this.crossOriginIframeMirror,e,r,s)},n.replaceStyleIds=function(e,r,s){return this.replace(this.crossOriginIframeStyleMirror,e,r,s)},n.replaceIdOnNode=function(e,r){var s=this;this.replaceIds(e,r,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(o){s.replaceIdOnNode(o,r)})},n.patchRootIdOnNode=function(e,r){var s=this;e.type!==Xl.Document&&!e.rootId&&(e.rootId=r),"childNodes"in e&&e.childNodes.forEach(function(o){s.patchRootIdOnNode(o,r)})},t})(),m_=(function(){function t(i){x(this,"shadowDoms",new WeakSet),x(this,"mutationCb"),x(this,"scrollCb"),x(this,"bypassOptions"),x(this,"mirror"),x(this,"restoreHandlers",[]),this.mutationCb=i.mutationCb,this.scrollCb=i.scrollCb,this.bypassOptions=i.bypassOptions,this.mirror=i.mirror,this.init()}var n=t.prototype;return n.init=function(){this.reset(),this.patchAttachShadow(Element,document)},n.addShadowRoot=function(e,r){var s=this;if(Ur(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var o=nf(z({},this.bypassOptions,{doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return o.disconnect()}),this.restoreHandlers.push(sf(z({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&s.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,s.mirror.getId(V.host(e))),s.restoreHandlers.push(af({mirror:s.mirror,stylesheetManager:s.bypassOptions.stylesheetManager},e))},0)}},n.observeAttachShadow=function(e){!e.contentWindow||!e.contentDocument||this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},n.patchAttachShadow=function(e,r){var s=this;this.restoreHandlers.push(zt(e.prototype,"attachShadow",function(o){return function(a){var u=o.call(this,a),c=V.shadowRoot(this);return c&&Jl(this)&&s.addShadowRoot(c,r),u}}))},n.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(r){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},t})(),yr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y_=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Ci=0;Ci<yr.length;Ci++)y_[yr.charCodeAt(Ci)]=Ci;var __=function(n){var i=new Uint8Array(n),e,r=i.length,s="";for(e=0;e<r;e+=3)s+=yr[i[e]>>2],s+=yr[(i[e]&3)<<4|i[e+1]>>4],s+=yr[(i[e+1]&15)<<2|i[e+2]>>6],s+=yr[i[e+2]&63];return r%3===2?s=s.substring(0,s.length-1)+"=":r%3===1&&(s=s.substring(0,s.length-2)+"=="),s},cf=new Map;function w_(t,n){var i=cf.get(t);return i||(i=new Map,cf.set(t,i)),i.has(n)||i.set(n,[]),i.get(n)}var lf=function(t,n,i){if(!(!t||!(hf(t,n)||(typeof t=="undefined"?"undefined":T(t))==="object"))){var e=t.constructor.name,r=w_(i,e),s=r.indexOf(t);return s===-1&&(s=r.length,r.push(t)),s}};function Ei(t,n,i){if(M(t,Array))return t.map(function(v){return Ei(v,n,i)});if(t===null)return t;if(M(t,Float32Array)||M(t,Float64Array)||M(t,Int32Array)||M(t,Uint32Array)||M(t,Uint8Array)||M(t,Uint16Array)||M(t,Int16Array)||M(t,Int8Array)||M(t,Uint8ClampedArray)){var e=t.constructor.name;return{rr_type:e,args:[Object.values(t)]}}else if(M(t,ArrayBuffer)){var r=t.constructor.name,s=__(t);return{rr_type:r,base64:s}}else if(M(t,DataView)){var o=t.constructor.name;return{rr_type:o,args:[Ei(t.buffer,n,i),t.byteOffset,t.byteLength]}}else if(M(t,HTMLImageElement)){var a=t.constructor.name,u=t.src;return{rr_type:a,src:u}}else if(M(t,HTMLCanvasElement)){var c="HTMLImageElement",l=t.toDataURL();return{rr_type:c,src:l}}else if(M(t,ImageData)){var f=t.constructor.name;return{rr_type:f,args:[Ei(t.data,n,i),t.width,t.height]}}else if(hf(t,n)||(typeof t=="undefined"?"undefined":T(t))==="object"){var p=t.constructor.name,g=lf(t,n,i);return{rr_type:p,index:g}}return t}var ff=function(t,n,i){return t.map(function(e){return Ei(e,n,i)})},hf=function(t,n){var i=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],e=i.filter(function(r){return typeof n[r]=="function"});return!!e.find(function(r){return M(t,n[r])})};function b_(t,n,i,e){for(var r=function(){var c=u.value;try{if(typeof n.CanvasRenderingContext2D.prototype[c]!="function")return"continue";var l=zt(n.CanvasRenderingContext2D.prototype,c,function(p){return function(){for(var g=this,v=arguments.length,y=new Array(v),d=0;d<v;d++)y[d]=arguments[d];return Me(this.canvas,i,e,!0)||setTimeout(function(){var m=ff(y,n,g);t(g.canvas,{type:gr["2D"],property:c,args:m})},0),p.apply(this,y)}});s.push(l)}catch(p){var f=yi(n.CanvasRenderingContext2D.prototype,c,{set:function(v){t(this.canvas,{type:gr["2D"],property:c,args:[v],setter:!0})}});s.push(f)}},s=[],o=Object.getOwnPropertyNames(n.CanvasRenderingContext2D.prototype),a=I(o),u;!(u=a()).done;)r();return function(){s.forEach(function(c){return c()})}}function S_(t){return t==="experimental-webgl"?"webgl":t}function pf(t,n,i,e){var r=[];try{var s=zt(t.HTMLCanvasElement.prototype,"getContext",function(o){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(!Me(this,n,i,!0)){var f=S_(a);if("__context"in this||(this.__context=f),e&&["webgl","webgl2"].includes(f))if(c[0]&&T(c[0])==="object"){var p=c[0];p.preserveDrawingBuffer||(p.preserveDrawingBuffer=!0)}else c.splice(0,1,{preserveDrawingBuffer:!0})}return o.apply(this,[].concat([a],c))}});r.push(s)}catch(o){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){r.forEach(function(o){return o()})}}function df(t,n,i,e,r,s){for(var o=function(){var f=l.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(f))return"continue";try{if(typeof t[f]!="function")return"continue";var p=zt(t,f,function(v){return function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];var _=v.apply(this,d);if(lf(_,s,this),"tagName"in this.canvas&&!Me(this.canvas,e,r,!0)){var b=ff(d,s,this),C={type:n,property:f,args:b};i(this.canvas,C)}return _}});a.push(p)}catch(v){var g=yi(t,f,{set:function(d){i(this.canvas,{type:n,property:f,args:[d],setter:!0})}});a.push(g)}},a=[],u=Object.getOwnPropertyNames(t),c=I(u),l;!(l=c()).done;)o();return a}function C_(t,n,i,e){var r,s=[];if((r=s).push.apply(r,[].concat(df(n.WebGLRenderingContext.prototype,gr.WebGL,t,i,e,n))),typeof n.WebGL2RenderingContext!="undefined"){var o;(o=s).push.apply(o,[].concat(df(n.WebGL2RenderingContext.prototype,gr.WebGL2,t,i,e,n)))}return function(){s.forEach(function(a){return a()})}}var vf="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",E_=function(t){return Uint8Array.from(atob(t),function(n){return n.charCodeAt(0)})},gf=typeof window!="undefined"&&window.Blob&&new Blob([E_(vf)],{type:"text/javascript;charset=utf-8"});function I_(t){var n;try{if(n=gf&&(window.URL||window.webkitURL).createObjectURL(gf),!n)throw"";var i=new Worker(n,{name:t==null?void 0:t.name});return i.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(n)}),i}catch(e){return new Worker("data:text/javascript;base64,"+vf,{name:t==null?void 0:t.name})}finally{n&&(window.URL||window.webkitURL).revokeObjectURL(n)}}var O_=(function(){function t(i){var e=this;x(this,"pendingCanvasMutations",new Map),x(this,"rafStamps",{latestId:0,invokeId:null}),x(this,"mirror"),x(this,"mutationCb"),x(this,"resetObservers"),x(this,"frozen",!1),x(this,"locked",!1),x(this,"processMutation",function(f,p){var g=e.rafStamps.invokeId&&e.rafStamps.latestId!==e.rafStamps.invokeId;(g||!e.rafStamps.invokeId)&&(e.rafStamps.invokeId=e.rafStamps.latestId),e.pendingCanvasMutations.has(f)||e.pendingCanvasMutations.set(f,[]),e.pendingCanvasMutations.get(f).push(p)});var r=i.sampling,s=r===void 0?"all":r,o=i.win,a=i.blockClass,u=i.blockSelector,c=i.recordCanvas,l=i.dataURLOptions;this.mutationCb=i.mutationCb,this.mirror=i.mirror,c&&s==="all"&&this.initCanvasMutationObserver(o,a,u),c&&typeof s=="number"&&this.initCanvasFPSObserver(s,o,a,u,{dataURLOptions:l})}var n=t.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(e,r,s,o,a){var u=this,c=pf(r,s,o,!0),l=new Map,f=new I_;f.onmessage=function(m){var _=m.data.id;if(l.set(_,!1),"base64"in m.data){var b=m.data,C=b.base64,S=b.type,O=b.width,A=b.height;u.mutationCb({id:_,type:gr["2D"],commands:[{property:"clearRect",args:[0,0,O,A]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:C}],type:S}]},0,0]}]})}};var p=1e3/e,g=0,v,y=function(){var m=[];return r.document.querySelectorAll("canvas").forEach(function(_){Me(_,s,o,!0)||m.push(_)}),m},d=function(m){if(g&&m-g<p){v=requestAnimationFrame(d);return}g=m;var _=u;y().forEach(Cn(function(b){var C,S,O,A;return Dt(this,function(k){switch(k.label){case 0:return S=_.mirror.getId(b),l.get(S)?[2]:b.width===0||b.height===0?[2]:(l.set(S,!0),["webgl","webgl2"].includes(b.__context)&&(O=b.getContext(b.__context),((C=O==null?void 0:O.getContextAttributes())==null?void 0:C.preserveDrawingBuffer)===!1&&O.clear(O.COLOR_BUFFER_BIT)),[4,createImageBitmap(b)]);case 1:return A=k.sent(),f.postMessage({id:S,bitmap:A,width:b.width,height:b.height,dataURLOptions:a.dataURLOptions},[A]),[2]}})})),v=requestAnimationFrame(d)};v=requestAnimationFrame(d),this.resetObservers=function(){c(),cancelAnimationFrame(v)}},n.initCanvasMutationObserver=function(e,r,s){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var o=pf(e,r,s,!1),a=b_(this.processMutation.bind(this),e,r,s),u=C_(this.processMutation.bind(this),e,r,s);this.resetObservers=function(){o(),a(),u()}},n.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},n.startRAFTimestamping=function(){var e=this,r=function(s){e.rafStamps.latestId=s,requestAnimationFrame(r)};requestAnimationFrame(r)},n.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(r,s){var o=e.mirror.getId(s);e.flushPendingCanvasMutationFor(s,o)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},n.flushPendingCanvasMutationFor=function(e,r){if(!(this.frozen||this.locked)){var s=this.pendingCanvasMutations.get(e);if(!(!s||r===-1)){var o=s.map(function(u){u.type;var c=Lt(u,["type"]);return c}),a=s[0].type;this.mutationCb({id:r,type:a,commands:o}),this.pendingCanvasMutations.delete(e)}}},t})(),x_=(function(){function t(i){x(this,"trackedLinkElements",new WeakSet),x(this,"mutationCb"),x(this,"adoptedStyleSheetCb"),x(this,"styleMirror",new Hy),this.mutationCb=i.mutationCb,this.adoptedStyleSheetCb=i.adoptedStyleSheetCb}var n=t.prototype;return n.attachLinkElement=function(e,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(e)},n.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},n.adoptStyleSheets=function(e,r){var s,o=function(){var f=l.value,p=void 0;s.styleMirror.has(f)?p=s.styleMirror.getId(f):(p=s.styleMirror.add(f),u.push({styleId:p,rules:Array.from(f.rules||CSSRule,function(g,v){return{rule:Pu(g,f.href),index:v}})})),a.styleIds.push(p)};if(e.length!==0){for(var a={id:r,styleIds:[]},u=[],c=I(e),l;!(l=c()).done;)s=this,o();u.length>0&&(a.styles=u),this.adoptedStyleSheetCb(a)}},n.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},n.cleanupStylesheetsForRemovedNode=function(e){var r=this;try{if(e.nodeType===Node.DOCUMENT_NODE){var s=e;if(s.adoptedStyleSheets)for(var o=I(s.adoptedStyleSheets),a;!(a=o()).done;){var u=a.value;this.styleMirror.remove(u)}}if(e.nodeName==="STYLE"){var c=e;c.sheet&&this.styleMirror.remove(c.sheet)}if(e.nodeName==="LINK"&&e.rel==="stylesheet"){var l=e;l.sheet&&this.styleMirror.remove(l.sheet)}e.childNodes&&e.childNodes.forEach(function(f){r.cleanupStylesheetsForRemovedNode(f)})}catch(f){}},n.trackStylesheetInLinkElement=function(e){},t})(),k_=(function(){function t(){x(this,"nodeMap",new WeakMap),x(this,"active",!1)}var n=t.prototype;return n.inOtherBuffer=function(e,r){var s=this.nodeMap.get(e);return s&&Array.from(s).some(function(o){return o!==r})},n.add=function(e,r){var s=this;this.active||(this.active=!0,requestAnimationFrame(function(){s.nodeMap=new WeakMap,s.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(r))},n.destroy=function(){},t})();function R_(t){try{var n=new URL(t).origin;return n!=="null"?n:null}catch(i){return null}}function A_(t){if(!Array.isArray(t)||t.length===0)throw new Error("[rrweb] allowedIframeOrigins must be a non-empty array of origin strings.");for(var n=new Set,i=0;i<t.length;i++){var e=t[i];if(typeof e!="string")throw new Error("[rrweb] allowedIframeOrigins["+i+"] must be a string, got "+(typeof e=="undefined"?"undefined":T(e))+".");var r=R_(e);r&&n.add(r)}return Object.freeze(n)}var ve,Ii,Vo,Oi=!1;try{if(Array.from([1],function(t){return t*2})[0]!==2){var jo=document.createElement("iframe");document.body.appendChild(jo),Array.from=((xu=jo.contentWindow)==null?void 0:xu.Array.from)||Array.from,document.body.removeChild(jo)}}catch(t){console.debug("Unable to override Array.from",t)}var qe=Id();function wt(t){t===void 0&&(t={});var n=t.emit,i=t.checkoutEveryNms,e=t.checkoutEveryNth,r=t.blockClass,s=r===void 0?"rr-block":r,o=t.blockSelector,a=o===void 0?null:o,u=t.ignoreClass,c=u===void 0?"rr-ignore":u,l=t.ignoreSelector,f=l===void 0?null:l,p=t.maskTextClass,g=p===void 0?"rr-mask":p,v=t.maskTextSelector,y=v===void 0?null:v,d=t.inlineStylesheet,m=d===void 0?!0:d,_=t.maskAllInputs,b=t.maskInputOptions,C=t.slimDOMOptions,S=t.maskInputFn,O=t.maskTextFn,A=t.hooks,k=t.packFn,$=t.sampling,W=$===void 0?{}:$,ge=t.dataURLOptions,L=ge===void 0?{}:ge,G=t.mousemoveWait,de=t.recordDOM,Y=de===void 0?!0:de,De=t.recordCanvas,Ne=De===void 0?!1:De,ke=t.recordCrossOriginIframes,pe=ke===void 0?!1:ke,xe=t.allowedIframeOrigins,Jt=t.recordAfter,nt=Jt===void 0?t.recordAfter==="DOMContentLoaded"?t.recordAfter:"load":Jt,Xt=t.userTriggeredOnInput,ze=Xt===void 0?!1:Xt,$t=t.collectFonts,J=$t===void 0?!1:$t,Tr=t.inlineImages,Pr=Tr===void 0?!1:Tr,Nt=t.plugins,ws=t.keepIframeSrcFn,$r=ws===void 0?function(){return!1}:ws,bs=t.ignoreCSSAttributes,Ss=bs===void 0?new Set([]):bs,Sn=t.errorHandler;e_(Sn);var Zt;pe&&xe&&xe.length>0&&(Zt=A_(xe),Zt.size===0&&(Zt=void 0));var Qt=pe?window.parent===window:!0,er=!1;if(!Qt)try{window.parent.document&&(er=!1)}catch(K){er=!0}if(Qt&&!n)throw new Error("emit function is required");if(!Qt&&!er)return function(){};G!==void 0&&W.mousemove===void 0&&(W.mousemove=G),qe.reset();var tr=_===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:b!==void 0?b:{password:!0},rr=C===!0||C==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:C==="all",headMetaDescKeywords:C==="all",headTitleMutations:C==="all"}:C||{};jy();var pt,Nr=0,Vp=function(K){for(var Te=I(Nt||[]),P;!(P=Te()).done;){var ne=P.value;ne.eventProcessor&&(K=ne.eventProcessor(K))}return k&&!er&&(K=k(K)),K};ve=function(K,Te){var P,ne=K;if(ne.timestamp=_i(),(P=Ye[0])!=null&&P.isFrozen()&&ne.type!==j.FullSnapshot&&!(ne.type===j.IncrementalSnapshot&&ne.data.source===D.Mutation)&&Ye.forEach(function(NC){return NC.unfreeze()}),Qt)n==null||n(Vp(ne),Te);else if(er){var sr={type:"rrweb",event:Vp(ne),origin:window.location.origin,isCheckout:Te};if(Zt)for(var bu=I(Zt),Xp;!(Xp=bu()).done;){var TC=Xp.value;window.parent.postMessage(sr,TC)}else window.parent.postMessage(sr,"*")}if(ne.type===j.FullSnapshot)pt=ne,Nr=0;else if(ne.type===j.IncrementalSnapshot){if(ne.data.source===D.Mutation&&ne.data.isAttachIframe)return;Nr++;var PC=e&&Nr>=e,$C=i&&ne.timestamp-pt.timestamp>i;(PC||$C)&&Ii(!0)}};for(var Cs=function(K){ve({type:j.IncrementalSnapshot,data:z({source:D.Mutation},K)})},jp=function(K){return ve({type:j.IncrementalSnapshot,data:z({source:D.Scroll},K)})},Hp=function(K){return ve({type:j.IncrementalSnapshot,data:z({source:D.CanvasMutation},K)})},AC=function(K){return ve({type:j.IncrementalSnapshot,data:z({source:D.AdoptedStyleSheet},K)})},nr=new x_({mutationCb:Cs,adoptedStyleSheetCb:AC}),dt=new g_({mirror:qe,mutationCb:Cs,stylesheetManager:nr,recordCrossOriginIframes:pe,wrappedEmit:ve}),MC=I(Nt||[]),Yp;!(Yp=MC()).done;){var Kp=Yp.value;Kp.getMirror&&Kp.getMirror({nodeMirror:qe,crossOriginIframeMirror:dt.crossOriginIframeMirror,crossOriginIframeStyleMirror:dt.crossOriginIframeStyleMirror})}var _u=new k_;Vo=new O_({recordCanvas:Ne,mutationCb:Hp,win:window,blockClass:s,blockSelector:a,mirror:qe,sampling:W.canvas,dataURLOptions:L});var Es=new m_({mutationCb:Cs,scrollCb:jp,bypassOptions:{blockClass:s,blockSelector:a,maskTextClass:g,maskTextSelector:y,inlineStylesheet:m,maskInputOptions:tr,dataURLOptions:L,maskTextFn:O,maskInputFn:S,recordCanvas:Ne,inlineImages:Pr,sampling:W,slimDOMOptions:rr,iframeManager:dt,stylesheetManager:nr,canvasManager:Vo,keepIframeSrcFn:$r,processedNodeManager:_u},mirror:qe});Ii=function(K){if(K===void 0&&(K=!1),!!Y){ve({type:j.Meta,data:{href:window.location.href,width:Gl(),height:Wl()}},K),nr.reset(),Es.init(),Ye.forEach(function(P){return P.lock()});var Te=Kd(document,{mirror:qe,blockClass:s,blockSelector:a,maskTextClass:g,maskTextSelector:y,inlineStylesheet:m,maskAllInputs:tr,maskTextFn:O,maskInputFn:S,slimDOM:rr,dataURLOptions:L,recordCanvas:Ne,inlineImages:Pr,onSerialize:function(P){Hl(P,qe)&&dt.addIframe(P),Yl(P,qe)&&nr.trackLinkElement(P),Wo(P)&&Es.addShadowRoot(V.shadowRoot(P),document)},onIframeLoad:function(P,ne){dt.attachIframe(P,ne),Es.observeAttachShadow(P)},onStylesheetLoad:function(P,ne){nr.attachLinkElement(P,ne)},keepIframeSrcFn:$r});if(!Te)return console.warn("Failed to snapshot the document");ve({type:j.FullSnapshot,data:{node:Te,initialOffset:ql(window)}},K),Ye.forEach(function(P){return P.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&nr.adoptStyleSheets(document.adoptedStyleSheets,qe.getId(document))}};try{var ir=[],Jp=function(K){var Te;return H(v_)({mutationCb:Cs,mousemoveCb:function(P,ne){return ve({type:j.IncrementalSnapshot,data:{source:ne,positions:P}})},mouseInteractionCb:function(P){return ve({type:j.IncrementalSnapshot,data:z({source:D.MouseInteraction},P)})},scrollCb:jp,viewportResizeCb:function(P){return ve({type:j.IncrementalSnapshot,data:z({source:D.ViewportResize},P)})},inputCb:function(P){return ve({type:j.IncrementalSnapshot,data:z({source:D.Input},P)})},mediaInteractionCb:function(P){return ve({type:j.IncrementalSnapshot,data:z({source:D.MediaInteraction},P)})},styleSheetRuleCb:function(P){return ve({type:j.IncrementalSnapshot,data:z({source:D.StyleSheetRule},P)})},styleDeclarationCb:function(P){return ve({type:j.IncrementalSnapshot,data:z({source:D.StyleDeclaration},P)})},canvasMutationCb:Hp,fontCb:function(P){return ve({type:j.IncrementalSnapshot,data:z({source:D.Font},P)})},selectionCb:function(P){ve({type:j.IncrementalSnapshot,data:z({source:D.Selection},P)})},customElementCb:function(P){ve({type:j.IncrementalSnapshot,data:z({source:D.CustomElement},P)})},blockClass:s,ignoreClass:c,ignoreSelector:f,maskTextClass:g,maskTextSelector:y,maskInputOptions:tr,inlineStylesheet:m,sampling:W,recordDOM:Y,recordCanvas:Ne,inlineImages:Pr,userTriggeredOnInput:ze,collectFonts:J,doc:K,maskInputFn:S,maskTextFn:O,keepIframeSrcFn:$r,blockSelector:a,slimDOMOptions:rr,dataURLOptions:L,mirror:qe,iframeManager:dt,stylesheetManager:nr,shadowDomManager:Es,processedNodeManager:_u,canvasManager:Vo,ignoreCSSAttributes:Ss,plugins:((Te=Nt==null?void 0:Nt.filter(function(P){return P.observer}))==null?void 0:Te.map(function(P){return{observer:P.observer,options:P.options,callback:function(ne){return ve({type:j.Plugin,data:{plugin:P.name,payload:ne}})}}}))||[]},A)};dt.addLoadListener(function(K){try{var Te=K.contentDocument,P=Jp(Te);ir.push(P);var ne=dt.getObserverCleanup(K);dt.setObserverCleanup(K,function(){if(ne)try{ne()}catch(bu){}try{P();var sr=ir.indexOf(P);sr!==-1&&ir.splice(sr,1),r_(Te)}catch(bu){}})}catch(sr){console.warn(sr)}});var wu=function(){Ii(),ir.push(Jp(document)),Oi=!0};return document.readyState==="interactive"||document.readyState==="complete"?wu():(ir.push(Ae("DOMContentLoaded",function(){ve({type:j.DomContentLoaded,data:{}}),nt==="DOMContentLoaded"&&wu()})),ir.push(Ae("load",function(){ve({type:j.Load,data:{}}),nt==="load"&&wu()},window))),function(){ir.forEach(function(K){try{K()}catch(P){var Te=String(P).toLowerCase();Te.includes("cross-origin")||console.warn(P)}}),_u.destroy(),Oi=!1,t_()}}catch(K){console.warn(K)}}wt.addCustomEvent=function(t,n){if(!Oi)throw new Error("please add custom event after start recording");ve({type:j.Custom,data:{tag:t,payload:n}})},wt.freezePage=function(){Ye.forEach(function(t){return t.freeze()})},wt.takeFullSnapshot=function(t){if(!Oi)throw new Error("please take full snapshot after start recording");Ii(t)},wt.mirror=qe;var mf;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(mf||(mf={})),wt.addCustomEvent,wt.freezePage,wt.takeFullSnapshot;var yf={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},_f={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},xi={},M_=function(){return!!globalThis.Zone};function Ho(t){if(xi[t])return xi[t];var n=globalThis[t],i=n.prototype,e=t in yf?yf[t]:void 0,r=!!(e&&e.every(function(l){var f,p;return!!((p=(f=Object.getOwnPropertyDescriptor(i,l))==null?void 0:f.get)!=null&&p.toString().includes("[native code]"))})),s=t in _f?_f[t]:void 0,o=!!(s&&s.every(function(l){var f;return typeof i[l]=="function"&&((f=i[l])==null?void 0:f.toString().includes("[native code]"))}));if(r&&o&&!M_())return xi[t]=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[t].prototype;return document.body.removeChild(a),c?xi[t]=c:i}catch(l){return i}}var Yo={};function bt(t,n,i){var e,r=t+"."+String(i);if(Yo[r])return Yo[r].call(n);var s=Ho(t),o=(e=Object.getOwnPropertyDescriptor(s,i))==null?void 0:e.get;return o?(Yo[r]=o,o.call(n)):n[i]}var Ko={};function wf(t,n,i){var e=t+"."+String(i);if(Ko[e])return Ko[e].bind(n);var r=Ho(t),s=r[i];return typeof s!="function"?n[i]:(Ko[e]=s,s.bind(n))}function T_(t){return bt("Node",t,"childNodes")}function P_(t){return bt("Node",t,"parentNode")}function $_(t){return bt("Node",t,"parentElement")}function N_(t){return bt("Node",t,"textContent")}function L_(t,n){return wf("Node",t,"contains")(n)}function D_(t){return wf("Node",t,"getRootNode")()}function F_(t){return!t||!("host"in t)?null:bt("ShadowRoot",t,"host")}function U_(t){return t.styleSheets}function B_(t){return!t||!("shadowRoot"in t)?null:bt("Element",t,"shadowRoot")}function z_(t,n){return bt("Element",t,"querySelector")(n)}function q_(t,n){return bt("Element",t,"querySelectorAll")(n)}function W_(){return Ho("MutationObserver").constructor}function G_(t,n,i){try{if(!(n in t))return function(){};var e=t[n],r=i(e);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:e}})),t[n]=r,function(){t[n]=e}}catch(s){return function(){}}}var bf={childNodes:T_,parentNode:P_,parentElement:$_,textContent:N_,contains:L_,getRootNode:D_,host:F_,styleSheets:U_,shadowRoot:B_,querySelector:z_,querySelectorAll:q_,mutationObserver:W_,patch:G_};function Jo(t,n,i){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return Jo(bf.parentNode(t),n);for(var e=t.classList.length;e--;){var r=t.classList[e];if(n.test(r))return!0}return Jo(bf.parentNode(t),n)}function V_(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function j_(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var i=function e(){return M(this,e)?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(t).forEach(function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(i,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}),i}var Xo={exports:{}},ae=String,Sf=function(){return{isColorSupported:!1,reset:ae,bold:ae,dim:ae,italic:ae,underline:ae,inverse:ae,hidden:ae,strikethrough:ae,black:ae,red:ae,green:ae,yellow:ae,blue:ae,magenta:ae,cyan:ae,white:ae,gray:ae,bgBlack:ae,bgRed:ae,bgGreen:ae,bgYellow:ae,bgBlue:ae,bgMagenta:ae,bgCyan:ae,bgWhite:ae}};Xo.exports=Sf(),Xo.exports.createColors=Sf;var H_=Xo.exports,Y_={},K_=Object.freeze(Object.defineProperty({__proto__:null,default:Y_},Symbol.toStringTag,{value:"Module"})),_e=j_(K_),Cf=H_,Ef=_e,Zo=(function(t){ce(n,t);function n(e,r,s,o,a,u){var c;return c=t.call(this,e)||this,c.name="CssSyntaxError",c.reason=e,a&&(c.file=a),o&&(c.source=o),u&&(c.plugin=u),typeof r!="undefined"&&typeof s!="undefined"&&(typeof r=="number"?(c.line=r,c.column=s):(c.line=r.line,c.column=r.column,c.endLine=s.line,c.endColumn=s.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 s=this;if(!this.source)return"";var o=this.source;r==null&&(r=Cf.isColorSupported),Ef&&r&&(o=Ef(o));var a=o.split(/\r?\n/),u=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),l=String(c).length,f,p;if(r){var g=Cf.createColors(!0),v=g.bold,y=g.gray,d=g.red;f=function(m){return v(d(m))},p=function(m){return y(m)}}else f=p=function(m){return m};return a.slice(u,c).map(function(m,_){var b=u+1+_,C=" "+(" "+b).slice(-l)+" | ";if(b===s.line){var S=p(C.replace(/\d/g," "))+m.slice(0,s.column-1).replace(/[^\t]/g," ");return f(">")+p(C)+m+"\n "+S+f("^")}return" "+p(C)+m}).join("\n")},i.toString=function(){var r=this.showSourceCode();return r&&(r="\n\n"+r+"\n"),this.name+": "+this.message+r},n})(Dr(Error)),Qo=Zo;Zo.default=Zo;var St={};St.isClean=Symbol("isClean"),St.my=Symbol("my");var If={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function J_(t){return t[0].toUpperCase()+t.slice(1)}var ea=(function(){function t(i){this.builder=i}var n=t.prototype;return n.atrule=function(e,r){var s="@"+e.name,o=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?s+=e.raws.afterName:o&&(s+=" "),e.nodes)this.block(e,s+o);else{var a=(e.raws.between||"")+(r?";":"");this.builder(s+o+a,e)}},n.beforeAfter=function(e,r){var s;e.type==="decl"?s=this.raw(e,null,"beforeDecl"):e.type==="comment"?s=this.raw(e,null,"beforeComment"):r==="before"?s=this.raw(e,null,"beforeRule"):s=this.raw(e,null,"beforeClose");for(var o=e.parent,a=0;o&&o.type!=="root";)a+=1,o=o.parent;if(s.includes("\n")){var u=this.raw(e,null,"indent");if(u.length)for(var c=0;c<a;c++)s+=u}return s},n.block=function(e,r){var s=this.raw(e,"between","beforeOpen");this.builder(r+s+"{",e,"start");var o;e.nodes&&e.nodes.length?(this.body(e),o=this.raw(e,"after")):o=this.raw(e,"after","emptyBody"),o&&this.builder(o),this.builder("}",e,"end")},n.body=function(e){for(var r=e.nodes.length-1;r>0&&e.nodes[r].type==="comment";)r-=1;for(var s=this.raw(e,"semicolon"),o=0;o<e.nodes.length;o++){var a=e.nodes[o],u=this.raw(a,"before");u&&this.builder(u),this.stringify(a,r!==o||s)}},n.comment=function(e){var r=this.raw(e,"left","commentLeft"),s=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+s+"*/",e)},n.decl=function(e,r){var s=this.raw(e,"between","colon"),o=e.prop+s+this.rawValue(e,"value");e.important&&(o+=e.raws.important||" !important"),r&&(o+=";"),this.builder(o,e)},n.document=function(e){this.body(e)},n.raw=function(e,r,s){var o;if(s||(s=r),r&&(o=e.raws[r],typeof o!="undefined"))return o;var a=e.parent;if(s==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return If[s];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[s]!="undefined")return u.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(e,s);var c="raw"+J_(s);return this[c]?o=this[c](u,e):u.walk(function(l){if(o=l.raws[r],typeof o!="undefined")return!1}),typeof o=="undefined"&&(o=If[s]),u.rawCache[s]=o,o},n.rawBeforeClose=function(e){var r;return e.walk(function(s){if(s.nodes&&s.nodes.length>0&&typeof s.raws.after!="undefined")return r=s.raws.after,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(e,r){var s;return e.walkComments(function(o){if(typeof o.raws.before!="undefined")return s=o.raws.before,s.includes("\n")&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s=="undefined"?s=this.raw(r,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s},n.rawBeforeDecl=function(e,r){var s;return e.walkDecls(function(o){if(typeof o.raws.before!="undefined")return s=o.raws.before,s.includes("\n")&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s=="undefined"?s=this.raw(r,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s},n.rawBeforeOpen=function(e){var r;return e.walk(function(s){if(s.type!=="decl"&&(r=s.raws.between,typeof r!="undefined"))return!1}),r},n.rawBeforeRule=function(e){var r;return e.walk(function(s){if(s.nodes&&(s.parent!==e||e.first!==s)&&typeof s.raws.before!="undefined")return r=s.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawColon=function(e){var r;return e.walkDecls(function(s){if(typeof s.raws.between!="undefined")return r=s.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(e){var r;return e.walk(function(s){if(s.nodes&&s.nodes.length===0&&(r=s.raws.after,typeof r!="undefined"))return!1}),r},n.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var r;return e.walk(function(s){var o=s.parent;if(o&&o!==e&&o.parent&&o.parent===e&&typeof s.raws.before!="undefined"){var a=s.raws.before.split("\n");return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r},n.rawSemicolon=function(e){var r;return e.walk(function(s){if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(r=s.raws.semicolon,typeof r!="undefined"))return!1}),r},n.rawValue=function(e,r){var s=e[r],o=e.raws[r];return o&&o.value===s?o.raw:s},n.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},n.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},n.stringify=function(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)},t})(),Of=ea;ea.default=ea;var X_=Of;function ta(t,n){var i=new X_(n);i.stringify(t)}var ki=ta;ta.default=ta;var Ri=St.isClean,Z_=St.my,Q_=Qo,ew=Of,tw=ki;function ra(t,n){var i=new t.constructor;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&e!=="proxyCache"){var r=t[e],s=typeof r=="undefined"?"undefined":T(r);e==="parent"&&s==="object"?n&&(i[e]=n):e==="source"?i[e]=r:Array.isArray(r)?i[e]=r.map(function(o){return ra(o,i)}):(s==="object"&&r!==null&&(r=ra(r)),i[e]=r)}return i}var na=(function(){function t(i){i===void 0&&(i={}),this.raws={},this[Ri]=!1,this[Z_]=!0;for(var e in i)if(e==="nodes"){this.nodes=[];for(var r=I(i[e]),s;!(s=r()).done;){var o=s.value;typeof o.clone=="function"?this.append(o.clone()):this.append(o)}}else this[e]=i[e]}var n=t.prototype;return n.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return e},n.after=function(e){return this.parent.insertAfter(this,e),this},n.assign=function(e){e===void 0&&(e={});for(var r in e)this[r]=e[r];return this},n.before=function(e){return this.parent.insertBefore(this,e),this},n.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},n.clone=function(e){e===void 0&&(e={});var r=ra(this);for(var s in e)r[s]=e[s];return r},n.cloneAfter=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertAfter(this,r),r},n.cloneBefore=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertBefore(this,r),r},n.error=function(e,r){if(r===void 0&&(r={}),this.source){var s=this.rangeBy(r),o=s.end,a=s.start;return this.source.input.error(e,{column:a.column,line:a.line},{column:o.column,line:o.line},r)}return new Q_(e)},n.getProxyProcessor=function(){return{get:function(r,s){return s==="proxyOf"?r:s==="root"?function(){return r.root().toProxy()}:r[s]},set:function(r,s,o){return r[s]===o||(r[s]=o,(s==="prop"||s==="value"||s==="name"||s==="params"||s==="important"||s==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[Ri]){this[Ri]=!1;for(var e=this;e=e.parent;)e[Ri]=!1}},n.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},n.positionBy=function(e,r){var s=this.source.start;if(e.index)s=this.positionInside(e.index,r);else if(e.word){r=this.toString();var o=r.indexOf(e.word);o!==-1&&(s=this.positionInside(o,r))}return s},n.positionInside=function(e,r){for(var s=r||this.toString(),o=this.source.start.column,a=this.source.start.line,u=0;u<e;u++)s[u]==="\n"?(o=1,a+=1):o+=1;return{column:o,line:a}},n.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},n.rangeBy=function(e){var r={column:this.source.start.column,line:this.source.start.line},s=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(e.word){var o=this.toString(),a=o.indexOf(e.word);a!==-1&&(r=this.positionInside(a,o),s=this.positionInside(a+e.word.length,o))}else e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=this.positionInside(e.index)),e.end?s={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?s=this.positionInside(e.endIndex):e.index&&(s=this.positionInside(e.index+1));return(s.line<r.line||s.line===r.line&&s.column<=r.column)&&(s={column:r.column+1,line:r.line}),{end:s,start:r}},n.raw=function(e,r){var s=new ew;return s.raw(this,e,r)},n.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},n.replaceWith=function(){for(var e=arguments.length,r=new Array(e),s=0;s<e;s++)r[s]=arguments[s];if(this.parent){for(var o=this,a=!1,u=I(r),c;!(c=u()).done;){var l=c.value;l===this?a=!0:a?(this.parent.insertAfter(o,l),o=l):this.parent.insertBefore(o,l)}a||this.remove()}return this},n.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},n.toJSON=function(e,r){var s={},o=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))s[u]=c.map(function(f){return(typeof f=="undefined"?"undefined":T(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof c=="undefined"?"undefined":T(c))==="object"&&c.toJSON)s[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++),s[u]={end:c.end,inputId:l,start:c.start}}else s[u]=c}return o&&(s.inputs=[].concat(r.keys()).map(function(f){return f.toJSON()})),s},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(e){e===void 0&&(e=tw),e.stringify&&(e=e.stringify);var r="";return e(this,function(s){r+=s}),r},n.warn=function(e,r,s){var o={node:this};for(var a in s)o[a]=s[a];return e.warn(r,o)},ie(t,[{key:"proxyOf",get:function(){return this}}]),t})(),Ai=na;na.default=na;var rw=Ai,ia=(function(t){ce(n,t);function n(i){var e;return i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=z({},i,{value:String(i.value)})),e=t.call(this,i)||this,e.type="decl",e}return ie(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n})(rw),Mi=ia;ia.default=ia;var nw="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",iw=function(t){t===void 0&&(t=21);for(var n="",i=t;i--;)n+=nw[Math.random()*64|0];return n},sw={nanoid:iw},xf=_e.SourceMapConsumer,kf=_e.SourceMapGenerator,ow=_e.existsSync,aw=_e.readFileSync,sa=_e.dirname,uw=_e.join;function cw(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var oa=(function(){function t(i,e){if(e.map!==!1){this.loadAnnotation(i),this.inline=this.startWith(this.annotation,"data:");var r=e.map?e.map.prev:void 0,s=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=sa(this.mapFile)),s&&(this.text=s)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new xf(this.text)),this.consumerCache},n.decodeInline=function(e){var r=/^data:application\/json;charset=utf-?8;base64,/,s=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(o.test(e)||a.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(r.test(e)||s.test(e))return cw(e.substr(RegExp.lastMatch.length));var u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},n.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(e){return(typeof e=="undefined"?"undefined":T(e))!=="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)},n.loadAnnotation=function(e){var r=e.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var s=e.lastIndexOf(r.pop()),o=e.indexOf("*/",s);s>-1&&o>-1&&(this.annotation=this.getAnnotationURL(e.substring(s,o)))}},n.loadFile=function(e){if(this.root=sa(e),ow(e))return this.mapFile=e,aw(e,"utf-8").toString().trim()},n.loadMap=function(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){var s=r(e);if(s){var o=this.loadFile(s);if(!o)throw new Error("Unable to load previous source map: "+s.toString());return o}}else{if(M(r,xf))return kf.fromSourceMap(r).toString();if(M(r,kf))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 e&&(a=uw(sa(e),a)),this.loadFile(a)}}},n.startWith=function(e,r){return e?e.substr(0,r.length)===r:!1},n.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t})(),Rf=oa;oa.default=oa;var lw=_e.SourceMapConsumer,fw=_e.SourceMapGenerator,Af=_e.fileURLToPath,Ti=_e.pathToFileURL,aa=_e.isAbsolute,ua=_e.resolve,hw=sw.nanoid,ca=_e,Mf=Qo,pw=Rf,la=Symbol("fromOffsetCache"),dw=!!(lw&&fw),Tf=!!(ua&&aa),Pi=(function(){function t(i,e){if(e===void 0&&(e={}),i===null||typeof i=="undefined"||(typeof i=="undefined"?"undefined":T(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,e.from&&(!Tf||/^\w+:\/\//.test(e.from)||aa(e.from)?this.file=e.from:this.file=ua(e.from)),Tf&&dw){var r=new pw(this.css,e);if(r.text){this.map=r;var s=r.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+hw(6)+">"),this.map&&(this.map.file=this.from)}var n=t.prototype;return n.error=function(e,r,s,o){o===void 0&&(o={});var a,u,c;if(r&&(typeof r=="undefined"?"undefined":T(r))==="object"){var l=r,f=s;if(typeof l.offset=="number"){var p=this.fromOffset(l.offset);r=p.line,s=p.col}else r=l.line,s=l.column;if(typeof f.offset=="number"){var g=this.fromOffset(f.offset);u=g.line,c=g.col}else u=f.line,c=f.column}else if(!s){var v=this.fromOffset(r);r=v.line,s=v.col}var y=this.origin(r,s,u,c);return y?a=new Mf(e,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,o.plugin):a=new Mf(e,u===void 0?r:{column:s,line:r},u===void 0?s:{column:c,line:u},this.css,this.file,o.plugin),a.input={column:s,endColumn:c,endLine:u,line:r,source:this.css},this.file&&(Ti&&(a.input.url=Ti(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(e){var r,s;if(this[la])s=this[la];else{var o=this.css.split("\n");s=new Array(o.length);for(var a=0,u=0,c=o.length;u<c;u++)s[u]=a,a+=o[u].length+1;this[la]=s}r=s[s.length-1];var l=0;if(e>=r)l=s.length-1;else for(var f=s.length-2,p;l<f;)if(p=l+(f-l>>1),e<s[p])f=p-1;else if(e>=s[p+1])l=p+1;else{l=p;break}return{col:e-s[l]+1,line:l+1}},n.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:ua(this.map.consumer().sourceRoot||this.map.root||".",e)},n.origin=function(e,r,s,o){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:r,line:e});if(!u.source)return!1;var c;typeof s=="number"&&(c=a.originalPositionFor({column:o,line:s}));var l;aa(u.source)?l=Ti(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||Ti(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(Af)f.file=Af(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 e={},r=0,s=["hasBOM","css","file","id"];r<s.length;r++){var o=s[r];this[o]!=null&&(e[o]=this[o])}return this.map&&(e.map=z({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},ie(t,[{key:"from",get:function(){return this.file||this.id}}]),t})(),$i=Pi;Pi.default=Pi,ca&&ca.registerInput&&ca.registerInput(Pi);var Pf=_e.SourceMapConsumer,Ni=_e.SourceMapGenerator,Li=_e.dirname,$f=_e.relative,Nf=_e.resolve,Lf=_e.sep,Df=_e.pathToFileURL,vw=$i,gw=!!(Pf&&Ni),mw=!!(Li&&Nf&&$f&&Lf),yw=(function(){function t(i,e,r,s){this.stringify=i,this.mapOpts=r.map||{},this.root=e,this.opts=r,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var n=t.prototype;return n.addAnnotation=function(){var e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";var r="\n";this.css.includes("\r\n")&&(r="\r\n"),this.css+=r+"/*# sourceMappingURL="+e+" */"},n.applyPrevMaps=function(){for(var e=I(this.previous()),r;!(r=e()).done;){var s=r.value,o=this.toUrl(this.path(s.file)),a=s.root||Li(s.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new Pf(s.text),u.sourcesContent&&(u.sourcesContent=null)):u=s.consumer(),this.map.applySourceMap(u,o,this.toUrl(this.path(a)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.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(),mw&&gw&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(r){e+=r}),[e]},n.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Ni.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Ni({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 e=this;this.css="",this.map=new Ni({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,s=1,o="<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(e.css+=l,f&&p!=="end"&&(a.generated.line=r,a.generated.column=s-1,f.source&&f.source.start?(a.source=e.sourcePath(f),a.original.line=f.source.start.line,a.original.column=f.source.start.column-1,e.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,e.map.addMapping(a))),u=l.match(/\n/g),u?(r+=u.length,c=l.lastIndexOf("\n"),s=l.length-c):s+=l.length,f&&p!=="start"){var g=f.parent||{raws:{}},v=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!v||f!==g.last||g.raws.semicolon)&&(f.source&&f.source.end?(a.source=e.sourcePath(f),a.original.line=f.source.end.line,a.original.column=f.source.end.column-1,a.generated.line=r,a.generated.column=s-2,e.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=s-1,e.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(e){return e.annotation}):!0},n.isInline=function(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;var e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!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(e){return e.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(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var r=this.memoizedPaths.get(e);if(r)return r;var s=this.opts.to?Li(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(s=Li(Nf(s,this.mapOpts.annotation)));var o=$f(s,e);return this.memoizedPaths.set(e,o),o},n.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(s){if(s.source&&s.source.input.map){var o=s.source.input.map;e.previousMaps.includes(o)||e.previousMaps.push(o)}});else{var r=new vw(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},n.setSourcesContent=function(){var e=this,r={};if(this.root)this.root.walk(function(o){if(o.source){var a=o.source.input.from;if(a&&!r[a]){r[a]=!0;var u=e.usesFileUrls?e.toFileUrl(a):e.toUrl(e.path(a));e.map.setSourceContent(u,o.source.input.css)}}});else if(this.css){var s=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(s,this.css)}},n.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},n.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},n.toFileUrl=function(e){var r=this.memoizedFileURLs.get(e);if(r)return r;if(Df){var s=Df(e).toString();return this.memoizedFileURLs.set(e,s),s}else throw new Error("`map.absolute` option is not available in this PostCSS build")},n.toUrl=function(e){var r=this.memoizedURLs.get(e);if(r)return r;Lf==="\\"&&(e=e.replace(/\\/g,"/"));var s=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,s),s},t})(),Ff=yw,_w=Ai,fa=(function(t){ce(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="comment",e}return n})(_w),Di=fa;fa.default=fa;var Uf=St.isClean,Bf=St.my,zf=Mi,qf=Di,ww=Ai,Wf,ha,pa,Gf;function Vf(t){return t.map(function(n){return n.nodes&&(n.nodes=Vf(n.nodes)),delete n.source,n})}function jf(t){if(t[Uf]=!1,t.proxyOf.nodes)for(var n=I(t.proxyOf.nodes),i;!(i=n()).done;){var e=i.value;jf(e)}}var at=(function(t){ce(n,t);function n(){return t.apply(this,arguments)||this}var i=n.prototype;return i.append=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];for(var a=I(s),u;!(u=a()).done;)for(var c=u.value,l=this.normalize(c,this.last),f=I(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.push(g)}return this.markDirty(),this},i.cleanRaws=function(r){if(t.prototype.cleanRaws.call(this,r),this.nodes)for(var s=I(this.nodes),o;!(o=s()).done;){var a=o.value;a.cleanRaws(r)}},i.each=function(r){if(this.proxyOf.nodes){for(var s=this.getIterator(),o,a;this.indexes[s]<this.proxyOf.nodes.length&&(o=this.indexes[s],a=r(this.proxyOf.nodes[o],o),a!==!1);)this.indexes[s]+=1;return delete this.indexes[s],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(s,o){return o==="proxyOf"?s:s[o]?o==="each"||typeof o=="string"&&o.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=s)[o].apply(l,[].concat(u.map(function(f){return typeof f=="function"?function(p,g){return f(p.toProxy(),g)}:f})))}:o==="every"||o==="some"?function(a){return s[o](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))})}:o==="root"?function(){return s.root().toProxy()}:o==="nodes"?s.nodes.map(function(a){return a.toProxy()}):o==="first"||o==="last"?s[o].toProxy():s[o]:s[o]},set:function(s,o,a){return s[o]===a||(s[o]=a,(o==="name"||o==="params"||o==="selector")&&s.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,s){var o=this.index(r),a=this.normalize(s,this.proxyOf.nodes[o]).reverse();o=this.index(r);for(var u=I(a),c;!(c=u()).done;){var l=c.value;this.proxyOf.nodes.splice(o+1,0,l)}var f;for(var p in this.indexes)f=this.indexes[p],o<f&&(this.indexes[p]=f+a.length);return this.markDirty(),this},i.insertBefore=function(r,s){var o=this.index(r),a=o===0?"prepend":!1,u=this.normalize(s,this.proxyOf.nodes[o],a).reverse();o=this.index(r);for(var c=I(u),l;!(l=c()).done;){var f=l.value;this.proxyOf.nodes.splice(o,0,f)}var p;for(var g in this.indexes)p=this.indexes[g],o<=p&&(this.indexes[g]=p+u.length);return this.markDirty(),this},i.normalize=function(r,s){var o=this;if(typeof r=="string")r=Vf(Wf(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=I(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=I(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 zf(r)]}else if(r.selector)r=[new ha(r)];else if(r.name)r=[new pa(r)];else if(r.text)r=[new qf(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(v){return v[Bf]||n.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[Uf]&&jf(v),typeof v.raws.before=="undefined"&&s&&typeof s.raws.before!="undefined"&&(v.raws.before=s.raws.before.replace(/\S/g,"")),v.parent=o.proxyOf,v});return g},i.prepend=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];s=s.reverse();for(var a=I(s),u;!(u=a()).done;){for(var c=u.value,l=this.normalize(c,this.first,"prepend").reverse(),f=I(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.unshift(g)}for(var v in this.indexes)this.indexes[v]=this.indexes[v]+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=I(this.proxyOf.nodes),s;!(s=r()).done;){var o=s.value;o.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 s;for(var o in this.indexes)s=this.indexes[o],s>=r&&(this.indexes[o]=s-1);return this.markDirty(),this},i.replaceValues=function(r,s,o){return o||(o=s,s={}),this.walkDecls(function(a){s.props&&!s.props.includes(a.prop)||s.fast&&!a.value.includes(s.fast)||(a.value=a.value.replace(r,o))}),this.markDirty(),this},i.some=function(r){return this.nodes.some(r)},i.walk=function(r){return this.each(function(s,o){var a;try{a=r(s,o)}catch(u){throw s.addToError(u)}return a!==!1&&s.walk&&(a=s.walk(r)),a})},i.walkAtRules=function(r,s){return s?M(r,RegExp)?this.walk(function(o,a){if(o.type==="atrule"&&r.test(o.name))return s(o,a)}):this.walk(function(o,a){if(o.type==="atrule"&&o.name===r)return s(o,a)}):(s=r,this.walk(function(o,a){if(o.type==="atrule")return s(o,a)}))},i.walkComments=function(r){return this.walk(function(s,o){if(s.type==="comment")return r(s,o)})},i.walkDecls=function(r,s){return s?M(r,RegExp)?this.walk(function(o,a){if(o.type==="decl"&&r.test(o.prop))return s(o,a)}):this.walk(function(o,a){if(o.type==="decl"&&o.prop===r)return s(o,a)}):(s=r,this.walk(function(o,a){if(o.type==="decl")return s(o,a)}))},i.walkRules=function(r,s){return s?M(r,RegExp)?this.walk(function(o,a){if(o.type==="rule"&&r.test(o.selector))return s(o,a)}):this.walk(function(o,a){if(o.type==="rule"&&o.selector===r)return s(o,a)}):(s=r,this.walk(function(o,a){if(o.type==="rule")return s(o,a)}))},ie(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})(ww);at.registerParse=function(t){Wf=t},at.registerRule=function(t){ha=t},at.registerAtRule=function(t){pa=t},at.registerRoot=function(t){Gf=t};var qt=at;at.default=at,at.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,pa.prototype):t.type==="rule"?Object.setPrototypeOf(t,ha.prototype):t.type==="decl"?Object.setPrototypeOf(t,zf.prototype):t.type==="comment"?Object.setPrototypeOf(t,qf.prototype):t.type==="root"&&Object.setPrototypeOf(t,Gf.prototype),t[Bf]=!0,t.nodes&&t.nodes.forEach(function(n){at.rebuild(n)})};var bw=qt,Hf,Yf,sn=(function(t){ce(n,t);function n(e){var r;return r=t.call(this,z({type:"document"},e))||this,r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.toResult=function(r){r===void 0&&(r={});var s=new Hf(new Yf,this,r);return s.stringify()},n})(bw);sn.registerLazyResult=function(t){Hf=t},sn.registerProcessor=function(t){Yf=t};var da=sn;sn.default=sn;var Kf={},Jf=function(n){Kf[n]||(Kf[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},va=(function(){function t(i,e){if(e===void 0&&(e={}),this.type="warning",this.text=i,e.node&&e.node.source){var r=e.node.rangeBy(e);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var s in e)this[s]=e[s]}var n=t.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},t})(),Xf=va;va.default=va;var Sw=Xf,ga=(function(){function t(i,e,r){this.processor=i,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}var n=t.prototype;return n.toString=function(){return this.css},n.warn=function(e,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var s=new Sw(e,r);return this.messages.push(s),s},n.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},ie(t,[{key:"content",get:function(){return this.css}}]),t})(),ma=ga;ga.default=ga;var ya=39,Zf=34,Fi=92,Qf=47,Ui=10,on=32,Bi=12,zi=9,qi=13,Cw=91,Ew=93,Iw=40,Ow=41,xw=123,kw=125,Rw=59,Aw=42,Mw=58,Tw=64,Wi=/[\t\n\f\r "#'()/;[\\\]{}]/g,Gi=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Pw=/.[\r\n"'(/\\]/,eh=/[\da-f]/i,$w=function(n,i){i===void 0&&(i={});var e=n.css.valueOf(),r=i.ignoreErrors,s,o,a,u,c,l,f,p,g,v,y=e.length,d=0,m=[],_=[];function b(){return d}function C(k){throw n.error("Unclosed "+k,d)}function S(){return _.length===0&&d>=y}function O(k){if(_.length)return _.pop();if(!(d>=y)){var $=k?k.ignoreUnclosed:!1;switch(s=e.charCodeAt(d),s){case Ui:case on:case zi:case qi:case Bi:{o=d;do o+=1,s=e.charCodeAt(o);while(s===on||s===Ui||s===zi||s===qi||s===Bi);v=["space",e.slice(d,o)],d=o-1;break}case Cw:case Ew:case xw:case kw:case Mw:case Rw:case Ow:{var W=String.fromCharCode(s);v=[W,W,d];break}case Iw:{if(p=m.length?m.pop()[1]:"",g=e.charCodeAt(d+1),p==="url"&&g!==ya&&g!==Zf&&g!==on&&g!==Ui&&g!==zi&&g!==Bi&&g!==qi){o=d;do{if(l=!1,o=e.indexOf(")",o+1),o===-1)if(r||$){o=d;break}else C("bracket");for(f=o;e.charCodeAt(f-1)===Fi;)f-=1,l=!l}while(l);v=["brackets",e.slice(d,o+1),d,o],d=o}else o=e.indexOf(")",d+1),u=e.slice(d,o+1),o===-1||Pw.test(u)?v=["(","(",d]:(v=["brackets",u,d,o],d=o);break}case ya:case Zf:{a=s===ya?"'":'"',o=d;do{if(l=!1,o=e.indexOf(a,o+1),o===-1)if(r||$){o=d+1;break}else C("string");for(f=o;e.charCodeAt(f-1)===Fi;)f-=1,l=!l}while(l);v=["string",e.slice(d,o+1),d,o],d=o;break}case Tw:{Wi.lastIndex=d+1,Wi.test(e),Wi.lastIndex===0?o=e.length-1:o=Wi.lastIndex-2,v=["at-word",e.slice(d,o+1),d,o],d=o;break}case Fi:{for(o=d,c=!0;e.charCodeAt(o+1)===Fi;)o+=1,c=!c;if(s=e.charCodeAt(o+1),c&&s!==Qf&&s!==on&&s!==Ui&&s!==zi&&s!==qi&&s!==Bi&&(o+=1,eh.test(e.charAt(o)))){for(;eh.test(e.charAt(o+1));)o+=1;e.charCodeAt(o+1)===on&&(o+=1)}v=["word",e.slice(d,o+1),d,o],d=o;break}default:{s===Qf&&e.charCodeAt(d+1)===Aw?(o=e.indexOf("*/",d+2)+1,o===0&&(r||$?o=e.length:C("comment")),v=["comment",e.slice(d,o+1),d,o],d=o):(Gi.lastIndex=d+1,Gi.test(e),Gi.lastIndex===0?o=e.length-1:o=Gi.lastIndex-2,v=["word",e.slice(d,o+1),d,o],m.push(v),d=o);break}}return d++,v}}function A(k){_.push(k)}return{back:A,endOfFile:S,nextToken:O,position:b}},th=qt,Vi=(function(t){ce(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="atrule",r}var i=n.prototype;return i.append=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.append).call.apply(a,[].concat([this],s))},i.prepend=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.prepend).call.apply(a,[].concat([this],s))},n})(th),_a=Vi;Vi.default=Vi,th.registerAtRule(Vi);var rh=qt,nh,ih,_r=(function(t){ce(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="root",r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.normalize=function(r,s,o){var a=t.prototype.normalize.call(this,r);if(s){if(o==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(var u=I(a),c;!(c=u()).done;){var l=c.value;l.raws.before=s.raws.before}}return a},i.removeChild=function(r,s){var o=this.index(r);return!s&&o===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[o].raws.before),t.prototype.removeChild.call(this,r)},i.toResult=function(r){r===void 0&&(r={});var s=new nh(new ih,this,r);return s.stringify()},n})(rh);_r.registerLazyResult=function(t){nh=t},_r.registerProcessor=function(t){ih=t};var an=_r;_r.default=_r,rh.registerRoot(_r);var un={comma:function(n){return un.split(n,[","],!0)},space:function(n){var i=[" ","\n"," "];return un.split(n,i)},split:function(n,i,e){for(var r=[],s="",o=!1,a=0,u=!1,c="",l=!1,f=I(n),p;!(p=f()).done;){var g=p.value;l?l=!1:g==="\\"?l=!0:u?g===c&&(u=!1):g==='"'||g==="'"?(u=!0,c=g):g==="("?a+=1:g===")"?a>0&&(a-=1):a===0&&i.includes(g)&&(o=!0),o?(s!==""&&r.push(s.trim()),s="",o=!1):s+=g}return(e||s!=="")&&r.push(s.trim()),r}},sh=un;un.default=un;var oh=qt,Nw=sh,ji=(function(t){ce(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return ie(n,[{key:"selectors",get:function(){return Nw.comma(this.selector)},set:function(e){var r=this.selector?this.selector.match(/,\s*/):null,s=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(s)}}]),n})(oh),wa=ji;ji.default=ji,oh.registerRule(ji);var Lw=Mi,Dw=$w,Fw=Di,Uw=_a,Bw=an,ah=wa,uh={empty:!0,space:!0};function zw(t){for(var n=t.length-1;n>=0;n--){var i=t[n],e=i[3]||i[2];if(e)return e}}var qw=(function(){function t(i){this.input=i,this.root=new Bw,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=t.prototype;return n.atrule=function(e){var r=new Uw;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);for(var s,o,a,u=!1,c=!1,l=[],f=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),s=e[0],s==="("||s==="["?f.push(s==="("?")":"]"):s==="{"&&f.length>0?f.push("}"):s===f[f.length-1]&&f.pop(),f.length===0)if(s===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(s==="{"){c=!0;break}else if(s==="}"){if(l.length>0){for(a=l.length-1,o=l[a];o&&o[0]==="space";)o=l[--a];o&&(r.source.end=this.getPosition(o[3]||o[2]),r.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);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&&(e=l[l.length-1],r.source.end=this.getPosition(e[3]||e[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(e){var r=this.colon(e);if(r!==!1){for(var s=0,o,a=r-1;a>=0&&(o=e[a],!(o[0]!=="space"&&(s+=1,s===2)));a--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}},n.colon=function(e){for(var r=0,s,o,a,u=I(e.entries()),c;!(c=u()).done;){var l=c.value,f=l[0],p=l[1];if(s=p,o=s[0],o==="("&&(r+=1),o===")"&&(r-=1),r===0&&o===":")if(!a)this.doubleColon(s);else{if(a[0]==="word"&&a[1]==="progid")continue;return f}a=s}return!1},n.comment=function(e){var r=new Fw;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;var s=e[1].slice(2,-2);if(/^\s*$/.test(s))r.text="",r.raws.left=s,r.raws.right="";else{var o=s.match(/^(\s*)([^]*\S)(\s*)$/);r.text=o[2],r.raws.left=o[1],r.raws.right=o[3]}},n.createTokenizer=function(){this.tokenizer=Dw(this.input)},n.decl=function(e,r){var s=new Lw;this.init(s,e[0][2]);var o=e[e.length-1];for(o[0]===";"&&(this.semicolon=!0,e.pop()),s.source.end=this.getPosition(o[3]||o[2]||zw(e)),s.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),s.raws.before+=e.shift()[1];for(s.source.start=this.getPosition(e[0][2]),s.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;s.prop+=e.shift()[1]}s.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){s.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),s.raws.between+=u[1];(s.prop[0]==="_"||s.prop[0]==="*")&&(s.raws.before+=s.prop[0],s.prop=s.prop.slice(1));for(var c=[],l;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)c.push(e.shift());this.precheckMissedSemicolon(e);for(var f=e.length-1;f>=0;f--){if(u=e[f],u[1].toLowerCase()==="!important"){s.important=!0;var p=this.stringFrom(e,f);p=this.spacesFromEnd(e)+p,p!==" !important"&&(s.raws.important=p);break}else if(u[1].toLowerCase()==="important"){for(var g=e.slice(0),v="",y=f;y>0;y--){var d=g[y][0];if(v.trim().indexOf("!")===0&&d!=="space")break;v=g.pop()[1]+v}v.trim().indexOf("!")===0&&(s.important=!0,s.raws.important=v,e=g)}if(u[0]!=="space"&&u[0]!=="comment")break}var m=e.some(function(_){return _[0]!=="space"&&_[0]!=="comment"});m&&(s.raws.between+=c.map(function(_){return _[1]}).join(""),c=[]),this.raw(s,"value",c.concat(e),r),s.value.includes(":")&&!r&&this.checkMissedSemicolon(e)},n.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},n.emptyRule=function(e){var r=new ah;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r},n.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},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(e){if(this.spaces+=e[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(e){var r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}},n.init=function(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},n.other=function(e){for(var r=!1,s=null,o=!1,a=null,u=[],c=e[1].startsWith("--"),l=[],f=e;f;){if(s=f[0],l.push(f),s==="("||s==="[")a||(a=f),u.push(s==="("?")":"]");else if(c&&o&&s==="{")a||(a=f),u.push("}");else if(u.length===0)if(s===";")if(o){this.decl(l,c);return}else break;else if(s==="{"){this.rule(l);return}else if(s==="}"){this.tokenizer.back(l.pop()),r=!0;break}else s===":"&&(o=!0);else s===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&&o){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 e;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},n.precheckMissedSemicolon=function(){},n.raw=function(e,r,s,o){for(var a,u,c=s.length,l="",f=!0,p,g,v=0;v<c;v+=1)a=s[v],u=a[0],u==="space"&&v===c-1&&!o?f=!1:u==="comment"?(g=s[v-1]?s[v-1][0]:"empty",p=s[v+1]?s[v+1][0]:"empty",!uh[g]&&!uh[p]?l.slice(-1)===","?f=!1:l+=a[1]:f=!1):l+=a[1];if(!f){var y=s.reduce(function(d,m){return d+m[1]},"");e.raws[r]={raw:y,value:l}}e[r]=l},n.rule=function(e){e.pop();var r=new ah;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r},n.spacesAndCommentsFromEnd=function(e){for(var r,s="";e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)s=e.pop()[1]+s;return s},n.spacesAndCommentsFromStart=function(e){for(var r,s="";e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)s+=e.shift()[1];return s},n.spacesFromEnd=function(e){for(var r,s="";e.length&&(r=e[e.length-1][0],r==="space");)s=e.pop()[1]+s;return s},n.stringFrom=function(e,r){for(var s="",o=r;o<e.length;o++)s+=e[o][1];return e.splice(r,e.length-r),s},n.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},n.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},n.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},n.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},n.unnamedAtrule=function(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},t})(),Ww=qw,Gw=qt,Vw=Ww,jw=$i;function Hi(t,n){var i=new jw(t,n),e=new Vw(i);try{e.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 e.root}var ba=Hi;Hi.default=Hi,Gw.registerParse(Hi);var Ke=St.isClean,Hw=St.my,Yw=Ff,Kw=ki,Jw=qt,Xw=da,Zw=Jf,ch=ma,Qw=ba,eb=an,tb={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},rb={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},nb={Once:!0,postcssPlugin:!0,prepare:!0},wr=0;function cn(t){return(typeof t=="undefined"?"undefined":T(t))==="object"&&typeof t.then=="function"}function lh(t){var n=!1,i=tb[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[i,i+"-"+n,wr,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:t.append?[i,wr,i+"Exit"]:[i,i+"Exit"]}function fh(t){var n;return t.type==="document"?n=["Document",wr,"DocumentExit"]:t.type==="root"?n=["Root",wr,"RootExit"]:n=lh(t),{eventIndex:0,events:n,iterator:0,node:t,visitorIndex:0,visitors:[]}}function Sa(t){return t[Ke]=!1,t.nodes&&t.nodes.forEach(function(n){return Sa(n)}),t}var Ca={},br=(function(){function t(i,e,r){var s=this;this.stringified=!1,this.processed=!1;var o;if((typeof e=="undefined"?"undefined":T(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))o=Sa(e);else if(M(e,t)||M(e,ch))o=Sa(e.root),e.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=e.map);else{var a=Qw;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{o=a(e,r)}catch(u){this.processed=!0,this.error=u}o&&!o[Hw]&&Jw.rebuild(o)}this.result=new ch(i,o,r),this.helpers=z({},Ca,{postcss:Ca,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":T(u))==="object"&&u.prepare?z({},u,u.prepare(s.result)):u})}var n=t.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(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},n.handleError=function(e,r){var s=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=s.postcssPlugin,e.setMessage();else if(s.postcssVersion&&process.env.NODE_ENV!=="production"){var o=s.postcssPlugin,a=s.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 "+o+" uses "+a+". Perhaps this is the source of the error below.")}}catch(f){console&&console.error&&console.error(f)}return e},n.prepareVisitors=function(){var e=this;this.listeners={};for(var r=function(l,f,p){e.listeners[f]||(e.listeners[f]=[]),e.listeners[f].push([l,p])},s=I(this.plugins),o;!(o=s()).done;){var a=o.value;if((typeof a=="undefined"?"undefined":T(a))==="object")for(var u in a){if(!rb[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!nb[u])if(T(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 e=this;return Cn(function(){var r,s,o,a,u,c,l,f,p,g,v,y;return Dt(this,function(d){switch(d.label){case 0:e.plugin=0,r=0,d.label=1;case 1:if(!(r<e.plugins.length))return[3,6];if(s=e.plugins[r],o=e.runOnRoot(s),!cn(o))return[3,5];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,o];case 3:return d.sent(),[3,5];case 4:throw a=d.sent(),e.handleError(a);case 5:return r++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];u=e.result.root,d.label=7;case 7:if(u[Ke])return[3,14];u[Ke]=!0,c=[fh(u)],d.label=8;case 8:if(!(c.length>0))return[3,13];if(l=e.visitTick(c),!cn(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,e.handleError(f,p);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];g=function(){var m,_,b,C,S;return Dt(this,function(O){switch(O.label){case 0:m=y.value,_=m[0],b=m[1],e.result.lastPlugin=_,O.label=1;case 1:return O.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(C=u.nodes.map(function(A){return b(A,e.helpers)}),[4,Promise.all(C)]);case 2:return O.sent(),[3,5];case 3:return[4,b(u,e.helpers)];case 4:O.sent(),O.label=5;case 5:return[3,7];case 6:throw S=O.sent(),e.handleError(S);case 7:return[2]}})},v=I(e.listeners.OnceExit),d.label=15;case 15:return(y=v()).done?[3,18]:[5,xs(g())];case 16:d.sent(),d.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},n.runOnRoot=function(e){var r=this;this.result.lastPlugin=e;try{if((typeof e=="undefined"?"undefined":T(e))==="object"&&e.Once){if(this.result.root.type==="document"){var s=this.result.root.nodes.map(function(o){return e.Once(o,r.helpers)});return cn(s[0])?Promise.all(s):s}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(o){throw this.handleError(o)}},n.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,r=Kw;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var s=new Yw(r,this.result.root,this.result.opts),o=s.generate();return this.result.css=o[0],this.result.map=o[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 e=I(this.plugins),r;!(r=e()).done;){var s=r.value,o=this.runOnRoot(s);if(cn(o))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Ke];)a[Ke]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=I(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(e,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||Zw("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)},n.toString=function(){return this.css},n.visitSync=function(e,r){for(var s=I(e),o;!(o=s()).done;){var a=o.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(cn(l))throw this.getAsyncError()}},n.visitTick=function(e){var r=e[e.length-1],s=r.node,o=r.visitors;if(s.type!=="root"&&s.type!=="document"&&!s.parent){e.pop();return}if(o.length>0&&r.visitorIndex<o.length){var a=o[r.visitorIndex],u=a[0],c=a[1];r.visitorIndex+=1,r.visitorIndex===o.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=u;try{return c(s.toProxy(),this.helpers)}catch(v){throw this.handleError(v,s)}}if(r.iterator!==0){for(var l=r.iterator,f;f=s.nodes[s.indexes[l]];)if(s.indexes[l]+=1,!f[Ke]){f[Ke]=!0,e.push(fh(f));return}r.iterator=0,delete s.indexes[l]}for(var p=r.events;r.eventIndex<p.length;){var g=p[r.eventIndex];if(r.eventIndex+=1,g===wr){s.nodes&&s.nodes.length&&(s[Ke]=!0,r.iterator=s.getIterator());return}else if(this.listeners[g]){r.visitors=this.listeners[g];return}}e.pop()},n.walkSync=function(e){var r=this;e[Ke]=!0;for(var s=lh(e),o=I(s),a;!(a=o()).done;){var u=a.value;if(u===wr)e.nodes&&e.each(function(l){l[Ke]||r.walkSync(l)});else{var c=this.listeners[u];if(c&&this.visitSync(c,e.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},ie(t,[{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"}}]),t})();br.registerPostcss=function(t){Ca=t};var hh=br;br.default=br,eb.registerLazyResult(br),Xw.registerLazyResult(br);var ib=Ff,sb=ki,ob=Jf,ab=ba,ub=ma,Ea=(function(){function t(i,e,r){e=e.toString(),this.stringified=!1,this._processor=i,this._css=e,this._opts=r,this._map=void 0;var s,o=sb;this.result=new ub(this._processor,s,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new ib(o,s,this._opts,e);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=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.sync=function(){if(this.error)throw this.error;return this.result},n.then=function(e,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||ob("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)},n.toString=function(){return this._css},n.warnings=function(){return[]},ie(t,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,r=ab;try{e=r(this._css,this._opts)}catch(s){this.error=s}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),t})(),cb=Ea;Ea.default=Ea;var lb=cb,fb=hh,hb=da,pb=an,ln=(function(){function t(i){i===void 0&&(i=[]),this.version="8.4.38",this.plugins=this.normalize(i)}var n=t.prototype;return n.normalize=function(e){for(var r=[],s=I(e),o;!(o=s()).done;){var a=o.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":T(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":T(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":T(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(e,r){return r===void 0&&(r={}),!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new lb(this,e,r):new fb(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t})(),db=ln;ln.default=ln,pb.registerProcessor(ln),hb.registerProcessor(ln);var vb=Mi,gb=Rf,mb=Di,yb=_a,_b=$i,wb=an,bb=wa;function fn(t,n){if(Array.isArray(t))return t.map(function(f){return fn(f)});var i=t.inputs,e=Lt(t,["inputs"]);if(i){n=[];for(var r=I(i),s;!(s=r()).done;){var o=s.value,a=z({},o,{__proto__:_b.prototype});a.map&&(a.map=z({},a.map,{__proto__:gb.prototype})),n.push(a)}}if(e.nodes&&(e.nodes=t.nodes.map(function(f){return fn(f,n)})),e.source){var u=e.source,c=u.inputId,l=Lt(u,["inputId"]);e.source=l,c!=null&&(e.source.input=n[c])}if(e.type==="root")return new wb(e);if(e.type==="decl")return new vb(e);if(e.type==="rule")return new bb(e);if(e.type==="comment")return new mb(e);if(e.type==="atrule")return new yb(e);throw new Error("Unknown node type: "+t.type)}var Sb=fn;fn.default=fn;var Cb=Qo,ph=Mi,Eb=hh,Ib=qt,Ia=db,Ob=ki,xb=Sb,dh=da,kb=Xf,vh=Di,gh=_a,Rb=ma,Ab=$i,Mb=ba,Tb=sh,mh=wa,yh=an,Pb=Ai;function Q(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new Ia(n)}Q.plugin=function(n,i){var e=!1;function r(){for(var o=arguments.length,a=new Array(o),u=0;u<o;u++)a[u]=arguments[u];console&&console.warn&&!e&&(e=!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 Ia().version,c}var s;return Object.defineProperty(r,"postcss",{get:function(){return s||(s=r()),s}}),r.process=function(o,a,u){return Q([r(u)]).process(o,a)},r},Q.stringify=Ob,Q.parse=Mb,Q.fromJSON=xb,Q.list=Tb,Q.comment=function(t){return new vh(t)},Q.atRule=function(t){return new gh(t)},Q.decl=function(t){return new ph(t)},Q.rule=function(t){return new mh(t)},Q.root=function(t){return new yh(t)},Q.document=function(t){return new dh(t)},Q.CssSyntaxError=Cb,Q.Declaration=ph,Q.Container=Ib,Q.Processor=Ia,Q.Document=dh,Q.Comment=vh,Q.Warning=kb,Q.AtRule=gh,Q.Result=Rb,Q.Input=Ab,Q.Rule=mh,Q.Root=yh,Q.Node=Pb,Eb.registerPostcss(Q);var $b=Q;Q.default=Q;var he=V_($b);he.stringify,he.fromJSON,he.plugin,he.parse,he.list,he.document,he.comment,he.atRule,he.rule,he.decl,he.root,he.CssSyntaxError,he.Declaration,he.Container,he.Processor,he.Document,he.Comment,he.Warning,he.AtRule,he.Result,he.Input,he.Rule,he.Root,he.Node;var Nb=Object.defineProperty,Lb=function(t,n,i){return n in t?Nb(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},Yi=function(t,n,i){return Lb(t,(typeof n=="undefined"?"undefined":T(n))!=="symbol"?n+"":n,i)};function Db(t,n,i){try{if(!(n in t))return function(){};var e=t[n],r=i(e);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:e}})),t[n]=r,function(){t[n]=e}}catch(s){return function(){}}}var Sr=(function(){function t(i){Yi(this,"fileName"),Yi(this,"functionName"),Yi(this,"lineNumber"),Yi(this,"columnNumber"),this.fileName=i.fileName||"",this.functionName=i.functionName||"",this.lineNumber=i.lineNumber,this.columnNumber=i.columnNumber}var n=t.prototype;return n.toString=function(){var e=this.lineNumber||"",r=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+r+")":this.fileName+":"+e+":"+r},t})(),Fb=/(^|@)\S+:\d+/,_h=/^\s*at .*(\S+:\d+|\(native\))/m,Ub=/^(eval@)?(\[native code])?$/,Oa={parse:function(n){return n?typeof n.stacktrace!="undefined"||typeof n["opera#sourceloc"]!="undefined"?this.parseOpera(n):n.stack&&n.stack.match(_h)?this.parseV8OrIE(n):n.stack?this.parseFFOrSafari(n):(console.warn("[console-record-plugin]: Failed to parse error object:",n),[]):[]},extractLocation:function(n){if(n.indexOf(":")===-1)return[n];var i=/(.+?)(?::(\d+))?(?::(\d+))?$/,e=i.exec(n.replace(/[()]/g,""));if(!e)throw new Error("Cannot parse given url: "+n);return[e[1],e[2]||void 0,e[3]||void 0]},parseV8OrIE:function(n){var i=n.stack.split("\n").filter(function(e){return!!e.match(_h)},this);return i.map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var r=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),s=r.match(/ (\((.+):(\d+):(\d+)\)$)/);r=s?r.replace(s[0],""):r;var o=r.split(/\s+/).slice(1),a=this.extractLocation(s?s[1]:o.pop()),u=o.join(" ")||void 0,c=["eval","<anonymous>"].indexOf(a[0])>-1?void 0:a[0];return new Sr({functionName:u,fileName:c,lineNumber:a[1],columnNumber:a[2]})},this)},parseFFOrSafari:function(n){var i=n.stack.split("\n").filter(function(e){return!e.match(Ub)},this);return i.map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),e.indexOf("@")===-1&&e.indexOf(":")===-1)return new Sr({functionName:e});var r=/((.*".+"[^@]*)?[^@]*)(?:@)/,s=e.match(r),o=s&&s[1]?s[1]:void 0,a=this.extractLocation(e.replace(r,""));return new Sr({functionName:o,fileName:a[0],lineNumber:a[1],columnNumber:a[2]})},this)},parseOpera:function(n){return!n.stacktrace||n.message.indexOf("\n")>-1&&n.message.split("\n").length>n.stacktrace.split("\n").length?this.parseOpera9(n):n.stack?this.parseOpera11(n):this.parseOpera10(n)},parseOpera9:function(n){for(var i=/Line (\d+).*script (?:in )?(\S+)/i,e=n.message.split("\n"),r=[],s=2,o=e.length;s<o;s+=2){var a=i.exec(e[s]);a&&r.push(new Sr({fileName:a[2],lineNumber:parseFloat(a[1])}))}return r},parseOpera10:function(n){for(var i=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,e=n.stacktrace.split("\n"),r=[],s=0,o=e.length;s<o;s+=2){var a=i.exec(e[s]);a&&r.push(new Sr({functionName:a[3]||void 0,fileName:a[2],lineNumber:parseFloat(a[1])}))}return r},parseOpera11:function(n){var i=n.stack.split("\n").filter(function(e){return!!e.match(Fb)&&!e.match(/^Error created at/)},this);return i.map(function(e){var r=e.split("@"),s=this.extractLocation(r.pop()),o=r.shift()||"",a=o.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new Sr({functionName:a,fileName:s[0],lineNumber:s[1],columnNumber:s[2]})},this)}};function Bb(t){if(!t||!t.outerHTML)return"";for(var n="";t.parentElement;){var i=t.localName;if(!i)break;i=i.toLowerCase();var e=t.parentElement,r=[];if(e.children&&e.children.length>0)for(var s=0;s<e.children.length;s++){var o=e.children[s];o.localName&&o.localName.toLowerCase&&o.localName.toLowerCase()===i&&r.push(o)}r.length>1&&(i+=":eq("+r.indexOf(t)+")"),n=i+(n?">"+n:""),t=e}return n}function xa(t){return Object.prototype.toString.call(t)==="[object Object]"}function wh(t,n){if(n===0)return!0;for(var i=Object.keys(t),e=I(i),r;!(r=e()).done;){var s=r.value;if(xa(t[s])&&wh(t[s],n-1))return!0}return!1}function Cr(t,n){var i={numOfKeysLimit:50,depthOfLimit:4};Object.assign(i,n);var e=[],r=[];return JSON.stringify(t,function(a,u){if(e.length>0){var c=e.indexOf(this);~c?e.splice(c+1):e.push(this),~c?r.splice(c,1/0,a):r.push(a),~e.indexOf(u)&&(e[0]===u?u="[Circular ~]":u="[Circular ~."+r.slice(0,e.indexOf(u)).join(".")+"]")}else e.push(u);if(u===null)return u;if(u===void 0)return"undefined";if(s(u))return o(u);if((typeof u=="undefined"?"undefined":T(u))==="bigint")return u.toString()+"n";if(M(u,Event)){var l={};for(var f in u){var p=u[f];Array.isArray(p)?l[f]=Bb(p.length?p[0]:null):l[f]=p}return l}else{if(M(u,Node))return M(u,HTMLElement)?u?u.outerHTML:"":u.nodeName;if(M(u,Error))return u.stack?u.stack+"\nEnd of stack for Error object":u.name+": "+u.message}return u});function s(a){return!!(xa(a)&&Object.keys(a).length>i.numOfKeysLimit||typeof a=="function"||xa(a)&&wh(a,i.depthOfLimit))}function o(a){var u=a.toString();return i.stringLengthLimit&&u.length>i.stringLengthLimit&&(u=""+u.slice(0,i.stringLengthLimit)+"..."),u}}var bh={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function zb(t,n,i){var e=i?Object.assign({},bh,i):bh,r=e.logger;if(!r)return function(){};var s;typeof r=="string"?s=n[r]:s=r;var o=0,a=!1,u=[];if(e.level.includes("error")){var c=function(y){var d=y.message,m=y.error,_=Oa.parse(m).map(function(C){return C.toString()}),b=[Cr(d,e.stringifyOptions)];t({level:"error",trace:_,payload:b})};n.addEventListener("error",c),u.push(function(){n.removeEventListener("error",c)});var l=function(y){var d,m;M(y.reason,Error)?(d=y.reason,m=[Cr("Uncaught (in promise) "+d.name+": "+d.message,e.stringifyOptions)]):(d=new Error,m=[Cr("Uncaught (in promise)",e.stringifyOptions),Cr(y.reason,e.stringifyOptions)]);var _=Oa.parse(d).map(function(b){return b.toString()});t({level:"error",trace:_,payload:m})};n.addEventListener("unhandledrejection",l),u.push(function(){n.removeEventListener("unhandledrejection",l)})}for(var f=I(e.level),p;!(p=f()).done;){var g=p.value;u.push(v(s,g))}return function(){u.forEach(function(y){return y()})};function v(y,d){var m=this;return y[d]?Db(y,d,function(_){var b=m;return function(){for(var C=arguments.length,S=new Array(C),O=0;O<C;O++)S[O]=arguments[O];if(_.apply(b,S),!(d==="assert"&&S[0])&&!a){a=!0;try{var A=Oa.parse(new Error).map(function(W){return W.toString()}).splice(1),k=d==="assert"?S.slice(1):S,$=k.map(function(W){return Cr(W,e.stringifyOptions)});o++,o<e.lengthThreshold?t({level:d,trace:A,payload:$}):o===e.lengthThreshold&&t({level:"warn",trace:[],payload:[Cr("The number of log records reached the threshold.")]})}catch(W){_.apply(void 0,[].concat(["rrweb logger error:",W],S))}finally{a=!1}}}}):function(){}}}var qb="rrweb/console@1",Wb=function(t){return{name:qb,observer:zb,options:t}},Sh=E.setImmediate,Ct,ka,Ra,Ch=Object.prototype.toString,Gb=typeof Sh!="undefined"?function(n){return Sh(n)}:setTimeout;try{Object.defineProperty({},"x",{}),Ct=function(n,i,e,r){return Object.defineProperty(n,i,{value:e,writable:!0,configurable:r!==!1})}}catch(t){Ct=function(i,e,r){return i[e]=r,i}}Ra=(function(){var n,i,e;function r(s,o){this.fn=s,this.self=o,this.next=void 0}return{add:function(o,a){e=new r(o,a),i?i.next=e:n=e,i=e,e=void 0},drain:function(){var o=n;for(n=i=ka=void 0;o;)o.fn.call(o.self),o=o.next}}})();function Ki(t,n){Ra.add(t,n),ka||(ka=Gb(Ra.drain))}function Eh(t){var n,i=typeof t;return t!==null&&(i==="object"||i==="function")&&(n=t.then),typeof n=="function"?n:!1}function Aa(){for(var t=0;t<this.chain.length;t++)Vb(this,this.state===1?this.chain[t].success:this.chain[t].failure,this.chain[t]);this.chain.length=0}function Vb(t,n,i){var e,r;try{n===!1?i.reject(t.msg):(n===!0?e=t.msg:e=n.call(void 0,t.msg),e===i.promise?i.reject(TypeError("Promise-chain cycle")):(r=Eh(e))?r.call(e,i.resolve,i.reject):i.resolve(e))}catch(s){i.reject(s)}}function Ih(t){var n,i=this;if(!i.triggered){i.triggered=!0,i.def&&(i=i.def);try{(n=Eh(t))?Ki(function(){var e=new xh(i);try{n.call(t,function(){Ih.apply(e,arguments)},function(){hn.apply(e,arguments)})}catch(r){hn.call(e,r)}}):(i.msg=t,i.state=1,i.chain.length>0&&Ki(Aa,i))}catch(e){hn.call(new xh(i),e)}}}function hn(t){var n=this;n.triggered||(n.triggered=!0,n.def&&(n=n.def),n.msg=t,n.state=2,n.chain.length>0&&Ki(Aa,n))}function Oh(t,n,i,e){for(var r=0;r<n.length;r++)(function(o){t.resolve(n[o]).then(function(u){i(o,u)},e)})(r)}function xh(t){this.def=t,this.triggered=!1}function jb(t){this.promise=t,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function Et(t){if(typeof t!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var n=new jb(this);this.then=function(e,r){var s={success:typeof e=="function"?e:!0,failure:typeof r=="function"?r:!1};return s.promise=new this.constructor(function(a,u){if(typeof a!="function"||typeof u!="function")throw TypeError("Not a function");s.resolve=a,s.reject=u}),n.chain.push(s),n.state!==0&&Ki(Aa,n),s.promise},this.catch=function(e){return this.then(void 0,e)};try{t.call(void 0,function(e){Ih.call(n,e)},function(e){hn.call(n,e)})}catch(i){hn.call(n,i)}}var kh=Ct({},"constructor",Et,!1);Et.prototype=kh,Ct(kh,"__NPO__",0,!1),Ct(Et,"resolve",function(n){var i=this;return n&&typeof n=="object"&&n.__NPO__===1?n:new i(function(r,s){if(typeof r!="function"||typeof s!="function")throw TypeError("Not a function");r(n)})}),Ct(Et,"reject",function(n){return new this(function(e,r){if(typeof e!="function"||typeof r!="function")throw TypeError("Not a function");r(n)})}),Ct(Et,"all",function(n){var i=this;return Ch.call(n)!=="[object Array]"?i.reject(TypeError("Not an array")):n.length===0?i.resolve([]):new i(function(r,s){if(typeof r!="function"||typeof s!="function")throw TypeError("Not a function");var o=n.length,a=Array(o),u=0;Oh(i,n,function(l,f){a[l]=f,++u===o&&r(a)},s)})}),Ct(Et,"race",function(n){var i=this;return Ch.call(n)!=="[object Array]"?i.reject(TypeError("Not an array")):new i(function(r,s){if(typeof r!="function"||typeof s!="function")throw TypeError("Not a function");Oh(i,n,function(a,u){r(u)},s)})});var F;typeof Promise!="undefined"&&Promise.toString().indexOf("[native code]")!==-1?F=Promise:F=Et;var pn=1440*60*1e3,Ma=8*1e3,Ji=Array.prototype,Hb=Function.prototype,Rh=Object.prototype,It=Ji.slice,dn=Rh.toString,Xi=Rh.hasOwnProperty,Ce=E.console,ut=E.navigator,U=E.document,vn=E.opera,Ah=E.screen,Je=ut.userAgent,Ta=Hb.bind,Mh=Ji.forEach,Th=Ji.indexOf,Ph=Ji.map,Yb=Array.isArray,Pa={},h={trim:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},N={log:function(){if(Pe.DEBUG&&!h.isUndefined(Ce)&&Ce)try{Ce.log.apply(Ce,arguments)}catch(t){h.each(arguments,function(n){Ce.log(n)})}},warn:function(){if(Pe.DEBUG&&!h.isUndefined(Ce)&&Ce){var t=["Mixpanel warning:"].concat(h.toArray(arguments));try{Ce.warn.apply(Ce,t)}catch(n){h.each(t,function(i){Ce.warn(i)})}}},error:function(){if(Pe.DEBUG&&!h.isUndefined(Ce)&&Ce){var t=["Mixpanel error:"].concat(h.toArray(arguments));try{Ce.error.apply(Ce,t)}catch(n){h.each(t,function(i){Ce.error(i)})}}},critical:function(){if(!h.isUndefined(Ce)&&Ce){var t=["Mixpanel error:"].concat(h.toArray(arguments));try{Ce.error.apply(Ce,t)}catch(n){h.each(t,function(i){Ce.error(i)})}}}},Zi=function(t,n){return function(){return arguments[0]="["+n+"] "+arguments[0],t.apply(N,arguments)}},Xe=function(t){return{log:Zi(N.log,t),warn:Zi(N.warn,t),error:Zi(N.error,t),critical:Zi(N.critical,t)}},Wt=function(t){return function(){try{return t.apply(this,arguments)}catch(n){N.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),Pe.DEBUG&&N.critical(n)}}},$a=function(t){var n=t.prototype;for(var i in n)typeof n[i]=="function"&&(n[i]=Wt(n[i]))};h.bind=function(t,n){var i,e;if(Ta&&t.bind===Ta)return Ta.apply(t,It.call(arguments,1));if(!h.isFunction(t))throw new TypeError;return i=It.call(arguments,2),e=function(){if(!(this instanceof e))return t.apply(n,i.concat(It.call(arguments)));var r={};r.prototype=t.prototype;var s=new r;r.prototype=null;var o=t.apply(s,i.concat(It.call(arguments)));return Object(o)===o?o:s},e},h.each=function(t,n,i){if(t!=null){if(Mh&&t.forEach===Mh)t.forEach(n,i);else if(t.length===+t.length){for(var e=0,r=t.length;e<r;e++)if(e in t&&n.call(i,t[e],e,t)===Pa)return}else for(var s in t)if(Xi.call(t,s)&&n.call(i,t[s],s,t)===Pa)return}},h.extend=function(t){return h.each(It.call(arguments,1),function(n){for(var i in n)n[i]!==void 0&&(t[i]=n[i])}),t},h.isArray=Yb||function(t){return dn.call(t)==="[object Array]"},h.isFunction=function(t){return typeof t=="function"},h.isArguments=function(t){return!!(t&&Xi.call(t,"callee"))},h.toArray=function(t){return t?t.toArray?t.toArray():h.isArray(t)||h.isArguments(t)?It.call(t):h.values(t):[]},h.map=function(t,n,i){if(Ph&&t.map===Ph)return t.map(n,i);var e=[];return h.each(t,function(r){e.push(n.call(i,r))}),e},h.keys=function(t){var n=[];return t===null||h.each(t,function(i,e){n[n.length]=e}),n},h.values=function(t){var n=[];return t===null||h.each(t,function(i){n[n.length]=i}),n},h.include=function(t,n){var i=!1;return t===null?i:Th&&t.indexOf===Th?t.indexOf(n)!=-1:(h.each(t,function(e){if(i||(i=e===n))return Pa}),i)},h.includes=function(t,n){return t.indexOf(n)!==-1},h.inherit=function(t,n){return t.prototype=new n,t.prototype.constructor=t,t.superclass=n.prototype,t},h.isObject=function(t){return t===Object(t)&&!h.isArray(t)},h.isEmptyObject=function(t){if(h.isObject(t)){for(var n in t)if(Xi.call(t,n))return!1;return!0}return!1},h.isUndefined=function(t){return t===void 0},h.isString=function(t){return dn.call(t)=="[object String]"},h.isDate=function(t){return dn.call(t)=="[object Date]"},h.isNumber=function(t){return dn.call(t)=="[object Number]"},h.isElement=function(t){return!!(t&&t.nodeType===1)},h.encodeDates=function(t){return h.each(t,function(n,i){h.isDate(n)?t[i]=h.formatDate(n):h.isObject(n)&&(t[i]=h.encodeDates(n))}),t},h.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},h.formatDate=function(t){function n(i){return i<10?"0"+i:i}return t.getUTCFullYear()+"-"+n(t.getUTCMonth()+1)+"-"+n(t.getUTCDate())+"T"+n(t.getUTCHours())+":"+n(t.getUTCMinutes())+":"+n(t.getUTCSeconds())},h.strip_empty_properties=function(t){var n={};return h.each(t,function(i,e){h.isString(i)&&i.length>0&&(n[e]=i)}),n},h.truncate=function(t,n){var i;return typeof t=="string"?i=t.slice(0,n):h.isArray(t)?(i=[],h.each(t,function(e){i.push(h.truncate(e,n))})):h.isObject(t)?(i={},h.each(t,function(e,r){i[r]=h.truncate(e,n)})):i=t,i},h.JSONEncode=(function(){return function(t){var n=t,i=function(r){var s=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return s.lastIndex=0,s.test(r)?'"'+r.replace(s,function(a){var u=o[a];return typeof u=="string"?u:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+r+'"'},e=function(r,s){var o="",a=" ",u=0,c="",l="",f=0,p=o,g=[],v=s[r];switch(v&&typeof v=="object"&&typeof v.toJSON=="function"&&(v=v.toJSON(r)),typeof v){case"string":return i(v);case"number":return isFinite(v)?String(v):"null";case"boolean":case"null":return String(v);case"object":if(!v)return"null";if(o+=a,g=[],dn.apply(v)==="[object Array]"){for(f=v.length,u=0;u<f;u+=1)g[u]=e(u,v)||"null";return l=g.length===0?"[]":o?"[\n"+o+g.join(",\n"+o)+"\n"+p+"]":"["+g.join(",")+"]",o=p,l}for(c in v)Xi.call(v,c)&&(l=e(c,v),l&&g.push(i(c)+(o?": ":":")+l));return l=g.length===0?"{}":o?"{"+g.join(",")+p+"}":"{"+g.join(",")+"}",o=p,l}};return e("",{"":n})}})(),h.JSONDecode=(function(){var t,n,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},e,r=function(g){var v=new SyntaxError(g);throw v.at=t,v.text=e,v},s=function(g){return g&&g!==n&&r("Expected '"+g+"' instead of '"+n+"'"),n=e.charAt(t),t+=1,n},o=function(){var g,v="";for(n==="-"&&(v="-",s("-"));n>="0"&&n<="9";)v+=n,s();if(n===".")for(v+=".";s()&&n>="0"&&n<="9";)v+=n;if(n==="e"||n==="E")for(v+=n,s(),(n==="-"||n==="+")&&(v+=n,s());n>="0"&&n<="9";)v+=n,s();if(g=+v,!isFinite(g))r("Bad number");else return g},a=function(){var g,v,y="",d;if(n==='"')for(;s();){if(n==='"')return s(),y;if(n==="\\")if(s(),n==="u"){for(d=0,v=0;v<4&&(g=parseInt(s(),16),!!isFinite(g));v+=1)d=d*16+g;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<=" ";)s()},c=function(){switch(n){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null}r('Unexpected "'+n+'"')},l,f=function(){var g=[];if(n==="["){if(s("["),u(),n==="]")return s("]"),g;for(;n;){if(g.push(l()),u(),n==="]")return s("]"),g;s(","),u()}}r("Bad array")},p=function(){var g,v={};if(n==="{"){if(s("{"),u(),n==="}")return s("}"),v;for(;n;){if(g=a(),u(),s(":"),Object.hasOwnProperty.call(v,g)&&r('Duplicate key "'+g+'"'),v[g]=l(),u(),n==="}")return s("}"),v;s(","),u()}}r("Bad object")};return l=function(){switch(u(),n){case"{":return p();case"[":return f();case'"':return a();case"-":return o();default:return n>="0"&&n<="9"?o():c()}},function(g){var v;return e=g,t=0,n=" ",v=l(),u(),n&&r("Syntax error"),v}})(),h.base64Encode=function(t){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i,e,r,s,o,a,u,c,l=0,f=0,p="",g=[];if(!t)return t;t=h.utf8Encode(t);do i=t.charCodeAt(l++),e=t.charCodeAt(l++),r=t.charCodeAt(l++),c=i<<16|e<<8|r,s=c>>18&63,o=c>>12&63,a=c>>6&63,u=c&63,g[f++]=n.charAt(s)+n.charAt(o)+n.charAt(a)+n.charAt(u);while(l<t.length);switch(p=g.join(""),t.length%3){case 1:p=p.slice(0,-2)+"==";break;case 2:p=p.slice(0,-1)+"=";break}return p},h.utf8Encode=function(t){t=(t+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var n="",i,e,r=0,s;for(i=e=0,r=t.length,s=0;s<r;s++){var o=t.charCodeAt(s),a=null;o<128?e++:o>127&&o<2048?a=String.fromCharCode(o>>6|192,o&63|128):a=String.fromCharCode(o>>12|224,o>>6&63|128,o&63|128),a!==null&&(e>i&&(n+=t.substring(i,e)),n+=a,i=e=s+1)}return e>i&&(n+=t.substring(i,t.length)),n},h.UUID=function(){try{return E.crypto.randomUUID()}catch(i){for(var t=new Array(36),n=0;n<36;n++)t[n]=Math.floor(Math.random()*16);return t[14]=4,t[19]=t[19]&=-5,t[19]=t[19]|=8,t[8]=t[13]=t[18]=t[23]="-",h.map(t,function(e){return e.toString(16)}).join("")}};var $h=["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(t){var n;for(t=t.toLowerCase(),n=0;n<$h.length;n++)if(t.indexOf($h[n])!==-1)return!0;return!1},h.HTTPBuildQuery=function(t,n){var i,e,r=[];return h.isUndefined(n)&&(n="&"),h.each(t,function(s,o){i=encodeURIComponent(s.toString()),e=encodeURIComponent(o),r[r.length]=e+"="+i}),r.join(n)},h.getQueryParam=function(t,n){n=n.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var i="[\\?&]"+n+"=([^&#]*)",e=new RegExp(i),r=e.exec(t);if(r===null||r&&typeof r[1]!="string"&&r[1].length)return"";var s=r[1];try{s=decodeURIComponent(s)}catch(o){N.error("Skipping decoding for malformed query param: "+s)}return s.replace(/\+/g," ")},h.cookie={get:function(t){for(var n=t+"=",i=U.cookie.split(";"),e=0;e<i.length;e++){for(var r=i[e];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(t){var n;try{n=h.JSONDecode(h.cookie.get(t))||{}}catch(i){}return n},set_seconds:function(t,n,i,e,r,s,o){var a="",u="",c="";if(o)a="; domain="+o;else if(e){var l=Fh(U.location.hostname);a=l?"; domain=."+l:""}if(i){var f=new Date;f.setTime(f.getTime()+i*1e3),u="; expires="+f.toGMTString()}s&&(r=!0,c="; SameSite=None"),r&&(c+="; secure"),U.cookie=t+"="+encodeURIComponent(n)+u+"; path=/"+a+c},set:function(t,n,i,e,r,s,o){var a="",u="",c="";if(o)a="; domain="+o;else if(e){var l=Fh(U.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()}s&&(r=!0,c="; SameSite=None"),r&&(c+="; secure");var p=t+"="+encodeURIComponent(n)+u+"; path=/"+a+c;return U.cookie=p,p},remove:function(t,n,i){h.cookie.set(t,"",-1,n,!1,!1,i)}};var Nh=function(t){var n=!0;try{var i="__mplss_"+Da(8),e="xyz";t.setItem(i,e),t.getItem(i)!==e&&(n=!1),t.removeItem(i)}catch(r){n=!1}return n},Na=null,gn=function(t,n){return Na!==null&&!n?Na:Na=Nh(t)},La=null,Kb=function(t,n){return La!==null&&!n?La:La=Nh(t)};function Lh(t,n,i){var e=function(r){N.error(n+" error: "+r)};return{is_supported:function(r){var s=i(t,r);return s||N.error(n+" unsupported"),s},error:e,get:function(r){try{return t.getItem(r)}catch(s){e(s)}return null},parse:function(r){try{return h.JSONDecode(t.getItem(r))||{}}catch(s){}return null},set:function(r,s){try{t.setItem(r,s)}catch(o){e(o)}},remove:function(r){try{t.removeItem(r)}catch(s){e(s)}}}}var Qi=function(){try{return E.localStorage}catch(t){return null}},Jb=function(){try{return E.sessionStorage}catch(t){return null}};h.localStorage=Lh(Qi(),"localStorage",gn),h.sessionStorage=Lh(Jb(),"sessionStorage",Kb),h.register_event=(function(){var t=function(e,r,s,o,a){if(!e){N.error("No valid element provided to register_event");return}if(e.addEventListener&&!o)e.addEventListener(r,s,!!a);else{var u="on"+r,c=e[u];e[u]=n(e,s,c)}};function n(e,r,s){var o=function(a){if(a=a||i(E.event),!!a){var u=!0,c,l;return h.isFunction(s)&&(c=s(a)),l=r.call(e,a),(c===!1||l===!1)&&(u=!1),u}};return o}function i(e){return e&&(e.preventDefault=i.preventDefault,e.stopPropagation=i.stopPropagation),e}return i.preventDefault=function(){this.returnValue=!1},i.stopPropagation=function(){this.cancelBubble=!0},t})();var Xb=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');h.dom_query=(function(){function t(r){return r.all?r.all:r.getElementsByTagName("*")}var n=/[\t\r\n]/g;function i(r,s){var o=" "+s+" ";return(" "+r.className+" ").replace(n," ").indexOf(o)>=0}function e(r){if(!U.getElementsByTagName)return[];var s=r.split(" "),o,a,u,c,l,f,p,g,v,y,d=[U];for(f=0;f<s.length;f++){if(o=s[f].replace(/^\s+/,"").replace(/\s+$/,""),o.indexOf("#")>-1){a=o.split("#"),u=a[0];var m=a[1],_=U.getElementById(m);if(!_||u&&_.nodeName.toLowerCase()!=u)return[];d=[_];continue}if(o.indexOf(".")>-1){a=o.split("."),u=a[0];var b=a[1];for(u||(u="*"),c=[],l=0,p=0;p<d.length;p++)for(u=="*"?v=t(d[p]):v=d[p].getElementsByTagName(u),g=0;g<v.length;g++)c[l++]=v[g];for(d=[],y=0,p=0;p<c.length;p++)c[p].className&&h.isString(c[p].className)&&i(c[p],b)&&(d[y++]=c[p]);continue}var C=o.match(Xb);if(C){u=C[1];var S=C[2],O=C[3],A=C[4];for(u||(u="*"),c=[],l=0,p=0;p<d.length;p++)for(u=="*"?v=t(d[p]):v=d[p].getElementsByTagName(u),g=0;g<v.length;g++)c[l++]=v[g];d=[],y=0;var k;switch(O){case"=":k=function($){return $.getAttribute(S)==A};break;case"~":k=function($){return $.getAttribute(S).match(new RegExp("\\b"+A+"\\b"))};break;case"|":k=function($){return $.getAttribute(S).match(new RegExp("^"+A+"-?"))};break;case"^":k=function($){return $.getAttribute(S).indexOf(A)===0};break;case"$":k=function($){return $.getAttribute(S).lastIndexOf(A)==$.getAttribute(S).length-A.length};break;case"*":k=function($){return $.getAttribute(S).indexOf(A)>-1};break;default:k=function($){return $.getAttribute(S)}}for(d=[],y=0,p=0;p<c.length;p++)k(c[p])&&(d[y++]=c[p]);continue}for(u=o,c=[],l=0,p=0;p<d.length;p++)for(v=d[p].getElementsByTagName(u),g=0;g<v.length;g++)c[l++]=v[g];d=c}return d}return function(r){return h.isElement(r)?[r]:h.isObject(r)&&!h.isUndefined(r.length)?r:e.call(this,r)}})();var Zb=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],Qb=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];h.info={campaignParams:function(t){var n="",i={};return h.each(Zb,function(e){n=h.getQueryParam(U.URL,e),n.length?i[e]=n:t!==void 0&&(i[e]=t)}),i},clickParams:function(){var t="",n={};return h.each(Qb,function(i){t=h.getQueryParam(U.URL,i),t.length&&(n[i]=t)}),n},marketingParams:function(){return h.extend(h.info.campaignParams(),h.info.clickParams())},searchEngine:function(t){return t.search("https?://(.*)google.([^/?]*)")===0?"google":t.search("https?://(.*)bing.com")===0?"bing":t.search("https?://(.*)yahoo.com")===0?"yahoo":t.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null},searchInfo:function(t){var n=h.info.searchEngine(t),i=n!="yahoo"?"q":"p",e={};if(n!==null){e.$search_engine=n;var r=h.getQueryParam(t,i);r.length&&(e.mp_keyword=r)}return e},browser:function(t,n,i){return n=n||"",i||h.includes(t," OPR/")?h.includes(t,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":h.includes(t,"IEMobile")||h.includes(t,"WPDesktop")?"Internet Explorer Mobile":h.includes(t,"SamsungBrowser/")?"Samsung Internet":h.includes(t,"Edge")||h.includes(t,"Edg/")?"Microsoft Edge":h.includes(t,"FBIOS")?"Facebook Mobile":h.includes(t,"Whale/")?"Whale Browser":h.includes(t,"Chrome")?"Chrome":h.includes(t,"CriOS")?"Chrome iOS":h.includes(t,"UCWEB")||h.includes(t,"UCBrowser")?"UC Browser":h.includes(t,"FxiOS")?"Firefox iOS":h.includes(n,"Apple")?h.includes(t,"Mobile")?"Mobile Safari":"Safari":h.includes(t,"Android")?"Android Mobile":h.includes(t,"Konqueror")?"Konqueror":h.includes(t,"Firefox")?"Firefox":h.includes(t,"MSIE")||h.includes(t,"Trident/")?"Internet Explorer":h.includes(t,"Gecko")?"Mozilla":""},browserVersion:function(t,n,i){var e=h.info.browser(t,n,i),r={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/},s=r[e];if(s===void 0)return null;var o=t.match(s);return o?parseFloat(o[o.length-2]):null},os:function(){var t=Je;return/Windows/i.test(t)?/Phone/.test(t)||/WPDesktop/.test(t)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(t)?"iOS":/Android/.test(t)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Mac/i.test(t)?"Mac OS X":/Linux/.test(t)?"Linux":/CrOS/.test(t)?"Chrome OS":""},device:function(t){return/Windows Phone/i.test(t)||/WPDesktop/.test(t)?"Windows Phone":/iPad/.test(t)?"iPad":/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Android/.test(t)?"Android":""},referringDomain:function(t){var n=t.split("/");return n.length>=3?n[2]:""},currentUrl:function(){return E.location.href},properties:function(t){return typeof t!="object"&&(t={}),h.extend(h.strip_empty_properties({$os:h.info.os(),$browser:h.info.browser(Je,ut.vendor,vn),$referrer:U.referrer,$referring_domain:h.info.referringDomain(U.referrer),$device:h.info.device(Je)}),{$current_url:h.info.currentUrl(),$browser_version:h.info.browserVersion(Je,ut.vendor,vn),$screen_height:Ah.height,$screen_width:Ah.width,mp_lib:"web",$lib_version:Pe.LIB_VERSION,$insert_id:Da(),time:h.timestamp()/1e3},h.strip_empty_properties(t))},people_properties:function(){return h.extend(h.strip_empty_properties({$os:h.info.os(),$browser:h.info.browser(Je,ut.vendor,vn)}),{$browser_version:h.info.browserVersion(Je,ut.vendor,vn)})},mpPageViewProperties:function(){return h.strip_empty_properties({current_page_title:U.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 eS=function(t,n){var i=null,e=[];return function(r){var s=this;return e.push(r),i||(i=new F(function(o){setTimeout(function(){var a=t.apply(s,[e]);i=null,e=[],o(a)},n)})),i}},Da=function(t){var n=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return t?n.substring(0,t):n},Dh=function(){var t=h.UUID().replace(/-/g,""),n=h.UUID().replace(/-/g,"").substring(0,16),i="01";return"00-"+t+"-"+n+"-"+i},tS=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,rS=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Fh=function(t){var n=rS,i=t.split("."),e=i[i.length-1];(e.length>4||e==="com"||e==="org")&&(n=tS);var r=t.match(n);return r?r[0]:""},nS=function(){var t=E.navigator.onLine;return h.isUndefined(t)||t},Ot=function(){},es=function(t,n){for(var i=!1,e=0;e<n.length;e++)if(t.match(n[e])){i=!0;break}return i},Er=null,ts=null;typeof JSON!="undefined"&&(Er=JSON.stringify,ts=JSON.parse),Er=Er||h.JSONEncode,ts=ts||h.JSONDecode;var iS=function(t,n,i){if(!E.CompressionStream)return!1;var e=h.info.browser(t,n,i),r=h.info.browserVersion(t,n,i);return!((e==="Safari"||e==="Mobile Safari")&&r>=16.4&&r<16.6)};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=Et;var Ue=function(t,n,i){this.dbName=t,this.storeName=n,this.version=i.version,this.storeNamesInDb=i.storeNames,this.dbPromise=null};Ue.prototype._openDb=function(){var t=this.dbName,n=this.version,i=this.storeNamesInDb;return new F(function(e,r){var s=E.indexedDB.open(t,n);s.onerror=function(){r(s.error)},s.onsuccess=function(){e(s.result)},s.onupgradeneeded=function(o){var a=o.target.result;i.forEach(function(u){a.objectStoreNames.contains(u)||a.createObjectStore(u)})}})},Ue.prototype.init=function(){return E.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(t){return t instanceof E.IDBDatabase?F.resolve():F.reject(t)})):F.reject("indexedDB is not supported in this browser")},Ue.prototype.isInitialized=function(){return!!this.dbPromise},Ue.prototype.makeTransaction=function(t,n){var i=this.storeName,e=function(r){return new F(function(s,o){var a=r.transaction(i,t);a.oncomplete=function(){s(a)},a.onabort=a.onerror=function(){o(a.error)},n(a.objectStore(i))})};return this.dbPromise.then(e).catch(function(r){return r&&r.name==="InvalidStateError"?(this.dbPromise=this._openDb(),this.dbPromise.then(e)):F.reject(r)}.bind(this))},Ue.prototype.setItem=function(t,n){return this.makeTransaction("readwrite",function(i){i.put(n,t)})},Ue.prototype.getItem=function(t){var n;return this.makeTransaction("readonly",function(i){n=i.get(t)}).then(function(){return n.result})},Ue.prototype.removeItem=function(t){return this.makeTransaction("readwrite",function(n){n.delete(t)})},Ue.prototype.getAll=function(){var t;return this.makeTransaction("readonly",function(n){t=n.getAll()}).then(function(){return t.result})};var Fa="mixpanelBrowserDb",Uh="mixpanelRecordingEvents",Ua="mixpanelRecordingRegistry",Ba={version:1,storeNames:[Uh,Ua]},sS="__mp_opt_in_out_";function oS(t,n){qh(!0,t,n)}function aS(t,n){qh(!1,t,n)}function uS(t,n){return zh(t,n)==="1"}function Bh(t,n){if(lS(n))return N.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=zh(t,n)==="0";return i&&N.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),i}function xt(t){return Wa(t,function(n){return this.get_config(n)})}function kt(t){return Wa(t,function(n){return this._get_config(n)})}function Ir(t){return Wa(t,function(n){return this._get_config(n)})}function cS(t,n){n=n||{},za(n).remove(qa(t,n),!!n.crossSubdomainCookie,n.cookieDomain)}function za(t){return t=t||{},t.persistenceType==="localStorage"?h.localStorage:h.cookie}function qa(t,n){return n=n||{},(n.persistencePrefix||sS)+t}function zh(t,n){return za(n).get(qa(t,n))}function lS(t){if(t&&t.ignoreDnt)return!1;var n=t&&t.window||E,i=n.navigator||{},e=!1;return h.each([i.doNotTrack,i.msDoNotTrack,n.doNotTrack],function(r){h.includes([!0,1,"1","yes"],r)&&(e=!0)}),e}function qh(t,n,i){if(!h.isString(n)||!n.length){N.error("gdpr."+(t?"optIn":"optOut")+" called with an invalid token");return}i=i||{},za(i).set(qa(n,i),t?1:0,h.isNumber(i.cookieExpiration)?i.cookieExpiration:null,!!i.crossSubdomainCookie,!!i.secureCookie,!!i.crossSiteCookie,i.cookieDomain),i.track&&t&&i.track(i.trackEventName||"$opt_in",i.trackProperties,{send_immediately:!0})}function Wa(t,n){return function(){var i=!1;try{var e=n.call(this,"token"),r=n.call(this,"ignore_dnt"),s=n.call(this,"opt_out_tracking_persistence_type"),o=n.call(this,"opt_out_tracking_cookie_prefix"),a=n.call(this,"window");e&&(i=Bh(e,{ignoreDnt:r,persistenceType:s,persistencePrefix:o,window:a}))}catch(c){N.error("Unexpected error when checking tracking opt-out status: "+c)}if(!i)return t.apply(this,arguments);var u=arguments[arguments.length-1];typeof u=="function"&&u(0)}}var fS=Xe("lock"),Wh=function(t,n){n=n||{},this.storageKey=t,this.storage=n.storage||Qi(),this.pollIntervalMS=n.pollIntervalMS||100,this.timeoutMS=n.timeoutMS||2e3,this.promiseImpl=n.promiseImpl||F};Wh.prototype.withLock=function(t,n){var i=this.promiseImpl;return new i(h.bind(function(e,r){var s=n||new Date().getTime()+"|"+Math.random(),o=new Date().getTime(),a=this.storageKey,u=this.pollIntervalMS,c=this.timeoutMS,l=this.storage,f=a+":X",p=a+":Y",g=a+":Z",v=function(b){if(new Date().getTime()-o>c){fS.error("Timeout waiting for mutex on "+a+"; clearing lock. ["+s+"]"),l.removeItem(g),l.removeItem(p),m();return}setTimeout(function(){try{b()}catch(C){r(C)}},u*(Math.random()+.1))},y=function(b,C){b()?C():v(function(){y(b,C)})},d=function(){var b=l.getItem(p);return b&&b!==s?!1:(l.setItem(p,s),l.getItem(p)===s?!0:(gn(l,!0)||r(new Error("localStorage support dropped while acquiring lock")),!1))},m=function(){l.setItem(f,s),y(d,function(){if(l.getItem(f)===s){_();return}v(function(){if(l.getItem(p)!==s){m();return}y(function(){return!l.getItem(g)},_)})})},_=function(){l.setItem(g,"1");var b=function(){l.removeItem(g),l.getItem(p)===s&&l.removeItem(p),l.getItem(f)===s&&l.removeItem(f)};t().then(function(C){b(),e(C)}).catch(function(C){b(),r(C)})};try{if(gn(l,!0))m();else throw new Error("localStorage support check failed")}catch(b){r(b)}},this))};var Or=function(t){this.storage=t||Qi()};Or.prototype.init=function(){return this.storage?F.resolve():F.reject(new Error("localStorage is not available"))},Or.prototype.isInitialized=function(){return!0},Or.prototype.setItem=function(t,n){return new F(h.bind(function(i,e){try{this.storage.setItem(t,Er(n))}catch(r){e(r)}i()},this))},Or.prototype.getItem=function(t){return new F(h.bind(function(n,i){var e;try{e=ts(this.storage.getItem(t))}catch(r){i(r)}n(e)},this))},Or.prototype.removeItem=function(t){return new F(h.bind(function(n,i){try{this.storage.removeItem(t)}catch(e){i(e)}n()},this))};var Gh=Xe("batch"),Ze=function(t,n){n=n||{},this.storageKey=t,this.usePersistence=n.usePersistence,this.usePersistence&&(this.queueStorage=n.queueStorage||new Or,this.lock=new Wh(t,{storage:n.sharedLockStorage,timeoutMS:n.sharedLockTimeoutMS})),this.reportError=n.errorReporter||h.bind(Gh.error,Gh),this.pid=n.pid||null,this.memQueue=[],this.initialized=!1,n.enqueueThrottleMs?this.enqueuePersisted=eS(h.bind(this._enqueuePersisted,this),n.enqueueThrottleMs):this.enqueuePersisted=h.bind(function(i){return this._enqueuePersisted([i])},this)};Ze.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?F.resolve():this.queueStorage.init().then(h.bind(function(){this.initialized=!0},this)).catch(h.bind(function(t){this.reportError("Error initializing queue persistence. Disabling persistence",t),this.initialized=!0,this.usePersistence=!1},this))},Ze.prototype.enqueue=function(t,n){var i={id:Da(),flushAfter:new Date().getTime()+n*2,payload:t};return this.usePersistence?this.enqueuePersisted(i):(this.memQueue.push(i),F.resolve(!0))},Ze.prototype._enqueuePersisted=function(t){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(t))},this)).then(h.bind(function(i){return i&&(this.memQueue=this.memQueue.concat(t)),i},this)).catch(h.bind(function(i){return this.reportError("Error enqueueing items",i,t),!1},this))},this);return this.lock.withLock(n,this.pid).catch(h.bind(function(i){return this.reportError("Error acquiring storage lock",i),!1},this))},Ze.prototype.fillBatch=function(t){var n=this.memQueue.slice(0,t);return this.usePersistence&&n.length<t?this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(i){if(i.length){var e={};h.each(n,function(o){e[o.id]=!0});for(var r=0;r<i.length;r++){var s=i[r];if(new Date().getTime()>s.flushAfter&&!e[s.id]&&(s.orphaned=!0,n.push(s),n.length>=t))break}}return n},this)):F.resolve(n)};var Vh=function(t,n){var i=[];return h.each(t,function(e){e.id&&!n[e.id]&&i.push(e)}),i};Ze.prototype.removeItemsByID=function(t){var n={};if(h.each(t,function(e){n[e]=!0}),this.memQueue=Vh(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(e){return e=Vh(e,n),this.saveToStorage(e)},this)).then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(e){for(var r=0;r<e.length;r++){var s=e[r];if(s.id&&n[s.id])throw new Error("Item not removed from storage")}return!0},this)).catch(h.bind(function(e){return this.reportError("Error removing items",e,t),!1},this))},this);return this.lock.withLock(i,this.pid).catch(h.bind(function(e){return this.reportError("Error acquiring storage lock",e),gn(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 F.resolve(!0)};var jh=function(t,n){var i=[];return h.each(t,function(e){var r=e.id;if(r in n){var s=n[r];s!==null&&(e.payload=s,i.push(e))}else i.push(e)}),i};Ze.prototype.updatePayloads=function(t){return this.memQueue=jh(this.memQueue,t),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=jh(i,t),this.saveToStorage(i)},this)).catch(h.bind(function(i){return this.reportError("Error updating items",t,i),!1},this))},this),this.pid).catch(h.bind(function(n){return this.reportError("Error acquiring storage lock",n),!1},this)):F.resolve(!0)},Ze.prototype.readFromStorage=function(){return this.ensureInit().then(h.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(h.bind(function(t){return t&&(h.isArray(t)||(this.reportError("Invalid storage entry:",t),t=null)),t||[]},this)).catch(h.bind(function(t){return this.reportError("Error retrieving queue",t),[]},this))},Ze.prototype.saveToStorage=function(t){return this.ensureInit().then(h.bind(function(){return this.queueStorage.setItem(this.storageKey,t)},this)).then(function(){return!0}).catch(h.bind(function(n){return this.reportError("Error saving queue",n),!1},this))},Ze.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(h.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):F.resolve()};var hS=600*1e3,mn=Xe("batch"),Be=function(t,n){this.errorReporter=n.errorReporter,this.queue=new Ze(t,{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};Be.prototype.enqueue=function(t){return this.queue.enqueue(t,this.flushInterval)},Be.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},Be.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},Be.prototype.clear=function(){return this.queue.clear()},Be.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},Be.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},Be.prototype.scheduleFlush=function(t){this.flushInterval=t,this.stopped||(this.timeoutID=setTimeout(h.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},Be.prototype.sendRequestPromise=function(t,n){return new F(h.bind(function(i){this.sendRequest(t,n,i)},this))},Be.prototype.flush=function(t){if(this.requestInProgress)return mn.log("Flush: Request already in progress"),F.resolve();this.requestInProgress=!0,t=t||{};var n=this.libConfig.batch_request_timeout_ms,i=new Date().getTime(),e=this.batchSize;return this.queue.fillBatch(e).then(h.bind(function(r){var s=r.length===e,o=[],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 g=!0,v=f.id;v?(this.itemIdsSentSuccessfully[v]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:f,batchSize:r.length,timesSent:this.itemIdsSentSuccessfully[v]}),g=!1):this.reportError("[dupe] found item with no ID",{item:f}),g&&o.push(p)}a[f.id]=p},this),o.length<1)return this.requestInProgress=!1,this.resetFlush(),F.resolve();var u=h.bind(function(){return this.queue.removeItemsByID(h.map(r,function(f){return f.id})).then(h.bind(function(f){return h.each(r,h.bind(function(p){var g=p.id;g?(this.itemIdsSentSuccessfully[g]=this.itemIdsSentSuccessfully[g]||0,this.itemIdsSentSuccessfully[g]++,this.itemIdsSentSuccessfully[g]>5&&this.reportError("[dupe] item ID sent too many times",{item:p,batchSize:r.length,timesSent:this.itemIdsSentSuccessfully[g]})):this.reportError("[dupe] found item with no ID while removing",{item:p})},this)),f?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!s?(this.resetFlush(),F.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),F.resolve())},this))},this),c=h.bind(function(f){this.requestInProgress=!1;try{if(t.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&&!nS()||f.error==="timeout")){var p=this.flushInterval*2;return f.retryAfter&&(p=parseInt(f.retryAfter,10)*1e3||p),p=Math.min(hS,p),this.reportError("Error; retry in "+p+" ms"),this.scheduleFlush(p),F.resolve()}else if(h.isObject(f)&&f.httpStatusCode===413)if(r.length>1){var g=Math.max(1,Math.floor(e/2));return this.batchSize=Math.min(this.batchSize,g,r.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),F.resolve()}else return this.reportError("Single-event request too large; dropping",r),this.resetBatchSize(),u();else return u()}catch(v){this.reportError("Error handling API response",v),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:n};return t.unloading&&(l.transport="sendBeacon"),mn.log("MIXPANEL REQUEST:",o),this.sendRequestPromise(o,l).then(c)},this)).catch(h.bind(function(r){this.reportError("Error flushing request queue",r),this.resetFlush()},this))},Be.prototype.reportError=function(t,n){if(mn.error.apply(mn.error,arguments),this.errorReporter)try{n instanceof Error||(n=new Error(t)),this.errorReporter(t,n)}catch(i){mn.error(i)}};var Ga=function(t){var n=Date.now();return!t||n>t.maxExpires||n>t.idleExpires},pS=250,Hh=function(t,n){if(!h.isArray(t))return t&&n.critical("record_allowed_iframe_origins must be an array of origin strings, cross-origin recording will be disabled."),[];for(var i=[],e=0;e<t.length;e++)try{var r=new URL(t[e]).origin;if(r==="null"){n.critical(t[e]+" has an opaque origin. Skipping this entry.");continue}i.push(r)}catch(s){n.critical(t[e]+" is not a valid origin URL. Skipping this entry.")}return i},yn="change",ct="click",Va="hashchange",dS="input",Yh="load",Rt="mp_locationchange",Kh="popstate",rs="scrollend",ja="scroll",vS="select",ns="submit",gS="toggle",Jh="visibilitychange",mS=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],Xh=["mp-include"],Ha=["mp-no-track"],Zh=Ha.concat(["mp-sensitive"]),yS=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],_S={button:!0,checkbox:!0,combobox:!0,grid:!0,link:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,navigation:!0,option:!0,radio:!0,radiogroup:!0,searchbox:!0,slider:!0,spinbutton:!0,switch:!0,tab:!0,tablist:!0,textbox:!0,tree:!0,treegrid:!0,treeitem:!0},wS={base:!0,head:!0,html:!0,link:!0,meta:!0,script:!0,style:!0,title:!0,br:!0,hr:!0,wbr:!0,noscript:!0,picture:!0,source:!0,template:!0,track:!0},bS={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},Qh=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],SS=5,re=Xe("autocapture");function Ya(t){for(var n={},i=ep(t).split(" "),e=0;e<i.length;e++){var r=i[e];r&&(n[r]=!0)}return n}function ep(t){switch(typeof t.className){case"string":return t.className;case"object":return t.className.baseVal||t.getAttribute("class")||"";default:return""}}function CS(t){if(t.previousElementSibling)return t.previousElementSibling;do t=t.previousSibling;while(t&&!np(t));return t}function tp(t,n,i,e,r,s){var o={$classes:ep(t).split(" "),$tag_name:t.tagName.toLowerCase()},a=t.id;a&&(o.$id=a),Xa(t,n,r,s)&&h.each(yS.concat(e),function(f){if(t.hasAttribute(f)&&!i[f]){var p=t.getAttribute(f);is(p)&&(o["$attr-"+f]=p)}});for(var u=1,c=1,l=t;l=CS(l);)u++,l.tagName===t.tagName&&c++;return o.$nth_child=u,o.$nth_of_type=c,o}function ES(t,n){var i=n.allowElementCallback,e=n.allowSelectors||[],r=n.blockAttrs||[],s=n.blockElementCallback,o=n.blockSelectors||[],a=n.captureTextContent||!1,u=n.captureExtraAttrs||[],c=n.capturedForHeatMap||!1,l={};h.each(r,function(S){l[S]=!0});var f=null,p=typeof t.target=="undefined"?t.srcElement:t.target;if(ip(p)&&(p=p.parentNode),kS(p,t)&&Ka(p,t,i,e)&&!Ja(p,t,s,o)){for(var g=[p],v=p;v.parentNode&&!Qe(v,"body");)g.push(v.parentNode),v=v.parentNode;var y=[],d,m=!1;if(h.each(g,function(S){var O=Xa(S,t,i,e);!l.href&&S.tagName.toLowerCase()==="a"&&(d=S.getAttribute("href"),d=O&&is(d)&&d),Ja(S,t,s,o)&&(m=!0),y.push(tp(S,t,l,u,i,e))},this),!m){var _=U.documentElement;if(f={$event_type:t.type,$host:E.location.host,$pathname:E.location.pathname,$elements:y,$el_attr__href:d,$viewportHeight:Math.max(_.clientHeight,E.innerHeight||0),$viewportWidth:Math.max(_.clientWidth,E.innerWidth||0),$pageHeight:U.body.offsetHeight||0,$pageWidth:U.body.offsetWidth||0},h.each(u,function(S){if(!l[S]&&p.hasAttribute(S)){var O=p.getAttribute(S);is(O)&&(f["$el_attr__"+S]=O)}}),a&&(b=rp(p,t,i,e),b&&b.length&&(f.$el_text=b)),t.type===ct&&(h.each(mS,function(S){S in t&&(f["$"+S]=t[S])}),c&&(f.$captured_for_heatmap=!0),p=IS(t)),a){var b=rp(p,t,i,e);b&&b.length&&(f.$el_text=b)}if(p){if(!Ka(p,t,i,e)||Ja(p,t,s,o))return null;var C=tp(p,t,l,u,i,e);f.$target=C,f.$el_classes=C.$classes,h.extend(f,h.strip_empty_properties({$el_id:C.$id,$el_tag_name:C.$tag_name}))}}}return f}function rp(t,n,i,e){var r="";return Xa(t,n,i,e)&&t.childNodes&&t.childNodes.length&&h.each(t.childNodes,function(s){ip(s)&&s.textContent&&(r+=h.trim(s.textContent).split(/(\s+)/).filter(is).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),h.trim(r)}function IS(t){for(var n=t.target,i=t.composedPath(),e=0;e<i.length;e++){var r=i[e];if(Qe(r,"a")||Qe(r,"button")||Qe(r,"input")||Qe(r,"select")||r.getAttribute&&r.getAttribute("role")==="button"){n=r;break}if(r===n)break}return n}function Ka(t,n,i,e){if(i)try{if(!i(t,n))return!1}catch(o){return re.critical("Error while checking element in allowElementCallback",o),!1}if(!e.length)return!0;for(var r=0;r<e.length;r++){var s=e[r];try{if(t.matches(s))return!0}catch(o){re.critical("Error while checking selector: "+s,o)}}return!1}function Ja(t,n,i,e){var r;if(i)try{if(i(t,n))return!0}catch(a){return re.critical("Error while checking element in blockElementCallback",a),!0}if(e&&e.length)for(r=0;r<e.length;r++){var s=e[r];try{if(t.matches(s))return!0}catch(a){re.critical("Error while checking selector: "+s,a)}}var o=Ya(t);for(r=0;r<Ha.length;r++)if(o[Ha[r]])return!0;return!1}function np(t){return t&&t.nodeType===1}function Qe(t,n){return t&&t.tagName&&t.tagName.toLowerCase()===n.toLowerCase()}function ip(t){return t&&t.nodeType===3}function OS(){try{var t=U.createElement("div");return!!t.matches}catch(n){return!1}}function xS(){return typeof WeakSet!="undefined"}function kS(t,n){if(!t||Qe(t,"html")||!np(t))return!1;var i=t.tagName.toLowerCase();switch(i){case"form":return n.type===ns;case"input":return["button","submit"].indexOf(t.getAttribute("type"))===-1?n.type===yn:n.type===ct;case"select":case"textarea":return n.type===yn;default:return n.type===ct}}function sp(t){var n=(t.name||t.id||"").toString().toLowerCase();if(typeof n=="string"){var i=/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i;if(i.test(n.replace(/[^a-zA-Z0-9]/g,"")))return!0}return!1}function Xa(t,n,i,e){var r;if(!Ka(t,n,i,e))return!1;for(var s=t;s.parentNode&&!Qe(s,"body");s=s.parentNode){var o=Ya(s);for(r=0;r<Zh.length;r++)if(o[Zh[r]])return!1}var a=Ya(t);for(r=0;r<Xh.length;r++)if(a[Xh[r]])return!0;if(Qe(t,"input")||Qe(t,"select")||Qe(t,"textarea")||t.getAttribute("contenteditable")==="true")return!1;var u=t.type||"";if(typeof u=="string")switch(u.toLowerCase()){case"hidden":return!1;case"password":return!1}return!sp(t)}function is(t){if(t===null||h.isUndefined(t))return!1;if(typeof t=="string"){t=h.trim(t);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((t||"").replace(/[- ]/g,"")))return!1;var i=/(^\d{3}-?\d{2}-?\d{4}$)/;if(i.test(t))return!1}return!0}function op(t){var n="onscrollend"in E,i=Wt(t),e=rs;if(!n){var r=null,s=100;i=Wt(function(){clearTimeout(r),r=setTimeout(t,s)}),e=ja}return{listener:i,eventType:e}}function RS(t){for(var n=0;n<Qh.length;n++)if(t.hasAttribute(Qh[n]))return!0;return!1}function AS(t){var n=t.getAttribute("role");if(!n)return!1;var i=n.trim().split(/\s+/)[0].toLowerCase();return _S[i]}function Za(t){var n=t.tagName.toLowerCase();return!!(n==="button"||n==="input"||n==="select"||n==="textarea"||n==="details"||n==="dialog"||t.isContentEditable||t.onclick||t.onmousedown||t.onmouseup||t.ontouchstart||t.ontouchend||RS(t)||AS(t)||n==="a"&&t.hasAttribute("href")||t.hasAttribute("tabindex"))}function ap(t){if(!t||!t.tagName)return!0;var n=t.tagName.toLowerCase();if(wS[n])return!0;if(Za(t))return!1;for(var i=t.parentElement,e=0;i&&e<SS;){if(Za(i))return!1;if(i.getRootNode&&i.getRootNode()!==U){var r=i.getRootNode();if(r.host&&Za(r.host))return!1}i=i.parentElement,e++}return!!bS[n]}function up(t){return"composedPath"in t?t.composedPath():[]}function cp(t){var n=up(t);return n&&n.length>0?n[0]:t.target||t.srcElement}var lp=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",MS="data-rr-is-password",TS=["password","email","tel","hidden"];function ss(t){return t?Array.isArray(t)?t:[t]:[]}function PS(t){var n={input:{maskingSelector:"",unmaskingSelector:"",maskAll:!0},text:{maskingSelector:"",unmaskingSelector:"",maskAll:!0}},i=t.get_config("record_mask_input_selector"),e=t.get_config("record_unmask_input_selector"),r=t.get_config("record_mask_all_inputs");n.input.maskingSelector=ss(i).join(","),n.input.unmaskingSelector=ss(e).join(","),r!==void 0&&(n.input.maskAll=r);var s=t.get_config("record_mask_text_selector"),o=t.get_config("record_unmask_text_selector"),a=t.get_config("record_mask_all_text"),u=t.get_config("record_mask_text_class"),c=ss(s);if(u)if(u instanceof RegExp)n.text._legacyClassRegex=u;else{var l="."+u;c.indexOf(l)===-1&&c.push(l)}return n.text.maskingSelector=c.join(","),n.text.unmaskingSelector=ss(o).join(","),a===void 0&&s!==void 0?n.text.maskAll=!1:a!==void 0&&(n.text.maskAll=a),n}function xr(t,n){return n?!!t.closest(n):!1}function $S(t,n){var i=(t.getAttribute("type")||"").toLowerCase();if(TS.indexOf(i)!==-1)return!0;var e=(t.getAttribute("autocomplete")||"").toLowerCase();return e&&e!==""&&e!=="off"||t.hasAttribute(MS)||sp(t)?!0:n.input.maskAll?!xr(t,n.input.unmaskingSelector):!!(xr(t,n.input.maskingSelector)||xr(t,lp))}function NS(t,n){return t?n.text._legacyClassRegex&&Jo(t,n.text._legacyClassRegex)?!0:n.text.maskAll?!xr(t,n.text.unmaskingSelector):!!(xr(t,n.text.maskingSelector)||xr(t,lp)):!1}var Gt=Xe("network-plugin");function os(t){return Math.round(Date.now()-t.performance.now())}var Qa={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],ignoreRequestFn:function(){return!1},recordHeaders:{request:[],response:[]},recordBodyUrls:{request:[],response:[]},recordInitialRequests:!1};function LS(t){return t.entryType==="navigation"}function eu(t){return t.entryType==="resource"}function DS(t,n){for(var i=t.length,e=i-1;e>=0;e-=1)if(n(t[e]))return t[e]}function fp(t,n,i){if(!(n in t)||typeof t[n]!="function")return function(){};var e=t[n],r=i(e);return t[n]=r,function(){t[n]=e}}var tu=1024*1024;function hp(t){return!t||typeof t!="string"?t:t.length>tu?(Gt.error("Body truncated from "+t.length+" to "+tu+" characters"),t.substring(0,tu)+"... [truncated]"):t}function FS(t,n,i){if(!n.PerformanceObserver)return Gt.error("PerformanceObserver not supported"),function(){};if(i.recordInitialRequests){var e=n.performance.getEntries().filter(function(s){return LS(s)||eu(s)&&i.initiatorTypes.includes(s.initiatorType)});t({requests:e.map(function(s){return{url:s.name,initiatorType:s.initiatorType,status:"responseStatus"in s?s.responseStatus:void 0,startTime:Math.round(s.startTime),endTime:Math.round(s.responseEnd),timeOrigin:os(n)}}),isInitial:!0})}var r=new n.PerformanceObserver(function(s){var o=s.getEntries().filter(function(a){return eu(a)&&i.initiatorTypes.includes(a.initiatorType)&&a.initiatorType!=="xmlhttprequest"&&a.initiatorType!=="fetch"});t({requests:o.map(function(a){return{url:a.name,initiatorType:a.initiatorType,status:"responseStatus"in a?a.responseStatus:void 0,startTime:Math.round(a.startTime),endTime:Math.round(a.responseEnd),timeOrigin:os(n)}})})});return r.observe({entryTypes:["navigation","resource"]}),function(){r.disconnect()}}function as(t,n,i){return!n[t]||n[t].length===0?!1:n[t].includes(i.toLowerCase())}function us(t,n,i){return!n[t]||n[t].length===0?!1:es(i,n[t])}function pp(t){if(t==null)return null;var n;if(typeof t=="string")n=t;else if(t instanceof Document)n=t.textContent;else if(t instanceof FormData)n=h.HTTPBuildQuery(t);else if(h.isObject(t))try{n=JSON.stringify(t)}catch(i){return"Failed to stringify response object"}else return"Cannot read body of type "+typeof t;return hp(n)}function dp(t){return new Promise(function(n){var i=setTimeout(function(){n("Timeout while trying to read body")},500);try{t.clone().text().then(function(e){clearTimeout(i),n(hp(e))},function(e){clearTimeout(i),n("Failed to read body: "+String(e))})}catch(e){clearTimeout(i),n("Failed to read body: "+String(e))}})}function ru(t,n,i,e,r,s){if(s===void 0&&(s=0),s>10)return Gt.error("Cannot find performance entry"),Promise.resolve(null);var o=t.performance.getEntriesByName(i),a=DS(o,function(u){return eu(u)&&u.initiatorType===n&&(!e||u.startTime>=e)&&(!r||u.startTime<=r)});return a?Promise.resolve(a):new Promise(function(u){setTimeout(u,50*s)}).then(function(){return ru(t,n,i,e,r,s+1)})}function US(t,n,i){if(!i.initiatorTypes.includes("xmlhttprequest"))return function(){};var e=fp(n.XMLHttpRequest.prototype,"open",function(r){return function(s,o,a,u,c){a===void 0&&(a=!0);var l=this,f=new Request(o,{method:s}),p={},g,v,y={},d=l.setRequestHeader.bind(l);l.setRequestHeader=function(_,b){return as("request",i.recordHeaders,_)&&(y[_]=b),d(_,b)},p.requestHeaders=y;var m=l.send.bind(l);l.send=function(_){return us("request",i.recordBodyUrls,f.url)&&(p.requestBody=pp(_)),g=n.performance.now(),m(_)},l.addEventListener("readystatechange",function(){if(l.readyState===l.DONE){v=n.performance.now();var _={},b=l.getAllResponseHeaders();if(b){var C=b.trim().split(/[\r\n]+/);C.forEach(function(S){if(S){var O=S.indexOf(": ");if(O!==-1){var A=S.substring(0,O),k=S.substring(O+2);A&&as("response",i.recordHeaders,A)&&(_[A]=k)}}})}p.responseHeaders=_,us("response",i.recordBodyUrls,f.url)&&(p.responseBody=pp(l.response)),ru(n,"xmlhttprequest",f.url,g,v).then(function(S){if(!S){Gt.error("Failed to get performance entry for XHR request to "+f.url);return}var O={url:S.name,method:f.method,initiatorType:S.initiatorType,status:l.status,startTime:Math.round(S.startTime),endTime:Math.round(S.responseEnd),timeOrigin:os(n),requestHeaders:p.requestHeaders,requestBody:p.requestBody,responseHeaders:p.responseHeaders,responseBody:p.responseBody};t({requests:[O]})}).catch(function(S){Gt.error("Error recording XHR request to "+f.url+": "+String(S))})}}),r.call(l,s,o,a,u,c)}});return function(){e()}}function BS(t,n,i){if(!i.initiatorTypes.includes("fetch"))return function(){};var e=fp(n,"fetch",function(r){return function(){var s=new Request(arguments[0],arguments[1]),o,a={},u,c,l,f=Promise.resolve(void 0),p=Promise.resolve(void 0);try{var g={};s.headers.forEach(function(v,y){as("request",i.recordHeaders,y)&&(g[y]=v)}),a.requestHeaders=g,us("request",i.recordBodyUrls,s.url)&&(f=dp(s).then(function(v){a.requestBody=v})),u=n.performance.now(),l=r.apply(n,arguments).then(function(v){o=v,c=n.performance.now();var y={};return o.headers.forEach(function(d,m){as("response",i.recordHeaders,m)&&(y[m]=d)}),a.responseHeaders=y,us("response",i.recordBodyUrls,s.url)&&(p=dp(o).then(function(d){a.responseBody=d})),o})}catch(v){l=Promise.reject(v)}return Promise.all([f,p,l]).then(function(){return ru(n,"fetch",s.url,u,c)}).then(function(v){if(!v){Gt.error("Failed to get performance entry for fetch request to "+s.url);return}var y={url:v.name,method:s.method,initiatorType:v.initiatorType,status:o?o.status:void 0,startTime:Math.round(v.startTime),endTime:Math.round(v.responseEnd),timeOrigin:os(n),requestHeaders:a.requestHeaders,requestBody:a.requestBody,responseHeaders:a.responseHeaders,responseBody:a.responseBody};t({requests:[y]})}).catch(function(v){Gt.error("Error recording fetch request to "+s.url+": "+String(v))}),l}});return function(){e()}}function zS(t,n,i){if(!("performance"in n))return function(){};var e=Object.assign({},Qa.recordHeaders,i.recordHeaders||{}),r=Object.assign({},Qa.recordBodyUrls,i.recordBodyUrls||{});i=Object.assign({},i,{recordHeaders:e,recordBodyUrls:r});var s=Object.assign({},Qa,i),o=function(l){var f=l.requests.filter(function(p){var g=es(p.url,s.ignoreRequestUrls||[]);return!g&&!s.ignoreRequestFn(p)});(f.length>0||l.isInitial)&&t(Object.assign({},l,{requests:f}))},a=FS(o,n,s),u=US(o,n,s),c=BS(o,n,s);return function(){a(),u(),c()}}var qS="rrweb/network@1.mp",WS=function(t){return{name:qS,observer:zS,options:t}},Vt=Xe("recorder"),GS=E.CompressionStream,VS={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},jS=new Set([D.MouseMove,D.MouseInteraction,D.Scroll,D.ViewportResize,D.Input,D.TouchMove,D.MediaInteraction,D.Drag,D.Selection]);function HS(t){return t.type===j.IncrementalSnapshot&&jS.has(t.data.source)}var we=function(t){this._mixpanel=t.mixpanelInstance,this._onIdleTimeout=t.onIdleTimeout||Ot,this._onMaxLengthReached=t.onMaxLengthReached||Ot,this._onBatchSent=t.onBatchSent||Ot,this._rrwebRecord=t.rrwebRecord||null,this._stopRecording=null,this.replayId=t.replayId,this.batchStartUrl=t.batchStartUrl||null,this.replayStartUrl=t.replayStartUrl||null,this.idleExpires=t.idleExpires||null,this.maxExpires=t.maxExpires||null,this.replayStartTime=t.replayStartTime||null,this.lastEventTimestamp=t.lastEventTimestamp||null,this.seqNo=t.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=pn,this.recordMinMs=0;var n=gn(t.sharedLockStorage||Qi(),!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new Ue(Fa,Uh,Ba),this.batcher=new Be(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:VS,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:t.sharedLockStorage,usePersistence:n,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:pS,sharedLockTimeoutMS:10*1e3})};we.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var t={distinct_id:String(this._mixpanel.get_distinct_id())},n=this._mixpanel.get_property("$device_id");n&&(t.$device_id=n);var i=this._mixpanel.get_property("$user_id");return i&&(t.$user_id=i),t},we.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init().catch(function(){this.reportError("Error initializing IndexedDB storage for unloading persisted data.")}.bind(this)).then(function(){return this.getDurationMs()<this._getRecordMinMs()?this.queueStorage.removeItem(this.batcherKey):this.batcher.flush().then(function(){return this.queueStorage.removeItem(this.batcherKey)}.bind(this))}.bind(this))},we.prototype.getConfig=function(t){return this._mixpanel.get_config(t)},we.prototype.get_config=function(t){return this.getConfig(t)},we.prototype.startRecording=function(t){if(this._rrwebRecord===null){this.reportError("rrweb record function not provided. ");return}if(this._stopRecording!==null){Vt.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>pn&&(this.recordMaxMs=pn,Vt.critical("record_max_ms cannot be greater than "+pn+"ms. Capping value.")),this.maxExpires||(this.maxExpires=new Date().getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=h.info.currentUrl(),this.replayStartUrl=h.info.currentUrl()),t||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var n=function(){clearTimeout(this.idleTimeoutId);var c=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,c),this.idleExpires=new Date().getTime()+c}.bind(this);n();var i=this.getConfig("record_block_selector");(i===""||i===null)&&(i=void 0);var e=PS(this._mixpanel),r=[];if(this.getConfig("record_network")){var s=this.getConfig("record_network_options")||{},o=(s.ignoreRequestUrls||[]).slice();o.push(this._getApiRoute()),s.ignoreRequestUrls=o,r.push(WS(s))}this.getConfig("record_console")&&r.push(Wb({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}}));var a=Hh(this.getConfig("record_allowed_iframe_origins"),Vt);try{this._stopRecording=this._rrwebRecord({emit:function(c){if(this.idleExpires&&this.idleExpires<c.timestamp){this._onIdleTimeout();return}HS(c)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),n()),this.__enqueuePromise=this.batcher.enqueue(c),(this.lastEventTimestamp===null||c.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=c.timestamp)}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:i,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn($S,e),maskTextFn:this._getMaskFn(NS,e),recordCrossOriginIframes:a.length>0,allowedIframeOrigins:a,recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:r})}catch(c){this.reportError("Unexpected error when starting rrweb recording.",c)}if(typeof this._stopRecording!="function"){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var u=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),u)},we.prototype.stopRecording=function(t){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(i){this.reportError("Error with rrweb stopRecording",i)}this._stopRecording=null}var n;return this.batcher.stopped?n=this.batcher.clear():t||(n=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),n},we.prototype.isRrwebStopped=function(){return this._stopRecording===null},we.prototype.flushEventsWithOptOut=function(t,n,i){var e=function(r){r===0&&(this.stopRecording(),i({error:"Tracking has been opted out, stopping recording."}))}.bind(this);this._flushEvents(t,n,i,e)},we.prototype.serialize=function(){var t;try{t=this._mixpanel.get_tab_id()}catch(n){this.reportError("Error getting tab ID for serialization ",n),t=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:t}},we.deserialize=function(t,n){var i=new we(h.extend({},n,{replayId:t.replayId,batchStartUrl:t.batchStartUrl,replayStartUrl:t.replayStartUrl,idleExpires:t.idleExpires,maxExpires:t.maxExpires,replayStartTime:t.replayStartTime,lastEventTimestamp:t.lastEventTimestamp,seqNo:t.seqNo,sharedLockStorage:n.sharedLockStorage}));return i},we.prototype._getApiRoute=function(){return this.getConfig("api_routes").record},we.prototype._sendRequest=function(t,n,i,e){var r=function(o,a){o.status===200&&this.replayId===t&&(this.seqNo++,this.batchStartUrl=h.info.currentUrl()),this._onBatchSent(),e({status:0,httpStatusCode:o.status,responseBody:a,retryAfter:o.headers.get("Retry-After")})}.bind(this),s=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");E.fetch(s+"/"+this._getApiRoute()+"?"+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(a){r(o,a)}).catch(function(a){e({error:a})})}).catch(function(o){e({error:o,httpStatusCode:0})})},we.prototype._flushEvents=xt(function(t,n,i){var e=t.length;if(e>0){for(var r=this.replayId,s=1/0,o=-1/0,a=!1,u=0;u<e;u++)s=Math.min(s,t[u].timestamp),o=Math.max(o,t[u].timestamp),t[u].type===j.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=s}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=s);var c=o-this.replayStartTime,l={$current_url:this.batchStartUrl,$lib_version:Pe.LIB_VERSION,batch_start_time:s/1e3,mp_lib:"web",replay_id:r,replay_length_ms:c,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},f=JSON.stringify(t);if(Object.assign(l,this.getUserIdInfo()),iS(Je,ut.vendor,vn)){var p=new Blob([f],{type:"application/json"}).stream(),g=p.pipeThrough(new GS("gzip"));new Response(g).blob().then(function(v){l.format="gzip",this._sendRequest(r,l,v,i)}.bind(this))}else l.format="body",this._sendRequest(r,l,f,i)}}),we.prototype.reportError=function(t,n){Vt.error.apply(Vt.error,arguments);try{!n&&!(t instanceof Error)&&(t=new Error(t)),this.getConfig("error_reporter")(t,n)}catch(i){Vt.error(i)}},we.prototype.getDurationMs=function(){return this.replayStartTime===null?0:this.lastEventTimestamp===null?new Date().getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},we.prototype._getRecordMinMs=function(){var t=this.getConfig("record_min_ms");return t>Ma?(Vt.critical("record_min_ms cannot be greater than "+Ma+"ms. Capping value."),Ma):t},we.prototype._getMaskFn=function(t,n){return function(i,e){if(!i.trim().length)return"";var r=!0;try{r=t(e,n)}catch(o){this.reportError("Error checking if text should be masked, defaulting to masked",o)}if(r){var s=Math.min(i.length,1e4);return"*".repeat(s)}else return i}.bind(this)};var lt=function(t){this.idb=new Ue(Fa,Ua,Ba),this.errorReporter=t.errorReporter,this.mixpanelInstance=t.mixpanelInstance,this.sharedLockStorage=t.sharedLockStorage};lt.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},lt.prototype.handleError=function(t){this.errorReporter("IndexedDB error: ",t)},lt.prototype.setActiveRecording=function(t){if(!this.isPersistenceEnabled())return F.resolve();var n=t.tabId;return n?this.idb.init().then(function(){return this.idb.setItem(n,t)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),F.resolve())},lt.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}.bind(this)).then(function(t){return Ga(t)?null:t}.bind(this)).catch(this.handleError.bind(this)):F.resolve(null)},lt.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},lt.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then(function(t){if(t)return t.maxExpires=0,this.setActiveRecording(t)}.bind(this)).catch(this.handleError.bind(this))},lt.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):F.resolve()},lt.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(t){var n=t.filter(function(i){return Ga(i)}).map(function(i){var e=we.deserialize(i,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return e.unloadPersistedData().then(function(){return this.idb.removeItem(i.tabId)}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return F.all(n)}.bind(this)).catch(this.handleError.bind(this)):F.resolve([])};var _n=Xe("recorder"),et=function(t,n,i){this.mixpanelInstance=t,this.rrwebRecord=n||wt,this.sharedLockStorage=i,this.recordingRegistry=new lt({mixpanelInstance:this.mixpanelInstance,errorReporter:_n.error,sharedLockStorage:i}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};et.prototype.startRecording=function(t){if(t=t||{},this.activeRecording&&!this.activeRecording.isRrwebStopped()){_n.log("Recording already in progress, skipping startRecording.");return}var n=function(){_n.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),i=function(){_n.log("Max recording length reached, stopping recording."),this.resetRecording()}.bind(this),e=function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}.bind(this),r={mixpanelInstance:this.mixpanelInstance,onBatchSent:e,onIdleTimeout:n,onMaxLengthReached:i,replayId:h.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return t.activeSerializedRecording?this.activeRecording=we.deserialize(t.activeSerializedRecording,r):this.activeRecording=new we(r),this.activeRecording.startRecording(t.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())},et.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then(function(){return this.recordingRegistry.clearActiveRecording()}.bind(this)).then(function(){this.stopRecordingInProgress=!1}.bind(this))},et.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},et.prototype._stopCurrentRecording=function(t,n){if(this.activeRecording){var i=this.activeRecording.stopRecording(t);return n&&(this.activeRecording=null),i}return F.resolve()},et.prototype.resumeRecording=function(t){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),F.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(n){return n&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:n}):t?this.startRecording({shouldStopBatcher:!1}):(_n.log("No resumable recording found."),null)}.bind(this))},et.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},et.prototype.isRecording=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()},et.prototype.getActiveReplayId=function(){return this.isRecording()?this.activeRecording.replayId:null},Object.defineProperty(et.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),E[Is]=et;var YS=30,KS=1e3,JS=4,XS=!1;function vp(){this.clicks=[]}vp.prototype.isRageClick=function(t,n){n=n||{};var i=n.threshold_px||YS,e=n.timeout_ms||KS,r=n.click_count||JS,s=n.interactive_elements_only||XS;if(s){var o=cp(t);if(!o||ap(o))return!1}var a=Date.now(),u=t.pageX,c=t.pageY,l=this.clicks[this.clicks.length-1];if(l&&a-l.timestamp<e&&Math.sqrt(Math.pow(u-l.x,2)+Math.pow(c-l.y,2))<i){if(this.clicks.push({x:u,y:c,timestamp:a}),this.clicks.length>=r)return this.clicks=[],!0}else this.clicks=[{x:u,y:c,timestamp:a}];return!1};function kr(t,n){this.changeCallback=t||function(){},this.observerConfig=n,this.observedShadowRoots=null,this.shadowObservers=[]}kr.prototype.getEventTarget=function(t){if(this.observedShadowRoots)return cp(t)},kr.prototype.observeFromEvent=function(t){if(this.observedShadowRoots)for(var n=up(t),i=0;i<n.length;i++){var e=n[i];e&&e.shadowRoot&&this.observeShadowRoot(e.shadowRoot)}},kr.prototype.observeShadowRoot=function(t){if(!(!this.observedShadowRoots||this.observedShadowRoots.has(t))){var n=this;try{this.observedShadowRoots.add(t);var i=new window.MutationObserver(function(){n.changeCallback()});i.observe(t,this.observerConfig),this.shadowObservers.push(i)}catch(e){re.critical("Error while observing shadow root",e)}}},kr.prototype.start=function(){if(!this.observedShadowRoots){if(!xS()){re.critical("Shadow DOM observation unavailable: WeakSet not supported");return}this.observedShadowRoots=new WeakSet}},kr.prototype.stop=function(){if(this.observedShadowRoots){for(var t=0;t<this.shadowObservers.length;t++)try{this.shadowObservers[t].disconnect()}catch(n){re.critical("Error while disconnecting shadow DOM observer",n)}this.shadowObservers=[],this.observedShadowRoots=null}};var ZS=500,QS=[yn,dS,ns,vS,gS],eC=[rs],tC=[Va],gp={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function tt(t){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=t,this.processingActive=!1,this.processingTimeout=null}tt.prototype.addClick=function(t){var n=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(t);return n||(n=t.target||t.srcElement),!n||ap(n)?!1:(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(t),this.pendingClicks.push({element:n,event:t,timestamp:Date.now()}),!0)},tt.prototype.trackClick=function(t,n){if(!this.isTracking)return!1;var i=this.addClick(t);return i&&this.triggerProcessing(n),i},tt.prototype.getDeadClicks=function(t){if(this.pendingClicks.length===0)return[];var n=t.timeout_ms,i=Date.now(),e=this.pendingClicks.slice();this.pendingClicks=[];for(var r=[],s=0;s<e.length;s++){var o=e[s];i-o.timestamp>=n?this.hasChangesAfter(o.timestamp)||r.push(o):this.pendingClicks.push(o)}return r},tt.prototype.hasChangesAfter=function(t){return this.lastChangeEventTimestamp>=t-100},tt.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},tt.prototype.triggerProcessing=function(t){this.processingActive||(this.processingActive=!0,this.processRecursively(t))},tt.prototype.processRecursively=function(t){if(!this.isTracking||!this.onDeadClickCallback){this.processingActive=!1;return}var n=t.timeout_ms,i=this;this.processingTimeout=setTimeout(function(){if(i.processingActive){for(var e=i.getDeadClicks(t),r=0;r<e.length;r++)i.onDeadClickCallback(e[r].event);i.pendingClicks.length>0?i.processRecursively(t):i.processingActive=!1}},n)},tt.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var t=this;QS.forEach(function(i){var e=function(){t.recordChangeEvent()};document.addEventListener(i,e,{capture:!0,passive:!0}),t.eventListeners.push({target:document,event:i,handler:e,options:{capture:!0,passive:!0}})}),tC.forEach(function(i){var e=function(){t.recordChangeEvent()};window.addEventListener(i,e),t.eventListeners.push({target:window,event:i,handler:e})}),eC.forEach(function(i){var e=function(){t.recordChangeEvent()};window.addEventListener(i,e,{passive:!0}),t.eventListeners.push({target:window,event:i,handler:e,options:{passive:!0}})});var n=function(){t.recordChangeEvent()};if(document.addEventListener("selectionchange",n),t.eventListeners.push({target:document,event:"selectionchange",handler:n}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){t.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,gp)}catch(i){re.critical("Error while setting up mutation observer",i)}if(window.customElements)try{this.shadowDOMObserver=new kr(function(){t.recordChangeEvent()},gp),this.shadowDOMObserver.start()}catch(i){re.critical("Error while setting up shadow DOM observer",i),this.shadowDOMObserver=null}}},tt.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var t=0;t<this.eventListeners.length;t++){var n=this.eventListeners[t];try{n.target.removeEventListener(n.event,n.handler,n.options)}catch(i){re.critical("Error while removing event listener",i)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(i){re.critical("Error while disconnecting mutation observer",i)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(i){re.critical("Error while stopping shadow DOM observer",i)}this.shadowDOMObserver=null}}};var mp="autocapture",rC="track_pageview",nu="full-url",nC="url-with-path-and-query-string",iC="url-with-path",sC="allow_element_callback",yp="allow_selectors",_p="allow_url_regexes",wp="block_attrs",bp="block_element_callback",Sp="block_selectors",Cp="block_url_regexes",Ep="capture_extra_attrs",Ip="capture_text_content",Op="scroll_capture_all",xp="scroll_depth_percent_checkpoints",cs="click",ls="dead_click",iu="input",kp="pageview",fs="rage_click",su="scroll",hs="page_leave",ou="submit",Ee={};Ee[yp]=[],Ee[_p]=[],Ee[wp]=[],Ee[bp]=null,Ee[Sp]=[],Ee[Cp]=[],Ee[Ep]=[],Ee[Ip]=!1,Ee[Op]=!1,Ee[xp]=[25,50,75,100],Ee[cs]=!0,Ee[ls]=!0,Ee[iu]=!0,Ee[kp]=nu,Ee[fs]=!0,Ee[su]=!0,Ee[hs]=!1,Ee[ou]=!0;var wn={$mp_autocapture:!0},Rp="$mp_click",Ap="$mp_dead_click",oC="$mp_input_change",Mp="$mp_rage_click",aC="$mp_scroll",uC="$mp_submit",cC="$mp_page_leave",be=function(t){this.mp=t,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};be.prototype.init=function(){if(!OS()){re.critical("Autocapture unavailable: missing required DOM APIs");return}this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking()},be.prototype.getFullConfig=function(){var t=this.mp.get_config(mp);return t?h.isObject(t)?h.extend({},Ee,t):Ee:{}},be.prototype.getConfig=function(t){return this.getFullConfig()[t]},be.prototype.currentUrlBlocked=function(){var t=h.info.currentUrl(),n=this.getConfig(_p)||[];if(n.length)try{return!es(t,n)}catch(e){return re.critical("Error while checking block URL regexes: ",e),!0}var i=this.getConfig(Cp)||[];if(!i||!i.length)return!1;try{return es(t,i)}catch(e){return re.critical("Error while checking block URL regexes: ",e),!0}},be.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(mp)?this.getConfig(kp):this.mp.get_config(rC)},be.prototype.trackDomEvent=function(t,n){if(!this.currentUrlBlocked()){var i=this.mp.is_recording_heatmap_data()&&(n===Rp&&!this.getConfig(cs)||n===Mp&&!this._getClickTrackingConfig(fs)||n===Ap&&!this._getClickTrackingConfig(ls)),e=ES(t,{allowElementCallback:this.getConfig(sC),allowSelectors:this.getConfig(yp),blockAttrs:this.getConfig(wp),blockElementCallback:this.getConfig(bp),blockSelectors:this.getConfig(Sp),captureExtraAttrs:this.getConfig(Ep),captureTextContent:this.getConfig(Ip),capturedForHeatMap:i});e&&(h.extend(e,wn),this.mp.track(n,e))}},be.prototype.initPageListeners=function(){if(E.removeEventListener(Kh,this.listenerPopstate),E.removeEventListener(Va,this.listenerHashchange),!(!this.pageviewTrackingConfig()&&!this.getConfig(hs)&&!this.mp.get_config("record_heatmap_data"))){this.listenerPopstate=function(){E.dispatchEvent(new Event(Rt))},this.listenerHashchange=function(){E.dispatchEvent(new Event(Rt))},E.addEventListener(Kh,this.listenerPopstate),E.addEventListener(Va,this.listenerHashchange);var t=E.history.pushState;typeof t=="function"&&(E.history.pushState=function(i,e,r){t.call(E.history,i,e,r),E.dispatchEvent(new Event(Rt))});var n=E.history.replaceState;typeof n=="function"&&(E.history.replaceState=function(i,e,r){n.call(E.history,i,e,r),E.dispatchEvent(new Event(Rt))})}},be.prototype._getClickTrackingConfig=function(t){var n=this.getConfig(t);return n?n===!0?{}:typeof n=="object"?n:{}:null},be.prototype._trackPageLeave=function(t,n,i){if(!this.hasTrackedScrollSession&&!(!this.getConfig(hs)&&!this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var e=Math.max(U.documentElement.clientHeight,E.innerHeight||0),r=Math.round(Math.max(this.maxScrollViewDepth-e,0)/(i-e)*100),s=Math.round(e/i*100);i<=e&&(r=100,s=100);var o=h.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:r,$fold_line_percentage:s,$scroll_height:i,$event_type:t.type,$current_url:n||h.info.currentUrl(),$viewportHeight:e,$viewportWidth:Math.max(U.documentElement.clientWidth,E.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},wn);this.mp.track(cC,o,{transport:"sendBeacon"})}},be.prototype._initScrollDepthTracking=function(){if(E.removeEventListener(ja,this.listenerScrollDepth),E.removeEventListener(rs,this.listenerScrollDepth),!!this.mp.get_config("record_heatmap_data")){re.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(U.documentElement.clientHeight,E.innerHeight||0);var t=function(){if(!this.currentUrlBlocked()){var i=Math.max(U.documentElement.clientHeight,E.innerHeight||0)+E.scrollY;i>this.maxScrollViewDepth&&(this.maxScrollViewDepth=i),this.previousScrollHeight=U.body.scrollHeight}}.bind(this),n=op(t);this.listenerScrollDepth=n.listener,E.addEventListener(n.eventType,this.listenerScrollDepth)}},be.prototype.initClickTracking=function(){E.removeEventListener(ct,this.listenerClick),!(!this.getConfig(cs)&&!this.mp.get_config("record_heatmap_data"))&&(re.log("Initializing click tracking"),this.listenerClick=function(t){!this.getConfig(cs)&&!this.mp.is_recording_heatmap_data()||this.trackDomEvent(t,Rp)}.bind(this),E.addEventListener(ct,this.listenerClick))},be.prototype.initDeadClickTracking=function(){var t=this._getClickTrackingConfig(ls);if(!t&&!this.mp.get_config("record_heatmap_data")){this.stopDeadClickTracking();return}re.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new tt(function(n){this.trackDomEvent(n,Ap)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(n){var i=this._getClickTrackingConfig(ls);if(!(!i&&!this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var e=i||{};e.timeout_ms||(e.timeout_ms=ZS),this._deadClickTracker.trackClick(n,e)}}.bind(this),E.addEventListener(ct,this.listenerDeadClick))},be.prototype.initInputTracking=function(){E.removeEventListener(yn,this.listenerChange),this.getConfig(iu)&&(re.log("Initializing input tracking"),this.listenerChange=function(t){this.getConfig(iu)&&this.trackDomEvent(t,oC)}.bind(this),E.addEventListener(yn,this.listenerChange))},be.prototype.initPageviewTracking=function(){if(E.removeEventListener(Rt,this.listenerLocationchange),!(!this.pageviewTrackingConfig()&&!this.mp.get_config("record_heatmap_data"))){re.log("Initializing pageview tracking");var t="",n=!1;(this.pageviewTrackingConfig()||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()&&(n=this.mp.track_pageview(wn)),n&&(t=h.info.currentUrl()),this.listenerLocationchange=Wt(function(){if(!this.currentUrlBlocked()){var i=h.info.currentUrl(),e=!1,r=i.split("#")[0].split("?")[0]!==t.split("#")[0].split("?")[0],s=this.pageviewTrackingConfig();if(!s&&this.mp.is_recording_heatmap_data()&&(s=nu),s===nu?e=i!==t:s===nC?e=i.split("#")[0]!==t.split("#")[0]:s===iC&&(e=r),e){var o=this.mp.track_pageview(wn);o&&(t=i),r&&(this.lastScrollCheckpoint=0,re.log("Path change: re-initializing scroll depth checkpoints"))}}}.bind(this)),E.addEventListener(Rt,this.listenerLocationchange)}},be.prototype.initRageClickTracking=function(){E.removeEventListener(ct,this.listenerRageClick);var t=this._getClickTrackingConfig(fs);!t&&!this.mp.get_config("record_heatmap_data")||(re.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new vp),this.listenerRageClick=function(n){var i=this._getClickTrackingConfig(fs);!i&&!this.mp.is_recording_heatmap_data()||this.currentUrlBlocked()||this._rageClickTracker.isRageClick(n,i)&&this.trackDomEvent(n,Mp)}.bind(this),E.addEventListener(ct,this.listenerRageClick))},be.prototype.initScrollTracking=function(){if(E.removeEventListener(rs,this.listenerScroll),E.removeEventListener(ja,this.listenerScroll),!!this.getConfig(su)){re.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var t=function(){if(this.getConfig(su)&&!this.currentUrlBlocked()){var i=this.getConfig(Op),e=(this.getConfig(xp)||[]).slice().sort(function(l,f){return l-f}),r=E.scrollY,s=h.extend({$scroll_top:r},wn);try{var o=U.body.scrollHeight,a=Math.round(r/(o-E.innerHeight)*100);if(s.$scroll_height=o,s.$scroll_percentage=a,a>this.lastScrollCheckpoint)for(var u=0;u<e.length;u++){var c=e[u];a>=c&&this.lastScrollCheckpoint<c&&(s.$scroll_checkpoint=c,this.lastScrollCheckpoint=c,i=!0)}}catch(l){re.critical("Error while calculating scroll percentage",l)}i&&this.mp.track(aC,s)}}.bind(this),n=op(t);this.listenerScroll=n.listener,E.addEventListener(n.eventType,this.listenerScroll)}},be.prototype.initSubmitTracking=function(){E.removeEventListener(ns,this.listenerSubmit),this.getConfig(ou)&&(re.log("Initializing submit tracking"),this.listenerSubmit=function(t){this.getConfig(ou)&&this.trackDomEvent(t,uC)}.bind(this),E.addEventListener(ns,this.listenerSubmit))},be.prototype.initPageLeaveTracking=function(){if(U.removeEventListener(Jh,this.listenerPageLeaveVisibilitychange),E.removeEventListener(Rt,this.listenerPageLeaveLocationchange),E.removeEventListener(Yh,this.listenerPageLoad),!(!this.getConfig(hs)&&!this.mp.get_config("record_heatmap_data"))){re.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var t=h.info.currentUrl();this.listenerPageLoad=function(){this.previousScrollHeight=U.body.scrollHeight}.bind(this),E.addEventListener(Yh,this.listenerPageLoad),this.listenerPageLeaveLocationchange=Wt(function(n){if(!this.currentUrlBlocked()){var i=h.info.currentUrl(),e=i!==t;e&&(this._trackPageLeave(n,t,this.previousScrollHeight),t=i,this.maxScrollViewDepth=Math.max(U.documentElement.clientHeight,E.innerHeight||0),this.previousScrollHeight=U.body.scrollHeight,this.hasTrackedScrollSession=!1)}}.bind(this)),E.addEventListener(Rt,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=function(n){U.hidden&&this._trackPageLeave(n,t,this.previousScrollHeight)}.bind(this),U.addEventListener(Jh,this.listenerPageLeaveVisibilitychange)}},be.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(E.removeEventListener(ct,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},$a(be);var Tp=function(t,n){return E[Ve]&&typeof E[Ve].then=="function"||(E[Ve]=new Promise(function(i){t(n,i)}).then(function(){var i=E[Ve];if(i&&typeof i.then=="function")return i;throw new Error("targeting failed to load")}).catch(function(i){throw delete E[Ve],i})),E[Ve]},We=Xe("flags"),lC="mixpanelFlagsDb",Pp="mixpanelFlags",fC={version:1,storeNames:[Pp]},hC="persisted_variants_for_",$p=1440*60*1e3,At=Object.freeze({NETWORK_ONLY:"networkOnly",NETWORK_FIRST:"networkFirst",PERSISTENCE_UNTIL_NETWORK_SUCCESS:"persistenceUntilNetworkSuccess"}),pC=[At.NETWORK_ONLY,At.NETWORK_FIRST,At.PERSISTENCE_UNTIL_NETWORK_SUCCESS],jt=function(t,n,i){this.idb=new Ue(lC,Pp,fC),this.persistenceConfig=t,this.persistedVariantsKey=hC+n,this.isGloballyDisabled=i||function(){return!1}};jt.prototype.getPolicy=function(){return this.isGloballyDisabled()||!this._isConfigValid()?At.NETWORK_ONLY:this.persistenceConfig.variantLookupPolicy},jt.prototype.getTtlMs=function(){if(!this._isConfigValid())return $p;var t=this.persistenceConfig.persistenceTtlMs;return t==null?$p:t},jt.prototype._isConfigValid=function(){var t=this.persistenceConfig;return t?pC.indexOf(t.variantLookupPolicy)===-1?(We.error("Invalid variantLookupPolicy:",t.variantLookupPolicy),!1):t.persistenceTtlMs!==void 0&&t.persistenceTtlMs!==null&&t.persistenceTtlMs<=0?(We.error("If provided, persistenceTtlMs must be a positive number. Provided value:",t.persistenceTtlMs),!1):!0:!1},jt.prototype.loadFlagsFromStorage=function(t){var n=h.bind(function(){return this.clear().then(function(){return null}).catch(function(){return null})},this);if(this.getPolicy()===At.NETWORK_ONLY)return n();var i=this.getTtlMs();return this.idb.init().then(h.bind(function(){return this.idb.getItem(this.persistedVariantsKey)},this)).then(h.bind(function(e){if(!e)return We.log("No persisted variants found in IndexedDB"),null;if(i&&Date.now()-e.persistedAt>=i)return We.log("Persisted variants are expiring"),null;if(!t||e.distinctId!==t.distinct_id)return We.log("Persisted variants found, but for a different distinct_id so clearing."),n();var r=new Map;return h.each(e.flagVariants,function(s,o){r.set(o,{key:s.variant_key,value:s.variant_value,experiment_id:s.experiment_id,is_experiment_active:s.is_experiment_active,is_qa_tester:s.is_qa_tester,variant_source:"persistence",persisted_at_in_ms:e.persistedAt,ttl_in_ms:i})}),We.log("Loaded",r.size,"variants from IndexedDB for distinct_id",e.distinctId),{flags:r,pendingFirstTimeEvents:e.pendingFirstTimeEvents||{},persistedAtMs:e.persistedAt,ttlMs:i}},this)).catch(h.bind(function(e){return We.error("Failed to load persisted variants from IndexedDB, so clearing",e),n()},this))},jt.prototype.save=function(t,n,i){if(this.getPolicy()===At.NETWORK_ONLY)return Promise.resolve();var e={};n.forEach(function(s,o){e[o]={variant_key:s.key,variant_value:s.value,experiment_id:s.experiment_id,is_experiment_active:s.is_experiment_active,is_qa_tester:s.is_qa_tester}});var r={persistedAt:Date.now(),distinctId:t&&t.distinct_id,context:t,flagVariants:e,pendingFirstTimeEvents:i||{}};return this.idb.init().then(h.bind(function(){return this.idb.setItem(this.persistedVariantsKey,r)},this)).then(function(){We.log("Saved",n.size,"variants to IndexedDB for distinct_id",r.distinctId)}).catch(function(s){We.error("Failed to persist variants to IndexedDB:",s)})},jt.prototype.clear=function(){return this.isGloballyDisabled()?Promise.resolve():this.idb.init().then(h.bind(function(){return this.idb.removeItem(this.persistedVariantsKey)},this)).then(function(){We.log("Cleared persisted variants from IndexedDB")}).catch(function(t){We.error("Failed to clear persisted variants from IndexedDB:",t)})};var ee=Xe("flags"),ps="flags",ds="context",dC="persistence",au={};au[ds]={};var vC=function(t,n){return t+":"+n},gC=function(t){return t.split(":")[0]},Ht=function(t){return h.isObject(t)?h.extend({},t,{variant_source:"fallback"}):{value:t,variant_source:"fallback"}},R=function(t){this.fetch=E.fetch,this.getFullApiRoute=t.getFullApiRoute,this.getMpConfig=t.getConfigFunc,this.setMpConfig=t.setConfigFunc,this.getMpProperty=t.getPropertyFunc,this.track=t.trackingFunc,this.loadExtraBundle=t.loadExtraBundle||function(){},this.targetingSrc=t.targetingSrc||""};R.prototype.init=function(){if(!this.minApisSupported()){ee.critical("Feature Flags unavailable: missing minimum required APIs");return}return this.flags=null,this.trackedFeatures=new Set,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={},this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this.persistence=new jt(this.getConfig(dC),this.getMpConfig("token"),h.bind(function(){return this.getMpConfig("disable_persistence")},this)),this.persistenceLoadedPromise=this.persistence.loadFlagsFromStorage(this._buildContext()).then(h.bind(function(t){t&&(this.flags=t.flags,this.pendingFirstTimeEvents=t.pendingFirstTimeEvents,this._loadedPersistedAtMs=t.persistedAtMs,this._loadedTtlMs=t.ttlMs)},this)),this.persistenceLoadedPromise.then(h.bind(function(){return this.fetchFlags()},this)).catch(function(){ee.error("Error initializing feature flags")})},R.prototype._buildContext=function(){return h.extend({distinct_id:this.getMpProperty("distinct_id"),device_id:this.getMpProperty("$device_id")},this.getConfig(ds))},R.prototype.reset=function(){return this.persistence?(this.flags=null,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={},this.trackedFeatures=new Set,this.fetchPromise=null,this._fetchInProgressStartTime=null,this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this.persistence.clear().then(h.bind(function(){return this.fetchFlags()},this)).catch(function(){ee.error("Error during flags reset")})):Promise.resolve()},R.prototype.getFullConfig=function(){var t=this.getMpConfig(ps);return t?h.isObject(t)?h.extend({},au,t):au:{}},R.prototype.getConfig=function(t){return this.getFullConfig()[t]},R.prototype.isSystemEnabled=function(){return!!this.getMpConfig(ps)},R.prototype.updateContext=function(t,n){if(!this.isSystemEnabled())return ee.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var i=this.getMpConfig(ps);h.isObject(i)||(i={});var e=n&&n.replace?{}:this.getConfig(ds);i[ds]=h.extend({},e,t);var r={};return r[ps]=i,this.setMpConfig(r),this.fetchFlags().catch(function(){ee.error("Error fetching flags during updateContext")})},R.prototype.areFlagsReady=function(){return this.isSystemEnabled()||ee.error("Feature Flags not enabled"),!!this.flags},R.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var t=this._buildContext(),n=t.distinct_id,i=Dh();ee.log("Fetching flags for distinct ID: "+n);var e=new URLSearchParams;e.set("context",JSON.stringify(t)),e.set("token",this.getMpConfig("token")),e.set("mp_lib","web"),e.set("$lib_version",Pe.LIB_VERSION);var r=this.getFullApiRoute()+"?"+e.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(E,r,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:i}}).then(function(s){return this.markFetchComplete(),s.json()}.bind(this)).then(function(s){var o=s.flags;if(!o)throw new Error("No flags in API response");var a=new Map,u={};h.each(o,function(l,f){var p=!1,g=f+":";if(h.each(this.activatedFirstTimeEvents,function(y,d){d.startsWith(g)&&(p=!0)}),p){var v=this.flags&&this.flags.get(f);v&&a.set(f,v)}else a.set(f,{key:l.variant_key,value:l.variant_value,experiment_id:l.experiment_id,is_experiment_active:l.is_experiment_active,is_qa_tester:l.is_qa_tester,variant_source:"network"})},this);var c=s.pending_first_time_events;c&&c.length>0&&h.each(c,function(l){var f=l.flag_key,p=vC(f,l.first_time_event_hash);this.activatedFirstTimeEvents[p]||(u[p]={flag_key:f,flag_id:l.flag_id,project_id:l.project_id,first_time_event_hash:l.first_time_event_hash,event_name:l.event_name,property_filters:l.property_filters,pending_variant:l.pending_variant})},this),this.activatedFirstTimeEvents&&h.each(this.activatedFirstTimeEvents,function(l,f){var p=gC(f);l&&!a.has(p)&&this.flags&&this.flags.has(p)&&a.set(p,this.flags.get(p))},this),this.flags=a,this.trackedFeatures=new Set,this.pendingFirstTimeEvents=u,this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this._traceparent=i,this._loadTargetingIfNeeded(),this.persistence.save(t,this.flags,this.pendingFirstTimeEvents)}.bind(this)).catch(function(s){throw this._fetchInProgressStartTime&&this.markFetchComplete(),ee.error(s),s}.bind(this)),this.fetchPromise},R.prototype.loadFlags=function(){return this.isSystemEnabled()?this.trackedFeatures?this._fetchInProgressStartTime?this.fetchPromise:this.fetchFlags():(ee.error("loadFlags called before init"),Promise.resolve()):Promise.resolve()},R.prototype.markFetchComplete=function(){if(!this._fetchInProgressStartTime){ee.error("Fetch in progress started time not set, cannot mark fetch complete");return}this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null},R.prototype._loadTargetingIfNeeded=function(){var t=!1;h.each(this.pendingFirstTimeEvents,function(n){n.property_filters&&!h.isEmptyObject(n.property_filters)&&(t=!0)}),t&&this.getTargeting().then(function(){ee.log("targeting loaded for property filter evaluation")})},R.prototype.getTargeting=function(){return Tp(this.loadExtraBundle.bind(this),this.targetingSrc).catch(function(t){ee.error("Failed to load targeting: "+t)}.bind(this))},R.prototype.checkFirstTimeEvents=function(t,n){!this.pendingFirstTimeEvents||h.isEmptyObject(this.pendingFirstTimeEvents)||(E[Ve]&&h.isFunction(E[Ve].then)?E[Ve].then(function(i){this._processFirstTimeEventCheck(t,n,i)}.bind(this)).catch(function(){this._processFirstTimeEventCheck(t,n,null)}.bind(this)):this._processFirstTimeEventCheck(t,n,null))},R.prototype._processFirstTimeEventCheck=function(t,n,i){h.each(this.pendingFirstTimeEvents,function(e,r){if(!this.activatedFirstTimeEvents[r]){var s=e.flag_key,o;if(!i&&e.property_filters&&!h.isEmptyObject(e.property_filters)){ee.warn('Skipping event check for "'+s+'" - property filters require targeting library');return}if(!i)o={matches:t===e.event_name,error:null};else{var a={event_name:e.event_name,property_filters:e.property_filters};o=i.eventMatchesCriteria(t,n,a)}if(o.error){ee.error('Error checking first-time event for flag "'+s+'": '+o.error);return}if(o.matches){ee.log('First-time event matched for flag "'+s+'": '+t);var u={key:e.pending_variant.variant_key,value:e.pending_variant.variant_value,experiment_id:e.pending_variant.experiment_id,is_experiment_active:e.pending_variant.is_experiment_active};this.flags.set(s,u),this.trackedFeatures.delete(s),this.activatedFirstTimeEvents[r]=!0,this.recordFirstTimeEvent(e.flag_id,e.project_id,e.first_time_event_hash)}}},this)},R.prototype.getFirstTimeEventApiRoute=function(t){return this.getFullApiRoute()+"/"+t+"/first-time-events"},R.prototype.recordFirstTimeEvent=function(t,n,i){var e=this.getMpProperty("distinct_id"),r=Dh(),s=new URLSearchParams;s.set("mp_lib","web"),s.set("$lib_version",Pe.LIB_VERSION);var o=this.getFirstTimeEventApiRoute(t)+"?"+s.toString(),a={distinct_id:e,project_id:n,first_time_event_hash:i};ee.log("Recording first-time event for flag: "+t),this.fetch.call(E,o,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:r},body:JSON.stringify(a)}).catch(function(u){ee.error("Failed to record first-time event for flag "+t+": "+u)})},R.prototype.getVariant=function(t,n){if(!this.persistenceLoadedPromise)return new Promise(function(e){ee.critical("Feature Flags not initialized"),e(Ht(n))});var i=this.persistence.getPolicy();return this.persistenceLoadedPromise.then(h.bind(function(){if(i===At.PERSISTENCE_UNTIL_NETWORK_SUCCESS)return this.areFlagsReady()&&!this._loadedPersistenceIsStale()?this.getVariantSync(t,n):this.fetchPromise?this.fetchPromise.then(h.bind(function(){return this.getVariantSync(t,n)},this)).catch(function(r){return ee.error(r),Ht(n)}):Ht(n);var e=h.bind(function(){return this.getVariantSync(t,n)},this);return this.fetchPromise?this.fetchPromise.then(e).catch(e):Ht(n)},this))},R.prototype._loadedPersistenceIsStale=function(){return!this._loadedPersistedAtMs||!this._loadedTtlMs?!1:Date.now()-this._loadedPersistedAtMs>=this._loadedTtlMs},R.prototype.getVariantSync=function(t,n){if(this._loadedPersistenceIsStale())return ee.log('Loaded persisted variants are past TTL so returning fallback for "'+t+'"'),Ht(n);if(!this.areFlagsReady())return ee.log("Flags not loaded yet"),Ht(n);var i=this.flags.get(t);return i?(this.trackFeatureCheck(t,i),i):(ee.log('No flag found: "'+t+'"'),Ht(n))},R.prototype.getAllVariants=function(){if(!this.persistenceLoadedPromise)return ee.critical("Feature Flags not initialized"),Promise.resolve(new Map);var t=this.persistence.getPolicy();return this.persistenceLoadedPromise.then(h.bind(function(){if(t===At.PERSISTENCE_UNTIL_NETWORK_SUCCESS)return this.areFlagsReady()&&!this._loadedPersistenceIsStale()?this.getAllVariantsSync():this.fetchPromise?this.fetchPromise.then(h.bind(function(){return this.getAllVariantsSync()},this)).catch(function(i){return ee.error(i),new Map}):new Map;var n=h.bind(this.getAllVariantsSync,this);return this.fetchPromise?this.fetchPromise.then(n).catch(n):new Map},this))},R.prototype.getAllVariantsSync=function(){return this._loadedPersistenceIsStale()?(ee.log("Loaded persisted variants are past TTL so returning empty Map"),new Map):this.flags||new Map},R.prototype.getVariantValue=function(t,n){return this.getVariant(t,{value:n}).then(function(i){return i.value}).catch(function(i){return ee.error(i),n})},R.prototype.getFeatureData=function(t,n){return ee.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(t,n)},R.prototype.getVariantValueSync=function(t,n){return this.getVariantSync(t,{value:n}).value},R.prototype.isEnabled=function(t,n){return this.getVariantValue(t).then(function(){return this.isEnabledSync(t,n)}.bind(this)).catch(function(i){return ee.error(i),n})},R.prototype.isEnabledSync=function(t,n){n=n||!1;var i=this.getVariantValueSync(t,n);return i!==!0&&i!==!1&&(ee.error('Feature flag "'+t+'" value: '+i+" is not a boolean; returning fallback value: "+n),i=n),i};function Mt(t){return t!=null}R.prototype.trackFeatureCheck=function(t,n){if(!this.trackedFeatures.has(t)){this.trackedFeatures.add(t);var i={"Experiment name":t,"Variant name":n.key,$experiment_type:"feature_flag","Variant fetch start time":Mt(this._fetchStartTime)?new Date(this._fetchStartTime).toISOString():null,"Variant fetch complete time":Mt(this._fetchCompleteTime)?new Date(this._fetchCompleteTime).toISOString():null,"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};Mt(n.experiment_id)&&(i.$experiment_id=n.experiment_id),Mt(n.is_experiment_active)&&(i.$is_experiment_active=n.is_experiment_active),Mt(n.is_qa_tester)&&(i.$is_qa_tester=n.is_qa_tester),Mt(n.variant_source)&&(i.$variant_source=n.variant_source),Mt(n.persisted_at_in_ms)&&(i.$persisted_at_in_ms=n.persisted_at_in_ms),Mt(n.ttl_in_ms)&&(i.$ttl_in_ms=n.ttl_in_ms),this.track("$experiment_started",i)}},R.prototype.whenReady=function(){return this.fetchPromise?this.fetchPromise:Promise.resolve()},R.prototype.minApisSupported=function(){return!!this.fetch&&typeof Promise!="undefined"&&typeof Map!="undefined"&&typeof Set!="undefined"},$a(R),R.prototype.are_flags_ready=R.prototype.areFlagsReady,R.prototype.get_variant=R.prototype.getVariant,R.prototype.get_variant_sync=R.prototype.getVariantSync,R.prototype.get_all_variants=R.prototype.getAllVariants,R.prototype.get_all_variants_sync=R.prototype.getAllVariantsSync,R.prototype.get_variant_value=R.prototype.getVariantValue,R.prototype.get_variant_value_sync=R.prototype.getVariantValueSync,R.prototype.is_enabled=R.prototype.isEnabled,R.prototype.is_enabled_sync=R.prototype.isEnabledSync,R.prototype.load_flags=R.prototype.loadFlags,R.prototype.update_context=R.prototype.updateContext,R.prototype.when_ready=R.prototype.whenReady,R.prototype.get_feature_data=R.prototype.getFeatureData,R.prototype.getTargeting=R.prototype.getTargeting;var mC=Xe("recorder"),Np="mp_iframe_handshake_request",Lp="mp_iframe_handshake_response",Oe=function(t){this.mixpanelInstance=t.mixpanelInstance,this.getMpConfig=t.getConfigFunc,this.getTabId=t.getTabIdFunc,this.reportError=t.reportErrorFunc,this.getDistinctId=t.getDistinctIdFunc,this.loadExtraBundle=t.loadExtraBundle,this.recorderSrc=t.recorderSrc,this.targetingSrc=t.targetingSrc,this.libBasePath=t.libBasePath,this._recorder=null,this._parentReplayId=null,this._parentFrameRetryInterval=null};Oe.prototype.shouldLoadRecorder=function(){if(this.getMpConfig("disable_persistence"))return N.log("Load recorder check skipped due to disable_persistence config"),F.resolve(!1);var t=new Ue(Fa,Ua,Ba),n=this.getTabId();return t.init().then(function(){return t.getAll()}).then(function(i){for(var e=0;e<i.length;e++)if(Ga(i[e])||i[e].tabId===n)return!0;return!1}).catch(h.bind(function(i){return this.reportError("Error checking recording registry",i),!1},this))},Oe.prototype.checkAndStartSessionRecording=function(t,n){if(!E.MutationObserver)return N.critical("Browser does not support MutationObserver; skipping session recording"),F.resolve();var i=h.bind(function(a){return new F(h.bind(function(u){var c=Wt(h.bind(function(){this._recorder=this._recorder||new E[Is](this.mixpanelInstance),this._recorder.resumeRecording(a),u()},this));if(h.isUndefined(E[Is])){var l=this.recorderSrc||this.libBasePath+Zp;this.loadExtraBundle(l,c)}else c()},this))},this),e=Hh(this.getMpConfig("record_allowed_iframe_origins"),mC),r=e.length>0;if(r&&(this._setupParentFrameListener(e),E.parent!==E))return this._setupChildFrameListener(e,i),this._sendParentFrameRequestWithRetry(e),F.resolve();var s=h.isUndefined(n)?this.getMpConfig("record_sessions_percent"):n,o=s>0&&Math.random()*100<=s;return t||o?i(!0):this.shouldLoadRecorder().then(h.bind(function(a){return a?i(!1):F.resolve()},this))},Oe.prototype.isRecording=function(){if(!this._recorder||!h.isFunction(this._recorder.isRecording))return!1;try{return this._recorder.isRecording()}catch(t){return this.reportError("Error checking if recording is active",t),!1}},Oe.prototype.startRecordingOnEvent=function(t,n){var i=this.isRecording(),e=this.getMpConfig("recording_event_triggers");if(!i&&e){var r=e[t];if(r&&typeof r.percentage=="number"){var s=r.percentage,o=r.property_filters;if(o&&!h.isEmptyObject(o)){var a=this.targetingSrc||this.libBasePath+Cu;Tp(this.loadExtraBundle,a).then(function(u){try{var c=u.eventMatchesCriteria(t,n,{event_name:t,property_filters:o});c.matches&&this.checkAndStartSessionRecording(!1,s)}catch(l){N.critical("Could not parse recording event trigger properties logic:",l)}}.bind(this)).catch(function(u){N.critical("Failed to load targeting library:",u)})}else this.checkAndStartSessionRecording(!1,s)}}},Oe.prototype.stopSessionRecording=function(){return this._recorder?this._recorder.stopRecording():F.resolve()},Oe.prototype.pauseSessionRecording=function(){return this._recorder?this._recorder.pauseRecording():F.resolve()},Oe.prototype.resumeSessionRecording=function(){return this._recorder?this._recorder.resumeRecording():F.resolve()},Oe.prototype.isRecordingHeatmapData=function(){return this.getSessionReplayId()&&this.getMpConfig("record_heatmap_data")},Oe.prototype.getSessionRecordingProperties=function(){var t={},n=this.getSessionReplayId();return n&&(t.$mp_replay_id=n),t},Oe.prototype.getSessionReplayUrl=function(){var t=null,n=this.getSessionReplayId();if(n){var i=h.HTTPBuildQuery({replay_id:n,distinct_id:this.getDistinctId(),token:this.getMpConfig("token")});t="https://mixpanel.com/projects/replay-redirect?"+i}return t},Oe.prototype.getSessionReplayId=function(){if(this._parentReplayId)return this._parentReplayId;var t=null;return this._recorder&&(t=this._recorder.replayId),t||null},Oe.prototype.getRecorder=function(){return this._recorder},Oe.prototype._setupChildFrameListener=function(t,n){if(!this._childFrameMessageHandler){var i=this;this._childFrameMessageHandler=function(e){if(t.indexOf(e.origin)!==-1){var r=e.data;r&&r.type===Lp&&r.token===i.getMpConfig("token")&&r.replayId&&(i._parentReplayId=r.replayId,r.distinctId&&i.mixpanelInstance.identify(r.distinctId),i._parentFrameRetryActive=!1,E.removeEventListener("message",i._childFrameMessageHandler),i._childFrameMessageHandler=null,n(!0))}},E.addEventListener("message",this._childFrameMessageHandler)}},Oe.prototype._sendParentFrameRequest=function(t){var n={};n.type=Np,n.token=this.getMpConfig("token");for(var i=0;i<t.length;i++)try{E.parent.postMessage(n,t[i])}catch(e){}},Oe.prototype._sendParentFrameRequestWithRetry=function(t){var n=this,i=10,e=0,r=50;this._parentFrameRetryActive=!0,this._sendParentFrameRequest(t);function s(){setTimeout(function(){!n._parentFrameRetryActive||n._parentReplayId||++e>=i||(n._sendParentFrameRequest(t),r*=2,s())},r)}s()},Oe.prototype._setupParentFrameListener=function(t){if(!this._parentFrameMessageHandler){var n=this;this._parentFrameMessageHandler=function(i){if(t.indexOf(i.origin)!==-1){var e=i.data;if(e&&e.type===Np&&e.token===n.getMpConfig("token")){var r=n.getSessionReplayId();if(r){var s={};s.type=Lp,s.token=n.getMpConfig("token"),s.replayId=r,s.distinctId=n.getDistinctId(),i.source.postMessage(s,i.origin)}}}},E.addEventListener("message",this._parentFrameMessageHandler)}},$a(Oe);var ft=function(){};ft.prototype.create_properties=function(){},ft.prototype.event_handler=function(){},ft.prototype.after_track_handler=function(){},ft.prototype.init=function(t){return this.mp=t,this},ft.prototype.track=function(t,n,i,e){var r=this,s=h.dom_query(t);if(s.length===0){N.error("The DOM query ("+t+") returned 0 elements");return}return h.each(s,function(o){h.register_event(o,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(e,c,u,!0),l),r.mp.track(n,c,r.track_callback(e,c,u))})},this),!0},ft.prototype.track_callback=function(t,n,i,e){e=e||!1;var r=this;return function(){i.callback_fired||(i.callback_fired=!0,!(t&&t(e,n)===!1)&&r.after_track_handler(n,i,e))}},ft.prototype.create_properties=function(t,n){var i;return typeof t=="function"?i=t(n):i=h.extend({},t),i};var Rr=function(){this.override_event="click"};h.inherit(Rr,ft),Rr.prototype.create_properties=function(t,n){var i=Rr.superclass.create_properties.apply(this,arguments);return n.href&&(i.url=n.href),i},Rr.prototype.event_handler=function(t,n,i){i.new_tab=t.which===2||t.metaKey||t.ctrlKey||n.target==="_blank",i.href=n.href,i.new_tab||t.preventDefault()},Rr.prototype.after_track_handler=function(t,n){n.new_tab||setTimeout(function(){window.location=n.href},0)};var vs=function(){this.override_event="submit"};h.inherit(vs,ft),vs.prototype.event_handler=function(t,n,i){i.element=n,t.preventDefault()},vs.prototype.after_track_handler=function(t,n){setTimeout(function(){n.element.submit()},0)};var Tt="$set",Ar="$set_once",Ge="$unset",Yt="$add",rt="$append",Kt="$union",ht="$remove",yC="$delete",Dp={set_action:function(t,n){var i={},e={};return h.isObject(t)?h.each(t,function(r,s){this._is_reserved_property(s)||(e[s]=r)},this):e[t]=n,i[Tt]=e,i},unset_action:function(t){var n={},i=[];return h.isArray(t)||(t=[t]),h.each(t,function(e){this._is_reserved_property(e)||i.push(e)},this),n[Ge]=i,n},set_once_action:function(t,n){var i={},e={};return h.isObject(t)?h.each(t,function(r,s){this._is_reserved_property(s)||(e[s]=r)},this):e[t]=n,i[Ar]=e,i},union_action:function(t,n){var i={},e={};return h.isObject(t)?h.each(t,function(r,s){this._is_reserved_property(s)||(e[s]=h.isArray(r)?r:[r])},this):e[t]=h.isArray(n)?n:[n],i[Kt]=e,i},append_action:function(t,n){var i={},e={};return h.isObject(t)?h.each(t,function(r,s){this._is_reserved_property(s)||(e[s]=r)},this):e[t]=n,i[rt]=e,i},remove_action:function(t,n){var i={},e={};return h.isObject(t)?h.each(t,function(r,s){this._is_reserved_property(s)||(e[s]=r)},this):e[t]=n,i[ht]=e,i},delete_action:function(){var t={};return t[yC]="",t}},ue=function(){};h.extend(ue.prototype,Dp),ue.prototype._init=function(t,n,i){this._mixpanel=t,this._group_key=n,this._group_id=i},ue.prototype.set=Ir(function(t,n,i){var e=this.set_action(t,n);return h.isObject(t)&&(i=n),this._send_request(e,i)}),ue.prototype.set_once=Ir(function(t,n,i){var e=this.set_once_action(t,n);return h.isObject(t)&&(i=n),this._send_request(e,i)}),ue.prototype.unset=Ir(function(t,n){var i=this.unset_action(t);return this._send_request(i,n)}),ue.prototype.union=Ir(function(t,n,i){h.isObject(t)&&(i=n);var e=this.union_action(t,n);return this._send_request(e,i)}),ue.prototype.delete=Ir(function(t){var n=this.delete_action();return this._send_request(n,t)}),ue.prototype.remove=Ir(function(t,n,i){var e=this.remove_action(t,n);return this._send_request(e,i)}),ue.prototype._send_request=function(t,n){t.$group_key=this._group_key,t.$group_id=this._group_id,t.$token=this._get_config("token");var i=h.encodeDates(t);return this._mixpanel._track_or_batch({type:"groups",data:i,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},n)},ue.prototype._is_reserved_property=function(t){return t==="$group_key"||t==="$group_id"},ue.prototype._get_config=function(t){return this._mixpanel.get_config(t)},ue.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},ue.prototype.remove=ue.prototype.remove,ue.prototype.set=ue.prototype.set,ue.prototype.set_once=ue.prototype.set_once,ue.prototype.union=ue.prototype.union,ue.prototype.unset=ue.prototype.unset,ue.prototype.toString=ue.prototype.toString;var B=function(){};h.extend(B.prototype,Dp),B.prototype._init=function(t){this._mixpanel=t},B.prototype.set=kt(function(t,n,i){var e=this.set_action(t,n);return h.isObject(t)&&(i=n),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),e[Tt]=h.extend({},h.info.people_properties(),e[Tt]),this._send_request(e,i)}),B.prototype.set_once=kt(function(t,n,i){var e=this.set_once_action(t,n);return h.isObject(t)&&(i=n),this._send_request(e,i)}),B.prototype.unset=kt(function(t,n){var i=this.unset_action(t);return this._send_request(i,n)}),B.prototype.increment=kt(function(t,n,i){var e={},r={};return h.isObject(t)?(h.each(t,function(s,o){if(!this._is_reserved_property(o))if(isNaN(parseFloat(s))){N.error("Invalid increment value passed to mixpanel.people.increment - must be a number");return}else r[o]=s},this),i=n):(h.isUndefined(n)&&(n=1),r[t]=n),e[Yt]=r,this._send_request(e,i)}),B.prototype.append=kt(function(t,n,i){h.isObject(t)&&(i=n);var e=this.append_action(t,n);return this._send_request(e,i)}),B.prototype.remove=kt(function(t,n,i){h.isObject(t)&&(i=n);var e=this.remove_action(t,n);return this._send_request(e,i)}),B.prototype.union=kt(function(t,n,i){h.isObject(t)&&(i=n);var e=this.union_action(t,n);return this._send_request(e,i)}),B.prototype.track_charge=kt(function(){N.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),B.prototype.clear_charges=function(t){return this.set("$transactions",[],t)},B.prototype.delete_user=function(){if(!this._identify_called()){N.error("mixpanel.people.delete_user() requires you to call identify() first");return}var t={$delete:this._mixpanel.get_distinct_id()};return this._send_request(t)},B.prototype.toString=function(){return this._mixpanel.toString()+".people"},B.prototype._send_request=function(t,n){t.$token=this._get_config("token"),t.$distinct_id=this._mixpanel.get_distinct_id();var i=this._mixpanel.get_property("$device_id"),e=this._mixpanel.get_property("$user_id"),r=this._mixpanel.get_property("$had_persisted_distinct_id");i&&(t.$device_id=i),e&&(t.$user_id=e),r&&(t.$had_persisted_distinct_id=r);var s=h.encodeDates(t);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:s,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},n):(this._enqueue(t),h.isUndefined(n)||(this._get_config("verbose")?n({status:-1,error:null}):n(-1)),h.truncate(s,255))},B.prototype._get_config=function(t){return this._mixpanel.get_config(t)},B.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0},B.prototype._enqueue=function(t){Tt in t?this._mixpanel.persistence._add_to_people_queue(Tt,t):Ar in t?this._mixpanel.persistence._add_to_people_queue(Ar,t):Ge in t?this._mixpanel.persistence._add_to_people_queue(Ge,t):Yt in t?this._mixpanel.persistence._add_to_people_queue(Yt,t):rt in t?this._mixpanel.persistence._add_to_people_queue(rt,t):ht in t?this._mixpanel.persistence._add_to_people_queue(ht,t):Kt in t?this._mixpanel.persistence._add_to_people_queue(Kt,t):N.error("Invalid call to _enqueue():",t)},B.prototype._flush_one_queue=function(t,n,i,e){var r=this,s=h.extend({},this._mixpanel.persistence.load_queue(t)),o=s;!h.isUndefined(s)&&h.isObject(s)&&!h.isEmptyObject(s)&&(r._mixpanel.persistence._pop_from_people_queue(t,s),r._mixpanel.persistence.save(),e&&(o=e(s)),n.call(r,o,function(a,u){a===0&&r._mixpanel.persistence._add_to_people_queue(t,s),h.isUndefined(i)||i(a,u)}))},B.prototype._flush=function(t,n,i,e,r,s,o){var a=this;this._flush_one_queue(Tt,this.set,t),this._flush_one_queue(Ar,this.set_once,e),this._flush_one_queue(Ge,this.unset,s,function(d){return h.keys(d)}),this._flush_one_queue(Yt,this.increment,n),this._flush_one_queue(Kt,this.union,r);var u=this._mixpanel.persistence.load_queue(rt);if(!h.isUndefined(u)&&h.isArray(u)&&u.length)for(var c,l=function(d,m){d===0&&a._mixpanel.persistence._add_to_people_queue(rt,c),h.isUndefined(i)||i(d,m)},f=u.length-1;f>=0;f--)u=this._mixpanel.persistence.load_queue(rt),c=u.pop(),a._mixpanel.persistence.save(),h.isEmptyObject(c)||a.append(c,l);var p=this._mixpanel.persistence.load_queue(ht);if(!h.isUndefined(p)&&h.isArray(p)&&p.length)for(var g,v=function(d,m){d===0&&a._mixpanel.persistence._add_to_people_queue(ht,g),h.isUndefined(o)||o(d,m)},y=p.length-1;y>=0;y--)p=this._mixpanel.persistence.load_queue(ht),g=p.pop(),a._mixpanel.persistence.save(),h.isEmptyObject(g)||a.remove(g,v)},B.prototype._is_reserved_property=function(t){return t==="$distinct_id"||t==="$token"||t==="$device_id"||t==="$user_id"||t==="$had_persisted_distinct_id"},B.prototype.set=B.prototype.set,B.prototype.set_once=B.prototype.set_once,B.prototype.unset=B.prototype.unset,B.prototype.increment=B.prototype.increment,B.prototype.append=B.prototype.append,B.prototype.remove=B.prototype.remove,B.prototype.union=B.prototype.union,B.prototype.track_charge=B.prototype.track_charge,B.prototype.clear_charges=B.prototype.clear_charges,B.prototype.delete_user=B.prototype.delete_user,B.prototype.toString=B.prototype.toString;var uu="__mps",cu="__mpso",lu="__mpus",fu="__mpa",hu="__mpap",pu="__mpr",du="__mpu",Fp="$people_distinct_id",gs="__alias",bn="__timers",_C=[uu,cu,lu,fu,hu,pu,du,Fp,gs,bn],q=function(t){this.props={},this.campaign_params_saved=!1,t.persistence_name?this.name="mp_"+t.persistence_name:this.name="mp_"+t.token+"_mixpanel";var n=t.persistence;n!=="cookie"&&n!=="localStorage"&&(N.critical("Unknown persistence type "+n+"; falling back to cookie"),n=t.persistence="cookie"),n==="localStorage"&&h.localStorage.is_supported()?this.storage=h.localStorage:this.storage=h.cookie,this.load(),this.update_config(t),this.upgrade(),this.save()};q.prototype.properties=function(){var t={};return this.load(),h.each(this.props,function(n,i){h.include(_C,i)||(t[i]=n)}),t},q.prototype.load=function(){if(!this.disabled){var t=this.storage.parse(this.name);t&&(this.props=h.extend({},t))}},q.prototype.upgrade=function(){var t,n;this.storage===h.localStorage?(t=h.cookie.parse(this.name),h.cookie.remove(this.name),h.cookie.remove(this.name,!0),t&&this.register_once(t)):this.storage===h.cookie&&(n=h.localStorage.parse(this.name),h.localStorage.remove(this.name),n&&this.register_once(n))},q.prototype.save=function(){this.disabled||this.storage.set(this.name,Er(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},q.prototype.load_prop=function(t){return this.load(),this.props[t]},q.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},q.prototype.clear=function(){this.remove(),this.props={}},q.prototype.register_once=function(t,n,i){return h.isObject(t)?(typeof n=="undefined"&&(n="None"),this.expire_days=typeof i=="undefined"?this.default_expiry:i,this.load(),h.each(t,function(e,r){(!this.props.hasOwnProperty(r)||this.props[r]===n)&&(this.props[r]=e)},this),this.save(),!0):!1},q.prototype.register=function(t,n){return h.isObject(t)?(this.expire_days=typeof n=="undefined"?this.default_expiry:n,this.load(),h.extend(this.props,t),this.save(),!0):!1},q.prototype.unregister=function(t){this.load(),t in this.props&&(delete this.props[t],this.save())},q.prototype.update_search_keyword=function(t){this.register(h.info.searchInfo(t))},q.prototype.update_referrer_info=function(t){this.register_once({$initial_referrer:t||"$direct",$initial_referring_domain:h.info.referringDomain(t)||"$direct"},"")},q.prototype.get_referrer_info=function(){return h.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},q.prototype.update_config=function(t){this.default_expiry=this.expire_days=t.cookie_expiration,this.set_disabled(t.disable_persistence),this.set_cookie_domain(t.cookie_domain),this.set_cross_site(t.cross_site_cookie),this.set_cross_subdomain(t.cross_subdomain_cookie),this.set_secure(t.secure_cookie)},q.prototype.set_disabled=function(t){this.disabled=t,this.disabled?this.remove():this.save()},q.prototype.set_cookie_domain=function(t){t!==this.cookie_domain&&(this.remove(),this.cookie_domain=t,this.save())},q.prototype.set_cross_site=function(t){t!==this.cross_site&&(this.cross_site=t,this.remove(),this.save())},q.prototype.set_cross_subdomain=function(t){t!==this.cross_subdomain&&(this.cross_subdomain=t,this.remove(),this.save())},q.prototype.get_cross_subdomain=function(){return this.cross_subdomain},q.prototype.set_secure=function(t){t!==this.secure&&(this.secure=!!t,this.remove(),this.save())},q.prototype._add_to_people_queue=function(t,n){var i=this._get_queue_key(t),e=n[t],r=this._get_or_create_queue(Tt),s=this._get_or_create_queue(Ar),o=this._get_or_create_queue(Ge),a=this._get_or_create_queue(Yt),u=this._get_or_create_queue(Kt),c=this._get_or_create_queue(ht,[]),l=this._get_or_create_queue(rt,[]);i===uu?(h.extend(r,e),this._pop_from_people_queue(Yt,e),this._pop_from_people_queue(Kt,e),this._pop_from_people_queue(Ge,e)):i===cu?(h.each(e,function(f,p){p in s||(s[p]=f)}),this._pop_from_people_queue(Ge,e)):i===lu?h.each(e,function(f){h.each([r,s,a,u],function(p){f in p&&delete p[f]}),h.each(l,function(p){f in p&&delete p[f]}),o[f]=!0}):i===fu?(h.each(e,function(f,p){p in r?r[p]+=f:(p in a||(a[p]=0),a[p]+=f)},this),this._pop_from_people_queue(Ge,e)):i===du?(h.each(e,function(f,p){h.isArray(f)&&(p in u||(u[p]=[]),h.each(f,function(g){h.include(u[p],g)||u[p].push(g)}))}),this._pop_from_people_queue(Ge,e)):i===pu?(c.push(e),this._pop_from_people_queue(rt,e)):i===hu&&(l.push(e),this._pop_from_people_queue(Ge,e)),N.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),N.log(n),this.save()},q.prototype._pop_from_people_queue=function(t,n){var i=this.props[this._get_queue_key(t)];h.isUndefined(i)||h.each(n,function(e,r){t===rt||t===ht?h.each(i,function(s){s[r]===e&&delete s[r]}):delete i[r]},this)},q.prototype.load_queue=function(t){return this.load_prop(this._get_queue_key(t))},q.prototype._get_queue_key=function(t){if(t===Tt)return uu;if(t===Ar)return cu;if(t===Ge)return lu;if(t===Yt)return fu;if(t===rt)return hu;if(t===ht)return pu;if(t===Kt)return du;N.error("Invalid queue:",t)},q.prototype._get_or_create_queue=function(t,n){var i=this._get_queue_key(t);return n=h.isUndefined(n)?{}:n,this.props[i]||(this.props[i]=n)},q.prototype.set_event_timer=function(t,n){var i=this.load_prop(bn)||{};i[t]=n,this.props[bn]=i,this.save()},q.prototype.remove_event_timer=function(t){var n=this.load_prop(bn)||{},i=n[t];return h.isUndefined(i)||(delete this.props[bn][t],this.save()),i};var ms,vu=function(t,n){throw new Error(t+" not available in this build.")},Se,Up=0,Bp=1,Le="mixpanel",zp="base64",wC="json",gu="$device:",bC="strict",SC="fallback",CC="disabled",Mr=E.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,qp=!Mr&&Je.indexOf("MSIE")===-1&&Je.indexOf("Mozilla")===-1,ys=null;ut.sendBeacon&&(ys=function(){return ut.sendBeacon.apply(ut,arguments)});var Wp={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},mu={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:Wp,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:zp,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Ot,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Ot,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_allowed_iframe_origins:[],record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,recording_event_triggers:{},record_idle_timeout_ms:1800*1e3,record_mask_inputs:!0,record_max_ms:pn,record_min_ms:0,record_network:!1,record_network_options:{},record_sessions_percent:0,recorder_src:null,targeting_src:null,lib_base_path:"https://cdn.mxpnl.com/libs/",remote_settings_mode:CC},Gp=!1,w=function(){},_s=function(t,n,i){var e,r=i===Le?Se:Se[i];if(r&&ms===Up)e=r;else{if(r&&!h.isArray(r)){N.error("You have already initialized "+i);return}e=new w}if(e._cached_groups={},e._init(t,n,i),e.people=new B,e.people._init(e),!e.get_config("skip_first_touch_marketing")){var s=h.info.campaignParams(null),o={},a=!1;h.each(s,function(c,l){o["initial_"+l]=c,c&&(a=!0)}),a&&e.people.set_once(o)}Pe.DEBUG=Pe.DEBUG||e.get_config("debug");var u=ms===Up?"module":"snippet";return E.dispatchEvent(new E.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:e,source:u,token:t,name:i,info:h.info}})),!h.isUndefined(r)&&h.isArray(r)&&(e._execute_array.call(e.people,r.people),e._execute_array(r)),e};w.prototype.init=function(t,n,i){if(h.isUndefined(i)){this.report_error("You must name your new library: init(token, config, name)");return}if(i===Le){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var e=_s(t,n,i);return Se[i]=e,e._loaded(),e},w.prototype._init=function(t,n,i){n=n||{},this.__loaded=!0,this.config={};var e={};if(!("api_payload_format"in n)){var r=n.api_host||mu.api_host;r.match(/\.mixpanel\.com/)&&(e.api_payload_format=wC)}if(this.hooks={},this.set_config(h.extend({},mu,e,n,{name:i,token:t,callback_fn:(i===Le?i:Le+"."+i)+"._jsc"})),this.recorderManager=new Oe({mixpanelInstance:this,getConfigFunc:h.bind(this.get_config,this),setConfigFunc:h.bind(this.set_config,this),getTabIdFunc:h.bind(this.get_tab_id,this),reportErrorFunc:h.bind(this.report_error,this),getDistinctIdFunc:h.bind(this.get_distinct_id,this),recorderSrc:this.get_config("recorder_src"),targetingSrc:this.get_config("targeting_src"),libBasePath:this.get_config("lib_base_path"),loadExtraBundle:vu}),this._jsc=Ot,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this._remote_settings_strict_disabled=!1,this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests){if(!h.localStorage.is_supported(!0)||!Mr)this._batch_requests=!1,N.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),h.each(this.get_batcher_configs(),function(u){N.log("Clearing batch queue "+u.queue_key),h.localStorage.remove(u.queue_key)});else if(this.init_batchers(),ys&&E.addEventListener){var s=h.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);E.addEventListener("pagehide",function(u){u.persisted&&s()}),E.addEventListener("visibilitychange",function(){U.visibilityState==="hidden"&&s()})}}this.persistence=this.cookie=new q(this.config),this.unpersisted_superprops={},this._gdpr_init();var o=h.UUID();this.get_distinct_id()||this.register_once({distinct_id:gu+o,$device_id:o},""),this.flags=new R({getFullApiRoute:h.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:h.bind(this.get_config,this),setConfigFunc:h.bind(this.set_config,this),getPropertyFunc:h.bind(this.get_property,this),trackingFunc:h.bind(this.track,this),loadExtraBundle:vu,targetingSrc:this.get_config("targeting_src")||this.get_config("lib_base_path")+Cu}),this.flags.init(),this.flags=this.flags,this._init_tab_id();var a=this.get_config("remote_settings_mode");a===bC||a===SC?this.__session_recording_init_promise=this._fetch_remote_settings(a).then(h.bind(function(){return this._check_and_start_session_recording()},this)):this.__session_recording_init_promise=this._check_and_start_session_recording(),this.autocapture=new be(this),this.autocapture.init()},w.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))N.log("Tab ID initialization skipped due to disable_persistence config");else if(h.sessionStorage.is_supported())try{var t=this.get_config("name")+"_"+this.get_config("token"),n="mp_tab_id_"+t,i="mp_gen_new_tab_id_"+t;(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(e){this.report_error("Error initializing tab id",e)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},w.prototype.get_tab_id=function(){return this.tab_id||null},w.prototype._check_and_start_session_recording=xt(function(t){return this.recorderManager.checkAndStartSessionRecording(t)}),w.prototype._start_recording_on_event=Wt(function(t,n){this.__session_recording_init_promise&&this.__session_recording_init_promise.then(h.bind(function(){if(!this._remote_settings_strict_disabled)return this.recorderManager.startRecordingOnEvent(t,n)},this))}),w.prototype.start_session_recording=function(){return this._check_and_start_session_recording(!0)},w.prototype.stop_session_recording=function(){return this.recorderManager.stopSessionRecording()},w.prototype.pause_session_recording=function(){return this.recorderManager.pauseSessionRecording()},w.prototype.resume_session_recording=function(){return this.recorderManager.resumeSessionRecording()},w.prototype.is_recording_heatmap_data=function(){return this.recorderManager.isRecordingHeatmapData()},w.prototype.get_session_recording_properties=function(){return this.recorderManager.getSessionRecordingProperties()},w.prototype.get_session_replay_url=function(){return this.recorderManager.getSessionReplayUrl()},w.prototype.__get_recorder=function(){return this.recorderManager.getRecorder()},w.prototype.__get_recording_init_promise=function(){return this.__session_recording_init_promise},w.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 t=h.info.campaignParams(null);h.each(t,function(n,i){this.unregister(i)}.bind(this))}},w.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(U.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(U.referrer)},w.prototype._dom_loaded=function(){h.each(this.__dom_loaded_queue,function(t){this._track_dom.apply(this,t)},this),this.has_opted_out_tracking()||h.each(this.__request_queue,function(t){this._send_request.apply(this,t)},this),delete this.__dom_loaded_queue,delete this.__request_queue},w.prototype._track_dom=function(t,n){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!Gp)return this.__dom_loaded_queue.push([t,n]),!1;var i=new t().init(this);return i.track.apply(i,n)},w.prototype._prepare_callback=function(t,n){if(h.isUndefined(t))return null;if(Mr){var i=function(o){t(o,n)};return i}else{var e=this._jsc,r=""+Math.floor(Math.random()*1e8),s=this.get_config("callback_fn")+"["+r+"]";return e[r]=function(o){delete e[r],t(o,n)},s}},w.prototype._send_request=function(t,n,i,e){var r=!0;if(qp)return this.__request_queue.push(arguments),r;var s={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},o=null;!e&&(h.isFunction(i)||typeof i=="string")&&(e=i,i=null),i=h.extend(s,i||{}),Mr||(i.method="GET");var a=i.method==="POST",u=ys&&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),Mr||(e?n.callback=e:(c||this.get_config("test"))&&(n.callback="(function(){})")),n.ip=this.get_config("ip")?1:0,n._=new Date().getTime().toString(),a&&(o="data="+encodeURIComponent(n.data),delete n.data),h.extend(n,this.get_config("api_extra_query_params")),t+="?"+h.HTTPBuildQuery(n);var l=this;if("img"in n){var f=U.createElement("img");f.src=t,U.body.appendChild(f)}else if(u){try{r=ys(t,o)}catch(m){l.report_error(m),r=!1}try{e&&e(r?1:0)}catch(m){l.report_error(m)}}else if(Mr)try{var p=new XMLHttpRequest;p.open(i.method,t,!0);var g=this.get_config("xhr_headers");if(a&&(g["Content-Type"]="application/x-www-form-urlencoded"),h.each(g,function(m,_){p.setRequestHeader(_,m)}),i.timeout_ms&&typeof p.timeout!="undefined"){p.timeout=i.timeout_ms;var v=new Date().getTime()}p.withCredentials=!0,p.onreadystatechange=function(){if(p.readyState===4)if(p.status===200){if(e)if(c){var m;try{m=h.JSONDecode(p.responseText)}catch(C){if(l.report_error(C),i.ignore_json_errors)m=p.responseText;else return}e(m)}else e(Number(p.responseText))}else{var _;if(p.timeout&&!p.status&&new Date().getTime()-v>=p.timeout?_="timeout":_="Bad HTTP status: "+p.status+" "+p.statusText,l.report_error(_),e)if(c){var b=p.responseHeaders||{};e({status:0,httpStatusCode:p.status,error:_,retryAfter:b["Retry-After"]})}else e(0)}},p.send(o)}catch(m){l.report_error(m),r=!1}else{var y=U.createElement("script");y.type="text/javascript",y.async=!0,y.defer=!0,y.src=t;var d=U.getElementsByTagName("script")[0];d.parentNode.insertBefore(y,d)}return r},w.prototype._fetch_remote_settings=function(t){var n=this,i=function(){t==="strict"&&(n.set_config({record_sessions_percent:0}),n._remote_settings_strict_disabled=!0)};if(!E.AbortController)return N.critical("Remote settings unavailable: missing minimum required APIs"),i(),Promise.resolve();var e=this.get_api_host("settings")+"/"+this.get_config("api_routes").settings,r={$lib_version:Pe.LIB_VERSION,mp_lib:"web",sdk_config:"1"},s=h.HTTPBuildQuery(r),o=e+"?"+s,a=new AbortController,u=setTimeout(function(){a.abort()},500),c={method:"GET",headers:{Authorization:"Basic "+btoa(n.get_config("token")+":")},signal:a.signal};return E.fetch(o,c).then(function(l){if(clearTimeout(u),!l.ok){N.critical("Network response was not ok"),i();return}return l.json()}).then(function(l){if(l&&l.sdk_config&&l.sdk_config.config){var f=l.sdk_config.config,p={};h.each(f,function(g,v){mu.hasOwnProperty(v)&&(p[v]=g)}),h.isEmptyObject(p)?(N.critical("No valid config keys found in remote settings."),i()):n.set_config(p)}else i()}).catch(function(l){clearTimeout(u),N.critical("Failed to fetch remote settings",l),i()})},w.prototype._execute_array=function(t){var n,i=[],e=[],r=[];h.each(t,function(o){o&&(n=o[0],h.isArray(n)?r.push(o):typeof o=="function"?o.call(this):h.isArray(o)&&n==="alias"?i.push(o):h.isArray(o)&&n.indexOf("track")!==-1&&typeof this[n]=="function"?r.push(o):e.push(o))},this);var s=function(o,a){h.each(o,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)};s(i,this),s(e,this),s(r,this)},w.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},w.prototype.get_batcher_configs=function(){var t="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:t+"_ev"},people:{type:"people",api_name:"engage",queue_key:t+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:t+"_gr"}},this._batcher_configs},w.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var t=h.bind(function(i){return new Be(i.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:h.bind(function(e,r,s){var o=this.get_config("api_routes");this._send_request(this.get_api_host(i.api_name)+"/"+o[i.api_name],this._encode_data_for_request(e),r,this._prepare_callback(s,e))},this),beforeSendHook:h.bind(function(e){var r=this._run_hook("before_send_"+i.type,e);return r?r[0]:null},this),stopAllBatchingFunc:h.bind(this.stop_batch_senders,this),usePersistence:!0})},this),n=this.get_batcher_configs();this.request_batchers={events:t(n.events),people:t(n.people),groups:t(n.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},w.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,h.each(this.request_batchers,function(t){t.start()}))},w.prototype.stop_batch_senders=function(){this._batch_requests=!1,h.each(this.request_batchers,function(t){t.stop(),t.clear()})},w.prototype.push=function(t){this._execute_array([t])},w.prototype.enable=function(t){var n,i,e,r;if(typeof t=="undefined")this._flags.disable_all_events=!1;else{for(n={},i=[],e=0;e<t.length;e++)n[t[e]]=!0;for(r=0;r<this.__disabled_events.length;r++)n[this.__disabled_events[r]]||i.push(this.__disabled_events[r]);this.__disabled_events=i}},w.prototype.disable=function(t){typeof t=="undefined"?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(t)},w.prototype._encode_data_for_request=function(t){var n=Er(t);return this.get_config("api_payload_format")===zp&&(n=h.base64Encode(n)),{data:n}},w.prototype._track_or_batch=function(t,n){var i=h.truncate(t.data,255),e=t.endpoint,r=t.batcher,s=t.should_send_immediately,o=t.send_request_options||{};n=n||Ot;var a=!0,u=h.bind(function(){return o.skip_hooks||(i=this._run_hook("before_send_"+t.type,i),i&&(i=i[0])),i?(N.log("MIXPANEL REQUEST:"),N.log(i),this._send_request(e,this._encode_data_for_request(i),o,this._prepare_callback(n,i))):null},this);return this._batch_requests&&!s?r.enqueue(i).then(function(c){c?n(1,i):u()}):a=u(),a&&i},w.prototype.track=xt(function(t,n,i,e){var r;if(!(i&&i.skip_hooks)){if(r=this._run_hook("before_track",t,n),r===null)return;t=r[0],n=r[1]}!e&&typeof i=="function"&&(e=i,i=null),i=i||{};var s=i.transport;s&&(i.transport=s);var o=i.send_immediately;if(typeof e!="function"&&(e=Ot),h.isUndefined(t)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(t)){e(0);return}n=h.extend({},n),n.token=this.get_config("token");var a=this.persistence.remove_event_timer(t);if(!h.isUndefined(a)){var u=new Date().getTime()-a;n.$duration=parseFloat((u/1e3).toFixed(3))}this._set_default_superprops();var c=this.get_config("track_marketing")?h.info.marketingParams():{};n=h.extend({},h.info.properties({mp_loader:this.get_config("mp_loader")}),c,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),n);var l=this.get_config("property_blacklist");h.isArray(l)?h.each(l,function(p){delete n[p]}):this.report_error("Invalid value for property_blacklist config: "+l),this._start_recording_on_event(t,n);var f={event:t,properties:n};return r=this._track_or_batch({type:"events",data:f,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:o,send_request_options:i},e),this.flags&&this.flags.checkFirstTimeEvents&&this.flags.checkFirstTimeEvents(t,n),r}),w.prototype.set_group=xt(function(t,n,i){h.isArray(n)||(n=[n]);var e={};return e[t]=n,this.register(e),this.people.set(t,n,i)}),w.prototype.add_group=xt(function(t,n,i){var e=this.get_property(t),r={};return e===void 0?(r[t]=[n],this.register(r)):e.indexOf(n)===-1&&(e.push(n),r[t]=e,this.register(r)),this.people.union(t,n,i)}),w.prototype.remove_group=xt(function(t,n,i){var e=this.get_property(t);if(e!==void 0){var r=e.indexOf(n);r>-1&&(e.splice(r,1),this.register({group_key:e})),e.length===0&&this.unregister(t)}return this.people.remove(t,n,i)}),w.prototype.track_with_groups=xt(function(t,n,i,e){var r=h.extend({},n||{});return h.each(i,function(s,o){s!=null&&(r[o]=s)}),this.track(t,r,e)}),w.prototype._create_map_key=function(t,n){return t+"_"+JSON.stringify(n)},w.prototype._remove_group_from_cache=function(t,n){delete this._cached_groups[this._create_map_key(t,n)]},w.prototype.get_group=function(t,n){var i=this._create_map_key(t,n),e=this._cached_groups[i];return(e===void 0||e._group_key!==t||e._group_id!==n)&&(e=new ue,e._init(this,t,n),this._cached_groups[i]=e),e},w.prototype.track_pageview=xt(function(t,n){typeof t!="object"&&(t={}),n=n||{};var i=n.event_name||"$mp_web_page_view",e=h.extend(h.info.mpPageViewProperties(),h.info.campaignParams(),h.info.clickParams()),r=h.extend({},e,t);return this.is_recording_heatmap_data()&&(r.$captured_for_heatmap=!0),this.track(i,r)}),w.prototype.track_links=function(){return this._track_dom.call(this,Rr,arguments)},w.prototype.track_forms=function(){return this._track_dom.call(this,vs,arguments)},w.prototype.time_event=function(t){if(h.isUndefined(t)){this.report_error("No event name provided to mixpanel.time_event");return}this._event_is_disabled(t)||this.persistence.set_event_timer(t,new Date().getTime())};var EC={persistent:!0},yu=function(t){var n;return h.isObject(t)?n=t:h.isUndefined(t)?n={}:n={days:t},h.extend({},EC,n)};w.prototype.register=function(t,n){var i=this._run_hook("before_register",t,n);if(i!==null){t=i[0],n=i[1];var e=yu(n);e.persistent?this.persistence.register(t,e.days):h.extend(this.unpersisted_superprops,t)}},w.prototype.register_once=function(t,n,i){var e=this._run_hook("before_register_once",t,n,i);if(e!==null){t=e[0],n=e[1],i=e[2];var r=yu(i);r.persistent?this.persistence.register_once(t,n,r.days):(typeof n=="undefined"&&(n="None"),h.each(t,function(s,o){(!this.unpersisted_superprops.hasOwnProperty(o)||this.unpersisted_superprops[o]===n)&&(this.unpersisted_superprops[o]=s)},this))}},w.prototype.unregister=function(t,n){var i=this._run_hook("before_unregister",t,n);i!==null&&(t=i[0],n=i[1],n=yu(n),n.persistent?this.persistence.unregister(t):delete this.unpersisted_superprops[t])},w.prototype._register_single=function(t,n){var i={};i[t]=n,this.register(i)},w.prototype.identify=function(t,n,i,e,r,s,o,a){var u=this._run_hook("before_identify",t);if(u===null)return-1;t=u[0];var c=this.get_distinct_id();if(t&&c!==t){if(typeof t=="string"&&t.indexOf(gu)===0)return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:t})}if(!this.get_property("$device_id")){var l=c;this.register_once({$had_persisted_distinct_id:!0,$device_id:l},"")}t!==c&&t!==this.get_property(gs)&&(this.unregister(gs),this.register({distinct_id:t})),this._flags.identify_called=!0,this.people._flush(n,i,e,r,s,o,a),t!==c&&this.track("$identify",{distinct_id:t,$anon_distinct_id:c},{skip_hooks:!0}),t!==c&&this.flags.fetchFlags().catch(function(){N.error("[flags] Error fetching flags during identify")})},w.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var t=h.UUID();this.register_once({distinct_id:gu+t,$device_id:t},""),this._check_and_start_session_recording(),this.flags.reset()},w.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},w.prototype.alias=function(t,n){if(t===this.get_property(Fp))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()),t!==n?(this._register_single(gs,t),this.track("$create_alias",{alias:t,distinct_id:n},{skip_hooks:!0},function(){i.identify(t)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(t),-1)},w.prototype.name_tag=function(t){this._register_single("mp_name_tag",t)},w.prototype.set_config=function(t){if(h.isObject(t)){h.extend(this.config,t);var n=t.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 t||"record_heatmap_data"in t)&&this.autocapture&&this.autocapture.init(),h.isObject(t.hooks)&&(this.hooks={},h.each(t.hooks,function(i,e){if(h.isFunction(i))this.hooks[e]=[i];else if(h.isArray(i)){this.hooks[e]=[];for(var r=0;r<i.length;r++)h.isFunction(i[r])||N.critical("Invalid hook added. Hook is not a function"),this.hooks[e].push(i[r])}else N.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this))}},w.prototype.get_config=function(t){return this.config[t]},w.prototype._run_hook=function(t){var n=It.call(arguments,1);return h.each(this.hooks[t],function(i){if(n===null)return null;var e=i.apply(this,n);typeof e=="undefined"?(this.report_error(t+" hook did not return a valid value"),n=null):(h.isArray(e)||(e=[e]),n.splice.apply(n,[0,e.length].concat(e)))},this),n},w.prototype.get_property=function(t){return this.persistence.load_prop([t])},w.prototype.get_api_host=function(t){return this.get_config("api_hosts")[t]||this.get_config("api_host")},w.prototype.toString=function(){var t=this.get_config("name");return t!==Le&&(t=Le+"."+t),t},w.prototype._event_is_disabled=function(t){return h.isBlockedUA(Je)||this._flags.disable_all_events||h.include(this.__disabled_events,t)},w.prototype._gdpr_init=function(){var t=this.get_config("opt_out_tracking_persistence_type")==="localStorage";t&&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")}))},w.prototype._gdpr_update_persistence=function(t){var n;if(t&&t.clear_persistence)n=!0;else if(t&&t.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()},w.prototype._gdpr_call_func=function(t,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"),t(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})},w.prototype.opt_in_tracking=function(t){t=h.extend({enable_persistence:!0},t),this._gdpr_call_func(oS,t),this._gdpr_update_persistence(t)},w.prototype.opt_out_tracking=function(t){t=h.extend({clear_persistence:!0,delete_user:!0},t),t.delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(aS,t),this._gdpr_update_persistence(t)},w.prototype.has_opted_in_tracking=function(t){return this._gdpr_call_func(uS,t)},w.prototype.has_opted_out_tracking=function(t){return this._gdpr_call_func(Bh,t)},w.prototype.clear_opt_in_out_tracking=function(t){t=h.extend({enable_persistence:!0},t),this._gdpr_call_func(cS,t),this._gdpr_update_persistence(t)},w.prototype.report_error=function(t,n){N.error.apply(N.error,arguments);try{!n&&!(t instanceof Error)&&(t=new Error(t)),this.get_config("error_reporter")(t,n)}catch(i){N.error(i)}},w.prototype.add_hook=function(t,n){this.hooks[t]||(this.hooks[t]=[]),this.hooks[t].push(n)},w.prototype.remove_hook=function(t,n){var i;this.hooks[t]&&(i=this.hooks[t].indexOf(n),i!==-1?this.hooks[t].splice(i,1):N.log("remove_hook failed. Matching hook was not found"))},w.prototype.init=w.prototype.init,w.prototype.reset=w.prototype.reset,w.prototype.enable=w.prototype.enable,w.prototype.disable=w.prototype.disable,w.prototype.time_event=w.prototype.time_event,w.prototype.track=w.prototype.track,w.prototype.track_links=w.prototype.track_links,w.prototype.track_forms=w.prototype.track_forms,w.prototype.track_pageview=w.prototype.track_pageview,w.prototype.register=w.prototype.register,w.prototype.register_once=w.prototype.register_once,w.prototype.unregister=w.prototype.unregister,w.prototype.identify=w.prototype.identify,w.prototype.alias=w.prototype.alias,w.prototype.name_tag=w.prototype.name_tag,w.prototype.set_config=w.prototype.set_config,w.prototype.get_config=w.prototype.get_config,w.prototype.get_api_host=w.prototype.get_api_host,w.prototype.get_property=w.prototype.get_property,w.prototype.get_distinct_id=w.prototype.get_distinct_id,w.prototype.toString=w.prototype.toString,w.prototype.opt_out_tracking=w.prototype.opt_out_tracking,w.prototype.opt_in_tracking=w.prototype.opt_in_tracking,w.prototype.has_opted_out_tracking=w.prototype.has_opted_out_tracking,w.prototype.has_opted_in_tracking=w.prototype.has_opted_in_tracking,w.prototype.clear_opt_in_out_tracking=w.prototype.clear_opt_in_out_tracking,w.prototype.get_group=w.prototype.get_group,w.prototype.set_group=w.prototype.set_group,w.prototype.add_group=w.prototype.add_group,w.prototype.remove_group=w.prototype.remove_group,w.prototype.add_hook=w.prototype.add_hook,w.prototype.remove_hook=w.prototype.remove_hook,w.prototype.track_with_groups=w.prototype.track_with_groups,w.prototype.start_batch_senders=w.prototype.start_batch_senders,w.prototype.stop_batch_senders=w.prototype.stop_batch_senders,w.prototype.start_session_recording=w.prototype.start_session_recording,w.prototype.stop_session_recording=w.prototype.stop_session_recording,w.prototype.pause_session_recording=w.prototype.pause_session_recording,w.prototype.resume_session_recording=w.prototype.resume_session_recording,w.prototype.get_session_recording_properties=w.prototype.get_session_recording_properties,w.prototype.get_session_replay_url=w.prototype.get_session_replay_url,w.prototype.get_tab_id=w.prototype.get_tab_id,w.prototype.DEFAULT_API_ROUTES=Wp,w.prototype.__get_recorder=w.prototype.__get_recorder,w.prototype.__get_recording_init_promise=w.prototype.__get_recording_init_promise,q.prototype.properties=q.prototype.properties,q.prototype.update_search_keyword=q.prototype.update_search_keyword,q.prototype.update_referrer_info=q.prototype.update_referrer_info,q.prototype.get_cross_subdomain=q.prototype.get_cross_subdomain,q.prototype.clear=q.prototype.clear;var Pt={},IC=function(){h.each(Pt,function(t,n){n!==Le&&(Se[n]=t)}),Se._=h},OC=function(){Se.init=function(t,n,i){if(i)return Se[i]||(Se[i]=Pt[i]=_s(t,n,i),Se[i]._loaded()),Se[i];var e=Se;Pt[Le]?e=Pt[Le]:t&&(e=_s(t,n,Le),e._loaded(),Pt[Le]=e),Se=e,ms===Bp&&(E[Le]=Se),IC()}},xC=function(){function t(){t.done||(t.done=!0,Gp=!0,qp=!1,h.each(Pt,function(e){e._dom_loaded()}))}function n(){try{U.documentElement.doScroll("left")}catch(e){setTimeout(n,1);return}t()}if(U.addEventListener)U.readyState==="complete"?t():U.addEventListener("DOMContentLoaded",t,!1);else if(U.attachEvent){U.attachEvent("onreadystatechange",t);var i=!1;try{i=E.frameElement===null}catch(e){}U.documentElement.doScroll&&i&&n()}h.register_event(E,"load",t,!0)};function kC(t){if(vu=t,ms=Bp,Se=E[Le],h.isUndefined(Se)){N.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(Se.__loaded||Se.config&&Se.persistence){N.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=Se.__SV||0;if(n<1.1){N.critical("Version mismatch; please ensure you're using the latest version of the Mixpanel code snippet.");return}h.each(Se._i,function(i){i&&h.isArray(i)&&(Pt[i[i.length-1]]=_s.apply(this,i))}),OC(),Se.init(),h.each(Pt,function(i){i._loaded()}),xC()}function RC(t,n){n()}kC(RC)})();
|
|
1
|
+
(function(){"use strict";var E;if(typeof window=="undefined"){var Su={hostname:""};E={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:Su,referrer:""},screen:{width:0,height:0},location:Su,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else E=window;var Pe={DEBUG:!1,LIB_VERSION:"2.80.0"},Ve="__mp_targeting",Is="__mp_recorder",Zp="__MP_RECORDER_FILENAME__",Cu="__MP_TARGETING_FILENAME__";function Eu(t,n){(n==null||n>t.length)&&(n=t.length);for(var i=0,e=new Array(n);i<n;i++)e[i]=t[i];return e}function Iu(t,n,i,e,r,s,o){try{var a=t[s](o),u=a.value}catch(c){i(c);return}a.done?n(u):Promise.resolve(u).then(e,r)}function Cn(t){return function(){var n=this,i=arguments;return new Promise(function(e,r){var s=t.apply(n,i);function o(u){Iu(s,e,r,o,a,"next",u)}function a(u){Iu(s,e,r,o,a,"throw",u)}o(void 0)})}}function En(t,n,i){return Ou()?En=Reflect.construct:En=function(r,s,o){var a=[null];a.push.apply(a,s);var u=Function.bind.apply(r,a),c=new u;return o&&Lr(c,o.prototype),c},En.apply(null,arguments)}function Qp(t,n){for(var i=0;i<n.length;i++){var e=n[i];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}function ie(t,n,i){return n&&Qp(t.prototype,n),t}function z(){return z=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])}return t},z.apply(this,arguments)}function Os(t){return Os=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},Os(t)}function ce(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&Lr(t,n)}function M(t,n){return n!=null&&typeof Symbol!="undefined"&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](t):t instanceof n}function ed(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Lt(t,n){if(t==null)return{};var i={},e=Object.keys(t),r,s;for(s=0;s<e.length;s++)r=e[s],!(n.indexOf(r)>=0)&&(i[r]=t[r]);return i}function Lr(t,n){return Lr=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e},Lr(t,n)}function T(t){"@swc/helpers - typeof";return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function td(t,n){if(t){if(typeof t=="string")return Eu(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set")return Array.from(i);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Eu(t,n)}}function Dr(t){var n=typeof Map=="function"?new Map:void 0;return Dr=function(e){if(e===null||!ed(e))return e;if(typeof e!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n!="undefined"){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return En(e,arguments,Os(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Lr(r,e)},Dr(t)}function Ou(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(Ou=function(){return!!t})()}function I(t,n){var i=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=td(t))||n){i&&(t=i);var e=0;return function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}}}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 Dt(t,n){var i,e,r,s,o={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(l){return u([c,l])}}function u(c){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,e&&(r=c[0]&2?e.return:c[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,c[1])).done)return r;switch(e=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,e=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(r=o.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){o=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(c[0]===6&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=n.call(t,o)}catch(l){c=[6,l],e=0}finally{i=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function xs(t){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&t[n],e=0;if(i)return i.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}var rd=Object.defineProperty,nd=function(t,n,i){return n in t?rd(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},x=function(t,n,i){return nd(t,(typeof n=="undefined"?"undefined":T(n))!=="symbol"?n+"":n,i)},xu,id=Object.defineProperty,sd=function(t,n,i){return n in t?id(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},ku=function(t,n,i){return sd(t,(typeof n=="undefined"?"undefined":T(n))!=="symbol"?n+"":n,i)},Ie=(function(t){return t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t})(Ie||{}),Ru={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Au={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},In={},od=function(){return!!globalThis.Zone};function ks(t){if(In[t])return In[t];var n=globalThis[t],i=n.prototype,e=t in Ru?Ru[t]:void 0,r=!!(e&&e.every(function(l){var f,p;return!!((p=(f=Object.getOwnPropertyDescriptor(i,l))==null?void 0:f.get)!=null&&p.toString().includes("[native code]"))})),s=t in Au?Au[t]:void 0,o=!!(s&&s.every(function(l){var f;return typeof i[l]=="function"&&((f=i[l])==null?void 0:f.toString().includes("[native code]"))}));if(r&&o&&!od())return In[t]=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[t].prototype;return document.body.removeChild(a),c?In[t]=c:i}catch(l){return i}}var Rs={};function vt(t,n,i){var e,r=t+"."+String(i);if(Rs[r])return Rs[r].call(n);var s=ks(t),o=(e=Object.getOwnPropertyDescriptor(s,i))==null?void 0:e.get;return o?(Rs[r]=o,o.call(n)):n[i]}var As={};function Mu(t,n,i){var e=t+"."+String(i);if(As[e])return As[e].bind(n);var r=ks(t),s=r[i];return typeof s!="function"?n[i]:(As[e]=s,s.bind(n))}function ad(t){return vt("Node",t,"childNodes")}function ud(t){return vt("Node",t,"parentNode")}function cd(t){return vt("Node",t,"parentElement")}function ld(t){return vt("Node",t,"textContent")}function fd(t,n){return Mu("Node",t,"contains")(n)}function hd(t){return Mu("Node",t,"getRootNode")()}function pd(t){return!t||!("host"in t)?null:vt("ShadowRoot",t,"host")}function dd(t){return t.styleSheets}function vd(t){return!t||!("shadowRoot"in t)?null:vt("Element",t,"shadowRoot")}function gd(t,n){return vt("Element",t,"querySelector")(n)}function md(t,n){return vt("Element",t,"querySelectorAll")(n)}function yd(){return ks("MutationObserver").constructor}function _d(t,n,i){try{if(!(n in t))return function(){};var e=t[n],r=i(e);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:e}})),t[n]=r,function(){t[n]=e}}catch(s){return function(){}}}var Re={childNodes:ad,parentNode:ud,parentElement:cd,textContent:ld,contains:fd,getRootNode:hd,host:pd,styleSheets:dd,shadowRoot:vd,querySelector:gd,querySelectorAll:md,mutationObserver:yd,patch:_d};function Tu(t){return t.nodeType===t.ELEMENT_NODE}function Fr(t){var n=t&&"host"in t&&"mode"in t&&Re.host(t)||null;return!!(n&&"shadowRoot"in n&&Re.shadowRoot(n)===t)}function Ur(t){return Object.prototype.toString.call(t)==="[object ShadowRoot]"}function wd(t){return t.includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}function bd(t){var n=t.cssText;if(n.split('"').length<3)return n;var i=["@import","url("+JSON.stringify(t.href)+")"];return t.layerName===""?i.push("layer"):t.layerName&&i.push("layer("+t.layerName+")"),t.supportsText&&i.push("supports("+t.supportsText+")"),t.media.length&&i.push(t.media.mediaText),i.join(" ")+";"}function Ms(t){try{var n=t.rules||t.cssRules;if(!n)return null;var i=t.href;!i&&t.ownerNode&&t.ownerNode.ownerDocument&&(i=t.ownerNode.ownerDocument.location.href);var e=Array.from(n,function(r){return Pu(r,i)}).join("");return wd(e)}catch(r){return null}}function Pu(t,n){if(Cd(t)){var i;try{i=Ms(t.styleSheet)||bd(t)}catch(r){i=t.cssText}return t.styleSheet.href?kn(i,t.styleSheet.href):i}else{var e=t.cssText;return Ed(t)&&t.selectorText.includes(":")&&(e=Sd(e)),n?kn(e,n):e}}function Sd(t){var n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(n,"$1\\$2")}function Cd(t){return"styleSheet"in t}function Ed(t){return"selectorText"in t}var $u=(function(){function t(){ku(this,"idNodeMap",new Map),ku(this,"nodeMetaMap",new WeakMap)}var n=t.prototype;return n.getId=function(e){var r;if(!e)return-1;var s=(r=this.getMeta(e))==null?void 0:r.id;return s!=null?s:-1},n.getNode=function(e){return this.idNodeMap.get(e)||null},n.getIds=function(){return Array.from(this.idNodeMap.keys())},n.getMeta=function(e){return this.nodeMetaMap.get(e)||null},n.removeNodeFromMap=function(e,r){var s=this;r===void 0&&(r=!1);var o=this.getId(e);this.idNodeMap.delete(o),r&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEach(function(a){return s.removeNodeFromMap(a,r)})},n.has=function(e){return this.idNodeMap.has(e)},n.hasNode=function(e){return this.nodeMetaMap.has(e)},n.add=function(e,r){var s=r.id;this.idNodeMap.set(s,e),this.nodeMetaMap.set(e,r)},n.replace=function(e,r){var s=this.getNode(e);if(s){var o=this.nodeMetaMap.get(s);o&&this.nodeMetaMap.set(r,o)}this.idNodeMap.set(e,r)},n.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},t})();function Id(){return new $u}function On(t){var n=t.element,i=t.maskInputOptions,e=t.tagName,r=t.type,s=t.value,o=t.maskInputFn,a=s||"",u=r&&Ft(r);return(i[e.toLowerCase()]||u&&i[u])&&(o?a=o(a,n):a="*".repeat(a.length)),a}function Ft(t){return t.toLowerCase()}var Nu="__rrweb_original__";function Od(t){var n=t.getContext("2d");if(!n)return!0;for(var i=50,e=0;e<t.width;e+=i)for(var r=0;r<t.height;r+=i){var s=n.getImageData,o=Nu in s?s[Nu]:s,a=new Uint32Array(o.call(n,e,r,Math.min(i,t.width-e),Math.min(i,t.height-r)).data.buffer);if(a.some(function(u){return u!==0}))return!1}return!0}function xn(t){var n=t.type;return t.hasAttribute("data-rr-is-password")?"password":n?Ft(n):null}function Lu(t,n){var i;try{i=new URL(t,n!=null?n:window.location.href)}catch(o){return null}var e=/\.([0-9a-z]+)(?:$)/i,r=i.pathname.match(e),s;return(s=r==null?void 0:r[1])!=null?s:null}function xd(t){var n="";return t.indexOf("//")>-1?n=t.split("/").slice(0,3).join("/"):n=t.split("/")[0],n=n.split("?")[0],n}var kd=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Rd=/^(?:[a-z+]+:)?\/\//i,Ad=/^www\..*/i,Md=/^(data:)([^,]*),(.*)/i;function kn(t,n){return(t||"").replace(kd,function(i,e,r,s,o,a){var u=r||o||a,c=e||s||"";if(!u)return i;if(Rd.test(u)||Ad.test(u)||Md.test(u))return"url("+c+u+c+")";if(u[0]==="/")return"url("+c+(xd(n)+u)+c+")";var l=n.split("/"),f=u.split("/");l.pop();for(var p=I(f),g;!(g=p()).done;){var v=g.value;v!=="."&&(v===".."?l.pop():l.push(v))}return"url("+c+l.join("/")+c+")"})}function Rn(t,n){return n===void 0&&(n=!1),n?t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Td(t,n,i){i===void 0&&(i=!1);var e=Array.from(n.childNodes),r=[],s=0;if(e.length>1&&t&&typeof t=="string"){for(var o=Rn(t,i),a=o.length/t.length,u=1;u<e.length;u++)if(e[u].textContent&&typeof e[u].textContent=="string"){for(var c=Rn(e[u].textContent,i),l=100,f=3;f<c.length&&(c[f].match(/[a-zA-Z0-9]/)||c.indexOf(c.substring(0,f),1)!==-1);f++);for(;f<c.length;f++){var p=c.substring(0,f),g=o.split(p),v=-1;if(g.length===2)v=g[0].length;else if(g.length>2&&g[0]===""&&e[u-1].textContent!=="")v=o.indexOf(p,1);else if(g.length===1){if(p=p.substring(0,p.length-1),g=o.split(p),g.length<=1)return r.push(t),r;f=l+1}else f===c.length-1&&(v=o.indexOf(p));if(g.length>=2&&f>l){var y=e[u-1].textContent;if(y&&typeof y=="string"){var d=Rn(y).length;v=o.indexOf(p,d)}v===-1&&(v=g[0].length)}if(v!==-1){for(var m=Math.floor(v/a);m>0&&m<t.length;){if(s+=1,s>50*e.length)return r.push(t),r;var _=Rn(t.substring(0,m),i);if(_.length===v){r.push(t.substring(0,m)),t=t.substring(m),o=o.substring(v);break}else _.length<v?m+=Math.max(1,Math.floor((v-_.length)/a)):m-=Math.max(1,Math.floor((_.length-v)*a))}break}}}}return r.push(t),r}function Pd(t,n){return Td(t,n).join("/* rr_split */")}var $d=1,Nd=new RegExp("[^a-z0-9-_:]"),Br=-2;function Du(){return $d++}function Ld(t){if(M(t,HTMLFormElement))return"form";var n=Ft(t.tagName);return Nd.test(n)?"div":n}var or,Fu,Dd=/^[^ \t\n\r\u000c]+/,Fd=/^[, \t\n\r\u000c]+/;function Ud(t,n){if(n.trim()==="")return n;var i=0;function e(c){var l,f=c.exec(n.substring(i));return f?(l=f[0],i+=l.length,l):""}for(var r=[];e(Fd),!(i>=n.length);){var s=e(Dd);if(s.slice(-1)===",")s=ar(t,s.substring(0,s.length-1)),r.push(s);else{var o="";s=ar(t,s);for(var a=!1;;){var u=n.charAt(i);if(u===""){r.push((s+o).trim());break}else if(a)u===")"&&(a=!1);else if(u===","){i+=1,r.push((s+o).trim());break}else u==="("&&(a=!0);o+=u,i+=1}}}return r.join(", ")}var Uu=new WeakMap;function ar(t,n){return!n||n.trim()===""?n:Ts(t,n)}function Bd(t){return!!(t.tagName==="svg"||t.ownerSVGElement)}function Ts(t,n){var i=Uu.get(t);if(i||(i=t.createElement("a"),Uu.set(t,i)),!n)n="";else if(n.startsWith("blob:")||n.startsWith("data:"))return n;return i.setAttribute("href",n),i.href}function Bu(t,n,i,e){return e&&(i==="src"||i==="href"&&!(n==="use"&&e[0]==="#")||i==="xlink:href"&&e[0]!=="#"||i==="background"&&(n==="table"||n==="td"||n==="th")?ar(t,e):i==="srcset"?Ud(t,e):i==="style"?kn(e,Ts(t)):n==="object"&&i==="data"?ar(t,e):e)}function zu(t,n,i){return(t==="video"||t==="audio")&&n==="autoplay"}function zd(t,n,i){try{if(typeof n=="string"){if(t.classList.contains(n))return!0}else for(var e=t.classList.length;e--;){var r=t.classList[e];if(n.test(r))return!0}if(i)return t.matches(i)}catch(s){}return!1}function An(t,n,i){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return i?An(Re.parentNode(t),n,i):!1;for(var e=t.classList.length;e--;){var r=t.classList[e];if(n.test(r))return!0}return i?An(Re.parentNode(t),n,i):!1}function qu(t,n,i,e){var r;if(Tu(t)){if(r=t,!Re.childNodes(r).length)return!1}else{if(Re.parentElement(t)===null)return!1;r=Re.parentElement(t)}try{if(typeof n=="string"){if(e){if(r.closest("."+n))return!0}else if(r.classList.contains(n))return!0}else if(An(r,n,e))return!0;if(i){if(e){if(r.closest(i))return!0}else if(r.matches(i))return!0}}catch(s){}return!1}function qd(t,n,i){var e=t.contentWindow;if(e){var r=!1,s;try{s=e.document.readyState}catch(u){return}if(s!=="complete"){var o=setTimeout(function(){r||(n(),r=!0)},i);t.addEventListener("load",function(){clearTimeout(o),r=!0,n()});return}var a="about:blank";if(e.location.href!==a||t.src===a||t.src==="")return setTimeout(n,0),t.addEventListener("load",n);t.addEventListener("load",n)}}function Wd(t,n,i){var e=!1,r;try{r=t.sheet}catch(o){return}if(!r){var s=setTimeout(function(){e||(n(),e=!0)},i);t.addEventListener("load",function(){clearTimeout(s),e=!0,n()})}}function Gd(t,n){var i=n.doc,e=n.mirror,r=n.blockClass,s=n.blockSelector,o=n.needsMask,a=n.inlineStylesheet,u=n.maskInputOptions,c=u===void 0?{}:u,l=n.maskTextFn,f=n.maskInputFn,p=n.dataURLOptions,g=p===void 0?{}:p,v=n.inlineImages,y=n.recordCanvas,d=n.keepIframeSrcFn,m=n.newlyAddedElement,_=m===void 0?!1:m,b=n.cssCaptured,C=b===void 0?!1:b,S=Vd(i,e);switch(t.nodeType){case t.DOCUMENT_NODE:return t.compatMode!=="CSS1Compat"?{type:Ie.Document,childNodes:[],compatMode:t.compatMode}:{type:Ie.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:Ie.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:S};case t.ELEMENT_NODE:return Hd(t,{doc:i,blockClass:r,blockSelector:s,inlineStylesheet:a,maskInputOptions:c,maskInputFn:f,dataURLOptions:g,inlineImages:v,recordCanvas:y,keepIframeSrcFn:d,newlyAddedElement:_,rootId:S});case t.TEXT_NODE:return jd(t,{doc:i,needsMask:o,maskTextFn:l,rootId:S,cssCaptured:C});case t.CDATA_SECTION_NODE:return{type:Ie.CDATA,textContent:"",rootId:S};case t.COMMENT_NODE:return{type:Ie.Comment,textContent:Re.textContent(t)||"",rootId:S};default:return!1}}function Vd(t,n){if(n.hasNode(t)){var i=n.getId(t);return i===1?void 0:i}}function jd(t,n){var i=n.needsMask,e=n.maskTextFn,r=n.rootId,s=n.cssCaptured,o=Re.parentNode(t),a=o&&o.tagName,u="",c=a==="STYLE"?!0:void 0,l=a==="SCRIPT"?!0:void 0;return l?u="SCRIPT_PLACEHOLDER":s||(u=Re.textContent(t),c&&u&&(u=kn(u,Ts(n.doc)))),!c&&!l&&u&&i&&(u=e?e(u,Re.parentElement(t)):u.replace(/[\S]/g,"*")),{type:Ie.Text,textContent:u||"",rootId:r}}function Hd(t,n){for(var i=n.doc,e=n.blockClass,r=n.blockSelector,s=n.inlineStylesheet,o=n.maskInputOptions,a=o===void 0?{}:o,u=n.maskInputFn,c=n.dataURLOptions,l=c===void 0?{}:c,f=n.inlineImages,p=n.recordCanvas,g=n.keepIframeSrcFn,v=n.newlyAddedElement,y=v===void 0?!1:v,d=n.rootId,m=zd(t,e,r),_=Ld(t),b={},C=t.attributes.length,S=0;S<C;S++){var O=t.attributes[S];zu(_,O.name,O.value)||(b[O.name]=Bu(i,_,Ft(O.name),O.value))}if(_==="link"&&s){var A=Array.from(i.styleSheets).find(function(ze){return ze.href===t.href}),k=null;A&&(k=Ms(A)),k&&(delete b.rel,delete b.href,b._cssText=k)}if(_==="style"&&t.sheet){var $=Ms(t.sheet);$&&(t.childNodes.length>1&&($=Pd($,t)),b._cssText=$)}if(_==="input"||_==="textarea"||_==="select"){var W=t.value,ge=t.checked;b.type!=="radio"&&b.type!=="checkbox"&&b.type!=="submit"&&b.type!=="button"&&W?b.value=On({element:t,type:xn(t),tagName:_,value:W,maskInputOptions:a,maskInputFn:u}):ge&&(b.checked=ge)}if(_==="option"&&(t.selected&&!a.select?b.selected=!0:delete b.selected),_==="dialog"&&t.open&&(b.rr_open_mode=t.matches("dialog:modal")?"modal":"non-modal"),_==="canvas"&&p){if(t.__context==="2d")Od(t)||(b.rr_dataURL=t.toDataURL(l.type,l.quality));else if(!("__context"in t)){var L=t.toDataURL(l.type,l.quality),G=i.createElement("canvas");G.width=t.width,G.height=t.height;var de=G.toDataURL(l.type,l.quality);L!==de&&(b.rr_dataURL=L)}}if(_==="img"&&f){or||(or=i.createElement("canvas"),Fu=or.getContext("2d"));var Y=t,De=Y.currentSrc||Y.getAttribute("src")||"<unknown-src>",Ne=Y.crossOrigin,ke=function(){Y.removeEventListener("load",ke);try{or.width=Y.naturalWidth,or.height=Y.naturalHeight,Fu.drawImage(Y,0,0),b.rr_dataURL=or.toDataURL(l.type,l.quality)}catch(ze){if(Y.crossOrigin!=="anonymous"){Y.crossOrigin="anonymous",Y.complete&&Y.naturalWidth!==0?ke():Y.addEventListener("load",ke);return}else console.warn("Cannot inline img src="+De+"! Error: "+ze)}Y.crossOrigin==="anonymous"&&(Ne?b.crossOrigin=Ne:Y.removeAttribute("crossorigin"))};Y.complete&&Y.naturalWidth!==0?ke():Y.addEventListener("load",ke)}if(_==="audio"||_==="video"){var pe=b;pe.rr_mediaState=t.paused?"paused":"played",pe.rr_mediaCurrentTime=t.currentTime,pe.rr_mediaPlaybackRate=t.playbackRate,pe.rr_mediaMuted=t.muted,pe.rr_mediaLoop=t.loop,pe.rr_mediaVolume=t.volume}if(y||(t.scrollLeft&&(b.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(b.rr_scrollTop=t.scrollTop)),m){var xe=t.getBoundingClientRect(),Jt=xe.width,nt=xe.height;b={class:b.class,rr_width:""+Jt+"px",rr_height:""+nt+"px"}}_==="iframe"&&!g(b.src)&&(t.contentDocument||(b.rr_src=b.src),delete b.src);var Xt;try{customElements.get(_)&&(Xt=!0)}catch(ze){}return{type:Ie.Element,tagName:_,attributes:b,childNodes:[],isSVG:Bd(t)||void 0,needBlock:m,rootId:d,isCustom:Xt}}function te(t){return t==null?"":t.toLowerCase()}function Yd(t,n){if(n.comment&&t.type===Ie.Comment)return!0;if(t.type===Ie.Element){if(n.script&&(t.tagName==="script"||t.tagName==="link"&&(t.attributes.rel==="preload"&&t.attributes.as==="script"||t.attributes.rel==="modulepreload")||t.tagName==="link"&&t.attributes.rel==="prefetch"&&typeof t.attributes.href=="string"&&Lu(t.attributes.href)==="js"))return!0;if(n.headFavicon&&(t.tagName==="link"&&t.attributes.rel==="shortcut icon"||t.tagName==="meta"&&(te(t.attributes.name).match(/^msapplication-tile(image|color)$/)||te(t.attributes.name)==="application-name"||te(t.attributes.rel)==="icon"||te(t.attributes.rel)==="apple-touch-icon"||te(t.attributes.rel)==="shortcut icon")))return!0;if(t.tagName==="meta"){if(n.headMetaDescKeywords&&te(t.attributes.name).match(/^description|keywords$/))return!0;if(n.headMetaSocial&&(te(t.attributes.property).match(/^(og|twitter|fb):/)||te(t.attributes.name).match(/^(og|twitter):/)||te(t.attributes.name)==="pinterest"))return!0;if(n.headMetaRobots&&(te(t.attributes.name)==="robots"||te(t.attributes.name)==="googlebot"||te(t.attributes.name)==="bingbot"))return!0;if(n.headMetaHttpEquiv&&t.attributes["http-equiv"]!==void 0)return!0;if(n.headMetaAuthorship&&(te(t.attributes.name)==="author"||te(t.attributes.name)==="generator"||te(t.attributes.name)==="framework"||te(t.attributes.name)==="publisher"||te(t.attributes.name)==="progid"||te(t.attributes.property).match(/^article:/)||te(t.attributes.property).match(/^product:/)))return!0;if(n.headMetaVerification&&(te(t.attributes.name)==="google-site-verification"||te(t.attributes.name)==="yandex-verification"||te(t.attributes.name)==="csrf-token"||te(t.attributes.name)==="p:domain_verify"||te(t.attributes.name)==="verify-v1"||te(t.attributes.name)==="verification"||te(t.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function ur(t,n){var i=n.doc,e=n.mirror,r=n.blockClass,s=n.blockSelector,o=n.maskTextClass,a=n.maskTextSelector,u=n.skipChild,c=u===void 0?!1:u,l=n.inlineStylesheet,f=l===void 0?!0:l,p=n.maskInputOptions,g=p===void 0?{}:p,v=n.maskTextFn,y=n.maskInputFn,d=n.slimDOMOptions,m=n.dataURLOptions,_=m===void 0?{}:m,b=n.inlineImages,C=b===void 0?!1:b,S=n.recordCanvas,O=S===void 0?!1:S,A=n.onSerialize,k=n.onIframeLoad,$=n.iframeLoadTimeout,W=$===void 0?5e3:$,ge=n.onStylesheetLoad,L=n.stylesheetLoadTimeout,G=L===void 0?5e3:L,de=n.keepIframeSrcFn,Y=de===void 0?function(){return!1}:de,De=n.newlyAddedElement,Ne=De===void 0?!1:De,ke=n.cssCaptured,pe=ke===void 0?!1:ke,xe=n.needsMask,Jt=n.preserveWhiteSpace,nt=Jt===void 0?!0:Jt;if(!xe){var Xt=xe===void 0;xe=qu(t,o,a,Xt)}var ze=Gd(t,{doc:i,mirror:e,blockClass:r,blockSelector:s,needsMask:xe,inlineStylesheet:f,maskInputOptions:g,maskTextFn:v,maskInputFn:y,dataURLOptions:_,inlineImages:C,recordCanvas:O,keepIframeSrcFn:Y,newlyAddedElement:Ne,cssCaptured:pe});if(!ze)return console.warn(t,"not serialized"),null;var $t;e.hasNode(t)?$t=e.getId(t):Yd(ze,d)||!nt&&ze.type===Ie.Text&&!ze.textContent.replace(/^\s+|\s+$/gm,"").length?$t=Br:$t=Du();var J=Object.assign(ze,{id:$t});if(e.add(t,J),$t===Br)return null;A&&A(t);var Tr=!c;if(J.type===Ie.Element){Tr=Tr&&!J.needBlock,delete J.needBlock;var Pr=Re.shadowRoot(t);Pr&&Ur(Pr)&&(J.isShadowHost=!0)}if((J.type===Ie.Document||J.type===Ie.Element)&&Tr){d.headWhitespace&&J.type===Ie.Element&&J.tagName==="head"&&(nt=!1);var Nt={doc:i,mirror:e,blockClass:r,blockSelector:s,needsMask:xe,maskTextClass:o,maskTextSelector:a,skipChild:c,inlineStylesheet:f,maskInputOptions:g,maskTextFn:v,maskInputFn:y,slimDOMOptions:d,dataURLOptions:_,inlineImages:C,recordCanvas:O,preserveWhiteSpace:nt,onSerialize:A,onIframeLoad:k,iframeLoadTimeout:W,onStylesheetLoad:ge,stylesheetLoadTimeout:G,keepIframeSrcFn:Y,cssCaptured:!1};if(!(J.type===Ie.Element&&J.tagName==="textarea"&&J.attributes.value!==void 0)){J.type===Ie.Element&&J.attributes._cssText!==void 0&&typeof J.attributes._cssText=="string"&&(Nt.cssCaptured=!0);for(var ws=I(Array.from(Re.childNodes(t))),$r;!($r=ws()).done;){var bs=$r.value,Ss=ur(bs,Nt);Ss&&J.childNodes.push(Ss)}}var Sn=null;if(Tu(t)&&(Sn=Re.shadowRoot(t)))for(var Zt=I(Array.from(Re.childNodes(Sn))),Qt;!(Qt=Zt()).done;){var er=Qt.value,tr=ur(er,Nt);tr&&(Ur(Sn)&&(tr.isShadow=!0),J.childNodes.push(tr))}}var rr=Re.parentNode(t);return rr&&Fr(rr)&&Ur(rr)&&(J.isShadow=!0),J.type===Ie.Element&&J.tagName==="iframe"&&qd(t,function(){var pt=t.contentDocument;if(pt&&k){var Nr=ur(pt,{doc:pt,mirror:e,blockClass:r,blockSelector:s,needsMask:xe,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:g,maskTextFn:v,maskInputFn:y,slimDOMOptions:d,dataURLOptions:_,inlineImages:C,recordCanvas:O,preserveWhiteSpace:nt,onSerialize:A,onIframeLoad:k,iframeLoadTimeout:W,onStylesheetLoad:ge,stylesheetLoadTimeout:G,keepIframeSrcFn:Y});Nr&&k(t,Nr)}},W),J.type===Ie.Element&&J.tagName==="link"&&typeof J.attributes.rel=="string"&&(J.attributes.rel==="stylesheet"||J.attributes.rel==="preload"&&typeof J.attributes.href=="string"&&Lu(J.attributes.href)==="css")&&Wd(t,function(){if(ge){var pt=ur(t,{doc:i,mirror:e,blockClass:r,blockSelector:s,needsMask:xe,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:g,maskTextFn:v,maskInputFn:y,slimDOMOptions:d,dataURLOptions:_,inlineImages:C,recordCanvas:O,preserveWhiteSpace:nt,onSerialize:A,onIframeLoad:k,iframeLoadTimeout:W,onStylesheetLoad:ge,stylesheetLoadTimeout:G,keepIframeSrcFn:Y});pt&&ge(t,pt)}},G),J}function Kd(t,n){var i=n||{},e=i.mirror,r=e===void 0?new $u:e,s=i.blockClass,o=s===void 0?"rr-block":s,a=i.blockSelector,u=a===void 0?null:a,c=i.maskTextClass,l=c===void 0?"rr-mask":c,f=i.maskTextSelector,p=f===void 0?null:f,g=i.inlineStylesheet,v=g===void 0?!0:g,y=i.inlineImages,d=y===void 0?!1:y,m=i.recordCanvas,_=m===void 0?!1:m,b=i.maskAllInputs,C=b===void 0?!1:b,S=i.maskTextFn,O=i.maskInputFn,A=i.slimDOM,k=A===void 0?!1:A,$=i.dataURLOptions,W=i.preserveWhiteSpace,ge=i.onSerialize,L=i.onIframeLoad,G=i.iframeLoadTimeout,de=i.onStylesheetLoad,Y=i.stylesheetLoadTimeout,De=i.keepIframeSrcFn,Ne=De===void 0?function(){return!1}:De,ke=C===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:C===!1?{password:!0}:C,pe=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 ur(t,{doc:t,mirror:r,blockClass:o,blockSelector:u,maskTextClass:l,maskTextSelector:p,skipChild:!1,inlineStylesheet:v,maskInputOptions:ke,maskTextFn:S,maskInputFn:O,slimDOMOptions:pe,dataURLOptions:$,inlineImages:d,recordCanvas:_,preserveWhiteSpace:W,onSerialize:ge,onIframeLoad:L,iframeLoadTimeout:G,onStylesheetLoad:de,stylesheetLoadTimeout:Y,keepIframeSrcFn:Ne,newlyAddedElement:!1})}function Jd(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Xd(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var i=function e(){return M(this,e)?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(t).forEach(function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(i,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}),i}var Ps={exports:{}},se=String,Wu=function(){return{isColorSupported:!1,reset:se,bold:se,dim:se,italic:se,underline:se,inverse:se,hidden:se,strikethrough:se,black:se,red:se,green:se,yellow:se,blue:se,magenta:se,cyan:se,white:se,gray:se,bgBlack:se,bgRed:se,bgGreen:se,bgYellow:se,bgBlue:se,bgMagenta:se,bgCyan:se,bgWhite:se}};Ps.exports=Wu(),Ps.exports.createColors=Wu;var Zd=Ps.exports,Qd={},ev=Object.freeze(Object.defineProperty({__proto__:null,default:Qd},Symbol.toStringTag,{value:"Module"})),me=Xd(ev),Gu=Zd,Vu=me,$s=(function(t){ce(n,t);function n(e,r,s,o,a,u){var c;return c=t.call(this,e)||this,c.name="CssSyntaxError",c.reason=e,a&&(c.file=a),o&&(c.source=o),u&&(c.plugin=u),typeof r!="undefined"&&typeof s!="undefined"&&(typeof r=="number"?(c.line=r,c.column=s):(c.line=r.line,c.column=r.column,c.endLine=s.line,c.endColumn=s.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 s=this;if(!this.source)return"";var o=this.source;r==null&&(r=Gu.isColorSupported),Vu&&r&&(o=Vu(o));var a=o.split(/\r?\n/),u=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),l=String(c).length,f,p;if(r){var g=Gu.createColors(!0),v=g.bold,y=g.gray,d=g.red;f=function(m){return v(d(m))},p=function(m){return y(m)}}else f=p=function(m){return m};return a.slice(u,c).map(function(m,_){var b=u+1+_,C=" "+(" "+b).slice(-l)+" | ";if(b===s.line){var S=p(C.replace(/\d/g," "))+m.slice(0,s.column-1).replace(/[^\t]/g," ");return f(">")+p(C)+m+"\n "+S+f("^")}return" "+p(C)+m}).join("\n")},i.toString=function(){var r=this.showSourceCode();return r&&(r="\n\n"+r+"\n"),this.name+": "+this.message+r},n})(Dr(Error)),Ns=$s;$s.default=$s;var gt={};gt.isClean=Symbol("isClean"),gt.my=Symbol("my");var ju={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function tv(t){return t[0].toUpperCase()+t.slice(1)}var Ls=(function(){function t(i){this.builder=i}var n=t.prototype;return n.atrule=function(e,r){var s="@"+e.name,o=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?s+=e.raws.afterName:o&&(s+=" "),e.nodes)this.block(e,s+o);else{var a=(e.raws.between||"")+(r?";":"");this.builder(s+o+a,e)}},n.beforeAfter=function(e,r){var s;e.type==="decl"?s=this.raw(e,null,"beforeDecl"):e.type==="comment"?s=this.raw(e,null,"beforeComment"):r==="before"?s=this.raw(e,null,"beforeRule"):s=this.raw(e,null,"beforeClose");for(var o=e.parent,a=0;o&&o.type!=="root";)a+=1,o=o.parent;if(s.includes("\n")){var u=this.raw(e,null,"indent");if(u.length)for(var c=0;c<a;c++)s+=u}return s},n.block=function(e,r){var s=this.raw(e,"between","beforeOpen");this.builder(r+s+"{",e,"start");var o;e.nodes&&e.nodes.length?(this.body(e),o=this.raw(e,"after")):o=this.raw(e,"after","emptyBody"),o&&this.builder(o),this.builder("}",e,"end")},n.body=function(e){for(var r=e.nodes.length-1;r>0&&e.nodes[r].type==="comment";)r-=1;for(var s=this.raw(e,"semicolon"),o=0;o<e.nodes.length;o++){var a=e.nodes[o],u=this.raw(a,"before");u&&this.builder(u),this.stringify(a,r!==o||s)}},n.comment=function(e){var r=this.raw(e,"left","commentLeft"),s=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+s+"*/",e)},n.decl=function(e,r){var s=this.raw(e,"between","colon"),o=e.prop+s+this.rawValue(e,"value");e.important&&(o+=e.raws.important||" !important"),r&&(o+=";"),this.builder(o,e)},n.document=function(e){this.body(e)},n.raw=function(e,r,s){var o;if(s||(s=r),r&&(o=e.raws[r],typeof o!="undefined"))return o;var a=e.parent;if(s==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return ju[s];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[s]!="undefined")return u.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(e,s);var c="raw"+tv(s);return this[c]?o=this[c](u,e):u.walk(function(l){if(o=l.raws[r],typeof o!="undefined")return!1}),typeof o=="undefined"&&(o=ju[s]),u.rawCache[s]=o,o},n.rawBeforeClose=function(e){var r;return e.walk(function(s){if(s.nodes&&s.nodes.length>0&&typeof s.raws.after!="undefined")return r=s.raws.after,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(e,r){var s;return e.walkComments(function(o){if(typeof o.raws.before!="undefined")return s=o.raws.before,s.includes("\n")&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s=="undefined"?s=this.raw(r,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s},n.rawBeforeDecl=function(e,r){var s;return e.walkDecls(function(o){if(typeof o.raws.before!="undefined")return s=o.raws.before,s.includes("\n")&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s=="undefined"?s=this.raw(r,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s},n.rawBeforeOpen=function(e){var r;return e.walk(function(s){if(s.type!=="decl"&&(r=s.raws.between,typeof r!="undefined"))return!1}),r},n.rawBeforeRule=function(e){var r;return e.walk(function(s){if(s.nodes&&(s.parent!==e||e.first!==s)&&typeof s.raws.before!="undefined")return r=s.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawColon=function(e){var r;return e.walkDecls(function(s){if(typeof s.raws.between!="undefined")return r=s.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(e){var r;return e.walk(function(s){if(s.nodes&&s.nodes.length===0&&(r=s.raws.after,typeof r!="undefined"))return!1}),r},n.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var r;return e.walk(function(s){var o=s.parent;if(o&&o!==e&&o.parent&&o.parent===e&&typeof s.raws.before!="undefined"){var a=s.raws.before.split("\n");return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r},n.rawSemicolon=function(e){var r;return e.walk(function(s){if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(r=s.raws.semicolon,typeof r!="undefined"))return!1}),r},n.rawValue=function(e,r){var s=e[r],o=e.raws[r];return o&&o.value===s?o.raw:s},n.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},n.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},n.stringify=function(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)},t})(),Hu=Ls;Ls.default=Ls;var rv=Hu;function Ds(t,n){var i=new rv(n);i.stringify(t)}var Mn=Ds;Ds.default=Ds;var Tn=gt.isClean,nv=gt.my,iv=Ns,sv=Hu,ov=Mn;function Fs(t,n){var i=new t.constructor;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&e!=="proxyCache"){var r=t[e],s=typeof r=="undefined"?"undefined":T(r);e==="parent"&&s==="object"?n&&(i[e]=n):e==="source"?i[e]=r:Array.isArray(r)?i[e]=r.map(function(o){return Fs(o,i)}):(s==="object"&&r!==null&&(r=Fs(r)),i[e]=r)}return i}var Us=(function(){function t(i){i===void 0&&(i={}),this.raws={},this[Tn]=!1,this[nv]=!0;for(var e in i)if(e==="nodes"){this.nodes=[];for(var r=I(i[e]),s;!(s=r()).done;){var o=s.value;typeof o.clone=="function"?this.append(o.clone()):this.append(o)}}else this[e]=i[e]}var n=t.prototype;return n.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return e},n.after=function(e){return this.parent.insertAfter(this,e),this},n.assign=function(e){e===void 0&&(e={});for(var r in e)this[r]=e[r];return this},n.before=function(e){return this.parent.insertBefore(this,e),this},n.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},n.clone=function(e){e===void 0&&(e={});var r=Fs(this);for(var s in e)r[s]=e[s];return r},n.cloneAfter=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertAfter(this,r),r},n.cloneBefore=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertBefore(this,r),r},n.error=function(e,r){if(r===void 0&&(r={}),this.source){var s=this.rangeBy(r),o=s.end,a=s.start;return this.source.input.error(e,{column:a.column,line:a.line},{column:o.column,line:o.line},r)}return new iv(e)},n.getProxyProcessor=function(){return{get:function(r,s){return s==="proxyOf"?r:s==="root"?function(){return r.root().toProxy()}:r[s]},set:function(r,s,o){return r[s]===o||(r[s]=o,(s==="prop"||s==="value"||s==="name"||s==="params"||s==="important"||s==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[Tn]){this[Tn]=!1;for(var e=this;e=e.parent;)e[Tn]=!1}},n.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},n.positionBy=function(e,r){var s=this.source.start;if(e.index)s=this.positionInside(e.index,r);else if(e.word){r=this.toString();var o=r.indexOf(e.word);o!==-1&&(s=this.positionInside(o,r))}return s},n.positionInside=function(e,r){for(var s=r||this.toString(),o=this.source.start.column,a=this.source.start.line,u=0;u<e;u++)s[u]==="\n"?(o=1,a+=1):o+=1;return{column:o,line:a}},n.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},n.rangeBy=function(e){var r={column:this.source.start.column,line:this.source.start.line},s=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(e.word){var o=this.toString(),a=o.indexOf(e.word);a!==-1&&(r=this.positionInside(a,o),s=this.positionInside(a+e.word.length,o))}else e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=this.positionInside(e.index)),e.end?s={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?s=this.positionInside(e.endIndex):e.index&&(s=this.positionInside(e.index+1));return(s.line<r.line||s.line===r.line&&s.column<=r.column)&&(s={column:r.column+1,line:r.line}),{end:s,start:r}},n.raw=function(e,r){var s=new sv;return s.raw(this,e,r)},n.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},n.replaceWith=function(){for(var e=arguments.length,r=new Array(e),s=0;s<e;s++)r[s]=arguments[s];if(this.parent){for(var o=this,a=!1,u=I(r),c;!(c=u()).done;){var l=c.value;l===this?a=!0:a?(this.parent.insertAfter(o,l),o=l):this.parent.insertBefore(o,l)}a||this.remove()}return this},n.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},n.toJSON=function(e,r){var s={},o=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))s[u]=c.map(function(f){return(typeof f=="undefined"?"undefined":T(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof c=="undefined"?"undefined":T(c))==="object"&&c.toJSON)s[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++),s[u]={end:c.end,inputId:l,start:c.start}}else s[u]=c}return o&&(s.inputs=[].concat(r.keys()).map(function(f){return f.toJSON()})),s},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(e){e===void 0&&(e=ov),e.stringify&&(e=e.stringify);var r="";return e(this,function(s){r+=s}),r},n.warn=function(e,r,s){var o={node:this};for(var a in s)o[a]=s[a];return e.warn(r,o)},ie(t,[{key:"proxyOf",get:function(){return this}}]),t})(),Pn=Us;Us.default=Us;var av=Pn,Bs=(function(t){ce(n,t);function n(i){var e;return i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=z({},i,{value:String(i.value)})),e=t.call(this,i)||this,e.type="decl",e}return ie(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n})(av),$n=Bs;Bs.default=Bs;var uv="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",cv=function(t){t===void 0&&(t=21);for(var n="",i=t;i--;)n+=uv[Math.random()*64|0];return n},lv={nanoid:cv},Yu=me.SourceMapConsumer,Ku=me.SourceMapGenerator,fv=me.existsSync,hv=me.readFileSync,zs=me.dirname,pv=me.join;function dv(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var qs=(function(){function t(i,e){if(e.map!==!1){this.loadAnnotation(i),this.inline=this.startWith(this.annotation,"data:");var r=e.map?e.map.prev:void 0,s=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=zs(this.mapFile)),s&&(this.text=s)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new Yu(this.text)),this.consumerCache},n.decodeInline=function(e){var r=/^data:application\/json;charset=utf-?8;base64,/,s=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(o.test(e)||a.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(r.test(e)||s.test(e))return dv(e.substr(RegExp.lastMatch.length));var u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},n.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(e){return(typeof e=="undefined"?"undefined":T(e))!=="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)},n.loadAnnotation=function(e){var r=e.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var s=e.lastIndexOf(r.pop()),o=e.indexOf("*/",s);s>-1&&o>-1&&(this.annotation=this.getAnnotationURL(e.substring(s,o)))}},n.loadFile=function(e){if(this.root=zs(e),fv(e))return this.mapFile=e,hv(e,"utf-8").toString().trim()},n.loadMap=function(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){var s=r(e);if(s){var o=this.loadFile(s);if(!o)throw new Error("Unable to load previous source map: "+s.toString());return o}}else{if(M(r,Yu))return Ku.fromSourceMap(r).toString();if(M(r,Ku))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 e&&(a=pv(zs(e),a)),this.loadFile(a)}}},n.startWith=function(e,r){return e?e.substr(0,r.length)===r:!1},n.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t})(),Ju=qs;qs.default=qs;var vv=me.SourceMapConsumer,gv=me.SourceMapGenerator,Xu=me.fileURLToPath,Nn=me.pathToFileURL,Ws=me.isAbsolute,Gs=me.resolve,mv=lv.nanoid,Vs=me,Zu=Ns,yv=Ju,js=Symbol("fromOffsetCache"),_v=!!(vv&&gv),Qu=!!(Gs&&Ws),Ln=(function(){function t(i,e){if(e===void 0&&(e={}),i===null||typeof i=="undefined"||(typeof i=="undefined"?"undefined":T(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,e.from&&(!Qu||/^\w+:\/\//.test(e.from)||Ws(e.from)?this.file=e.from:this.file=Gs(e.from)),Qu&&_v){var r=new yv(this.css,e);if(r.text){this.map=r;var s=r.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+mv(6)+">"),this.map&&(this.map.file=this.from)}var n=t.prototype;return n.error=function(e,r,s,o){o===void 0&&(o={});var a,u,c;if(r&&(typeof r=="undefined"?"undefined":T(r))==="object"){var l=r,f=s;if(typeof l.offset=="number"){var p=this.fromOffset(l.offset);r=p.line,s=p.col}else r=l.line,s=l.column;if(typeof f.offset=="number"){var g=this.fromOffset(f.offset);u=g.line,c=g.col}else u=f.line,c=f.column}else if(!s){var v=this.fromOffset(r);r=v.line,s=v.col}var y=this.origin(r,s,u,c);return y?a=new Zu(e,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,o.plugin):a=new Zu(e,u===void 0?r:{column:s,line:r},u===void 0?s:{column:c,line:u},this.css,this.file,o.plugin),a.input={column:s,endColumn:c,endLine:u,line:r,source:this.css},this.file&&(Nn&&(a.input.url=Nn(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(e){var r,s;if(this[js])s=this[js];else{var o=this.css.split("\n");s=new Array(o.length);for(var a=0,u=0,c=o.length;u<c;u++)s[u]=a,a+=o[u].length+1;this[js]=s}r=s[s.length-1];var l=0;if(e>=r)l=s.length-1;else for(var f=s.length-2,p;l<f;)if(p=l+(f-l>>1),e<s[p])f=p-1;else if(e>=s[p+1])l=p+1;else{l=p;break}return{col:e-s[l]+1,line:l+1}},n.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Gs(this.map.consumer().sourceRoot||this.map.root||".",e)},n.origin=function(e,r,s,o){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:r,line:e});if(!u.source)return!1;var c;typeof s=="number"&&(c=a.originalPositionFor({column:o,line:s}));var l;Ws(u.source)?l=Nn(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||Nn(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(Xu)f.file=Xu(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 e={},r=0,s=["hasBOM","css","file","id"];r<s.length;r++){var o=s[r];this[o]!=null&&(e[o]=this[o])}return this.map&&(e.map=z({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},ie(t,[{key:"from",get:function(){return this.file||this.id}}]),t})(),Dn=Ln;Ln.default=Ln,Vs&&Vs.registerInput&&Vs.registerInput(Ln);var ec=me.SourceMapConsumer,Fn=me.SourceMapGenerator,Un=me.dirname,tc=me.relative,rc=me.resolve,nc=me.sep,ic=me.pathToFileURL,wv=Dn,bv=!!(ec&&Fn),Sv=!!(Un&&rc&&tc&&nc),Cv=(function(){function t(i,e,r,s){this.stringify=i,this.mapOpts=r.map||{},this.root=e,this.opts=r,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var n=t.prototype;return n.addAnnotation=function(){var e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";var r="\n";this.css.includes("\r\n")&&(r="\r\n"),this.css+=r+"/*# sourceMappingURL="+e+" */"},n.applyPrevMaps=function(){for(var e=I(this.previous()),r;!(r=e()).done;){var s=r.value,o=this.toUrl(this.path(s.file)),a=s.root||Un(s.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new ec(s.text),u.sourcesContent&&(u.sourcesContent=null)):u=s.consumer(),this.map.applySourceMap(u,o,this.toUrl(this.path(a)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.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(),Sv&&bv&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(r){e+=r}),[e]},n.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Fn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Fn({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 e=this;this.css="",this.map=new Fn({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,s=1,o="<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(e.css+=l,f&&p!=="end"&&(a.generated.line=r,a.generated.column=s-1,f.source&&f.source.start?(a.source=e.sourcePath(f),a.original.line=f.source.start.line,a.original.column=f.source.start.column-1,e.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,e.map.addMapping(a))),u=l.match(/\n/g),u?(r+=u.length,c=l.lastIndexOf("\n"),s=l.length-c):s+=l.length,f&&p!=="start"){var g=f.parent||{raws:{}},v=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!v||f!==g.last||g.raws.semicolon)&&(f.source&&f.source.end?(a.source=e.sourcePath(f),a.original.line=f.source.end.line,a.original.column=f.source.end.column-1,a.generated.line=r,a.generated.column=s-2,e.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=s-1,e.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(e){return e.annotation}):!0},n.isInline=function(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;var e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!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(e){return e.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(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var r=this.memoizedPaths.get(e);if(r)return r;var s=this.opts.to?Un(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(s=Un(rc(s,this.mapOpts.annotation)));var o=tc(s,e);return this.memoizedPaths.set(e,o),o},n.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(s){if(s.source&&s.source.input.map){var o=s.source.input.map;e.previousMaps.includes(o)||e.previousMaps.push(o)}});else{var r=new wv(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},n.setSourcesContent=function(){var e=this,r={};if(this.root)this.root.walk(function(o){if(o.source){var a=o.source.input.from;if(a&&!r[a]){r[a]=!0;var u=e.usesFileUrls?e.toFileUrl(a):e.toUrl(e.path(a));e.map.setSourceContent(u,o.source.input.css)}}});else if(this.css){var s=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(s,this.css)}},n.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},n.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},n.toFileUrl=function(e){var r=this.memoizedFileURLs.get(e);if(r)return r;if(ic){var s=ic(e).toString();return this.memoizedFileURLs.set(e,s),s}else throw new Error("`map.absolute` option is not available in this PostCSS build")},n.toUrl=function(e){var r=this.memoizedURLs.get(e);if(r)return r;nc==="\\"&&(e=e.replace(/\\/g,"/"));var s=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,s),s},t})(),sc=Cv,Ev=Pn,Hs=(function(t){ce(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="comment",e}return n})(Ev),Bn=Hs;Hs.default=Hs;var oc=gt.isClean,ac=gt.my,uc=$n,cc=Bn,Iv=Pn,lc,Ys,Ks,fc;function hc(t){return t.map(function(n){return n.nodes&&(n.nodes=hc(n.nodes)),delete n.source,n})}function pc(t){if(t[oc]=!1,t.proxyOf.nodes)for(var n=I(t.proxyOf.nodes),i;!(i=n()).done;){var e=i.value;pc(e)}}var it=(function(t){ce(n,t);function n(){return t.apply(this,arguments)||this}var i=n.prototype;return i.append=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];for(var a=I(s),u;!(u=a()).done;)for(var c=u.value,l=this.normalize(c,this.last),f=I(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.push(g)}return this.markDirty(),this},i.cleanRaws=function(r){if(t.prototype.cleanRaws.call(this,r),this.nodes)for(var s=I(this.nodes),o;!(o=s()).done;){var a=o.value;a.cleanRaws(r)}},i.each=function(r){if(this.proxyOf.nodes){for(var s=this.getIterator(),o,a;this.indexes[s]<this.proxyOf.nodes.length&&(o=this.indexes[s],a=r(this.proxyOf.nodes[o],o),a!==!1);)this.indexes[s]+=1;return delete this.indexes[s],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(s,o){return o==="proxyOf"?s:s[o]?o==="each"||typeof o=="string"&&o.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=s)[o].apply(l,[].concat(u.map(function(f){return typeof f=="function"?function(p,g){return f(p.toProxy(),g)}:f})))}:o==="every"||o==="some"?function(a){return s[o](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))})}:o==="root"?function(){return s.root().toProxy()}:o==="nodes"?s.nodes.map(function(a){return a.toProxy()}):o==="first"||o==="last"?s[o].toProxy():s[o]:s[o]},set:function(s,o,a){return s[o]===a||(s[o]=a,(o==="name"||o==="params"||o==="selector")&&s.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,s){var o=this.index(r),a=this.normalize(s,this.proxyOf.nodes[o]).reverse();o=this.index(r);for(var u=I(a),c;!(c=u()).done;){var l=c.value;this.proxyOf.nodes.splice(o+1,0,l)}var f;for(var p in this.indexes)f=this.indexes[p],o<f&&(this.indexes[p]=f+a.length);return this.markDirty(),this},i.insertBefore=function(r,s){var o=this.index(r),a=o===0?"prepend":!1,u=this.normalize(s,this.proxyOf.nodes[o],a).reverse();o=this.index(r);for(var c=I(u),l;!(l=c()).done;){var f=l.value;this.proxyOf.nodes.splice(o,0,f)}var p;for(var g in this.indexes)p=this.indexes[g],o<=p&&(this.indexes[g]=p+u.length);return this.markDirty(),this},i.normalize=function(r,s){var o=this;if(typeof r=="string")r=hc(lc(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=I(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=I(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 uc(r)]}else if(r.selector)r=[new Ys(r)];else if(r.name)r=[new Ks(r)];else if(r.text)r=[new cc(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(v){return v[ac]||n.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[oc]&&pc(v),typeof v.raws.before=="undefined"&&s&&typeof s.raws.before!="undefined"&&(v.raws.before=s.raws.before.replace(/\S/g,"")),v.parent=o.proxyOf,v});return g},i.prepend=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];s=s.reverse();for(var a=I(s),u;!(u=a()).done;){for(var c=u.value,l=this.normalize(c,this.first,"prepend").reverse(),f=I(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.unshift(g)}for(var v in this.indexes)this.indexes[v]=this.indexes[v]+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=I(this.proxyOf.nodes),s;!(s=r()).done;){var o=s.value;o.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 s;for(var o in this.indexes)s=this.indexes[o],s>=r&&(this.indexes[o]=s-1);return this.markDirty(),this},i.replaceValues=function(r,s,o){return o||(o=s,s={}),this.walkDecls(function(a){s.props&&!s.props.includes(a.prop)||s.fast&&!a.value.includes(s.fast)||(a.value=a.value.replace(r,o))}),this.markDirty(),this},i.some=function(r){return this.nodes.some(r)},i.walk=function(r){return this.each(function(s,o){var a;try{a=r(s,o)}catch(u){throw s.addToError(u)}return a!==!1&&s.walk&&(a=s.walk(r)),a})},i.walkAtRules=function(r,s){return s?M(r,RegExp)?this.walk(function(o,a){if(o.type==="atrule"&&r.test(o.name))return s(o,a)}):this.walk(function(o,a){if(o.type==="atrule"&&o.name===r)return s(o,a)}):(s=r,this.walk(function(o,a){if(o.type==="atrule")return s(o,a)}))},i.walkComments=function(r){return this.walk(function(s,o){if(s.type==="comment")return r(s,o)})},i.walkDecls=function(r,s){return s?M(r,RegExp)?this.walk(function(o,a){if(o.type==="decl"&&r.test(o.prop))return s(o,a)}):this.walk(function(o,a){if(o.type==="decl"&&o.prop===r)return s(o,a)}):(s=r,this.walk(function(o,a){if(o.type==="decl")return s(o,a)}))},i.walkRules=function(r,s){return s?M(r,RegExp)?this.walk(function(o,a){if(o.type==="rule"&&r.test(o.selector))return s(o,a)}):this.walk(function(o,a){if(o.type==="rule"&&o.selector===r)return s(o,a)}):(s=r,this.walk(function(o,a){if(o.type==="rule")return s(o,a)}))},ie(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})(Iv);it.registerParse=function(t){lc=t},it.registerRule=function(t){Ys=t},it.registerAtRule=function(t){Ks=t},it.registerRoot=function(t){fc=t};var Ut=it;it.default=it,it.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,Ks.prototype):t.type==="rule"?Object.setPrototypeOf(t,Ys.prototype):t.type==="decl"?Object.setPrototypeOf(t,uc.prototype):t.type==="comment"?Object.setPrototypeOf(t,cc.prototype):t.type==="root"&&Object.setPrototypeOf(t,fc.prototype),t[ac]=!0,t.nodes&&t.nodes.forEach(function(n){it.rebuild(n)})};var Ov=Ut,dc,vc,zr=(function(t){ce(n,t);function n(e){var r;return r=t.call(this,z({type:"document"},e))||this,r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.toResult=function(r){r===void 0&&(r={});var s=new dc(new vc,this,r);return s.stringify()},n})(Ov);zr.registerLazyResult=function(t){dc=t},zr.registerProcessor=function(t){vc=t};var Js=zr;zr.default=zr;var gc={},mc=function(n){gc[n]||(gc[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},Xs=(function(){function t(i,e){if(e===void 0&&(e={}),this.type="warning",this.text=i,e.node&&e.node.source){var r=e.node.rangeBy(e);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var s in e)this[s]=e[s]}var n=t.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},t})(),yc=Xs;Xs.default=Xs;var xv=yc,Zs=(function(){function t(i,e,r){this.processor=i,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}var n=t.prototype;return n.toString=function(){return this.css},n.warn=function(e,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var s=new xv(e,r);return this.messages.push(s),s},n.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},ie(t,[{key:"content",get:function(){return this.css}}]),t})(),Qs=Zs;Zs.default=Zs;var eo=39,_c=34,zn=92,wc=47,qn=10,qr=32,Wn=12,Gn=9,Vn=13,kv=91,Rv=93,Av=40,Mv=41,Tv=123,Pv=125,$v=59,Nv=42,Lv=58,Dv=64,jn=/[\t\n\f\r "#'()/;[\\\]{}]/g,Hn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Fv=/.[\r\n"'(/\\]/,bc=/[\da-f]/i,Uv=function(n,i){i===void 0&&(i={});var e=n.css.valueOf(),r=i.ignoreErrors,s,o,a,u,c,l,f,p,g,v,y=e.length,d=0,m=[],_=[];function b(){return d}function C(k){throw n.error("Unclosed "+k,d)}function S(){return _.length===0&&d>=y}function O(k){if(_.length)return _.pop();if(!(d>=y)){var $=k?k.ignoreUnclosed:!1;switch(s=e.charCodeAt(d),s){case qn:case qr:case Gn:case Vn:case Wn:{o=d;do o+=1,s=e.charCodeAt(o);while(s===qr||s===qn||s===Gn||s===Vn||s===Wn);v=["space",e.slice(d,o)],d=o-1;break}case kv:case Rv:case Tv:case Pv:case Lv:case $v:case Mv:{var W=String.fromCharCode(s);v=[W,W,d];break}case Av:{if(p=m.length?m.pop()[1]:"",g=e.charCodeAt(d+1),p==="url"&&g!==eo&&g!==_c&&g!==qr&&g!==qn&&g!==Gn&&g!==Wn&&g!==Vn){o=d;do{if(l=!1,o=e.indexOf(")",o+1),o===-1)if(r||$){o=d;break}else C("bracket");for(f=o;e.charCodeAt(f-1)===zn;)f-=1,l=!l}while(l);v=["brackets",e.slice(d,o+1),d,o],d=o}else o=e.indexOf(")",d+1),u=e.slice(d,o+1),o===-1||Fv.test(u)?v=["(","(",d]:(v=["brackets",u,d,o],d=o);break}case eo:case _c:{a=s===eo?"'":'"',o=d;do{if(l=!1,o=e.indexOf(a,o+1),o===-1)if(r||$){o=d+1;break}else C("string");for(f=o;e.charCodeAt(f-1)===zn;)f-=1,l=!l}while(l);v=["string",e.slice(d,o+1),d,o],d=o;break}case Dv:{jn.lastIndex=d+1,jn.test(e),jn.lastIndex===0?o=e.length-1:o=jn.lastIndex-2,v=["at-word",e.slice(d,o+1),d,o],d=o;break}case zn:{for(o=d,c=!0;e.charCodeAt(o+1)===zn;)o+=1,c=!c;if(s=e.charCodeAt(o+1),c&&s!==wc&&s!==qr&&s!==qn&&s!==Gn&&s!==Vn&&s!==Wn&&(o+=1,bc.test(e.charAt(o)))){for(;bc.test(e.charAt(o+1));)o+=1;e.charCodeAt(o+1)===qr&&(o+=1)}v=["word",e.slice(d,o+1),d,o],d=o;break}default:{s===wc&&e.charCodeAt(d+1)===Nv?(o=e.indexOf("*/",d+2)+1,o===0&&(r||$?o=e.length:C("comment")),v=["comment",e.slice(d,o+1),d,o],d=o):(Hn.lastIndex=d+1,Hn.test(e),Hn.lastIndex===0?o=e.length-1:o=Hn.lastIndex-2,v=["word",e.slice(d,o+1),d,o],m.push(v),d=o);break}}return d++,v}}function A(k){_.push(k)}return{back:A,endOfFile:S,nextToken:O,position:b}},Sc=Ut,Yn=(function(t){ce(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="atrule",r}var i=n.prototype;return i.append=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.append).call.apply(a,[].concat([this],s))},i.prepend=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.prepend).call.apply(a,[].concat([this],s))},n})(Sc),to=Yn;Yn.default=Yn,Sc.registerAtRule(Yn);var Cc=Ut,Ec,Ic,cr=(function(t){ce(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="root",r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.normalize=function(r,s,o){var a=t.prototype.normalize.call(this,r);if(s){if(o==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(var u=I(a),c;!(c=u()).done;){var l=c.value;l.raws.before=s.raws.before}}return a},i.removeChild=function(r,s){var o=this.index(r);return!s&&o===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[o].raws.before),t.prototype.removeChild.call(this,r)},i.toResult=function(r){r===void 0&&(r={});var s=new Ec(new Ic,this,r);return s.stringify()},n})(Cc);cr.registerLazyResult=function(t){Ec=t},cr.registerProcessor=function(t){Ic=t};var Wr=cr;cr.default=cr,Cc.registerRoot(cr);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,e){for(var r=[],s="",o=!1,a=0,u=!1,c="",l=!1,f=I(n),p;!(p=f()).done;){var g=p.value;l?l=!1:g==="\\"?l=!0:u?g===c&&(u=!1):g==='"'||g==="'"?(u=!0,c=g):g==="("?a+=1:g===")"?a>0&&(a-=1):a===0&&i.includes(g)&&(o=!0),o?(s!==""&&r.push(s.trim()),s="",o=!1):s+=g}return(e||s!=="")&&r.push(s.trim()),r}},Oc=Gr;Gr.default=Gr;var xc=Ut,Bv=Oc,Kn=(function(t){ce(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return ie(n,[{key:"selectors",get:function(){return Bv.comma(this.selector)},set:function(e){var r=this.selector?this.selector.match(/,\s*/):null,s=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(s)}}]),n})(xc),ro=Kn;Kn.default=Kn,xc.registerRule(Kn);var zv=$n,qv=Uv,Wv=Bn,Gv=to,Vv=Wr,kc=ro,Rc={empty:!0,space:!0};function jv(t){for(var n=t.length-1;n>=0;n--){var i=t[n],e=i[3]||i[2];if(e)return e}}var Hv=(function(){function t(i){this.input=i,this.root=new Vv,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=t.prototype;return n.atrule=function(e){var r=new Gv;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);for(var s,o,a,u=!1,c=!1,l=[],f=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),s=e[0],s==="("||s==="["?f.push(s==="("?")":"]"):s==="{"&&f.length>0?f.push("}"):s===f[f.length-1]&&f.pop(),f.length===0)if(s===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(s==="{"){c=!0;break}else if(s==="}"){if(l.length>0){for(a=l.length-1,o=l[a];o&&o[0]==="space";)o=l[--a];o&&(r.source.end=this.getPosition(o[3]||o[2]),r.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);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&&(e=l[l.length-1],r.source.end=this.getPosition(e[3]||e[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(e){var r=this.colon(e);if(r!==!1){for(var s=0,o,a=r-1;a>=0&&(o=e[a],!(o[0]!=="space"&&(s+=1,s===2)));a--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}},n.colon=function(e){for(var r=0,s,o,a,u=I(e.entries()),c;!(c=u()).done;){var l=c.value,f=l[0],p=l[1];if(s=p,o=s[0],o==="("&&(r+=1),o===")"&&(r-=1),r===0&&o===":")if(!a)this.doubleColon(s);else{if(a[0]==="word"&&a[1]==="progid")continue;return f}a=s}return!1},n.comment=function(e){var r=new Wv;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;var s=e[1].slice(2,-2);if(/^\s*$/.test(s))r.text="",r.raws.left=s,r.raws.right="";else{var o=s.match(/^(\s*)([^]*\S)(\s*)$/);r.text=o[2],r.raws.left=o[1],r.raws.right=o[3]}},n.createTokenizer=function(){this.tokenizer=qv(this.input)},n.decl=function(e,r){var s=new zv;this.init(s,e[0][2]);var o=e[e.length-1];for(o[0]===";"&&(this.semicolon=!0,e.pop()),s.source.end=this.getPosition(o[3]||o[2]||jv(e)),s.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),s.raws.before+=e.shift()[1];for(s.source.start=this.getPosition(e[0][2]),s.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;s.prop+=e.shift()[1]}s.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){s.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),s.raws.between+=u[1];(s.prop[0]==="_"||s.prop[0]==="*")&&(s.raws.before+=s.prop[0],s.prop=s.prop.slice(1));for(var c=[],l;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)c.push(e.shift());this.precheckMissedSemicolon(e);for(var f=e.length-1;f>=0;f--){if(u=e[f],u[1].toLowerCase()==="!important"){s.important=!0;var p=this.stringFrom(e,f);p=this.spacesFromEnd(e)+p,p!==" !important"&&(s.raws.important=p);break}else if(u[1].toLowerCase()==="important"){for(var g=e.slice(0),v="",y=f;y>0;y--){var d=g[y][0];if(v.trim().indexOf("!")===0&&d!=="space")break;v=g.pop()[1]+v}v.trim().indexOf("!")===0&&(s.important=!0,s.raws.important=v,e=g)}if(u[0]!=="space"&&u[0]!=="comment")break}var m=e.some(function(_){return _[0]!=="space"&&_[0]!=="comment"});m&&(s.raws.between+=c.map(function(_){return _[1]}).join(""),c=[]),this.raw(s,"value",c.concat(e),r),s.value.includes(":")&&!r&&this.checkMissedSemicolon(e)},n.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},n.emptyRule=function(e){var r=new kc;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r},n.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},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(e){if(this.spaces+=e[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(e){var r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}},n.init=function(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},n.other=function(e){for(var r=!1,s=null,o=!1,a=null,u=[],c=e[1].startsWith("--"),l=[],f=e;f;){if(s=f[0],l.push(f),s==="("||s==="[")a||(a=f),u.push(s==="("?")":"]");else if(c&&o&&s==="{")a||(a=f),u.push("}");else if(u.length===0)if(s===";")if(o){this.decl(l,c);return}else break;else if(s==="{"){this.rule(l);return}else if(s==="}"){this.tokenizer.back(l.pop()),r=!0;break}else s===":"&&(o=!0);else s===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&&o){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 e;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},n.precheckMissedSemicolon=function(){},n.raw=function(e,r,s,o){for(var a,u,c=s.length,l="",f=!0,p,g,v=0;v<c;v+=1)a=s[v],u=a[0],u==="space"&&v===c-1&&!o?f=!1:u==="comment"?(g=s[v-1]?s[v-1][0]:"empty",p=s[v+1]?s[v+1][0]:"empty",!Rc[g]&&!Rc[p]?l.slice(-1)===","?f=!1:l+=a[1]:f=!1):l+=a[1];if(!f){var y=s.reduce(function(d,m){return d+m[1]},"");e.raws[r]={raw:y,value:l}}e[r]=l},n.rule=function(e){e.pop();var r=new kc;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r},n.spacesAndCommentsFromEnd=function(e){for(var r,s="";e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)s=e.pop()[1]+s;return s},n.spacesAndCommentsFromStart=function(e){for(var r,s="";e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)s+=e.shift()[1];return s},n.spacesFromEnd=function(e){for(var r,s="";e.length&&(r=e[e.length-1][0],r==="space");)s=e.pop()[1]+s;return s},n.stringFrom=function(e,r){for(var s="",o=r;o<e.length;o++)s+=e[o][1];return e.splice(r,e.length-r),s},n.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},n.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},n.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},n.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},n.unnamedAtrule=function(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},t})(),Yv=Hv,Kv=Ut,Jv=Yv,Xv=Dn;function Jn(t,n){var i=new Xv(t,n),e=new Jv(i);try{e.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 e.root}var no=Jn;Jn.default=Jn,Kv.registerParse(Jn);var je=gt.isClean,Zv=gt.my,Qv=sc,eg=Mn,tg=Ut,rg=Js,ng=mc,Ac=Qs,ig=no,sg=Wr,og={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},ag={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},ug={Once:!0,postcssPlugin:!0,prepare:!0},lr=0;function Vr(t){return(typeof t=="undefined"?"undefined":T(t))==="object"&&typeof t.then=="function"}function Mc(t){var n=!1,i=og[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[i,i+"-"+n,lr,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:t.append?[i,lr,i+"Exit"]:[i,i+"Exit"]}function Tc(t){var n;return t.type==="document"?n=["Document",lr,"DocumentExit"]:t.type==="root"?n=["Root",lr,"RootExit"]:n=Mc(t),{eventIndex:0,events:n,iterator:0,node:t,visitorIndex:0,visitors:[]}}function io(t){return t[je]=!1,t.nodes&&t.nodes.forEach(function(n){return io(n)}),t}var so={},fr=(function(){function t(i,e,r){var s=this;this.stringified=!1,this.processed=!1;var o;if((typeof e=="undefined"?"undefined":T(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))o=io(e);else if(M(e,t)||M(e,Ac))o=io(e.root),e.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=e.map);else{var a=ig;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{o=a(e,r)}catch(u){this.processed=!0,this.error=u}o&&!o[Zv]&&tg.rebuild(o)}this.result=new Ac(i,o,r),this.helpers=z({},so,{postcss:so,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":T(u))==="object"&&u.prepare?z({},u,u.prepare(s.result)):u})}var n=t.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(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},n.handleError=function(e,r){var s=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=s.postcssPlugin,e.setMessage();else if(s.postcssVersion&&process.env.NODE_ENV!=="production"){var o=s.postcssPlugin,a=s.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 "+o+" uses "+a+". Perhaps this is the source of the error below.")}}catch(f){console&&console.error&&console.error(f)}return e},n.prepareVisitors=function(){var e=this;this.listeners={};for(var r=function(l,f,p){e.listeners[f]||(e.listeners[f]=[]),e.listeners[f].push([l,p])},s=I(this.plugins),o;!(o=s()).done;){var a=o.value;if((typeof a=="undefined"?"undefined":T(a))==="object")for(var u in a){if(!ag[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!ug[u])if(T(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 e=this;return Cn(function(){var r,s,o,a,u,c,l,f,p,g,v,y;return Dt(this,function(d){switch(d.label){case 0:e.plugin=0,r=0,d.label=1;case 1:if(!(r<e.plugins.length))return[3,6];if(s=e.plugins[r],o=e.runOnRoot(s),!Vr(o))return[3,5];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,o];case 3:return d.sent(),[3,5];case 4:throw a=d.sent(),e.handleError(a);case 5:return r++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];u=e.result.root,d.label=7;case 7:if(u[je])return[3,14];u[je]=!0,c=[Tc(u)],d.label=8;case 8:if(!(c.length>0))return[3,13];if(l=e.visitTick(c),!Vr(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,e.handleError(f,p);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];g=function(){var m,_,b,C,S;return Dt(this,function(O){switch(O.label){case 0:m=y.value,_=m[0],b=m[1],e.result.lastPlugin=_,O.label=1;case 1:return O.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(C=u.nodes.map(function(A){return b(A,e.helpers)}),[4,Promise.all(C)]);case 2:return O.sent(),[3,5];case 3:return[4,b(u,e.helpers)];case 4:O.sent(),O.label=5;case 5:return[3,7];case 6:throw S=O.sent(),e.handleError(S);case 7:return[2]}})},v=I(e.listeners.OnceExit),d.label=15;case 15:return(y=v()).done?[3,18]:[5,xs(g())];case 16:d.sent(),d.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},n.runOnRoot=function(e){var r=this;this.result.lastPlugin=e;try{if((typeof e=="undefined"?"undefined":T(e))==="object"&&e.Once){if(this.result.root.type==="document"){var s=this.result.root.nodes.map(function(o){return e.Once(o,r.helpers)});return Vr(s[0])?Promise.all(s):s}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(o){throw this.handleError(o)}},n.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,r=eg;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var s=new Qv(r,this.result.root,this.result.opts),o=s.generate();return this.result.css=o[0],this.result.map=o[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 e=I(this.plugins),r;!(r=e()).done;){var s=r.value,o=this.runOnRoot(s);if(Vr(o))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[je];)a[je]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=I(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(e,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||ng("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)},n.toString=function(){return this.css},n.visitSync=function(e,r){for(var s=I(e),o;!(o=s()).done;){var a=o.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(Vr(l))throw this.getAsyncError()}},n.visitTick=function(e){var r=e[e.length-1],s=r.node,o=r.visitors;if(s.type!=="root"&&s.type!=="document"&&!s.parent){e.pop();return}if(o.length>0&&r.visitorIndex<o.length){var a=o[r.visitorIndex],u=a[0],c=a[1];r.visitorIndex+=1,r.visitorIndex===o.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=u;try{return c(s.toProxy(),this.helpers)}catch(v){throw this.handleError(v,s)}}if(r.iterator!==0){for(var l=r.iterator,f;f=s.nodes[s.indexes[l]];)if(s.indexes[l]+=1,!f[je]){f[je]=!0,e.push(Tc(f));return}r.iterator=0,delete s.indexes[l]}for(var p=r.events;r.eventIndex<p.length;){var g=p[r.eventIndex];if(r.eventIndex+=1,g===lr){s.nodes&&s.nodes.length&&(s[je]=!0,r.iterator=s.getIterator());return}else if(this.listeners[g]){r.visitors=this.listeners[g];return}}e.pop()},n.walkSync=function(e){var r=this;e[je]=!0;for(var s=Mc(e),o=I(s),a;!(a=o()).done;){var u=a.value;if(u===lr)e.nodes&&e.each(function(l){l[je]||r.walkSync(l)});else{var c=this.listeners[u];if(c&&this.visitSync(c,e.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},ie(t,[{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"}}]),t})();fr.registerPostcss=function(t){so=t};var Pc=fr;fr.default=fr,sg.registerLazyResult(fr),rg.registerLazyResult(fr);var cg=sc,lg=Mn,fg=mc,hg=no,pg=Qs,oo=(function(){function t(i,e,r){e=e.toString(),this.stringified=!1,this._processor=i,this._css=e,this._opts=r,this._map=void 0;var s,o=lg;this.result=new pg(this._processor,s,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new cg(o,s,this._opts,e);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=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.sync=function(){if(this.error)throw this.error;return this.result},n.then=function(e,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||fg("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)},n.toString=function(){return this._css},n.warnings=function(){return[]},ie(t,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,r=hg;try{e=r(this._css,this._opts)}catch(s){this.error=s}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),t})(),dg=oo;oo.default=oo;var vg=dg,gg=Pc,mg=Js,yg=Wr,jr=(function(){function t(i){i===void 0&&(i=[]),this.version="8.4.38",this.plugins=this.normalize(i)}var n=t.prototype;return n.normalize=function(e){for(var r=[],s=I(e),o;!(o=s()).done;){var a=o.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":T(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":T(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":T(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(e,r){return r===void 0&&(r={}),!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new vg(this,e,r):new gg(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t})(),_g=jr;jr.default=jr,yg.registerProcessor(jr),mg.registerProcessor(jr);var wg=$n,bg=Ju,Sg=Bn,Cg=to,Eg=Dn,Ig=Wr,Og=ro;function Hr(t,n){if(Array.isArray(t))return t.map(function(f){return Hr(f)});var i=t.inputs,e=Lt(t,["inputs"]);if(i){n=[];for(var r=I(i),s;!(s=r()).done;){var o=s.value,a=z({},o,{__proto__:Eg.prototype});a.map&&(a.map=z({},a.map,{__proto__:bg.prototype})),n.push(a)}}if(e.nodes&&(e.nodes=t.nodes.map(function(f){return Hr(f,n)})),e.source){var u=e.source,c=u.inputId,l=Lt(u,["inputId"]);e.source=l,c!=null&&(e.source.input=n[c])}if(e.type==="root")return new Ig(e);if(e.type==="decl")return new wg(e);if(e.type==="rule")return new Og(e);if(e.type==="comment")return new Sg(e);if(e.type==="atrule")return new Cg(e);throw new Error("Unknown node type: "+t.type)}var xg=Hr;Hr.default=Hr;var kg=Ns,$c=$n,Rg=Pc,Ag=Ut,ao=_g,Mg=Mn,Tg=xg,Nc=Js,Pg=yc,Lc=Bn,Dc=to,$g=Qs,Ng=Dn,Lg=no,Dg=Oc,Fc=ro,Uc=Wr,Fg=Pn;function X(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new ao(n)}X.plugin=function(n,i){var e=!1;function r(){for(var o=arguments.length,a=new Array(o),u=0;u<o;u++)a[u]=arguments[u];console&&console.warn&&!e&&(e=!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 ao().version,c}var s;return Object.defineProperty(r,"postcss",{get:function(){return s||(s=r()),s}}),r.process=function(o,a,u){return X([r(u)]).process(o,a)},r},X.stringify=Mg,X.parse=Lg,X.fromJSON=Tg,X.list=Dg,X.comment=function(t){return new Lc(t)},X.atRule=function(t){return new Dc(t)},X.decl=function(t){return new $c(t)},X.rule=function(t){return new Fc(t)},X.root=function(t){return new Uc(t)},X.document=function(t){return new Nc(t)},X.CssSyntaxError=kg,X.Declaration=$c,X.Container=Ag,X.Processor=ao,X.Document=Nc,X.Comment=Lc,X.Warning=Pg,X.AtRule=Dc,X.Result=$g,X.Input=Ng,X.Rule=Fc,X.Root=Uc,X.Node=Fg,Rg.registerPostcss(X);var Ug=X;X.default=X;var le=Jd(Ug);le.stringify,le.fromJSON,le.plugin,le.parse,le.list,le.document,le.comment,le.atRule,le.rule,le.decl,le.root,le.CssSyntaxError,le.Declaration,le.Container,le.Processor,le.Document,le.Comment,le.Warning,le.AtRule,le.Result,le.Input,le.Rule,le.Root,le.Node;var Bg=Object.defineProperty,zg=function(t,n,i){return n in t?Bg(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},Fe=function(t,n,i){return zg(t,(typeof n=="undefined"?"undefined":T(n))!=="symbol"?n+"":n,i)};function qg(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Wg(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var i=function e(){return M(this,e)?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(t).forEach(function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(i,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}),i}var uo={exports:{}},oe=String,Bc=function(){return{isColorSupported:!1,reset:oe,bold:oe,dim:oe,italic:oe,underline:oe,inverse:oe,hidden:oe,strikethrough:oe,black:oe,red:oe,green:oe,yellow:oe,blue:oe,magenta:oe,cyan:oe,white:oe,gray:oe,bgBlack:oe,bgRed:oe,bgGreen:oe,bgYellow:oe,bgBlue:oe,bgMagenta:oe,bgCyan:oe,bgWhite:oe}};uo.exports=Bc(),uo.exports.createColors=Bc;var Gg=uo.exports,Vg={},jg=Object.freeze(Object.defineProperty({__proto__:null,default:Vg},Symbol.toStringTag,{value:"Module"})),ye=Wg(jg),zc=Gg,qc=ye,co=(function(t){ce(n,t);function n(e,r,s,o,a,u){var c;return c=t.call(this,e)||this,c.name="CssSyntaxError",c.reason=e,a&&(c.file=a),o&&(c.source=o),u&&(c.plugin=u),typeof r!="undefined"&&typeof s!="undefined"&&(typeof r=="number"?(c.line=r,c.column=s):(c.line=r.line,c.column=r.column,c.endLine=s.line,c.endColumn=s.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 s=this;if(!this.source)return"";var o=this.source;r==null&&(r=zc.isColorSupported),qc&&r&&(o=qc(o));var a=o.split(/\r?\n/),u=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),l=String(c).length,f,p;if(r){var g=zc.createColors(!0),v=g.bold,y=g.gray,d=g.red;f=function(m){return v(d(m))},p=function(m){return y(m)}}else f=p=function(m){return m};return a.slice(u,c).map(function(m,_){var b=u+1+_,C=" "+(" "+b).slice(-l)+" | ";if(b===s.line){var S=p(C.replace(/\d/g," "))+m.slice(0,s.column-1).replace(/[^\t]/g," ");return f(">")+p(C)+m+"\n "+S+f("^")}return" "+p(C)+m}).join("\n")},i.toString=function(){var r=this.showSourceCode();return r&&(r="\n\n"+r+"\n"),this.name+": "+this.message+r},n})(Dr(Error)),lo=co;co.default=co;var mt={};mt.isClean=Symbol("isClean"),mt.my=Symbol("my");var Wc={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Hg(t){return t[0].toUpperCase()+t.slice(1)}var fo=(function(){function t(i){this.builder=i}var n=t.prototype;return n.atrule=function(e,r){var s="@"+e.name,o=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?s+=e.raws.afterName:o&&(s+=" "),e.nodes)this.block(e,s+o);else{var a=(e.raws.between||"")+(r?";":"");this.builder(s+o+a,e)}},n.beforeAfter=function(e,r){var s;e.type==="decl"?s=this.raw(e,null,"beforeDecl"):e.type==="comment"?s=this.raw(e,null,"beforeComment"):r==="before"?s=this.raw(e,null,"beforeRule"):s=this.raw(e,null,"beforeClose");for(var o=e.parent,a=0;o&&o.type!=="root";)a+=1,o=o.parent;if(s.includes("\n")){var u=this.raw(e,null,"indent");if(u.length)for(var c=0;c<a;c++)s+=u}return s},n.block=function(e,r){var s=this.raw(e,"between","beforeOpen");this.builder(r+s+"{",e,"start");var o;e.nodes&&e.nodes.length?(this.body(e),o=this.raw(e,"after")):o=this.raw(e,"after","emptyBody"),o&&this.builder(o),this.builder("}",e,"end")},n.body=function(e){for(var r=e.nodes.length-1;r>0&&e.nodes[r].type==="comment";)r-=1;for(var s=this.raw(e,"semicolon"),o=0;o<e.nodes.length;o++){var a=e.nodes[o],u=this.raw(a,"before");u&&this.builder(u),this.stringify(a,r!==o||s)}},n.comment=function(e){var r=this.raw(e,"left","commentLeft"),s=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+s+"*/",e)},n.decl=function(e,r){var s=this.raw(e,"between","colon"),o=e.prop+s+this.rawValue(e,"value");e.important&&(o+=e.raws.important||" !important"),r&&(o+=";"),this.builder(o,e)},n.document=function(e){this.body(e)},n.raw=function(e,r,s){var o;if(s||(s=r),r&&(o=e.raws[r],typeof o!="undefined"))return o;var a=e.parent;if(s==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return Wc[s];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[s]!="undefined")return u.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(e,s);var c="raw"+Hg(s);return this[c]?o=this[c](u,e):u.walk(function(l){if(o=l.raws[r],typeof o!="undefined")return!1}),typeof o=="undefined"&&(o=Wc[s]),u.rawCache[s]=o,o},n.rawBeforeClose=function(e){var r;return e.walk(function(s){if(s.nodes&&s.nodes.length>0&&typeof s.raws.after!="undefined")return r=s.raws.after,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(e,r){var s;return e.walkComments(function(o){if(typeof o.raws.before!="undefined")return s=o.raws.before,s.includes("\n")&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s=="undefined"?s=this.raw(r,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s},n.rawBeforeDecl=function(e,r){var s;return e.walkDecls(function(o){if(typeof o.raws.before!="undefined")return s=o.raws.before,s.includes("\n")&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s=="undefined"?s=this.raw(r,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s},n.rawBeforeOpen=function(e){var r;return e.walk(function(s){if(s.type!=="decl"&&(r=s.raws.between,typeof r!="undefined"))return!1}),r},n.rawBeforeRule=function(e){var r;return e.walk(function(s){if(s.nodes&&(s.parent!==e||e.first!==s)&&typeof s.raws.before!="undefined")return r=s.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawColon=function(e){var r;return e.walkDecls(function(s){if(typeof s.raws.between!="undefined")return r=s.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(e){var r;return e.walk(function(s){if(s.nodes&&s.nodes.length===0&&(r=s.raws.after,typeof r!="undefined"))return!1}),r},n.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var r;return e.walk(function(s){var o=s.parent;if(o&&o!==e&&o.parent&&o.parent===e&&typeof s.raws.before!="undefined"){var a=s.raws.before.split("\n");return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r},n.rawSemicolon=function(e){var r;return e.walk(function(s){if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(r=s.raws.semicolon,typeof r!="undefined"))return!1}),r},n.rawValue=function(e,r){var s=e[r],o=e.raws[r];return o&&o.value===s?o.raw:s},n.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},n.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},n.stringify=function(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)},t})(),Gc=fo;fo.default=fo;var Yg=Gc;function ho(t,n){var i=new Yg(n);i.stringify(t)}var Xn=ho;ho.default=ho;var Zn=mt.isClean,Kg=mt.my,Jg=lo,Xg=Gc,Zg=Xn;function po(t,n){var i=new t.constructor;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&e!=="proxyCache"){var r=t[e],s=typeof r=="undefined"?"undefined":T(r);e==="parent"&&s==="object"?n&&(i[e]=n):e==="source"?i[e]=r:Array.isArray(r)?i[e]=r.map(function(o){return po(o,i)}):(s==="object"&&r!==null&&(r=po(r)),i[e]=r)}return i}var vo=(function(){function t(i){i===void 0&&(i={}),this.raws={},this[Zn]=!1,this[Kg]=!0;for(var e in i)if(e==="nodes"){this.nodes=[];for(var r=I(i[e]),s;!(s=r()).done;){var o=s.value;typeof o.clone=="function"?this.append(o.clone()):this.append(o)}}else this[e]=i[e]}var n=t.prototype;return n.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return e},n.after=function(e){return this.parent.insertAfter(this,e),this},n.assign=function(e){e===void 0&&(e={});for(var r in e)this[r]=e[r];return this},n.before=function(e){return this.parent.insertBefore(this,e),this},n.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},n.clone=function(e){e===void 0&&(e={});var r=po(this);for(var s in e)r[s]=e[s];return r},n.cloneAfter=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertAfter(this,r),r},n.cloneBefore=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertBefore(this,r),r},n.error=function(e,r){if(r===void 0&&(r={}),this.source){var s=this.rangeBy(r),o=s.end,a=s.start;return this.source.input.error(e,{column:a.column,line:a.line},{column:o.column,line:o.line},r)}return new Jg(e)},n.getProxyProcessor=function(){return{get:function(r,s){return s==="proxyOf"?r:s==="root"?function(){return r.root().toProxy()}:r[s]},set:function(r,s,o){return r[s]===o||(r[s]=o,(s==="prop"||s==="value"||s==="name"||s==="params"||s==="important"||s==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[Zn]){this[Zn]=!1;for(var e=this;e=e.parent;)e[Zn]=!1}},n.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},n.positionBy=function(e,r){var s=this.source.start;if(e.index)s=this.positionInside(e.index,r);else if(e.word){r=this.toString();var o=r.indexOf(e.word);o!==-1&&(s=this.positionInside(o,r))}return s},n.positionInside=function(e,r){for(var s=r||this.toString(),o=this.source.start.column,a=this.source.start.line,u=0;u<e;u++)s[u]==="\n"?(o=1,a+=1):o+=1;return{column:o,line:a}},n.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},n.rangeBy=function(e){var r={column:this.source.start.column,line:this.source.start.line},s=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(e.word){var o=this.toString(),a=o.indexOf(e.word);a!==-1&&(r=this.positionInside(a,o),s=this.positionInside(a+e.word.length,o))}else e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=this.positionInside(e.index)),e.end?s={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?s=this.positionInside(e.endIndex):e.index&&(s=this.positionInside(e.index+1));return(s.line<r.line||s.line===r.line&&s.column<=r.column)&&(s={column:r.column+1,line:r.line}),{end:s,start:r}},n.raw=function(e,r){var s=new Xg;return s.raw(this,e,r)},n.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},n.replaceWith=function(){for(var e=arguments.length,r=new Array(e),s=0;s<e;s++)r[s]=arguments[s];if(this.parent){for(var o=this,a=!1,u=I(r),c;!(c=u()).done;){var l=c.value;l===this?a=!0:a?(this.parent.insertAfter(o,l),o=l):this.parent.insertBefore(o,l)}a||this.remove()}return this},n.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},n.toJSON=function(e,r){var s={},o=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))s[u]=c.map(function(f){return(typeof f=="undefined"?"undefined":T(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof c=="undefined"?"undefined":T(c))==="object"&&c.toJSON)s[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++),s[u]={end:c.end,inputId:l,start:c.start}}else s[u]=c}return o&&(s.inputs=[].concat(r.keys()).map(function(f){return f.toJSON()})),s},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(e){e===void 0&&(e=Zg),e.stringify&&(e=e.stringify);var r="";return e(this,function(s){r+=s}),r},n.warn=function(e,r,s){var o={node:this};for(var a in s)o[a]=s[a];return e.warn(r,o)},ie(t,[{key:"proxyOf",get:function(){return this}}]),t})(),Qn=vo;vo.default=vo;var Qg=Qn,go=(function(t){ce(n,t);function n(i){var e;return i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=z({},i,{value:String(i.value)})),e=t.call(this,i)||this,e.type="decl",e}return ie(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n})(Qg),ei=go;go.default=go;var em="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",tm=function(t){t===void 0&&(t=21);for(var n="",i=t;i--;)n+=em[Math.random()*64|0];return n},rm={nanoid:tm},Vc=ye.SourceMapConsumer,jc=ye.SourceMapGenerator,nm=ye.existsSync,im=ye.readFileSync,mo=ye.dirname,sm=ye.join;function om(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var yo=(function(){function t(i,e){if(e.map!==!1){this.loadAnnotation(i),this.inline=this.startWith(this.annotation,"data:");var r=e.map?e.map.prev:void 0,s=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=mo(this.mapFile)),s&&(this.text=s)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new Vc(this.text)),this.consumerCache},n.decodeInline=function(e){var r=/^data:application\/json;charset=utf-?8;base64,/,s=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(o.test(e)||a.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(r.test(e)||s.test(e))return om(e.substr(RegExp.lastMatch.length));var u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},n.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(e){return(typeof e=="undefined"?"undefined":T(e))!=="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)},n.loadAnnotation=function(e){var r=e.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var s=e.lastIndexOf(r.pop()),o=e.indexOf("*/",s);s>-1&&o>-1&&(this.annotation=this.getAnnotationURL(e.substring(s,o)))}},n.loadFile=function(e){if(this.root=mo(e),nm(e))return this.mapFile=e,im(e,"utf-8").toString().trim()},n.loadMap=function(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){var s=r(e);if(s){var o=this.loadFile(s);if(!o)throw new Error("Unable to load previous source map: "+s.toString());return o}}else{if(M(r,Vc))return jc.fromSourceMap(r).toString();if(M(r,jc))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 e&&(a=sm(mo(e),a)),this.loadFile(a)}}},n.startWith=function(e,r){return e?e.substr(0,r.length)===r:!1},n.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t})(),Hc=yo;yo.default=yo;var am=ye.SourceMapConsumer,um=ye.SourceMapGenerator,Yc=ye.fileURLToPath,ti=ye.pathToFileURL,_o=ye.isAbsolute,wo=ye.resolve,cm=rm.nanoid,bo=ye,Kc=lo,lm=Hc,So=Symbol("fromOffsetCache"),fm=!!(am&&um),Jc=!!(wo&&_o),ri=(function(){function t(i,e){if(e===void 0&&(e={}),i===null||typeof i=="undefined"||(typeof i=="undefined"?"undefined":T(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,e.from&&(!Jc||/^\w+:\/\//.test(e.from)||_o(e.from)?this.file=e.from:this.file=wo(e.from)),Jc&&fm){var r=new lm(this.css,e);if(r.text){this.map=r;var s=r.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+cm(6)+">"),this.map&&(this.map.file=this.from)}var n=t.prototype;return n.error=function(e,r,s,o){o===void 0&&(o={});var a,u,c;if(r&&(typeof r=="undefined"?"undefined":T(r))==="object"){var l=r,f=s;if(typeof l.offset=="number"){var p=this.fromOffset(l.offset);r=p.line,s=p.col}else r=l.line,s=l.column;if(typeof f.offset=="number"){var g=this.fromOffset(f.offset);u=g.line,c=g.col}else u=f.line,c=f.column}else if(!s){var v=this.fromOffset(r);r=v.line,s=v.col}var y=this.origin(r,s,u,c);return y?a=new Kc(e,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,o.plugin):a=new Kc(e,u===void 0?r:{column:s,line:r},u===void 0?s:{column:c,line:u},this.css,this.file,o.plugin),a.input={column:s,endColumn:c,endLine:u,line:r,source:this.css},this.file&&(ti&&(a.input.url=ti(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(e){var r,s;if(this[So])s=this[So];else{var o=this.css.split("\n");s=new Array(o.length);for(var a=0,u=0,c=o.length;u<c;u++)s[u]=a,a+=o[u].length+1;this[So]=s}r=s[s.length-1];var l=0;if(e>=r)l=s.length-1;else for(var f=s.length-2,p;l<f;)if(p=l+(f-l>>1),e<s[p])f=p-1;else if(e>=s[p+1])l=p+1;else{l=p;break}return{col:e-s[l]+1,line:l+1}},n.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:wo(this.map.consumer().sourceRoot||this.map.root||".",e)},n.origin=function(e,r,s,o){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:r,line:e});if(!u.source)return!1;var c;typeof s=="number"&&(c=a.originalPositionFor({column:o,line:s}));var l;_o(u.source)?l=ti(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||ti(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(Yc)f.file=Yc(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 e={},r=0,s=["hasBOM","css","file","id"];r<s.length;r++){var o=s[r];this[o]!=null&&(e[o]=this[o])}return this.map&&(e.map=z({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},ie(t,[{key:"from",get:function(){return this.file||this.id}}]),t})(),ni=ri;ri.default=ri,bo&&bo.registerInput&&bo.registerInput(ri);var Xc=ye.SourceMapConsumer,ii=ye.SourceMapGenerator,si=ye.dirname,Zc=ye.relative,Qc=ye.resolve,el=ye.sep,tl=ye.pathToFileURL,hm=ni,pm=!!(Xc&&ii),dm=!!(si&&Qc&&Zc&&el),vm=(function(){function t(i,e,r,s){this.stringify=i,this.mapOpts=r.map||{},this.root=e,this.opts=r,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var n=t.prototype;return n.addAnnotation=function(){var e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";var r="\n";this.css.includes("\r\n")&&(r="\r\n"),this.css+=r+"/*# sourceMappingURL="+e+" */"},n.applyPrevMaps=function(){for(var e=I(this.previous()),r;!(r=e()).done;){var s=r.value,o=this.toUrl(this.path(s.file)),a=s.root||si(s.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new Xc(s.text),u.sourcesContent&&(u.sourcesContent=null)):u=s.consumer(),this.map.applySourceMap(u,o,this.toUrl(this.path(a)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.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(),dm&&pm&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(r){e+=r}),[e]},n.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=ii.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new ii({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 e=this;this.css="",this.map=new ii({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,s=1,o="<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(e.css+=l,f&&p!=="end"&&(a.generated.line=r,a.generated.column=s-1,f.source&&f.source.start?(a.source=e.sourcePath(f),a.original.line=f.source.start.line,a.original.column=f.source.start.column-1,e.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,e.map.addMapping(a))),u=l.match(/\n/g),u?(r+=u.length,c=l.lastIndexOf("\n"),s=l.length-c):s+=l.length,f&&p!=="start"){var g=f.parent||{raws:{}},v=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!v||f!==g.last||g.raws.semicolon)&&(f.source&&f.source.end?(a.source=e.sourcePath(f),a.original.line=f.source.end.line,a.original.column=f.source.end.column-1,a.generated.line=r,a.generated.column=s-2,e.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=s-1,e.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(e){return e.annotation}):!0},n.isInline=function(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;var e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!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(e){return e.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(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var r=this.memoizedPaths.get(e);if(r)return r;var s=this.opts.to?si(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(s=si(Qc(s,this.mapOpts.annotation)));var o=Zc(s,e);return this.memoizedPaths.set(e,o),o},n.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(s){if(s.source&&s.source.input.map){var o=s.source.input.map;e.previousMaps.includes(o)||e.previousMaps.push(o)}});else{var r=new hm(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},n.setSourcesContent=function(){var e=this,r={};if(this.root)this.root.walk(function(o){if(o.source){var a=o.source.input.from;if(a&&!r[a]){r[a]=!0;var u=e.usesFileUrls?e.toFileUrl(a):e.toUrl(e.path(a));e.map.setSourceContent(u,o.source.input.css)}}});else if(this.css){var s=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(s,this.css)}},n.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},n.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},n.toFileUrl=function(e){var r=this.memoizedFileURLs.get(e);if(r)return r;if(tl){var s=tl(e).toString();return this.memoizedFileURLs.set(e,s),s}else throw new Error("`map.absolute` option is not available in this PostCSS build")},n.toUrl=function(e){var r=this.memoizedURLs.get(e);if(r)return r;el==="\\"&&(e=e.replace(/\\/g,"/"));var s=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,s),s},t})(),rl=vm,gm=Qn,Co=(function(t){ce(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="comment",e}return n})(gm),oi=Co;Co.default=Co;var nl=mt.isClean,il=mt.my,sl=ei,ol=oi,mm=Qn,al,Eo,Io,ul;function cl(t){return t.map(function(n){return n.nodes&&(n.nodes=cl(n.nodes)),delete n.source,n})}function ll(t){if(t[nl]=!1,t.proxyOf.nodes)for(var n=I(t.proxyOf.nodes),i;!(i=n()).done;){var e=i.value;ll(e)}}var st=(function(t){ce(n,t);function n(){return t.apply(this,arguments)||this}var i=n.prototype;return i.append=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];for(var a=I(s),u;!(u=a()).done;)for(var c=u.value,l=this.normalize(c,this.last),f=I(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.push(g)}return this.markDirty(),this},i.cleanRaws=function(r){if(t.prototype.cleanRaws.call(this,r),this.nodes)for(var s=I(this.nodes),o;!(o=s()).done;){var a=o.value;a.cleanRaws(r)}},i.each=function(r){if(this.proxyOf.nodes){for(var s=this.getIterator(),o,a;this.indexes[s]<this.proxyOf.nodes.length&&(o=this.indexes[s],a=r(this.proxyOf.nodes[o],o),a!==!1);)this.indexes[s]+=1;return delete this.indexes[s],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(s,o){return o==="proxyOf"?s:s[o]?o==="each"||typeof o=="string"&&o.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=s)[o].apply(l,[].concat(u.map(function(f){return typeof f=="function"?function(p,g){return f(p.toProxy(),g)}:f})))}:o==="every"||o==="some"?function(a){return s[o](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))})}:o==="root"?function(){return s.root().toProxy()}:o==="nodes"?s.nodes.map(function(a){return a.toProxy()}):o==="first"||o==="last"?s[o].toProxy():s[o]:s[o]},set:function(s,o,a){return s[o]===a||(s[o]=a,(o==="name"||o==="params"||o==="selector")&&s.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,s){var o=this.index(r),a=this.normalize(s,this.proxyOf.nodes[o]).reverse();o=this.index(r);for(var u=I(a),c;!(c=u()).done;){var l=c.value;this.proxyOf.nodes.splice(o+1,0,l)}var f;for(var p in this.indexes)f=this.indexes[p],o<f&&(this.indexes[p]=f+a.length);return this.markDirty(),this},i.insertBefore=function(r,s){var o=this.index(r),a=o===0?"prepend":!1,u=this.normalize(s,this.proxyOf.nodes[o],a).reverse();o=this.index(r);for(var c=I(u),l;!(l=c()).done;){var f=l.value;this.proxyOf.nodes.splice(o,0,f)}var p;for(var g in this.indexes)p=this.indexes[g],o<=p&&(this.indexes[g]=p+u.length);return this.markDirty(),this},i.normalize=function(r,s){var o=this;if(typeof r=="string")r=cl(al(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=I(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=I(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 sl(r)]}else if(r.selector)r=[new Eo(r)];else if(r.name)r=[new Io(r)];else if(r.text)r=[new ol(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(v){return v[il]||n.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[nl]&&ll(v),typeof v.raws.before=="undefined"&&s&&typeof s.raws.before!="undefined"&&(v.raws.before=s.raws.before.replace(/\S/g,"")),v.parent=o.proxyOf,v});return g},i.prepend=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];s=s.reverse();for(var a=I(s),u;!(u=a()).done;){for(var c=u.value,l=this.normalize(c,this.first,"prepend").reverse(),f=I(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.unshift(g)}for(var v in this.indexes)this.indexes[v]=this.indexes[v]+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=I(this.proxyOf.nodes),s;!(s=r()).done;){var o=s.value;o.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 s;for(var o in this.indexes)s=this.indexes[o],s>=r&&(this.indexes[o]=s-1);return this.markDirty(),this},i.replaceValues=function(r,s,o){return o||(o=s,s={}),this.walkDecls(function(a){s.props&&!s.props.includes(a.prop)||s.fast&&!a.value.includes(s.fast)||(a.value=a.value.replace(r,o))}),this.markDirty(),this},i.some=function(r){return this.nodes.some(r)},i.walk=function(r){return this.each(function(s,o){var a;try{a=r(s,o)}catch(u){throw s.addToError(u)}return a!==!1&&s.walk&&(a=s.walk(r)),a})},i.walkAtRules=function(r,s){return s?M(r,RegExp)?this.walk(function(o,a){if(o.type==="atrule"&&r.test(o.name))return s(o,a)}):this.walk(function(o,a){if(o.type==="atrule"&&o.name===r)return s(o,a)}):(s=r,this.walk(function(o,a){if(o.type==="atrule")return s(o,a)}))},i.walkComments=function(r){return this.walk(function(s,o){if(s.type==="comment")return r(s,o)})},i.walkDecls=function(r,s){return s?M(r,RegExp)?this.walk(function(o,a){if(o.type==="decl"&&r.test(o.prop))return s(o,a)}):this.walk(function(o,a){if(o.type==="decl"&&o.prop===r)return s(o,a)}):(s=r,this.walk(function(o,a){if(o.type==="decl")return s(o,a)}))},i.walkRules=function(r,s){return s?M(r,RegExp)?this.walk(function(o,a){if(o.type==="rule"&&r.test(o.selector))return s(o,a)}):this.walk(function(o,a){if(o.type==="rule"&&o.selector===r)return s(o,a)}):(s=r,this.walk(function(o,a){if(o.type==="rule")return s(o,a)}))},ie(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})(mm);st.registerParse=function(t){al=t},st.registerRule=function(t){Eo=t},st.registerAtRule=function(t){Io=t},st.registerRoot=function(t){ul=t};var Bt=st;st.default=st,st.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,Io.prototype):t.type==="rule"?Object.setPrototypeOf(t,Eo.prototype):t.type==="decl"?Object.setPrototypeOf(t,sl.prototype):t.type==="comment"?Object.setPrototypeOf(t,ol.prototype):t.type==="root"&&Object.setPrototypeOf(t,ul.prototype),t[il]=!0,t.nodes&&t.nodes.forEach(function(n){st.rebuild(n)})};var ym=Bt,fl,hl,Yr=(function(t){ce(n,t);function n(e){var r;return r=t.call(this,z({type:"document"},e))||this,r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.toResult=function(r){r===void 0&&(r={});var s=new fl(new hl,this,r);return s.stringify()},n})(ym);Yr.registerLazyResult=function(t){fl=t},Yr.registerProcessor=function(t){hl=t};var Oo=Yr;Yr.default=Yr;var pl={},dl=function(n){pl[n]||(pl[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},xo=(function(){function t(i,e){if(e===void 0&&(e={}),this.type="warning",this.text=i,e.node&&e.node.source){var r=e.node.rangeBy(e);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var s in e)this[s]=e[s]}var n=t.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},t})(),vl=xo;xo.default=xo;var _m=vl,ko=(function(){function t(i,e,r){this.processor=i,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}var n=t.prototype;return n.toString=function(){return this.css},n.warn=function(e,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var s=new _m(e,r);return this.messages.push(s),s},n.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},ie(t,[{key:"content",get:function(){return this.css}}]),t})(),Ro=ko;ko.default=ko;var Ao=39,gl=34,ai=92,ml=47,ui=10,Kr=32,ci=12,li=9,fi=13,wm=91,bm=93,Sm=40,Cm=41,Em=123,Im=125,Om=59,xm=42,km=58,Rm=64,hi=/[\t\n\f\r "#'()/;[\\\]{}]/g,pi=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Am=/.[\r\n"'(/\\]/,yl=/[\da-f]/i,Mm=function(n,i){i===void 0&&(i={});var e=n.css.valueOf(),r=i.ignoreErrors,s,o,a,u,c,l,f,p,g,v,y=e.length,d=0,m=[],_=[];function b(){return d}function C(k){throw n.error("Unclosed "+k,d)}function S(){return _.length===0&&d>=y}function O(k){if(_.length)return _.pop();if(!(d>=y)){var $=k?k.ignoreUnclosed:!1;switch(s=e.charCodeAt(d),s){case ui:case Kr:case li:case fi:case ci:{o=d;do o+=1,s=e.charCodeAt(o);while(s===Kr||s===ui||s===li||s===fi||s===ci);v=["space",e.slice(d,o)],d=o-1;break}case wm:case bm:case Em:case Im:case km:case Om:case Cm:{var W=String.fromCharCode(s);v=[W,W,d];break}case Sm:{if(p=m.length?m.pop()[1]:"",g=e.charCodeAt(d+1),p==="url"&&g!==Ao&&g!==gl&&g!==Kr&&g!==ui&&g!==li&&g!==ci&&g!==fi){o=d;do{if(l=!1,o=e.indexOf(")",o+1),o===-1)if(r||$){o=d;break}else C("bracket");for(f=o;e.charCodeAt(f-1)===ai;)f-=1,l=!l}while(l);v=["brackets",e.slice(d,o+1),d,o],d=o}else o=e.indexOf(")",d+1),u=e.slice(d,o+1),o===-1||Am.test(u)?v=["(","(",d]:(v=["brackets",u,d,o],d=o);break}case Ao:case gl:{a=s===Ao?"'":'"',o=d;do{if(l=!1,o=e.indexOf(a,o+1),o===-1)if(r||$){o=d+1;break}else C("string");for(f=o;e.charCodeAt(f-1)===ai;)f-=1,l=!l}while(l);v=["string",e.slice(d,o+1),d,o],d=o;break}case Rm:{hi.lastIndex=d+1,hi.test(e),hi.lastIndex===0?o=e.length-1:o=hi.lastIndex-2,v=["at-word",e.slice(d,o+1),d,o],d=o;break}case ai:{for(o=d,c=!0;e.charCodeAt(o+1)===ai;)o+=1,c=!c;if(s=e.charCodeAt(o+1),c&&s!==ml&&s!==Kr&&s!==ui&&s!==li&&s!==fi&&s!==ci&&(o+=1,yl.test(e.charAt(o)))){for(;yl.test(e.charAt(o+1));)o+=1;e.charCodeAt(o+1)===Kr&&(o+=1)}v=["word",e.slice(d,o+1),d,o],d=o;break}default:{s===ml&&e.charCodeAt(d+1)===xm?(o=e.indexOf("*/",d+2)+1,o===0&&(r||$?o=e.length:C("comment")),v=["comment",e.slice(d,o+1),d,o],d=o):(pi.lastIndex=d+1,pi.test(e),pi.lastIndex===0?o=e.length-1:o=pi.lastIndex-2,v=["word",e.slice(d,o+1),d,o],m.push(v),d=o);break}}return d++,v}}function A(k){_.push(k)}return{back:A,endOfFile:S,nextToken:O,position:b}},_l=Bt,di=(function(t){ce(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="atrule",r}var i=n.prototype;return i.append=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.append).call.apply(a,[].concat([this],s))},i.prepend=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.prepend).call.apply(a,[].concat([this],s))},n})(_l),Mo=di;di.default=di,_l.registerAtRule(di);var wl=Bt,bl,Sl,hr=(function(t){ce(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="root",r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.normalize=function(r,s,o){var a=t.prototype.normalize.call(this,r);if(s){if(o==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(var u=I(a),c;!(c=u()).done;){var l=c.value;l.raws.before=s.raws.before}}return a},i.removeChild=function(r,s){var o=this.index(r);return!s&&o===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[o].raws.before),t.prototype.removeChild.call(this,r)},i.toResult=function(r){r===void 0&&(r={});var s=new bl(new Sl,this,r);return s.stringify()},n})(wl);hr.registerLazyResult=function(t){bl=t},hr.registerProcessor=function(t){Sl=t};var Jr=hr;hr.default=hr,wl.registerRoot(hr);var Xr={comma:function(n){return Xr.split(n,[","],!0)},space:function(n){var i=[" ","\n"," "];return Xr.split(n,i)},split:function(n,i,e){for(var r=[],s="",o=!1,a=0,u=!1,c="",l=!1,f=I(n),p;!(p=f()).done;){var g=p.value;l?l=!1:g==="\\"?l=!0:u?g===c&&(u=!1):g==='"'||g==="'"?(u=!0,c=g):g==="("?a+=1:g===")"?a>0&&(a-=1):a===0&&i.includes(g)&&(o=!0),o?(s!==""&&r.push(s.trim()),s="",o=!1):s+=g}return(e||s!=="")&&r.push(s.trim()),r}},Cl=Xr;Xr.default=Xr;var El=Bt,Tm=Cl,vi=(function(t){ce(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return ie(n,[{key:"selectors",get:function(){return Tm.comma(this.selector)},set:function(e){var r=this.selector?this.selector.match(/,\s*/):null,s=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(s)}}]),n})(El),To=vi;vi.default=vi,El.registerRule(vi);var Pm=ei,$m=Mm,Nm=oi,Lm=Mo,Dm=Jr,Il=To,Ol={empty:!0,space:!0};function Fm(t){for(var n=t.length-1;n>=0;n--){var i=t[n],e=i[3]||i[2];if(e)return e}}var Um=(function(){function t(i){this.input=i,this.root=new Dm,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=t.prototype;return n.atrule=function(e){var r=new Lm;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);for(var s,o,a,u=!1,c=!1,l=[],f=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),s=e[0],s==="("||s==="["?f.push(s==="("?")":"]"):s==="{"&&f.length>0?f.push("}"):s===f[f.length-1]&&f.pop(),f.length===0)if(s===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(s==="{"){c=!0;break}else if(s==="}"){if(l.length>0){for(a=l.length-1,o=l[a];o&&o[0]==="space";)o=l[--a];o&&(r.source.end=this.getPosition(o[3]||o[2]),r.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);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&&(e=l[l.length-1],r.source.end=this.getPosition(e[3]||e[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(e){var r=this.colon(e);if(r!==!1){for(var s=0,o,a=r-1;a>=0&&(o=e[a],!(o[0]!=="space"&&(s+=1,s===2)));a--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}},n.colon=function(e){for(var r=0,s,o,a,u=I(e.entries()),c;!(c=u()).done;){var l=c.value,f=l[0],p=l[1];if(s=p,o=s[0],o==="("&&(r+=1),o===")"&&(r-=1),r===0&&o===":")if(!a)this.doubleColon(s);else{if(a[0]==="word"&&a[1]==="progid")continue;return f}a=s}return!1},n.comment=function(e){var r=new Nm;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;var s=e[1].slice(2,-2);if(/^\s*$/.test(s))r.text="",r.raws.left=s,r.raws.right="";else{var o=s.match(/^(\s*)([^]*\S)(\s*)$/);r.text=o[2],r.raws.left=o[1],r.raws.right=o[3]}},n.createTokenizer=function(){this.tokenizer=$m(this.input)},n.decl=function(e,r){var s=new Pm;this.init(s,e[0][2]);var o=e[e.length-1];for(o[0]===";"&&(this.semicolon=!0,e.pop()),s.source.end=this.getPosition(o[3]||o[2]||Fm(e)),s.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),s.raws.before+=e.shift()[1];for(s.source.start=this.getPosition(e[0][2]),s.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;s.prop+=e.shift()[1]}s.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){s.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),s.raws.between+=u[1];(s.prop[0]==="_"||s.prop[0]==="*")&&(s.raws.before+=s.prop[0],s.prop=s.prop.slice(1));for(var c=[],l;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)c.push(e.shift());this.precheckMissedSemicolon(e);for(var f=e.length-1;f>=0;f--){if(u=e[f],u[1].toLowerCase()==="!important"){s.important=!0;var p=this.stringFrom(e,f);p=this.spacesFromEnd(e)+p,p!==" !important"&&(s.raws.important=p);break}else if(u[1].toLowerCase()==="important"){for(var g=e.slice(0),v="",y=f;y>0;y--){var d=g[y][0];if(v.trim().indexOf("!")===0&&d!=="space")break;v=g.pop()[1]+v}v.trim().indexOf("!")===0&&(s.important=!0,s.raws.important=v,e=g)}if(u[0]!=="space"&&u[0]!=="comment")break}var m=e.some(function(_){return _[0]!=="space"&&_[0]!=="comment"});m&&(s.raws.between+=c.map(function(_){return _[1]}).join(""),c=[]),this.raw(s,"value",c.concat(e),r),s.value.includes(":")&&!r&&this.checkMissedSemicolon(e)},n.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},n.emptyRule=function(e){var r=new Il;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r},n.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},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(e){if(this.spaces+=e[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(e){var r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}},n.init=function(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},n.other=function(e){for(var r=!1,s=null,o=!1,a=null,u=[],c=e[1].startsWith("--"),l=[],f=e;f;){if(s=f[0],l.push(f),s==="("||s==="[")a||(a=f),u.push(s==="("?")":"]");else if(c&&o&&s==="{")a||(a=f),u.push("}");else if(u.length===0)if(s===";")if(o){this.decl(l,c);return}else break;else if(s==="{"){this.rule(l);return}else if(s==="}"){this.tokenizer.back(l.pop()),r=!0;break}else s===":"&&(o=!0);else s===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&&o){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 e;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},n.precheckMissedSemicolon=function(){},n.raw=function(e,r,s,o){for(var a,u,c=s.length,l="",f=!0,p,g,v=0;v<c;v+=1)a=s[v],u=a[0],u==="space"&&v===c-1&&!o?f=!1:u==="comment"?(g=s[v-1]?s[v-1][0]:"empty",p=s[v+1]?s[v+1][0]:"empty",!Ol[g]&&!Ol[p]?l.slice(-1)===","?f=!1:l+=a[1]:f=!1):l+=a[1];if(!f){var y=s.reduce(function(d,m){return d+m[1]},"");e.raws[r]={raw:y,value:l}}e[r]=l},n.rule=function(e){e.pop();var r=new Il;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r},n.spacesAndCommentsFromEnd=function(e){for(var r,s="";e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)s=e.pop()[1]+s;return s},n.spacesAndCommentsFromStart=function(e){for(var r,s="";e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)s+=e.shift()[1];return s},n.spacesFromEnd=function(e){for(var r,s="";e.length&&(r=e[e.length-1][0],r==="space");)s=e.pop()[1]+s;return s},n.stringFrom=function(e,r){for(var s="",o=r;o<e.length;o++)s+=e[o][1];return e.splice(r,e.length-r),s},n.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},n.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},n.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},n.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},n.unnamedAtrule=function(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},t})(),Bm=Um,zm=Bt,qm=Bm,Wm=ni;function gi(t,n){var i=new Wm(t,n),e=new qm(i);try{e.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 e.root}var Po=gi;gi.default=gi,zm.registerParse(gi);var He=mt.isClean,Gm=mt.my,Vm=rl,jm=Xn,Hm=Bt,Ym=Oo,Km=dl,xl=Ro,Jm=Po,Xm=Jr,Zm={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Qm={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},ey={Once:!0,postcssPlugin:!0,prepare:!0},pr=0;function Zr(t){return(typeof t=="undefined"?"undefined":T(t))==="object"&&typeof t.then=="function"}function kl(t){var n=!1,i=Zm[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[i,i+"-"+n,pr,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:t.append?[i,pr,i+"Exit"]:[i,i+"Exit"]}function Rl(t){var n;return t.type==="document"?n=["Document",pr,"DocumentExit"]:t.type==="root"?n=["Root",pr,"RootExit"]:n=kl(t),{eventIndex:0,events:n,iterator:0,node:t,visitorIndex:0,visitors:[]}}function $o(t){return t[He]=!1,t.nodes&&t.nodes.forEach(function(n){return $o(n)}),t}var No={},dr=(function(){function t(i,e,r){var s=this;this.stringified=!1,this.processed=!1;var o;if((typeof e=="undefined"?"undefined":T(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))o=$o(e);else if(M(e,t)||M(e,xl))o=$o(e.root),e.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=e.map);else{var a=Jm;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{o=a(e,r)}catch(u){this.processed=!0,this.error=u}o&&!o[Gm]&&Hm.rebuild(o)}this.result=new xl(i,o,r),this.helpers=z({},No,{postcss:No,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":T(u))==="object"&&u.prepare?z({},u,u.prepare(s.result)):u})}var n=t.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(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},n.handleError=function(e,r){var s=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=s.postcssPlugin,e.setMessage();else if(s.postcssVersion&&process.env.NODE_ENV!=="production"){var o=s.postcssPlugin,a=s.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 "+o+" uses "+a+". Perhaps this is the source of the error below.")}}catch(f){console&&console.error&&console.error(f)}return e},n.prepareVisitors=function(){var e=this;this.listeners={};for(var r=function(l,f,p){e.listeners[f]||(e.listeners[f]=[]),e.listeners[f].push([l,p])},s=I(this.plugins),o;!(o=s()).done;){var a=o.value;if((typeof a=="undefined"?"undefined":T(a))==="object")for(var u in a){if(!Qm[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!ey[u])if(T(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 e=this;return Cn(function(){var r,s,o,a,u,c,l,f,p,g,v,y;return Dt(this,function(d){switch(d.label){case 0:e.plugin=0,r=0,d.label=1;case 1:if(!(r<e.plugins.length))return[3,6];if(s=e.plugins[r],o=e.runOnRoot(s),!Zr(o))return[3,5];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,o];case 3:return d.sent(),[3,5];case 4:throw a=d.sent(),e.handleError(a);case 5:return r++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];u=e.result.root,d.label=7;case 7:if(u[He])return[3,14];u[He]=!0,c=[Rl(u)],d.label=8;case 8:if(!(c.length>0))return[3,13];if(l=e.visitTick(c),!Zr(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,e.handleError(f,p);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];g=function(){var m,_,b,C,S;return Dt(this,function(O){switch(O.label){case 0:m=y.value,_=m[0],b=m[1],e.result.lastPlugin=_,O.label=1;case 1:return O.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(C=u.nodes.map(function(A){return b(A,e.helpers)}),[4,Promise.all(C)]);case 2:return O.sent(),[3,5];case 3:return[4,b(u,e.helpers)];case 4:O.sent(),O.label=5;case 5:return[3,7];case 6:throw S=O.sent(),e.handleError(S);case 7:return[2]}})},v=I(e.listeners.OnceExit),d.label=15;case 15:return(y=v()).done?[3,18]:[5,xs(g())];case 16:d.sent(),d.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},n.runOnRoot=function(e){var r=this;this.result.lastPlugin=e;try{if((typeof e=="undefined"?"undefined":T(e))==="object"&&e.Once){if(this.result.root.type==="document"){var s=this.result.root.nodes.map(function(o){return e.Once(o,r.helpers)});return Zr(s[0])?Promise.all(s):s}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(o){throw this.handleError(o)}},n.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,r=jm;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var s=new Vm(r,this.result.root,this.result.opts),o=s.generate();return this.result.css=o[0],this.result.map=o[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 e=I(this.plugins),r;!(r=e()).done;){var s=r.value,o=this.runOnRoot(s);if(Zr(o))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[He];)a[He]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=I(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(e,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||Km("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)},n.toString=function(){return this.css},n.visitSync=function(e,r){for(var s=I(e),o;!(o=s()).done;){var a=o.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(Zr(l))throw this.getAsyncError()}},n.visitTick=function(e){var r=e[e.length-1],s=r.node,o=r.visitors;if(s.type!=="root"&&s.type!=="document"&&!s.parent){e.pop();return}if(o.length>0&&r.visitorIndex<o.length){var a=o[r.visitorIndex],u=a[0],c=a[1];r.visitorIndex+=1,r.visitorIndex===o.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=u;try{return c(s.toProxy(),this.helpers)}catch(v){throw this.handleError(v,s)}}if(r.iterator!==0){for(var l=r.iterator,f;f=s.nodes[s.indexes[l]];)if(s.indexes[l]+=1,!f[He]){f[He]=!0,e.push(Rl(f));return}r.iterator=0,delete s.indexes[l]}for(var p=r.events;r.eventIndex<p.length;){var g=p[r.eventIndex];if(r.eventIndex+=1,g===pr){s.nodes&&s.nodes.length&&(s[He]=!0,r.iterator=s.getIterator());return}else if(this.listeners[g]){r.visitors=this.listeners[g];return}}e.pop()},n.walkSync=function(e){var r=this;e[He]=!0;for(var s=kl(e),o=I(s),a;!(a=o()).done;){var u=a.value;if(u===pr)e.nodes&&e.each(function(l){l[He]||r.walkSync(l)});else{var c=this.listeners[u];if(c&&this.visitSync(c,e.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},ie(t,[{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"}}]),t})();dr.registerPostcss=function(t){No=t};var Al=dr;dr.default=dr,Xm.registerLazyResult(dr),Ym.registerLazyResult(dr);var ty=rl,ry=Xn,ny=dl,iy=Po,sy=Ro,Lo=(function(){function t(i,e,r){e=e.toString(),this.stringified=!1,this._processor=i,this._css=e,this._opts=r,this._map=void 0;var s,o=ry;this.result=new sy(this._processor,s,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new ty(o,s,this._opts,e);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=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.sync=function(){if(this.error)throw this.error;return this.result},n.then=function(e,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||ny("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)},n.toString=function(){return this._css},n.warnings=function(){return[]},ie(t,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,r=iy;try{e=r(this._css,this._opts)}catch(s){this.error=s}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),t})(),oy=Lo;Lo.default=Lo;var ay=oy,uy=Al,cy=Oo,ly=Jr,Qr=(function(){function t(i){i===void 0&&(i=[]),this.version="8.4.38",this.plugins=this.normalize(i)}var n=t.prototype;return n.normalize=function(e){for(var r=[],s=I(e),o;!(o=s()).done;){var a=o.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":T(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":T(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":T(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(e,r){return r===void 0&&(r={}),!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new ay(this,e,r):new uy(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t})(),fy=Qr;Qr.default=Qr,ly.registerProcessor(Qr),cy.registerProcessor(Qr);var hy=ei,py=Hc,dy=oi,vy=Mo,gy=ni,my=Jr,yy=To;function en(t,n){if(Array.isArray(t))return t.map(function(f){return en(f)});var i=t.inputs,e=Lt(t,["inputs"]);if(i){n=[];for(var r=I(i),s;!(s=r()).done;){var o=s.value,a=z({},o,{__proto__:gy.prototype});a.map&&(a.map=z({},a.map,{__proto__:py.prototype})),n.push(a)}}if(e.nodes&&(e.nodes=t.nodes.map(function(f){return en(f,n)})),e.source){var u=e.source,c=u.inputId,l=Lt(u,["inputId"]);e.source=l,c!=null&&(e.source.input=n[c])}if(e.type==="root")return new my(e);if(e.type==="decl")return new hy(e);if(e.type==="rule")return new yy(e);if(e.type==="comment")return new dy(e);if(e.type==="atrule")return new vy(e);throw new Error("Unknown node type: "+t.type)}var _y=en;en.default=en;var wy=lo,Ml=ei,by=Al,Sy=Bt,Do=fy,Cy=Xn,Ey=_y,Tl=Oo,Iy=vl,Pl=oi,$l=Mo,Oy=Ro,xy=ni,ky=Po,Ry=Cl,Nl=To,Ll=Jr,Ay=Qn;function Z(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new Do(n)}Z.plugin=function(n,i){var e=!1;function r(){for(var o=arguments.length,a=new Array(o),u=0;u<o;u++)a[u]=arguments[u];console&&console.warn&&!e&&(e=!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 Do().version,c}var s;return Object.defineProperty(r,"postcss",{get:function(){return s||(s=r()),s}}),r.process=function(o,a,u){return Z([r(u)]).process(o,a)},r},Z.stringify=Cy,Z.parse=ky,Z.fromJSON=Ey,Z.list=Ry,Z.comment=function(t){return new Pl(t)},Z.atRule=function(t){return new $l(t)},Z.decl=function(t){return new Ml(t)},Z.rule=function(t){return new Nl(t)},Z.root=function(t){return new Ll(t)},Z.document=function(t){return new Tl(t)},Z.CssSyntaxError=wy,Z.Declaration=Ml,Z.Container=Sy,Z.Processor=Do,Z.Document=Tl,Z.Comment=Pl,Z.Warning=Iy,Z.AtRule=$l,Z.Result=Oy,Z.Input=xy,Z.Rule=Nl,Z.Root=Ll,Z.Node=Ay,by.registerPostcss(Z);var My=Z;Z.default=Z;var fe=qg(My);fe.stringify,fe.fromJSON,fe.plugin,fe.parse,fe.list,fe.document,fe.comment,fe.atRule,fe.rule,fe.decl,fe.root,fe.CssSyntaxError,fe.Declaration,fe.Container,fe.Processor,fe.Document,fe.Comment,fe.Warning,fe.AtRule,fe.Result,fe.Input,fe.Rule,fe.Root,fe.Node;var Ty=(function(){function t(){for(var i=arguments.length,e=new Array(i),r=0;r<i;r++)e[r]=arguments[r];Fe(this,"parentElement",null),Fe(this,"parentNode",null),Fe(this,"ownerDocument"),Fe(this,"firstChild",null),Fe(this,"lastChild",null),Fe(this,"previousSibling",null),Fe(this,"nextSibling",null),Fe(this,"ELEMENT_NODE",1),Fe(this,"TEXT_NODE",3),Fe(this,"nodeType"),Fe(this,"nodeName"),Fe(this,"RRNodeType")}var n=t.prototype;return n.contains=function(e){if(M(e,t)){if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0}else return!1;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1},n.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},n.insertBefore=function(e,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},n.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},n.toString=function(){return"RRNode"},ie(t,[{key:"childNodes",get:function(){for(var e=[],r=this.firstChild;r;)e.push(r),r=r.nextSibling;return e}}]),t})(),Dl={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Fl={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},mi={},Py=function(){return!!globalThis.Zone};function Fo(t){if(mi[t])return mi[t];var n=globalThis[t],i=n.prototype,e=t in Dl?Dl[t]:void 0,r=!!(e&&e.every(function(l){var f,p;return!!((p=(f=Object.getOwnPropertyDescriptor(i,l))==null?void 0:f.get)!=null&&p.toString().includes("[native code]"))})),s=t in Fl?Fl[t]:void 0,o=!!(s&&s.every(function(l){var f;return typeof i[l]=="function"&&((f=i[l])==null?void 0:f.toString().includes("[native code]"))}));if(r&&o&&!Py())return mi[t]=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[t].prototype;return document.body.removeChild(a),c?mi[t]=c:i}catch(l){return i}}var Uo={};function yt(t,n,i){var e,r=t+"."+String(i);if(Uo[r])return Uo[r].call(n);var s=Fo(t),o=(e=Object.getOwnPropertyDescriptor(s,i))==null?void 0:e.get;return o?(Uo[r]=o,o.call(n)):n[i]}var Bo={};function Ul(t,n,i){var e=t+"."+String(i);if(Bo[e])return Bo[e].bind(n);var r=Fo(t),s=r[i];return typeof s!="function"?n[i]:(Bo[e]=s,s.bind(n))}function $y(t){return yt("Node",t,"childNodes")}function Ny(t){return yt("Node",t,"parentNode")}function Ly(t){return yt("Node",t,"parentElement")}function Dy(t){return yt("Node",t,"textContent")}function Fy(t,n){return Ul("Node",t,"contains")(n)}function Uy(t){return Ul("Node",t,"getRootNode")()}function By(t){return!t||!("host"in t)?null:yt("ShadowRoot",t,"host")}function zy(t){return t.styleSheets}function qy(t){return!t||!("shadowRoot"in t)?null:yt("Element",t,"shadowRoot")}function Wy(t,n){return yt("Element",t,"querySelector")(n)}function Gy(t,n){return yt("Element",t,"querySelectorAll")(n)}function Bl(){return Fo("MutationObserver").constructor}function zt(t,n,i){try{if(!(n in t))return function(){};var e=t[n],r=i(e);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:e}})),t[n]=r,function(){t[n]=e}}catch(s){return function(){}}}var V={childNodes:$y,parentNode:Ny,parentElement:Ly,textContent:Dy,contains:Fy,getRootNode:Uy,host:By,styleSheets:zy,shadowRoot:qy,querySelector:Wy,querySelectorAll:Gy,mutationObserver:Bl,patch:zt};function Ae(t,n,i){i===void 0&&(i=document);var e={capture:!0,passive:!0};return i.addEventListener(t,n,e),function(){return i.removeEventListener(t,n,e)}}var vr="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.",zl={map:{},getId:function(){return console.error(vr),-1},getNode:function(){return console.error(vr),null},removeNodeFromMap:function(){console.error(vr)},has:function(){return console.error(vr),!1},reset:function(){console.error(vr)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(zl=new Proxy(zl,{get:function(n,i,e){return i==="map"&&console.error(vr),Reflect.get(n,i,e)}}));function tn(t,n,i){i===void 0&&(i={});var e=null,r=0;return function(){for(var s=arguments.length,o=new Array(s),a=0;a<s;a++)o[a]=arguments[a];var u=Date.now();!r&&i.leading===!1&&(r=u);var c=n-(u-r),l=this;c<=0||c>n?(e&&(clearTimeout(e),e=null),r=u,t.apply(l,o)):!e&&i.trailing!==!1&&(e=setTimeout(function(){r=i.leading===!1?0:Date.now(),e=null,t.apply(l,o)},c))}}function yi(t,n,i,e,r){r===void 0&&(r=window);var s=r.Object.getOwnPropertyDescriptor(t,n);return r.Object.defineProperty(t,n,e?i:{set:function(a){var u=this;setTimeout(function(){i.set.call(u,a)},0),s&&s.set&&s.set.call(this,a)}}),function(){return yi(t,n,s||{},!0)}}var _i=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(_i=function(){return new Date().getTime()});function ql(t){var n,i,e,r,s=t.document;return{left:s.scrollingElement?s.scrollingElement.scrollLeft:t.pageXOffset!==void 0?t.pageXOffset:s.documentElement.scrollLeft||(s==null?void 0:s.body)&&((n=V.parentElement(s.body))==null?void 0:n.scrollLeft)||((i=s==null?void 0:s.body)==null?void 0:i.scrollLeft)||0,top:s.scrollingElement?s.scrollingElement.scrollTop:t.pageYOffset!==void 0?t.pageYOffset:(s==null?void 0:s.documentElement.scrollTop)||(s==null?void 0:s.body)&&((e=V.parentElement(s.body))==null?void 0:e.scrollTop)||((r=s==null?void 0:s.body)==null?void 0:r.scrollTop)||0}}function Wl(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Gl(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Vl(t){if(!t)return null;var n=t.nodeType===t.ELEMENT_NODE?t:V.parentElement(t);return n}function Me(t,n,i,e){if(!t)return!1;var r=Vl(t);if(!r)return!1;try{if(typeof n=="string"){if(r.classList.contains(n)||e&&r.closest("."+n)!==null)return!0}else if(An(r,n,e))return!0}catch(s){}return!!(i&&(r.matches(i)||e&&r.closest(i)!==null))}function Vy(t,n){return n.getId(t)!==-1}function zo(t,n,i){return t.tagName==="TITLE"&&i.headTitleMutations?!0:n.getId(t)===Br}function jl(t,n){if(Fr(t))return!1;var i=n.getId(t);if(!n.has(i))return!0;var e=V.parentNode(t);return e&&e.nodeType===t.DOCUMENT_NODE?!1:e?jl(e,n):!0}function qo(t){return!!t.changedTouches}function jy(t){t===void 0&&(t=window),"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Hl(t,n){return!!(t.nodeName==="IFRAME"&&n.getMeta(t))}function Yl(t,n){return!!(t.nodeName==="LINK"&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&t.getAttribute("rel")==="stylesheet"&&n.getMeta(t))}function Wo(t){return t?M(t,Ty)&&"shadowRoot"in t?!!t.shadowRoot:!!V.shadowRoot(t):!1}var Hy=(function(){function t(){x(this,"id",1),x(this,"styleIDMap",new WeakMap),x(this,"idStyleMap",new Map)}var n=t.prototype;return n.getId=function(e){var r;return(r=this.styleIDMap.get(e))!=null?r:-1},n.has=function(e){return this.styleIDMap.has(e)},n.add=function(e,r){if(this.has(e))return this.getId(e);var s;return r===void 0?s=this.id++:s=r,this.styleIDMap.set(e,s),this.idStyleMap.set(s,e),s},n.getStyle=function(e){return this.idStyleMap.get(e)||null},n.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},n.generateId=function(){return this.id++},n.remove=function(e){var r=this.styleIDMap.get(e);return r!==void 0?(this.styleIDMap.delete(e),this.idStyleMap.delete(r),!0):!1},t})();function Kl(t){var n,i=null;return"getRootNode"in t&&((n=V.getRootNode(t))==null?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&V.host(V.getRootNode(t))&&(i=V.host(V.getRootNode(t))),i}function Yy(t){for(var n=t,i;i=Kl(n);)n=i;return n}function Ky(t){var n=t.ownerDocument;if(!n)return!1;var i=Yy(t);return V.contains(n,i)}function Jl(t){var n=t.ownerDocument;return n?V.contains(n,t)||Ky(t):!1}var j=(function(t){return t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t})(j||{}),D=(function(t){return t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t})(D||{}),$e=(function(t){return t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel",t})($e||{}),ot=(function(t){return t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t})(ot||{}),gr=(function(t){return t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t})(gr||{}),mr=(function(t){return t[t.Play=0]="Play",t[t.Pause=1]="Pause",t[t.Seeked=2]="Seeked",t[t.VolumeChange=3]="VolumeChange",t[t.RateChange=4]="RateChange",t})(mr||{}),Xl=(function(t){return t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t})(Xl||{});function Zl(t){return"__ln"in t}var Jy=(function(){function t(){x(this,"length",0),x(this,"head",null),x(this,"tail",null)}var n=t.prototype;return n.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var r=this.head,s=0;s<e;s++)r=(r==null?void 0:r.next)||null;return r},n.addNode=function(e){var r={value:e,previous:null,next:null};if(e.__ln=r,e.previousSibling&&Zl(e.previousSibling)){var s=e.previousSibling.__ln.next;r.next=s,r.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=r,s&&(s.previous=r)}else if(e.nextSibling&&Zl(e.nextSibling)&&e.nextSibling.__ln.previous){var o=e.nextSibling.__ln.previous;r.previous=o,r.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=r,o&&(o.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(e){var r=e.__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),e.__ln&&delete e.__ln,this.length--)},t})(),Ql=function(t,n){return t+"@"+n},Xy=(function(){function t(){var i=this;x(this,"frozen",!1),x(this,"locked",!1),x(this,"texts",[]),x(this,"attributes",[]),x(this,"attributeMap",new WeakMap),x(this,"removes",[]),x(this,"mapRemoves",[]),x(this,"movedMap",{}),x(this,"addedSet",new Set),x(this,"movedSet",new Set),x(this,"droppedSet",new Set),x(this,"removesSubTreeCache",new Set),x(this,"mutationCb"),x(this,"blockClass"),x(this,"blockSelector"),x(this,"maskTextClass"),x(this,"maskTextSelector"),x(this,"inlineStylesheet"),x(this,"maskInputOptions"),x(this,"maskTextFn"),x(this,"maskInputFn"),x(this,"keepIframeSrcFn"),x(this,"recordCanvas"),x(this,"inlineImages"),x(this,"slimDOMOptions"),x(this,"dataURLOptions"),x(this,"doc"),x(this,"mirror"),x(this,"iframeManager"),x(this,"stylesheetManager"),x(this,"shadowDomManager"),x(this,"canvasManager"),x(this,"processedNodeManager"),x(this,"unattachedDoc"),x(this,"processMutations",function(e){e.forEach(i.processMutation),i.emit()}),x(this,"emit",function(){if(!(i.frozen||i.locked)){for(var e=[],r=new Set,s=new Jy,o=function(L){for(var G=L,de=Br;de===Br;)G=G&&G.nextSibling,de=G&&i.mirror.getId(G);return de},a=function(L){var G=V.parentNode(L);if(!(!G||!Jl(L))){var de=!1;if(L.nodeType===Node.TEXT_NODE){var Y=G.tagName;if(Y==="TEXTAREA")return;Y==="STYLE"&&i.addedSet.has(G)&&(de=!0)}var De=Fr(G)?i.mirror.getId(Kl(L)):i.mirror.getId(G),Ne=o(L);if(De===-1||Ne===-1)return s.addNode(L);var ke=ur(L,{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(pe){Hl(pe,i.mirror)&&i.iframeManager.addIframe(pe),Yl(pe,i.mirror)&&i.stylesheetManager.trackLinkElement(pe),Wo(L)&&i.shadowDomManager.addShadowRoot(V.shadowRoot(L),i.doc)},onIframeLoad:function(pe,xe){i.iframeManager.attachIframe(pe,xe),i.shadowDomManager.observeAttachShadow(pe)},onStylesheetLoad:function(pe,xe){i.stylesheetManager.attachLinkElement(pe,xe)},cssCaptured:de});ke&&(e.push({parentId:De,nextId:Ne,node:ke}),r.add(ke.id))}};i.mapRemoves.length;){var u=i.mapRemoves.shift();i.cleanupRemovedNode(u),i.mirror.removeNodeFromMap(u)}for(var c=I(i.movedSet),l;!(l=c()).done;){var f=l.value;ef(i.removesSubTreeCache,f,i.mirror)&&!i.movedSet.has(V.parentNode(f))||a(f)}for(var p=I(i.addedSet),g;!(g=p()).done;){var v=g.value;!tf(i.droppedSet,v)&&!ef(i.removesSubTreeCache,v,i.mirror)||tf(i.movedSet,v)?a(v):i.droppedSet.add(v)}for(var y=null;s.length;){var d=null;if(y){var m=i.mirror.getId(V.parentNode(y.value)),_=o(y.value);m!==-1&&_!==-1&&(d=y)}if(!d)for(var b=s.tail;b;){var C=b;if(b=b.previous,C){var S=i.mirror.getId(V.parentNode(C.value)),O=o(C.value);if(O===-1)continue;if(S!==-1){d=C;break}else{var A=C.value,k=V.parentNode(A);if(k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var $=V.host(k),W=i.mirror.getId($);if(W!==-1){d=C;break}}}}}if(!d){for(;s.head;)s.removeNode(s.head.value);break}y=d.previous,s.removeNode(d.value),a(d.value)}var ge={texts:i.texts.map(function(L){var G=L.node,de=V.parentNode(G);return de&&de.tagName==="TEXTAREA"&&i.genTextAreaValueMutation(de),{id:i.mirror.getId(G),value:L.value}}).filter(function(L){return!r.has(L.id)}).filter(function(L){return i.mirror.has(L.id)}),attributes:i.attributes.map(function(L){var G=L.attributes;if(typeof G.style=="string"){var de=JSON.stringify(L.styleDiff),Y=JSON.stringify(L._unchangedStyles);de.length<G.style.length&&(de+Y).split("var(").length===G.style.split("var(").length&&(G.style=L.styleDiff)}return{id:i.mirror.getId(L.node),attributes:G}}).filter(function(L){return!r.has(L.id)}).filter(function(L){return i.mirror.has(L.id)}),removes:i.removes,adds:e};!ge.texts.length&&!ge.attributes.length&&!ge.removes.length&&!ge.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(ge))}}),x(this,"genTextAreaValueMutation",function(e){var r=i.attributeMap.get(e);r||(r={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},i.attributes.push(r),i.attributeMap.set(e,r));var s=Array.from(V.childNodes(e),function(o){return V.textContent(o)||""}).join("");r.attributes.value=On({element:e,maskInputOptions:i.maskInputOptions,tagName:e.tagName,type:xn(e),value:s,maskInputFn:i.maskInputFn})}),x(this,"processMutation",function(e){if(!zo(e.target,i.mirror,i.slimDOMOptions))switch(e.type){case"characterData":{var r=V.textContent(e.target);!Me(e.target,i.blockClass,i.blockSelector,!1)&&r!==e.oldValue&&i.texts.push({value:qu(e.target,i.maskTextClass,i.maskTextSelector,!0)&&r?i.maskTextFn?i.maskTextFn(r,Vl(e.target)):r.replace(/[\S]/g,"*"):r,node:e.target});break}case"attributes":{var s=e.target,o=e.attributeName,a=e.target.getAttribute(o);if(o==="value"){var u=xn(s);a=On({element:s,maskInputOptions:i.maskInputOptions,tagName:s.tagName,type:u,value:a,maskInputFn:i.maskInputFn})}if(Me(e.target,i.blockClass,i.blockSelector,!1)||a===e.oldValue)return;var c=i.attributeMap.get(e.target);if(s.tagName==="IFRAME"&&o==="src"&&!i.keepIframeSrcFn(a))if(!s.contentDocument)o="rr_src";else return;if(c||(c={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},i.attributes.push(c),i.attributeMap.set(e.target,c)),o==="type"&&s.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&s.setAttribute("data-rr-is-password","true"),!zu(s.tagName,o))if(c.attributes[o]=Bu(i.doc,Ft(s.tagName),Ft(o),a),o==="style"){if(!i.unattachedDoc)try{i.unattachedDoc=document.implementation.createHTMLDocument()}catch(b){i.unattachedDoc=i.doc}var l=i.unattachedDoc.createElement("span");e.oldValue&&l.setAttribute("style",e.oldValue);for(var f=I(Array.from(s.style)),p;!(p=f()).done;){var g=p.value,v=s.style.getPropertyValue(g),y=s.style.getPropertyPriority(g);v!==l.style.getPropertyValue(g)||y!==l.style.getPropertyPriority(g)?y===""?c.styleDiff[g]=v:c.styleDiff[g]=[v,y]:c._unchangedStyles[g]=[v,y]}for(var d=I(Array.from(l.style)),m;!(m=d()).done;){var _=m.value;s.style.getPropertyValue(_)===""&&(c.styleDiff[_]=!1)}}else o==="open"&&s.tagName==="DIALOG"&&(s.matches("dialog:modal")?c.attributes.rr_open_mode="modal":c.attributes.rr_open_mode="non-modal");break}case"childList":{if(Me(e.target,i.blockClass,i.blockSelector,!0))return;if(e.target.tagName==="TEXTAREA"){i.genTextAreaValueMutation(e.target);return}e.addedNodes.forEach(function(b){return i.genAdds(b,e.target)}),e.removedNodes.forEach(function(b){var C=i.mirror.getId(b),S=Fr(e.target)?i.mirror.getId(V.host(e.target)):i.mirror.getId(e.target);Me(e.target,i.blockClass,i.blockSelector,!1)||zo(b,i.mirror,i.slimDOMOptions)||!Vy(b,i.mirror)||(i.addedSet.has(b)?(Go(i.addedSet,b),i.droppedSet.add(b)):i.addedSet.has(e.target)&&C===-1||jl(e.target,i.mirror)||(i.movedSet.has(b)&&i.movedMap[Ql(C,S)]?Go(i.movedSet,b):(i.removes.push({parentId:S,id:C,isShadow:Fr(e.target)&&Ur(e.target)?!0:void 0}),Zy(b,i.removesSubTreeCache))),i.mapRemoves.push(b))});break}}}),x(this,"genAdds",function(e,r){if(!i.processedNodeManager.inOtherBuffer(e,i)&&!(i.addedSet.has(e)||i.movedSet.has(e))){if(i.mirror.hasNode(e)){if(zo(e,i.mirror,i.slimDOMOptions))return;i.movedSet.add(e);var s=null;r&&i.mirror.hasNode(r)&&(s=i.mirror.getId(r)),s&&s!==-1&&(i.movedMap[Ql(i.mirror.getId(e),s)]=!0)}else i.addedSet.add(e),i.droppedSet.delete(e);Me(e,i.blockClass,i.blockSelector,!1)||(V.childNodes(e).forEach(function(o){return i.genAdds(o)}),Wo(e)&&V.childNodes(V.shadowRoot(e)).forEach(function(o){i.processedNodeManager.add(o,i),i.genAdds(o,e)}))}}),x(this,"cleanupRemovedNode",function(e){if(e.nodeName==="IFRAME")try{i.iframeManager.removeIframe(e)}catch(r){}else try{i.stylesheetManager.cleanupStylesheetsForRemovedNode(e)}catch(r){}e.childNodes.forEach(function(r){i.cleanupRemovedNode(r)})})}var n=t.prototype;return n.init=function(e){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(s){r[s]=e[s]})},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()},n.getDoc=function(){return this.doc},t})();function Go(t,n){t.delete(n),V.childNodes(n).forEach(function(i){return Go(t,i)})}function Zy(t,n){for(var i=[t];i.length;){var e=i.pop();n.has(e)||(n.add(e),V.childNodes(e).forEach(function(r){return i.push(r)}))}}function ef(t,n,i){return t.size===0?!1:Qy(t,n)}function Qy(t,n,i){var e=V.parentNode(n);return e?t.has(e):!1}function tf(t,n){return t.size===0?!1:rf(t,n)}function rf(t,n){var i=V.parentNode(n);return i?t.has(i)?!0:rf(t,i):!1}var rn;function e_(t){rn=t}function t_(){rn=void 0}var H=function(t){if(!rn)return t;var n=function(){for(var i=arguments.length,e=new Array(i),r=0;r<i;r++)e[r]=arguments[r];try{return t.apply(void 0,[].concat(e))}catch(s){if(rn&&rn(s)===!0)return;throw s}};return n},Ye=[];function nn(t){try{if("composedPath"in t){var n=t.composedPath();if(n.length)return n[0]}else if("path"in t&&t.path.length)return t.path[0]}catch(i){}return t&&t.target}function nf(t,n){var i=new Xy;Ye.push(i),i.init(t);var e=new(Bl())(H(i.processMutations.bind(i)));return e.observe(n,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),e}function r_(t){for(var n=Ye.length-1;n>=0;n--){var i=Ye[n];i.getDoc()===t&&Ye.splice(n,1)}}function n_(t){var n=t.mousemoveCb,i=t.sampling,e=t.doc,r=t.mirror;if(i.mousemove===!1)return function(){};var s=typeof i.mousemove=="number"?i.mousemove:50,o=typeof i.mousemoveCallback=="number"?i.mousemoveCallback:500,a=[],u,c=tn(H(function(p){var g=Date.now()-u;n(a.map(function(v){return v.timeOffset-=g,v}),p),a=[],u=null}),o),l=H(tn(H(function(p){var g=nn(p),v=qo(p)?p.changedTouches[0]:p,y=v.clientX,d=v.clientY;u||(u=_i()),a.push({x:y,y:d,id:r.getId(g),timeOffset:_i()-u}),c(typeof DragEvent!="undefined"&&M(p,DragEvent)?D.Drag:M(p,MouseEvent)?D.MouseMove:D.TouchMove)}),s,{trailing:!1})),f=[Ae("mousemove",l,e),Ae("touchmove",l,e),Ae("drag",l,e)];return H(function(){f.forEach(function(p){return p()})})}function i_(t){var n=t.mouseInteractionCb,i=t.doc,e=t.mirror,r=t.blockClass,s=t.blockSelector,o=t.sampling;if(o.mouseInteraction===!1)return function(){};var a=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,u=[],c=null,l=function(f){return function(p){var g=nn(p);if(!Me(g,r,s,!0)){var v=null,y=f;if("pointerType"in p){switch(p.pointerType){case"mouse":v=ot.Mouse;break;case"touch":v=ot.Touch;break;case"pen":v=ot.Pen;break}v===ot.Touch?$e[f]===$e.MouseDown?y="TouchStart":$e[f]===$e.MouseUp&&(y="TouchEnd"):ot.Pen}else qo(p)&&(v=ot.Touch);v!==null?(c=v,(y.startsWith("Touch")&&v===ot.Touch||y.startsWith("Mouse")&&v===ot.Mouse)&&(v=null)):$e[f]===$e.Click&&(v=c,c=null);var d=qo(p)?p.changedTouches[0]:p;if(d){var m=e.getId(g),_=d.clientX,b=d.clientY;H(n)(z({type:$e[y],id:m,x:_,y:b},v!==null&&{pointerType:v}))}}}};return Object.keys($e).filter(function(f){return Number.isNaN(Number(f))&&!f.endsWith("_Departed")&&a[f]!==!1}).forEach(function(f){var p=Ft(f),g=l(f);if(window.PointerEvent)switch($e[f]){case $e.MouseDown:case $e.MouseUp:p=p.replace("mouse","pointer");break;case $e.TouchStart:case $e.TouchEnd:return}u.push(Ae(p,g,i))}),H(function(){u.forEach(function(f){return f()})})}function sf(t){var n=t.scrollCb,i=t.doc,e=t.mirror,r=t.blockClass,s=t.blockSelector,o=t.sampling,a=H(tn(H(function(u){var c=nn(u);if(!(!c||Me(c,r,s,!0))){var l=e.getId(c);if(c===i&&i.defaultView){var f=ql(i.defaultView);n({id:l,x:f.left,y:f.top})}else n({id:l,x:c.scrollLeft,y:c.scrollTop})}}),o.scroll||100));return Ae("scroll",a,i)}function s_(t,n){var i=t.viewportResizeCb,e=n.win,r=-1,s=-1,o=H(tn(H(function(){var a=Wl(),u=Gl();(r!==a||s!==u)&&(i({width:Number(u),height:Number(a)}),r=a,s=u)}),200));return Ae("resize",o,e)}var o_=["INPUT","TEXTAREA","SELECT"],of=new WeakMap;function a_(t){var n=t.inputCb,i=t.doc,e=t.mirror,r=t.blockClass,s=t.blockSelector,o=t.ignoreClass,a=t.ignoreSelector,u=t.maskInputOptions,c=t.maskInputFn,l=t.sampling,f=t.userTriggeredOnInput;function p(C){var S=nn(C),O=C.isTrusted,A=S&&S.tagName;if(S&&A==="OPTION"&&(S=V.parentElement(S)),!(!S||!A||o_.indexOf(A)<0||Me(S,r,s,!0))&&!(S.classList.contains(o)||a&&S.matches(a))){var k=S.value,$=!1,W=xn(S)||"";W==="radio"||W==="checkbox"?$=S.checked:(u[A.toLowerCase()]||u[W])&&(k=On({element:S,maskInputOptions:u,tagName:A,type:W,value:k,maskInputFn:c})),g(S,f?{text:k,isChecked:$,userTriggered:O}:{text:k,isChecked:$});var ge=S.name;W==="radio"&&ge&&$&&i.querySelectorAll('input[type="radio"][name="'+ge+'"]').forEach(function(L){if(L!==S){var G=L.value;g(L,f?{text:G,isChecked:!$,userTriggered:!1}:{text:G,isChecked:!$})}})}}function g(C,S){var O=of.get(C);if(!O||O.text!==S.text||O.isChecked!==S.isChecked){of.set(C,S);var A=e.getId(C);H(n)(z({},S,{id:A}))}}var v=l.input==="last"?["change"]:["input","change"],y=v.map(function(C){return Ae(C,H(p),i)}),d=i.defaultView;if(!d)return function(){y.forEach(function(C){return C()})};var m=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(m&&m.set){var b;(b=y).push.apply(b,[].concat(_.map(function(C){return yi(C[0],C[1],{set:function(){H(p)({target:this,isTrusted:!1})}},!1,d)})))}return H(function(){y.forEach(function(C){return C()})})}function wi(t){var n=[];function i(e,r){if(bi("CSSGroupingRule")&&M(e.parentRule,CSSGroupingRule)||bi("CSSMediaRule")&&M(e.parentRule,CSSMediaRule)||bi("CSSSupportsRule")&&M(e.parentRule,CSSSupportsRule)||bi("CSSConditionRule")&&M(e.parentRule,CSSConditionRule)){var s=Array.from(e.parentRule.cssRules),o=s.indexOf(e);r.unshift(o)}else if(e.parentStyleSheet){var a=Array.from(e.parentStyleSheet.cssRules),u=a.indexOf(e);r.unshift(u)}return r}return i(t,n)}function _t(t,n,i){var e,r;return t?(t.ownerNode?e=n.getId(t.ownerNode):r=i.getId(t),{styleId:r,id:e}):{}}function u_(t,n){var i=t.styleSheetRuleCb,e=t.mirror,r=t.stylesheetManager,s=n.win;if(!s.CSSStyleSheet||!s.CSSStyleSheet.prototype)return function(){};var o=s.CSSStyleSheet.prototype.insertRule;s.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:H(function(p,g,v){var y=v[0],d=v[1],m=_t(g,e,r.styleMirror),_=m.id,b=m.styleId;return(_&&_!==-1||b&&b!==-1)&&i({id:_,styleId:b,adds:[{rule:y,index:d}]}),p.apply(g,v)})}),s.CSSStyleSheet.prototype.addRule=function(p,g,v){v===void 0&&(v=this.cssRules.length);var y=p+" { "+g+" }";return s.CSSStyleSheet.prototype.insertRule.apply(this,[y,v])};var a=s.CSSStyleSheet.prototype.deleteRule;s.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:H(function(p,g,v){var y=v[0],d=_t(g,e,r.styleMirror),m=d.id,_=d.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,removes:[{index:y}]}),p.apply(g,v)})}),s.CSSStyleSheet.prototype.removeRule=function(p){return s.CSSStyleSheet.prototype.deleteRule.apply(this,[p])};var u;s.CSSStyleSheet.prototype.replace&&(u=s.CSSStyleSheet.prototype.replace,s.CSSStyleSheet.prototype.replace=new Proxy(u,{apply:H(function(p,g,v){var y=v[0],d=_t(g,e,r.styleMirror),m=d.id,_=d.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,replace:y}),p.apply(g,v)})}));var c;s.CSSStyleSheet.prototype.replaceSync&&(c=s.CSSStyleSheet.prototype.replaceSync,s.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:H(function(p,g,v){var y=v[0],d=_t(g,e,r.styleMirror),m=d.id,_=d.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,replaceSync:y}),p.apply(g,v)})}));var l={};Si("CSSGroupingRule")?l.CSSGroupingRule=s.CSSGroupingRule:(Si("CSSMediaRule")&&(l.CSSMediaRule=s.CSSMediaRule),Si("CSSConditionRule")&&(l.CSSConditionRule=s.CSSConditionRule),Si("CSSSupportsRule")&&(l.CSSSupportsRule=s.CSSSupportsRule));var f={};return Object.entries(l).forEach(function(p){var g=p[0],v=p[1];f[g]={insertRule:v.prototype.insertRule,deleteRule:v.prototype.deleteRule},v.prototype.insertRule=new Proxy(f[g].insertRule,{apply:H(function(y,d,m){var _=m[0],b=m[1],C=_t(d.parentStyleSheet,e,r.styleMirror),S=C.id,O=C.styleId;return(S&&S!==-1||O&&O!==-1)&&i({id:S,styleId:O,adds:[{rule:_,index:[].concat(wi(d),[b||0])}]}),y.apply(d,m)})}),v.prototype.deleteRule=new Proxy(f[g].deleteRule,{apply:H(function(y,d,m){var _=m[0],b=_t(d.parentStyleSheet,e,r.styleMirror),C=b.id,S=b.styleId;return(C&&C!==-1||S&&S!==-1)&&i({id:C,styleId:S,removes:[{index:[].concat(wi(d),[_])}]}),y.apply(d,m)})})}),H(function(){s.CSSStyleSheet.prototype.insertRule=o,s.CSSStyleSheet.prototype.deleteRule=a,u&&(s.CSSStyleSheet.prototype.replace=u),c&&(s.CSSStyleSheet.prototype.replaceSync=c),Object.entries(l).forEach(function(p){var g=p[0],v=p[1];v.prototype.insertRule=f[g].insertRule,v.prototype.deleteRule=f[g].deleteRule})})}function af(t,n){var i=t.mirror,e=t.stylesheetManager,r,s,o,a=null;n.nodeName==="#document"?a=i.getId(n):a=i.getId(V.host(n));var u=n.nodeName==="#document"?(r=n.defaultView)==null?void 0:r.Document:(o=(s=n.ownerDocument)==null?void 0:s.defaultView)==null?void 0:o.ShadowRoot,c=u!=null&&u.prototype?Object.getOwnPropertyDescriptor(u==null?void 0:u.prototype,"adoptedStyleSheets"):void 0;return a===null||a===-1||!u||!c?function(){}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:function(){var f;return(f=c.get)==null?void 0:f.call(this)},set:function(f){var p,g=(p=c.set)==null?void 0:p.call(this,f);if(a!==null&&a!==-1)try{e.adoptStyleSheets(f,a)}catch(v){}return g}}),H(function(){Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}))}function c_(t,n){var i=t.styleDeclarationCb,e=t.mirror,r=t.ignoreCSSAttributes,s=t.stylesheetManager,o=n.win,a=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:H(function(c,l,f){var p,g=f[0],v=f[1],y=f[2];if(r.has(g))return a.apply(l,[g,v,y]);var d=_t((p=l.parentRule)==null?void 0:p.parentStyleSheet,e,s.styleMirror),m=d.id,_=d.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,set:{property:g,value:v,priority:y},index:wi(l.parentRule)}),c.apply(l,f)})});var u=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:H(function(c,l,f){var p,g=f[0];if(r.has(g))return u.apply(l,[g]);var v=_t((p=l.parentRule)==null?void 0:p.parentStyleSheet,e,s.styleMirror),y=v.id,d=v.styleId;return(y&&y!==-1||d&&d!==-1)&&i({id:y,styleId:d,remove:{property:g},index:wi(l.parentRule)}),c.apply(l,f)})}),H(function(){o.CSSStyleDeclaration.prototype.setProperty=a,o.CSSStyleDeclaration.prototype.removeProperty=u})}function l_(t){var n=t.mediaInteractionCb,i=t.blockClass,e=t.blockSelector,r=t.mirror,s=t.sampling,o=t.doc,a=H(function(c){return tn(H(function(l){var f=nn(l);if(!(!f||Me(f,i,e,!0))){var p=f.currentTime,g=f.volume,v=f.muted,y=f.playbackRate,d=f.loop;n({type:c,id:r.getId(f),currentTime:p,volume:g,muted:v,playbackRate:y,loop:d})}}),s.media||500)}),u=[Ae("play",a(mr.Play),o),Ae("pause",a(mr.Pause),o),Ae("seeked",a(mr.Seeked),o),Ae("volumechange",a(mr.VolumeChange),o),Ae("ratechange",a(mr.RateChange),o)];return H(function(){u.forEach(function(c){return c()})})}function f_(t){var n=t.fontCb,i=t.doc,e=i.defaultView;if(!e)return function(){};var r=[],s=new WeakMap,o=e.FontFace;e.FontFace=function(c,l,f){var p=new o(c,l,f);return s.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=zt(i.fonts,"add",function(u){return function(c){return setTimeout(H(function(){var l=s.get(c);l&&(n(l),s.delete(c))}),0),u.apply(this,[c])}});return r.push(function(){e.FontFace=o}),r.push(a),H(function(){r.forEach(function(u){return u()})})}function h_(t){var n=t.doc,i=t.mirror,e=t.blockClass,r=t.blockSelector,s=t.selectionCb,o=!0,a=H(function(){var u=n.getSelection();if(!(!u||o&&(u!=null&&u.isCollapsed))){o=u.isCollapsed||!1;for(var c=[],l=u.rangeCount||0,f=0;f<l;f++){var p=u.getRangeAt(f),g=p.startContainer,v=p.startOffset,y=p.endContainer,d=p.endOffset,m=Me(g,e,r,!0)||Me(y,e,r,!0);m||c.push({start:i.getId(g),startOffset:v,end:i.getId(y),endOffset:d})}s({ranges:c})}});return a(),Ae("selectionchange",a)}function p_(t){var n=t.doc,i=t.customElementCb,e=n.defaultView;if(!e||!e.customElements)return function(){};var r=zt(e.customElements,"define",function(s){return function(o,a,u){try{i({define:{name:o}})}catch(c){console.warn("Custom element callback failed for "+o)}return s.apply(this,[o,a,u])}});return r}function d_(t,n){var i=t.mutationCb,e=t.mousemoveCb,r=t.mouseInteractionCb,s=t.scrollCb,o=t.viewportResizeCb,a=t.inputCb,u=t.mediaInteractionCb,c=t.styleSheetRuleCb,l=t.styleDeclarationCb,f=t.canvasMutationCb,p=t.fontCb,g=t.selectionCb,v=t.customElementCb;t.mutationCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.mutation){var _;(_=n).mutation.apply(_,[].concat(d))}i.apply(void 0,[].concat(d))},t.mousemoveCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.mousemove){var _;(_=n).mousemove.apply(_,[].concat(d))}e.apply(void 0,[].concat(d))},t.mouseInteractionCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.mouseInteraction){var _;(_=n).mouseInteraction.apply(_,[].concat(d))}r.apply(void 0,[].concat(d))},t.scrollCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.scroll){var _;(_=n).scroll.apply(_,[].concat(d))}s.apply(void 0,[].concat(d))},t.viewportResizeCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.viewportResize){var _;(_=n).viewportResize.apply(_,[].concat(d))}o.apply(void 0,[].concat(d))},t.inputCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.input){var _;(_=n).input.apply(_,[].concat(d))}a.apply(void 0,[].concat(d))},t.mediaInteractionCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.mediaInteaction){var _;(_=n).mediaInteaction.apply(_,[].concat(d))}u.apply(void 0,[].concat(d))},t.styleSheetRuleCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.styleSheetRule){var _;(_=n).styleSheetRule.apply(_,[].concat(d))}c.apply(void 0,[].concat(d))},t.styleDeclarationCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.styleDeclaration){var _;(_=n).styleDeclaration.apply(_,[].concat(d))}l.apply(void 0,[].concat(d))},t.canvasMutationCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.canvasMutation){var _;(_=n).canvasMutation.apply(_,[].concat(d))}f.apply(void 0,[].concat(d))},t.fontCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.font){var _;(_=n).font.apply(_,[].concat(d))}p.apply(void 0,[].concat(d))},t.selectionCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.selection){var _;(_=n).selection.apply(_,[].concat(d))}g.apply(void 0,[].concat(d))},t.customElementCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.customElement){var _;(_=n).customElement.apply(_,[].concat(d))}v.apply(void 0,[].concat(d))}}function v_(t,n){n===void 0&&(n={});var i=t.doc.defaultView;if(!i)return function(){};d_(t,n);var e;t.recordDOM&&(e=nf(t,t.doc));var r=n_(t),s=i_(t),o=sf(t),a=s_(t,{win:i}),u=a_(t),c=l_(t),l=function(){},f=function(){},p=function(){},g=function(){};t.recordDOM&&(l=u_(t,{win:i}),f=af(t,t.doc),p=c_(t,{win:i}),t.collectFonts&&(g=f_(t)));for(var v=h_(t),y=p_(t),d=[],m=I(t.plugins),_;!(_=m()).done;){var b=_.value;d.push(b.observer(b.callback,i,b.options))}return H(function(){Ye.forEach(function(C){return C.reset()}),e==null||e.disconnect(),r(),s(),o(),a(),u(),c(),l(),f(),p(),g(),v(),y(),d.forEach(function(C){return C()})})}function bi(t){return typeof window[t]!="undefined"}function Si(t){return!!(typeof window[t]!="undefined"&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}for(var uf=(function(){function t(i){x(this,"iframeIdToRemoteIdMap",new WeakMap),x(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=i}var n=t.prototype;return n.getId=function(e,r,s,o){var a=s||this.getIdToRemoteIdMap(e),u=o||this.getRemoteIdToIdMap(e),c=a.get(r);return c||(c=this.generateIdFn(),a.set(r,c),u.set(c,r)),c},n.getIds=function(e,r){var s=this,o=this.getIdToRemoteIdMap(e),a=this.getRemoteIdToIdMap(e);return r.map(function(u){return s.getId(e,u,o,a)})},n.getRemoteId=function(e,r,s){var o=s||this.getRemoteIdToIdMap(e);if(typeof r!="number")return r;var a=o.get(r);return a||-1},n.getRemoteIds=function(e,r){var s=this,o=this.getRemoteIdToIdMap(e);return r.map(function(a){return s.getRemoteId(e,a,o)})},n.reset=function(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},n.getIdToRemoteIdMap=function(e){var r=this.iframeIdToRemoteIdMap.get(e);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(e,r)),r},n.getRemoteIdToIdMap=function(e){var r=this.iframeRemoteIdToIdMap.get(e);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(e,r)),r},t})(),g_=(function(){function t(i){x(this,"iframes",new WeakMap),x(this,"crossOriginIframeMap",new WeakMap),x(this,"crossOriginIframeMirror",new uf(Du)),x(this,"crossOriginIframeStyleMirror"),x(this,"crossOriginIframeRootIdMap",new WeakMap),x(this,"iframeContentDocumentMap",new WeakMap),x(this,"iframeObserverCleanupMap",new WeakMap),x(this,"mirror"),x(this,"mutationCb"),x(this,"wrappedEmit"),x(this,"loadListener"),x(this,"stylesheetManager"),x(this,"recordCrossOriginIframes"),this.mutationCb=i.mutationCb,this.wrappedEmit=i.wrappedEmit,this.stylesheetManager=i.stylesheetManager,this.recordCrossOriginIframes=i.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new uf(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=i.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var n=t.prototype;return n.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},n.getIframeContentDocument=function(e){return this.iframeContentDocumentMap.get(e)},n.setObserverCleanup=function(e,r){this.iframeObserverCleanupMap.set(e,r)},n.getObserverCleanup=function(e){return this.iframeObserverCleanupMap.get(e)},n.removeIframe=function(e){var r=this.iframeContentDocumentMap.get(e);r&&(this.stylesheetManager.cleanupStylesheetsForRemovedNode(r),this.mirror.removeNodeFromMap(r,!0)),this.iframes.delete(e),this.iframeContentDocumentMap.delete(e);var s=this.iframeObserverCleanupMap.get(e);if(s){try{s()}catch(o){}this.iframeObserverCleanupMap.delete(e)}},n.addLoadListener=function(e){this.loadListener=e},n.attachIframe=function(e,r){var s,o;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),e.contentDocument&&this.iframeContentDocumentMap.set(e,e.contentDocument),this.recordCrossOriginIframes&&((s=e.contentWindow)==null||s.addEventListener("message",this.handleMessage.bind(this))),(o=this.loadListener)==null||o.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},n.handleMessage=function(e){var r=e;if(!(r.data.type!=="rrweb"||r.origin!==r.data.origin)){var s=e.source;if(s){var o=this.crossOriginIframeMap.get(e.source);if(o){var a=this.transformCrossOriginEvent(o,r.data.event);a&&this.wrappedEmit(a,r.data.isCheckout)}}}},n.transformCrossOriginEvent=function(e,r){var s=this,o;switch(r.type){case j.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(r.data.node,e);var a=r.data.node.id;return this.crossOriginIframeRootIdMap.set(e,a),this.patchRootIdOnNode(r.data.node,a),{timestamp:r.timestamp,type:j.IncrementalSnapshot,data:{source:D.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case j.Meta:case j.Load:case j.DomContentLoaded:return!1;case j.Plugin:return r;case j.Custom:return this.replaceIds(r.data.payload,e,["id","parentId","previousId","nextId"]),r;case j.IncrementalSnapshot:switch(r.data.source){case D.Mutation:return r.data.adds.forEach(function(u){s.replaceIds(u,e,["parentId","nextId","previousId"]),s.replaceIdOnNode(u.node,e);var c=s.crossOriginIframeRootIdMap.get(e);c&&s.patchRootIdOnNode(u.node,c)}),r.data.removes.forEach(function(u){s.replaceIds(u,e,["parentId","id"])}),r.data.attributes.forEach(function(u){s.replaceIds(u,e,["id"])}),r.data.texts.forEach(function(u){s.replaceIds(u,e,["id"])}),r;case D.Drag:case D.TouchMove:case D.MouseMove:return r.data.positions.forEach(function(u){s.replaceIds(u,e,["id"])}),r;case D.ViewportResize:return!1;case D.MediaInteraction:case D.MouseInteraction:case D.Scroll:case D.CanvasMutation:case D.Input:return this.replaceIds(r.data,e,["id"]),r;case D.StyleSheetRule:case D.StyleDeclaration:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleId"]),r;case D.Font:return r;case D.Selection:return r.data.ranges.forEach(function(u){s.replaceIds(u,e,["start","end"])}),r;case D.AdoptedStyleSheet:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleIds"]),(o=r.data.styles)==null||o.forEach(function(u){s.replaceStyleIds(u,e,["styleId"])}),r}}return!1},n.replace=function(e,r,s,o){for(var a=I(o),u;!(u=a()).done;){var c=u.value;!Array.isArray(r[c])&&typeof r[c]!="number"||(Array.isArray(r[c])?r[c]=e.getIds(s,r[c]):r[c]=e.getId(s,r[c]))}return r},n.replaceIds=function(e,r,s){return this.replace(this.crossOriginIframeMirror,e,r,s)},n.replaceStyleIds=function(e,r,s){return this.replace(this.crossOriginIframeStyleMirror,e,r,s)},n.replaceIdOnNode=function(e,r){var s=this;this.replaceIds(e,r,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(o){s.replaceIdOnNode(o,r)})},n.patchRootIdOnNode=function(e,r){var s=this;e.type!==Xl.Document&&!e.rootId&&(e.rootId=r),"childNodes"in e&&e.childNodes.forEach(function(o){s.patchRootIdOnNode(o,r)})},t})(),m_=(function(){function t(i){x(this,"shadowDoms",new WeakSet),x(this,"mutationCb"),x(this,"scrollCb"),x(this,"bypassOptions"),x(this,"mirror"),x(this,"restoreHandlers",[]),this.mutationCb=i.mutationCb,this.scrollCb=i.scrollCb,this.bypassOptions=i.bypassOptions,this.mirror=i.mirror,this.init()}var n=t.prototype;return n.init=function(){this.reset(),this.patchAttachShadow(Element,document)},n.addShadowRoot=function(e,r){var s=this;if(Ur(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var o=nf(z({},this.bypassOptions,{doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return o.disconnect()}),this.restoreHandlers.push(sf(z({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&s.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,s.mirror.getId(V.host(e))),s.restoreHandlers.push(af({mirror:s.mirror,stylesheetManager:s.bypassOptions.stylesheetManager},e))},0)}},n.observeAttachShadow=function(e){!e.contentWindow||!e.contentDocument||this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},n.patchAttachShadow=function(e,r){var s=this;this.restoreHandlers.push(zt(e.prototype,"attachShadow",function(o){return function(a){var u=o.call(this,a),c=V.shadowRoot(this);return c&&Jl(this)&&s.addShadowRoot(c,r),u}}))},n.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(r){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},t})(),yr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y_=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Ci=0;Ci<yr.length;Ci++)y_[yr.charCodeAt(Ci)]=Ci;var __=function(n){var i=new Uint8Array(n),e,r=i.length,s="";for(e=0;e<r;e+=3)s+=yr[i[e]>>2],s+=yr[(i[e]&3)<<4|i[e+1]>>4],s+=yr[(i[e+1]&15)<<2|i[e+2]>>6],s+=yr[i[e+2]&63];return r%3===2?s=s.substring(0,s.length-1)+"=":r%3===1&&(s=s.substring(0,s.length-2)+"=="),s},cf=new Map;function w_(t,n){var i=cf.get(t);return i||(i=new Map,cf.set(t,i)),i.has(n)||i.set(n,[]),i.get(n)}var lf=function(t,n,i){if(!(!t||!(hf(t,n)||(typeof t=="undefined"?"undefined":T(t))==="object"))){var e=t.constructor.name,r=w_(i,e),s=r.indexOf(t);return s===-1&&(s=r.length,r.push(t)),s}};function Ei(t,n,i){if(M(t,Array))return t.map(function(v){return Ei(v,n,i)});if(t===null)return t;if(M(t,Float32Array)||M(t,Float64Array)||M(t,Int32Array)||M(t,Uint32Array)||M(t,Uint8Array)||M(t,Uint16Array)||M(t,Int16Array)||M(t,Int8Array)||M(t,Uint8ClampedArray)){var e=t.constructor.name;return{rr_type:e,args:[Object.values(t)]}}else if(M(t,ArrayBuffer)){var r=t.constructor.name,s=__(t);return{rr_type:r,base64:s}}else if(M(t,DataView)){var o=t.constructor.name;return{rr_type:o,args:[Ei(t.buffer,n,i),t.byteOffset,t.byteLength]}}else if(M(t,HTMLImageElement)){var a=t.constructor.name,u=t.src;return{rr_type:a,src:u}}else if(M(t,HTMLCanvasElement)){var c="HTMLImageElement",l=t.toDataURL();return{rr_type:c,src:l}}else if(M(t,ImageData)){var f=t.constructor.name;return{rr_type:f,args:[Ei(t.data,n,i),t.width,t.height]}}else if(hf(t,n)||(typeof t=="undefined"?"undefined":T(t))==="object"){var p=t.constructor.name,g=lf(t,n,i);return{rr_type:p,index:g}}return t}var ff=function(t,n,i){return t.map(function(e){return Ei(e,n,i)})},hf=function(t,n){var i=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],e=i.filter(function(r){return typeof n[r]=="function"});return!!e.find(function(r){return M(t,n[r])})};function b_(t,n,i,e){for(var r=function(){var c=u.value;try{if(typeof n.CanvasRenderingContext2D.prototype[c]!="function")return"continue";var l=zt(n.CanvasRenderingContext2D.prototype,c,function(p){return function(){for(var g=this,v=arguments.length,y=new Array(v),d=0;d<v;d++)y[d]=arguments[d];return Me(this.canvas,i,e,!0)||setTimeout(function(){var m=ff(y,n,g);t(g.canvas,{type:gr["2D"],property:c,args:m})},0),p.apply(this,y)}});s.push(l)}catch(p){var f=yi(n.CanvasRenderingContext2D.prototype,c,{set:function(v){t(this.canvas,{type:gr["2D"],property:c,args:[v],setter:!0})}});s.push(f)}},s=[],o=Object.getOwnPropertyNames(n.CanvasRenderingContext2D.prototype),a=I(o),u;!(u=a()).done;)r();return function(){s.forEach(function(c){return c()})}}function S_(t){return t==="experimental-webgl"?"webgl":t}function pf(t,n,i,e){var r=[];try{var s=zt(t.HTMLCanvasElement.prototype,"getContext",function(o){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(!Me(this,n,i,!0)){var f=S_(a);if("__context"in this||(this.__context=f),e&&["webgl","webgl2"].includes(f))if(c[0]&&T(c[0])==="object"){var p=c[0];p.preserveDrawingBuffer||(p.preserveDrawingBuffer=!0)}else c.splice(0,1,{preserveDrawingBuffer:!0})}return o.apply(this,[].concat([a],c))}});r.push(s)}catch(o){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){r.forEach(function(o){return o()})}}function df(t,n,i,e,r,s){for(var o=function(){var f=l.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(f))return"continue";try{if(typeof t[f]!="function")return"continue";var p=zt(t,f,function(v){return function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];var _=v.apply(this,d);if(lf(_,s,this),"tagName"in this.canvas&&!Me(this.canvas,e,r,!0)){var b=ff(d,s,this),C={type:n,property:f,args:b};i(this.canvas,C)}return _}});a.push(p)}catch(v){var g=yi(t,f,{set:function(d){i(this.canvas,{type:n,property:f,args:[d],setter:!0})}});a.push(g)}},a=[],u=Object.getOwnPropertyNames(t),c=I(u),l;!(l=c()).done;)o();return a}function C_(t,n,i,e){var r,s=[];if((r=s).push.apply(r,[].concat(df(n.WebGLRenderingContext.prototype,gr.WebGL,t,i,e,n))),typeof n.WebGL2RenderingContext!="undefined"){var o;(o=s).push.apply(o,[].concat(df(n.WebGL2RenderingContext.prototype,gr.WebGL2,t,i,e,n)))}return function(){s.forEach(function(a){return a()})}}var vf="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",E_=function(t){return Uint8Array.from(atob(t),function(n){return n.charCodeAt(0)})},gf=typeof window!="undefined"&&window.Blob&&new Blob([E_(vf)],{type:"text/javascript;charset=utf-8"});function I_(t){var n;try{if(n=gf&&(window.URL||window.webkitURL).createObjectURL(gf),!n)throw"";var i=new Worker(n,{name:t==null?void 0:t.name});return i.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(n)}),i}catch(e){return new Worker("data:text/javascript;base64,"+vf,{name:t==null?void 0:t.name})}finally{n&&(window.URL||window.webkitURL).revokeObjectURL(n)}}var O_=(function(){function t(i){var e=this;x(this,"pendingCanvasMutations",new Map),x(this,"rafStamps",{latestId:0,invokeId:null}),x(this,"mirror"),x(this,"mutationCb"),x(this,"resetObservers"),x(this,"frozen",!1),x(this,"locked",!1),x(this,"processMutation",function(f,p){var g=e.rafStamps.invokeId&&e.rafStamps.latestId!==e.rafStamps.invokeId;(g||!e.rafStamps.invokeId)&&(e.rafStamps.invokeId=e.rafStamps.latestId),e.pendingCanvasMutations.has(f)||e.pendingCanvasMutations.set(f,[]),e.pendingCanvasMutations.get(f).push(p)});var r=i.sampling,s=r===void 0?"all":r,o=i.win,a=i.blockClass,u=i.blockSelector,c=i.recordCanvas,l=i.dataURLOptions;this.mutationCb=i.mutationCb,this.mirror=i.mirror,c&&s==="all"&&this.initCanvasMutationObserver(o,a,u),c&&typeof s=="number"&&this.initCanvasFPSObserver(s,o,a,u,{dataURLOptions:l})}var n=t.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(e,r,s,o,a){var u=this,c=pf(r,s,o,!0),l=new Map,f=new I_;f.onmessage=function(m){var _=m.data.id;if(l.set(_,!1),"base64"in m.data){var b=m.data,C=b.base64,S=b.type,O=b.width,A=b.height;u.mutationCb({id:_,type:gr["2D"],commands:[{property:"clearRect",args:[0,0,O,A]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:C}],type:S}]},0,0]}]})}};var p=1e3/e,g=0,v,y=function(){var m=[];return r.document.querySelectorAll("canvas").forEach(function(_){Me(_,s,o,!0)||m.push(_)}),m},d=function(m){if(g&&m-g<p){v=requestAnimationFrame(d);return}g=m;var _=u;y().forEach(Cn(function(b){var C,S,O,A;return Dt(this,function(k){switch(k.label){case 0:return S=_.mirror.getId(b),l.get(S)?[2]:b.width===0||b.height===0?[2]:(l.set(S,!0),["webgl","webgl2"].includes(b.__context)&&(O=b.getContext(b.__context),((C=O==null?void 0:O.getContextAttributes())==null?void 0:C.preserveDrawingBuffer)===!1&&O.clear(O.COLOR_BUFFER_BIT)),[4,createImageBitmap(b)]);case 1:return A=k.sent(),f.postMessage({id:S,bitmap:A,width:b.width,height:b.height,dataURLOptions:a.dataURLOptions},[A]),[2]}})})),v=requestAnimationFrame(d)};v=requestAnimationFrame(d),this.resetObservers=function(){c(),cancelAnimationFrame(v)}},n.initCanvasMutationObserver=function(e,r,s){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var o=pf(e,r,s,!1),a=b_(this.processMutation.bind(this),e,r,s),u=C_(this.processMutation.bind(this),e,r,s);this.resetObservers=function(){o(),a(),u()}},n.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},n.startRAFTimestamping=function(){var e=this,r=function(s){e.rafStamps.latestId=s,requestAnimationFrame(r)};requestAnimationFrame(r)},n.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(r,s){var o=e.mirror.getId(s);e.flushPendingCanvasMutationFor(s,o)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},n.flushPendingCanvasMutationFor=function(e,r){if(!(this.frozen||this.locked)){var s=this.pendingCanvasMutations.get(e);if(!(!s||r===-1)){var o=s.map(function(u){u.type;var c=Lt(u,["type"]);return c}),a=s[0].type;this.mutationCb({id:r,type:a,commands:o}),this.pendingCanvasMutations.delete(e)}}},t})(),x_=(function(){function t(i){x(this,"trackedLinkElements",new WeakSet),x(this,"mutationCb"),x(this,"adoptedStyleSheetCb"),x(this,"styleMirror",new Hy),this.mutationCb=i.mutationCb,this.adoptedStyleSheetCb=i.adoptedStyleSheetCb}var n=t.prototype;return n.attachLinkElement=function(e,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(e)},n.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},n.adoptStyleSheets=function(e,r){var s,o=function(){var f=l.value,p=void 0;s.styleMirror.has(f)?p=s.styleMirror.getId(f):(p=s.styleMirror.add(f),u.push({styleId:p,rules:Array.from(f.rules||CSSRule,function(g,v){return{rule:Pu(g,f.href),index:v}})})),a.styleIds.push(p)};if(e.length!==0){for(var a={id:r,styleIds:[]},u=[],c=I(e),l;!(l=c()).done;)s=this,o();u.length>0&&(a.styles=u),this.adoptedStyleSheetCb(a)}},n.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},n.cleanupStylesheetsForRemovedNode=function(e){var r=this;try{if(e.nodeType===Node.DOCUMENT_NODE){var s=e;if(s.adoptedStyleSheets)for(var o=I(s.adoptedStyleSheets),a;!(a=o()).done;){var u=a.value;this.styleMirror.remove(u)}}if(e.nodeName==="STYLE"){var c=e;c.sheet&&this.styleMirror.remove(c.sheet)}if(e.nodeName==="LINK"&&e.rel==="stylesheet"){var l=e;l.sheet&&this.styleMirror.remove(l.sheet)}e.childNodes&&e.childNodes.forEach(function(f){r.cleanupStylesheetsForRemovedNode(f)})}catch(f){}},n.trackStylesheetInLinkElement=function(e){},t})(),k_=(function(){function t(){x(this,"nodeMap",new WeakMap),x(this,"active",!1)}var n=t.prototype;return n.inOtherBuffer=function(e,r){var s=this.nodeMap.get(e);return s&&Array.from(s).some(function(o){return o!==r})},n.add=function(e,r){var s=this;this.active||(this.active=!0,requestAnimationFrame(function(){s.nodeMap=new WeakMap,s.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(r))},n.destroy=function(){},t})();function R_(t){try{var n=new URL(t).origin;return n!=="null"?n:null}catch(i){return null}}function A_(t){if(!Array.isArray(t)||t.length===0)throw new Error("[rrweb] allowedIframeOrigins must be a non-empty array of origin strings.");for(var n=new Set,i=0;i<t.length;i++){var e=t[i];if(typeof e!="string")throw new Error("[rrweb] allowedIframeOrigins["+i+"] must be a string, got "+(typeof e=="undefined"?"undefined":T(e))+".");var r=R_(e);r&&n.add(r)}return Object.freeze(n)}var ve,Ii,Vo,Oi=!1;try{if(Array.from([1],function(t){return t*2})[0]!==2){var jo=document.createElement("iframe");document.body.appendChild(jo),Array.from=((xu=jo.contentWindow)==null?void 0:xu.Array.from)||Array.from,document.body.removeChild(jo)}}catch(t){console.debug("Unable to override Array.from",t)}var qe=Id();function wt(t){t===void 0&&(t={});var n=t.emit,i=t.checkoutEveryNms,e=t.checkoutEveryNth,r=t.blockClass,s=r===void 0?"rr-block":r,o=t.blockSelector,a=o===void 0?null:o,u=t.ignoreClass,c=u===void 0?"rr-ignore":u,l=t.ignoreSelector,f=l===void 0?null:l,p=t.maskTextClass,g=p===void 0?"rr-mask":p,v=t.maskTextSelector,y=v===void 0?null:v,d=t.inlineStylesheet,m=d===void 0?!0:d,_=t.maskAllInputs,b=t.maskInputOptions,C=t.slimDOMOptions,S=t.maskInputFn,O=t.maskTextFn,A=t.hooks,k=t.packFn,$=t.sampling,W=$===void 0?{}:$,ge=t.dataURLOptions,L=ge===void 0?{}:ge,G=t.mousemoveWait,de=t.recordDOM,Y=de===void 0?!0:de,De=t.recordCanvas,Ne=De===void 0?!1:De,ke=t.recordCrossOriginIframes,pe=ke===void 0?!1:ke,xe=t.allowedIframeOrigins,Jt=t.recordAfter,nt=Jt===void 0?t.recordAfter==="DOMContentLoaded"?t.recordAfter:"load":Jt,Xt=t.userTriggeredOnInput,ze=Xt===void 0?!1:Xt,$t=t.collectFonts,J=$t===void 0?!1:$t,Tr=t.inlineImages,Pr=Tr===void 0?!1:Tr,Nt=t.plugins,ws=t.keepIframeSrcFn,$r=ws===void 0?function(){return!1}:ws,bs=t.ignoreCSSAttributes,Ss=bs===void 0?new Set([]):bs,Sn=t.errorHandler;e_(Sn);var Zt;pe&&xe&&xe.length>0&&(Zt=A_(xe),Zt.size===0&&(Zt=void 0));var Qt=pe?window.parent===window:!0,er=!1;if(!Qt)try{window.parent.document&&(er=!1)}catch(K){er=!0}if(Qt&&!n)throw new Error("emit function is required");if(!Qt&&!er)return function(){};G!==void 0&&W.mousemove===void 0&&(W.mousemove=G),qe.reset();var tr=_===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:b!==void 0?b:{password:!0},rr=C===!0||C==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:C==="all",headMetaDescKeywords:C==="all",headTitleMutations:C==="all"}:C||{};jy();var pt,Nr=0,Vp=function(K){for(var Te=I(Nt||[]),P;!(P=Te()).done;){var ne=P.value;ne.eventProcessor&&(K=ne.eventProcessor(K))}return k&&!er&&(K=k(K)),K};ve=function(K,Te){var P,ne=K;if(ne.timestamp=_i(),(P=Ye[0])!=null&&P.isFrozen()&&ne.type!==j.FullSnapshot&&!(ne.type===j.IncrementalSnapshot&&ne.data.source===D.Mutation)&&Ye.forEach(function(NC){return NC.unfreeze()}),Qt)n==null||n(Vp(ne),Te);else if(er){var sr={type:"rrweb",event:Vp(ne),origin:window.location.origin,isCheckout:Te};if(Zt)for(var bu=I(Zt),Xp;!(Xp=bu()).done;){var TC=Xp.value;window.parent.postMessage(sr,TC)}else window.parent.postMessage(sr,"*")}if(ne.type===j.FullSnapshot)pt=ne,Nr=0;else if(ne.type===j.IncrementalSnapshot){if(ne.data.source===D.Mutation&&ne.data.isAttachIframe)return;Nr++;var PC=e&&Nr>=e,$C=i&&ne.timestamp-pt.timestamp>i;(PC||$C)&&Ii(!0)}};for(var Cs=function(K){ve({type:j.IncrementalSnapshot,data:z({source:D.Mutation},K)})},jp=function(K){return ve({type:j.IncrementalSnapshot,data:z({source:D.Scroll},K)})},Hp=function(K){return ve({type:j.IncrementalSnapshot,data:z({source:D.CanvasMutation},K)})},AC=function(K){return ve({type:j.IncrementalSnapshot,data:z({source:D.AdoptedStyleSheet},K)})},nr=new x_({mutationCb:Cs,adoptedStyleSheetCb:AC}),dt=new g_({mirror:qe,mutationCb:Cs,stylesheetManager:nr,recordCrossOriginIframes:pe,wrappedEmit:ve}),MC=I(Nt||[]),Yp;!(Yp=MC()).done;){var Kp=Yp.value;Kp.getMirror&&Kp.getMirror({nodeMirror:qe,crossOriginIframeMirror:dt.crossOriginIframeMirror,crossOriginIframeStyleMirror:dt.crossOriginIframeStyleMirror})}var _u=new k_;Vo=new O_({recordCanvas:Ne,mutationCb:Hp,win:window,blockClass:s,blockSelector:a,mirror:qe,sampling:W.canvas,dataURLOptions:L});var Es=new m_({mutationCb:Cs,scrollCb:jp,bypassOptions:{blockClass:s,blockSelector:a,maskTextClass:g,maskTextSelector:y,inlineStylesheet:m,maskInputOptions:tr,dataURLOptions:L,maskTextFn:O,maskInputFn:S,recordCanvas:Ne,inlineImages:Pr,sampling:W,slimDOMOptions:rr,iframeManager:dt,stylesheetManager:nr,canvasManager:Vo,keepIframeSrcFn:$r,processedNodeManager:_u},mirror:qe});Ii=function(K){if(K===void 0&&(K=!1),!!Y){ve({type:j.Meta,data:{href:window.location.href,width:Gl(),height:Wl()}},K),nr.reset(),Es.init(),Ye.forEach(function(P){return P.lock()});var Te=Kd(document,{mirror:qe,blockClass:s,blockSelector:a,maskTextClass:g,maskTextSelector:y,inlineStylesheet:m,maskAllInputs:tr,maskTextFn:O,maskInputFn:S,slimDOM:rr,dataURLOptions:L,recordCanvas:Ne,inlineImages:Pr,onSerialize:function(P){Hl(P,qe)&&dt.addIframe(P),Yl(P,qe)&&nr.trackLinkElement(P),Wo(P)&&Es.addShadowRoot(V.shadowRoot(P),document)},onIframeLoad:function(P,ne){dt.attachIframe(P,ne),Es.observeAttachShadow(P)},onStylesheetLoad:function(P,ne){nr.attachLinkElement(P,ne)},keepIframeSrcFn:$r});if(!Te)return console.warn("Failed to snapshot the document");ve({type:j.FullSnapshot,data:{node:Te,initialOffset:ql(window)}},K),Ye.forEach(function(P){return P.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&nr.adoptStyleSheets(document.adoptedStyleSheets,qe.getId(document))}};try{var ir=[],Jp=function(K){var Te;return H(v_)({mutationCb:Cs,mousemoveCb:function(P,ne){return ve({type:j.IncrementalSnapshot,data:{source:ne,positions:P}})},mouseInteractionCb:function(P){return ve({type:j.IncrementalSnapshot,data:z({source:D.MouseInteraction},P)})},scrollCb:jp,viewportResizeCb:function(P){return ve({type:j.IncrementalSnapshot,data:z({source:D.ViewportResize},P)})},inputCb:function(P){return ve({type:j.IncrementalSnapshot,data:z({source:D.Input},P)})},mediaInteractionCb:function(P){return ve({type:j.IncrementalSnapshot,data:z({source:D.MediaInteraction},P)})},styleSheetRuleCb:function(P){return ve({type:j.IncrementalSnapshot,data:z({source:D.StyleSheetRule},P)})},styleDeclarationCb:function(P){return ve({type:j.IncrementalSnapshot,data:z({source:D.StyleDeclaration},P)})},canvasMutationCb:Hp,fontCb:function(P){return ve({type:j.IncrementalSnapshot,data:z({source:D.Font},P)})},selectionCb:function(P){ve({type:j.IncrementalSnapshot,data:z({source:D.Selection},P)})},customElementCb:function(P){ve({type:j.IncrementalSnapshot,data:z({source:D.CustomElement},P)})},blockClass:s,ignoreClass:c,ignoreSelector:f,maskTextClass:g,maskTextSelector:y,maskInputOptions:tr,inlineStylesheet:m,sampling:W,recordDOM:Y,recordCanvas:Ne,inlineImages:Pr,userTriggeredOnInput:ze,collectFonts:J,doc:K,maskInputFn:S,maskTextFn:O,keepIframeSrcFn:$r,blockSelector:a,slimDOMOptions:rr,dataURLOptions:L,mirror:qe,iframeManager:dt,stylesheetManager:nr,shadowDomManager:Es,processedNodeManager:_u,canvasManager:Vo,ignoreCSSAttributes:Ss,plugins:((Te=Nt==null?void 0:Nt.filter(function(P){return P.observer}))==null?void 0:Te.map(function(P){return{observer:P.observer,options:P.options,callback:function(ne){return ve({type:j.Plugin,data:{plugin:P.name,payload:ne}})}}}))||[]},A)};dt.addLoadListener(function(K){try{var Te=K.contentDocument,P=Jp(Te);ir.push(P);var ne=dt.getObserverCleanup(K);dt.setObserverCleanup(K,function(){if(ne)try{ne()}catch(bu){}try{P();var sr=ir.indexOf(P);sr!==-1&&ir.splice(sr,1),r_(Te)}catch(bu){}})}catch(sr){console.warn(sr)}});var wu=function(){Ii(),ir.push(Jp(document)),Oi=!0};return document.readyState==="interactive"||document.readyState==="complete"?wu():(ir.push(Ae("DOMContentLoaded",function(){ve({type:j.DomContentLoaded,data:{}}),nt==="DOMContentLoaded"&&wu()})),ir.push(Ae("load",function(){ve({type:j.Load,data:{}}),nt==="load"&&wu()},window))),function(){ir.forEach(function(K){try{K()}catch(P){var Te=String(P).toLowerCase();Te.includes("cross-origin")||console.warn(P)}}),_u.destroy(),Oi=!1,t_()}}catch(K){console.warn(K)}}wt.addCustomEvent=function(t,n){if(!Oi)throw new Error("please add custom event after start recording");ve({type:j.Custom,data:{tag:t,payload:n}})},wt.freezePage=function(){Ye.forEach(function(t){return t.freeze()})},wt.takeFullSnapshot=function(t){if(!Oi)throw new Error("please take full snapshot after start recording");Ii(t)},wt.mirror=qe;var mf;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(mf||(mf={})),wt.addCustomEvent,wt.freezePage,wt.takeFullSnapshot;var yf={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},_f={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},xi={},M_=function(){return!!globalThis.Zone};function Ho(t){if(xi[t])return xi[t];var n=globalThis[t],i=n.prototype,e=t in yf?yf[t]:void 0,r=!!(e&&e.every(function(l){var f,p;return!!((p=(f=Object.getOwnPropertyDescriptor(i,l))==null?void 0:f.get)!=null&&p.toString().includes("[native code]"))})),s=t in _f?_f[t]:void 0,o=!!(s&&s.every(function(l){var f;return typeof i[l]=="function"&&((f=i[l])==null?void 0:f.toString().includes("[native code]"))}));if(r&&o&&!M_())return xi[t]=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[t].prototype;return document.body.removeChild(a),c?xi[t]=c:i}catch(l){return i}}var Yo={};function bt(t,n,i){var e,r=t+"."+String(i);if(Yo[r])return Yo[r].call(n);var s=Ho(t),o=(e=Object.getOwnPropertyDescriptor(s,i))==null?void 0:e.get;return o?(Yo[r]=o,o.call(n)):n[i]}var Ko={};function wf(t,n,i){var e=t+"."+String(i);if(Ko[e])return Ko[e].bind(n);var r=Ho(t),s=r[i];return typeof s!="function"?n[i]:(Ko[e]=s,s.bind(n))}function T_(t){return bt("Node",t,"childNodes")}function P_(t){return bt("Node",t,"parentNode")}function $_(t){return bt("Node",t,"parentElement")}function N_(t){return bt("Node",t,"textContent")}function L_(t,n){return wf("Node",t,"contains")(n)}function D_(t){return wf("Node",t,"getRootNode")()}function F_(t){return!t||!("host"in t)?null:bt("ShadowRoot",t,"host")}function U_(t){return t.styleSheets}function B_(t){return!t||!("shadowRoot"in t)?null:bt("Element",t,"shadowRoot")}function z_(t,n){return bt("Element",t,"querySelector")(n)}function q_(t,n){return bt("Element",t,"querySelectorAll")(n)}function W_(){return Ho("MutationObserver").constructor}function G_(t,n,i){try{if(!(n in t))return function(){};var e=t[n],r=i(e);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:e}})),t[n]=r,function(){t[n]=e}}catch(s){return function(){}}}var bf={childNodes:T_,parentNode:P_,parentElement:$_,textContent:N_,contains:L_,getRootNode:D_,host:F_,styleSheets:U_,shadowRoot:B_,querySelector:z_,querySelectorAll:q_,mutationObserver:W_,patch:G_};function Jo(t,n,i){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return Jo(bf.parentNode(t),n);for(var e=t.classList.length;e--;){var r=t.classList[e];if(n.test(r))return!0}return Jo(bf.parentNode(t),n)}function V_(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function j_(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var i=function e(){return M(this,e)?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(t).forEach(function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(i,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}),i}var Xo={exports:{}},ae=String,Sf=function(){return{isColorSupported:!1,reset:ae,bold:ae,dim:ae,italic:ae,underline:ae,inverse:ae,hidden:ae,strikethrough:ae,black:ae,red:ae,green:ae,yellow:ae,blue:ae,magenta:ae,cyan:ae,white:ae,gray:ae,bgBlack:ae,bgRed:ae,bgGreen:ae,bgYellow:ae,bgBlue:ae,bgMagenta:ae,bgCyan:ae,bgWhite:ae}};Xo.exports=Sf(),Xo.exports.createColors=Sf;var H_=Xo.exports,Y_={},K_=Object.freeze(Object.defineProperty({__proto__:null,default:Y_},Symbol.toStringTag,{value:"Module"})),_e=j_(K_),Cf=H_,Ef=_e,Zo=(function(t){ce(n,t);function n(e,r,s,o,a,u){var c;return c=t.call(this,e)||this,c.name="CssSyntaxError",c.reason=e,a&&(c.file=a),o&&(c.source=o),u&&(c.plugin=u),typeof r!="undefined"&&typeof s!="undefined"&&(typeof r=="number"?(c.line=r,c.column=s):(c.line=r.line,c.column=r.column,c.endLine=s.line,c.endColumn=s.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 s=this;if(!this.source)return"";var o=this.source;r==null&&(r=Cf.isColorSupported),Ef&&r&&(o=Ef(o));var a=o.split(/\r?\n/),u=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),l=String(c).length,f,p;if(r){var g=Cf.createColors(!0),v=g.bold,y=g.gray,d=g.red;f=function(m){return v(d(m))},p=function(m){return y(m)}}else f=p=function(m){return m};return a.slice(u,c).map(function(m,_){var b=u+1+_,C=" "+(" "+b).slice(-l)+" | ";if(b===s.line){var S=p(C.replace(/\d/g," "))+m.slice(0,s.column-1).replace(/[^\t]/g," ");return f(">")+p(C)+m+"\n "+S+f("^")}return" "+p(C)+m}).join("\n")},i.toString=function(){var r=this.showSourceCode();return r&&(r="\n\n"+r+"\n"),this.name+": "+this.message+r},n})(Dr(Error)),Qo=Zo;Zo.default=Zo;var St={};St.isClean=Symbol("isClean"),St.my=Symbol("my");var If={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function J_(t){return t[0].toUpperCase()+t.slice(1)}var ea=(function(){function t(i){this.builder=i}var n=t.prototype;return n.atrule=function(e,r){var s="@"+e.name,o=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?s+=e.raws.afterName:o&&(s+=" "),e.nodes)this.block(e,s+o);else{var a=(e.raws.between||"")+(r?";":"");this.builder(s+o+a,e)}},n.beforeAfter=function(e,r){var s;e.type==="decl"?s=this.raw(e,null,"beforeDecl"):e.type==="comment"?s=this.raw(e,null,"beforeComment"):r==="before"?s=this.raw(e,null,"beforeRule"):s=this.raw(e,null,"beforeClose");for(var o=e.parent,a=0;o&&o.type!=="root";)a+=1,o=o.parent;if(s.includes("\n")){var u=this.raw(e,null,"indent");if(u.length)for(var c=0;c<a;c++)s+=u}return s},n.block=function(e,r){var s=this.raw(e,"between","beforeOpen");this.builder(r+s+"{",e,"start");var o;e.nodes&&e.nodes.length?(this.body(e),o=this.raw(e,"after")):o=this.raw(e,"after","emptyBody"),o&&this.builder(o),this.builder("}",e,"end")},n.body=function(e){for(var r=e.nodes.length-1;r>0&&e.nodes[r].type==="comment";)r-=1;for(var s=this.raw(e,"semicolon"),o=0;o<e.nodes.length;o++){var a=e.nodes[o],u=this.raw(a,"before");u&&this.builder(u),this.stringify(a,r!==o||s)}},n.comment=function(e){var r=this.raw(e,"left","commentLeft"),s=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+s+"*/",e)},n.decl=function(e,r){var s=this.raw(e,"between","colon"),o=e.prop+s+this.rawValue(e,"value");e.important&&(o+=e.raws.important||" !important"),r&&(o+=";"),this.builder(o,e)},n.document=function(e){this.body(e)},n.raw=function(e,r,s){var o;if(s||(s=r),r&&(o=e.raws[r],typeof o!="undefined"))return o;var a=e.parent;if(s==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return If[s];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[s]!="undefined")return u.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(e,s);var c="raw"+J_(s);return this[c]?o=this[c](u,e):u.walk(function(l){if(o=l.raws[r],typeof o!="undefined")return!1}),typeof o=="undefined"&&(o=If[s]),u.rawCache[s]=o,o},n.rawBeforeClose=function(e){var r;return e.walk(function(s){if(s.nodes&&s.nodes.length>0&&typeof s.raws.after!="undefined")return r=s.raws.after,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(e,r){var s;return e.walkComments(function(o){if(typeof o.raws.before!="undefined")return s=o.raws.before,s.includes("\n")&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s=="undefined"?s=this.raw(r,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s},n.rawBeforeDecl=function(e,r){var s;return e.walkDecls(function(o){if(typeof o.raws.before!="undefined")return s=o.raws.before,s.includes("\n")&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s=="undefined"?s=this.raw(r,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s},n.rawBeforeOpen=function(e){var r;return e.walk(function(s){if(s.type!=="decl"&&(r=s.raws.between,typeof r!="undefined"))return!1}),r},n.rawBeforeRule=function(e){var r;return e.walk(function(s){if(s.nodes&&(s.parent!==e||e.first!==s)&&typeof s.raws.before!="undefined")return r=s.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawColon=function(e){var r;return e.walkDecls(function(s){if(typeof s.raws.between!="undefined")return r=s.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(e){var r;return e.walk(function(s){if(s.nodes&&s.nodes.length===0&&(r=s.raws.after,typeof r!="undefined"))return!1}),r},n.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var r;return e.walk(function(s){var o=s.parent;if(o&&o!==e&&o.parent&&o.parent===e&&typeof s.raws.before!="undefined"){var a=s.raws.before.split("\n");return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r},n.rawSemicolon=function(e){var r;return e.walk(function(s){if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(r=s.raws.semicolon,typeof r!="undefined"))return!1}),r},n.rawValue=function(e,r){var s=e[r],o=e.raws[r];return o&&o.value===s?o.raw:s},n.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},n.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},n.stringify=function(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)},t})(),Of=ea;ea.default=ea;var X_=Of;function ta(t,n){var i=new X_(n);i.stringify(t)}var ki=ta;ta.default=ta;var Ri=St.isClean,Z_=St.my,Q_=Qo,ew=Of,tw=ki;function ra(t,n){var i=new t.constructor;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&e!=="proxyCache"){var r=t[e],s=typeof r=="undefined"?"undefined":T(r);e==="parent"&&s==="object"?n&&(i[e]=n):e==="source"?i[e]=r:Array.isArray(r)?i[e]=r.map(function(o){return ra(o,i)}):(s==="object"&&r!==null&&(r=ra(r)),i[e]=r)}return i}var na=(function(){function t(i){i===void 0&&(i={}),this.raws={},this[Ri]=!1,this[Z_]=!0;for(var e in i)if(e==="nodes"){this.nodes=[];for(var r=I(i[e]),s;!(s=r()).done;){var o=s.value;typeof o.clone=="function"?this.append(o.clone()):this.append(o)}}else this[e]=i[e]}var n=t.prototype;return n.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return e},n.after=function(e){return this.parent.insertAfter(this,e),this},n.assign=function(e){e===void 0&&(e={});for(var r in e)this[r]=e[r];return this},n.before=function(e){return this.parent.insertBefore(this,e),this},n.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},n.clone=function(e){e===void 0&&(e={});var r=ra(this);for(var s in e)r[s]=e[s];return r},n.cloneAfter=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertAfter(this,r),r},n.cloneBefore=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertBefore(this,r),r},n.error=function(e,r){if(r===void 0&&(r={}),this.source){var s=this.rangeBy(r),o=s.end,a=s.start;return this.source.input.error(e,{column:a.column,line:a.line},{column:o.column,line:o.line},r)}return new Q_(e)},n.getProxyProcessor=function(){return{get:function(r,s){return s==="proxyOf"?r:s==="root"?function(){return r.root().toProxy()}:r[s]},set:function(r,s,o){return r[s]===o||(r[s]=o,(s==="prop"||s==="value"||s==="name"||s==="params"||s==="important"||s==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[Ri]){this[Ri]=!1;for(var e=this;e=e.parent;)e[Ri]=!1}},n.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},n.positionBy=function(e,r){var s=this.source.start;if(e.index)s=this.positionInside(e.index,r);else if(e.word){r=this.toString();var o=r.indexOf(e.word);o!==-1&&(s=this.positionInside(o,r))}return s},n.positionInside=function(e,r){for(var s=r||this.toString(),o=this.source.start.column,a=this.source.start.line,u=0;u<e;u++)s[u]==="\n"?(o=1,a+=1):o+=1;return{column:o,line:a}},n.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},n.rangeBy=function(e){var r={column:this.source.start.column,line:this.source.start.line},s=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(e.word){var o=this.toString(),a=o.indexOf(e.word);a!==-1&&(r=this.positionInside(a,o),s=this.positionInside(a+e.word.length,o))}else e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=this.positionInside(e.index)),e.end?s={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?s=this.positionInside(e.endIndex):e.index&&(s=this.positionInside(e.index+1));return(s.line<r.line||s.line===r.line&&s.column<=r.column)&&(s={column:r.column+1,line:r.line}),{end:s,start:r}},n.raw=function(e,r){var s=new ew;return s.raw(this,e,r)},n.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},n.replaceWith=function(){for(var e=arguments.length,r=new Array(e),s=0;s<e;s++)r[s]=arguments[s];if(this.parent){for(var o=this,a=!1,u=I(r),c;!(c=u()).done;){var l=c.value;l===this?a=!0:a?(this.parent.insertAfter(o,l),o=l):this.parent.insertBefore(o,l)}a||this.remove()}return this},n.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},n.toJSON=function(e,r){var s={},o=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))s[u]=c.map(function(f){return(typeof f=="undefined"?"undefined":T(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof c=="undefined"?"undefined":T(c))==="object"&&c.toJSON)s[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++),s[u]={end:c.end,inputId:l,start:c.start}}else s[u]=c}return o&&(s.inputs=[].concat(r.keys()).map(function(f){return f.toJSON()})),s},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(e){e===void 0&&(e=tw),e.stringify&&(e=e.stringify);var r="";return e(this,function(s){r+=s}),r},n.warn=function(e,r,s){var o={node:this};for(var a in s)o[a]=s[a];return e.warn(r,o)},ie(t,[{key:"proxyOf",get:function(){return this}}]),t})(),Ai=na;na.default=na;var rw=Ai,ia=(function(t){ce(n,t);function n(i){var e;return i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=z({},i,{value:String(i.value)})),e=t.call(this,i)||this,e.type="decl",e}return ie(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n})(rw),Mi=ia;ia.default=ia;var nw="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",iw=function(t){t===void 0&&(t=21);for(var n="",i=t;i--;)n+=nw[Math.random()*64|0];return n},sw={nanoid:iw},xf=_e.SourceMapConsumer,kf=_e.SourceMapGenerator,ow=_e.existsSync,aw=_e.readFileSync,sa=_e.dirname,uw=_e.join;function cw(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var oa=(function(){function t(i,e){if(e.map!==!1){this.loadAnnotation(i),this.inline=this.startWith(this.annotation,"data:");var r=e.map?e.map.prev:void 0,s=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=sa(this.mapFile)),s&&(this.text=s)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new xf(this.text)),this.consumerCache},n.decodeInline=function(e){var r=/^data:application\/json;charset=utf-?8;base64,/,s=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(o.test(e)||a.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(r.test(e)||s.test(e))return cw(e.substr(RegExp.lastMatch.length));var u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},n.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(e){return(typeof e=="undefined"?"undefined":T(e))!=="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)},n.loadAnnotation=function(e){var r=e.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var s=e.lastIndexOf(r.pop()),o=e.indexOf("*/",s);s>-1&&o>-1&&(this.annotation=this.getAnnotationURL(e.substring(s,o)))}},n.loadFile=function(e){if(this.root=sa(e),ow(e))return this.mapFile=e,aw(e,"utf-8").toString().trim()},n.loadMap=function(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){var s=r(e);if(s){var o=this.loadFile(s);if(!o)throw new Error("Unable to load previous source map: "+s.toString());return o}}else{if(M(r,xf))return kf.fromSourceMap(r).toString();if(M(r,kf))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 e&&(a=uw(sa(e),a)),this.loadFile(a)}}},n.startWith=function(e,r){return e?e.substr(0,r.length)===r:!1},n.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t})(),Rf=oa;oa.default=oa;var lw=_e.SourceMapConsumer,fw=_e.SourceMapGenerator,Af=_e.fileURLToPath,Ti=_e.pathToFileURL,aa=_e.isAbsolute,ua=_e.resolve,hw=sw.nanoid,ca=_e,Mf=Qo,pw=Rf,la=Symbol("fromOffsetCache"),dw=!!(lw&&fw),Tf=!!(ua&&aa),Pi=(function(){function t(i,e){if(e===void 0&&(e={}),i===null||typeof i=="undefined"||(typeof i=="undefined"?"undefined":T(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,e.from&&(!Tf||/^\w+:\/\//.test(e.from)||aa(e.from)?this.file=e.from:this.file=ua(e.from)),Tf&&dw){var r=new pw(this.css,e);if(r.text){this.map=r;var s=r.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+hw(6)+">"),this.map&&(this.map.file=this.from)}var n=t.prototype;return n.error=function(e,r,s,o){o===void 0&&(o={});var a,u,c;if(r&&(typeof r=="undefined"?"undefined":T(r))==="object"){var l=r,f=s;if(typeof l.offset=="number"){var p=this.fromOffset(l.offset);r=p.line,s=p.col}else r=l.line,s=l.column;if(typeof f.offset=="number"){var g=this.fromOffset(f.offset);u=g.line,c=g.col}else u=f.line,c=f.column}else if(!s){var v=this.fromOffset(r);r=v.line,s=v.col}var y=this.origin(r,s,u,c);return y?a=new Mf(e,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,o.plugin):a=new Mf(e,u===void 0?r:{column:s,line:r},u===void 0?s:{column:c,line:u},this.css,this.file,o.plugin),a.input={column:s,endColumn:c,endLine:u,line:r,source:this.css},this.file&&(Ti&&(a.input.url=Ti(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(e){var r,s;if(this[la])s=this[la];else{var o=this.css.split("\n");s=new Array(o.length);for(var a=0,u=0,c=o.length;u<c;u++)s[u]=a,a+=o[u].length+1;this[la]=s}r=s[s.length-1];var l=0;if(e>=r)l=s.length-1;else for(var f=s.length-2,p;l<f;)if(p=l+(f-l>>1),e<s[p])f=p-1;else if(e>=s[p+1])l=p+1;else{l=p;break}return{col:e-s[l]+1,line:l+1}},n.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:ua(this.map.consumer().sourceRoot||this.map.root||".",e)},n.origin=function(e,r,s,o){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:r,line:e});if(!u.source)return!1;var c;typeof s=="number"&&(c=a.originalPositionFor({column:o,line:s}));var l;aa(u.source)?l=Ti(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||Ti(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(Af)f.file=Af(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 e={},r=0,s=["hasBOM","css","file","id"];r<s.length;r++){var o=s[r];this[o]!=null&&(e[o]=this[o])}return this.map&&(e.map=z({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},ie(t,[{key:"from",get:function(){return this.file||this.id}}]),t})(),$i=Pi;Pi.default=Pi,ca&&ca.registerInput&&ca.registerInput(Pi);var Pf=_e.SourceMapConsumer,Ni=_e.SourceMapGenerator,Li=_e.dirname,$f=_e.relative,Nf=_e.resolve,Lf=_e.sep,Df=_e.pathToFileURL,vw=$i,gw=!!(Pf&&Ni),mw=!!(Li&&Nf&&$f&&Lf),yw=(function(){function t(i,e,r,s){this.stringify=i,this.mapOpts=r.map||{},this.root=e,this.opts=r,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var n=t.prototype;return n.addAnnotation=function(){var e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";var r="\n";this.css.includes("\r\n")&&(r="\r\n"),this.css+=r+"/*# sourceMappingURL="+e+" */"},n.applyPrevMaps=function(){for(var e=I(this.previous()),r;!(r=e()).done;){var s=r.value,o=this.toUrl(this.path(s.file)),a=s.root||Li(s.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new Pf(s.text),u.sourcesContent&&(u.sourcesContent=null)):u=s.consumer(),this.map.applySourceMap(u,o,this.toUrl(this.path(a)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.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(),mw&&gw&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(r){e+=r}),[e]},n.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Ni.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Ni({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 e=this;this.css="",this.map=new Ni({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,s=1,o="<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(e.css+=l,f&&p!=="end"&&(a.generated.line=r,a.generated.column=s-1,f.source&&f.source.start?(a.source=e.sourcePath(f),a.original.line=f.source.start.line,a.original.column=f.source.start.column-1,e.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,e.map.addMapping(a))),u=l.match(/\n/g),u?(r+=u.length,c=l.lastIndexOf("\n"),s=l.length-c):s+=l.length,f&&p!=="start"){var g=f.parent||{raws:{}},v=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!v||f!==g.last||g.raws.semicolon)&&(f.source&&f.source.end?(a.source=e.sourcePath(f),a.original.line=f.source.end.line,a.original.column=f.source.end.column-1,a.generated.line=r,a.generated.column=s-2,e.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=s-1,e.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(e){return e.annotation}):!0},n.isInline=function(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;var e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!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(e){return e.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(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var r=this.memoizedPaths.get(e);if(r)return r;var s=this.opts.to?Li(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(s=Li(Nf(s,this.mapOpts.annotation)));var o=$f(s,e);return this.memoizedPaths.set(e,o),o},n.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(s){if(s.source&&s.source.input.map){var o=s.source.input.map;e.previousMaps.includes(o)||e.previousMaps.push(o)}});else{var r=new vw(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},n.setSourcesContent=function(){var e=this,r={};if(this.root)this.root.walk(function(o){if(o.source){var a=o.source.input.from;if(a&&!r[a]){r[a]=!0;var u=e.usesFileUrls?e.toFileUrl(a):e.toUrl(e.path(a));e.map.setSourceContent(u,o.source.input.css)}}});else if(this.css){var s=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(s,this.css)}},n.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},n.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},n.toFileUrl=function(e){var r=this.memoizedFileURLs.get(e);if(r)return r;if(Df){var s=Df(e).toString();return this.memoizedFileURLs.set(e,s),s}else throw new Error("`map.absolute` option is not available in this PostCSS build")},n.toUrl=function(e){var r=this.memoizedURLs.get(e);if(r)return r;Lf==="\\"&&(e=e.replace(/\\/g,"/"));var s=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,s),s},t})(),Ff=yw,_w=Ai,fa=(function(t){ce(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="comment",e}return n})(_w),Di=fa;fa.default=fa;var Uf=St.isClean,Bf=St.my,zf=Mi,qf=Di,ww=Ai,Wf,ha,pa,Gf;function Vf(t){return t.map(function(n){return n.nodes&&(n.nodes=Vf(n.nodes)),delete n.source,n})}function jf(t){if(t[Uf]=!1,t.proxyOf.nodes)for(var n=I(t.proxyOf.nodes),i;!(i=n()).done;){var e=i.value;jf(e)}}var at=(function(t){ce(n,t);function n(){return t.apply(this,arguments)||this}var i=n.prototype;return i.append=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];for(var a=I(s),u;!(u=a()).done;)for(var c=u.value,l=this.normalize(c,this.last),f=I(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.push(g)}return this.markDirty(),this},i.cleanRaws=function(r){if(t.prototype.cleanRaws.call(this,r),this.nodes)for(var s=I(this.nodes),o;!(o=s()).done;){var a=o.value;a.cleanRaws(r)}},i.each=function(r){if(this.proxyOf.nodes){for(var s=this.getIterator(),o,a;this.indexes[s]<this.proxyOf.nodes.length&&(o=this.indexes[s],a=r(this.proxyOf.nodes[o],o),a!==!1);)this.indexes[s]+=1;return delete this.indexes[s],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(s,o){return o==="proxyOf"?s:s[o]?o==="each"||typeof o=="string"&&o.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=s)[o].apply(l,[].concat(u.map(function(f){return typeof f=="function"?function(p,g){return f(p.toProxy(),g)}:f})))}:o==="every"||o==="some"?function(a){return s[o](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))})}:o==="root"?function(){return s.root().toProxy()}:o==="nodes"?s.nodes.map(function(a){return a.toProxy()}):o==="first"||o==="last"?s[o].toProxy():s[o]:s[o]},set:function(s,o,a){return s[o]===a||(s[o]=a,(o==="name"||o==="params"||o==="selector")&&s.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,s){var o=this.index(r),a=this.normalize(s,this.proxyOf.nodes[o]).reverse();o=this.index(r);for(var u=I(a),c;!(c=u()).done;){var l=c.value;this.proxyOf.nodes.splice(o+1,0,l)}var f;for(var p in this.indexes)f=this.indexes[p],o<f&&(this.indexes[p]=f+a.length);return this.markDirty(),this},i.insertBefore=function(r,s){var o=this.index(r),a=o===0?"prepend":!1,u=this.normalize(s,this.proxyOf.nodes[o],a).reverse();o=this.index(r);for(var c=I(u),l;!(l=c()).done;){var f=l.value;this.proxyOf.nodes.splice(o,0,f)}var p;for(var g in this.indexes)p=this.indexes[g],o<=p&&(this.indexes[g]=p+u.length);return this.markDirty(),this},i.normalize=function(r,s){var o=this;if(typeof r=="string")r=Vf(Wf(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=I(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=I(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 zf(r)]}else if(r.selector)r=[new ha(r)];else if(r.name)r=[new pa(r)];else if(r.text)r=[new qf(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(v){return v[Bf]||n.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[Uf]&&jf(v),typeof v.raws.before=="undefined"&&s&&typeof s.raws.before!="undefined"&&(v.raws.before=s.raws.before.replace(/\S/g,"")),v.parent=o.proxyOf,v});return g},i.prepend=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];s=s.reverse();for(var a=I(s),u;!(u=a()).done;){for(var c=u.value,l=this.normalize(c,this.first,"prepend").reverse(),f=I(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.unshift(g)}for(var v in this.indexes)this.indexes[v]=this.indexes[v]+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=I(this.proxyOf.nodes),s;!(s=r()).done;){var o=s.value;o.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 s;for(var o in this.indexes)s=this.indexes[o],s>=r&&(this.indexes[o]=s-1);return this.markDirty(),this},i.replaceValues=function(r,s,o){return o||(o=s,s={}),this.walkDecls(function(a){s.props&&!s.props.includes(a.prop)||s.fast&&!a.value.includes(s.fast)||(a.value=a.value.replace(r,o))}),this.markDirty(),this},i.some=function(r){return this.nodes.some(r)},i.walk=function(r){return this.each(function(s,o){var a;try{a=r(s,o)}catch(u){throw s.addToError(u)}return a!==!1&&s.walk&&(a=s.walk(r)),a})},i.walkAtRules=function(r,s){return s?M(r,RegExp)?this.walk(function(o,a){if(o.type==="atrule"&&r.test(o.name))return s(o,a)}):this.walk(function(o,a){if(o.type==="atrule"&&o.name===r)return s(o,a)}):(s=r,this.walk(function(o,a){if(o.type==="atrule")return s(o,a)}))},i.walkComments=function(r){return this.walk(function(s,o){if(s.type==="comment")return r(s,o)})},i.walkDecls=function(r,s){return s?M(r,RegExp)?this.walk(function(o,a){if(o.type==="decl"&&r.test(o.prop))return s(o,a)}):this.walk(function(o,a){if(o.type==="decl"&&o.prop===r)return s(o,a)}):(s=r,this.walk(function(o,a){if(o.type==="decl")return s(o,a)}))},i.walkRules=function(r,s){return s?M(r,RegExp)?this.walk(function(o,a){if(o.type==="rule"&&r.test(o.selector))return s(o,a)}):this.walk(function(o,a){if(o.type==="rule"&&o.selector===r)return s(o,a)}):(s=r,this.walk(function(o,a){if(o.type==="rule")return s(o,a)}))},ie(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})(ww);at.registerParse=function(t){Wf=t},at.registerRule=function(t){ha=t},at.registerAtRule=function(t){pa=t},at.registerRoot=function(t){Gf=t};var qt=at;at.default=at,at.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,pa.prototype):t.type==="rule"?Object.setPrototypeOf(t,ha.prototype):t.type==="decl"?Object.setPrototypeOf(t,zf.prototype):t.type==="comment"?Object.setPrototypeOf(t,qf.prototype):t.type==="root"&&Object.setPrototypeOf(t,Gf.prototype),t[Bf]=!0,t.nodes&&t.nodes.forEach(function(n){at.rebuild(n)})};var bw=qt,Hf,Yf,sn=(function(t){ce(n,t);function n(e){var r;return r=t.call(this,z({type:"document"},e))||this,r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.toResult=function(r){r===void 0&&(r={});var s=new Hf(new Yf,this,r);return s.stringify()},n})(bw);sn.registerLazyResult=function(t){Hf=t},sn.registerProcessor=function(t){Yf=t};var da=sn;sn.default=sn;var Kf={},Jf=function(n){Kf[n]||(Kf[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},va=(function(){function t(i,e){if(e===void 0&&(e={}),this.type="warning",this.text=i,e.node&&e.node.source){var r=e.node.rangeBy(e);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var s in e)this[s]=e[s]}var n=t.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},t})(),Xf=va;va.default=va;var Sw=Xf,ga=(function(){function t(i,e,r){this.processor=i,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}var n=t.prototype;return n.toString=function(){return this.css},n.warn=function(e,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var s=new Sw(e,r);return this.messages.push(s),s},n.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},ie(t,[{key:"content",get:function(){return this.css}}]),t})(),ma=ga;ga.default=ga;var ya=39,Zf=34,Fi=92,Qf=47,Ui=10,on=32,Bi=12,zi=9,qi=13,Cw=91,Ew=93,Iw=40,Ow=41,xw=123,kw=125,Rw=59,Aw=42,Mw=58,Tw=64,Wi=/[\t\n\f\r "#'()/;[\\\]{}]/g,Gi=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Pw=/.[\r\n"'(/\\]/,eh=/[\da-f]/i,$w=function(n,i){i===void 0&&(i={});var e=n.css.valueOf(),r=i.ignoreErrors,s,o,a,u,c,l,f,p,g,v,y=e.length,d=0,m=[],_=[];function b(){return d}function C(k){throw n.error("Unclosed "+k,d)}function S(){return _.length===0&&d>=y}function O(k){if(_.length)return _.pop();if(!(d>=y)){var $=k?k.ignoreUnclosed:!1;switch(s=e.charCodeAt(d),s){case Ui:case on:case zi:case qi:case Bi:{o=d;do o+=1,s=e.charCodeAt(o);while(s===on||s===Ui||s===zi||s===qi||s===Bi);v=["space",e.slice(d,o)],d=o-1;break}case Cw:case Ew:case xw:case kw:case Mw:case Rw:case Ow:{var W=String.fromCharCode(s);v=[W,W,d];break}case Iw:{if(p=m.length?m.pop()[1]:"",g=e.charCodeAt(d+1),p==="url"&&g!==ya&&g!==Zf&&g!==on&&g!==Ui&&g!==zi&&g!==Bi&&g!==qi){o=d;do{if(l=!1,o=e.indexOf(")",o+1),o===-1)if(r||$){o=d;break}else C("bracket");for(f=o;e.charCodeAt(f-1)===Fi;)f-=1,l=!l}while(l);v=["brackets",e.slice(d,o+1),d,o],d=o}else o=e.indexOf(")",d+1),u=e.slice(d,o+1),o===-1||Pw.test(u)?v=["(","(",d]:(v=["brackets",u,d,o],d=o);break}case ya:case Zf:{a=s===ya?"'":'"',o=d;do{if(l=!1,o=e.indexOf(a,o+1),o===-1)if(r||$){o=d+1;break}else C("string");for(f=o;e.charCodeAt(f-1)===Fi;)f-=1,l=!l}while(l);v=["string",e.slice(d,o+1),d,o],d=o;break}case Tw:{Wi.lastIndex=d+1,Wi.test(e),Wi.lastIndex===0?o=e.length-1:o=Wi.lastIndex-2,v=["at-word",e.slice(d,o+1),d,o],d=o;break}case Fi:{for(o=d,c=!0;e.charCodeAt(o+1)===Fi;)o+=1,c=!c;if(s=e.charCodeAt(o+1),c&&s!==Qf&&s!==on&&s!==Ui&&s!==zi&&s!==qi&&s!==Bi&&(o+=1,eh.test(e.charAt(o)))){for(;eh.test(e.charAt(o+1));)o+=1;e.charCodeAt(o+1)===on&&(o+=1)}v=["word",e.slice(d,o+1),d,o],d=o;break}default:{s===Qf&&e.charCodeAt(d+1)===Aw?(o=e.indexOf("*/",d+2)+1,o===0&&(r||$?o=e.length:C("comment")),v=["comment",e.slice(d,o+1),d,o],d=o):(Gi.lastIndex=d+1,Gi.test(e),Gi.lastIndex===0?o=e.length-1:o=Gi.lastIndex-2,v=["word",e.slice(d,o+1),d,o],m.push(v),d=o);break}}return d++,v}}function A(k){_.push(k)}return{back:A,endOfFile:S,nextToken:O,position:b}},th=qt,Vi=(function(t){ce(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="atrule",r}var i=n.prototype;return i.append=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.append).call.apply(a,[].concat([this],s))},i.prepend=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.prepend).call.apply(a,[].concat([this],s))},n})(th),_a=Vi;Vi.default=Vi,th.registerAtRule(Vi);var rh=qt,nh,ih,_r=(function(t){ce(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="root",r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.normalize=function(r,s,o){var a=t.prototype.normalize.call(this,r);if(s){if(o==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(var u=I(a),c;!(c=u()).done;){var l=c.value;l.raws.before=s.raws.before}}return a},i.removeChild=function(r,s){var o=this.index(r);return!s&&o===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[o].raws.before),t.prototype.removeChild.call(this,r)},i.toResult=function(r){r===void 0&&(r={});var s=new nh(new ih,this,r);return s.stringify()},n})(rh);_r.registerLazyResult=function(t){nh=t},_r.registerProcessor=function(t){ih=t};var an=_r;_r.default=_r,rh.registerRoot(_r);var un={comma:function(n){return un.split(n,[","],!0)},space:function(n){var i=[" ","\n"," "];return un.split(n,i)},split:function(n,i,e){for(var r=[],s="",o=!1,a=0,u=!1,c="",l=!1,f=I(n),p;!(p=f()).done;){var g=p.value;l?l=!1:g==="\\"?l=!0:u?g===c&&(u=!1):g==='"'||g==="'"?(u=!0,c=g):g==="("?a+=1:g===")"?a>0&&(a-=1):a===0&&i.includes(g)&&(o=!0),o?(s!==""&&r.push(s.trim()),s="",o=!1):s+=g}return(e||s!=="")&&r.push(s.trim()),r}},sh=un;un.default=un;var oh=qt,Nw=sh,ji=(function(t){ce(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return ie(n,[{key:"selectors",get:function(){return Nw.comma(this.selector)},set:function(e){var r=this.selector?this.selector.match(/,\s*/):null,s=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(s)}}]),n})(oh),wa=ji;ji.default=ji,oh.registerRule(ji);var Lw=Mi,Dw=$w,Fw=Di,Uw=_a,Bw=an,ah=wa,uh={empty:!0,space:!0};function zw(t){for(var n=t.length-1;n>=0;n--){var i=t[n],e=i[3]||i[2];if(e)return e}}var qw=(function(){function t(i){this.input=i,this.root=new Bw,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=t.prototype;return n.atrule=function(e){var r=new Uw;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);for(var s,o,a,u=!1,c=!1,l=[],f=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),s=e[0],s==="("||s==="["?f.push(s==="("?")":"]"):s==="{"&&f.length>0?f.push("}"):s===f[f.length-1]&&f.pop(),f.length===0)if(s===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(s==="{"){c=!0;break}else if(s==="}"){if(l.length>0){for(a=l.length-1,o=l[a];o&&o[0]==="space";)o=l[--a];o&&(r.source.end=this.getPosition(o[3]||o[2]),r.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);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&&(e=l[l.length-1],r.source.end=this.getPosition(e[3]||e[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(e){var r=this.colon(e);if(r!==!1){for(var s=0,o,a=r-1;a>=0&&(o=e[a],!(o[0]!=="space"&&(s+=1,s===2)));a--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}},n.colon=function(e){for(var r=0,s,o,a,u=I(e.entries()),c;!(c=u()).done;){var l=c.value,f=l[0],p=l[1];if(s=p,o=s[0],o==="("&&(r+=1),o===")"&&(r-=1),r===0&&o===":")if(!a)this.doubleColon(s);else{if(a[0]==="word"&&a[1]==="progid")continue;return f}a=s}return!1},n.comment=function(e){var r=new Fw;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;var s=e[1].slice(2,-2);if(/^\s*$/.test(s))r.text="",r.raws.left=s,r.raws.right="";else{var o=s.match(/^(\s*)([^]*\S)(\s*)$/);r.text=o[2],r.raws.left=o[1],r.raws.right=o[3]}},n.createTokenizer=function(){this.tokenizer=Dw(this.input)},n.decl=function(e,r){var s=new Lw;this.init(s,e[0][2]);var o=e[e.length-1];for(o[0]===";"&&(this.semicolon=!0,e.pop()),s.source.end=this.getPosition(o[3]||o[2]||zw(e)),s.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),s.raws.before+=e.shift()[1];for(s.source.start=this.getPosition(e[0][2]),s.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;s.prop+=e.shift()[1]}s.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){s.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),s.raws.between+=u[1];(s.prop[0]==="_"||s.prop[0]==="*")&&(s.raws.before+=s.prop[0],s.prop=s.prop.slice(1));for(var c=[],l;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)c.push(e.shift());this.precheckMissedSemicolon(e);for(var f=e.length-1;f>=0;f--){if(u=e[f],u[1].toLowerCase()==="!important"){s.important=!0;var p=this.stringFrom(e,f);p=this.spacesFromEnd(e)+p,p!==" !important"&&(s.raws.important=p);break}else if(u[1].toLowerCase()==="important"){for(var g=e.slice(0),v="",y=f;y>0;y--){var d=g[y][0];if(v.trim().indexOf("!")===0&&d!=="space")break;v=g.pop()[1]+v}v.trim().indexOf("!")===0&&(s.important=!0,s.raws.important=v,e=g)}if(u[0]!=="space"&&u[0]!=="comment")break}var m=e.some(function(_){return _[0]!=="space"&&_[0]!=="comment"});m&&(s.raws.between+=c.map(function(_){return _[1]}).join(""),c=[]),this.raw(s,"value",c.concat(e),r),s.value.includes(":")&&!r&&this.checkMissedSemicolon(e)},n.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},n.emptyRule=function(e){var r=new ah;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r},n.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},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(e){if(this.spaces+=e[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(e){var r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}},n.init=function(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},n.other=function(e){for(var r=!1,s=null,o=!1,a=null,u=[],c=e[1].startsWith("--"),l=[],f=e;f;){if(s=f[0],l.push(f),s==="("||s==="[")a||(a=f),u.push(s==="("?")":"]");else if(c&&o&&s==="{")a||(a=f),u.push("}");else if(u.length===0)if(s===";")if(o){this.decl(l,c);return}else break;else if(s==="{"){this.rule(l);return}else if(s==="}"){this.tokenizer.back(l.pop()),r=!0;break}else s===":"&&(o=!0);else s===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&&o){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 e;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},n.precheckMissedSemicolon=function(){},n.raw=function(e,r,s,o){for(var a,u,c=s.length,l="",f=!0,p,g,v=0;v<c;v+=1)a=s[v],u=a[0],u==="space"&&v===c-1&&!o?f=!1:u==="comment"?(g=s[v-1]?s[v-1][0]:"empty",p=s[v+1]?s[v+1][0]:"empty",!uh[g]&&!uh[p]?l.slice(-1)===","?f=!1:l+=a[1]:f=!1):l+=a[1];if(!f){var y=s.reduce(function(d,m){return d+m[1]},"");e.raws[r]={raw:y,value:l}}e[r]=l},n.rule=function(e){e.pop();var r=new ah;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r},n.spacesAndCommentsFromEnd=function(e){for(var r,s="";e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)s=e.pop()[1]+s;return s},n.spacesAndCommentsFromStart=function(e){for(var r,s="";e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)s+=e.shift()[1];return s},n.spacesFromEnd=function(e){for(var r,s="";e.length&&(r=e[e.length-1][0],r==="space");)s=e.pop()[1]+s;return s},n.stringFrom=function(e,r){for(var s="",o=r;o<e.length;o++)s+=e[o][1];return e.splice(r,e.length-r),s},n.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},n.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},n.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},n.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},n.unnamedAtrule=function(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},t})(),Ww=qw,Gw=qt,Vw=Ww,jw=$i;function Hi(t,n){var i=new jw(t,n),e=new Vw(i);try{e.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 e.root}var ba=Hi;Hi.default=Hi,Gw.registerParse(Hi);var Ke=St.isClean,Hw=St.my,Yw=Ff,Kw=ki,Jw=qt,Xw=da,Zw=Jf,ch=ma,Qw=ba,eb=an,tb={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},rb={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},nb={Once:!0,postcssPlugin:!0,prepare:!0},wr=0;function cn(t){return(typeof t=="undefined"?"undefined":T(t))==="object"&&typeof t.then=="function"}function lh(t){var n=!1,i=tb[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[i,i+"-"+n,wr,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:t.append?[i,wr,i+"Exit"]:[i,i+"Exit"]}function fh(t){var n;return t.type==="document"?n=["Document",wr,"DocumentExit"]:t.type==="root"?n=["Root",wr,"RootExit"]:n=lh(t),{eventIndex:0,events:n,iterator:0,node:t,visitorIndex:0,visitors:[]}}function Sa(t){return t[Ke]=!1,t.nodes&&t.nodes.forEach(function(n){return Sa(n)}),t}var Ca={},br=(function(){function t(i,e,r){var s=this;this.stringified=!1,this.processed=!1;var o;if((typeof e=="undefined"?"undefined":T(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))o=Sa(e);else if(M(e,t)||M(e,ch))o=Sa(e.root),e.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=e.map);else{var a=Qw;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{o=a(e,r)}catch(u){this.processed=!0,this.error=u}o&&!o[Hw]&&Jw.rebuild(o)}this.result=new ch(i,o,r),this.helpers=z({},Ca,{postcss:Ca,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":T(u))==="object"&&u.prepare?z({},u,u.prepare(s.result)):u})}var n=t.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(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},n.handleError=function(e,r){var s=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=s.postcssPlugin,e.setMessage();else if(s.postcssVersion&&process.env.NODE_ENV!=="production"){var o=s.postcssPlugin,a=s.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 "+o+" uses "+a+". Perhaps this is the source of the error below.")}}catch(f){console&&console.error&&console.error(f)}return e},n.prepareVisitors=function(){var e=this;this.listeners={};for(var r=function(l,f,p){e.listeners[f]||(e.listeners[f]=[]),e.listeners[f].push([l,p])},s=I(this.plugins),o;!(o=s()).done;){var a=o.value;if((typeof a=="undefined"?"undefined":T(a))==="object")for(var u in a){if(!rb[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!nb[u])if(T(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 e=this;return Cn(function(){var r,s,o,a,u,c,l,f,p,g,v,y;return Dt(this,function(d){switch(d.label){case 0:e.plugin=0,r=0,d.label=1;case 1:if(!(r<e.plugins.length))return[3,6];if(s=e.plugins[r],o=e.runOnRoot(s),!cn(o))return[3,5];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,o];case 3:return d.sent(),[3,5];case 4:throw a=d.sent(),e.handleError(a);case 5:return r++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];u=e.result.root,d.label=7;case 7:if(u[Ke])return[3,14];u[Ke]=!0,c=[fh(u)],d.label=8;case 8:if(!(c.length>0))return[3,13];if(l=e.visitTick(c),!cn(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,e.handleError(f,p);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];g=function(){var m,_,b,C,S;return Dt(this,function(O){switch(O.label){case 0:m=y.value,_=m[0],b=m[1],e.result.lastPlugin=_,O.label=1;case 1:return O.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(C=u.nodes.map(function(A){return b(A,e.helpers)}),[4,Promise.all(C)]);case 2:return O.sent(),[3,5];case 3:return[4,b(u,e.helpers)];case 4:O.sent(),O.label=5;case 5:return[3,7];case 6:throw S=O.sent(),e.handleError(S);case 7:return[2]}})},v=I(e.listeners.OnceExit),d.label=15;case 15:return(y=v()).done?[3,18]:[5,xs(g())];case 16:d.sent(),d.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},n.runOnRoot=function(e){var r=this;this.result.lastPlugin=e;try{if((typeof e=="undefined"?"undefined":T(e))==="object"&&e.Once){if(this.result.root.type==="document"){var s=this.result.root.nodes.map(function(o){return e.Once(o,r.helpers)});return cn(s[0])?Promise.all(s):s}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(o){throw this.handleError(o)}},n.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,r=Kw;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var s=new Yw(r,this.result.root,this.result.opts),o=s.generate();return this.result.css=o[0],this.result.map=o[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 e=I(this.plugins),r;!(r=e()).done;){var s=r.value,o=this.runOnRoot(s);if(cn(o))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Ke];)a[Ke]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=I(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(e,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||Zw("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)},n.toString=function(){return this.css},n.visitSync=function(e,r){for(var s=I(e),o;!(o=s()).done;){var a=o.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(cn(l))throw this.getAsyncError()}},n.visitTick=function(e){var r=e[e.length-1],s=r.node,o=r.visitors;if(s.type!=="root"&&s.type!=="document"&&!s.parent){e.pop();return}if(o.length>0&&r.visitorIndex<o.length){var a=o[r.visitorIndex],u=a[0],c=a[1];r.visitorIndex+=1,r.visitorIndex===o.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=u;try{return c(s.toProxy(),this.helpers)}catch(v){throw this.handleError(v,s)}}if(r.iterator!==0){for(var l=r.iterator,f;f=s.nodes[s.indexes[l]];)if(s.indexes[l]+=1,!f[Ke]){f[Ke]=!0,e.push(fh(f));return}r.iterator=0,delete s.indexes[l]}for(var p=r.events;r.eventIndex<p.length;){var g=p[r.eventIndex];if(r.eventIndex+=1,g===wr){s.nodes&&s.nodes.length&&(s[Ke]=!0,r.iterator=s.getIterator());return}else if(this.listeners[g]){r.visitors=this.listeners[g];return}}e.pop()},n.walkSync=function(e){var r=this;e[Ke]=!0;for(var s=lh(e),o=I(s),a;!(a=o()).done;){var u=a.value;if(u===wr)e.nodes&&e.each(function(l){l[Ke]||r.walkSync(l)});else{var c=this.listeners[u];if(c&&this.visitSync(c,e.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},ie(t,[{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"}}]),t})();br.registerPostcss=function(t){Ca=t};var hh=br;br.default=br,eb.registerLazyResult(br),Xw.registerLazyResult(br);var ib=Ff,sb=ki,ob=Jf,ab=ba,ub=ma,Ea=(function(){function t(i,e,r){e=e.toString(),this.stringified=!1,this._processor=i,this._css=e,this._opts=r,this._map=void 0;var s,o=sb;this.result=new ub(this._processor,s,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new ib(o,s,this._opts,e);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=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.sync=function(){if(this.error)throw this.error;return this.result},n.then=function(e,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||ob("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)},n.toString=function(){return this._css},n.warnings=function(){return[]},ie(t,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,r=ab;try{e=r(this._css,this._opts)}catch(s){this.error=s}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),t})(),cb=Ea;Ea.default=Ea;var lb=cb,fb=hh,hb=da,pb=an,ln=(function(){function t(i){i===void 0&&(i=[]),this.version="8.4.38",this.plugins=this.normalize(i)}var n=t.prototype;return n.normalize=function(e){for(var r=[],s=I(e),o;!(o=s()).done;){var a=o.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":T(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":T(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":T(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(e,r){return r===void 0&&(r={}),!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new lb(this,e,r):new fb(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t})(),db=ln;ln.default=ln,pb.registerProcessor(ln),hb.registerProcessor(ln);var vb=Mi,gb=Rf,mb=Di,yb=_a,_b=$i,wb=an,bb=wa;function fn(t,n){if(Array.isArray(t))return t.map(function(f){return fn(f)});var i=t.inputs,e=Lt(t,["inputs"]);if(i){n=[];for(var r=I(i),s;!(s=r()).done;){var o=s.value,a=z({},o,{__proto__:_b.prototype});a.map&&(a.map=z({},a.map,{__proto__:gb.prototype})),n.push(a)}}if(e.nodes&&(e.nodes=t.nodes.map(function(f){return fn(f,n)})),e.source){var u=e.source,c=u.inputId,l=Lt(u,["inputId"]);e.source=l,c!=null&&(e.source.input=n[c])}if(e.type==="root")return new wb(e);if(e.type==="decl")return new vb(e);if(e.type==="rule")return new bb(e);if(e.type==="comment")return new mb(e);if(e.type==="atrule")return new yb(e);throw new Error("Unknown node type: "+t.type)}var Sb=fn;fn.default=fn;var Cb=Qo,ph=Mi,Eb=hh,Ib=qt,Ia=db,Ob=ki,xb=Sb,dh=da,kb=Xf,vh=Di,gh=_a,Rb=ma,Ab=$i,Mb=ba,Tb=sh,mh=wa,yh=an,Pb=Ai;function Q(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new Ia(n)}Q.plugin=function(n,i){var e=!1;function r(){for(var o=arguments.length,a=new Array(o),u=0;u<o;u++)a[u]=arguments[u];console&&console.warn&&!e&&(e=!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 Ia().version,c}var s;return Object.defineProperty(r,"postcss",{get:function(){return s||(s=r()),s}}),r.process=function(o,a,u){return Q([r(u)]).process(o,a)},r},Q.stringify=Ob,Q.parse=Mb,Q.fromJSON=xb,Q.list=Tb,Q.comment=function(t){return new vh(t)},Q.atRule=function(t){return new gh(t)},Q.decl=function(t){return new ph(t)},Q.rule=function(t){return new mh(t)},Q.root=function(t){return new yh(t)},Q.document=function(t){return new dh(t)},Q.CssSyntaxError=Cb,Q.Declaration=ph,Q.Container=Ib,Q.Processor=Ia,Q.Document=dh,Q.Comment=vh,Q.Warning=kb,Q.AtRule=gh,Q.Result=Rb,Q.Input=Ab,Q.Rule=mh,Q.Root=yh,Q.Node=Pb,Eb.registerPostcss(Q);var $b=Q;Q.default=Q;var he=V_($b);he.stringify,he.fromJSON,he.plugin,he.parse,he.list,he.document,he.comment,he.atRule,he.rule,he.decl,he.root,he.CssSyntaxError,he.Declaration,he.Container,he.Processor,he.Document,he.Comment,he.Warning,he.AtRule,he.Result,he.Input,he.Rule,he.Root,he.Node;var Nb=Object.defineProperty,Lb=function(t,n,i){return n in t?Nb(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},Yi=function(t,n,i){return Lb(t,(typeof n=="undefined"?"undefined":T(n))!=="symbol"?n+"":n,i)};function Db(t,n,i){try{if(!(n in t))return function(){};var e=t[n],r=i(e);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:e}})),t[n]=r,function(){t[n]=e}}catch(s){return function(){}}}var Sr=(function(){function t(i){Yi(this,"fileName"),Yi(this,"functionName"),Yi(this,"lineNumber"),Yi(this,"columnNumber"),this.fileName=i.fileName||"",this.functionName=i.functionName||"",this.lineNumber=i.lineNumber,this.columnNumber=i.columnNumber}var n=t.prototype;return n.toString=function(){var e=this.lineNumber||"",r=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+r+")":this.fileName+":"+e+":"+r},t})(),Fb=/(^|@)\S+:\d+/,_h=/^\s*at .*(\S+:\d+|\(native\))/m,Ub=/^(eval@)?(\[native code])?$/,Oa={parse:function(n){return n?typeof n.stacktrace!="undefined"||typeof n["opera#sourceloc"]!="undefined"?this.parseOpera(n):n.stack&&n.stack.match(_h)?this.parseV8OrIE(n):n.stack?this.parseFFOrSafari(n):(console.warn("[console-record-plugin]: Failed to parse error object:",n),[]):[]},extractLocation:function(n){if(n.indexOf(":")===-1)return[n];var i=/(.+?)(?::(\d+))?(?::(\d+))?$/,e=i.exec(n.replace(/[()]/g,""));if(!e)throw new Error("Cannot parse given url: "+n);return[e[1],e[2]||void 0,e[3]||void 0]},parseV8OrIE:function(n){var i=n.stack.split("\n").filter(function(e){return!!e.match(_h)},this);return i.map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var r=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),s=r.match(/ (\((.+):(\d+):(\d+)\)$)/);r=s?r.replace(s[0],""):r;var o=r.split(/\s+/).slice(1),a=this.extractLocation(s?s[1]:o.pop()),u=o.join(" ")||void 0,c=["eval","<anonymous>"].indexOf(a[0])>-1?void 0:a[0];return new Sr({functionName:u,fileName:c,lineNumber:a[1],columnNumber:a[2]})},this)},parseFFOrSafari:function(n){var i=n.stack.split("\n").filter(function(e){return!e.match(Ub)},this);return i.map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),e.indexOf("@")===-1&&e.indexOf(":")===-1)return new Sr({functionName:e});var r=/((.*".+"[^@]*)?[^@]*)(?:@)/,s=e.match(r),o=s&&s[1]?s[1]:void 0,a=this.extractLocation(e.replace(r,""));return new Sr({functionName:o,fileName:a[0],lineNumber:a[1],columnNumber:a[2]})},this)},parseOpera:function(n){return!n.stacktrace||n.message.indexOf("\n")>-1&&n.message.split("\n").length>n.stacktrace.split("\n").length?this.parseOpera9(n):n.stack?this.parseOpera11(n):this.parseOpera10(n)},parseOpera9:function(n){for(var i=/Line (\d+).*script (?:in )?(\S+)/i,e=n.message.split("\n"),r=[],s=2,o=e.length;s<o;s+=2){var a=i.exec(e[s]);a&&r.push(new Sr({fileName:a[2],lineNumber:parseFloat(a[1])}))}return r},parseOpera10:function(n){for(var i=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,e=n.stacktrace.split("\n"),r=[],s=0,o=e.length;s<o;s+=2){var a=i.exec(e[s]);a&&r.push(new Sr({functionName:a[3]||void 0,fileName:a[2],lineNumber:parseFloat(a[1])}))}return r},parseOpera11:function(n){var i=n.stack.split("\n").filter(function(e){return!!e.match(Fb)&&!e.match(/^Error created at/)},this);return i.map(function(e){var r=e.split("@"),s=this.extractLocation(r.pop()),o=r.shift()||"",a=o.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new Sr({functionName:a,fileName:s[0],lineNumber:s[1],columnNumber:s[2]})},this)}};function Bb(t){if(!t||!t.outerHTML)return"";for(var n="";t.parentElement;){var i=t.localName;if(!i)break;i=i.toLowerCase();var e=t.parentElement,r=[];if(e.children&&e.children.length>0)for(var s=0;s<e.children.length;s++){var o=e.children[s];o.localName&&o.localName.toLowerCase&&o.localName.toLowerCase()===i&&r.push(o)}r.length>1&&(i+=":eq("+r.indexOf(t)+")"),n=i+(n?">"+n:""),t=e}return n}function xa(t){return Object.prototype.toString.call(t)==="[object Object]"}function wh(t,n){if(n===0)return!0;for(var i=Object.keys(t),e=I(i),r;!(r=e()).done;){var s=r.value;if(xa(t[s])&&wh(t[s],n-1))return!0}return!1}function Cr(t,n){var i={numOfKeysLimit:50,depthOfLimit:4};Object.assign(i,n);var e=[],r=[];return JSON.stringify(t,function(a,u){if(e.length>0){var c=e.indexOf(this);~c?e.splice(c+1):e.push(this),~c?r.splice(c,1/0,a):r.push(a),~e.indexOf(u)&&(e[0]===u?u="[Circular ~]":u="[Circular ~."+r.slice(0,e.indexOf(u)).join(".")+"]")}else e.push(u);if(u===null)return u;if(u===void 0)return"undefined";if(s(u))return o(u);if((typeof u=="undefined"?"undefined":T(u))==="bigint")return u.toString()+"n";if(M(u,Event)){var l={};for(var f in u){var p=u[f];Array.isArray(p)?l[f]=Bb(p.length?p[0]:null):l[f]=p}return l}else{if(M(u,Node))return M(u,HTMLElement)?u?u.outerHTML:"":u.nodeName;if(M(u,Error))return u.stack?u.stack+"\nEnd of stack for Error object":u.name+": "+u.message}return u});function s(a){return!!(xa(a)&&Object.keys(a).length>i.numOfKeysLimit||typeof a=="function"||xa(a)&&wh(a,i.depthOfLimit))}function o(a){var u=a.toString();return i.stringLengthLimit&&u.length>i.stringLengthLimit&&(u=""+u.slice(0,i.stringLengthLimit)+"..."),u}}var bh={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function zb(t,n,i){var e=i?Object.assign({},bh,i):bh,r=e.logger;if(!r)return function(){};var s;typeof r=="string"?s=n[r]:s=r;var o=0,a=!1,u=[];if(e.level.includes("error")){var c=function(y){var d=y.message,m=y.error,_=Oa.parse(m).map(function(C){return C.toString()}),b=[Cr(d,e.stringifyOptions)];t({level:"error",trace:_,payload:b})};n.addEventListener("error",c),u.push(function(){n.removeEventListener("error",c)});var l=function(y){var d,m;M(y.reason,Error)?(d=y.reason,m=[Cr("Uncaught (in promise) "+d.name+": "+d.message,e.stringifyOptions)]):(d=new Error,m=[Cr("Uncaught (in promise)",e.stringifyOptions),Cr(y.reason,e.stringifyOptions)]);var _=Oa.parse(d).map(function(b){return b.toString()});t({level:"error",trace:_,payload:m})};n.addEventListener("unhandledrejection",l),u.push(function(){n.removeEventListener("unhandledrejection",l)})}for(var f=I(e.level),p;!(p=f()).done;){var g=p.value;u.push(v(s,g))}return function(){u.forEach(function(y){return y()})};function v(y,d){var m=this;return y[d]?Db(y,d,function(_){var b=m;return function(){for(var C=arguments.length,S=new Array(C),O=0;O<C;O++)S[O]=arguments[O];if(_.apply(b,S),!(d==="assert"&&S[0])&&!a){a=!0;try{var A=Oa.parse(new Error).map(function(W){return W.toString()}).splice(1),k=d==="assert"?S.slice(1):S,$=k.map(function(W){return Cr(W,e.stringifyOptions)});o++,o<e.lengthThreshold?t({level:d,trace:A,payload:$}):o===e.lengthThreshold&&t({level:"warn",trace:[],payload:[Cr("The number of log records reached the threshold.")]})}catch(W){_.apply(void 0,[].concat(["rrweb logger error:",W],S))}finally{a=!1}}}}):function(){}}}var qb="rrweb/console@1",Wb=function(t){return{name:qb,observer:zb,options:t}},Sh=E.setImmediate,Ct,ka,Ra,Ch=Object.prototype.toString,Gb=typeof Sh!="undefined"?function(n){return Sh(n)}:setTimeout;try{Object.defineProperty({},"x",{}),Ct=function(n,i,e,r){return Object.defineProperty(n,i,{value:e,writable:!0,configurable:r!==!1})}}catch(t){Ct=function(i,e,r){return i[e]=r,i}}Ra=(function(){var n,i,e;function r(s,o){this.fn=s,this.self=o,this.next=void 0}return{add:function(o,a){e=new r(o,a),i?i.next=e:n=e,i=e,e=void 0},drain:function(){var o=n;for(n=i=ka=void 0;o;)o.fn.call(o.self),o=o.next}}})();function Ki(t,n){Ra.add(t,n),ka||(ka=Gb(Ra.drain))}function Eh(t){var n,i=typeof t;return t!==null&&(i==="object"||i==="function")&&(n=t.then),typeof n=="function"?n:!1}function Aa(){for(var t=0;t<this.chain.length;t++)Vb(this,this.state===1?this.chain[t].success:this.chain[t].failure,this.chain[t]);this.chain.length=0}function Vb(t,n,i){var e,r;try{n===!1?i.reject(t.msg):(n===!0?e=t.msg:e=n.call(void 0,t.msg),e===i.promise?i.reject(TypeError("Promise-chain cycle")):(r=Eh(e))?r.call(e,i.resolve,i.reject):i.resolve(e))}catch(s){i.reject(s)}}function Ih(t){var n,i=this;if(!i.triggered){i.triggered=!0,i.def&&(i=i.def);try{(n=Eh(t))?Ki(function(){var e=new xh(i);try{n.call(t,function(){Ih.apply(e,arguments)},function(){hn.apply(e,arguments)})}catch(r){hn.call(e,r)}}):(i.msg=t,i.state=1,i.chain.length>0&&Ki(Aa,i))}catch(e){hn.call(new xh(i),e)}}}function hn(t){var n=this;n.triggered||(n.triggered=!0,n.def&&(n=n.def),n.msg=t,n.state=2,n.chain.length>0&&Ki(Aa,n))}function Oh(t,n,i,e){for(var r=0;r<n.length;r++)(function(o){t.resolve(n[o]).then(function(u){i(o,u)},e)})(r)}function xh(t){this.def=t,this.triggered=!1}function jb(t){this.promise=t,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function Et(t){if(typeof t!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var n=new jb(this);this.then=function(e,r){var s={success:typeof e=="function"?e:!0,failure:typeof r=="function"?r:!1};return s.promise=new this.constructor(function(a,u){if(typeof a!="function"||typeof u!="function")throw TypeError("Not a function");s.resolve=a,s.reject=u}),n.chain.push(s),n.state!==0&&Ki(Aa,n),s.promise},this.catch=function(e){return this.then(void 0,e)};try{t.call(void 0,function(e){Ih.call(n,e)},function(e){hn.call(n,e)})}catch(i){hn.call(n,i)}}var kh=Ct({},"constructor",Et,!1);Et.prototype=kh,Ct(kh,"__NPO__",0,!1),Ct(Et,"resolve",function(n){var i=this;return n&&typeof n=="object"&&n.__NPO__===1?n:new i(function(r,s){if(typeof r!="function"||typeof s!="function")throw TypeError("Not a function");r(n)})}),Ct(Et,"reject",function(n){return new this(function(e,r){if(typeof e!="function"||typeof r!="function")throw TypeError("Not a function");r(n)})}),Ct(Et,"all",function(n){var i=this;return Ch.call(n)!=="[object Array]"?i.reject(TypeError("Not an array")):n.length===0?i.resolve([]):new i(function(r,s){if(typeof r!="function"||typeof s!="function")throw TypeError("Not a function");var o=n.length,a=Array(o),u=0;Oh(i,n,function(l,f){a[l]=f,++u===o&&r(a)},s)})}),Ct(Et,"race",function(n){var i=this;return Ch.call(n)!=="[object Array]"?i.reject(TypeError("Not an array")):new i(function(r,s){if(typeof r!="function"||typeof s!="function")throw TypeError("Not a function");Oh(i,n,function(a,u){r(u)},s)})});var F;typeof Promise!="undefined"&&Promise.toString().indexOf("[native code]")!==-1?F=Promise:F=Et;var pn=1440*60*1e3,Ma=8*1e3,Ji=Array.prototype,Hb=Function.prototype,Rh=Object.prototype,It=Ji.slice,dn=Rh.toString,Xi=Rh.hasOwnProperty,Ce=E.console,ut=E.navigator,U=E.document,vn=E.opera,Ah=E.screen,Je=ut.userAgent,Ta=Hb.bind,Mh=Ji.forEach,Th=Ji.indexOf,Ph=Ji.map,Yb=Array.isArray,Pa={},h={trim:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},N={log:function(){if(Pe.DEBUG&&!h.isUndefined(Ce)&&Ce)try{Ce.log.apply(Ce,arguments)}catch(t){h.each(arguments,function(n){Ce.log(n)})}},warn:function(){if(Pe.DEBUG&&!h.isUndefined(Ce)&&Ce){var t=["Mixpanel warning:"].concat(h.toArray(arguments));try{Ce.warn.apply(Ce,t)}catch(n){h.each(t,function(i){Ce.warn(i)})}}},error:function(){if(Pe.DEBUG&&!h.isUndefined(Ce)&&Ce){var t=["Mixpanel error:"].concat(h.toArray(arguments));try{Ce.error.apply(Ce,t)}catch(n){h.each(t,function(i){Ce.error(i)})}}},critical:function(){if(!h.isUndefined(Ce)&&Ce){var t=["Mixpanel error:"].concat(h.toArray(arguments));try{Ce.error.apply(Ce,t)}catch(n){h.each(t,function(i){Ce.error(i)})}}}},Zi=function(t,n){return function(){return arguments[0]="["+n+"] "+arguments[0],t.apply(N,arguments)}},Xe=function(t){return{log:Zi(N.log,t),warn:Zi(N.warn,t),error:Zi(N.error,t),critical:Zi(N.critical,t)}},Wt=function(t){return function(){try{return t.apply(this,arguments)}catch(n){N.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),Pe.DEBUG&&N.critical(n)}}},$a=function(t){var n=t.prototype;for(var i in n)typeof n[i]=="function"&&(n[i]=Wt(n[i]))};h.bind=function(t,n){var i,e;if(Ta&&t.bind===Ta)return Ta.apply(t,It.call(arguments,1));if(!h.isFunction(t))throw new TypeError;return i=It.call(arguments,2),e=function(){if(!(this instanceof e))return t.apply(n,i.concat(It.call(arguments)));var r={};r.prototype=t.prototype;var s=new r;r.prototype=null;var o=t.apply(s,i.concat(It.call(arguments)));return Object(o)===o?o:s},e},h.each=function(t,n,i){if(t!=null){if(Mh&&t.forEach===Mh)t.forEach(n,i);else if(t.length===+t.length){for(var e=0,r=t.length;e<r;e++)if(e in t&&n.call(i,t[e],e,t)===Pa)return}else for(var s in t)if(Xi.call(t,s)&&n.call(i,t[s],s,t)===Pa)return}},h.extend=function(t){return h.each(It.call(arguments,1),function(n){for(var i in n)n[i]!==void 0&&(t[i]=n[i])}),t},h.isArray=Yb||function(t){return dn.call(t)==="[object Array]"},h.isFunction=function(t){return typeof t=="function"},h.isArguments=function(t){return!!(t&&Xi.call(t,"callee"))},h.toArray=function(t){return t?t.toArray?t.toArray():h.isArray(t)||h.isArguments(t)?It.call(t):h.values(t):[]},h.map=function(t,n,i){if(Ph&&t.map===Ph)return t.map(n,i);var e=[];return h.each(t,function(r){e.push(n.call(i,r))}),e},h.keys=function(t){var n=[];return t===null||h.each(t,function(i,e){n[n.length]=e}),n},h.values=function(t){var n=[];return t===null||h.each(t,function(i){n[n.length]=i}),n},h.include=function(t,n){var i=!1;return t===null?i:Th&&t.indexOf===Th?t.indexOf(n)!=-1:(h.each(t,function(e){if(i||(i=e===n))return Pa}),i)},h.includes=function(t,n){return t.indexOf(n)!==-1},h.inherit=function(t,n){return t.prototype=new n,t.prototype.constructor=t,t.superclass=n.prototype,t},h.isObject=function(t){return t===Object(t)&&!h.isArray(t)},h.isEmptyObject=function(t){if(h.isObject(t)){for(var n in t)if(Xi.call(t,n))return!1;return!0}return!1},h.isUndefined=function(t){return t===void 0},h.isString=function(t){return dn.call(t)=="[object String]"},h.isDate=function(t){return dn.call(t)=="[object Date]"},h.isNumber=function(t){return dn.call(t)=="[object Number]"},h.isElement=function(t){return!!(t&&t.nodeType===1)},h.encodeDates=function(t){return h.each(t,function(n,i){h.isDate(n)?t[i]=h.formatDate(n):h.isObject(n)&&(t[i]=h.encodeDates(n))}),t},h.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},h.formatDate=function(t){function n(i){return i<10?"0"+i:i}return t.getUTCFullYear()+"-"+n(t.getUTCMonth()+1)+"-"+n(t.getUTCDate())+"T"+n(t.getUTCHours())+":"+n(t.getUTCMinutes())+":"+n(t.getUTCSeconds())},h.strip_empty_properties=function(t){var n={};return h.each(t,function(i,e){h.isString(i)&&i.length>0&&(n[e]=i)}),n},h.truncate=function(t,n){var i;return typeof t=="string"?i=t.slice(0,n):h.isArray(t)?(i=[],h.each(t,function(e){i.push(h.truncate(e,n))})):h.isObject(t)?(i={},h.each(t,function(e,r){i[r]=h.truncate(e,n)})):i=t,i},h.JSONEncode=(function(){return function(t){var n=t,i=function(r){var s=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return s.lastIndex=0,s.test(r)?'"'+r.replace(s,function(a){var u=o[a];return typeof u=="string"?u:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+r+'"'},e=function(r,s){var o="",a=" ",u=0,c="",l="",f=0,p=o,g=[],v=s[r];switch(v&&typeof v=="object"&&typeof v.toJSON=="function"&&(v=v.toJSON(r)),typeof v){case"string":return i(v);case"number":return isFinite(v)?String(v):"null";case"boolean":case"null":return String(v);case"object":if(!v)return"null";if(o+=a,g=[],dn.apply(v)==="[object Array]"){for(f=v.length,u=0;u<f;u+=1)g[u]=e(u,v)||"null";return l=g.length===0?"[]":o?"[\n"+o+g.join(",\n"+o)+"\n"+p+"]":"["+g.join(",")+"]",o=p,l}for(c in v)Xi.call(v,c)&&(l=e(c,v),l&&g.push(i(c)+(o?": ":":")+l));return l=g.length===0?"{}":o?"{"+g.join(",")+p+"}":"{"+g.join(",")+"}",o=p,l}};return e("",{"":n})}})(),h.JSONDecode=(function(){var t,n,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},e,r=function(g){var v=new SyntaxError(g);throw v.at=t,v.text=e,v},s=function(g){return g&&g!==n&&r("Expected '"+g+"' instead of '"+n+"'"),n=e.charAt(t),t+=1,n},o=function(){var g,v="";for(n==="-"&&(v="-",s("-"));n>="0"&&n<="9";)v+=n,s();if(n===".")for(v+=".";s()&&n>="0"&&n<="9";)v+=n;if(n==="e"||n==="E")for(v+=n,s(),(n==="-"||n==="+")&&(v+=n,s());n>="0"&&n<="9";)v+=n,s();if(g=+v,!isFinite(g))r("Bad number");else return g},a=function(){var g,v,y="",d;if(n==='"')for(;s();){if(n==='"')return s(),y;if(n==="\\")if(s(),n==="u"){for(d=0,v=0;v<4&&(g=parseInt(s(),16),!!isFinite(g));v+=1)d=d*16+g;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<=" ";)s()},c=function(){switch(n){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null}r('Unexpected "'+n+'"')},l,f=function(){var g=[];if(n==="["){if(s("["),u(),n==="]")return s("]"),g;for(;n;){if(g.push(l()),u(),n==="]")return s("]"),g;s(","),u()}}r("Bad array")},p=function(){var g,v={};if(n==="{"){if(s("{"),u(),n==="}")return s("}"),v;for(;n;){if(g=a(),u(),s(":"),Object.hasOwnProperty.call(v,g)&&r('Duplicate key "'+g+'"'),v[g]=l(),u(),n==="}")return s("}"),v;s(","),u()}}r("Bad object")};return l=function(){switch(u(),n){case"{":return p();case"[":return f();case'"':return a();case"-":return o();default:return n>="0"&&n<="9"?o():c()}},function(g){var v;return e=g,t=0,n=" ",v=l(),u(),n&&r("Syntax error"),v}})(),h.base64Encode=function(t){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i,e,r,s,o,a,u,c,l=0,f=0,p="",g=[];if(!t)return t;t=h.utf8Encode(t);do i=t.charCodeAt(l++),e=t.charCodeAt(l++),r=t.charCodeAt(l++),c=i<<16|e<<8|r,s=c>>18&63,o=c>>12&63,a=c>>6&63,u=c&63,g[f++]=n.charAt(s)+n.charAt(o)+n.charAt(a)+n.charAt(u);while(l<t.length);switch(p=g.join(""),t.length%3){case 1:p=p.slice(0,-2)+"==";break;case 2:p=p.slice(0,-1)+"=";break}return p},h.utf8Encode=function(t){t=(t+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var n="",i,e,r=0,s;for(i=e=0,r=t.length,s=0;s<r;s++){var o=t.charCodeAt(s),a=null;o<128?e++:o>127&&o<2048?a=String.fromCharCode(o>>6|192,o&63|128):a=String.fromCharCode(o>>12|224,o>>6&63|128,o&63|128),a!==null&&(e>i&&(n+=t.substring(i,e)),n+=a,i=e=s+1)}return e>i&&(n+=t.substring(i,t.length)),n},h.UUID=function(){try{return E.crypto.randomUUID()}catch(i){for(var t=new Array(36),n=0;n<36;n++)t[n]=Math.floor(Math.random()*16);return t[14]=4,t[19]=t[19]&=-5,t[19]=t[19]|=8,t[8]=t[13]=t[18]=t[23]="-",h.map(t,function(e){return e.toString(16)}).join("")}};var $h=["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(t){var n;for(t=t.toLowerCase(),n=0;n<$h.length;n++)if(t.indexOf($h[n])!==-1)return!0;return!1},h.HTTPBuildQuery=function(t,n){var i,e,r=[];return h.isUndefined(n)&&(n="&"),h.each(t,function(s,o){i=encodeURIComponent(s.toString()),e=encodeURIComponent(o),r[r.length]=e+"="+i}),r.join(n)},h.getQueryParam=function(t,n){n=n.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var i="[\\?&]"+n+"=([^&#]*)",e=new RegExp(i),r=e.exec(t);if(r===null||r&&typeof r[1]!="string"&&r[1].length)return"";var s=r[1];try{s=decodeURIComponent(s)}catch(o){N.error("Skipping decoding for malformed query param: "+s)}return s.replace(/\+/g," ")},h.cookie={get:function(t){for(var n=t+"=",i=U.cookie.split(";"),e=0;e<i.length;e++){for(var r=i[e];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(t){var n;try{n=h.JSONDecode(h.cookie.get(t))||{}}catch(i){}return n},set_seconds:function(t,n,i,e,r,s,o){var a="",u="",c="";if(o)a="; domain="+o;else if(e){var l=Fh(U.location.hostname);a=l?"; domain=."+l:""}if(i){var f=new Date;f.setTime(f.getTime()+i*1e3),u="; expires="+f.toGMTString()}s&&(r=!0,c="; SameSite=None"),r&&(c+="; secure"),U.cookie=t+"="+encodeURIComponent(n)+u+"; path=/"+a+c},set:function(t,n,i,e,r,s,o){var a="",u="",c="";if(o)a="; domain="+o;else if(e){var l=Fh(U.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()}s&&(r=!0,c="; SameSite=None"),r&&(c+="; secure");var p=t+"="+encodeURIComponent(n)+u+"; path=/"+a+c;return U.cookie=p,p},remove:function(t,n,i){h.cookie.set(t,"",-1,n,!1,!1,i)}};var Nh=function(t){var n=!0;try{var i="__mplss_"+Da(8),e="xyz";t.setItem(i,e),t.getItem(i)!==e&&(n=!1),t.removeItem(i)}catch(r){n=!1}return n},Na=null,gn=function(t,n){return Na!==null&&!n?Na:Na=Nh(t)},La=null,Kb=function(t,n){return La!==null&&!n?La:La=Nh(t)};function Lh(t,n,i){var e=function(r){N.error(n+" error: "+r)};return{is_supported:function(r){var s=i(t,r);return s||N.error(n+" unsupported"),s},error:e,get:function(r){try{return t.getItem(r)}catch(s){e(s)}return null},parse:function(r){try{return h.JSONDecode(t.getItem(r))||{}}catch(s){}return null},set:function(r,s){try{t.setItem(r,s)}catch(o){e(o)}},remove:function(r){try{t.removeItem(r)}catch(s){e(s)}}}}var Qi=function(){try{return E.localStorage}catch(t){return null}},Jb=function(){try{return E.sessionStorage}catch(t){return null}};h.localStorage=Lh(Qi(),"localStorage",gn),h.sessionStorage=Lh(Jb(),"sessionStorage",Kb),h.register_event=(function(){var t=function(e,r,s,o,a){if(!e){N.error("No valid element provided to register_event");return}if(e.addEventListener&&!o)e.addEventListener(r,s,!!a);else{var u="on"+r,c=e[u];e[u]=n(e,s,c)}};function n(e,r,s){var o=function(a){if(a=a||i(E.event),!!a){var u=!0,c,l;return h.isFunction(s)&&(c=s(a)),l=r.call(e,a),(c===!1||l===!1)&&(u=!1),u}};return o}function i(e){return e&&(e.preventDefault=i.preventDefault,e.stopPropagation=i.stopPropagation),e}return i.preventDefault=function(){this.returnValue=!1},i.stopPropagation=function(){this.cancelBubble=!0},t})();var Xb=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');h.dom_query=(function(){function t(r){return r.all?r.all:r.getElementsByTagName("*")}var n=/[\t\r\n]/g;function i(r,s){var o=" "+s+" ";return(" "+r.className+" ").replace(n," ").indexOf(o)>=0}function e(r){if(!U.getElementsByTagName)return[];var s=r.split(" "),o,a,u,c,l,f,p,g,v,y,d=[U];for(f=0;f<s.length;f++){if(o=s[f].replace(/^\s+/,"").replace(/\s+$/,""),o.indexOf("#")>-1){a=o.split("#"),u=a[0];var m=a[1],_=U.getElementById(m);if(!_||u&&_.nodeName.toLowerCase()!=u)return[];d=[_];continue}if(o.indexOf(".")>-1){a=o.split("."),u=a[0];var b=a[1];for(u||(u="*"),c=[],l=0,p=0;p<d.length;p++)for(u=="*"?v=t(d[p]):v=d[p].getElementsByTagName(u),g=0;g<v.length;g++)c[l++]=v[g];for(d=[],y=0,p=0;p<c.length;p++)c[p].className&&h.isString(c[p].className)&&i(c[p],b)&&(d[y++]=c[p]);continue}var C=o.match(Xb);if(C){u=C[1];var S=C[2],O=C[3],A=C[4];for(u||(u="*"),c=[],l=0,p=0;p<d.length;p++)for(u=="*"?v=t(d[p]):v=d[p].getElementsByTagName(u),g=0;g<v.length;g++)c[l++]=v[g];d=[],y=0;var k;switch(O){case"=":k=function($){return $.getAttribute(S)==A};break;case"~":k=function($){return $.getAttribute(S).match(new RegExp("\\b"+A+"\\b"))};break;case"|":k=function($){return $.getAttribute(S).match(new RegExp("^"+A+"-?"))};break;case"^":k=function($){return $.getAttribute(S).indexOf(A)===0};break;case"$":k=function($){return $.getAttribute(S).lastIndexOf(A)==$.getAttribute(S).length-A.length};break;case"*":k=function($){return $.getAttribute(S).indexOf(A)>-1};break;default:k=function($){return $.getAttribute(S)}}for(d=[],y=0,p=0;p<c.length;p++)k(c[p])&&(d[y++]=c[p]);continue}for(u=o,c=[],l=0,p=0;p<d.length;p++)for(v=d[p].getElementsByTagName(u),g=0;g<v.length;g++)c[l++]=v[g];d=c}return d}return function(r){return h.isElement(r)?[r]:h.isObject(r)&&!h.isUndefined(r.length)?r:e.call(this,r)}})();var Zb=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],Qb=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];h.info={campaignParams:function(t){var n="",i={};return h.each(Zb,function(e){n=h.getQueryParam(U.URL,e),n.length?i[e]=n:t!==void 0&&(i[e]=t)}),i},clickParams:function(){var t="",n={};return h.each(Qb,function(i){t=h.getQueryParam(U.URL,i),t.length&&(n[i]=t)}),n},marketingParams:function(){return h.extend(h.info.campaignParams(),h.info.clickParams())},searchEngine:function(t){return t.search("https?://(.*)google.([^/?]*)")===0?"google":t.search("https?://(.*)bing.com")===0?"bing":t.search("https?://(.*)yahoo.com")===0?"yahoo":t.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null},searchInfo:function(t){var n=h.info.searchEngine(t),i=n!="yahoo"?"q":"p",e={};if(n!==null){e.$search_engine=n;var r=h.getQueryParam(t,i);r.length&&(e.mp_keyword=r)}return e},browser:function(t,n,i){return n=n||"",i||h.includes(t," OPR/")?h.includes(t,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":h.includes(t,"IEMobile")||h.includes(t,"WPDesktop")?"Internet Explorer Mobile":h.includes(t,"SamsungBrowser/")?"Samsung Internet":h.includes(t,"Edge")||h.includes(t,"Edg/")?"Microsoft Edge":h.includes(t,"FBIOS")?"Facebook Mobile":h.includes(t,"Whale/")?"Whale Browser":h.includes(t,"Chrome")?"Chrome":h.includes(t,"CriOS")?"Chrome iOS":h.includes(t,"UCWEB")||h.includes(t,"UCBrowser")?"UC Browser":h.includes(t,"FxiOS")?"Firefox iOS":h.includes(n,"Apple")?h.includes(t,"Mobile")?"Mobile Safari":"Safari":h.includes(t,"Android")?"Android Mobile":h.includes(t,"Konqueror")?"Konqueror":h.includes(t,"Firefox")?"Firefox":h.includes(t,"MSIE")||h.includes(t,"Trident/")?"Internet Explorer":h.includes(t,"Gecko")?"Mozilla":""},browserVersion:function(t,n,i){var e=h.info.browser(t,n,i),r={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/},s=r[e];if(s===void 0)return null;var o=t.match(s);return o?parseFloat(o[o.length-2]):null},os:function(){var t=Je;return/Windows/i.test(t)?/Phone/.test(t)||/WPDesktop/.test(t)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(t)?"iOS":/Android/.test(t)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Mac/i.test(t)?"Mac OS X":/Linux/.test(t)?"Linux":/CrOS/.test(t)?"Chrome OS":""},device:function(t){return/Windows Phone/i.test(t)||/WPDesktop/.test(t)?"Windows Phone":/iPad/.test(t)?"iPad":/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Android/.test(t)?"Android":""},referringDomain:function(t){var n=t.split("/");return n.length>=3?n[2]:""},currentUrl:function(){return E.location.href},properties:function(t){return typeof t!="object"&&(t={}),h.extend(h.strip_empty_properties({$os:h.info.os(),$browser:h.info.browser(Je,ut.vendor,vn),$referrer:U.referrer,$referring_domain:h.info.referringDomain(U.referrer),$device:h.info.device(Je)}),{$current_url:h.info.currentUrl(),$browser_version:h.info.browserVersion(Je,ut.vendor,vn),$screen_height:Ah.height,$screen_width:Ah.width,mp_lib:"web",$lib_version:Pe.LIB_VERSION,$insert_id:Da(),time:h.timestamp()/1e3},h.strip_empty_properties(t))},people_properties:function(){return h.extend(h.strip_empty_properties({$os:h.info.os(),$browser:h.info.browser(Je,ut.vendor,vn)}),{$browser_version:h.info.browserVersion(Je,ut.vendor,vn)})},mpPageViewProperties:function(){return h.strip_empty_properties({current_page_title:U.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 eS=function(t,n){var i=null,e=[];return function(r){var s=this;return e.push(r),i||(i=new F(function(o){setTimeout(function(){var a=t.apply(s,[e]);i=null,e=[],o(a)},n)})),i}},Da=function(t){var n=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return t?n.substring(0,t):n},Dh=function(){var t=h.UUID().replace(/-/g,""),n=h.UUID().replace(/-/g,"").substring(0,16),i="01";return"00-"+t+"-"+n+"-"+i},tS=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,rS=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Fh=function(t){var n=rS,i=t.split("."),e=i[i.length-1];(e.length>4||e==="com"||e==="org")&&(n=tS);var r=t.match(n);return r?r[0]:""},nS=function(){var t=E.navigator.onLine;return h.isUndefined(t)||t},Ot=function(){},es=function(t,n){for(var i=!1,e=0;e<n.length;e++)if(t.match(n[e])){i=!0;break}return i},Er=null,ts=null;typeof JSON!="undefined"&&(Er=JSON.stringify,ts=JSON.parse),Er=Er||h.JSONEncode,ts=ts||h.JSONDecode;var iS=function(t,n,i){if(!E.CompressionStream)return!1;var e=h.info.browser(t,n,i),r=h.info.browserVersion(t,n,i);return!((e==="Safari"||e==="Mobile Safari")&&r>=16.4&&r<16.6)};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=Et;var Ue=function(t,n,i){this.dbName=t,this.storeName=n,this.version=i.version,this.storeNamesInDb=i.storeNames,this.dbPromise=null};Ue.prototype._openDb=function(){var t=this.dbName,n=this.version,i=this.storeNamesInDb;return new F(function(e,r){var s=E.indexedDB.open(t,n);s.onerror=function(){r(s.error)},s.onsuccess=function(){e(s.result)},s.onupgradeneeded=function(o){var a=o.target.result;i.forEach(function(u){a.objectStoreNames.contains(u)||a.createObjectStore(u)})}})},Ue.prototype.init=function(){return E.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(t){return t instanceof E.IDBDatabase?F.resolve():F.reject(t)})):F.reject("indexedDB is not supported in this browser")},Ue.prototype.isInitialized=function(){return!!this.dbPromise},Ue.prototype.makeTransaction=function(t,n){var i=this.storeName,e=function(r){return new F(function(s,o){var a=r.transaction(i,t);a.oncomplete=function(){s(a)},a.onabort=a.onerror=function(){o(a.error)},n(a.objectStore(i))})};return this.dbPromise.then(e).catch(function(r){return r&&r.name==="InvalidStateError"?(this.dbPromise=this._openDb(),this.dbPromise.then(e)):F.reject(r)}.bind(this))},Ue.prototype.setItem=function(t,n){return this.makeTransaction("readwrite",function(i){i.put(n,t)})},Ue.prototype.getItem=function(t){var n;return this.makeTransaction("readonly",function(i){n=i.get(t)}).then(function(){return n.result})},Ue.prototype.removeItem=function(t){return this.makeTransaction("readwrite",function(n){n.delete(t)})},Ue.prototype.getAll=function(){var t;return this.makeTransaction("readonly",function(n){t=n.getAll()}).then(function(){return t.result})};var Fa="mixpanelBrowserDb",Uh="mixpanelRecordingEvents",Ua="mixpanelRecordingRegistry",Ba={version:1,storeNames:[Uh,Ua]},sS="__mp_opt_in_out_";function oS(t,n){qh(!0,t,n)}function aS(t,n){qh(!1,t,n)}function uS(t,n){return zh(t,n)==="1"}function Bh(t,n){if(lS(n))return N.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=zh(t,n)==="0";return i&&N.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),i}function xt(t){return Wa(t,function(n){return this.get_config(n)})}function kt(t){return Wa(t,function(n){return this._get_config(n)})}function Ir(t){return Wa(t,function(n){return this._get_config(n)})}function cS(t,n){n=n||{},za(n).remove(qa(t,n),!!n.crossSubdomainCookie,n.cookieDomain)}function za(t){return t=t||{},t.persistenceType==="localStorage"?h.localStorage:h.cookie}function qa(t,n){return n=n||{},(n.persistencePrefix||sS)+t}function zh(t,n){return za(n).get(qa(t,n))}function lS(t){if(t&&t.ignoreDnt)return!1;var n=t&&t.window||E,i=n.navigator||{},e=!1;return h.each([i.doNotTrack,i.msDoNotTrack,n.doNotTrack],function(r){h.includes([!0,1,"1","yes"],r)&&(e=!0)}),e}function qh(t,n,i){if(!h.isString(n)||!n.length){N.error("gdpr."+(t?"optIn":"optOut")+" called with an invalid token");return}i=i||{},za(i).set(qa(n,i),t?1:0,h.isNumber(i.cookieExpiration)?i.cookieExpiration:null,!!i.crossSubdomainCookie,!!i.secureCookie,!!i.crossSiteCookie,i.cookieDomain),i.track&&t&&i.track(i.trackEventName||"$opt_in",i.trackProperties,{send_immediately:!0})}function Wa(t,n){return function(){var i=!1;try{var e=n.call(this,"token"),r=n.call(this,"ignore_dnt"),s=n.call(this,"opt_out_tracking_persistence_type"),o=n.call(this,"opt_out_tracking_cookie_prefix"),a=n.call(this,"window");e&&(i=Bh(e,{ignoreDnt:r,persistenceType:s,persistencePrefix:o,window:a}))}catch(c){N.error("Unexpected error when checking tracking opt-out status: "+c)}if(!i)return t.apply(this,arguments);var u=arguments[arguments.length-1];typeof u=="function"&&u(0)}}var fS=Xe("lock"),Wh=function(t,n){n=n||{},this.storageKey=t,this.storage=n.storage||Qi(),this.pollIntervalMS=n.pollIntervalMS||100,this.timeoutMS=n.timeoutMS||2e3,this.promiseImpl=n.promiseImpl||F};Wh.prototype.withLock=function(t,n){var i=this.promiseImpl;return new i(h.bind(function(e,r){var s=n||new Date().getTime()+"|"+Math.random(),o=new Date().getTime(),a=this.storageKey,u=this.pollIntervalMS,c=this.timeoutMS,l=this.storage,f=a+":X",p=a+":Y",g=a+":Z",v=function(b){if(new Date().getTime()-o>c){fS.error("Timeout waiting for mutex on "+a+"; clearing lock. ["+s+"]"),l.removeItem(g),l.removeItem(p),m();return}setTimeout(function(){try{b()}catch(C){r(C)}},u*(Math.random()+.1))},y=function(b,C){b()?C():v(function(){y(b,C)})},d=function(){var b=l.getItem(p);return b&&b!==s?!1:(l.setItem(p,s),l.getItem(p)===s?!0:(gn(l,!0)||r(new Error("localStorage support dropped while acquiring lock")),!1))},m=function(){l.setItem(f,s),y(d,function(){if(l.getItem(f)===s){_();return}v(function(){if(l.getItem(p)!==s){m();return}y(function(){return!l.getItem(g)},_)})})},_=function(){l.setItem(g,"1");var b=function(){l.removeItem(g),l.getItem(p)===s&&l.removeItem(p),l.getItem(f)===s&&l.removeItem(f)};t().then(function(C){b(),e(C)}).catch(function(C){b(),r(C)})};try{if(gn(l,!0))m();else throw new Error("localStorage support check failed")}catch(b){r(b)}},this))};var Or=function(t){this.storage=t||Qi()};Or.prototype.init=function(){return this.storage?F.resolve():F.reject(new Error("localStorage is not available"))},Or.prototype.isInitialized=function(){return!0},Or.prototype.setItem=function(t,n){return new F(h.bind(function(i,e){try{this.storage.setItem(t,Er(n))}catch(r){e(r)}i()},this))},Or.prototype.getItem=function(t){return new F(h.bind(function(n,i){var e;try{e=ts(this.storage.getItem(t))}catch(r){i(r)}n(e)},this))},Or.prototype.removeItem=function(t){return new F(h.bind(function(n,i){try{this.storage.removeItem(t)}catch(e){i(e)}n()},this))};var Gh=Xe("batch"),Ze=function(t,n){n=n||{},this.storageKey=t,this.usePersistence=n.usePersistence,this.usePersistence&&(this.queueStorage=n.queueStorage||new Or,this.lock=new Wh(t,{storage:n.sharedLockStorage,timeoutMS:n.sharedLockTimeoutMS})),this.reportError=n.errorReporter||h.bind(Gh.error,Gh),this.pid=n.pid||null,this.memQueue=[],this.initialized=!1,n.enqueueThrottleMs?this.enqueuePersisted=eS(h.bind(this._enqueuePersisted,this),n.enqueueThrottleMs):this.enqueuePersisted=h.bind(function(i){return this._enqueuePersisted([i])},this)};Ze.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?F.resolve():this.queueStorage.init().then(h.bind(function(){this.initialized=!0},this)).catch(h.bind(function(t){this.reportError("Error initializing queue persistence. Disabling persistence",t),this.initialized=!0,this.usePersistence=!1},this))},Ze.prototype.enqueue=function(t,n){var i={id:Da(),flushAfter:new Date().getTime()+n*2,payload:t};return this.usePersistence?this.enqueuePersisted(i):(this.memQueue.push(i),F.resolve(!0))},Ze.prototype._enqueuePersisted=function(t){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(t))},this)).then(h.bind(function(i){return i&&(this.memQueue=this.memQueue.concat(t)),i},this)).catch(h.bind(function(i){return this.reportError("Error enqueueing items",i,t),!1},this))},this);return this.lock.withLock(n,this.pid).catch(h.bind(function(i){return this.reportError("Error acquiring storage lock",i),!1},this))},Ze.prototype.fillBatch=function(t){var n=this.memQueue.slice(0,t);return this.usePersistence&&n.length<t?this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(i){if(i.length){var e={};h.each(n,function(o){e[o.id]=!0});for(var r=0;r<i.length;r++){var s=i[r];if(new Date().getTime()>s.flushAfter&&!e[s.id]&&(s.orphaned=!0,n.push(s),n.length>=t))break}}return n},this)):F.resolve(n)};var Vh=function(t,n){var i=[];return h.each(t,function(e){e.id&&!n[e.id]&&i.push(e)}),i};Ze.prototype.removeItemsByID=function(t){var n={};if(h.each(t,function(e){n[e]=!0}),this.memQueue=Vh(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(e){return e=Vh(e,n),this.saveToStorage(e)},this)).then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(e){for(var r=0;r<e.length;r++){var s=e[r];if(s.id&&n[s.id])throw new Error("Item not removed from storage")}return!0},this)).catch(h.bind(function(e){return this.reportError("Error removing items",e,t),!1},this))},this);return this.lock.withLock(i,this.pid).catch(h.bind(function(e){return this.reportError("Error acquiring storage lock",e),gn(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 F.resolve(!0)};var jh=function(t,n){var i=[];return h.each(t,function(e){var r=e.id;if(r in n){var s=n[r];s!==null&&(e.payload=s,i.push(e))}else i.push(e)}),i};Ze.prototype.updatePayloads=function(t){return this.memQueue=jh(this.memQueue,t),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=jh(i,t),this.saveToStorage(i)},this)).catch(h.bind(function(i){return this.reportError("Error updating items",t,i),!1},this))},this),this.pid).catch(h.bind(function(n){return this.reportError("Error acquiring storage lock",n),!1},this)):F.resolve(!0)},Ze.prototype.readFromStorage=function(){return this.ensureInit().then(h.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(h.bind(function(t){return t&&(h.isArray(t)||(this.reportError("Invalid storage entry:",t),t=null)),t||[]},this)).catch(h.bind(function(t){return this.reportError("Error retrieving queue",t),[]},this))},Ze.prototype.saveToStorage=function(t){return this.ensureInit().then(h.bind(function(){return this.queueStorage.setItem(this.storageKey,t)},this)).then(function(){return!0}).catch(h.bind(function(n){return this.reportError("Error saving queue",n),!1},this))},Ze.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(h.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):F.resolve()};var hS=600*1e3,mn=Xe("batch"),Be=function(t,n){this.errorReporter=n.errorReporter,this.queue=new Ze(t,{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};Be.prototype.enqueue=function(t){return this.queue.enqueue(t,this.flushInterval)},Be.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},Be.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},Be.prototype.clear=function(){return this.queue.clear()},Be.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},Be.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},Be.prototype.scheduleFlush=function(t){this.flushInterval=t,this.stopped||(this.timeoutID=setTimeout(h.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},Be.prototype.sendRequestPromise=function(t,n){return new F(h.bind(function(i){this.sendRequest(t,n,i)},this))},Be.prototype.flush=function(t){if(this.requestInProgress)return mn.log("Flush: Request already in progress"),F.resolve();this.requestInProgress=!0,t=t||{};var n=this.libConfig.batch_request_timeout_ms,i=new Date().getTime(),e=this.batchSize;return this.queue.fillBatch(e).then(h.bind(function(r){var s=r.length===e,o=[],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 g=!0,v=f.id;v?(this.itemIdsSentSuccessfully[v]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:f,batchSize:r.length,timesSent:this.itemIdsSentSuccessfully[v]}),g=!1):this.reportError("[dupe] found item with no ID",{item:f}),g&&o.push(p)}a[f.id]=p},this),o.length<1)return this.requestInProgress=!1,this.resetFlush(),F.resolve();var u=h.bind(function(){return this.queue.removeItemsByID(h.map(r,function(f){return f.id})).then(h.bind(function(f){return h.each(r,h.bind(function(p){var g=p.id;g?(this.itemIdsSentSuccessfully[g]=this.itemIdsSentSuccessfully[g]||0,this.itemIdsSentSuccessfully[g]++,this.itemIdsSentSuccessfully[g]>5&&this.reportError("[dupe] item ID sent too many times",{item:p,batchSize:r.length,timesSent:this.itemIdsSentSuccessfully[g]})):this.reportError("[dupe] found item with no ID while removing",{item:p})},this)),f?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!s?(this.resetFlush(),F.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),F.resolve())},this))},this),c=h.bind(function(f){this.requestInProgress=!1;try{if(t.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&&!nS()||f.error==="timeout")){var p=this.flushInterval*2;return f.retryAfter&&(p=parseInt(f.retryAfter,10)*1e3||p),p=Math.min(hS,p),this.reportError("Error; retry in "+p+" ms"),this.scheduleFlush(p),F.resolve()}else if(h.isObject(f)&&f.httpStatusCode===413)if(r.length>1){var g=Math.max(1,Math.floor(e/2));return this.batchSize=Math.min(this.batchSize,g,r.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),F.resolve()}else return this.reportError("Single-event request too large; dropping",r),this.resetBatchSize(),u();else return u()}catch(v){this.reportError("Error handling API response",v),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:n};return t.unloading&&(l.transport="sendBeacon"),mn.log("MIXPANEL REQUEST:",o),this.sendRequestPromise(o,l).then(c)},this)).catch(h.bind(function(r){this.reportError("Error flushing request queue",r),this.resetFlush()},this))},Be.prototype.reportError=function(t,n){if(mn.error.apply(mn.error,arguments),this.errorReporter)try{n instanceof Error||(n=new Error(t)),this.errorReporter(t,n)}catch(i){mn.error(i)}};var Ga=function(t){var n=Date.now();return!t||n>t.maxExpires||n>t.idleExpires},pS=250,Hh=function(t,n){if(!h.isArray(t))return t&&n.critical("record_allowed_iframe_origins must be an array of origin strings, cross-origin recording will be disabled."),[];for(var i=[],e=0;e<t.length;e++)try{var r=new URL(t[e]).origin;if(r==="null"){n.critical(t[e]+" has an opaque origin. Skipping this entry.");continue}i.push(r)}catch(s){n.critical(t[e]+" is not a valid origin URL. Skipping this entry.")}return i},yn="change",ct="click",Va="hashchange",dS="input",Yh="load",Rt="mp_locationchange",Kh="popstate",rs="scrollend",ja="scroll",vS="select",ns="submit",gS="toggle",Jh="visibilitychange",mS=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],Xh=["mp-include"],Ha=["mp-no-track"],Zh=Ha.concat(["mp-sensitive"]),yS=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],_S={button:!0,checkbox:!0,combobox:!0,grid:!0,link:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,navigation:!0,option:!0,radio:!0,radiogroup:!0,searchbox:!0,slider:!0,spinbutton:!0,switch:!0,tab:!0,tablist:!0,textbox:!0,tree:!0,treegrid:!0,treeitem:!0},wS={base:!0,head:!0,html:!0,link:!0,meta:!0,script:!0,style:!0,title:!0,br:!0,hr:!0,wbr:!0,noscript:!0,picture:!0,source:!0,template:!0,track:!0},bS={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},Qh=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],SS=5,re=Xe("autocapture");function Ya(t){for(var n={},i=ep(t).split(" "),e=0;e<i.length;e++){var r=i[e];r&&(n[r]=!0)}return n}function ep(t){switch(typeof t.className){case"string":return t.className;case"object":return t.className.baseVal||t.getAttribute("class")||"";default:return""}}function CS(t){if(t.previousElementSibling)return t.previousElementSibling;do t=t.previousSibling;while(t&&!np(t));return t}function tp(t,n,i,e,r,s){var o={$classes:ep(t).split(" "),$tag_name:t.tagName.toLowerCase()},a=t.id;a&&(o.$id=a),Xa(t,n,r,s)&&h.each(yS.concat(e),function(f){if(t.hasAttribute(f)&&!i[f]){var p=t.getAttribute(f);is(p)&&(o["$attr-"+f]=p)}});for(var u=1,c=1,l=t;l=CS(l);)u++,l.tagName===t.tagName&&c++;return o.$nth_child=u,o.$nth_of_type=c,o}function ES(t,n){var i=n.allowElementCallback,e=n.allowSelectors||[],r=n.blockAttrs||[],s=n.blockElementCallback,o=n.blockSelectors||[],a=n.captureTextContent||!1,u=n.captureExtraAttrs||[],c=n.capturedForHeatMap||!1,l={};h.each(r,function(S){l[S]=!0});var f=null,p=typeof t.target=="undefined"?t.srcElement:t.target;if(ip(p)&&(p=p.parentNode),kS(p,t)&&Ka(p,t,i,e)&&!Ja(p,t,s,o)){for(var g=[p],v=p;v.parentNode&&!Qe(v,"body");)g.push(v.parentNode),v=v.parentNode;var y=[],d,m=!1;if(h.each(g,function(S){var O=Xa(S,t,i,e);!l.href&&S.tagName.toLowerCase()==="a"&&(d=S.getAttribute("href"),d=O&&is(d)&&d),Ja(S,t,s,o)&&(m=!0),y.push(tp(S,t,l,u,i,e))},this),!m){var _=U.documentElement;if(f={$event_type:t.type,$host:E.location.host,$pathname:E.location.pathname,$elements:y,$el_attr__href:d,$viewportHeight:Math.max(_.clientHeight,E.innerHeight||0),$viewportWidth:Math.max(_.clientWidth,E.innerWidth||0),$pageHeight:U.body.offsetHeight||0,$pageWidth:U.body.offsetWidth||0},h.each(u,function(S){if(!l[S]&&p.hasAttribute(S)){var O=p.getAttribute(S);is(O)&&(f["$el_attr__"+S]=O)}}),a&&(b=rp(p,t,i,e),b&&b.length&&(f.$el_text=b)),t.type===ct&&(h.each(mS,function(S){S in t&&(f["$"+S]=t[S])}),c&&(f.$captured_for_heatmap=!0),p=IS(t)),a){var b=rp(p,t,i,e);b&&b.length&&(f.$el_text=b)}if(p){if(!Ka(p,t,i,e)||Ja(p,t,s,o))return null;var C=tp(p,t,l,u,i,e);f.$target=C,f.$el_classes=C.$classes,h.extend(f,h.strip_empty_properties({$el_id:C.$id,$el_tag_name:C.$tag_name}))}}}return f}function rp(t,n,i,e){var r="";return Xa(t,n,i,e)&&t.childNodes&&t.childNodes.length&&h.each(t.childNodes,function(s){ip(s)&&s.textContent&&(r+=h.trim(s.textContent).split(/(\s+)/).filter(is).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),h.trim(r)}function IS(t){for(var n=t.target,i=t.composedPath(),e=0;e<i.length;e++){var r=i[e];if(Qe(r,"a")||Qe(r,"button")||Qe(r,"input")||Qe(r,"select")||r.getAttribute&&r.getAttribute("role")==="button"){n=r;break}if(r===n)break}return n}function Ka(t,n,i,e){if(i)try{if(!i(t,n))return!1}catch(o){return re.critical("Error while checking element in allowElementCallback",o),!1}if(!e.length)return!0;for(var r=0;r<e.length;r++){var s=e[r];try{if(t.matches(s))return!0}catch(o){re.critical("Error while checking selector: "+s,o)}}return!1}function Ja(t,n,i,e){var r;if(i)try{if(i(t,n))return!0}catch(a){return re.critical("Error while checking element in blockElementCallback",a),!0}if(e&&e.length)for(r=0;r<e.length;r++){var s=e[r];try{if(t.matches(s))return!0}catch(a){re.critical("Error while checking selector: "+s,a)}}var o=Ya(t);for(r=0;r<Ha.length;r++)if(o[Ha[r]])return!0;return!1}function np(t){return t&&t.nodeType===1}function Qe(t,n){return t&&t.tagName&&t.tagName.toLowerCase()===n.toLowerCase()}function ip(t){return t&&t.nodeType===3}function OS(){try{var t=U.createElement("div");return!!t.matches}catch(n){return!1}}function xS(){return typeof WeakSet!="undefined"}function kS(t,n){if(!t||Qe(t,"html")||!np(t))return!1;var i=t.tagName.toLowerCase();switch(i){case"form":return n.type===ns;case"input":return["button","submit"].indexOf(t.getAttribute("type"))===-1?n.type===yn:n.type===ct;case"select":case"textarea":return n.type===yn;default:return n.type===ct}}function sp(t){var n=(t.name||t.id||"").toString().toLowerCase();if(typeof n=="string"){var i=/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i;if(i.test(n.replace(/[^a-zA-Z0-9]/g,"")))return!0}return!1}function Xa(t,n,i,e){var r;if(!Ka(t,n,i,e))return!1;for(var s=t;s.parentNode&&!Qe(s,"body");s=s.parentNode){var o=Ya(s);for(r=0;r<Zh.length;r++)if(o[Zh[r]])return!1}var a=Ya(t);for(r=0;r<Xh.length;r++)if(a[Xh[r]])return!0;if(Qe(t,"input")||Qe(t,"select")||Qe(t,"textarea")||t.getAttribute("contenteditable")==="true")return!1;var u=t.type||"";if(typeof u=="string")switch(u.toLowerCase()){case"hidden":return!1;case"password":return!1}return!sp(t)}function is(t){if(t===null||h.isUndefined(t))return!1;if(typeof t=="string"){t=h.trim(t);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((t||"").replace(/[- ]/g,"")))return!1;var i=/(^\d{3}-?\d{2}-?\d{4}$)/;if(i.test(t))return!1}return!0}function op(t){var n="onscrollend"in E,i=Wt(t),e=rs;if(!n){var r=null,s=100;i=Wt(function(){clearTimeout(r),r=setTimeout(t,s)}),e=ja}return{listener:i,eventType:e}}function RS(t){for(var n=0;n<Qh.length;n++)if(t.hasAttribute(Qh[n]))return!0;return!1}function AS(t){var n=t.getAttribute("role");if(!n)return!1;var i=n.trim().split(/\s+/)[0].toLowerCase();return _S[i]}function Za(t){var n=t.tagName.toLowerCase();return!!(n==="button"||n==="input"||n==="select"||n==="textarea"||n==="details"||n==="dialog"||t.isContentEditable||t.onclick||t.onmousedown||t.onmouseup||t.ontouchstart||t.ontouchend||RS(t)||AS(t)||n==="a"&&t.hasAttribute("href")||t.hasAttribute("tabindex"))}function ap(t){if(!t||!t.tagName)return!0;var n=t.tagName.toLowerCase();if(wS[n])return!0;if(Za(t))return!1;for(var i=t.parentElement,e=0;i&&e<SS;){if(Za(i))return!1;if(i.getRootNode&&i.getRootNode()!==U){var r=i.getRootNode();if(r.host&&Za(r.host))return!1}i=i.parentElement,e++}return!!bS[n]}function up(t){return"composedPath"in t?t.composedPath():[]}function cp(t){var n=up(t);return n&&n.length>0?n[0]:t.target||t.srcElement}var lp=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",MS="data-rr-is-password",TS=["password","email","tel","hidden"];function ss(t){return t?Array.isArray(t)?t:[t]:[]}function PS(t){var n={input:{maskingSelector:"",unmaskingSelector:"",maskAll:!0},text:{maskingSelector:"",unmaskingSelector:"",maskAll:!0}},i=t.get_config("record_mask_input_selector"),e=t.get_config("record_unmask_input_selector"),r=t.get_config("record_mask_all_inputs");n.input.maskingSelector=ss(i).join(","),n.input.unmaskingSelector=ss(e).join(","),r!==void 0&&(n.input.maskAll=r);var s=t.get_config("record_mask_text_selector"),o=t.get_config("record_unmask_text_selector"),a=t.get_config("record_mask_all_text"),u=t.get_config("record_mask_text_class"),c=ss(s);if(u)if(u instanceof RegExp)n.text._legacyClassRegex=u;else{var l="."+u;c.indexOf(l)===-1&&c.push(l)}return n.text.maskingSelector=c.join(","),n.text.unmaskingSelector=ss(o).join(","),a===void 0&&s!==void 0?n.text.maskAll=!1:a!==void 0&&(n.text.maskAll=a),n}function xr(t,n){return n?!!t.closest(n):!1}function $S(t,n){var i=(t.getAttribute("type")||"").toLowerCase();if(TS.indexOf(i)!==-1)return!0;var e=(t.getAttribute("autocomplete")||"").toLowerCase();return e&&e!==""&&e!=="off"||t.hasAttribute(MS)||sp(t)?!0:n.input.maskAll?!xr(t,n.input.unmaskingSelector):!!(xr(t,n.input.maskingSelector)||xr(t,lp))}function NS(t,n){return t?n.text._legacyClassRegex&&Jo(t,n.text._legacyClassRegex)?!0:n.text.maskAll?!xr(t,n.text.unmaskingSelector):!!(xr(t,n.text.maskingSelector)||xr(t,lp)):!1}var Gt=Xe("network-plugin");function os(t){return Math.round(Date.now()-t.performance.now())}var Qa={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],ignoreRequestFn:function(){return!1},recordHeaders:{request:[],response:[]},recordBodyUrls:{request:[],response:[]},recordInitialRequests:!1};function LS(t){return t.entryType==="navigation"}function eu(t){return t.entryType==="resource"}function DS(t,n){for(var i=t.length,e=i-1;e>=0;e-=1)if(n(t[e]))return t[e]}function fp(t,n,i){if(!(n in t)||typeof t[n]!="function")return function(){};var e=t[n],r=i(e);return t[n]=r,function(){t[n]=e}}var tu=1024*1024;function hp(t){return!t||typeof t!="string"?t:t.length>tu?(Gt.error("Body truncated from "+t.length+" to "+tu+" characters"),t.substring(0,tu)+"... [truncated]"):t}function FS(t,n,i){if(!n.PerformanceObserver)return Gt.error("PerformanceObserver not supported"),function(){};if(i.recordInitialRequests){var e=n.performance.getEntries().filter(function(s){return LS(s)||eu(s)&&i.initiatorTypes.includes(s.initiatorType)});t({requests:e.map(function(s){return{url:s.name,initiatorType:s.initiatorType,status:"responseStatus"in s?s.responseStatus:void 0,startTime:Math.round(s.startTime),endTime:Math.round(s.responseEnd),timeOrigin:os(n)}}),isInitial:!0})}var r=new n.PerformanceObserver(function(s){var o=s.getEntries().filter(function(a){return eu(a)&&i.initiatorTypes.includes(a.initiatorType)&&a.initiatorType!=="xmlhttprequest"&&a.initiatorType!=="fetch"});t({requests:o.map(function(a){return{url:a.name,initiatorType:a.initiatorType,status:"responseStatus"in a?a.responseStatus:void 0,startTime:Math.round(a.startTime),endTime:Math.round(a.responseEnd),timeOrigin:os(n)}})})});return r.observe({entryTypes:["navigation","resource"]}),function(){r.disconnect()}}function as(t,n,i){return!n[t]||n[t].length===0?!1:n[t].includes(i.toLowerCase())}function us(t,n,i){return!n[t]||n[t].length===0?!1:es(i,n[t])}function pp(t){if(t==null)return null;var n;if(typeof t=="string")n=t;else if(t instanceof Document)n=t.textContent;else if(t instanceof FormData)n=h.HTTPBuildQuery(t);else if(h.isObject(t))try{n=JSON.stringify(t)}catch(i){return"Failed to stringify response object"}else return"Cannot read body of type "+typeof t;return hp(n)}function dp(t){return new Promise(function(n){var i=setTimeout(function(){n("Timeout while trying to read body")},500);try{t.clone().text().then(function(e){clearTimeout(i),n(hp(e))},function(e){clearTimeout(i),n("Failed to read body: "+String(e))})}catch(e){clearTimeout(i),n("Failed to read body: "+String(e))}})}function ru(t,n,i,e,r,s){if(s===void 0&&(s=0),s>10)return Gt.error("Cannot find performance entry"),Promise.resolve(null);var o=t.performance.getEntriesByName(i),a=DS(o,function(u){return eu(u)&&u.initiatorType===n&&(!e||u.startTime>=e)&&(!r||u.startTime<=r)});return a?Promise.resolve(a):new Promise(function(u){setTimeout(u,50*s)}).then(function(){return ru(t,n,i,e,r,s+1)})}function US(t,n,i){if(!i.initiatorTypes.includes("xmlhttprequest"))return function(){};var e=fp(n.XMLHttpRequest.prototype,"open",function(r){return function(s,o,a,u,c){a===void 0&&(a=!0);var l=this,f=new Request(o,{method:s}),p={},g,v,y={},d=l.setRequestHeader.bind(l);l.setRequestHeader=function(_,b){return as("request",i.recordHeaders,_)&&(y[_]=b),d(_,b)},p.requestHeaders=y;var m=l.send.bind(l);l.send=function(_){return us("request",i.recordBodyUrls,f.url)&&(p.requestBody=pp(_)),g=n.performance.now(),m(_)},l.addEventListener("readystatechange",function(){if(l.readyState===l.DONE){v=n.performance.now();var _={},b=l.getAllResponseHeaders();if(b){var C=b.trim().split(/[\r\n]+/);C.forEach(function(S){if(S){var O=S.indexOf(": ");if(O!==-1){var A=S.substring(0,O),k=S.substring(O+2);A&&as("response",i.recordHeaders,A)&&(_[A]=k)}}})}p.responseHeaders=_,us("response",i.recordBodyUrls,f.url)&&(p.responseBody=pp(l.response)),ru(n,"xmlhttprequest",f.url,g,v).then(function(S){if(!S){Gt.error("Failed to get performance entry for XHR request to "+f.url);return}var O={url:S.name,method:f.method,initiatorType:S.initiatorType,status:l.status,startTime:Math.round(S.startTime),endTime:Math.round(S.responseEnd),timeOrigin:os(n),requestHeaders:p.requestHeaders,requestBody:p.requestBody,responseHeaders:p.responseHeaders,responseBody:p.responseBody};t({requests:[O]})}).catch(function(S){Gt.error("Error recording XHR request to "+f.url+": "+String(S))})}}),r.call(l,s,o,a,u,c)}});return function(){e()}}function BS(t,n,i){if(!i.initiatorTypes.includes("fetch"))return function(){};var e=fp(n,"fetch",function(r){return function(){var s=new Request(arguments[0],arguments[1]),o,a={},u,c,l,f=Promise.resolve(void 0),p=Promise.resolve(void 0);try{var g={};s.headers.forEach(function(v,y){as("request",i.recordHeaders,y)&&(g[y]=v)}),a.requestHeaders=g,us("request",i.recordBodyUrls,s.url)&&(f=dp(s).then(function(v){a.requestBody=v})),u=n.performance.now(),l=r.apply(n,arguments).then(function(v){o=v,c=n.performance.now();var y={};return o.headers.forEach(function(d,m){as("response",i.recordHeaders,m)&&(y[m]=d)}),a.responseHeaders=y,us("response",i.recordBodyUrls,s.url)&&(p=dp(o).then(function(d){a.responseBody=d})),o})}catch(v){l=Promise.reject(v)}return Promise.all([f,p,l]).then(function(){return ru(n,"fetch",s.url,u,c)}).then(function(v){if(!v){Gt.error("Failed to get performance entry for fetch request to "+s.url);return}var y={url:v.name,method:s.method,initiatorType:v.initiatorType,status:o?o.status:void 0,startTime:Math.round(v.startTime),endTime:Math.round(v.responseEnd),timeOrigin:os(n),requestHeaders:a.requestHeaders,requestBody:a.requestBody,responseHeaders:a.responseHeaders,responseBody:a.responseBody};t({requests:[y]})}).catch(function(v){Gt.error("Error recording fetch request to "+s.url+": "+String(v))}),l}});return function(){e()}}function zS(t,n,i){if(!("performance"in n))return function(){};var e=Object.assign({},Qa.recordHeaders,i.recordHeaders||{}),r=Object.assign({},Qa.recordBodyUrls,i.recordBodyUrls||{});i=Object.assign({},i,{recordHeaders:e,recordBodyUrls:r});var s=Object.assign({},Qa,i),o=function(l){var f=l.requests.filter(function(p){var g=es(p.url,s.ignoreRequestUrls||[]);return!g&&!s.ignoreRequestFn(p)});(f.length>0||l.isInitial)&&t(Object.assign({},l,{requests:f}))},a=FS(o,n,s),u=US(o,n,s),c=BS(o,n,s);return function(){a(),u(),c()}}var qS="rrweb/network@1.mp",WS=function(t){return{name:qS,observer:zS,options:t}},Vt=Xe("recorder"),GS=E.CompressionStream,VS={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},jS=new Set([D.MouseMove,D.MouseInteraction,D.Scroll,D.ViewportResize,D.Input,D.TouchMove,D.MediaInteraction,D.Drag,D.Selection]);function HS(t){return t.type===j.IncrementalSnapshot&&jS.has(t.data.source)}var we=function(t){this._mixpanel=t.mixpanelInstance,this._onIdleTimeout=t.onIdleTimeout||Ot,this._onMaxLengthReached=t.onMaxLengthReached||Ot,this._onBatchSent=t.onBatchSent||Ot,this._rrwebRecord=t.rrwebRecord||null,this._stopRecording=null,this.replayId=t.replayId,this.batchStartUrl=t.batchStartUrl||null,this.replayStartUrl=t.replayStartUrl||null,this.idleExpires=t.idleExpires||null,this.maxExpires=t.maxExpires||null,this.replayStartTime=t.replayStartTime||null,this.lastEventTimestamp=t.lastEventTimestamp||null,this.seqNo=t.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=pn,this.recordMinMs=0,this._recordMinMsCheckStart=null;var n=gn(t.sharedLockStorage||Qi(),!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new Ue(Fa,Uh,Ba),this.batcher=new Be(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:VS,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:t.sharedLockStorage,usePersistence:n,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:pS,sharedLockTimeoutMS:10*1e3})};we.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var t={distinct_id:String(this._mixpanel.get_distinct_id())},n=this._mixpanel.get_property("$device_id");n&&(t.$device_id=n);var i=this._mixpanel.get_property("$user_id");return i&&(t.$user_id=i),t},we.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init().catch(function(){this.reportError("Error initializing IndexedDB storage for unloading persisted data.")}.bind(this)).then(function(){return this.getDurationMs()<this._getRecordMinMs()?this.queueStorage.removeItem(this.batcherKey):this.batcher.flush().then(function(){return this.queueStorage.removeItem(this.batcherKey)}.bind(this))}.bind(this))},we.prototype.getConfig=function(t){return this._mixpanel.get_config(t)},we.prototype.get_config=function(t){return this.getConfig(t)},we.prototype.startRecording=function(t){if(this._rrwebRecord===null){this.reportError("rrweb record function not provided. ");return}if(this._stopRecording!==null){Vt.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>pn&&(this.recordMaxMs=pn,Vt.critical("record_max_ms cannot be greater than "+pn+"ms. Capping value.")),this.maxExpires||(this.maxExpires=new Date().getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=h.info.currentUrl(),this.replayStartUrl=h.info.currentUrl()),t||this.recordMinMs>0?(this.batcher.stop(),this._recordMinMsCheckStart=null):this.batcher.start();var n=function(){clearTimeout(this.idleTimeoutId);var c=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,c),this.idleExpires=new Date().getTime()+c}.bind(this);n();var i=this.getConfig("record_block_selector");(i===""||i===null)&&(i=void 0);var e=PS(this._mixpanel),r=[];if(this.getConfig("record_network")){var s=this.getConfig("record_network_options")||{},o=(s.ignoreRequestUrls||[]).slice();o.push(this._getApiRoute()),s.ignoreRequestUrls=o,r.push(WS(s))}this.getConfig("record_console")&&r.push(Wb({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}}));var a=Hh(this.getConfig("record_allowed_iframe_origins"),Vt);try{this._stopRecording=this._rrwebRecord({emit:function(c){if(this.idleExpires&&this.idleExpires<c.timestamp){this._onIdleTimeout();return}this._recordMinMsCheckStart===null&&(this._recordMinMsCheckStart=c.timestamp),HS(c)&&(this.batcher.stopped&&c.timestamp-this._recordMinMsCheckStart>=this.recordMinMs&&this.batcher.start(),n()),this.__enqueuePromise=this.batcher.enqueue(c),(this.lastEventTimestamp===null||c.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=c.timestamp)}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:i,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn($S,e),maskTextFn:this._getMaskFn(NS,e),recordCrossOriginIframes:a.length>0,allowedIframeOrigins:a,recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:r})}catch(c){this.reportError("Unexpected error when starting rrweb recording.",c)}if(typeof this._stopRecording!="function"){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var u=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),u)},we.prototype.stopRecording=function(t){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(i){this.reportError("Error with rrweb stopRecording",i)}this._stopRecording=null}var n;return this.batcher.stopped?n=this.batcher.clear():t||(n=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),n},we.prototype.isRrwebStopped=function(){return this._stopRecording===null},we.prototype.flushEventsWithOptOut=function(t,n,i){var e=function(r){r===0&&(this.stopRecording(),i({error:"Tracking has been opted out, stopping recording."}))}.bind(this);this._flushEvents(t,n,i,e)},we.prototype.serialize=function(){var t;try{t=this._mixpanel.get_tab_id()}catch(n){this.reportError("Error getting tab ID for serialization ",n),t=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:t}},we.deserialize=function(t,n){var i=new we(h.extend({},n,{replayId:t.replayId,batchStartUrl:t.batchStartUrl,replayStartUrl:t.replayStartUrl,idleExpires:t.idleExpires,maxExpires:t.maxExpires,replayStartTime:t.replayStartTime,lastEventTimestamp:t.lastEventTimestamp,seqNo:t.seqNo,sharedLockStorage:n.sharedLockStorage}));return i},we.prototype._getApiRoute=function(){return this.getConfig("api_routes").record},we.prototype._sendRequest=function(t,n,i,e){var r=function(o,a){o.status===200&&this.replayId===t&&(this.seqNo++,this.batchStartUrl=h.info.currentUrl()),this._onBatchSent(),e({status:0,httpStatusCode:o.status,responseBody:a,retryAfter:o.headers.get("Retry-After")})}.bind(this),s=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");E.fetch(s+"/"+this._getApiRoute()+"?"+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(a){r(o,a)}).catch(function(a){e({error:a})})}).catch(function(o){e({error:o,httpStatusCode:0})})},we.prototype._flushEvents=xt(function(t,n,i){var e=t.length;if(e>0){for(var r=this.replayId,s=1/0,o=-1/0,a=!1,u=0;u<e;u++)s=Math.min(s,t[u].timestamp),o=Math.max(o,t[u].timestamp),t[u].type===j.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=s}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=s);var c=o-this.replayStartTime,l={$current_url:this.batchStartUrl,$lib_version:Pe.LIB_VERSION,batch_start_time:s/1e3,mp_lib:"web",replay_id:r,replay_length_ms:c,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},f=JSON.stringify(t);if(Object.assign(l,this.getUserIdInfo()),iS(Je,ut.vendor,vn)){var p=new Blob([f],{type:"application/json"}).stream(),g=p.pipeThrough(new GS("gzip"));new Response(g).blob().then(function(v){l.format="gzip",this._sendRequest(r,l,v,i)}.bind(this))}else l.format="body",this._sendRequest(r,l,f,i)}}),we.prototype.reportError=function(t,n){Vt.error.apply(Vt.error,arguments);try{!n&&!(t instanceof Error)&&(t=new Error(t)),this.getConfig("error_reporter")(t,n)}catch(i){Vt.error(i)}},we.prototype.getDurationMs=function(){return this.replayStartTime===null?0:this.lastEventTimestamp===null?new Date().getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},we.prototype._getRecordMinMs=function(){var t=this.getConfig("record_min_ms");return t>Ma?(Vt.critical("record_min_ms cannot be greater than "+Ma+"ms. Capping value."),Ma):t},we.prototype._getMaskFn=function(t,n){return function(i,e){if(!i.trim().length)return"";var r=!0;try{r=t(e,n)}catch(o){this.reportError("Error checking if text should be masked, defaulting to masked",o)}if(r){var s=Math.min(i.length,1e4);return"*".repeat(s)}else return i}.bind(this)};var lt=function(t){this.idb=new Ue(Fa,Ua,Ba),this.errorReporter=t.errorReporter,this.mixpanelInstance=t.mixpanelInstance,this.sharedLockStorage=t.sharedLockStorage};lt.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},lt.prototype.handleError=function(t){this.errorReporter("IndexedDB error: ",t)},lt.prototype.setActiveRecording=function(t){if(!this.isPersistenceEnabled())return F.resolve();var n=t.tabId;return n?this.idb.init().then(function(){return this.idb.setItem(n,t)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),F.resolve())},lt.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}.bind(this)).then(function(t){return Ga(t)?null:t}.bind(this)).catch(this.handleError.bind(this)):F.resolve(null)},lt.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},lt.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then(function(t){if(t)return t.maxExpires=0,this.setActiveRecording(t)}.bind(this)).catch(this.handleError.bind(this))},lt.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):F.resolve()},lt.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(t){var n=t.filter(function(i){return Ga(i)}).map(function(i){var e=we.deserialize(i,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return e.unloadPersistedData().then(function(){return this.idb.removeItem(i.tabId)}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return F.all(n)}.bind(this)).catch(this.handleError.bind(this)):F.resolve([])};var _n=Xe("recorder"),et=function(t,n,i){this.mixpanelInstance=t,this.rrwebRecord=n||wt,this.sharedLockStorage=i,this.recordingRegistry=new lt({mixpanelInstance:this.mixpanelInstance,errorReporter:_n.error,sharedLockStorage:i}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};et.prototype.startRecording=function(t){if(t=t||{},this.activeRecording&&!this.activeRecording.isRrwebStopped()){_n.log("Recording already in progress, skipping startRecording.");return}var n=function(){_n.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),i=function(){_n.log("Max recording length reached, stopping recording."),this.resetRecording()}.bind(this),e=function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}.bind(this),r={mixpanelInstance:this.mixpanelInstance,onBatchSent:e,onIdleTimeout:n,onMaxLengthReached:i,replayId:h.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return t.activeSerializedRecording?this.activeRecording=we.deserialize(t.activeSerializedRecording,r):this.activeRecording=new we(r),this.activeRecording.startRecording(t.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())},et.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then(function(){return this.recordingRegistry.clearActiveRecording()}.bind(this)).then(function(){this.stopRecordingInProgress=!1}.bind(this))},et.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},et.prototype._stopCurrentRecording=function(t,n){if(this.activeRecording){var i=this.activeRecording.stopRecording(t);return n&&(this.activeRecording=null),i}return F.resolve()},et.prototype.resumeRecording=function(t){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),F.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(n){return n&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:n}):t?this.startRecording({shouldStopBatcher:!1}):(_n.log("No resumable recording found."),null)}.bind(this))},et.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},et.prototype.isRecording=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()},et.prototype.getActiveReplayId=function(){return this.isRecording()?this.activeRecording.replayId:null},Object.defineProperty(et.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),E[Is]=et;var YS=30,KS=1e3,JS=4,XS=!1;function vp(){this.clicks=[]}vp.prototype.isRageClick=function(t,n){n=n||{};var i=n.threshold_px||YS,e=n.timeout_ms||KS,r=n.click_count||JS,s=n.interactive_elements_only||XS;if(s){var o=cp(t);if(!o||ap(o))return!1}var a=Date.now(),u=t.pageX,c=t.pageY,l=this.clicks[this.clicks.length-1];if(l&&a-l.timestamp<e&&Math.sqrt(Math.pow(u-l.x,2)+Math.pow(c-l.y,2))<i){if(this.clicks.push({x:u,y:c,timestamp:a}),this.clicks.length>=r)return this.clicks=[],!0}else this.clicks=[{x:u,y:c,timestamp:a}];return!1};function kr(t,n){this.changeCallback=t||function(){},this.observerConfig=n,this.observedShadowRoots=null,this.shadowObservers=[]}kr.prototype.getEventTarget=function(t){if(this.observedShadowRoots)return cp(t)},kr.prototype.observeFromEvent=function(t){if(this.observedShadowRoots)for(var n=up(t),i=0;i<n.length;i++){var e=n[i];e&&e.shadowRoot&&this.observeShadowRoot(e.shadowRoot)}},kr.prototype.observeShadowRoot=function(t){if(!(!this.observedShadowRoots||this.observedShadowRoots.has(t))){var n=this;try{this.observedShadowRoots.add(t);var i=new window.MutationObserver(function(){n.changeCallback()});i.observe(t,this.observerConfig),this.shadowObservers.push(i)}catch(e){re.critical("Error while observing shadow root",e)}}},kr.prototype.start=function(){if(!this.observedShadowRoots){if(!xS()){re.critical("Shadow DOM observation unavailable: WeakSet not supported");return}this.observedShadowRoots=new WeakSet}},kr.prototype.stop=function(){if(this.observedShadowRoots){for(var t=0;t<this.shadowObservers.length;t++)try{this.shadowObservers[t].disconnect()}catch(n){re.critical("Error while disconnecting shadow DOM observer",n)}this.shadowObservers=[],this.observedShadowRoots=null}};var ZS=500,QS=[yn,dS,ns,vS,gS],eC=[rs],tC=[Va],gp={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function tt(t){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=t,this.processingActive=!1,this.processingTimeout=null}tt.prototype.addClick=function(t){var n=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(t);return n||(n=t.target||t.srcElement),!n||ap(n)?!1:(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(t),this.pendingClicks.push({element:n,event:t,timestamp:Date.now()}),!0)},tt.prototype.trackClick=function(t,n){if(!this.isTracking)return!1;var i=this.addClick(t);return i&&this.triggerProcessing(n),i},tt.prototype.getDeadClicks=function(t){if(this.pendingClicks.length===0)return[];var n=t.timeout_ms,i=Date.now(),e=this.pendingClicks.slice();this.pendingClicks=[];for(var r=[],s=0;s<e.length;s++){var o=e[s];i-o.timestamp>=n?this.hasChangesAfter(o.timestamp)||r.push(o):this.pendingClicks.push(o)}return r},tt.prototype.hasChangesAfter=function(t){return this.lastChangeEventTimestamp>=t-100},tt.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},tt.prototype.triggerProcessing=function(t){this.processingActive||(this.processingActive=!0,this.processRecursively(t))},tt.prototype.processRecursively=function(t){if(!this.isTracking||!this.onDeadClickCallback){this.processingActive=!1;return}var n=t.timeout_ms,i=this;this.processingTimeout=setTimeout(function(){if(i.processingActive){for(var e=i.getDeadClicks(t),r=0;r<e.length;r++)i.onDeadClickCallback(e[r].event);i.pendingClicks.length>0?i.processRecursively(t):i.processingActive=!1}},n)},tt.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var t=this;QS.forEach(function(i){var e=function(){t.recordChangeEvent()};document.addEventListener(i,e,{capture:!0,passive:!0}),t.eventListeners.push({target:document,event:i,handler:e,options:{capture:!0,passive:!0}})}),tC.forEach(function(i){var e=function(){t.recordChangeEvent()};window.addEventListener(i,e),t.eventListeners.push({target:window,event:i,handler:e})}),eC.forEach(function(i){var e=function(){t.recordChangeEvent()};window.addEventListener(i,e,{passive:!0}),t.eventListeners.push({target:window,event:i,handler:e,options:{passive:!0}})});var n=function(){t.recordChangeEvent()};if(document.addEventListener("selectionchange",n),t.eventListeners.push({target:document,event:"selectionchange",handler:n}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){t.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,gp)}catch(i){re.critical("Error while setting up mutation observer",i)}if(window.customElements)try{this.shadowDOMObserver=new kr(function(){t.recordChangeEvent()},gp),this.shadowDOMObserver.start()}catch(i){re.critical("Error while setting up shadow DOM observer",i),this.shadowDOMObserver=null}}},tt.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var t=0;t<this.eventListeners.length;t++){var n=this.eventListeners[t];try{n.target.removeEventListener(n.event,n.handler,n.options)}catch(i){re.critical("Error while removing event listener",i)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(i){re.critical("Error while disconnecting mutation observer",i)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(i){re.critical("Error while stopping shadow DOM observer",i)}this.shadowDOMObserver=null}}};var mp="autocapture",rC="track_pageview",nu="full-url",nC="url-with-path-and-query-string",iC="url-with-path",sC="allow_element_callback",yp="allow_selectors",_p="allow_url_regexes",wp="block_attrs",bp="block_element_callback",Sp="block_selectors",Cp="block_url_regexes",Ep="capture_extra_attrs",Ip="capture_text_content",Op="scroll_capture_all",xp="scroll_depth_percent_checkpoints",cs="click",ls="dead_click",iu="input",kp="pageview",fs="rage_click",su="scroll",hs="page_leave",ou="submit",Ee={};Ee[yp]=[],Ee[_p]=[],Ee[wp]=[],Ee[bp]=null,Ee[Sp]=[],Ee[Cp]=[],Ee[Ep]=[],Ee[Ip]=!1,Ee[Op]=!1,Ee[xp]=[25,50,75,100],Ee[cs]=!0,Ee[ls]=!0,Ee[iu]=!0,Ee[kp]=nu,Ee[fs]=!0,Ee[su]=!0,Ee[hs]=!1,Ee[ou]=!0;var wn={$mp_autocapture:!0},Rp="$mp_click",Ap="$mp_dead_click",oC="$mp_input_change",Mp="$mp_rage_click",aC="$mp_scroll",uC="$mp_submit",cC="$mp_page_leave",be=function(t){this.mp=t,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};be.prototype.init=function(){if(!OS()){re.critical("Autocapture unavailable: missing required DOM APIs");return}this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking()},be.prototype.getFullConfig=function(){var t=this.mp.get_config(mp);return t?h.isObject(t)?h.extend({},Ee,t):Ee:{}},be.prototype.getConfig=function(t){return this.getFullConfig()[t]},be.prototype.currentUrlBlocked=function(){var t=h.info.currentUrl(),n=this.getConfig(_p)||[];if(n.length)try{return!es(t,n)}catch(e){return re.critical("Error while checking block URL regexes: ",e),!0}var i=this.getConfig(Cp)||[];if(!i||!i.length)return!1;try{return es(t,i)}catch(e){return re.critical("Error while checking block URL regexes: ",e),!0}},be.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(mp)?this.getConfig(kp):this.mp.get_config(rC)},be.prototype.trackDomEvent=function(t,n){if(!this.currentUrlBlocked()){var i=this.mp.is_recording_heatmap_data()&&(n===Rp&&!this.getConfig(cs)||n===Mp&&!this._getClickTrackingConfig(fs)||n===Ap&&!this._getClickTrackingConfig(ls)),e=ES(t,{allowElementCallback:this.getConfig(sC),allowSelectors:this.getConfig(yp),blockAttrs:this.getConfig(wp),blockElementCallback:this.getConfig(bp),blockSelectors:this.getConfig(Sp),captureExtraAttrs:this.getConfig(Ep),captureTextContent:this.getConfig(Ip),capturedForHeatMap:i});e&&(h.extend(e,wn),this.mp.track(n,e))}},be.prototype.initPageListeners=function(){if(E.removeEventListener(Kh,this.listenerPopstate),E.removeEventListener(Va,this.listenerHashchange),!(!this.pageviewTrackingConfig()&&!this.getConfig(hs)&&!this.mp.get_config("record_heatmap_data"))){this.listenerPopstate=function(){E.dispatchEvent(new Event(Rt))},this.listenerHashchange=function(){E.dispatchEvent(new Event(Rt))},E.addEventListener(Kh,this.listenerPopstate),E.addEventListener(Va,this.listenerHashchange);var t=E.history.pushState;typeof t=="function"&&(E.history.pushState=function(i,e,r){t.call(E.history,i,e,r),E.dispatchEvent(new Event(Rt))});var n=E.history.replaceState;typeof n=="function"&&(E.history.replaceState=function(i,e,r){n.call(E.history,i,e,r),E.dispatchEvent(new Event(Rt))})}},be.prototype._getClickTrackingConfig=function(t){var n=this.getConfig(t);return n?n===!0?{}:typeof n=="object"?n:{}:null},be.prototype._trackPageLeave=function(t,n,i){if(!this.hasTrackedScrollSession&&!(!this.getConfig(hs)&&!this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var e=Math.max(U.documentElement.clientHeight,E.innerHeight||0),r=Math.round(Math.max(this.maxScrollViewDepth-e,0)/(i-e)*100),s=Math.round(e/i*100);i<=e&&(r=100,s=100);var o=h.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:r,$fold_line_percentage:s,$scroll_height:i,$event_type:t.type,$current_url:n||h.info.currentUrl(),$viewportHeight:e,$viewportWidth:Math.max(U.documentElement.clientWidth,E.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},wn);this.mp.track(cC,o,{transport:"sendBeacon"})}},be.prototype._initScrollDepthTracking=function(){if(E.removeEventListener(ja,this.listenerScrollDepth),E.removeEventListener(rs,this.listenerScrollDepth),!!this.mp.get_config("record_heatmap_data")){re.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(U.documentElement.clientHeight,E.innerHeight||0);var t=function(){if(!this.currentUrlBlocked()){var i=Math.max(U.documentElement.clientHeight,E.innerHeight||0)+E.scrollY;i>this.maxScrollViewDepth&&(this.maxScrollViewDepth=i),this.previousScrollHeight=U.body.scrollHeight}}.bind(this),n=op(t);this.listenerScrollDepth=n.listener,E.addEventListener(n.eventType,this.listenerScrollDepth)}},be.prototype.initClickTracking=function(){E.removeEventListener(ct,this.listenerClick,!0),!(!this.getConfig(cs)&&!this.mp.get_config("record_heatmap_data"))&&(re.log("Initializing click tracking"),this.listenerClick=function(t){!this.getConfig(cs)&&!this.mp.is_recording_heatmap_data()||this.trackDomEvent(t,Rp)}.bind(this),E.addEventListener(ct,this.listenerClick,!0))},be.prototype.initDeadClickTracking=function(){var t=this._getClickTrackingConfig(ls);if(!t&&!this.mp.get_config("record_heatmap_data")){this.stopDeadClickTracking();return}re.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new tt(function(n){this.trackDomEvent(n,Ap)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(n){var i=this._getClickTrackingConfig(ls);if(!(!i&&!this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var e=i||{};e.timeout_ms||(e.timeout_ms=ZS),this._deadClickTracker.trackClick(n,e)}}.bind(this),E.addEventListener(ct,this.listenerDeadClick,!0))},be.prototype.initInputTracking=function(){E.removeEventListener(yn,this.listenerChange,!0),this.getConfig(iu)&&(re.log("Initializing input tracking"),this.listenerChange=function(t){this.getConfig(iu)&&this.trackDomEvent(t,oC)}.bind(this),E.addEventListener(yn,this.listenerChange,!0))},be.prototype.initPageviewTracking=function(){if(E.removeEventListener(Rt,this.listenerLocationchange),!(!this.pageviewTrackingConfig()&&!this.mp.get_config("record_heatmap_data"))){re.log("Initializing pageview tracking");var t="",n=!1;(this.pageviewTrackingConfig()||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()&&(n=this.mp.track_pageview(wn)),n&&(t=h.info.currentUrl()),this.listenerLocationchange=Wt(function(){if(!this.currentUrlBlocked()){var i=h.info.currentUrl(),e=!1,r=i.split("#")[0].split("?")[0]!==t.split("#")[0].split("?")[0],s=this.pageviewTrackingConfig();if(!s&&this.mp.is_recording_heatmap_data()&&(s=nu),s===nu?e=i!==t:s===nC?e=i.split("#")[0]!==t.split("#")[0]:s===iC&&(e=r),e){var o=this.mp.track_pageview(wn);o&&(t=i),r&&(this.lastScrollCheckpoint=0,re.log("Path change: re-initializing scroll depth checkpoints"))}}}.bind(this)),E.addEventListener(Rt,this.listenerLocationchange)}},be.prototype.initRageClickTracking=function(){E.removeEventListener(ct,this.listenerRageClick,!0);var t=this._getClickTrackingConfig(fs);!t&&!this.mp.get_config("record_heatmap_data")||(re.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new vp),this.listenerRageClick=function(n){var i=this._getClickTrackingConfig(fs);!i&&!this.mp.is_recording_heatmap_data()||this.currentUrlBlocked()||this._rageClickTracker.isRageClick(n,i)&&this.trackDomEvent(n,Mp)}.bind(this),E.addEventListener(ct,this.listenerRageClick,!0))},be.prototype.initScrollTracking=function(){if(E.removeEventListener(rs,this.listenerScroll),E.removeEventListener(ja,this.listenerScroll),!!this.getConfig(su)){re.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var t=function(){if(this.getConfig(su)&&!this.currentUrlBlocked()){var i=this.getConfig(Op),e=(this.getConfig(xp)||[]).slice().sort(function(l,f){return l-f}),r=E.scrollY,s=h.extend({$scroll_top:r},wn);try{var o=U.body.scrollHeight,a=Math.round(r/(o-E.innerHeight)*100);if(s.$scroll_height=o,s.$scroll_percentage=a,a>this.lastScrollCheckpoint)for(var u=0;u<e.length;u++){var c=e[u];a>=c&&this.lastScrollCheckpoint<c&&(s.$scroll_checkpoint=c,this.lastScrollCheckpoint=c,i=!0)}}catch(l){re.critical("Error while calculating scroll percentage",l)}i&&this.mp.track(aC,s)}}.bind(this),n=op(t);this.listenerScroll=n.listener,E.addEventListener(n.eventType,this.listenerScroll)}},be.prototype.initSubmitTracking=function(){E.removeEventListener(ns,this.listenerSubmit,!0),this.getConfig(ou)&&(re.log("Initializing submit tracking"),this.listenerSubmit=function(t){this.getConfig(ou)&&this.trackDomEvent(t,uC)}.bind(this),E.addEventListener(ns,this.listenerSubmit,!0))},be.prototype.initPageLeaveTracking=function(){if(U.removeEventListener(Jh,this.listenerPageLeaveVisibilitychange),E.removeEventListener(Rt,this.listenerPageLeaveLocationchange),E.removeEventListener(Yh,this.listenerPageLoad),!(!this.getConfig(hs)&&!this.mp.get_config("record_heatmap_data"))){re.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var t=h.info.currentUrl();this.listenerPageLoad=function(){this.previousScrollHeight=U.body.scrollHeight}.bind(this),E.addEventListener(Yh,this.listenerPageLoad),this.listenerPageLeaveLocationchange=Wt(function(n){if(!this.currentUrlBlocked()){var i=h.info.currentUrl(),e=i!==t;e&&(this._trackPageLeave(n,t,this.previousScrollHeight),t=i,this.maxScrollViewDepth=Math.max(U.documentElement.clientHeight,E.innerHeight||0),this.previousScrollHeight=U.body.scrollHeight,this.hasTrackedScrollSession=!1)}}.bind(this)),E.addEventListener(Rt,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=function(n){U.hidden&&this._trackPageLeave(n,t,this.previousScrollHeight)}.bind(this),U.addEventListener(Jh,this.listenerPageLeaveVisibilitychange)}},be.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(E.removeEventListener(ct,this.listenerDeadClick,!0),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},$a(be);var Tp=function(t,n){return E[Ve]&&typeof E[Ve].then=="function"||(E[Ve]=new Promise(function(i){t(n,i)}).then(function(){var i=E[Ve];if(i&&typeof i.then=="function")return i;throw new Error("targeting failed to load")}).catch(function(i){throw delete E[Ve],i})),E[Ve]},We=Xe("flags"),lC="mixpanelFlagsDb",Pp="mixpanelFlags",fC={version:1,storeNames:[Pp]},hC="persisted_variants_for_",$p=1440*60*1e3,At=Object.freeze({NETWORK_ONLY:"networkOnly",NETWORK_FIRST:"networkFirst",PERSISTENCE_UNTIL_NETWORK_SUCCESS:"persistenceUntilNetworkSuccess"}),pC=[At.NETWORK_ONLY,At.NETWORK_FIRST,At.PERSISTENCE_UNTIL_NETWORK_SUCCESS],jt=function(t,n,i){this.idb=new Ue(lC,Pp,fC),this.persistenceConfig=t,this.persistedVariantsKey=hC+n,this.isGloballyDisabled=i||function(){return!1}};jt.prototype.getPolicy=function(){return this.isGloballyDisabled()||!this._isConfigValid()?At.NETWORK_ONLY:this.persistenceConfig.variantLookupPolicy},jt.prototype.getTtlMs=function(){if(!this._isConfigValid())return $p;var t=this.persistenceConfig.persistenceTtlMs;return t==null?$p:t},jt.prototype._isConfigValid=function(){var t=this.persistenceConfig;return t?pC.indexOf(t.variantLookupPolicy)===-1?(We.error("Invalid variantLookupPolicy:",t.variantLookupPolicy),!1):t.persistenceTtlMs!==void 0&&t.persistenceTtlMs!==null&&t.persistenceTtlMs<=0?(We.error("If provided, persistenceTtlMs must be a positive number. Provided value:",t.persistenceTtlMs),!1):!0:!1},jt.prototype.loadFlagsFromStorage=function(t){var n=h.bind(function(){return this.clear().then(function(){return null}).catch(function(){return null})},this);if(this.getPolicy()===At.NETWORK_ONLY)return n();var i=this.getTtlMs();return this.idb.init().then(h.bind(function(){return this.idb.getItem(this.persistedVariantsKey)},this)).then(h.bind(function(e){if(!e)return We.log("No persisted variants found in IndexedDB"),null;if(i&&Date.now()-e.persistedAt>=i)return We.log("Persisted variants are expiring"),null;if(!t||e.distinctId!==t.distinct_id)return We.log("Persisted variants found, but for a different distinct_id so clearing."),n();var r=new Map;return h.each(e.flagVariants,function(s,o){r.set(o,{key:s.variant_key,value:s.variant_value,experiment_id:s.experiment_id,is_experiment_active:s.is_experiment_active,is_qa_tester:s.is_qa_tester,variant_source:"persistence",persisted_at_in_ms:e.persistedAt,ttl_in_ms:i})}),We.log("Loaded",r.size,"variants from IndexedDB for distinct_id",e.distinctId),{flags:r,pendingFirstTimeEvents:e.pendingFirstTimeEvents||{},persistedAtMs:e.persistedAt,ttlMs:i}},this)).catch(h.bind(function(e){return We.error("Failed to load persisted variants from IndexedDB, so clearing",e),n()},this))},jt.prototype.save=function(t,n,i){if(this.getPolicy()===At.NETWORK_ONLY)return Promise.resolve();var e={};n.forEach(function(s,o){e[o]={variant_key:s.key,variant_value:s.value,experiment_id:s.experiment_id,is_experiment_active:s.is_experiment_active,is_qa_tester:s.is_qa_tester}});var r={persistedAt:Date.now(),distinctId:t&&t.distinct_id,context:t,flagVariants:e,pendingFirstTimeEvents:i||{}};return this.idb.init().then(h.bind(function(){return this.idb.setItem(this.persistedVariantsKey,r)},this)).then(function(){We.log("Saved",n.size,"variants to IndexedDB for distinct_id",r.distinctId)}).catch(function(s){We.error("Failed to persist variants to IndexedDB:",s)})},jt.prototype.clear=function(){return this.isGloballyDisabled()?Promise.resolve():this.idb.init().then(h.bind(function(){return this.idb.removeItem(this.persistedVariantsKey)},this)).then(function(){We.log("Cleared persisted variants from IndexedDB")}).catch(function(t){We.error("Failed to clear persisted variants from IndexedDB:",t)})};var ee=Xe("flags"),ps="flags",ds="context",dC="persistence",au={};au[ds]={};var vC=function(t,n){return t+":"+n},gC=function(t){return t.split(":")[0]},Ht=function(t){return h.isObject(t)?h.extend({},t,{variant_source:"fallback"}):{value:t,variant_source:"fallback"}},R=function(t){this.fetch=E.fetch,this.getFullApiRoute=t.getFullApiRoute,this.getMpConfig=t.getConfigFunc,this.setMpConfig=t.setConfigFunc,this.getMpProperty=t.getPropertyFunc,this.track=t.trackingFunc,this.loadExtraBundle=t.loadExtraBundle||function(){},this.targetingSrc=t.targetingSrc||""};R.prototype.init=function(){if(!this.minApisSupported()){ee.critical("Feature Flags unavailable: missing minimum required APIs");return}return this.flags=null,this.trackedFeatures=new Set,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={},this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this.persistence=new jt(this.getConfig(dC),this.getMpConfig("token"),h.bind(function(){return this.getMpConfig("disable_persistence")},this)),this.persistenceLoadedPromise=this.persistence.loadFlagsFromStorage(this._buildContext()).then(h.bind(function(t){t&&(this.flags=t.flags,this.pendingFirstTimeEvents=t.pendingFirstTimeEvents,this._loadedPersistedAtMs=t.persistedAtMs,this._loadedTtlMs=t.ttlMs)},this)),this.persistenceLoadedPromise.then(h.bind(function(){return this.fetchFlags()},this)).catch(function(){ee.error("Error initializing feature flags")})},R.prototype._buildContext=function(){return h.extend({distinct_id:this.getMpProperty("distinct_id"),device_id:this.getMpProperty("$device_id")},this.getConfig(ds))},R.prototype.reset=function(){return this.persistence?(this.flags=null,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={},this.trackedFeatures=new Set,this.fetchPromise=null,this._fetchInProgressStartTime=null,this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this.persistence.clear().then(h.bind(function(){return this.fetchFlags()},this)).catch(function(){ee.error("Error during flags reset")})):Promise.resolve()},R.prototype.getFullConfig=function(){var t=this.getMpConfig(ps);return t?h.isObject(t)?h.extend({},au,t):au:{}},R.prototype.getConfig=function(t){return this.getFullConfig()[t]},R.prototype.isSystemEnabled=function(){return!!this.getMpConfig(ps)},R.prototype.updateContext=function(t,n){if(!this.isSystemEnabled())return ee.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var i=this.getMpConfig(ps);h.isObject(i)||(i={});var e=n&&n.replace?{}:this.getConfig(ds);i[ds]=h.extend({},e,t);var r={};return r[ps]=i,this.setMpConfig(r),this.fetchFlags().catch(function(){ee.error("Error fetching flags during updateContext")})},R.prototype.areFlagsReady=function(){return this.isSystemEnabled()||ee.error("Feature Flags not enabled"),!!this.flags},R.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var t=this._buildContext(),n=t.distinct_id,i=Dh();ee.log("Fetching flags for distinct ID: "+n);var e=new URLSearchParams;e.set("context",JSON.stringify(t)),e.set("token",this.getMpConfig("token")),e.set("mp_lib","web"),e.set("$lib_version",Pe.LIB_VERSION);var r=this.getFullApiRoute()+"?"+e.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(E,r,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:i}}).then(function(s){return this.markFetchComplete(),s.json()}.bind(this)).then(function(s){var o=s.flags;if(!o)throw new Error("No flags in API response");var a=new Map,u={};h.each(o,function(l,f){var p=!1,g=f+":";if(h.each(this.activatedFirstTimeEvents,function(y,d){d.startsWith(g)&&(p=!0)}),p){var v=this.flags&&this.flags.get(f);v&&a.set(f,v)}else a.set(f,{key:l.variant_key,value:l.variant_value,experiment_id:l.experiment_id,is_experiment_active:l.is_experiment_active,is_qa_tester:l.is_qa_tester,variant_source:"network"})},this);var c=s.pending_first_time_events;c&&c.length>0&&h.each(c,function(l){var f=l.flag_key,p=vC(f,l.first_time_event_hash);this.activatedFirstTimeEvents[p]||(u[p]={flag_key:f,flag_id:l.flag_id,project_id:l.project_id,first_time_event_hash:l.first_time_event_hash,event_name:l.event_name,property_filters:l.property_filters,pending_variant:l.pending_variant})},this),this.activatedFirstTimeEvents&&h.each(this.activatedFirstTimeEvents,function(l,f){var p=gC(f);l&&!a.has(p)&&this.flags&&this.flags.has(p)&&a.set(p,this.flags.get(p))},this),this.flags=a,this.trackedFeatures=new Set,this.pendingFirstTimeEvents=u,this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this._traceparent=i,this._loadTargetingIfNeeded(),this.persistence.save(t,this.flags,this.pendingFirstTimeEvents)}.bind(this)).catch(function(s){throw this._fetchInProgressStartTime&&this.markFetchComplete(),ee.error(s),s}.bind(this)),this.fetchPromise},R.prototype.loadFlags=function(){return this.isSystemEnabled()?this.trackedFeatures?this._fetchInProgressStartTime?this.fetchPromise:this.fetchFlags():(ee.error("loadFlags called before init"),Promise.resolve()):Promise.resolve()},R.prototype.markFetchComplete=function(){if(!this._fetchInProgressStartTime){ee.error("Fetch in progress started time not set, cannot mark fetch complete");return}this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null},R.prototype._loadTargetingIfNeeded=function(){var t=!1;h.each(this.pendingFirstTimeEvents,function(n){n.property_filters&&!h.isEmptyObject(n.property_filters)&&(t=!0)}),t&&this.getTargeting().then(function(){ee.log("targeting loaded for property filter evaluation")})},R.prototype.getTargeting=function(){return Tp(this.loadExtraBundle.bind(this),this.targetingSrc).catch(function(t){ee.error("Failed to load targeting: "+t)}.bind(this))},R.prototype.checkFirstTimeEvents=function(t,n){!this.pendingFirstTimeEvents||h.isEmptyObject(this.pendingFirstTimeEvents)||(E[Ve]&&h.isFunction(E[Ve].then)?E[Ve].then(function(i){this._processFirstTimeEventCheck(t,n,i)}.bind(this)).catch(function(){this._processFirstTimeEventCheck(t,n,null)}.bind(this)):this._processFirstTimeEventCheck(t,n,null))},R.prototype._processFirstTimeEventCheck=function(t,n,i){h.each(this.pendingFirstTimeEvents,function(e,r){if(!this.activatedFirstTimeEvents[r]){var s=e.flag_key,o;if(!i&&e.property_filters&&!h.isEmptyObject(e.property_filters)){ee.warn('Skipping event check for "'+s+'" - property filters require targeting library');return}if(!i)o={matches:t===e.event_name,error:null};else{var a={event_name:e.event_name,property_filters:e.property_filters};o=i.eventMatchesCriteria(t,n,a)}if(o.error){ee.error('Error checking first-time event for flag "'+s+'": '+o.error);return}if(o.matches){ee.log('First-time event matched for flag "'+s+'": '+t);var u={key:e.pending_variant.variant_key,value:e.pending_variant.variant_value,experiment_id:e.pending_variant.experiment_id,is_experiment_active:e.pending_variant.is_experiment_active};this.flags.set(s,u),this.trackedFeatures.delete(s),this.activatedFirstTimeEvents[r]=!0,this.recordFirstTimeEvent(e.flag_id,e.project_id,e.first_time_event_hash)}}},this)},R.prototype.getFirstTimeEventApiRoute=function(t){var n=this.getFullApiRoute().replace(/\/$/,"");return n+"/"+t+"/first-time-events"},R.prototype.recordFirstTimeEvent=function(t,n,i){var e=this.getMpProperty("distinct_id"),r=Dh(),s=new URLSearchParams;s.set("mp_lib","web"),s.set("$lib_version",Pe.LIB_VERSION);var o=this.getFirstTimeEventApiRoute(t)+"?"+s.toString(),a={distinct_id:e,project_id:n,first_time_event_hash:i};ee.log("Recording first-time event for flag: "+t),this.fetch.call(E,o,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:r},body:JSON.stringify(a)}).catch(function(u){ee.error("Failed to record first-time event for flag "+t+": "+u)})},R.prototype.getVariant=function(t,n){if(!this.persistenceLoadedPromise)return new Promise(function(e){ee.critical("Feature Flags not initialized"),e(Ht(n))});var i=this.persistence.getPolicy();return this.persistenceLoadedPromise.then(h.bind(function(){if(i===At.PERSISTENCE_UNTIL_NETWORK_SUCCESS)return this.areFlagsReady()&&!this._loadedPersistenceIsStale()?this.getVariantSync(t,n):this.fetchPromise?this.fetchPromise.then(h.bind(function(){return this.getVariantSync(t,n)},this)).catch(function(r){return ee.error(r),Ht(n)}):Ht(n);var e=h.bind(function(){return this.getVariantSync(t,n)},this);return this.fetchPromise?this.fetchPromise.then(e).catch(e):Ht(n)},this))},R.prototype._loadedPersistenceIsStale=function(){return!this._loadedPersistedAtMs||!this._loadedTtlMs?!1:Date.now()-this._loadedPersistedAtMs>=this._loadedTtlMs},R.prototype.getVariantSync=function(t,n){if(this._loadedPersistenceIsStale())return ee.log('Loaded persisted variants are past TTL so returning fallback for "'+t+'"'),Ht(n);if(!this.areFlagsReady())return ee.log("Flags not loaded yet"),Ht(n);var i=this.flags.get(t);return i?(this.trackFeatureCheck(t,i),i):(ee.log('No flag found: "'+t+'"'),Ht(n))},R.prototype.getAllVariants=function(){if(!this.persistenceLoadedPromise)return ee.critical("Feature Flags not initialized"),Promise.resolve(new Map);var t=this.persistence.getPolicy();return this.persistenceLoadedPromise.then(h.bind(function(){if(t===At.PERSISTENCE_UNTIL_NETWORK_SUCCESS)return this.areFlagsReady()&&!this._loadedPersistenceIsStale()?this.getAllVariantsSync():this.fetchPromise?this.fetchPromise.then(h.bind(function(){return this.getAllVariantsSync()},this)).catch(function(i){return ee.error(i),new Map}):new Map;var n=h.bind(this.getAllVariantsSync,this);return this.fetchPromise?this.fetchPromise.then(n).catch(n):new Map},this))},R.prototype.getAllVariantsSync=function(){return this._loadedPersistenceIsStale()?(ee.log("Loaded persisted variants are past TTL so returning empty Map"),new Map):this.flags||new Map},R.prototype.getVariantValue=function(t,n){return this.getVariant(t,{value:n}).then(function(i){return i.value}).catch(function(i){return ee.error(i),n})},R.prototype.getFeatureData=function(t,n){return ee.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(t,n)},R.prototype.getVariantValueSync=function(t,n){return this.getVariantSync(t,{value:n}).value},R.prototype.isEnabled=function(t,n){return this.getVariantValue(t).then(function(){return this.isEnabledSync(t,n)}.bind(this)).catch(function(i){return ee.error(i),n})},R.prototype.isEnabledSync=function(t,n){n=n||!1;var i=this.getVariantValueSync(t,n);return i!==!0&&i!==!1&&(ee.error('Feature flag "'+t+'" value: '+i+" is not a boolean; returning fallback value: "+n),i=n),i};function Mt(t){return t!=null}R.prototype.trackFeatureCheck=function(t,n){if(!this.trackedFeatures.has(t)){this.trackedFeatures.add(t);var i={"Experiment name":t,"Variant name":n.key,$experiment_type:"feature_flag","Variant fetch start time":Mt(this._fetchStartTime)?new Date(this._fetchStartTime).toISOString():null,"Variant fetch complete time":Mt(this._fetchCompleteTime)?new Date(this._fetchCompleteTime).toISOString():null,"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};Mt(n.experiment_id)&&(i.$experiment_id=n.experiment_id),Mt(n.is_experiment_active)&&(i.$is_experiment_active=n.is_experiment_active),Mt(n.is_qa_tester)&&(i.$is_qa_tester=n.is_qa_tester),Mt(n.variant_source)&&(i.$variant_source=n.variant_source),Mt(n.persisted_at_in_ms)&&(i.$persisted_at_in_ms=n.persisted_at_in_ms),Mt(n.ttl_in_ms)&&(i.$ttl_in_ms=n.ttl_in_ms),this.track("$experiment_started",i)}},R.prototype.whenReady=function(){return this.fetchPromise?this.fetchPromise:Promise.resolve()},R.prototype.minApisSupported=function(){return!!this.fetch&&typeof Promise!="undefined"&&typeof Map!="undefined"&&typeof Set!="undefined"},$a(R),R.prototype.are_flags_ready=R.prototype.areFlagsReady,R.prototype.get_variant=R.prototype.getVariant,R.prototype.get_variant_sync=R.prototype.getVariantSync,R.prototype.get_all_variants=R.prototype.getAllVariants,R.prototype.get_all_variants_sync=R.prototype.getAllVariantsSync,R.prototype.get_variant_value=R.prototype.getVariantValue,R.prototype.get_variant_value_sync=R.prototype.getVariantValueSync,R.prototype.is_enabled=R.prototype.isEnabled,R.prototype.is_enabled_sync=R.prototype.isEnabledSync,R.prototype.load_flags=R.prototype.loadFlags,R.prototype.update_context=R.prototype.updateContext,R.prototype.when_ready=R.prototype.whenReady,R.prototype.get_feature_data=R.prototype.getFeatureData,R.prototype.getTargeting=R.prototype.getTargeting;var mC=Xe("recorder"),Np="mp_iframe_handshake_request",Lp="mp_iframe_handshake_response",Oe=function(t){this.mixpanelInstance=t.mixpanelInstance,this.getMpConfig=t.getConfigFunc,this.getTabId=t.getTabIdFunc,this.reportError=t.reportErrorFunc,this.getDistinctId=t.getDistinctIdFunc,this.loadExtraBundle=t.loadExtraBundle,this.recorderSrc=t.recorderSrc,this.targetingSrc=t.targetingSrc,this.libBasePath=t.libBasePath,this._recorder=null,this._parentReplayId=null,this._parentFrameRetryInterval=null};Oe.prototype.shouldLoadRecorder=function(){if(this.getMpConfig("disable_persistence"))return N.log("Load recorder check skipped due to disable_persistence config"),F.resolve(!1);var t=new Ue(Fa,Ua,Ba),n=this.getTabId();return t.init().then(function(){return t.getAll()}).then(function(i){for(var e=0;e<i.length;e++)if(Ga(i[e])||i[e].tabId===n)return!0;return!1}).catch(h.bind(function(i){return this.reportError("Error checking recording registry",i),!1},this))},Oe.prototype.checkAndStartSessionRecording=function(t,n){if(!E.MutationObserver)return N.critical("Browser does not support MutationObserver; skipping session recording"),F.resolve();var i=h.bind(function(a){return new F(h.bind(function(u){var c=Wt(h.bind(function(){this._recorder=this._recorder||new E[Is](this.mixpanelInstance),this._recorder.resumeRecording(a),u()},this));if(h.isUndefined(E[Is])){var l=this.recorderSrc||this.libBasePath+Zp;this.loadExtraBundle(l,c)}else c()},this))},this),e=Hh(this.getMpConfig("record_allowed_iframe_origins"),mC),r=e.length>0;if(r&&(this._setupParentFrameListener(e),E.parent!==E))return this._setupChildFrameListener(e,i),this._sendParentFrameRequestWithRetry(e),F.resolve();var s=h.isUndefined(n)?this.getMpConfig("record_sessions_percent"):n,o=s>0&&Math.random()*100<=s;return t||o?i(!0):this.shouldLoadRecorder().then(h.bind(function(a){return a?i(!1):F.resolve()},this))},Oe.prototype.isRecording=function(){if(!this._recorder||!h.isFunction(this._recorder.isRecording))return!1;try{return this._recorder.isRecording()}catch(t){return this.reportError("Error checking if recording is active",t),!1}},Oe.prototype.startRecordingOnEvent=function(t,n){var i=this.isRecording(),e=this.getMpConfig("recording_event_triggers");if(!i&&e){var r=e[t];if(r&&typeof r.percentage=="number"){var s=r.percentage,o=r.property_filters;if(o&&!h.isEmptyObject(o)){var a=this.targetingSrc||this.libBasePath+Cu;Tp(this.loadExtraBundle,a).then(function(u){try{var c=u.eventMatchesCriteria(t,n,{event_name:t,property_filters:o});c.matches&&this.checkAndStartSessionRecording(!1,s)}catch(l){N.critical("Could not parse recording event trigger properties logic:",l)}}.bind(this)).catch(function(u){N.critical("Failed to load targeting library:",u)})}else this.checkAndStartSessionRecording(!1,s)}}},Oe.prototype.stopSessionRecording=function(){return this._recorder?this._recorder.stopRecording():F.resolve()},Oe.prototype.pauseSessionRecording=function(){return this._recorder?this._recorder.pauseRecording():F.resolve()},Oe.prototype.resumeSessionRecording=function(){return this._recorder?this._recorder.resumeRecording():F.resolve()},Oe.prototype.isRecordingHeatmapData=function(){return this.getSessionReplayId()&&this.getMpConfig("record_heatmap_data")},Oe.prototype.getSessionRecordingProperties=function(){var t={},n=this.getSessionReplayId();return n&&(t.$mp_replay_id=n),t},Oe.prototype.getSessionReplayUrl=function(){var t=null,n=this.getSessionReplayId();if(n){var i=h.HTTPBuildQuery({replay_id:n,distinct_id:this.getDistinctId(),token:this.getMpConfig("token")});t="https://mixpanel.com/projects/replay-redirect?"+i}return t},Oe.prototype.getSessionReplayId=function(){if(this._parentReplayId)return this._parentReplayId;var t=null;return this._recorder&&(t=this._recorder.replayId),t||null},Oe.prototype.getRecorder=function(){return this._recorder},Oe.prototype._setupChildFrameListener=function(t,n){if(!this._childFrameMessageHandler){var i=this;this._childFrameMessageHandler=function(e){if(t.indexOf(e.origin)!==-1){var r=e.data;r&&r.type===Lp&&r.token===i.getMpConfig("token")&&r.replayId&&(i._parentReplayId=r.replayId,r.distinctId&&i.mixpanelInstance.identify(r.distinctId),i._parentFrameRetryActive=!1,E.removeEventListener("message",i._childFrameMessageHandler),i._childFrameMessageHandler=null,n(!0))}},E.addEventListener("message",this._childFrameMessageHandler)}},Oe.prototype._sendParentFrameRequest=function(t){var n={};n.type=Np,n.token=this.getMpConfig("token");for(var i=0;i<t.length;i++)try{E.parent.postMessage(n,t[i])}catch(e){}},Oe.prototype._sendParentFrameRequestWithRetry=function(t){var n=this,i=10,e=0,r=50;this._parentFrameRetryActive=!0,this._sendParentFrameRequest(t);function s(){setTimeout(function(){!n._parentFrameRetryActive||n._parentReplayId||++e>=i||(n._sendParentFrameRequest(t),r*=2,s())},r)}s()},Oe.prototype._setupParentFrameListener=function(t){if(!this._parentFrameMessageHandler){var n=this;this._parentFrameMessageHandler=function(i){if(t.indexOf(i.origin)!==-1){var e=i.data;if(e&&e.type===Np&&e.token===n.getMpConfig("token")){var r=n.getSessionReplayId();if(r){var s={};s.type=Lp,s.token=n.getMpConfig("token"),s.replayId=r,s.distinctId=n.getDistinctId(),i.source.postMessage(s,i.origin)}}}},E.addEventListener("message",this._parentFrameMessageHandler)}},$a(Oe);var ft=function(){};ft.prototype.create_properties=function(){},ft.prototype.event_handler=function(){},ft.prototype.after_track_handler=function(){},ft.prototype.init=function(t){return this.mp=t,this},ft.prototype.track=function(t,n,i,e){var r=this,s=h.dom_query(t);if(s.length===0){N.error("The DOM query ("+t+") returned 0 elements");return}return h.each(s,function(o){h.register_event(o,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(e,c,u,!0),l),r.mp.track(n,c,r.track_callback(e,c,u))})},this),!0},ft.prototype.track_callback=function(t,n,i,e){e=e||!1;var r=this;return function(){i.callback_fired||(i.callback_fired=!0,!(t&&t(e,n)===!1)&&r.after_track_handler(n,i,e))}},ft.prototype.create_properties=function(t,n){var i;return typeof t=="function"?i=t(n):i=h.extend({},t),i};var Rr=function(){this.override_event="click"};h.inherit(Rr,ft),Rr.prototype.create_properties=function(t,n){var i=Rr.superclass.create_properties.apply(this,arguments);return n.href&&(i.url=n.href),i},Rr.prototype.event_handler=function(t,n,i){i.new_tab=t.which===2||t.metaKey||t.ctrlKey||n.target==="_blank",i.href=n.href,i.new_tab||t.preventDefault()},Rr.prototype.after_track_handler=function(t,n){n.new_tab||setTimeout(function(){window.location=n.href},0)};var vs=function(){this.override_event="submit"};h.inherit(vs,ft),vs.prototype.event_handler=function(t,n,i){i.element=n,t.preventDefault()},vs.prototype.after_track_handler=function(t,n){setTimeout(function(){n.element.submit()},0)};var Tt="$set",Ar="$set_once",Ge="$unset",Yt="$add",rt="$append",Kt="$union",ht="$remove",yC="$delete",Dp={set_action:function(t,n){var i={},e={};return h.isObject(t)?h.each(t,function(r,s){this._is_reserved_property(s)||(e[s]=r)},this):e[t]=n,i[Tt]=e,i},unset_action:function(t){var n={},i=[];return h.isArray(t)||(t=[t]),h.each(t,function(e){this._is_reserved_property(e)||i.push(e)},this),n[Ge]=i,n},set_once_action:function(t,n){var i={},e={};return h.isObject(t)?h.each(t,function(r,s){this._is_reserved_property(s)||(e[s]=r)},this):e[t]=n,i[Ar]=e,i},union_action:function(t,n){var i={},e={};return h.isObject(t)?h.each(t,function(r,s){this._is_reserved_property(s)||(e[s]=h.isArray(r)?r:[r])},this):e[t]=h.isArray(n)?n:[n],i[Kt]=e,i},append_action:function(t,n){var i={},e={};return h.isObject(t)?h.each(t,function(r,s){this._is_reserved_property(s)||(e[s]=r)},this):e[t]=n,i[rt]=e,i},remove_action:function(t,n){var i={},e={};return h.isObject(t)?h.each(t,function(r,s){this._is_reserved_property(s)||(e[s]=r)},this):e[t]=n,i[ht]=e,i},delete_action:function(){var t={};return t[yC]="",t}},ue=function(){};h.extend(ue.prototype,Dp),ue.prototype._init=function(t,n,i){this._mixpanel=t,this._group_key=n,this._group_id=i},ue.prototype.set=Ir(function(t,n,i){var e=this.set_action(t,n);return h.isObject(t)&&(i=n),this._send_request(e,i)}),ue.prototype.set_once=Ir(function(t,n,i){var e=this.set_once_action(t,n);return h.isObject(t)&&(i=n),this._send_request(e,i)}),ue.prototype.unset=Ir(function(t,n){var i=this.unset_action(t);return this._send_request(i,n)}),ue.prototype.union=Ir(function(t,n,i){h.isObject(t)&&(i=n);var e=this.union_action(t,n);return this._send_request(e,i)}),ue.prototype.delete=Ir(function(t){var n=this.delete_action();return this._send_request(n,t)}),ue.prototype.remove=Ir(function(t,n,i){var e=this.remove_action(t,n);return this._send_request(e,i)}),ue.prototype._send_request=function(t,n){t.$group_key=this._group_key,t.$group_id=this._group_id,t.$token=this._get_config("token");var i=h.encodeDates(t);return this._mixpanel._track_or_batch({type:"groups",data:i,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},n)},ue.prototype._is_reserved_property=function(t){return t==="$group_key"||t==="$group_id"},ue.prototype._get_config=function(t){return this._mixpanel.get_config(t)},ue.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},ue.prototype.remove=ue.prototype.remove,ue.prototype.set=ue.prototype.set,ue.prototype.set_once=ue.prototype.set_once,ue.prototype.union=ue.prototype.union,ue.prototype.unset=ue.prototype.unset,ue.prototype.toString=ue.prototype.toString;var B=function(){};h.extend(B.prototype,Dp),B.prototype._init=function(t){this._mixpanel=t},B.prototype.set=kt(function(t,n,i){var e=this.set_action(t,n);return h.isObject(t)&&(i=n),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),e[Tt]=h.extend({},h.info.people_properties(),e[Tt]),this._send_request(e,i)}),B.prototype.set_once=kt(function(t,n,i){var e=this.set_once_action(t,n);return h.isObject(t)&&(i=n),this._send_request(e,i)}),B.prototype.unset=kt(function(t,n){var i=this.unset_action(t);return this._send_request(i,n)}),B.prototype.increment=kt(function(t,n,i){var e={},r={};return h.isObject(t)?(h.each(t,function(s,o){if(!this._is_reserved_property(o))if(isNaN(parseFloat(s))){N.error("Invalid increment value passed to mixpanel.people.increment - must be a number");return}else r[o]=s},this),i=n):(h.isUndefined(n)&&(n=1),r[t]=n),e[Yt]=r,this._send_request(e,i)}),B.prototype.append=kt(function(t,n,i){h.isObject(t)&&(i=n);var e=this.append_action(t,n);return this._send_request(e,i)}),B.prototype.remove=kt(function(t,n,i){h.isObject(t)&&(i=n);var e=this.remove_action(t,n);return this._send_request(e,i)}),B.prototype.union=kt(function(t,n,i){h.isObject(t)&&(i=n);var e=this.union_action(t,n);return this._send_request(e,i)}),B.prototype.track_charge=kt(function(){N.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),B.prototype.clear_charges=function(t){return this.set("$transactions",[],t)},B.prototype.delete_user=function(){if(!this._identify_called()){N.error("mixpanel.people.delete_user() requires you to call identify() first");return}var t={$delete:this._mixpanel.get_distinct_id()};return this._send_request(t)},B.prototype.toString=function(){return this._mixpanel.toString()+".people"},B.prototype._send_request=function(t,n){t.$token=this._get_config("token"),t.$distinct_id=this._mixpanel.get_distinct_id();var i=this._mixpanel.get_property("$device_id"),e=this._mixpanel.get_property("$user_id"),r=this._mixpanel.get_property("$had_persisted_distinct_id");i&&(t.$device_id=i),e&&(t.$user_id=e),r&&(t.$had_persisted_distinct_id=r);var s=h.encodeDates(t);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:s,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},n):(this._enqueue(t),h.isUndefined(n)||(this._get_config("verbose")?n({status:-1,error:null}):n(-1)),h.truncate(s,255))},B.prototype._get_config=function(t){return this._mixpanel.get_config(t)},B.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0},B.prototype._enqueue=function(t){Tt in t?this._mixpanel.persistence._add_to_people_queue(Tt,t):Ar in t?this._mixpanel.persistence._add_to_people_queue(Ar,t):Ge in t?this._mixpanel.persistence._add_to_people_queue(Ge,t):Yt in t?this._mixpanel.persistence._add_to_people_queue(Yt,t):rt in t?this._mixpanel.persistence._add_to_people_queue(rt,t):ht in t?this._mixpanel.persistence._add_to_people_queue(ht,t):Kt in t?this._mixpanel.persistence._add_to_people_queue(Kt,t):N.error("Invalid call to _enqueue():",t)},B.prototype._flush_one_queue=function(t,n,i,e){var r=this,s=h.extend({},this._mixpanel.persistence.load_queue(t)),o=s;!h.isUndefined(s)&&h.isObject(s)&&!h.isEmptyObject(s)&&(r._mixpanel.persistence._pop_from_people_queue(t,s),r._mixpanel.persistence.save(),e&&(o=e(s)),n.call(r,o,function(a,u){a===0&&r._mixpanel.persistence._add_to_people_queue(t,s),h.isUndefined(i)||i(a,u)}))},B.prototype._flush=function(t,n,i,e,r,s,o){var a=this;this._flush_one_queue(Tt,this.set,t),this._flush_one_queue(Ar,this.set_once,e),this._flush_one_queue(Ge,this.unset,s,function(d){return h.keys(d)}),this._flush_one_queue(Yt,this.increment,n),this._flush_one_queue(Kt,this.union,r);var u=this._mixpanel.persistence.load_queue(rt);if(!h.isUndefined(u)&&h.isArray(u)&&u.length)for(var c,l=function(d,m){d===0&&a._mixpanel.persistence._add_to_people_queue(rt,c),h.isUndefined(i)||i(d,m)},f=u.length-1;f>=0;f--)u=this._mixpanel.persistence.load_queue(rt),c=u.pop(),a._mixpanel.persistence.save(),h.isEmptyObject(c)||a.append(c,l);var p=this._mixpanel.persistence.load_queue(ht);if(!h.isUndefined(p)&&h.isArray(p)&&p.length)for(var g,v=function(d,m){d===0&&a._mixpanel.persistence._add_to_people_queue(ht,g),h.isUndefined(o)||o(d,m)},y=p.length-1;y>=0;y--)p=this._mixpanel.persistence.load_queue(ht),g=p.pop(),a._mixpanel.persistence.save(),h.isEmptyObject(g)||a.remove(g,v)},B.prototype._is_reserved_property=function(t){return t==="$distinct_id"||t==="$token"||t==="$device_id"||t==="$user_id"||t==="$had_persisted_distinct_id"},B.prototype.set=B.prototype.set,B.prototype.set_once=B.prototype.set_once,B.prototype.unset=B.prototype.unset,B.prototype.increment=B.prototype.increment,B.prototype.append=B.prototype.append,B.prototype.remove=B.prototype.remove,B.prototype.union=B.prototype.union,B.prototype.track_charge=B.prototype.track_charge,B.prototype.clear_charges=B.prototype.clear_charges,B.prototype.delete_user=B.prototype.delete_user,B.prototype.toString=B.prototype.toString;var uu="__mps",cu="__mpso",lu="__mpus",fu="__mpa",hu="__mpap",pu="__mpr",du="__mpu",Fp="$people_distinct_id",gs="__alias",bn="__timers",_C=[uu,cu,lu,fu,hu,pu,du,Fp,gs,bn],q=function(t){this.props={},this.campaign_params_saved=!1,t.persistence_name?this.name="mp_"+t.persistence_name:this.name="mp_"+t.token+"_mixpanel";var n=t.persistence;n!=="cookie"&&n!=="localStorage"&&(N.critical("Unknown persistence type "+n+"; falling back to cookie"),n=t.persistence="cookie"),n==="localStorage"&&h.localStorage.is_supported()?this.storage=h.localStorage:this.storage=h.cookie,this.load(),this.update_config(t),this.upgrade(),this.save()};q.prototype.properties=function(){var t={};return this.load(),h.each(this.props,function(n,i){h.include(_C,i)||(t[i]=n)}),t},q.prototype.load=function(){if(!this.disabled){var t=this.storage.parse(this.name);t&&(this.props=h.extend({},t))}},q.prototype.upgrade=function(){var t,n;this.storage===h.localStorage?(t=h.cookie.parse(this.name),h.cookie.remove(this.name),h.cookie.remove(this.name,!0),t&&this.register_once(t)):this.storage===h.cookie&&(n=h.localStorage.parse(this.name),h.localStorage.remove(this.name),n&&this.register_once(n))},q.prototype.save=function(){this.disabled||this.storage.set(this.name,Er(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},q.prototype.load_prop=function(t){return this.load(),this.props[t]},q.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},q.prototype.clear=function(){this.remove(),this.props={}},q.prototype.register_once=function(t,n,i){return h.isObject(t)?(typeof n=="undefined"&&(n="None"),this.expire_days=typeof i=="undefined"?this.default_expiry:i,this.load(),h.each(t,function(e,r){(!this.props.hasOwnProperty(r)||this.props[r]===n)&&(this.props[r]=e)},this),this.save(),!0):!1},q.prototype.register=function(t,n){return h.isObject(t)?(this.expire_days=typeof n=="undefined"?this.default_expiry:n,this.load(),h.extend(this.props,t),this.save(),!0):!1},q.prototype.unregister=function(t){this.load(),t in this.props&&(delete this.props[t],this.save())},q.prototype.update_search_keyword=function(t){this.register(h.info.searchInfo(t))},q.prototype.update_referrer_info=function(t){this.register_once({$initial_referrer:t||"$direct",$initial_referring_domain:h.info.referringDomain(t)||"$direct"},"")},q.prototype.get_referrer_info=function(){return h.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},q.prototype.update_config=function(t){this.default_expiry=this.expire_days=t.cookie_expiration,this.set_disabled(t.disable_persistence),this.set_cookie_domain(t.cookie_domain),this.set_cross_site(t.cross_site_cookie),this.set_cross_subdomain(t.cross_subdomain_cookie),this.set_secure(t.secure_cookie)},q.prototype.set_disabled=function(t){this.disabled=t,this.disabled?this.remove():this.save()},q.prototype.set_cookie_domain=function(t){t!==this.cookie_domain&&(this.remove(),this.cookie_domain=t,this.save())},q.prototype.set_cross_site=function(t){t!==this.cross_site&&(this.cross_site=t,this.remove(),this.save())},q.prototype.set_cross_subdomain=function(t){t!==this.cross_subdomain&&(this.cross_subdomain=t,this.remove(),this.save())},q.prototype.get_cross_subdomain=function(){return this.cross_subdomain},q.prototype.set_secure=function(t){t!==this.secure&&(this.secure=!!t,this.remove(),this.save())},q.prototype._add_to_people_queue=function(t,n){var i=this._get_queue_key(t),e=n[t],r=this._get_or_create_queue(Tt),s=this._get_or_create_queue(Ar),o=this._get_or_create_queue(Ge),a=this._get_or_create_queue(Yt),u=this._get_or_create_queue(Kt),c=this._get_or_create_queue(ht,[]),l=this._get_or_create_queue(rt,[]);i===uu?(h.extend(r,e),this._pop_from_people_queue(Yt,e),this._pop_from_people_queue(Kt,e),this._pop_from_people_queue(Ge,e)):i===cu?(h.each(e,function(f,p){p in s||(s[p]=f)}),this._pop_from_people_queue(Ge,e)):i===lu?h.each(e,function(f){h.each([r,s,a,u],function(p){f in p&&delete p[f]}),h.each(l,function(p){f in p&&delete p[f]}),o[f]=!0}):i===fu?(h.each(e,function(f,p){p in r?r[p]+=f:(p in a||(a[p]=0),a[p]+=f)},this),this._pop_from_people_queue(Ge,e)):i===du?(h.each(e,function(f,p){h.isArray(f)&&(p in u||(u[p]=[]),h.each(f,function(g){h.include(u[p],g)||u[p].push(g)}))}),this._pop_from_people_queue(Ge,e)):i===pu?(c.push(e),this._pop_from_people_queue(rt,e)):i===hu&&(l.push(e),this._pop_from_people_queue(Ge,e)),N.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),N.log(n),this.save()},q.prototype._pop_from_people_queue=function(t,n){var i=this.props[this._get_queue_key(t)];h.isUndefined(i)||h.each(n,function(e,r){t===rt||t===ht?h.each(i,function(s){s[r]===e&&delete s[r]}):delete i[r]},this)},q.prototype.load_queue=function(t){return this.load_prop(this._get_queue_key(t))},q.prototype._get_queue_key=function(t){if(t===Tt)return uu;if(t===Ar)return cu;if(t===Ge)return lu;if(t===Yt)return fu;if(t===rt)return hu;if(t===ht)return pu;if(t===Kt)return du;N.error("Invalid queue:",t)},q.prototype._get_or_create_queue=function(t,n){var i=this._get_queue_key(t);return n=h.isUndefined(n)?{}:n,this.props[i]||(this.props[i]=n)},q.prototype.set_event_timer=function(t,n){var i=this.load_prop(bn)||{};i[t]=n,this.props[bn]=i,this.save()},q.prototype.remove_event_timer=function(t){var n=this.load_prop(bn)||{},i=n[t];return h.isUndefined(i)||(delete this.props[bn][t],this.save()),i};var ms,vu=function(t,n){throw new Error(t+" not available in this build.")},Se,Up=0,Bp=1,Le="mixpanel",zp="base64",wC="json",gu="$device:",bC="strict",SC="fallback",CC="disabled",Mr=E.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,qp=!Mr&&Je.indexOf("MSIE")===-1&&Je.indexOf("Mozilla")===-1,ys=null;ut.sendBeacon&&(ys=function(){return ut.sendBeacon.apply(ut,arguments)});var Wp={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},mu={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:Wp,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:zp,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Ot,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Ot,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_allowed_iframe_origins:[],record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,recording_event_triggers:{},record_idle_timeout_ms:1800*1e3,record_mask_inputs:!0,record_max_ms:pn,record_min_ms:0,record_network:!1,record_network_options:{},record_sessions_percent:0,recorder_src:null,targeting_src:null,lib_base_path:"https://cdn.mxpnl.com/libs/",remote_settings_mode:CC},Gp=!1,w=function(){},_s=function(t,n,i){var e,r=i===Le?Se:Se[i];if(r&&ms===Up)e=r;else{if(r&&!h.isArray(r)){N.error("You have already initialized "+i);return}e=new w}if(e._cached_groups={},e._init(t,n,i),e.people=new B,e.people._init(e),!e.get_config("skip_first_touch_marketing")){var s=h.info.campaignParams(null),o={},a=!1;h.each(s,function(c,l){o["initial_"+l]=c,c&&(a=!0)}),a&&e.people.set_once(o)}Pe.DEBUG=Pe.DEBUG||e.get_config("debug");var u=ms===Up?"module":"snippet";return E.dispatchEvent(new E.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:e,source:u,token:t,name:i,info:h.info}})),!h.isUndefined(r)&&h.isArray(r)&&(e._execute_array.call(e.people,r.people),e._execute_array(r)),e};w.prototype.init=function(t,n,i){if(h.isUndefined(i)){this.report_error("You must name your new library: init(token, config, name)");return}if(i===Le){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var e=_s(t,n,i);return Se[i]=e,e._loaded(),e},w.prototype._init=function(t,n,i){n=n||{},this.__loaded=!0,this.config={};var e={};if(!("api_payload_format"in n)){var r=n.api_host||mu.api_host;r.match(/\.mixpanel\.com/)&&(e.api_payload_format=wC)}if(this.hooks={},this.set_config(h.extend({},mu,e,n,{name:i,token:t,callback_fn:(i===Le?i:Le+"."+i)+"._jsc"})),this.recorderManager=new Oe({mixpanelInstance:this,getConfigFunc:h.bind(this.get_config,this),setConfigFunc:h.bind(this.set_config,this),getTabIdFunc:h.bind(this.get_tab_id,this),reportErrorFunc:h.bind(this.report_error,this),getDistinctIdFunc:h.bind(this.get_distinct_id,this),recorderSrc:this.get_config("recorder_src"),targetingSrc:this.get_config("targeting_src"),libBasePath:this.get_config("lib_base_path"),loadExtraBundle:vu}),this._jsc=Ot,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this._remote_settings_strict_disabled=!1,this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests){if(!h.localStorage.is_supported(!0)||!Mr)this._batch_requests=!1,N.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),h.each(this.get_batcher_configs(),function(u){N.log("Clearing batch queue "+u.queue_key),h.localStorage.remove(u.queue_key)});else if(this.init_batchers(),ys&&E.addEventListener){var s=h.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);E.addEventListener("pagehide",function(u){u.persisted&&s()}),E.addEventListener("visibilitychange",function(){U.visibilityState==="hidden"&&s()})}}this.persistence=this.cookie=new q(this.config),this.unpersisted_superprops={},this._gdpr_init();var o=h.UUID();this.get_distinct_id()||this.register_once({distinct_id:gu+o,$device_id:o},""),this.flags=new R({getFullApiRoute:h.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:h.bind(this.get_config,this),setConfigFunc:h.bind(this.set_config,this),getPropertyFunc:h.bind(this.get_property,this),trackingFunc:h.bind(this.track,this),loadExtraBundle:vu,targetingSrc:this.get_config("targeting_src")||this.get_config("lib_base_path")+Cu}),this.flags.init(),this.flags=this.flags,this._init_tab_id();var a=this.get_config("remote_settings_mode");a===bC||a===SC?this.__session_recording_init_promise=this._fetch_remote_settings(a).then(h.bind(function(){return this._check_and_start_session_recording()},this)):this.__session_recording_init_promise=this._check_and_start_session_recording(),this.autocapture=new be(this),this.autocapture.init()},w.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))N.log("Tab ID initialization skipped due to disable_persistence config");else if(h.sessionStorage.is_supported())try{var t=this.get_config("name")+"_"+this.get_config("token"),n="mp_tab_id_"+t,i="mp_gen_new_tab_id_"+t;(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(e){this.report_error("Error initializing tab id",e)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},w.prototype.get_tab_id=function(){return this.tab_id||null},w.prototype._check_and_start_session_recording=xt(function(t){return this.recorderManager.checkAndStartSessionRecording(t)}),w.prototype._start_recording_on_event=Wt(function(t,n){this.__session_recording_init_promise&&this.__session_recording_init_promise.then(h.bind(function(){if(!this._remote_settings_strict_disabled)return this.recorderManager.startRecordingOnEvent(t,n)},this))}),w.prototype.start_session_recording=function(){return this._check_and_start_session_recording(!0)},w.prototype.stop_session_recording=function(){return this.recorderManager.stopSessionRecording()},w.prototype.pause_session_recording=function(){return this.recorderManager.pauseSessionRecording()},w.prototype.resume_session_recording=function(){return this.recorderManager.resumeSessionRecording()},w.prototype.is_recording_heatmap_data=function(){return this.recorderManager.isRecordingHeatmapData()},w.prototype.get_session_recording_properties=function(){return this.recorderManager.getSessionRecordingProperties()},w.prototype.get_session_replay_url=function(){return this.recorderManager.getSessionReplayUrl()},w.prototype.__get_recorder=function(){return this.recorderManager.getRecorder()},w.prototype.__get_recording_init_promise=function(){return this.__session_recording_init_promise},w.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 t=h.info.campaignParams(null);h.each(t,function(n,i){this.unregister(i)}.bind(this))}},w.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(U.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(U.referrer)},w.prototype._dom_loaded=function(){h.each(this.__dom_loaded_queue,function(t){this._track_dom.apply(this,t)},this),this.has_opted_out_tracking()||h.each(this.__request_queue,function(t){this._send_request.apply(this,t)},this),delete this.__dom_loaded_queue,delete this.__request_queue},w.prototype._track_dom=function(t,n){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!Gp)return this.__dom_loaded_queue.push([t,n]),!1;var i=new t().init(this);return i.track.apply(i,n)},w.prototype._prepare_callback=function(t,n){if(h.isUndefined(t))return null;if(Mr){var i=function(o){t(o,n)};return i}else{var e=this._jsc,r=""+Math.floor(Math.random()*1e8),s=this.get_config("callback_fn")+"["+r+"]";return e[r]=function(o){delete e[r],t(o,n)},s}},w.prototype._send_request=function(t,n,i,e){var r=!0;if(qp)return this.__request_queue.push(arguments),r;var s={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},o=null;!e&&(h.isFunction(i)||typeof i=="string")&&(e=i,i=null),i=h.extend(s,i||{}),Mr||(i.method="GET");var a=i.method==="POST",u=ys&&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),Mr||(e?n.callback=e:(c||this.get_config("test"))&&(n.callback="(function(){})")),n.ip=this.get_config("ip")?1:0,n._=new Date().getTime().toString(),a&&(o="data="+encodeURIComponent(n.data),delete n.data),h.extend(n,this.get_config("api_extra_query_params")),t+="?"+h.HTTPBuildQuery(n);var l=this;if("img"in n){var f=U.createElement("img");f.src=t,U.body.appendChild(f)}else if(u){try{r=ys(t,o)}catch(m){l.report_error(m),r=!1}try{e&&e(r?1:0)}catch(m){l.report_error(m)}}else if(Mr)try{var p=new XMLHttpRequest;p.open(i.method,t,!0);var g=this.get_config("xhr_headers");if(a&&(g["Content-Type"]="application/x-www-form-urlencoded"),h.each(g,function(m,_){p.setRequestHeader(_,m)}),i.timeout_ms&&typeof p.timeout!="undefined"){p.timeout=i.timeout_ms;var v=new Date().getTime()}p.withCredentials=!0,p.onreadystatechange=function(){if(p.readyState===4)if(p.status===200){if(e)if(c){var m;try{m=h.JSONDecode(p.responseText)}catch(C){if(l.report_error(C),i.ignore_json_errors)m=p.responseText;else return}e(m)}else e(Number(p.responseText))}else{var _;if(p.timeout&&!p.status&&new Date().getTime()-v>=p.timeout?_="timeout":_="Bad HTTP status: "+p.status+" "+p.statusText,l.report_error(_),e)if(c){var b=p.responseHeaders||{};e({status:0,httpStatusCode:p.status,error:_,retryAfter:b["Retry-After"]})}else e(0)}},p.send(o)}catch(m){l.report_error(m),r=!1}else{var y=U.createElement("script");y.type="text/javascript",y.async=!0,y.defer=!0,y.src=t;var d=U.getElementsByTagName("script")[0];d.parentNode.insertBefore(y,d)}return r},w.prototype._fetch_remote_settings=function(t){var n=this,i=function(){t==="strict"&&(n.set_config({record_sessions_percent:0}),n._remote_settings_strict_disabled=!0)};if(!E.AbortController)return N.critical("Remote settings unavailable: missing minimum required APIs"),i(),Promise.resolve();var e=this.get_api_host("settings")+"/"+this.get_config("api_routes").settings,r={$lib_version:Pe.LIB_VERSION,mp_lib:"web",sdk_config:"1"},s=h.HTTPBuildQuery(r),o=e+"?"+s,a=new AbortController,u=setTimeout(function(){a.abort()},500),c={method:"GET",headers:{Authorization:"Basic "+btoa(n.get_config("token")+":")},signal:a.signal};return E.fetch(o,c).then(function(l){if(clearTimeout(u),!l.ok){N.critical("Network response was not ok"),i();return}return l.json()}).then(function(l){if(l&&l.sdk_config&&l.sdk_config.config){var f=l.sdk_config.config,p={};h.each(f,function(g,v){mu.hasOwnProperty(v)&&(p[v]=g)}),h.isEmptyObject(p)?(N.critical("No valid config keys found in remote settings."),i()):n.set_config(p)}else i()}).catch(function(l){clearTimeout(u),N.critical("Failed to fetch remote settings",l),i()})},w.prototype._execute_array=function(t){var n,i=[],e=[],r=[];h.each(t,function(o){o&&(n=o[0],h.isArray(n)?r.push(o):typeof o=="function"?o.call(this):h.isArray(o)&&n==="alias"?i.push(o):h.isArray(o)&&n.indexOf("track")!==-1&&typeof this[n]=="function"?r.push(o):e.push(o))},this);var s=function(o,a){h.each(o,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)};s(i,this),s(e,this),s(r,this)},w.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},w.prototype.get_batcher_configs=function(){var t="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:t+"_ev"},people:{type:"people",api_name:"engage",queue_key:t+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:t+"_gr"}},this._batcher_configs},w.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var t=h.bind(function(i){return new Be(i.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:h.bind(function(e,r,s){var o=this.get_config("api_routes");this._send_request(this.get_api_host(i.api_name)+"/"+o[i.api_name],this._encode_data_for_request(e),r,this._prepare_callback(s,e))},this),beforeSendHook:h.bind(function(e){var r=this._run_hook("before_send_"+i.type,e);return r?r[0]:null},this),stopAllBatchingFunc:h.bind(this.stop_batch_senders,this),usePersistence:!0})},this),n=this.get_batcher_configs();this.request_batchers={events:t(n.events),people:t(n.people),groups:t(n.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},w.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,h.each(this.request_batchers,function(t){t.start()}))},w.prototype.stop_batch_senders=function(){this._batch_requests=!1,h.each(this.request_batchers,function(t){t.stop(),t.clear()})},w.prototype.push=function(t){this._execute_array([t])},w.prototype.enable=function(t){var n,i,e,r;if(typeof t=="undefined")this._flags.disable_all_events=!1;else{for(n={},i=[],e=0;e<t.length;e++)n[t[e]]=!0;for(r=0;r<this.__disabled_events.length;r++)n[this.__disabled_events[r]]||i.push(this.__disabled_events[r]);this.__disabled_events=i}},w.prototype.disable=function(t){typeof t=="undefined"?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(t)},w.prototype._encode_data_for_request=function(t){var n=Er(t);return this.get_config("api_payload_format")===zp&&(n=h.base64Encode(n)),{data:n}},w.prototype._track_or_batch=function(t,n){var i=h.truncate(t.data,255),e=t.endpoint,r=t.batcher,s=t.should_send_immediately,o=t.send_request_options||{};n=n||Ot;var a=!0,u=h.bind(function(){return o.skip_hooks||(i=this._run_hook("before_send_"+t.type,i),i&&(i=i[0])),i?(N.log("MIXPANEL REQUEST:"),N.log(i),this._send_request(e,this._encode_data_for_request(i),o,this._prepare_callback(n,i))):null},this);return this._batch_requests&&!s?r.enqueue(i).then(function(c){c?n(1,i):u()}):a=u(),a&&i},w.prototype.track=xt(function(t,n,i,e){var r;if(!(i&&i.skip_hooks)){if(r=this._run_hook("before_track",t,n),r===null)return;t=r[0],n=r[1]}!e&&typeof i=="function"&&(e=i,i=null),i=i||{};var s=i.transport;s&&(i.transport=s);var o=i.send_immediately;if(typeof e!="function"&&(e=Ot),h.isUndefined(t)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(t)){e(0);return}n=h.extend({},n),n.token=this.get_config("token");var a=this.persistence.remove_event_timer(t);if(!h.isUndefined(a)){var u=new Date().getTime()-a;n.$duration=parseFloat((u/1e3).toFixed(3))}this._set_default_superprops();var c=this.get_config("track_marketing")?h.info.marketingParams():{};n=h.extend({},h.info.properties({mp_loader:this.get_config("mp_loader")}),c,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),n);var l=this.get_config("property_blacklist");h.isArray(l)?h.each(l,function(p){delete n[p]}):this.report_error("Invalid value for property_blacklist config: "+l),this._start_recording_on_event(t,n);var f={event:t,properties:n};return r=this._track_or_batch({type:"events",data:f,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:o,send_request_options:i},e),this.flags&&this.flags.checkFirstTimeEvents&&this.flags.checkFirstTimeEvents(t,n),r}),w.prototype.set_group=xt(function(t,n,i){h.isArray(n)||(n=[n]);var e={};return e[t]=n,this.register(e),this.people.set(t,n,i)}),w.prototype.add_group=xt(function(t,n,i){var e=this.get_property(t),r={};return e===void 0?(r[t]=[n],this.register(r)):e.indexOf(n)===-1&&(e.push(n),r[t]=e,this.register(r)),this.people.union(t,n,i)}),w.prototype.remove_group=xt(function(t,n,i){var e=this.get_property(t);if(e!==void 0){var r=e.indexOf(n);r>-1&&(e.splice(r,1),this.register({group_key:e})),e.length===0&&this.unregister(t)}return this.people.remove(t,n,i)}),w.prototype.track_with_groups=xt(function(t,n,i,e){var r=h.extend({},n||{});return h.each(i,function(s,o){s!=null&&(r[o]=s)}),this.track(t,r,e)}),w.prototype._create_map_key=function(t,n){return t+"_"+JSON.stringify(n)},w.prototype._remove_group_from_cache=function(t,n){delete this._cached_groups[this._create_map_key(t,n)]},w.prototype.get_group=function(t,n){var i=this._create_map_key(t,n),e=this._cached_groups[i];return(e===void 0||e._group_key!==t||e._group_id!==n)&&(e=new ue,e._init(this,t,n),this._cached_groups[i]=e),e},w.prototype.track_pageview=xt(function(t,n){typeof t!="object"&&(t={}),n=n||{};var i=n.event_name||"$mp_web_page_view",e=h.extend(h.info.mpPageViewProperties(),h.info.campaignParams(),h.info.clickParams()),r=h.extend({},e,t);return this.is_recording_heatmap_data()&&(r.$captured_for_heatmap=!0),this.track(i,r)}),w.prototype.track_links=function(){return this._track_dom.call(this,Rr,arguments)},w.prototype.track_forms=function(){return this._track_dom.call(this,vs,arguments)},w.prototype.time_event=function(t){if(h.isUndefined(t)){this.report_error("No event name provided to mixpanel.time_event");return}this._event_is_disabled(t)||this.persistence.set_event_timer(t,new Date().getTime())};var EC={persistent:!0},yu=function(t){var n;return h.isObject(t)?n=t:h.isUndefined(t)?n={}:n={days:t},h.extend({},EC,n)};w.prototype.register=function(t,n){var i=this._run_hook("before_register",t,n);if(i!==null){t=i[0],n=i[1];var e=yu(n);e.persistent?this.persistence.register(t,e.days):h.extend(this.unpersisted_superprops,t)}},w.prototype.register_once=function(t,n,i){var e=this._run_hook("before_register_once",t,n,i);if(e!==null){t=e[0],n=e[1],i=e[2];var r=yu(i);r.persistent?this.persistence.register_once(t,n,r.days):(typeof n=="undefined"&&(n="None"),h.each(t,function(s,o){(!this.unpersisted_superprops.hasOwnProperty(o)||this.unpersisted_superprops[o]===n)&&(this.unpersisted_superprops[o]=s)},this))}},w.prototype.unregister=function(t,n){var i=this._run_hook("before_unregister",t,n);i!==null&&(t=i[0],n=i[1],n=yu(n),n.persistent?this.persistence.unregister(t):delete this.unpersisted_superprops[t])},w.prototype._register_single=function(t,n){var i={};i[t]=n,this.register(i)},w.prototype.identify=function(t,n,i,e,r,s,o,a){var u=this._run_hook("before_identify",t);if(u===null)return-1;t=u[0];var c=this.get_distinct_id();if(t&&c!==t){if(typeof t=="string"&&t.indexOf(gu)===0)return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:t})}if(!this.get_property("$device_id")){var l=c;this.register_once({$had_persisted_distinct_id:!0,$device_id:l},"")}t!==c&&t!==this.get_property(gs)&&(this.unregister(gs),this.register({distinct_id:t})),this._flags.identify_called=!0,this.people._flush(n,i,e,r,s,o,a),t!==c&&this.track("$identify",{distinct_id:t,$anon_distinct_id:c},{skip_hooks:!0}),t!==c&&this.flags.fetchFlags().catch(function(){N.error("[flags] Error fetching flags during identify")})},w.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var t=h.UUID();this.register_once({distinct_id:gu+t,$device_id:t},""),this._check_and_start_session_recording(),this.flags.reset()},w.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},w.prototype.alias=function(t,n){if(t===this.get_property(Fp))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()),t!==n?(this._register_single(gs,t),this.track("$create_alias",{alias:t,distinct_id:n},{skip_hooks:!0},function(){i.identify(t)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(t),-1)},w.prototype.name_tag=function(t){this._register_single("mp_name_tag",t)},w.prototype.set_config=function(t){if(h.isObject(t)){h.extend(this.config,t);var n=t.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 t||"record_heatmap_data"in t)&&this.autocapture&&this.autocapture.init(),h.isObject(t.hooks)&&(this.hooks={},h.each(t.hooks,function(i,e){if(h.isFunction(i))this.hooks[e]=[i];else if(h.isArray(i)){this.hooks[e]=[];for(var r=0;r<i.length;r++)h.isFunction(i[r])||N.critical("Invalid hook added. Hook is not a function"),this.hooks[e].push(i[r])}else N.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this))}},w.prototype.get_config=function(t){return this.config[t]},w.prototype._run_hook=function(t){var n=It.call(arguments,1);return h.each(this.hooks[t],function(i){if(n===null)return null;var e=i.apply(this,n);typeof e=="undefined"?(this.report_error(t+" hook did not return a valid value"),n=null):(h.isArray(e)||(e=[e]),n.splice.apply(n,[0,e.length].concat(e)))},this),n},w.prototype.get_property=function(t){return this.persistence.load_prop([t])},w.prototype.get_api_host=function(t){return this.get_config("api_hosts")[t]||this.get_config("api_host")},w.prototype.toString=function(){var t=this.get_config("name");return t!==Le&&(t=Le+"."+t),t},w.prototype._event_is_disabled=function(t){return h.isBlockedUA(Je)||this._flags.disable_all_events||h.include(this.__disabled_events,t)},w.prototype._gdpr_init=function(){var t=this.get_config("opt_out_tracking_persistence_type")==="localStorage";t&&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")}))},w.prototype._gdpr_update_persistence=function(t){var n;if(t&&t.clear_persistence)n=!0;else if(t&&t.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()},w.prototype._gdpr_call_func=function(t,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"),t(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})},w.prototype.opt_in_tracking=function(t){t=h.extend({enable_persistence:!0},t),this._gdpr_call_func(oS,t),this._gdpr_update_persistence(t)},w.prototype.opt_out_tracking=function(t){t=h.extend({clear_persistence:!0,delete_user:!0},t),t.delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(aS,t),this._gdpr_update_persistence(t)},w.prototype.has_opted_in_tracking=function(t){return this._gdpr_call_func(uS,t)},w.prototype.has_opted_out_tracking=function(t){return this._gdpr_call_func(Bh,t)},w.prototype.clear_opt_in_out_tracking=function(t){t=h.extend({enable_persistence:!0},t),this._gdpr_call_func(cS,t),this._gdpr_update_persistence(t)},w.prototype.report_error=function(t,n){N.error.apply(N.error,arguments);try{!n&&!(t instanceof Error)&&(t=new Error(t)),this.get_config("error_reporter")(t,n)}catch(i){N.error(i)}},w.prototype.add_hook=function(t,n){this.hooks[t]||(this.hooks[t]=[]),this.hooks[t].push(n)},w.prototype.remove_hook=function(t,n){var i;this.hooks[t]&&(i=this.hooks[t].indexOf(n),i!==-1?this.hooks[t].splice(i,1):N.log("remove_hook failed. Matching hook was not found"))},w.prototype.init=w.prototype.init,w.prototype.reset=w.prototype.reset,w.prototype.enable=w.prototype.enable,w.prototype.disable=w.prototype.disable,w.prototype.time_event=w.prototype.time_event,w.prototype.track=w.prototype.track,w.prototype.track_links=w.prototype.track_links,w.prototype.track_forms=w.prototype.track_forms,w.prototype.track_pageview=w.prototype.track_pageview,w.prototype.register=w.prototype.register,w.prototype.register_once=w.prototype.register_once,w.prototype.unregister=w.prototype.unregister,w.prototype.identify=w.prototype.identify,w.prototype.alias=w.prototype.alias,w.prototype.name_tag=w.prototype.name_tag,w.prototype.set_config=w.prototype.set_config,w.prototype.get_config=w.prototype.get_config,w.prototype.get_api_host=w.prototype.get_api_host,w.prototype.get_property=w.prototype.get_property,w.prototype.get_distinct_id=w.prototype.get_distinct_id,w.prototype.toString=w.prototype.toString,w.prototype.opt_out_tracking=w.prototype.opt_out_tracking,w.prototype.opt_in_tracking=w.prototype.opt_in_tracking,w.prototype.has_opted_out_tracking=w.prototype.has_opted_out_tracking,w.prototype.has_opted_in_tracking=w.prototype.has_opted_in_tracking,w.prototype.clear_opt_in_out_tracking=w.prototype.clear_opt_in_out_tracking,w.prototype.get_group=w.prototype.get_group,w.prototype.set_group=w.prototype.set_group,w.prototype.add_group=w.prototype.add_group,w.prototype.remove_group=w.prototype.remove_group,w.prototype.add_hook=w.prototype.add_hook,w.prototype.remove_hook=w.prototype.remove_hook,w.prototype.track_with_groups=w.prototype.track_with_groups,w.prototype.start_batch_senders=w.prototype.start_batch_senders,w.prototype.stop_batch_senders=w.prototype.stop_batch_senders,w.prototype.start_session_recording=w.prototype.start_session_recording,w.prototype.stop_session_recording=w.prototype.stop_session_recording,w.prototype.pause_session_recording=w.prototype.pause_session_recording,w.prototype.resume_session_recording=w.prototype.resume_session_recording,w.prototype.get_session_recording_properties=w.prototype.get_session_recording_properties,w.prototype.get_session_replay_url=w.prototype.get_session_replay_url,w.prototype.get_tab_id=w.prototype.get_tab_id,w.prototype.DEFAULT_API_ROUTES=Wp,w.prototype.__get_recorder=w.prototype.__get_recorder,w.prototype.__get_recording_init_promise=w.prototype.__get_recording_init_promise,q.prototype.properties=q.prototype.properties,q.prototype.update_search_keyword=q.prototype.update_search_keyword,q.prototype.update_referrer_info=q.prototype.update_referrer_info,q.prototype.get_cross_subdomain=q.prototype.get_cross_subdomain,q.prototype.clear=q.prototype.clear;var Pt={},IC=function(){h.each(Pt,function(t,n){n!==Le&&(Se[n]=t)}),Se._=h},OC=function(){Se.init=function(t,n,i){if(i)return Se[i]||(Se[i]=Pt[i]=_s(t,n,i),Se[i]._loaded()),Se[i];var e=Se;Pt[Le]?e=Pt[Le]:t&&(e=_s(t,n,Le),e._loaded(),Pt[Le]=e),Se=e,ms===Bp&&(E[Le]=Se),IC()}},xC=function(){function t(){t.done||(t.done=!0,Gp=!0,qp=!1,h.each(Pt,function(e){e._dom_loaded()}))}function n(){try{U.documentElement.doScroll("left")}catch(e){setTimeout(n,1);return}t()}if(U.addEventListener)U.readyState==="complete"?t():U.addEventListener("DOMContentLoaded",t,!1);else if(U.attachEvent){U.attachEvent("onreadystatechange",t);var i=!1;try{i=E.frameElement===null}catch(e){}U.documentElement.doScroll&&i&&n()}h.register_event(E,"load",t,!0)};function kC(t){if(vu=t,ms=Bp,Se=E[Le],h.isUndefined(Se)){N.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(Se.__loaded||Se.config&&Se.persistence){N.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=Se.__SV||0;if(n<1.1){N.critical("Version mismatch; please ensure you're using the latest version of the Mixpanel code snippet.");return}h.each(Se._i,function(i){i&&h.isArray(i)&&(Pt[i[i.length-1]]=_s.apply(this,i))}),OC(),Se.init(),h.each(Pt,function(i){i._loaded()}),xC()}function RC(t,n){n()}kC(RC)})();
|