mixpanel-browser
Version:
The official Mixpanel JavaScript browser client library
1 lines • 411 kB
JavaScript
(function(){"use strict";var E;if(typeof window=="undefined"){var tu={hostname:""};E={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:tu,referrer:""},screen:{width:0,height:0},location:tu,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else E=window;var Ge="__mp_targeting",lo="__mp_recorder";function ru(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 nu(t,n,i,e,r,o,s){try{var a=t[o](s),u=a.value}catch(c){i(c);return}a.done?n(u):Promise.resolve(u).then(e,r)}function mn(t){return function(){var n=this,i=arguments;return new Promise(function(e,r){var o=t.apply(n,i);function s(u){nu(o,e,r,s,a,"next",u)}function a(u){nu(o,e,r,s,a,"throw",u)}s(void 0)})}}function yn(t,n,i){return iu()?yn=Reflect.construct:yn=function(r,o,s){var a=[null];a.push.apply(a,o);var u=Function.bind.apply(r,a),c=new u;return s&&xr(c,s.prototype),c},yn.apply(null,arguments)}function Sp(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 ne(t,n,i){return n&&Sp(t.prototype,n),t}function B(){return B=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},B.apply(this,arguments)}function fo(t){return fo=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},fo(t)}function ue(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&&xr(t,n)}function A(t,n){return n!=null&&typeof Symbol!="undefined"&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](t):t instanceof n}function Cp(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Rt(t,n){if(t==null)return{};var i={},e=Object.keys(t),r,o;for(o=0;o<e.length;o++)r=e[o],!(n.indexOf(r)>=0)&&(i[r]=t[r]);return i}function xr(t,n){return xr=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e},xr(t,n)}function M(t){"@swc/helpers - typeof";return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function Ep(t,n){if(t){if(typeof t=="string")return ru(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 ru(t,n)}}function kr(t){var n=typeof Map=="function"?new Map:void 0;return kr=function(e){if(e===null||!Cp(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 yn(e,arguments,fo(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),xr(r,e)},kr(t)}function iu(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(iu=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=Ep(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 Mt(t,n){var i,e,r,o,s={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(l){return u([c,l])}}function u(c){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,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 s.label++,{value:c[1],done:!1};case 5:s.label++,e=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){s=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){s.label=c[1];break}if(c[0]===6&&s.label<r[1]){s.label=r[1],r=c;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(c);break}r[2]&&s.ops.pop(),s.trys.pop();continue}c=n.call(t,s)}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 ho(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 Ip=Object.defineProperty,Op=function(t,n,i){return n in t?Ip(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},O=function(t,n,i){return Op(t,(typeof n=="undefined"?"undefined":M(n))!=="symbol"?n+"":n,i)},ou,xp=Object.defineProperty,kp=function(t,n,i){return n in t?xp(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},su=function(t,n,i){return kp(t,(typeof n=="undefined"?"undefined":M(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||{}),au={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},uu={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},_n={},Ap=function(){return!!globalThis.Zone};function po(t){if(_n[t])return _n[t];var n=globalThis[t],i=n.prototype,e=t in au?au[t]:void 0,r=!!(e&&e.every(function(l){var f,h;return!!((h=(f=Object.getOwnPropertyDescriptor(i,l))==null?void 0:f.get)!=null&&h.toString().includes("[native code]"))})),o=t in uu?uu[t]:void 0,s=!!(o&&o.every(function(l){var f;return typeof i[l]=="function"&&((f=i[l])==null?void 0:f.toString().includes("[native code]"))}));if(r&&s&&!Ap())return _n[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?_n[t]=c:i}catch(l){return i}}var vo={};function ht(t,n,i){var e,r=t+"."+String(i);if(vo[r])return vo[r].call(n);var o=po(t),s=(e=Object.getOwnPropertyDescriptor(o,i))==null?void 0:e.get;return s?(vo[r]=s,s.call(n)):n[i]}var go={};function cu(t,n,i){var e=t+"."+String(i);if(go[e])return go[e].bind(n);var r=po(t),o=r[i];return typeof o!="function"?n[i]:(go[e]=o,o.bind(n))}function Rp(t){return ht("Node",t,"childNodes")}function Mp(t){return ht("Node",t,"parentNode")}function Tp(t){return ht("Node",t,"parentElement")}function $p(t){return ht("Node",t,"textContent")}function Pp(t,n){return cu("Node",t,"contains")(n)}function Np(t){return cu("Node",t,"getRootNode")()}function Lp(t){return!t||!("host"in t)?null:ht("ShadowRoot",t,"host")}function Dp(t){return t.styleSheets}function Fp(t){return!t||!("shadowRoot"in t)?null:ht("Element",t,"shadowRoot")}function Up(t,n){return ht("Element",t,"querySelector")(n)}function Bp(t,n){return ht("Element",t,"querySelectorAll")(n)}function zp(){return po("MutationObserver").constructor}function Wp(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(o){return function(){}}}var ke={childNodes:Rp,parentNode:Mp,parentElement:Tp,textContent:$p,contains:Pp,getRootNode:Np,host:Lp,styleSheets:Dp,shadowRoot:Fp,querySelector:Up,querySelectorAll:Bp,mutationObserver:zp,patch:Wp};function lu(t){return t.nodeType===t.ELEMENT_NODE}function Ar(t){var n=t&&"host"in t&&"mode"in t&&ke.host(t)||null;return!!(n&&"shadowRoot"in n&&ke.shadowRoot(n)===t)}function Rr(t){return Object.prototype.toString.call(t)==="[object ShadowRoot]"}function Gp(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 qp(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 mo(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 fu(r,i)}).join("");return Gp(e)}catch(r){return null}}function fu(t,n){if(jp(t)){var i;try{i=mo(t.styleSheet)||qp(t)}catch(r){i=t.cssText}return t.styleSheet.href?Sn(i,t.styleSheet.href):i}else{var e=t.cssText;return Hp(t)&&t.selectorText.includes(":")&&(e=Vp(e)),n?Sn(e,n):e}}function Vp(t){var n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(n,"$1\\$2")}function jp(t){return"styleSheet"in t}function Hp(t){return"selectorText"in t}var hu=(function(){function t(){su(this,"idNodeMap",new Map),su(this,"nodeMetaMap",new WeakMap)}var n=t.prototype;return n.getId=function(e){var r;if(!e)return-1;var o=(r=this.getMeta(e))==null?void 0:r.id;return o!=null?o:-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 o=this;r===void 0&&(r=!1);var s=this.getId(e);this.idNodeMap.delete(s),r&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEach(function(a){return o.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 o=r.id;this.idNodeMap.set(o,e),this.nodeMetaMap.set(e,r)},n.replace=function(e,r){var o=this.getNode(e);if(o){var s=this.nodeMetaMap.get(o);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(e,r)},n.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},t})();function Yp(){return new hu}function wn(t){var n=t.element,i=t.maskInputOptions,e=t.tagName,r=t.type,o=t.value,s=t.maskInputFn,a=o||"",u=r&&Tt(r);return(i[e.toLowerCase()]||u&&i[u])&&(s?a=s(a,n):a="*".repeat(a.length)),a}function Tt(t){return t.toLowerCase()}var pu="__rrweb_original__";function Kp(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 o=n.getImageData,s=pu in o?o[pu]:o,a=new Uint32Array(s.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 bn(t){var n=t.type;return t.hasAttribute("data-rr-is-password")?"password":n?Tt(n):null}function du(t,n){var i;try{i=new URL(t,n!=null?n:window.location.href)}catch(s){return null}var e=/\.([0-9a-z]+)(?:$)/i,r=i.pathname.match(e),o;return(o=r==null?void 0:r[1])!=null?o:null}function Jp(t){var n="";return t.indexOf("//")>-1?n=t.split("/").slice(0,3).join("/"):n=t.split("/")[0],n=n.split("?")[0],n}var Xp=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Zp=/^(?:[a-z+]+:)?\/\//i,Qp=/^www\..*/i,ed=/^(data:)([^,]*),(.*)/i;function Sn(t,n){return(t||"").replace(Xp,function(i,e,r,o,s,a){var u=r||s||a,c=e||o||"";if(!u)return i;if(Zp.test(u)||Qp.test(u)||ed.test(u))return"url("+c+u+c+")";if(u[0]==="/")return"url("+c+(Jp(n)+u)+c+")";var l=n.split("/"),f=u.split("/");l.pop();for(var h=I(f),g;!(g=h()).done;){var v=g.value;v!=="."&&(v===".."?l.pop():l.push(v))}return"url("+c+l.join("/")+c+")"})}function Cn(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=[],o=0;if(e.length>1&&t&&typeof t=="string"){for(var s=Cn(t,i),a=s.length/t.length,u=1;u<e.length;u++)if(e[u].textContent&&typeof e[u].textContent=="string"){for(var c=Cn(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 h=c.substring(0,f),g=s.split(h),v=-1;if(g.length===2)v=g[0].length;else if(g.length>2&&g[0]===""&&e[u-1].textContent!=="")v=s.indexOf(h,1);else if(g.length===1){if(h=h.substring(0,h.length-1),g=s.split(h),g.length<=1)return r.push(t),r;f=l+1}else f===c.length-1&&(v=s.indexOf(h));if(g.length>=2&&f>l){var y=e[u-1].textContent;if(y&&typeof y=="string"){var d=Cn(y).length;v=s.indexOf(h,d)}v===-1&&(v=g[0].length)}if(v!==-1){for(var m=Math.floor(v/a);m>0&&m<t.length;){if(o+=1,o>50*e.length)return r.push(t),r;var _=Cn(t.substring(0,m),i);if(_.length===v){r.push(t.substring(0,m)),t=t.substring(m),s=s.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 rd(t,n){return td(t,n).join("/* rr_split */")}var nd=1,id=new RegExp("[^a-z0-9-_:]"),Mr=-2;function vu(){return nd++}function od(t){if(A(t,HTMLFormElement))return"form";var n=Tt(t.tagName);return id.test(n)?"div":n}var Kt,gu,sd=/^[^ \t\n\r\u000c]+/,ad=/^[, \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(ad),!(i>=n.length);){var o=e(sd);if(o.slice(-1)===",")o=Jt(t,o.substring(0,o.length-1)),r.push(o);else{var s="";o=Jt(t,o);for(var a=!1;;){var u=n.charAt(i);if(u===""){r.push((o+s).trim());break}else if(a)u===")"&&(a=!1);else if(u===","){i+=1,r.push((o+s).trim());break}else u==="("&&(a=!0);s+=u,i+=1}}}return r.join(", ")}var mu=new WeakMap;function Jt(t,n){return!n||n.trim()===""?n:yo(t,n)}function cd(t){return!!(t.tagName==="svg"||t.ownerSVGElement)}function yo(t,n){var i=mu.get(t);if(i||(i=t.createElement("a"),mu.set(t,i)),!n)n="";else if(n.startsWith("blob:")||n.startsWith("data:"))return n;return i.setAttribute("href",n),i.href}function yu(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")?Jt(t,e):i==="srcset"?ud(t,e):i==="style"?Sn(e,yo(t)):n==="object"&&i==="data"?Jt(t,e):e)}function _u(t,n,i){return(t==="video"||t==="audio")&&n==="autoplay"}function ld(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(o){}return!1}function En(t,n,i){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return i?En(ke.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?En(ke.parentNode(t),n,i):!1}function wu(t,n,i,e){var r;if(lu(t)){if(r=t,!ke.childNodes(r).length)return!1}else{if(ke.parentElement(t)===null)return!1;r=ke.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(En(r,n,e))return!0;if(i){if(e){if(r.closest(i))return!0}else if(r.matches(i))return!0}}catch(o){}return!1}function fd(t,n,i){var e=t.contentWindow;if(e){var r=!1,o;try{o=e.document.readyState}catch(u){return}if(o!=="complete"){var s=setTimeout(function(){r||(n(),r=!0)},i);t.addEventListener("load",function(){clearTimeout(s),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 hd(t,n,i){var e=!1,r;try{r=t.sheet}catch(s){return}if(!r){var o=setTimeout(function(){e||(n(),e=!0)},i);t.addEventListener("load",function(){clearTimeout(o),e=!0,n()})}}function pd(t,n){var i=n.doc,e=n.mirror,r=n.blockClass,o=n.blockSelector,s=n.needsMask,a=n.inlineStylesheet,u=n.maskInputOptions,c=u===void 0?{}:u,l=n.maskTextFn,f=n.maskInputFn,h=n.dataURLOptions,g=h===void 0?{}:h,v=n.inlineImages,y=n.recordCanvas,d=n.keepIframeSrcFn,m=n.newlyAddedElement,_=m===void 0?!1:m,b=n.cssCaptured,S=b===void 0?!1:b,C=dd(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:C};case t.ELEMENT_NODE:return gd(t,{doc:i,blockClass:r,blockSelector:o,inlineStylesheet:a,maskInputOptions:c,maskInputFn:f,dataURLOptions:g,inlineImages:v,recordCanvas:y,keepIframeSrcFn:d,newlyAddedElement:_,rootId:C});case t.TEXT_NODE:return vd(t,{doc:i,needsMask:s,maskTextFn:l,rootId:C,cssCaptured:S});case t.CDATA_SECTION_NODE:return{type:Ie.CDATA,textContent:"",rootId:C};case t.COMMENT_NODE:return{type:Ie.Comment,textContent:ke.textContent(t)||"",rootId:C};default:return!1}}function dd(t,n){if(n.hasNode(t)){var i=n.getId(t);return i===1?void 0:i}}function vd(t,n){var i=n.needsMask,e=n.maskTextFn,r=n.rootId,o=n.cssCaptured,s=ke.parentNode(t),a=s&&s.tagName,u="",c=a==="STYLE"?!0:void 0,l=a==="SCRIPT"?!0:void 0;return l?u="SCRIPT_PLACEHOLDER":o||(u=ke.textContent(t),c&&u&&(u=Sn(u,yo(n.doc)))),!c&&!l&&u&&i&&(u=e?e(u,ke.parentElement(t)):u.replace(/[\S]/g,"*")),{type:Ie.Text,textContent:u||"",rootId:r}}function gd(t,n){for(var i=n.doc,e=n.blockClass,r=n.blockSelector,o=n.inlineStylesheet,s=n.maskInputOptions,a=s===void 0?{}:s,u=n.maskInputFn,c=n.dataURLOptions,l=c===void 0?{}:c,f=n.inlineImages,h=n.recordCanvas,g=n.keepIframeSrcFn,v=n.newlyAddedElement,y=v===void 0?!1:v,d=n.rootId,m=ld(t,e,r),_=od(t),b={},S=t.attributes.length,C=0;C<S;C++){var x=t.attributes[C];_u(_,x.name,x.value)||(b[x.name]=yu(i,_,Tt(x.name),x.value))}if(_==="link"&&o){var T=Array.from(i.styleSheets).find(function(De){return De.href===t.href}),k=null;T&&(k=mo(T)),k&&(delete b.rel,delete b.href,b._cssText=k)}if(_==="style"&&t.sheet){var $=mo(t.sheet);$&&(t.childNodes.length>1&&($=rd($,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=wn({element:t,type:bn(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"&&h){if(t.__context==="2d")Kp(t)||(b.rr_dataURL=t.toDataURL(l.type,l.quality));else if(!("__context"in t)){var P=t.toDataURL(l.type,l.quality),G=i.createElement("canvas");G.width=t.width,G.height=t.height;var he=G.toDataURL(l.type,l.quality);P!==he&&(b.rr_dataURL=P)}}if(_==="img"&&f){Kt||(Kt=i.createElement("canvas"),gu=Kt.getContext("2d"));var Y=t,Le=Y.currentSrc||Y.getAttribute("src")||"<unknown-src>",Pe=Y.crossOrigin,Oe=function(){Y.removeEventListener("load",Oe);try{Kt.width=Y.naturalWidth,Kt.height=Y.naturalHeight,gu.drawImage(Y,0,0),b.rr_dataURL=Kt.toDataURL(l.type,l.quality)}catch(De){if(Y.crossOrigin!=="anonymous"){Y.crossOrigin="anonymous",Y.complete&&Y.naturalWidth!==0?Oe():Y.addEventListener("load",Oe);return}else console.warn("Cannot inline img src="+Le+"! Error: "+De)}Y.crossOrigin==="anonymous"&&(Pe?b.crossOrigin=Pe:Y.removeAttribute("crossorigin"))};Y.complete&&Y.naturalWidth!==0?Oe():Y.addEventListener("load",Oe)}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(),Bt=xe.width,Qe=xe.height;b={class:b.class,rr_width:""+Bt+"px",rr_height:""+Qe+"px"}}_==="iframe"&&!g(b.src)&&(t.contentDocument||(b.rr_src=b.src),delete b.src);var Sr;try{customElements.get(_)&&(Sr=!0)}catch(De){}return{type:Ie.Element,tagName:_,attributes:b,childNodes:[],isSVG:cd(t)||void 0,needBlock:m,rootId:d,isCustom:Sr}}function ee(t){return t==null?"":t.toLowerCase()}function md(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"&&du(t.attributes.href)==="js"))return!0;if(n.headFavicon&&(t.tagName==="link"&&t.attributes.rel==="shortcut icon"||t.tagName==="meta"&&(ee(t.attributes.name).match(/^msapplication-tile(image|color)$/)||ee(t.attributes.name)==="application-name"||ee(t.attributes.rel)==="icon"||ee(t.attributes.rel)==="apple-touch-icon"||ee(t.attributes.rel)==="shortcut icon")))return!0;if(t.tagName==="meta"){if(n.headMetaDescKeywords&&ee(t.attributes.name).match(/^description|keywords$/))return!0;if(n.headMetaSocial&&(ee(t.attributes.property).match(/^(og|twitter|fb):/)||ee(t.attributes.name).match(/^(og|twitter):/)||ee(t.attributes.name)==="pinterest"))return!0;if(n.headMetaRobots&&(ee(t.attributes.name)==="robots"||ee(t.attributes.name)==="googlebot"||ee(t.attributes.name)==="bingbot"))return!0;if(n.headMetaHttpEquiv&&t.attributes["http-equiv"]!==void 0)return!0;if(n.headMetaAuthorship&&(ee(t.attributes.name)==="author"||ee(t.attributes.name)==="generator"||ee(t.attributes.name)==="framework"||ee(t.attributes.name)==="publisher"||ee(t.attributes.name)==="progid"||ee(t.attributes.property).match(/^article:/)||ee(t.attributes.property).match(/^product:/)))return!0;if(n.headMetaVerification&&(ee(t.attributes.name)==="google-site-verification"||ee(t.attributes.name)==="yandex-verification"||ee(t.attributes.name)==="csrf-token"||ee(t.attributes.name)==="p:domain_verify"||ee(t.attributes.name)==="verify-v1"||ee(t.attributes.name)==="verification"||ee(t.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Xt(t,n){var i=n.doc,e=n.mirror,r=n.blockClass,o=n.blockSelector,s=n.maskTextClass,a=n.maskTextSelector,u=n.skipChild,c=u===void 0?!1:u,l=n.inlineStylesheet,f=l===void 0?!0:l,h=n.maskInputOptions,g=h===void 0?{}:h,v=n.maskTextFn,y=n.maskInputFn,d=n.slimDOMOptions,m=n.dataURLOptions,_=m===void 0?{}:m,b=n.inlineImages,S=b===void 0?!1:b,C=n.recordCanvas,x=C===void 0?!1:C,T=n.onSerialize,k=n.onIframeLoad,$=n.iframeLoadTimeout,W=$===void 0?5e3:$,ge=n.onStylesheetLoad,P=n.stylesheetLoadTimeout,G=P===void 0?5e3:P,he=n.keepIframeSrcFn,Y=he===void 0?function(){return!1}:he,Le=n.newlyAddedElement,Pe=Le===void 0?!1:Le,Oe=n.cssCaptured,pe=Oe===void 0?!1:Oe,xe=n.needsMask,Bt=n.preserveWhiteSpace,Qe=Bt===void 0?!0:Bt;if(!xe){var Sr=xe===void 0;xe=wu(t,s,a,Sr)}var De=pd(t,{doc:i,mirror:e,blockClass:r,blockSelector:o,needsMask:xe,inlineStylesheet:f,maskInputOptions:g,maskTextFn:v,maskInputFn:y,dataURLOptions:_,inlineImages:S,recordCanvas:x,keepIframeSrcFn:Y,newlyAddedElement:Pe,cssCaptured:pe});if(!De)return console.warn(t,"not serialized"),null;var zt;e.hasNode(t)?zt=e.getId(t):md(De,d)||!Qe&&De.type===Ie.Text&&!De.textContent.replace(/^\s+|\s+$/gm,"").length?zt=Mr:zt=vu();var K=Object.assign(De,{id:zt});if(e.add(t,K),zt===Mr)return null;T&&T(t);var Wt=!c;if(K.type===Ie.Element){Wt=Wt&&!K.needBlock,delete K.needBlock;var Gt=ke.shadowRoot(t);Gt&&Rr(Gt)&&(K.isShadowHost=!0)}if((K.type===Ie.Document||K.type===Ie.Element)&&Wt){d.headWhitespace&&K.type===Ie.Element&&K.tagName==="head"&&(Qe=!1);var Cr={doc:i,mirror:e,blockClass:r,blockSelector:o,needsMask:xe,maskTextClass:s,maskTextSelector:a,skipChild:c,inlineStylesheet:f,maskInputOptions:g,maskTextFn:v,maskInputFn:y,slimDOMOptions:d,dataURLOptions:_,inlineImages:S,recordCanvas:x,preserveWhiteSpace:Qe,onSerialize:T,onIframeLoad:k,iframeLoadTimeout:W,onStylesheetLoad:ge,stylesheetLoadTimeout:G,keepIframeSrcFn:Y,cssCaptured:!1};if(!(K.type===Ie.Element&&K.tagName==="textarea"&&K.attributes.value!==void 0)){K.type===Ie.Element&&K.attributes._cssText!==void 0&&typeof K.attributes._cssText=="string"&&(Cr.cssCaptured=!0);for(var dn=I(Array.from(ke.childNodes(t))),vn;!(vn=dn()).done;){var Xa=vn.value,uo=Xt(Xa,Cr);uo&&K.childNodes.push(uo)}}var At=null;if(lu(t)&&(At=ke.shadowRoot(t)))for(var qt=I(Array.from(ke.childNodes(At))),Er;!(Er=qt()).done;){var gn=Er.value,Ir=Xt(gn,Cr);Ir&&(Rr(At)&&(Ir.isShadow=!0),K.childNodes.push(Ir))}}var Vt=ke.parentNode(t);return Vt&&Ar(Vt)&&Rr(Vt)&&(K.isShadow=!0),K.type===Ie.Element&&K.tagName==="iframe"&&fd(t,function(){var lt=t.contentDocument;if(lt&&k){var jt=Xt(lt,{doc:lt,mirror:e,blockClass:r,blockSelector:o,needsMask:xe,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:g,maskTextFn:v,maskInputFn:y,slimDOMOptions:d,dataURLOptions:_,inlineImages:S,recordCanvas:x,preserveWhiteSpace:Qe,onSerialize:T,onIframeLoad:k,iframeLoadTimeout:W,onStylesheetLoad:ge,stylesheetLoadTimeout:G,keepIframeSrcFn:Y});jt&&k(t,jt)}},W),K.type===Ie.Element&&K.tagName==="link"&&typeof K.attributes.rel=="string"&&(K.attributes.rel==="stylesheet"||K.attributes.rel==="preload"&&typeof K.attributes.href=="string"&&du(K.attributes.href)==="css")&&hd(t,function(){if(ge){var lt=Xt(t,{doc:i,mirror:e,blockClass:r,blockSelector:o,needsMask:xe,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:g,maskTextFn:v,maskInputFn:y,slimDOMOptions:d,dataURLOptions:_,inlineImages:S,recordCanvas:x,preserveWhiteSpace:Qe,onSerialize:T,onIframeLoad:k,iframeLoadTimeout:W,onStylesheetLoad:ge,stylesheetLoadTimeout:G,keepIframeSrcFn:Y});lt&&ge(t,lt)}},G),K}function yd(t,n){var i=n||{},e=i.mirror,r=e===void 0?new hu:e,o=i.blockClass,s=o===void 0?"rr-block":o,a=i.blockSelector,u=a===void 0?null:a,c=i.maskTextClass,l=c===void 0?"rr-mask":c,f=i.maskTextSelector,h=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,S=b===void 0?!1:b,C=i.maskTextFn,x=i.maskInputFn,T=i.slimDOM,k=T===void 0?!1:T,$=i.dataURLOptions,W=i.preserveWhiteSpace,ge=i.onSerialize,P=i.onIframeLoad,G=i.iframeLoadTimeout,he=i.onStylesheetLoad,Y=i.stylesheetLoadTimeout,Le=i.keepIframeSrcFn,Pe=Le===void 0?function(){return!1}:Le,Oe=S===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:S===!1?{password:!0}:S,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 Xt(t,{doc:t,mirror:r,blockClass:s,blockSelector:u,maskTextClass:l,maskTextSelector:h,skipChild:!1,inlineStylesheet:v,maskInputOptions:Oe,maskTextFn:C,maskInputFn:x,slimDOMOptions:pe,dataURLOptions:$,inlineImages:d,recordCanvas:_,preserveWhiteSpace:W,onSerialize:ge,onIframeLoad:P,iframeLoadTimeout:G,onStylesheetLoad:he,stylesheetLoadTimeout:Y,keepIframeSrcFn:Pe,newlyAddedElement:!1})}function _d(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function wd(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var i=function e(){return A(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 _o={exports:{}},ie=String,bu=function(){return{isColorSupported:!1,reset:ie,bold:ie,dim:ie,italic:ie,underline:ie,inverse:ie,hidden:ie,strikethrough:ie,black:ie,red:ie,green:ie,yellow:ie,blue:ie,magenta:ie,cyan:ie,white:ie,gray:ie,bgBlack:ie,bgRed:ie,bgGreen:ie,bgYellow:ie,bgBlue:ie,bgMagenta:ie,bgCyan:ie,bgWhite:ie}};_o.exports=bu(),_o.exports.createColors=bu;var bd=_o.exports,Sd={},Cd=Object.freeze(Object.defineProperty({__proto__:null,default:Sd},Symbol.toStringTag,{value:"Module"})),me=wd(Cd),Su=bd,Cu=me,wo=(function(t){ue(n,t);function n(e,r,o,s,a,u){var c;return c=t.call(this,e)||this,c.name="CssSyntaxError",c.reason=e,a&&(c.file=a),s&&(c.source=s),u&&(c.plugin=u),typeof r!="undefined"&&typeof o!="undefined"&&(typeof r=="number"?(c.line=r,c.column=o):(c.line=r.line,c.column=r.column,c.endLine=o.line,c.endColumn=o.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,n),c}var i=n.prototype;return i.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},i.showSourceCode=function(r){var o=this;if(!this.source)return"";var s=this.source;r==null&&(r=Su.isColorSupported),Cu&&r&&(s=Cu(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),l=String(c).length,f,h;if(r){var g=Su.createColors(!0),v=g.bold,y=g.gray,d=g.red;f=function(m){return v(d(m))},h=function(m){return y(m)}}else f=h=function(m){return m};return a.slice(u,c).map(function(m,_){var b=u+1+_,S=" "+(" "+b).slice(-l)+" | ";if(b===o.line){var C=h(S.replace(/\d/g," "))+m.slice(0,o.column-1).replace(/[^\t]/g," ");return f(">")+h(S)+m+"\n "+C+f("^")}return" "+h(S)+m}).join("\n")},i.toString=function(){var r=this.showSourceCode();return r&&(r="\n\n"+r+"\n"),this.name+": "+this.message+r},n})(kr(Error)),bo=wo;wo.default=wo;var pt={};pt.isClean=Symbol("isClean"),pt.my=Symbol("my");var Eu={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Ed(t){return t[0].toUpperCase()+t.slice(1)}var So=(function(){function t(i){this.builder=i}var n=t.prototype;return n.atrule=function(e,r){var o="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?o+=e.raws.afterName:s&&(o+=" "),e.nodes)this.block(e,o+s);else{var a=(e.raws.between||"")+(r?";":"");this.builder(o+s+a,e)}},n.beforeAfter=function(e,r){var o;e.type==="decl"?o=this.raw(e,null,"beforeDecl"):e.type==="comment"?o=this.raw(e,null,"beforeComment"):r==="before"?o=this.raw(e,null,"beforeRule"):o=this.raw(e,null,"beforeClose");for(var s=e.parent,a=0;s&&s.type!=="root";)a+=1,s=s.parent;if(o.includes("\n")){var u=this.raw(e,null,"indent");if(u.length)for(var c=0;c<a;c++)o+=u}return o},n.block=function(e,r){var o=this.raw(e,"between","beforeOpen");this.builder(r+o+"{",e,"start");var s;e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(s),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 o=this.raw(e,"semicolon"),s=0;s<e.nodes.length;s++){var a=e.nodes[s],u=this.raw(a,"before");u&&this.builder(u),this.stringify(a,r!==s||o)}},n.comment=function(e){var r=this.raw(e,"left","commentLeft"),o=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+o+"*/",e)},n.decl=function(e,r){var o=this.raw(e,"between","colon"),s=e.prop+o+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),r&&(s+=";"),this.builder(s,e)},n.document=function(e){this.body(e)},n.raw=function(e,r,o){var s;if(o||(o=r),r&&(s=e.raws[r],typeof s!="undefined"))return s;var a=e.parent;if(o==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return Eu[o];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[o]!="undefined")return u.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(e,o);var c="raw"+Ed(o);return this[c]?s=this[c](u,e):u.walk(function(l){if(s=l.raws[r],typeof s!="undefined")return!1}),typeof s=="undefined"&&(s=Eu[o]),u.rawCache[o]=s,s},n.rawBeforeClose=function(e){var r;return e.walk(function(o){if(o.nodes&&o.nodes.length>0&&typeof o.raws.after!="undefined")return r=o.raws.after,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(e,r){var o;return e.walkComments(function(s){if(typeof s.raws.before!="undefined")return o=s.raws.before,o.includes("\n")&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(r,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeDecl=function(e,r){var o;return e.walkDecls(function(s){if(typeof s.raws.before!="undefined")return o=s.raws.before,o.includes("\n")&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(r,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeOpen=function(e){var r;return e.walk(function(o){if(o.type!=="decl"&&(r=o.raws.between,typeof r!="undefined"))return!1}),r},n.rawBeforeRule=function(e){var r;return e.walk(function(o){if(o.nodes&&(o.parent!==e||e.first!==o)&&typeof o.raws.before!="undefined")return r=o.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawColon=function(e){var r;return e.walkDecls(function(o){if(typeof o.raws.between!="undefined")return r=o.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(e){var r;return e.walk(function(o){if(o.nodes&&o.nodes.length===0&&(r=o.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(o){var s=o.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof o.raws.before!="undefined"){var a=o.raws.before.split("\n");return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r},n.rawSemicolon=function(e){var r;return e.walk(function(o){if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(r=o.raws.semicolon,typeof r!="undefined"))return!1}),r},n.rawValue=function(e,r){var o=e[r],s=e.raws[r];return s&&s.value===o?s.raw:o},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})(),Iu=So;So.default=So;var Id=Iu;function Co(t,n){var i=new Id(n);i.stringify(t)}var In=Co;Co.default=Co;var On=pt.isClean,Od=pt.my,xd=bo,kd=Iu,Ad=In;function Eo(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],o=typeof r=="undefined"?"undefined":M(r);e==="parent"&&o==="object"?n&&(i[e]=n):e==="source"?i[e]=r:Array.isArray(r)?i[e]=r.map(function(s){return Eo(s,i)}):(o==="object"&&r!==null&&(r=Eo(r)),i[e]=r)}return i}var Io=(function(){function t(i){i===void 0&&(i={}),this.raws={},this[On]=!1,this[Od]=!0;for(var e in i)if(e==="nodes"){this.nodes=[];for(var r=I(i[e]),o;!(o=r()).done;){var s=o.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}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=Eo(this);for(var o in e)r[o]=e[o];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 o=this.rangeBy(r),s=o.end,a=o.start;return this.source.input.error(e,{column:a.column,line:a.line},{column:s.column,line:s.line},r)}return new xd(e)},n.getProxyProcessor=function(){return{get:function(r,o){return o==="proxyOf"?r:o==="root"?function(){return r.root().toProxy()}:r[o]},set:function(r,o,s){return r[o]===s||(r[o]=s,(o==="prop"||o==="value"||o==="name"||o==="params"||o==="important"||o==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[On]){this[On]=!1;for(var e=this;e=e.parent;)e[On]=!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 o=this.source.start;if(e.index)o=this.positionInside(e.index,r);else if(e.word){r=this.toString();var s=r.indexOf(e.word);s!==-1&&(o=this.positionInside(s,r))}return o},n.positionInside=function(e,r){for(var o=r||this.toString(),s=this.source.start.column,a=this.source.start.line,u=0;u<e;u++)o[u]==="\n"?(s=1,a+=1):s+=1;return{column:s,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},o=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 s=this.toString(),a=s.indexOf(e.word);a!==-1&&(r=this.positionInside(a,s),o=this.positionInside(a+e.word.length,s))}else e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=this.positionInside(e.index)),e.end?o={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?o=this.positionInside(e.endIndex):e.index&&(o=this.positionInside(e.index+1));return(o.line<r.line||o.line===r.line&&o.column<=r.column)&&(o={column:r.column+1,line:r.line}),{end:o,start:r}},n.raw=function(e,r){var o=new kd;return o.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),o=0;o<e;o++)r[o]=arguments[o];if(this.parent){for(var s=this,a=!1,u=I(r),c;!(c=u()).done;){var l=c.value;l===this?a=!0:a?(this.parent.insertAfter(s,l),s=l):this.parent.insertBefore(s,l)}a||this.remove()}return this},n.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},n.toJSON=function(e,r){var o={},s=r==null;r=r||new Map;var a=0;for(var u in this)if(Object.prototype.hasOwnProperty.call(this,u)&&!(u==="parent"||u==="proxyCache")){var c=this[u];if(Array.isArray(c))o[u]=c.map(function(f){return(typeof f=="undefined"?"undefined":M(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof c=="undefined"?"undefined":M(c))==="object"&&c.toJSON)o[u]=c.toJSON(null,r);else if(u==="source"){var l=r.get(c.input);l==null&&(l=a,r.set(c.input,a),a++),o[u]={end:c.end,inputId:l,start:c.start}}else o[u]=c}return s&&(o.inputs=[].concat(r.keys()).map(function(f){return f.toJSON()})),o},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(e){e===void 0&&(e=Ad),e.stringify&&(e=e.stringify);var r="";return e(this,function(o){r+=o}),r},n.warn=function(e,r,o){var s={node:this};for(var a in o)s[a]=o[a];return e.warn(r,s)},ne(t,[{key:"proxyOf",get:function(){return this}}]),t})(),xn=Io;Io.default=Io;var Rd=xn,Oo=(function(t){ue(n,t);function n(i){var e;return i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=B({},i,{value:String(i.value)})),e=t.call(this,i)||this,e.type="decl",e}return ne(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n})(Rd),kn=Oo;Oo.default=Oo;var Md="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Td=function(t){t===void 0&&(t=21);for(var n="",i=t;i--;)n+=Md[Math.random()*64|0];return n},$d={nanoid:Td},Ou=me.SourceMapConsumer,xu=me.SourceMapGenerator,Pd=me.existsSync,Nd=me.readFileSync,xo=me.dirname,Ld=me.join;function Dd(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var ko=(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,o=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=xo(this.mapFile)),o&&(this.text=o)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new Ou(this.text)),this.consumerCache},n.decodeInline=function(e){var r=/^data:application\/json;charset=utf-?8;base64,/,o=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(s.test(e)||a.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(r.test(e)||o.test(e))return Dd(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":M(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 o=e.lastIndexOf(r.pop()),s=e.indexOf("*/",o);o>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(o,s)))}},n.loadFile=function(e){if(this.root=xo(e),Pd(e))return this.mapFile=e,Nd(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 o=r(e);if(o){var s=this.loadFile(o);if(!s)throw new Error("Unable to load previous source map: "+o.toString());return s}}else{if(A(r,Ou))return xu.fromSourceMap(r).toString();if(A(r,xu))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=Ld(xo(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})(),ku=ko;ko.default=ko;var Fd=me.SourceMapConsumer,Ud=me.SourceMapGenerator,Au=me.fileURLToPath,An=me.pathToFileURL,Ao=me.isAbsolute,Ro=me.resolve,Bd=$d.nanoid,Mo=me,Ru=bo,zd=ku,To=Symbol("fromOffsetCache"),Wd=!!(Fd&&Ud),Mu=!!(Ro&&Ao),Rn=(function(){function t(i,e){if(e===void 0&&(e={}),i===null||typeof i=="undefined"||(typeof i=="undefined"?"undefined":M(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&&(!Mu||/^\w+:\/\//.test(e.from)||Ao(e.from)?this.file=e.from:this.file=Ro(e.from)),Mu&&Wd){var r=new zd(this.css,e);if(r.text){this.map=r;var o=r.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+Bd(6)+">"),this.map&&(this.map.file=this.from)}var n=t.prototype;return n.error=function(e,r,o,s){s===void 0&&(s={});var a,u,c;if(r&&(typeof r=="undefined"?"undefined":M(r))==="object"){var l=r,f=o;if(typeof l.offset=="number"){var h=this.fromOffset(l.offset);r=h.line,o=h.col}else r=l.line,o=l.column;if(typeof f.offset=="number"){var g=this.fromOffset(f.offset);u=g.line,c=g.col}else u=f.line,c=f.column}else if(!o){var v=this.fromOffset(r);r=v.line,o=v.col}var y=this.origin(r,o,u,c);return y?a=new Ru(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,s.plugin):a=new Ru(e,u===void 0?r:{column:o,line:r},u===void 0?o:{column:c,line:u},this.css,this.file,s.plugin),a.input={column:o,endColumn:c,endLine:u,line:r,source:this.css},this.file&&(An&&(a.input.url=An(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(e){var r,o;if(this[To])o=this[To];else{var s=this.css.split("\n");o=new Array(s.length);for(var a=0,u=0,c=s.length;u<c;u++)o[u]=a,a+=s[u].length+1;this[To]=o}r=o[o.length-1];var l=0;if(e>=r)l=o.length-1;else for(var f=o.length-2,h;l<f;)if(h=l+(f-l>>1),e<o[h])f=h-1;else if(e>=o[h+1])l=h+1;else{l=h;break}return{col:e-o[l]+1,line:l+1}},n.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Ro(this.map.consumer().sourceRoot||this.map.root||".",e)},n.origin=function(e,r,o,s){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 o=="number"&&(c=a.originalPositionFor({column:s,line:o}));var l;Ao(u.source)?l=An(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||An(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(Au)f.file=Au(l);else throw new Error("file: protocol is not available in this PostCSS build");var h=a.sourceContentFor(u.source);return h&&(f.source=h),f},n.toJSON=function(){for(var e={},r=0,o=["hasBOM","css","file","id"];r<o.length;r++){var s=o[r];this[s]!=null&&(e[s]=this[s])}return this.map&&(e.map=B({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},ne(t,[{key:"from",get:function(){return this.file||this.id}}]),t})(),Mn=Rn;Rn.default=Rn,Mo&&Mo.registerInput&&Mo.registerInput(Rn);var Tu=me.SourceMapConsumer,Tn=me.SourceMapGenerator,$n=me.dirname,$u=me.relative,Pu=me.resolve,Nu=me.sep,Lu=me.pathToFileURL,Gd=Mn,qd=!!(Tu&&Tn),Vd=!!($n&&Pu&&$u&&Nu),jd=(function(){function t(i,e,r,o){this.stringify=i,this.mapOpts=r.map||{},this.root=e,this.opts=r,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var n=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 o=r.value,s=this.toUrl(this.path(o.file)),a=o.root||$n(o.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new Tu(o.text),u.sourcesContent&&(u.sourcesContent=null)):u=o.consumer(),this.map.applySourceMap(u,s,this.toUrl(this.path(a)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var 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(),Vd&&qd&&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=Tn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Tn({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 Tn({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,o=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,c;this.stringify(this.root,function(l,f,h){if(e.css+=l,f&&h!=="end"&&(a.generated.line=r,a.generated.column=o-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=s,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"),o=l.length-c):o+=l.length,f&&h!=="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=o-2,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=o-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 o=this.opts.to?$n(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(o=$n(Pu(o,this.mapOpts.annotation)));var s=$u(o,e);return this.m