mixpanel-browser 2.75.0 → 2.77.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.
Files changed (62) hide show
  1. package/.claude/settings.local.json +14 -0
  2. package/.github/dependabot.yml +8 -0
  3. package/.github/workflows/integration-tests.yml +4 -4
  4. package/.github/workflows/unit-tests.yml +4 -4
  5. package/CHANGELOG.md +14 -0
  6. package/build.sh +10 -8
  7. package/dist/async-modules/mixpanel-recorder-DLKbUIEE.js +23669 -0
  8. package/dist/async-modules/mixpanel-recorder-wIWnMDLA.min.js +2 -0
  9. package/dist/async-modules/mixpanel-recorder-wIWnMDLA.min.js.map +1 -0
  10. package/dist/async-modules/mixpanel-targeting-CTcftSJC.min.js +2 -0
  11. package/dist/async-modules/mixpanel-targeting-CTcftSJC.min.js.map +1 -0
  12. package/dist/async-modules/mixpanel-targeting-CmVvUyFM.js +2520 -0
  13. package/dist/mixpanel-core.cjs.d.ts +70 -1
  14. package/dist/mixpanel-core.cjs.js +724 -426
  15. package/dist/mixpanel-recorder.js +791 -41
  16. package/dist/mixpanel-recorder.min.js +1 -1
  17. package/dist/mixpanel-recorder.min.js.map +1 -1
  18. package/dist/mixpanel-targeting.js +6 -62
  19. package/dist/mixpanel-targeting.min.js +1 -1
  20. package/dist/mixpanel-targeting.min.js.map +1 -1
  21. package/dist/mixpanel-with-async-modules.cjs.d.ts +70 -1
  22. package/dist/mixpanel-with-async-modules.cjs.js +724 -426
  23. package/dist/mixpanel-with-async-recorder.cjs.d.ts +70 -1
  24. package/dist/mixpanel-with-async-recorder.cjs.js +724 -426
  25. package/dist/mixpanel-with-recorder.d.ts +70 -1
  26. package/dist/mixpanel-with-recorder.js +1471 -450
  27. package/dist/mixpanel-with-recorder.min.d.ts +70 -1
  28. package/dist/mixpanel-with-recorder.min.js +1 -1
  29. package/dist/mixpanel.amd.d.ts +70 -1
  30. package/dist/mixpanel.amd.js +1473 -504
  31. package/dist/mixpanel.cjs.d.ts +70 -1
  32. package/dist/mixpanel.cjs.js +1473 -504
  33. package/dist/mixpanel.globals.js +724 -426
  34. package/dist/mixpanel.min.js +189 -182
  35. package/dist/mixpanel.module.d.ts +70 -1
  36. package/dist/mixpanel.module.js +1473 -504
  37. package/dist/mixpanel.umd.d.ts +70 -1
  38. package/dist/mixpanel.umd.js +1473 -504
  39. package/dist/rrweb-bundled.js +61 -9
  40. package/dist/rrweb-compiled.js +56 -9
  41. package/logo.svg +5 -0
  42. package/package.json +6 -4
  43. package/rollup.config.mjs +163 -46
  44. package/src/autocapture/index.js +10 -27
  45. package/src/config.js +9 -3
  46. package/src/flags/index.js +1 -2
  47. package/src/index.d.ts +70 -1
  48. package/src/mixpanel-core.js +77 -112
  49. package/src/recorder/index.js +1 -1
  50. package/src/recorder/recorder.js +5 -1
  51. package/src/recorder/rrweb-network-plugin.js +649 -0
  52. package/src/recorder/session-recording.js +36 -12
  53. package/src/recorder/utils.js +27 -1
  54. package/src/recorder-manager.js +324 -0
  55. package/src/request-batcher.js +1 -1
  56. package/src/targeting/event-matcher.js +2 -57
  57. package/src/targeting/index.js +1 -1
  58. package/src/targeting/loader.js +1 -1
  59. package/src/utils.js +13 -1
  60. package/testServer.js +69 -1
  61. package/src/globals.js +0 -14
  62. /package/src/loaders/{loader-module-with-async-recorder.d.ts → loader-module-with-async-modules.d.ts} +0 -0
@@ -1,2 +1,2 @@
1
- (function(){"use strict";var W;if(typeof window=="undefined"){var ks={hostname:""};W={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:ks,referrer:""},screen:{width:0,height:0},location:ks,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else W=window;var ac="__mp_recorder";function _s(r,i){(i==null||i>r.length)&&(i=r.length);for(var o=0,e=new Array(i);o<i;o++)e[o]=r[o];return e}function Ps(r,i,o,e,t,n,s){try{var a=r[n](s),u=a.value}catch(l){o(l);return}a.done?i(u):Promise.resolve(u).then(e,t)}function kr(r){return function(){var i=this,o=arguments;return new Promise(function(e,t){var n=r.apply(i,o);function s(u){Ps(n,e,t,s,a,"next",u)}function a(u){Ps(n,e,t,s,a,"throw",u)}s(void 0)})}}function _r(r,i,o){return Ts()?_r=Reflect.construct:_r=function(t,n,s){var a=[null];a.push.apply(a,n);var u=Function.bind.apply(t,a),l=new u;return s&&Yt(l,s.prototype),l},_r.apply(null,arguments)}function uc(r,i){for(var o=0;o<i.length;o++){var e=i[o];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(r,e.key,e)}}function Z(r,i,o){return i&&uc(r.prototype,i),r}function T(){return T=Object.assign||function(r){for(var i=1;i<arguments.length;i++){var o=arguments[i];for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(r[e]=o[e])}return r},T.apply(this,arguments)}function pi(r){return pi=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)},pi(r)}function ee(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),i&&Yt(r,i)}function E(r,i){return i!=null&&typeof Symbol!="undefined"&&i[Symbol.hasInstance]?!!i[Symbol.hasInstance](r):r instanceof i}function lc(r){return Function.toString.call(r).indexOf("[native code]")!==-1}function et(r,i){if(r==null)return{};var o={},e=Object.keys(r),t,n;for(n=0;n<e.length;n++)t=e[n],!(i.indexOf(t)>=0)&&(o[t]=r[t]);return o}function Yt(r,i){return Yt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Yt(r,i)}function M(r){"@swc/helpers - typeof";return r&&typeof Symbol!="undefined"&&r.constructor===Symbol?"symbol":typeof r}function fc(r,i){if(r){if(typeof r=="string")return _s(r,i);var o=Object.prototype.toString.call(r).slice(8,-1);if(o==="Object"&&r.constructor&&(o=r.constructor.name),o==="Map"||o==="Set")return Array.from(o);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return _s(r,i)}}function qt(r){var i=typeof Map=="function"?new Map:void 0;return qt=function(e){if(e===null||!lc(e))return e;if(typeof e!="function")throw new TypeError("Super expression must either be null or a function");if(typeof i!="undefined"){if(i.has(e))return i.get(e);i.set(e,t)}function t(){return _r(e,arguments,pi(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Yt(t,e)},qt(r)}function Ts(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(i){}return(Ts=function(){return!!r})()}function I(r,i){var o=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(o)return(o=o.call(r)).next.bind(o);if(Array.isArray(r)||(o=fc(r))||i){o&&(r=o);var e=0;return function(){return e>=r.length?{done:!0}:{done:!1,value:r[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 tt(r,i){var o,e,t,n,s={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]};return n={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(n[Symbol.iterator]=function(){return this}),n;function a(l){return function(f){return u([l,f])}}function u(l){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,e&&(t=l[0]&2?e.return:l[0]?e.throw||((t=e.return)&&t.call(e),0):e.next)&&!(t=t.call(e,l[1])).done)return t;switch(e=0,t&&(l=[l[0]&2,t.value]),l[0]){case 0:case 1:t=l;break;case 4:return s.label++,{value:l[1],done:!1};case 5:s.label++,e=l[1],l=[0];continue;case 7:l=s.ops.pop(),s.trys.pop();continue;default:if(t=s.trys,!(t=t.length>0&&t[t.length-1])&&(l[0]===6||l[0]===2)){s=0;continue}if(l[0]===3&&(!t||l[1]>t[0]&&l[1]<t[3])){s.label=l[1];break}if(l[0]===6&&s.label<t[1]){s.label=t[1],t=l;break}if(t&&s.label<t[2]){s.label=t[2],s.ops.push(l);break}t[2]&&s.ops.pop(),s.trys.pop();continue}l=i.call(r,s)}catch(f){l=[6,f],e=0}finally{o=t=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function di(r){var i=typeof Symbol=="function"&&Symbol.iterator,o=i&&r[i],e=0;if(o)return o.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&e>=r.length&&(r=void 0),{value:r&&r[e++],done:!r}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}var cc=Object.defineProperty,hc=function(r,i,o){return i in r?cc(r,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[i]=o},O=function(r,i,o){return hc(r,(typeof i=="undefined"?"undefined":M(i))!=="symbol"?i+"":i,o)},Ns,pc=Object.defineProperty,dc=function(r,i,o){return i in r?pc(r,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[i]=o},Ls=function(r,i,o){return dc(r,(typeof i=="undefined"?"undefined":M(i))!=="symbol"?i+"":i,o)},he=(function(r){return r[r.Document=0]="Document",r[r.DocumentType=1]="DocumentType",r[r.Element=2]="Element",r[r.Text=3]="Text",r[r.CDATA=4]="CDATA",r[r.Comment=5]="Comment",r})(he||{}),Ds={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Fs={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Pr={},vc=function(){return!!globalThis.Zone};function vi(r){if(Pr[r])return Pr[r];var i=globalThis[r],o=i.prototype,e=r in Ds?Ds[r]:void 0,t=!!(e&&e.every(function(f){var c,h;return!!((h=(c=Object.getOwnPropertyDescriptor(o,f))==null?void 0:c.get)!=null&&h.toString().includes("[native code]"))})),n=r in Fs?Fs[r]:void 0,s=!!(n&&n.every(function(f){var c;return typeof o[f]=="function"&&((c=o[f])==null?void 0:c.toString().includes("[native code]"))}));if(t&&s&&!vc())return Pr[r]=i.prototype,i.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return i.prototype;var l=u[r].prototype;return document.body.removeChild(a),l?Pr[r]=l:o}catch(f){return o}}var mi={};function je(r,i,o){var e,t=r+"."+String(o);if(mi[t])return mi[t].call(i);var n=vi(r),s=(e=Object.getOwnPropertyDescriptor(n,o))==null?void 0:e.get;return s?(mi[t]=s,s.call(i)):i[o]}var gi={};function Bs(r,i,o){var e=r+"."+String(o);if(gi[e])return gi[e].bind(i);var t=vi(r),n=t[o];return typeof n!="function"?i[o]:(gi[e]=n,n.bind(i))}function mc(r){return je("Node",r,"childNodes")}function gc(r){return je("Node",r,"parentNode")}function yc(r){return je("Node",r,"parentElement")}function wc(r){return je("Node",r,"textContent")}function Sc(r,i){return Bs("Node",r,"contains")(i)}function bc(r){return Bs("Node",r,"getRootNode")()}function Cc(r){return!r||!("host"in r)?null:je("ShadowRoot",r,"host")}function Ic(r){return r.styleSheets}function Oc(r){return!r||!("shadowRoot"in r)?null:je("Element",r,"shadowRoot")}function xc(r,i){return je("Element",r,"querySelector")(i)}function Rc(r,i){return je("Element",r,"querySelectorAll")(i)}function Ec(){return vi("MutationObserver").constructor}function Ac(r,i,o){try{if(!(i in r))return function(){};var e=r[i],t=o(e);return typeof t=="function"&&(t.prototype=t.prototype||{},Object.defineProperties(t,{__rrweb_original__:{enumerable:!1,value:e}})),r[i]=t,function(){r[i]=e}}catch(n){return function(){}}}var ve={childNodes:mc,parentNode:gc,parentElement:yc,textContent:wc,contains:Sc,getRootNode:bc,host:Cc,styleSheets:Ic,shadowRoot:Oc,querySelector:xc,querySelectorAll:Rc,mutationObserver:Ec,patch:Ac};function Us(r){return r.nodeType===r.ELEMENT_NODE}function Jt(r){var i=r&&"host"in r&&"mode"in r&&ve.host(r)||null;return!!(i&&"shadowRoot"in i&&ve.shadowRoot(i)===r)}function Ht(r){return Object.prototype.toString.call(r)==="[object ShadowRoot]"}function Mc(r){return r.includes(" background-clip: text;")&&!r.includes(" -webkit-background-clip: text;")&&(r=r.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),r}function $c(r){var i=r.cssText;if(i.split('"').length<3)return i;var o=["@import","url("+JSON.stringify(r.href)+")"];return r.layerName===""?o.push("layer"):r.layerName&&o.push("layer("+r.layerName+")"),r.supportsText&&o.push("supports("+r.supportsText+")"),r.media.length&&o.push(r.media.mediaText),o.join(" ")+";"}function yi(r){try{var i=r.rules||r.cssRules;if(!i)return null;var o=r.href;!o&&r.ownerNode&&r.ownerNode.ownerDocument&&(o=r.ownerNode.ownerDocument.location.href);var e=Array.from(i,function(t){return zs(t,o)}).join("");return Mc(e)}catch(t){return null}}function zs(r,i){if(_c(r)){var o;try{o=yi(r.styleSheet)||$c(r)}catch(t){o=r.cssText}return r.styleSheet.href?Lr(o,r.styleSheet.href):o}else{var e=r.cssText;return Pc(r)&&r.selectorText.includes(":")&&(e=kc(e)),i?Lr(e,i):e}}function kc(r){var i=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return r.replace(i,"$1\\$2")}function _c(r){return"styleSheet"in r}function Pc(r){return"selectorText"in r}var Ws=(function(){function r(){Ls(this,"idNodeMap",new Map),Ls(this,"nodeMetaMap",new WeakMap)}var i=r.prototype;return i.getId=function(e){var t;if(!e)return-1;var n=(t=this.getMeta(e))==null?void 0:t.id;return n!=null?n:-1},i.getNode=function(e){return this.idNodeMap.get(e)||null},i.getIds=function(){return Array.from(this.idNodeMap.keys())},i.getMeta=function(e){return this.nodeMetaMap.get(e)||null},i.removeNodeFromMap=function(e,t){var n=this;t===void 0&&(t=!1);var s=this.getId(e);this.idNodeMap.delete(s),t&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEach(function(a){return n.removeNodeFromMap(a,t)})},i.has=function(e){return this.idNodeMap.has(e)},i.hasNode=function(e){return this.nodeMetaMap.has(e)},i.add=function(e,t){var n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)},i.replace=function(e,t){var n=this.getNode(e);if(n){var s=this.nodeMetaMap.get(n);s&&this.nodeMetaMap.set(t,s)}this.idNodeMap.set(e,t)},i.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},r})();function Tc(){return new Ws}function Tr(r){var i=r.element,o=r.maskInputOptions,e=r.tagName,t=r.type,n=r.value,s=r.maskInputFn,a=n||"",u=t&&rt(t);return(o[e.toLowerCase()]||u&&o[u])&&(s?a=s(a,i):a="*".repeat(a.length)),a}function rt(r){return r.toLowerCase()}var js="__rrweb_original__";function Nc(r){var i=r.getContext("2d");if(!i)return!0;for(var o=50,e=0;e<r.width;e+=o)for(var t=0;t<r.height;t+=o){var n=i.getImageData,s=js in n?n[js]:n,a=new Uint32Array(s.call(i,e,t,Math.min(o,r.width-e),Math.min(o,r.height-t)).data.buffer);if(a.some(function(u){return u!==0}))return!1}return!0}function Nr(r){var i=r.type;return r.hasAttribute("data-rr-is-password")?"password":i?rt(i):null}function Gs(r,i){var o;try{o=new URL(r,i!=null?i:window.location.href)}catch(s){return null}var e=/\.([0-9a-z]+)(?:$)/i,t=o.pathname.match(e),n;return(n=t==null?void 0:t[1])!=null?n:null}function Lc(r){var i="";return r.indexOf("//")>-1?i=r.split("/").slice(0,3).join("/"):i=r.split("/")[0],i=i.split("?")[0],i}var Dc=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Fc=/^(?:[a-z+]+:)?\/\//i,Bc=/^www\..*/i,Uc=/^(data:)([^,]*),(.*)/i;function Lr(r,i){return(r||"").replace(Dc,function(o,e,t,n,s,a){var u=t||s||a,l=e||n||"";if(!u)return o;if(Fc.test(u)||Bc.test(u)||Uc.test(u))return"url("+l+u+l+")";if(u[0]==="/")return"url("+l+(Lc(i)+u)+l+")";var f=i.split("/"),c=u.split("/");f.pop();for(var h=I(c),v;!(v=h()).done;){var d=v.value;d!=="."&&(d===".."?f.pop():f.push(d))}return"url("+l+f.join("/")+l+")"})}function Dr(r,i){return i===void 0&&(i=!1),i?r.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):r.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function zc(r,i,o){o===void 0&&(o=!1);var e=Array.from(i.childNodes),t=[],n=0;if(e.length>1&&r&&typeof r=="string"){for(var s=Dr(r,o),a=s.length/r.length,u=1;u<e.length;u++)if(e[u].textContent&&typeof e[u].textContent=="string"){for(var l=Dr(e[u].textContent,o),f=100,c=3;c<l.length&&(l[c].match(/[a-zA-Z0-9]/)||l.indexOf(l.substring(0,c),1)!==-1);c++);for(;c<l.length;c++){var h=l.substring(0,c),v=s.split(h),d=-1;if(v.length===2)d=v[0].length;else if(v.length>2&&v[0]===""&&e[u-1].textContent!=="")d=s.indexOf(h,1);else if(v.length===1){if(h=h.substring(0,h.length-1),v=s.split(h),v.length<=1)return t.push(r),t;c=f+1}else c===l.length-1&&(d=s.indexOf(h));if(v.length>=2&&c>f){var g=e[u-1].textContent;if(g&&typeof g=="string"){var p=Dr(g).length;d=s.indexOf(h,p)}d===-1&&(d=v[0].length)}if(d!==-1){for(var m=Math.floor(d/a);m>0&&m<r.length;){if(n+=1,n>50*e.length)return t.push(r),t;var w=Dr(r.substring(0,m),o);if(w.length===d){t.push(r.substring(0,m)),r=r.substring(m),s=s.substring(d);break}else w.length<d?m+=Math.max(1,Math.floor((d-w.length)/a)):m-=Math.max(1,Math.floor((w.length-d)*a))}break}}}}return t.push(r),t}function Wc(r,i){return zc(r,i).join("/* rr_split */")}var jc=1,Gc=new RegExp("[^a-z0-9-_:]"),Zt=-2;function Vs(){return jc++}function Vc(r){if(E(r,HTMLFormElement))return"form";var i=rt(r.tagName);return Gc.test(i)?"div":i}var yt,Ys,Yc=/^[^ \t\n\r\u000c]+/,qc=/^[, \t\n\r\u000c]+/;function Jc(r,i){if(i.trim()==="")return i;var o=0;function e(l){var f,c=l.exec(i.substring(o));return c?(f=c[0],o+=f.length,f):""}for(var t=[];e(qc),!(o>=i.length);){var n=e(Yc);if(n.slice(-1)===",")n=wt(r,n.substring(0,n.length-1)),t.push(n);else{var s="";n=wt(r,n);for(var a=!1;;){var u=i.charAt(o);if(u===""){t.push((n+s).trim());break}else if(a)u===")"&&(a=!1);else if(u===","){o+=1,t.push((n+s).trim());break}else u==="("&&(a=!0);s+=u,o+=1}}}return t.join(", ")}var qs=new WeakMap;function wt(r,i){return!i||i.trim()===""?i:wi(r,i)}function Hc(r){return!!(r.tagName==="svg"||r.ownerSVGElement)}function wi(r,i){var o=qs.get(r);if(o||(o=r.createElement("a"),qs.set(r,o)),!i)i="";else if(i.startsWith("blob:")||i.startsWith("data:"))return i;return o.setAttribute("href",i),o.href}function Js(r,i,o,e){return e&&(o==="src"||o==="href"&&!(i==="use"&&e[0]==="#")||o==="xlink:href"&&e[0]!=="#"||o==="background"&&(i==="table"||i==="td"||i==="th")?wt(r,e):o==="srcset"?Jc(r,e):o==="style"?Lr(e,wi(r)):i==="object"&&o==="data"?wt(r,e):e)}function Hs(r,i,o){return(r==="video"||r==="audio")&&i==="autoplay"}function Zc(r,i,o){try{if(typeof i=="string"){if(r.classList.contains(i))return!0}else for(var e=r.classList.length;e--;){var t=r.classList[e];if(i.test(t))return!0}if(o)return r.matches(o)}catch(n){}return!1}function Fr(r,i,o){if(!r)return!1;if(r.nodeType!==r.ELEMENT_NODE)return o?Fr(ve.parentNode(r),i,o):!1;for(var e=r.classList.length;e--;){var t=r.classList[e];if(i.test(t))return!0}return o?Fr(ve.parentNode(r),i,o):!1}function Zs(r,i,o,e){var t;if(Us(r)){if(t=r,!ve.childNodes(t).length)return!1}else{if(ve.parentElement(r)===null)return!1;t=ve.parentElement(r)}try{if(typeof i=="string"){if(e){if(t.closest("."+i))return!0}else if(t.classList.contains(i))return!0}else if(Fr(t,i,e))return!0;if(o){if(e){if(t.closest(o))return!0}else if(t.matches(o))return!0}}catch(n){}return!1}function Kc(r,i,o){var e=r.contentWindow;if(e){var t=!1,n;try{n=e.document.readyState}catch(u){return}if(n!=="complete"){var s=setTimeout(function(){t||(i(),t=!0)},o);r.addEventListener("load",function(){clearTimeout(s),t=!0,i()});return}var a="about:blank";if(e.location.href!==a||r.src===a||r.src==="")return setTimeout(i,0),r.addEventListener("load",i);r.addEventListener("load",i)}}function Xc(r,i,o){var e=!1,t;try{t=r.sheet}catch(s){return}if(!t){var n=setTimeout(function(){e||(i(),e=!0)},o);r.addEventListener("load",function(){clearTimeout(n),e=!0,i()})}}function Qc(r,i){var o=i.doc,e=i.mirror,t=i.blockClass,n=i.blockSelector,s=i.needsMask,a=i.inlineStylesheet,u=i.maskInputOptions,l=u===void 0?{}:u,f=i.maskTextFn,c=i.maskInputFn,h=i.dataURLOptions,v=h===void 0?{}:h,d=i.inlineImages,g=i.recordCanvas,p=i.keepIframeSrcFn,m=i.newlyAddedElement,w=m===void 0?!1:m,S=i.cssCaptured,b=S===void 0?!1:S,C=eh(o,e);switch(r.nodeType){case r.DOCUMENT_NODE:return r.compatMode!=="CSS1Compat"?{type:he.Document,childNodes:[],compatMode:r.compatMode}:{type:he.Document,childNodes:[]};case r.DOCUMENT_TYPE_NODE:return{type:he.DocumentType,name:r.name,publicId:r.publicId,systemId:r.systemId,rootId:C};case r.ELEMENT_NODE:return rh(r,{doc:o,blockClass:t,blockSelector:n,inlineStylesheet:a,maskInputOptions:l,maskInputFn:c,dataURLOptions:v,inlineImages:d,recordCanvas:g,keepIframeSrcFn:p,newlyAddedElement:w,rootId:C});case r.TEXT_NODE:return th(r,{doc:o,needsMask:s,maskTextFn:f,rootId:C,cssCaptured:b});case r.CDATA_SECTION_NODE:return{type:he.CDATA,textContent:"",rootId:C};case r.COMMENT_NODE:return{type:he.Comment,textContent:ve.textContent(r)||"",rootId:C};default:return!1}}function eh(r,i){if(i.hasNode(r)){var o=i.getId(r);return o===1?void 0:o}}function th(r,i){var o=i.needsMask,e=i.maskTextFn,t=i.rootId,n=i.cssCaptured,s=ve.parentNode(r),a=s&&s.tagName,u="",l=a==="STYLE"?!0:void 0,f=a==="SCRIPT"?!0:void 0;return f?u="SCRIPT_PLACEHOLDER":n||(u=ve.textContent(r),l&&u&&(u=Lr(u,wi(i.doc)))),!l&&!f&&u&&o&&(u=e?e(u,ve.parentElement(r)):u.replace(/[\S]/g,"*")),{type:he.Text,textContent:u||"",rootId:t}}function rh(r,i){for(var o=i.doc,e=i.blockClass,t=i.blockSelector,n=i.inlineStylesheet,s=i.maskInputOptions,a=s===void 0?{}:s,u=i.maskInputFn,l=i.dataURLOptions,f=l===void 0?{}:l,c=i.inlineImages,h=i.recordCanvas,v=i.keepIframeSrcFn,d=i.newlyAddedElement,g=d===void 0?!1:d,p=i.rootId,m=Zc(r,e,t),w=Vc(r),S={},b=r.attributes.length,C=0;C<b;C++){var x=r.attributes[C];Hs(w,x.name,x.value)||(S[x.name]=Js(o,w,rt(x.name),x.value))}if(w==="link"&&n){var $=Array.from(o.styleSheets).find(function(Ie){return Ie.href===r.href}),R=null;$&&(R=yi($)),R&&(delete S.rel,delete S.href,S._cssText=R)}if(w==="style"&&r.sheet){var k=yi(r.sheet);k&&(r.childNodes.length>1&&(k=Wc(k,r)),S._cssText=k)}if(w==="input"||w==="textarea"||w==="select"){var N=r.value,ae=r.checked;S.type!=="radio"&&S.type!=="checkbox"&&S.type!=="submit"&&S.type!=="button"&&N?S.value=Tr({element:r,type:Nr(r),tagName:w,value:N,maskInputOptions:a,maskInputFn:u}):ae&&(S.checked=ae)}if(w==="option"&&(r.selected&&!a.select?S.selected=!0:delete S.selected),w==="dialog"&&r.open&&(S.rr_open_mode=r.matches("dialog:modal")?"modal":"non-modal"),w==="canvas"&&h){if(r.__context==="2d")Nc(r)||(S.rr_dataURL=r.toDataURL(f.type,f.quality));else if(!("__context"in r)){var _=r.toDataURL(f.type,f.quality),L=o.createElement("canvas");L.width=r.width,L.height=r.height;var ie=L.toDataURL(f.type,f.quality);_!==ie&&(S.rr_dataURL=_)}}if(w==="img"&&c){yt||(yt=o.createElement("canvas"),Ys=yt.getContext("2d"));var z=r,Ce=z.currentSrc||z.getAttribute("src")||"<unknown-src>",Se=z.crossOrigin,pe=function(){z.removeEventListener("load",pe);try{yt.width=z.naturalWidth,yt.height=z.naturalHeight,Ys.drawImage(z,0,0),S.rr_dataURL=yt.toDataURL(f.type,f.quality)}catch(Ie){if(z.crossOrigin!=="anonymous"){z.crossOrigin="anonymous",z.complete&&z.naturalWidth!==0?pe():z.addEventListener("load",pe);return}else console.warn("Cannot inline img src="+Ce+"! Error: "+Ie)}z.crossOrigin==="anonymous"&&(Se?S.crossOrigin=Se:z.removeAttribute("crossorigin"))};z.complete&&z.naturalWidth!==0?pe():z.addEventListener("load",pe)}if(w==="audio"||w==="video"){var oe=S;oe.rr_mediaState=r.paused?"paused":"played",oe.rr_mediaCurrentTime=r.currentTime,oe.rr_mediaPlaybackRate=r.playbackRate,oe.rr_mediaMuted=r.muted,oe.rr_mediaLoop=r.loop,oe.rr_mediaVolume=r.volume}if(g||(r.scrollLeft&&(S.rr_scrollLeft=r.scrollLeft),r.scrollTop&&(S.rr_scrollTop=r.scrollTop)),m){var de=r.getBoundingClientRect(),lt=de.width,Te=de.height;S={class:S.class,rr_width:""+lt+"px",rr_height:""+Te+"px"}}w==="iframe"&&!v(S.src)&&(r.contentDocument||(S.rr_src=S.src),delete S.src);var zt;try{customElements.get(w)&&(zt=!0)}catch(Ie){}return{type:he.Element,tagName:w,attributes:S,childNodes:[],isSVG:Hc(r)||void 0,needBlock:m,rootId:p,isCustom:zt}}function J(r){return r==null?"":r.toLowerCase()}function nh(r,i){if(i.comment&&r.type===he.Comment)return!0;if(r.type===he.Element){if(i.script&&(r.tagName==="script"||r.tagName==="link"&&(r.attributes.rel==="preload"&&r.attributes.as==="script"||r.attributes.rel==="modulepreload")||r.tagName==="link"&&r.attributes.rel==="prefetch"&&typeof r.attributes.href=="string"&&Gs(r.attributes.href)==="js"))return!0;if(i.headFavicon&&(r.tagName==="link"&&r.attributes.rel==="shortcut icon"||r.tagName==="meta"&&(J(r.attributes.name).match(/^msapplication-tile(image|color)$/)||J(r.attributes.name)==="application-name"||J(r.attributes.rel)==="icon"||J(r.attributes.rel)==="apple-touch-icon"||J(r.attributes.rel)==="shortcut icon")))return!0;if(r.tagName==="meta"){if(i.headMetaDescKeywords&&J(r.attributes.name).match(/^description|keywords$/))return!0;if(i.headMetaSocial&&(J(r.attributes.property).match(/^(og|twitter|fb):/)||J(r.attributes.name).match(/^(og|twitter):/)||J(r.attributes.name)==="pinterest"))return!0;if(i.headMetaRobots&&(J(r.attributes.name)==="robots"||J(r.attributes.name)==="googlebot"||J(r.attributes.name)==="bingbot"))return!0;if(i.headMetaHttpEquiv&&r.attributes["http-equiv"]!==void 0)return!0;if(i.headMetaAuthorship&&(J(r.attributes.name)==="author"||J(r.attributes.name)==="generator"||J(r.attributes.name)==="framework"||J(r.attributes.name)==="publisher"||J(r.attributes.name)==="progid"||J(r.attributes.property).match(/^article:/)||J(r.attributes.property).match(/^product:/)))return!0;if(i.headMetaVerification&&(J(r.attributes.name)==="google-site-verification"||J(r.attributes.name)==="yandex-verification"||J(r.attributes.name)==="csrf-token"||J(r.attributes.name)==="p:domain_verify"||J(r.attributes.name)==="verify-v1"||J(r.attributes.name)==="verification"||J(r.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function St(r,i){var o=i.doc,e=i.mirror,t=i.blockClass,n=i.blockSelector,s=i.maskTextClass,a=i.maskTextSelector,u=i.skipChild,l=u===void 0?!1:u,f=i.inlineStylesheet,c=f===void 0?!0:f,h=i.maskInputOptions,v=h===void 0?{}:h,d=i.maskTextFn,g=i.maskInputFn,p=i.slimDOMOptions,m=i.dataURLOptions,w=m===void 0?{}:m,S=i.inlineImages,b=S===void 0?!1:S,C=i.recordCanvas,x=C===void 0?!1:C,$=i.onSerialize,R=i.onIframeLoad,k=i.iframeLoadTimeout,N=k===void 0?5e3:k,ae=i.onStylesheetLoad,_=i.stylesheetLoadTimeout,L=_===void 0?5e3:_,ie=i.keepIframeSrcFn,z=ie===void 0?function(){return!1}:ie,Ce=i.newlyAddedElement,Se=Ce===void 0?!1:Ce,pe=i.cssCaptured,oe=pe===void 0?!1:pe,de=i.needsMask,lt=i.preserveWhiteSpace,Te=lt===void 0?!0:lt;if(!de){var zt=de===void 0;de=Zs(r,s,a,zt)}var Ie=Qc(r,{doc:o,mirror:e,blockClass:t,blockSelector:n,needsMask:de,inlineStylesheet:c,maskInputOptions:v,maskTextFn:d,maskInputFn:g,dataURLOptions:w,inlineImages:b,recordCanvas:x,keepIframeSrcFn:z,newlyAddedElement:Se,cssCaptured:oe});if(!Ie)return console.warn(r,"not serialized"),null;var ft;e.hasNode(r)?ft=e.getId(r):nh(Ie,p)||!Te&&Ie.type===he.Text&&!Ie.textContent.replace(/^\s+|\s+$/gm,"").length?ft=Zt:ft=Vs();var j=Object.assign(Ie,{id:ft});if(e.add(r,j),ft===Zt)return null;$&&$(r);var ct=!l;if(j.type===he.Element){ct=ct&&!j.needBlock,delete j.needBlock;var ht=ve.shadowRoot(r);ht&&Ht(ht)&&(j.isShadowHost=!0)}if((j.type===he.Document||j.type===he.Element)&&ct){p.headWhitespace&&j.type===he.Element&&j.tagName==="head"&&(Te=!1);var Wt={doc:o,mirror:e,blockClass:t,blockSelector:n,needsMask:de,maskTextClass:s,maskTextSelector:a,skipChild:l,inlineStylesheet:c,maskInputOptions:v,maskTextFn:d,maskInputFn:g,slimDOMOptions:p,dataURLOptions:w,inlineImages:b,recordCanvas:x,preserveWhiteSpace:Te,onSerialize:$,onIframeLoad:R,iframeLoadTimeout:N,onStylesheetLoad:ae,stylesheetLoadTimeout:L,keepIframeSrcFn:z,cssCaptured:!1};if(!(j.type===he.Element&&j.tagName==="textarea"&&j.attributes.value!==void 0)){j.type===he.Element&&j.attributes._cssText!==void 0&&typeof j.attributes._cssText=="string"&&(Wt.cssCaptured=!0);for(var Ar=I(Array.from(ve.childNodes(r))),Mr;!(Mr=Ar()).done;){var Es=Mr.value,ci=St(Es,Wt);ci&&j.childNodes.push(ci)}}var Qe=null;if(Us(r)&&(Qe=ve.shadowRoot(r)))for(var pt=I(Array.from(ve.childNodes(Qe))),jt;!(jt=pt()).done;){var $r=jt.value,Gt=St($r,Wt);Gt&&(Ht(Qe)&&(Gt.isShadow=!0),j.childNodes.push(Gt))}}var dt=ve.parentNode(r);return dt&&Jt(dt)&&Ht(dt)&&(j.isShadow=!0),j.type===he.Element&&j.tagName==="iframe"&&Kc(r,function(){var ze=r.contentDocument;if(ze&&R){var vt=St(ze,{doc:ze,mirror:e,blockClass:t,blockSelector:n,needsMask:de,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:c,maskInputOptions:v,maskTextFn:d,maskInputFn:g,slimDOMOptions:p,dataURLOptions:w,inlineImages:b,recordCanvas:x,preserveWhiteSpace:Te,onSerialize:$,onIframeLoad:R,iframeLoadTimeout:N,onStylesheetLoad:ae,stylesheetLoadTimeout:L,keepIframeSrcFn:z});vt&&R(r,vt)}},N),j.type===he.Element&&j.tagName==="link"&&typeof j.attributes.rel=="string"&&(j.attributes.rel==="stylesheet"||j.attributes.rel==="preload"&&typeof j.attributes.href=="string"&&Gs(j.attributes.href)==="css")&&Xc(r,function(){if(ae){var ze=St(r,{doc:o,mirror:e,blockClass:t,blockSelector:n,needsMask:de,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:c,maskInputOptions:v,maskTextFn:d,maskInputFn:g,slimDOMOptions:p,dataURLOptions:w,inlineImages:b,recordCanvas:x,preserveWhiteSpace:Te,onSerialize:$,onIframeLoad:R,iframeLoadTimeout:N,onStylesheetLoad:ae,stylesheetLoadTimeout:L,keepIframeSrcFn:z});ze&&ae(r,ze)}},L),j}function ih(r,i){var o=i||{},e=o.mirror,t=e===void 0?new Ws:e,n=o.blockClass,s=n===void 0?"rr-block":n,a=o.blockSelector,u=a===void 0?null:a,l=o.maskTextClass,f=l===void 0?"rr-mask":l,c=o.maskTextSelector,h=c===void 0?null:c,v=o.inlineStylesheet,d=v===void 0?!0:v,g=o.inlineImages,p=g===void 0?!1:g,m=o.recordCanvas,w=m===void 0?!1:m,S=o.maskAllInputs,b=S===void 0?!1:S,C=o.maskTextFn,x=o.maskInputFn,$=o.slimDOM,R=$===void 0?!1:$,k=o.dataURLOptions,N=o.preserveWhiteSpace,ae=o.onSerialize,_=o.onIframeLoad,L=o.iframeLoadTimeout,ie=o.onStylesheetLoad,z=o.stylesheetLoadTimeout,Ce=o.keepIframeSrcFn,Se=Ce===void 0?function(){return!1}:Ce,pe=b===!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===!1?{password:!0}:b,oe=R===!0||R==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:R==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:R===!1?{}:R;return St(r,{doc:r,mirror:t,blockClass:s,blockSelector:u,maskTextClass:f,maskTextSelector:h,skipChild:!1,inlineStylesheet:d,maskInputOptions:pe,maskTextFn:C,maskInputFn:x,slimDOMOptions:oe,dataURLOptions:k,inlineImages:p,recordCanvas:w,preserveWhiteSpace:N,onSerialize:ae,onIframeLoad:_,iframeLoadTimeout:L,onStylesheetLoad:ie,stylesheetLoadTimeout:z,keepIframeSrcFn:Se,newlyAddedElement:!1})}function oh(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function sh(r){if(r.__esModule)return r;var i=r.default;if(typeof i=="function"){var o=function e(){return E(this,e)?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};o.prototype=i.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(r).forEach(function(e){var t=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(o,e,t.get?t:{enumerable:!0,get:function(){return r[e]}})}),o}var Si={exports:{}},K=String,Ks=function(){return{isColorSupported:!1,reset:K,bold:K,dim:K,italic:K,underline:K,inverse:K,hidden:K,strikethrough:K,black:K,red:K,green:K,yellow:K,blue:K,magenta:K,cyan:K,white:K,gray:K,bgBlack:K,bgRed:K,bgGreen:K,bgYellow:K,bgBlue:K,bgMagenta:K,bgCyan:K,bgWhite:K}};Si.exports=Ks(),Si.exports.createColors=Ks;var ah=Si.exports,uh={},lh=Object.freeze(Object.defineProperty({__proto__:null,default:uh},Symbol.toStringTag,{value:"Module"})),ue=sh(lh),Xs=ah,Qs=ue,bi=(function(r){ee(i,r);function i(e,t,n,s,a,u){var l;return l=r.call(this,e)||this,l.name="CssSyntaxError",l.reason=e,a&&(l.file=a),s&&(l.source=s),u&&(l.plugin=u),typeof t!="undefined"&&typeof n!="undefined"&&(typeof t=="number"?(l.line=t,l.column=n):(l.line=t.line,l.column=t.column,l.endLine=n.line,l.endColumn=n.column)),l.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(l,i),l}var o=i.prototype;return o.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},o.showSourceCode=function(t){var n=this;if(!this.source)return"";var s=this.source;t==null&&(t=Xs.isColorSupported),Qs&&t&&(s=Qs(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),l=Math.min(this.line+2,a.length),f=String(l).length,c,h;if(t){var v=Xs.createColors(!0),d=v.bold,g=v.gray,p=v.red;c=function(m){return d(p(m))},h=function(m){return g(m)}}else c=h=function(m){return m};return a.slice(u,l).map(function(m,w){var S=u+1+w,b=" "+(" "+S).slice(-f)+" | ";if(S===n.line){var C=h(b.replace(/\d/g," "))+m.slice(0,n.column-1).replace(/[^\t]/g," ");return c(">")+h(b)+m+"\n "+C+c("^")}return" "+h(b)+m}).join("\n")},o.toString=function(){var t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t},i})(qt(Error)),Ci=bi;bi.default=bi;var Ge={};Ge.isClean=Symbol("isClean"),Ge.my=Symbol("my");var ea={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function fh(r){return r[0].toUpperCase()+r.slice(1)}var Ii=(function(){function r(o){this.builder=o}var i=r.prototype;return i.atrule=function(e,t){var n="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?n+=e.raws.afterName:s&&(n+=" "),e.nodes)this.block(e,n+s);else{var a=(e.raws.between||"")+(t?";":"");this.builder(n+s+a,e)}},i.beforeAfter=function(e,t){var n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):t==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");for(var s=e.parent,a=0;s&&s.type!=="root";)a+=1,s=s.parent;if(n.includes("\n")){var u=this.raw(e,null,"indent");if(u.length)for(var l=0;l<a;l++)n+=u}return n},i.block=function(e,t){var n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",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")},i.body=function(e){for(var t=e.nodes.length-1;t>0&&e.nodes[t].type==="comment";)t-=1;for(var n=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,t!==s||n)}},i.comment=function(e){var t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)},i.decl=function(e,t){var n=this.raw(e,"between","colon"),s=e.prop+n+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),t&&(s+=";"),this.builder(s,e)},i.document=function(e){this.body(e)},i.raw=function(e,t,n){var s;if(n||(n=t),t&&(s=e.raws[t],typeof s!="undefined"))return s;var a=e.parent;if(n==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return ea[n];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[n]!="undefined")return u.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);var l="raw"+fh(n);return this[l]?s=this[l](u,e):u.walk(function(f){if(s=f.raws[t],typeof s!="undefined")return!1}),typeof s=="undefined"&&(s=ea[n]),u.rawCache[n]=s,s},i.rawBeforeClose=function(e){var t;return e.walk(function(n){if(n.nodes&&n.nodes.length>0&&typeof n.raws.after!="undefined")return t=n.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},i.rawBeforeComment=function(e,t){var n;return e.walkComments(function(s){if(typeof s.raws.before!="undefined")return n=s.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n=="undefined"?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n},i.rawBeforeDecl=function(e,t){var n;return e.walkDecls(function(s){if(typeof s.raws.before!="undefined")return n=s.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n=="undefined"?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n},i.rawBeforeOpen=function(e){var t;return e.walk(function(n){if(n.type!=="decl"&&(t=n.raws.between,typeof t!="undefined"))return!1}),t},i.rawBeforeRule=function(e){var t;return e.walk(function(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before!="undefined")return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},i.rawColon=function(e){var t;return e.walkDecls(function(n){if(typeof n.raws.between!="undefined")return t=n.raws.between.replace(/[^\s:]/g,""),!1}),t},i.rawEmptyBody=function(e){var t;return e.walk(function(n){if(n.nodes&&n.nodes.length===0&&(t=n.raws.after,typeof t!="undefined"))return!1}),t},i.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var t;return e.walk(function(n){var s=n.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof n.raws.before!="undefined"){var a=n.raws.before.split("\n");return t=a[a.length-1],t=t.replace(/\S/g,""),!1}}),t},i.rawSemicolon=function(e){var t;return e.walk(function(n){if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(t=n.raws.semicolon,typeof t!="undefined"))return!1}),t},i.rawValue=function(e,t){var n=e[t],s=e.raws[t];return s&&s.value===n?s.raw:n},i.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},i.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},i.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},r})(),ta=Ii;Ii.default=Ii;var ch=ta;function Oi(r,i){var o=new ch(i);o.stringify(r)}var Br=Oi;Oi.default=Oi;var Ur=Ge.isClean,hh=Ge.my,ph=Ci,dh=ta,vh=Br;function xi(r,i){var o=new r.constructor;for(var e in r)if(Object.prototype.hasOwnProperty.call(r,e)&&e!=="proxyCache"){var t=r[e],n=typeof t=="undefined"?"undefined":M(t);e==="parent"&&n==="object"?i&&(o[e]=i):e==="source"?o[e]=t:Array.isArray(t)?o[e]=t.map(function(s){return xi(s,o)}):(n==="object"&&t!==null&&(t=xi(t)),o[e]=t)}return o}var Ri=(function(){function r(o){o===void 0&&(o={}),this.raws={},this[Ur]=!1,this[hh]=!0;for(var e in o)if(e==="nodes"){this.nodes=[];for(var t=I(o[e]),n;!(n=t()).done;){var s=n.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[e]=o[e]}var i=r.prototype;return i.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},i.after=function(e){return this.parent.insertAfter(this,e),this},i.assign=function(e){e===void 0&&(e={});for(var t in e)this[t]=e[t];return this},i.before=function(e){return this.parent.insertBefore(this,e),this},i.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},i.clone=function(e){e===void 0&&(e={});var t=xi(this);for(var n in e)t[n]=e[n];return t},i.cloneAfter=function(e){e===void 0&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},i.cloneBefore=function(e){e===void 0&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},i.error=function(e,t){if(t===void 0&&(t={}),this.source){var n=this.rangeBy(t),s=n.end,a=n.start;return this.source.input.error(e,{column:a.column,line:a.line},{column:s.column,line:s.line},t)}return new ph(e)},i.getProxyProcessor=function(){return{get:function(t,n){return n==="proxyOf"?t:n==="root"?function(){return t.root().toProxy()}:t[n]},set:function(t,n,s){return t[n]===s||(t[n]=s,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&t.markDirty()),!0}}},i.markDirty=function(){if(this[Ur]){this[Ur]=!1;for(var e=this;e=e.parent;)e[Ur]=!1}},i.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},i.positionBy=function(e,t){var n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){t=this.toString();var s=t.indexOf(e.word);s!==-1&&(n=this.positionInside(s,t))}return n},i.positionInside=function(e,t){for(var n=t||this.toString(),s=this.source.start.column,a=this.source.start.line,u=0;u<e;u++)n[u]==="\n"?(s=1,a+=1):s+=1;return{column:s,line:a}},i.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},i.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var s=this.toString(),a=s.indexOf(e.word);a!==-1&&(t=this.positionInside(a,s),n=this.positionInside(a+e.word.length,s))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}},i.raw=function(e,t){var n=new dh;return n.raw(this,e,t)},i.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},i.replaceWith=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this.parent){for(var s=this,a=!1,u=I(t),l;!(l=u()).done;){var f=l.value;f===this?a=!0:a?(this.parent.insertAfter(s,f),s=f):this.parent.insertBefore(s,f)}a||this.remove()}return this},i.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},i.toJSON=function(e,t){var n={},s=t==null;t=t||new Map;var a=0;for(var u in this)if(Object.prototype.hasOwnProperty.call(this,u)&&!(u==="parent"||u==="proxyCache")){var l=this[u];if(Array.isArray(l))n[u]=l.map(function(c){return(typeof c=="undefined"?"undefined":M(c))==="object"&&c.toJSON?c.toJSON(null,t):c});else if((typeof l=="undefined"?"undefined":M(l))==="object"&&l.toJSON)n[u]=l.toJSON(null,t);else if(u==="source"){var f=t.get(l.input);f==null&&(f=a,t.set(l.input,a),a++),n[u]={end:l.end,inputId:f,start:l.start}}else n[u]=l}return s&&(n.inputs=[].concat(t.keys()).map(function(c){return c.toJSON()})),n},i.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},i.toString=function(e){e===void 0&&(e=vh),e.stringify&&(e=e.stringify);var t="";return e(this,function(n){t+=n}),t},i.warn=function(e,t,n){var s={node:this};for(var a in n)s[a]=n[a];return e.warn(t,s)},Z(r,[{key:"proxyOf",get:function(){return this}}]),r})(),zr=Ri;Ri.default=Ri;var mh=zr,Ei=(function(r){ee(i,r);function i(o){var e;return o&&typeof o.value!="undefined"&&typeof o.value!="string"&&(o=T({},o,{value:String(o.value)})),e=r.call(this,o)||this,e.type="decl",e}return Z(i,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),i})(mh),Wr=Ei;Ei.default=Ei;var gh="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",yh=function(r){r===void 0&&(r=21);for(var i="",o=r;o--;)i+=gh[Math.random()*64|0];return i},wh={nanoid:yh},ra=ue.SourceMapConsumer,na=ue.SourceMapGenerator,Sh=ue.existsSync,bh=ue.readFileSync,Ai=ue.dirname,Ch=ue.join;function Ih(r){return Buffer?Buffer.from(r,"base64").toString():window.atob(r)}var Mi=(function(){function r(o,e){if(e.map!==!1){this.loadAnnotation(o),this.inline=this.startWith(this.annotation,"data:");var t=e.map?e.map.prev:void 0,n=this.loadMap(e.from,t);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=Ai(this.mapFile)),n&&(this.text=n)}}var i=r.prototype;return i.consumer=function(){return this.consumerCache||(this.consumerCache=new ra(this.text)),this.consumerCache},i.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,n=/^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(t.test(e)||n.test(e))return Ih(e.substr(RegExp.lastMatch.length));var u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},i.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},i.isMap=function(e){return(typeof e=="undefined"?"undefined":M(e))!=="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)},i.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var n=e.lastIndexOf(t.pop()),s=e.indexOf("*/",n);n>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,s)))}},i.loadFile=function(e){if(this.root=Ai(e),Sh(e))return this.mapFile=e,bh(e,"utf-8").toString().trim()},i.loadMap=function(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){var n=t(e);if(n){var s=this.loadFile(n);if(!s)throw new Error("Unable to load previous source map: "+n.toString());return s}}else{if(E(t,ra))return na.fromSourceMap(t).toString();if(E(t,na))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var a=this.annotation;return e&&(a=Ch(Ai(e),a)),this.loadFile(a)}}},i.startWith=function(e,t){return e?e.substr(0,t.length)===t:!1},i.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},r})(),ia=Mi;Mi.default=Mi;var Oh=ue.SourceMapConsumer,xh=ue.SourceMapGenerator,oa=ue.fileURLToPath,jr=ue.pathToFileURL,$i=ue.isAbsolute,ki=ue.resolve,Rh=wh.nanoid,_i=ue,sa=Ci,Eh=ia,Pi=Symbol("fromOffsetCache"),Ah=!!(Oh&&xh),aa=!!(ki&&$i),Gr=(function(){function r(o,e){if(e===void 0&&(e={}),o===null||typeof o=="undefined"||(typeof o=="undefined"?"undefined":M(o))==="object"&&!o.toString)throw new Error("PostCSS received "+o+" instead of CSS string");if(this.css=o.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!aa||/^\w+:\/\//.test(e.from)||$i(e.from)?this.file=e.from:this.file=ki(e.from)),aa&&Ah){var t=new Eh(this.css,e);if(t.text){this.map=t;var n=t.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+Rh(6)+">"),this.map&&(this.map.file=this.from)}var i=r.prototype;return i.error=function(e,t,n,s){s===void 0&&(s={});var a,u,l;if(t&&(typeof t=="undefined"?"undefined":M(t))==="object"){var f=t,c=n;if(typeof f.offset=="number"){var h=this.fromOffset(f.offset);t=h.line,n=h.col}else t=f.line,n=f.column;if(typeof c.offset=="number"){var v=this.fromOffset(c.offset);u=v.line,l=v.col}else u=c.line,l=c.column}else if(!n){var d=this.fromOffset(t);t=d.line,n=d.col}var g=this.origin(t,n,u,l);return g?a=new sa(e,g.endLine===void 0?g.line:{column:g.column,line:g.line},g.endLine===void 0?g.column:{column:g.endColumn,line:g.endLine},g.source,g.file,s.plugin):a=new sa(e,u===void 0?t:{column:n,line:t},u===void 0?n:{column:l,line:u},this.css,this.file,s.plugin),a.input={column:n,endColumn:l,endLine:u,line:t,source:this.css},this.file&&(jr&&(a.input.url=jr(this.file).toString()),a.input.file=this.file),a},i.fromOffset=function(e){var t,n;if(this[Pi])n=this[Pi];else{var s=this.css.split("\n");n=new Array(s.length);for(var a=0,u=0,l=s.length;u<l;u++)n[u]=a,a+=s[u].length+1;this[Pi]=n}t=n[n.length-1];var f=0;if(e>=t)f=n.length-1;else for(var c=n.length-2,h;f<c;)if(h=f+(c-f>>1),e<n[h])c=h-1;else if(e>=n[h+1])f=h+1;else{f=h;break}return{col:e-n[f]+1,line:f+1}},i.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:ki(this.map.consumer().sourceRoot||this.map.root||".",e)},i.origin=function(e,t,n,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:t,line:e});if(!u.source)return!1;var l;typeof n=="number"&&(l=a.originalPositionFor({column:s,line:n}));var f;$i(u.source)?f=jr(u.source):f=new URL(u.source,this.map.consumer().sourceRoot||jr(this.map.mapFile));var c={column:u.column,endColumn:l&&l.column,endLine:l&&l.line,line:u.line,url:f.toString()};if(f.protocol==="file:")if(oa)c.file=oa(f);else throw new Error("file: protocol is not available in this PostCSS build");var h=a.sourceContentFor(u.source);return h&&(c.source=h),c},i.toJSON=function(){for(var e={},t=0,n=["hasBOM","css","file","id"];t<n.length;t++){var s=n[t];this[s]!=null&&(e[s]=this[s])}return this.map&&(e.map=T({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Z(r,[{key:"from",get:function(){return this.file||this.id}}]),r})(),Vr=Gr;Gr.default=Gr,_i&&_i.registerInput&&_i.registerInput(Gr);var ua=ue.SourceMapConsumer,Yr=ue.SourceMapGenerator,qr=ue.dirname,la=ue.relative,fa=ue.resolve,ca=ue.sep,ha=ue.pathToFileURL,Mh=Vr,$h=!!(ua&&Yr),kh=!!(qr&&fa&&la&&ca),_h=(function(){function r(o,e,t,n){this.stringify=o,this.mapOpts=t.map||{},this.root=e,this.opts=t,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var i=r.prototype;return i.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 t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},i.applyPrevMaps=function(){for(var e=I(this.previous()),t;!(t=e()).done;){var n=t.value,s=this.toUrl(this.path(n.file)),a=n.root||qr(n.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new ua(n.text),u.sourcesContent&&(u.sourcesContent=null)):u=n.consumer(),this.map.applySourceMap(u,s,this.toUrl(this.path(a)))}},i.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},i.generate=function(){if(this.clearAnnotation(),kh&&$h&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},i.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=Yr.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Yr({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]},i.generateString=function(){var e=this;this.css="",this.map=new Yr({file:this.outputFile(),ignoreInvalidMapping:!0});var t=1,n=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,l;this.stringify(this.root,function(f,c,h){if(e.css+=f,c&&h!=="end"&&(a.generated.line=t,a.generated.column=n-1,c.source&&c.source.start?(a.source=e.sourcePath(c),a.original.line=c.source.start.line,a.original.column=c.source.start.column-1,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,e.map.addMapping(a))),u=f.match(/\n/g),u?(t+=u.length,l=f.lastIndexOf("\n"),n=f.length-l):n+=f.length,c&&h!=="start"){var v=c.parent||{raws:{}},d=c.type==="decl"||c.type==="atrule"&&!c.nodes;(!d||c!==v.last||v.raws.semicolon)&&(c.source&&c.source.end?(a.source=e.sourcePath(c),a.original.line=c.source.end.line,a.original.column=c.source.end.column-1,a.generated.line=t,a.generated.column=n-2,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=t,a.generated.column=n-1,e.map.addMapping(a)))}})},i.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},i.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(t){return t.inline}):!0},i.isMap=function(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0},i.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(e){return e.withContent()}):!0},i.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},i.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var n=this.opts.to?qr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=qr(fa(n,this.mapOpts.annotation)));var s=la(n,e);return this.memoizedPaths.set(e,s),s},i.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(n){if(n.source&&n.source.input.map){var s=n.source.input.map;e.previousMaps.includes(s)||e.previousMaps.push(s)}});else{var t=new Mh(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},i.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!t[a]){t[a]=!0;var u=e.usesFileUrls?e.toFileUrl(a):e.toUrl(e.path(a));e.map.setSourceContent(u,s.source.input.css)}}});else if(this.css){var n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}},i.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))},i.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},i.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(ha){var n=ha(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")},i.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;ca==="\\"&&(e=e.replace(/\\/g,"/"));var n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n},r})(),pa=_h,Ph=zr,Ti=(function(r){ee(i,r);function i(o){var e;return e=r.call(this,o)||this,e.type="comment",e}return i})(Ph),Jr=Ti;Ti.default=Ti;var da=Ge.isClean,va=Ge.my,ma=Wr,ga=Jr,Th=zr,ya,Ni,Li,wa;function Sa(r){return r.map(function(i){return i.nodes&&(i.nodes=Sa(i.nodes)),delete i.source,i})}function ba(r){if(r[da]=!1,r.proxyOf.nodes)for(var i=I(r.proxyOf.nodes),o;!(o=i()).done;){var e=o.value;ba(e)}}var Ne=(function(r){ee(i,r);function i(){return r.apply(this,arguments)||this}var o=i.prototype;return o.append=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];for(var a=I(n),u;!(u=a()).done;)for(var l=u.value,f=this.normalize(l,this.last),c=I(f),h;!(h=c()).done;){var v=h.value;this.proxyOf.nodes.push(v)}return this.markDirty(),this},o.cleanRaws=function(t){if(r.prototype.cleanRaws.call(this,t),this.nodes)for(var n=I(this.nodes),s;!(s=n()).done;){var a=s.value;a.cleanRaws(t)}},o.each=function(t){if(this.proxyOf.nodes){for(var n=this.getIterator(),s,a;this.indexes[n]<this.proxyOf.nodes.length&&(s=this.indexes[n],a=t(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[n]+=1;return delete this.indexes[n],a}},o.every=function(t){return this.nodes.every(t)},o.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var t=this.lastEach;return this.indexes[t]=0,t},o.getProxyProcessor=function(){return{get:function(n,s){return s==="proxyOf"?n:n[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),l=0;l<a;l++)u[l]=arguments[l];var f;return(f=n)[s].apply(f,[].concat(u.map(function(c){return typeof c=="function"?function(h,v){return c(h.toProxy(),v)}:c})))}:s==="every"||s==="some"?function(a){return n[s](function(u){for(var l=arguments.length,f=new Array(l>1?l-1:0),c=1;c<l;c++)f[c-1]=arguments[c];return a.apply(void 0,[].concat([u.toProxy()],f))})}:s==="root"?function(){return n.root().toProxy()}:s==="nodes"?n.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?n[s].toProxy():n[s]:n[s]},set:function(n,s,a){return n[s]===a||(n[s]=a,(s==="name"||s==="params"||s==="selector")&&n.markDirty()),!0}}},o.index=function(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))},o.insertAfter=function(t,n){var s=this.index(t),a=this.normalize(n,this.proxyOf.nodes[s]).reverse();s=this.index(t);for(var u=I(a),l;!(l=u()).done;){var f=l.value;this.proxyOf.nodes.splice(s+1,0,f)}var c;for(var h in this.indexes)c=this.indexes[h],s<c&&(this.indexes[h]=c+a.length);return this.markDirty(),this},o.insertBefore=function(t,n){var s=this.index(t),a=s===0?"prepend":!1,u=this.normalize(n,this.proxyOf.nodes[s],a).reverse();s=this.index(t);for(var l=I(u),f;!(f=l()).done;){var c=f.value;this.proxyOf.nodes.splice(s,0,c)}var h;for(var v in this.indexes)h=this.indexes[v],s<=h&&(this.indexes[v]=h+u.length);return this.markDirty(),this},o.normalize=function(t,n){var s=this;if(typeof t=="string")t=Sa(ya(t).nodes);else if(typeof t=="undefined")t=[];else if(Array.isArray(t)){t=t.slice(0);for(var a=I(t),u;!(u=a()).done;){var l=u.value;l.parent&&l.parent.removeChild(l,"ignore")}}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(var f=I(t),c;!(c=f()).done;){var h=c.value;h.parent&&h.parent.removeChild(h,"ignore")}}else if(t.type)t=[t];else if(t.prop){if(typeof t.value=="undefined")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new ma(t)]}else if(t.selector)t=[new Ni(t)];else if(t.name)t=[new Li(t)];else if(t.text)t=[new ga(t)];else throw new Error("Unknown node type in node creation");var v=t.map(function(d){return d[va]||i.rebuild(d),d=d.proxyOf,d.parent&&d.parent.removeChild(d),d[da]&&ba(d),typeof d.raws.before=="undefined"&&n&&typeof n.raws.before!="undefined"&&(d.raws.before=n.raws.before.replace(/\S/g,"")),d.parent=s.proxyOf,d});return v},o.prepend=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];n=n.reverse();for(var a=I(n),u;!(u=a()).done;){for(var l=u.value,f=this.normalize(l,this.first,"prepend").reverse(),c=I(f),h;!(h=c()).done;){var v=h.value;this.proxyOf.nodes.unshift(v)}for(var d in this.indexes)this.indexes[d]=this.indexes[d]+f.length}return this.markDirty(),this},o.push=function(t){return t.parent=this,this.proxyOf.nodes.push(t),this},o.removeAll=function(){for(var t=I(this.proxyOf.nodes),n;!(n=t()).done;){var s=n.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},o.removeChild=function(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);var n;for(var s in this.indexes)n=this.indexes[s],n>=t&&(this.indexes[s]=n-1);return this.markDirty(),this},o.replaceValues=function(t,n,s){return s||(s=n,n={}),this.walkDecls(function(a){n.props&&!n.props.includes(a.prop)||n.fast&&!a.value.includes(n.fast)||(a.value=a.value.replace(t,s))}),this.markDirty(),this},o.some=function(t){return this.nodes.some(t)},o.walk=function(t){return this.each(function(n,s){var a;try{a=t(n,s)}catch(u){throw n.addToError(u)}return a!==!1&&n.walk&&(a=n.walk(t)),a})},o.walkAtRules=function(t,n){return n?E(t,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&t.test(s.name))return n(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="atrule")return n(s,a)}))},o.walkComments=function(t){return this.walk(function(n,s){if(n.type==="comment")return t(n,s)})},o.walkDecls=function(t,n){return n?E(t,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&t.test(s.prop))return n(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="decl")return n(s,a)}))},o.walkRules=function(t,n){return n?E(t,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&t.test(s.selector))return n(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="rule")return n(s,a)}))},Z(i,[{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]}}]),i})(Th);Ne.registerParse=function(r){ya=r},Ne.registerRule=function(r){Ni=r},Ne.registerAtRule=function(r){Li=r},Ne.registerRoot=function(r){wa=r};var nt=Ne;Ne.default=Ne,Ne.rebuild=function(r){r.type==="atrule"?Object.setPrototypeOf(r,Li.prototype):r.type==="rule"?Object.setPrototypeOf(r,Ni.prototype):r.type==="decl"?Object.setPrototypeOf(r,ma.prototype):r.type==="comment"?Object.setPrototypeOf(r,ga.prototype):r.type==="root"&&Object.setPrototypeOf(r,wa.prototype),r[va]=!0,r.nodes&&r.nodes.forEach(function(i){Ne.rebuild(i)})};var Nh=nt,Ca,Ia,Kt=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,T({type:"document"},e))||this,t.nodes||(t.nodes=[]),t}var o=i.prototype;return o.toResult=function(t){t===void 0&&(t={});var n=new Ca(new Ia,this,t);return n.stringify()},i})(Nh);Kt.registerLazyResult=function(r){Ca=r},Kt.registerProcessor=function(r){Ia=r};var Di=Kt;Kt.default=Kt;var Oa={},xa=function(i){Oa[i]||(Oa[i]=!0,typeof console!="undefined"&&console.warn&&console.warn(i))},Fi=(function(){function r(o,e){if(e===void 0&&(e={}),this.type="warning",this.text=o,e.node&&e.node.source){var t=e.node.rangeBy(e);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(var n in e)this[n]=e[n]}var i=r.prototype;return i.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},r})(),Ra=Fi;Fi.default=Fi;var Lh=Ra,Bi=(function(){function r(o,e,t){this.processor=o,this.messages=[],this.root=e,this.opts=t,this.css=void 0,this.map=void 0}var i=r.prototype;return i.toString=function(){return this.css},i.warn=function(e,t){t===void 0&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new Lh(e,t);return this.messages.push(n),n},i.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},Z(r,[{key:"content",get:function(){return this.css}}]),r})(),Ui=Bi;Bi.default=Bi;var zi=39,Ea=34,Hr=92,Aa=47,Zr=10,Xt=32,Kr=12,Xr=9,Qr=13,Dh=91,Fh=93,Bh=40,Uh=41,zh=123,Wh=125,jh=59,Gh=42,Vh=58,Yh=64,en=/[\t\n\f\r "#'()/;[\\\]{}]/g,tn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,qh=/.[\r\n"'(/\\]/,Ma=/[\da-f]/i,Jh=function(i,o){o===void 0&&(o={});var e=i.css.valueOf(),t=o.ignoreErrors,n,s,a,u,l,f,c,h,v,d,g=e.length,p=0,m=[],w=[];function S(){return p}function b(R){throw i.error("Unclosed "+R,p)}function C(){return w.length===0&&p>=g}function x(R){if(w.length)return w.pop();if(!(p>=g)){var k=R?R.ignoreUnclosed:!1;switch(n=e.charCodeAt(p),n){case Zr:case Xt:case Xr:case Qr:case Kr:{s=p;do s+=1,n=e.charCodeAt(s);while(n===Xt||n===Zr||n===Xr||n===Qr||n===Kr);d=["space",e.slice(p,s)],p=s-1;break}case Dh:case Fh:case zh:case Wh:case Vh:case jh:case Uh:{var N=String.fromCharCode(n);d=[N,N,p];break}case Bh:{if(h=m.length?m.pop()[1]:"",v=e.charCodeAt(p+1),h==="url"&&v!==zi&&v!==Ea&&v!==Xt&&v!==Zr&&v!==Xr&&v!==Kr&&v!==Qr){s=p;do{if(f=!1,s=e.indexOf(")",s+1),s===-1)if(t||k){s=p;break}else b("bracket");for(c=s;e.charCodeAt(c-1)===Hr;)c-=1,f=!f}while(f);d=["brackets",e.slice(p,s+1),p,s],p=s}else s=e.indexOf(")",p+1),u=e.slice(p,s+1),s===-1||qh.test(u)?d=["(","(",p]:(d=["brackets",u,p,s],p=s);break}case zi:case Ea:{a=n===zi?"'":'"',s=p;do{if(f=!1,s=e.indexOf(a,s+1),s===-1)if(t||k){s=p+1;break}else b("string");for(c=s;e.charCodeAt(c-1)===Hr;)c-=1,f=!f}while(f);d=["string",e.slice(p,s+1),p,s],p=s;break}case Yh:{en.lastIndex=p+1,en.test(e),en.lastIndex===0?s=e.length-1:s=en.lastIndex-2,d=["at-word",e.slice(p,s+1),p,s],p=s;break}case Hr:{for(s=p,l=!0;e.charCodeAt(s+1)===Hr;)s+=1,l=!l;if(n=e.charCodeAt(s+1),l&&n!==Aa&&n!==Xt&&n!==Zr&&n!==Xr&&n!==Qr&&n!==Kr&&(s+=1,Ma.test(e.charAt(s)))){for(;Ma.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===Xt&&(s+=1)}d=["word",e.slice(p,s+1),p,s],p=s;break}default:{n===Aa&&e.charCodeAt(p+1)===Gh?(s=e.indexOf("*/",p+2)+1,s===0&&(t||k?s=e.length:b("comment")),d=["comment",e.slice(p,s+1),p,s],p=s):(tn.lastIndex=p+1,tn.test(e),tn.lastIndex===0?s=e.length-1:s=tn.lastIndex-2,d=["word",e.slice(p,s+1),p,s],m.push(d),p=s);break}}return p++,d}}function $(R){w.push(R)}return{back:$,endOfFile:C,nextToken:x,position:S}},$a=nt,rn=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,e)||this,t.type="atrule",t}var o=i.prototype;return o.append=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=r.prototype.append).call.apply(a,[].concat([this],n))},o.prepend=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=r.prototype.prepend).call.apply(a,[].concat([this],n))},i})($a),Wi=rn;rn.default=rn,$a.registerAtRule(rn);var ka=nt,_a,Pa,bt=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,e)||this,t.type="root",t.nodes||(t.nodes=[]),t}var o=i.prototype;return o.normalize=function(t,n,s){var a=r.prototype.normalize.call(this,t);if(n){if(s==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(var u=I(a),l;!(l=u()).done;){var f=l.value;f.raws.before=n.raws.before}}return a},o.removeChild=function(t,n){var s=this.index(t);return!n&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),r.prototype.removeChild.call(this,t)},o.toResult=function(t){t===void 0&&(t={});var n=new _a(new Pa,this,t);return n.stringify()},i})(ka);bt.registerLazyResult=function(r){_a=r},bt.registerProcessor=function(r){Pa=r};var Qt=bt;bt.default=bt,ka.registerRoot(bt);var er={comma:function(i){return er.split(i,[","],!0)},space:function(i){var o=[" ","\n"," "];return er.split(i,o)},split:function(i,o,e){for(var t=[],n="",s=!1,a=0,u=!1,l="",f=!1,c=I(i),h;!(h=c()).done;){var v=h.value;f?f=!1:v==="\\"?f=!0:u?v===l&&(u=!1):v==='"'||v==="'"?(u=!0,l=v):v==="("?a+=1:v===")"?a>0&&(a-=1):a===0&&o.includes(v)&&(s=!0),s?(n!==""&&t.push(n.trim()),n="",s=!1):n+=v}return(e||n!=="")&&t.push(n.trim()),t}},Ta=er;er.default=er;var Na=nt,Hh=Ta,nn=(function(r){ee(i,r);function i(o){var e;return e=r.call(this,o)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return Z(i,[{key:"selectors",get:function(){return Hh.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}]),i})(Na),ji=nn;nn.default=nn,Na.registerRule(nn);var Zh=Wr,Kh=Jh,Xh=Jr,Qh=Wi,ep=Qt,La=ji,Da={empty:!0,space:!0};function tp(r){for(var i=r.length-1;i>=0;i--){var o=r[i],e=o[3]||o[2];if(e)return e}}var rp=(function(){function r(o){this.input=o,this.root=new ep,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}var i=r.prototype;return i.atrule=function(e){var t=new Qh;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);for(var n,s,a,u=!1,l=!1,f=[],c=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){l=!0;break}else if(n==="}"){if(f.length>0){for(a=f.length-1,s=f[a];s&&s[0]==="space";)s=f[--a];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else f.push(e);else f.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(f),f.length?(t.raws.afterName=this.spacesAndCommentsFromStart(f),this.raw(t,"params",f),u&&(e=f[f.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t)},i.checkMissedSemicolon=function(e){var t=this.colon(e);if(t!==!1){for(var n=0,s,a=t-1;a>=0&&(s=e[a],!(s[0]!=="space"&&(n+=1,n===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},i.colon=function(e){for(var t=0,n,s,a,u=I(e.entries()),l;!(l=u()).done;){var f=l.value,c=f[0],h=f[1];if(n=h,s=n[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!a)this.doubleColon(n);else{if(a[0]==="word"&&a[1]==="progid")continue;return c}a=n}return!1},i.comment=function(e){var t=new Xh;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{var s=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}},i.createTokenizer=function(){this.tokenizer=Kh(this.input)},i.decl=function(e,t){var n=new Zh;this.init(n,e[0][2]);var s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(s[3]||s[2]||tp(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){n.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),n.raws.between+=u[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));for(var l=[],f;e.length&&(f=e[0][0],!(f!=="space"&&f!=="comment"));)l.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(u=e[c],u[1].toLowerCase()==="!important"){n.important=!0;var h=this.stringFrom(e,c);h=this.spacesFromEnd(e)+h,h!==" !important"&&(n.raws.important=h);break}else if(u[1].toLowerCase()==="important"){for(var v=e.slice(0),d="",g=c;g>0;g--){var p=v[g][0];if(d.trim().indexOf("!")===0&&p!=="space")break;d=v.pop()[1]+d}d.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=d,e=v)}if(u[0]!=="space"&&u[0]!=="comment")break}var m=e.some(function(w){return w[0]!=="space"&&w[0]!=="comment"});m&&(n.raws.between+=l.map(function(w){return w[1]}).join(""),l=[]),this.raw(n,"value",l.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},i.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},i.emptyRule=function(e){var t=new La;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},i.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)},i.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())},i.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},i.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},i.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},i.other=function(e){for(var t=!1,n=null,s=!1,a=null,u=[],l=e[1].startsWith("--"),f=[],c=e;c;){if(n=c[0],f.push(c),n==="("||n==="[")a||(a=c),u.push(n==="("?")":"]");else if(l&&s&&n==="{")a||(a=c),u.push("}");else if(u.length===0)if(n===";")if(s){this.decl(f,l);return}else break;else if(n==="{"){this.rule(f);return}else if(n==="}"){this.tokenizer.back(f.pop()),t=!0;break}else n===":"&&(s=!0);else n===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),u.length>0&&this.unclosedBracket(a),t&&s){if(!l)for(;f.length&&(c=f[f.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(f.pop());this.decl(f,l)}else this.unknownWord(f)},i.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()},i.precheckMissedSemicolon=function(){},i.raw=function(e,t,n,s){for(var a,u,l=n.length,f="",c=!0,h,v,d=0;d<l;d+=1)a=n[d],u=a[0],u==="space"&&d===l-1&&!s?c=!1:u==="comment"?(v=n[d-1]?n[d-1][0]:"empty",h=n[d+1]?n[d+1][0]:"empty",!Da[v]&&!Da[h]?f.slice(-1)===","?c=!1:f+=a[1]:c=!1):f+=a[1];if(!c){var g=n.reduce(function(p,m){return p+m[1]},"");e.raws[t]={raw:g,value:f}}e[t]=f},i.rule=function(e){e.pop();var t=new La;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},i.spacesAndCommentsFromEnd=function(e){for(var t,n="";e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)n=e.pop()[1]+n;return n},i.spacesAndCommentsFromStart=function(e){for(var t,n="";e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)n+=e.shift()[1];return n},i.spacesFromEnd=function(e){for(var t,n="";e.length&&(t=e[e.length-1][0],t==="space");)n=e.pop()[1]+n;return n},i.stringFrom=function(e,t){for(var n="",s=t;s<e.length;s++)n+=e[s][1];return e.splice(t,e.length-t),n},i.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},i.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},i.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},i.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},i.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},r})(),np=rp,ip=nt,op=np,sp=Vr;function on(r,i){var o=new sp(r,i),e=new op(o);try{e.parse()}catch(t){throw process.env.NODE_ENV!=="production"&&t.name==="CssSyntaxError"&&i&&i.from&&(/\.scss$/i.test(i.from)?t.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(i.from)?t.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(i.from)&&(t.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),t}return e.root}var Gi=on;on.default=on,ip.registerParse(on);var Ae=Ge.isClean,ap=Ge.my,up=pa,lp=Br,fp=nt,cp=Di,hp=xa,Fa=Ui,pp=Gi,dp=Qt,vp={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},mp={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},gp={Once:!0,postcssPlugin:!0,prepare:!0},Ct=0;function tr(r){return(typeof r=="undefined"?"undefined":M(r))==="object"&&typeof r.then=="function"}function Ba(r){var i=!1,o=vp[r.type];return r.type==="decl"?i=r.prop.toLowerCase():r.type==="atrule"&&(i=r.name.toLowerCase()),i&&r.append?[o,o+"-"+i,Ct,o+"Exit",o+"Exit-"+i]:i?[o,o+"-"+i,o+"Exit",o+"Exit-"+i]:r.append?[o,Ct,o+"Exit"]:[o,o+"Exit"]}function Ua(r){var i;return r.type==="document"?i=["Document",Ct,"DocumentExit"]:r.type==="root"?i=["Root",Ct,"RootExit"]:i=Ba(r),{eventIndex:0,events:i,iterator:0,node:r,visitorIndex:0,visitors:[]}}function Vi(r){return r[Ae]=!1,r.nodes&&r.nodes.forEach(function(i){return Vi(i)}),r}var Yi={},It=(function(){function r(o,e,t){var n=this;this.stringified=!1,this.processed=!1;var s;if((typeof e=="undefined"?"undefined":M(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=Vi(e);else if(E(e,r)||E(e,Fa))s=Vi(e.root),e.map&&(typeof t.map=="undefined"&&(t.map={}),t.map.inline||(t.map.inline=!1),t.map.prev=e.map);else{var a=pp;t.syntax&&(a=t.syntax.parse),t.parser&&(a=t.parser),a.parse&&(a=a.parse);try{s=a(e,t)}catch(u){this.processed=!0,this.error=u}s&&!s[ap]&&fp.rebuild(s)}this.result=new Fa(o,s,t),this.helpers=T({},Yi,{postcss:Yi,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":M(u))==="object"&&u.prepare?T({},u,u.prepare(n.result)):u})}var i=r.prototype;return i.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},i.catch=function(e){return this.async().catch(e)},i.finally=function(e){return this.async().then(e,e)},i.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},i.handleError=function(e,t){var n=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion&&process.env.NODE_ENV!=="production"){var s=n.postcssPlugin,a=n.postcssVersion,u=this.result.processor.version,l=a.split("."),f=u.split(".");(l[0]!==f[0]||parseInt(l[1])>parseInt(f[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+u+", but "+s+" uses "+a+". Perhaps this is the source of the error below.")}}catch(c){console&&console.error&&console.error(c)}return e},i.prepareVisitors=function(){var e=this;this.listeners={};for(var t=function(f,c,h){e.listeners[c]||(e.listeners[c]=[]),e.listeners[c].push([f,h])},n=I(this.plugins),s;!(s=n()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":M(a))==="object")for(var u in a){if(!mp[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!gp[u])if(M(a[u])==="object")for(var l in a[u])l==="*"?t(a,u,a[u][l]):t(a,u+"-"+l.toLowerCase(),a[u][l]);else typeof a[u]=="function"&&t(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},i.runAsync=function(){var e=this;return kr(function(){var t,n,s,a,u,l,f,c,h,v,d,g;return tt(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(n=e.plugins[t],s=e.runOnRoot(n),!tr(s))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,s];case 3:return p.sent(),[3,5];case 4:throw a=p.sent(),e.handleError(a);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];u=e.result.root,p.label=7;case 7:if(u[Ae])return[3,14];u[Ae]=!0,l=[Ua(u)],p.label=8;case 8:if(!(l.length>0))return[3,13];if(f=e.visitTick(l),!tr(f))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,f];case 10:return p.sent(),[3,12];case 11:throw c=p.sent(),h=l[l.length-1].node,e.handleError(c,h);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];v=function(){var m,w,S,b,C;return tt(this,function(x){switch(x.label){case 0:m=g.value,w=m[0],S=m[1],e.result.lastPlugin=w,x.label=1;case 1:return x.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(b=u.nodes.map(function($){return S($,e.helpers)}),[4,Promise.all(b)]);case 2:return x.sent(),[3,5];case 3:return[4,S(u,e.helpers)];case 4:x.sent(),x.label=5;case 5:return[3,7];case 6:throw C=x.sent(),e.handleError(C);case 7:return[2]}})},d=I(e.listeners.OnceExit),p.label=15;case 15:return(g=d()).done?[3,18]:[5,di(v())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},i.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((typeof e=="undefined"?"undefined":M(e))==="object"&&e.Once){if(this.result.root.type==="document"){var n=this.result.root.nodes.map(function(s){return e.Once(s,t.helpers)});return tr(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}},i.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=lp;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new up(t,this.result.root,this.result.opts),s=n.generate();return this.result.css=s[0],this.result.map=s[1],this.result},i.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),t;!(t=e()).done;){var n=t.value,s=this.runOnRoot(n);if(tr(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Ae];)a[Ae]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=I(a.nodes),l;!(l=u()).done;){var f=l.value;this.visitSync(this.listeners.OnceExit,f)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},i.then=function(e,t){return process.env.NODE_ENV!=="production"&&("from"in this.opts||hp("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},i.toString=function(){return this.css},i.visitSync=function(e,t){for(var n=I(e),s;!(s=n()).done;){var a=s.value,u=a[0],l=a[1];this.result.lastPlugin=u;var f=void 0;try{f=l(t,this.helpers)}catch(c){throw this.handleError(c,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(tr(f))throw this.getAsyncError()}},i.visitTick=function(e){var t=e[e.length-1],n=t.node,s=t.visitors;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){var a=s[t.visitorIndex],u=a[0],l=a[1];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=u;try{return l(n.toProxy(),this.helpers)}catch(d){throw this.handleError(d,n)}}if(t.iterator!==0){for(var f=t.iterator,c;c=n.nodes[n.indexes[f]];)if(n.indexes[f]+=1,!c[Ae]){c[Ae]=!0,e.push(Ua(c));return}t.iterator=0,delete n.indexes[f]}for(var h=t.events;t.eventIndex<h.length;){var v=h[t.eventIndex];if(t.eventIndex+=1,v===Ct){n.nodes&&n.nodes.length&&(n[Ae]=!0,t.iterator=n.getIterator());return}else if(this.listeners[v]){t.visitors=this.listeners[v];return}}e.pop()},i.walkSync=function(e){var t=this;e[Ae]=!0;for(var n=Ba(e),s=I(n),a;!(a=s()).done;){var u=a.value;if(u===Ct)e.nodes&&e.each(function(f){f[Ae]||t.walkSync(f)});else{var l=this.listeners[u];if(l&&this.visitSync(l,e.toProxy()))return}}},i.warnings=function(){return this.sync().warnings()},Z(r,[{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"}}]),r})();It.registerPostcss=function(r){Yi=r};var za=It;It.default=It,dp.registerLazyResult(It),cp.registerLazyResult(It);var yp=pa,wp=Br,Sp=xa,bp=Gi,Cp=Ui,qi=(function(){function r(o,e,t){e=e.toString(),this.stringified=!1,this._processor=o,this._css=e,this._opts=t,this._map=void 0;var n,s=wp;this.result=new Cp(this._processor,n,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new yp(s,n,this._opts,e);if(u.isMap()){var l=u.generate(),f=l[0],c=l[1];f&&(this.result.css=f),c&&(this.result.map=c)}else u.clearAnnotation(),this.result.css=u.css}var i=r.prototype;return i.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},i.catch=function(e){return this.async().catch(e)},i.finally=function(e){return this.async().then(e,e)},i.sync=function(){if(this.error)throw this.error;return this.result},i.then=function(e,t){return process.env.NODE_ENV!=="production"&&("from"in this._opts||Sp("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},i.toString=function(){return this._css},i.warnings=function(){return[]},Z(r,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=bp;try{e=t(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),r})(),Ip=qi;qi.default=qi;var Op=Ip,xp=za,Rp=Di,Ep=Qt,rr=(function(){function r(o){o===void 0&&(o=[]),this.version="8.4.38",this.plugins=this.normalize(o)}var i=r.prototype;return i.normalize=function(e){for(var t=[],n=I(e),s;!(s=n()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":M(a))==="object"&&Array.isArray(a.plugins))t=t.concat(a.plugins);else if((typeof a=="undefined"?"undefined":M(a))==="object"&&a.postcssPlugin)t.push(a);else if(typeof a=="function")t.push(a);else if((typeof a=="undefined"?"undefined":M(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 t},i.process=function(e,t){return t===void 0&&(t={}),!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Op(this,e,t):new xp(this,e,t)},i.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},r})(),Ap=rr;rr.default=rr,Ep.registerProcessor(rr),Rp.registerProcessor(rr);var Mp=Wr,$p=ia,kp=Jr,_p=Wi,Pp=Vr,Tp=Qt,Np=ji;function nr(r,i){if(Array.isArray(r))return r.map(function(c){return nr(c)});var o=r.inputs,e=et(r,["inputs"]);if(o){i=[];for(var t=I(o),n;!(n=t()).done;){var s=n.value,a=T({},s,{__proto__:Pp.prototype});a.map&&(a.map=T({},a.map,{__proto__:$p.prototype})),i.push(a)}}if(e.nodes&&(e.nodes=r.nodes.map(function(c){return nr(c,i)})),e.source){var u=e.source,l=u.inputId,f=et(u,["inputId"]);e.source=f,l!=null&&(e.source.input=i[l])}if(e.type==="root")return new Tp(e);if(e.type==="decl")return new Mp(e);if(e.type==="rule")return new Np(e);if(e.type==="comment")return new kp(e);if(e.type==="atrule")return new _p(e);throw new Error("Unknown node type: "+r.type)}var Lp=nr;nr.default=nr;var Dp=Ci,Wa=Wr,Fp=za,Bp=nt,Ji=Ap,Up=Br,zp=Lp,ja=Di,Wp=Ra,Ga=Jr,Va=Wi,jp=Ui,Gp=Vr,Vp=Gi,Yp=Ta,Ya=ji,qa=Qt,qp=zr;function V(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new Ji(i)}V.plugin=function(i,o){var e=!1;function t(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];console&&console.warn&&!e&&(e=!0,console.warn(i+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(i+": \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:\nhttps://www.w3ctech.com/topic/2226"));var l=o.apply(void 0,[].concat(a));return l.postcssPlugin=i,l.postcssVersion=new Ji().version,l}var n;return Object.defineProperty(t,"postcss",{get:function(){return n||(n=t()),n}}),t.process=function(s,a,u){return V([t(u)]).process(s,a)},t},V.stringify=Up,V.parse=Vp,V.fromJSON=zp,V.list=Yp,V.comment=function(r){return new Ga(r)},V.atRule=function(r){return new Va(r)},V.decl=function(r){return new Wa(r)},V.rule=function(r){return new Ya(r)},V.root=function(r){return new qa(r)},V.document=function(r){return new ja(r)},V.CssSyntaxError=Dp,V.Declaration=Wa,V.Container=Bp,V.Processor=Ji,V.Document=ja,V.Comment=Ga,V.Warning=Wp,V.AtRule=Va,V.Result=jp,V.Input=Gp,V.Rule=Ya,V.Root=qa,V.Node=qp,Fp.registerPostcss(V);var Jp=V;V.default=V;var te=oh(Jp);te.stringify,te.fromJSON,te.plugin,te.parse,te.list,te.document,te.comment,te.atRule,te.rule,te.decl,te.root,te.CssSyntaxError,te.Declaration,te.Container,te.Processor,te.Document,te.Comment,te.Warning,te.AtRule,te.Result,te.Input,te.Rule,te.Root,te.Node;var Hp=Object.defineProperty,Zp=function(r,i,o){return i in r?Hp(r,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[i]=o},Oe=function(r,i,o){return Zp(r,(typeof i=="undefined"?"undefined":M(i))!=="symbol"?i+"":i,o)};function Kp(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Xp(r){if(r.__esModule)return r;var i=r.default;if(typeof i=="function"){var o=function e(){return E(this,e)?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};o.prototype=i.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(r).forEach(function(e){var t=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(o,e,t.get?t:{enumerable:!0,get:function(){return r[e]}})}),o}var Hi={exports:{}},X=String,Ja=function(){return{isColorSupported:!1,reset:X,bold:X,dim:X,italic:X,underline:X,inverse:X,hidden:X,strikethrough:X,black:X,red:X,green:X,yellow:X,blue:X,magenta:X,cyan:X,white:X,gray:X,bgBlack:X,bgRed:X,bgGreen:X,bgYellow:X,bgBlue:X,bgMagenta:X,bgCyan:X,bgWhite:X}};Hi.exports=Ja(),Hi.exports.createColors=Ja;var Qp=Hi.exports,ed={},td=Object.freeze(Object.defineProperty({__proto__:null,default:ed},Symbol.toStringTag,{value:"Module"})),le=Xp(td),Ha=Qp,Za=le,Zi=(function(r){ee(i,r);function i(e,t,n,s,a,u){var l;return l=r.call(this,e)||this,l.name="CssSyntaxError",l.reason=e,a&&(l.file=a),s&&(l.source=s),u&&(l.plugin=u),typeof t!="undefined"&&typeof n!="undefined"&&(typeof t=="number"?(l.line=t,l.column=n):(l.line=t.line,l.column=t.column,l.endLine=n.line,l.endColumn=n.column)),l.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(l,i),l}var o=i.prototype;return o.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},o.showSourceCode=function(t){var n=this;if(!this.source)return"";var s=this.source;t==null&&(t=Ha.isColorSupported),Za&&t&&(s=Za(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),l=Math.min(this.line+2,a.length),f=String(l).length,c,h;if(t){var v=Ha.createColors(!0),d=v.bold,g=v.gray,p=v.red;c=function(m){return d(p(m))},h=function(m){return g(m)}}else c=h=function(m){return m};return a.slice(u,l).map(function(m,w){var S=u+1+w,b=" "+(" "+S).slice(-f)+" | ";if(S===n.line){var C=h(b.replace(/\d/g," "))+m.slice(0,n.column-1).replace(/[^\t]/g," ");return c(">")+h(b)+m+"\n "+C+c("^")}return" "+h(b)+m}).join("\n")},o.toString=function(){var t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t},i})(qt(Error)),Ki=Zi;Zi.default=Zi;var Ve={};Ve.isClean=Symbol("isClean"),Ve.my=Symbol("my");var Ka={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function rd(r){return r[0].toUpperCase()+r.slice(1)}var Xi=(function(){function r(o){this.builder=o}var i=r.prototype;return i.atrule=function(e,t){var n="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?n+=e.raws.afterName:s&&(n+=" "),e.nodes)this.block(e,n+s);else{var a=(e.raws.between||"")+(t?";":"");this.builder(n+s+a,e)}},i.beforeAfter=function(e,t){var n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):t==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");for(var s=e.parent,a=0;s&&s.type!=="root";)a+=1,s=s.parent;if(n.includes("\n")){var u=this.raw(e,null,"indent");if(u.length)for(var l=0;l<a;l++)n+=u}return n},i.block=function(e,t){var n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",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")},i.body=function(e){for(var t=e.nodes.length-1;t>0&&e.nodes[t].type==="comment";)t-=1;for(var n=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,t!==s||n)}},i.comment=function(e){var t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)},i.decl=function(e,t){var n=this.raw(e,"between","colon"),s=e.prop+n+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),t&&(s+=";"),this.builder(s,e)},i.document=function(e){this.body(e)},i.raw=function(e,t,n){var s;if(n||(n=t),t&&(s=e.raws[t],typeof s!="undefined"))return s;var a=e.parent;if(n==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return Ka[n];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[n]!="undefined")return u.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);var l="raw"+rd(n);return this[l]?s=this[l](u,e):u.walk(function(f){if(s=f.raws[t],typeof s!="undefined")return!1}),typeof s=="undefined"&&(s=Ka[n]),u.rawCache[n]=s,s},i.rawBeforeClose=function(e){var t;return e.walk(function(n){if(n.nodes&&n.nodes.length>0&&typeof n.raws.after!="undefined")return t=n.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},i.rawBeforeComment=function(e,t){var n;return e.walkComments(function(s){if(typeof s.raws.before!="undefined")return n=s.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n=="undefined"?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n},i.rawBeforeDecl=function(e,t){var n;return e.walkDecls(function(s){if(typeof s.raws.before!="undefined")return n=s.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n=="undefined"?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n},i.rawBeforeOpen=function(e){var t;return e.walk(function(n){if(n.type!=="decl"&&(t=n.raws.between,typeof t!="undefined"))return!1}),t},i.rawBeforeRule=function(e){var t;return e.walk(function(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before!="undefined")return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},i.rawColon=function(e){var t;return e.walkDecls(function(n){if(typeof n.raws.between!="undefined")return t=n.raws.between.replace(/[^\s:]/g,""),!1}),t},i.rawEmptyBody=function(e){var t;return e.walk(function(n){if(n.nodes&&n.nodes.length===0&&(t=n.raws.after,typeof t!="undefined"))return!1}),t},i.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var t;return e.walk(function(n){var s=n.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof n.raws.before!="undefined"){var a=n.raws.before.split("\n");return t=a[a.length-1],t=t.replace(/\S/g,""),!1}}),t},i.rawSemicolon=function(e){var t;return e.walk(function(n){if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(t=n.raws.semicolon,typeof t!="undefined"))return!1}),t},i.rawValue=function(e,t){var n=e[t],s=e.raws[t];return s&&s.value===n?s.raw:n},i.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},i.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},i.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},r})(),Xa=Xi;Xi.default=Xi;var nd=Xa;function Qi(r,i){var o=new nd(i);o.stringify(r)}var sn=Qi;Qi.default=Qi;var an=Ve.isClean,id=Ve.my,od=Ki,sd=Xa,ad=sn;function eo(r,i){var o=new r.constructor;for(var e in r)if(Object.prototype.hasOwnProperty.call(r,e)&&e!=="proxyCache"){var t=r[e],n=typeof t=="undefined"?"undefined":M(t);e==="parent"&&n==="object"?i&&(o[e]=i):e==="source"?o[e]=t:Array.isArray(t)?o[e]=t.map(function(s){return eo(s,o)}):(n==="object"&&t!==null&&(t=eo(t)),o[e]=t)}return o}var to=(function(){function r(o){o===void 0&&(o={}),this.raws={},this[an]=!1,this[id]=!0;for(var e in o)if(e==="nodes"){this.nodes=[];for(var t=I(o[e]),n;!(n=t()).done;){var s=n.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[e]=o[e]}var i=r.prototype;return i.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},i.after=function(e){return this.parent.insertAfter(this,e),this},i.assign=function(e){e===void 0&&(e={});for(var t in e)this[t]=e[t];return this},i.before=function(e){return this.parent.insertBefore(this,e),this},i.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},i.clone=function(e){e===void 0&&(e={});var t=eo(this);for(var n in e)t[n]=e[n];return t},i.cloneAfter=function(e){e===void 0&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},i.cloneBefore=function(e){e===void 0&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},i.error=function(e,t){if(t===void 0&&(t={}),this.source){var n=this.rangeBy(t),s=n.end,a=n.start;return this.source.input.error(e,{column:a.column,line:a.line},{column:s.column,line:s.line},t)}return new od(e)},i.getProxyProcessor=function(){return{get:function(t,n){return n==="proxyOf"?t:n==="root"?function(){return t.root().toProxy()}:t[n]},set:function(t,n,s){return t[n]===s||(t[n]=s,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&t.markDirty()),!0}}},i.markDirty=function(){if(this[an]){this[an]=!1;for(var e=this;e=e.parent;)e[an]=!1}},i.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},i.positionBy=function(e,t){var n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){t=this.toString();var s=t.indexOf(e.word);s!==-1&&(n=this.positionInside(s,t))}return n},i.positionInside=function(e,t){for(var n=t||this.toString(),s=this.source.start.column,a=this.source.start.line,u=0;u<e;u++)n[u]==="\n"?(s=1,a+=1):s+=1;return{column:s,line:a}},i.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},i.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var s=this.toString(),a=s.indexOf(e.word);a!==-1&&(t=this.positionInside(a,s),n=this.positionInside(a+e.word.length,s))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}},i.raw=function(e,t){var n=new sd;return n.raw(this,e,t)},i.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},i.replaceWith=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this.parent){for(var s=this,a=!1,u=I(t),l;!(l=u()).done;){var f=l.value;f===this?a=!0:a?(this.parent.insertAfter(s,f),s=f):this.parent.insertBefore(s,f)}a||this.remove()}return this},i.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},i.toJSON=function(e,t){var n={},s=t==null;t=t||new Map;var a=0;for(var u in this)if(Object.prototype.hasOwnProperty.call(this,u)&&!(u==="parent"||u==="proxyCache")){var l=this[u];if(Array.isArray(l))n[u]=l.map(function(c){return(typeof c=="undefined"?"undefined":M(c))==="object"&&c.toJSON?c.toJSON(null,t):c});else if((typeof l=="undefined"?"undefined":M(l))==="object"&&l.toJSON)n[u]=l.toJSON(null,t);else if(u==="source"){var f=t.get(l.input);f==null&&(f=a,t.set(l.input,a),a++),n[u]={end:l.end,inputId:f,start:l.start}}else n[u]=l}return s&&(n.inputs=[].concat(t.keys()).map(function(c){return c.toJSON()})),n},i.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},i.toString=function(e){e===void 0&&(e=ad),e.stringify&&(e=e.stringify);var t="";return e(this,function(n){t+=n}),t},i.warn=function(e,t,n){var s={node:this};for(var a in n)s[a]=n[a];return e.warn(t,s)},Z(r,[{key:"proxyOf",get:function(){return this}}]),r})(),un=to;to.default=to;var ud=un,ro=(function(r){ee(i,r);function i(o){var e;return o&&typeof o.value!="undefined"&&typeof o.value!="string"&&(o=T({},o,{value:String(o.value)})),e=r.call(this,o)||this,e.type="decl",e}return Z(i,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),i})(ud),ln=ro;ro.default=ro;var ld="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",fd=function(r){r===void 0&&(r=21);for(var i="",o=r;o--;)i+=ld[Math.random()*64|0];return i},cd={nanoid:fd},Qa=le.SourceMapConsumer,eu=le.SourceMapGenerator,hd=le.existsSync,pd=le.readFileSync,no=le.dirname,dd=le.join;function vd(r){return Buffer?Buffer.from(r,"base64").toString():window.atob(r)}var io=(function(){function r(o,e){if(e.map!==!1){this.loadAnnotation(o),this.inline=this.startWith(this.annotation,"data:");var t=e.map?e.map.prev:void 0,n=this.loadMap(e.from,t);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=no(this.mapFile)),n&&(this.text=n)}}var i=r.prototype;return i.consumer=function(){return this.consumerCache||(this.consumerCache=new Qa(this.text)),this.consumerCache},i.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,n=/^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(t.test(e)||n.test(e))return vd(e.substr(RegExp.lastMatch.length));var u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},i.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},i.isMap=function(e){return(typeof e=="undefined"?"undefined":M(e))!=="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)},i.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var n=e.lastIndexOf(t.pop()),s=e.indexOf("*/",n);n>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,s)))}},i.loadFile=function(e){if(this.root=no(e),hd(e))return this.mapFile=e,pd(e,"utf-8").toString().trim()},i.loadMap=function(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){var n=t(e);if(n){var s=this.loadFile(n);if(!s)throw new Error("Unable to load previous source map: "+n.toString());return s}}else{if(E(t,Qa))return eu.fromSourceMap(t).toString();if(E(t,eu))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var a=this.annotation;return e&&(a=dd(no(e),a)),this.loadFile(a)}}},i.startWith=function(e,t){return e?e.substr(0,t.length)===t:!1},i.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},r})(),tu=io;io.default=io;var md=le.SourceMapConsumer,gd=le.SourceMapGenerator,ru=le.fileURLToPath,fn=le.pathToFileURL,oo=le.isAbsolute,so=le.resolve,yd=cd.nanoid,ao=le,nu=Ki,wd=tu,uo=Symbol("fromOffsetCache"),Sd=!!(md&&gd),iu=!!(so&&oo),cn=(function(){function r(o,e){if(e===void 0&&(e={}),o===null||typeof o=="undefined"||(typeof o=="undefined"?"undefined":M(o))==="object"&&!o.toString)throw new Error("PostCSS received "+o+" instead of CSS string");if(this.css=o.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!iu||/^\w+:\/\//.test(e.from)||oo(e.from)?this.file=e.from:this.file=so(e.from)),iu&&Sd){var t=new wd(this.css,e);if(t.text){this.map=t;var n=t.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+yd(6)+">"),this.map&&(this.map.file=this.from)}var i=r.prototype;return i.error=function(e,t,n,s){s===void 0&&(s={});var a,u,l;if(t&&(typeof t=="undefined"?"undefined":M(t))==="object"){var f=t,c=n;if(typeof f.offset=="number"){var h=this.fromOffset(f.offset);t=h.line,n=h.col}else t=f.line,n=f.column;if(typeof c.offset=="number"){var v=this.fromOffset(c.offset);u=v.line,l=v.col}else u=c.line,l=c.column}else if(!n){var d=this.fromOffset(t);t=d.line,n=d.col}var g=this.origin(t,n,u,l);return g?a=new nu(e,g.endLine===void 0?g.line:{column:g.column,line:g.line},g.endLine===void 0?g.column:{column:g.endColumn,line:g.endLine},g.source,g.file,s.plugin):a=new nu(e,u===void 0?t:{column:n,line:t},u===void 0?n:{column:l,line:u},this.css,this.file,s.plugin),a.input={column:n,endColumn:l,endLine:u,line:t,source:this.css},this.file&&(fn&&(a.input.url=fn(this.file).toString()),a.input.file=this.file),a},i.fromOffset=function(e){var t,n;if(this[uo])n=this[uo];else{var s=this.css.split("\n");n=new Array(s.length);for(var a=0,u=0,l=s.length;u<l;u++)n[u]=a,a+=s[u].length+1;this[uo]=n}t=n[n.length-1];var f=0;if(e>=t)f=n.length-1;else for(var c=n.length-2,h;f<c;)if(h=f+(c-f>>1),e<n[h])c=h-1;else if(e>=n[h+1])f=h+1;else{f=h;break}return{col:e-n[f]+1,line:f+1}},i.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:so(this.map.consumer().sourceRoot||this.map.root||".",e)},i.origin=function(e,t,n,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:t,line:e});if(!u.source)return!1;var l;typeof n=="number"&&(l=a.originalPositionFor({column:s,line:n}));var f;oo(u.source)?f=fn(u.source):f=new URL(u.source,this.map.consumer().sourceRoot||fn(this.map.mapFile));var c={column:u.column,endColumn:l&&l.column,endLine:l&&l.line,line:u.line,url:f.toString()};if(f.protocol==="file:")if(ru)c.file=ru(f);else throw new Error("file: protocol is not available in this PostCSS build");var h=a.sourceContentFor(u.source);return h&&(c.source=h),c},i.toJSON=function(){for(var e={},t=0,n=["hasBOM","css","file","id"];t<n.length;t++){var s=n[t];this[s]!=null&&(e[s]=this[s])}return this.map&&(e.map=T({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Z(r,[{key:"from",get:function(){return this.file||this.id}}]),r})(),hn=cn;cn.default=cn,ao&&ao.registerInput&&ao.registerInput(cn);var ou=le.SourceMapConsumer,pn=le.SourceMapGenerator,dn=le.dirname,su=le.relative,au=le.resolve,uu=le.sep,lu=le.pathToFileURL,bd=hn,Cd=!!(ou&&pn),Id=!!(dn&&au&&su&&uu),Od=(function(){function r(o,e,t,n){this.stringify=o,this.mapOpts=t.map||{},this.root=e,this.opts=t,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var i=r.prototype;return i.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 t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},i.applyPrevMaps=function(){for(var e=I(this.previous()),t;!(t=e()).done;){var n=t.value,s=this.toUrl(this.path(n.file)),a=n.root||dn(n.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new ou(n.text),u.sourcesContent&&(u.sourcesContent=null)):u=n.consumer(),this.map.applySourceMap(u,s,this.toUrl(this.path(a)))}},i.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},i.generate=function(){if(this.clearAnnotation(),Id&&Cd&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},i.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=pn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new pn({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]},i.generateString=function(){var e=this;this.css="",this.map=new pn({file:this.outputFile(),ignoreInvalidMapping:!0});var t=1,n=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,l;this.stringify(this.root,function(f,c,h){if(e.css+=f,c&&h!=="end"&&(a.generated.line=t,a.generated.column=n-1,c.source&&c.source.start?(a.source=e.sourcePath(c),a.original.line=c.source.start.line,a.original.column=c.source.start.column-1,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,e.map.addMapping(a))),u=f.match(/\n/g),u?(t+=u.length,l=f.lastIndexOf("\n"),n=f.length-l):n+=f.length,c&&h!=="start"){var v=c.parent||{raws:{}},d=c.type==="decl"||c.type==="atrule"&&!c.nodes;(!d||c!==v.last||v.raws.semicolon)&&(c.source&&c.source.end?(a.source=e.sourcePath(c),a.original.line=c.source.end.line,a.original.column=c.source.end.column-1,a.generated.line=t,a.generated.column=n-2,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=t,a.generated.column=n-1,e.map.addMapping(a)))}})},i.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},i.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(t){return t.inline}):!0},i.isMap=function(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0},i.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(e){return e.withContent()}):!0},i.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},i.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var n=this.opts.to?dn(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=dn(au(n,this.mapOpts.annotation)));var s=su(n,e);return this.memoizedPaths.set(e,s),s},i.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(n){if(n.source&&n.source.input.map){var s=n.source.input.map;e.previousMaps.includes(s)||e.previousMaps.push(s)}});else{var t=new bd(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},i.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!t[a]){t[a]=!0;var u=e.usesFileUrls?e.toFileUrl(a):e.toUrl(e.path(a));e.map.setSourceContent(u,s.source.input.css)}}});else if(this.css){var n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}},i.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))},i.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},i.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(lu){var n=lu(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")},i.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;uu==="\\"&&(e=e.replace(/\\/g,"/"));var n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n},r})(),fu=Od,xd=un,lo=(function(r){ee(i,r);function i(o){var e;return e=r.call(this,o)||this,e.type="comment",e}return i})(xd),vn=lo;lo.default=lo;var cu=Ve.isClean,hu=Ve.my,pu=ln,du=vn,Rd=un,vu,fo,co,mu;function gu(r){return r.map(function(i){return i.nodes&&(i.nodes=gu(i.nodes)),delete i.source,i})}function yu(r){if(r[cu]=!1,r.proxyOf.nodes)for(var i=I(r.proxyOf.nodes),o;!(o=i()).done;){var e=o.value;yu(e)}}var Le=(function(r){ee(i,r);function i(){return r.apply(this,arguments)||this}var o=i.prototype;return o.append=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];for(var a=I(n),u;!(u=a()).done;)for(var l=u.value,f=this.normalize(l,this.last),c=I(f),h;!(h=c()).done;){var v=h.value;this.proxyOf.nodes.push(v)}return this.markDirty(),this},o.cleanRaws=function(t){if(r.prototype.cleanRaws.call(this,t),this.nodes)for(var n=I(this.nodes),s;!(s=n()).done;){var a=s.value;a.cleanRaws(t)}},o.each=function(t){if(this.proxyOf.nodes){for(var n=this.getIterator(),s,a;this.indexes[n]<this.proxyOf.nodes.length&&(s=this.indexes[n],a=t(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[n]+=1;return delete this.indexes[n],a}},o.every=function(t){return this.nodes.every(t)},o.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var t=this.lastEach;return this.indexes[t]=0,t},o.getProxyProcessor=function(){return{get:function(n,s){return s==="proxyOf"?n:n[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),l=0;l<a;l++)u[l]=arguments[l];var f;return(f=n)[s].apply(f,[].concat(u.map(function(c){return typeof c=="function"?function(h,v){return c(h.toProxy(),v)}:c})))}:s==="every"||s==="some"?function(a){return n[s](function(u){for(var l=arguments.length,f=new Array(l>1?l-1:0),c=1;c<l;c++)f[c-1]=arguments[c];return a.apply(void 0,[].concat([u.toProxy()],f))})}:s==="root"?function(){return n.root().toProxy()}:s==="nodes"?n.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?n[s].toProxy():n[s]:n[s]},set:function(n,s,a){return n[s]===a||(n[s]=a,(s==="name"||s==="params"||s==="selector")&&n.markDirty()),!0}}},o.index=function(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))},o.insertAfter=function(t,n){var s=this.index(t),a=this.normalize(n,this.proxyOf.nodes[s]).reverse();s=this.index(t);for(var u=I(a),l;!(l=u()).done;){var f=l.value;this.proxyOf.nodes.splice(s+1,0,f)}var c;for(var h in this.indexes)c=this.indexes[h],s<c&&(this.indexes[h]=c+a.length);return this.markDirty(),this},o.insertBefore=function(t,n){var s=this.index(t),a=s===0?"prepend":!1,u=this.normalize(n,this.proxyOf.nodes[s],a).reverse();s=this.index(t);for(var l=I(u),f;!(f=l()).done;){var c=f.value;this.proxyOf.nodes.splice(s,0,c)}var h;for(var v in this.indexes)h=this.indexes[v],s<=h&&(this.indexes[v]=h+u.length);return this.markDirty(),this},o.normalize=function(t,n){var s=this;if(typeof t=="string")t=gu(vu(t).nodes);else if(typeof t=="undefined")t=[];else if(Array.isArray(t)){t=t.slice(0);for(var a=I(t),u;!(u=a()).done;){var l=u.value;l.parent&&l.parent.removeChild(l,"ignore")}}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(var f=I(t),c;!(c=f()).done;){var h=c.value;h.parent&&h.parent.removeChild(h,"ignore")}}else if(t.type)t=[t];else if(t.prop){if(typeof t.value=="undefined")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new pu(t)]}else if(t.selector)t=[new fo(t)];else if(t.name)t=[new co(t)];else if(t.text)t=[new du(t)];else throw new Error("Unknown node type in node creation");var v=t.map(function(d){return d[hu]||i.rebuild(d),d=d.proxyOf,d.parent&&d.parent.removeChild(d),d[cu]&&yu(d),typeof d.raws.before=="undefined"&&n&&typeof n.raws.before!="undefined"&&(d.raws.before=n.raws.before.replace(/\S/g,"")),d.parent=s.proxyOf,d});return v},o.prepend=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];n=n.reverse();for(var a=I(n),u;!(u=a()).done;){for(var l=u.value,f=this.normalize(l,this.first,"prepend").reverse(),c=I(f),h;!(h=c()).done;){var v=h.value;this.proxyOf.nodes.unshift(v)}for(var d in this.indexes)this.indexes[d]=this.indexes[d]+f.length}return this.markDirty(),this},o.push=function(t){return t.parent=this,this.proxyOf.nodes.push(t),this},o.removeAll=function(){for(var t=I(this.proxyOf.nodes),n;!(n=t()).done;){var s=n.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},o.removeChild=function(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);var n;for(var s in this.indexes)n=this.indexes[s],n>=t&&(this.indexes[s]=n-1);return this.markDirty(),this},o.replaceValues=function(t,n,s){return s||(s=n,n={}),this.walkDecls(function(a){n.props&&!n.props.includes(a.prop)||n.fast&&!a.value.includes(n.fast)||(a.value=a.value.replace(t,s))}),this.markDirty(),this},o.some=function(t){return this.nodes.some(t)},o.walk=function(t){return this.each(function(n,s){var a;try{a=t(n,s)}catch(u){throw n.addToError(u)}return a!==!1&&n.walk&&(a=n.walk(t)),a})},o.walkAtRules=function(t,n){return n?E(t,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&t.test(s.name))return n(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="atrule")return n(s,a)}))},o.walkComments=function(t){return this.walk(function(n,s){if(n.type==="comment")return t(n,s)})},o.walkDecls=function(t,n){return n?E(t,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&t.test(s.prop))return n(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="decl")return n(s,a)}))},o.walkRules=function(t,n){return n?E(t,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&t.test(s.selector))return n(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="rule")return n(s,a)}))},Z(i,[{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]}}]),i})(Rd);Le.registerParse=function(r){vu=r},Le.registerRule=function(r){fo=r},Le.registerAtRule=function(r){co=r},Le.registerRoot=function(r){mu=r};var it=Le;Le.default=Le,Le.rebuild=function(r){r.type==="atrule"?Object.setPrototypeOf(r,co.prototype):r.type==="rule"?Object.setPrototypeOf(r,fo.prototype):r.type==="decl"?Object.setPrototypeOf(r,pu.prototype):r.type==="comment"?Object.setPrototypeOf(r,du.prototype):r.type==="root"&&Object.setPrototypeOf(r,mu.prototype),r[hu]=!0,r.nodes&&r.nodes.forEach(function(i){Le.rebuild(i)})};var Ed=it,wu,Su,ir=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,T({type:"document"},e))||this,t.nodes||(t.nodes=[]),t}var o=i.prototype;return o.toResult=function(t){t===void 0&&(t={});var n=new wu(new Su,this,t);return n.stringify()},i})(Ed);ir.registerLazyResult=function(r){wu=r},ir.registerProcessor=function(r){Su=r};var ho=ir;ir.default=ir;var bu={},Cu=function(i){bu[i]||(bu[i]=!0,typeof console!="undefined"&&console.warn&&console.warn(i))},po=(function(){function r(o,e){if(e===void 0&&(e={}),this.type="warning",this.text=o,e.node&&e.node.source){var t=e.node.rangeBy(e);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(var n in e)this[n]=e[n]}var i=r.prototype;return i.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},r})(),Iu=po;po.default=po;var Ad=Iu,vo=(function(){function r(o,e,t){this.processor=o,this.messages=[],this.root=e,this.opts=t,this.css=void 0,this.map=void 0}var i=r.prototype;return i.toString=function(){return this.css},i.warn=function(e,t){t===void 0&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new Ad(e,t);return this.messages.push(n),n},i.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},Z(r,[{key:"content",get:function(){return this.css}}]),r})(),mo=vo;vo.default=vo;var go=39,Ou=34,mn=92,xu=47,gn=10,or=32,yn=12,wn=9,Sn=13,Md=91,$d=93,kd=40,_d=41,Pd=123,Td=125,Nd=59,Ld=42,Dd=58,Fd=64,bn=/[\t\n\f\r "#'()/;[\\\]{}]/g,Cn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Bd=/.[\r\n"'(/\\]/,Ru=/[\da-f]/i,Ud=function(i,o){o===void 0&&(o={});var e=i.css.valueOf(),t=o.ignoreErrors,n,s,a,u,l,f,c,h,v,d,g=e.length,p=0,m=[],w=[];function S(){return p}function b(R){throw i.error("Unclosed "+R,p)}function C(){return w.length===0&&p>=g}function x(R){if(w.length)return w.pop();if(!(p>=g)){var k=R?R.ignoreUnclosed:!1;switch(n=e.charCodeAt(p),n){case gn:case or:case wn:case Sn:case yn:{s=p;do s+=1,n=e.charCodeAt(s);while(n===or||n===gn||n===wn||n===Sn||n===yn);d=["space",e.slice(p,s)],p=s-1;break}case Md:case $d:case Pd:case Td:case Dd:case Nd:case _d:{var N=String.fromCharCode(n);d=[N,N,p];break}case kd:{if(h=m.length?m.pop()[1]:"",v=e.charCodeAt(p+1),h==="url"&&v!==go&&v!==Ou&&v!==or&&v!==gn&&v!==wn&&v!==yn&&v!==Sn){s=p;do{if(f=!1,s=e.indexOf(")",s+1),s===-1)if(t||k){s=p;break}else b("bracket");for(c=s;e.charCodeAt(c-1)===mn;)c-=1,f=!f}while(f);d=["brackets",e.slice(p,s+1),p,s],p=s}else s=e.indexOf(")",p+1),u=e.slice(p,s+1),s===-1||Bd.test(u)?d=["(","(",p]:(d=["brackets",u,p,s],p=s);break}case go:case Ou:{a=n===go?"'":'"',s=p;do{if(f=!1,s=e.indexOf(a,s+1),s===-1)if(t||k){s=p+1;break}else b("string");for(c=s;e.charCodeAt(c-1)===mn;)c-=1,f=!f}while(f);d=["string",e.slice(p,s+1),p,s],p=s;break}case Fd:{bn.lastIndex=p+1,bn.test(e),bn.lastIndex===0?s=e.length-1:s=bn.lastIndex-2,d=["at-word",e.slice(p,s+1),p,s],p=s;break}case mn:{for(s=p,l=!0;e.charCodeAt(s+1)===mn;)s+=1,l=!l;if(n=e.charCodeAt(s+1),l&&n!==xu&&n!==or&&n!==gn&&n!==wn&&n!==Sn&&n!==yn&&(s+=1,Ru.test(e.charAt(s)))){for(;Ru.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===or&&(s+=1)}d=["word",e.slice(p,s+1),p,s],p=s;break}default:{n===xu&&e.charCodeAt(p+1)===Ld?(s=e.indexOf("*/",p+2)+1,s===0&&(t||k?s=e.length:b("comment")),d=["comment",e.slice(p,s+1),p,s],p=s):(Cn.lastIndex=p+1,Cn.test(e),Cn.lastIndex===0?s=e.length-1:s=Cn.lastIndex-2,d=["word",e.slice(p,s+1),p,s],m.push(d),p=s);break}}return p++,d}}function $(R){w.push(R)}return{back:$,endOfFile:C,nextToken:x,position:S}},Eu=it,In=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,e)||this,t.type="atrule",t}var o=i.prototype;return o.append=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=r.prototype.append).call.apply(a,[].concat([this],n))},o.prepend=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=r.prototype.prepend).call.apply(a,[].concat([this],n))},i})(Eu),yo=In;In.default=In,Eu.registerAtRule(In);var Au=it,Mu,$u,Ot=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,e)||this,t.type="root",t.nodes||(t.nodes=[]),t}var o=i.prototype;return o.normalize=function(t,n,s){var a=r.prototype.normalize.call(this,t);if(n){if(s==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(var u=I(a),l;!(l=u()).done;){var f=l.value;f.raws.before=n.raws.before}}return a},o.removeChild=function(t,n){var s=this.index(t);return!n&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),r.prototype.removeChild.call(this,t)},o.toResult=function(t){t===void 0&&(t={});var n=new Mu(new $u,this,t);return n.stringify()},i})(Au);Ot.registerLazyResult=function(r){Mu=r},Ot.registerProcessor=function(r){$u=r};var sr=Ot;Ot.default=Ot,Au.registerRoot(Ot);var ar={comma:function(i){return ar.split(i,[","],!0)},space:function(i){var o=[" ","\n"," "];return ar.split(i,o)},split:function(i,o,e){for(var t=[],n="",s=!1,a=0,u=!1,l="",f=!1,c=I(i),h;!(h=c()).done;){var v=h.value;f?f=!1:v==="\\"?f=!0:u?v===l&&(u=!1):v==='"'||v==="'"?(u=!0,l=v):v==="("?a+=1:v===")"?a>0&&(a-=1):a===0&&o.includes(v)&&(s=!0),s?(n!==""&&t.push(n.trim()),n="",s=!1):n+=v}return(e||n!=="")&&t.push(n.trim()),t}},ku=ar;ar.default=ar;var _u=it,zd=ku,On=(function(r){ee(i,r);function i(o){var e;return e=r.call(this,o)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return Z(i,[{key:"selectors",get:function(){return zd.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}]),i})(_u),wo=On;On.default=On,_u.registerRule(On);var Wd=ln,jd=Ud,Gd=vn,Vd=yo,Yd=sr,Pu=wo,Tu={empty:!0,space:!0};function qd(r){for(var i=r.length-1;i>=0;i--){var o=r[i],e=o[3]||o[2];if(e)return e}}var Jd=(function(){function r(o){this.input=o,this.root=new Yd,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}var i=r.prototype;return i.atrule=function(e){var t=new Vd;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);for(var n,s,a,u=!1,l=!1,f=[],c=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){l=!0;break}else if(n==="}"){if(f.length>0){for(a=f.length-1,s=f[a];s&&s[0]==="space";)s=f[--a];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else f.push(e);else f.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(f),f.length?(t.raws.afterName=this.spacesAndCommentsFromStart(f),this.raw(t,"params",f),u&&(e=f[f.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t)},i.checkMissedSemicolon=function(e){var t=this.colon(e);if(t!==!1){for(var n=0,s,a=t-1;a>=0&&(s=e[a],!(s[0]!=="space"&&(n+=1,n===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},i.colon=function(e){for(var t=0,n,s,a,u=I(e.entries()),l;!(l=u()).done;){var f=l.value,c=f[0],h=f[1];if(n=h,s=n[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!a)this.doubleColon(n);else{if(a[0]==="word"&&a[1]==="progid")continue;return c}a=n}return!1},i.comment=function(e){var t=new Gd;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{var s=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}},i.createTokenizer=function(){this.tokenizer=jd(this.input)},i.decl=function(e,t){var n=new Wd;this.init(n,e[0][2]);var s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(s[3]||s[2]||qd(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){n.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),n.raws.between+=u[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));for(var l=[],f;e.length&&(f=e[0][0],!(f!=="space"&&f!=="comment"));)l.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(u=e[c],u[1].toLowerCase()==="!important"){n.important=!0;var h=this.stringFrom(e,c);h=this.spacesFromEnd(e)+h,h!==" !important"&&(n.raws.important=h);break}else if(u[1].toLowerCase()==="important"){for(var v=e.slice(0),d="",g=c;g>0;g--){var p=v[g][0];if(d.trim().indexOf("!")===0&&p!=="space")break;d=v.pop()[1]+d}d.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=d,e=v)}if(u[0]!=="space"&&u[0]!=="comment")break}var m=e.some(function(w){return w[0]!=="space"&&w[0]!=="comment"});m&&(n.raws.between+=l.map(function(w){return w[1]}).join(""),l=[]),this.raw(n,"value",l.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},i.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},i.emptyRule=function(e){var t=new Pu;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},i.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)},i.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())},i.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},i.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},i.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},i.other=function(e){for(var t=!1,n=null,s=!1,a=null,u=[],l=e[1].startsWith("--"),f=[],c=e;c;){if(n=c[0],f.push(c),n==="("||n==="[")a||(a=c),u.push(n==="("?")":"]");else if(l&&s&&n==="{")a||(a=c),u.push("}");else if(u.length===0)if(n===";")if(s){this.decl(f,l);return}else break;else if(n==="{"){this.rule(f);return}else if(n==="}"){this.tokenizer.back(f.pop()),t=!0;break}else n===":"&&(s=!0);else n===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),u.length>0&&this.unclosedBracket(a),t&&s){if(!l)for(;f.length&&(c=f[f.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(f.pop());this.decl(f,l)}else this.unknownWord(f)},i.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()},i.precheckMissedSemicolon=function(){},i.raw=function(e,t,n,s){for(var a,u,l=n.length,f="",c=!0,h,v,d=0;d<l;d+=1)a=n[d],u=a[0],u==="space"&&d===l-1&&!s?c=!1:u==="comment"?(v=n[d-1]?n[d-1][0]:"empty",h=n[d+1]?n[d+1][0]:"empty",!Tu[v]&&!Tu[h]?f.slice(-1)===","?c=!1:f+=a[1]:c=!1):f+=a[1];if(!c){var g=n.reduce(function(p,m){return p+m[1]},"");e.raws[t]={raw:g,value:f}}e[t]=f},i.rule=function(e){e.pop();var t=new Pu;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},i.spacesAndCommentsFromEnd=function(e){for(var t,n="";e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)n=e.pop()[1]+n;return n},i.spacesAndCommentsFromStart=function(e){for(var t,n="";e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)n+=e.shift()[1];return n},i.spacesFromEnd=function(e){for(var t,n="";e.length&&(t=e[e.length-1][0],t==="space");)n=e.pop()[1]+n;return n},i.stringFrom=function(e,t){for(var n="",s=t;s<e.length;s++)n+=e[s][1];return e.splice(t,e.length-t),n},i.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},i.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},i.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},i.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},i.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},r})(),Hd=Jd,Zd=it,Kd=Hd,Xd=hn;function xn(r,i){var o=new Xd(r,i),e=new Kd(o);try{e.parse()}catch(t){throw process.env.NODE_ENV!=="production"&&t.name==="CssSyntaxError"&&i&&i.from&&(/\.scss$/i.test(i.from)?t.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(i.from)?t.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(i.from)&&(t.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),t}return e.root}var So=xn;xn.default=xn,Zd.registerParse(xn);var Me=Ve.isClean,Qd=Ve.my,ev=fu,tv=sn,rv=it,nv=ho,iv=Cu,Nu=mo,ov=So,sv=sr,av={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},uv={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},lv={Once:!0,postcssPlugin:!0,prepare:!0},xt=0;function ur(r){return(typeof r=="undefined"?"undefined":M(r))==="object"&&typeof r.then=="function"}function Lu(r){var i=!1,o=av[r.type];return r.type==="decl"?i=r.prop.toLowerCase():r.type==="atrule"&&(i=r.name.toLowerCase()),i&&r.append?[o,o+"-"+i,xt,o+"Exit",o+"Exit-"+i]:i?[o,o+"-"+i,o+"Exit",o+"Exit-"+i]:r.append?[o,xt,o+"Exit"]:[o,o+"Exit"]}function Du(r){var i;return r.type==="document"?i=["Document",xt,"DocumentExit"]:r.type==="root"?i=["Root",xt,"RootExit"]:i=Lu(r),{eventIndex:0,events:i,iterator:0,node:r,visitorIndex:0,visitors:[]}}function bo(r){return r[Me]=!1,r.nodes&&r.nodes.forEach(function(i){return bo(i)}),r}var Co={},Rt=(function(){function r(o,e,t){var n=this;this.stringified=!1,this.processed=!1;var s;if((typeof e=="undefined"?"undefined":M(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=bo(e);else if(E(e,r)||E(e,Nu))s=bo(e.root),e.map&&(typeof t.map=="undefined"&&(t.map={}),t.map.inline||(t.map.inline=!1),t.map.prev=e.map);else{var a=ov;t.syntax&&(a=t.syntax.parse),t.parser&&(a=t.parser),a.parse&&(a=a.parse);try{s=a(e,t)}catch(u){this.processed=!0,this.error=u}s&&!s[Qd]&&rv.rebuild(s)}this.result=new Nu(o,s,t),this.helpers=T({},Co,{postcss:Co,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":M(u))==="object"&&u.prepare?T({},u,u.prepare(n.result)):u})}var i=r.prototype;return i.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},i.catch=function(e){return this.async().catch(e)},i.finally=function(e){return this.async().then(e,e)},i.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},i.handleError=function(e,t){var n=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion&&process.env.NODE_ENV!=="production"){var s=n.postcssPlugin,a=n.postcssVersion,u=this.result.processor.version,l=a.split("."),f=u.split(".");(l[0]!==f[0]||parseInt(l[1])>parseInt(f[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+u+", but "+s+" uses "+a+". Perhaps this is the source of the error below.")}}catch(c){console&&console.error&&console.error(c)}return e},i.prepareVisitors=function(){var e=this;this.listeners={};for(var t=function(f,c,h){e.listeners[c]||(e.listeners[c]=[]),e.listeners[c].push([f,h])},n=I(this.plugins),s;!(s=n()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":M(a))==="object")for(var u in a){if(!uv[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!lv[u])if(M(a[u])==="object")for(var l in a[u])l==="*"?t(a,u,a[u][l]):t(a,u+"-"+l.toLowerCase(),a[u][l]);else typeof a[u]=="function"&&t(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},i.runAsync=function(){var e=this;return kr(function(){var t,n,s,a,u,l,f,c,h,v,d,g;return tt(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(n=e.plugins[t],s=e.runOnRoot(n),!ur(s))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,s];case 3:return p.sent(),[3,5];case 4:throw a=p.sent(),e.handleError(a);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];u=e.result.root,p.label=7;case 7:if(u[Me])return[3,14];u[Me]=!0,l=[Du(u)],p.label=8;case 8:if(!(l.length>0))return[3,13];if(f=e.visitTick(l),!ur(f))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,f];case 10:return p.sent(),[3,12];case 11:throw c=p.sent(),h=l[l.length-1].node,e.handleError(c,h);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];v=function(){var m,w,S,b,C;return tt(this,function(x){switch(x.label){case 0:m=g.value,w=m[0],S=m[1],e.result.lastPlugin=w,x.label=1;case 1:return x.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(b=u.nodes.map(function($){return S($,e.helpers)}),[4,Promise.all(b)]);case 2:return x.sent(),[3,5];case 3:return[4,S(u,e.helpers)];case 4:x.sent(),x.label=5;case 5:return[3,7];case 6:throw C=x.sent(),e.handleError(C);case 7:return[2]}})},d=I(e.listeners.OnceExit),p.label=15;case 15:return(g=d()).done?[3,18]:[5,di(v())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},i.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((typeof e=="undefined"?"undefined":M(e))==="object"&&e.Once){if(this.result.root.type==="document"){var n=this.result.root.nodes.map(function(s){return e.Once(s,t.helpers)});return ur(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}},i.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=tv;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new ev(t,this.result.root,this.result.opts),s=n.generate();return this.result.css=s[0],this.result.map=s[1],this.result},i.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),t;!(t=e()).done;){var n=t.value,s=this.runOnRoot(n);if(ur(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Me];)a[Me]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=I(a.nodes),l;!(l=u()).done;){var f=l.value;this.visitSync(this.listeners.OnceExit,f)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},i.then=function(e,t){return process.env.NODE_ENV!=="production"&&("from"in this.opts||iv("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},i.toString=function(){return this.css},i.visitSync=function(e,t){for(var n=I(e),s;!(s=n()).done;){var a=s.value,u=a[0],l=a[1];this.result.lastPlugin=u;var f=void 0;try{f=l(t,this.helpers)}catch(c){throw this.handleError(c,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(ur(f))throw this.getAsyncError()}},i.visitTick=function(e){var t=e[e.length-1],n=t.node,s=t.visitors;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){var a=s[t.visitorIndex],u=a[0],l=a[1];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=u;try{return l(n.toProxy(),this.helpers)}catch(d){throw this.handleError(d,n)}}if(t.iterator!==0){for(var f=t.iterator,c;c=n.nodes[n.indexes[f]];)if(n.indexes[f]+=1,!c[Me]){c[Me]=!0,e.push(Du(c));return}t.iterator=0,delete n.indexes[f]}for(var h=t.events;t.eventIndex<h.length;){var v=h[t.eventIndex];if(t.eventIndex+=1,v===xt){n.nodes&&n.nodes.length&&(n[Me]=!0,t.iterator=n.getIterator());return}else if(this.listeners[v]){t.visitors=this.listeners[v];return}}e.pop()},i.walkSync=function(e){var t=this;e[Me]=!0;for(var n=Lu(e),s=I(n),a;!(a=s()).done;){var u=a.value;if(u===xt)e.nodes&&e.each(function(f){f[Me]||t.walkSync(f)});else{var l=this.listeners[u];if(l&&this.visitSync(l,e.toProxy()))return}}},i.warnings=function(){return this.sync().warnings()},Z(r,[{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"}}]),r})();Rt.registerPostcss=function(r){Co=r};var Fu=Rt;Rt.default=Rt,sv.registerLazyResult(Rt),nv.registerLazyResult(Rt);var fv=fu,cv=sn,hv=Cu,pv=So,dv=mo,Io=(function(){function r(o,e,t){e=e.toString(),this.stringified=!1,this._processor=o,this._css=e,this._opts=t,this._map=void 0;var n,s=cv;this.result=new dv(this._processor,n,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new fv(s,n,this._opts,e);if(u.isMap()){var l=u.generate(),f=l[0],c=l[1];f&&(this.result.css=f),c&&(this.result.map=c)}else u.clearAnnotation(),this.result.css=u.css}var i=r.prototype;return i.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},i.catch=function(e){return this.async().catch(e)},i.finally=function(e){return this.async().then(e,e)},i.sync=function(){if(this.error)throw this.error;return this.result},i.then=function(e,t){return process.env.NODE_ENV!=="production"&&("from"in this._opts||hv("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},i.toString=function(){return this._css},i.warnings=function(){return[]},Z(r,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=pv;try{e=t(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),r})(),vv=Io;Io.default=Io;var mv=vv,gv=Fu,yv=ho,wv=sr,lr=(function(){function r(o){o===void 0&&(o=[]),this.version="8.4.38",this.plugins=this.normalize(o)}var i=r.prototype;return i.normalize=function(e){for(var t=[],n=I(e),s;!(s=n()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":M(a))==="object"&&Array.isArray(a.plugins))t=t.concat(a.plugins);else if((typeof a=="undefined"?"undefined":M(a))==="object"&&a.postcssPlugin)t.push(a);else if(typeof a=="function")t.push(a);else if((typeof a=="undefined"?"undefined":M(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 t},i.process=function(e,t){return t===void 0&&(t={}),!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new mv(this,e,t):new gv(this,e,t)},i.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},r})(),Sv=lr;lr.default=lr,wv.registerProcessor(lr),yv.registerProcessor(lr);var bv=ln,Cv=tu,Iv=vn,Ov=yo,xv=hn,Rv=sr,Ev=wo;function fr(r,i){if(Array.isArray(r))return r.map(function(c){return fr(c)});var o=r.inputs,e=et(r,["inputs"]);if(o){i=[];for(var t=I(o),n;!(n=t()).done;){var s=n.value,a=T({},s,{__proto__:xv.prototype});a.map&&(a.map=T({},a.map,{__proto__:Cv.prototype})),i.push(a)}}if(e.nodes&&(e.nodes=r.nodes.map(function(c){return fr(c,i)})),e.source){var u=e.source,l=u.inputId,f=et(u,["inputId"]);e.source=f,l!=null&&(e.source.input=i[l])}if(e.type==="root")return new Rv(e);if(e.type==="decl")return new bv(e);if(e.type==="rule")return new Ev(e);if(e.type==="comment")return new Iv(e);if(e.type==="atrule")return new Ov(e);throw new Error("Unknown node type: "+r.type)}var Av=fr;fr.default=fr;var Mv=Ki,Bu=ln,$v=Fu,kv=it,Oo=Sv,_v=sn,Pv=Av,Uu=ho,Tv=Iu,zu=vn,Wu=yo,Nv=mo,Lv=hn,Dv=So,Fv=ku,ju=wo,Gu=sr,Bv=un;function Y(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new Oo(i)}Y.plugin=function(i,o){var e=!1;function t(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];console&&console.warn&&!e&&(e=!0,console.warn(i+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(i+": \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:\nhttps://www.w3ctech.com/topic/2226"));var l=o.apply(void 0,[].concat(a));return l.postcssPlugin=i,l.postcssVersion=new Oo().version,l}var n;return Object.defineProperty(t,"postcss",{get:function(){return n||(n=t()),n}}),t.process=function(s,a,u){return Y([t(u)]).process(s,a)},t},Y.stringify=_v,Y.parse=Dv,Y.fromJSON=Pv,Y.list=Fv,Y.comment=function(r){return new zu(r)},Y.atRule=function(r){return new Wu(r)},Y.decl=function(r){return new Bu(r)},Y.rule=function(r){return new ju(r)},Y.root=function(r){return new Gu(r)},Y.document=function(r){return new Uu(r)},Y.CssSyntaxError=Mv,Y.Declaration=Bu,Y.Container=kv,Y.Processor=Oo,Y.Document=Uu,Y.Comment=zu,Y.Warning=Tv,Y.AtRule=Wu,Y.Result=Nv,Y.Input=Lv,Y.Rule=ju,Y.Root=Gu,Y.Node=Bv,$v.registerPostcss(Y);var Uv=Y;Y.default=Y;var re=Kp(Uv);re.stringify,re.fromJSON,re.plugin,re.parse,re.list,re.document,re.comment,re.atRule,re.rule,re.decl,re.root,re.CssSyntaxError,re.Declaration,re.Container,re.Processor,re.Document,re.Comment,re.Warning,re.AtRule,re.Result,re.Input,re.Rule,re.Root,re.Node;var zv=(function(){function r(){for(var o=arguments.length,e=new Array(o),t=0;t<o;t++)e[t]=arguments[t];Oe(this,"parentElement",null),Oe(this,"parentNode",null),Oe(this,"ownerDocument"),Oe(this,"firstChild",null),Oe(this,"lastChild",null),Oe(this,"previousSibling",null),Oe(this,"nextSibling",null),Oe(this,"ELEMENT_NODE",1),Oe(this,"TEXT_NODE",3),Oe(this,"nodeType"),Oe(this,"nodeName"),Oe(this,"RRNodeType")}var i=r.prototype;return i.contains=function(e){if(E(e,r)){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},i.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},i.insertBefore=function(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},i.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},i.toString=function(){return"RRNode"},Z(r,[{key:"childNodes",get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}}]),r})(),Vu={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Yu={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Rn={},Wv=function(){return!!globalThis.Zone};function xo(r){if(Rn[r])return Rn[r];var i=globalThis[r],o=i.prototype,e=r in Vu?Vu[r]:void 0,t=!!(e&&e.every(function(f){var c,h;return!!((h=(c=Object.getOwnPropertyDescriptor(o,f))==null?void 0:c.get)!=null&&h.toString().includes("[native code]"))})),n=r in Yu?Yu[r]:void 0,s=!!(n&&n.every(function(f){var c;return typeof o[f]=="function"&&((c=o[f])==null?void 0:c.toString().includes("[native code]"))}));if(t&&s&&!Wv())return Rn[r]=i.prototype,i.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return i.prototype;var l=u[r].prototype;return document.body.removeChild(a),l?Rn[r]=l:o}catch(f){return o}}var Ro={};function Ye(r,i,o){var e,t=r+"."+String(o);if(Ro[t])return Ro[t].call(i);var n=xo(r),s=(e=Object.getOwnPropertyDescriptor(n,o))==null?void 0:e.get;return s?(Ro[t]=s,s.call(i)):i[o]}var Eo={};function qu(r,i,o){var e=r+"."+String(o);if(Eo[e])return Eo[e].bind(i);var t=xo(r),n=t[o];return typeof n!="function"?i[o]:(Eo[e]=n,n.bind(i))}function jv(r){return Ye("Node",r,"childNodes")}function Gv(r){return Ye("Node",r,"parentNode")}function Vv(r){return Ye("Node",r,"parentElement")}function Yv(r){return Ye("Node",r,"textContent")}function qv(r,i){return qu("Node",r,"contains")(i)}function Jv(r){return qu("Node",r,"getRootNode")()}function Hv(r){return!r||!("host"in r)?null:Ye("ShadowRoot",r,"host")}function Zv(r){return r.styleSheets}function Kv(r){return!r||!("shadowRoot"in r)?null:Ye("Element",r,"shadowRoot")}function Xv(r,i){return Ye("Element",r,"querySelector")(i)}function Qv(r,i){return Ye("Element",r,"querySelectorAll")(i)}function Ju(){return xo("MutationObserver").constructor}function ot(r,i,o){try{if(!(i in r))return function(){};var e=r[i],t=o(e);return typeof t=="function"&&(t.prototype=t.prototype||{},Object.defineProperties(t,{__rrweb_original__:{enumerable:!1,value:e}})),r[i]=t,function(){r[i]=e}}catch(n){return function(){}}}var D={childNodes:jv,parentNode:Gv,parentElement:Vv,textContent:Yv,contains:qv,getRootNode:Jv,host:Hv,styleSheets:Zv,shadowRoot:Kv,querySelector:Xv,querySelectorAll:Qv,mutationObserver:Ju,patch:ot};function me(r,i,o){o===void 0&&(o=document);var e={capture:!0,passive:!0};return o.addEventListener(r,i,e),function(){return o.removeEventListener(r,i,e)}}var Et="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.",Hu={map:{},getId:function(){return console.error(Et),-1},getNode:function(){return console.error(Et),null},removeNodeFromMap:function(){console.error(Et)},has:function(){return console.error(Et),!1},reset:function(){console.error(Et)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(Hu=new Proxy(Hu,{get:function(i,o,e){return o==="map"&&console.error(Et),Reflect.get(i,o,e)}}));function cr(r,i,o){o===void 0&&(o={});var e=null,t=0;return function(){for(var n=arguments.length,s=new Array(n),a=0;a<n;a++)s[a]=arguments[a];var u=Date.now();!t&&o.leading===!1&&(t=u);var l=i-(u-t),f=this;l<=0||l>i?(e&&(clearTimeout(e),e=null),t=u,r.apply(f,s)):!e&&o.trailing!==!1&&(e=setTimeout(function(){t=o.leading===!1?0:Date.now(),e=null,r.apply(f,s)},l))}}function En(r,i,o,e,t){t===void 0&&(t=window);var n=t.Object.getOwnPropertyDescriptor(r,i);return t.Object.defineProperty(r,i,e?o:{set:function(a){var u=this;setTimeout(function(){o.set.call(u,a)},0),n&&n.set&&n.set.call(this,a)}}),function(){return En(r,i,n||{},!0)}}var An=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(An=function(){return new Date().getTime()});function Zu(r){var i,o,e,t,n=r.document;return{left:n.scrollingElement?n.scrollingElement.scrollLeft:r.pageXOffset!==void 0?r.pageXOffset:n.documentElement.scrollLeft||(n==null?void 0:n.body)&&((i=D.parentElement(n.body))==null?void 0:i.scrollLeft)||((o=n==null?void 0:n.body)==null?void 0:o.scrollLeft)||0,top:n.scrollingElement?n.scrollingElement.scrollTop:r.pageYOffset!==void 0?r.pageYOffset:(n==null?void 0:n.documentElement.scrollTop)||(n==null?void 0:n.body)&&((e=D.parentElement(n.body))==null?void 0:e.scrollTop)||((t=n==null?void 0:n.body)==null?void 0:t.scrollTop)||0}}function Ku(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Xu(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Qu(r){if(!r)return null;var i=r.nodeType===r.ELEMENT_NODE?r:D.parentElement(r);return i}function ge(r,i,o,e){if(!r)return!1;var t=Qu(r);if(!t)return!1;try{if(typeof i=="string"){if(t.classList.contains(i)||e&&t.closest("."+i)!==null)return!0}else if(Fr(t,i,e))return!0}catch(n){}return!!(o&&(t.matches(o)||e&&t.closest(o)!==null))}function em(r,i){return i.getId(r)!==-1}function Ao(r,i,o){return r.tagName==="TITLE"&&o.headTitleMutations?!0:i.getId(r)===Zt}function el(r,i){if(Jt(r))return!1;var o=i.getId(r);if(!i.has(o))return!0;var e=D.parentNode(r);return e&&e.nodeType===r.DOCUMENT_NODE?!1:e?el(e,i):!0}function Mo(r){return!!r.changedTouches}function tm(r){r===void 0&&(r=window),"NodeList"in r&&!r.NodeList.prototype.forEach&&(r.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in r&&!r.DOMTokenList.prototype.forEach&&(r.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function tl(r,i){return!!(r.nodeName==="IFRAME"&&i.getMeta(r))}function rl(r,i){return!!(r.nodeName==="LINK"&&r.nodeType===r.ELEMENT_NODE&&r.getAttribute&&r.getAttribute("rel")==="stylesheet"&&i.getMeta(r))}function $o(r){return r?E(r,zv)&&"shadowRoot"in r?!!r.shadowRoot:!!D.shadowRoot(r):!1}var rm=(function(){function r(){O(this,"id",1),O(this,"styleIDMap",new WeakMap),O(this,"idStyleMap",new Map)}var i=r.prototype;return i.getId=function(e){var t;return(t=this.styleIDMap.get(e))!=null?t:-1},i.has=function(e){return this.styleIDMap.has(e)},i.add=function(e,t){if(this.has(e))return this.getId(e);var n;return t===void 0?n=this.id++:n=t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n},i.getStyle=function(e){return this.idStyleMap.get(e)||null},i.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},i.generateId=function(){return this.id++},i.remove=function(e){var t=this.styleIDMap.get(e);return t!==void 0?(this.styleIDMap.delete(e),this.idStyleMap.delete(t),!0):!1},r})();function nl(r){var i,o=null;return"getRootNode"in r&&((i=D.getRootNode(r))==null?void 0:i.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&D.host(D.getRootNode(r))&&(o=D.host(D.getRootNode(r))),o}function nm(r){for(var i=r,o;o=nl(i);)i=o;return i}function im(r){var i=r.ownerDocument;if(!i)return!1;var o=nm(r);return D.contains(i,o)}function il(r){var i=r.ownerDocument;return i?D.contains(i,r)||im(r):!1}var F=(function(r){return r[r.DomContentLoaded=0]="DomContentLoaded",r[r.Load=1]="Load",r[r.FullSnapshot=2]="FullSnapshot",r[r.IncrementalSnapshot=3]="IncrementalSnapshot",r[r.Meta=4]="Meta",r[r.Custom=5]="Custom",r[r.Plugin=6]="Plugin",r})(F||{}),P=(function(r){return r[r.Mutation=0]="Mutation",r[r.MouseMove=1]="MouseMove",r[r.MouseInteraction=2]="MouseInteraction",r[r.Scroll=3]="Scroll",r[r.ViewportResize=4]="ViewportResize",r[r.Input=5]="Input",r[r.TouchMove=6]="TouchMove",r[r.MediaInteraction=7]="MediaInteraction",r[r.StyleSheetRule=8]="StyleSheetRule",r[r.CanvasMutation=9]="CanvasMutation",r[r.Font=10]="Font",r[r.Log=11]="Log",r[r.Drag=12]="Drag",r[r.StyleDeclaration=13]="StyleDeclaration",r[r.Selection=14]="Selection",r[r.AdoptedStyleSheet=15]="AdoptedStyleSheet",r[r.CustomElement=16]="CustomElement",r})(P||{}),we=(function(r){return r[r.MouseUp=0]="MouseUp",r[r.MouseDown=1]="MouseDown",r[r.Click=2]="Click",r[r.ContextMenu=3]="ContextMenu",r[r.DblClick=4]="DblClick",r[r.Focus=5]="Focus",r[r.Blur=6]="Blur",r[r.TouchStart=7]="TouchStart",r[r.TouchMove_Departed=8]="TouchMove_Departed",r[r.TouchEnd=9]="TouchEnd",r[r.TouchCancel=10]="TouchCancel",r})(we||{}),De=(function(r){return r[r.Mouse=0]="Mouse",r[r.Pen=1]="Pen",r[r.Touch=2]="Touch",r})(De||{}),At=(function(r){return r[r["2D"]=0]="2D",r[r.WebGL=1]="WebGL",r[r.WebGL2=2]="WebGL2",r})(At||{}),Mt=(function(r){return r[r.Play=0]="Play",r[r.Pause=1]="Pause",r[r.Seeked=2]="Seeked",r[r.VolumeChange=3]="VolumeChange",r[r.RateChange=4]="RateChange",r})(Mt||{}),ol=(function(r){return r[r.Document=0]="Document",r[r.DocumentType=1]="DocumentType",r[r.Element=2]="Element",r[r.Text=3]="Text",r[r.CDATA=4]="CDATA",r[r.Comment=5]="Comment",r})(ol||{});function sl(r){return"__ln"in r}var om=(function(){function r(){O(this,"length",0),O(this,"head",null),O(this,"tail",null)}var i=r.prototype;return i.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,n=0;n<e;n++)t=(t==null?void 0:t.next)||null;return t},i.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&sl(e.previousSibling)){var n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&sl(e.nextSibling)&&e.nextSibling.__ln.previous){var s=e.nextSibling.__ln.previous;t.previous=s,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,s&&(s.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;t.next===null&&(this.tail=t),this.length++},i.removeNode=function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},r})(),al=function(r,i){return r+"@"+i},sm=(function(){function r(){var o=this;O(this,"frozen",!1),O(this,"locked",!1),O(this,"texts",[]),O(this,"attributes",[]),O(this,"attributeMap",new WeakMap),O(this,"removes",[]),O(this,"mapRemoves",[]),O(this,"movedMap",{}),O(this,"addedSet",new Set),O(this,"movedSet",new Set),O(this,"droppedSet",new Set),O(this,"removesSubTreeCache",new Set),O(this,"mutationCb"),O(this,"blockClass"),O(this,"blockSelector"),O(this,"maskTextClass"),O(this,"maskTextSelector"),O(this,"inlineStylesheet"),O(this,"maskInputOptions"),O(this,"maskTextFn"),O(this,"maskInputFn"),O(this,"keepIframeSrcFn"),O(this,"recordCanvas"),O(this,"inlineImages"),O(this,"slimDOMOptions"),O(this,"dataURLOptions"),O(this,"doc"),O(this,"mirror"),O(this,"iframeManager"),O(this,"stylesheetManager"),O(this,"shadowDomManager"),O(this,"canvasManager"),O(this,"processedNodeManager"),O(this,"unattachedDoc"),O(this,"processMutations",function(e){e.forEach(o.processMutation),o.emit()}),O(this,"emit",function(){if(!(o.frozen||o.locked)){for(var e=[],t=new Set,n=new om,s=function(_){for(var L=_,ie=Zt;ie===Zt;)L=L&&L.nextSibling,ie=L&&o.mirror.getId(L);return ie},a=function(_){var L=D.parentNode(_);if(!(!L||!il(_))){var ie=!1;if(_.nodeType===Node.TEXT_NODE){var z=L.tagName;if(z==="TEXTAREA")return;z==="STYLE"&&o.addedSet.has(L)&&(ie=!0)}var Ce=Jt(L)?o.mirror.getId(nl(_)):o.mirror.getId(L),Se=s(_);if(Ce===-1||Se===-1)return n.addNode(_);var pe=St(_,{doc:o.doc,mirror:o.mirror,blockClass:o.blockClass,blockSelector:o.blockSelector,maskTextClass:o.maskTextClass,maskTextSelector:o.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:o.inlineStylesheet,maskInputOptions:o.maskInputOptions,maskTextFn:o.maskTextFn,maskInputFn:o.maskInputFn,slimDOMOptions:o.slimDOMOptions,dataURLOptions:o.dataURLOptions,recordCanvas:o.recordCanvas,inlineImages:o.inlineImages,onSerialize:function(oe){tl(oe,o.mirror)&&o.iframeManager.addIframe(oe),rl(oe,o.mirror)&&o.stylesheetManager.trackLinkElement(oe),$o(_)&&o.shadowDomManager.addShadowRoot(D.shadowRoot(_),o.doc)},onIframeLoad:function(oe,de){o.iframeManager.attachIframe(oe,de),o.shadowDomManager.observeAttachShadow(oe)},onStylesheetLoad:function(oe,de){o.stylesheetManager.attachLinkElement(oe,de)},cssCaptured:ie});pe&&(e.push({parentId:Ce,nextId:Se,node:pe}),t.add(pe.id))}};o.mapRemoves.length;){var u=o.mapRemoves.shift();if(u.nodeName==="IFRAME")try{o.iframeManager.removeIframe(u)}catch(_){}else o.stylesheetManager.cleanupStylesheetsForRemovedNode(u);o.mirror.removeNodeFromMap(u)}for(var l=I(o.movedSet),f;!(f=l()).done;){var c=f.value;ul(o.removesSubTreeCache,c,o.mirror)&&!o.movedSet.has(D.parentNode(c))||a(c)}for(var h=I(o.addedSet),v;!(v=h()).done;){var d=v.value;!ll(o.droppedSet,d)&&!ul(o.removesSubTreeCache,d,o.mirror)||ll(o.movedSet,d)?a(d):o.droppedSet.add(d)}for(var g=null;n.length;){var p=null;if(g){var m=o.mirror.getId(D.parentNode(g.value)),w=s(g.value);m!==-1&&w!==-1&&(p=g)}if(!p)for(var S=n.tail;S;){var b=S;if(S=S.previous,b){var C=o.mirror.getId(D.parentNode(b.value)),x=s(b.value);if(x===-1)continue;if(C!==-1){p=b;break}else{var $=b.value,R=D.parentNode($);if(R&&R.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var k=D.host(R),N=o.mirror.getId(k);if(N!==-1){p=b;break}}}}}if(!p){for(;n.head;)n.removeNode(n.head.value);break}g=p.previous,n.removeNode(p.value),a(p.value)}var ae={texts:o.texts.map(function(_){var L=_.node,ie=D.parentNode(L);return ie&&ie.tagName==="TEXTAREA"&&o.genTextAreaValueMutation(ie),{id:o.mirror.getId(L),value:_.value}}).filter(function(_){return!t.has(_.id)}).filter(function(_){return o.mirror.has(_.id)}),attributes:o.attributes.map(function(_){var L=_.attributes;if(typeof L.style=="string"){var ie=JSON.stringify(_.styleDiff),z=JSON.stringify(_._unchangedStyles);ie.length<L.style.length&&(ie+z).split("var(").length===L.style.split("var(").length&&(L.style=_.styleDiff)}return{id:o.mirror.getId(_.node),attributes:L}}).filter(function(_){return!t.has(_.id)}).filter(function(_){return o.mirror.has(_.id)}),removes:o.removes,adds:e};!ae.texts.length&&!ae.attributes.length&&!ae.removes.length&&!ae.adds.length||(o.texts=[],o.attributes=[],o.attributeMap=new WeakMap,o.removes=[],o.addedSet=new Set,o.movedSet=new Set,o.droppedSet=new Set,o.removesSubTreeCache=new Set,o.movedMap={},o.mutationCb(ae))}}),O(this,"genTextAreaValueMutation",function(e){var t=o.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},o.attributes.push(t),o.attributeMap.set(e,t));var n=Array.from(D.childNodes(e),function(s){return D.textContent(s)||""}).join("");t.attributes.value=Tr({element:e,maskInputOptions:o.maskInputOptions,tagName:e.tagName,type:Nr(e),value:n,maskInputFn:o.maskInputFn})}),O(this,"processMutation",function(e){if(!Ao(e.target,o.mirror,o.slimDOMOptions))switch(e.type){case"characterData":{var t=D.textContent(e.target);!ge(e.target,o.blockClass,o.blockSelector,!1)&&t!==e.oldValue&&o.texts.push({value:Zs(e.target,o.maskTextClass,o.maskTextSelector,!0)&&t?o.maskTextFn?o.maskTextFn(t,Qu(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{var n=e.target,s=e.attributeName,a=e.target.getAttribute(s);if(s==="value"){var u=Nr(n);a=Tr({element:n,maskInputOptions:o.maskInputOptions,tagName:n.tagName,type:u,value:a,maskInputFn:o.maskInputFn})}if(ge(e.target,o.blockClass,o.blockSelector,!1)||a===e.oldValue)return;var l=o.attributeMap.get(e.target);if(n.tagName==="IFRAME"&&s==="src"&&!o.keepIframeSrcFn(a))if(!n.contentDocument)s="rr_src";else return;if(l||(l={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},o.attributes.push(l),o.attributeMap.set(e.target,l)),s==="type"&&n.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!Hs(n.tagName,s))if(l.attributes[s]=Js(o.doc,rt(n.tagName),rt(s),a),s==="style"){if(!o.unattachedDoc)try{o.unattachedDoc=document.implementation.createHTMLDocument()}catch(S){o.unattachedDoc=o.doc}var f=o.unattachedDoc.createElement("span");e.oldValue&&f.setAttribute("style",e.oldValue);for(var c=I(Array.from(n.style)),h;!(h=c()).done;){var v=h.value,d=n.style.getPropertyValue(v),g=n.style.getPropertyPriority(v);d!==f.style.getPropertyValue(v)||g!==f.style.getPropertyPriority(v)?g===""?l.styleDiff[v]=d:l.styleDiff[v]=[d,g]:l._unchangedStyles[v]=[d,g]}for(var p=I(Array.from(f.style)),m;!(m=p()).done;){var w=m.value;n.style.getPropertyValue(w)===""&&(l.styleDiff[w]=!1)}}else s==="open"&&n.tagName==="DIALOG"&&(n.matches("dialog:modal")?l.attributes.rr_open_mode="modal":l.attributes.rr_open_mode="non-modal");break}case"childList":{if(ge(e.target,o.blockClass,o.blockSelector,!0))return;if(e.target.tagName==="TEXTAREA"){o.genTextAreaValueMutation(e.target);return}e.addedNodes.forEach(function(S){return o.genAdds(S,e.target)}),e.removedNodes.forEach(function(S){var b=o.mirror.getId(S),C=Jt(e.target)?o.mirror.getId(D.host(e.target)):o.mirror.getId(e.target);ge(e.target,o.blockClass,o.blockSelector,!1)||Ao(S,o.mirror,o.slimDOMOptions)||!em(S,o.mirror)||(o.addedSet.has(S)?(ko(o.addedSet,S),o.droppedSet.add(S)):o.addedSet.has(e.target)&&b===-1||el(e.target,o.mirror)||(o.movedSet.has(S)&&o.movedMap[al(b,C)]?ko(o.movedSet,S):(o.removes.push({parentId:C,id:b,isShadow:Jt(e.target)&&Ht(e.target)?!0:void 0}),am(S,o.removesSubTreeCache))),o.mapRemoves.push(S))});break}}}),O(this,"genAdds",function(e,t){if(!o.processedNodeManager.inOtherBuffer(e,o)&&!(o.addedSet.has(e)||o.movedSet.has(e))){if(o.mirror.hasNode(e)){if(Ao(e,o.mirror,o.slimDOMOptions))return;o.movedSet.add(e);var n=null;t&&o.mirror.hasNode(t)&&(n=o.mirror.getId(t)),n&&n!==-1&&(o.movedMap[al(o.mirror.getId(e),n)]=!0)}else o.addedSet.add(e),o.droppedSet.delete(e);ge(e,o.blockClass,o.blockSelector,!1)||(D.childNodes(e).forEach(function(s){return o.genAdds(s)}),$o(e)&&D.childNodes(D.shadowRoot(e)).forEach(function(s){o.processedNodeManager.add(s,o),o.genAdds(s,e)}))}})}var i=r.prototype;return i.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(n){t[n]=e[n]})},i.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},i.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},i.isFrozen=function(){return this.frozen},i.lock=function(){this.locked=!0,this.canvasManager.lock()},i.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},i.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},i.getDoc=function(){return this.doc},r})();function ko(r,i){r.delete(i),D.childNodes(i).forEach(function(o){return ko(r,o)})}function am(r,i){for(var o=[r];o.length;){var e=o.pop();i.has(e)||(i.add(e),D.childNodes(e).forEach(function(t){return o.push(t)}))}}function ul(r,i,o){return r.size===0?!1:um(r,i)}function um(r,i,o){var e=D.parentNode(i);return e?r.has(e):!1}function ll(r,i){return r.size===0?!1:fl(r,i)}function fl(r,i){var o=D.parentNode(i);return o?r.has(o)?!0:fl(r,o):!1}var hr;function lm(r){hr=r}function fm(){hr=void 0}var U=function(r){if(!hr)return r;var i=function(){for(var o=arguments.length,e=new Array(o),t=0;t<o;t++)e[t]=arguments[t];try{return r.apply(void 0,[].concat(e))}catch(n){if(hr&&hr(n)===!0)return;throw n}};return i},$e=[];function pr(r){try{if("composedPath"in r){var i=r.composedPath();if(i.length)return i[0]}else if("path"in r&&r.path.length)return r.path[0]}catch(o){}return r&&r.target}function cl(r,i){var o=new sm;$e.push(o),o.init(r);var e=new(Ju())(U(o.processMutations.bind(o)));return e.observe(i,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),e}function cm(r){for(var i=$e.length-1;i>=0;i--){var o=$e[i];o.getDoc()===r&&$e.splice(i,1)}}function hm(r){var i=r.mousemoveCb,o=r.sampling,e=r.doc,t=r.mirror;if(o.mousemove===!1)return function(){};var n=typeof o.mousemove=="number"?o.mousemove:50,s=typeof o.mousemoveCallback=="number"?o.mousemoveCallback:500,a=[],u,l=cr(U(function(h){var v=Date.now()-u;i(a.map(function(d){return d.timeOffset-=v,d}),h),a=[],u=null}),s),f=U(cr(U(function(h){var v=pr(h),d=Mo(h)?h.changedTouches[0]:h,g=d.clientX,p=d.clientY;u||(u=An()),a.push({x:g,y:p,id:t.getId(v),timeOffset:An()-u}),l(typeof DragEvent!="undefined"&&E(h,DragEvent)?P.Drag:E(h,MouseEvent)?P.MouseMove:P.TouchMove)}),n,{trailing:!1})),c=[me("mousemove",f,e),me("touchmove",f,e),me("drag",f,e)];return U(function(){c.forEach(function(h){return h()})})}function pm(r){var i=r.mouseInteractionCb,o=r.doc,e=r.mirror,t=r.blockClass,n=r.blockSelector,s=r.sampling;if(s.mouseInteraction===!1)return function(){};var a=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,u=[],l=null,f=function(c){return function(h){var v=pr(h);if(!ge(v,t,n,!0)){var d=null,g=c;if("pointerType"in h){switch(h.pointerType){case"mouse":d=De.Mouse;break;case"touch":d=De.Touch;break;case"pen":d=De.Pen;break}d===De.Touch?we[c]===we.MouseDown?g="TouchStart":we[c]===we.MouseUp&&(g="TouchEnd"):De.Pen}else Mo(h)&&(d=De.Touch);d!==null?(l=d,(g.startsWith("Touch")&&d===De.Touch||g.startsWith("Mouse")&&d===De.Mouse)&&(d=null)):we[c]===we.Click&&(d=l,l=null);var p=Mo(h)?h.changedTouches[0]:h;if(p){var m=e.getId(v),w=p.clientX,S=p.clientY;U(i)(T({type:we[g],id:m,x:w,y:S},d!==null&&{pointerType:d}))}}}};return Object.keys(we).filter(function(c){return Number.isNaN(Number(c))&&!c.endsWith("_Departed")&&a[c]!==!1}).forEach(function(c){var h=rt(c),v=f(c);if(window.PointerEvent)switch(we[c]){case we.MouseDown:case we.MouseUp:h=h.replace("mouse","pointer");break;case we.TouchStart:case we.TouchEnd:return}u.push(me(h,v,o))}),U(function(){u.forEach(function(c){return c()})})}function hl(r){var i=r.scrollCb,o=r.doc,e=r.mirror,t=r.blockClass,n=r.blockSelector,s=r.sampling,a=U(cr(U(function(u){var l=pr(u);if(!(!l||ge(l,t,n,!0))){var f=e.getId(l);if(l===o&&o.defaultView){var c=Zu(o.defaultView);i({id:f,x:c.left,y:c.top})}else i({id:f,x:l.scrollLeft,y:l.scrollTop})}}),s.scroll||100));return me("scroll",a,o)}function dm(r,i){var o=r.viewportResizeCb,e=i.win,t=-1,n=-1,s=U(cr(U(function(){var a=Ku(),u=Xu();(t!==a||n!==u)&&(o({width:Number(u),height:Number(a)}),t=a,n=u)}),200));return me("resize",s,e)}var vm=["INPUT","TEXTAREA","SELECT"],pl=new WeakMap;function mm(r){var i=r.inputCb,o=r.doc,e=r.mirror,t=r.blockClass,n=r.blockSelector,s=r.ignoreClass,a=r.ignoreSelector,u=r.maskInputOptions,l=r.maskInputFn,f=r.sampling,c=r.userTriggeredOnInput;function h(b){var C=pr(b),x=b.isTrusted,$=C&&C.tagName;if(C&&$==="OPTION"&&(C=D.parentElement(C)),!(!C||!$||vm.indexOf($)<0||ge(C,t,n,!0))&&!(C.classList.contains(s)||a&&C.matches(a))){var R=C.value,k=!1,N=Nr(C)||"";N==="radio"||N==="checkbox"?k=C.checked:(u[$.toLowerCase()]||u[N])&&(R=Tr({element:C,maskInputOptions:u,tagName:$,type:N,value:R,maskInputFn:l})),v(C,c?{text:R,isChecked:k,userTriggered:x}:{text:R,isChecked:k});var ae=C.name;N==="radio"&&ae&&k&&o.querySelectorAll('input[type="radio"][name="'+ae+'"]').forEach(function(_){if(_!==C){var L=_.value;v(_,c?{text:L,isChecked:!k,userTriggered:!1}:{text:L,isChecked:!k})}})}}function v(b,C){var x=pl.get(b);if(!x||x.text!==C.text||x.isChecked!==C.isChecked){pl.set(b,C);var $=e.getId(b);U(i)(T({},C,{id:$}))}}var d=f.input==="last"?["change"]:["input","change"],g=d.map(function(b){return me(b,U(h),o)}),p=o.defaultView;if(!p)return function(){g.forEach(function(b){return b()})};var m=p.Object.getOwnPropertyDescriptor(p.HTMLInputElement.prototype,"value"),w=[[p.HTMLInputElement.prototype,"value"],[p.HTMLInputElement.prototype,"checked"],[p.HTMLSelectElement.prototype,"value"],[p.HTMLTextAreaElement.prototype,"value"],[p.HTMLSelectElement.prototype,"selectedIndex"],[p.HTMLOptionElement.prototype,"selected"]];if(m&&m.set){var S;(S=g).push.apply(S,[].concat(w.map(function(b){return En(b[0],b[1],{set:function(){U(h)({target:this,isTrusted:!1})}},!1,p)})))}return U(function(){g.forEach(function(b){return b()})})}function Mn(r){var i=[];function o(e,t){if($n("CSSGroupingRule")&&E(e.parentRule,CSSGroupingRule)||$n("CSSMediaRule")&&E(e.parentRule,CSSMediaRule)||$n("CSSSupportsRule")&&E(e.parentRule,CSSSupportsRule)||$n("CSSConditionRule")&&E(e.parentRule,CSSConditionRule)){var n=Array.from(e.parentRule.cssRules),s=n.indexOf(e);t.unshift(s)}else if(e.parentStyleSheet){var a=Array.from(e.parentStyleSheet.cssRules),u=a.indexOf(e);t.unshift(u)}return t}return o(r,i)}function qe(r,i,o){var e,t;return r?(r.ownerNode?e=i.getId(r.ownerNode):t=o.getId(r),{styleId:t,id:e}):{}}function gm(r,i){var o=r.styleSheetRuleCb,e=r.mirror,t=r.stylesheetManager,n=i.win;if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return function(){};var s=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:U(function(h,v,d){var g=d[0],p=d[1],m=qe(v,e,t.styleMirror),w=m.id,S=m.styleId;return(w&&w!==-1||S&&S!==-1)&&o({id:w,styleId:S,adds:[{rule:g,index:p}]}),h.apply(v,d)})}),n.CSSStyleSheet.prototype.addRule=function(h,v,d){d===void 0&&(d=this.cssRules.length);var g=h+" { "+v+" }";return n.CSSStyleSheet.prototype.insertRule.apply(this,[g,d])};var a=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:U(function(h,v,d){var g=d[0],p=qe(v,e,t.styleMirror),m=p.id,w=p.styleId;return(m&&m!==-1||w&&w!==-1)&&o({id:m,styleId:w,removes:[{index:g}]}),h.apply(v,d)})}),n.CSSStyleSheet.prototype.removeRule=function(h){return n.CSSStyleSheet.prototype.deleteRule.apply(this,[h])};var u;n.CSSStyleSheet.prototype.replace&&(u=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(u,{apply:U(function(h,v,d){var g=d[0],p=qe(v,e,t.styleMirror),m=p.id,w=p.styleId;return(m&&m!==-1||w&&w!==-1)&&o({id:m,styleId:w,replace:g}),h.apply(v,d)})}));var l;n.CSSStyleSheet.prototype.replaceSync&&(l=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:U(function(h,v,d){var g=d[0],p=qe(v,e,t.styleMirror),m=p.id,w=p.styleId;return(m&&m!==-1||w&&w!==-1)&&o({id:m,styleId:w,replaceSync:g}),h.apply(v,d)})}));var f={};kn("CSSGroupingRule")?f.CSSGroupingRule=n.CSSGroupingRule:(kn("CSSMediaRule")&&(f.CSSMediaRule=n.CSSMediaRule),kn("CSSConditionRule")&&(f.CSSConditionRule=n.CSSConditionRule),kn("CSSSupportsRule")&&(f.CSSSupportsRule=n.CSSSupportsRule));var c={};return Object.entries(f).forEach(function(h){var v=h[0],d=h[1];c[v]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(c[v].insertRule,{apply:U(function(g,p,m){var w=m[0],S=m[1],b=qe(p.parentStyleSheet,e,t.styleMirror),C=b.id,x=b.styleId;return(C&&C!==-1||x&&x!==-1)&&o({id:C,styleId:x,adds:[{rule:w,index:[].concat(Mn(p),[S||0])}]}),g.apply(p,m)})}),d.prototype.deleteRule=new Proxy(c[v].deleteRule,{apply:U(function(g,p,m){var w=m[0],S=qe(p.parentStyleSheet,e,t.styleMirror),b=S.id,C=S.styleId;return(b&&b!==-1||C&&C!==-1)&&o({id:b,styleId:C,removes:[{index:[].concat(Mn(p),[w])}]}),g.apply(p,m)})})}),U(function(){n.CSSStyleSheet.prototype.insertRule=s,n.CSSStyleSheet.prototype.deleteRule=a,u&&(n.CSSStyleSheet.prototype.replace=u),l&&(n.CSSStyleSheet.prototype.replaceSync=l),Object.entries(f).forEach(function(h){var v=h[0],d=h[1];d.prototype.insertRule=c[v].insertRule,d.prototype.deleteRule=c[v].deleteRule})})}function dl(r,i){var o=r.mirror,e=r.stylesheetManager,t,n,s,a=null;i.nodeName==="#document"?a=o.getId(i):a=o.getId(D.host(i));var u=i.nodeName==="#document"?(t=i.defaultView)==null?void 0:t.Document:(s=(n=i.ownerDocument)==null?void 0:n.defaultView)==null?void 0:s.ShadowRoot,l=u!=null&&u.prototype?Object.getOwnPropertyDescriptor(u==null?void 0:u.prototype,"adoptedStyleSheets"):void 0;return a===null||a===-1||!u||!l?function(){}:(Object.defineProperty(i,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:function(){var c;return(c=l.get)==null?void 0:c.call(this)},set:function(c){var h,v=(h=l.set)==null?void 0:h.call(this,c);if(a!==null&&a!==-1)try{e.adoptStyleSheets(c,a)}catch(d){}return v}}),U(function(){Object.defineProperty(i,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}))}function ym(r,i){var o=r.styleDeclarationCb,e=r.mirror,t=r.ignoreCSSAttributes,n=r.stylesheetManager,s=i.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:U(function(l,f,c){var h,v=c[0],d=c[1],g=c[2];if(t.has(v))return a.apply(f,[v,d,g]);var p=qe((h=f.parentRule)==null?void 0:h.parentStyleSheet,e,n.styleMirror),m=p.id,w=p.styleId;return(m&&m!==-1||w&&w!==-1)&&o({id:m,styleId:w,set:{property:v,value:d,priority:g},index:Mn(f.parentRule)}),l.apply(f,c)})});var u=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:U(function(l,f,c){var h,v=c[0];if(t.has(v))return u.apply(f,[v]);var d=qe((h=f.parentRule)==null?void 0:h.parentStyleSheet,e,n.styleMirror),g=d.id,p=d.styleId;return(g&&g!==-1||p&&p!==-1)&&o({id:g,styleId:p,remove:{property:v},index:Mn(f.parentRule)}),l.apply(f,c)})}),U(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=u})}function wm(r){var i=r.mediaInteractionCb,o=r.blockClass,e=r.blockSelector,t=r.mirror,n=r.sampling,s=r.doc,a=U(function(l){return cr(U(function(f){var c=pr(f);if(!(!c||ge(c,o,e,!0))){var h=c.currentTime,v=c.volume,d=c.muted,g=c.playbackRate,p=c.loop;i({type:l,id:t.getId(c),currentTime:h,volume:v,muted:d,playbackRate:g,loop:p})}}),n.media||500)}),u=[me("play",a(Mt.Play),s),me("pause",a(Mt.Pause),s),me("seeked",a(Mt.Seeked),s),me("volumechange",a(Mt.VolumeChange),s),me("ratechange",a(Mt.RateChange),s)];return U(function(){u.forEach(function(l){return l()})})}function Sm(r){var i=r.fontCb,o=r.doc,e=o.defaultView;if(!e)return function(){};var t=[],n=new WeakMap,s=e.FontFace;e.FontFace=function(l,f,c){var h=new s(l,f,c);return n.set(h,{family:l,buffer:typeof f!="string",descriptors:c,fontSource:typeof f=="string"?f:JSON.stringify(Array.from(new Uint8Array(f)))}),h};var a=ot(o.fonts,"add",function(u){return function(l){return setTimeout(U(function(){var f=n.get(l);f&&(i(f),n.delete(l))}),0),u.apply(this,[l])}});return t.push(function(){e.FontFace=s}),t.push(a),U(function(){t.forEach(function(u){return u()})})}function bm(r){var i=r.doc,o=r.mirror,e=r.blockClass,t=r.blockSelector,n=r.selectionCb,s=!0,a=U(function(){var u=i.getSelection();if(!(!u||s&&(u!=null&&u.isCollapsed))){s=u.isCollapsed||!1;for(var l=[],f=u.rangeCount||0,c=0;c<f;c++){var h=u.getRangeAt(c),v=h.startContainer,d=h.startOffset,g=h.endContainer,p=h.endOffset,m=ge(v,e,t,!0)||ge(g,e,t,!0);m||l.push({start:o.getId(v),startOffset:d,end:o.getId(g),endOffset:p})}n({ranges:l})}});return a(),me("selectionchange",a)}function Cm(r){var i=r.doc,o=r.customElementCb,e=i.defaultView;if(!e||!e.customElements)return function(){};var t=ot(e.customElements,"define",function(n){return function(s,a,u){try{o({define:{name:s}})}catch(l){console.warn("Custom element callback failed for "+s)}return n.apply(this,[s,a,u])}});return t}function Im(r,i){var o=r.mutationCb,e=r.mousemoveCb,t=r.mouseInteractionCb,n=r.scrollCb,s=r.viewportResizeCb,a=r.inputCb,u=r.mediaInteractionCb,l=r.styleSheetRuleCb,f=r.styleDeclarationCb,c=r.canvasMutationCb,h=r.fontCb,v=r.selectionCb,d=r.customElementCb;r.mutationCb=function(){for(var g=arguments.length,p=new Array(g),m=0;m<g;m++)p[m]=arguments[m];if(i.mutation){var w;(w=i).mutation.apply(w,[].concat(p))}o.apply(void 0,[].concat(p))},r.mousemoveCb=function(){for(var g=arguments.length,p=new Array(g),m=0;m<g;m++)p[m]=arguments[m];if(i.mousemove){var w;(w=i).mousemove.apply(w,[].concat(p))}e.apply(void 0,[].concat(p))},r.mouseInteractionCb=function(){for(var g=arguments.length,p=new Array(g),m=0;m<g;m++)p[m]=arguments[m];if(i.mouseInteraction){var w;(w=i).mouseInteraction.apply(w,[].concat(p))}t.apply(void 0,[].concat(p))},r.scrollCb=function(){for(var g=arguments.length,p=new Array(g),m=0;m<g;m++)p[m]=arguments[m];if(i.scroll){var w;(w=i).scroll.apply(w,[].concat(p))}n.apply(void 0,[].concat(p))},r.viewportResizeCb=function(){for(var g=arguments.length,p=new Array(g),m=0;m<g;m++)p[m]=arguments[m];if(i.viewportResize){var w;(w=i).viewportResize.apply(w,[].concat(p))}s.apply(void 0,[].concat(p))},r.inputCb=function(){for(var g=arguments.length,p=new Array(g),m=0;m<g;m++)p[m]=arguments[m];if(i.input){var w;(w=i).input.apply(w,[].concat(p))}a.apply(void 0,[].concat(p))},r.mediaInteractionCb=function(){for(var g=arguments.length,p=new Array(g),m=0;m<g;m++)p[m]=arguments[m];if(i.mediaInteaction){var w;(w=i).mediaInteaction.apply(w,[].concat(p))}u.apply(void 0,[].concat(p))},r.styleSheetRuleCb=function(){for(var g=arguments.length,p=new Array(g),m=0;m<g;m++)p[m]=arguments[m];if(i.styleSheetRule){var w;(w=i).styleSheetRule.apply(w,[].concat(p))}l.apply(void 0,[].concat(p))},r.styleDeclarationCb=function(){for(var g=arguments.length,p=new Array(g),m=0;m<g;m++)p[m]=arguments[m];if(i.styleDeclaration){var w;(w=i).styleDeclaration.apply(w,[].concat(p))}f.apply(void 0,[].concat(p))},r.canvasMutationCb=function(){for(var g=arguments.length,p=new Array(g),m=0;m<g;m++)p[m]=arguments[m];if(i.canvasMutation){var w;(w=i).canvasMutation.apply(w,[].concat(p))}c.apply(void 0,[].concat(p))},r.fontCb=function(){for(var g=arguments.length,p=new Array(g),m=0;m<g;m++)p[m]=arguments[m];if(i.font){var w;(w=i).font.apply(w,[].concat(p))}h.apply(void 0,[].concat(p))},r.selectionCb=function(){for(var g=arguments.length,p=new Array(g),m=0;m<g;m++)p[m]=arguments[m];if(i.selection){var w;(w=i).selection.apply(w,[].concat(p))}v.apply(void 0,[].concat(p))},r.customElementCb=function(){for(var g=arguments.length,p=new Array(g),m=0;m<g;m++)p[m]=arguments[m];if(i.customElement){var w;(w=i).customElement.apply(w,[].concat(p))}d.apply(void 0,[].concat(p))}}function Om(r,i){i===void 0&&(i={});var o=r.doc.defaultView;if(!o)return function(){};Im(r,i);var e;r.recordDOM&&(e=cl(r,r.doc));var t=hm(r),n=pm(r),s=hl(r),a=dm(r,{win:o}),u=mm(r),l=wm(r),f=function(){},c=function(){},h=function(){},v=function(){};r.recordDOM&&(f=gm(r,{win:o}),c=dl(r,r.doc),h=ym(r,{win:o}),r.collectFonts&&(v=Sm(r)));for(var d=bm(r),g=Cm(r),p=[],m=I(r.plugins),w;!(w=m()).done;){var S=w.value;p.push(S.observer(S.callback,o,S.options))}return U(function(){$e.forEach(function(b){return b.reset()}),e==null||e.disconnect(),t(),n(),s(),a(),u(),l(),f(),c(),h(),v(),d(),g(),p.forEach(function(b){return b()})})}function $n(r){return typeof window[r]!="undefined"}function kn(r){return!!(typeof window[r]!="undefined"&&window[r].prototype&&"insertRule"in window[r].prototype&&"deleteRule"in window[r].prototype)}for(var vl=(function(){function r(o){O(this,"iframeIdToRemoteIdMap",new WeakMap),O(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=o}var i=r.prototype;return i.getId=function(e,t,n,s){var a=n||this.getIdToRemoteIdMap(e),u=s||this.getRemoteIdToIdMap(e),l=a.get(t);return l||(l=this.generateIdFn(),a.set(t,l),u.set(l,t)),l},i.getIds=function(e,t){var n=this,s=this.getIdToRemoteIdMap(e),a=this.getRemoteIdToIdMap(e);return t.map(function(u){return n.getId(e,u,s,a)})},i.getRemoteId=function(e,t,n){var s=n||this.getRemoteIdToIdMap(e);if(typeof t!="number")return t;var a=s.get(t);return a||-1},i.getRemoteIds=function(e,t){var n=this,s=this.getRemoteIdToIdMap(e);return t.map(function(a){return n.getRemoteId(e,a,s)})},i.reset=function(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},i.getIdToRemoteIdMap=function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t},i.getRemoteIdToIdMap=function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t},r})(),xm=(function(){function r(o){O(this,"iframes",new WeakMap),O(this,"crossOriginIframeMap",new WeakMap),O(this,"crossOriginIframeMirror",new vl(Vs)),O(this,"crossOriginIframeStyleMirror"),O(this,"crossOriginIframeRootIdMap",new WeakMap),O(this,"iframeContentDocumentMap",new WeakMap),O(this,"iframeObserverCleanupMap",new WeakMap),O(this,"mirror"),O(this,"mutationCb"),O(this,"wrappedEmit"),O(this,"loadListener"),O(this,"stylesheetManager"),O(this,"recordCrossOriginIframes"),this.mutationCb=o.mutationCb,this.wrappedEmit=o.wrappedEmit,this.stylesheetManager=o.stylesheetManager,this.recordCrossOriginIframes=o.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new vl(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=o.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var i=r.prototype;return i.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},i.getIframeContentDocument=function(e){return this.iframeContentDocumentMap.get(e)},i.setObserverCleanup=function(e,t){this.iframeObserverCleanupMap.set(e,t)},i.getObserverCleanup=function(e){return this.iframeObserverCleanupMap.get(e)},i.removeIframe=function(e){var t=this.iframeContentDocumentMap.get(e);t&&(this.stylesheetManager.cleanupStylesheetsForRemovedNode(t),this.mirror.removeNodeFromMap(t,!0)),this.iframes.delete(e),this.iframeContentDocumentMap.delete(e);var n=this.iframeObserverCleanupMap.get(e);if(n){try{n()}catch(s){}this.iframeObserverCleanupMap.delete(e)}},i.addLoadListener=function(e){this.loadListener=e},i.attachIframe=function(e,t){var n,s;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),e.contentDocument&&this.iframeContentDocumentMap.set(e,e.contentDocument),this.recordCrossOriginIframes&&((n=e.contentWindow)==null||n.addEventListener("message",this.handleMessage.bind(this))),(s=this.loadListener)==null||s.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},i.handleMessage=function(e){var t=e;if(!(t.data.type!=="rrweb"||t.origin!==t.data.origin)){var n=e.source;if(n){var s=this.crossOriginIframeMap.get(e.source);if(s){var a=this.transformCrossOriginEvent(s,t.data.event);a&&this.wrappedEmit(a,t.data.isCheckout)}}}},i.transformCrossOriginEvent=function(e,t){var n=this,s;switch(t.type){case F.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var a=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,a),this.patchRootIdOnNode(t.data.node,a),{timestamp:t.timestamp,type:F.IncrementalSnapshot,data:{source:P.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case F.Meta:case F.Load:case F.DomContentLoaded:return!1;case F.Plugin:return t;case F.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case F.IncrementalSnapshot:switch(t.data.source){case P.Mutation:return t.data.adds.forEach(function(u){n.replaceIds(u,e,["parentId","nextId","previousId"]),n.replaceIdOnNode(u.node,e);var l=n.crossOriginIframeRootIdMap.get(e);l&&n.patchRootIdOnNode(u.node,l)}),t.data.removes.forEach(function(u){n.replaceIds(u,e,["parentId","id"])}),t.data.attributes.forEach(function(u){n.replaceIds(u,e,["id"])}),t.data.texts.forEach(function(u){n.replaceIds(u,e,["id"])}),t;case P.Drag:case P.TouchMove:case P.MouseMove:return t.data.positions.forEach(function(u){n.replaceIds(u,e,["id"])}),t;case P.ViewportResize:return!1;case P.MediaInteraction:case P.MouseInteraction:case P.Scroll:case P.CanvasMutation:case P.Input:return this.replaceIds(t.data,e,["id"]),t;case P.StyleSheetRule:case P.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case P.Font:return t;case P.Selection:return t.data.ranges.forEach(function(u){n.replaceIds(u,e,["start","end"])}),t;case P.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),(s=t.data.styles)==null||s.forEach(function(u){n.replaceStyleIds(u,e,["styleId"])}),t}}return!1},i.replace=function(e,t,n,s){for(var a=I(s),u;!(u=a()).done;){var l=u.value;!Array.isArray(t[l])&&typeof t[l]!="number"||(Array.isArray(t[l])?t[l]=e.getIds(n,t[l]):t[l]=e.getId(n,t[l]))}return t},i.replaceIds=function(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)},i.replaceStyleIds=function(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)},i.replaceIdOnNode=function(e,t){var n=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(s){n.replaceIdOnNode(s,t)})},i.patchRootIdOnNode=function(e,t){var n=this;e.type!==ol.Document&&!e.rootId&&(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(s){n.patchRootIdOnNode(s,t)})},r})(),Rm=(function(){function r(o){O(this,"shadowDoms",new WeakSet),O(this,"mutationCb"),O(this,"scrollCb"),O(this,"bypassOptions"),O(this,"mirror"),O(this,"restoreHandlers",[]),this.mutationCb=o.mutationCb,this.scrollCb=o.scrollCb,this.bypassOptions=o.bypassOptions,this.mirror=o.mirror,this.init()}var i=r.prototype;return i.init=function(){this.reset(),this.patchAttachShadow(Element,document)},i.addShadowRoot=function(e,t){var n=this;if(Ht(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var s=cl(T({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return s.disconnect()}),this.restoreHandlers.push(hl(T({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&n.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,n.mirror.getId(D.host(e))),n.restoreHandlers.push(dl({mirror:n.mirror,stylesheetManager:n.bypassOptions.stylesheetManager},e))},0)}},i.observeAttachShadow=function(e){!e.contentWindow||!e.contentDocument||this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},i.patchAttachShadow=function(e,t){var n=this;this.restoreHandlers.push(ot(e.prototype,"attachShadow",function(s){return function(a){var u=s.call(this,a),l=D.shadowRoot(this);return l&&il(this)&&n.addShadowRoot(l,t),u}}))},i.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},r})(),$t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Em=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),_n=0;_n<$t.length;_n++)Em[$t.charCodeAt(_n)]=_n;var Am=function(i){var o=new Uint8Array(i),e,t=o.length,n="";for(e=0;e<t;e+=3)n+=$t[o[e]>>2],n+=$t[(o[e]&3)<<4|o[e+1]>>4],n+=$t[(o[e+1]&15)<<2|o[e+2]>>6],n+=$t[o[e+2]&63];return t%3===2?n=n.substring(0,n.length-1)+"=":t%3===1&&(n=n.substring(0,n.length-2)+"=="),n},ml=new Map;function Mm(r,i){var o=ml.get(r);return o||(o=new Map,ml.set(r,o)),o.has(i)||o.set(i,[]),o.get(i)}var gl=function(r,i,o){if(!(!r||!(wl(r,i)||(typeof r=="undefined"?"undefined":M(r))==="object"))){var e=r.constructor.name,t=Mm(o,e),n=t.indexOf(r);return n===-1&&(n=t.length,t.push(r)),n}};function Pn(r,i,o){if(E(r,Array))return r.map(function(d){return Pn(d,i,o)});if(r===null)return r;if(E(r,Float32Array)||E(r,Float64Array)||E(r,Int32Array)||E(r,Uint32Array)||E(r,Uint8Array)||E(r,Uint16Array)||E(r,Int16Array)||E(r,Int8Array)||E(r,Uint8ClampedArray)){var e=r.constructor.name;return{rr_type:e,args:[Object.values(r)]}}else if(E(r,ArrayBuffer)){var t=r.constructor.name,n=Am(r);return{rr_type:t,base64:n}}else if(E(r,DataView)){var s=r.constructor.name;return{rr_type:s,args:[Pn(r.buffer,i,o),r.byteOffset,r.byteLength]}}else if(E(r,HTMLImageElement)){var a=r.constructor.name,u=r.src;return{rr_type:a,src:u}}else if(E(r,HTMLCanvasElement)){var l="HTMLImageElement",f=r.toDataURL();return{rr_type:l,src:f}}else if(E(r,ImageData)){var c=r.constructor.name;return{rr_type:c,args:[Pn(r.data,i,o),r.width,r.height]}}else if(wl(r,i)||(typeof r=="undefined"?"undefined":M(r))==="object"){var h=r.constructor.name,v=gl(r,i,o);return{rr_type:h,index:v}}return r}var yl=function(r,i,o){return r.map(function(e){return Pn(e,i,o)})},wl=function(r,i){var o=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],e=o.filter(function(t){return typeof i[t]=="function"});return!!e.find(function(t){return E(r,i[t])})};function $m(r,i,o,e){for(var t=function(){var l=u.value;try{if(typeof i.CanvasRenderingContext2D.prototype[l]!="function")return"continue";var f=ot(i.CanvasRenderingContext2D.prototype,l,function(h){return function(){for(var v=this,d=arguments.length,g=new Array(d),p=0;p<d;p++)g[p]=arguments[p];return ge(this.canvas,o,e,!0)||setTimeout(function(){var m=yl(g,i,v);r(v.canvas,{type:At["2D"],property:l,args:m})},0),h.apply(this,g)}});n.push(f)}catch(h){var c=En(i.CanvasRenderingContext2D.prototype,l,{set:function(d){r(this.canvas,{type:At["2D"],property:l,args:[d],setter:!0})}});n.push(c)}},n=[],s=Object.getOwnPropertyNames(i.CanvasRenderingContext2D.prototype),a=I(s),u;!(u=a()).done;)t();return function(){n.forEach(function(l){return l()})}}function km(r){return r==="experimental-webgl"?"webgl":r}function Sl(r,i,o,e){var t=[];try{var n=ot(r.HTMLCanvasElement.prototype,"getContext",function(s){return function(a){for(var u=arguments.length,l=new Array(u>1?u-1:0),f=1;f<u;f++)l[f-1]=arguments[f];if(!ge(this,i,o,!0)){var c=km(a);if("__context"in this||(this.__context=c),e&&["webgl","webgl2"].includes(c))if(l[0]&&M(l[0])==="object"){var h=l[0];h.preserveDrawingBuffer||(h.preserveDrawingBuffer=!0)}else l.splice(0,1,{preserveDrawingBuffer:!0})}return s.apply(this,[].concat([a],l))}});t.push(n)}catch(s){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){t.forEach(function(s){return s()})}}function bl(r,i,o,e,t,n){for(var s=function(){var c=f.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(c))return"continue";try{if(typeof r[c]!="function")return"continue";var h=ot(r,c,function(d){return function(){for(var g=arguments.length,p=new Array(g),m=0;m<g;m++)p[m]=arguments[m];var w=d.apply(this,p);if(gl(w,n,this),"tagName"in this.canvas&&!ge(this.canvas,e,t,!0)){var S=yl(p,n,this),b={type:i,property:c,args:S};o(this.canvas,b)}return w}});a.push(h)}catch(d){var v=En(r,c,{set:function(p){o(this.canvas,{type:i,property:c,args:[p],setter:!0})}});a.push(v)}},a=[],u=Object.getOwnPropertyNames(r),l=I(u),f;!(f=l()).done;)s();return a}function _m(r,i,o,e){var t,n=[];if((t=n).push.apply(t,[].concat(bl(i.WebGLRenderingContext.prototype,At.WebGL,r,o,e,i))),typeof i.WebGL2RenderingContext!="undefined"){var s;(s=n).push.apply(s,[].concat(bl(i.WebGL2RenderingContext.prototype,At.WebGL2,r,o,e,i)))}return function(){n.forEach(function(a){return a()})}}var Cl="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Pm=function(r){return Uint8Array.from(atob(r),function(i){return i.charCodeAt(0)})},Il=typeof window!="undefined"&&window.Blob&&new Blob([Pm(Cl)],{type:"text/javascript;charset=utf-8"});function Tm(r){var i;try{if(i=Il&&(window.URL||window.webkitURL).createObjectURL(Il),!i)throw"";var o=new Worker(i,{name:r==null?void 0:r.name});return o.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(i)}),o}catch(e){return new Worker("data:text/javascript;base64,"+Cl,{name:r==null?void 0:r.name})}finally{i&&(window.URL||window.webkitURL).revokeObjectURL(i)}}var Nm=(function(){function r(o){var e=this;O(this,"pendingCanvasMutations",new Map),O(this,"rafStamps",{latestId:0,invokeId:null}),O(this,"mirror"),O(this,"mutationCb"),O(this,"resetObservers"),O(this,"frozen",!1),O(this,"locked",!1),O(this,"processMutation",function(c,h){var v=e.rafStamps.invokeId&&e.rafStamps.latestId!==e.rafStamps.invokeId;(v||!e.rafStamps.invokeId)&&(e.rafStamps.invokeId=e.rafStamps.latestId),e.pendingCanvasMutations.has(c)||e.pendingCanvasMutations.set(c,[]),e.pendingCanvasMutations.get(c).push(h)});var t=o.sampling,n=t===void 0?"all":t,s=o.win,a=o.blockClass,u=o.blockSelector,l=o.recordCanvas,f=o.dataURLOptions;this.mutationCb=o.mutationCb,this.mirror=o.mirror,l&&n==="all"&&this.initCanvasMutationObserver(s,a,u),l&&typeof n=="number"&&this.initCanvasFPSObserver(n,s,a,u,{dataURLOptions:f})}var i=r.prototype;return i.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},i.freeze=function(){this.frozen=!0},i.unfreeze=function(){this.frozen=!1},i.lock=function(){this.locked=!0},i.unlock=function(){this.locked=!1},i.initCanvasFPSObserver=function(e,t,n,s,a){var u=this,l=Sl(t,n,s,!0),f=new Map,c=new Tm;c.onmessage=function(m){var w=m.data.id;if(f.set(w,!1),"base64"in m.data){var S=m.data,b=S.base64,C=S.type,x=S.width,$=S.height;u.mutationCb({id:w,type:At["2D"],commands:[{property:"clearRect",args:[0,0,x,$]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:b}],type:C}]},0,0]}]})}};var h=1e3/e,v=0,d,g=function(){var m=[];return t.document.querySelectorAll("canvas").forEach(function(w){ge(w,n,s,!0)||m.push(w)}),m},p=function(m){if(v&&m-v<h){d=requestAnimationFrame(p);return}v=m;var w=u;g().forEach(kr(function(S){var b,C,x,$;return tt(this,function(R){switch(R.label){case 0:return C=w.mirror.getId(S),f.get(C)?[2]:S.width===0||S.height===0?[2]:(f.set(C,!0),["webgl","webgl2"].includes(S.__context)&&(x=S.getContext(S.__context),((b=x==null?void 0:x.getContextAttributes())==null?void 0:b.preserveDrawingBuffer)===!1&&x.clear(x.COLOR_BUFFER_BIT)),[4,createImageBitmap(S)]);case 1:return $=R.sent(),c.postMessage({id:C,bitmap:$,width:S.width,height:S.height,dataURLOptions:a.dataURLOptions},[$]),[2]}})})),d=requestAnimationFrame(p)};d=requestAnimationFrame(p),this.resetObservers=function(){l(),cancelAnimationFrame(d)}},i.initCanvasMutationObserver=function(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var s=Sl(e,t,n,!1),a=$m(this.processMutation.bind(this),e,t,n),u=_m(this.processMutation.bind(this),e,t,n);this.resetObservers=function(){s(),a(),u()}},i.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},i.startRAFTimestamping=function(){var e=this,t=function(n){e.rafStamps.latestId=n,requestAnimationFrame(t)};requestAnimationFrame(t)},i.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(t,n){var s=e.mirror.getId(n);e.flushPendingCanvasMutationFor(n,s)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},i.flushPendingCanvasMutationFor=function(e,t){if(!(this.frozen||this.locked)){var n=this.pendingCanvasMutations.get(e);if(!(!n||t===-1)){var s=n.map(function(u){u.type;var l=et(u,["type"]);return l}),a=n[0].type;this.mutationCb({id:t,type:a,commands:s}),this.pendingCanvasMutations.delete(e)}}},r})(),Lm=(function(){function r(o){O(this,"trackedLinkElements",new WeakSet),O(this,"mutationCb"),O(this,"adoptedStyleSheetCb"),O(this,"styleMirror",new rm),this.mutationCb=o.mutationCb,this.adoptedStyleSheetCb=o.adoptedStyleSheetCb}var i=r.prototype;return i.attachLinkElement=function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)},i.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},i.adoptStyleSheets=function(e,t){var n,s=function(){var c=f.value,h=void 0;n.styleMirror.has(c)?h=n.styleMirror.getId(c):(h=n.styleMirror.add(c),u.push({styleId:h,rules:Array.from(c.rules||CSSRule,function(v,d){return{rule:zs(v,c.href),index:d}})})),a.styleIds.push(h)};if(e.length!==0){for(var a={id:t,styleIds:[]},u=[],l=I(e),f;!(f=l()).done;)n=this,s();u.length>0&&(a.styles=u),this.adoptedStyleSheetCb(a)}},i.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},i.cleanupStylesheetsForRemovedNode=function(e){var t=this;try{if(e.nodeType===Node.DOCUMENT_NODE){var n=e;if(n.adoptedStyleSheets)for(var s=I(n.adoptedStyleSheets),a;!(a=s()).done;){var u=a.value;this.styleMirror.remove(u)}}if(e.nodeName==="STYLE"){var l=e;l.sheet&&this.styleMirror.remove(l.sheet)}if(e.nodeName==="LINK"&&e.rel==="stylesheet"){var f=e;f.sheet&&this.styleMirror.remove(f.sheet)}e.childNodes&&e.childNodes.forEach(function(c){t.cleanupStylesheetsForRemovedNode(c)})}catch(c){}},i.trackStylesheetInLinkElement=function(e){},r})(),Dm=(function(){function r(){O(this,"nodeMap",new WeakMap),O(this,"active",!1)}var i=r.prototype;return i.inOtherBuffer=function(e,t){var n=this.nodeMap.get(e);return n&&Array.from(n).some(function(s){return s!==t})},i.add=function(e,t){var n=this;this.active||(this.active=!0,requestAnimationFrame(function(){n.nodeMap=new WeakMap,n.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))},i.destroy=function(){},r})(),se,Tn,_o,Nn=!1;try{if(Array.from([1],function(r){return r*2})[0]!==2){var Po=document.createElement("iframe");document.body.appendChild(Po),Array.from=((Ns=Po.contentWindow)==null?void 0:Ns.Array.from)||Array.from,document.body.removeChild(Po)}}catch(r){console.debug("Unable to override Array.from",r)}var xe=Tc();function Je(r){r===void 0&&(r={});var i=r.emit,o=r.checkoutEveryNms,e=r.checkoutEveryNth,t=r.blockClass,n=t===void 0?"rr-block":t,s=r.blockSelector,a=s===void 0?null:s,u=r.ignoreClass,l=u===void 0?"rr-ignore":u,f=r.ignoreSelector,c=f===void 0?null:f,h=r.maskTextClass,v=h===void 0?"rr-mask":h,d=r.maskTextSelector,g=d===void 0?null:d,p=r.inlineStylesheet,m=p===void 0?!0:p,w=r.maskAllInputs,S=r.maskInputOptions,b=r.slimDOMOptions,C=r.maskInputFn,x=r.maskTextFn,$=r.hooks,R=r.packFn,k=r.sampling,N=k===void 0?{}:k,ae=r.dataURLOptions,_=ae===void 0?{}:ae,L=r.mousemoveWait,ie=r.recordDOM,z=ie===void 0?!0:ie,Ce=r.recordCanvas,Se=Ce===void 0?!1:Ce,pe=r.recordCrossOriginIframes,oe=pe===void 0?!1:pe,de=r.recordAfter,lt=de===void 0?r.recordAfter==="DOMContentLoaded"?r.recordAfter:"load":de,Te=r.userTriggeredOnInput,zt=Te===void 0?!1:Te,Ie=r.collectFonts,ft=Ie===void 0?!1:Ie,j=r.inlineImages,ct=j===void 0?!1:j,ht=r.plugins,Wt=r.keepIframeSrcFn,Ar=Wt===void 0?function(){return!1}:Wt,Mr=r.ignoreCSSAttributes,Es=Mr===void 0?new Set([]):Mr,ci=r.errorHandler;lm(ci);var Qe=oe?window.parent===window:!0,pt=!1;if(!Qe)try{window.parent.document&&(pt=!1)}catch(G){pt=!0}if(Qe&&!i)throw new Error("emit function is required");if(!Qe&&!pt)return function(){};L!==void 0&&N.mousemove===void 0&&(N.mousemove=L),xe.reset();var jt=w===!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!==void 0?S:{password:!0},$r=b===!0||b==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:b==="all",headMetaDescKeywords:b==="all",headTitleMutations:b==="all"}:b||{};tm();var Gt,dt=0,ze=function(G){for(var ye=I(ht||[]),A;!(A=ye()).done;){var H=A.value;H.eventProcessor&&(G=H.eventProcessor(G))}return R&&!pt&&(G=R(G)),G};se=function(G,ye){var A,H=G;if(H.timestamp=An(),(A=$e[0])!=null&&A.isFrozen()&&H.type!==F.FullSnapshot&&!(H.type===F.IncrementalSnapshot&&H.data.source===P.Mutation)&&$e.forEach(function(Fw){return Fw.unfreeze()}),Qe)i==null||i(ze(H),ye);else if(pt){var Vt={type:"rrweb",event:ze(H),origin:window.location.origin,isCheckout:ye};window.parent.postMessage(Vt,"*")}if(H.type===F.FullSnapshot)Gt=H,dt=0;else if(H.type===F.IncrementalSnapshot){if(H.data.source===P.Mutation&&H.data.isAttachIframe)return;dt++;var $s=e&&dt>=e,Dw=o&&H.timestamp-Gt.timestamp>o;($s||Dw)&&Tn(!0)}};for(var vt=function(G){se({type:F.IncrementalSnapshot,data:T({source:P.Mutation},G)})},rc=function(G){return se({type:F.IncrementalSnapshot,data:T({source:P.Scroll},G)})},nc=function(G){return se({type:F.IncrementalSnapshot,data:T({source:P.CanvasMutation},G)})},Nw=function(G){return se({type:F.IncrementalSnapshot,data:T({source:P.AdoptedStyleSheet},G)})},mt=new Lm({mutationCb:vt,adoptedStyleSheetCb:Nw}),We=new xm({mirror:xe,mutationCb:vt,stylesheetManager:mt,recordCrossOriginIframes:oe,wrappedEmit:se}),Lw=I(ht||[]),ic;!(ic=Lw()).done;){var oc=ic.value;oc.getMirror&&oc.getMirror({nodeMirror:xe,crossOriginIframeMirror:We.crossOriginIframeMirror,crossOriginIframeStyleMirror:We.crossOriginIframeStyleMirror})}var As=new Dm;_o=new Nm({recordCanvas:Se,mutationCb:nc,win:window,blockClass:n,blockSelector:a,mirror:xe,sampling:N.canvas,dataURLOptions:_});var hi=new Rm({mutationCb:vt,scrollCb:rc,bypassOptions:{blockClass:n,blockSelector:a,maskTextClass:v,maskTextSelector:g,inlineStylesheet:m,maskInputOptions:jt,dataURLOptions:_,maskTextFn:x,maskInputFn:C,recordCanvas:Se,inlineImages:ct,sampling:N,slimDOMOptions:$r,iframeManager:We,stylesheetManager:mt,canvasManager:_o,keepIframeSrcFn:Ar,processedNodeManager:As},mirror:xe});Tn=function(G){if(G===void 0&&(G=!1),!!z){se({type:F.Meta,data:{href:window.location.href,width:Xu(),height:Ku()}},G),mt.reset(),hi.init(),$e.forEach(function(A){return A.lock()});var ye=ih(document,{mirror:xe,blockClass:n,blockSelector:a,maskTextClass:v,maskTextSelector:g,inlineStylesheet:m,maskAllInputs:jt,maskTextFn:x,maskInputFn:C,slimDOM:$r,dataURLOptions:_,recordCanvas:Se,inlineImages:ct,onSerialize:function(A){tl(A,xe)&&We.addIframe(A),rl(A,xe)&&mt.trackLinkElement(A),$o(A)&&hi.addShadowRoot(D.shadowRoot(A),document)},onIframeLoad:function(A,H){We.attachIframe(A,H),hi.observeAttachShadow(A)},onStylesheetLoad:function(A,H){mt.attachLinkElement(A,H)},keepIframeSrcFn:Ar});if(!ye)return console.warn("Failed to snapshot the document");se({type:F.FullSnapshot,data:{node:ye,initialOffset:Zu(window)}},G),$e.forEach(function(A){return A.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&mt.adoptStyleSheets(document.adoptedStyleSheets,xe.getId(document))}};try{var gt=[],sc=function(G){var ye;return U(Om)({mutationCb:vt,mousemoveCb:function(A,H){return se({type:F.IncrementalSnapshot,data:{source:H,positions:A}})},mouseInteractionCb:function(A){return se({type:F.IncrementalSnapshot,data:T({source:P.MouseInteraction},A)})},scrollCb:rc,viewportResizeCb:function(A){return se({type:F.IncrementalSnapshot,data:T({source:P.ViewportResize},A)})},inputCb:function(A){return se({type:F.IncrementalSnapshot,data:T({source:P.Input},A)})},mediaInteractionCb:function(A){return se({type:F.IncrementalSnapshot,data:T({source:P.MediaInteraction},A)})},styleSheetRuleCb:function(A){return se({type:F.IncrementalSnapshot,data:T({source:P.StyleSheetRule},A)})},styleDeclarationCb:function(A){return se({type:F.IncrementalSnapshot,data:T({source:P.StyleDeclaration},A)})},canvasMutationCb:nc,fontCb:function(A){return se({type:F.IncrementalSnapshot,data:T({source:P.Font},A)})},selectionCb:function(A){se({type:F.IncrementalSnapshot,data:T({source:P.Selection},A)})},customElementCb:function(A){se({type:F.IncrementalSnapshot,data:T({source:P.CustomElement},A)})},blockClass:n,ignoreClass:l,ignoreSelector:c,maskTextClass:v,maskTextSelector:g,maskInputOptions:jt,inlineStylesheet:m,sampling:N,recordDOM:z,recordCanvas:Se,inlineImages:ct,userTriggeredOnInput:zt,collectFonts:ft,doc:G,maskInputFn:C,maskTextFn:x,keepIframeSrcFn:Ar,blockSelector:a,slimDOMOptions:$r,dataURLOptions:_,mirror:xe,iframeManager:We,stylesheetManager:mt,shadowDomManager:hi,processedNodeManager:As,canvasManager:_o,ignoreCSSAttributes:Es,plugins:((ye=ht==null?void 0:ht.filter(function(A){return A.observer}))==null?void 0:ye.map(function(A){return{observer:A.observer,options:A.options,callback:function(H){return se({type:F.Plugin,data:{plugin:A.name,payload:H}})}}}))||[]},$)};We.addLoadListener(function(G){try{var ye=G.contentDocument,A=sc(ye);gt.push(A);var H=We.getObserverCleanup(G);We.setObserverCleanup(G,function(){if(H)try{H()}catch($s){}try{A();var Vt=gt.indexOf(A);Vt!==-1&&gt.splice(Vt,1),cm(ye)}catch($s){}})}catch(Vt){console.warn(Vt)}});var Ms=function(){Tn(),gt.push(sc(document)),Nn=!0};return document.readyState==="interactive"||document.readyState==="complete"?Ms():(gt.push(me("DOMContentLoaded",function(){se({type:F.DomContentLoaded,data:{}}),lt==="DOMContentLoaded"&&Ms()})),gt.push(me("load",function(){se({type:F.Load,data:{}}),lt==="load"&&Ms()},window))),function(){gt.forEach(function(G){try{G()}catch(A){var ye=String(A).toLowerCase();ye.includes("cross-origin")||console.warn(A)}}),As.destroy(),Nn=!1,fm()}}catch(G){console.warn(G)}}Je.addCustomEvent=function(r,i){if(!Nn)throw new Error("please add custom event after start recording");se({type:F.Custom,data:{tag:r,payload:i}})},Je.freezePage=function(){$e.forEach(function(r){return r.freeze()})},Je.takeFullSnapshot=function(r){if(!Nn)throw new Error("please take full snapshot after start recording");Tn(r)},Je.mirror=xe;var Ol;(function(r){r[r.NotStarted=0]="NotStarted",r[r.Running=1]="Running",r[r.Stopped=2]="Stopped"})(Ol||(Ol={})),Je.addCustomEvent,Je.freezePage,Je.takeFullSnapshot;var xl={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Rl={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ln={},Fm=function(){return!!globalThis.Zone};function To(r){if(Ln[r])return Ln[r];var i=globalThis[r],o=i.prototype,e=r in xl?xl[r]:void 0,t=!!(e&&e.every(function(f){var c,h;return!!((h=(c=Object.getOwnPropertyDescriptor(o,f))==null?void 0:c.get)!=null&&h.toString().includes("[native code]"))})),n=r in Rl?Rl[r]:void 0,s=!!(n&&n.every(function(f){var c;return typeof o[f]=="function"&&((c=o[f])==null?void 0:c.toString().includes("[native code]"))}));if(t&&s&&!Fm())return Ln[r]=i.prototype,i.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return i.prototype;var l=u[r].prototype;return document.body.removeChild(a),l?Ln[r]=l:o}catch(f){return o}}var No={};function He(r,i,o){var e,t=r+"."+String(o);if(No[t])return No[t].call(i);var n=To(r),s=(e=Object.getOwnPropertyDescriptor(n,o))==null?void 0:e.get;return s?(No[t]=s,s.call(i)):i[o]}var Lo={};function El(r,i,o){var e=r+"."+String(o);if(Lo[e])return Lo[e].bind(i);var t=To(r),n=t[o];return typeof n!="function"?i[o]:(Lo[e]=n,n.bind(i))}function Bm(r){return He("Node",r,"childNodes")}function Um(r){return He("Node",r,"parentNode")}function zm(r){return He("Node",r,"parentElement")}function Wm(r){return He("Node",r,"textContent")}function jm(r,i){return El("Node",r,"contains")(i)}function Gm(r){return El("Node",r,"getRootNode")()}function Vm(r){return!r||!("host"in r)?null:He("ShadowRoot",r,"host")}function Ym(r){return r.styleSheets}function qm(r){return!r||!("shadowRoot"in r)?null:He("Element",r,"shadowRoot")}function Jm(r,i){return He("Element",r,"querySelector")(i)}function Hm(r,i){return He("Element",r,"querySelectorAll")(i)}function Zm(){return To("MutationObserver").constructor}function Km(r,i,o){try{if(!(i in r))return function(){};var e=r[i],t=o(e);return typeof t=="function"&&(t.prototype=t.prototype||{},Object.defineProperties(t,{__rrweb_original__:{enumerable:!1,value:e}})),r[i]=t,function(){r[i]=e}}catch(n){return function(){}}}var Al={childNodes:Bm,parentNode:Um,parentElement:zm,textContent:Wm,contains:jm,getRootNode:Gm,host:Vm,styleSheets:Ym,shadowRoot:qm,querySelector:Jm,querySelectorAll:Hm,mutationObserver:Zm,patch:Km};function Do(r,i,o){if(!r)return!1;if(r.nodeType!==r.ELEMENT_NODE)return Do(Al.parentNode(r),i);for(var e=r.classList.length;e--;){var t=r.classList[e];if(i.test(t))return!0}return Do(Al.parentNode(r),i)}function Xm(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Qm(r){if(r.__esModule)return r;var i=r.default;if(typeof i=="function"){var o=function e(){return E(this,e)?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};o.prototype=i.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(r).forEach(function(e){var t=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(o,e,t.get?t:{enumerable:!0,get:function(){return r[e]}})}),o}var Fo={exports:{}},Q=String,Ml=function(){return{isColorSupported:!1,reset:Q,bold:Q,dim:Q,italic:Q,underline:Q,inverse:Q,hidden:Q,strikethrough:Q,black:Q,red:Q,green:Q,yellow:Q,blue:Q,magenta:Q,cyan:Q,white:Q,gray:Q,bgBlack:Q,bgRed:Q,bgGreen:Q,bgYellow:Q,bgBlue:Q,bgMagenta:Q,bgCyan:Q,bgWhite:Q}};Fo.exports=Ml(),Fo.exports.createColors=Ml;var eg=Fo.exports,tg={},rg=Object.freeze(Object.defineProperty({__proto__:null,default:tg},Symbol.toStringTag,{value:"Module"})),fe=Qm(rg),$l=eg,kl=fe,Bo=(function(r){ee(i,r);function i(e,t,n,s,a,u){var l;return l=r.call(this,e)||this,l.name="CssSyntaxError",l.reason=e,a&&(l.file=a),s&&(l.source=s),u&&(l.plugin=u),typeof t!="undefined"&&typeof n!="undefined"&&(typeof t=="number"?(l.line=t,l.column=n):(l.line=t.line,l.column=t.column,l.endLine=n.line,l.endColumn=n.column)),l.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(l,i),l}var o=i.prototype;return o.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},o.showSourceCode=function(t){var n=this;if(!this.source)return"";var s=this.source;t==null&&(t=$l.isColorSupported),kl&&t&&(s=kl(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),l=Math.min(this.line+2,a.length),f=String(l).length,c,h;if(t){var v=$l.createColors(!0),d=v.bold,g=v.gray,p=v.red;c=function(m){return d(p(m))},h=function(m){return g(m)}}else c=h=function(m){return m};return a.slice(u,l).map(function(m,w){var S=u+1+w,b=" "+(" "+S).slice(-f)+" | ";if(S===n.line){var C=h(b.replace(/\d/g," "))+m.slice(0,n.column-1).replace(/[^\t]/g," ");return c(">")+h(b)+m+"\n "+C+c("^")}return" "+h(b)+m}).join("\n")},o.toString=function(){var t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t},i})(qt(Error)),Uo=Bo;Bo.default=Bo;var Ze={};Ze.isClean=Symbol("isClean"),Ze.my=Symbol("my");var _l={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function ng(r){return r[0].toUpperCase()+r.slice(1)}var zo=(function(){function r(o){this.builder=o}var i=r.prototype;return i.atrule=function(e,t){var n="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?n+=e.raws.afterName:s&&(n+=" "),e.nodes)this.block(e,n+s);else{var a=(e.raws.between||"")+(t?";":"");this.builder(n+s+a,e)}},i.beforeAfter=function(e,t){var n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):t==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");for(var s=e.parent,a=0;s&&s.type!=="root";)a+=1,s=s.parent;if(n.includes("\n")){var u=this.raw(e,null,"indent");if(u.length)for(var l=0;l<a;l++)n+=u}return n},i.block=function(e,t){var n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",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")},i.body=function(e){for(var t=e.nodes.length-1;t>0&&e.nodes[t].type==="comment";)t-=1;for(var n=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,t!==s||n)}},i.comment=function(e){var t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)},i.decl=function(e,t){var n=this.raw(e,"between","colon"),s=e.prop+n+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),t&&(s+=";"),this.builder(s,e)},i.document=function(e){this.body(e)},i.raw=function(e,t,n){var s;if(n||(n=t),t&&(s=e.raws[t],typeof s!="undefined"))return s;var a=e.parent;if(n==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return _l[n];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[n]!="undefined")return u.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);var l="raw"+ng(n);return this[l]?s=this[l](u,e):u.walk(function(f){if(s=f.raws[t],typeof s!="undefined")return!1}),typeof s=="undefined"&&(s=_l[n]),u.rawCache[n]=s,s},i.rawBeforeClose=function(e){var t;return e.walk(function(n){if(n.nodes&&n.nodes.length>0&&typeof n.raws.after!="undefined")return t=n.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},i.rawBeforeComment=function(e,t){var n;return e.walkComments(function(s){if(typeof s.raws.before!="undefined")return n=s.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n=="undefined"?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n},i.rawBeforeDecl=function(e,t){var n;return e.walkDecls(function(s){if(typeof s.raws.before!="undefined")return n=s.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n=="undefined"?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n},i.rawBeforeOpen=function(e){var t;return e.walk(function(n){if(n.type!=="decl"&&(t=n.raws.between,typeof t!="undefined"))return!1}),t},i.rawBeforeRule=function(e){var t;return e.walk(function(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before!="undefined")return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},i.rawColon=function(e){var t;return e.walkDecls(function(n){if(typeof n.raws.between!="undefined")return t=n.raws.between.replace(/[^\s:]/g,""),!1}),t},i.rawEmptyBody=function(e){var t;return e.walk(function(n){if(n.nodes&&n.nodes.length===0&&(t=n.raws.after,typeof t!="undefined"))return!1}),t},i.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var t;return e.walk(function(n){var s=n.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof n.raws.before!="undefined"){var a=n.raws.before.split("\n");return t=a[a.length-1],t=t.replace(/\S/g,""),!1}}),t},i.rawSemicolon=function(e){var t;return e.walk(function(n){if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(t=n.raws.semicolon,typeof t!="undefined"))return!1}),t},i.rawValue=function(e,t){var n=e[t],s=e.raws[t];return s&&s.value===n?s.raw:n},i.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},i.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},i.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},r})(),Pl=zo;zo.default=zo;var ig=Pl;function Wo(r,i){var o=new ig(i);o.stringify(r)}var Dn=Wo;Wo.default=Wo;var Fn=Ze.isClean,og=Ze.my,sg=Uo,ag=Pl,ug=Dn;function jo(r,i){var o=new r.constructor;for(var e in r)if(Object.prototype.hasOwnProperty.call(r,e)&&e!=="proxyCache"){var t=r[e],n=typeof t=="undefined"?"undefined":M(t);e==="parent"&&n==="object"?i&&(o[e]=i):e==="source"?o[e]=t:Array.isArray(t)?o[e]=t.map(function(s){return jo(s,o)}):(n==="object"&&t!==null&&(t=jo(t)),o[e]=t)}return o}var Go=(function(){function r(o){o===void 0&&(o={}),this.raws={},this[Fn]=!1,this[og]=!0;for(var e in o)if(e==="nodes"){this.nodes=[];for(var t=I(o[e]),n;!(n=t()).done;){var s=n.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[e]=o[e]}var i=r.prototype;return i.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},i.after=function(e){return this.parent.insertAfter(this,e),this},i.assign=function(e){e===void 0&&(e={});for(var t in e)this[t]=e[t];return this},i.before=function(e){return this.parent.insertBefore(this,e),this},i.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},i.clone=function(e){e===void 0&&(e={});var t=jo(this);for(var n in e)t[n]=e[n];return t},i.cloneAfter=function(e){e===void 0&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},i.cloneBefore=function(e){e===void 0&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},i.error=function(e,t){if(t===void 0&&(t={}),this.source){var n=this.rangeBy(t),s=n.end,a=n.start;return this.source.input.error(e,{column:a.column,line:a.line},{column:s.column,line:s.line},t)}return new sg(e)},i.getProxyProcessor=function(){return{get:function(t,n){return n==="proxyOf"?t:n==="root"?function(){return t.root().toProxy()}:t[n]},set:function(t,n,s){return t[n]===s||(t[n]=s,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&t.markDirty()),!0}}},i.markDirty=function(){if(this[Fn]){this[Fn]=!1;for(var e=this;e=e.parent;)e[Fn]=!1}},i.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},i.positionBy=function(e,t){var n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){t=this.toString();var s=t.indexOf(e.word);s!==-1&&(n=this.positionInside(s,t))}return n},i.positionInside=function(e,t){for(var n=t||this.toString(),s=this.source.start.column,a=this.source.start.line,u=0;u<e;u++)n[u]==="\n"?(s=1,a+=1):s+=1;return{column:s,line:a}},i.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},i.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var s=this.toString(),a=s.indexOf(e.word);a!==-1&&(t=this.positionInside(a,s),n=this.positionInside(a+e.word.length,s))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}},i.raw=function(e,t){var n=new ag;return n.raw(this,e,t)},i.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},i.replaceWith=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this.parent){for(var s=this,a=!1,u=I(t),l;!(l=u()).done;){var f=l.value;f===this?a=!0:a?(this.parent.insertAfter(s,f),s=f):this.parent.insertBefore(s,f)}a||this.remove()}return this},i.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},i.toJSON=function(e,t){var n={},s=t==null;t=t||new Map;var a=0;for(var u in this)if(Object.prototype.hasOwnProperty.call(this,u)&&!(u==="parent"||u==="proxyCache")){var l=this[u];if(Array.isArray(l))n[u]=l.map(function(c){return(typeof c=="undefined"?"undefined":M(c))==="object"&&c.toJSON?c.toJSON(null,t):c});else if((typeof l=="undefined"?"undefined":M(l))==="object"&&l.toJSON)n[u]=l.toJSON(null,t);else if(u==="source"){var f=t.get(l.input);f==null&&(f=a,t.set(l.input,a),a++),n[u]={end:l.end,inputId:f,start:l.start}}else n[u]=l}return s&&(n.inputs=[].concat(t.keys()).map(function(c){return c.toJSON()})),n},i.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},i.toString=function(e){e===void 0&&(e=ug),e.stringify&&(e=e.stringify);var t="";return e(this,function(n){t+=n}),t},i.warn=function(e,t,n){var s={node:this};for(var a in n)s[a]=n[a];return e.warn(t,s)},Z(r,[{key:"proxyOf",get:function(){return this}}]),r})(),Bn=Go;Go.default=Go;var lg=Bn,Vo=(function(r){ee(i,r);function i(o){var e;return o&&typeof o.value!="undefined"&&typeof o.value!="string"&&(o=T({},o,{value:String(o.value)})),e=r.call(this,o)||this,e.type="decl",e}return Z(i,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),i})(lg),Un=Vo;Vo.default=Vo;var fg="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",cg=function(r){r===void 0&&(r=21);for(var i="",o=r;o--;)i+=fg[Math.random()*64|0];return i},hg={nanoid:cg},Tl=fe.SourceMapConsumer,Nl=fe.SourceMapGenerator,pg=fe.existsSync,dg=fe.readFileSync,Yo=fe.dirname,vg=fe.join;function mg(r){return Buffer?Buffer.from(r,"base64").toString():window.atob(r)}var qo=(function(){function r(o,e){if(e.map!==!1){this.loadAnnotation(o),this.inline=this.startWith(this.annotation,"data:");var t=e.map?e.map.prev:void 0,n=this.loadMap(e.from,t);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=Yo(this.mapFile)),n&&(this.text=n)}}var i=r.prototype;return i.consumer=function(){return this.consumerCache||(this.consumerCache=new Tl(this.text)),this.consumerCache},i.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,n=/^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(t.test(e)||n.test(e))return mg(e.substr(RegExp.lastMatch.length));var u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},i.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},i.isMap=function(e){return(typeof e=="undefined"?"undefined":M(e))!=="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)},i.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var n=e.lastIndexOf(t.pop()),s=e.indexOf("*/",n);n>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,s)))}},i.loadFile=function(e){if(this.root=Yo(e),pg(e))return this.mapFile=e,dg(e,"utf-8").toString().trim()},i.loadMap=function(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){var n=t(e);if(n){var s=this.loadFile(n);if(!s)throw new Error("Unable to load previous source map: "+n.toString());return s}}else{if(E(t,Tl))return Nl.fromSourceMap(t).toString();if(E(t,Nl))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var a=this.annotation;return e&&(a=vg(Yo(e),a)),this.loadFile(a)}}},i.startWith=function(e,t){return e?e.substr(0,t.length)===t:!1},i.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},r})(),Ll=qo;qo.default=qo;var gg=fe.SourceMapConsumer,yg=fe.SourceMapGenerator,Dl=fe.fileURLToPath,zn=fe.pathToFileURL,Jo=fe.isAbsolute,Ho=fe.resolve,wg=hg.nanoid,Zo=fe,Fl=Uo,Sg=Ll,Ko=Symbol("fromOffsetCache"),bg=!!(gg&&yg),Bl=!!(Ho&&Jo),Wn=(function(){function r(o,e){if(e===void 0&&(e={}),o===null||typeof o=="undefined"||(typeof o=="undefined"?"undefined":M(o))==="object"&&!o.toString)throw new Error("PostCSS received "+o+" instead of CSS string");if(this.css=o.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!Bl||/^\w+:\/\//.test(e.from)||Jo(e.from)?this.file=e.from:this.file=Ho(e.from)),Bl&&bg){var t=new Sg(this.css,e);if(t.text){this.map=t;var n=t.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+wg(6)+">"),this.map&&(this.map.file=this.from)}var i=r.prototype;return i.error=function(e,t,n,s){s===void 0&&(s={});var a,u,l;if(t&&(typeof t=="undefined"?"undefined":M(t))==="object"){var f=t,c=n;if(typeof f.offset=="number"){var h=this.fromOffset(f.offset);t=h.line,n=h.col}else t=f.line,n=f.column;if(typeof c.offset=="number"){var v=this.fromOffset(c.offset);u=v.line,l=v.col}else u=c.line,l=c.column}else if(!n){var d=this.fromOffset(t);t=d.line,n=d.col}var g=this.origin(t,n,u,l);return g?a=new Fl(e,g.endLine===void 0?g.line:{column:g.column,line:g.line},g.endLine===void 0?g.column:{column:g.endColumn,line:g.endLine},g.source,g.file,s.plugin):a=new Fl(e,u===void 0?t:{column:n,line:t},u===void 0?n:{column:l,line:u},this.css,this.file,s.plugin),a.input={column:n,endColumn:l,endLine:u,line:t,source:this.css},this.file&&(zn&&(a.input.url=zn(this.file).toString()),a.input.file=this.file),a},i.fromOffset=function(e){var t,n;if(this[Ko])n=this[Ko];else{var s=this.css.split("\n");n=new Array(s.length);for(var a=0,u=0,l=s.length;u<l;u++)n[u]=a,a+=s[u].length+1;this[Ko]=n}t=n[n.length-1];var f=0;if(e>=t)f=n.length-1;else for(var c=n.length-2,h;f<c;)if(h=f+(c-f>>1),e<n[h])c=h-1;else if(e>=n[h+1])f=h+1;else{f=h;break}return{col:e-n[f]+1,line:f+1}},i.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Ho(this.map.consumer().sourceRoot||this.map.root||".",e)},i.origin=function(e,t,n,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:t,line:e});if(!u.source)return!1;var l;typeof n=="number"&&(l=a.originalPositionFor({column:s,line:n}));var f;Jo(u.source)?f=zn(u.source):f=new URL(u.source,this.map.consumer().sourceRoot||zn(this.map.mapFile));var c={column:u.column,endColumn:l&&l.column,endLine:l&&l.line,line:u.line,url:f.toString()};if(f.protocol==="file:")if(Dl)c.file=Dl(f);else throw new Error("file: protocol is not available in this PostCSS build");var h=a.sourceContentFor(u.source);return h&&(c.source=h),c},i.toJSON=function(){for(var e={},t=0,n=["hasBOM","css","file","id"];t<n.length;t++){var s=n[t];this[s]!=null&&(e[s]=this[s])}return this.map&&(e.map=T({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Z(r,[{key:"from",get:function(){return this.file||this.id}}]),r})(),jn=Wn;Wn.default=Wn,Zo&&Zo.registerInput&&Zo.registerInput(Wn);var Ul=fe.SourceMapConsumer,Gn=fe.SourceMapGenerator,Vn=fe.dirname,zl=fe.relative,Wl=fe.resolve,jl=fe.sep,Gl=fe.pathToFileURL,Cg=jn,Ig=!!(Ul&&Gn),Og=!!(Vn&&Wl&&zl&&jl),xg=(function(){function r(o,e,t,n){this.stringify=o,this.mapOpts=t.map||{},this.root=e,this.opts=t,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var i=r.prototype;return i.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 t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},i.applyPrevMaps=function(){for(var e=I(this.previous()),t;!(t=e()).done;){var n=t.value,s=this.toUrl(this.path(n.file)),a=n.root||Vn(n.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new Ul(n.text),u.sourcesContent&&(u.sourcesContent=null)):u=n.consumer(),this.map.applySourceMap(u,s,this.toUrl(this.path(a)))}},i.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},i.generate=function(){if(this.clearAnnotation(),Og&&Ig&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},i.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=Gn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Gn({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]},i.generateString=function(){var e=this;this.css="",this.map=new Gn({file:this.outputFile(),ignoreInvalidMapping:!0});var t=1,n=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,l;this.stringify(this.root,function(f,c,h){if(e.css+=f,c&&h!=="end"&&(a.generated.line=t,a.generated.column=n-1,c.source&&c.source.start?(a.source=e.sourcePath(c),a.original.line=c.source.start.line,a.original.column=c.source.start.column-1,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,e.map.addMapping(a))),u=f.match(/\n/g),u?(t+=u.length,l=f.lastIndexOf("\n"),n=f.length-l):n+=f.length,c&&h!=="start"){var v=c.parent||{raws:{}},d=c.type==="decl"||c.type==="atrule"&&!c.nodes;(!d||c!==v.last||v.raws.semicolon)&&(c.source&&c.source.end?(a.source=e.sourcePath(c),a.original.line=c.source.end.line,a.original.column=c.source.end.column-1,a.generated.line=t,a.generated.column=n-2,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=t,a.generated.column=n-1,e.map.addMapping(a)))}})},i.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},i.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(t){return t.inline}):!0},i.isMap=function(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0},i.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(e){return e.withContent()}):!0},i.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},i.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var n=this.opts.to?Vn(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=Vn(Wl(n,this.mapOpts.annotation)));var s=zl(n,e);return this.memoizedPaths.set(e,s),s},i.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(n){if(n.source&&n.source.input.map){var s=n.source.input.map;e.previousMaps.includes(s)||e.previousMaps.push(s)}});else{var t=new Cg(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},i.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!t[a]){t[a]=!0;var u=e.usesFileUrls?e.toFileUrl(a):e.toUrl(e.path(a));e.map.setSourceContent(u,s.source.input.css)}}});else if(this.css){var n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}},i.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))},i.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},i.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(Gl){var n=Gl(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")},i.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;jl==="\\"&&(e=e.replace(/\\/g,"/"));var n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n},r})(),Vl=xg,Rg=Bn,Xo=(function(r){ee(i,r);function i(o){var e;return e=r.call(this,o)||this,e.type="comment",e}return i})(Rg),Yn=Xo;Xo.default=Xo;var Yl=Ze.isClean,ql=Ze.my,Jl=Un,Hl=Yn,Eg=Bn,Zl,Qo,es,Kl;function Xl(r){return r.map(function(i){return i.nodes&&(i.nodes=Xl(i.nodes)),delete i.source,i})}function Ql(r){if(r[Yl]=!1,r.proxyOf.nodes)for(var i=I(r.proxyOf.nodes),o;!(o=i()).done;){var e=o.value;Ql(e)}}var Fe=(function(r){ee(i,r);function i(){return r.apply(this,arguments)||this}var o=i.prototype;return o.append=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];for(var a=I(n),u;!(u=a()).done;)for(var l=u.value,f=this.normalize(l,this.last),c=I(f),h;!(h=c()).done;){var v=h.value;this.proxyOf.nodes.push(v)}return this.markDirty(),this},o.cleanRaws=function(t){if(r.prototype.cleanRaws.call(this,t),this.nodes)for(var n=I(this.nodes),s;!(s=n()).done;){var a=s.value;a.cleanRaws(t)}},o.each=function(t){if(this.proxyOf.nodes){for(var n=this.getIterator(),s,a;this.indexes[n]<this.proxyOf.nodes.length&&(s=this.indexes[n],a=t(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[n]+=1;return delete this.indexes[n],a}},o.every=function(t){return this.nodes.every(t)},o.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var t=this.lastEach;return this.indexes[t]=0,t},o.getProxyProcessor=function(){return{get:function(n,s){return s==="proxyOf"?n:n[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),l=0;l<a;l++)u[l]=arguments[l];var f;return(f=n)[s].apply(f,[].concat(u.map(function(c){return typeof c=="function"?function(h,v){return c(h.toProxy(),v)}:c})))}:s==="every"||s==="some"?function(a){return n[s](function(u){for(var l=arguments.length,f=new Array(l>1?l-1:0),c=1;c<l;c++)f[c-1]=arguments[c];return a.apply(void 0,[].concat([u.toProxy()],f))})}:s==="root"?function(){return n.root().toProxy()}:s==="nodes"?n.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?n[s].toProxy():n[s]:n[s]},set:function(n,s,a){return n[s]===a||(n[s]=a,(s==="name"||s==="params"||s==="selector")&&n.markDirty()),!0}}},o.index=function(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))},o.insertAfter=function(t,n){var s=this.index(t),a=this.normalize(n,this.proxyOf.nodes[s]).reverse();s=this.index(t);for(var u=I(a),l;!(l=u()).done;){var f=l.value;this.proxyOf.nodes.splice(s+1,0,f)}var c;for(var h in this.indexes)c=this.indexes[h],s<c&&(this.indexes[h]=c+a.length);return this.markDirty(),this},o.insertBefore=function(t,n){var s=this.index(t),a=s===0?"prepend":!1,u=this.normalize(n,this.proxyOf.nodes[s],a).reverse();s=this.index(t);for(var l=I(u),f;!(f=l()).done;){var c=f.value;this.proxyOf.nodes.splice(s,0,c)}var h;for(var v in this.indexes)h=this.indexes[v],s<=h&&(this.indexes[v]=h+u.length);return this.markDirty(),this},o.normalize=function(t,n){var s=this;if(typeof t=="string")t=Xl(Zl(t).nodes);else if(typeof t=="undefined")t=[];else if(Array.isArray(t)){t=t.slice(0);for(var a=I(t),u;!(u=a()).done;){var l=u.value;l.parent&&l.parent.removeChild(l,"ignore")}}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(var f=I(t),c;!(c=f()).done;){var h=c.value;h.parent&&h.parent.removeChild(h,"ignore")}}else if(t.type)t=[t];else if(t.prop){if(typeof t.value=="undefined")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new Jl(t)]}else if(t.selector)t=[new Qo(t)];else if(t.name)t=[new es(t)];else if(t.text)t=[new Hl(t)];else throw new Error("Unknown node type in node creation");var v=t.map(function(d){return d[ql]||i.rebuild(d),d=d.proxyOf,d.parent&&d.parent.removeChild(d),d[Yl]&&Ql(d),typeof d.raws.before=="undefined"&&n&&typeof n.raws.before!="undefined"&&(d.raws.before=n.raws.before.replace(/\S/g,"")),d.parent=s.proxyOf,d});return v},o.prepend=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];n=n.reverse();for(var a=I(n),u;!(u=a()).done;){for(var l=u.value,f=this.normalize(l,this.first,"prepend").reverse(),c=I(f),h;!(h=c()).done;){var v=h.value;this.proxyOf.nodes.unshift(v)}for(var d in this.indexes)this.indexes[d]=this.indexes[d]+f.length}return this.markDirty(),this},o.push=function(t){return t.parent=this,this.proxyOf.nodes.push(t),this},o.removeAll=function(){for(var t=I(this.proxyOf.nodes),n;!(n=t()).done;){var s=n.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},o.removeChild=function(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);var n;for(var s in this.indexes)n=this.indexes[s],n>=t&&(this.indexes[s]=n-1);return this.markDirty(),this},o.replaceValues=function(t,n,s){return s||(s=n,n={}),this.walkDecls(function(a){n.props&&!n.props.includes(a.prop)||n.fast&&!a.value.includes(n.fast)||(a.value=a.value.replace(t,s))}),this.markDirty(),this},o.some=function(t){return this.nodes.some(t)},o.walk=function(t){return this.each(function(n,s){var a;try{a=t(n,s)}catch(u){throw n.addToError(u)}return a!==!1&&n.walk&&(a=n.walk(t)),a})},o.walkAtRules=function(t,n){return n?E(t,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&t.test(s.name))return n(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="atrule")return n(s,a)}))},o.walkComments=function(t){return this.walk(function(n,s){if(n.type==="comment")return t(n,s)})},o.walkDecls=function(t,n){return n?E(t,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&t.test(s.prop))return n(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="decl")return n(s,a)}))},o.walkRules=function(t,n){return n?E(t,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&t.test(s.selector))return n(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="rule")return n(s,a)}))},Z(i,[{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]}}]),i})(Eg);Fe.registerParse=function(r){Zl=r},Fe.registerRule=function(r){Qo=r},Fe.registerAtRule=function(r){es=r},Fe.registerRoot=function(r){Kl=r};var st=Fe;Fe.default=Fe,Fe.rebuild=function(r){r.type==="atrule"?Object.setPrototypeOf(r,es.prototype):r.type==="rule"?Object.setPrototypeOf(r,Qo.prototype):r.type==="decl"?Object.setPrototypeOf(r,Jl.prototype):r.type==="comment"?Object.setPrototypeOf(r,Hl.prototype):r.type==="root"&&Object.setPrototypeOf(r,Kl.prototype),r[ql]=!0,r.nodes&&r.nodes.forEach(function(i){Fe.rebuild(i)})};var Ag=st,ef,tf,dr=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,T({type:"document"},e))||this,t.nodes||(t.nodes=[]),t}var o=i.prototype;return o.toResult=function(t){t===void 0&&(t={});var n=new ef(new tf,this,t);return n.stringify()},i})(Ag);dr.registerLazyResult=function(r){ef=r},dr.registerProcessor=function(r){tf=r};var ts=dr;dr.default=dr;var rf={},nf=function(i){rf[i]||(rf[i]=!0,typeof console!="undefined"&&console.warn&&console.warn(i))},rs=(function(){function r(o,e){if(e===void 0&&(e={}),this.type="warning",this.text=o,e.node&&e.node.source){var t=e.node.rangeBy(e);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(var n in e)this[n]=e[n]}var i=r.prototype;return i.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},r})(),of=rs;rs.default=rs;var Mg=of,ns=(function(){function r(o,e,t){this.processor=o,this.messages=[],this.root=e,this.opts=t,this.css=void 0,this.map=void 0}var i=r.prototype;return i.toString=function(){return this.css},i.warn=function(e,t){t===void 0&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new Mg(e,t);return this.messages.push(n),n},i.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},Z(r,[{key:"content",get:function(){return this.css}}]),r})(),is=ns;ns.default=ns;var os=39,sf=34,qn=92,af=47,Jn=10,vr=32,Hn=12,Zn=9,Kn=13,$g=91,kg=93,_g=40,Pg=41,Tg=123,Ng=125,Lg=59,Dg=42,Fg=58,Bg=64,Xn=/[\t\n\f\r "#'()/;[\\\]{}]/g,Qn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ug=/.[\r\n"'(/\\]/,uf=/[\da-f]/i,zg=function(i,o){o===void 0&&(o={});var e=i.css.valueOf(),t=o.ignoreErrors,n,s,a,u,l,f,c,h,v,d,g=e.length,p=0,m=[],w=[];function S(){return p}function b(R){throw i.error("Unclosed "+R,p)}function C(){return w.length===0&&p>=g}function x(R){if(w.length)return w.pop();if(!(p>=g)){var k=R?R.ignoreUnclosed:!1;switch(n=e.charCodeAt(p),n){case Jn:case vr:case Zn:case Kn:case Hn:{s=p;do s+=1,n=e.charCodeAt(s);while(n===vr||n===Jn||n===Zn||n===Kn||n===Hn);d=["space",e.slice(p,s)],p=s-1;break}case $g:case kg:case Tg:case Ng:case Fg:case Lg:case Pg:{var N=String.fromCharCode(n);d=[N,N,p];break}case _g:{if(h=m.length?m.pop()[1]:"",v=e.charCodeAt(p+1),h==="url"&&v!==os&&v!==sf&&v!==vr&&v!==Jn&&v!==Zn&&v!==Hn&&v!==Kn){s=p;do{if(f=!1,s=e.indexOf(")",s+1),s===-1)if(t||k){s=p;break}else b("bracket");for(c=s;e.charCodeAt(c-1)===qn;)c-=1,f=!f}while(f);d=["brackets",e.slice(p,s+1),p,s],p=s}else s=e.indexOf(")",p+1),u=e.slice(p,s+1),s===-1||Ug.test(u)?d=["(","(",p]:(d=["brackets",u,p,s],p=s);break}case os:case sf:{a=n===os?"'":'"',s=p;do{if(f=!1,s=e.indexOf(a,s+1),s===-1)if(t||k){s=p+1;break}else b("string");for(c=s;e.charCodeAt(c-1)===qn;)c-=1,f=!f}while(f);d=["string",e.slice(p,s+1),p,s],p=s;break}case Bg:{Xn.lastIndex=p+1,Xn.test(e),Xn.lastIndex===0?s=e.length-1:s=Xn.lastIndex-2,d=["at-word",e.slice(p,s+1),p,s],p=s;break}case qn:{for(s=p,l=!0;e.charCodeAt(s+1)===qn;)s+=1,l=!l;if(n=e.charCodeAt(s+1),l&&n!==af&&n!==vr&&n!==Jn&&n!==Zn&&n!==Kn&&n!==Hn&&(s+=1,uf.test(e.charAt(s)))){for(;uf.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===vr&&(s+=1)}d=["word",e.slice(p,s+1),p,s],p=s;break}default:{n===af&&e.charCodeAt(p+1)===Dg?(s=e.indexOf("*/",p+2)+1,s===0&&(t||k?s=e.length:b("comment")),d=["comment",e.slice(p,s+1),p,s],p=s):(Qn.lastIndex=p+1,Qn.test(e),Qn.lastIndex===0?s=e.length-1:s=Qn.lastIndex-2,d=["word",e.slice(p,s+1),p,s],m.push(d),p=s);break}}return p++,d}}function $(R){w.push(R)}return{back:$,endOfFile:C,nextToken:x,position:S}},lf=st,ei=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,e)||this,t.type="atrule",t}var o=i.prototype;return o.append=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=r.prototype.append).call.apply(a,[].concat([this],n))},o.prepend=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=r.prototype.prepend).call.apply(a,[].concat([this],n))},i})(lf),ss=ei;ei.default=ei,lf.registerAtRule(ei);var ff=st,cf,hf,kt=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,e)||this,t.type="root",t.nodes||(t.nodes=[]),t}var o=i.prototype;return o.normalize=function(t,n,s){var a=r.prototype.normalize.call(this,t);if(n){if(s==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(var u=I(a),l;!(l=u()).done;){var f=l.value;f.raws.before=n.raws.before}}return a},o.removeChild=function(t,n){var s=this.index(t);return!n&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),r.prototype.removeChild.call(this,t)},o.toResult=function(t){t===void 0&&(t={});var n=new cf(new hf,this,t);return n.stringify()},i})(ff);kt.registerLazyResult=function(r){cf=r},kt.registerProcessor=function(r){hf=r};var mr=kt;kt.default=kt,ff.registerRoot(kt);var gr={comma:function(i){return gr.split(i,[","],!0)},space:function(i){var o=[" ","\n"," "];return gr.split(i,o)},split:function(i,o,e){for(var t=[],n="",s=!1,a=0,u=!1,l="",f=!1,c=I(i),h;!(h=c()).done;){var v=h.value;f?f=!1:v==="\\"?f=!0:u?v===l&&(u=!1):v==='"'||v==="'"?(u=!0,l=v):v==="("?a+=1:v===")"?a>0&&(a-=1):a===0&&o.includes(v)&&(s=!0),s?(n!==""&&t.push(n.trim()),n="",s=!1):n+=v}return(e||n!=="")&&t.push(n.trim()),t}},pf=gr;gr.default=gr;var df=st,Wg=pf,ti=(function(r){ee(i,r);function i(o){var e;return e=r.call(this,o)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return Z(i,[{key:"selectors",get:function(){return Wg.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}]),i})(df),as=ti;ti.default=ti,df.registerRule(ti);var jg=Un,Gg=zg,Vg=Yn,Yg=ss,qg=mr,vf=as,mf={empty:!0,space:!0};function Jg(r){for(var i=r.length-1;i>=0;i--){var o=r[i],e=o[3]||o[2];if(e)return e}}var Hg=(function(){function r(o){this.input=o,this.root=new qg,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}var i=r.prototype;return i.atrule=function(e){var t=new Yg;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);for(var n,s,a,u=!1,l=!1,f=[],c=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){l=!0;break}else if(n==="}"){if(f.length>0){for(a=f.length-1,s=f[a];s&&s[0]==="space";)s=f[--a];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else f.push(e);else f.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(f),f.length?(t.raws.afterName=this.spacesAndCommentsFromStart(f),this.raw(t,"params",f),u&&(e=f[f.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t)},i.checkMissedSemicolon=function(e){var t=this.colon(e);if(t!==!1){for(var n=0,s,a=t-1;a>=0&&(s=e[a],!(s[0]!=="space"&&(n+=1,n===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},i.colon=function(e){for(var t=0,n,s,a,u=I(e.entries()),l;!(l=u()).done;){var f=l.value,c=f[0],h=f[1];if(n=h,s=n[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!a)this.doubleColon(n);else{if(a[0]==="word"&&a[1]==="progid")continue;return c}a=n}return!1},i.comment=function(e){var t=new Vg;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{var s=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}},i.createTokenizer=function(){this.tokenizer=Gg(this.input)},i.decl=function(e,t){var n=new jg;this.init(n,e[0][2]);var s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(s[3]||s[2]||Jg(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){n.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),n.raws.between+=u[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));for(var l=[],f;e.length&&(f=e[0][0],!(f!=="space"&&f!=="comment"));)l.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(u=e[c],u[1].toLowerCase()==="!important"){n.important=!0;var h=this.stringFrom(e,c);h=this.spacesFromEnd(e)+h,h!==" !important"&&(n.raws.important=h);break}else if(u[1].toLowerCase()==="important"){for(var v=e.slice(0),d="",g=c;g>0;g--){var p=v[g][0];if(d.trim().indexOf("!")===0&&p!=="space")break;d=v.pop()[1]+d}d.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=d,e=v)}if(u[0]!=="space"&&u[0]!=="comment")break}var m=e.some(function(w){return w[0]!=="space"&&w[0]!=="comment"});m&&(n.raws.between+=l.map(function(w){return w[1]}).join(""),l=[]),this.raw(n,"value",l.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},i.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},i.emptyRule=function(e){var t=new vf;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},i.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)},i.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())},i.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},i.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},i.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},i.other=function(e){for(var t=!1,n=null,s=!1,a=null,u=[],l=e[1].startsWith("--"),f=[],c=e;c;){if(n=c[0],f.push(c),n==="("||n==="[")a||(a=c),u.push(n==="("?")":"]");else if(l&&s&&n==="{")a||(a=c),u.push("}");else if(u.length===0)if(n===";")if(s){this.decl(f,l);return}else break;else if(n==="{"){this.rule(f);return}else if(n==="}"){this.tokenizer.back(f.pop()),t=!0;break}else n===":"&&(s=!0);else n===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),u.length>0&&this.unclosedBracket(a),t&&s){if(!l)for(;f.length&&(c=f[f.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(f.pop());this.decl(f,l)}else this.unknownWord(f)},i.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()},i.precheckMissedSemicolon=function(){},i.raw=function(e,t,n,s){for(var a,u,l=n.length,f="",c=!0,h,v,d=0;d<l;d+=1)a=n[d],u=a[0],u==="space"&&d===l-1&&!s?c=!1:u==="comment"?(v=n[d-1]?n[d-1][0]:"empty",h=n[d+1]?n[d+1][0]:"empty",!mf[v]&&!mf[h]?f.slice(-1)===","?c=!1:f+=a[1]:c=!1):f+=a[1];if(!c){var g=n.reduce(function(p,m){return p+m[1]},"");e.raws[t]={raw:g,value:f}}e[t]=f},i.rule=function(e){e.pop();var t=new vf;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},i.spacesAndCommentsFromEnd=function(e){for(var t,n="";e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)n=e.pop()[1]+n;return n},i.spacesAndCommentsFromStart=function(e){for(var t,n="";e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)n+=e.shift()[1];return n},i.spacesFromEnd=function(e){for(var t,n="";e.length&&(t=e[e.length-1][0],t==="space");)n=e.pop()[1]+n;return n},i.stringFrom=function(e,t){for(var n="",s=t;s<e.length;s++)n+=e[s][1];return e.splice(t,e.length-t),n},i.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},i.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},i.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},i.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},i.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},r})(),Zg=Hg,Kg=st,Xg=Zg,Qg=jn;function ri(r,i){var o=new Qg(r,i),e=new Xg(o);try{e.parse()}catch(t){throw process.env.NODE_ENV!=="production"&&t.name==="CssSyntaxError"&&i&&i.from&&(/\.scss$/i.test(i.from)?t.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(i.from)?t.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(i.from)&&(t.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),t}return e.root}var us=ri;ri.default=ri,Kg.registerParse(ri);var ke=Ze.isClean,ey=Ze.my,ty=Vl,ry=Dn,ny=st,iy=ts,oy=nf,gf=is,sy=us,ay=mr,uy={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},ly={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},fy={Once:!0,postcssPlugin:!0,prepare:!0},_t=0;function yr(r){return(typeof r=="undefined"?"undefined":M(r))==="object"&&typeof r.then=="function"}function yf(r){var i=!1,o=uy[r.type];return r.type==="decl"?i=r.prop.toLowerCase():r.type==="atrule"&&(i=r.name.toLowerCase()),i&&r.append?[o,o+"-"+i,_t,o+"Exit",o+"Exit-"+i]:i?[o,o+"-"+i,o+"Exit",o+"Exit-"+i]:r.append?[o,_t,o+"Exit"]:[o,o+"Exit"]}function wf(r){var i;return r.type==="document"?i=["Document",_t,"DocumentExit"]:r.type==="root"?i=["Root",_t,"RootExit"]:i=yf(r),{eventIndex:0,events:i,iterator:0,node:r,visitorIndex:0,visitors:[]}}function ls(r){return r[ke]=!1,r.nodes&&r.nodes.forEach(function(i){return ls(i)}),r}var fs={},Pt=(function(){function r(o,e,t){var n=this;this.stringified=!1,this.processed=!1;var s;if((typeof e=="undefined"?"undefined":M(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=ls(e);else if(E(e,r)||E(e,gf))s=ls(e.root),e.map&&(typeof t.map=="undefined"&&(t.map={}),t.map.inline||(t.map.inline=!1),t.map.prev=e.map);else{var a=sy;t.syntax&&(a=t.syntax.parse),t.parser&&(a=t.parser),a.parse&&(a=a.parse);try{s=a(e,t)}catch(u){this.processed=!0,this.error=u}s&&!s[ey]&&ny.rebuild(s)}this.result=new gf(o,s,t),this.helpers=T({},fs,{postcss:fs,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":M(u))==="object"&&u.prepare?T({},u,u.prepare(n.result)):u})}var i=r.prototype;return i.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},i.catch=function(e){return this.async().catch(e)},i.finally=function(e){return this.async().then(e,e)},i.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},i.handleError=function(e,t){var n=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion&&process.env.NODE_ENV!=="production"){var s=n.postcssPlugin,a=n.postcssVersion,u=this.result.processor.version,l=a.split("."),f=u.split(".");(l[0]!==f[0]||parseInt(l[1])>parseInt(f[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+u+", but "+s+" uses "+a+". Perhaps this is the source of the error below.")}}catch(c){console&&console.error&&console.error(c)}return e},i.prepareVisitors=function(){var e=this;this.listeners={};for(var t=function(f,c,h){e.listeners[c]||(e.listeners[c]=[]),e.listeners[c].push([f,h])},n=I(this.plugins),s;!(s=n()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":M(a))==="object")for(var u in a){if(!ly[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!fy[u])if(M(a[u])==="object")for(var l in a[u])l==="*"?t(a,u,a[u][l]):t(a,u+"-"+l.toLowerCase(),a[u][l]);else typeof a[u]=="function"&&t(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},i.runAsync=function(){var e=this;return kr(function(){var t,n,s,a,u,l,f,c,h,v,d,g;return tt(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(n=e.plugins[t],s=e.runOnRoot(n),!yr(s))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,s];case 3:return p.sent(),[3,5];case 4:throw a=p.sent(),e.handleError(a);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];u=e.result.root,p.label=7;case 7:if(u[ke])return[3,14];u[ke]=!0,l=[wf(u)],p.label=8;case 8:if(!(l.length>0))return[3,13];if(f=e.visitTick(l),!yr(f))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,f];case 10:return p.sent(),[3,12];case 11:throw c=p.sent(),h=l[l.length-1].node,e.handleError(c,h);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];v=function(){var m,w,S,b,C;return tt(this,function(x){switch(x.label){case 0:m=g.value,w=m[0],S=m[1],e.result.lastPlugin=w,x.label=1;case 1:return x.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(b=u.nodes.map(function($){return S($,e.helpers)}),[4,Promise.all(b)]);case 2:return x.sent(),[3,5];case 3:return[4,S(u,e.helpers)];case 4:x.sent(),x.label=5;case 5:return[3,7];case 6:throw C=x.sent(),e.handleError(C);case 7:return[2]}})},d=I(e.listeners.OnceExit),p.label=15;case 15:return(g=d()).done?[3,18]:[5,di(v())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},i.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((typeof e=="undefined"?"undefined":M(e))==="object"&&e.Once){if(this.result.root.type==="document"){var n=this.result.root.nodes.map(function(s){return e.Once(s,t.helpers)});return yr(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}},i.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=ry;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new ty(t,this.result.root,this.result.opts),s=n.generate();return this.result.css=s[0],this.result.map=s[1],this.result},i.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),t;!(t=e()).done;){var n=t.value,s=this.runOnRoot(n);if(yr(s))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),l;!(l=u()).done;){var f=l.value;this.visitSync(this.listeners.OnceExit,f)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},i.then=function(e,t){return process.env.NODE_ENV!=="production"&&("from"in this.opts||oy("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},i.toString=function(){return this.css},i.visitSync=function(e,t){for(var n=I(e),s;!(s=n()).done;){var a=s.value,u=a[0],l=a[1];this.result.lastPlugin=u;var f=void 0;try{f=l(t,this.helpers)}catch(c){throw this.handleError(c,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(yr(f))throw this.getAsyncError()}},i.visitTick=function(e){var t=e[e.length-1],n=t.node,s=t.visitors;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){var a=s[t.visitorIndex],u=a[0],l=a[1];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=u;try{return l(n.toProxy(),this.helpers)}catch(d){throw this.handleError(d,n)}}if(t.iterator!==0){for(var f=t.iterator,c;c=n.nodes[n.indexes[f]];)if(n.indexes[f]+=1,!c[ke]){c[ke]=!0,e.push(wf(c));return}t.iterator=0,delete n.indexes[f]}for(var h=t.events;t.eventIndex<h.length;){var v=h[t.eventIndex];if(t.eventIndex+=1,v===_t){n.nodes&&n.nodes.length&&(n[ke]=!0,t.iterator=n.getIterator());return}else if(this.listeners[v]){t.visitors=this.listeners[v];return}}e.pop()},i.walkSync=function(e){var t=this;e[ke]=!0;for(var n=yf(e),s=I(n),a;!(a=s()).done;){var u=a.value;if(u===_t)e.nodes&&e.each(function(f){f[ke]||t.walkSync(f)});else{var l=this.listeners[u];if(l&&this.visitSync(l,e.toProxy()))return}}},i.warnings=function(){return this.sync().warnings()},Z(r,[{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"}}]),r})();Pt.registerPostcss=function(r){fs=r};var Sf=Pt;Pt.default=Pt,ay.registerLazyResult(Pt),iy.registerLazyResult(Pt);var cy=Vl,hy=Dn,py=nf,dy=us,vy=is,cs=(function(){function r(o,e,t){e=e.toString(),this.stringified=!1,this._processor=o,this._css=e,this._opts=t,this._map=void 0;var n,s=hy;this.result=new vy(this._processor,n,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new cy(s,n,this._opts,e);if(u.isMap()){var l=u.generate(),f=l[0],c=l[1];f&&(this.result.css=f),c&&(this.result.map=c)}else u.clearAnnotation(),this.result.css=u.css}var i=r.prototype;return i.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},i.catch=function(e){return this.async().catch(e)},i.finally=function(e){return this.async().then(e,e)},i.sync=function(){if(this.error)throw this.error;return this.result},i.then=function(e,t){return process.env.NODE_ENV!=="production"&&("from"in this._opts||py("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},i.toString=function(){return this._css},i.warnings=function(){return[]},Z(r,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=dy;try{e=t(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),r})(),my=cs;cs.default=cs;var gy=my,yy=Sf,wy=ts,Sy=mr,wr=(function(){function r(o){o===void 0&&(o=[]),this.version="8.4.38",this.plugins=this.normalize(o)}var i=r.prototype;return i.normalize=function(e){for(var t=[],n=I(e),s;!(s=n()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":M(a))==="object"&&Array.isArray(a.plugins))t=t.concat(a.plugins);else if((typeof a=="undefined"?"undefined":M(a))==="object"&&a.postcssPlugin)t.push(a);else if(typeof a=="function")t.push(a);else if((typeof a=="undefined"?"undefined":M(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 t},i.process=function(e,t){return t===void 0&&(t={}),!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new gy(this,e,t):new yy(this,e,t)},i.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},r})(),by=wr;wr.default=wr,Sy.registerProcessor(wr),wy.registerProcessor(wr);var Cy=Un,Iy=Ll,Oy=Yn,xy=ss,Ry=jn,Ey=mr,Ay=as;function Sr(r,i){if(Array.isArray(r))return r.map(function(c){return Sr(c)});var o=r.inputs,e=et(r,["inputs"]);if(o){i=[];for(var t=I(o),n;!(n=t()).done;){var s=n.value,a=T({},s,{__proto__:Ry.prototype});a.map&&(a.map=T({},a.map,{__proto__:Iy.prototype})),i.push(a)}}if(e.nodes&&(e.nodes=r.nodes.map(function(c){return Sr(c,i)})),e.source){var u=e.source,l=u.inputId,f=et(u,["inputId"]);e.source=f,l!=null&&(e.source.input=i[l])}if(e.type==="root")return new Ey(e);if(e.type==="decl")return new Cy(e);if(e.type==="rule")return new Ay(e);if(e.type==="comment")return new Oy(e);if(e.type==="atrule")return new xy(e);throw new Error("Unknown node type: "+r.type)}var My=Sr;Sr.default=Sr;var $y=Uo,bf=Un,ky=Sf,_y=st,hs=by,Py=Dn,Ty=My,Cf=ts,Ny=of,If=Yn,Of=ss,Ly=is,Dy=jn,Fy=us,By=pf,xf=as,Rf=mr,Uy=Bn;function q(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new hs(i)}q.plugin=function(i,o){var e=!1;function t(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];console&&console.warn&&!e&&(e=!0,console.warn(i+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(i+": \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:\nhttps://www.w3ctech.com/topic/2226"));var l=o.apply(void 0,[].concat(a));return l.postcssPlugin=i,l.postcssVersion=new hs().version,l}var n;return Object.defineProperty(t,"postcss",{get:function(){return n||(n=t()),n}}),t.process=function(s,a,u){return q([t(u)]).process(s,a)},t},q.stringify=Py,q.parse=Fy,q.fromJSON=Ty,q.list=By,q.comment=function(r){return new If(r)},q.atRule=function(r){return new Of(r)},q.decl=function(r){return new bf(r)},q.rule=function(r){return new xf(r)},q.root=function(r){return new Rf(r)},q.document=function(r){return new Cf(r)},q.CssSyntaxError=$y,q.Declaration=bf,q.Container=_y,q.Processor=hs,q.Document=Cf,q.Comment=If,q.Warning=Ny,q.AtRule=Of,q.Result=Ly,q.Input=Dy,q.Rule=xf,q.Root=Rf,q.Node=Uy,ky.registerPostcss(q);var zy=q;q.default=q;var ne=Xm(zy);ne.stringify,ne.fromJSON,ne.plugin,ne.parse,ne.list,ne.document,ne.comment,ne.atRule,ne.rule,ne.decl,ne.root,ne.CssSyntaxError,ne.Declaration,ne.Container,ne.Processor,ne.Document,ne.Comment,ne.Warning,ne.AtRule,ne.Result,ne.Input,ne.Rule,ne.Root,ne.Node;var Wy=Object.defineProperty,jy=function(r,i,o){return i in r?Wy(r,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[i]=o},ni=function(r,i,o){return jy(r,(typeof i=="undefined"?"undefined":M(i))!=="symbol"?i+"":i,o)};function Gy(r,i,o){try{if(!(i in r))return function(){};var e=r[i],t=o(e);return typeof t=="function"&&(t.prototype=t.prototype||{},Object.defineProperties(t,{__rrweb_original__:{enumerable:!1,value:e}})),r[i]=t,function(){r[i]=e}}catch(n){return function(){}}}var Tt=(function(){function r(o){ni(this,"fileName"),ni(this,"functionName"),ni(this,"lineNumber"),ni(this,"columnNumber"),this.fileName=o.fileName||"",this.functionName=o.functionName||"",this.lineNumber=o.lineNumber,this.columnNumber=o.columnNumber}var i=r.prototype;return i.toString=function(){var e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+t+")":this.fileName+":"+e+":"+t},r})(),Vy=/(^|@)\S+:\d+/,Ef=/^\s*at .*(\S+:\d+|\(native\))/m,Yy=/^(eval@)?(\[native code])?$/,ps={parse:function(i){return i?typeof i.stacktrace!="undefined"||typeof i["opera#sourceloc"]!="undefined"?this.parseOpera(i):i.stack&&i.stack.match(Ef)?this.parseV8OrIE(i):i.stack?this.parseFFOrSafari(i):(console.warn("[console-record-plugin]: Failed to parse error object:",i),[]):[]},extractLocation:function(i){if(i.indexOf(":")===-1)return[i];var o=/(.+?)(?::(\d+))?(?::(\d+))?$/,e=o.exec(i.replace(/[()]/g,""));if(!e)throw new Error("Cannot parse given url: "+i);return[e[1],e[2]||void 0,e[3]||void 0]},parseV8OrIE:function(i){var o=i.stack.split("\n").filter(function(e){return!!e.match(Ef)},this);return o.map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),n=t.match(/ (\((.+):(\d+):(\d+)\)$)/);t=n?t.replace(n[0],""):t;var s=t.split(/\s+/).slice(1),a=this.extractLocation(n?n[1]:s.pop()),u=s.join(" ")||void 0,l=["eval","<anonymous>"].indexOf(a[0])>-1?void 0:a[0];return new Tt({functionName:u,fileName:l,lineNumber:a[1],columnNumber:a[2]})},this)},parseFFOrSafari:function(i){var o=i.stack.split("\n").filter(function(e){return!e.match(Yy)},this);return o.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 Tt({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=e.match(t),s=n&&n[1]?n[1]:void 0,a=this.extractLocation(e.replace(t,""));return new Tt({functionName:s,fileName:a[0],lineNumber:a[1],columnNumber:a[2]})},this)},parseOpera:function(i){return!i.stacktrace||i.message.indexOf("\n")>-1&&i.message.split("\n").length>i.stacktrace.split("\n").length?this.parseOpera9(i):i.stack?this.parseOpera11(i):this.parseOpera10(i)},parseOpera9:function(i){for(var o=/Line (\d+).*script (?:in )?(\S+)/i,e=i.message.split("\n"),t=[],n=2,s=e.length;n<s;n+=2){var a=o.exec(e[n]);a&&t.push(new Tt({fileName:a[2],lineNumber:parseFloat(a[1])}))}return t},parseOpera10:function(i){for(var o=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,e=i.stacktrace.split("\n"),t=[],n=0,s=e.length;n<s;n+=2){var a=o.exec(e[n]);a&&t.push(new Tt({functionName:a[3]||void 0,fileName:a[2],lineNumber:parseFloat(a[1])}))}return t},parseOpera11:function(i){var o=i.stack.split("\n").filter(function(e){return!!e.match(Vy)&&!e.match(/^Error created at/)},this);return o.map(function(e){var t=e.split("@"),n=this.extractLocation(t.pop()),s=t.shift()||"",a=s.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new Tt({functionName:a,fileName:n[0],lineNumber:n[1],columnNumber:n[2]})},this)}};function qy(r){if(!r||!r.outerHTML)return"";for(var i="";r.parentElement;){var o=r.localName;if(!o)break;o=o.toLowerCase();var e=r.parentElement,t=[];if(e.children&&e.children.length>0)for(var n=0;n<e.children.length;n++){var s=e.children[n];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===o&&t.push(s)}t.length>1&&(o+=":eq("+t.indexOf(r)+")"),i=o+(i?">"+i:""),r=e}return i}function ds(r){return Object.prototype.toString.call(r)==="[object Object]"}function Af(r,i){if(i===0)return!0;for(var o=Object.keys(r),e=I(o),t;!(t=e()).done;){var n=t.value;if(ds(r[n])&&Af(r[n],i-1))return!0}return!1}function Nt(r,i){var o={numOfKeysLimit:50,depthOfLimit:4};Object.assign(o,i);var e=[],t=[];return JSON.stringify(r,function(a,u){if(e.length>0){var l=e.indexOf(this);~l?e.splice(l+1):e.push(this),~l?t.splice(l,1/0,a):t.push(a),~e.indexOf(u)&&(e[0]===u?u="[Circular ~]":u="[Circular ~."+t.slice(0,e.indexOf(u)).join(".")+"]")}else e.push(u);if(u===null)return u;if(u===void 0)return"undefined";if(n(u))return s(u);if((typeof u=="undefined"?"undefined":M(u))==="bigint")return u.toString()+"n";if(E(u,Event)){var f={};for(var c in u){var h=u[c];Array.isArray(h)?f[c]=qy(h.length?h[0]:null):f[c]=h}return f}else{if(E(u,Node))return E(u,HTMLElement)?u?u.outerHTML:"":u.nodeName;if(E(u,Error))return u.stack?u.stack+"\nEnd of stack for Error object":u.name+": "+u.message}return u});function n(a){return!!(ds(a)&&Object.keys(a).length>o.numOfKeysLimit||typeof a=="function"||ds(a)&&Af(a,o.depthOfLimit))}function s(a){var u=a.toString();return o.stringLengthLimit&&u.length>o.stringLengthLimit&&(u=""+u.slice(0,o.stringLengthLimit)+"..."),u}}var Mf={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 Jy(r,i,o){var e=o?Object.assign({},Mf,o):Mf,t=e.logger;if(!t)return function(){};var n;typeof t=="string"?n=i[t]:n=t;var s=0,a=!1,u=[];if(e.level.includes("error")){var l=function(g){var p=g.message,m=g.error,w=ps.parse(m).map(function(b){return b.toString()}),S=[Nt(p,e.stringifyOptions)];r({level:"error",trace:w,payload:S})};i.addEventListener("error",l),u.push(function(){i.removeEventListener("error",l)});var f=function(g){var p,m;E(g.reason,Error)?(p=g.reason,m=[Nt("Uncaught (in promise) "+p.name+": "+p.message,e.stringifyOptions)]):(p=new Error,m=[Nt("Uncaught (in promise)",e.stringifyOptions),Nt(g.reason,e.stringifyOptions)]);var w=ps.parse(p).map(function(S){return S.toString()});r({level:"error",trace:w,payload:m})};i.addEventListener("unhandledrejection",f),u.push(function(){i.removeEventListener("unhandledrejection",f)})}for(var c=I(e.level),h;!(h=c()).done;){var v=h.value;u.push(d(n,v))}return function(){u.forEach(function(g){return g()})};function d(g,p){var m=this;return g[p]?Gy(g,p,function(w){var S=m;return function(){for(var b=arguments.length,C=new Array(b),x=0;x<b;x++)C[x]=arguments[x];if(w.apply(S,C),!(p==="assert"&&C[0])&&!a){a=!0;try{var $=ps.parse(new Error).map(function(N){return N.toString()}).splice(1),R=p==="assert"?C.slice(1):C,k=R.map(function(N){return Nt(N,e.stringifyOptions)});s++,s<e.lengthThreshold?r({level:p,trace:$,payload:k}):s===e.lengthThreshold&&r({level:"warn",trace:[],payload:[Nt("The number of log records reached the threshold.")]})}catch(N){w.apply(void 0,[].concat(["rrweb logger error:",N],C))}finally{a=!1}}}}):function(){}}}var Hy="rrweb/console@1",Zy=function(r){return{name:Hy,observer:Jy,options:r}},$f=W.setImmediate,Ke,vs,ms,kf=Object.prototype.toString,Ky=typeof $f!="undefined"?function(i){return $f(i)}:setTimeout;try{Object.defineProperty({},"x",{}),Ke=function(i,o,e,t){return Object.defineProperty(i,o,{value:e,writable:!0,configurable:t!==!1})}}catch(r){Ke=function(o,e,t){return o[e]=t,o}}ms=(function(){var i,o,e;function t(n,s){this.fn=n,this.self=s,this.next=void 0}return{add:function(s,a){e=new t(s,a),o?o.next=e:i=e,o=e,e=void 0},drain:function(){var s=i;for(i=o=vs=void 0;s;)s.fn.call(s.self),s=s.next}}})();function ii(r,i){ms.add(r,i),vs||(vs=Ky(ms.drain))}function _f(r){var i,o=typeof r;return r!==null&&(o==="object"||o==="function")&&(i=r.then),typeof i=="function"?i:!1}function gs(){for(var r=0;r<this.chain.length;r++)Xy(this,this.state===1?this.chain[r].success:this.chain[r].failure,this.chain[r]);this.chain.length=0}function Xy(r,i,o){var e,t;try{i===!1?o.reject(r.msg):(i===!0?e=r.msg:e=i.call(void 0,r.msg),e===o.promise?o.reject(TypeError("Promise-chain cycle")):(t=_f(e))?t.call(e,o.resolve,o.reject):o.resolve(e))}catch(n){o.reject(n)}}function Pf(r){var i,o=this;if(!o.triggered){o.triggered=!0,o.def&&(o=o.def);try{(i=_f(r))?ii(function(){var e=new Nf(o);try{i.call(r,function(){Pf.apply(e,arguments)},function(){br.apply(e,arguments)})}catch(t){br.call(e,t)}}):(o.msg=r,o.state=1,o.chain.length>0&&ii(gs,o))}catch(e){br.call(new Nf(o),e)}}}function br(r){var i=this;i.triggered||(i.triggered=!0,i.def&&(i=i.def),i.msg=r,i.state=2,i.chain.length>0&&ii(gs,i))}function Tf(r,i,o,e){for(var t=0;t<i.length;t++)(function(s){r.resolve(i[s]).then(function(u){o(s,u)},e)})(t)}function Nf(r){this.def=r,this.triggered=!1}function Qy(r){this.promise=r,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function Xe(r){if(typeof r!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var i=new Qy(this);this.then=function(e,t){var n={success:typeof e=="function"?e:!0,failure:typeof t=="function"?t:!1};return n.promise=new this.constructor(function(a,u){if(typeof a!="function"||typeof u!="function")throw TypeError("Not a function");n.resolve=a,n.reject=u}),i.chain.push(n),i.state!==0&&ii(gs,i),n.promise},this.catch=function(e){return this.then(void 0,e)};try{r.call(void 0,function(e){Pf.call(i,e)},function(e){br.call(i,e)})}catch(o){br.call(i,o)}}var Lf=Ke({},"constructor",Xe,!1);Xe.prototype=Lf,Ke(Lf,"__NPO__",0,!1),Ke(Xe,"resolve",function(i){var o=this;return i&&typeof i=="object"&&i.__NPO__===1?i:new o(function(t,n){if(typeof t!="function"||typeof n!="function")throw TypeError("Not a function");t(i)})}),Ke(Xe,"reject",function(i){return new this(function(e,t){if(typeof e!="function"||typeof t!="function")throw TypeError("Not a function");t(i)})}),Ke(Xe,"all",function(i){var o=this;return kf.call(i)!=="[object Array]"?o.reject(TypeError("Not an array")):i.length===0?o.resolve([]):new o(function(t,n){if(typeof t!="function"||typeof n!="function")throw TypeError("Not a function");var s=i.length,a=Array(s),u=0;Tf(o,i,function(f,c){a[f]=c,++u===s&&t(a)},n)})}),Ke(Xe,"race",function(i){var o=this;return kf.call(i)!=="[object Array]"?o.reject(TypeError("Not an array")):new o(function(t,n){if(typeof t!="function"||typeof n!="function")throw TypeError("Not a function");Tf(o,i,function(a,u){t(u)},n)})});var B;typeof Promise!="undefined"&&Promise.toString().indexOf("[native code]")!==-1?B=Promise:B=Xe;var ys={LIB_VERSION:"2.75.0"},oi=1440*60*1e3,ws=8*1e3,si=Array.prototype,ew=Function.prototype,Df=Object.prototype,at=si.slice,Cr=Df.toString,ai=Df.hasOwnProperty,Ir=W.console,Lt=W.navigator,be=W.document,Or=W.opera,Ff=W.screen,ut=Lt.userAgent,Ss=ew.bind,Bf=si.forEach,Uf=si.indexOf,zf=si.map,tw=Array.isArray,bs={},y={trim:function(r){return r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},Re={log:function(){},warn:function(){},error:function(){},critical:function(){if(!y.isUndefined(Ir)&&Ir){var r=["Mixpanel error:"].concat(y.toArray(arguments));try{Ir.error.apply(Ir,r)}catch(i){y.each(r,function(o){Ir.error(o)})}}}},Cs=function(r,i){return function(){return arguments[0]="["+i+"] "+arguments[0],r.apply(Re,arguments)}},Dt=function(r){return{log:Cs(Re.log,r),error:Cs(Re.error,r),critical:Cs(Re.critical,r)}};y.bind=function(r,i){var o,e;if(Ss&&r.bind===Ss)return Ss.apply(r,at.call(arguments,1));if(!y.isFunction(r))throw new TypeError;return o=at.call(arguments,2),e=function(){if(!(this instanceof e))return r.apply(i,o.concat(at.call(arguments)));var t={};t.prototype=r.prototype;var n=new t;t.prototype=null;var s=r.apply(n,o.concat(at.call(arguments)));return Object(s)===s?s:n},e},y.each=function(r,i,o){if(r!=null){if(Bf&&r.forEach===Bf)r.forEach(i,o);else if(r.length===+r.length){for(var e=0,t=r.length;e<t;e++)if(e in r&&i.call(o,r[e],e,r)===bs)return}else for(var n in r)if(ai.call(r,n)&&i.call(o,r[n],n,r)===bs)return}},y.extend=function(r){return y.each(at.call(arguments,1),function(i){for(var o in i)i[o]!==void 0&&(r[o]=i[o])}),r},y.isArray=tw||function(r){return Cr.call(r)==="[object Array]"},y.isFunction=function(r){return typeof r=="function"},y.isArguments=function(r){return!!(r&&ai.call(r,"callee"))},y.toArray=function(r){return r?r.toArray?r.toArray():y.isArray(r)||y.isArguments(r)?at.call(r):y.values(r):[]},y.map=function(r,i,o){if(zf&&r.map===zf)return r.map(i,o);var e=[];return y.each(r,function(t){e.push(i.call(o,t))}),e},y.keys=function(r){var i=[];return r===null||y.each(r,function(o,e){i[i.length]=e}),i},y.values=function(r){var i=[];return r===null||y.each(r,function(o){i[i.length]=o}),i},y.include=function(r,i){var o=!1;return r===null?o:Uf&&r.indexOf===Uf?r.indexOf(i)!=-1:(y.each(r,function(e){if(o||(o=e===i))return bs}),o)},y.includes=function(r,i){return r.indexOf(i)!==-1},y.inherit=function(r,i){return r.prototype=new i,r.prototype.constructor=r,r.superclass=i.prototype,r},y.isObject=function(r){return r===Object(r)&&!y.isArray(r)},y.isEmptyObject=function(r){if(y.isObject(r)){for(var i in r)if(ai.call(r,i))return!1;return!0}return!1},y.isUndefined=function(r){return r===void 0},y.isString=function(r){return Cr.call(r)=="[object String]"},y.isDate=function(r){return Cr.call(r)=="[object Date]"},y.isNumber=function(r){return Cr.call(r)=="[object Number]"},y.isElement=function(r){return!!(r&&r.nodeType===1)},y.encodeDates=function(r){return y.each(r,function(i,o){y.isDate(i)?r[o]=y.formatDate(i):y.isObject(i)&&(r[o]=y.encodeDates(i))}),r},y.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},y.formatDate=function(r){function i(o){return o<10?"0"+o:o}return r.getUTCFullYear()+"-"+i(r.getUTCMonth()+1)+"-"+i(r.getUTCDate())+"T"+i(r.getUTCHours())+":"+i(r.getUTCMinutes())+":"+i(r.getUTCSeconds())},y.strip_empty_properties=function(r){var i={};return y.each(r,function(o,e){y.isString(o)&&o.length>0&&(i[e]=o)}),i},y.truncate=function(r,i){var o;return typeof r=="string"?o=r.slice(0,i):y.isArray(r)?(o=[],y.each(r,function(e){o.push(y.truncate(e,i))})):y.isObject(r)?(o={},y.each(r,function(e,t){o[t]=y.truncate(e,i)})):o=r,o},y.JSONEncode=(function(){return function(r){var i=r,o=function(t){var n=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,s={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return n.lastIndex=0,n.test(t)?'"'+t.replace(n,function(a){var u=s[a];return typeof u=="string"?u:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+t+'"'},e=function(t,n){var s="",a=" ",u=0,l="",f="",c=0,h=s,v=[],d=n[t];switch(d&&typeof d=="object"&&typeof d.toJSON=="function"&&(d=d.toJSON(t)),typeof d){case"string":return o(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(s+=a,v=[],Cr.apply(d)==="[object Array]"){for(c=d.length,u=0;u<c;u+=1)v[u]=e(u,d)||"null";return f=v.length===0?"[]":s?"[\n"+s+v.join(",\n"+s)+"\n"+h+"]":"["+v.join(",")+"]",s=h,f}for(l in d)ai.call(d,l)&&(f=e(l,d),f&&v.push(o(l)+(s?": ":":")+f));return f=v.length===0?"{}":s?"{"+v.join(",")+h+"}":"{"+v.join(",")+"}",s=h,f}};return e("",{"":i})}})(),y.JSONDecode=(function(){var r,i,o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},e,t=function(v){var d=new SyntaxError(v);throw d.at=r,d.text=e,d},n=function(v){return v&&v!==i&&t("Expected '"+v+"' instead of '"+i+"'"),i=e.charAt(r),r+=1,i},s=function(){var v,d="";for(i==="-"&&(d="-",n("-"));i>="0"&&i<="9";)d+=i,n();if(i===".")for(d+=".";n()&&i>="0"&&i<="9";)d+=i;if(i==="e"||i==="E")for(d+=i,n(),(i==="-"||i==="+")&&(d+=i,n());i>="0"&&i<="9";)d+=i,n();if(v=+d,!isFinite(v))t("Bad number");else return v},a=function(){var v,d,g="",p;if(i==='"')for(;n();){if(i==='"')return n(),g;if(i==="\\")if(n(),i==="u"){for(p=0,d=0;d<4&&(v=parseInt(n(),16),!!isFinite(v));d+=1)p=p*16+v;g+=String.fromCharCode(p)}else if(typeof o[i]=="string")g+=o[i];else break;else g+=i}t("Bad string")},u=function(){for(;i&&i<=" ";)n()},l=function(){switch(i){case"t":return n("t"),n("r"),n("u"),n("e"),!0;case"f":return n("f"),n("a"),n("l"),n("s"),n("e"),!1;case"n":return n("n"),n("u"),n("l"),n("l"),null}t('Unexpected "'+i+'"')},f,c=function(){var v=[];if(i==="["){if(n("["),u(),i==="]")return n("]"),v;for(;i;){if(v.push(f()),u(),i==="]")return n("]"),v;n(","),u()}}t("Bad array")},h=function(){var v,d={};if(i==="{"){if(n("{"),u(),i==="}")return n("}"),d;for(;i;){if(v=a(),u(),n(":"),Object.hasOwnProperty.call(d,v)&&t('Duplicate key "'+v+'"'),d[v]=f(),u(),i==="}")return n("}"),d;n(","),u()}}t("Bad object")};return f=function(){switch(u(),i){case"{":return h();case"[":return c();case'"':return a();case"-":return s();default:return i>="0"&&i<="9"?s():l()}},function(v){var d;return e=v,r=0,i=" ",d=f(),u(),i&&t("Syntax error"),d}})(),y.base64Encode=function(r){var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o,e,t,n,s,a,u,l,f=0,c=0,h="",v=[];if(!r)return r;r=y.utf8Encode(r);do o=r.charCodeAt(f++),e=r.charCodeAt(f++),t=r.charCodeAt(f++),l=o<<16|e<<8|t,n=l>>18&63,s=l>>12&63,a=l>>6&63,u=l&63,v[c++]=i.charAt(n)+i.charAt(s)+i.charAt(a)+i.charAt(u);while(f<r.length);switch(h=v.join(""),r.length%3){case 1:h=h.slice(0,-2)+"==";break;case 2:h=h.slice(0,-1)+"=";break}return h},y.utf8Encode=function(r){r=(r+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var i="",o,e,t=0,n;for(o=e=0,t=r.length,n=0;n<t;n++){var s=r.charCodeAt(n),a=null;s<128?e++:s>127&&s<2048?a=String.fromCharCode(s>>6|192,s&63|128):a=String.fromCharCode(s>>12|224,s>>6&63|128,s&63|128),a!==null&&(e>o&&(i+=r.substring(o,e)),i+=a,o=e=n+1)}return e>o&&(i+=r.substring(o,r.length)),i},y.UUID=function(){try{return W.crypto.randomUUID()}catch(o){for(var r=new Array(36),i=0;i<36;i++)r[i]=Math.floor(Math.random()*16);return r[14]=4,r[19]=r[19]&=-5,r[19]=r[19]|=8,r[8]=r[13]=r[18]=r[23]="-",y.map(r,function(e){return e.toString(16)}).join("")}};var Wf=["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"];y.isBlockedUA=function(r){var i;for(r=r.toLowerCase(),i=0;i<Wf.length;i++)if(r.indexOf(Wf[i])!==-1)return!0;return!1},y.HTTPBuildQuery=function(r,i){var o,e,t=[];return y.isUndefined(i)&&(i="&"),y.each(r,function(n,s){o=encodeURIComponent(n.toString()),e=encodeURIComponent(s),t[t.length]=e+"="+o}),t.join(i)},y.getQueryParam=function(r,i){i=i.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var o="[\\?&]"+i+"=([^&#]*)",e=new RegExp(o),t=e.exec(r);if(t===null||t&&typeof t[1]!="string"&&t[1].length)return"";var n=t[1];try{n=decodeURIComponent(n)}catch(s){Re.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},y.cookie={get:function(r){for(var i=r+"=",o=be.cookie.split(";"),e=0;e<o.length;e++){for(var t=o[e];t.charAt(0)==" ";)t=t.substring(1,t.length);if(t.indexOf(i)===0)return decodeURIComponent(t.substring(i.length,t.length))}return null},parse:function(r){var i;try{i=y.JSONDecode(y.cookie.get(r))||{}}catch(o){}return i},set_seconds:function(r,i,o,e,t,n,s){var a="",u="",l="";if(s)a="; domain="+s;else if(e){var f=qf(be.location.hostname);a=f?"; domain=."+f:""}if(o){var c=new Date;c.setTime(c.getTime()+o*1e3),u="; expires="+c.toGMTString()}n&&(t=!0,l="; SameSite=None"),t&&(l+="; secure"),be.cookie=r+"="+encodeURIComponent(i)+u+"; path=/"+a+l},set:function(r,i,o,e,t,n,s){var a="",u="",l="";if(s)a="; domain="+s;else if(e){var f=qf(be.location.hostname);a=f?"; domain=."+f:""}if(o){var c=new Date;c.setTime(c.getTime()+o*24*60*60*1e3),u="; expires="+c.toGMTString()}n&&(t=!0,l="; SameSite=None"),t&&(l+="; secure");var h=r+"="+encodeURIComponent(i)+u+"; path=/"+a+l;return be.cookie=h,h},remove:function(r,i,o){y.cookie.set(r,"",-1,i,!1,!1,o)}};var jf=function(r){var i=!0;try{var o="__mplss_"+xs(8),e="xyz";r.setItem(o,e),r.getItem(o)!==e&&(i=!1),r.removeItem(o)}catch(t){i=!1}return i},Is=null,xr=function(r,i){return Is!==null&&!i?Is:Is=jf(r||W.localStorage)},Os=null,rw=function(r,i){return Os!==null&&!i?Os:Os=jf(r||W.sessionStorage)};function Gf(r,i,o){var e=function(t){Re.error(i+" error: "+t)};return{is_supported:function(t){var n=o(r,t);return n||Re.error(i+" unsupported"),n},error:e,get:function(t){try{return r.getItem(t)}catch(n){e(n)}return null},parse:function(t){try{return y.JSONDecode(r.getItem(t))||{}}catch(n){}return null},set:function(t,n){try{r.setItem(t,n)}catch(s){e(s)}},remove:function(t){try{r.removeItem(t)}catch(n){e(n)}}}}var Vf=null,Yf=null;try{Vf=W.localStorage,Yf=W.sessionStorage}catch(r){}y.localStorage=Gf(Vf,"localStorage",xr),y.sessionStorage=Gf(Yf,"sessionStorage",rw),y.register_event=(function(){var r=function(e,t,n,s,a){if(!e){Re.error("No valid element provided to register_event");return}if(e.addEventListener&&!s)e.addEventListener(t,n,!!a);else{var u="on"+t,l=e[u];e[u]=i(e,n,l)}};function i(e,t,n){var s=function(a){if(a=a||o(W.event),!!a){var u=!0,l,f;return y.isFunction(n)&&(l=n(a)),f=t.call(e,a),(l===!1||f===!1)&&(u=!1),u}};return s}function o(e){return e&&(e.preventDefault=o.preventDefault,e.stopPropagation=o.stopPropagation),e}return o.preventDefault=function(){this.returnValue=!1},o.stopPropagation=function(){this.cancelBubble=!0},r})();var nw=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');y.dom_query=(function(){function r(t){return t.all?t.all:t.getElementsByTagName("*")}var i=/[\t\r\n]/g;function o(t,n){var s=" "+n+" ";return(" "+t.className+" ").replace(i," ").indexOf(s)>=0}function e(t){if(!be.getElementsByTagName)return[];var n=t.split(" "),s,a,u,l,f,c,h,v,d,g,p=[be];for(c=0;c<n.length;c++){if(s=n[c].replace(/^\s+/,"").replace(/\s+$/,""),s.indexOf("#")>-1){a=s.split("#"),u=a[0];var m=a[1],w=be.getElementById(m);if(!w||u&&w.nodeName.toLowerCase()!=u)return[];p=[w];continue}if(s.indexOf(".")>-1){a=s.split("."),u=a[0];var S=a[1];for(u||(u="*"),l=[],f=0,h=0;h<p.length;h++)for(u=="*"?d=r(p[h]):d=p[h].getElementsByTagName(u),v=0;v<d.length;v++)l[f++]=d[v];for(p=[],g=0,h=0;h<l.length;h++)l[h].className&&y.isString(l[h].className)&&o(l[h],S)&&(p[g++]=l[h]);continue}var b=s.match(nw);if(b){u=b[1];var C=b[2],x=b[3],$=b[4];for(u||(u="*"),l=[],f=0,h=0;h<p.length;h++)for(u=="*"?d=r(p[h]):d=p[h].getElementsByTagName(u),v=0;v<d.length;v++)l[f++]=d[v];p=[],g=0;var R;switch(x){case"=":R=function(k){return k.getAttribute(C)==$};break;case"~":R=function(k){return k.getAttribute(C).match(new RegExp("\\b"+$+"\\b"))};break;case"|":R=function(k){return k.getAttribute(C).match(new RegExp("^"+$+"-?"))};break;case"^":R=function(k){return k.getAttribute(C).indexOf($)===0};break;case"$":R=function(k){return k.getAttribute(C).lastIndexOf($)==k.getAttribute(C).length-$.length};break;case"*":R=function(k){return k.getAttribute(C).indexOf($)>-1};break;default:R=function(k){return k.getAttribute(C)}}for(p=[],g=0,h=0;h<l.length;h++)R(l[h])&&(p[g++]=l[h]);continue}for(u=s,l=[],f=0,h=0;h<p.length;h++)for(d=p[h].getElementsByTagName(u),v=0;v<d.length;v++)l[f++]=d[v];p=l}return p}return function(t){return y.isElement(t)?[t]:y.isObject(t)&&!y.isUndefined(t.length)?t:e.call(this,t)}})();var iw=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],ow=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];y.info={campaignParams:function(r){var i="",o={};return y.each(iw,function(e){i=y.getQueryParam(be.URL,e),i.length?o[e]=i:r!==void 0&&(o[e]=r)}),o},clickParams:function(){var r="",i={};return y.each(ow,function(o){r=y.getQueryParam(be.URL,o),r.length&&(i[o]=r)}),i},marketingParams:function(){return y.extend(y.info.campaignParams(),y.info.clickParams())},searchEngine:function(r){return r.search("https?://(.*)google.([^/?]*)")===0?"google":r.search("https?://(.*)bing.com")===0?"bing":r.search("https?://(.*)yahoo.com")===0?"yahoo":r.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null},searchInfo:function(r){var i=y.info.searchEngine(r),o=i!="yahoo"?"q":"p",e={};if(i!==null){e.$search_engine=i;var t=y.getQueryParam(r,o);t.length&&(e.mp_keyword=t)}return e},browser:function(r,i,o){return i=i||"",o||y.includes(r," OPR/")?y.includes(r,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(r)?"BlackBerry":y.includes(r,"IEMobile")||y.includes(r,"WPDesktop")?"Internet Explorer Mobile":y.includes(r,"SamsungBrowser/")?"Samsung Internet":y.includes(r,"Edge")||y.includes(r,"Edg/")?"Microsoft Edge":y.includes(r,"FBIOS")?"Facebook Mobile":y.includes(r,"Whale/")?"Whale Browser":y.includes(r,"Chrome")?"Chrome":y.includes(r,"CriOS")?"Chrome iOS":y.includes(r,"UCWEB")||y.includes(r,"UCBrowser")?"UC Browser":y.includes(r,"FxiOS")?"Firefox iOS":y.includes(i,"Apple")?y.includes(r,"Mobile")?"Mobile Safari":"Safari":y.includes(r,"Android")?"Android Mobile":y.includes(r,"Konqueror")?"Konqueror":y.includes(r,"Firefox")?"Firefox":y.includes(r,"MSIE")||y.includes(r,"Trident/")?"Internet Explorer":y.includes(r,"Gecko")?"Mozilla":""},browserVersion:function(r,i,o){var e=y.info.browser(r,i,o),t={"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+)?)/},n=t[e];if(n===void 0)return null;var s=r.match(n);return s?parseFloat(s[s.length-2]):null},os:function(){var r=ut;return/Windows/i.test(r)?/Phone/.test(r)||/WPDesktop/.test(r)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(r)?"iOS":/Android/.test(r)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(r)?"BlackBerry":/Mac/i.test(r)?"Mac OS X":/Linux/.test(r)?"Linux":/CrOS/.test(r)?"Chrome OS":""},device:function(r){return/Windows Phone/i.test(r)||/WPDesktop/.test(r)?"Windows Phone":/iPad/.test(r)?"iPad":/iPod/.test(r)?"iPod Touch":/iPhone/.test(r)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(r)?"BlackBerry":/Android/.test(r)?"Android":""},referringDomain:function(r){var i=r.split("/");return i.length>=3?i[2]:""},currentUrl:function(){return W.location.href},properties:function(r){return typeof r!="object"&&(r={}),y.extend(y.strip_empty_properties({$os:y.info.os(),$browser:y.info.browser(ut,Lt.vendor,Or),$referrer:be.referrer,$referring_domain:y.info.referringDomain(be.referrer),$device:y.info.device(ut)}),{$current_url:y.info.currentUrl(),$browser_version:y.info.browserVersion(ut,Lt.vendor,Or),$screen_height:Ff.height,$screen_width:Ff.width,mp_lib:"web",$lib_version:ys.LIB_VERSION,$insert_id:xs(),time:y.timestamp()/1e3},y.strip_empty_properties(r))},people_properties:function(){return y.extend(y.strip_empty_properties({$os:y.info.os(),$browser:y.info.browser(ut,Lt.vendor,Or)}),{$browser_version:y.info.browserVersion(ut,Lt.vendor,Or)})},mpPageViewProperties:function(){return y.strip_empty_properties({current_page_title:be.title,current_domain:W.location.hostname,current_url_path:W.location.pathname,current_url_protocol:W.location.protocol,current_url_search:W.location.search})}};var sw=function(r,i){var o=null,e=[];return function(t){var n=this;return e.push(t),o||(o=new B(function(s){setTimeout(function(){var a=r.apply(n,[e]);o=null,e=[],s(a)},i)})),o}},xs=function(r){var i=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return r?i.substring(0,r):i},aw=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,uw=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,qf=function(r){var i=uw,o=r.split("."),e=o[o.length-1];(e.length>4||e==="com"||e==="org")&&(i=aw);var t=r.match(i);return t?t[0]:""},lw=function(){var r=W.navigator.onLine;return y.isUndefined(r)||r},Rs=function(){},ui=null,li=null;typeof JSON!="undefined"&&(ui=JSON.stringify,li=JSON.parse),ui=ui||y.JSONEncode,li=li||y.JSONDecode;var fw=function(r,i,o){if(!W.CompressionStream)return!1;var e=y.info.browser(r,i,o),t=y.info.browserVersion(r,i,o);return!((e==="Safari"||e==="Mobile Safari")&&t>=16.4&&t<16.6)};y.info=y.info,y.info.browser=y.info.browser,y.info.browserVersion=y.info.browserVersion,y.info.device=y.info.device,y.info.properties=y.info.properties,y.isBlockedUA=y.isBlockedUA,y.isEmptyObject=y.isEmptyObject,y.isObject=y.isObject,y.JSONDecode=y.JSONDecode,y.JSONEncode=y.JSONEncode,y.toArray=y.toArray,y.NPO=Xe;var cw="mixpanelBrowserDb",Jf="mixpanelRecordingEvents",Hf="mixpanelRecordingRegistry",hw=1,pw=[Jf,Hf],_e=function(r){this.dbPromise=null,this.storeName=r};_e.prototype._openDb=function(){return new B(function(r,i){var o=W.indexedDB.open(cw,hw);o.onerror=function(){i(o.error)},o.onsuccess=function(){r(o.result)},o.onupgradeneeded=function(e){var t=e.target.result;pw.forEach(function(n){t.createObjectStore(n)})}})},_e.prototype.init=function(){return W.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(r){return r instanceof W.IDBDatabase?B.resolve():B.reject(r)})):B.reject("indexedDB is not supported in this browser")},_e.prototype.isInitialized=function(){return!!this.dbPromise},_e.prototype.makeTransaction=function(r,i){var o=this.storeName,e=function(t){return new B(function(n,s){var a=t.transaction(o,r);a.oncomplete=function(){n(a)},a.onabort=a.onerror=function(){s(a.error)},i(a.objectStore(o))})};return this.dbPromise.then(e).catch(function(t){return t&&t.name==="InvalidStateError"?(this.dbPromise=this._openDb(),this.dbPromise.then(e)):B.reject(t)}.bind(this))},_e.prototype.setItem=function(r,i){return this.makeTransaction("readwrite",function(o){o.put(i,r)})},_e.prototype.getItem=function(r){var i;return this.makeTransaction("readonly",function(o){i=o.get(r)}).then(function(){return i.result})},_e.prototype.removeItem=function(r){return this.makeTransaction("readwrite",function(i){i.delete(r)})},_e.prototype.getAll=function(){var r;return this.makeTransaction("readonly",function(i){r=i.getAll()}).then(function(){return r.result})};var dw="__mp_opt_in_out_";function vw(r,i){if(Sw(i))return Re.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 o=ww(r,i)==="0";return o&&Re.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),o}function mw(r){return bw(r,function(i){return this.get_config(i)})}function gw(r){return r=r||{},r.persistenceType==="localStorage"?y.localStorage:y.cookie}function yw(r,i){return i=i||{},(i.persistencePrefix||dw)+r}function ww(r,i){return gw(i).get(yw(r,i))}function Sw(r){if(r&&r.ignoreDnt)return!1;var i=r&&r.window||W,o=i.navigator||{},e=!1;return y.each([o.doNotTrack,o.msDoNotTrack,i.doNotTrack],function(t){y.includes([!0,1,"1","yes"],t)&&(e=!0)}),e}function bw(r,i){return function(){var o=!1;try{var e=i.call(this,"token"),t=i.call(this,"ignore_dnt"),n=i.call(this,"opt_out_tracking_persistence_type"),s=i.call(this,"opt_out_tracking_cookie_prefix"),a=i.call(this,"window");e&&(o=vw(e,{ignoreDnt:t,persistenceType:n,persistencePrefix:s,window:a}))}catch(l){Re.error("Unexpected error when checking tracking opt-out status: "+l)}if(!o)return r.apply(this,arguments);var u=arguments[arguments.length-1];typeof u=="function"&&u(0)}}var Cw=Dt("lock"),Zf=function(r,i){i=i||{},this.storageKey=r,this.storage=i.storage||W.localStorage,this.pollIntervalMS=i.pollIntervalMS||100,this.timeoutMS=i.timeoutMS||2e3,this.promiseImpl=i.promiseImpl||B};Zf.prototype.withLock=function(r,i){var o=this.promiseImpl;return new o(y.bind(function(e,t){var n=i||new Date().getTime()+"|"+Math.random(),s=new Date().getTime(),a=this.storageKey,u=this.pollIntervalMS,l=this.timeoutMS,f=this.storage,c=a+":X",h=a+":Y",v=a+":Z",d=function(S){if(new Date().getTime()-s>l){Cw.error("Timeout waiting for mutex on "+a+"; clearing lock. ["+n+"]"),f.removeItem(v),f.removeItem(h),m();return}setTimeout(function(){try{S()}catch(b){t(b)}},u*(Math.random()+.1))},g=function(S,b){S()?b():d(function(){g(S,b)})},p=function(){var S=f.getItem(h);return S&&S!==n?!1:(f.setItem(h,n),f.getItem(h)===n?!0:(xr(f,!0)||t(new Error("localStorage support dropped while acquiring lock")),!1))},m=function(){f.setItem(c,n),g(p,function(){if(f.getItem(c)===n){w();return}d(function(){if(f.getItem(h)!==n){m();return}g(function(){return!f.getItem(v)},w)})})},w=function(){f.setItem(v,"1");var S=function(){f.removeItem(v),f.getItem(h)===n&&f.removeItem(h),f.getItem(c)===n&&f.removeItem(c)};r().then(function(b){S(),e(b)}).catch(function(b){S(),t(b)})};try{if(xr(f,!0))m();else throw new Error("localStorage support check failed")}catch(S){t(S)}},this))};var Ft=function(r){this.storage=r||W.localStorage};Ft.prototype.init=function(){return B.resolve()},Ft.prototype.isInitialized=function(){return!0},Ft.prototype.setItem=function(r,i){return new B(y.bind(function(o,e){try{this.storage.setItem(r,ui(i))}catch(t){e(t)}o()},this))},Ft.prototype.getItem=function(r){return new B(y.bind(function(i,o){var e;try{e=li(this.storage.getItem(r))}catch(t){o(t)}i(e)},this))},Ft.prototype.removeItem=function(r){return new B(y.bind(function(i,o){try{this.storage.removeItem(r)}catch(e){o(e)}i()},this))};var Kf=Dt("batch"),Pe=function(r,i){i=i||{},this.storageKey=r,this.usePersistence=i.usePersistence,this.usePersistence&&(this.queueStorage=i.queueStorage||new Ft,this.lock=new Zf(r,{storage:i.sharedLockStorage||W.localStorage,timeoutMS:i.sharedLockTimeoutMS})),this.reportError=i.errorReporter||y.bind(Kf.error,Kf),this.pid=i.pid||null,this.memQueue=[],this.initialized=!1,i.enqueueThrottleMs?this.enqueuePersisted=sw(y.bind(this._enqueuePersisted,this),i.enqueueThrottleMs):this.enqueuePersisted=y.bind(function(o){return this._enqueuePersisted([o])},this)};Pe.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?B.resolve():this.queueStorage.init().then(y.bind(function(){this.initialized=!0},this)).catch(y.bind(function(r){this.reportError("Error initializing queue persistence. Disabling persistence",r),this.initialized=!0,this.usePersistence=!1},this))},Pe.prototype.enqueue=function(r,i){var o={id:xs(),flushAfter:new Date().getTime()+i*2,payload:r};return this.usePersistence?this.enqueuePersisted(o):(this.memQueue.push(o),B.resolve(!0))},Pe.prototype._enqueuePersisted=function(r){var i=y.bind(function(){return this.ensureInit().then(y.bind(function(){return this.readFromStorage()},this)).then(y.bind(function(o){return this.saveToStorage(o.concat(r))},this)).then(y.bind(function(o){return o&&(this.memQueue=this.memQueue.concat(r)),o},this)).catch(y.bind(function(o){return this.reportError("Error enqueueing items",o,r),!1},this))},this);return this.lock.withLock(i,this.pid).catch(y.bind(function(o){return this.reportError("Error acquiring storage lock",o),!1},this))},Pe.prototype.fillBatch=function(r){var i=this.memQueue.slice(0,r);return this.usePersistence&&i.length<r?this.ensureInit().then(y.bind(function(){return this.readFromStorage()},this)).then(y.bind(function(o){if(o.length){var e={};y.each(i,function(s){e[s.id]=!0});for(var t=0;t<o.length;t++){var n=o[t];if(new Date().getTime()>n.flushAfter&&!e[n.id]&&(n.orphaned=!0,i.push(n),i.length>=r))break}}return i},this)):B.resolve(i)};var Xf=function(r,i){var o=[];return y.each(r,function(e){e.id&&!i[e.id]&&o.push(e)}),o};Pe.prototype.removeItemsByID=function(r){var i={};if(y.each(r,function(e){i[e]=!0}),this.memQueue=Xf(this.memQueue,i),this.usePersistence){var o=y.bind(function(){return this.ensureInit().then(y.bind(function(){return this.readFromStorage()},this)).then(y.bind(function(e){return e=Xf(e,i),this.saveToStorage(e)},this)).then(y.bind(function(){return this.readFromStorage()},this)).then(y.bind(function(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.id&&i[n.id])throw new Error("Item not removed from storage")}return!0},this)).catch(y.bind(function(e){return this.reportError("Error removing items",e,r),!1},this))},this);return this.lock.withLock(o,this.pid).catch(y.bind(function(e){return this.reportError("Error acquiring storage lock",e),xr(this.lock.storage,!0)?!1:o().then(y.bind(function(t){return t||this.queueStorage.removeItem(this.storageKey).then(function(){return t})},this)).catch(y.bind(function(t){return this.reportError("Error clearing queue",t),!1},this))},this))}else return B.resolve(!0)};var Qf=function(r,i){var o=[];return y.each(r,function(e){var t=e.id;if(t in i){var n=i[t];n!==null&&(e.payload=n,o.push(e))}else o.push(e)}),o};Pe.prototype.updatePayloads=function(r){return this.memQueue=Qf(this.memQueue,r),this.usePersistence?this.lock.withLock(y.bind(function(){return this.ensureInit().then(y.bind(function(){return this.readFromStorage()},this)).then(y.bind(function(o){return o=Qf(o,r),this.saveToStorage(o)},this)).catch(y.bind(function(o){return this.reportError("Error updating items",r,o),!1},this))},this),this.pid).catch(y.bind(function(i){return this.reportError("Error acquiring storage lock",i),!1},this)):B.resolve(!0)},Pe.prototype.readFromStorage=function(){return this.ensureInit().then(y.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(y.bind(function(r){return r&&(y.isArray(r)||(this.reportError("Invalid storage entry:",r),r=null)),r||[]},this)).catch(y.bind(function(r){return this.reportError("Error retrieving queue",r),[]},this))},Pe.prototype.saveToStorage=function(r){return this.ensureInit().then(y.bind(function(){return this.queueStorage.setItem(this.storageKey,r)},this)).then(function(){return!0}).catch(y.bind(function(i){return this.reportError("Error saving queue",i),!1},this))},Pe.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(y.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):B.resolve()};var Iw=600*1e3,Rr=Dt("batch"),Ee=function(r,i){this.errorReporter=i.errorReporter,this.queue=new Pe(r,{errorReporter:y.bind(this.reportError,this),queueStorage:i.queueStorage,sharedLockStorage:i.sharedLockStorage,sharedLockTimeoutMS:i.sharedLockTimeoutMS,usePersistence:i.usePersistence,enqueueThrottleMs:i.enqueueThrottleMs}),this.libConfig=i.libConfig,this.sendRequest=i.sendRequestFunc,this.beforeSendHook=i.beforeSendHook,this.stopAllBatching=i.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=i.flushOnlyOnInterval||!1,this._flushPromise=null};Ee.prototype.enqueue=function(r){return this.queue.enqueue(r,this.flushInterval)},Ee.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},Ee.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},Ee.prototype.clear=function(){return this.queue.clear()},Ee.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},Ee.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},Ee.prototype.scheduleFlush=function(r){this.flushInterval=r,this.stopped||(this.timeoutID=setTimeout(y.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},Ee.prototype.sendRequestPromise=function(r,i){return new B(y.bind(function(o){this.sendRequest(r,i,o)},this))},Ee.prototype.flush=function(r){if(this.requestInProgress)return Rr.log("Flush: Request already in progress"),B.resolve();this.requestInProgress=!0,r=r||{};var i=this.libConfig.batch_request_timeout_ms,o=new Date().getTime(),e=this.batchSize;return this.queue.fillBatch(e).then(y.bind(function(t){var n=t.length===e,s=[],a={};if(y.each(t,function(c){var h=c.payload;if(this.beforeSendHook&&!c.orphaned&&(h=this.beforeSendHook(h)),h){h.event&&h.properties&&(h.properties=y.extend({},h.properties,{mp_sent_by_lib_version:ys.LIB_VERSION}));var v=!0,d=c.id;d?(this.itemIdsSentSuccessfully[d]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:c,batchSize:t.length,timesSent:this.itemIdsSentSuccessfully[d]}),v=!1):this.reportError("[dupe] found item with no ID",{item:c}),v&&s.push(h)}a[c.id]=h},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),B.resolve();var u=y.bind(function(){return this.queue.removeItemsByID(y.map(t,function(c){return c.id})).then(y.bind(function(c){return y.each(t,y.bind(function(h){var v=h.id;v?(this.itemIdsSentSuccessfully[v]=this.itemIdsSentSuccessfully[v]||0,this.itemIdsSentSuccessfully[v]++,this.itemIdsSentSuccessfully[v]>5&&this.reportError("[dupe] item ID sent too many times",{item:h,batchSize:t.length,timesSent:this.itemIdsSentSuccessfully[v]})):this.reportError("[dupe] found item with no ID while removing",{item:h})},this)),c?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!n?(this.resetFlush(),B.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),B.resolve())},this))},this),l=y.bind(function(c){this.requestInProgress=!1;try{if(r.unloading)return this.queue.updatePayloads(a);if(y.isObject(c)&&c.error==="timeout"&&new Date().getTime()-o>=i)return this.reportError("Network timeout; retrying"),this.flush();if(y.isObject(c)&&(c.httpStatusCode>=500||c.httpStatusCode===429||c.httpStatusCode<=0&&!lw()||c.error==="timeout")){var h=this.flushInterval*2;return c.retryAfter&&(h=parseInt(c.retryAfter,10)*1e3||h),h=Math.min(Iw,h),this.reportError("Error; retry in "+h+" ms"),this.scheduleFlush(h),B.resolve()}else if(y.isObject(c)&&c.httpStatusCode===413)if(t.length>1){var v=Math.max(1,Math.floor(e/2));return this.batchSize=Math.min(this.batchSize,v,t.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),B.resolve()}else return this.reportError("Single-event request too large; dropping",t),this.resetBatchSize(),u();else return u()}catch(d){this.reportError("Error handling API response",d),this.resetFlush()}},this),f={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:i};return r.unloading&&(f.transport="sendBeacon"),Rr.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,f).then(l)},this)).catch(y.bind(function(t){this.reportError("Error flushing request queue",t),this.resetFlush()},this))},Ee.prototype.reportError=function(r,i){if(Rr.error.apply(Rr.error,arguments),this.errorReporter)try{i instanceof Error||(i=new Error(r)),this.errorReporter(r,i)}catch(o){Rr.error(o)}};var ec=function(r){var i=Date.now();return!r||i>r.maxExpires||i>r.idleExpires},Ow=250;Dt("autocapture");function xw(r){var i=(r.name||r.id||"").toString().toLowerCase();if(typeof i=="string"){var o=/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i;if(o.test(i.replace(/[^a-zA-Z0-9]/g,"")))return!0}return!1}var tc=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",Rw="data-rr-is-password",Ew=["password","email","tel","hidden"];function fi(r){return r?Array.isArray(r)?r:[r]:[]}function Aw(r){var i={input:{maskingSelector:"",unmaskingSelector:"",maskAll:!0},text:{maskingSelector:"",unmaskingSelector:"",maskAll:!0}},o=r.get_config("record_mask_input_selector"),e=r.get_config("record_unmask_input_selector"),t=r.get_config("record_mask_all_inputs");i.input.maskingSelector=fi(o).join(","),i.input.unmaskingSelector=fi(e).join(","),t!==void 0&&(i.input.maskAll=t);var n=r.get_config("record_mask_text_selector"),s=r.get_config("record_unmask_text_selector"),a=r.get_config("record_mask_all_text"),u=r.get_config("record_mask_text_class"),l=fi(n);if(u)if(u instanceof RegExp)i.text._legacyClassRegex=u;else{var f="."+u;l.indexOf(f)===-1&&l.push(f)}return i.text.maskingSelector=l.join(","),i.text.unmaskingSelector=fi(s).join(","),a===void 0&&n!==void 0?i.text.maskAll=!1:a!==void 0&&(i.text.maskAll=a),i}function Bt(r,i){return i?!!r.closest(i):!1}function Mw(r,i){var o=(r.getAttribute("type")||"").toLowerCase();if(Ew.indexOf(o)!==-1)return!0;var e=(r.getAttribute("autocomplete")||"").toLowerCase();return e&&e!==""&&e!=="off"||r.hasAttribute(Rw)||xw(r)?!0:i.input.maskAll?!Bt(r,i.input.unmaskingSelector):!!(Bt(r,i.input.maskingSelector)||Bt(r,tc))}function $w(r,i){return r?i.text._legacyClassRegex&&Do(r,i.text._legacyClassRegex)?!0:i.text.maskAll?!Bt(r,i.text.unmaskingSelector):!!(Bt(r,i.text.maskingSelector)||Bt(r,tc)):!1}var Ut=Dt("recorder"),kw=W.CompressionStream,_w={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},Pw=new Set([P.MouseMove,P.MouseInteraction,P.Scroll,P.ViewportResize,P.Input,P.TouchMove,P.MediaInteraction,P.Drag,P.Selection]);function Tw(r){return r.type===F.IncrementalSnapshot&&Pw.has(r.data.source)}var ce=function(r){this._mixpanel=r.mixpanelInstance,this._onIdleTimeout=r.onIdleTimeout||Rs,this._onMaxLengthReached=r.onMaxLengthReached||Rs,this._onBatchSent=r.onBatchSent||Rs,this._rrwebRecord=r.rrwebRecord||null,this._stopRecording=null,this.replayId=r.replayId,this.batchStartUrl=r.batchStartUrl||null,this.replayStartUrl=r.replayStartUrl||null,this.idleExpires=r.idleExpires||null,this.maxExpires=r.maxExpires||null,this.replayStartTime=r.replayStartTime||null,this.lastEventTimestamp=r.lastEventTimestamp||null,this.seqNo=r.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=oi,this.recordMinMs=0;var i=xr(r.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new _e(Jf),this.batcher=new Ee(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:_w,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:r.sharedLockStorage,usePersistence:i,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:Ow,sharedLockTimeoutMS:10*1e3})};ce.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var r={distinct_id:String(this._mixpanel.get_distinct_id())},i=this._mixpanel.get_property("$device_id");i&&(r.$device_id=i);var o=this._mixpanel.get_property("$user_id");return o&&(r.$user_id=o),r},ce.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))},ce.prototype.getConfig=function(r){return this._mixpanel.get_config(r)},ce.prototype.get_config=function(r){return this.getConfig(r)},ce.prototype.startRecording=function(r){if(this._rrwebRecord===null){this.reportError("rrweb record function not provided. ");return}if(this._stopRecording!==null){Ut.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>oi&&(this.recordMaxMs=oi,Ut.critical("record_max_ms cannot be greater than "+oi+"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=y.info.currentUrl(),this.replayStartUrl=y.info.currentUrl()),r||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var i=function(){clearTimeout(this.idleTimeoutId);var n=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,n),this.idleExpires=new Date().getTime()+n}.bind(this);i();var o=this.getConfig("record_block_selector");(o===""||o===null)&&(o=void 0);var e=Aw(this._mixpanel);try{this._stopRecording=this._rrwebRecord({emit:function(n){if(this.idleExpires&&this.idleExpires<n.timestamp){this._onIdleTimeout();return}Tw(n)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),i()),this.__enqueuePromise=this.batcher.enqueue(n),(this.lastEventTimestamp===null||n.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=n.timestamp)}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:o,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn(Mw,e),maskTextFn:this._getMaskFn($w,e),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:this.getConfig("record_console")?[Zy({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}})]:[]})}catch(n){this.reportError("Unexpected error when starting rrweb recording.",n)}if(typeof this._stopRecording!="function"){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var t=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),t)},ce.prototype.stopRecording=function(r){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(o){this.reportError("Error with rrweb stopRecording",o)}this._stopRecording=null}var i;return this.batcher.stopped?i=this.batcher.clear():r||(i=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),i},ce.prototype.isRrwebStopped=function(){return this._stopRecording===null},ce.prototype.flushEventsWithOptOut=function(r,i,o){var e=function(t){t===0&&(this.stopRecording(),o({error:"Tracking has been opted out, stopping recording."}))}.bind(this);this._flushEvents(r,i,o,e)},ce.prototype.serialize=function(){var r;try{r=this._mixpanel.get_tab_id()}catch(i){this.reportError("Error getting tab ID for serialization ",i),r=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:r}},ce.deserialize=function(r,i){var o=new ce(y.extend({},i,{replayId:r.replayId,batchStartUrl:r.batchStartUrl,replayStartUrl:r.replayStartUrl,idleExpires:r.idleExpires,maxExpires:r.maxExpires,replayStartTime:r.replayStartTime,lastEventTimestamp:r.lastEventTimestamp,seqNo:r.seqNo,sharedLockStorage:i.sharedLockStorage}));return o},ce.prototype._sendRequest=function(r,i,o,e){var t=function(s,a){s.status===200&&this.replayId===r&&(this.seqNo++,this.batchStartUrl=y.info.currentUrl()),this._onBatchSent(),e({status:0,httpStatusCode:s.status,responseBody:a,retryAfter:s.headers.get("Retry-After")})}.bind(this),n=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");W.fetch(n+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(i),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:o}).then(function(s){s.json().then(function(a){t(s,a)}).catch(function(a){e({error:a})})}).catch(function(s){e({error:s,httpStatusCode:0})})},ce.prototype._flushEvents=mw(function(r,i,o){var e=r.length;if(e>0){for(var t=this.replayId,n=1/0,s=-1/0,a=!1,u=0;u<e;u++)n=Math.min(n,r[u].timestamp),s=Math.max(s,r[u].timestamp),r[u].type===F.FullSnapshot&&(a=!0);if(this.seqNo===0){if(!a){o({error:"First batch does not contain a full snapshot. Aborting recording."}),this.stopRecording(!0);return}this.replayStartTime=n}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=n);var l=s-this.replayStartTime,f={$current_url:this.batchStartUrl,$lib_version:ys.LIB_VERSION,batch_start_time:n/1e3,mp_lib:"web",replay_id:t,replay_length_ms:l,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},c=JSON.stringify(r);if(Object.assign(f,this.getUserIdInfo()),fw(ut,Lt.vendor,Or)){var h=new Blob([c],{type:"application/json"}).stream(),v=h.pipeThrough(new kw("gzip"));new Response(v).blob().then(function(d){f.format="gzip",this._sendRequest(t,f,d,o)}.bind(this))}else f.format="body",this._sendRequest(t,f,c,o)}}),ce.prototype.reportError=function(r,i){Ut.error.apply(Ut.error,arguments);try{!i&&!(r instanceof Error)&&(r=new Error(r)),this.getConfig("error_reporter")(r,i)}catch(o){Ut.error(o)}},ce.prototype.getDurationMs=function(){return this.replayStartTime===null?0:this.lastEventTimestamp===null?new Date().getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},ce.prototype._getRecordMinMs=function(){var r=this.getConfig("record_min_ms");return r>ws?(Ut.critical("record_min_ms cannot be greater than "+ws+"ms. Capping value."),ws):r},ce.prototype._getMaskFn=function(r,i){return function(o,e){if(!o.trim().length)return"";var t=!0;try{t=r(e,i)}catch(s){this.reportError("Error checking if text should be masked, defaulting to masked",s)}if(t){var n=Math.min(o.length,1e4);return"*".repeat(n)}else return o}.bind(this)};var Be=function(r){this.idb=new _e(Hf),this.errorReporter=r.errorReporter,this.mixpanelInstance=r.mixpanelInstance,this.sharedLockStorage=r.sharedLockStorage};Be.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},Be.prototype.handleError=function(r){this.errorReporter("IndexedDB error: ",r)},Be.prototype.setActiveRecording=function(r){if(!this.isPersistenceEnabled())return B.resolve();var i=r.tabId;return i?this.idb.init().then(function(){return this.idb.setItem(i,r)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),B.resolve())},Be.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}.bind(this)).then(function(r){return ec(r)?null:r}.bind(this)).catch(this.handleError.bind(this)):B.resolve(null)},Be.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},Be.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then(function(r){if(r)return r.maxExpires=0,this.setActiveRecording(r)}.bind(this)).catch(this.handleError.bind(this))},Be.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):B.resolve()},Be.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(r){var i=r.filter(function(o){return ec(o)}).map(function(o){var e=ce.deserialize(o,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return e.unloadPersistedData().then(function(){return this.idb.removeItem(o.tabId)}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return B.all(i)}.bind(this)).catch(this.handleError.bind(this)):B.resolve([])};var Er=Dt("recorder"),Ue=function(r,i,o){this.mixpanelInstance=r,this.rrwebRecord=i||Je,this.sharedLockStorage=o,this.recordingRegistry=new Be({mixpanelInstance:this.mixpanelInstance,errorReporter:Er.error,sharedLockStorage:o}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};Ue.prototype.startRecording=function(r){if(r=r||{},this.activeRecording&&!this.activeRecording.isRrwebStopped()){Er.log("Recording already in progress, skipping startRecording.");return}var i=function(){Er.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),o=function(){Er.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),t={mixpanelInstance:this.mixpanelInstance,onBatchSent:e,onIdleTimeout:i,onMaxLengthReached:o,replayId:y.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return r.activeSerializedRecording?this.activeRecording=ce.deserialize(r.activeSerializedRecording,t):this.activeRecording=new ce(t),this.activeRecording.startRecording(r.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())},Ue.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))},Ue.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Ue.prototype._stopCurrentRecording=function(r,i){if(this.activeRecording){var o=this.activeRecording.stopRecording(r);return i&&(this.activeRecording=null),o}return B.resolve()},Ue.prototype.resumeRecording=function(r){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),B.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(i){return i&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:i}):r?this.startRecording({shouldStopBatcher:!1}):(Er.log("No resumable recording found."),null)}.bind(this))},Ue.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Ue.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(Ue.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),W[ac]=Ue})();
1
+ (function(){"use strict";var W;if(typeof window=="undefined"){var Us={hostname:""};W={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:Us,referrer:""},screen:{width:0,height:0},location:Us,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else W=window;var wi={LIB_VERSION:"2.77.0"},Ic="__mp_recorder";function zs(r,i){(i==null||i>r.length)&&(i=r.length);for(var o=0,e=new Array(i);o<i;o++)e[o]=r[o];return e}function Ws(r,i,o,e,t,n,s){try{var a=r[n](s),u=a.value}catch(f){o(f);return}a.done?i(u):Promise.resolve(u).then(e,t)}function kr(r){return function(){var i=this,o=arguments;return new Promise(function(e,t){var n=r.apply(i,o);function s(u){Ws(n,e,t,s,a,"next",u)}function a(u){Ws(n,e,t,s,a,"throw",u)}s(void 0)})}}function _r(r,i,o){return js()?_r=Reflect.construct:_r=function(t,n,s){var a=[null];a.push.apply(a,n);var u=Function.bind.apply(t,a),f=new u;return s&&Yt(f,s.prototype),f},_r.apply(null,arguments)}function Oc(r,i){for(var o=0;o<i.length;o++){var e=i[o];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(r,e.key,e)}}function Z(r,i,o){return i&&Oc(r.prototype,i),r}function T(){return T=Object.assign||function(r){for(var i=1;i<arguments.length;i++){var o=arguments[i];for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(r[e]=o[e])}return r},T.apply(this,arguments)}function bi(r){return bi=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)},bi(r)}function ee(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),i&&Yt(r,i)}function A(r,i){return i!=null&&typeof Symbol!="undefined"&&i[Symbol.hasInstance]?!!i[Symbol.hasInstance](r):r instanceof i}function xc(r){return Function.toString.call(r).indexOf("[native code]")!==-1}function tt(r,i){if(r==null)return{};var o={},e=Object.keys(r),t,n;for(n=0;n<e.length;n++)t=e[n],!(i.indexOf(t)>=0)&&(o[t]=r[t]);return o}function Yt(r,i){return Yt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Yt(r,i)}function M(r){"@swc/helpers - typeof";return r&&typeof Symbol!="undefined"&&r.constructor===Symbol?"symbol":typeof r}function Rc(r,i){if(r){if(typeof r=="string")return zs(r,i);var o=Object.prototype.toString.call(r).slice(8,-1);if(o==="Object"&&r.constructor&&(o=r.constructor.name),o==="Map"||o==="Set")return Array.from(o);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return zs(r,i)}}function Jt(r){var i=typeof Map=="function"?new Map:void 0;return Jt=function(e){if(e===null||!xc(e))return e;if(typeof e!="function")throw new TypeError("Super expression must either be null or a function");if(typeof i!="undefined"){if(i.has(e))return i.get(e);i.set(e,t)}function t(){return _r(e,arguments,bi(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Yt(t,e)},Jt(r)}function js(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(i){}return(js=function(){return!!r})()}function I(r,i){var o=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(o)return(o=o.call(r)).next.bind(o);if(Array.isArray(r)||(o=Rc(r))||i){o&&(r=o);var e=0;return function(){return e>=r.length?{done:!0}:{done:!1,value:r[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 rt(r,i){var o,e,t,n,s={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]};return n={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(n[Symbol.iterator]=function(){return this}),n;function a(f){return function(l){return u([f,l])}}function u(f){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,e&&(t=f[0]&2?e.return:f[0]?e.throw||((t=e.return)&&t.call(e),0):e.next)&&!(t=t.call(e,f[1])).done)return t;switch(e=0,t&&(f=[f[0]&2,t.value]),f[0]){case 0:case 1:t=f;break;case 4:return s.label++,{value:f[1],done:!1};case 5:s.label++,e=f[1],f=[0];continue;case 7:f=s.ops.pop(),s.trys.pop();continue;default:if(t=s.trys,!(t=t.length>0&&t[t.length-1])&&(f[0]===6||f[0]===2)){s=0;continue}if(f[0]===3&&(!t||f[1]>t[0]&&f[1]<t[3])){s.label=f[1];break}if(f[0]===6&&s.label<t[1]){s.label=t[1],t=f;break}if(t&&s.label<t[2]){s.label=t[2],s.ops.push(f);break}t[2]&&s.ops.pop(),s.trys.pop();continue}f=i.call(r,s)}catch(l){f=[6,l],e=0}finally{o=t=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function Si(r){var i=typeof Symbol=="function"&&Symbol.iterator,o=i&&r[i],e=0;if(o)return o.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&e>=r.length&&(r=void 0),{value:r&&r[e++],done:!r}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}var Ec=Object.defineProperty,Ac=function(r,i,o){return i in r?Ec(r,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[i]=o},O=function(r,i,o){return Ac(r,(typeof i=="undefined"?"undefined":M(i))!=="symbol"?i+"":i,o)},Gs,Mc=Object.defineProperty,$c=function(r,i,o){return i in r?Mc(r,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[i]=o},qs=function(r,i,o){return $c(r,(typeof i=="undefined"?"undefined":M(i))!=="symbol"?i+"":i,o)},he=(function(r){return r[r.Document=0]="Document",r[r.DocumentType=1]="DocumentType",r[r.Element=2]="Element",r[r.Text=3]="Text",r[r.CDATA=4]="CDATA",r[r.Comment=5]="Comment",r})(he||{}),Vs={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Hs={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Pr={},kc=function(){return!!globalThis.Zone};function Ci(r){if(Pr[r])return Pr[r];var i=globalThis[r],o=i.prototype,e=r in Vs?Vs[r]:void 0,t=!!(e&&e.every(function(l){var c,h;return!!((h=(c=Object.getOwnPropertyDescriptor(o,l))==null?void 0:c.get)!=null&&h.toString().includes("[native code]"))})),n=r in Hs?Hs[r]:void 0,s=!!(n&&n.every(function(l){var c;return typeof o[l]=="function"&&((c=o[l])==null?void 0:c.toString().includes("[native code]"))}));if(t&&s&&!kc())return Pr[r]=i.prototype,i.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return i.prototype;var f=u[r].prototype;return document.body.removeChild(a),f?Pr[r]=f:o}catch(l){return o}}var Ii={};function je(r,i,o){var e,t=r+"."+String(o);if(Ii[t])return Ii[t].call(i);var n=Ci(r),s=(e=Object.getOwnPropertyDescriptor(n,o))==null?void 0:e.get;return s?(Ii[t]=s,s.call(i)):i[o]}var Oi={};function Ys(r,i,o){var e=r+"."+String(o);if(Oi[e])return Oi[e].bind(i);var t=Ci(r),n=t[o];return typeof n!="function"?i[o]:(Oi[e]=n,n.bind(i))}function _c(r){return je("Node",r,"childNodes")}function Pc(r){return je("Node",r,"parentNode")}function Tc(r){return je("Node",r,"parentElement")}function Nc(r){return je("Node",r,"textContent")}function Lc(r,i){return Ys("Node",r,"contains")(i)}function Dc(r){return Ys("Node",r,"getRootNode")()}function Fc(r){return!r||!("host"in r)?null:je("ShadowRoot",r,"host")}function Bc(r){return r.styleSheets}function Uc(r){return!r||!("shadowRoot"in r)?null:je("Element",r,"shadowRoot")}function zc(r,i){return je("Element",r,"querySelector")(i)}function Wc(r,i){return je("Element",r,"querySelectorAll")(i)}function jc(){return Ci("MutationObserver").constructor}function Gc(r,i,o){try{if(!(i in r))return function(){};var e=r[i],t=o(e);return typeof t=="function"&&(t.prototype=t.prototype||{},Object.defineProperties(t,{__rrweb_original__:{enumerable:!1,value:e}})),r[i]=t,function(){r[i]=e}}catch(n){return function(){}}}var ve={childNodes:_c,parentNode:Pc,parentElement:Tc,textContent:Nc,contains:Lc,getRootNode:Dc,host:Fc,styleSheets:Bc,shadowRoot:Uc,querySelector:zc,querySelectorAll:Wc,mutationObserver:jc,patch:Gc};function Js(r){return r.nodeType===r.ELEMENT_NODE}function Zt(r){var i=r&&"host"in r&&"mode"in r&&ve.host(r)||null;return!!(i&&"shadowRoot"in i&&ve.shadowRoot(i)===r)}function Kt(r){return Object.prototype.toString.call(r)==="[object ShadowRoot]"}function qc(r){return r.includes(" background-clip: text;")&&!r.includes(" -webkit-background-clip: text;")&&(r=r.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),r}function Vc(r){var i=r.cssText;if(i.split('"').length<3)return i;var o=["@import","url("+JSON.stringify(r.href)+")"];return r.layerName===""?o.push("layer"):r.layerName&&o.push("layer("+r.layerName+")"),r.supportsText&&o.push("supports("+r.supportsText+")"),r.media.length&&o.push(r.media.mediaText),o.join(" ")+";"}function xi(r){try{var i=r.rules||r.cssRules;if(!i)return null;var o=r.href;!o&&r.ownerNode&&r.ownerNode.ownerDocument&&(o=r.ownerNode.ownerDocument.location.href);var e=Array.from(i,function(t){return Zs(t,o)}).join("");return qc(e)}catch(t){return null}}function Zs(r,i){if(Yc(r)){var o;try{o=xi(r.styleSheet)||Vc(r)}catch(t){o=r.cssText}return r.styleSheet.href?Lr(o,r.styleSheet.href):o}else{var e=r.cssText;return Jc(r)&&r.selectorText.includes(":")&&(e=Hc(e)),i?Lr(e,i):e}}function Hc(r){var i=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return r.replace(i,"$1\\$2")}function Yc(r){return"styleSheet"in r}function Jc(r){return"selectorText"in r}var Ks=(function(){function r(){qs(this,"idNodeMap",new Map),qs(this,"nodeMetaMap",new WeakMap)}var i=r.prototype;return i.getId=function(e){var t;if(!e)return-1;var n=(t=this.getMeta(e))==null?void 0:t.id;return n!=null?n:-1},i.getNode=function(e){return this.idNodeMap.get(e)||null},i.getIds=function(){return Array.from(this.idNodeMap.keys())},i.getMeta=function(e){return this.nodeMetaMap.get(e)||null},i.removeNodeFromMap=function(e,t){var n=this;t===void 0&&(t=!1);var s=this.getId(e);this.idNodeMap.delete(s),t&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEach(function(a){return n.removeNodeFromMap(a,t)})},i.has=function(e){return this.idNodeMap.has(e)},i.hasNode=function(e){return this.nodeMetaMap.has(e)},i.add=function(e,t){var n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)},i.replace=function(e,t){var n=this.getNode(e);if(n){var s=this.nodeMetaMap.get(n);s&&this.nodeMetaMap.set(t,s)}this.idNodeMap.set(e,t)},i.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},r})();function Zc(){return new Ks}function Tr(r){var i=r.element,o=r.maskInputOptions,e=r.tagName,t=r.type,n=r.value,s=r.maskInputFn,a=n||"",u=t&&nt(t);return(o[e.toLowerCase()]||u&&o[u])&&(s?a=s(a,i):a="*".repeat(a.length)),a}function nt(r){return r.toLowerCase()}var Xs="__rrweb_original__";function Kc(r){var i=r.getContext("2d");if(!i)return!0;for(var o=50,e=0;e<r.width;e+=o)for(var t=0;t<r.height;t+=o){var n=i.getImageData,s=Xs in n?n[Xs]:n,a=new Uint32Array(s.call(i,e,t,Math.min(o,r.width-e),Math.min(o,r.height-t)).data.buffer);if(a.some(function(u){return u!==0}))return!1}return!0}function Nr(r){var i=r.type;return r.hasAttribute("data-rr-is-password")?"password":i?nt(i):null}function Qs(r,i){var o;try{o=new URL(r,i!=null?i:window.location.href)}catch(s){return null}var e=/\.([0-9a-z]+)(?:$)/i,t=o.pathname.match(e),n;return(n=t==null?void 0:t[1])!=null?n:null}function Xc(r){var i="";return r.indexOf("//")>-1?i=r.split("/").slice(0,3).join("/"):i=r.split("/")[0],i=i.split("?")[0],i}var Qc=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,eh=/^(?:[a-z+]+:)?\/\//i,th=/^www\..*/i,rh=/^(data:)([^,]*),(.*)/i;function Lr(r,i){return(r||"").replace(Qc,function(o,e,t,n,s,a){var u=t||s||a,f=e||n||"";if(!u)return o;if(eh.test(u)||th.test(u)||rh.test(u))return"url("+f+u+f+")";if(u[0]==="/")return"url("+f+(Xc(i)+u)+f+")";var l=i.split("/"),c=u.split("/");l.pop();for(var h=I(c),v;!(v=h()).done;){var p=v.value;p!=="."&&(p===".."?l.pop():l.push(p))}return"url("+f+l.join("/")+f+")"})}function Dr(r,i){return i===void 0&&(i=!1),i?r.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):r.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function nh(r,i,o){o===void 0&&(o=!1);var e=Array.from(i.childNodes),t=[],n=0;if(e.length>1&&r&&typeof r=="string"){for(var s=Dr(r,o),a=s.length/r.length,u=1;u<e.length;u++)if(e[u].textContent&&typeof e[u].textContent=="string"){for(var f=Dr(e[u].textContent,o),l=100,c=3;c<f.length&&(f[c].match(/[a-zA-Z0-9]/)||f.indexOf(f.substring(0,c),1)!==-1);c++);for(;c<f.length;c++){var h=f.substring(0,c),v=s.split(h),p=-1;if(v.length===2)p=v[0].length;else if(v.length>2&&v[0]===""&&e[u-1].textContent!=="")p=s.indexOf(h,1);else if(v.length===1){if(h=h.substring(0,h.length-1),v=s.split(h),v.length<=1)return t.push(r),t;c=l+1}else c===f.length-1&&(p=s.indexOf(h));if(v.length>=2&&c>l){var m=e[u-1].textContent;if(m&&typeof m=="string"){var d=Dr(m).length;p=s.indexOf(h,d)}p===-1&&(p=v[0].length)}if(p!==-1){for(var g=Math.floor(p/a);g>0&&g<r.length;){if(n+=1,n>50*e.length)return t.push(r),t;var w=Dr(r.substring(0,g),o);if(w.length===p){t.push(r.substring(0,g)),r=r.substring(g),s=s.substring(p);break}else w.length<p?g+=Math.max(1,Math.floor((p-w.length)/a)):g-=Math.max(1,Math.floor((w.length-p)*a))}break}}}}return t.push(r),t}function ih(r,i){return nh(r,i).join("/* rr_split */")}var oh=1,sh=new RegExp("[^a-z0-9-_:]"),Xt=-2;function ea(){return oh++}function ah(r){if(A(r,HTMLFormElement))return"form";var i=nt(r.tagName);return sh.test(i)?"div":i}var It,ta,uh=/^[^ \t\n\r\u000c]+/,fh=/^[, \t\n\r\u000c]+/;function lh(r,i){if(i.trim()==="")return i;var o=0;function e(f){var l,c=f.exec(i.substring(o));return c?(l=c[0],o+=l.length,l):""}for(var t=[];e(fh),!(o>=i.length);){var n=e(uh);if(n.slice(-1)===",")n=Ot(r,n.substring(0,n.length-1)),t.push(n);else{var s="";n=Ot(r,n);for(var a=!1;;){var u=i.charAt(o);if(u===""){t.push((n+s).trim());break}else if(a)u===")"&&(a=!1);else if(u===","){o+=1,t.push((n+s).trim());break}else u==="("&&(a=!0);s+=u,o+=1}}}return t.join(", ")}var ra=new WeakMap;function Ot(r,i){return!i||i.trim()===""?i:Ri(r,i)}function ch(r){return!!(r.tagName==="svg"||r.ownerSVGElement)}function Ri(r,i){var o=ra.get(r);if(o||(o=r.createElement("a"),ra.set(r,o)),!i)i="";else if(i.startsWith("blob:")||i.startsWith("data:"))return i;return o.setAttribute("href",i),o.href}function na(r,i,o,e){return e&&(o==="src"||o==="href"&&!(i==="use"&&e[0]==="#")||o==="xlink:href"&&e[0]!=="#"||o==="background"&&(i==="table"||i==="td"||i==="th")?Ot(r,e):o==="srcset"?lh(r,e):o==="style"?Lr(e,Ri(r)):i==="object"&&o==="data"?Ot(r,e):e)}function ia(r,i,o){return(r==="video"||r==="audio")&&i==="autoplay"}function hh(r,i,o){try{if(typeof i=="string"){if(r.classList.contains(i))return!0}else for(var e=r.classList.length;e--;){var t=r.classList[e];if(i.test(t))return!0}if(o)return r.matches(o)}catch(n){}return!1}function Fr(r,i,o){if(!r)return!1;if(r.nodeType!==r.ELEMENT_NODE)return o?Fr(ve.parentNode(r),i,o):!1;for(var e=r.classList.length;e--;){var t=r.classList[e];if(i.test(t))return!0}return o?Fr(ve.parentNode(r),i,o):!1}function oa(r,i,o,e){var t;if(Js(r)){if(t=r,!ve.childNodes(t).length)return!1}else{if(ve.parentElement(r)===null)return!1;t=ve.parentElement(r)}try{if(typeof i=="string"){if(e){if(t.closest("."+i))return!0}else if(t.classList.contains(i))return!0}else if(Fr(t,i,e))return!0;if(o){if(e){if(t.closest(o))return!0}else if(t.matches(o))return!0}}catch(n){}return!1}function dh(r,i,o){var e=r.contentWindow;if(e){var t=!1,n;try{n=e.document.readyState}catch(u){return}if(n!=="complete"){var s=setTimeout(function(){t||(i(),t=!0)},o);r.addEventListener("load",function(){clearTimeout(s),t=!0,i()});return}var a="about:blank";if(e.location.href!==a||r.src===a||r.src==="")return setTimeout(i,0),r.addEventListener("load",i);r.addEventListener("load",i)}}function ph(r,i,o){var e=!1,t;try{t=r.sheet}catch(s){return}if(!t){var n=setTimeout(function(){e||(i(),e=!0)},o);r.addEventListener("load",function(){clearTimeout(n),e=!0,i()})}}function vh(r,i){var o=i.doc,e=i.mirror,t=i.blockClass,n=i.blockSelector,s=i.needsMask,a=i.inlineStylesheet,u=i.maskInputOptions,f=u===void 0?{}:u,l=i.maskTextFn,c=i.maskInputFn,h=i.dataURLOptions,v=h===void 0?{}:h,p=i.inlineImages,m=i.recordCanvas,d=i.keepIframeSrcFn,g=i.newlyAddedElement,w=g===void 0?!1:g,b=i.cssCaptured,S=b===void 0?!1:b,C=mh(o,e);switch(r.nodeType){case r.DOCUMENT_NODE:return r.compatMode!=="CSS1Compat"?{type:he.Document,childNodes:[],compatMode:r.compatMode}:{type:he.Document,childNodes:[]};case r.DOCUMENT_TYPE_NODE:return{type:he.DocumentType,name:r.name,publicId:r.publicId,systemId:r.systemId,rootId:C};case r.ELEMENT_NODE:return yh(r,{doc:o,blockClass:t,blockSelector:n,inlineStylesheet:a,maskInputOptions:f,maskInputFn:c,dataURLOptions:v,inlineImages:p,recordCanvas:m,keepIframeSrcFn:d,newlyAddedElement:w,rootId:C});case r.TEXT_NODE:return gh(r,{doc:o,needsMask:s,maskTextFn:l,rootId:C,cssCaptured:S});case r.CDATA_SECTION_NODE:return{type:he.CDATA,textContent:"",rootId:C};case r.COMMENT_NODE:return{type:he.Comment,textContent:ve.textContent(r)||"",rootId:C};default:return!1}}function mh(r,i){if(i.hasNode(r)){var o=i.getId(r);return o===1?void 0:o}}function gh(r,i){var o=i.needsMask,e=i.maskTextFn,t=i.rootId,n=i.cssCaptured,s=ve.parentNode(r),a=s&&s.tagName,u="",f=a==="STYLE"?!0:void 0,l=a==="SCRIPT"?!0:void 0;return l?u="SCRIPT_PLACEHOLDER":n||(u=ve.textContent(r),f&&u&&(u=Lr(u,Ri(i.doc)))),!f&&!l&&u&&o&&(u=e?e(u,ve.parentElement(r)):u.replace(/[\S]/g,"*")),{type:he.Text,textContent:u||"",rootId:t}}function yh(r,i){for(var o=i.doc,e=i.blockClass,t=i.blockSelector,n=i.inlineStylesheet,s=i.maskInputOptions,a=s===void 0?{}:s,u=i.maskInputFn,f=i.dataURLOptions,l=f===void 0?{}:f,c=i.inlineImages,h=i.recordCanvas,v=i.keepIframeSrcFn,p=i.newlyAddedElement,m=p===void 0?!1:p,d=i.rootId,g=hh(r,e,t),w=ah(r),b={},S=r.attributes.length,C=0;C<S;C++){var x=r.attributes[C];ia(w,x.name,x.value)||(b[x.name]=na(o,w,nt(x.name),x.value))}if(w==="link"&&n){var E=Array.from(o.styleSheets).find(function(Oe){return Oe.href===r.href}),R=null;E&&(R=xi(E)),R&&(delete b.rel,delete b.href,b._cssText=R)}if(w==="style"&&r.sheet){var k=xi(r.sheet);k&&(r.childNodes.length>1&&(k=ih(k,r)),b._cssText=k)}if(w==="input"||w==="textarea"||w==="select"){var N=r.value,ae=r.checked;b.type!=="radio"&&b.type!=="checkbox"&&b.type!=="submit"&&b.type!=="button"&&N?b.value=Tr({element:r,type:Nr(r),tagName:w,value:N,maskInputOptions:a,maskInputFn:u}):ae&&(b.checked=ae)}if(w==="option"&&(r.selected&&!a.select?b.selected=!0:delete b.selected),w==="dialog"&&r.open&&(b.rr_open_mode=r.matches("dialog:modal")?"modal":"non-modal"),w==="canvas"&&h){if(r.__context==="2d")Kc(r)||(b.rr_dataURL=r.toDataURL(l.type,l.quality));else if(!("__context"in r)){var _=r.toDataURL(l.type,l.quality),L=o.createElement("canvas");L.width=r.width,L.height=r.height;var oe=L.toDataURL(l.type,l.quality);_!==oe&&(b.rr_dataURL=_)}}if(w==="img"&&c){It||(It=o.createElement("canvas"),ta=It.getContext("2d"));var z=r,Ce=z.currentSrc||z.getAttribute("src")||"<unknown-src>",be=z.crossOrigin,pe=function(){z.removeEventListener("load",pe);try{It.width=z.naturalWidth,It.height=z.naturalHeight,ta.drawImage(z,0,0),b.rr_dataURL=It.toDataURL(l.type,l.quality)}catch(Oe){if(z.crossOrigin!=="anonymous"){z.crossOrigin="anonymous",z.complete&&z.naturalWidth!==0?pe():z.addEventListener("load",pe);return}else console.warn("Cannot inline img src="+Ce+"! Error: "+Oe)}z.crossOrigin==="anonymous"&&(be?b.crossOrigin=be:z.removeAttribute("crossorigin"))};z.complete&&z.naturalWidth!==0?pe():z.addEventListener("load",pe)}if(w==="audio"||w==="video"){var ie=b;ie.rr_mediaState=r.paused?"paused":"played",ie.rr_mediaCurrentTime=r.currentTime,ie.rr_mediaPlaybackRate=r.playbackRate,ie.rr_mediaMuted=r.muted,ie.rr_mediaLoop=r.loop,ie.rr_mediaVolume=r.volume}if(m||(r.scrollLeft&&(b.rr_scrollLeft=r.scrollLeft),r.scrollTop&&(b.rr_scrollTop=r.scrollTop)),g){var de=r.getBoundingClientRect(),dt=de.width,Ne=de.height;b={class:b.class,rr_width:""+dt+"px",rr_height:""+Ne+"px"}}w==="iframe"&&!v(b.src)&&(r.contentDocument||(b.rr_src=b.src),delete b.src);var pt;try{customElements.get(w)&&(pt=!0)}catch(Oe){}return{type:he.Element,tagName:w,attributes:b,childNodes:[],isSVG:ch(r)||void 0,needBlock:g,rootId:d,isCustom:pt}}function Y(r){return r==null?"":r.toLowerCase()}function wh(r,i){if(i.comment&&r.type===he.Comment)return!0;if(r.type===he.Element){if(i.script&&(r.tagName==="script"||r.tagName==="link"&&(r.attributes.rel==="preload"&&r.attributes.as==="script"||r.attributes.rel==="modulepreload")||r.tagName==="link"&&r.attributes.rel==="prefetch"&&typeof r.attributes.href=="string"&&Qs(r.attributes.href)==="js"))return!0;if(i.headFavicon&&(r.tagName==="link"&&r.attributes.rel==="shortcut icon"||r.tagName==="meta"&&(Y(r.attributes.name).match(/^msapplication-tile(image|color)$/)||Y(r.attributes.name)==="application-name"||Y(r.attributes.rel)==="icon"||Y(r.attributes.rel)==="apple-touch-icon"||Y(r.attributes.rel)==="shortcut icon")))return!0;if(r.tagName==="meta"){if(i.headMetaDescKeywords&&Y(r.attributes.name).match(/^description|keywords$/))return!0;if(i.headMetaSocial&&(Y(r.attributes.property).match(/^(og|twitter|fb):/)||Y(r.attributes.name).match(/^(og|twitter):/)||Y(r.attributes.name)==="pinterest"))return!0;if(i.headMetaRobots&&(Y(r.attributes.name)==="robots"||Y(r.attributes.name)==="googlebot"||Y(r.attributes.name)==="bingbot"))return!0;if(i.headMetaHttpEquiv&&r.attributes["http-equiv"]!==void 0)return!0;if(i.headMetaAuthorship&&(Y(r.attributes.name)==="author"||Y(r.attributes.name)==="generator"||Y(r.attributes.name)==="framework"||Y(r.attributes.name)==="publisher"||Y(r.attributes.name)==="progid"||Y(r.attributes.property).match(/^article:/)||Y(r.attributes.property).match(/^product:/)))return!0;if(i.headMetaVerification&&(Y(r.attributes.name)==="google-site-verification"||Y(r.attributes.name)==="yandex-verification"||Y(r.attributes.name)==="csrf-token"||Y(r.attributes.name)==="p:domain_verify"||Y(r.attributes.name)==="verify-v1"||Y(r.attributes.name)==="verification"||Y(r.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function xt(r,i){var o=i.doc,e=i.mirror,t=i.blockClass,n=i.blockSelector,s=i.maskTextClass,a=i.maskTextSelector,u=i.skipChild,f=u===void 0?!1:u,l=i.inlineStylesheet,c=l===void 0?!0:l,h=i.maskInputOptions,v=h===void 0?{}:h,p=i.maskTextFn,m=i.maskInputFn,d=i.slimDOMOptions,g=i.dataURLOptions,w=g===void 0?{}:g,b=i.inlineImages,S=b===void 0?!1:b,C=i.recordCanvas,x=C===void 0?!1:C,E=i.onSerialize,R=i.onIframeLoad,k=i.iframeLoadTimeout,N=k===void 0?5e3:k,ae=i.onStylesheetLoad,_=i.stylesheetLoadTimeout,L=_===void 0?5e3:_,oe=i.keepIframeSrcFn,z=oe===void 0?function(){return!1}:oe,Ce=i.newlyAddedElement,be=Ce===void 0?!1:Ce,pe=i.cssCaptured,ie=pe===void 0?!1:pe,de=i.needsMask,dt=i.preserveWhiteSpace,Ne=dt===void 0?!0:dt;if(!de){var pt=de===void 0;de=oa(r,s,a,pt)}var Oe=vh(r,{doc:o,mirror:e,blockClass:t,blockSelector:n,needsMask:de,inlineStylesheet:c,maskInputOptions:v,maskTextFn:p,maskInputFn:m,dataURLOptions:w,inlineImages:S,recordCanvas:x,keepIframeSrcFn:z,newlyAddedElement:be,cssCaptured:ie});if(!Oe)return console.warn(r,"not serialized"),null;var Qe;e.hasNode(r)?Qe=e.getId(r):wh(Oe,d)||!Ne&&Oe.type===he.Text&&!Oe.textContent.replace(/^\s+|\s+$/gm,"").length?Qe=Xt:Qe=ea();var G=Object.assign(Oe,{id:Qe});if(e.add(r,G),Qe===Xt)return null;E&&E(r);var Gt=!f;if(G.type===he.Element){Gt=Gt&&!G.needBlock,delete G.needBlock;var qt=ve.shadowRoot(r);qt&&Kt(qt)&&(G.isShadowHost=!0)}if((G.type===he.Document||G.type===he.Element)&&Gt){d.headWhitespace&&G.type===he.Element&&G.tagName==="head"&&(Ne=!1);var et={doc:o,mirror:e,blockClass:t,blockSelector:n,needsMask:de,maskTextClass:s,maskTextSelector:a,skipChild:f,inlineStylesheet:c,maskInputOptions:v,maskTextFn:p,maskInputFn:m,slimDOMOptions:d,dataURLOptions:w,inlineImages:S,recordCanvas:x,preserveWhiteSpace:Ne,onSerialize:E,onIframeLoad:R,iframeLoadTimeout:N,onStylesheetLoad:ae,stylesheetLoadTimeout:L,keepIframeSrcFn:z,cssCaptured:!1};if(!(G.type===he.Element&&G.tagName==="textarea"&&G.attributes.value!==void 0)){G.type===he.Element&&G.attributes._cssText!==void 0&&typeof G.attributes._cssText=="string"&&(et.cssCaptured=!0);for(var pi=I(Array.from(ve.childNodes(r))),Vt;!(Vt=pi()).done;){var vi=Vt.value,mi=xt(vi,et);mi&&G.childNodes.push(mi)}}var $r=null;if(Js(r)&&($r=ve.shadowRoot(r)))for(var vt=I(Array.from(ve.childNodes($r))),mt;!(mt=vt()).done;){var gt=mt.value,yt=xt(gt,et);yt&&(Kt($r)&&(yt.isShadow=!0),G.childNodes.push(yt))}}var wt=ve.parentNode(r);return wt&&Zt(wt)&&Kt(wt)&&(G.isShadow=!0),G.type===he.Element&&G.tagName==="iframe"&&dh(r,function(){var ze=r.contentDocument;if(ze&&R){var Ht=xt(ze,{doc:ze,mirror:e,blockClass:t,blockSelector:n,needsMask:de,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:c,maskInputOptions:v,maskTextFn:p,maskInputFn:m,slimDOMOptions:d,dataURLOptions:w,inlineImages:S,recordCanvas:x,preserveWhiteSpace:Ne,onSerialize:E,onIframeLoad:R,iframeLoadTimeout:N,onStylesheetLoad:ae,stylesheetLoadTimeout:L,keepIframeSrcFn:z});Ht&&R(r,Ht)}},N),G.type===he.Element&&G.tagName==="link"&&typeof G.attributes.rel=="string"&&(G.attributes.rel==="stylesheet"||G.attributes.rel==="preload"&&typeof G.attributes.href=="string"&&Qs(G.attributes.href)==="css")&&ph(r,function(){if(ae){var ze=xt(r,{doc:o,mirror:e,blockClass:t,blockSelector:n,needsMask:de,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:c,maskInputOptions:v,maskTextFn:p,maskInputFn:m,slimDOMOptions:d,dataURLOptions:w,inlineImages:S,recordCanvas:x,preserveWhiteSpace:Ne,onSerialize:E,onIframeLoad:R,iframeLoadTimeout:N,onStylesheetLoad:ae,stylesheetLoadTimeout:L,keepIframeSrcFn:z});ze&&ae(r,ze)}},L),G}function bh(r,i){var o=i||{},e=o.mirror,t=e===void 0?new Ks:e,n=o.blockClass,s=n===void 0?"rr-block":n,a=o.blockSelector,u=a===void 0?null:a,f=o.maskTextClass,l=f===void 0?"rr-mask":f,c=o.maskTextSelector,h=c===void 0?null:c,v=o.inlineStylesheet,p=v===void 0?!0:v,m=o.inlineImages,d=m===void 0?!1:m,g=o.recordCanvas,w=g===void 0?!1:g,b=o.maskAllInputs,S=b===void 0?!1:b,C=o.maskTextFn,x=o.maskInputFn,E=o.slimDOM,R=E===void 0?!1:E,k=o.dataURLOptions,N=o.preserveWhiteSpace,ae=o.onSerialize,_=o.onIframeLoad,L=o.iframeLoadTimeout,oe=o.onStylesheetLoad,z=o.stylesheetLoadTimeout,Ce=o.keepIframeSrcFn,be=Ce===void 0?function(){return!1}:Ce,pe=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,ie=R===!0||R==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:R==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:R===!1?{}:R;return xt(r,{doc:r,mirror:t,blockClass:s,blockSelector:u,maskTextClass:l,maskTextSelector:h,skipChild:!1,inlineStylesheet:p,maskInputOptions:pe,maskTextFn:C,maskInputFn:x,slimDOMOptions:ie,dataURLOptions:k,inlineImages:d,recordCanvas:w,preserveWhiteSpace:N,onSerialize:ae,onIframeLoad:_,iframeLoadTimeout:L,onStylesheetLoad:oe,stylesheetLoadTimeout:z,keepIframeSrcFn:be,newlyAddedElement:!1})}function Sh(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Ch(r){if(r.__esModule)return r;var i=r.default;if(typeof i=="function"){var o=function e(){return A(this,e)?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};o.prototype=i.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(r).forEach(function(e){var t=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(o,e,t.get?t:{enumerable:!0,get:function(){return r[e]}})}),o}var Ei={exports:{}},K=String,sa=function(){return{isColorSupported:!1,reset:K,bold:K,dim:K,italic:K,underline:K,inverse:K,hidden:K,strikethrough:K,black:K,red:K,green:K,yellow:K,blue:K,magenta:K,cyan:K,white:K,gray:K,bgBlack:K,bgRed:K,bgGreen:K,bgYellow:K,bgBlue:K,bgMagenta:K,bgCyan:K,bgWhite:K}};Ei.exports=sa(),Ei.exports.createColors=sa;var Ih=Ei.exports,Oh={},xh=Object.freeze(Object.defineProperty({__proto__:null,default:Oh},Symbol.toStringTag,{value:"Module"})),ue=Ch(xh),aa=Ih,ua=ue,Ai=(function(r){ee(i,r);function i(e,t,n,s,a,u){var f;return f=r.call(this,e)||this,f.name="CssSyntaxError",f.reason=e,a&&(f.file=a),s&&(f.source=s),u&&(f.plugin=u),typeof t!="undefined"&&typeof n!="undefined"&&(typeof t=="number"?(f.line=t,f.column=n):(f.line=t.line,f.column=t.column,f.endLine=n.line,f.endColumn=n.column)),f.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(f,i),f}var o=i.prototype;return o.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},o.showSourceCode=function(t){var n=this;if(!this.source)return"";var s=this.source;t==null&&(t=aa.isColorSupported),ua&&t&&(s=ua(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),f=Math.min(this.line+2,a.length),l=String(f).length,c,h;if(t){var v=aa.createColors(!0),p=v.bold,m=v.gray,d=v.red;c=function(g){return p(d(g))},h=function(g){return m(g)}}else c=h=function(g){return g};return a.slice(u,f).map(function(g,w){var b=u+1+w,S=" "+(" "+b).slice(-l)+" | ";if(b===n.line){var C=h(S.replace(/\d/g," "))+g.slice(0,n.column-1).replace(/[^\t]/g," ");return c(">")+h(S)+g+"\n "+C+c("^")}return" "+h(S)+g}).join("\n")},o.toString=function(){var t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t},i})(Jt(Error)),Mi=Ai;Ai.default=Ai;var Ge={};Ge.isClean=Symbol("isClean"),Ge.my=Symbol("my");var fa={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Rh(r){return r[0].toUpperCase()+r.slice(1)}var $i=(function(){function r(o){this.builder=o}var i=r.prototype;return i.atrule=function(e,t){var n="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?n+=e.raws.afterName:s&&(n+=" "),e.nodes)this.block(e,n+s);else{var a=(e.raws.between||"")+(t?";":"");this.builder(n+s+a,e)}},i.beforeAfter=function(e,t){var n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):t==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");for(var s=e.parent,a=0;s&&s.type!=="root";)a+=1,s=s.parent;if(n.includes("\n")){var u=this.raw(e,null,"indent");if(u.length)for(var f=0;f<a;f++)n+=u}return n},i.block=function(e,t){var n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",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")},i.body=function(e){for(var t=e.nodes.length-1;t>0&&e.nodes[t].type==="comment";)t-=1;for(var n=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,t!==s||n)}},i.comment=function(e){var t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)},i.decl=function(e,t){var n=this.raw(e,"between","colon"),s=e.prop+n+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),t&&(s+=";"),this.builder(s,e)},i.document=function(e){this.body(e)},i.raw=function(e,t,n){var s;if(n||(n=t),t&&(s=e.raws[t],typeof s!="undefined"))return s;var a=e.parent;if(n==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return fa[n];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[n]!="undefined")return u.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);var f="raw"+Rh(n);return this[f]?s=this[f](u,e):u.walk(function(l){if(s=l.raws[t],typeof s!="undefined")return!1}),typeof s=="undefined"&&(s=fa[n]),u.rawCache[n]=s,s},i.rawBeforeClose=function(e){var t;return e.walk(function(n){if(n.nodes&&n.nodes.length>0&&typeof n.raws.after!="undefined")return t=n.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},i.rawBeforeComment=function(e,t){var n;return e.walkComments(function(s){if(typeof s.raws.before!="undefined")return n=s.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n=="undefined"?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n},i.rawBeforeDecl=function(e,t){var n;return e.walkDecls(function(s){if(typeof s.raws.before!="undefined")return n=s.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n=="undefined"?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n},i.rawBeforeOpen=function(e){var t;return e.walk(function(n){if(n.type!=="decl"&&(t=n.raws.between,typeof t!="undefined"))return!1}),t},i.rawBeforeRule=function(e){var t;return e.walk(function(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before!="undefined")return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},i.rawColon=function(e){var t;return e.walkDecls(function(n){if(typeof n.raws.between!="undefined")return t=n.raws.between.replace(/[^\s:]/g,""),!1}),t},i.rawEmptyBody=function(e){var t;return e.walk(function(n){if(n.nodes&&n.nodes.length===0&&(t=n.raws.after,typeof t!="undefined"))return!1}),t},i.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var t;return e.walk(function(n){var s=n.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof n.raws.before!="undefined"){var a=n.raws.before.split("\n");return t=a[a.length-1],t=t.replace(/\S/g,""),!1}}),t},i.rawSemicolon=function(e){var t;return e.walk(function(n){if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(t=n.raws.semicolon,typeof t!="undefined"))return!1}),t},i.rawValue=function(e,t){var n=e[t],s=e.raws[t];return s&&s.value===n?s.raw:n},i.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},i.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},i.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},r})(),la=$i;$i.default=$i;var Eh=la;function ki(r,i){var o=new Eh(i);o.stringify(r)}var Br=ki;ki.default=ki;var Ur=Ge.isClean,Ah=Ge.my,Mh=Mi,$h=la,kh=Br;function _i(r,i){var o=new r.constructor;for(var e in r)if(Object.prototype.hasOwnProperty.call(r,e)&&e!=="proxyCache"){var t=r[e],n=typeof t=="undefined"?"undefined":M(t);e==="parent"&&n==="object"?i&&(o[e]=i):e==="source"?o[e]=t:Array.isArray(t)?o[e]=t.map(function(s){return _i(s,o)}):(n==="object"&&t!==null&&(t=_i(t)),o[e]=t)}return o}var Pi=(function(){function r(o){o===void 0&&(o={}),this.raws={},this[Ur]=!1,this[Ah]=!0;for(var e in o)if(e==="nodes"){this.nodes=[];for(var t=I(o[e]),n;!(n=t()).done;){var s=n.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[e]=o[e]}var i=r.prototype;return i.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},i.after=function(e){return this.parent.insertAfter(this,e),this},i.assign=function(e){e===void 0&&(e={});for(var t in e)this[t]=e[t];return this},i.before=function(e){return this.parent.insertBefore(this,e),this},i.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},i.clone=function(e){e===void 0&&(e={});var t=_i(this);for(var n in e)t[n]=e[n];return t},i.cloneAfter=function(e){e===void 0&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},i.cloneBefore=function(e){e===void 0&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},i.error=function(e,t){if(t===void 0&&(t={}),this.source){var n=this.rangeBy(t),s=n.end,a=n.start;return this.source.input.error(e,{column:a.column,line:a.line},{column:s.column,line:s.line},t)}return new Mh(e)},i.getProxyProcessor=function(){return{get:function(t,n){return n==="proxyOf"?t:n==="root"?function(){return t.root().toProxy()}:t[n]},set:function(t,n,s){return t[n]===s||(t[n]=s,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&t.markDirty()),!0}}},i.markDirty=function(){if(this[Ur]){this[Ur]=!1;for(var e=this;e=e.parent;)e[Ur]=!1}},i.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},i.positionBy=function(e,t){var n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){t=this.toString();var s=t.indexOf(e.word);s!==-1&&(n=this.positionInside(s,t))}return n},i.positionInside=function(e,t){for(var n=t||this.toString(),s=this.source.start.column,a=this.source.start.line,u=0;u<e;u++)n[u]==="\n"?(s=1,a+=1):s+=1;return{column:s,line:a}},i.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},i.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var s=this.toString(),a=s.indexOf(e.word);a!==-1&&(t=this.positionInside(a,s),n=this.positionInside(a+e.word.length,s))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}},i.raw=function(e,t){var n=new $h;return n.raw(this,e,t)},i.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},i.replaceWith=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this.parent){for(var s=this,a=!1,u=I(t),f;!(f=u()).done;){var l=f.value;l===this?a=!0:a?(this.parent.insertAfter(s,l),s=l):this.parent.insertBefore(s,l)}a||this.remove()}return this},i.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},i.toJSON=function(e,t){var n={},s=t==null;t=t||new Map;var a=0;for(var u in this)if(Object.prototype.hasOwnProperty.call(this,u)&&!(u==="parent"||u==="proxyCache")){var f=this[u];if(Array.isArray(f))n[u]=f.map(function(c){return(typeof c=="undefined"?"undefined":M(c))==="object"&&c.toJSON?c.toJSON(null,t):c});else if((typeof f=="undefined"?"undefined":M(f))==="object"&&f.toJSON)n[u]=f.toJSON(null,t);else if(u==="source"){var l=t.get(f.input);l==null&&(l=a,t.set(f.input,a),a++),n[u]={end:f.end,inputId:l,start:f.start}}else n[u]=f}return s&&(n.inputs=[].concat(t.keys()).map(function(c){return c.toJSON()})),n},i.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},i.toString=function(e){e===void 0&&(e=kh),e.stringify&&(e=e.stringify);var t="";return e(this,function(n){t+=n}),t},i.warn=function(e,t,n){var s={node:this};for(var a in n)s[a]=n[a];return e.warn(t,s)},Z(r,[{key:"proxyOf",get:function(){return this}}]),r})(),zr=Pi;Pi.default=Pi;var _h=zr,Ti=(function(r){ee(i,r);function i(o){var e;return o&&typeof o.value!="undefined"&&typeof o.value!="string"&&(o=T({},o,{value:String(o.value)})),e=r.call(this,o)||this,e.type="decl",e}return Z(i,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),i})(_h),Wr=Ti;Ti.default=Ti;var Ph="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Th=function(r){r===void 0&&(r=21);for(var i="",o=r;o--;)i+=Ph[Math.random()*64|0];return i},Nh={nanoid:Th},ca=ue.SourceMapConsumer,ha=ue.SourceMapGenerator,Lh=ue.existsSync,Dh=ue.readFileSync,Ni=ue.dirname,Fh=ue.join;function Bh(r){return Buffer?Buffer.from(r,"base64").toString():window.atob(r)}var Li=(function(){function r(o,e){if(e.map!==!1){this.loadAnnotation(o),this.inline=this.startWith(this.annotation,"data:");var t=e.map?e.map.prev:void 0,n=this.loadMap(e.from,t);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=Ni(this.mapFile)),n&&(this.text=n)}}var i=r.prototype;return i.consumer=function(){return this.consumerCache||(this.consumerCache=new ca(this.text)),this.consumerCache},i.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,n=/^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(t.test(e)||n.test(e))return Bh(e.substr(RegExp.lastMatch.length));var u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},i.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},i.isMap=function(e){return(typeof e=="undefined"?"undefined":M(e))!=="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)},i.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var n=e.lastIndexOf(t.pop()),s=e.indexOf("*/",n);n>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,s)))}},i.loadFile=function(e){if(this.root=Ni(e),Lh(e))return this.mapFile=e,Dh(e,"utf-8").toString().trim()},i.loadMap=function(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){var n=t(e);if(n){var s=this.loadFile(n);if(!s)throw new Error("Unable to load previous source map: "+n.toString());return s}}else{if(A(t,ca))return ha.fromSourceMap(t).toString();if(A(t,ha))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var a=this.annotation;return e&&(a=Fh(Ni(e),a)),this.loadFile(a)}}},i.startWith=function(e,t){return e?e.substr(0,t.length)===t:!1},i.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},r})(),da=Li;Li.default=Li;var Uh=ue.SourceMapConsumer,zh=ue.SourceMapGenerator,pa=ue.fileURLToPath,jr=ue.pathToFileURL,Di=ue.isAbsolute,Fi=ue.resolve,Wh=Nh.nanoid,Bi=ue,va=Mi,jh=da,Ui=Symbol("fromOffsetCache"),Gh=!!(Uh&&zh),ma=!!(Fi&&Di),Gr=(function(){function r(o,e){if(e===void 0&&(e={}),o===null||typeof o=="undefined"||(typeof o=="undefined"?"undefined":M(o))==="object"&&!o.toString)throw new Error("PostCSS received "+o+" instead of CSS string");if(this.css=o.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!ma||/^\w+:\/\//.test(e.from)||Di(e.from)?this.file=e.from:this.file=Fi(e.from)),ma&&Gh){var t=new jh(this.css,e);if(t.text){this.map=t;var n=t.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+Wh(6)+">"),this.map&&(this.map.file=this.from)}var i=r.prototype;return i.error=function(e,t,n,s){s===void 0&&(s={});var a,u,f;if(t&&(typeof t=="undefined"?"undefined":M(t))==="object"){var l=t,c=n;if(typeof l.offset=="number"){var h=this.fromOffset(l.offset);t=h.line,n=h.col}else t=l.line,n=l.column;if(typeof c.offset=="number"){var v=this.fromOffset(c.offset);u=v.line,f=v.col}else u=c.line,f=c.column}else if(!n){var p=this.fromOffset(t);t=p.line,n=p.col}var m=this.origin(t,n,u,f);return m?a=new va(e,m.endLine===void 0?m.line:{column:m.column,line:m.line},m.endLine===void 0?m.column:{column:m.endColumn,line:m.endLine},m.source,m.file,s.plugin):a=new va(e,u===void 0?t:{column:n,line:t},u===void 0?n:{column:f,line:u},this.css,this.file,s.plugin),a.input={column:n,endColumn:f,endLine:u,line:t,source:this.css},this.file&&(jr&&(a.input.url=jr(this.file).toString()),a.input.file=this.file),a},i.fromOffset=function(e){var t,n;if(this[Ui])n=this[Ui];else{var s=this.css.split("\n");n=new Array(s.length);for(var a=0,u=0,f=s.length;u<f;u++)n[u]=a,a+=s[u].length+1;this[Ui]=n}t=n[n.length-1];var l=0;if(e>=t)l=n.length-1;else for(var c=n.length-2,h;l<c;)if(h=l+(c-l>>1),e<n[h])c=h-1;else if(e>=n[h+1])l=h+1;else{l=h;break}return{col:e-n[l]+1,line:l+1}},i.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Fi(this.map.consumer().sourceRoot||this.map.root||".",e)},i.origin=function(e,t,n,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:t,line:e});if(!u.source)return!1;var f;typeof n=="number"&&(f=a.originalPositionFor({column:s,line:n}));var l;Di(u.source)?l=jr(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||jr(this.map.mapFile));var c={column:u.column,endColumn:f&&f.column,endLine:f&&f.line,line:u.line,url:l.toString()};if(l.protocol==="file:")if(pa)c.file=pa(l);else throw new Error("file: protocol is not available in this PostCSS build");var h=a.sourceContentFor(u.source);return h&&(c.source=h),c},i.toJSON=function(){for(var e={},t=0,n=["hasBOM","css","file","id"];t<n.length;t++){var s=n[t];this[s]!=null&&(e[s]=this[s])}return this.map&&(e.map=T({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Z(r,[{key:"from",get:function(){return this.file||this.id}}]),r})(),qr=Gr;Gr.default=Gr,Bi&&Bi.registerInput&&Bi.registerInput(Gr);var ga=ue.SourceMapConsumer,Vr=ue.SourceMapGenerator,Hr=ue.dirname,ya=ue.relative,wa=ue.resolve,ba=ue.sep,Sa=ue.pathToFileURL,qh=qr,Vh=!!(ga&&Vr),Hh=!!(Hr&&wa&&ya&&ba),Yh=(function(){function r(o,e,t,n){this.stringify=o,this.mapOpts=t.map||{},this.root=e,this.opts=t,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var i=r.prototype;return i.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 t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},i.applyPrevMaps=function(){for(var e=I(this.previous()),t;!(t=e()).done;){var n=t.value,s=this.toUrl(this.path(n.file)),a=n.root||Hr(n.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new ga(n.text),u.sourcesContent&&(u.sourcesContent=null)):u=n.consumer(),this.map.applySourceMap(u,s,this.toUrl(this.path(a)))}},i.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},i.generate=function(){if(this.clearAnnotation(),Hh&&Vh&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},i.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=Vr.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Vr({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]},i.generateString=function(){var e=this;this.css="",this.map=new Vr({file:this.outputFile(),ignoreInvalidMapping:!0});var t=1,n=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,f;this.stringify(this.root,function(l,c,h){if(e.css+=l,c&&h!=="end"&&(a.generated.line=t,a.generated.column=n-1,c.source&&c.source.start?(a.source=e.sourcePath(c),a.original.line=c.source.start.line,a.original.column=c.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?(t+=u.length,f=l.lastIndexOf("\n"),n=l.length-f):n+=l.length,c&&h!=="start"){var v=c.parent||{raws:{}},p=c.type==="decl"||c.type==="atrule"&&!c.nodes;(!p||c!==v.last||v.raws.semicolon)&&(c.source&&c.source.end?(a.source=e.sourcePath(c),a.original.line=c.source.end.line,a.original.column=c.source.end.column-1,a.generated.line=t,a.generated.column=n-2,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=t,a.generated.column=n-1,e.map.addMapping(a)))}})},i.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},i.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(t){return t.inline}):!0},i.isMap=function(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0},i.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(e){return e.withContent()}):!0},i.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},i.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var n=this.opts.to?Hr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=Hr(wa(n,this.mapOpts.annotation)));var s=ya(n,e);return this.memoizedPaths.set(e,s),s},i.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(n){if(n.source&&n.source.input.map){var s=n.source.input.map;e.previousMaps.includes(s)||e.previousMaps.push(s)}});else{var t=new qh(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},i.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!t[a]){t[a]=!0;var u=e.usesFileUrls?e.toFileUrl(a):e.toUrl(e.path(a));e.map.setSourceContent(u,s.source.input.css)}}});else if(this.css){var n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}},i.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))},i.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},i.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(Sa){var n=Sa(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")},i.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;ba==="\\"&&(e=e.replace(/\\/g,"/"));var n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n},r})(),Ca=Yh,Jh=zr,zi=(function(r){ee(i,r);function i(o){var e;return e=r.call(this,o)||this,e.type="comment",e}return i})(Jh),Yr=zi;zi.default=zi;var Ia=Ge.isClean,Oa=Ge.my,xa=Wr,Ra=Yr,Zh=zr,Ea,Wi,ji,Aa;function Ma(r){return r.map(function(i){return i.nodes&&(i.nodes=Ma(i.nodes)),delete i.source,i})}function $a(r){if(r[Ia]=!1,r.proxyOf.nodes)for(var i=I(r.proxyOf.nodes),o;!(o=i()).done;){var e=o.value;$a(e)}}var Le=(function(r){ee(i,r);function i(){return r.apply(this,arguments)||this}var o=i.prototype;return o.append=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];for(var a=I(n),u;!(u=a()).done;)for(var f=u.value,l=this.normalize(f,this.last),c=I(l),h;!(h=c()).done;){var v=h.value;this.proxyOf.nodes.push(v)}return this.markDirty(),this},o.cleanRaws=function(t){if(r.prototype.cleanRaws.call(this,t),this.nodes)for(var n=I(this.nodes),s;!(s=n()).done;){var a=s.value;a.cleanRaws(t)}},o.each=function(t){if(this.proxyOf.nodes){for(var n=this.getIterator(),s,a;this.indexes[n]<this.proxyOf.nodes.length&&(s=this.indexes[n],a=t(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[n]+=1;return delete this.indexes[n],a}},o.every=function(t){return this.nodes.every(t)},o.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var t=this.lastEach;return this.indexes[t]=0,t},o.getProxyProcessor=function(){return{get:function(n,s){return s==="proxyOf"?n:n[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),f=0;f<a;f++)u[f]=arguments[f];var l;return(l=n)[s].apply(l,[].concat(u.map(function(c){return typeof c=="function"?function(h,v){return c(h.toProxy(),v)}:c})))}:s==="every"||s==="some"?function(a){return n[s](function(u){for(var f=arguments.length,l=new Array(f>1?f-1:0),c=1;c<f;c++)l[c-1]=arguments[c];return a.apply(void 0,[].concat([u.toProxy()],l))})}:s==="root"?function(){return n.root().toProxy()}:s==="nodes"?n.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?n[s].toProxy():n[s]:n[s]},set:function(n,s,a){return n[s]===a||(n[s]=a,(s==="name"||s==="params"||s==="selector")&&n.markDirty()),!0}}},o.index=function(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))},o.insertAfter=function(t,n){var s=this.index(t),a=this.normalize(n,this.proxyOf.nodes[s]).reverse();s=this.index(t);for(var u=I(a),f;!(f=u()).done;){var l=f.value;this.proxyOf.nodes.splice(s+1,0,l)}var c;for(var h in this.indexes)c=this.indexes[h],s<c&&(this.indexes[h]=c+a.length);return this.markDirty(),this},o.insertBefore=function(t,n){var s=this.index(t),a=s===0?"prepend":!1,u=this.normalize(n,this.proxyOf.nodes[s],a).reverse();s=this.index(t);for(var f=I(u),l;!(l=f()).done;){var c=l.value;this.proxyOf.nodes.splice(s,0,c)}var h;for(var v in this.indexes)h=this.indexes[v],s<=h&&(this.indexes[v]=h+u.length);return this.markDirty(),this},o.normalize=function(t,n){var s=this;if(typeof t=="string")t=Ma(Ea(t).nodes);else if(typeof t=="undefined")t=[];else if(Array.isArray(t)){t=t.slice(0);for(var a=I(t),u;!(u=a()).done;){var f=u.value;f.parent&&f.parent.removeChild(f,"ignore")}}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(var l=I(t),c;!(c=l()).done;){var h=c.value;h.parent&&h.parent.removeChild(h,"ignore")}}else if(t.type)t=[t];else if(t.prop){if(typeof t.value=="undefined")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new xa(t)]}else if(t.selector)t=[new Wi(t)];else if(t.name)t=[new ji(t)];else if(t.text)t=[new Ra(t)];else throw new Error("Unknown node type in node creation");var v=t.map(function(p){return p[Oa]||i.rebuild(p),p=p.proxyOf,p.parent&&p.parent.removeChild(p),p[Ia]&&$a(p),typeof p.raws.before=="undefined"&&n&&typeof n.raws.before!="undefined"&&(p.raws.before=n.raws.before.replace(/\S/g,"")),p.parent=s.proxyOf,p});return v},o.prepend=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];n=n.reverse();for(var a=I(n),u;!(u=a()).done;){for(var f=u.value,l=this.normalize(f,this.first,"prepend").reverse(),c=I(l),h;!(h=c()).done;){var v=h.value;this.proxyOf.nodes.unshift(v)}for(var p in this.indexes)this.indexes[p]=this.indexes[p]+l.length}return this.markDirty(),this},o.push=function(t){return t.parent=this,this.proxyOf.nodes.push(t),this},o.removeAll=function(){for(var t=I(this.proxyOf.nodes),n;!(n=t()).done;){var s=n.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},o.removeChild=function(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);var n;for(var s in this.indexes)n=this.indexes[s],n>=t&&(this.indexes[s]=n-1);return this.markDirty(),this},o.replaceValues=function(t,n,s){return s||(s=n,n={}),this.walkDecls(function(a){n.props&&!n.props.includes(a.prop)||n.fast&&!a.value.includes(n.fast)||(a.value=a.value.replace(t,s))}),this.markDirty(),this},o.some=function(t){return this.nodes.some(t)},o.walk=function(t){return this.each(function(n,s){var a;try{a=t(n,s)}catch(u){throw n.addToError(u)}return a!==!1&&n.walk&&(a=n.walk(t)),a})},o.walkAtRules=function(t,n){return n?A(t,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&t.test(s.name))return n(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="atrule")return n(s,a)}))},o.walkComments=function(t){return this.walk(function(n,s){if(n.type==="comment")return t(n,s)})},o.walkDecls=function(t,n){return n?A(t,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&t.test(s.prop))return n(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="decl")return n(s,a)}))},o.walkRules=function(t,n){return n?A(t,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&t.test(s.selector))return n(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="rule")return n(s,a)}))},Z(i,[{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]}}]),i})(Zh);Le.registerParse=function(r){Ea=r},Le.registerRule=function(r){Wi=r},Le.registerAtRule=function(r){ji=r},Le.registerRoot=function(r){Aa=r};var it=Le;Le.default=Le,Le.rebuild=function(r){r.type==="atrule"?Object.setPrototypeOf(r,ji.prototype):r.type==="rule"?Object.setPrototypeOf(r,Wi.prototype):r.type==="decl"?Object.setPrototypeOf(r,xa.prototype):r.type==="comment"?Object.setPrototypeOf(r,Ra.prototype):r.type==="root"&&Object.setPrototypeOf(r,Aa.prototype),r[Oa]=!0,r.nodes&&r.nodes.forEach(function(i){Le.rebuild(i)})};var Kh=it,ka,_a,Qt=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,T({type:"document"},e))||this,t.nodes||(t.nodes=[]),t}var o=i.prototype;return o.toResult=function(t){t===void 0&&(t={});var n=new ka(new _a,this,t);return n.stringify()},i})(Kh);Qt.registerLazyResult=function(r){ka=r},Qt.registerProcessor=function(r){_a=r};var Gi=Qt;Qt.default=Qt;var Pa={},Ta=function(i){Pa[i]||(Pa[i]=!0,typeof console!="undefined"&&console.warn&&console.warn(i))},qi=(function(){function r(o,e){if(e===void 0&&(e={}),this.type="warning",this.text=o,e.node&&e.node.source){var t=e.node.rangeBy(e);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(var n in e)this[n]=e[n]}var i=r.prototype;return i.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},r})(),Na=qi;qi.default=qi;var Xh=Na,Vi=(function(){function r(o,e,t){this.processor=o,this.messages=[],this.root=e,this.opts=t,this.css=void 0,this.map=void 0}var i=r.prototype;return i.toString=function(){return this.css},i.warn=function(e,t){t===void 0&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new Xh(e,t);return this.messages.push(n),n},i.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},Z(r,[{key:"content",get:function(){return this.css}}]),r})(),Hi=Vi;Vi.default=Vi;var Yi=39,La=34,Jr=92,Da=47,Zr=10,er=32,Kr=12,Xr=9,Qr=13,Qh=91,ed=93,td=40,rd=41,nd=123,id=125,od=59,sd=42,ad=58,ud=64,en=/[\t\n\f\r "#'()/;[\\\]{}]/g,tn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,fd=/.[\r\n"'(/\\]/,Fa=/[\da-f]/i,ld=function(i,o){o===void 0&&(o={});var e=i.css.valueOf(),t=o.ignoreErrors,n,s,a,u,f,l,c,h,v,p,m=e.length,d=0,g=[],w=[];function b(){return d}function S(R){throw i.error("Unclosed "+R,d)}function C(){return w.length===0&&d>=m}function x(R){if(w.length)return w.pop();if(!(d>=m)){var k=R?R.ignoreUnclosed:!1;switch(n=e.charCodeAt(d),n){case Zr:case er:case Xr:case Qr:case Kr:{s=d;do s+=1,n=e.charCodeAt(s);while(n===er||n===Zr||n===Xr||n===Qr||n===Kr);p=["space",e.slice(d,s)],d=s-1;break}case Qh:case ed:case nd:case id:case ad:case od:case rd:{var N=String.fromCharCode(n);p=[N,N,d];break}case td:{if(h=g.length?g.pop()[1]:"",v=e.charCodeAt(d+1),h==="url"&&v!==Yi&&v!==La&&v!==er&&v!==Zr&&v!==Xr&&v!==Kr&&v!==Qr){s=d;do{if(l=!1,s=e.indexOf(")",s+1),s===-1)if(t||k){s=d;break}else S("bracket");for(c=s;e.charCodeAt(c-1)===Jr;)c-=1,l=!l}while(l);p=["brackets",e.slice(d,s+1),d,s],d=s}else s=e.indexOf(")",d+1),u=e.slice(d,s+1),s===-1||fd.test(u)?p=["(","(",d]:(p=["brackets",u,d,s],d=s);break}case Yi:case La:{a=n===Yi?"'":'"',s=d;do{if(l=!1,s=e.indexOf(a,s+1),s===-1)if(t||k){s=d+1;break}else S("string");for(c=s;e.charCodeAt(c-1)===Jr;)c-=1,l=!l}while(l);p=["string",e.slice(d,s+1),d,s],d=s;break}case ud:{en.lastIndex=d+1,en.test(e),en.lastIndex===0?s=e.length-1:s=en.lastIndex-2,p=["at-word",e.slice(d,s+1),d,s],d=s;break}case Jr:{for(s=d,f=!0;e.charCodeAt(s+1)===Jr;)s+=1,f=!f;if(n=e.charCodeAt(s+1),f&&n!==Da&&n!==er&&n!==Zr&&n!==Xr&&n!==Qr&&n!==Kr&&(s+=1,Fa.test(e.charAt(s)))){for(;Fa.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===er&&(s+=1)}p=["word",e.slice(d,s+1),d,s],d=s;break}default:{n===Da&&e.charCodeAt(d+1)===sd?(s=e.indexOf("*/",d+2)+1,s===0&&(t||k?s=e.length:S("comment")),p=["comment",e.slice(d,s+1),d,s],d=s):(tn.lastIndex=d+1,tn.test(e),tn.lastIndex===0?s=e.length-1:s=tn.lastIndex-2,p=["word",e.slice(d,s+1),d,s],g.push(p),d=s);break}}return d++,p}}function E(R){w.push(R)}return{back:E,endOfFile:C,nextToken:x,position:b}},Ba=it,rn=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,e)||this,t.type="atrule",t}var o=i.prototype;return o.append=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=r.prototype.append).call.apply(a,[].concat([this],n))},o.prepend=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=r.prototype.prepend).call.apply(a,[].concat([this],n))},i})(Ba),Ji=rn;rn.default=rn,Ba.registerAtRule(rn);var Ua=it,za,Wa,Rt=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,e)||this,t.type="root",t.nodes||(t.nodes=[]),t}var o=i.prototype;return o.normalize=function(t,n,s){var a=r.prototype.normalize.call(this,t);if(n){if(s==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(var u=I(a),f;!(f=u()).done;){var l=f.value;l.raws.before=n.raws.before}}return a},o.removeChild=function(t,n){var s=this.index(t);return!n&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),r.prototype.removeChild.call(this,t)},o.toResult=function(t){t===void 0&&(t={});var n=new za(new Wa,this,t);return n.stringify()},i})(Ua);Rt.registerLazyResult=function(r){za=r},Rt.registerProcessor=function(r){Wa=r};var tr=Rt;Rt.default=Rt,Ua.registerRoot(Rt);var rr={comma:function(i){return rr.split(i,[","],!0)},space:function(i){var o=[" ","\n"," "];return rr.split(i,o)},split:function(i,o,e){for(var t=[],n="",s=!1,a=0,u=!1,f="",l=!1,c=I(i),h;!(h=c()).done;){var v=h.value;l?l=!1:v==="\\"?l=!0:u?v===f&&(u=!1):v==='"'||v==="'"?(u=!0,f=v):v==="("?a+=1:v===")"?a>0&&(a-=1):a===0&&o.includes(v)&&(s=!0),s?(n!==""&&t.push(n.trim()),n="",s=!1):n+=v}return(e||n!=="")&&t.push(n.trim()),t}},ja=rr;rr.default=rr;var Ga=it,cd=ja,nn=(function(r){ee(i,r);function i(o){var e;return e=r.call(this,o)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return Z(i,[{key:"selectors",get:function(){return cd.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}]),i})(Ga),Zi=nn;nn.default=nn,Ga.registerRule(nn);var hd=Wr,dd=ld,pd=Yr,vd=Ji,md=tr,qa=Zi,Va={empty:!0,space:!0};function gd(r){for(var i=r.length-1;i>=0;i--){var o=r[i],e=o[3]||o[2];if(e)return e}}var yd=(function(){function r(o){this.input=o,this.root=new md,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}var i=r.prototype;return i.atrule=function(e){var t=new vd;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);for(var n,s,a,u=!1,f=!1,l=[],c=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){f=!0;break}else if(n==="}"){if(l.length>0){for(a=l.length-1,s=l[a];s&&s[0]==="space";)s=l[--a];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),u&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),f&&(t.nodes=[],this.current=t)},i.checkMissedSemicolon=function(e){var t=this.colon(e);if(t!==!1){for(var n=0,s,a=t-1;a>=0&&(s=e[a],!(s[0]!=="space"&&(n+=1,n===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},i.colon=function(e){for(var t=0,n,s,a,u=I(e.entries()),f;!(f=u()).done;){var l=f.value,c=l[0],h=l[1];if(n=h,s=n[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!a)this.doubleColon(n);else{if(a[0]==="word"&&a[1]==="progid")continue;return c}a=n}return!1},i.comment=function(e){var t=new pd;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{var s=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}},i.createTokenizer=function(){this.tokenizer=dd(this.input)},i.decl=function(e,t){var n=new hd;this.init(n,e[0][2]);var s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(s[3]||s[2]||gd(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){n.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),n.raws.between+=u[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));for(var f=[],l;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)f.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(u=e[c],u[1].toLowerCase()==="!important"){n.important=!0;var h=this.stringFrom(e,c);h=this.spacesFromEnd(e)+h,h!==" !important"&&(n.raws.important=h);break}else if(u[1].toLowerCase()==="important"){for(var v=e.slice(0),p="",m=c;m>0;m--){var d=v[m][0];if(p.trim().indexOf("!")===0&&d!=="space")break;p=v.pop()[1]+p}p.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=p,e=v)}if(u[0]!=="space"&&u[0]!=="comment")break}var g=e.some(function(w){return w[0]!=="space"&&w[0]!=="comment"});g&&(n.raws.between+=f.map(function(w){return w[1]}).join(""),f=[]),this.raw(n,"value",f.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},i.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},i.emptyRule=function(e){var t=new qa;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},i.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)},i.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())},i.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},i.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},i.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},i.other=function(e){for(var t=!1,n=null,s=!1,a=null,u=[],f=e[1].startsWith("--"),l=[],c=e;c;){if(n=c[0],l.push(c),n==="("||n==="[")a||(a=c),u.push(n==="("?")":"]");else if(f&&s&&n==="{")a||(a=c),u.push("}");else if(u.length===0)if(n===";")if(s){this.decl(l,f);return}else break;else if(n==="{"){this.rule(l);return}else if(n==="}"){this.tokenizer.back(l.pop()),t=!0;break}else n===":"&&(s=!0);else n===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),u.length>0&&this.unclosedBracket(a),t&&s){if(!f)for(;l.length&&(c=l[l.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,f)}else this.unknownWord(l)},i.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()},i.precheckMissedSemicolon=function(){},i.raw=function(e,t,n,s){for(var a,u,f=n.length,l="",c=!0,h,v,p=0;p<f;p+=1)a=n[p],u=a[0],u==="space"&&p===f-1&&!s?c=!1:u==="comment"?(v=n[p-1]?n[p-1][0]:"empty",h=n[p+1]?n[p+1][0]:"empty",!Va[v]&&!Va[h]?l.slice(-1)===","?c=!1:l+=a[1]:c=!1):l+=a[1];if(!c){var m=n.reduce(function(d,g){return d+g[1]},"");e.raws[t]={raw:m,value:l}}e[t]=l},i.rule=function(e){e.pop();var t=new qa;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},i.spacesAndCommentsFromEnd=function(e){for(var t,n="";e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)n=e.pop()[1]+n;return n},i.spacesAndCommentsFromStart=function(e){for(var t,n="";e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)n+=e.shift()[1];return n},i.spacesFromEnd=function(e){for(var t,n="";e.length&&(t=e[e.length-1][0],t==="space");)n=e.pop()[1]+n;return n},i.stringFrom=function(e,t){for(var n="",s=t;s<e.length;s++)n+=e[s][1];return e.splice(t,e.length-t),n},i.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},i.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},i.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},i.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},i.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},r})(),wd=yd,bd=it,Sd=wd,Cd=qr;function on(r,i){var o=new Cd(r,i),e=new Sd(o);try{e.parse()}catch(t){throw process.env.NODE_ENV!=="production"&&t.name==="CssSyntaxError"&&i&&i.from&&(/\.scss$/i.test(i.from)?t.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(i.from)?t.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(i.from)&&(t.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),t}return e.root}var Ki=on;on.default=on,bd.registerParse(on);var Ae=Ge.isClean,Id=Ge.my,Od=Ca,xd=Br,Rd=it,Ed=Gi,Ad=Ta,Ha=Hi,Md=Ki,$d=tr,kd={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},_d={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},Pd={Once:!0,postcssPlugin:!0,prepare:!0},Et=0;function nr(r){return(typeof r=="undefined"?"undefined":M(r))==="object"&&typeof r.then=="function"}function Ya(r){var i=!1,o=kd[r.type];return r.type==="decl"?i=r.prop.toLowerCase():r.type==="atrule"&&(i=r.name.toLowerCase()),i&&r.append?[o,o+"-"+i,Et,o+"Exit",o+"Exit-"+i]:i?[o,o+"-"+i,o+"Exit",o+"Exit-"+i]:r.append?[o,Et,o+"Exit"]:[o,o+"Exit"]}function Ja(r){var i;return r.type==="document"?i=["Document",Et,"DocumentExit"]:r.type==="root"?i=["Root",Et,"RootExit"]:i=Ya(r),{eventIndex:0,events:i,iterator:0,node:r,visitorIndex:0,visitors:[]}}function Xi(r){return r[Ae]=!1,r.nodes&&r.nodes.forEach(function(i){return Xi(i)}),r}var Qi={},At=(function(){function r(o,e,t){var n=this;this.stringified=!1,this.processed=!1;var s;if((typeof e=="undefined"?"undefined":M(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=Xi(e);else if(A(e,r)||A(e,Ha))s=Xi(e.root),e.map&&(typeof t.map=="undefined"&&(t.map={}),t.map.inline||(t.map.inline=!1),t.map.prev=e.map);else{var a=Md;t.syntax&&(a=t.syntax.parse),t.parser&&(a=t.parser),a.parse&&(a=a.parse);try{s=a(e,t)}catch(u){this.processed=!0,this.error=u}s&&!s[Id]&&Rd.rebuild(s)}this.result=new Ha(o,s,t),this.helpers=T({},Qi,{postcss:Qi,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":M(u))==="object"&&u.prepare?T({},u,u.prepare(n.result)):u})}var i=r.prototype;return i.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},i.catch=function(e){return this.async().catch(e)},i.finally=function(e){return this.async().then(e,e)},i.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},i.handleError=function(e,t){var n=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion&&process.env.NODE_ENV!=="production"){var s=n.postcssPlugin,a=n.postcssVersion,u=this.result.processor.version,f=a.split("."),l=u.split(".");(f[0]!==l[0]||parseInt(f[1])>parseInt(l[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+u+", but "+s+" uses "+a+". Perhaps this is the source of the error below.")}}catch(c){console&&console.error&&console.error(c)}return e},i.prepareVisitors=function(){var e=this;this.listeners={};for(var t=function(l,c,h){e.listeners[c]||(e.listeners[c]=[]),e.listeners[c].push([l,h])},n=I(this.plugins),s;!(s=n()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":M(a))==="object")for(var u in a){if(!_d[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Pd[u])if(M(a[u])==="object")for(var f in a[u])f==="*"?t(a,u,a[u][f]):t(a,u+"-"+f.toLowerCase(),a[u][f]);else typeof a[u]=="function"&&t(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},i.runAsync=function(){var e=this;return kr(function(){var t,n,s,a,u,f,l,c,h,v,p,m;return rt(this,function(d){switch(d.label){case 0:e.plugin=0,t=0,d.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(n=e.plugins[t],s=e.runOnRoot(n),!nr(s))return[3,5];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,s];case 3:return d.sent(),[3,5];case 4:throw a=d.sent(),e.handleError(a);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];u=e.result.root,d.label=7;case 7:if(u[Ae])return[3,14];u[Ae]=!0,f=[Ja(u)],d.label=8;case 8:if(!(f.length>0))return[3,13];if(l=e.visitTick(f),!nr(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 c=d.sent(),h=f[f.length-1].node,e.handleError(c,h);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];v=function(){var g,w,b,S,C;return rt(this,function(x){switch(x.label){case 0:g=m.value,w=g[0],b=g[1],e.result.lastPlugin=w,x.label=1;case 1:return x.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(S=u.nodes.map(function(E){return b(E,e.helpers)}),[4,Promise.all(S)]);case 2:return x.sent(),[3,5];case 3:return[4,b(u,e.helpers)];case 4:x.sent(),x.label=5;case 5:return[3,7];case 6:throw C=x.sent(),e.handleError(C);case 7:return[2]}})},p=I(e.listeners.OnceExit),d.label=15;case 15:return(m=p()).done?[3,18]:[5,Si(v())];case 16:d.sent(),d.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},i.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((typeof e=="undefined"?"undefined":M(e))==="object"&&e.Once){if(this.result.root.type==="document"){var n=this.result.root.nodes.map(function(s){return e.Once(s,t.helpers)});return nr(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}},i.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=xd;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new Od(t,this.result.root,this.result.opts),s=n.generate();return this.result.css=s[0],this.result.map=s[1],this.result},i.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),t;!(t=e()).done;){var n=t.value,s=this.runOnRoot(n);if(nr(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Ae];)a[Ae]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=I(a.nodes),f;!(f=u()).done;){var l=f.value;this.visitSync(this.listeners.OnceExit,l)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},i.then=function(e,t){return process.env.NODE_ENV!=="production"&&("from"in this.opts||Ad("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},i.toString=function(){return this.css},i.visitSync=function(e,t){for(var n=I(e),s;!(s=n()).done;){var a=s.value,u=a[0],f=a[1];this.result.lastPlugin=u;var l=void 0;try{l=f(t,this.helpers)}catch(c){throw this.handleError(c,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(nr(l))throw this.getAsyncError()}},i.visitTick=function(e){var t=e[e.length-1],n=t.node,s=t.visitors;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){var a=s[t.visitorIndex],u=a[0],f=a[1];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=u;try{return f(n.toProxy(),this.helpers)}catch(p){throw this.handleError(p,n)}}if(t.iterator!==0){for(var l=t.iterator,c;c=n.nodes[n.indexes[l]];)if(n.indexes[l]+=1,!c[Ae]){c[Ae]=!0,e.push(Ja(c));return}t.iterator=0,delete n.indexes[l]}for(var h=t.events;t.eventIndex<h.length;){var v=h[t.eventIndex];if(t.eventIndex+=1,v===Et){n.nodes&&n.nodes.length&&(n[Ae]=!0,t.iterator=n.getIterator());return}else if(this.listeners[v]){t.visitors=this.listeners[v];return}}e.pop()},i.walkSync=function(e){var t=this;e[Ae]=!0;for(var n=Ya(e),s=I(n),a;!(a=s()).done;){var u=a.value;if(u===Et)e.nodes&&e.each(function(l){l[Ae]||t.walkSync(l)});else{var f=this.listeners[u];if(f&&this.visitSync(f,e.toProxy()))return}}},i.warnings=function(){return this.sync().warnings()},Z(r,[{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"}}]),r})();At.registerPostcss=function(r){Qi=r};var Za=At;At.default=At,$d.registerLazyResult(At),Ed.registerLazyResult(At);var Td=Ca,Nd=Br,Ld=Ta,Dd=Ki,Fd=Hi,eo=(function(){function r(o,e,t){e=e.toString(),this.stringified=!1,this._processor=o,this._css=e,this._opts=t,this._map=void 0;var n,s=Nd;this.result=new Fd(this._processor,n,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new Td(s,n,this._opts,e);if(u.isMap()){var f=u.generate(),l=f[0],c=f[1];l&&(this.result.css=l),c&&(this.result.map=c)}else u.clearAnnotation(),this.result.css=u.css}var i=r.prototype;return i.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},i.catch=function(e){return this.async().catch(e)},i.finally=function(e){return this.async().then(e,e)},i.sync=function(){if(this.error)throw this.error;return this.result},i.then=function(e,t){return process.env.NODE_ENV!=="production"&&("from"in this._opts||Ld("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},i.toString=function(){return this._css},i.warnings=function(){return[]},Z(r,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=Dd;try{e=t(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),r})(),Bd=eo;eo.default=eo;var Ud=Bd,zd=Za,Wd=Gi,jd=tr,ir=(function(){function r(o){o===void 0&&(o=[]),this.version="8.4.38",this.plugins=this.normalize(o)}var i=r.prototype;return i.normalize=function(e){for(var t=[],n=I(e),s;!(s=n()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":M(a))==="object"&&Array.isArray(a.plugins))t=t.concat(a.plugins);else if((typeof a=="undefined"?"undefined":M(a))==="object"&&a.postcssPlugin)t.push(a);else if(typeof a=="function")t.push(a);else if((typeof a=="undefined"?"undefined":M(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 t},i.process=function(e,t){return t===void 0&&(t={}),!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Ud(this,e,t):new zd(this,e,t)},i.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},r})(),Gd=ir;ir.default=ir,jd.registerProcessor(ir),Wd.registerProcessor(ir);var qd=Wr,Vd=da,Hd=Yr,Yd=Ji,Jd=qr,Zd=tr,Kd=Zi;function or(r,i){if(Array.isArray(r))return r.map(function(c){return or(c)});var o=r.inputs,e=tt(r,["inputs"]);if(o){i=[];for(var t=I(o),n;!(n=t()).done;){var s=n.value,a=T({},s,{__proto__:Jd.prototype});a.map&&(a.map=T({},a.map,{__proto__:Vd.prototype})),i.push(a)}}if(e.nodes&&(e.nodes=r.nodes.map(function(c){return or(c,i)})),e.source){var u=e.source,f=u.inputId,l=tt(u,["inputId"]);e.source=l,f!=null&&(e.source.input=i[f])}if(e.type==="root")return new Zd(e);if(e.type==="decl")return new qd(e);if(e.type==="rule")return new Kd(e);if(e.type==="comment")return new Hd(e);if(e.type==="atrule")return new Yd(e);throw new Error("Unknown node type: "+r.type)}var Xd=or;or.default=or;var Qd=Mi,Ka=Wr,ep=Za,tp=it,to=Gd,rp=Br,np=Xd,Xa=Gi,ip=Na,Qa=Yr,eu=Ji,op=Hi,sp=qr,ap=Ki,up=ja,tu=Zi,ru=tr,fp=zr;function q(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new to(i)}q.plugin=function(i,o){var e=!1;function t(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];console&&console.warn&&!e&&(e=!0,console.warn(i+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(i+": \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:\nhttps://www.w3ctech.com/topic/2226"));var f=o.apply(void 0,[].concat(a));return f.postcssPlugin=i,f.postcssVersion=new to().version,f}var n;return Object.defineProperty(t,"postcss",{get:function(){return n||(n=t()),n}}),t.process=function(s,a,u){return q([t(u)]).process(s,a)},t},q.stringify=rp,q.parse=ap,q.fromJSON=np,q.list=up,q.comment=function(r){return new Qa(r)},q.atRule=function(r){return new eu(r)},q.decl=function(r){return new Ka(r)},q.rule=function(r){return new tu(r)},q.root=function(r){return new ru(r)},q.document=function(r){return new Xa(r)},q.CssSyntaxError=Qd,q.Declaration=Ka,q.Container=tp,q.Processor=to,q.Document=Xa,q.Comment=Qa,q.Warning=ip,q.AtRule=eu,q.Result=op,q.Input=sp,q.Rule=tu,q.Root=ru,q.Node=fp,ep.registerPostcss(q);var lp=q;q.default=q;var te=Sh(lp);te.stringify,te.fromJSON,te.plugin,te.parse,te.list,te.document,te.comment,te.atRule,te.rule,te.decl,te.root,te.CssSyntaxError,te.Declaration,te.Container,te.Processor,te.Document,te.Comment,te.Warning,te.AtRule,te.Result,te.Input,te.Rule,te.Root,te.Node;var cp=Object.defineProperty,hp=function(r,i,o){return i in r?cp(r,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[i]=o},Ie=function(r,i,o){return hp(r,(typeof i=="undefined"?"undefined":M(i))!=="symbol"?i+"":i,o)};function dp(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function pp(r){if(r.__esModule)return r;var i=r.default;if(typeof i=="function"){var o=function e(){return A(this,e)?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};o.prototype=i.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(r).forEach(function(e){var t=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(o,e,t.get?t:{enumerable:!0,get:function(){return r[e]}})}),o}var ro={exports:{}},X=String,nu=function(){return{isColorSupported:!1,reset:X,bold:X,dim:X,italic:X,underline:X,inverse:X,hidden:X,strikethrough:X,black:X,red:X,green:X,yellow:X,blue:X,magenta:X,cyan:X,white:X,gray:X,bgBlack:X,bgRed:X,bgGreen:X,bgYellow:X,bgBlue:X,bgMagenta:X,bgCyan:X,bgWhite:X}};ro.exports=nu(),ro.exports.createColors=nu;var vp=ro.exports,mp={},gp=Object.freeze(Object.defineProperty({__proto__:null,default:mp},Symbol.toStringTag,{value:"Module"})),fe=pp(gp),iu=vp,ou=fe,no=(function(r){ee(i,r);function i(e,t,n,s,a,u){var f;return f=r.call(this,e)||this,f.name="CssSyntaxError",f.reason=e,a&&(f.file=a),s&&(f.source=s),u&&(f.plugin=u),typeof t!="undefined"&&typeof n!="undefined"&&(typeof t=="number"?(f.line=t,f.column=n):(f.line=t.line,f.column=t.column,f.endLine=n.line,f.endColumn=n.column)),f.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(f,i),f}var o=i.prototype;return o.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},o.showSourceCode=function(t){var n=this;if(!this.source)return"";var s=this.source;t==null&&(t=iu.isColorSupported),ou&&t&&(s=ou(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),f=Math.min(this.line+2,a.length),l=String(f).length,c,h;if(t){var v=iu.createColors(!0),p=v.bold,m=v.gray,d=v.red;c=function(g){return p(d(g))},h=function(g){return m(g)}}else c=h=function(g){return g};return a.slice(u,f).map(function(g,w){var b=u+1+w,S=" "+(" "+b).slice(-l)+" | ";if(b===n.line){var C=h(S.replace(/\d/g," "))+g.slice(0,n.column-1).replace(/[^\t]/g," ");return c(">")+h(S)+g+"\n "+C+c("^")}return" "+h(S)+g}).join("\n")},o.toString=function(){var t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t},i})(Jt(Error)),io=no;no.default=no;var qe={};qe.isClean=Symbol("isClean"),qe.my=Symbol("my");var su={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function yp(r){return r[0].toUpperCase()+r.slice(1)}var oo=(function(){function r(o){this.builder=o}var i=r.prototype;return i.atrule=function(e,t){var n="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?n+=e.raws.afterName:s&&(n+=" "),e.nodes)this.block(e,n+s);else{var a=(e.raws.between||"")+(t?";":"");this.builder(n+s+a,e)}},i.beforeAfter=function(e,t){var n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):t==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");for(var s=e.parent,a=0;s&&s.type!=="root";)a+=1,s=s.parent;if(n.includes("\n")){var u=this.raw(e,null,"indent");if(u.length)for(var f=0;f<a;f++)n+=u}return n},i.block=function(e,t){var n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",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")},i.body=function(e){for(var t=e.nodes.length-1;t>0&&e.nodes[t].type==="comment";)t-=1;for(var n=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,t!==s||n)}},i.comment=function(e){var t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)},i.decl=function(e,t){var n=this.raw(e,"between","colon"),s=e.prop+n+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),t&&(s+=";"),this.builder(s,e)},i.document=function(e){this.body(e)},i.raw=function(e,t,n){var s;if(n||(n=t),t&&(s=e.raws[t],typeof s!="undefined"))return s;var a=e.parent;if(n==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return su[n];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[n]!="undefined")return u.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);var f="raw"+yp(n);return this[f]?s=this[f](u,e):u.walk(function(l){if(s=l.raws[t],typeof s!="undefined")return!1}),typeof s=="undefined"&&(s=su[n]),u.rawCache[n]=s,s},i.rawBeforeClose=function(e){var t;return e.walk(function(n){if(n.nodes&&n.nodes.length>0&&typeof n.raws.after!="undefined")return t=n.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},i.rawBeforeComment=function(e,t){var n;return e.walkComments(function(s){if(typeof s.raws.before!="undefined")return n=s.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n=="undefined"?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n},i.rawBeforeDecl=function(e,t){var n;return e.walkDecls(function(s){if(typeof s.raws.before!="undefined")return n=s.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n=="undefined"?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n},i.rawBeforeOpen=function(e){var t;return e.walk(function(n){if(n.type!=="decl"&&(t=n.raws.between,typeof t!="undefined"))return!1}),t},i.rawBeforeRule=function(e){var t;return e.walk(function(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before!="undefined")return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},i.rawColon=function(e){var t;return e.walkDecls(function(n){if(typeof n.raws.between!="undefined")return t=n.raws.between.replace(/[^\s:]/g,""),!1}),t},i.rawEmptyBody=function(e){var t;return e.walk(function(n){if(n.nodes&&n.nodes.length===0&&(t=n.raws.after,typeof t!="undefined"))return!1}),t},i.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var t;return e.walk(function(n){var s=n.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof n.raws.before!="undefined"){var a=n.raws.before.split("\n");return t=a[a.length-1],t=t.replace(/\S/g,""),!1}}),t},i.rawSemicolon=function(e){var t;return e.walk(function(n){if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(t=n.raws.semicolon,typeof t!="undefined"))return!1}),t},i.rawValue=function(e,t){var n=e[t],s=e.raws[t];return s&&s.value===n?s.raw:n},i.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},i.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},i.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},r})(),au=oo;oo.default=oo;var wp=au;function so(r,i){var o=new wp(i);o.stringify(r)}var sn=so;so.default=so;var an=qe.isClean,bp=qe.my,Sp=io,Cp=au,Ip=sn;function ao(r,i){var o=new r.constructor;for(var e in r)if(Object.prototype.hasOwnProperty.call(r,e)&&e!=="proxyCache"){var t=r[e],n=typeof t=="undefined"?"undefined":M(t);e==="parent"&&n==="object"?i&&(o[e]=i):e==="source"?o[e]=t:Array.isArray(t)?o[e]=t.map(function(s){return ao(s,o)}):(n==="object"&&t!==null&&(t=ao(t)),o[e]=t)}return o}var uo=(function(){function r(o){o===void 0&&(o={}),this.raws={},this[an]=!1,this[bp]=!0;for(var e in o)if(e==="nodes"){this.nodes=[];for(var t=I(o[e]),n;!(n=t()).done;){var s=n.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[e]=o[e]}var i=r.prototype;return i.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},i.after=function(e){return this.parent.insertAfter(this,e),this},i.assign=function(e){e===void 0&&(e={});for(var t in e)this[t]=e[t];return this},i.before=function(e){return this.parent.insertBefore(this,e),this},i.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},i.clone=function(e){e===void 0&&(e={});var t=ao(this);for(var n in e)t[n]=e[n];return t},i.cloneAfter=function(e){e===void 0&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},i.cloneBefore=function(e){e===void 0&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},i.error=function(e,t){if(t===void 0&&(t={}),this.source){var n=this.rangeBy(t),s=n.end,a=n.start;return this.source.input.error(e,{column:a.column,line:a.line},{column:s.column,line:s.line},t)}return new Sp(e)},i.getProxyProcessor=function(){return{get:function(t,n){return n==="proxyOf"?t:n==="root"?function(){return t.root().toProxy()}:t[n]},set:function(t,n,s){return t[n]===s||(t[n]=s,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&t.markDirty()),!0}}},i.markDirty=function(){if(this[an]){this[an]=!1;for(var e=this;e=e.parent;)e[an]=!1}},i.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},i.positionBy=function(e,t){var n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){t=this.toString();var s=t.indexOf(e.word);s!==-1&&(n=this.positionInside(s,t))}return n},i.positionInside=function(e,t){for(var n=t||this.toString(),s=this.source.start.column,a=this.source.start.line,u=0;u<e;u++)n[u]==="\n"?(s=1,a+=1):s+=1;return{column:s,line:a}},i.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},i.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var s=this.toString(),a=s.indexOf(e.word);a!==-1&&(t=this.positionInside(a,s),n=this.positionInside(a+e.word.length,s))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}},i.raw=function(e,t){var n=new Cp;return n.raw(this,e,t)},i.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},i.replaceWith=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this.parent){for(var s=this,a=!1,u=I(t),f;!(f=u()).done;){var l=f.value;l===this?a=!0:a?(this.parent.insertAfter(s,l),s=l):this.parent.insertBefore(s,l)}a||this.remove()}return this},i.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},i.toJSON=function(e,t){var n={},s=t==null;t=t||new Map;var a=0;for(var u in this)if(Object.prototype.hasOwnProperty.call(this,u)&&!(u==="parent"||u==="proxyCache")){var f=this[u];if(Array.isArray(f))n[u]=f.map(function(c){return(typeof c=="undefined"?"undefined":M(c))==="object"&&c.toJSON?c.toJSON(null,t):c});else if((typeof f=="undefined"?"undefined":M(f))==="object"&&f.toJSON)n[u]=f.toJSON(null,t);else if(u==="source"){var l=t.get(f.input);l==null&&(l=a,t.set(f.input,a),a++),n[u]={end:f.end,inputId:l,start:f.start}}else n[u]=f}return s&&(n.inputs=[].concat(t.keys()).map(function(c){return c.toJSON()})),n},i.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},i.toString=function(e){e===void 0&&(e=Ip),e.stringify&&(e=e.stringify);var t="";return e(this,function(n){t+=n}),t},i.warn=function(e,t,n){var s={node:this};for(var a in n)s[a]=n[a];return e.warn(t,s)},Z(r,[{key:"proxyOf",get:function(){return this}}]),r})(),un=uo;uo.default=uo;var Op=un,fo=(function(r){ee(i,r);function i(o){var e;return o&&typeof o.value!="undefined"&&typeof o.value!="string"&&(o=T({},o,{value:String(o.value)})),e=r.call(this,o)||this,e.type="decl",e}return Z(i,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),i})(Op),fn=fo;fo.default=fo;var xp="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Rp=function(r){r===void 0&&(r=21);for(var i="",o=r;o--;)i+=xp[Math.random()*64|0];return i},Ep={nanoid:Rp},uu=fe.SourceMapConsumer,fu=fe.SourceMapGenerator,Ap=fe.existsSync,Mp=fe.readFileSync,lo=fe.dirname,$p=fe.join;function kp(r){return Buffer?Buffer.from(r,"base64").toString():window.atob(r)}var co=(function(){function r(o,e){if(e.map!==!1){this.loadAnnotation(o),this.inline=this.startWith(this.annotation,"data:");var t=e.map?e.map.prev:void 0,n=this.loadMap(e.from,t);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=lo(this.mapFile)),n&&(this.text=n)}}var i=r.prototype;return i.consumer=function(){return this.consumerCache||(this.consumerCache=new uu(this.text)),this.consumerCache},i.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,n=/^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(t.test(e)||n.test(e))return kp(e.substr(RegExp.lastMatch.length));var u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},i.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},i.isMap=function(e){return(typeof e=="undefined"?"undefined":M(e))!=="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)},i.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var n=e.lastIndexOf(t.pop()),s=e.indexOf("*/",n);n>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,s)))}},i.loadFile=function(e){if(this.root=lo(e),Ap(e))return this.mapFile=e,Mp(e,"utf-8").toString().trim()},i.loadMap=function(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){var n=t(e);if(n){var s=this.loadFile(n);if(!s)throw new Error("Unable to load previous source map: "+n.toString());return s}}else{if(A(t,uu))return fu.fromSourceMap(t).toString();if(A(t,fu))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var a=this.annotation;return e&&(a=$p(lo(e),a)),this.loadFile(a)}}},i.startWith=function(e,t){return e?e.substr(0,t.length)===t:!1},i.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},r})(),lu=co;co.default=co;var _p=fe.SourceMapConsumer,Pp=fe.SourceMapGenerator,cu=fe.fileURLToPath,ln=fe.pathToFileURL,ho=fe.isAbsolute,po=fe.resolve,Tp=Ep.nanoid,vo=fe,hu=io,Np=lu,mo=Symbol("fromOffsetCache"),Lp=!!(_p&&Pp),du=!!(po&&ho),cn=(function(){function r(o,e){if(e===void 0&&(e={}),o===null||typeof o=="undefined"||(typeof o=="undefined"?"undefined":M(o))==="object"&&!o.toString)throw new Error("PostCSS received "+o+" instead of CSS string");if(this.css=o.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!du||/^\w+:\/\//.test(e.from)||ho(e.from)?this.file=e.from:this.file=po(e.from)),du&&Lp){var t=new Np(this.css,e);if(t.text){this.map=t;var n=t.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+Tp(6)+">"),this.map&&(this.map.file=this.from)}var i=r.prototype;return i.error=function(e,t,n,s){s===void 0&&(s={});var a,u,f;if(t&&(typeof t=="undefined"?"undefined":M(t))==="object"){var l=t,c=n;if(typeof l.offset=="number"){var h=this.fromOffset(l.offset);t=h.line,n=h.col}else t=l.line,n=l.column;if(typeof c.offset=="number"){var v=this.fromOffset(c.offset);u=v.line,f=v.col}else u=c.line,f=c.column}else if(!n){var p=this.fromOffset(t);t=p.line,n=p.col}var m=this.origin(t,n,u,f);return m?a=new hu(e,m.endLine===void 0?m.line:{column:m.column,line:m.line},m.endLine===void 0?m.column:{column:m.endColumn,line:m.endLine},m.source,m.file,s.plugin):a=new hu(e,u===void 0?t:{column:n,line:t},u===void 0?n:{column:f,line:u},this.css,this.file,s.plugin),a.input={column:n,endColumn:f,endLine:u,line:t,source:this.css},this.file&&(ln&&(a.input.url=ln(this.file).toString()),a.input.file=this.file),a},i.fromOffset=function(e){var t,n;if(this[mo])n=this[mo];else{var s=this.css.split("\n");n=new Array(s.length);for(var a=0,u=0,f=s.length;u<f;u++)n[u]=a,a+=s[u].length+1;this[mo]=n}t=n[n.length-1];var l=0;if(e>=t)l=n.length-1;else for(var c=n.length-2,h;l<c;)if(h=l+(c-l>>1),e<n[h])c=h-1;else if(e>=n[h+1])l=h+1;else{l=h;break}return{col:e-n[l]+1,line:l+1}},i.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:po(this.map.consumer().sourceRoot||this.map.root||".",e)},i.origin=function(e,t,n,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:t,line:e});if(!u.source)return!1;var f;typeof n=="number"&&(f=a.originalPositionFor({column:s,line:n}));var l;ho(u.source)?l=ln(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||ln(this.map.mapFile));var c={column:u.column,endColumn:f&&f.column,endLine:f&&f.line,line:u.line,url:l.toString()};if(l.protocol==="file:")if(cu)c.file=cu(l);else throw new Error("file: protocol is not available in this PostCSS build");var h=a.sourceContentFor(u.source);return h&&(c.source=h),c},i.toJSON=function(){for(var e={},t=0,n=["hasBOM","css","file","id"];t<n.length;t++){var s=n[t];this[s]!=null&&(e[s]=this[s])}return this.map&&(e.map=T({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Z(r,[{key:"from",get:function(){return this.file||this.id}}]),r})(),hn=cn;cn.default=cn,vo&&vo.registerInput&&vo.registerInput(cn);var pu=fe.SourceMapConsumer,dn=fe.SourceMapGenerator,pn=fe.dirname,vu=fe.relative,mu=fe.resolve,gu=fe.sep,yu=fe.pathToFileURL,Dp=hn,Fp=!!(pu&&dn),Bp=!!(pn&&mu&&vu&&gu),Up=(function(){function r(o,e,t,n){this.stringify=o,this.mapOpts=t.map||{},this.root=e,this.opts=t,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var i=r.prototype;return i.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 t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},i.applyPrevMaps=function(){for(var e=I(this.previous()),t;!(t=e()).done;){var n=t.value,s=this.toUrl(this.path(n.file)),a=n.root||pn(n.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new pu(n.text),u.sourcesContent&&(u.sourcesContent=null)):u=n.consumer(),this.map.applySourceMap(u,s,this.toUrl(this.path(a)))}},i.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},i.generate=function(){if(this.clearAnnotation(),Bp&&Fp&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},i.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=dn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new dn({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]},i.generateString=function(){var e=this;this.css="",this.map=new dn({file:this.outputFile(),ignoreInvalidMapping:!0});var t=1,n=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,f;this.stringify(this.root,function(l,c,h){if(e.css+=l,c&&h!=="end"&&(a.generated.line=t,a.generated.column=n-1,c.source&&c.source.start?(a.source=e.sourcePath(c),a.original.line=c.source.start.line,a.original.column=c.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?(t+=u.length,f=l.lastIndexOf("\n"),n=l.length-f):n+=l.length,c&&h!=="start"){var v=c.parent||{raws:{}},p=c.type==="decl"||c.type==="atrule"&&!c.nodes;(!p||c!==v.last||v.raws.semicolon)&&(c.source&&c.source.end?(a.source=e.sourcePath(c),a.original.line=c.source.end.line,a.original.column=c.source.end.column-1,a.generated.line=t,a.generated.column=n-2,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=t,a.generated.column=n-1,e.map.addMapping(a)))}})},i.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},i.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(t){return t.inline}):!0},i.isMap=function(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0},i.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(e){return e.withContent()}):!0},i.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},i.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var n=this.opts.to?pn(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=pn(mu(n,this.mapOpts.annotation)));var s=vu(n,e);return this.memoizedPaths.set(e,s),s},i.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(n){if(n.source&&n.source.input.map){var s=n.source.input.map;e.previousMaps.includes(s)||e.previousMaps.push(s)}});else{var t=new Dp(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},i.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!t[a]){t[a]=!0;var u=e.usesFileUrls?e.toFileUrl(a):e.toUrl(e.path(a));e.map.setSourceContent(u,s.source.input.css)}}});else if(this.css){var n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}},i.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))},i.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},i.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(yu){var n=yu(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")},i.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;gu==="\\"&&(e=e.replace(/\\/g,"/"));var n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n},r})(),wu=Up,zp=un,go=(function(r){ee(i,r);function i(o){var e;return e=r.call(this,o)||this,e.type="comment",e}return i})(zp),vn=go;go.default=go;var bu=qe.isClean,Su=qe.my,Cu=fn,Iu=vn,Wp=un,Ou,yo,wo,xu;function Ru(r){return r.map(function(i){return i.nodes&&(i.nodes=Ru(i.nodes)),delete i.source,i})}function Eu(r){if(r[bu]=!1,r.proxyOf.nodes)for(var i=I(r.proxyOf.nodes),o;!(o=i()).done;){var e=o.value;Eu(e)}}var De=(function(r){ee(i,r);function i(){return r.apply(this,arguments)||this}var o=i.prototype;return o.append=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];for(var a=I(n),u;!(u=a()).done;)for(var f=u.value,l=this.normalize(f,this.last),c=I(l),h;!(h=c()).done;){var v=h.value;this.proxyOf.nodes.push(v)}return this.markDirty(),this},o.cleanRaws=function(t){if(r.prototype.cleanRaws.call(this,t),this.nodes)for(var n=I(this.nodes),s;!(s=n()).done;){var a=s.value;a.cleanRaws(t)}},o.each=function(t){if(this.proxyOf.nodes){for(var n=this.getIterator(),s,a;this.indexes[n]<this.proxyOf.nodes.length&&(s=this.indexes[n],a=t(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[n]+=1;return delete this.indexes[n],a}},o.every=function(t){return this.nodes.every(t)},o.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var t=this.lastEach;return this.indexes[t]=0,t},o.getProxyProcessor=function(){return{get:function(n,s){return s==="proxyOf"?n:n[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),f=0;f<a;f++)u[f]=arguments[f];var l;return(l=n)[s].apply(l,[].concat(u.map(function(c){return typeof c=="function"?function(h,v){return c(h.toProxy(),v)}:c})))}:s==="every"||s==="some"?function(a){return n[s](function(u){for(var f=arguments.length,l=new Array(f>1?f-1:0),c=1;c<f;c++)l[c-1]=arguments[c];return a.apply(void 0,[].concat([u.toProxy()],l))})}:s==="root"?function(){return n.root().toProxy()}:s==="nodes"?n.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?n[s].toProxy():n[s]:n[s]},set:function(n,s,a){return n[s]===a||(n[s]=a,(s==="name"||s==="params"||s==="selector")&&n.markDirty()),!0}}},o.index=function(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))},o.insertAfter=function(t,n){var s=this.index(t),a=this.normalize(n,this.proxyOf.nodes[s]).reverse();s=this.index(t);for(var u=I(a),f;!(f=u()).done;){var l=f.value;this.proxyOf.nodes.splice(s+1,0,l)}var c;for(var h in this.indexes)c=this.indexes[h],s<c&&(this.indexes[h]=c+a.length);return this.markDirty(),this},o.insertBefore=function(t,n){var s=this.index(t),a=s===0?"prepend":!1,u=this.normalize(n,this.proxyOf.nodes[s],a).reverse();s=this.index(t);for(var f=I(u),l;!(l=f()).done;){var c=l.value;this.proxyOf.nodes.splice(s,0,c)}var h;for(var v in this.indexes)h=this.indexes[v],s<=h&&(this.indexes[v]=h+u.length);return this.markDirty(),this},o.normalize=function(t,n){var s=this;if(typeof t=="string")t=Ru(Ou(t).nodes);else if(typeof t=="undefined")t=[];else if(Array.isArray(t)){t=t.slice(0);for(var a=I(t),u;!(u=a()).done;){var f=u.value;f.parent&&f.parent.removeChild(f,"ignore")}}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(var l=I(t),c;!(c=l()).done;){var h=c.value;h.parent&&h.parent.removeChild(h,"ignore")}}else if(t.type)t=[t];else if(t.prop){if(typeof t.value=="undefined")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new Cu(t)]}else if(t.selector)t=[new yo(t)];else if(t.name)t=[new wo(t)];else if(t.text)t=[new Iu(t)];else throw new Error("Unknown node type in node creation");var v=t.map(function(p){return p[Su]||i.rebuild(p),p=p.proxyOf,p.parent&&p.parent.removeChild(p),p[bu]&&Eu(p),typeof p.raws.before=="undefined"&&n&&typeof n.raws.before!="undefined"&&(p.raws.before=n.raws.before.replace(/\S/g,"")),p.parent=s.proxyOf,p});return v},o.prepend=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];n=n.reverse();for(var a=I(n),u;!(u=a()).done;){for(var f=u.value,l=this.normalize(f,this.first,"prepend").reverse(),c=I(l),h;!(h=c()).done;){var v=h.value;this.proxyOf.nodes.unshift(v)}for(var p in this.indexes)this.indexes[p]=this.indexes[p]+l.length}return this.markDirty(),this},o.push=function(t){return t.parent=this,this.proxyOf.nodes.push(t),this},o.removeAll=function(){for(var t=I(this.proxyOf.nodes),n;!(n=t()).done;){var s=n.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},o.removeChild=function(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);var n;for(var s in this.indexes)n=this.indexes[s],n>=t&&(this.indexes[s]=n-1);return this.markDirty(),this},o.replaceValues=function(t,n,s){return s||(s=n,n={}),this.walkDecls(function(a){n.props&&!n.props.includes(a.prop)||n.fast&&!a.value.includes(n.fast)||(a.value=a.value.replace(t,s))}),this.markDirty(),this},o.some=function(t){return this.nodes.some(t)},o.walk=function(t){return this.each(function(n,s){var a;try{a=t(n,s)}catch(u){throw n.addToError(u)}return a!==!1&&n.walk&&(a=n.walk(t)),a})},o.walkAtRules=function(t,n){return n?A(t,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&t.test(s.name))return n(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="atrule")return n(s,a)}))},o.walkComments=function(t){return this.walk(function(n,s){if(n.type==="comment")return t(n,s)})},o.walkDecls=function(t,n){return n?A(t,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&t.test(s.prop))return n(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="decl")return n(s,a)}))},o.walkRules=function(t,n){return n?A(t,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&t.test(s.selector))return n(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="rule")return n(s,a)}))},Z(i,[{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]}}]),i})(Wp);De.registerParse=function(r){Ou=r},De.registerRule=function(r){yo=r},De.registerAtRule=function(r){wo=r},De.registerRoot=function(r){xu=r};var ot=De;De.default=De,De.rebuild=function(r){r.type==="atrule"?Object.setPrototypeOf(r,wo.prototype):r.type==="rule"?Object.setPrototypeOf(r,yo.prototype):r.type==="decl"?Object.setPrototypeOf(r,Cu.prototype):r.type==="comment"?Object.setPrototypeOf(r,Iu.prototype):r.type==="root"&&Object.setPrototypeOf(r,xu.prototype),r[Su]=!0,r.nodes&&r.nodes.forEach(function(i){De.rebuild(i)})};var jp=ot,Au,Mu,sr=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,T({type:"document"},e))||this,t.nodes||(t.nodes=[]),t}var o=i.prototype;return o.toResult=function(t){t===void 0&&(t={});var n=new Au(new Mu,this,t);return n.stringify()},i})(jp);sr.registerLazyResult=function(r){Au=r},sr.registerProcessor=function(r){Mu=r};var bo=sr;sr.default=sr;var $u={},ku=function(i){$u[i]||($u[i]=!0,typeof console!="undefined"&&console.warn&&console.warn(i))},So=(function(){function r(o,e){if(e===void 0&&(e={}),this.type="warning",this.text=o,e.node&&e.node.source){var t=e.node.rangeBy(e);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(var n in e)this[n]=e[n]}var i=r.prototype;return i.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},r})(),_u=So;So.default=So;var Gp=_u,Co=(function(){function r(o,e,t){this.processor=o,this.messages=[],this.root=e,this.opts=t,this.css=void 0,this.map=void 0}var i=r.prototype;return i.toString=function(){return this.css},i.warn=function(e,t){t===void 0&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new Gp(e,t);return this.messages.push(n),n},i.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},Z(r,[{key:"content",get:function(){return this.css}}]),r})(),Io=Co;Co.default=Co;var Oo=39,Pu=34,mn=92,Tu=47,gn=10,ar=32,yn=12,wn=9,bn=13,qp=91,Vp=93,Hp=40,Yp=41,Jp=123,Zp=125,Kp=59,Xp=42,Qp=58,ev=64,Sn=/[\t\n\f\r "#'()/;[\\\]{}]/g,Cn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,tv=/.[\r\n"'(/\\]/,Nu=/[\da-f]/i,rv=function(i,o){o===void 0&&(o={});var e=i.css.valueOf(),t=o.ignoreErrors,n,s,a,u,f,l,c,h,v,p,m=e.length,d=0,g=[],w=[];function b(){return d}function S(R){throw i.error("Unclosed "+R,d)}function C(){return w.length===0&&d>=m}function x(R){if(w.length)return w.pop();if(!(d>=m)){var k=R?R.ignoreUnclosed:!1;switch(n=e.charCodeAt(d),n){case gn:case ar:case wn:case bn:case yn:{s=d;do s+=1,n=e.charCodeAt(s);while(n===ar||n===gn||n===wn||n===bn||n===yn);p=["space",e.slice(d,s)],d=s-1;break}case qp:case Vp:case Jp:case Zp:case Qp:case Kp:case Yp:{var N=String.fromCharCode(n);p=[N,N,d];break}case Hp:{if(h=g.length?g.pop()[1]:"",v=e.charCodeAt(d+1),h==="url"&&v!==Oo&&v!==Pu&&v!==ar&&v!==gn&&v!==wn&&v!==yn&&v!==bn){s=d;do{if(l=!1,s=e.indexOf(")",s+1),s===-1)if(t||k){s=d;break}else S("bracket");for(c=s;e.charCodeAt(c-1)===mn;)c-=1,l=!l}while(l);p=["brackets",e.slice(d,s+1),d,s],d=s}else s=e.indexOf(")",d+1),u=e.slice(d,s+1),s===-1||tv.test(u)?p=["(","(",d]:(p=["brackets",u,d,s],d=s);break}case Oo:case Pu:{a=n===Oo?"'":'"',s=d;do{if(l=!1,s=e.indexOf(a,s+1),s===-1)if(t||k){s=d+1;break}else S("string");for(c=s;e.charCodeAt(c-1)===mn;)c-=1,l=!l}while(l);p=["string",e.slice(d,s+1),d,s],d=s;break}case ev:{Sn.lastIndex=d+1,Sn.test(e),Sn.lastIndex===0?s=e.length-1:s=Sn.lastIndex-2,p=["at-word",e.slice(d,s+1),d,s],d=s;break}case mn:{for(s=d,f=!0;e.charCodeAt(s+1)===mn;)s+=1,f=!f;if(n=e.charCodeAt(s+1),f&&n!==Tu&&n!==ar&&n!==gn&&n!==wn&&n!==bn&&n!==yn&&(s+=1,Nu.test(e.charAt(s)))){for(;Nu.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===ar&&(s+=1)}p=["word",e.slice(d,s+1),d,s],d=s;break}default:{n===Tu&&e.charCodeAt(d+1)===Xp?(s=e.indexOf("*/",d+2)+1,s===0&&(t||k?s=e.length:S("comment")),p=["comment",e.slice(d,s+1),d,s],d=s):(Cn.lastIndex=d+1,Cn.test(e),Cn.lastIndex===0?s=e.length-1:s=Cn.lastIndex-2,p=["word",e.slice(d,s+1),d,s],g.push(p),d=s);break}}return d++,p}}function E(R){w.push(R)}return{back:E,endOfFile:C,nextToken:x,position:b}},Lu=ot,In=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,e)||this,t.type="atrule",t}var o=i.prototype;return o.append=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=r.prototype.append).call.apply(a,[].concat([this],n))},o.prepend=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=r.prototype.prepend).call.apply(a,[].concat([this],n))},i})(Lu),xo=In;In.default=In,Lu.registerAtRule(In);var Du=ot,Fu,Bu,Mt=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,e)||this,t.type="root",t.nodes||(t.nodes=[]),t}var o=i.prototype;return o.normalize=function(t,n,s){var a=r.prototype.normalize.call(this,t);if(n){if(s==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(var u=I(a),f;!(f=u()).done;){var l=f.value;l.raws.before=n.raws.before}}return a},o.removeChild=function(t,n){var s=this.index(t);return!n&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),r.prototype.removeChild.call(this,t)},o.toResult=function(t){t===void 0&&(t={});var n=new Fu(new Bu,this,t);return n.stringify()},i})(Du);Mt.registerLazyResult=function(r){Fu=r},Mt.registerProcessor=function(r){Bu=r};var ur=Mt;Mt.default=Mt,Du.registerRoot(Mt);var fr={comma:function(i){return fr.split(i,[","],!0)},space:function(i){var o=[" ","\n"," "];return fr.split(i,o)},split:function(i,o,e){for(var t=[],n="",s=!1,a=0,u=!1,f="",l=!1,c=I(i),h;!(h=c()).done;){var v=h.value;l?l=!1:v==="\\"?l=!0:u?v===f&&(u=!1):v==='"'||v==="'"?(u=!0,f=v):v==="("?a+=1:v===")"?a>0&&(a-=1):a===0&&o.includes(v)&&(s=!0),s?(n!==""&&t.push(n.trim()),n="",s=!1):n+=v}return(e||n!=="")&&t.push(n.trim()),t}},Uu=fr;fr.default=fr;var zu=ot,nv=Uu,On=(function(r){ee(i,r);function i(o){var e;return e=r.call(this,o)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return Z(i,[{key:"selectors",get:function(){return nv.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}]),i})(zu),Ro=On;On.default=On,zu.registerRule(On);var iv=fn,ov=rv,sv=vn,av=xo,uv=ur,Wu=Ro,ju={empty:!0,space:!0};function fv(r){for(var i=r.length-1;i>=0;i--){var o=r[i],e=o[3]||o[2];if(e)return e}}var lv=(function(){function r(o){this.input=o,this.root=new uv,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}var i=r.prototype;return i.atrule=function(e){var t=new av;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);for(var n,s,a,u=!1,f=!1,l=[],c=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){f=!0;break}else if(n==="}"){if(l.length>0){for(a=l.length-1,s=l[a];s&&s[0]==="space";)s=l[--a];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),u&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),f&&(t.nodes=[],this.current=t)},i.checkMissedSemicolon=function(e){var t=this.colon(e);if(t!==!1){for(var n=0,s,a=t-1;a>=0&&(s=e[a],!(s[0]!=="space"&&(n+=1,n===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},i.colon=function(e){for(var t=0,n,s,a,u=I(e.entries()),f;!(f=u()).done;){var l=f.value,c=l[0],h=l[1];if(n=h,s=n[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!a)this.doubleColon(n);else{if(a[0]==="word"&&a[1]==="progid")continue;return c}a=n}return!1},i.comment=function(e){var t=new sv;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{var s=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}},i.createTokenizer=function(){this.tokenizer=ov(this.input)},i.decl=function(e,t){var n=new iv;this.init(n,e[0][2]);var s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(s[3]||s[2]||fv(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){n.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),n.raws.between+=u[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));for(var f=[],l;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)f.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(u=e[c],u[1].toLowerCase()==="!important"){n.important=!0;var h=this.stringFrom(e,c);h=this.spacesFromEnd(e)+h,h!==" !important"&&(n.raws.important=h);break}else if(u[1].toLowerCase()==="important"){for(var v=e.slice(0),p="",m=c;m>0;m--){var d=v[m][0];if(p.trim().indexOf("!")===0&&d!=="space")break;p=v.pop()[1]+p}p.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=p,e=v)}if(u[0]!=="space"&&u[0]!=="comment")break}var g=e.some(function(w){return w[0]!=="space"&&w[0]!=="comment"});g&&(n.raws.between+=f.map(function(w){return w[1]}).join(""),f=[]),this.raw(n,"value",f.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},i.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},i.emptyRule=function(e){var t=new Wu;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},i.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)},i.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())},i.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},i.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},i.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},i.other=function(e){for(var t=!1,n=null,s=!1,a=null,u=[],f=e[1].startsWith("--"),l=[],c=e;c;){if(n=c[0],l.push(c),n==="("||n==="[")a||(a=c),u.push(n==="("?")":"]");else if(f&&s&&n==="{")a||(a=c),u.push("}");else if(u.length===0)if(n===";")if(s){this.decl(l,f);return}else break;else if(n==="{"){this.rule(l);return}else if(n==="}"){this.tokenizer.back(l.pop()),t=!0;break}else n===":"&&(s=!0);else n===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),u.length>0&&this.unclosedBracket(a),t&&s){if(!f)for(;l.length&&(c=l[l.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,f)}else this.unknownWord(l)},i.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()},i.precheckMissedSemicolon=function(){},i.raw=function(e,t,n,s){for(var a,u,f=n.length,l="",c=!0,h,v,p=0;p<f;p+=1)a=n[p],u=a[0],u==="space"&&p===f-1&&!s?c=!1:u==="comment"?(v=n[p-1]?n[p-1][0]:"empty",h=n[p+1]?n[p+1][0]:"empty",!ju[v]&&!ju[h]?l.slice(-1)===","?c=!1:l+=a[1]:c=!1):l+=a[1];if(!c){var m=n.reduce(function(d,g){return d+g[1]},"");e.raws[t]={raw:m,value:l}}e[t]=l},i.rule=function(e){e.pop();var t=new Wu;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},i.spacesAndCommentsFromEnd=function(e){for(var t,n="";e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)n=e.pop()[1]+n;return n},i.spacesAndCommentsFromStart=function(e){for(var t,n="";e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)n+=e.shift()[1];return n},i.spacesFromEnd=function(e){for(var t,n="";e.length&&(t=e[e.length-1][0],t==="space");)n=e.pop()[1]+n;return n},i.stringFrom=function(e,t){for(var n="",s=t;s<e.length;s++)n+=e[s][1];return e.splice(t,e.length-t),n},i.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},i.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},i.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},i.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},i.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},r})(),cv=lv,hv=ot,dv=cv,pv=hn;function xn(r,i){var o=new pv(r,i),e=new dv(o);try{e.parse()}catch(t){throw process.env.NODE_ENV!=="production"&&t.name==="CssSyntaxError"&&i&&i.from&&(/\.scss$/i.test(i.from)?t.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(i.from)?t.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(i.from)&&(t.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),t}return e.root}var Eo=xn;xn.default=xn,hv.registerParse(xn);var Me=qe.isClean,vv=qe.my,mv=wu,gv=sn,yv=ot,wv=bo,bv=ku,Gu=Io,Sv=Eo,Cv=ur,Iv={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Ov={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},xv={Once:!0,postcssPlugin:!0,prepare:!0},$t=0;function lr(r){return(typeof r=="undefined"?"undefined":M(r))==="object"&&typeof r.then=="function"}function qu(r){var i=!1,o=Iv[r.type];return r.type==="decl"?i=r.prop.toLowerCase():r.type==="atrule"&&(i=r.name.toLowerCase()),i&&r.append?[o,o+"-"+i,$t,o+"Exit",o+"Exit-"+i]:i?[o,o+"-"+i,o+"Exit",o+"Exit-"+i]:r.append?[o,$t,o+"Exit"]:[o,o+"Exit"]}function Vu(r){var i;return r.type==="document"?i=["Document",$t,"DocumentExit"]:r.type==="root"?i=["Root",$t,"RootExit"]:i=qu(r),{eventIndex:0,events:i,iterator:0,node:r,visitorIndex:0,visitors:[]}}function Ao(r){return r[Me]=!1,r.nodes&&r.nodes.forEach(function(i){return Ao(i)}),r}var Mo={},kt=(function(){function r(o,e,t){var n=this;this.stringified=!1,this.processed=!1;var s;if((typeof e=="undefined"?"undefined":M(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=Ao(e);else if(A(e,r)||A(e,Gu))s=Ao(e.root),e.map&&(typeof t.map=="undefined"&&(t.map={}),t.map.inline||(t.map.inline=!1),t.map.prev=e.map);else{var a=Sv;t.syntax&&(a=t.syntax.parse),t.parser&&(a=t.parser),a.parse&&(a=a.parse);try{s=a(e,t)}catch(u){this.processed=!0,this.error=u}s&&!s[vv]&&yv.rebuild(s)}this.result=new Gu(o,s,t),this.helpers=T({},Mo,{postcss:Mo,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":M(u))==="object"&&u.prepare?T({},u,u.prepare(n.result)):u})}var i=r.prototype;return i.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},i.catch=function(e){return this.async().catch(e)},i.finally=function(e){return this.async().then(e,e)},i.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},i.handleError=function(e,t){var n=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion&&process.env.NODE_ENV!=="production"){var s=n.postcssPlugin,a=n.postcssVersion,u=this.result.processor.version,f=a.split("."),l=u.split(".");(f[0]!==l[0]||parseInt(f[1])>parseInt(l[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+u+", but "+s+" uses "+a+". Perhaps this is the source of the error below.")}}catch(c){console&&console.error&&console.error(c)}return e},i.prepareVisitors=function(){var e=this;this.listeners={};for(var t=function(l,c,h){e.listeners[c]||(e.listeners[c]=[]),e.listeners[c].push([l,h])},n=I(this.plugins),s;!(s=n()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":M(a))==="object")for(var u in a){if(!Ov[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!xv[u])if(M(a[u])==="object")for(var f in a[u])f==="*"?t(a,u,a[u][f]):t(a,u+"-"+f.toLowerCase(),a[u][f]);else typeof a[u]=="function"&&t(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},i.runAsync=function(){var e=this;return kr(function(){var t,n,s,a,u,f,l,c,h,v,p,m;return rt(this,function(d){switch(d.label){case 0:e.plugin=0,t=0,d.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(n=e.plugins[t],s=e.runOnRoot(n),!lr(s))return[3,5];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,s];case 3:return d.sent(),[3,5];case 4:throw a=d.sent(),e.handleError(a);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];u=e.result.root,d.label=7;case 7:if(u[Me])return[3,14];u[Me]=!0,f=[Vu(u)],d.label=8;case 8:if(!(f.length>0))return[3,13];if(l=e.visitTick(f),!lr(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 c=d.sent(),h=f[f.length-1].node,e.handleError(c,h);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];v=function(){var g,w,b,S,C;return rt(this,function(x){switch(x.label){case 0:g=m.value,w=g[0],b=g[1],e.result.lastPlugin=w,x.label=1;case 1:return x.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(S=u.nodes.map(function(E){return b(E,e.helpers)}),[4,Promise.all(S)]);case 2:return x.sent(),[3,5];case 3:return[4,b(u,e.helpers)];case 4:x.sent(),x.label=5;case 5:return[3,7];case 6:throw C=x.sent(),e.handleError(C);case 7:return[2]}})},p=I(e.listeners.OnceExit),d.label=15;case 15:return(m=p()).done?[3,18]:[5,Si(v())];case 16:d.sent(),d.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},i.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((typeof e=="undefined"?"undefined":M(e))==="object"&&e.Once){if(this.result.root.type==="document"){var n=this.result.root.nodes.map(function(s){return e.Once(s,t.helpers)});return lr(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}},i.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=gv;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new mv(t,this.result.root,this.result.opts),s=n.generate();return this.result.css=s[0],this.result.map=s[1],this.result},i.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),t;!(t=e()).done;){var n=t.value,s=this.runOnRoot(n);if(lr(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Me];)a[Me]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=I(a.nodes),f;!(f=u()).done;){var l=f.value;this.visitSync(this.listeners.OnceExit,l)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},i.then=function(e,t){return process.env.NODE_ENV!=="production"&&("from"in this.opts||bv("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},i.toString=function(){return this.css},i.visitSync=function(e,t){for(var n=I(e),s;!(s=n()).done;){var a=s.value,u=a[0],f=a[1];this.result.lastPlugin=u;var l=void 0;try{l=f(t,this.helpers)}catch(c){throw this.handleError(c,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(lr(l))throw this.getAsyncError()}},i.visitTick=function(e){var t=e[e.length-1],n=t.node,s=t.visitors;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){var a=s[t.visitorIndex],u=a[0],f=a[1];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=u;try{return f(n.toProxy(),this.helpers)}catch(p){throw this.handleError(p,n)}}if(t.iterator!==0){for(var l=t.iterator,c;c=n.nodes[n.indexes[l]];)if(n.indexes[l]+=1,!c[Me]){c[Me]=!0,e.push(Vu(c));return}t.iterator=0,delete n.indexes[l]}for(var h=t.events;t.eventIndex<h.length;){var v=h[t.eventIndex];if(t.eventIndex+=1,v===$t){n.nodes&&n.nodes.length&&(n[Me]=!0,t.iterator=n.getIterator());return}else if(this.listeners[v]){t.visitors=this.listeners[v];return}}e.pop()},i.walkSync=function(e){var t=this;e[Me]=!0;for(var n=qu(e),s=I(n),a;!(a=s()).done;){var u=a.value;if(u===$t)e.nodes&&e.each(function(l){l[Me]||t.walkSync(l)});else{var f=this.listeners[u];if(f&&this.visitSync(f,e.toProxy()))return}}},i.warnings=function(){return this.sync().warnings()},Z(r,[{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"}}]),r})();kt.registerPostcss=function(r){Mo=r};var Hu=kt;kt.default=kt,Cv.registerLazyResult(kt),wv.registerLazyResult(kt);var Rv=wu,Ev=sn,Av=ku,Mv=Eo,$v=Io,$o=(function(){function r(o,e,t){e=e.toString(),this.stringified=!1,this._processor=o,this._css=e,this._opts=t,this._map=void 0;var n,s=Ev;this.result=new $v(this._processor,n,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new Rv(s,n,this._opts,e);if(u.isMap()){var f=u.generate(),l=f[0],c=f[1];l&&(this.result.css=l),c&&(this.result.map=c)}else u.clearAnnotation(),this.result.css=u.css}var i=r.prototype;return i.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},i.catch=function(e){return this.async().catch(e)},i.finally=function(e){return this.async().then(e,e)},i.sync=function(){if(this.error)throw this.error;return this.result},i.then=function(e,t){return process.env.NODE_ENV!=="production"&&("from"in this._opts||Av("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},i.toString=function(){return this._css},i.warnings=function(){return[]},Z(r,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=Mv;try{e=t(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),r})(),kv=$o;$o.default=$o;var _v=kv,Pv=Hu,Tv=bo,Nv=ur,cr=(function(){function r(o){o===void 0&&(o=[]),this.version="8.4.38",this.plugins=this.normalize(o)}var i=r.prototype;return i.normalize=function(e){for(var t=[],n=I(e),s;!(s=n()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":M(a))==="object"&&Array.isArray(a.plugins))t=t.concat(a.plugins);else if((typeof a=="undefined"?"undefined":M(a))==="object"&&a.postcssPlugin)t.push(a);else if(typeof a=="function")t.push(a);else if((typeof a=="undefined"?"undefined":M(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 t},i.process=function(e,t){return t===void 0&&(t={}),!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new _v(this,e,t):new Pv(this,e,t)},i.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},r})(),Lv=cr;cr.default=cr,Nv.registerProcessor(cr),Tv.registerProcessor(cr);var Dv=fn,Fv=lu,Bv=vn,Uv=xo,zv=hn,Wv=ur,jv=Ro;function hr(r,i){if(Array.isArray(r))return r.map(function(c){return hr(c)});var o=r.inputs,e=tt(r,["inputs"]);if(o){i=[];for(var t=I(o),n;!(n=t()).done;){var s=n.value,a=T({},s,{__proto__:zv.prototype});a.map&&(a.map=T({},a.map,{__proto__:Fv.prototype})),i.push(a)}}if(e.nodes&&(e.nodes=r.nodes.map(function(c){return hr(c,i)})),e.source){var u=e.source,f=u.inputId,l=tt(u,["inputId"]);e.source=l,f!=null&&(e.source.input=i[f])}if(e.type==="root")return new Wv(e);if(e.type==="decl")return new Dv(e);if(e.type==="rule")return new jv(e);if(e.type==="comment")return new Bv(e);if(e.type==="atrule")return new Uv(e);throw new Error("Unknown node type: "+r.type)}var Gv=hr;hr.default=hr;var qv=io,Yu=fn,Vv=Hu,Hv=ot,ko=Lv,Yv=sn,Jv=Gv,Ju=bo,Zv=_u,Zu=vn,Ku=xo,Kv=Io,Xv=hn,Qv=Eo,em=Uu,Xu=Ro,Qu=ur,tm=un;function V(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new ko(i)}V.plugin=function(i,o){var e=!1;function t(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];console&&console.warn&&!e&&(e=!0,console.warn(i+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(i+": \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:\nhttps://www.w3ctech.com/topic/2226"));var f=o.apply(void 0,[].concat(a));return f.postcssPlugin=i,f.postcssVersion=new ko().version,f}var n;return Object.defineProperty(t,"postcss",{get:function(){return n||(n=t()),n}}),t.process=function(s,a,u){return V([t(u)]).process(s,a)},t},V.stringify=Yv,V.parse=Qv,V.fromJSON=Jv,V.list=em,V.comment=function(r){return new Zu(r)},V.atRule=function(r){return new Ku(r)},V.decl=function(r){return new Yu(r)},V.rule=function(r){return new Xu(r)},V.root=function(r){return new Qu(r)},V.document=function(r){return new Ju(r)},V.CssSyntaxError=qv,V.Declaration=Yu,V.Container=Hv,V.Processor=ko,V.Document=Ju,V.Comment=Zu,V.Warning=Zv,V.AtRule=Ku,V.Result=Kv,V.Input=Xv,V.Rule=Xu,V.Root=Qu,V.Node=tm,Vv.registerPostcss(V);var rm=V;V.default=V;var re=dp(rm);re.stringify,re.fromJSON,re.plugin,re.parse,re.list,re.document,re.comment,re.atRule,re.rule,re.decl,re.root,re.CssSyntaxError,re.Declaration,re.Container,re.Processor,re.Document,re.Comment,re.Warning,re.AtRule,re.Result,re.Input,re.Rule,re.Root,re.Node;var nm=(function(){function r(){for(var o=arguments.length,e=new Array(o),t=0;t<o;t++)e[t]=arguments[t];Ie(this,"parentElement",null),Ie(this,"parentNode",null),Ie(this,"ownerDocument"),Ie(this,"firstChild",null),Ie(this,"lastChild",null),Ie(this,"previousSibling",null),Ie(this,"nextSibling",null),Ie(this,"ELEMENT_NODE",1),Ie(this,"TEXT_NODE",3),Ie(this,"nodeType"),Ie(this,"nodeName"),Ie(this,"RRNodeType")}var i=r.prototype;return i.contains=function(e){if(A(e,r)){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},i.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},i.insertBefore=function(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},i.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},i.toString=function(){return"RRNode"},Z(r,[{key:"childNodes",get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}}]),r})(),ef={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},tf={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Rn={},im=function(){return!!globalThis.Zone};function _o(r){if(Rn[r])return Rn[r];var i=globalThis[r],o=i.prototype,e=r in ef?ef[r]:void 0,t=!!(e&&e.every(function(l){var c,h;return!!((h=(c=Object.getOwnPropertyDescriptor(o,l))==null?void 0:c.get)!=null&&h.toString().includes("[native code]"))})),n=r in tf?tf[r]:void 0,s=!!(n&&n.every(function(l){var c;return typeof o[l]=="function"&&((c=o[l])==null?void 0:c.toString().includes("[native code]"))}));if(t&&s&&!im())return Rn[r]=i.prototype,i.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return i.prototype;var f=u[r].prototype;return document.body.removeChild(a),f?Rn[r]=f:o}catch(l){return o}}var Po={};function Ve(r,i,o){var e,t=r+"."+String(o);if(Po[t])return Po[t].call(i);var n=_o(r),s=(e=Object.getOwnPropertyDescriptor(n,o))==null?void 0:e.get;return s?(Po[t]=s,s.call(i)):i[o]}var To={};function rf(r,i,o){var e=r+"."+String(o);if(To[e])return To[e].bind(i);var t=_o(r),n=t[o];return typeof n!="function"?i[o]:(To[e]=n,n.bind(i))}function om(r){return Ve("Node",r,"childNodes")}function sm(r){return Ve("Node",r,"parentNode")}function am(r){return Ve("Node",r,"parentElement")}function um(r){return Ve("Node",r,"textContent")}function fm(r,i){return rf("Node",r,"contains")(i)}function lm(r){return rf("Node",r,"getRootNode")()}function cm(r){return!r||!("host"in r)?null:Ve("ShadowRoot",r,"host")}function hm(r){return r.styleSheets}function dm(r){return!r||!("shadowRoot"in r)?null:Ve("Element",r,"shadowRoot")}function pm(r,i){return Ve("Element",r,"querySelector")(i)}function vm(r,i){return Ve("Element",r,"querySelectorAll")(i)}function nf(){return _o("MutationObserver").constructor}function st(r,i,o){try{if(!(i in r))return function(){};var e=r[i],t=o(e);return typeof t=="function"&&(t.prototype=t.prototype||{},Object.defineProperties(t,{__rrweb_original__:{enumerable:!1,value:e}})),r[i]=t,function(){r[i]=e}}catch(n){return function(){}}}var D={childNodes:om,parentNode:sm,parentElement:am,textContent:um,contains:fm,getRootNode:lm,host:cm,styleSheets:hm,shadowRoot:dm,querySelector:pm,querySelectorAll:vm,mutationObserver:nf,patch:st};function me(r,i,o){o===void 0&&(o=document);var e={capture:!0,passive:!0};return o.addEventListener(r,i,e),function(){return o.removeEventListener(r,i,e)}}var _t="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.",of={map:{},getId:function(){return console.error(_t),-1},getNode:function(){return console.error(_t),null},removeNodeFromMap:function(){console.error(_t)},has:function(){return console.error(_t),!1},reset:function(){console.error(_t)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(of=new Proxy(of,{get:function(i,o,e){return o==="map"&&console.error(_t),Reflect.get(i,o,e)}}));function dr(r,i,o){o===void 0&&(o={});var e=null,t=0;return function(){for(var n=arguments.length,s=new Array(n),a=0;a<n;a++)s[a]=arguments[a];var u=Date.now();!t&&o.leading===!1&&(t=u);var f=i-(u-t),l=this;f<=0||f>i?(e&&(clearTimeout(e),e=null),t=u,r.apply(l,s)):!e&&o.trailing!==!1&&(e=setTimeout(function(){t=o.leading===!1?0:Date.now(),e=null,r.apply(l,s)},f))}}function En(r,i,o,e,t){t===void 0&&(t=window);var n=t.Object.getOwnPropertyDescriptor(r,i);return t.Object.defineProperty(r,i,e?o:{set:function(a){var u=this;setTimeout(function(){o.set.call(u,a)},0),n&&n.set&&n.set.call(this,a)}}),function(){return En(r,i,n||{},!0)}}var An=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(An=function(){return new Date().getTime()});function sf(r){var i,o,e,t,n=r.document;return{left:n.scrollingElement?n.scrollingElement.scrollLeft:r.pageXOffset!==void 0?r.pageXOffset:n.documentElement.scrollLeft||(n==null?void 0:n.body)&&((i=D.parentElement(n.body))==null?void 0:i.scrollLeft)||((o=n==null?void 0:n.body)==null?void 0:o.scrollLeft)||0,top:n.scrollingElement?n.scrollingElement.scrollTop:r.pageYOffset!==void 0?r.pageYOffset:(n==null?void 0:n.documentElement.scrollTop)||(n==null?void 0:n.body)&&((e=D.parentElement(n.body))==null?void 0:e.scrollTop)||((t=n==null?void 0:n.body)==null?void 0:t.scrollTop)||0}}function af(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function uf(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ff(r){if(!r)return null;var i=r.nodeType===r.ELEMENT_NODE?r:D.parentElement(r);return i}function ge(r,i,o,e){if(!r)return!1;var t=ff(r);if(!t)return!1;try{if(typeof i=="string"){if(t.classList.contains(i)||e&&t.closest("."+i)!==null)return!0}else if(Fr(t,i,e))return!0}catch(n){}return!!(o&&(t.matches(o)||e&&t.closest(o)!==null))}function mm(r,i){return i.getId(r)!==-1}function No(r,i,o){return r.tagName==="TITLE"&&o.headTitleMutations?!0:i.getId(r)===Xt}function lf(r,i){if(Zt(r))return!1;var o=i.getId(r);if(!i.has(o))return!0;var e=D.parentNode(r);return e&&e.nodeType===r.DOCUMENT_NODE?!1:e?lf(e,i):!0}function Lo(r){return!!r.changedTouches}function gm(r){r===void 0&&(r=window),"NodeList"in r&&!r.NodeList.prototype.forEach&&(r.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in r&&!r.DOMTokenList.prototype.forEach&&(r.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function cf(r,i){return!!(r.nodeName==="IFRAME"&&i.getMeta(r))}function hf(r,i){return!!(r.nodeName==="LINK"&&r.nodeType===r.ELEMENT_NODE&&r.getAttribute&&r.getAttribute("rel")==="stylesheet"&&i.getMeta(r))}function Do(r){return r?A(r,nm)&&"shadowRoot"in r?!!r.shadowRoot:!!D.shadowRoot(r):!1}var ym=(function(){function r(){O(this,"id",1),O(this,"styleIDMap",new WeakMap),O(this,"idStyleMap",new Map)}var i=r.prototype;return i.getId=function(e){var t;return(t=this.styleIDMap.get(e))!=null?t:-1},i.has=function(e){return this.styleIDMap.has(e)},i.add=function(e,t){if(this.has(e))return this.getId(e);var n;return t===void 0?n=this.id++:n=t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n},i.getStyle=function(e){return this.idStyleMap.get(e)||null},i.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},i.generateId=function(){return this.id++},i.remove=function(e){var t=this.styleIDMap.get(e);return t!==void 0?(this.styleIDMap.delete(e),this.idStyleMap.delete(t),!0):!1},r})();function df(r){var i,o=null;return"getRootNode"in r&&((i=D.getRootNode(r))==null?void 0:i.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&D.host(D.getRootNode(r))&&(o=D.host(D.getRootNode(r))),o}function wm(r){for(var i=r,o;o=df(i);)i=o;return i}function bm(r){var i=r.ownerDocument;if(!i)return!1;var o=wm(r);return D.contains(i,o)}function pf(r){var i=r.ownerDocument;return i?D.contains(i,r)||bm(r):!1}var F=(function(r){return r[r.DomContentLoaded=0]="DomContentLoaded",r[r.Load=1]="Load",r[r.FullSnapshot=2]="FullSnapshot",r[r.IncrementalSnapshot=3]="IncrementalSnapshot",r[r.Meta=4]="Meta",r[r.Custom=5]="Custom",r[r.Plugin=6]="Plugin",r})(F||{}),P=(function(r){return r[r.Mutation=0]="Mutation",r[r.MouseMove=1]="MouseMove",r[r.MouseInteraction=2]="MouseInteraction",r[r.Scroll=3]="Scroll",r[r.ViewportResize=4]="ViewportResize",r[r.Input=5]="Input",r[r.TouchMove=6]="TouchMove",r[r.MediaInteraction=7]="MediaInteraction",r[r.StyleSheetRule=8]="StyleSheetRule",r[r.CanvasMutation=9]="CanvasMutation",r[r.Font=10]="Font",r[r.Log=11]="Log",r[r.Drag=12]="Drag",r[r.StyleDeclaration=13]="StyleDeclaration",r[r.Selection=14]="Selection",r[r.AdoptedStyleSheet=15]="AdoptedStyleSheet",r[r.CustomElement=16]="CustomElement",r})(P||{}),we=(function(r){return r[r.MouseUp=0]="MouseUp",r[r.MouseDown=1]="MouseDown",r[r.Click=2]="Click",r[r.ContextMenu=3]="ContextMenu",r[r.DblClick=4]="DblClick",r[r.Focus=5]="Focus",r[r.Blur=6]="Blur",r[r.TouchStart=7]="TouchStart",r[r.TouchMove_Departed=8]="TouchMove_Departed",r[r.TouchEnd=9]="TouchEnd",r[r.TouchCancel=10]="TouchCancel",r})(we||{}),Fe=(function(r){return r[r.Mouse=0]="Mouse",r[r.Pen=1]="Pen",r[r.Touch=2]="Touch",r})(Fe||{}),Pt=(function(r){return r[r["2D"]=0]="2D",r[r.WebGL=1]="WebGL",r[r.WebGL2=2]="WebGL2",r})(Pt||{}),Tt=(function(r){return r[r.Play=0]="Play",r[r.Pause=1]="Pause",r[r.Seeked=2]="Seeked",r[r.VolumeChange=3]="VolumeChange",r[r.RateChange=4]="RateChange",r})(Tt||{}),vf=(function(r){return r[r.Document=0]="Document",r[r.DocumentType=1]="DocumentType",r[r.Element=2]="Element",r[r.Text=3]="Text",r[r.CDATA=4]="CDATA",r[r.Comment=5]="Comment",r})(vf||{});function mf(r){return"__ln"in r}var Sm=(function(){function r(){O(this,"length",0),O(this,"head",null),O(this,"tail",null)}var i=r.prototype;return i.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,n=0;n<e;n++)t=(t==null?void 0:t.next)||null;return t},i.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&mf(e.previousSibling)){var n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&mf(e.nextSibling)&&e.nextSibling.__ln.previous){var s=e.nextSibling.__ln.previous;t.previous=s,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,s&&(s.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;t.next===null&&(this.tail=t),this.length++},i.removeNode=function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},r})(),gf=function(r,i){return r+"@"+i},Cm=(function(){function r(){var o=this;O(this,"frozen",!1),O(this,"locked",!1),O(this,"texts",[]),O(this,"attributes",[]),O(this,"attributeMap",new WeakMap),O(this,"removes",[]),O(this,"mapRemoves",[]),O(this,"movedMap",{}),O(this,"addedSet",new Set),O(this,"movedSet",new Set),O(this,"droppedSet",new Set),O(this,"removesSubTreeCache",new Set),O(this,"mutationCb"),O(this,"blockClass"),O(this,"blockSelector"),O(this,"maskTextClass"),O(this,"maskTextSelector"),O(this,"inlineStylesheet"),O(this,"maskInputOptions"),O(this,"maskTextFn"),O(this,"maskInputFn"),O(this,"keepIframeSrcFn"),O(this,"recordCanvas"),O(this,"inlineImages"),O(this,"slimDOMOptions"),O(this,"dataURLOptions"),O(this,"doc"),O(this,"mirror"),O(this,"iframeManager"),O(this,"stylesheetManager"),O(this,"shadowDomManager"),O(this,"canvasManager"),O(this,"processedNodeManager"),O(this,"unattachedDoc"),O(this,"processMutations",function(e){e.forEach(o.processMutation),o.emit()}),O(this,"emit",function(){if(!(o.frozen||o.locked)){for(var e=[],t=new Set,n=new Sm,s=function(_){for(var L=_,oe=Xt;oe===Xt;)L=L&&L.nextSibling,oe=L&&o.mirror.getId(L);return oe},a=function(_){var L=D.parentNode(_);if(!(!L||!pf(_))){var oe=!1;if(_.nodeType===Node.TEXT_NODE){var z=L.tagName;if(z==="TEXTAREA")return;z==="STYLE"&&o.addedSet.has(L)&&(oe=!0)}var Ce=Zt(L)?o.mirror.getId(df(_)):o.mirror.getId(L),be=s(_);if(Ce===-1||be===-1)return n.addNode(_);var pe=xt(_,{doc:o.doc,mirror:o.mirror,blockClass:o.blockClass,blockSelector:o.blockSelector,maskTextClass:o.maskTextClass,maskTextSelector:o.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:o.inlineStylesheet,maskInputOptions:o.maskInputOptions,maskTextFn:o.maskTextFn,maskInputFn:o.maskInputFn,slimDOMOptions:o.slimDOMOptions,dataURLOptions:o.dataURLOptions,recordCanvas:o.recordCanvas,inlineImages:o.inlineImages,onSerialize:function(ie){cf(ie,o.mirror)&&o.iframeManager.addIframe(ie),hf(ie,o.mirror)&&o.stylesheetManager.trackLinkElement(ie),Do(_)&&o.shadowDomManager.addShadowRoot(D.shadowRoot(_),o.doc)},onIframeLoad:function(ie,de){o.iframeManager.attachIframe(ie,de),o.shadowDomManager.observeAttachShadow(ie)},onStylesheetLoad:function(ie,de){o.stylesheetManager.attachLinkElement(ie,de)},cssCaptured:oe});pe&&(e.push({parentId:Ce,nextId:be,node:pe}),t.add(pe.id))}};o.mapRemoves.length;){var u=o.mapRemoves.shift();o.cleanupRemovedNode(u),o.mirror.removeNodeFromMap(u)}for(var f=I(o.movedSet),l;!(l=f()).done;){var c=l.value;yf(o.removesSubTreeCache,c,o.mirror)&&!o.movedSet.has(D.parentNode(c))||a(c)}for(var h=I(o.addedSet),v;!(v=h()).done;){var p=v.value;!wf(o.droppedSet,p)&&!yf(o.removesSubTreeCache,p,o.mirror)||wf(o.movedSet,p)?a(p):o.droppedSet.add(p)}for(var m=null;n.length;){var d=null;if(m){var g=o.mirror.getId(D.parentNode(m.value)),w=s(m.value);g!==-1&&w!==-1&&(d=m)}if(!d)for(var b=n.tail;b;){var S=b;if(b=b.previous,S){var C=o.mirror.getId(D.parentNode(S.value)),x=s(S.value);if(x===-1)continue;if(C!==-1){d=S;break}else{var E=S.value,R=D.parentNode(E);if(R&&R.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var k=D.host(R),N=o.mirror.getId(k);if(N!==-1){d=S;break}}}}}if(!d){for(;n.head;)n.removeNode(n.head.value);break}m=d.previous,n.removeNode(d.value),a(d.value)}var ae={texts:o.texts.map(function(_){var L=_.node,oe=D.parentNode(L);return oe&&oe.tagName==="TEXTAREA"&&o.genTextAreaValueMutation(oe),{id:o.mirror.getId(L),value:_.value}}).filter(function(_){return!t.has(_.id)}).filter(function(_){return o.mirror.has(_.id)}),attributes:o.attributes.map(function(_){var L=_.attributes;if(typeof L.style=="string"){var oe=JSON.stringify(_.styleDiff),z=JSON.stringify(_._unchangedStyles);oe.length<L.style.length&&(oe+z).split("var(").length===L.style.split("var(").length&&(L.style=_.styleDiff)}return{id:o.mirror.getId(_.node),attributes:L}}).filter(function(_){return!t.has(_.id)}).filter(function(_){return o.mirror.has(_.id)}),removes:o.removes,adds:e};!ae.texts.length&&!ae.attributes.length&&!ae.removes.length&&!ae.adds.length||(o.texts=[],o.attributes=[],o.attributeMap=new WeakMap,o.removes=[],o.addedSet=new Set,o.movedSet=new Set,o.droppedSet=new Set,o.removesSubTreeCache=new Set,o.movedMap={},o.mutationCb(ae))}}),O(this,"genTextAreaValueMutation",function(e){var t=o.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},o.attributes.push(t),o.attributeMap.set(e,t));var n=Array.from(D.childNodes(e),function(s){return D.textContent(s)||""}).join("");t.attributes.value=Tr({element:e,maskInputOptions:o.maskInputOptions,tagName:e.tagName,type:Nr(e),value:n,maskInputFn:o.maskInputFn})}),O(this,"processMutation",function(e){if(!No(e.target,o.mirror,o.slimDOMOptions))switch(e.type){case"characterData":{var t=D.textContent(e.target);!ge(e.target,o.blockClass,o.blockSelector,!1)&&t!==e.oldValue&&o.texts.push({value:oa(e.target,o.maskTextClass,o.maskTextSelector,!0)&&t?o.maskTextFn?o.maskTextFn(t,ff(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{var n=e.target,s=e.attributeName,a=e.target.getAttribute(s);if(s==="value"){var u=Nr(n);a=Tr({element:n,maskInputOptions:o.maskInputOptions,tagName:n.tagName,type:u,value:a,maskInputFn:o.maskInputFn})}if(ge(e.target,o.blockClass,o.blockSelector,!1)||a===e.oldValue)return;var f=o.attributeMap.get(e.target);if(n.tagName==="IFRAME"&&s==="src"&&!o.keepIframeSrcFn(a))if(!n.contentDocument)s="rr_src";else return;if(f||(f={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},o.attributes.push(f),o.attributeMap.set(e.target,f)),s==="type"&&n.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!ia(n.tagName,s))if(f.attributes[s]=na(o.doc,nt(n.tagName),nt(s),a),s==="style"){if(!o.unattachedDoc)try{o.unattachedDoc=document.implementation.createHTMLDocument()}catch(b){o.unattachedDoc=o.doc}var l=o.unattachedDoc.createElement("span");e.oldValue&&l.setAttribute("style",e.oldValue);for(var c=I(Array.from(n.style)),h;!(h=c()).done;){var v=h.value,p=n.style.getPropertyValue(v),m=n.style.getPropertyPriority(v);p!==l.style.getPropertyValue(v)||m!==l.style.getPropertyPriority(v)?m===""?f.styleDiff[v]=p:f.styleDiff[v]=[p,m]:f._unchangedStyles[v]=[p,m]}for(var d=I(Array.from(l.style)),g;!(g=d()).done;){var w=g.value;n.style.getPropertyValue(w)===""&&(f.styleDiff[w]=!1)}}else s==="open"&&n.tagName==="DIALOG"&&(n.matches("dialog:modal")?f.attributes.rr_open_mode="modal":f.attributes.rr_open_mode="non-modal");break}case"childList":{if(ge(e.target,o.blockClass,o.blockSelector,!0))return;if(e.target.tagName==="TEXTAREA"){o.genTextAreaValueMutation(e.target);return}e.addedNodes.forEach(function(b){return o.genAdds(b,e.target)}),e.removedNodes.forEach(function(b){var S=o.mirror.getId(b),C=Zt(e.target)?o.mirror.getId(D.host(e.target)):o.mirror.getId(e.target);ge(e.target,o.blockClass,o.blockSelector,!1)||No(b,o.mirror,o.slimDOMOptions)||!mm(b,o.mirror)||(o.addedSet.has(b)?(Fo(o.addedSet,b),o.droppedSet.add(b)):o.addedSet.has(e.target)&&S===-1||lf(e.target,o.mirror)||(o.movedSet.has(b)&&o.movedMap[gf(S,C)]?Fo(o.movedSet,b):(o.removes.push({parentId:C,id:S,isShadow:Zt(e.target)&&Kt(e.target)?!0:void 0}),Im(b,o.removesSubTreeCache))),o.mapRemoves.push(b))});break}}}),O(this,"genAdds",function(e,t){if(!o.processedNodeManager.inOtherBuffer(e,o)&&!(o.addedSet.has(e)||o.movedSet.has(e))){if(o.mirror.hasNode(e)){if(No(e,o.mirror,o.slimDOMOptions))return;o.movedSet.add(e);var n=null;t&&o.mirror.hasNode(t)&&(n=o.mirror.getId(t)),n&&n!==-1&&(o.movedMap[gf(o.mirror.getId(e),n)]=!0)}else o.addedSet.add(e),o.droppedSet.delete(e);ge(e,o.blockClass,o.blockSelector,!1)||(D.childNodes(e).forEach(function(s){return o.genAdds(s)}),Do(e)&&D.childNodes(D.shadowRoot(e)).forEach(function(s){o.processedNodeManager.add(s,o),o.genAdds(s,e)}))}}),O(this,"cleanupRemovedNode",function(e){if(e.nodeName==="IFRAME")try{o.iframeManager.removeIframe(e)}catch(t){}else try{o.stylesheetManager.cleanupStylesheetsForRemovedNode(e)}catch(t){}e.childNodes.forEach(function(t){o.cleanupRemovedNode(t)})})}var i=r.prototype;return i.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(n){t[n]=e[n]})},i.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},i.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},i.isFrozen=function(){return this.frozen},i.lock=function(){this.locked=!0,this.canvasManager.lock()},i.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},i.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},i.getDoc=function(){return this.doc},r})();function Fo(r,i){r.delete(i),D.childNodes(i).forEach(function(o){return Fo(r,o)})}function Im(r,i){for(var o=[r];o.length;){var e=o.pop();i.has(e)||(i.add(e),D.childNodes(e).forEach(function(t){return o.push(t)}))}}function yf(r,i,o){return r.size===0?!1:Om(r,i)}function Om(r,i,o){var e=D.parentNode(i);return e?r.has(e):!1}function wf(r,i){return r.size===0?!1:bf(r,i)}function bf(r,i){var o=D.parentNode(i);return o?r.has(o)?!0:bf(r,o):!1}var pr;function xm(r){pr=r}function Rm(){pr=void 0}var U=function(r){if(!pr)return r;var i=function(){for(var o=arguments.length,e=new Array(o),t=0;t<o;t++)e[t]=arguments[t];try{return r.apply(void 0,[].concat(e))}catch(n){if(pr&&pr(n)===!0)return;throw n}};return i},$e=[];function vr(r){try{if("composedPath"in r){var i=r.composedPath();if(i.length)return i[0]}else if("path"in r&&r.path.length)return r.path[0]}catch(o){}return r&&r.target}function Sf(r,i){var o=new Cm;$e.push(o),o.init(r);var e=new(nf())(U(o.processMutations.bind(o)));return e.observe(i,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),e}function Em(r){for(var i=$e.length-1;i>=0;i--){var o=$e[i];o.getDoc()===r&&$e.splice(i,1)}}function Am(r){var i=r.mousemoveCb,o=r.sampling,e=r.doc,t=r.mirror;if(o.mousemove===!1)return function(){};var n=typeof o.mousemove=="number"?o.mousemove:50,s=typeof o.mousemoveCallback=="number"?o.mousemoveCallback:500,a=[],u,f=dr(U(function(h){var v=Date.now()-u;i(a.map(function(p){return p.timeOffset-=v,p}),h),a=[],u=null}),s),l=U(dr(U(function(h){var v=vr(h),p=Lo(h)?h.changedTouches[0]:h,m=p.clientX,d=p.clientY;u||(u=An()),a.push({x:m,y:d,id:t.getId(v),timeOffset:An()-u}),f(typeof DragEvent!="undefined"&&A(h,DragEvent)?P.Drag:A(h,MouseEvent)?P.MouseMove:P.TouchMove)}),n,{trailing:!1})),c=[me("mousemove",l,e),me("touchmove",l,e),me("drag",l,e)];return U(function(){c.forEach(function(h){return h()})})}function Mm(r){var i=r.mouseInteractionCb,o=r.doc,e=r.mirror,t=r.blockClass,n=r.blockSelector,s=r.sampling;if(s.mouseInteraction===!1)return function(){};var a=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,u=[],f=null,l=function(c){return function(h){var v=vr(h);if(!ge(v,t,n,!0)){var p=null,m=c;if("pointerType"in h){switch(h.pointerType){case"mouse":p=Fe.Mouse;break;case"touch":p=Fe.Touch;break;case"pen":p=Fe.Pen;break}p===Fe.Touch?we[c]===we.MouseDown?m="TouchStart":we[c]===we.MouseUp&&(m="TouchEnd"):Fe.Pen}else Lo(h)&&(p=Fe.Touch);p!==null?(f=p,(m.startsWith("Touch")&&p===Fe.Touch||m.startsWith("Mouse")&&p===Fe.Mouse)&&(p=null)):we[c]===we.Click&&(p=f,f=null);var d=Lo(h)?h.changedTouches[0]:h;if(d){var g=e.getId(v),w=d.clientX,b=d.clientY;U(i)(T({type:we[m],id:g,x:w,y:b},p!==null&&{pointerType:p}))}}}};return Object.keys(we).filter(function(c){return Number.isNaN(Number(c))&&!c.endsWith("_Departed")&&a[c]!==!1}).forEach(function(c){var h=nt(c),v=l(c);if(window.PointerEvent)switch(we[c]){case we.MouseDown:case we.MouseUp:h=h.replace("mouse","pointer");break;case we.TouchStart:case we.TouchEnd:return}u.push(me(h,v,o))}),U(function(){u.forEach(function(c){return c()})})}function Cf(r){var i=r.scrollCb,o=r.doc,e=r.mirror,t=r.blockClass,n=r.blockSelector,s=r.sampling,a=U(dr(U(function(u){var f=vr(u);if(!(!f||ge(f,t,n,!0))){var l=e.getId(f);if(f===o&&o.defaultView){var c=sf(o.defaultView);i({id:l,x:c.left,y:c.top})}else i({id:l,x:f.scrollLeft,y:f.scrollTop})}}),s.scroll||100));return me("scroll",a,o)}function $m(r,i){var o=r.viewportResizeCb,e=i.win,t=-1,n=-1,s=U(dr(U(function(){var a=af(),u=uf();(t!==a||n!==u)&&(o({width:Number(u),height:Number(a)}),t=a,n=u)}),200));return me("resize",s,e)}var km=["INPUT","TEXTAREA","SELECT"],If=new WeakMap;function _m(r){var i=r.inputCb,o=r.doc,e=r.mirror,t=r.blockClass,n=r.blockSelector,s=r.ignoreClass,a=r.ignoreSelector,u=r.maskInputOptions,f=r.maskInputFn,l=r.sampling,c=r.userTriggeredOnInput;function h(S){var C=vr(S),x=S.isTrusted,E=C&&C.tagName;if(C&&E==="OPTION"&&(C=D.parentElement(C)),!(!C||!E||km.indexOf(E)<0||ge(C,t,n,!0))&&!(C.classList.contains(s)||a&&C.matches(a))){var R=C.value,k=!1,N=Nr(C)||"";N==="radio"||N==="checkbox"?k=C.checked:(u[E.toLowerCase()]||u[N])&&(R=Tr({element:C,maskInputOptions:u,tagName:E,type:N,value:R,maskInputFn:f})),v(C,c?{text:R,isChecked:k,userTriggered:x}:{text:R,isChecked:k});var ae=C.name;N==="radio"&&ae&&k&&o.querySelectorAll('input[type="radio"][name="'+ae+'"]').forEach(function(_){if(_!==C){var L=_.value;v(_,c?{text:L,isChecked:!k,userTriggered:!1}:{text:L,isChecked:!k})}})}}function v(S,C){var x=If.get(S);if(!x||x.text!==C.text||x.isChecked!==C.isChecked){If.set(S,C);var E=e.getId(S);U(i)(T({},C,{id:E}))}}var p=l.input==="last"?["change"]:["input","change"],m=p.map(function(S){return me(S,U(h),o)}),d=o.defaultView;if(!d)return function(){m.forEach(function(S){return S()})};var g=d.Object.getOwnPropertyDescriptor(d.HTMLInputElement.prototype,"value"),w=[[d.HTMLInputElement.prototype,"value"],[d.HTMLInputElement.prototype,"checked"],[d.HTMLSelectElement.prototype,"value"],[d.HTMLTextAreaElement.prototype,"value"],[d.HTMLSelectElement.prototype,"selectedIndex"],[d.HTMLOptionElement.prototype,"selected"]];if(g&&g.set){var b;(b=m).push.apply(b,[].concat(w.map(function(S){return En(S[0],S[1],{set:function(){U(h)({target:this,isTrusted:!1})}},!1,d)})))}return U(function(){m.forEach(function(S){return S()})})}function Mn(r){var i=[];function o(e,t){if($n("CSSGroupingRule")&&A(e.parentRule,CSSGroupingRule)||$n("CSSMediaRule")&&A(e.parentRule,CSSMediaRule)||$n("CSSSupportsRule")&&A(e.parentRule,CSSSupportsRule)||$n("CSSConditionRule")&&A(e.parentRule,CSSConditionRule)){var n=Array.from(e.parentRule.cssRules),s=n.indexOf(e);t.unshift(s)}else if(e.parentStyleSheet){var a=Array.from(e.parentStyleSheet.cssRules),u=a.indexOf(e);t.unshift(u)}return t}return o(r,i)}function He(r,i,o){var e,t;return r?(r.ownerNode?e=i.getId(r.ownerNode):t=o.getId(r),{styleId:t,id:e}):{}}function Pm(r,i){var o=r.styleSheetRuleCb,e=r.mirror,t=r.stylesheetManager,n=i.win;if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return function(){};var s=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:U(function(h,v,p){var m=p[0],d=p[1],g=He(v,e,t.styleMirror),w=g.id,b=g.styleId;return(w&&w!==-1||b&&b!==-1)&&o({id:w,styleId:b,adds:[{rule:m,index:d}]}),h.apply(v,p)})}),n.CSSStyleSheet.prototype.addRule=function(h,v,p){p===void 0&&(p=this.cssRules.length);var m=h+" { "+v+" }";return n.CSSStyleSheet.prototype.insertRule.apply(this,[m,p])};var a=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:U(function(h,v,p){var m=p[0],d=He(v,e,t.styleMirror),g=d.id,w=d.styleId;return(g&&g!==-1||w&&w!==-1)&&o({id:g,styleId:w,removes:[{index:m}]}),h.apply(v,p)})}),n.CSSStyleSheet.prototype.removeRule=function(h){return n.CSSStyleSheet.prototype.deleteRule.apply(this,[h])};var u;n.CSSStyleSheet.prototype.replace&&(u=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(u,{apply:U(function(h,v,p){var m=p[0],d=He(v,e,t.styleMirror),g=d.id,w=d.styleId;return(g&&g!==-1||w&&w!==-1)&&o({id:g,styleId:w,replace:m}),h.apply(v,p)})}));var f;n.CSSStyleSheet.prototype.replaceSync&&(f=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(f,{apply:U(function(h,v,p){var m=p[0],d=He(v,e,t.styleMirror),g=d.id,w=d.styleId;return(g&&g!==-1||w&&w!==-1)&&o({id:g,styleId:w,replaceSync:m}),h.apply(v,p)})}));var l={};kn("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(kn("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),kn("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),kn("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));var c={};return Object.entries(l).forEach(function(h){var v=h[0],p=h[1];c[v]={insertRule:p.prototype.insertRule,deleteRule:p.prototype.deleteRule},p.prototype.insertRule=new Proxy(c[v].insertRule,{apply:U(function(m,d,g){var w=g[0],b=g[1],S=He(d.parentStyleSheet,e,t.styleMirror),C=S.id,x=S.styleId;return(C&&C!==-1||x&&x!==-1)&&o({id:C,styleId:x,adds:[{rule:w,index:[].concat(Mn(d),[b||0])}]}),m.apply(d,g)})}),p.prototype.deleteRule=new Proxy(c[v].deleteRule,{apply:U(function(m,d,g){var w=g[0],b=He(d.parentStyleSheet,e,t.styleMirror),S=b.id,C=b.styleId;return(S&&S!==-1||C&&C!==-1)&&o({id:S,styleId:C,removes:[{index:[].concat(Mn(d),[w])}]}),m.apply(d,g)})})}),U(function(){n.CSSStyleSheet.prototype.insertRule=s,n.CSSStyleSheet.prototype.deleteRule=a,u&&(n.CSSStyleSheet.prototype.replace=u),f&&(n.CSSStyleSheet.prototype.replaceSync=f),Object.entries(l).forEach(function(h){var v=h[0],p=h[1];p.prototype.insertRule=c[v].insertRule,p.prototype.deleteRule=c[v].deleteRule})})}function Of(r,i){var o=r.mirror,e=r.stylesheetManager,t,n,s,a=null;i.nodeName==="#document"?a=o.getId(i):a=o.getId(D.host(i));var u=i.nodeName==="#document"?(t=i.defaultView)==null?void 0:t.Document:(s=(n=i.ownerDocument)==null?void 0:n.defaultView)==null?void 0:s.ShadowRoot,f=u!=null&&u.prototype?Object.getOwnPropertyDescriptor(u==null?void 0:u.prototype,"adoptedStyleSheets"):void 0;return a===null||a===-1||!u||!f?function(){}:(Object.defineProperty(i,"adoptedStyleSheets",{configurable:f.configurable,enumerable:f.enumerable,get:function(){var c;return(c=f.get)==null?void 0:c.call(this)},set:function(c){var h,v=(h=f.set)==null?void 0:h.call(this,c);if(a!==null&&a!==-1)try{e.adoptStyleSheets(c,a)}catch(p){}return v}}),U(function(){Object.defineProperty(i,"adoptedStyleSheets",{configurable:f.configurable,enumerable:f.enumerable,get:f.get,set:f.set})}))}function Tm(r,i){var o=r.styleDeclarationCb,e=r.mirror,t=r.ignoreCSSAttributes,n=r.stylesheetManager,s=i.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:U(function(f,l,c){var h,v=c[0],p=c[1],m=c[2];if(t.has(v))return a.apply(l,[v,p,m]);var d=He((h=l.parentRule)==null?void 0:h.parentStyleSheet,e,n.styleMirror),g=d.id,w=d.styleId;return(g&&g!==-1||w&&w!==-1)&&o({id:g,styleId:w,set:{property:v,value:p,priority:m},index:Mn(l.parentRule)}),f.apply(l,c)})});var u=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:U(function(f,l,c){var h,v=c[0];if(t.has(v))return u.apply(l,[v]);var p=He((h=l.parentRule)==null?void 0:h.parentStyleSheet,e,n.styleMirror),m=p.id,d=p.styleId;return(m&&m!==-1||d&&d!==-1)&&o({id:m,styleId:d,remove:{property:v},index:Mn(l.parentRule)}),f.apply(l,c)})}),U(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=u})}function Nm(r){var i=r.mediaInteractionCb,o=r.blockClass,e=r.blockSelector,t=r.mirror,n=r.sampling,s=r.doc,a=U(function(f){return dr(U(function(l){var c=vr(l);if(!(!c||ge(c,o,e,!0))){var h=c.currentTime,v=c.volume,p=c.muted,m=c.playbackRate,d=c.loop;i({type:f,id:t.getId(c),currentTime:h,volume:v,muted:p,playbackRate:m,loop:d})}}),n.media||500)}),u=[me("play",a(Tt.Play),s),me("pause",a(Tt.Pause),s),me("seeked",a(Tt.Seeked),s),me("volumechange",a(Tt.VolumeChange),s),me("ratechange",a(Tt.RateChange),s)];return U(function(){u.forEach(function(f){return f()})})}function Lm(r){var i=r.fontCb,o=r.doc,e=o.defaultView;if(!e)return function(){};var t=[],n=new WeakMap,s=e.FontFace;e.FontFace=function(f,l,c){var h=new s(f,l,c);return n.set(h,{family:f,buffer:typeof l!="string",descriptors:c,fontSource:typeof l=="string"?l:JSON.stringify(Array.from(new Uint8Array(l)))}),h};var a=st(o.fonts,"add",function(u){return function(f){return setTimeout(U(function(){var l=n.get(f);l&&(i(l),n.delete(f))}),0),u.apply(this,[f])}});return t.push(function(){e.FontFace=s}),t.push(a),U(function(){t.forEach(function(u){return u()})})}function Dm(r){var i=r.doc,o=r.mirror,e=r.blockClass,t=r.blockSelector,n=r.selectionCb,s=!0,a=U(function(){var u=i.getSelection();if(!(!u||s&&(u!=null&&u.isCollapsed))){s=u.isCollapsed||!1;for(var f=[],l=u.rangeCount||0,c=0;c<l;c++){var h=u.getRangeAt(c),v=h.startContainer,p=h.startOffset,m=h.endContainer,d=h.endOffset,g=ge(v,e,t,!0)||ge(m,e,t,!0);g||f.push({start:o.getId(v),startOffset:p,end:o.getId(m),endOffset:d})}n({ranges:f})}});return a(),me("selectionchange",a)}function Fm(r){var i=r.doc,o=r.customElementCb,e=i.defaultView;if(!e||!e.customElements)return function(){};var t=st(e.customElements,"define",function(n){return function(s,a,u){try{o({define:{name:s}})}catch(f){console.warn("Custom element callback failed for "+s)}return n.apply(this,[s,a,u])}});return t}function Bm(r,i){var o=r.mutationCb,e=r.mousemoveCb,t=r.mouseInteractionCb,n=r.scrollCb,s=r.viewportResizeCb,a=r.inputCb,u=r.mediaInteractionCb,f=r.styleSheetRuleCb,l=r.styleDeclarationCb,c=r.canvasMutationCb,h=r.fontCb,v=r.selectionCb,p=r.customElementCb;r.mutationCb=function(){for(var m=arguments.length,d=new Array(m),g=0;g<m;g++)d[g]=arguments[g];if(i.mutation){var w;(w=i).mutation.apply(w,[].concat(d))}o.apply(void 0,[].concat(d))},r.mousemoveCb=function(){for(var m=arguments.length,d=new Array(m),g=0;g<m;g++)d[g]=arguments[g];if(i.mousemove){var w;(w=i).mousemove.apply(w,[].concat(d))}e.apply(void 0,[].concat(d))},r.mouseInteractionCb=function(){for(var m=arguments.length,d=new Array(m),g=0;g<m;g++)d[g]=arguments[g];if(i.mouseInteraction){var w;(w=i).mouseInteraction.apply(w,[].concat(d))}t.apply(void 0,[].concat(d))},r.scrollCb=function(){for(var m=arguments.length,d=new Array(m),g=0;g<m;g++)d[g]=arguments[g];if(i.scroll){var w;(w=i).scroll.apply(w,[].concat(d))}n.apply(void 0,[].concat(d))},r.viewportResizeCb=function(){for(var m=arguments.length,d=new Array(m),g=0;g<m;g++)d[g]=arguments[g];if(i.viewportResize){var w;(w=i).viewportResize.apply(w,[].concat(d))}s.apply(void 0,[].concat(d))},r.inputCb=function(){for(var m=arguments.length,d=new Array(m),g=0;g<m;g++)d[g]=arguments[g];if(i.input){var w;(w=i).input.apply(w,[].concat(d))}a.apply(void 0,[].concat(d))},r.mediaInteractionCb=function(){for(var m=arguments.length,d=new Array(m),g=0;g<m;g++)d[g]=arguments[g];if(i.mediaInteaction){var w;(w=i).mediaInteaction.apply(w,[].concat(d))}u.apply(void 0,[].concat(d))},r.styleSheetRuleCb=function(){for(var m=arguments.length,d=new Array(m),g=0;g<m;g++)d[g]=arguments[g];if(i.styleSheetRule){var w;(w=i).styleSheetRule.apply(w,[].concat(d))}f.apply(void 0,[].concat(d))},r.styleDeclarationCb=function(){for(var m=arguments.length,d=new Array(m),g=0;g<m;g++)d[g]=arguments[g];if(i.styleDeclaration){var w;(w=i).styleDeclaration.apply(w,[].concat(d))}l.apply(void 0,[].concat(d))},r.canvasMutationCb=function(){for(var m=arguments.length,d=new Array(m),g=0;g<m;g++)d[g]=arguments[g];if(i.canvasMutation){var w;(w=i).canvasMutation.apply(w,[].concat(d))}c.apply(void 0,[].concat(d))},r.fontCb=function(){for(var m=arguments.length,d=new Array(m),g=0;g<m;g++)d[g]=arguments[g];if(i.font){var w;(w=i).font.apply(w,[].concat(d))}h.apply(void 0,[].concat(d))},r.selectionCb=function(){for(var m=arguments.length,d=new Array(m),g=0;g<m;g++)d[g]=arguments[g];if(i.selection){var w;(w=i).selection.apply(w,[].concat(d))}v.apply(void 0,[].concat(d))},r.customElementCb=function(){for(var m=arguments.length,d=new Array(m),g=0;g<m;g++)d[g]=arguments[g];if(i.customElement){var w;(w=i).customElement.apply(w,[].concat(d))}p.apply(void 0,[].concat(d))}}function Um(r,i){i===void 0&&(i={});var o=r.doc.defaultView;if(!o)return function(){};Bm(r,i);var e;r.recordDOM&&(e=Sf(r,r.doc));var t=Am(r),n=Mm(r),s=Cf(r),a=$m(r,{win:o}),u=_m(r),f=Nm(r),l=function(){},c=function(){},h=function(){},v=function(){};r.recordDOM&&(l=Pm(r,{win:o}),c=Of(r,r.doc),h=Tm(r,{win:o}),r.collectFonts&&(v=Lm(r)));for(var p=Dm(r),m=Fm(r),d=[],g=I(r.plugins),w;!(w=g()).done;){var b=w.value;d.push(b.observer(b.callback,o,b.options))}return U(function(){$e.forEach(function(S){return S.reset()}),e==null||e.disconnect(),t(),n(),s(),a(),u(),f(),l(),c(),h(),v(),p(),m(),d.forEach(function(S){return S()})})}function $n(r){return typeof window[r]!="undefined"}function kn(r){return!!(typeof window[r]!="undefined"&&window[r].prototype&&"insertRule"in window[r].prototype&&"deleteRule"in window[r].prototype)}for(var xf=(function(){function r(o){O(this,"iframeIdToRemoteIdMap",new WeakMap),O(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=o}var i=r.prototype;return i.getId=function(e,t,n,s){var a=n||this.getIdToRemoteIdMap(e),u=s||this.getRemoteIdToIdMap(e),f=a.get(t);return f||(f=this.generateIdFn(),a.set(t,f),u.set(f,t)),f},i.getIds=function(e,t){var n=this,s=this.getIdToRemoteIdMap(e),a=this.getRemoteIdToIdMap(e);return t.map(function(u){return n.getId(e,u,s,a)})},i.getRemoteId=function(e,t,n){var s=n||this.getRemoteIdToIdMap(e);if(typeof t!="number")return t;var a=s.get(t);return a||-1},i.getRemoteIds=function(e,t){var n=this,s=this.getRemoteIdToIdMap(e);return t.map(function(a){return n.getRemoteId(e,a,s)})},i.reset=function(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},i.getIdToRemoteIdMap=function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t},i.getRemoteIdToIdMap=function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t},r})(),zm=(function(){function r(o){O(this,"iframes",new WeakMap),O(this,"crossOriginIframeMap",new WeakMap),O(this,"crossOriginIframeMirror",new xf(ea)),O(this,"crossOriginIframeStyleMirror"),O(this,"crossOriginIframeRootIdMap",new WeakMap),O(this,"iframeContentDocumentMap",new WeakMap),O(this,"iframeObserverCleanupMap",new WeakMap),O(this,"mirror"),O(this,"mutationCb"),O(this,"wrappedEmit"),O(this,"loadListener"),O(this,"stylesheetManager"),O(this,"recordCrossOriginIframes"),this.mutationCb=o.mutationCb,this.wrappedEmit=o.wrappedEmit,this.stylesheetManager=o.stylesheetManager,this.recordCrossOriginIframes=o.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new xf(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=o.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var i=r.prototype;return i.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},i.getIframeContentDocument=function(e){return this.iframeContentDocumentMap.get(e)},i.setObserverCleanup=function(e,t){this.iframeObserverCleanupMap.set(e,t)},i.getObserverCleanup=function(e){return this.iframeObserverCleanupMap.get(e)},i.removeIframe=function(e){var t=this.iframeContentDocumentMap.get(e);t&&(this.stylesheetManager.cleanupStylesheetsForRemovedNode(t),this.mirror.removeNodeFromMap(t,!0)),this.iframes.delete(e),this.iframeContentDocumentMap.delete(e);var n=this.iframeObserverCleanupMap.get(e);if(n){try{n()}catch(s){}this.iframeObserverCleanupMap.delete(e)}},i.addLoadListener=function(e){this.loadListener=e},i.attachIframe=function(e,t){var n,s;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),e.contentDocument&&this.iframeContentDocumentMap.set(e,e.contentDocument),this.recordCrossOriginIframes&&((n=e.contentWindow)==null||n.addEventListener("message",this.handleMessage.bind(this))),(s=this.loadListener)==null||s.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},i.handleMessage=function(e){var t=e;if(!(t.data.type!=="rrweb"||t.origin!==t.data.origin)){var n=e.source;if(n){var s=this.crossOriginIframeMap.get(e.source);if(s){var a=this.transformCrossOriginEvent(s,t.data.event);a&&this.wrappedEmit(a,t.data.isCheckout)}}}},i.transformCrossOriginEvent=function(e,t){var n=this,s;switch(t.type){case F.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var a=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,a),this.patchRootIdOnNode(t.data.node,a),{timestamp:t.timestamp,type:F.IncrementalSnapshot,data:{source:P.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case F.Meta:case F.Load:case F.DomContentLoaded:return!1;case F.Plugin:return t;case F.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case F.IncrementalSnapshot:switch(t.data.source){case P.Mutation:return t.data.adds.forEach(function(u){n.replaceIds(u,e,["parentId","nextId","previousId"]),n.replaceIdOnNode(u.node,e);var f=n.crossOriginIframeRootIdMap.get(e);f&&n.patchRootIdOnNode(u.node,f)}),t.data.removes.forEach(function(u){n.replaceIds(u,e,["parentId","id"])}),t.data.attributes.forEach(function(u){n.replaceIds(u,e,["id"])}),t.data.texts.forEach(function(u){n.replaceIds(u,e,["id"])}),t;case P.Drag:case P.TouchMove:case P.MouseMove:return t.data.positions.forEach(function(u){n.replaceIds(u,e,["id"])}),t;case P.ViewportResize:return!1;case P.MediaInteraction:case P.MouseInteraction:case P.Scroll:case P.CanvasMutation:case P.Input:return this.replaceIds(t.data,e,["id"]),t;case P.StyleSheetRule:case P.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case P.Font:return t;case P.Selection:return t.data.ranges.forEach(function(u){n.replaceIds(u,e,["start","end"])}),t;case P.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),(s=t.data.styles)==null||s.forEach(function(u){n.replaceStyleIds(u,e,["styleId"])}),t}}return!1},i.replace=function(e,t,n,s){for(var a=I(s),u;!(u=a()).done;){var f=u.value;!Array.isArray(t[f])&&typeof t[f]!="number"||(Array.isArray(t[f])?t[f]=e.getIds(n,t[f]):t[f]=e.getId(n,t[f]))}return t},i.replaceIds=function(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)},i.replaceStyleIds=function(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)},i.replaceIdOnNode=function(e,t){var n=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(s){n.replaceIdOnNode(s,t)})},i.patchRootIdOnNode=function(e,t){var n=this;e.type!==vf.Document&&!e.rootId&&(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(s){n.patchRootIdOnNode(s,t)})},r})(),Wm=(function(){function r(o){O(this,"shadowDoms",new WeakSet),O(this,"mutationCb"),O(this,"scrollCb"),O(this,"bypassOptions"),O(this,"mirror"),O(this,"restoreHandlers",[]),this.mutationCb=o.mutationCb,this.scrollCb=o.scrollCb,this.bypassOptions=o.bypassOptions,this.mirror=o.mirror,this.init()}var i=r.prototype;return i.init=function(){this.reset(),this.patchAttachShadow(Element,document)},i.addShadowRoot=function(e,t){var n=this;if(Kt(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var s=Sf(T({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return s.disconnect()}),this.restoreHandlers.push(Cf(T({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&n.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,n.mirror.getId(D.host(e))),n.restoreHandlers.push(Of({mirror:n.mirror,stylesheetManager:n.bypassOptions.stylesheetManager},e))},0)}},i.observeAttachShadow=function(e){!e.contentWindow||!e.contentDocument||this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},i.patchAttachShadow=function(e,t){var n=this;this.restoreHandlers.push(st(e.prototype,"attachShadow",function(s){return function(a){var u=s.call(this,a),f=D.shadowRoot(this);return f&&pf(this)&&n.addShadowRoot(f,t),u}}))},i.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},r})(),Nt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",jm=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),_n=0;_n<Nt.length;_n++)jm[Nt.charCodeAt(_n)]=_n;var Gm=function(i){var o=new Uint8Array(i),e,t=o.length,n="";for(e=0;e<t;e+=3)n+=Nt[o[e]>>2],n+=Nt[(o[e]&3)<<4|o[e+1]>>4],n+=Nt[(o[e+1]&15)<<2|o[e+2]>>6],n+=Nt[o[e+2]&63];return t%3===2?n=n.substring(0,n.length-1)+"=":t%3===1&&(n=n.substring(0,n.length-2)+"=="),n},Rf=new Map;function qm(r,i){var o=Rf.get(r);return o||(o=new Map,Rf.set(r,o)),o.has(i)||o.set(i,[]),o.get(i)}var Ef=function(r,i,o){if(!(!r||!(Mf(r,i)||(typeof r=="undefined"?"undefined":M(r))==="object"))){var e=r.constructor.name,t=qm(o,e),n=t.indexOf(r);return n===-1&&(n=t.length,t.push(r)),n}};function Pn(r,i,o){if(A(r,Array))return r.map(function(p){return Pn(p,i,o)});if(r===null)return r;if(A(r,Float32Array)||A(r,Float64Array)||A(r,Int32Array)||A(r,Uint32Array)||A(r,Uint8Array)||A(r,Uint16Array)||A(r,Int16Array)||A(r,Int8Array)||A(r,Uint8ClampedArray)){var e=r.constructor.name;return{rr_type:e,args:[Object.values(r)]}}else if(A(r,ArrayBuffer)){var t=r.constructor.name,n=Gm(r);return{rr_type:t,base64:n}}else if(A(r,DataView)){var s=r.constructor.name;return{rr_type:s,args:[Pn(r.buffer,i,o),r.byteOffset,r.byteLength]}}else if(A(r,HTMLImageElement)){var a=r.constructor.name,u=r.src;return{rr_type:a,src:u}}else if(A(r,HTMLCanvasElement)){var f="HTMLImageElement",l=r.toDataURL();return{rr_type:f,src:l}}else if(A(r,ImageData)){var c=r.constructor.name;return{rr_type:c,args:[Pn(r.data,i,o),r.width,r.height]}}else if(Mf(r,i)||(typeof r=="undefined"?"undefined":M(r))==="object"){var h=r.constructor.name,v=Ef(r,i,o);return{rr_type:h,index:v}}return r}var Af=function(r,i,o){return r.map(function(e){return Pn(e,i,o)})},Mf=function(r,i){var o=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],e=o.filter(function(t){return typeof i[t]=="function"});return!!e.find(function(t){return A(r,i[t])})};function Vm(r,i,o,e){for(var t=function(){var f=u.value;try{if(typeof i.CanvasRenderingContext2D.prototype[f]!="function")return"continue";var l=st(i.CanvasRenderingContext2D.prototype,f,function(h){return function(){for(var v=this,p=arguments.length,m=new Array(p),d=0;d<p;d++)m[d]=arguments[d];return ge(this.canvas,o,e,!0)||setTimeout(function(){var g=Af(m,i,v);r(v.canvas,{type:Pt["2D"],property:f,args:g})},0),h.apply(this,m)}});n.push(l)}catch(h){var c=En(i.CanvasRenderingContext2D.prototype,f,{set:function(p){r(this.canvas,{type:Pt["2D"],property:f,args:[p],setter:!0})}});n.push(c)}},n=[],s=Object.getOwnPropertyNames(i.CanvasRenderingContext2D.prototype),a=I(s),u;!(u=a()).done;)t();return function(){n.forEach(function(f){return f()})}}function Hm(r){return r==="experimental-webgl"?"webgl":r}function $f(r,i,o,e){var t=[];try{var n=st(r.HTMLCanvasElement.prototype,"getContext",function(s){return function(a){for(var u=arguments.length,f=new Array(u>1?u-1:0),l=1;l<u;l++)f[l-1]=arguments[l];if(!ge(this,i,o,!0)){var c=Hm(a);if("__context"in this||(this.__context=c),e&&["webgl","webgl2"].includes(c))if(f[0]&&M(f[0])==="object"){var h=f[0];h.preserveDrawingBuffer||(h.preserveDrawingBuffer=!0)}else f.splice(0,1,{preserveDrawingBuffer:!0})}return s.apply(this,[].concat([a],f))}});t.push(n)}catch(s){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){t.forEach(function(s){return s()})}}function kf(r,i,o,e,t,n){for(var s=function(){var c=l.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(c))return"continue";try{if(typeof r[c]!="function")return"continue";var h=st(r,c,function(p){return function(){for(var m=arguments.length,d=new Array(m),g=0;g<m;g++)d[g]=arguments[g];var w=p.apply(this,d);if(Ef(w,n,this),"tagName"in this.canvas&&!ge(this.canvas,e,t,!0)){var b=Af(d,n,this),S={type:i,property:c,args:b};o(this.canvas,S)}return w}});a.push(h)}catch(p){var v=En(r,c,{set:function(d){o(this.canvas,{type:i,property:c,args:[d],setter:!0})}});a.push(v)}},a=[],u=Object.getOwnPropertyNames(r),f=I(u),l;!(l=f()).done;)s();return a}function Ym(r,i,o,e){var t,n=[];if((t=n).push.apply(t,[].concat(kf(i.WebGLRenderingContext.prototype,Pt.WebGL,r,o,e,i))),typeof i.WebGL2RenderingContext!="undefined"){var s;(s=n).push.apply(s,[].concat(kf(i.WebGL2RenderingContext.prototype,Pt.WebGL2,r,o,e,i)))}return function(){n.forEach(function(a){return a()})}}var _f="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Jm=function(r){return Uint8Array.from(atob(r),function(i){return i.charCodeAt(0)})},Pf=typeof window!="undefined"&&window.Blob&&new Blob([Jm(_f)],{type:"text/javascript;charset=utf-8"});function Zm(r){var i;try{if(i=Pf&&(window.URL||window.webkitURL).createObjectURL(Pf),!i)throw"";var o=new Worker(i,{name:r==null?void 0:r.name});return o.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(i)}),o}catch(e){return new Worker("data:text/javascript;base64,"+_f,{name:r==null?void 0:r.name})}finally{i&&(window.URL||window.webkitURL).revokeObjectURL(i)}}var Km=(function(){function r(o){var e=this;O(this,"pendingCanvasMutations",new Map),O(this,"rafStamps",{latestId:0,invokeId:null}),O(this,"mirror"),O(this,"mutationCb"),O(this,"resetObservers"),O(this,"frozen",!1),O(this,"locked",!1),O(this,"processMutation",function(c,h){var v=e.rafStamps.invokeId&&e.rafStamps.latestId!==e.rafStamps.invokeId;(v||!e.rafStamps.invokeId)&&(e.rafStamps.invokeId=e.rafStamps.latestId),e.pendingCanvasMutations.has(c)||e.pendingCanvasMutations.set(c,[]),e.pendingCanvasMutations.get(c).push(h)});var t=o.sampling,n=t===void 0?"all":t,s=o.win,a=o.blockClass,u=o.blockSelector,f=o.recordCanvas,l=o.dataURLOptions;this.mutationCb=o.mutationCb,this.mirror=o.mirror,f&&n==="all"&&this.initCanvasMutationObserver(s,a,u),f&&typeof n=="number"&&this.initCanvasFPSObserver(n,s,a,u,{dataURLOptions:l})}var i=r.prototype;return i.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},i.freeze=function(){this.frozen=!0},i.unfreeze=function(){this.frozen=!1},i.lock=function(){this.locked=!0},i.unlock=function(){this.locked=!1},i.initCanvasFPSObserver=function(e,t,n,s,a){var u=this,f=$f(t,n,s,!0),l=new Map,c=new Zm;c.onmessage=function(g){var w=g.data.id;if(l.set(w,!1),"base64"in g.data){var b=g.data,S=b.base64,C=b.type,x=b.width,E=b.height;u.mutationCb({id:w,type:Pt["2D"],commands:[{property:"clearRect",args:[0,0,x,E]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:S}],type:C}]},0,0]}]})}};var h=1e3/e,v=0,p,m=function(){var g=[];return t.document.querySelectorAll("canvas").forEach(function(w){ge(w,n,s,!0)||g.push(w)}),g},d=function(g){if(v&&g-v<h){p=requestAnimationFrame(d);return}v=g;var w=u;m().forEach(kr(function(b){var S,C,x,E;return rt(this,function(R){switch(R.label){case 0:return C=w.mirror.getId(b),l.get(C)?[2]:b.width===0||b.height===0?[2]:(l.set(C,!0),["webgl","webgl2"].includes(b.__context)&&(x=b.getContext(b.__context),((S=x==null?void 0:x.getContextAttributes())==null?void 0:S.preserveDrawingBuffer)===!1&&x.clear(x.COLOR_BUFFER_BIT)),[4,createImageBitmap(b)]);case 1:return E=R.sent(),c.postMessage({id:C,bitmap:E,width:b.width,height:b.height,dataURLOptions:a.dataURLOptions},[E]),[2]}})})),p=requestAnimationFrame(d)};p=requestAnimationFrame(d),this.resetObservers=function(){f(),cancelAnimationFrame(p)}},i.initCanvasMutationObserver=function(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var s=$f(e,t,n,!1),a=Vm(this.processMutation.bind(this),e,t,n),u=Ym(this.processMutation.bind(this),e,t,n);this.resetObservers=function(){s(),a(),u()}},i.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},i.startRAFTimestamping=function(){var e=this,t=function(n){e.rafStamps.latestId=n,requestAnimationFrame(t)};requestAnimationFrame(t)},i.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(t,n){var s=e.mirror.getId(n);e.flushPendingCanvasMutationFor(n,s)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},i.flushPendingCanvasMutationFor=function(e,t){if(!(this.frozen||this.locked)){var n=this.pendingCanvasMutations.get(e);if(!(!n||t===-1)){var s=n.map(function(u){u.type;var f=tt(u,["type"]);return f}),a=n[0].type;this.mutationCb({id:t,type:a,commands:s}),this.pendingCanvasMutations.delete(e)}}},r})(),Xm=(function(){function r(o){O(this,"trackedLinkElements",new WeakSet),O(this,"mutationCb"),O(this,"adoptedStyleSheetCb"),O(this,"styleMirror",new ym),this.mutationCb=o.mutationCb,this.adoptedStyleSheetCb=o.adoptedStyleSheetCb}var i=r.prototype;return i.attachLinkElement=function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)},i.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},i.adoptStyleSheets=function(e,t){var n,s=function(){var c=l.value,h=void 0;n.styleMirror.has(c)?h=n.styleMirror.getId(c):(h=n.styleMirror.add(c),u.push({styleId:h,rules:Array.from(c.rules||CSSRule,function(v,p){return{rule:Zs(v,c.href),index:p}})})),a.styleIds.push(h)};if(e.length!==0){for(var a={id:t,styleIds:[]},u=[],f=I(e),l;!(l=f()).done;)n=this,s();u.length>0&&(a.styles=u),this.adoptedStyleSheetCb(a)}},i.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},i.cleanupStylesheetsForRemovedNode=function(e){var t=this;try{if(e.nodeType===Node.DOCUMENT_NODE){var n=e;if(n.adoptedStyleSheets)for(var s=I(n.adoptedStyleSheets),a;!(a=s()).done;){var u=a.value;this.styleMirror.remove(u)}}if(e.nodeName==="STYLE"){var f=e;f.sheet&&this.styleMirror.remove(f.sheet)}if(e.nodeName==="LINK"&&e.rel==="stylesheet"){var l=e;l.sheet&&this.styleMirror.remove(l.sheet)}e.childNodes&&e.childNodes.forEach(function(c){t.cleanupStylesheetsForRemovedNode(c)})}catch(c){}},i.trackStylesheetInLinkElement=function(e){},r})(),Qm=(function(){function r(){O(this,"nodeMap",new WeakMap),O(this,"active",!1)}var i=r.prototype;return i.inOtherBuffer=function(e,t){var n=this.nodeMap.get(e);return n&&Array.from(n).some(function(s){return s!==t})},i.add=function(e,t){var n=this;this.active||(this.active=!0,requestAnimationFrame(function(){n.nodeMap=new WeakMap,n.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))},i.destroy=function(){},r})();function eg(r){try{var i=new URL(r).origin;return i!=="null"?i:null}catch(o){return null}}function tg(r){if(!Array.isArray(r)||r.length===0)throw new Error("[rrweb] allowedIframeOrigins must be a non-empty array of origin strings.");for(var i=new Set,o=0;o<r.length;o++){var e=r[o];if(typeof e!="string")throw new Error("[rrweb] allowedIframeOrigins["+o+"] must be a string, got "+(typeof e=="undefined"?"undefined":M(e))+".");var t=eg(e);t&&i.add(t)}return Object.freeze(i)}var se,Tn,Bo,Nn=!1;try{if(Array.from([1],function(r){return r*2})[0]!==2){var Uo=document.createElement("iframe");document.body.appendChild(Uo),Array.from=((Gs=Uo.contentWindow)==null?void 0:Gs.Array.from)||Array.from,document.body.removeChild(Uo)}}catch(r){console.debug("Unable to override Array.from",r)}var xe=Zc();function Ye(r){r===void 0&&(r={});var i=r.emit,o=r.checkoutEveryNms,e=r.checkoutEveryNth,t=r.blockClass,n=t===void 0?"rr-block":t,s=r.blockSelector,a=s===void 0?null:s,u=r.ignoreClass,f=u===void 0?"rr-ignore":u,l=r.ignoreSelector,c=l===void 0?null:l,h=r.maskTextClass,v=h===void 0?"rr-mask":h,p=r.maskTextSelector,m=p===void 0?null:p,d=r.inlineStylesheet,g=d===void 0?!0:d,w=r.maskAllInputs,b=r.maskInputOptions,S=r.slimDOMOptions,C=r.maskInputFn,x=r.maskTextFn,E=r.hooks,R=r.packFn,k=r.sampling,N=k===void 0?{}:k,ae=r.dataURLOptions,_=ae===void 0?{}:ae,L=r.mousemoveWait,oe=r.recordDOM,z=oe===void 0?!0:oe,Ce=r.recordCanvas,be=Ce===void 0?!1:Ce,pe=r.recordCrossOriginIframes,ie=pe===void 0?!1:pe,de=r.allowedIframeOrigins,dt=r.recordAfter,Ne=dt===void 0?r.recordAfter==="DOMContentLoaded"?r.recordAfter:"load":dt,pt=r.userTriggeredOnInput,Oe=pt===void 0?!1:pt,Qe=r.collectFonts,G=Qe===void 0?!1:Qe,Gt=r.inlineImages,qt=Gt===void 0?!1:Gt,et=r.plugins,pi=r.keepIframeSrcFn,Vt=pi===void 0?function(){return!1}:pi,vi=r.ignoreCSSAttributes,mi=vi===void 0?new Set([]):vi,$r=r.errorHandler;xm($r);var vt;ie&&de&&de.length>0&&(vt=tg(de),vt.size===0&&(vt=void 0));var mt=ie?window.parent===window:!0,gt=!1;if(!mt)try{window.parent.document&&(gt=!1)}catch(j){gt=!0}if(mt&&!i)throw new Error("emit function is required");if(!mt&&!gt)return function(){};L!==void 0&&N.mousemove===void 0&&(N.mousemove=L),xe.reset();var yt=w===!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},wt=S===!0||S==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:S==="all",headMetaDescKeywords:S==="all",headTitleMutations:S==="all"}:S||{};gm();var ze,Ht=0,mc=function(j){for(var ye=I(et||[]),$;!($=ye()).done;){var J=$.value;J.eventProcessor&&(j=J.eventProcessor(j))}return R&&!gt&&(j=R(j)),j};se=function(j,ye){var $,J=j;if(J.timestamp=An(),($=$e[0])!=null&&$.isFrozen()&&J.type!==F.FullSnapshot&&!(J.type===F.IncrementalSnapshot&&J.data.source===P.Mutation)&&$e.forEach(function(db){return db.unfreeze()}),mt)i==null||i(mc(J),ye);else if(gt){var Ct={type:"rrweb",event:mc(J),origin:window.location.origin,isCheckout:ye};if(vt)for(var Bs=I(vt),Cc;!(Cc=Bs()).done;){var lb=Cc.value;window.parent.postMessage(Ct,lb)}else window.parent.postMessage(Ct,"*")}if(J.type===F.FullSnapshot)ze=J,Ht=0;else if(J.type===F.IncrementalSnapshot){if(J.data.source===P.Mutation&&J.data.isAttachIframe)return;Ht++;var cb=e&&Ht>=e,hb=o&&J.timestamp-ze.timestamp>o;(cb||hb)&&Tn(!0)}};for(var gi=function(j){se({type:F.IncrementalSnapshot,data:T({source:P.Mutation},j)})},gc=function(j){return se({type:F.IncrementalSnapshot,data:T({source:P.Scroll},j)})},yc=function(j){return se({type:F.IncrementalSnapshot,data:T({source:P.CanvasMutation},j)})},ub=function(j){return se({type:F.IncrementalSnapshot,data:T({source:P.AdoptedStyleSheet},j)})},bt=new Xm({mutationCb:gi,adoptedStyleSheetCb:ub}),We=new zm({mirror:xe,mutationCb:gi,stylesheetManager:bt,recordCrossOriginIframes:ie,wrappedEmit:se}),fb=I(et||[]),wc;!(wc=fb()).done;){var bc=wc.value;bc.getMirror&&bc.getMirror({nodeMirror:xe,crossOriginIframeMirror:We.crossOriginIframeMirror,crossOriginIframeStyleMirror:We.crossOriginIframeStyleMirror})}var Ds=new Qm;Bo=new Km({recordCanvas:be,mutationCb:yc,win:window,blockClass:n,blockSelector:a,mirror:xe,sampling:N.canvas,dataURLOptions:_});var yi=new Wm({mutationCb:gi,scrollCb:gc,bypassOptions:{blockClass:n,blockSelector:a,maskTextClass:v,maskTextSelector:m,inlineStylesheet:g,maskInputOptions:yt,dataURLOptions:_,maskTextFn:x,maskInputFn:C,recordCanvas:be,inlineImages:qt,sampling:N,slimDOMOptions:wt,iframeManager:We,stylesheetManager:bt,canvasManager:Bo,keepIframeSrcFn:Vt,processedNodeManager:Ds},mirror:xe});Tn=function(j){if(j===void 0&&(j=!1),!!z){se({type:F.Meta,data:{href:window.location.href,width:uf(),height:af()}},j),bt.reset(),yi.init(),$e.forEach(function($){return $.lock()});var ye=bh(document,{mirror:xe,blockClass:n,blockSelector:a,maskTextClass:v,maskTextSelector:m,inlineStylesheet:g,maskAllInputs:yt,maskTextFn:x,maskInputFn:C,slimDOM:wt,dataURLOptions:_,recordCanvas:be,inlineImages:qt,onSerialize:function($){cf($,xe)&&We.addIframe($),hf($,xe)&&bt.trackLinkElement($),Do($)&&yi.addShadowRoot(D.shadowRoot($),document)},onIframeLoad:function($,J){We.attachIframe($,J),yi.observeAttachShadow($)},onStylesheetLoad:function($,J){bt.attachLinkElement($,J)},keepIframeSrcFn:Vt});if(!ye)return console.warn("Failed to snapshot the document");se({type:F.FullSnapshot,data:{node:ye,initialOffset:sf(window)}},j),$e.forEach(function($){return $.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&bt.adoptStyleSheets(document.adoptedStyleSheets,xe.getId(document))}};try{var St=[],Sc=function(j){var ye;return U(Um)({mutationCb:gi,mousemoveCb:function($,J){return se({type:F.IncrementalSnapshot,data:{source:J,positions:$}})},mouseInteractionCb:function($){return se({type:F.IncrementalSnapshot,data:T({source:P.MouseInteraction},$)})},scrollCb:gc,viewportResizeCb:function($){return se({type:F.IncrementalSnapshot,data:T({source:P.ViewportResize},$)})},inputCb:function($){return se({type:F.IncrementalSnapshot,data:T({source:P.Input},$)})},mediaInteractionCb:function($){return se({type:F.IncrementalSnapshot,data:T({source:P.MediaInteraction},$)})},styleSheetRuleCb:function($){return se({type:F.IncrementalSnapshot,data:T({source:P.StyleSheetRule},$)})},styleDeclarationCb:function($){return se({type:F.IncrementalSnapshot,data:T({source:P.StyleDeclaration},$)})},canvasMutationCb:yc,fontCb:function($){return se({type:F.IncrementalSnapshot,data:T({source:P.Font},$)})},selectionCb:function($){se({type:F.IncrementalSnapshot,data:T({source:P.Selection},$)})},customElementCb:function($){se({type:F.IncrementalSnapshot,data:T({source:P.CustomElement},$)})},blockClass:n,ignoreClass:f,ignoreSelector:c,maskTextClass:v,maskTextSelector:m,maskInputOptions:yt,inlineStylesheet:g,sampling:N,recordDOM:z,recordCanvas:be,inlineImages:qt,userTriggeredOnInput:Oe,collectFonts:G,doc:j,maskInputFn:C,maskTextFn:x,keepIframeSrcFn:Vt,blockSelector:a,slimDOMOptions:wt,dataURLOptions:_,mirror:xe,iframeManager:We,stylesheetManager:bt,shadowDomManager:yi,processedNodeManager:Ds,canvasManager:Bo,ignoreCSSAttributes:mi,plugins:((ye=et==null?void 0:et.filter(function($){return $.observer}))==null?void 0:ye.map(function($){return{observer:$.observer,options:$.options,callback:function(J){return se({type:F.Plugin,data:{plugin:$.name,payload:J}})}}}))||[]},E)};We.addLoadListener(function(j){try{var ye=j.contentDocument,$=Sc(ye);St.push($);var J=We.getObserverCleanup(j);We.setObserverCleanup(j,function(){if(J)try{J()}catch(Bs){}try{$();var Ct=St.indexOf($);Ct!==-1&&St.splice(Ct,1),Em(ye)}catch(Bs){}})}catch(Ct){console.warn(Ct)}});var Fs=function(){Tn(),St.push(Sc(document)),Nn=!0};return document.readyState==="interactive"||document.readyState==="complete"?Fs():(St.push(me("DOMContentLoaded",function(){se({type:F.DomContentLoaded,data:{}}),Ne==="DOMContentLoaded"&&Fs()})),St.push(me("load",function(){se({type:F.Load,data:{}}),Ne==="load"&&Fs()},window))),function(){St.forEach(function(j){try{j()}catch($){var ye=String($).toLowerCase();ye.includes("cross-origin")||console.warn($)}}),Ds.destroy(),Nn=!1,Rm()}}catch(j){console.warn(j)}}Ye.addCustomEvent=function(r,i){if(!Nn)throw new Error("please add custom event after start recording");se({type:F.Custom,data:{tag:r,payload:i}})},Ye.freezePage=function(){$e.forEach(function(r){return r.freeze()})},Ye.takeFullSnapshot=function(r){if(!Nn)throw new Error("please take full snapshot after start recording");Tn(r)},Ye.mirror=xe;var Tf;(function(r){r[r.NotStarted=0]="NotStarted",r[r.Running=1]="Running",r[r.Stopped=2]="Stopped"})(Tf||(Tf={})),Ye.addCustomEvent,Ye.freezePage,Ye.takeFullSnapshot;var Nf={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Lf={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ln={},rg=function(){return!!globalThis.Zone};function zo(r){if(Ln[r])return Ln[r];var i=globalThis[r],o=i.prototype,e=r in Nf?Nf[r]:void 0,t=!!(e&&e.every(function(l){var c,h;return!!((h=(c=Object.getOwnPropertyDescriptor(o,l))==null?void 0:c.get)!=null&&h.toString().includes("[native code]"))})),n=r in Lf?Lf[r]:void 0,s=!!(n&&n.every(function(l){var c;return typeof o[l]=="function"&&((c=o[l])==null?void 0:c.toString().includes("[native code]"))}));if(t&&s&&!rg())return Ln[r]=i.prototype,i.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return i.prototype;var f=u[r].prototype;return document.body.removeChild(a),f?Ln[r]=f:o}catch(l){return o}}var Wo={};function Je(r,i,o){var e,t=r+"."+String(o);if(Wo[t])return Wo[t].call(i);var n=zo(r),s=(e=Object.getOwnPropertyDescriptor(n,o))==null?void 0:e.get;return s?(Wo[t]=s,s.call(i)):i[o]}var jo={};function Df(r,i,o){var e=r+"."+String(o);if(jo[e])return jo[e].bind(i);var t=zo(r),n=t[o];return typeof n!="function"?i[o]:(jo[e]=n,n.bind(i))}function ng(r){return Je("Node",r,"childNodes")}function ig(r){return Je("Node",r,"parentNode")}function og(r){return Je("Node",r,"parentElement")}function sg(r){return Je("Node",r,"textContent")}function ag(r,i){return Df("Node",r,"contains")(i)}function ug(r){return Df("Node",r,"getRootNode")()}function fg(r){return!r||!("host"in r)?null:Je("ShadowRoot",r,"host")}function lg(r){return r.styleSheets}function cg(r){return!r||!("shadowRoot"in r)?null:Je("Element",r,"shadowRoot")}function hg(r,i){return Je("Element",r,"querySelector")(i)}function dg(r,i){return Je("Element",r,"querySelectorAll")(i)}function pg(){return zo("MutationObserver").constructor}function vg(r,i,o){try{if(!(i in r))return function(){};var e=r[i],t=o(e);return typeof t=="function"&&(t.prototype=t.prototype||{},Object.defineProperties(t,{__rrweb_original__:{enumerable:!1,value:e}})),r[i]=t,function(){r[i]=e}}catch(n){return function(){}}}var Ff={childNodes:ng,parentNode:ig,parentElement:og,textContent:sg,contains:ag,getRootNode:ug,host:fg,styleSheets:lg,shadowRoot:cg,querySelector:hg,querySelectorAll:dg,mutationObserver:pg,patch:vg};function Go(r,i,o){if(!r)return!1;if(r.nodeType!==r.ELEMENT_NODE)return Go(Ff.parentNode(r),i);for(var e=r.classList.length;e--;){var t=r.classList[e];if(i.test(t))return!0}return Go(Ff.parentNode(r),i)}function mg(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function gg(r){if(r.__esModule)return r;var i=r.default;if(typeof i=="function"){var o=function e(){return A(this,e)?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};o.prototype=i.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(r).forEach(function(e){var t=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(o,e,t.get?t:{enumerable:!0,get:function(){return r[e]}})}),o}var qo={exports:{}},Q=String,Bf=function(){return{isColorSupported:!1,reset:Q,bold:Q,dim:Q,italic:Q,underline:Q,inverse:Q,hidden:Q,strikethrough:Q,black:Q,red:Q,green:Q,yellow:Q,blue:Q,magenta:Q,cyan:Q,white:Q,gray:Q,bgBlack:Q,bgRed:Q,bgGreen:Q,bgYellow:Q,bgBlue:Q,bgMagenta:Q,bgCyan:Q,bgWhite:Q}};qo.exports=Bf(),qo.exports.createColors=Bf;var yg=qo.exports,wg={},bg=Object.freeze(Object.defineProperty({__proto__:null,default:wg},Symbol.toStringTag,{value:"Module"})),le=gg(bg),Uf=yg,zf=le,Vo=(function(r){ee(i,r);function i(e,t,n,s,a,u){var f;return f=r.call(this,e)||this,f.name="CssSyntaxError",f.reason=e,a&&(f.file=a),s&&(f.source=s),u&&(f.plugin=u),typeof t!="undefined"&&typeof n!="undefined"&&(typeof t=="number"?(f.line=t,f.column=n):(f.line=t.line,f.column=t.column,f.endLine=n.line,f.endColumn=n.column)),f.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(f,i),f}var o=i.prototype;return o.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},o.showSourceCode=function(t){var n=this;if(!this.source)return"";var s=this.source;t==null&&(t=Uf.isColorSupported),zf&&t&&(s=zf(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),f=Math.min(this.line+2,a.length),l=String(f).length,c,h;if(t){var v=Uf.createColors(!0),p=v.bold,m=v.gray,d=v.red;c=function(g){return p(d(g))},h=function(g){return m(g)}}else c=h=function(g){return g};return a.slice(u,f).map(function(g,w){var b=u+1+w,S=" "+(" "+b).slice(-l)+" | ";if(b===n.line){var C=h(S.replace(/\d/g," "))+g.slice(0,n.column-1).replace(/[^\t]/g," ");return c(">")+h(S)+g+"\n "+C+c("^")}return" "+h(S)+g}).join("\n")},o.toString=function(){var t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t},i})(Jt(Error)),Ho=Vo;Vo.default=Vo;var Ze={};Ze.isClean=Symbol("isClean"),Ze.my=Symbol("my");var Wf={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Sg(r){return r[0].toUpperCase()+r.slice(1)}var Yo=(function(){function r(o){this.builder=o}var i=r.prototype;return i.atrule=function(e,t){var n="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?n+=e.raws.afterName:s&&(n+=" "),e.nodes)this.block(e,n+s);else{var a=(e.raws.between||"")+(t?";":"");this.builder(n+s+a,e)}},i.beforeAfter=function(e,t){var n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):t==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");for(var s=e.parent,a=0;s&&s.type!=="root";)a+=1,s=s.parent;if(n.includes("\n")){var u=this.raw(e,null,"indent");if(u.length)for(var f=0;f<a;f++)n+=u}return n},i.block=function(e,t){var n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",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")},i.body=function(e){for(var t=e.nodes.length-1;t>0&&e.nodes[t].type==="comment";)t-=1;for(var n=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,t!==s||n)}},i.comment=function(e){var t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)},i.decl=function(e,t){var n=this.raw(e,"between","colon"),s=e.prop+n+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),t&&(s+=";"),this.builder(s,e)},i.document=function(e){this.body(e)},i.raw=function(e,t,n){var s;if(n||(n=t),t&&(s=e.raws[t],typeof s!="undefined"))return s;var a=e.parent;if(n==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return Wf[n];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[n]!="undefined")return u.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);var f="raw"+Sg(n);return this[f]?s=this[f](u,e):u.walk(function(l){if(s=l.raws[t],typeof s!="undefined")return!1}),typeof s=="undefined"&&(s=Wf[n]),u.rawCache[n]=s,s},i.rawBeforeClose=function(e){var t;return e.walk(function(n){if(n.nodes&&n.nodes.length>0&&typeof n.raws.after!="undefined")return t=n.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},i.rawBeforeComment=function(e,t){var n;return e.walkComments(function(s){if(typeof s.raws.before!="undefined")return n=s.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n=="undefined"?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n},i.rawBeforeDecl=function(e,t){var n;return e.walkDecls(function(s){if(typeof s.raws.before!="undefined")return n=s.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n=="undefined"?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n},i.rawBeforeOpen=function(e){var t;return e.walk(function(n){if(n.type!=="decl"&&(t=n.raws.between,typeof t!="undefined"))return!1}),t},i.rawBeforeRule=function(e){var t;return e.walk(function(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before!="undefined")return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},i.rawColon=function(e){var t;return e.walkDecls(function(n){if(typeof n.raws.between!="undefined")return t=n.raws.between.replace(/[^\s:]/g,""),!1}),t},i.rawEmptyBody=function(e){var t;return e.walk(function(n){if(n.nodes&&n.nodes.length===0&&(t=n.raws.after,typeof t!="undefined"))return!1}),t},i.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var t;return e.walk(function(n){var s=n.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof n.raws.before!="undefined"){var a=n.raws.before.split("\n");return t=a[a.length-1],t=t.replace(/\S/g,""),!1}}),t},i.rawSemicolon=function(e){var t;return e.walk(function(n){if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(t=n.raws.semicolon,typeof t!="undefined"))return!1}),t},i.rawValue=function(e,t){var n=e[t],s=e.raws[t];return s&&s.value===n?s.raw:n},i.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},i.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},i.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},r})(),jf=Yo;Yo.default=Yo;var Cg=jf;function Jo(r,i){var o=new Cg(i);o.stringify(r)}var Dn=Jo;Jo.default=Jo;var Fn=Ze.isClean,Ig=Ze.my,Og=Ho,xg=jf,Rg=Dn;function Zo(r,i){var o=new r.constructor;for(var e in r)if(Object.prototype.hasOwnProperty.call(r,e)&&e!=="proxyCache"){var t=r[e],n=typeof t=="undefined"?"undefined":M(t);e==="parent"&&n==="object"?i&&(o[e]=i):e==="source"?o[e]=t:Array.isArray(t)?o[e]=t.map(function(s){return Zo(s,o)}):(n==="object"&&t!==null&&(t=Zo(t)),o[e]=t)}return o}var Ko=(function(){function r(o){o===void 0&&(o={}),this.raws={},this[Fn]=!1,this[Ig]=!0;for(var e in o)if(e==="nodes"){this.nodes=[];for(var t=I(o[e]),n;!(n=t()).done;){var s=n.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[e]=o[e]}var i=r.prototype;return i.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},i.after=function(e){return this.parent.insertAfter(this,e),this},i.assign=function(e){e===void 0&&(e={});for(var t in e)this[t]=e[t];return this},i.before=function(e){return this.parent.insertBefore(this,e),this},i.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},i.clone=function(e){e===void 0&&(e={});var t=Zo(this);for(var n in e)t[n]=e[n];return t},i.cloneAfter=function(e){e===void 0&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},i.cloneBefore=function(e){e===void 0&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},i.error=function(e,t){if(t===void 0&&(t={}),this.source){var n=this.rangeBy(t),s=n.end,a=n.start;return this.source.input.error(e,{column:a.column,line:a.line},{column:s.column,line:s.line},t)}return new Og(e)},i.getProxyProcessor=function(){return{get:function(t,n){return n==="proxyOf"?t:n==="root"?function(){return t.root().toProxy()}:t[n]},set:function(t,n,s){return t[n]===s||(t[n]=s,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&t.markDirty()),!0}}},i.markDirty=function(){if(this[Fn]){this[Fn]=!1;for(var e=this;e=e.parent;)e[Fn]=!1}},i.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},i.positionBy=function(e,t){var n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){t=this.toString();var s=t.indexOf(e.word);s!==-1&&(n=this.positionInside(s,t))}return n},i.positionInside=function(e,t){for(var n=t||this.toString(),s=this.source.start.column,a=this.source.start.line,u=0;u<e;u++)n[u]==="\n"?(s=1,a+=1):s+=1;return{column:s,line:a}},i.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},i.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var s=this.toString(),a=s.indexOf(e.word);a!==-1&&(t=this.positionInside(a,s),n=this.positionInside(a+e.word.length,s))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}},i.raw=function(e,t){var n=new xg;return n.raw(this,e,t)},i.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},i.replaceWith=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this.parent){for(var s=this,a=!1,u=I(t),f;!(f=u()).done;){var l=f.value;l===this?a=!0:a?(this.parent.insertAfter(s,l),s=l):this.parent.insertBefore(s,l)}a||this.remove()}return this},i.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},i.toJSON=function(e,t){var n={},s=t==null;t=t||new Map;var a=0;for(var u in this)if(Object.prototype.hasOwnProperty.call(this,u)&&!(u==="parent"||u==="proxyCache")){var f=this[u];if(Array.isArray(f))n[u]=f.map(function(c){return(typeof c=="undefined"?"undefined":M(c))==="object"&&c.toJSON?c.toJSON(null,t):c});else if((typeof f=="undefined"?"undefined":M(f))==="object"&&f.toJSON)n[u]=f.toJSON(null,t);else if(u==="source"){var l=t.get(f.input);l==null&&(l=a,t.set(f.input,a),a++),n[u]={end:f.end,inputId:l,start:f.start}}else n[u]=f}return s&&(n.inputs=[].concat(t.keys()).map(function(c){return c.toJSON()})),n},i.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},i.toString=function(e){e===void 0&&(e=Rg),e.stringify&&(e=e.stringify);var t="";return e(this,function(n){t+=n}),t},i.warn=function(e,t,n){var s={node:this};for(var a in n)s[a]=n[a];return e.warn(t,s)},Z(r,[{key:"proxyOf",get:function(){return this}}]),r})(),Bn=Ko;Ko.default=Ko;var Eg=Bn,Xo=(function(r){ee(i,r);function i(o){var e;return o&&typeof o.value!="undefined"&&typeof o.value!="string"&&(o=T({},o,{value:String(o.value)})),e=r.call(this,o)||this,e.type="decl",e}return Z(i,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),i})(Eg),Un=Xo;Xo.default=Xo;var Ag="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Mg=function(r){r===void 0&&(r=21);for(var i="",o=r;o--;)i+=Ag[Math.random()*64|0];return i},$g={nanoid:Mg},Gf=le.SourceMapConsumer,qf=le.SourceMapGenerator,kg=le.existsSync,_g=le.readFileSync,Qo=le.dirname,Pg=le.join;function Tg(r){return Buffer?Buffer.from(r,"base64").toString():window.atob(r)}var es=(function(){function r(o,e){if(e.map!==!1){this.loadAnnotation(o),this.inline=this.startWith(this.annotation,"data:");var t=e.map?e.map.prev:void 0,n=this.loadMap(e.from,t);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=Qo(this.mapFile)),n&&(this.text=n)}}var i=r.prototype;return i.consumer=function(){return this.consumerCache||(this.consumerCache=new Gf(this.text)),this.consumerCache},i.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,n=/^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(t.test(e)||n.test(e))return Tg(e.substr(RegExp.lastMatch.length));var u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},i.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},i.isMap=function(e){return(typeof e=="undefined"?"undefined":M(e))!=="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)},i.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var n=e.lastIndexOf(t.pop()),s=e.indexOf("*/",n);n>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,s)))}},i.loadFile=function(e){if(this.root=Qo(e),kg(e))return this.mapFile=e,_g(e,"utf-8").toString().trim()},i.loadMap=function(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){var n=t(e);if(n){var s=this.loadFile(n);if(!s)throw new Error("Unable to load previous source map: "+n.toString());return s}}else{if(A(t,Gf))return qf.fromSourceMap(t).toString();if(A(t,qf))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var a=this.annotation;return e&&(a=Pg(Qo(e),a)),this.loadFile(a)}}},i.startWith=function(e,t){return e?e.substr(0,t.length)===t:!1},i.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},r})(),Vf=es;es.default=es;var Ng=le.SourceMapConsumer,Lg=le.SourceMapGenerator,Hf=le.fileURLToPath,zn=le.pathToFileURL,ts=le.isAbsolute,rs=le.resolve,Dg=$g.nanoid,ns=le,Yf=Ho,Fg=Vf,is=Symbol("fromOffsetCache"),Bg=!!(Ng&&Lg),Jf=!!(rs&&ts),Wn=(function(){function r(o,e){if(e===void 0&&(e={}),o===null||typeof o=="undefined"||(typeof o=="undefined"?"undefined":M(o))==="object"&&!o.toString)throw new Error("PostCSS received "+o+" instead of CSS string");if(this.css=o.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!Jf||/^\w+:\/\//.test(e.from)||ts(e.from)?this.file=e.from:this.file=rs(e.from)),Jf&&Bg){var t=new Fg(this.css,e);if(t.text){this.map=t;var n=t.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+Dg(6)+">"),this.map&&(this.map.file=this.from)}var i=r.prototype;return i.error=function(e,t,n,s){s===void 0&&(s={});var a,u,f;if(t&&(typeof t=="undefined"?"undefined":M(t))==="object"){var l=t,c=n;if(typeof l.offset=="number"){var h=this.fromOffset(l.offset);t=h.line,n=h.col}else t=l.line,n=l.column;if(typeof c.offset=="number"){var v=this.fromOffset(c.offset);u=v.line,f=v.col}else u=c.line,f=c.column}else if(!n){var p=this.fromOffset(t);t=p.line,n=p.col}var m=this.origin(t,n,u,f);return m?a=new Yf(e,m.endLine===void 0?m.line:{column:m.column,line:m.line},m.endLine===void 0?m.column:{column:m.endColumn,line:m.endLine},m.source,m.file,s.plugin):a=new Yf(e,u===void 0?t:{column:n,line:t},u===void 0?n:{column:f,line:u},this.css,this.file,s.plugin),a.input={column:n,endColumn:f,endLine:u,line:t,source:this.css},this.file&&(zn&&(a.input.url=zn(this.file).toString()),a.input.file=this.file),a},i.fromOffset=function(e){var t,n;if(this[is])n=this[is];else{var s=this.css.split("\n");n=new Array(s.length);for(var a=0,u=0,f=s.length;u<f;u++)n[u]=a,a+=s[u].length+1;this[is]=n}t=n[n.length-1];var l=0;if(e>=t)l=n.length-1;else for(var c=n.length-2,h;l<c;)if(h=l+(c-l>>1),e<n[h])c=h-1;else if(e>=n[h+1])l=h+1;else{l=h;break}return{col:e-n[l]+1,line:l+1}},i.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:rs(this.map.consumer().sourceRoot||this.map.root||".",e)},i.origin=function(e,t,n,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:t,line:e});if(!u.source)return!1;var f;typeof n=="number"&&(f=a.originalPositionFor({column:s,line:n}));var l;ts(u.source)?l=zn(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||zn(this.map.mapFile));var c={column:u.column,endColumn:f&&f.column,endLine:f&&f.line,line:u.line,url:l.toString()};if(l.protocol==="file:")if(Hf)c.file=Hf(l);else throw new Error("file: protocol is not available in this PostCSS build");var h=a.sourceContentFor(u.source);return h&&(c.source=h),c},i.toJSON=function(){for(var e={},t=0,n=["hasBOM","css","file","id"];t<n.length;t++){var s=n[t];this[s]!=null&&(e[s]=this[s])}return this.map&&(e.map=T({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Z(r,[{key:"from",get:function(){return this.file||this.id}}]),r})(),jn=Wn;Wn.default=Wn,ns&&ns.registerInput&&ns.registerInput(Wn);var Zf=le.SourceMapConsumer,Gn=le.SourceMapGenerator,qn=le.dirname,Kf=le.relative,Xf=le.resolve,Qf=le.sep,el=le.pathToFileURL,Ug=jn,zg=!!(Zf&&Gn),Wg=!!(qn&&Xf&&Kf&&Qf),jg=(function(){function r(o,e,t,n){this.stringify=o,this.mapOpts=t.map||{},this.root=e,this.opts=t,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var i=r.prototype;return i.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 t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},i.applyPrevMaps=function(){for(var e=I(this.previous()),t;!(t=e()).done;){var n=t.value,s=this.toUrl(this.path(n.file)),a=n.root||qn(n.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new Zf(n.text),u.sourcesContent&&(u.sourcesContent=null)):u=n.consumer(),this.map.applySourceMap(u,s,this.toUrl(this.path(a)))}},i.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},i.generate=function(){if(this.clearAnnotation(),Wg&&zg&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},i.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=Gn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Gn({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]},i.generateString=function(){var e=this;this.css="",this.map=new Gn({file:this.outputFile(),ignoreInvalidMapping:!0});var t=1,n=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,f;this.stringify(this.root,function(l,c,h){if(e.css+=l,c&&h!=="end"&&(a.generated.line=t,a.generated.column=n-1,c.source&&c.source.start?(a.source=e.sourcePath(c),a.original.line=c.source.start.line,a.original.column=c.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?(t+=u.length,f=l.lastIndexOf("\n"),n=l.length-f):n+=l.length,c&&h!=="start"){var v=c.parent||{raws:{}},p=c.type==="decl"||c.type==="atrule"&&!c.nodes;(!p||c!==v.last||v.raws.semicolon)&&(c.source&&c.source.end?(a.source=e.sourcePath(c),a.original.line=c.source.end.line,a.original.column=c.source.end.column-1,a.generated.line=t,a.generated.column=n-2,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=t,a.generated.column=n-1,e.map.addMapping(a)))}})},i.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},i.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(t){return t.inline}):!0},i.isMap=function(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0},i.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(e){return e.withContent()}):!0},i.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},i.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var n=this.opts.to?qn(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=qn(Xf(n,this.mapOpts.annotation)));var s=Kf(n,e);return this.memoizedPaths.set(e,s),s},i.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(n){if(n.source&&n.source.input.map){var s=n.source.input.map;e.previousMaps.includes(s)||e.previousMaps.push(s)}});else{var t=new Ug(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},i.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!t[a]){t[a]=!0;var u=e.usesFileUrls?e.toFileUrl(a):e.toUrl(e.path(a));e.map.setSourceContent(u,s.source.input.css)}}});else if(this.css){var n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}},i.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))},i.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},i.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(el){var n=el(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")},i.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;Qf==="\\"&&(e=e.replace(/\\/g,"/"));var n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n},r})(),tl=jg,Gg=Bn,os=(function(r){ee(i,r);function i(o){var e;return e=r.call(this,o)||this,e.type="comment",e}return i})(Gg),Vn=os;os.default=os;var rl=Ze.isClean,nl=Ze.my,il=Un,ol=Vn,qg=Bn,sl,ss,as,al;function ul(r){return r.map(function(i){return i.nodes&&(i.nodes=ul(i.nodes)),delete i.source,i})}function fl(r){if(r[rl]=!1,r.proxyOf.nodes)for(var i=I(r.proxyOf.nodes),o;!(o=i()).done;){var e=o.value;fl(e)}}var Be=(function(r){ee(i,r);function i(){return r.apply(this,arguments)||this}var o=i.prototype;return o.append=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];for(var a=I(n),u;!(u=a()).done;)for(var f=u.value,l=this.normalize(f,this.last),c=I(l),h;!(h=c()).done;){var v=h.value;this.proxyOf.nodes.push(v)}return this.markDirty(),this},o.cleanRaws=function(t){if(r.prototype.cleanRaws.call(this,t),this.nodes)for(var n=I(this.nodes),s;!(s=n()).done;){var a=s.value;a.cleanRaws(t)}},o.each=function(t){if(this.proxyOf.nodes){for(var n=this.getIterator(),s,a;this.indexes[n]<this.proxyOf.nodes.length&&(s=this.indexes[n],a=t(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[n]+=1;return delete this.indexes[n],a}},o.every=function(t){return this.nodes.every(t)},o.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var t=this.lastEach;return this.indexes[t]=0,t},o.getProxyProcessor=function(){return{get:function(n,s){return s==="proxyOf"?n:n[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),f=0;f<a;f++)u[f]=arguments[f];var l;return(l=n)[s].apply(l,[].concat(u.map(function(c){return typeof c=="function"?function(h,v){return c(h.toProxy(),v)}:c})))}:s==="every"||s==="some"?function(a){return n[s](function(u){for(var f=arguments.length,l=new Array(f>1?f-1:0),c=1;c<f;c++)l[c-1]=arguments[c];return a.apply(void 0,[].concat([u.toProxy()],l))})}:s==="root"?function(){return n.root().toProxy()}:s==="nodes"?n.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?n[s].toProxy():n[s]:n[s]},set:function(n,s,a){return n[s]===a||(n[s]=a,(s==="name"||s==="params"||s==="selector")&&n.markDirty()),!0}}},o.index=function(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))},o.insertAfter=function(t,n){var s=this.index(t),a=this.normalize(n,this.proxyOf.nodes[s]).reverse();s=this.index(t);for(var u=I(a),f;!(f=u()).done;){var l=f.value;this.proxyOf.nodes.splice(s+1,0,l)}var c;for(var h in this.indexes)c=this.indexes[h],s<c&&(this.indexes[h]=c+a.length);return this.markDirty(),this},o.insertBefore=function(t,n){var s=this.index(t),a=s===0?"prepend":!1,u=this.normalize(n,this.proxyOf.nodes[s],a).reverse();s=this.index(t);for(var f=I(u),l;!(l=f()).done;){var c=l.value;this.proxyOf.nodes.splice(s,0,c)}var h;for(var v in this.indexes)h=this.indexes[v],s<=h&&(this.indexes[v]=h+u.length);return this.markDirty(),this},o.normalize=function(t,n){var s=this;if(typeof t=="string")t=ul(sl(t).nodes);else if(typeof t=="undefined")t=[];else if(Array.isArray(t)){t=t.slice(0);for(var a=I(t),u;!(u=a()).done;){var f=u.value;f.parent&&f.parent.removeChild(f,"ignore")}}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(var l=I(t),c;!(c=l()).done;){var h=c.value;h.parent&&h.parent.removeChild(h,"ignore")}}else if(t.type)t=[t];else if(t.prop){if(typeof t.value=="undefined")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new il(t)]}else if(t.selector)t=[new ss(t)];else if(t.name)t=[new as(t)];else if(t.text)t=[new ol(t)];else throw new Error("Unknown node type in node creation");var v=t.map(function(p){return p[nl]||i.rebuild(p),p=p.proxyOf,p.parent&&p.parent.removeChild(p),p[rl]&&fl(p),typeof p.raws.before=="undefined"&&n&&typeof n.raws.before!="undefined"&&(p.raws.before=n.raws.before.replace(/\S/g,"")),p.parent=s.proxyOf,p});return v},o.prepend=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];n=n.reverse();for(var a=I(n),u;!(u=a()).done;){for(var f=u.value,l=this.normalize(f,this.first,"prepend").reverse(),c=I(l),h;!(h=c()).done;){var v=h.value;this.proxyOf.nodes.unshift(v)}for(var p in this.indexes)this.indexes[p]=this.indexes[p]+l.length}return this.markDirty(),this},o.push=function(t){return t.parent=this,this.proxyOf.nodes.push(t),this},o.removeAll=function(){for(var t=I(this.proxyOf.nodes),n;!(n=t()).done;){var s=n.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},o.removeChild=function(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);var n;for(var s in this.indexes)n=this.indexes[s],n>=t&&(this.indexes[s]=n-1);return this.markDirty(),this},o.replaceValues=function(t,n,s){return s||(s=n,n={}),this.walkDecls(function(a){n.props&&!n.props.includes(a.prop)||n.fast&&!a.value.includes(n.fast)||(a.value=a.value.replace(t,s))}),this.markDirty(),this},o.some=function(t){return this.nodes.some(t)},o.walk=function(t){return this.each(function(n,s){var a;try{a=t(n,s)}catch(u){throw n.addToError(u)}return a!==!1&&n.walk&&(a=n.walk(t)),a})},o.walkAtRules=function(t,n){return n?A(t,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&t.test(s.name))return n(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="atrule")return n(s,a)}))},o.walkComments=function(t){return this.walk(function(n,s){if(n.type==="comment")return t(n,s)})},o.walkDecls=function(t,n){return n?A(t,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&t.test(s.prop))return n(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="decl")return n(s,a)}))},o.walkRules=function(t,n){return n?A(t,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&t.test(s.selector))return n(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="rule")return n(s,a)}))},Z(i,[{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]}}]),i})(qg);Be.registerParse=function(r){sl=r},Be.registerRule=function(r){ss=r},Be.registerAtRule=function(r){as=r},Be.registerRoot=function(r){al=r};var at=Be;Be.default=Be,Be.rebuild=function(r){r.type==="atrule"?Object.setPrototypeOf(r,as.prototype):r.type==="rule"?Object.setPrototypeOf(r,ss.prototype):r.type==="decl"?Object.setPrototypeOf(r,il.prototype):r.type==="comment"?Object.setPrototypeOf(r,ol.prototype):r.type==="root"&&Object.setPrototypeOf(r,al.prototype),r[nl]=!0,r.nodes&&r.nodes.forEach(function(i){Be.rebuild(i)})};var Vg=at,ll,cl,mr=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,T({type:"document"},e))||this,t.nodes||(t.nodes=[]),t}var o=i.prototype;return o.toResult=function(t){t===void 0&&(t={});var n=new ll(new cl,this,t);return n.stringify()},i})(Vg);mr.registerLazyResult=function(r){ll=r},mr.registerProcessor=function(r){cl=r};var us=mr;mr.default=mr;var hl={},dl=function(i){hl[i]||(hl[i]=!0,typeof console!="undefined"&&console.warn&&console.warn(i))},fs=(function(){function r(o,e){if(e===void 0&&(e={}),this.type="warning",this.text=o,e.node&&e.node.source){var t=e.node.rangeBy(e);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(var n in e)this[n]=e[n]}var i=r.prototype;return i.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},r})(),pl=fs;fs.default=fs;var Hg=pl,ls=(function(){function r(o,e,t){this.processor=o,this.messages=[],this.root=e,this.opts=t,this.css=void 0,this.map=void 0}var i=r.prototype;return i.toString=function(){return this.css},i.warn=function(e,t){t===void 0&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new Hg(e,t);return this.messages.push(n),n},i.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},Z(r,[{key:"content",get:function(){return this.css}}]),r})(),cs=ls;ls.default=ls;var hs=39,vl=34,Hn=92,ml=47,Yn=10,gr=32,Jn=12,Zn=9,Kn=13,Yg=91,Jg=93,Zg=40,Kg=41,Xg=123,Qg=125,ey=59,ty=42,ry=58,ny=64,Xn=/[\t\n\f\r "#'()/;[\\\]{}]/g,Qn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,iy=/.[\r\n"'(/\\]/,gl=/[\da-f]/i,oy=function(i,o){o===void 0&&(o={});var e=i.css.valueOf(),t=o.ignoreErrors,n,s,a,u,f,l,c,h,v,p,m=e.length,d=0,g=[],w=[];function b(){return d}function S(R){throw i.error("Unclosed "+R,d)}function C(){return w.length===0&&d>=m}function x(R){if(w.length)return w.pop();if(!(d>=m)){var k=R?R.ignoreUnclosed:!1;switch(n=e.charCodeAt(d),n){case Yn:case gr:case Zn:case Kn:case Jn:{s=d;do s+=1,n=e.charCodeAt(s);while(n===gr||n===Yn||n===Zn||n===Kn||n===Jn);p=["space",e.slice(d,s)],d=s-1;break}case Yg:case Jg:case Xg:case Qg:case ry:case ey:case Kg:{var N=String.fromCharCode(n);p=[N,N,d];break}case Zg:{if(h=g.length?g.pop()[1]:"",v=e.charCodeAt(d+1),h==="url"&&v!==hs&&v!==vl&&v!==gr&&v!==Yn&&v!==Zn&&v!==Jn&&v!==Kn){s=d;do{if(l=!1,s=e.indexOf(")",s+1),s===-1)if(t||k){s=d;break}else S("bracket");for(c=s;e.charCodeAt(c-1)===Hn;)c-=1,l=!l}while(l);p=["brackets",e.slice(d,s+1),d,s],d=s}else s=e.indexOf(")",d+1),u=e.slice(d,s+1),s===-1||iy.test(u)?p=["(","(",d]:(p=["brackets",u,d,s],d=s);break}case hs:case vl:{a=n===hs?"'":'"',s=d;do{if(l=!1,s=e.indexOf(a,s+1),s===-1)if(t||k){s=d+1;break}else S("string");for(c=s;e.charCodeAt(c-1)===Hn;)c-=1,l=!l}while(l);p=["string",e.slice(d,s+1),d,s],d=s;break}case ny:{Xn.lastIndex=d+1,Xn.test(e),Xn.lastIndex===0?s=e.length-1:s=Xn.lastIndex-2,p=["at-word",e.slice(d,s+1),d,s],d=s;break}case Hn:{for(s=d,f=!0;e.charCodeAt(s+1)===Hn;)s+=1,f=!f;if(n=e.charCodeAt(s+1),f&&n!==ml&&n!==gr&&n!==Yn&&n!==Zn&&n!==Kn&&n!==Jn&&(s+=1,gl.test(e.charAt(s)))){for(;gl.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===gr&&(s+=1)}p=["word",e.slice(d,s+1),d,s],d=s;break}default:{n===ml&&e.charCodeAt(d+1)===ty?(s=e.indexOf("*/",d+2)+1,s===0&&(t||k?s=e.length:S("comment")),p=["comment",e.slice(d,s+1),d,s],d=s):(Qn.lastIndex=d+1,Qn.test(e),Qn.lastIndex===0?s=e.length-1:s=Qn.lastIndex-2,p=["word",e.slice(d,s+1),d,s],g.push(p),d=s);break}}return d++,p}}function E(R){w.push(R)}return{back:E,endOfFile:C,nextToken:x,position:b}},yl=at,ei=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,e)||this,t.type="atrule",t}var o=i.prototype;return o.append=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=r.prototype.append).call.apply(a,[].concat([this],n))},o.prepend=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=r.prototype.prepend).call.apply(a,[].concat([this],n))},i})(yl),ds=ei;ei.default=ei,yl.registerAtRule(ei);var wl=at,bl,Sl,Lt=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,e)||this,t.type="root",t.nodes||(t.nodes=[]),t}var o=i.prototype;return o.normalize=function(t,n,s){var a=r.prototype.normalize.call(this,t);if(n){if(s==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(var u=I(a),f;!(f=u()).done;){var l=f.value;l.raws.before=n.raws.before}}return a},o.removeChild=function(t,n){var s=this.index(t);return!n&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),r.prototype.removeChild.call(this,t)},o.toResult=function(t){t===void 0&&(t={});var n=new bl(new Sl,this,t);return n.stringify()},i})(wl);Lt.registerLazyResult=function(r){bl=r},Lt.registerProcessor=function(r){Sl=r};var yr=Lt;Lt.default=Lt,wl.registerRoot(Lt);var wr={comma:function(i){return wr.split(i,[","],!0)},space:function(i){var o=[" ","\n"," "];return wr.split(i,o)},split:function(i,o,e){for(var t=[],n="",s=!1,a=0,u=!1,f="",l=!1,c=I(i),h;!(h=c()).done;){var v=h.value;l?l=!1:v==="\\"?l=!0:u?v===f&&(u=!1):v==='"'||v==="'"?(u=!0,f=v):v==="("?a+=1:v===")"?a>0&&(a-=1):a===0&&o.includes(v)&&(s=!0),s?(n!==""&&t.push(n.trim()),n="",s=!1):n+=v}return(e||n!=="")&&t.push(n.trim()),t}},Cl=wr;wr.default=wr;var Il=at,sy=Cl,ti=(function(r){ee(i,r);function i(o){var e;return e=r.call(this,o)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return Z(i,[{key:"selectors",get:function(){return sy.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}]),i})(Il),ps=ti;ti.default=ti,Il.registerRule(ti);var ay=Un,uy=oy,fy=Vn,ly=ds,cy=yr,Ol=ps,xl={empty:!0,space:!0};function hy(r){for(var i=r.length-1;i>=0;i--){var o=r[i],e=o[3]||o[2];if(e)return e}}var dy=(function(){function r(o){this.input=o,this.root=new cy,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}var i=r.prototype;return i.atrule=function(e){var t=new ly;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);for(var n,s,a,u=!1,f=!1,l=[],c=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){f=!0;break}else if(n==="}"){if(l.length>0){for(a=l.length-1,s=l[a];s&&s[0]==="space";)s=l[--a];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),u&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),f&&(t.nodes=[],this.current=t)},i.checkMissedSemicolon=function(e){var t=this.colon(e);if(t!==!1){for(var n=0,s,a=t-1;a>=0&&(s=e[a],!(s[0]!=="space"&&(n+=1,n===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},i.colon=function(e){for(var t=0,n,s,a,u=I(e.entries()),f;!(f=u()).done;){var l=f.value,c=l[0],h=l[1];if(n=h,s=n[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!a)this.doubleColon(n);else{if(a[0]==="word"&&a[1]==="progid")continue;return c}a=n}return!1},i.comment=function(e){var t=new fy;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{var s=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}},i.createTokenizer=function(){this.tokenizer=uy(this.input)},i.decl=function(e,t){var n=new ay;this.init(n,e[0][2]);var s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(s[3]||s[2]||hy(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){n.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),n.raws.between+=u[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));for(var f=[],l;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)f.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(u=e[c],u[1].toLowerCase()==="!important"){n.important=!0;var h=this.stringFrom(e,c);h=this.spacesFromEnd(e)+h,h!==" !important"&&(n.raws.important=h);break}else if(u[1].toLowerCase()==="important"){for(var v=e.slice(0),p="",m=c;m>0;m--){var d=v[m][0];if(p.trim().indexOf("!")===0&&d!=="space")break;p=v.pop()[1]+p}p.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=p,e=v)}if(u[0]!=="space"&&u[0]!=="comment")break}var g=e.some(function(w){return w[0]!=="space"&&w[0]!=="comment"});g&&(n.raws.between+=f.map(function(w){return w[1]}).join(""),f=[]),this.raw(n,"value",f.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},i.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},i.emptyRule=function(e){var t=new Ol;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},i.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)},i.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())},i.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},i.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},i.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},i.other=function(e){for(var t=!1,n=null,s=!1,a=null,u=[],f=e[1].startsWith("--"),l=[],c=e;c;){if(n=c[0],l.push(c),n==="("||n==="[")a||(a=c),u.push(n==="("?")":"]");else if(f&&s&&n==="{")a||(a=c),u.push("}");else if(u.length===0)if(n===";")if(s){this.decl(l,f);return}else break;else if(n==="{"){this.rule(l);return}else if(n==="}"){this.tokenizer.back(l.pop()),t=!0;break}else n===":"&&(s=!0);else n===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),u.length>0&&this.unclosedBracket(a),t&&s){if(!f)for(;l.length&&(c=l[l.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,f)}else this.unknownWord(l)},i.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()},i.precheckMissedSemicolon=function(){},i.raw=function(e,t,n,s){for(var a,u,f=n.length,l="",c=!0,h,v,p=0;p<f;p+=1)a=n[p],u=a[0],u==="space"&&p===f-1&&!s?c=!1:u==="comment"?(v=n[p-1]?n[p-1][0]:"empty",h=n[p+1]?n[p+1][0]:"empty",!xl[v]&&!xl[h]?l.slice(-1)===","?c=!1:l+=a[1]:c=!1):l+=a[1];if(!c){var m=n.reduce(function(d,g){return d+g[1]},"");e.raws[t]={raw:m,value:l}}e[t]=l},i.rule=function(e){e.pop();var t=new Ol;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},i.spacesAndCommentsFromEnd=function(e){for(var t,n="";e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)n=e.pop()[1]+n;return n},i.spacesAndCommentsFromStart=function(e){for(var t,n="";e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)n+=e.shift()[1];return n},i.spacesFromEnd=function(e){for(var t,n="";e.length&&(t=e[e.length-1][0],t==="space");)n=e.pop()[1]+n;return n},i.stringFrom=function(e,t){for(var n="",s=t;s<e.length;s++)n+=e[s][1];return e.splice(t,e.length-t),n},i.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},i.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},i.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},i.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},i.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},r})(),py=dy,vy=at,my=py,gy=jn;function ri(r,i){var o=new gy(r,i),e=new my(o);try{e.parse()}catch(t){throw process.env.NODE_ENV!=="production"&&t.name==="CssSyntaxError"&&i&&i.from&&(/\.scss$/i.test(i.from)?t.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(i.from)?t.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(i.from)&&(t.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),t}return e.root}var vs=ri;ri.default=ri,vy.registerParse(ri);var ke=Ze.isClean,yy=Ze.my,wy=tl,by=Dn,Sy=at,Cy=us,Iy=dl,Rl=cs,Oy=vs,xy=yr,Ry={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Ey={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},Ay={Once:!0,postcssPlugin:!0,prepare:!0},Dt=0;function br(r){return(typeof r=="undefined"?"undefined":M(r))==="object"&&typeof r.then=="function"}function El(r){var i=!1,o=Ry[r.type];return r.type==="decl"?i=r.prop.toLowerCase():r.type==="atrule"&&(i=r.name.toLowerCase()),i&&r.append?[o,o+"-"+i,Dt,o+"Exit",o+"Exit-"+i]:i?[o,o+"-"+i,o+"Exit",o+"Exit-"+i]:r.append?[o,Dt,o+"Exit"]:[o,o+"Exit"]}function Al(r){var i;return r.type==="document"?i=["Document",Dt,"DocumentExit"]:r.type==="root"?i=["Root",Dt,"RootExit"]:i=El(r),{eventIndex:0,events:i,iterator:0,node:r,visitorIndex:0,visitors:[]}}function ms(r){return r[ke]=!1,r.nodes&&r.nodes.forEach(function(i){return ms(i)}),r}var gs={},Ft=(function(){function r(o,e,t){var n=this;this.stringified=!1,this.processed=!1;var s;if((typeof e=="undefined"?"undefined":M(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=ms(e);else if(A(e,r)||A(e,Rl))s=ms(e.root),e.map&&(typeof t.map=="undefined"&&(t.map={}),t.map.inline||(t.map.inline=!1),t.map.prev=e.map);else{var a=Oy;t.syntax&&(a=t.syntax.parse),t.parser&&(a=t.parser),a.parse&&(a=a.parse);try{s=a(e,t)}catch(u){this.processed=!0,this.error=u}s&&!s[yy]&&Sy.rebuild(s)}this.result=new Rl(o,s,t),this.helpers=T({},gs,{postcss:gs,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":M(u))==="object"&&u.prepare?T({},u,u.prepare(n.result)):u})}var i=r.prototype;return i.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},i.catch=function(e){return this.async().catch(e)},i.finally=function(e){return this.async().then(e,e)},i.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},i.handleError=function(e,t){var n=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion&&process.env.NODE_ENV!=="production"){var s=n.postcssPlugin,a=n.postcssVersion,u=this.result.processor.version,f=a.split("."),l=u.split(".");(f[0]!==l[0]||parseInt(f[1])>parseInt(l[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+u+", but "+s+" uses "+a+". Perhaps this is the source of the error below.")}}catch(c){console&&console.error&&console.error(c)}return e},i.prepareVisitors=function(){var e=this;this.listeners={};for(var t=function(l,c,h){e.listeners[c]||(e.listeners[c]=[]),e.listeners[c].push([l,h])},n=I(this.plugins),s;!(s=n()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":M(a))==="object")for(var u in a){if(!Ey[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Ay[u])if(M(a[u])==="object")for(var f in a[u])f==="*"?t(a,u,a[u][f]):t(a,u+"-"+f.toLowerCase(),a[u][f]);else typeof a[u]=="function"&&t(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},i.runAsync=function(){var e=this;return kr(function(){var t,n,s,a,u,f,l,c,h,v,p,m;return rt(this,function(d){switch(d.label){case 0:e.plugin=0,t=0,d.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(n=e.plugins[t],s=e.runOnRoot(n),!br(s))return[3,5];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,s];case 3:return d.sent(),[3,5];case 4:throw a=d.sent(),e.handleError(a);case 5:return t++,[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,f=[Al(u)],d.label=8;case 8:if(!(f.length>0))return[3,13];if(l=e.visitTick(f),!br(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 c=d.sent(),h=f[f.length-1].node,e.handleError(c,h);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];v=function(){var g,w,b,S,C;return rt(this,function(x){switch(x.label){case 0:g=m.value,w=g[0],b=g[1],e.result.lastPlugin=w,x.label=1;case 1:return x.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(S=u.nodes.map(function(E){return b(E,e.helpers)}),[4,Promise.all(S)]);case 2:return x.sent(),[3,5];case 3:return[4,b(u,e.helpers)];case 4:x.sent(),x.label=5;case 5:return[3,7];case 6:throw C=x.sent(),e.handleError(C);case 7:return[2]}})},p=I(e.listeners.OnceExit),d.label=15;case 15:return(m=p()).done?[3,18]:[5,Si(v())];case 16:d.sent(),d.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},i.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((typeof e=="undefined"?"undefined":M(e))==="object"&&e.Once){if(this.result.root.type==="document"){var n=this.result.root.nodes.map(function(s){return e.Once(s,t.helpers)});return br(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}},i.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=by;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new wy(t,this.result.root,this.result.opts),s=n.generate();return this.result.css=s[0],this.result.map=s[1],this.result},i.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),t;!(t=e()).done;){var n=t.value,s=this.runOnRoot(n);if(br(s))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),f;!(f=u()).done;){var l=f.value;this.visitSync(this.listeners.OnceExit,l)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},i.then=function(e,t){return process.env.NODE_ENV!=="production"&&("from"in this.opts||Iy("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},i.toString=function(){return this.css},i.visitSync=function(e,t){for(var n=I(e),s;!(s=n()).done;){var a=s.value,u=a[0],f=a[1];this.result.lastPlugin=u;var l=void 0;try{l=f(t,this.helpers)}catch(c){throw this.handleError(c,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(br(l))throw this.getAsyncError()}},i.visitTick=function(e){var t=e[e.length-1],n=t.node,s=t.visitors;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){var a=s[t.visitorIndex],u=a[0],f=a[1];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=u;try{return f(n.toProxy(),this.helpers)}catch(p){throw this.handleError(p,n)}}if(t.iterator!==0){for(var l=t.iterator,c;c=n.nodes[n.indexes[l]];)if(n.indexes[l]+=1,!c[ke]){c[ke]=!0,e.push(Al(c));return}t.iterator=0,delete n.indexes[l]}for(var h=t.events;t.eventIndex<h.length;){var v=h[t.eventIndex];if(t.eventIndex+=1,v===Dt){n.nodes&&n.nodes.length&&(n[ke]=!0,t.iterator=n.getIterator());return}else if(this.listeners[v]){t.visitors=this.listeners[v];return}}e.pop()},i.walkSync=function(e){var t=this;e[ke]=!0;for(var n=El(e),s=I(n),a;!(a=s()).done;){var u=a.value;if(u===Dt)e.nodes&&e.each(function(l){l[ke]||t.walkSync(l)});else{var f=this.listeners[u];if(f&&this.visitSync(f,e.toProxy()))return}}},i.warnings=function(){return this.sync().warnings()},Z(r,[{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"}}]),r})();Ft.registerPostcss=function(r){gs=r};var Ml=Ft;Ft.default=Ft,xy.registerLazyResult(Ft),Cy.registerLazyResult(Ft);var My=tl,$y=Dn,ky=dl,_y=vs,Py=cs,ys=(function(){function r(o,e,t){e=e.toString(),this.stringified=!1,this._processor=o,this._css=e,this._opts=t,this._map=void 0;var n,s=$y;this.result=new Py(this._processor,n,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new My(s,n,this._opts,e);if(u.isMap()){var f=u.generate(),l=f[0],c=f[1];l&&(this.result.css=l),c&&(this.result.map=c)}else u.clearAnnotation(),this.result.css=u.css}var i=r.prototype;return i.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},i.catch=function(e){return this.async().catch(e)},i.finally=function(e){return this.async().then(e,e)},i.sync=function(){if(this.error)throw this.error;return this.result},i.then=function(e,t){return process.env.NODE_ENV!=="production"&&("from"in this._opts||ky("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},i.toString=function(){return this._css},i.warnings=function(){return[]},Z(r,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=_y;try{e=t(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),r})(),Ty=ys;ys.default=ys;var Ny=Ty,Ly=Ml,Dy=us,Fy=yr,Sr=(function(){function r(o){o===void 0&&(o=[]),this.version="8.4.38",this.plugins=this.normalize(o)}var i=r.prototype;return i.normalize=function(e){for(var t=[],n=I(e),s;!(s=n()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":M(a))==="object"&&Array.isArray(a.plugins))t=t.concat(a.plugins);else if((typeof a=="undefined"?"undefined":M(a))==="object"&&a.postcssPlugin)t.push(a);else if(typeof a=="function")t.push(a);else if((typeof a=="undefined"?"undefined":M(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 t},i.process=function(e,t){return t===void 0&&(t={}),!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Ny(this,e,t):new Ly(this,e,t)},i.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},r})(),By=Sr;Sr.default=Sr,Fy.registerProcessor(Sr),Dy.registerProcessor(Sr);var Uy=Un,zy=Vf,Wy=Vn,jy=ds,Gy=jn,qy=yr,Vy=ps;function Cr(r,i){if(Array.isArray(r))return r.map(function(c){return Cr(c)});var o=r.inputs,e=tt(r,["inputs"]);if(o){i=[];for(var t=I(o),n;!(n=t()).done;){var s=n.value,a=T({},s,{__proto__:Gy.prototype});a.map&&(a.map=T({},a.map,{__proto__:zy.prototype})),i.push(a)}}if(e.nodes&&(e.nodes=r.nodes.map(function(c){return Cr(c,i)})),e.source){var u=e.source,f=u.inputId,l=tt(u,["inputId"]);e.source=l,f!=null&&(e.source.input=i[f])}if(e.type==="root")return new qy(e);if(e.type==="decl")return new Uy(e);if(e.type==="rule")return new Vy(e);if(e.type==="comment")return new Wy(e);if(e.type==="atrule")return new jy(e);throw new Error("Unknown node type: "+r.type)}var Hy=Cr;Cr.default=Cr;var Yy=Ho,$l=Un,Jy=Ml,Zy=at,ws=By,Ky=Dn,Xy=Hy,kl=us,Qy=pl,_l=Vn,Pl=ds,ew=cs,tw=jn,rw=vs,nw=Cl,Tl=ps,Nl=yr,iw=Bn;function H(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new ws(i)}H.plugin=function(i,o){var e=!1;function t(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];console&&console.warn&&!e&&(e=!0,console.warn(i+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(i+": \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:\nhttps://www.w3ctech.com/topic/2226"));var f=o.apply(void 0,[].concat(a));return f.postcssPlugin=i,f.postcssVersion=new ws().version,f}var n;return Object.defineProperty(t,"postcss",{get:function(){return n||(n=t()),n}}),t.process=function(s,a,u){return H([t(u)]).process(s,a)},t},H.stringify=Ky,H.parse=rw,H.fromJSON=Xy,H.list=nw,H.comment=function(r){return new _l(r)},H.atRule=function(r){return new Pl(r)},H.decl=function(r){return new $l(r)},H.rule=function(r){return new Tl(r)},H.root=function(r){return new Nl(r)},H.document=function(r){return new kl(r)},H.CssSyntaxError=Yy,H.Declaration=$l,H.Container=Zy,H.Processor=ws,H.Document=kl,H.Comment=_l,H.Warning=Qy,H.AtRule=Pl,H.Result=ew,H.Input=tw,H.Rule=Tl,H.Root=Nl,H.Node=iw,Jy.registerPostcss(H);var ow=H;H.default=H;var ne=mg(ow);ne.stringify,ne.fromJSON,ne.plugin,ne.parse,ne.list,ne.document,ne.comment,ne.atRule,ne.rule,ne.decl,ne.root,ne.CssSyntaxError,ne.Declaration,ne.Container,ne.Processor,ne.Document,ne.Comment,ne.Warning,ne.AtRule,ne.Result,ne.Input,ne.Rule,ne.Root,ne.Node;var sw=Object.defineProperty,aw=function(r,i,o){return i in r?sw(r,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[i]=o},ni=function(r,i,o){return aw(r,(typeof i=="undefined"?"undefined":M(i))!=="symbol"?i+"":i,o)};function uw(r,i,o){try{if(!(i in r))return function(){};var e=r[i],t=o(e);return typeof t=="function"&&(t.prototype=t.prototype||{},Object.defineProperties(t,{__rrweb_original__:{enumerable:!1,value:e}})),r[i]=t,function(){r[i]=e}}catch(n){return function(){}}}var Bt=(function(){function r(o){ni(this,"fileName"),ni(this,"functionName"),ni(this,"lineNumber"),ni(this,"columnNumber"),this.fileName=o.fileName||"",this.functionName=o.functionName||"",this.lineNumber=o.lineNumber,this.columnNumber=o.columnNumber}var i=r.prototype;return i.toString=function(){var e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+t+")":this.fileName+":"+e+":"+t},r})(),fw=/(^|@)\S+:\d+/,Ll=/^\s*at .*(\S+:\d+|\(native\))/m,lw=/^(eval@)?(\[native code])?$/,bs={parse:function(i){return i?typeof i.stacktrace!="undefined"||typeof i["opera#sourceloc"]!="undefined"?this.parseOpera(i):i.stack&&i.stack.match(Ll)?this.parseV8OrIE(i):i.stack?this.parseFFOrSafari(i):(console.warn("[console-record-plugin]: Failed to parse error object:",i),[]):[]},extractLocation:function(i){if(i.indexOf(":")===-1)return[i];var o=/(.+?)(?::(\d+))?(?::(\d+))?$/,e=o.exec(i.replace(/[()]/g,""));if(!e)throw new Error("Cannot parse given url: "+i);return[e[1],e[2]||void 0,e[3]||void 0]},parseV8OrIE:function(i){var o=i.stack.split("\n").filter(function(e){return!!e.match(Ll)},this);return o.map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),n=t.match(/ (\((.+):(\d+):(\d+)\)$)/);t=n?t.replace(n[0],""):t;var s=t.split(/\s+/).slice(1),a=this.extractLocation(n?n[1]:s.pop()),u=s.join(" ")||void 0,f=["eval","<anonymous>"].indexOf(a[0])>-1?void 0:a[0];return new Bt({functionName:u,fileName:f,lineNumber:a[1],columnNumber:a[2]})},this)},parseFFOrSafari:function(i){var o=i.stack.split("\n").filter(function(e){return!e.match(lw)},this);return o.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 Bt({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=e.match(t),s=n&&n[1]?n[1]:void 0,a=this.extractLocation(e.replace(t,""));return new Bt({functionName:s,fileName:a[0],lineNumber:a[1],columnNumber:a[2]})},this)},parseOpera:function(i){return!i.stacktrace||i.message.indexOf("\n")>-1&&i.message.split("\n").length>i.stacktrace.split("\n").length?this.parseOpera9(i):i.stack?this.parseOpera11(i):this.parseOpera10(i)},parseOpera9:function(i){for(var o=/Line (\d+).*script (?:in )?(\S+)/i,e=i.message.split("\n"),t=[],n=2,s=e.length;n<s;n+=2){var a=o.exec(e[n]);a&&t.push(new Bt({fileName:a[2],lineNumber:parseFloat(a[1])}))}return t},parseOpera10:function(i){for(var o=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,e=i.stacktrace.split("\n"),t=[],n=0,s=e.length;n<s;n+=2){var a=o.exec(e[n]);a&&t.push(new Bt({functionName:a[3]||void 0,fileName:a[2],lineNumber:parseFloat(a[1])}))}return t},parseOpera11:function(i){var o=i.stack.split("\n").filter(function(e){return!!e.match(fw)&&!e.match(/^Error created at/)},this);return o.map(function(e){var t=e.split("@"),n=this.extractLocation(t.pop()),s=t.shift()||"",a=s.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new Bt({functionName:a,fileName:n[0],lineNumber:n[1],columnNumber:n[2]})},this)}};function cw(r){if(!r||!r.outerHTML)return"";for(var i="";r.parentElement;){var o=r.localName;if(!o)break;o=o.toLowerCase();var e=r.parentElement,t=[];if(e.children&&e.children.length>0)for(var n=0;n<e.children.length;n++){var s=e.children[n];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===o&&t.push(s)}t.length>1&&(o+=":eq("+t.indexOf(r)+")"),i=o+(i?">"+i:""),r=e}return i}function Ss(r){return Object.prototype.toString.call(r)==="[object Object]"}function Dl(r,i){if(i===0)return!0;for(var o=Object.keys(r),e=I(o),t;!(t=e()).done;){var n=t.value;if(Ss(r[n])&&Dl(r[n],i-1))return!0}return!1}function Ut(r,i){var o={numOfKeysLimit:50,depthOfLimit:4};Object.assign(o,i);var e=[],t=[];return JSON.stringify(r,function(a,u){if(e.length>0){var f=e.indexOf(this);~f?e.splice(f+1):e.push(this),~f?t.splice(f,1/0,a):t.push(a),~e.indexOf(u)&&(e[0]===u?u="[Circular ~]":u="[Circular ~."+t.slice(0,e.indexOf(u)).join(".")+"]")}else e.push(u);if(u===null)return u;if(u===void 0)return"undefined";if(n(u))return s(u);if((typeof u=="undefined"?"undefined":M(u))==="bigint")return u.toString()+"n";if(A(u,Event)){var l={};for(var c in u){var h=u[c];Array.isArray(h)?l[c]=cw(h.length?h[0]:null):l[c]=h}return l}else{if(A(u,Node))return A(u,HTMLElement)?u?u.outerHTML:"":u.nodeName;if(A(u,Error))return u.stack?u.stack+"\nEnd of stack for Error object":u.name+": "+u.message}return u});function n(a){return!!(Ss(a)&&Object.keys(a).length>o.numOfKeysLimit||typeof a=="function"||Ss(a)&&Dl(a,o.depthOfLimit))}function s(a){var u=a.toString();return o.stringLengthLimit&&u.length>o.stringLengthLimit&&(u=""+u.slice(0,o.stringLengthLimit)+"..."),u}}var Fl={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 hw(r,i,o){var e=o?Object.assign({},Fl,o):Fl,t=e.logger;if(!t)return function(){};var n;typeof t=="string"?n=i[t]:n=t;var s=0,a=!1,u=[];if(e.level.includes("error")){var f=function(m){var d=m.message,g=m.error,w=bs.parse(g).map(function(S){return S.toString()}),b=[Ut(d,e.stringifyOptions)];r({level:"error",trace:w,payload:b})};i.addEventListener("error",f),u.push(function(){i.removeEventListener("error",f)});var l=function(m){var d,g;A(m.reason,Error)?(d=m.reason,g=[Ut("Uncaught (in promise) "+d.name+": "+d.message,e.stringifyOptions)]):(d=new Error,g=[Ut("Uncaught (in promise)",e.stringifyOptions),Ut(m.reason,e.stringifyOptions)]);var w=bs.parse(d).map(function(b){return b.toString()});r({level:"error",trace:w,payload:g})};i.addEventListener("unhandledrejection",l),u.push(function(){i.removeEventListener("unhandledrejection",l)})}for(var c=I(e.level),h;!(h=c()).done;){var v=h.value;u.push(p(n,v))}return function(){u.forEach(function(m){return m()})};function p(m,d){var g=this;return m[d]?uw(m,d,function(w){var b=g;return function(){for(var S=arguments.length,C=new Array(S),x=0;x<S;x++)C[x]=arguments[x];if(w.apply(b,C),!(d==="assert"&&C[0])&&!a){a=!0;try{var E=bs.parse(new Error).map(function(N){return N.toString()}).splice(1),R=d==="assert"?C.slice(1):C,k=R.map(function(N){return Ut(N,e.stringifyOptions)});s++,s<e.lengthThreshold?r({level:d,trace:E,payload:k}):s===e.lengthThreshold&&r({level:"warn",trace:[],payload:[Ut("The number of log records reached the threshold.")]})}catch(N){w.apply(void 0,[].concat(["rrweb logger error:",N],C))}finally{a=!1}}}}):function(){}}}var dw="rrweb/console@1",pw=function(r){return{name:dw,observer:hw,options:r}},Bl=W.setImmediate,Ke,Cs,Is,Ul=Object.prototype.toString,vw=typeof Bl!="undefined"?function(i){return Bl(i)}:setTimeout;try{Object.defineProperty({},"x",{}),Ke=function(i,o,e,t){return Object.defineProperty(i,o,{value:e,writable:!0,configurable:t!==!1})}}catch(r){Ke=function(o,e,t){return o[e]=t,o}}Is=(function(){var i,o,e;function t(n,s){this.fn=n,this.self=s,this.next=void 0}return{add:function(s,a){e=new t(s,a),o?o.next=e:i=e,o=e,e=void 0},drain:function(){var s=i;for(i=o=Cs=void 0;s;)s.fn.call(s.self),s=s.next}}})();function ii(r,i){Is.add(r,i),Cs||(Cs=vw(Is.drain))}function zl(r){var i,o=typeof r;return r!==null&&(o==="object"||o==="function")&&(i=r.then),typeof i=="function"?i:!1}function Os(){for(var r=0;r<this.chain.length;r++)mw(this,this.state===1?this.chain[r].success:this.chain[r].failure,this.chain[r]);this.chain.length=0}function mw(r,i,o){var e,t;try{i===!1?o.reject(r.msg):(i===!0?e=r.msg:e=i.call(void 0,r.msg),e===o.promise?o.reject(TypeError("Promise-chain cycle")):(t=zl(e))?t.call(e,o.resolve,o.reject):o.resolve(e))}catch(n){o.reject(n)}}function Wl(r){var i,o=this;if(!o.triggered){o.triggered=!0,o.def&&(o=o.def);try{(i=zl(r))?ii(function(){var e=new Gl(o);try{i.call(r,function(){Wl.apply(e,arguments)},function(){Ir.apply(e,arguments)})}catch(t){Ir.call(e,t)}}):(o.msg=r,o.state=1,o.chain.length>0&&ii(Os,o))}catch(e){Ir.call(new Gl(o),e)}}}function Ir(r){var i=this;i.triggered||(i.triggered=!0,i.def&&(i=i.def),i.msg=r,i.state=2,i.chain.length>0&&ii(Os,i))}function jl(r,i,o,e){for(var t=0;t<i.length;t++)(function(s){r.resolve(i[s]).then(function(u){o(s,u)},e)})(t)}function Gl(r){this.def=r,this.triggered=!1}function gw(r){this.promise=r,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function Xe(r){if(typeof r!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var i=new gw(this);this.then=function(e,t){var n={success:typeof e=="function"?e:!0,failure:typeof t=="function"?t:!1};return n.promise=new this.constructor(function(a,u){if(typeof a!="function"||typeof u!="function")throw TypeError("Not a function");n.resolve=a,n.reject=u}),i.chain.push(n),i.state!==0&&ii(Os,i),n.promise},this.catch=function(e){return this.then(void 0,e)};try{r.call(void 0,function(e){Wl.call(i,e)},function(e){Ir.call(i,e)})}catch(o){Ir.call(i,o)}}var ql=Ke({},"constructor",Xe,!1);Xe.prototype=ql,Ke(ql,"__NPO__",0,!1),Ke(Xe,"resolve",function(i){var o=this;return i&&typeof i=="object"&&i.__NPO__===1?i:new o(function(t,n){if(typeof t!="function"||typeof n!="function")throw TypeError("Not a function");t(i)})}),Ke(Xe,"reject",function(i){return new this(function(e,t){if(typeof e!="function"||typeof t!="function")throw TypeError("Not a function");t(i)})}),Ke(Xe,"all",function(i){var o=this;return Ul.call(i)!=="[object Array]"?o.reject(TypeError("Not an array")):i.length===0?o.resolve([]):new o(function(t,n){if(typeof t!="function"||typeof n!="function")throw TypeError("Not a function");var s=i.length,a=Array(s),u=0;jl(o,i,function(l,c){a[l]=c,++u===s&&t(a)},n)})}),Ke(Xe,"race",function(i){var o=this;return Ul.call(i)!=="[object Array]"?o.reject(TypeError("Not an array")):new o(function(t,n){if(typeof t!="function"||typeof n!="function")throw TypeError("Not a function");jl(o,i,function(a,u){t(u)},n)})});var B;typeof Promise!="undefined"&&Promise.toString().indexOf("[native code]")!==-1?B=Promise:B=Xe;var oi=1440*60*1e3,xs=8*1e3,si=Array.prototype,yw=Function.prototype,Vl=Object.prototype,ut=si.slice,Or=Vl.toString,ai=Vl.hasOwnProperty,xr=W.console,zt=W.navigator,Se=W.document,Rr=W.opera,Hl=W.screen,ft=zt.userAgent,Rs=yw.bind,Yl=si.forEach,Jl=si.indexOf,Zl=si.map,ww=Array.isArray,Es={},y={trim:function(r){return r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},Re={log:function(){},warn:function(){},error:function(){},critical:function(){if(!y.isUndefined(xr)&&xr){var r=["Mixpanel error:"].concat(y.toArray(arguments));try{xr.error.apply(xr,r)}catch(i){y.each(r,function(o){xr.error(o)})}}}},As=function(r,i){return function(){return arguments[0]="["+i+"] "+arguments[0],r.apply(Re,arguments)}},lt=function(r){return{log:As(Re.log,r),error:As(Re.error,r),critical:As(Re.critical,r)}};y.bind=function(r,i){var o,e;if(Rs&&r.bind===Rs)return Rs.apply(r,ut.call(arguments,1));if(!y.isFunction(r))throw new TypeError;return o=ut.call(arguments,2),e=function(){if(!(this instanceof e))return r.apply(i,o.concat(ut.call(arguments)));var t={};t.prototype=r.prototype;var n=new t;t.prototype=null;var s=r.apply(n,o.concat(ut.call(arguments)));return Object(s)===s?s:n},e},y.each=function(r,i,o){if(r!=null){if(Yl&&r.forEach===Yl)r.forEach(i,o);else if(r.length===+r.length){for(var e=0,t=r.length;e<t;e++)if(e in r&&i.call(o,r[e],e,r)===Es)return}else for(var n in r)if(ai.call(r,n)&&i.call(o,r[n],n,r)===Es)return}},y.extend=function(r){return y.each(ut.call(arguments,1),function(i){for(var o in i)i[o]!==void 0&&(r[o]=i[o])}),r},y.isArray=ww||function(r){return Or.call(r)==="[object Array]"},y.isFunction=function(r){return typeof r=="function"},y.isArguments=function(r){return!!(r&&ai.call(r,"callee"))},y.toArray=function(r){return r?r.toArray?r.toArray():y.isArray(r)||y.isArguments(r)?ut.call(r):y.values(r):[]},y.map=function(r,i,o){if(Zl&&r.map===Zl)return r.map(i,o);var e=[];return y.each(r,function(t){e.push(i.call(o,t))}),e},y.keys=function(r){var i=[];return r===null||y.each(r,function(o,e){i[i.length]=e}),i},y.values=function(r){var i=[];return r===null||y.each(r,function(o){i[i.length]=o}),i},y.include=function(r,i){var o=!1;return r===null?o:Jl&&r.indexOf===Jl?r.indexOf(i)!=-1:(y.each(r,function(e){if(o||(o=e===i))return Es}),o)},y.includes=function(r,i){return r.indexOf(i)!==-1},y.inherit=function(r,i){return r.prototype=new i,r.prototype.constructor=r,r.superclass=i.prototype,r},y.isObject=function(r){return r===Object(r)&&!y.isArray(r)},y.isEmptyObject=function(r){if(y.isObject(r)){for(var i in r)if(ai.call(r,i))return!1;return!0}return!1},y.isUndefined=function(r){return r===void 0},y.isString=function(r){return Or.call(r)=="[object String]"},y.isDate=function(r){return Or.call(r)=="[object Date]"},y.isNumber=function(r){return Or.call(r)=="[object Number]"},y.isElement=function(r){return!!(r&&r.nodeType===1)},y.encodeDates=function(r){return y.each(r,function(i,o){y.isDate(i)?r[o]=y.formatDate(i):y.isObject(i)&&(r[o]=y.encodeDates(i))}),r},y.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},y.formatDate=function(r){function i(o){return o<10?"0"+o:o}return r.getUTCFullYear()+"-"+i(r.getUTCMonth()+1)+"-"+i(r.getUTCDate())+"T"+i(r.getUTCHours())+":"+i(r.getUTCMinutes())+":"+i(r.getUTCSeconds())},y.strip_empty_properties=function(r){var i={};return y.each(r,function(o,e){y.isString(o)&&o.length>0&&(i[e]=o)}),i},y.truncate=function(r,i){var o;return typeof r=="string"?o=r.slice(0,i):y.isArray(r)?(o=[],y.each(r,function(e){o.push(y.truncate(e,i))})):y.isObject(r)?(o={},y.each(r,function(e,t){o[t]=y.truncate(e,i)})):o=r,o},y.JSONEncode=(function(){return function(r){var i=r,o=function(t){var n=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,s={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return n.lastIndex=0,n.test(t)?'"'+t.replace(n,function(a){var u=s[a];return typeof u=="string"?u:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+t+'"'},e=function(t,n){var s="",a=" ",u=0,f="",l="",c=0,h=s,v=[],p=n[t];switch(p&&typeof p=="object"&&typeof p.toJSON=="function"&&(p=p.toJSON(t)),typeof p){case"string":return o(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(s+=a,v=[],Or.apply(p)==="[object Array]"){for(c=p.length,u=0;u<c;u+=1)v[u]=e(u,p)||"null";return l=v.length===0?"[]":s?"[\n"+s+v.join(",\n"+s)+"\n"+h+"]":"["+v.join(",")+"]",s=h,l}for(f in p)ai.call(p,f)&&(l=e(f,p),l&&v.push(o(f)+(s?": ":":")+l));return l=v.length===0?"{}":s?"{"+v.join(",")+h+"}":"{"+v.join(",")+"}",s=h,l}};return e("",{"":i})}})(),y.JSONDecode=(function(){var r,i,o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},e,t=function(v){var p=new SyntaxError(v);throw p.at=r,p.text=e,p},n=function(v){return v&&v!==i&&t("Expected '"+v+"' instead of '"+i+"'"),i=e.charAt(r),r+=1,i},s=function(){var v,p="";for(i==="-"&&(p="-",n("-"));i>="0"&&i<="9";)p+=i,n();if(i===".")for(p+=".";n()&&i>="0"&&i<="9";)p+=i;if(i==="e"||i==="E")for(p+=i,n(),(i==="-"||i==="+")&&(p+=i,n());i>="0"&&i<="9";)p+=i,n();if(v=+p,!isFinite(v))t("Bad number");else return v},a=function(){var v,p,m="",d;if(i==='"')for(;n();){if(i==='"')return n(),m;if(i==="\\")if(n(),i==="u"){for(d=0,p=0;p<4&&(v=parseInt(n(),16),!!isFinite(v));p+=1)d=d*16+v;m+=String.fromCharCode(d)}else if(typeof o[i]=="string")m+=o[i];else break;else m+=i}t("Bad string")},u=function(){for(;i&&i<=" ";)n()},f=function(){switch(i){case"t":return n("t"),n("r"),n("u"),n("e"),!0;case"f":return n("f"),n("a"),n("l"),n("s"),n("e"),!1;case"n":return n("n"),n("u"),n("l"),n("l"),null}t('Unexpected "'+i+'"')},l,c=function(){var v=[];if(i==="["){if(n("["),u(),i==="]")return n("]"),v;for(;i;){if(v.push(l()),u(),i==="]")return n("]"),v;n(","),u()}}t("Bad array")},h=function(){var v,p={};if(i==="{"){if(n("{"),u(),i==="}")return n("}"),p;for(;i;){if(v=a(),u(),n(":"),Object.hasOwnProperty.call(p,v)&&t('Duplicate key "'+v+'"'),p[v]=l(),u(),i==="}")return n("}"),p;n(","),u()}}t("Bad object")};return l=function(){switch(u(),i){case"{":return h();case"[":return c();case'"':return a();case"-":return s();default:return i>="0"&&i<="9"?s():f()}},function(v){var p;return e=v,r=0,i=" ",p=l(),u(),i&&t("Syntax error"),p}})(),y.base64Encode=function(r){var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o,e,t,n,s,a,u,f,l=0,c=0,h="",v=[];if(!r)return r;r=y.utf8Encode(r);do o=r.charCodeAt(l++),e=r.charCodeAt(l++),t=r.charCodeAt(l++),f=o<<16|e<<8|t,n=f>>18&63,s=f>>12&63,a=f>>6&63,u=f&63,v[c++]=i.charAt(n)+i.charAt(s)+i.charAt(a)+i.charAt(u);while(l<r.length);switch(h=v.join(""),r.length%3){case 1:h=h.slice(0,-2)+"==";break;case 2:h=h.slice(0,-1)+"=";break}return h},y.utf8Encode=function(r){r=(r+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var i="",o,e,t=0,n;for(o=e=0,t=r.length,n=0;n<t;n++){var s=r.charCodeAt(n),a=null;s<128?e++:s>127&&s<2048?a=String.fromCharCode(s>>6|192,s&63|128):a=String.fromCharCode(s>>12|224,s>>6&63|128,s&63|128),a!==null&&(e>o&&(i+=r.substring(o,e)),i+=a,o=e=n+1)}return e>o&&(i+=r.substring(o,r.length)),i},y.UUID=function(){try{return W.crypto.randomUUID()}catch(o){for(var r=new Array(36),i=0;i<36;i++)r[i]=Math.floor(Math.random()*16);return r[14]=4,r[19]=r[19]&=-5,r[19]=r[19]|=8,r[8]=r[13]=r[18]=r[23]="-",y.map(r,function(e){return e.toString(16)}).join("")}};var Kl=["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"];y.isBlockedUA=function(r){var i;for(r=r.toLowerCase(),i=0;i<Kl.length;i++)if(r.indexOf(Kl[i])!==-1)return!0;return!1},y.HTTPBuildQuery=function(r,i){var o,e,t=[];return y.isUndefined(i)&&(i="&"),y.each(r,function(n,s){o=encodeURIComponent(n.toString()),e=encodeURIComponent(s),t[t.length]=e+"="+o}),t.join(i)},y.getQueryParam=function(r,i){i=i.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var o="[\\?&]"+i+"=([^&#]*)",e=new RegExp(o),t=e.exec(r);if(t===null||t&&typeof t[1]!="string"&&t[1].length)return"";var n=t[1];try{n=decodeURIComponent(n)}catch(s){Re.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},y.cookie={get:function(r){for(var i=r+"=",o=Se.cookie.split(";"),e=0;e<o.length;e++){for(var t=o[e];t.charAt(0)==" ";)t=t.substring(1,t.length);if(t.indexOf(i)===0)return decodeURIComponent(t.substring(i.length,t.length))}return null},parse:function(r){var i;try{i=y.JSONDecode(y.cookie.get(r))||{}}catch(o){}return i},set_seconds:function(r,i,o,e,t,n,s){var a="",u="",f="";if(s)a="; domain="+s;else if(e){var l=rc(Se.location.hostname);a=l?"; domain=."+l:""}if(o){var c=new Date;c.setTime(c.getTime()+o*1e3),u="; expires="+c.toGMTString()}n&&(t=!0,f="; SameSite=None"),t&&(f+="; secure"),Se.cookie=r+"="+encodeURIComponent(i)+u+"; path=/"+a+f},set:function(r,i,o,e,t,n,s){var a="",u="",f="";if(s)a="; domain="+s;else if(e){var l=rc(Se.location.hostname);a=l?"; domain=."+l:""}if(o){var c=new Date;c.setTime(c.getTime()+o*24*60*60*1e3),u="; expires="+c.toGMTString()}n&&(t=!0,f="; SameSite=None"),t&&(f+="; secure");var h=r+"="+encodeURIComponent(i)+u+"; path=/"+a+f;return Se.cookie=h,h},remove:function(r,i,o){y.cookie.set(r,"",-1,i,!1,!1,o)}};var Xl=function(r){var i=!0;try{var o="__mplss_"+ks(8),e="xyz";r.setItem(o,e),r.getItem(o)!==e&&(i=!1),r.removeItem(o)}catch(t){i=!1}return i},Ms=null,Er=function(r,i){return Ms!==null&&!i?Ms:Ms=Xl(r||W.localStorage)},$s=null,bw=function(r,i){return $s!==null&&!i?$s:$s=Xl(r||W.sessionStorage)};function Ql(r,i,o){var e=function(t){Re.error(i+" error: "+t)};return{is_supported:function(t){var n=o(r,t);return n||Re.error(i+" unsupported"),n},error:e,get:function(t){try{return r.getItem(t)}catch(n){e(n)}return null},parse:function(t){try{return y.JSONDecode(r.getItem(t))||{}}catch(n){}return null},set:function(t,n){try{r.setItem(t,n)}catch(s){e(s)}},remove:function(t){try{r.removeItem(t)}catch(n){e(n)}}}}var ec=null,tc=null;try{ec=W.localStorage,tc=W.sessionStorage}catch(r){}y.localStorage=Ql(ec,"localStorage",Er),y.sessionStorage=Ql(tc,"sessionStorage",bw),y.register_event=(function(){var r=function(e,t,n,s,a){if(!e){Re.error("No valid element provided to register_event");return}if(e.addEventListener&&!s)e.addEventListener(t,n,!!a);else{var u="on"+t,f=e[u];e[u]=i(e,n,f)}};function i(e,t,n){var s=function(a){if(a=a||o(W.event),!!a){var u=!0,f,l;return y.isFunction(n)&&(f=n(a)),l=t.call(e,a),(f===!1||l===!1)&&(u=!1),u}};return s}function o(e){return e&&(e.preventDefault=o.preventDefault,e.stopPropagation=o.stopPropagation),e}return o.preventDefault=function(){this.returnValue=!1},o.stopPropagation=function(){this.cancelBubble=!0},r})();var Sw=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');y.dom_query=(function(){function r(t){return t.all?t.all:t.getElementsByTagName("*")}var i=/[\t\r\n]/g;function o(t,n){var s=" "+n+" ";return(" "+t.className+" ").replace(i," ").indexOf(s)>=0}function e(t){if(!Se.getElementsByTagName)return[];var n=t.split(" "),s,a,u,f,l,c,h,v,p,m,d=[Se];for(c=0;c<n.length;c++){if(s=n[c].replace(/^\s+/,"").replace(/\s+$/,""),s.indexOf("#")>-1){a=s.split("#"),u=a[0];var g=a[1],w=Se.getElementById(g);if(!w||u&&w.nodeName.toLowerCase()!=u)return[];d=[w];continue}if(s.indexOf(".")>-1){a=s.split("."),u=a[0];var b=a[1];for(u||(u="*"),f=[],l=0,h=0;h<d.length;h++)for(u=="*"?p=r(d[h]):p=d[h].getElementsByTagName(u),v=0;v<p.length;v++)f[l++]=p[v];for(d=[],m=0,h=0;h<f.length;h++)f[h].className&&y.isString(f[h].className)&&o(f[h],b)&&(d[m++]=f[h]);continue}var S=s.match(Sw);if(S){u=S[1];var C=S[2],x=S[3],E=S[4];for(u||(u="*"),f=[],l=0,h=0;h<d.length;h++)for(u=="*"?p=r(d[h]):p=d[h].getElementsByTagName(u),v=0;v<p.length;v++)f[l++]=p[v];d=[],m=0;var R;switch(x){case"=":R=function(k){return k.getAttribute(C)==E};break;case"~":R=function(k){return k.getAttribute(C).match(new RegExp("\\b"+E+"\\b"))};break;case"|":R=function(k){return k.getAttribute(C).match(new RegExp("^"+E+"-?"))};break;case"^":R=function(k){return k.getAttribute(C).indexOf(E)===0};break;case"$":R=function(k){return k.getAttribute(C).lastIndexOf(E)==k.getAttribute(C).length-E.length};break;case"*":R=function(k){return k.getAttribute(C).indexOf(E)>-1};break;default:R=function(k){return k.getAttribute(C)}}for(d=[],m=0,h=0;h<f.length;h++)R(f[h])&&(d[m++]=f[h]);continue}for(u=s,f=[],l=0,h=0;h<d.length;h++)for(p=d[h].getElementsByTagName(u),v=0;v<p.length;v++)f[l++]=p[v];d=f}return d}return function(t){return y.isElement(t)?[t]:y.isObject(t)&&!y.isUndefined(t.length)?t:e.call(this,t)}})();var Cw=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],Iw=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];y.info={campaignParams:function(r){var i="",o={};return y.each(Cw,function(e){i=y.getQueryParam(Se.URL,e),i.length?o[e]=i:r!==void 0&&(o[e]=r)}),o},clickParams:function(){var r="",i={};return y.each(Iw,function(o){r=y.getQueryParam(Se.URL,o),r.length&&(i[o]=r)}),i},marketingParams:function(){return y.extend(y.info.campaignParams(),y.info.clickParams())},searchEngine:function(r){return r.search("https?://(.*)google.([^/?]*)")===0?"google":r.search("https?://(.*)bing.com")===0?"bing":r.search("https?://(.*)yahoo.com")===0?"yahoo":r.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null},searchInfo:function(r){var i=y.info.searchEngine(r),o=i!="yahoo"?"q":"p",e={};if(i!==null){e.$search_engine=i;var t=y.getQueryParam(r,o);t.length&&(e.mp_keyword=t)}return e},browser:function(r,i,o){return i=i||"",o||y.includes(r," OPR/")?y.includes(r,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(r)?"BlackBerry":y.includes(r,"IEMobile")||y.includes(r,"WPDesktop")?"Internet Explorer Mobile":y.includes(r,"SamsungBrowser/")?"Samsung Internet":y.includes(r,"Edge")||y.includes(r,"Edg/")?"Microsoft Edge":y.includes(r,"FBIOS")?"Facebook Mobile":y.includes(r,"Whale/")?"Whale Browser":y.includes(r,"Chrome")?"Chrome":y.includes(r,"CriOS")?"Chrome iOS":y.includes(r,"UCWEB")||y.includes(r,"UCBrowser")?"UC Browser":y.includes(r,"FxiOS")?"Firefox iOS":y.includes(i,"Apple")?y.includes(r,"Mobile")?"Mobile Safari":"Safari":y.includes(r,"Android")?"Android Mobile":y.includes(r,"Konqueror")?"Konqueror":y.includes(r,"Firefox")?"Firefox":y.includes(r,"MSIE")||y.includes(r,"Trident/")?"Internet Explorer":y.includes(r,"Gecko")?"Mozilla":""},browserVersion:function(r,i,o){var e=y.info.browser(r,i,o),t={"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+)?)/},n=t[e];if(n===void 0)return null;var s=r.match(n);return s?parseFloat(s[s.length-2]):null},os:function(){var r=ft;return/Windows/i.test(r)?/Phone/.test(r)||/WPDesktop/.test(r)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(r)?"iOS":/Android/.test(r)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(r)?"BlackBerry":/Mac/i.test(r)?"Mac OS X":/Linux/.test(r)?"Linux":/CrOS/.test(r)?"Chrome OS":""},device:function(r){return/Windows Phone/i.test(r)||/WPDesktop/.test(r)?"Windows Phone":/iPad/.test(r)?"iPad":/iPod/.test(r)?"iPod Touch":/iPhone/.test(r)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(r)?"BlackBerry":/Android/.test(r)?"Android":""},referringDomain:function(r){var i=r.split("/");return i.length>=3?i[2]:""},currentUrl:function(){return W.location.href},properties:function(r){return typeof r!="object"&&(r={}),y.extend(y.strip_empty_properties({$os:y.info.os(),$browser:y.info.browser(ft,zt.vendor,Rr),$referrer:Se.referrer,$referring_domain:y.info.referringDomain(Se.referrer),$device:y.info.device(ft)}),{$current_url:y.info.currentUrl(),$browser_version:y.info.browserVersion(ft,zt.vendor,Rr),$screen_height:Hl.height,$screen_width:Hl.width,mp_lib:"web",$lib_version:wi.LIB_VERSION,$insert_id:ks(),time:y.timestamp()/1e3},y.strip_empty_properties(r))},people_properties:function(){return y.extend(y.strip_empty_properties({$os:y.info.os(),$browser:y.info.browser(ft,zt.vendor,Rr)}),{$browser_version:y.info.browserVersion(ft,zt.vendor,Rr)})},mpPageViewProperties:function(){return y.strip_empty_properties({current_page_title:Se.title,current_domain:W.location.hostname,current_url_path:W.location.pathname,current_url_protocol:W.location.protocol,current_url_search:W.location.search})}};var Ow=function(r,i){var o=null,e=[];return function(t){var n=this;return e.push(t),o||(o=new B(function(s){setTimeout(function(){var a=r.apply(n,[e]);o=null,e=[],s(a)},i)})),o}},ks=function(r){var i=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return r?i.substring(0,r):i},xw=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Rw=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,rc=function(r){var i=Rw,o=r.split("."),e=o[o.length-1];(e.length>4||e==="com"||e==="org")&&(i=xw);var t=r.match(i);return t?t[0]:""},Ew=function(){var r=W.navigator.onLine;return y.isUndefined(r)||r},_s=function(){},nc=function(r,i){for(var o=!1,e=0;e<i.length;e++)if(r.match(i[e])){o=!0;break}return o},ui=null,fi=null;typeof JSON!="undefined"&&(ui=JSON.stringify,fi=JSON.parse),ui=ui||y.JSONEncode,fi=fi||y.JSONDecode;var Aw=function(r,i,o){if(!W.CompressionStream)return!1;var e=y.info.browser(r,i,o),t=y.info.browserVersion(r,i,o);return!((e==="Safari"||e==="Mobile Safari")&&t>=16.4&&t<16.6)};y.info=y.info,y.info.browser=y.info.browser,y.info.browserVersion=y.info.browserVersion,y.info.device=y.info.device,y.info.properties=y.info.properties,y.isBlockedUA=y.isBlockedUA,y.isEmptyObject=y.isEmptyObject,y.isObject=y.isObject,y.JSONDecode=y.JSONDecode,y.JSONEncode=y.JSONEncode,y.toArray=y.toArray,y.NPO=Xe;var Mw="mixpanelBrowserDb",ic="mixpanelRecordingEvents",oc="mixpanelRecordingRegistry",$w=1,kw=[ic,oc],_e=function(r){this.dbPromise=null,this.storeName=r};_e.prototype._openDb=function(){return new B(function(r,i){var o=W.indexedDB.open(Mw,$w);o.onerror=function(){i(o.error)},o.onsuccess=function(){r(o.result)},o.onupgradeneeded=function(e){var t=e.target.result;kw.forEach(function(n){t.createObjectStore(n)})}})},_e.prototype.init=function(){return W.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(r){return r instanceof W.IDBDatabase?B.resolve():B.reject(r)})):B.reject("indexedDB is not supported in this browser")},_e.prototype.isInitialized=function(){return!!this.dbPromise},_e.prototype.makeTransaction=function(r,i){var o=this.storeName,e=function(t){return new B(function(n,s){var a=t.transaction(o,r);a.oncomplete=function(){n(a)},a.onabort=a.onerror=function(){s(a.error)},i(a.objectStore(o))})};return this.dbPromise.then(e).catch(function(t){return t&&t.name==="InvalidStateError"?(this.dbPromise=this._openDb(),this.dbPromise.then(e)):B.reject(t)}.bind(this))},_e.prototype.setItem=function(r,i){return this.makeTransaction("readwrite",function(o){o.put(i,r)})},_e.prototype.getItem=function(r){var i;return this.makeTransaction("readonly",function(o){i=o.get(r)}).then(function(){return i.result})},_e.prototype.removeItem=function(r){return this.makeTransaction("readwrite",function(i){i.delete(r)})},_e.prototype.getAll=function(){var r;return this.makeTransaction("readonly",function(i){r=i.getAll()}).then(function(){return r.result})};var _w="__mp_opt_in_out_";function Pw(r,i){if(Fw(i))return Re.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 o=Dw(r,i)==="0";return o&&Re.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),o}function Tw(r){return Bw(r,function(i){return this.get_config(i)})}function Nw(r){return r=r||{},r.persistenceType==="localStorage"?y.localStorage:y.cookie}function Lw(r,i){return i=i||{},(i.persistencePrefix||_w)+r}function Dw(r,i){return Nw(i).get(Lw(r,i))}function Fw(r){if(r&&r.ignoreDnt)return!1;var i=r&&r.window||W,o=i.navigator||{},e=!1;return y.each([o.doNotTrack,o.msDoNotTrack,i.doNotTrack],function(t){y.includes([!0,1,"1","yes"],t)&&(e=!0)}),e}function Bw(r,i){return function(){var o=!1;try{var e=i.call(this,"token"),t=i.call(this,"ignore_dnt"),n=i.call(this,"opt_out_tracking_persistence_type"),s=i.call(this,"opt_out_tracking_cookie_prefix"),a=i.call(this,"window");e&&(o=Pw(e,{ignoreDnt:t,persistenceType:n,persistencePrefix:s,window:a}))}catch(f){Re.error("Unexpected error when checking tracking opt-out status: "+f)}if(!o)return r.apply(this,arguments);var u=arguments[arguments.length-1];typeof u=="function"&&u(0)}}var Uw=lt("lock"),sc=function(r,i){i=i||{},this.storageKey=r,this.storage=i.storage||W.localStorage,this.pollIntervalMS=i.pollIntervalMS||100,this.timeoutMS=i.timeoutMS||2e3,this.promiseImpl=i.promiseImpl||B};sc.prototype.withLock=function(r,i){var o=this.promiseImpl;return new o(y.bind(function(e,t){var n=i||new Date().getTime()+"|"+Math.random(),s=new Date().getTime(),a=this.storageKey,u=this.pollIntervalMS,f=this.timeoutMS,l=this.storage,c=a+":X",h=a+":Y",v=a+":Z",p=function(b){if(new Date().getTime()-s>f){Uw.error("Timeout waiting for mutex on "+a+"; clearing lock. ["+n+"]"),l.removeItem(v),l.removeItem(h),g();return}setTimeout(function(){try{b()}catch(S){t(S)}},u*(Math.random()+.1))},m=function(b,S){b()?S():p(function(){m(b,S)})},d=function(){var b=l.getItem(h);return b&&b!==n?!1:(l.setItem(h,n),l.getItem(h)===n?!0:(Er(l,!0)||t(new Error("localStorage support dropped while acquiring lock")),!1))},g=function(){l.setItem(c,n),m(d,function(){if(l.getItem(c)===n){w();return}p(function(){if(l.getItem(h)!==n){g();return}m(function(){return!l.getItem(v)},w)})})},w=function(){l.setItem(v,"1");var b=function(){l.removeItem(v),l.getItem(h)===n&&l.removeItem(h),l.getItem(c)===n&&l.removeItem(c)};r().then(function(S){b(),e(S)}).catch(function(S){b(),t(S)})};try{if(Er(l,!0))g();else throw new Error("localStorage support check failed")}catch(b){t(b)}},this))};var Wt=function(r){this.storage=r||W.localStorage};Wt.prototype.init=function(){return B.resolve()},Wt.prototype.isInitialized=function(){return!0},Wt.prototype.setItem=function(r,i){return new B(y.bind(function(o,e){try{this.storage.setItem(r,ui(i))}catch(t){e(t)}o()},this))},Wt.prototype.getItem=function(r){return new B(y.bind(function(i,o){var e;try{e=fi(this.storage.getItem(r))}catch(t){o(t)}i(e)},this))},Wt.prototype.removeItem=function(r){return new B(y.bind(function(i,o){try{this.storage.removeItem(r)}catch(e){o(e)}i()},this))};var ac=lt("batch"),Pe=function(r,i){i=i||{},this.storageKey=r,this.usePersistence=i.usePersistence,this.usePersistence&&(this.queueStorage=i.queueStorage||new Wt,this.lock=new sc(r,{storage:i.sharedLockStorage||W.localStorage,timeoutMS:i.sharedLockTimeoutMS})),this.reportError=i.errorReporter||y.bind(ac.error,ac),this.pid=i.pid||null,this.memQueue=[],this.initialized=!1,i.enqueueThrottleMs?this.enqueuePersisted=Ow(y.bind(this._enqueuePersisted,this),i.enqueueThrottleMs):this.enqueuePersisted=y.bind(function(o){return this._enqueuePersisted([o])},this)};Pe.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?B.resolve():this.queueStorage.init().then(y.bind(function(){this.initialized=!0},this)).catch(y.bind(function(r){this.reportError("Error initializing queue persistence. Disabling persistence",r),this.initialized=!0,this.usePersistence=!1},this))},Pe.prototype.enqueue=function(r,i){var o={id:ks(),flushAfter:new Date().getTime()+i*2,payload:r};return this.usePersistence?this.enqueuePersisted(o):(this.memQueue.push(o),B.resolve(!0))},Pe.prototype._enqueuePersisted=function(r){var i=y.bind(function(){return this.ensureInit().then(y.bind(function(){return this.readFromStorage()},this)).then(y.bind(function(o){return this.saveToStorage(o.concat(r))},this)).then(y.bind(function(o){return o&&(this.memQueue=this.memQueue.concat(r)),o},this)).catch(y.bind(function(o){return this.reportError("Error enqueueing items",o,r),!1},this))},this);return this.lock.withLock(i,this.pid).catch(y.bind(function(o){return this.reportError("Error acquiring storage lock",o),!1},this))},Pe.prototype.fillBatch=function(r){var i=this.memQueue.slice(0,r);return this.usePersistence&&i.length<r?this.ensureInit().then(y.bind(function(){return this.readFromStorage()},this)).then(y.bind(function(o){if(o.length){var e={};y.each(i,function(s){e[s.id]=!0});for(var t=0;t<o.length;t++){var n=o[t];if(new Date().getTime()>n.flushAfter&&!e[n.id]&&(n.orphaned=!0,i.push(n),i.length>=r))break}}return i},this)):B.resolve(i)};var uc=function(r,i){var o=[];return y.each(r,function(e){e.id&&!i[e.id]&&o.push(e)}),o};Pe.prototype.removeItemsByID=function(r){var i={};if(y.each(r,function(e){i[e]=!0}),this.memQueue=uc(this.memQueue,i),this.usePersistence){var o=y.bind(function(){return this.ensureInit().then(y.bind(function(){return this.readFromStorage()},this)).then(y.bind(function(e){return e=uc(e,i),this.saveToStorage(e)},this)).then(y.bind(function(){return this.readFromStorage()},this)).then(y.bind(function(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.id&&i[n.id])throw new Error("Item not removed from storage")}return!0},this)).catch(y.bind(function(e){return this.reportError("Error removing items",e,r),!1},this))},this);return this.lock.withLock(o,this.pid).catch(y.bind(function(e){return this.reportError("Error acquiring storage lock",e),Er(this.lock.storage,!0)?!1:o().then(y.bind(function(t){return t||this.queueStorage.removeItem(this.storageKey).then(function(){return t})},this)).catch(y.bind(function(t){return this.reportError("Error clearing queue",t),!1},this))},this))}else return B.resolve(!0)};var fc=function(r,i){var o=[];return y.each(r,function(e){var t=e.id;if(t in i){var n=i[t];n!==null&&(e.payload=n,o.push(e))}else o.push(e)}),o};Pe.prototype.updatePayloads=function(r){return this.memQueue=fc(this.memQueue,r),this.usePersistence?this.lock.withLock(y.bind(function(){return this.ensureInit().then(y.bind(function(){return this.readFromStorage()},this)).then(y.bind(function(o){return o=fc(o,r),this.saveToStorage(o)},this)).catch(y.bind(function(o){return this.reportError("Error updating items",r,o),!1},this))},this),this.pid).catch(y.bind(function(i){return this.reportError("Error acquiring storage lock",i),!1},this)):B.resolve(!0)},Pe.prototype.readFromStorage=function(){return this.ensureInit().then(y.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(y.bind(function(r){return r&&(y.isArray(r)||(this.reportError("Invalid storage entry:",r),r=null)),r||[]},this)).catch(y.bind(function(r){return this.reportError("Error retrieving queue",r),[]},this))},Pe.prototype.saveToStorage=function(r){return this.ensureInit().then(y.bind(function(){return this.queueStorage.setItem(this.storageKey,r)},this)).then(function(){return!0}).catch(y.bind(function(i){return this.reportError("Error saving queue",i),!1},this))},Pe.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(y.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):B.resolve()};var zw=600*1e3,Ar=lt("batch"),Ee=function(r,i){this.errorReporter=i.errorReporter,this.queue=new Pe(r,{errorReporter:y.bind(this.reportError,this),queueStorage:i.queueStorage,sharedLockStorage:i.sharedLockStorage,sharedLockTimeoutMS:i.sharedLockTimeoutMS,usePersistence:i.usePersistence,enqueueThrottleMs:i.enqueueThrottleMs}),this.libConfig=i.libConfig,this.sendRequest=i.sendRequestFunc,this.beforeSendHook=i.beforeSendHook,this.stopAllBatching=i.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=i.flushOnlyOnInterval||!1,this._flushPromise=null};Ee.prototype.enqueue=function(r){return this.queue.enqueue(r,this.flushInterval)},Ee.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},Ee.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},Ee.prototype.clear=function(){return this.queue.clear()},Ee.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},Ee.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},Ee.prototype.scheduleFlush=function(r){this.flushInterval=r,this.stopped||(this.timeoutID=setTimeout(y.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},Ee.prototype.sendRequestPromise=function(r,i){return new B(y.bind(function(o){this.sendRequest(r,i,o)},this))},Ee.prototype.flush=function(r){if(this.requestInProgress)return Ar.log("Flush: Request already in progress"),B.resolve();this.requestInProgress=!0,r=r||{};var i=this.libConfig.batch_request_timeout_ms,o=new Date().getTime(),e=this.batchSize;return this.queue.fillBatch(e).then(y.bind(function(t){var n=t.length===e,s=[],a={};if(y.each(t,function(c){var h=c.payload;if(this.beforeSendHook&&!c.orphaned&&(h=this.beforeSendHook(h)),h){h.event&&h.properties&&(h.properties=y.extend({},h.properties,{mp_sent_by_lib_version:wi.LIB_VERSION}));var v=!0,p=c.id;p?(this.itemIdsSentSuccessfully[p]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:c,batchSize:t.length,timesSent:this.itemIdsSentSuccessfully[p]}),v=!1):this.reportError("[dupe] found item with no ID",{item:c}),v&&s.push(h)}a[c.id]=h},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),B.resolve();var u=y.bind(function(){return this.queue.removeItemsByID(y.map(t,function(c){return c.id})).then(y.bind(function(c){return y.each(t,y.bind(function(h){var v=h.id;v?(this.itemIdsSentSuccessfully[v]=this.itemIdsSentSuccessfully[v]||0,this.itemIdsSentSuccessfully[v]++,this.itemIdsSentSuccessfully[v]>5&&this.reportError("[dupe] item ID sent too many times",{item:h,batchSize:t.length,timesSent:this.itemIdsSentSuccessfully[v]})):this.reportError("[dupe] found item with no ID while removing",{item:h})},this)),c?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!n?(this.resetFlush(),B.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),B.resolve())},this))},this),f=y.bind(function(c){this.requestInProgress=!1;try{if(r.unloading)return this.queue.updatePayloads(a);if(y.isObject(c)&&c.error==="timeout"&&new Date().getTime()-o>=i)return this.reportError("Network timeout; retrying"),this.flush();if(y.isObject(c)&&(c.httpStatusCode>=500||c.httpStatusCode===429||c.httpStatusCode<=0&&!Ew()||c.error==="timeout")){var h=this.flushInterval*2;return c.retryAfter&&(h=parseInt(c.retryAfter,10)*1e3||h),h=Math.min(zw,h),this.reportError("Error; retry in "+h+" ms"),this.scheduleFlush(h),B.resolve()}else if(y.isObject(c)&&c.httpStatusCode===413)if(t.length>1){var v=Math.max(1,Math.floor(e/2));return this.batchSize=Math.min(this.batchSize,v,t.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),B.resolve()}else return this.reportError("Single-event request too large; dropping",t),this.resetBatchSize(),u();else return u()}catch(p){this.reportError("Error handling API response",p),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:i};return r.unloading&&(l.transport="sendBeacon"),Ar.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,l).then(f)},this)).catch(y.bind(function(t){this.reportError("Error flushing request queue",t),this.resetFlush()},this))},Ee.prototype.reportError=function(r,i){if(Ar.error.apply(Ar.error,arguments),this.errorReporter)try{i instanceof Error||(i=new Error(r)),this.errorReporter(r,i)}catch(o){Ar.error(o)}};var lc=function(r){var i=Date.now();return!r||i>r.maxExpires||i>r.idleExpires},Ww=250,jw=function(r,i){if(!y.isArray(r))return r&&i.critical("record_allowed_iframe_origins must be an array of origin strings, cross-origin recording will be disabled."),[];for(var o=[],e=0;e<r.length;e++)try{var t=new URL(r[e]).origin;if(t==="null"){i.critical(r[e]+" has an opaque origin. Skipping this entry.");continue}o.push(t)}catch(n){i.critical(r[e]+" is not a valid origin URL. Skipping this entry.")}return o};lt("autocapture");function Gw(r){var i=(r.name||r.id||"").toString().toLowerCase();if(typeof i=="string"){var o=/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i;if(o.test(i.replace(/[^a-zA-Z0-9]/g,"")))return!0}return!1}var cc=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",qw="data-rr-is-password",Vw=["password","email","tel","hidden"];function li(r){return r?Array.isArray(r)?r:[r]:[]}function Hw(r){var i={input:{maskingSelector:"",unmaskingSelector:"",maskAll:!0},text:{maskingSelector:"",unmaskingSelector:"",maskAll:!0}},o=r.get_config("record_mask_input_selector"),e=r.get_config("record_unmask_input_selector"),t=r.get_config("record_mask_all_inputs");i.input.maskingSelector=li(o).join(","),i.input.unmaskingSelector=li(e).join(","),t!==void 0&&(i.input.maskAll=t);var n=r.get_config("record_mask_text_selector"),s=r.get_config("record_unmask_text_selector"),a=r.get_config("record_mask_all_text"),u=r.get_config("record_mask_text_class"),f=li(n);if(u)if(u instanceof RegExp)i.text._legacyClassRegex=u;else{var l="."+u;f.indexOf(l)===-1&&f.push(l)}return i.text.maskingSelector=f.join(","),i.text.unmaskingSelector=li(s).join(","),a===void 0&&n!==void 0?i.text.maskAll=!1:a!==void 0&&(i.text.maskAll=a),i}function jt(r,i){return i?!!r.closest(i):!1}function Yw(r,i){var o=(r.getAttribute("type")||"").toLowerCase();if(Vw.indexOf(o)!==-1)return!0;var e=(r.getAttribute("autocomplete")||"").toLowerCase();return e&&e!==""&&e!=="off"||r.hasAttribute(qw)||Gw(r)?!0:i.input.maskAll?!jt(r,i.input.unmaskingSelector):!!(jt(r,i.input.maskingSelector)||jt(r,cc))}function Jw(r,i){return r?i.text._legacyClassRegex&&Go(r,i.text._legacyClassRegex)?!0:i.text.maskAll?!jt(r,i.text.unmaskingSelector):!!(jt(r,i.text.maskingSelector)||jt(r,cc)):!1}var ct=lt("network-plugin");function ci(r){return Math.round(Date.now()-r.performance.now())}var Ps={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 Zw(r){return r.entryType==="navigation"}function Ts(r){return r.entryType==="resource"}function Kw(r,i){for(var o=r.length,e=o-1;e>=0;e-=1)if(i(r[e]))return r[e]}function hc(r,i,o){if(!(i in r)||typeof r[i]!="function")return function(){};var e=r[i],t=o(e);return r[i]=t,function(){r[i]=e}}var Ns=1024*1024;function dc(r){return!r||typeof r!="string"?r:r.length>Ns?(ct.error("Body truncated from "+r.length+" to "+Ns+" characters"),r.substring(0,Ns)+"... [truncated]"):r}function Xw(r,i,o){if(!i.PerformanceObserver)return ct.error("PerformanceObserver not supported"),function(){};if(o.recordInitialRequests){var e=i.performance.getEntries().filter(function(n){return Zw(n)||Ts(n)&&o.initiatorTypes.includes(n.initiatorType)});r({requests:e.map(function(n){return{url:n.name,initiatorType:n.initiatorType,status:"responseStatus"in n?n.responseStatus:void 0,startTime:Math.round(n.startTime),endTime:Math.round(n.responseEnd),timeOrigin:ci(i)}}),isInitial:!0})}var t=new i.PerformanceObserver(function(n){var s=n.getEntries().filter(function(a){return Ts(a)&&o.initiatorTypes.includes(a.initiatorType)&&a.initiatorType!=="xmlhttprequest"&&a.initiatorType!=="fetch"});r({requests:s.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:ci(i)}})})});return t.observe({entryTypes:["navigation","resource"]}),function(){t.disconnect()}}function hi(r,i,o){return!i[r]||i[r].length===0?!1:i[r].includes(o.toLowerCase())}function di(r,i,o){return!i[r]||i[r].length===0?!1:nc(o,i[r])}function pc(r){if(r==null)return null;var i;if(typeof r=="string")i=r;else if(r instanceof Document)i=r.textContent;else if(r instanceof FormData)i=y.HTTPBuildQuery(r);else if(y.isObject(r))try{i=JSON.stringify(r)}catch(o){return"Failed to stringify response object"}else return"Cannot read body of type "+typeof r;return dc(i)}function vc(r){return new Promise(function(i){var o=setTimeout(function(){i("Timeout while trying to read body")},500);try{r.clone().text().then(function(e){clearTimeout(o),i(dc(e))},function(e){clearTimeout(o),i("Failed to read body: "+String(e))})}catch(e){clearTimeout(o),i("Failed to read body: "+String(e))}})}function Ls(r,i,o,e,t,n){if(n===void 0&&(n=0),n>10)return ct.error("Cannot find performance entry"),Promise.resolve(null);var s=r.performance.getEntriesByName(o),a=Kw(s,function(u){return Ts(u)&&u.initiatorType===i&&(!e||u.startTime>=e)&&(!t||u.startTime<=t)});return a?Promise.resolve(a):new Promise(function(u){setTimeout(u,50*n)}).then(function(){return Ls(r,i,o,e,t,n+1)})}function Qw(r,i,o){if(!o.initiatorTypes.includes("xmlhttprequest"))return function(){};var e=hc(i.XMLHttpRequest.prototype,"open",function(t){return function(n,s,a,u,f){a===void 0&&(a=!0);var l=this,c=new Request(s,{method:n}),h={},v,p,m={},d=l.setRequestHeader.bind(l);l.setRequestHeader=function(w,b){return hi("request",o.recordHeaders,w)&&(m[w]=b),d(w,b)},h.requestHeaders=m;var g=l.send.bind(l);l.send=function(w){return di("request",o.recordBodyUrls,c.url)&&(h.requestBody=pc(w)),v=i.performance.now(),g(w)},l.addEventListener("readystatechange",function(){if(l.readyState===l.DONE){p=i.performance.now();var w={},b=l.getAllResponseHeaders();if(b){var S=b.trim().split(/[\r\n]+/);S.forEach(function(C){if(C){var x=C.indexOf(": ");if(x!==-1){var E=C.substring(0,x),R=C.substring(x+2);E&&hi("response",o.recordHeaders,E)&&(w[E]=R)}}})}h.responseHeaders=w,di("response",o.recordBodyUrls,c.url)&&(h.responseBody=pc(l.response)),Ls(i,"xmlhttprequest",c.url,v,p).then(function(C){if(!C){ct.error("Failed to get performance entry for XHR request to "+c.url);return}var x={url:C.name,method:c.method,initiatorType:C.initiatorType,status:l.status,startTime:Math.round(C.startTime),endTime:Math.round(C.responseEnd),timeOrigin:ci(i),requestHeaders:h.requestHeaders,requestBody:h.requestBody,responseHeaders:h.responseHeaders,responseBody:h.responseBody};r({requests:[x]})}).catch(function(C){ct.error("Error recording XHR request to "+c.url+": "+String(C))})}}),t.call(l,n,s,a,u,f)}});return function(){e()}}function eb(r,i,o){if(!o.initiatorTypes.includes("fetch"))return function(){};var e=hc(i,"fetch",function(t){return function(){var n=new Request(arguments[0],arguments[1]),s,a={},u,f,l,c=Promise.resolve(void 0),h=Promise.resolve(void 0);try{var v={};n.headers.forEach(function(p,m){hi("request",o.recordHeaders,m)&&(v[m]=p)}),a.requestHeaders=v,di("request",o.recordBodyUrls,n.url)&&(c=vc(n).then(function(p){a.requestBody=p})),u=i.performance.now(),l=t.apply(i,arguments).then(function(p){s=p,f=i.performance.now();var m={};return s.headers.forEach(function(d,g){hi("response",o.recordHeaders,g)&&(m[g]=d)}),a.responseHeaders=m,di("response",o.recordBodyUrls,n.url)&&(h=vc(s).then(function(d){a.responseBody=d})),s})}catch(p){l=Promise.reject(p)}return Promise.all([c,h,l]).then(function(){return Ls(i,"fetch",n.url,u,f)}).then(function(p){if(!p){ct.error("Failed to get performance entry for fetch request to "+n.url);return}var m={url:p.name,method:n.method,initiatorType:p.initiatorType,status:s?s.status:void 0,startTime:Math.round(p.startTime),endTime:Math.round(p.responseEnd),timeOrigin:ci(i),requestHeaders:a.requestHeaders,requestBody:a.requestBody,responseHeaders:a.responseHeaders,responseBody:a.responseBody};r({requests:[m]})}).catch(function(p){ct.error("Error recording fetch request to "+n.url+": "+String(p))}),l}});return function(){e()}}function tb(r,i,o){if(!("performance"in i))return function(){};var e=Object.assign({},Ps.recordHeaders,o.recordHeaders||{}),t=Object.assign({},Ps.recordBodyUrls,o.recordBodyUrls||{});o=Object.assign({},o,{recordHeaders:e,recordBodyUrls:t});var n=Object.assign({},Ps,o),s=function(l){var c=l.requests.filter(function(h){var v=nc(h.url,n.ignoreRequestUrls||[]);return!v&&!n.ignoreRequestFn(h)});(c.length>0||l.isInitial)&&r(Object.assign({},l,{requests:c}))},a=Xw(s,i,n),u=Qw(s,i,n),f=eb(s,i,n);return function(){a(),u(),f()}}var rb="rrweb/network@1.mp",nb=function(r){return{name:rb,observer:tb,options:r}},ht=lt("recorder"),ib=W.CompressionStream,ob={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},sb=new Set([P.MouseMove,P.MouseInteraction,P.Scroll,P.ViewportResize,P.Input,P.TouchMove,P.MediaInteraction,P.Drag,P.Selection]);function ab(r){return r.type===F.IncrementalSnapshot&&sb.has(r.data.source)}var ce=function(r){this._mixpanel=r.mixpanelInstance,this._onIdleTimeout=r.onIdleTimeout||_s,this._onMaxLengthReached=r.onMaxLengthReached||_s,this._onBatchSent=r.onBatchSent||_s,this._rrwebRecord=r.rrwebRecord||null,this._stopRecording=null,this.replayId=r.replayId,this.batchStartUrl=r.batchStartUrl||null,this.replayStartUrl=r.replayStartUrl||null,this.idleExpires=r.idleExpires||null,this.maxExpires=r.maxExpires||null,this.replayStartTime=r.replayStartTime||null,this.lastEventTimestamp=r.lastEventTimestamp||null,this.seqNo=r.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=oi,this.recordMinMs=0;var i=Er(r.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new _e(ic),this.batcher=new Ee(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:ob,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:r.sharedLockStorage,usePersistence:i,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:Ww,sharedLockTimeoutMS:10*1e3})};ce.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var r={distinct_id:String(this._mixpanel.get_distinct_id())},i=this._mixpanel.get_property("$device_id");i&&(r.$device_id=i);var o=this._mixpanel.get_property("$user_id");return o&&(r.$user_id=o),r},ce.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))},ce.prototype.getConfig=function(r){return this._mixpanel.get_config(r)},ce.prototype.get_config=function(r){return this.getConfig(r)},ce.prototype.startRecording=function(r){if(this._rrwebRecord===null){this.reportError("rrweb record function not provided. ");return}if(this._stopRecording!==null){ht.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>oi&&(this.recordMaxMs=oi,ht.critical("record_max_ms cannot be greater than "+oi+"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=y.info.currentUrl(),this.replayStartUrl=y.info.currentUrl()),r||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var i=function(){clearTimeout(this.idleTimeoutId);var f=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,f),this.idleExpires=new Date().getTime()+f}.bind(this);i();var o=this.getConfig("record_block_selector");(o===""||o===null)&&(o=void 0);var e=Hw(this._mixpanel),t=[];if(this.getConfig("record_network")){var n=this.getConfig("record_network_options")||{},s=(n.ignoreRequestUrls||[]).slice();s.push(this._getApiRoute()),n.ignoreRequestUrls=s,t.push(nb(n))}this.getConfig("record_console")&&t.push(pw({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}}));var a=jw(this.getConfig("record_allowed_iframe_origins"),ht);try{this._stopRecording=this._rrwebRecord({emit:function(f){if(this.idleExpires&&this.idleExpires<f.timestamp){this._onIdleTimeout();return}ab(f)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),i()),this.__enqueuePromise=this.batcher.enqueue(f),(this.lastEventTimestamp===null||f.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=f.timestamp)}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:o,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn(Yw,e),maskTextFn:this._getMaskFn(Jw,e),recordCrossOriginIframes:a.length>0,allowedIframeOrigins:a,recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:t})}catch(f){this.reportError("Unexpected error when starting rrweb recording.",f)}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)},ce.prototype.stopRecording=function(r){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(o){this.reportError("Error with rrweb stopRecording",o)}this._stopRecording=null}var i;return this.batcher.stopped?i=this.batcher.clear():r||(i=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),i},ce.prototype.isRrwebStopped=function(){return this._stopRecording===null},ce.prototype.flushEventsWithOptOut=function(r,i,o){var e=function(t){t===0&&(this.stopRecording(),o({error:"Tracking has been opted out, stopping recording."}))}.bind(this);this._flushEvents(r,i,o,e)},ce.prototype.serialize=function(){var r;try{r=this._mixpanel.get_tab_id()}catch(i){this.reportError("Error getting tab ID for serialization ",i),r=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:r}},ce.deserialize=function(r,i){var o=new ce(y.extend({},i,{replayId:r.replayId,batchStartUrl:r.batchStartUrl,replayStartUrl:r.replayStartUrl,idleExpires:r.idleExpires,maxExpires:r.maxExpires,replayStartTime:r.replayStartTime,lastEventTimestamp:r.lastEventTimestamp,seqNo:r.seqNo,sharedLockStorage:i.sharedLockStorage}));return o},ce.prototype._getApiRoute=function(){return this.getConfig("api_routes").record},ce.prototype._sendRequest=function(r,i,o,e){var t=function(s,a){s.status===200&&this.replayId===r&&(this.seqNo++,this.batchStartUrl=y.info.currentUrl()),this._onBatchSent(),e({status:0,httpStatusCode:s.status,responseBody:a,retryAfter:s.headers.get("Retry-After")})}.bind(this),n=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");W.fetch(n+"/"+this._getApiRoute()+"?"+new URLSearchParams(i),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:o}).then(function(s){s.json().then(function(a){t(s,a)}).catch(function(a){e({error:a})})}).catch(function(s){e({error:s,httpStatusCode:0})})},ce.prototype._flushEvents=Tw(function(r,i,o){var e=r.length;if(e>0){for(var t=this.replayId,n=1/0,s=-1/0,a=!1,u=0;u<e;u++)n=Math.min(n,r[u].timestamp),s=Math.max(s,r[u].timestamp),r[u].type===F.FullSnapshot&&(a=!0);if(this.seqNo===0){if(!a){o({error:"First batch does not contain a full snapshot. Aborting recording."}),this.stopRecording(!0);return}this.replayStartTime=n}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=n);var f=s-this.replayStartTime,l={$current_url:this.batchStartUrl,$lib_version:wi.LIB_VERSION,batch_start_time:n/1e3,mp_lib:"web",replay_id:t,replay_length_ms:f,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},c=JSON.stringify(r);if(Object.assign(l,this.getUserIdInfo()),Aw(ft,zt.vendor,Rr)){var h=new Blob([c],{type:"application/json"}).stream(),v=h.pipeThrough(new ib("gzip"));new Response(v).blob().then(function(p){l.format="gzip",this._sendRequest(t,l,p,o)}.bind(this))}else l.format="body",this._sendRequest(t,l,c,o)}}),ce.prototype.reportError=function(r,i){ht.error.apply(ht.error,arguments);try{!i&&!(r instanceof Error)&&(r=new Error(r)),this.getConfig("error_reporter")(r,i)}catch(o){ht.error(o)}},ce.prototype.getDurationMs=function(){return this.replayStartTime===null?0:this.lastEventTimestamp===null?new Date().getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},ce.prototype._getRecordMinMs=function(){var r=this.getConfig("record_min_ms");return r>xs?(ht.critical("record_min_ms cannot be greater than "+xs+"ms. Capping value."),xs):r},ce.prototype._getMaskFn=function(r,i){return function(o,e){if(!o.trim().length)return"";var t=!0;try{t=r(e,i)}catch(s){this.reportError("Error checking if text should be masked, defaulting to masked",s)}if(t){var n=Math.min(o.length,1e4);return"*".repeat(n)}else return o}.bind(this)};var Ue=function(r){this.idb=new _e(oc),this.errorReporter=r.errorReporter,this.mixpanelInstance=r.mixpanelInstance,this.sharedLockStorage=r.sharedLockStorage};Ue.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},Ue.prototype.handleError=function(r){this.errorReporter("IndexedDB error: ",r)},Ue.prototype.setActiveRecording=function(r){if(!this.isPersistenceEnabled())return B.resolve();var i=r.tabId;return i?this.idb.init().then(function(){return this.idb.setItem(i,r)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),B.resolve())},Ue.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}.bind(this)).then(function(r){return lc(r)?null:r}.bind(this)).catch(this.handleError.bind(this)):B.resolve(null)},Ue.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},Ue.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then(function(r){if(r)return r.maxExpires=0,this.setActiveRecording(r)}.bind(this)).catch(this.handleError.bind(this))},Ue.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):B.resolve()},Ue.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(r){var i=r.filter(function(o){return lc(o)}).map(function(o){var e=ce.deserialize(o,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return e.unloadPersistedData().then(function(){return this.idb.removeItem(o.tabId)}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return B.all(i)}.bind(this)).catch(this.handleError.bind(this)):B.resolve([])};var Mr=lt("recorder"),Te=function(r,i,o){this.mixpanelInstance=r,this.rrwebRecord=i||Ye,this.sharedLockStorage=o,this.recordingRegistry=new Ue({mixpanelInstance:this.mixpanelInstance,errorReporter:Mr.error,sharedLockStorage:o}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};Te.prototype.startRecording=function(r){if(r=r||{},this.activeRecording&&!this.activeRecording.isRrwebStopped()){Mr.log("Recording already in progress, skipping startRecording.");return}var i=function(){Mr.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),o=function(){Mr.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),t={mixpanelInstance:this.mixpanelInstance,onBatchSent:e,onIdleTimeout:i,onMaxLengthReached:o,replayId:y.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return r.activeSerializedRecording?this.activeRecording=ce.deserialize(r.activeSerializedRecording,t):this.activeRecording=new ce(t),this.activeRecording.startRecording(r.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())},Te.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))},Te.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Te.prototype._stopCurrentRecording=function(r,i){if(this.activeRecording){var o=this.activeRecording.stopRecording(r);return i&&(this.activeRecording=null),o}return B.resolve()},Te.prototype.resumeRecording=function(r){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),B.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(i){return i&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:i}):r?this.startRecording({shouldStopBatcher:!1}):(Mr.log("No resumable recording found."),null)}.bind(this))},Te.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Te.prototype.isRecording=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()},Te.prototype.getActiveReplayId=function(){return this.isRecording()?this.activeRecording.replayId:null},Object.defineProperty(Te.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),W[Ic]=Te})();
2
2
  //# sourceMappingURL=mixpanel-recorder.min.js.map