@appsurify-testmap/rrweb-record 3.10.0-alpha.1 → 3.11.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,81 +1,81 @@
1
1
  (function (g, f) {if ("object" == typeof exports && "object" == typeof module) {module.exports = f();} else if ("function" == typeof define && define.amd) {define("rrweb", [], f);} else if ("object" == typeof exports) {exports["rrweb"] = f();} else {g["rrweb"] = f();}}(typeof self !== 'undefined' ? self : typeof globalThis !== 'undefined' ? globalThis : this, () => {var exports = {};var module = { exports };
2
- "use strict";var yl=Object.defineProperty,bl=Object.defineProperties;var wl=Object.getOwnPropertyDescriptors;var jt=Object.getOwnPropertySymbols;var Ui=Object.prototype.hasOwnProperty,Vi=Object.prototype.propertyIsEnumerable;var Hi=(s,e,t)=>e in s?yl(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,x=(s,e)=>{for(var t in e||(e={}))Ui.call(e,t)&&Hi(s,t,e[t]);if(jt)for(var t of jt(e))Vi.call(e,t)&&Hi(s,t,e[t]);return s},oe=(s,e)=>bl(s,wl(e));var Ye=(s,e)=>{var t={};for(var r in s)Ui.call(s,r)&&e.indexOf(r)<0&&(t[r]=s[r]);if(s!=null&&jt)for(var r of jt(s))e.indexOf(r)<0&&Vi.call(s,r)&&(t[r]=s[r]);return t};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Sl=Object.defineProperty,vl=(s,e,t)=>e in s?Sl(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,y=(s,e,t)=>vl(s,typeof e!="symbol"?e+"":e,t),ji,Cl=Object.defineProperty,xl=(s,e,t)=>e in s?Cl(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,Qr=(s,e,t)=>xl(s,typeof e!="symbol"?e+"":e,t),ee=(s=>(s[s.Document=0]="Document",s[s.DocumentType=1]="DocumentType",s[s.Element=2]="Element",s[s.Text=3]="Text",s[s.CDATA=4]="CDATA",s[s.Comment=5]="Comment",s))(ee||{});const Gi={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Yi={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Gt={},Al=()=>!!globalThis.Zone;function ti(s){if(Gt[s])return Gt[s];const e=globalThis[s],t=e.prototype,r=s in Gi?Gi[s]:void 0,i=!!(r&&r.every(l=>{var o,u;return!!((u=(o=Object.getOwnPropertyDescriptor(t,l))==null?void 0:o.get)!=null&&u.toString().includes("[native code]"))})),n=s in Yi?Yi[s]:void 0,a=!!(n&&n.every(l=>{var o;return typeof t[l]=="function"&&((o=t[l])==null?void 0:o.toString().includes("[native code]"))}));if(i&&a&&!Al())return Gt[s]=e.prototype,e.prototype;try{const l=document.createElement("iframe");document.body.appendChild(l);const o=l.contentWindow;if(!o)return e.prototype;const u=o[s].prototype;return document.body.removeChild(l),u?Gt[s]=u:t}catch(l){return t}}const es={};function _e(s,e,t){var r;const i=`${s}.${String(t)}`;if(es[i])return es[i].call(e);const n=ti(s),a=(r=Object.getOwnPropertyDescriptor(n,t))==null?void 0:r.get;return a?(es[i]=a,a.call(e)):e[t]}const ts={};function uo(s,e,t){const r=`${s}.${String(t)}`;if(ts[r])return ts[r].bind(e);const n=ti(s)[t];return typeof n!="function"?e[t]:(ts[r]=n,n.bind(e))}function Il(s){return _e("Node",s,"childNodes")}function El(s){return _e("Node",s,"parentNode")}function $l(s){return _e("Node",s,"parentElement")}function Rl(s){return _e("Node",s,"textContent")}function Ml(s,e){return uo("Node",s,"contains")(e)}function Ol(s){return uo("Node",s,"getRootNode")()}function Tl(s){return!s||!("host"in s)?null:_e("ShadowRoot",s,"host")}function Nl(s){return s.styleSheets}function kl(s){return!s||!("shadowRoot"in s)?null:_e("Element",s,"shadowRoot")}function Dl(s,e){return _e("Element",s,"querySelector")(e)}function Ll(s,e){return _e("Element",s,"querySelectorAll")(e)}function Pl(){return ti("MutationObserver").constructor}function _l(s,e,t){try{if(!(e in s))return()=>{};const r=s[e],i=t(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),s[e]=i,()=>{s[e]=r}}catch(r){return()=>{}}}function zl(s){const e=s.tagName.toLowerCase(),t=s.id?`#${s.id}`:"",r=s.classList.length?"."+Array.from(s.classList).join("."):"";return`${e}${t}${r}`}function Fl(s){var d;var e,t;const r=(d=(e=s.ownerDocument)==null?void 0:e.defaultView)!=null?d:window,i=s.getBoundingClientRect(),n=r.innerWidth||r.document.documentElement.clientWidth||0,a=r.innerHeight||r.document.documentElement.clientHeight||0,l=i.width>0&&i.height>0&&i.bottom>0&&i.right>0&&i.top<a&&i.left<n,o=(t=r.getComputedStyle)==null?void 0:t.call(r,s),c=!!o&&o.display!=="none"&&o.visibility!=="hidden"&&(parseFloat(o.opacity)||0)>0&&l;let h=0;if(c){const f=Math.max(0,Math.min(i.right,n)-Math.max(i.left,0)),m=Math.max(0,Math.min(i.bottom,a)-Math.max(i.top,0)),g=f*m,p=i.width*i.height;h=p>0?g/p:0}return{isVisible:c,ratio:h}}const re={childNodes:Il,parentNode:El,parentElement:$l,textContent:Rl,contains:Ml,getRootNode:Ol,host:Tl,styleSheets:Nl,shadowRoot:kl,querySelector:Dl,querySelectorAll:Ll,mutationObserver:Pl,patch:_l,describeNode:zl,getElementVisibility:Fl};function gr(s){return s.nodeType===s.ELEMENT_NODE}function bt(s){const e=s&&"host"in s&&"mode"in s&&re.host(s)||null;return!!(e&&"shadowRoot"in e&&re.shadowRoot(e)===s)}function wt(s){return Object.prototype.toString.call(s)==="[object ShadowRoot]"}function Bl(s){return s.includes(" background-clip: text;")&&!s.includes(" -webkit-background-clip: text;")&&(s=s.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),s}function Wl(s){const{cssText:e}=s;if(e.split('"').length<3)return e;const t=["@import",`url(${JSON.stringify(s.href)})`];return s.layerName===""?t.push("layer"):s.layerName&&t.push(`layer(${s.layerName})`),s.supportsText&&t.push(`supports(${s.supportsText})`),s.media.length&&t.push(s.media.mediaText),t.join(" ")+";"}function bs(s){try{const e=s.rules||s.cssRules;if(!e)return null;let t=s.href;!t&&s.ownerNode&&s.ownerNode.ownerDocument&&(t=s.ownerNode.ownerDocument.location.href);const r=Array.from(e,i=>ho(i,t)).join("");return Bl(r)}catch(e){return null}}function ho(s,e){if(Ul(s)){let t;try{t=bs(s.styleSheet)||Wl(s)}catch(r){t=s.cssText}return s.styleSheet.href?xr(t,s.styleSheet.href):t}else{let t=s.cssText;return s.type===CSSRule.KEYFRAMES_RULE||(s.type,CSSRule.KEYFRAME_RULE),Vl(s)&&s.selectorText.includes(":")&&(t=Hl(t)),e?xr(t,e):t}}function Hl(s){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return s.replace(e,"$1\\$2")}function Ul(s){return"styleSheet"in s}function Vl(s){return"selectorText"in s}class fo{constructor(){Qr(this,"idNodeMap",new Map),Qr(this,"nodeMetaMap",new WeakMap),Qr(this,"selectorNodeMap",new Map)}getId(e){var t;if(!e)return-1;const r=(t=this.getMeta(e))==null?void 0:t.id;return r!=null?r:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t);const r=this.getMeta(e);if(r!=null&&r.selector){const i=this.selectorNodeMap.get(r.selector);i&&(i.delete(e),i.size===0&&this.selectorNodeMap.delete(r.selector))}e.childNodes&&e.childNodes.forEach(i=>this.removeNodeFromMap(i))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;if(this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t),t.selector){let i=this.selectorNodeMap.get(t.selector);i||(i=new Set,this.selectorNodeMap.set(t.selector,i)),i.add(e)}}replace(e,t){const r=this.getNode(e);if(r){const i=this.nodeMetaMap.get(r);if(i&&(this.nodeMetaMap.set(t,i),i.selector)){const n=this.selectorNodeMap.get(i.selector);n&&(n.delete(r),n.add(t))}}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap,this.selectorNodeMap=new Map}getNodeBySelector(e){const t=this.selectorNodeMap.get(e);return!t||t.size===0?null:t.values().next().value||null}getNodesBySelector(e){const t=this.selectorNodeMap.get(e);return t?Array.from(t):[]}hasSelector(e){const t=this.selectorNodeMap.get(e);return t!==void 0&&t.size>0}}function jl(){return new fo}function vt({element:s,maskInputOptions:e,tagName:t,type:r,value:i,maskInputFn:n}){let a=i||"";const l=r&&We(r);return(e[t.toLowerCase()]||l&&e[l])&&(n?a=n(a,s):a="*".repeat(a.length)),a}function We(s){return s.toLowerCase()}const Zi="__rrweb_original__";function Gl(s){const e=s.getContext("2d");if(!e)return!0;const t=50;for(let r=0;r<s.width;r+=t)for(let i=0;i<s.height;i+=t){const n=e.getImageData,a=Zi in n?n[Zi]:n;if(new Uint32Array(a.call(e,r,i,Math.min(t,s.width-r),Math.min(t,s.height-i)).data.buffer).some(o=>o!==0))return!1}return!0}function Ct(s){const e=s.type;return s.hasAttribute("data-rr-is-password")?"password":e?We(e):null}function po(s,e){var n;let t;try{t=new URL(s,e!=null?e:window.location.href)}catch(a){return null}const r=/\.([0-9a-z]+)(?:$)/i,i=t.pathname.match(r);return(n=i==null?void 0:i[1])!=null?n:null}function Yl(s){let e="";return s.indexOf("//")>-1?e=s.split("/").slice(0,3).join("/"):e=s.split("/")[0],e=e.split("?")[0],e}const Zl=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Jl=/^(?:[a-z+]+:)?\/\//i,Xl=/^www\..*/i,Kl=/^(data:)([^,]*),(.*)/i;function xr(s,e){return(s||"").replace(Zl,(t,r,i,n,a,l)=>{const o=i||a||l,u=r||n||"";if(!o)return t;if(Jl.test(o)||Xl.test(o))return`url(${u}${o}${u})`;if(Kl.test(o))return`url(${u}${o}${u})`;if(o[0]==="/")return`url(${u}${Yl(e)+o}${u})`;const c=e.split("/"),h=o.split("/");c.pop();for(const d of h)d!=="."&&(d===".."?c.pop():c.push(d));return`url(${u}${c.join("/")}${u})`})}function Yt(s,e=!1){return e?s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function ql(s,e,t=!1){const r=Array.from(e.childNodes),i=[];let n=0;if(r.length>1&&s&&typeof s=="string"){let a=Yt(s,t);const l=a.length/s.length;for(let o=1;o<r.length;o++)if(r[o].textContent&&typeof r[o].textContent=="string"){const u=Yt(r[o].textContent,t),c=100;let h=3;for(;h<u.length&&(u[h].match(/[a-zA-Z0-9]/)||u.indexOf(u.substring(0,h),1)!==-1);h++);for(;h<u.length;h++){let d=u.substring(0,h),f=a.split(d),m=-1;if(f.length===2)m=f[0].length;else if(f.length>2&&f[0]===""&&r[o-1].textContent!=="")m=a.indexOf(d,1);else if(f.length===1){if(d=d.substring(0,d.length-1),f=a.split(d),f.length<=1)return i.push(s),i;h=c+1}else h===u.length-1&&(m=a.indexOf(d));if(f.length>=2&&h>c){const g=r[o-1].textContent;if(g&&typeof g=="string"){const p=Yt(g).length;m=a.indexOf(d,p)}m===-1&&(m=f[0].length)}if(m!==-1){let g=Math.floor(m/l);for(;g>0&&g<s.length;){if(n+=1,n>50*r.length)return i.push(s),i;const p=Yt(s.substring(0,g),t);if(p.length===m){i.push(s.substring(0,g)),s=s.substring(g),a=a.substring(m);break}else p.length<m?g+=Math.max(1,Math.floor((m-p.length)/l)):g-=Math.max(1,Math.floor((p.length-m)*l))}break}}}}return i.push(s),i}function Ql(s,e){return ql(s,e).join("/* rr_split */")}function ec(s){var e;const t=re.parentNode(s),r=t&&t;return!r||!ri(r)?!1:((e=s.textContent)==null?void 0:e.trim())!==""}function ri(s){return re.getElementVisibility(s).isVisible}const tc=["change","submit","dragstart","drop","pointerdown","pointerup","input","keydown","keyup","keypress","mouseenter","mouseleave","mouseup","mousedown","click","contextmenu","dblclick","focus","blur","touchstart","touchmove","touchend","touchcancel"],rc=["a","button","input","select","textarea","label","details","summary","dialog","video","audio"],sc=["onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmouseout","onmousemove","onfocus","onblur","onkeydown","onkeypress","onkeyup","onchange","oninput","onsubmit","onreset","onselect","oncontextmenu","ontouchstart","ontouchmove","ontouchend","ontouchcancel"],si=new WeakSet,ic=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(s,e,t){if(ic.call(this,s,e,t),this instanceof Element){const r=s.toLowerCase();tc.includes(r)&&si.add(this)}};const nc=EventTarget.prototype.removeEventListener;EventTarget.prototype.removeEventListener=function(s,e,t){nc.call(this,s,e,t)};function oc(s){return s instanceof Element&&si.has(s)}function ac(s){if(s.nodeType===Node.ELEMENT_NODE){const e=s,t=e.tagName.toLowerCase();if(rc.includes(t))return!0;const r=e.hasAttribute("tabindex")&&e.getAttribute("tabindex")!=="-1",i=["button","link","checkbox","switch","menuitem"].includes(e.getAttribute("role")||"");return oc(e)||r||i||e instanceof HTMLAnchorElement&&e.hasAttribute("href")||e instanceof HTMLButtonElement&&!e.disabled}return!1}function Ji(){document.querySelectorAll("*").forEach(e=>{sc.forEach(t=>{e.hasAttribute(t)&&si.add(e)})})}try{document.readyState==="complete"||document.readyState==="interactive"?Ji():document.addEventListener("DOMContentLoaded",Ji)}catch(s){}const Zt={ANCHOR:.4,PATH:.3,TARGET:.2,UNIQUENESS:.1},we={SEMANTIC_TAG:.5,ROLE:.3,ARIA_LABEL:.1,STABLE_ID:.25,TEST_MARKER:.05,DEPTH_PENALTY_THRESHOLD:5,DEPTH_PENALTY_FACTOR:.05,DEGRADED_SCORE:.3},lc={MIN_CONFIDENCE_FOR_SKIP:.7},Xi=["form","main","nav","section","article","footer","header"],Ki=["form","navigation","main","region","contentinfo","complementary","banner","search"],cc=["article","aside","details","figcaption","figure","footer","header","main","mark","nav","section","summary","time","button","datalist","fieldset","form","input","label","legend","meter","optgroup","option","output","progress","select","textarea","a","audio","video","canvas","dialog","menu","blockquote","dd","dl","dt","hr","li","ol","ul","p","pre","h1","h2","h3","h4","h5","h6","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr","svg","path","circle","rect","line","polyline","polygon","ellipse","g","text","use"],Le={"data-testid":100,"data-qa":99,"data-cy":98,"data-test":97,"data-test-id":96,"aria-label":90,"aria-labelledby":85,"aria-describedby":80,name:75,href:70,src:70,type:65,role:60,alt:55,title:50,for:45,placeholder:40,"data-*":30,"aria-*":25},mo=new Set(["id","class","style","xmlns","tabindex","contenteditable"]),uc={maxPathDepth:10,enableSvgFingerprint:!0,confidenceThreshold:0,fallbackToBody:!0,includeUtilityClasses:!1,source:"dom-dsl"};function xt(s){if(/^[a-z]+-\d+$/i.test(s)||/^[a-z]+(-[a-z]+)+-\d+$/i.test(s)||/^[a-z]+(_[a-z]+)*_\d+$/i.test(s)||/^\d+$/.test(s)||/^:[a-z0-9]+:$/i.test(s)||/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/i.test(s))return!0;if(/^[a-z]{1,3}[A-Za-z0-9]{8,}$/.test(s)){const e=/\d/.test(s),t=/[A-Z]/.test(s),r=s.length>=20;if(e&&t||r)return!0}return!!(/^radix-/.test(s)||/^mui-\d+$/.test(s))}const go=new Set(["aria-labelledby","aria-describedby","aria-controls","aria-owns","aria-activedescendant","for","form","list","headers","aria-details","aria-errormessage","aria-flowto"]);function yo(s){return s.trim().split(/\s+/).some(e=>xt(e))}let hc=class{constructor(e,t){var r;this.maxDepth=(r=e.maxPathDepth)!=null?r:10,this.cache=t}findAnchor(e){if(this.cache){const o=this.cache.getAnchor(e);if(o!==void 0)return o}const t=e.tagName.toLowerCase(),r=e.ownerDocument;if(t==="html"){const o={element:e,score:1,tier:"A",depth:0};return this.cacheResult(e,o),o}if(t==="head"||this.isInsideHead(e)){const o=r==null?void 0:r.documentElement;if(o){const u={element:o,score:1,tier:"A",depth:0};return this.cacheResult(e,u),u}}if(t==="body"){const o=r==null?void 0:r.documentElement;if(o){const u={element:o,score:1,tier:"A",depth:0};return this.cacheResult(e,u),u}}let i=e.parentElement,n=0,a=null;for(;i&&n<this.maxDepth;){if(i.tagName.toLowerCase()==="body")return a||{element:i,score:we.DEGRADED_SCORE,tier:"C",depth:n};const o=this.scoreAnchor(i);if(o>0){const u=this.applyDepthPenalty(o,n),c=this.getTier(i),h={element:i,score:u,tier:c,depth:n};if(c==="A")return h;(!a||u>a.score)&&(a=h)}i=i.parentElement,n++}const l=a;return this.cache&&this.cache.setAnchor(e,l),l}scoreAnchor(e){let t=0;const r=e.tagName.toLowerCase();Xi.includes(r)&&(t+=we.SEMANTIC_TAG);const i=e.getAttribute("role");i&&Ki.includes(i)&&(t+=we.ROLE),(e.hasAttribute("aria-label")||e.hasAttribute("aria-labelledby"))&&(t+=we.ARIA_LABEL);const n=e.id;return n&&!xt(n)&&(t+=we.STABLE_ID),(e.hasAttribute("data-testid")||e.hasAttribute("data-qa")||e.hasAttribute("data-test"))&&(t+=we.TEST_MARKER),Math.min(t,1)}applyDepthPenalty(e,t){if(t<=we.DEPTH_PENALTY_THRESHOLD)return e;const r=(t-we.DEPTH_PENALTY_THRESHOLD)*we.DEPTH_PENALTY_FACTOR;return Math.max(0,e-r)}getTier(e){const t=e.tagName.toLowerCase();if(Xi.includes(t))return"A";const r=e.getAttribute("role");return r&&Ki.includes(r)?"B":"C"}isInsideHead(e){let t=e.parentElement;for(;t;){const r=t.tagName.toLowerCase();if(r==="head")return!0;if(r==="body")return!1;t=t.parentElement}return!1}cacheResult(e,t){this.cache&&this.cache.setAnchor(e,t)}};const dc=[/^css-[a-z0-9]+$/i,/^sc-[a-z0-9]+-\d+$/i,/^[a-z]{5,8}$/i,/^Mui[A-Z]\w+-\w+-\w+/,/^makeStyles-\w+-\d+$/,/^jss\d+$/,/^(emotion|linaria)-[a-z0-9]+/i,/^(chakra|tw-|ant-)[a-z0-9]+-\w+/i,/-[a-f0-9]{6,}$/i,/^_[a-z0-9]{5,}$/i,/\d{5,}/],fc=[/^\[/,/^(first|last|odd|even|only|first-of-type|last-of-type|only-of-type):/,/^(hover|focus|active|disabled|enabled|checked|indeterminate|default|required|valid|invalid|in-range|out-of-range|placeholder-shown|autofill|read-only):/,/^(focus-within|focus-visible|visited|target|open):/,/^(sm|md|lg|xl|2xl|3xl|4xl|5xl|6xl|7xl):/,/^dark:/,/^(rtl|ltr):/,/^(group|peer)(-hover|-focus|-active)?:/,/^[a-z][a-z-]*:/,/\/([\d.]+|full|auto|screen)$/,/^(inset|top|right|bottom|left)(-|$)/,/^(flex|inline-flex|grid|block|inline|inline-block|hidden|visible)$/,/^(absolute|relative|fixed|sticky|static)$/,/^(items|justify|content|self|place)-/,/^flex-(row|col|wrap|nowrap|1|auto|initial|none)/,/^grid-(cols|rows|flow)/,/^(gap|space)-/,/^[mp][trblxy]?-(\d+|auto|px)$/,/^-[mp][trblxy]?-\d+$/,/^-(top|right|bottom|left|inset)-\d+$/,/^-z-\d+$/,/^-space-[xy]-\d+$/,/^-translate-[xy]-\d+$/,/^-rotate-\d+$/,/^-scale-\d+$/,/^-skew-[xy]-\d+$/,/^(w|h|min-w|min-h|max-w|max-h|size)-/,/^text-(center|left|right|justify|start|end|xs|sm|base|lg|xl|2xl|3xl|4xl|5xl|6xl|7xl|8xl|9xl)$/,/^text-(uppercase|lowercase|capitalize|normal-case|underline|line-through|no-underline)$/,/^text-(truncate|ellipsis|clip)$/,/^(bg|border|ring|shadow|outline)-/,/^rounded(-|$)/,/^(font|leading|tracking|whitespace|break|truncate)-/,/^(uppercase|lowercase|capitalize|normal-case)$/,/^(transform|transition|duration|delay|ease|animate)-/,/^(scale|rotate|translate|skew)-/,/^transform$/,/^backdrop-blur-/,/^motion-/,/^(fade|slide|zoom|bounce|pulse|spin|ping)-/,/^(overflow|overscroll|scroll)-/,/^object-(contain|cover|fill|none|scale-down)$/,/^(cursor|pointer-events|select|resize)-/,/^(opacity|z)-/,/^(visible|invisible|collapse)$/,/^d-(none|inline|inline-block|block|grid|table|flex)$/,/^(float|clearfix|text)-(left|right|center|justify|start|end)$/,/^(m|p)[trblxy]?-[0-5]$/,/^(w|h)-(25|50|75|100|auto)$/,/^btn-(sm|lg|block)$/,/^text-(muted|primary|success|danger|warning|info|light|dark|white)$/,/^bg-(primary|secondary|success|danger|warning|info|light|dark|white|transparent)$/,/^border(-top|-bottom|-left|-right)?(-0)?$/,/^rounded(-top|-bottom|-left|-right|-circle|-pill|-0)?$/,/^shadow(-sm|-lg|-none)?$/,/^(align|justify|order|flex)-(start|end|center|between|around|fill|grow|shrink)$/,/^col(-sm|-md|-lg|-xl)?(-\d+|-auto)?$/,/^row(-cols)?(-\d+)?$/,/^g[xy]?-[0-5]$/,/^(show|hide|invisible|visible)$/,/^(position|top|bottom|start|end)-(static|relative|absolute|fixed|sticky|-\d+)$/,/^(row|col)$/,/^clearfix$/,/^pull-(left|right)$/,/^float-(left|right|none)$/];function ii(s){return dc.some(e=>e.test(s))}function ni(s){return s.length<=2||/^\d/.test(s)?!0:fc.some(e=>e.test(s))}function pc(s){return!ii(s)&&!ni(s)}function mc(s){return s.filter(e=>pc(e))}function gc(s){const e=[],t=[];for(const r of s)ni(r)||ii(r)?t.push(r):e.push(r);return{semantic:e,utility:t}}function qi(s){return ni(s)||ii(s)}const Qi=s=>s.replace(/([#:.[\]@])/g,"\\$1");let yc=class{constructor(e,t){var r;this.maxDepth=(r=e.maxPathDepth)!=null?r:10,this.cache=t}buildPath(e,t,r){const i=e.tagName.toLowerCase(),n=t.tagName.toLowerCase();if(i==="html"&&(n==="head"||n==="body"))return{path:[],degraded:!1};if(i==="html"&&this.isInsideHead(t))return this.buildHeadPath(e,t,r);const a=[];let l=t.parentElement;for(;l&&l!==e&&a.length<this.maxDepth;)a.unshift(l),l=l.parentElement;const o=a.length>=this.maxDepth&&l!==e;if(!o&&l!==e)return console.warn("[PathBuilder] Target is not a descendant of anchor"),{path:[],degraded:!0,degradationReason:"target-not-descendant-of-anchor"};let u=this.filterNoise(a);return u=this.ensureUniqueness(a,u,e,t,r),{path:u.map(c=>{const h=c.parentElement;let d;if(h){const f=Array.from(h.children).indexOf(c);f!==-1&&(d=f+1)}return{tag:c.tagName.toLowerCase(),semantics:r.extract(c),score:r.scoreElement(c),nthChild:d}}),degraded:o,degradationReason:o?"path-depth-overflow":void 0}}buildPathNodes(e,t,r){return this.buildPath(e,t,r).path}ensureUniqueness(e,t,r,i,n){const a=this.buildTestSelector(r,t,i);try{const l=i.ownerDocument;if(!l)return t;let o;if(this.cache){const c=this.cache.getSelectorResults(a);c!==void 0?o=c:(o=Array.from(l.querySelectorAll(a)),this.cache.setSelectorResults(a,o))}else o=l.querySelectorAll(a);if(o.length<=1)return t;const u=e.filter(c=>!t.includes(c));for(const c of u){if(n.scoreElement(c)<lc.MIN_CONFIDENCE_FOR_SKIP)continue;const h=this.insertNodeInOrder(t,c,e),d=this.buildTestSelector(r,h,i);try{let f;if(this.cache){const m=this.cache.getSelectorResults(d);m!==void 0?f=m:(f=Array.from(l.querySelectorAll(d)),this.cache.setSelectorResults(d,f))}else f=l.querySelectorAll(d);if(f.length===1)return h;f.length<o.length&&(t=h)}catch(f){}}return t}catch(l){return t}}insertNodeInOrder(e,t,r){const i=r.indexOf(t),n=[...e];let a=0;for(let l=0;l<n.length&&!(r.indexOf(n[l])>i);l++)a=l+1;return n.splice(a,0,t),n}buildTestSelector(e,t,r){const i=[];i.push(this.elementToSelector(e));for(const n of t)i.push(this.elementToSelector(n));return i.push(this.elementToSelector(r)),i.join(" ")}elementToSelector(e){let t=e.tagName.toLowerCase();e.id&&!xt(e.id)&&(t+=`#${Qi(e.id)}`);for(const r of Array.from(e.classList))qi(r)||(t+=`.${Qi(r)}`);return t}filterNoise(e){return e.filter(t=>this.shouldInclude(t))}shouldInclude(e){const t=e.tagName.toLowerCase();return cc.includes(t)?!0:t==="div"||t==="span"?this.hasSemanticFeatures(e):!1}hasSemanticFeatures(e){if(e.hasAttribute("role"))return!0;for(const r of Array.from(e.attributes))if(r.name.startsWith("aria-"))return!0;if(e.classList.length>0){for(const r of Array.from(e.classList))if(!qi(r))return!0}if(e.hasAttribute("data-testid")||e.hasAttribute("data-qa")||e.hasAttribute("data-test"))return!0;const t=e.id;return!!(t&&!xt(t))}isInsideHead(e){let t=e.parentElement;for(;t;){const r=t.tagName.toLowerCase();if(r==="head")return!0;if(r==="body")return!1;t=t.parentElement}return!1}buildHeadPath(e,t,r){const i=[];let n=t.parentElement;for(;n&&n!==e;)i.unshift(n),n=n.parentElement;return n!==e?{path:[],degraded:!0,degradationReason:"target-not-descendant-of-html"}:i.findIndex(a=>a.tagName.toLowerCase()==="head")===-1?{path:[],degraded:!0,degradationReason:"head-not-found-in-path"}:{path:i.map(a=>{const l=a.parentElement;let o;if(l){const u=Array.from(l.children).indexOf(a);u!==-1&&(o=u+1)}return{tag:a.tagName.toLowerCase(),semantics:r.extract(a),score:r.scoreElement(a),nthChild:o}}),degraded:!1}}};function bc(s){return s?s.trim().replace(/[\n\t\r]/g," ").replace(/\s+/g," "):""}const wc={preserveQueryForAbsolute:!0,removeDynamicHashes:!0};function Sc(s){return s?[/\d{5,}/,/[a-f0-9]{8,}/i,/(session|token|temp|random|timestamp|nonce|cache)/i,/^\d+$/,/^[a-f0-9-]{32,}$/i].some(e=>e.test(s)):!1}function vc(s,e){if(!s)return s;const t=s.startsWith("http://")||s.startsWith("https://"),[r,i]=s.split("#"),[n,a]=r.split("?");let l=n;return t&&e.preserveQueryForAbsolute&&a&&(l+=`?${a}`),i&&(e.removeDynamicHashes&&Sc(i)||(l+=`#${i}`)),l}function bo(s,e,t={}){if(!e)return e;const r=x(x({},wc),t);return s==="href"||s==="src"?vc(e,r):e}const Cc=["role","aria-label","aria-labelledby","aria-describedby","aria-controls","aria-owns","aria-level","aria-posinset","aria-setsize","aria-haspopup"],xc=["aria-selected","aria-checked","aria-pressed","aria-expanded","aria-hidden","aria-disabled","aria-current","aria-busy","aria-invalid","aria-grabbed","aria-live","aria-atomic"],Ac=["data-state","data-active","data-inactive","data-selected","data-open","data-closed","data-visible","data-hidden","data-disabled","data-enabled","data-loading","data-error","data-success","data-highlighted","data-focused","data-hover","data-orientation","data-theme"],Ic=["data-radix-","data-headlessui-","data-reach-","data-mui-","data-chakra-","data-mantine-","data-tw-"],Ec=["data-testid","data-test-id","data-test","data-cy","data-qa","data-automation-id","data-id","data-component","data-entity-id","data-product-id","data-user-id"],$c=["data-ga","data-gtm","data-google","data-layer","data-event","data-yandex","data-ym","data-metrika","data-optimizely","data-vwo","data-optimize","data-hj","data-hotjar","data-fs","data-mouseflow","data-mf","data-smartlook","data-sl","data-fb","data-facebook","data-tt","data-li","data-track","data-tracking","data-click","data-impression","data-conversion","data-segment","data-analytics"],Rc=["data-category","data-action","data-label","data-value"],Mc=["id","name","type","placeholder","title","for","alt","href"],Oc=["disabled","checked","selected","hidden","readonly","required","value"],Tc=[/^radix-/,/^headlessui-/,/^mui-/,/:\w+:/];function Nc(s,e){return Cc.includes(s)?!0:xc.includes(s)||Ac.includes(s)||Ic.some(t=>s.startsWith(t))?!1:Ec.includes(s)?!0:$c.some(t=>s.startsWith(t))||Rc.includes(s)?!1:s.startsWith("data-")&&s.endsWith("-id")?!0:s==="id"?!Tc.some(t=>t.test(e)):Mc.includes(s)?!0:Oc.includes(s)?!1:!!s.startsWith("data-")}let en=class{constructor(e,t){var r;this.includeUtilityClasses=(r=e.includeUtilityClasses)!=null?r:!1,this.cache=t}extract(e){if(this.cache){const a=this.cache.getSemantics(e);if(a!==void 0)return a}const t={},r=e.id;if(r&&!xt(r)&&(t.id=r),e.classList.length>0){const a=Array.from(e.classList);if(this.includeUtilityClasses)t.classes=a;else{const{semantic:l}=gc(a);l.length>0&&(t.classes=l)}}const i=this.extractAttributes(e);Object.keys(i).length>0&&(t.attributes=i);const n=e.getAttribute("role");if(n&&(t.role=n),this.shouldExtractText(e)){const a=this.extractText(e);a&&(t.text=a)}return this.cache&&this.cache.setSemantics(e,t),t}scoreElement(e){let t=.5;const r=this.extract(e);return r.id&&(t+=.15),r.classes&&r.classes.length>0&&(t+=.1),r.attributes&&Object.keys(r.attributes).length>0&&(t+=.1),r.role&&(t+=.1),r.text&&(t+=.05),Math.min(t,1)}shouldIgnoreAttribute(e){return!!(mo.has(e)||e.startsWith("on")||e.startsWith("ng-")||e.startsWith("_ng")||e.startsWith("data-reactid")||e.startsWith("data-react")||e.startsWith("data-v-"))}getAttributePriority(e){return Le[e]!==void 0?Le[e]:e.startsWith("data-")?Le["data-*"]:e.startsWith("aria-")?Le["aria-*"]:0}isDynamicValue(e){return[/^[a-f0-9]{32,}$/i,/^\d{10,}$/,/^(undefined|null|\[object)/,/^{{.*}}$/].some(t=>t.test(e))}extractAttributes(e){const t={};for(const r of Array.from(e.attributes)){const i=r.name;if(this.shouldIgnoreAttribute(i)||!Nc(i,r.value)||go.has(i)&&yo(r.value)||this.getAttributePriority(i)===0)continue;const n=i==="href"||i==="src"?bo(i,r.value):r.value;!n||n.trim()===""||this.isDynamicValue(n)||(t[i]=n)}return t}extractText(e){const t=this.getDirectTextContent(e);if(!t)return null;const r=bc(t);if(!r)return null;const i=100,n=t.length>i?t.slice(0,i)+"...":t,a=r.length>i?r.slice(0,i)+"...":r;return{raw:n,normalized:a}}getDirectTextContent(e){var r;const t=[];for(const i of Array.from(e.childNodes))if(i.nodeType===Node.TEXT_NODE&&i.textContent){const n=i.textContent.trim();n&&t.push(n)}return t.length>0?t.join(" "):(r=e.textContent)!=null?r:null}shouldExtractText(e){const t=e.tagName.toLowerCase();return["button","a","label","h1","h2","h3","h4","h5","h6","p","span","li","th","td","dt","dd","legend","figcaption","summary"].includes(t)}},kc=class{fingerprint(e){const t=e.tagName.toLowerCase(),r=this.getShape(t),i={shape:r,hasAnimation:this.hasAnimation(e)};if(r==="path"){const l=e.getAttribute("d");l&&(i.dHash=this.computePathHash(l))}else["circle","rect","ellipse","line"].includes(r)&&(i.geomHash=this.computeGeomHash(e,r));const n=e.getAttribute("role");n&&(i.role=n);const a=e.querySelector("title");return a!=null&&a.textContent&&(i.titleText=a.textContent.trim()),i}computePathHash(e){const t=this.normalizePathData(e);return this.simpleHash(t)}getShape(e){var t;return(t=["path","circle","rect","line","polyline","polygon","ellipse","g","text","use","svg"].find(r=>r===e))!=null?t:"path"}normalizePathData(e){var t;return((t=e.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/gi))!=null?t:[]).slice(0,5).map(r=>r.trim().replace(/(-?\d+\.?\d*)/g,i=>parseFloat(i).toFixed(1))).join(" ")}computeGeomHash(e,t){var i,n,a,l,o,u,c,h,d;const r=[];switch(t){case"circle":r.push(`r=${(i=e.getAttribute("r"))!=null?i:"0"}`);break;case"rect":{const f=parseFloat((n=e.getAttribute("width"))!=null?n:"0"),m=parseFloat((a=e.getAttribute("height"))!=null?a:"0");f>0&&m>0&&r.push(`ratio=${(f/m).toFixed(2)}`)}break;case"ellipse":{const f=parseFloat((l=e.getAttribute("rx"))!=null?l:"0"),m=parseFloat((o=e.getAttribute("ry"))!=null?o:"0");f>0&&m>0&&r.push(`ratio=${(f/m).toFixed(2)}`)}break;case"line":{const f=parseFloat((u=e.getAttribute("x1"))!=null?u:"0"),m=parseFloat((c=e.getAttribute("y1"))!=null?c:"0"),g=parseFloat((h=e.getAttribute("x2"))!=null?h:"0"),p=parseFloat((d=e.getAttribute("y2"))!=null?d:"0"),b=Math.atan2(p-m,g-f);r.push(`angle=${b.toFixed(2)}`)}break}return this.simpleHash(r.join(";"))}hasAnimation(e){if(e.querySelector("animate, animateTransform, animateMotion"))return!0;const t=e.ownerDocument;if(t!=null&&t.defaultView)try{const r=t.defaultView.getComputedStyle(e);if(r.animationName!=="none"||r.transitionProperty!=="all"&&r.transitionProperty!=="none")return!0}catch(r){}return!1}simpleHash(e){let t=0;for(let r=0;r<e.length;r++){const i=e.charCodeAt(r);t=(t<<5)-t+i,t=t&t}return Math.abs(t).toString(16).padStart(8,"0")}};function Dc(s,e=0){const t=s.anchor.score,r=s.path.length>0?s.path.reduce((l,o)=>l+o.score,0)/s.path.length:.5,i=s.target.score,n=t*Zt.ANCHOR+r*Zt.PATH+i*Zt.TARGET+e*Zt.UNIQUENESS,a=s.anchor.degraded?.2:0;return Math.max(0,Math.min(1,n-a))}let Lc=class{constructor(e){this.cache=new Map,this.maxSize=e}get(e){const t=this.cache.get(e);if(t!==void 0)return this.cache.delete(e),this.cache.set(e,t),t}set(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.maxSize){const r=this.cache.keys().next().value;r!==void 0&&this.cache.delete(r)}this.cache.set(e,t)}has(e){return this.cache.has(e)}delete(e){this.cache.delete(e)}clear(){this.cache.clear()}get size(){return this.cache.size}},Pc=class{constructor(e={}){var t,r;this.eidCache=new WeakMap,this.selectorResultCache=new Lc((t=e.maxSelectorCacheSize)!=null?t:1e3),this.anchorCache=new WeakMap,this.semanticsCache=new WeakMap,this.stats={eidHits:0,eidMisses:0,selectorHits:0,selectorMisses:0,anchorHits:0,anchorMisses:0,semanticsHits:0,semanticsMisses:0,selectorCacheSize:0,maxSelectorCacheSize:(r=e.maxSelectorCacheSize)!=null?r:1e3}}getEID(e){const t=this.eidCache.get(e);if(t!==void 0)return this.stats.eidHits++,t;this.stats.eidMisses++}setEID(e,t){this.eidCache.set(e,t)}getSelectorResults(e){const t=this.selectorResultCache.get(e);if(t!==void 0)return this.stats.selectorHits++,this.stats.selectorCacheSize=this.selectorResultCache.size,t;this.stats.selectorMisses++,this.stats.selectorCacheSize=this.selectorResultCache.size}setSelectorResults(e,t){this.selectorResultCache.set(e,t),this.stats.selectorCacheSize=this.selectorResultCache.size}getAnchor(e){if(this.anchorCache.has(e))return this.stats.anchorHits++,this.anchorCache.get(e);this.stats.anchorMisses++}setAnchor(e,t){this.anchorCache.set(e,t)}getSemantics(e){const t=this.semanticsCache.get(e);if(t!==void 0)return this.stats.semanticsHits++,t;this.stats.semanticsMisses++}setSemantics(e,t){this.semanticsCache.set(e,t)}clear(){this.selectorResultCache.clear(),this.stats.selectorCacheSize=0,this.stats={eidHits:0,eidMisses:0,selectorHits:0,selectorMisses:0,anchorHits:0,anchorMisses:0,semanticsHits:0,semanticsMisses:0,selectorCacheSize:0,maxSelectorCacheSize:this.stats.maxSelectorCacheSize}}invalidateElement(e){}invalidateSelector(e){this.selectorResultCache.delete(e),this.stats.selectorCacheSize=this.selectorResultCache.size}getStats(){return oe(x({},this.stats),{selectorCacheSize:this.selectorResultCache.size})}getEIDHitRate(){const e=this.stats.eidHits+this.stats.eidMisses;return e>0?this.stats.eidHits/e:0}getSelectorHitRate(){const e=this.stats.selectorHits+this.stats.selectorMisses;return e>0?this.stats.selectorHits/e:0}getAnchorHitRate(){const e=this.stats.anchorHits+this.stats.anchorMisses;return e>0?this.stats.anchorHits/e:0}getSemanticsHitRate(){const e=this.stats.semanticsHits+this.stats.semanticsMisses;return e>0?this.stats.semanticsHits/e:0}getOverallHitRate(){const e=this.stats.eidHits+this.stats.selectorHits+this.stats.anchorHits+this.stats.semanticsHits,t=this.stats.eidMisses+this.stats.selectorMisses+this.stats.anchorMisses+this.stats.semanticsMisses,r=e+t;return r>0?e/r:0}};function _c(s){return new Pc(s)}let rs=null;function zc(){return rs||(rs=_c()),rs}function tn(s){if(s.ownerDocument)return s.ownerDocument;let e=s;for(;e;){if(e.nodeType===9)return e;e=e.parentNode}throw new Error(`Element does not have an ownerDocument. This typically means:
2
+ "use strict";var xl=Object.defineProperty,Al=Object.defineProperties;var El=Object.getOwnPropertyDescriptors;var jt=Object.getOwnPropertySymbols;var ji=Object.prototype.hasOwnProperty,Gi=Object.prototype.propertyIsEnumerable;var Vi=(s,e,t)=>e in s?xl(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,x=(s,e)=>{for(var t in e||(e={}))ji.call(e,t)&&Vi(s,t,e[t]);if(jt)for(var t of jt(e))Gi.call(e,t)&&Vi(s,t,e[t]);return s},oe=(s,e)=>Al(s,El(e));var Ye=(s,e)=>{var t={};for(var r in s)ji.call(s,r)&&e.indexOf(r)<0&&(t[r]=s[r]);if(s!=null&&jt)for(var r of jt(s))e.indexOf(r)<0&&Gi.call(s,r)&&(t[r]=s[r]);return t};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Il=Object.defineProperty,$l=(s,e,t)=>e in s?Il(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,b=(s,e,t)=>$l(s,typeof e!="symbol"?e+"":e,t),Yi,Rl=Object.defineProperty,Ml=(s,e,t)=>e in s?Rl(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,ts=(s,e,t)=>Ml(s,typeof e!="symbol"?e+"":e,t),ee=(s=>(s[s.Document=0]="Document",s[s.DocumentType=1]="DocumentType",s[s.Element=2]="Element",s[s.Text=3]="Text",s[s.CDATA=4]="CDATA",s[s.Comment=5]="Comment",s))(ee||{});const Zi={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Ji={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Gt={},Ol=()=>!!globalThis.Zone;function si(s){if(Gt[s])return Gt[s];const e=globalThis[s],t=e.prototype,r=s in Zi?Zi[s]:void 0,i=!!(r&&r.every(l=>{var o,c;return!!((c=(o=Object.getOwnPropertyDescriptor(t,l))==null?void 0:o.get)!=null&&c.toString().includes("[native code]"))})),n=s in Ji?Ji[s]:void 0,a=!!(n&&n.every(l=>{var o;return typeof t[l]=="function"&&((o=t[l])==null?void 0:o.toString().includes("[native code]"))}));if(i&&a&&!Ol())return Gt[s]=e.prototype,e.prototype;try{const l=document.createElement("iframe");document.body.appendChild(l);const o=l.contentWindow;if(!o)return e.prototype;const c=o[s].prototype;return document.body.removeChild(l),c?Gt[s]=c:t}catch(l){return t}}const rs={};function _e(s,e,t){var r;const i=`${s}.${String(t)}`;if(rs[i])return rs[i].call(e);const n=si(s),a=(r=Object.getOwnPropertyDescriptor(n,t))==null?void 0:r.get;return a?(rs[i]=a,a.call(e)):e[t]}const ss={};function mo(s,e,t){const r=`${s}.${String(t)}`;if(ss[r])return ss[r].bind(e);const n=si(s)[t];return typeof n!="function"?e[t]:(ss[r]=n,n.bind(e))}function Tl(s){return _e("Node",s,"childNodes")}function Nl(s){return _e("Node",s,"parentNode")}function kl(s){return _e("Node",s,"parentElement")}function Dl(s){return _e("Node",s,"textContent")}function Ll(s,e){return mo("Node",s,"contains")(e)}function Pl(s){return mo("Node",s,"getRootNode")()}function _l(s){return!s||!("host"in s)?null:_e("ShadowRoot",s,"host")}function zl(s){return s.styleSheets}function Fl(s){return!s||!("shadowRoot"in s)?null:_e("Element",s,"shadowRoot")}function Bl(s,e){return _e("Element",s,"querySelector")(e)}function Wl(s,e){return _e("Element",s,"querySelectorAll")(e)}function Hl(){return si("MutationObserver").constructor}function Ul(s,e,t){try{if(!(e in s))return()=>{};const r=s[e],i=t(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),s[e]=i,()=>{s[e]=r}}catch(r){return()=>{}}}function Vl(s){const e=s.tagName.toLowerCase(),t=s.id?`#${s.id}`:"",r=s.classList.length?"."+Array.from(s.classList).join("."):"";return`${e}${t}${r}`}function jl(s){var f;var e,t;const r=(f=(e=s.ownerDocument)==null?void 0:e.defaultView)!=null?f:window,i=s.getBoundingClientRect(),n=r.innerWidth||r.document.documentElement.clientWidth||0,a=r.innerHeight||r.document.documentElement.clientHeight||0,l=i.width>0&&i.height>0&&i.bottom>0&&i.right>0&&i.top<a&&i.left<n,o=(t=r.getComputedStyle)==null?void 0:t.call(r,s),u=!!o&&o.display!=="none"&&o.visibility!=="hidden"&&(parseFloat(o.opacity)||0)>0&&l;let h=0;if(u){const m=Math.max(0,Math.min(i.right,n)-Math.max(i.left,0)),p=Math.max(0,Math.min(i.bottom,a)-Math.max(i.top,0)),g=m*p,d=i.width*i.height;h=d>0?g/d:0}return{isVisible:u,ratio:h}}const re={childNodes:Tl,parentNode:Nl,parentElement:kl,textContent:Dl,contains:Ll,getRootNode:Pl,host:_l,styleSheets:zl,shadowRoot:Fl,querySelector:Bl,querySelectorAll:Wl,mutationObserver:Hl,patch:Ul,describeNode:Vl,getElementVisibility:jl};function gr(s){return s.nodeType===s.ELEMENT_NODE}function bt(s){const e=s&&"host"in s&&"mode"in s&&re.host(s)||null;return!!(e&&"shadowRoot"in e&&re.shadowRoot(e)===s)}function wt(s){return Object.prototype.toString.call(s)==="[object ShadowRoot]"}function Gl(s){return s.includes(" background-clip: text;")&&!s.includes(" -webkit-background-clip: text;")&&(s=s.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),s}function Yl(s){const{cssText:e}=s;if(e.split('"').length<3)return e;const t=["@import",`url(${JSON.stringify(s.href)})`];return s.layerName===""?t.push("layer"):s.layerName&&t.push(`layer(${s.layerName})`),s.supportsText&&t.push(`supports(${s.supportsText})`),s.media.length&&t.push(s.media.mediaText),t.join(" ")+";"}function Ss(s){try{const e=s.rules||s.cssRules;if(!e)return null;let t=s.href;!t&&s.ownerNode&&s.ownerNode.ownerDocument&&(t=s.ownerNode.ownerDocument.location.href);const r=Array.from(e,i=>go(i,t)).join("");return Gl(r)}catch(e){return null}}function go(s,e){if(Jl(s)){let t;try{t=Ss(s.styleSheet)||Yl(s)}catch(r){t=s.cssText}return s.styleSheet.href?xr(t,s.styleSheet.href):t}else{let t=s.cssText;return s.type===CSSRule.KEYFRAMES_RULE||(s.type,CSSRule.KEYFRAME_RULE),ql(s)&&s.selectorText.includes(":")&&(t=Zl(t)),e?xr(t,e):t}}function Zl(s){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return s.replace(e,"$1\\$2")}function Jl(s){return"styleSheet"in s}function ql(s){return"selectorText"in s}class yo{constructor(){ts(this,"idNodeMap",new Map),ts(this,"nodeMetaMap",new WeakMap),ts(this,"selectorNodeMap",new Map)}getId(e){var t;if(!e)return-1;const r=(t=this.getMeta(e))==null?void 0:t.id;return r!=null?r:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t);const r=this.getMeta(e);if(r!=null&&r.selector){const i=this.selectorNodeMap.get(r.selector);i&&(i.delete(e),i.size===0&&this.selectorNodeMap.delete(r.selector))}e.childNodes&&e.childNodes.forEach(i=>this.removeNodeFromMap(i))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;if(this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t),t.selector){let i=this.selectorNodeMap.get(t.selector);i||(i=new Set,this.selectorNodeMap.set(t.selector,i)),i.add(e)}}replace(e,t){const r=this.getNode(e);if(r){const i=this.nodeMetaMap.get(r);if(i&&(this.nodeMetaMap.set(t,i),i.selector)){const n=this.selectorNodeMap.get(i.selector);n&&(n.delete(r),n.add(t))}}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap,this.selectorNodeMap=new Map}getNodeBySelector(e){const t=this.selectorNodeMap.get(e);return!t||t.size===0?null:t.values().next().value||null}getNodesBySelector(e){const t=this.selectorNodeMap.get(e);return t?Array.from(t):[]}hasSelector(e){const t=this.selectorNodeMap.get(e);return t!==void 0&&t.size>0}}function Xl(){return new yo}function vt({element:s,maskInputOptions:e,tagName:t,type:r,value:i,maskInputFn:n}){let a=i||"";const l=r&&We(r);return(e[t.toLowerCase()]||l&&e[l])&&(n?a=n(a,s):a="*".repeat(a.length)),a}function We(s){return s.toLowerCase()}const qi="__rrweb_original__";function Kl(s){const e=s.getContext("2d");if(!e)return!0;const t=50;for(let r=0;r<s.width;r+=t)for(let i=0;i<s.height;i+=t){const n=e.getImageData,a=qi in n?n[qi]:n;if(new Uint32Array(a.call(e,r,i,Math.min(t,s.width-r),Math.min(t,s.height-i)).data.buffer).some(o=>o!==0))return!1}return!0}function Ct(s){const e=s.type;return s.hasAttribute("data-rr-is-password")?"password":e?We(e):null}function bo(s,e){var n;let t;try{t=new URL(s,e!=null?e:window.location.href)}catch(a){return null}const r=/\.([0-9a-z]+)(?:$)/i,i=t.pathname.match(r);return(n=i==null?void 0:i[1])!=null?n:null}function Ql(s){let e="";return s.indexOf("//")>-1?e=s.split("/").slice(0,3).join("/"):e=s.split("/")[0],e=e.split("?")[0],e}const ec=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,tc=/^(?:[a-z+]+:)?\/\//i,rc=/^www\..*/i,sc=/^(data:)([^,]*),(.*)/i;function xr(s,e){return(s||"").replace(ec,(t,r,i,n,a,l)=>{const o=i||a||l,c=r||n||"";if(!o)return t;if(tc.test(o)||rc.test(o))return`url(${c}${o}${c})`;if(sc.test(o))return`url(${c}${o}${c})`;if(o[0]==="/")return`url(${c}${Ql(e)+o}${c})`;const u=e.split("/"),h=o.split("/");u.pop();for(const f of h)f!=="."&&(f===".."?u.pop():u.push(f));return`url(${c}${u.join("/")}${c})`})}function Yt(s,e=!1){return e?s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function ic(s,e,t=!1){const r=Array.from(e.childNodes),i=[];let n=0;if(r.length>1&&s&&typeof s=="string"){let a=Yt(s,t);const l=a.length/s.length;for(let o=1;o<r.length;o++)if(r[o].textContent&&typeof r[o].textContent=="string"){const c=Yt(r[o].textContent,t),u=100;let h=3;for(;h<c.length&&(c[h].match(/[a-zA-Z0-9]/)||c.indexOf(c.substring(0,h),1)!==-1);h++);for(;h<c.length;h++){let f=c.substring(0,h),m=a.split(f),p=-1;if(m.length===2)p=m[0].length;else if(m.length>2&&m[0]===""&&r[o-1].textContent!=="")p=a.indexOf(f,1);else if(m.length===1){if(f=f.substring(0,f.length-1),m=a.split(f),m.length<=1)return i.push(s),i;h=u+1}else h===c.length-1&&(p=a.indexOf(f));if(m.length>=2&&h>u){const g=r[o-1].textContent;if(g&&typeof g=="string"){const d=Yt(g).length;p=a.indexOf(f,d)}p===-1&&(p=m[0].length)}if(p!==-1){let g=Math.floor(p/l);for(;g>0&&g<s.length;){if(n+=1,n>50*r.length)return i.push(s),i;const d=Yt(s.substring(0,g),t);if(d.length===p){i.push(s.substring(0,g)),s=s.substring(g),a=a.substring(p);break}else d.length<p?g+=Math.max(1,Math.floor((p-d.length)/l)):g-=Math.max(1,Math.floor((d.length-p)*l))}break}}}}return i.push(s),i}function nc(s,e){return ic(s,e).join("/* rr_split */")}function oc(s){var e;const t=re.parentNode(s),r=t&&t;return!r||!ii(r)?!1:((e=s.textContent)==null?void 0:e.trim())!==""}function ii(s){return re.getElementVisibility(s).isVisible}const ac=["change","submit","dragstart","drop","pointerdown","pointerup","input","keydown","keyup","keypress","mouseenter","mouseleave","mouseup","mousedown","click","contextmenu","dblclick","focus","blur","touchstart","touchmove","touchend","touchcancel"],lc=["a","button","input","select","textarea","label","details","summary","dialog","video","audio"],cc=["onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmouseout","onmousemove","onfocus","onblur","onkeydown","onkeypress","onkeyup","onchange","oninput","onsubmit","onreset","onselect","oncontextmenu","ontouchstart","ontouchmove","ontouchend","ontouchcancel"],ni=new WeakSet,uc=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(s,e,t){if(uc.call(this,s,e,t),this instanceof Element){const r=s.toLowerCase();ac.includes(r)&&ni.add(this)}};const hc=EventTarget.prototype.removeEventListener;EventTarget.prototype.removeEventListener=function(s,e,t){hc.call(this,s,e,t)};function dc(s){return s instanceof Element&&ni.has(s)}function fc(s){if(s.nodeType===Node.ELEMENT_NODE){const e=s,t=e.tagName.toLowerCase();if(lc.includes(t))return!0;const r=e.hasAttribute("tabindex")&&e.getAttribute("tabindex")!=="-1",i=["button","link","checkbox","switch","menuitem"].includes(e.getAttribute("role")||"");return dc(e)||r||i||e instanceof HTMLAnchorElement&&e.hasAttribute("href")||e instanceof HTMLButtonElement&&!e.disabled}return!1}function Xi(){document.querySelectorAll("*").forEach(e=>{cc.forEach(t=>{e.hasAttribute(t)&&ni.add(e)})})}try{document.readyState==="complete"||document.readyState==="interactive"?Xi():document.addEventListener("DOMContentLoaded",Xi)}catch(s){}const Zt={ANCHOR:.4,PATH:.3,TARGET:.2,UNIQUENESS:.1},we={SEMANTIC_TAG:.5,ROLE:.3,ARIA_LABEL:.1,STABLE_ID:.25,TEST_MARKER:.05,DEPTH_PENALTY_THRESHOLD:5,DEPTH_PENALTY_FACTOR:.05,DEGRADED_SCORE:.3},pc={MIN_CONFIDENCE_FOR_SKIP:.7},Ki=["form","main","nav","section","article","footer","header"],Qi=["form","navigation","main","region","contentinfo","complementary","banner","search"],mc=["article","aside","details","figcaption","figure","footer","header","main","mark","nav","section","summary","time","button","datalist","fieldset","form","input","label","legend","meter","optgroup","option","output","progress","select","textarea","a","audio","video","canvas","dialog","menu","blockquote","dd","dl","dt","hr","li","ol","ul","p","pre","h1","h2","h3","h4","h5","h6","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr","svg","path","circle","rect","line","polyline","polygon","ellipse","g","text","use"],Le={"data-testid":100,"data-qa":99,"data-cy":98,"data-test":97,"data-test-id":96,"aria-label":90,"aria-labelledby":85,"aria-describedby":80,name:75,href:70,src:70,type:65,role:60,alt:55,title:50,for:45,placeholder:40,"data-*":30,"aria-*":25},wo=new Set(["id","class","style","xmlns","tabindex","contenteditable"]),gc={maxPathDepth:10,enableSvgFingerprint:!0,confidenceThreshold:0,fallbackToBody:!0,includeUtilityClasses:!1,source:"dom-dsl"};function xt(s){if(/^[a-z]+-\d+$/i.test(s)||/^[a-z]+(-[a-z]+)+-\d+$/i.test(s)||/^[a-z]+(_[a-z]+)*_\d+$/i.test(s)||/^\d+$/.test(s)||/^:[a-z0-9]+:$/i.test(s)||/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/i.test(s))return!0;if(/^[a-z]{1,3}[A-Za-z0-9]{8,}$/.test(s)){const e=/\d/.test(s),t=/[A-Z]/.test(s),r=s.length>=20;if(e&&t||r)return!0}return!!(/^radix-/.test(s)||/^mui-\d+$/.test(s))}const So=new Set(["aria-labelledby","aria-describedby","aria-controls","aria-owns","aria-activedescendant","for","form","list","headers","aria-details","aria-errormessage","aria-flowto"]);function vo(s){return s.trim().split(/\s+/).some(e=>xt(e))}let yc=class{constructor(e,t){var r;this.maxDepth=(r=e.maxPathDepth)!=null?r:10,this.cache=t}findAnchor(e){if(this.cache){const o=this.cache.getAnchor(e);if(o!==void 0)return o}const t=e.tagName.toLowerCase(),r=e.ownerDocument;if(t==="html"){const o={element:e,score:1,tier:"A",depth:0};return this.cacheResult(e,o),o}if(t==="head"||this.isInsideHead(e)){const o=r==null?void 0:r.documentElement;if(o){const c={element:o,score:1,tier:"A",depth:0};return this.cacheResult(e,c),c}}if(t==="body"){const o=r==null?void 0:r.documentElement;if(o){const c={element:o,score:1,tier:"A",depth:0};return this.cacheResult(e,c),c}}let i=e.parentElement,n=0,a=null;for(;i&&n<this.maxDepth;){if(i.tagName.toLowerCase()==="body")return a||{element:i,score:we.DEGRADED_SCORE,tier:"C",depth:n};const o=this.scoreAnchor(i);if(o>0){const c=this.applyDepthPenalty(o,n),u=this.getTier(i),h={element:i,score:c,tier:u,depth:n};if(u==="A")return h;(!a||c>a.score)&&(a=h)}i=i.parentElement,n++}const l=a;return this.cache&&this.cache.setAnchor(e,l),l}scoreAnchor(e){let t=0;const r=e.tagName.toLowerCase();Ki.includes(r)&&(t+=we.SEMANTIC_TAG);const i=e.getAttribute("role");i&&Qi.includes(i)&&(t+=we.ROLE),(e.hasAttribute("aria-label")||e.hasAttribute("aria-labelledby"))&&(t+=we.ARIA_LABEL);const n=e.id;return n&&!xt(n)&&(t+=we.STABLE_ID),(e.hasAttribute("data-testid")||e.hasAttribute("data-qa")||e.hasAttribute("data-test"))&&(t+=we.TEST_MARKER),Math.min(t,1)}applyDepthPenalty(e,t){if(t<=we.DEPTH_PENALTY_THRESHOLD)return e;const r=(t-we.DEPTH_PENALTY_THRESHOLD)*we.DEPTH_PENALTY_FACTOR;return Math.max(0,e-r)}getTier(e){const t=e.tagName.toLowerCase();if(Ki.includes(t))return"A";const r=e.getAttribute("role");return r&&Qi.includes(r)?"B":"C"}isInsideHead(e){let t=e.parentElement;for(;t;){const r=t.tagName.toLowerCase();if(r==="head")return!0;if(r==="body")return!1;t=t.parentElement}return!1}cacheResult(e,t){this.cache&&this.cache.setAnchor(e,t)}};const bc=[/^css-[a-z0-9]+$/i,/^sc-[a-z0-9]+-\d+$/i,/^[a-z]{5,8}$/i,/^Mui[A-Z]\w+-\w+-\w+/,/^makeStyles-\w+-\d+$/,/^jss\d+$/,/^(emotion|linaria)-[a-z0-9]+/i,/^(chakra|tw-|ant-)[a-z0-9]+-\w+/i,/-[a-f0-9]{6,}$/i,/^_[a-z0-9]{5,}$/i,/\d{5,}/],wc=[/^\[/,/^(first|last|odd|even|only|first-of-type|last-of-type|only-of-type):/,/^(hover|focus|active|disabled|enabled|checked|indeterminate|default|required|valid|invalid|in-range|out-of-range|placeholder-shown|autofill|read-only):/,/^(focus-within|focus-visible|visited|target|open):/,/^(sm|md|lg|xl|2xl|3xl|4xl|5xl|6xl|7xl):/,/^dark:/,/^(rtl|ltr):/,/^(group|peer)(-hover|-focus|-active)?:/,/^[a-z][a-z-]*:/,/\/([\d.]+|full|auto|screen)$/,/^(inset|top|right|bottom|left)(-|$)/,/^(flex|inline-flex|grid|block|inline|inline-block|hidden|visible)$/,/^(absolute|relative|fixed|sticky|static)$/,/^(items|justify|content|self|place)-/,/^flex-(row|col|wrap|nowrap|1|auto|initial|none)/,/^grid-(cols|rows|flow)/,/^(gap|space)-/,/^[mp][trblxy]?-(\d+|auto|px)$/,/^-[mp][trblxy]?-\d+$/,/^-(top|right|bottom|left|inset)-\d+$/,/^-z-\d+$/,/^-space-[xy]-\d+$/,/^-translate-[xy]-\d+$/,/^-rotate-\d+$/,/^-scale-\d+$/,/^-skew-[xy]-\d+$/,/^(w|h|min-w|min-h|max-w|max-h|size)-/,/^text-(center|left|right|justify|start|end|xs|sm|base|lg|xl|2xl|3xl|4xl|5xl|6xl|7xl|8xl|9xl)$/,/^text-(uppercase|lowercase|capitalize|normal-case|underline|line-through|no-underline)$/,/^text-(truncate|ellipsis|clip)$/,/^(bg|border|ring|shadow|outline)-/,/^rounded(-|$)/,/^(font|leading|tracking|whitespace|break|truncate)-/,/^(uppercase|lowercase|capitalize|normal-case)$/,/^(transform|transition|duration|delay|ease|animate)-/,/^(scale|rotate|translate|skew)-/,/^transform$/,/^backdrop-blur-/,/^motion-/,/^(fade|slide|zoom|bounce|pulse|spin|ping)-/,/^(overflow|overscroll|scroll)-/,/^object-(contain|cover|fill|none|scale-down)$/,/^(cursor|pointer-events|select|resize)-/,/^(opacity|z)-/,/^(visible|invisible|collapse)$/,/^d-(none|inline|inline-block|block|grid|table|flex)$/,/^(float|clearfix|text)-(left|right|center|justify|start|end)$/,/^(m|p)[trblxy]?-[0-5]$/,/^(w|h)-(25|50|75|100|auto)$/,/^btn-(sm|lg|block)$/,/^text-(muted|primary|success|danger|warning|info|light|dark|white)$/,/^bg-(primary|secondary|success|danger|warning|info|light|dark|white|transparent)$/,/^border(-top|-bottom|-left|-right)?(-0)?$/,/^rounded(-top|-bottom|-left|-right|-circle|-pill|-0)?$/,/^shadow(-sm|-lg|-none)?$/,/^(align|justify|order|flex)-(start|end|center|between|around|fill|grow|shrink)$/,/^col(-sm|-md|-lg|-xl)?(-\d+|-auto)?$/,/^row(-cols)?(-\d+)?$/,/^g[xy]?-[0-5]$/,/^(show|hide|invisible|visible)$/,/^(position|top|bottom|start|end)-(static|relative|absolute|fixed|sticky|-\d+)$/,/^(row|col)$/,/^clearfix$/,/^pull-(left|right)$/,/^float-(left|right|none)$/];function oi(s){return bc.some(e=>e.test(s))}function ai(s){return s.length<=2||/^\d/.test(s)?!0:wc.some(e=>e.test(s))}function Sc(s){return!oi(s)&&!ai(s)}function vc(s){return s.filter(e=>Sc(e))}function Cc(s){const e=[],t=[];for(const r of s)ai(r)||oi(r)?t.push(r):e.push(r);return{semantic:e,utility:t}}function en(s){return ai(s)||oi(s)}const xc=new Set(["tr","td","th","thead","tbody","tfoot"]),Ac=new Set(["data-testid","data-qa","data-cy","data-test","aria-label","name","href"]);function Ec(s){if(s.id)return!0;if(s.attributes){for(const e of Object.keys(s.attributes))if(Ac.has(e))return!0}return!1}function Ic(s,e,t){var n;var r;const i=s.parentElement;if(!i)return!0;for(const a of Array.from(i.children))if(!(a===s||a.tagName.toLowerCase()!==e)&&((n=(r=a.textContent)==null?void 0:r.trim())!=null?n:"")===t)return!1;return!0}function Ar(s,e,t){var r;if(xc.has(s))return!0;if(Ec(e))return!1;if(t){const i=t.parentElement;if(i){const n=(r=e.text)==null?void 0:r.normalized;if(n&&Ic(t,s,n))return!1;if(Array.from(i.children).some(a=>a!==t&&a.tagName.toLowerCase()===s))return!0}return!1}return!0}const tn=s=>s.replace(/([#:.[\]@])/g,"\\$1");let $c=class{constructor(e,t){var r;this.maxDepth=(r=e.maxPathDepth)!=null?r:10,this.cache=t}buildPath(e,t,r){const i=e.tagName.toLowerCase(),n=t.tagName.toLowerCase();if(i==="html"&&(n==="head"||n==="body"))return{path:[],degraded:!1};if(i==="html"&&this.isInsideHead(t))return this.buildHeadPath(e,t,r);const a=[];let l=t.parentElement;for(;l&&l!==e&&a.length<this.maxDepth;)a.unshift(l),l=l.parentElement;const o=a.length>=this.maxDepth&&l!==e;if(!o&&l!==e)return console.warn("[PathBuilder] Target is not a descendant of anchor"),{path:[],degraded:!0,degradationReason:"target-not-descendant-of-anchor"};let c=this.filterNoise(a);return c=this.ensureUniqueness(a,c,e,t,r),{path:c.map(u=>{const h=u.tagName.toLowerCase(),f=r.extract(u);let m;if(Ar(h,f,u)){const p=u.parentElement;if(p){const g=Array.from(p.children).indexOf(u);g!==-1&&(m=g+1)}}return{tag:h,semantics:f,score:r.scoreElement(u),nthChild:m}}),degraded:o,degradationReason:o?"path-depth-overflow":void 0}}buildPathNodes(e,t,r){return this.buildPath(e,t,r).path}ensureUniqueness(e,t,r,i,n){const a=this.buildTestSelector(r,t,i);try{const l=i.ownerDocument;if(!l)return t;let o;if(this.cache){const u=this.cache.getSelectorResults(a);u!==void 0?o=u:(o=Array.from(l.querySelectorAll(a)),this.cache.setSelectorResults(a,o))}else o=l.querySelectorAll(a);if(o.length<=1)return t;const c=e.filter(u=>!t.includes(u));for(const u of c){if(n.scoreElement(u)<pc.MIN_CONFIDENCE_FOR_SKIP)continue;const h=this.insertNodeInOrder(t,u,e),f=this.buildTestSelector(r,h,i);try{let m;if(this.cache){const p=this.cache.getSelectorResults(f);p!==void 0?m=p:(m=Array.from(l.querySelectorAll(f)),this.cache.setSelectorResults(f,m))}else m=l.querySelectorAll(f);if(m.length===1)return h;m.length<o.length&&(t=h)}catch(m){}}return t}catch(l){return t}}insertNodeInOrder(e,t,r){const i=r.indexOf(t),n=[...e];let a=0;for(let l=0;l<n.length&&!(r.indexOf(n[l])>i);l++)a=l+1;return n.splice(a,0,t),n}buildTestSelector(e,t,r){const i=[];i.push(this.elementToSelector(e));for(const n of t)i.push(this.elementToSelector(n));return i.push(this.elementToSelector(r)),i.join(" ")}elementToSelector(e){let t=e.tagName.toLowerCase();e.id&&!xt(e.id)&&(t+=`#${tn(e.id)}`);for(const r of Array.from(e.classList))en(r)||(t+=`.${tn(r)}`);return t}filterNoise(e){return e.filter(t=>this.shouldInclude(t))}shouldInclude(e){const t=e.tagName.toLowerCase();return mc.includes(t)?!0:t==="div"||t==="span"?this.hasSemanticFeatures(e):!1}hasSemanticFeatures(e){if(e.hasAttribute("role"))return!0;for(const r of Array.from(e.attributes))if(r.name.startsWith("aria-"))return!0;if(e.classList.length>0){for(const r of Array.from(e.classList))if(!en(r))return!0}if(e.hasAttribute("data-testid")||e.hasAttribute("data-qa")||e.hasAttribute("data-test"))return!0;const t=e.id;return!!(t&&!xt(t))}isInsideHead(e){let t=e.parentElement;for(;t;){const r=t.tagName.toLowerCase();if(r==="head")return!0;if(r==="body")return!1;t=t.parentElement}return!1}buildHeadPath(e,t,r){const i=[];let n=t.parentElement;for(;n&&n!==e;)i.unshift(n),n=n.parentElement;return n!==e?{path:[],degraded:!0,degradationReason:"target-not-descendant-of-html"}:i.findIndex(a=>a.tagName.toLowerCase()==="head")===-1?{path:[],degraded:!0,degradationReason:"head-not-found-in-path"}:{path:i.map(a=>{const l=a.tagName.toLowerCase(),o=r.extract(a);let c;if(Ar(l,o,a)){const u=a.parentElement;if(u){const h=Array.from(u.children).indexOf(a);h!==-1&&(c=h+1)}}return{tag:l,semantics:o,score:r.scoreElement(a),nthChild:c}}),degraded:!1}}};function Rc(s){return s?s.trim().replace(/[\n\t\r]/g," ").replace(/\s+/g," "):""}const Mc={preserveQueryForAbsolute:!0,removeDynamicHashes:!0};function Oc(s){return s?[/\d{5,}/,/[a-f0-9]{8,}/i,/(session|token|temp|random|timestamp|nonce|cache)/i,/^\d+$/,/^[a-f0-9-]{32,}$/i].some(e=>e.test(s)):!1}function Tc(s,e){if(!s)return s;const t=s.startsWith("http://")||s.startsWith("https://"),[r,i]=s.split("#"),[n,a]=r.split("?");let l=n;return t&&e.preserveQueryForAbsolute&&a&&(l+=`?${a}`),i&&(e.removeDynamicHashes&&Oc(i)||(l+=`#${i}`)),l}function Co(s,e,t={}){if(!e)return e;const r=x(x({},Mc),t);return s==="href"||s==="src"?Tc(e,r):e}const Nc=["role","aria-label","aria-labelledby","aria-describedby","aria-controls","aria-owns","aria-level","aria-posinset","aria-setsize","aria-haspopup"],kc=["aria-selected","aria-checked","aria-pressed","aria-expanded","aria-hidden","aria-disabled","aria-current","aria-busy","aria-invalid","aria-grabbed","aria-live","aria-atomic"],Dc=["data-state","data-active","data-inactive","data-selected","data-open","data-closed","data-visible","data-hidden","data-disabled","data-enabled","data-loading","data-error","data-success","data-highlighted","data-focused","data-hover","data-orientation","data-theme"],Lc=["data-radix-","data-headlessui-","data-reach-","data-mui-","data-chakra-","data-mantine-","data-tw-"],Pc=["data-testid","data-test-id","data-test","data-cy","data-qa","data-automation-id","data-id","data-component","data-entity-id","data-product-id","data-user-id"],_c=["data-ga","data-gtm","data-google","data-layer","data-event","data-yandex","data-ym","data-metrika","data-optimizely","data-vwo","data-optimize","data-hj","data-hotjar","data-fs","data-mouseflow","data-mf","data-smartlook","data-sl","data-fb","data-facebook","data-tt","data-li","data-track","data-tracking","data-click","data-impression","data-conversion","data-segment","data-analytics"],zc=["data-category","data-action","data-label","data-value"],Fc=["id","name","type","placeholder","title","for","alt","href"],Bc=["disabled","checked","selected","hidden","readonly","required","value"],Wc=[/^radix-/,/^headlessui-/,/^mui-/,/:\w+:/];function Hc(s,e){return Nc.includes(s)?!0:kc.includes(s)||Dc.includes(s)||Lc.some(t=>s.startsWith(t))?!1:Pc.includes(s)?!0:_c.some(t=>s.startsWith(t))||zc.includes(s)?!1:s.startsWith("data-")&&s.endsWith("-id")?!0:s==="id"?!Wc.some(t=>t.test(e)):Fc.includes(s)?!0:Bc.includes(s)?!1:!!s.startsWith("data-")}let rn=class{constructor(e,t){var r;this.includeUtilityClasses=(r=e.includeUtilityClasses)!=null?r:!1,this.cache=t}extract(e){if(this.cache){const a=this.cache.getSemantics(e);if(a!==void 0)return a}const t={},r=e.id;if(r&&!xt(r)&&(t.id=r),e.classList.length>0){const a=Array.from(e.classList);if(this.includeUtilityClasses)t.classes=a;else{const{semantic:l}=Cc(a);l.length>0&&(t.classes=l)}}const i=this.extractAttributes(e);Object.keys(i).length>0&&(t.attributes=i);const n=e.getAttribute("role");if(n&&(t.role=n),this.shouldExtractText(e)){const a=this.extractText(e);a&&(t.text=a)}return this.cache&&this.cache.setSemantics(e,t),t}scoreElement(e){let t=.5;const r=this.extract(e);return r.id&&(t+=.15),r.classes&&r.classes.length>0&&(t+=.1),r.attributes&&Object.keys(r.attributes).length>0&&(t+=.1),r.role&&(t+=.1),r.text&&(t+=.05),Math.min(t,1)}shouldIgnoreAttribute(e){return!!(wo.has(e)||e.startsWith("on")||e.startsWith("ng-")||e.startsWith("_ng")||e.startsWith("data-reactid")||e.startsWith("data-react")||e.startsWith("data-v-"))}getAttributePriority(e){return Le[e]!==void 0?Le[e]:e.startsWith("data-")?Le["data-*"]:e.startsWith("aria-")?Le["aria-*"]:0}isDynamicValue(e){return[/^[a-f0-9]{32,}$/i,/^\d{10,}$/,/^(undefined|null|\[object)/,/^{{.*}}$/].some(t=>t.test(e))}extractAttributes(e){const t={};for(const r of Array.from(e.attributes)){const i=r.name;if(this.shouldIgnoreAttribute(i)||!Hc(i,r.value)||So.has(i)&&vo(r.value)||this.getAttributePriority(i)===0)continue;const n=i==="href"||i==="src"?Co(i,r.value):r.value;!n||n.trim()===""||this.isDynamicValue(n)||(t[i]=n)}return t}extractText(e){const t=this.getDirectTextContent(e);if(!t)return null;const r=Rc(t);if(!r)return null;const i=100,n=t.length>i?t.slice(0,i)+"...":t,a=r.length>i?r.slice(0,i)+"...":r;return{raw:n,normalized:a}}getDirectTextContent(e){var r;const t=[];for(const i of Array.from(e.childNodes))if(i.nodeType===Node.TEXT_NODE&&i.textContent){const n=i.textContent.trim();n&&t.push(n)}return t.length>0?t.join(" "):(r=e.textContent)!=null?r:null}shouldExtractText(e){const t=e.tagName.toLowerCase();return["button","a","label","h1","h2","h3","h4","h5","h6","p","span","li","th","td","dt","dd","legend","figcaption","summary"].includes(t)}},Uc=class{fingerprint(e){const t=e.tagName.toLowerCase(),r=this.getShape(t),i={shape:r,hasAnimation:this.hasAnimation(e)};if(r==="path"){const l=e.getAttribute("d");l&&(i.dHash=this.computePathHash(l))}else["circle","rect","ellipse","line"].includes(r)&&(i.geomHash=this.computeGeomHash(e,r));const n=e.getAttribute("role");n&&(i.role=n);const a=e.querySelector("title");return a!=null&&a.textContent&&(i.titleText=a.textContent.trim()),i}computePathHash(e){const t=this.normalizePathData(e);return this.simpleHash(t)}getShape(e){var t;return(t=["path","circle","rect","line","polyline","polygon","ellipse","g","text","use","svg"].find(r=>r===e))!=null?t:"path"}normalizePathData(e){var t;return((t=e.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/gi))!=null?t:[]).slice(0,5).map(r=>r.trim().replace(/(-?\d+\.?\d*)/g,i=>parseFloat(i).toFixed(1))).join(" ")}computeGeomHash(e,t){var i,n,a,l,o,c,u,h,f;const r=[];switch(t){case"circle":r.push(`r=${(i=e.getAttribute("r"))!=null?i:"0"}`);break;case"rect":{const m=parseFloat((n=e.getAttribute("width"))!=null?n:"0"),p=parseFloat((a=e.getAttribute("height"))!=null?a:"0");m>0&&p>0&&r.push(`ratio=${(m/p).toFixed(2)}`)}break;case"ellipse":{const m=parseFloat((l=e.getAttribute("rx"))!=null?l:"0"),p=parseFloat((o=e.getAttribute("ry"))!=null?o:"0");m>0&&p>0&&r.push(`ratio=${(m/p).toFixed(2)}`)}break;case"line":{const m=parseFloat((c=e.getAttribute("x1"))!=null?c:"0"),p=parseFloat((u=e.getAttribute("y1"))!=null?u:"0"),g=parseFloat((h=e.getAttribute("x2"))!=null?h:"0"),d=parseFloat((f=e.getAttribute("y2"))!=null?f:"0"),y=Math.atan2(d-p,g-m);r.push(`angle=${y.toFixed(2)}`)}break}return this.simpleHash(r.join(";"))}hasAnimation(e){if(e.querySelector("animate, animateTransform, animateMotion"))return!0;const t=e.ownerDocument;if(t!=null&&t.defaultView)try{const r=t.defaultView.getComputedStyle(e);if(r.animationName!=="none"||r.transitionProperty!=="all"&&r.transitionProperty!=="none")return!0}catch(r){}return!1}simpleHash(e){let t=0;for(let r=0;r<e.length;r++){const i=e.charCodeAt(r);t=(t<<5)-t+i,t=t&t}return Math.abs(t).toString(16).padStart(8,"0")}};function Vc(s,e=0){const t=s.anchor.score,r=s.path.length>0?s.path.reduce((l,o)=>l+o.score,0)/s.path.length:.5,i=s.target.score,n=t*Zt.ANCHOR+r*Zt.PATH+i*Zt.TARGET+e*Zt.UNIQUENESS,a=s.anchor.degraded?.2:0;return Math.max(0,Math.min(1,n-a))}let jc=class{constructor(e){this.cache=new Map,this.maxSize=e}get(e){const t=this.cache.get(e);if(t!==void 0)return this.cache.delete(e),this.cache.set(e,t),t}set(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.maxSize){const r=this.cache.keys().next().value;r!==void 0&&this.cache.delete(r)}this.cache.set(e,t)}has(e){return this.cache.has(e)}delete(e){this.cache.delete(e)}clear(){this.cache.clear()}get size(){return this.cache.size}},Gc=class{constructor(e={}){var t,r;this.eidCache=new WeakMap,this.selectorResultCache=new jc((t=e.maxSelectorCacheSize)!=null?t:1e3),this.anchorCache=new WeakMap,this.semanticsCache=new WeakMap,this.stats={eidHits:0,eidMisses:0,selectorHits:0,selectorMisses:0,anchorHits:0,anchorMisses:0,semanticsHits:0,semanticsMisses:0,selectorCacheSize:0,maxSelectorCacheSize:(r=e.maxSelectorCacheSize)!=null?r:1e3}}getEID(e){const t=this.eidCache.get(e);if(t!==void 0)return this.stats.eidHits++,t;this.stats.eidMisses++}setEID(e,t){this.eidCache.set(e,t)}getSelectorResults(e){const t=this.selectorResultCache.get(e);if(t!==void 0)return this.stats.selectorHits++,this.stats.selectorCacheSize=this.selectorResultCache.size,t;this.stats.selectorMisses++,this.stats.selectorCacheSize=this.selectorResultCache.size}setSelectorResults(e,t){this.selectorResultCache.set(e,t),this.stats.selectorCacheSize=this.selectorResultCache.size}getAnchor(e){if(this.anchorCache.has(e))return this.stats.anchorHits++,this.anchorCache.get(e);this.stats.anchorMisses++}setAnchor(e,t){this.anchorCache.set(e,t)}getSemantics(e){const t=this.semanticsCache.get(e);if(t!==void 0)return this.stats.semanticsHits++,t;this.stats.semanticsMisses++}setSemantics(e,t){this.semanticsCache.set(e,t)}clear(){this.selectorResultCache.clear(),this.stats.selectorCacheSize=0,this.stats={eidHits:0,eidMisses:0,selectorHits:0,selectorMisses:0,anchorHits:0,anchorMisses:0,semanticsHits:0,semanticsMisses:0,selectorCacheSize:0,maxSelectorCacheSize:this.stats.maxSelectorCacheSize}}invalidateElement(e){}invalidateSelector(e){this.selectorResultCache.delete(e),this.stats.selectorCacheSize=this.selectorResultCache.size}getStats(){return oe(x({},this.stats),{selectorCacheSize:this.selectorResultCache.size})}getEIDHitRate(){const e=this.stats.eidHits+this.stats.eidMisses;return e>0?this.stats.eidHits/e:0}getSelectorHitRate(){const e=this.stats.selectorHits+this.stats.selectorMisses;return e>0?this.stats.selectorHits/e:0}getAnchorHitRate(){const e=this.stats.anchorHits+this.stats.anchorMisses;return e>0?this.stats.anchorHits/e:0}getSemanticsHitRate(){const e=this.stats.semanticsHits+this.stats.semanticsMisses;return e>0?this.stats.semanticsHits/e:0}getOverallHitRate(){const e=this.stats.eidHits+this.stats.selectorHits+this.stats.anchorHits+this.stats.semanticsHits,t=this.stats.eidMisses+this.stats.selectorMisses+this.stats.anchorMisses+this.stats.semanticsMisses,r=e+t;return r>0?e/r:0}};function Yc(s){return new Gc(s)}let is=null;function Zc(){return is||(is=Yc()),is}function sn(s){if(s.ownerDocument)return s.ownerDocument;let e=s;for(;e;){if(e.nodeType===9)return e;e=e.parentNode}throw new Error(`Element does not have an ownerDocument. This typically means:
3
3
  1. The element is detached from the DOM
4
4
  2. The element was created but never attached
5
- 3. You are working with a document node instead of an element`)}function Fc(s,e){if(!e)return;const t=tn(s),r=e instanceof Document?e:tn(e);if(t!==r)throw new Error(`Cross-document operation detected: element and root are from different documents.
5
+ 3. You are working with a document node instead of an element`)}function Jc(s,e){if(!e)return;const t=sn(s),r=e instanceof Document?e:sn(e);if(t!==r)throw new Error(`Cross-document operation detected: element and root are from different documents.
6
6
  Common causes:
7
7
  1. Working with iframe: pass iframe.contentDocument as root parameter
8
8
  2. Element from one iframe, root from another
9
9
  3. Element from main document, root from iframe (or vice versa)
10
10
 
11
- Solution: Ensure element and root parameter are from the same document context.`)}function Bc(s,e={}){var V,j,q,I;var t;if(!s||!s.ownerDocument||!s.isConnected)return null;const r=x(x({},uc),e);if(r.root)try{Fc(s,r.root)}catch(z){return console.error("Cross-document generation detected:",z),null}const i=(V=r.cache)!=null?V:zc(),n=i.getEID(s);if(n!==void 0)return n;if(s.tagName.toLowerCase()==="html"){const z=new en(r,i),Q=Uc(s,r,z);return i.setEID(s,Q),Q}const a=new hc(r,i),l=new yc(r,i),o=new en(r,i),u=new kc,c=a.findAnchor(s);if(!c&&!r.fallbackToBody)return null;const h=(q=(j=c==null?void 0:c.element)!=null?j:(t=s.ownerDocument)==null?void 0:t.body)!=null?q:null;if(!h)return null;const d=!c||c.tier==="C",f=h.tagName.toLowerCase(),m=h.parentElement;let g;if(m&&f!=="body"&&f!=="html"){const z=Array.from(m.children).indexOf(h);z!==-1&&(g=z+1)}const p=o.extract(h),b={tag:h.tagName.toLowerCase(),semantics:p,score:(I=c==null?void 0:c.score)!=null?I:we.DEGRADED_SCORE,degraded:d,nthChild:g},C=l.buildPath(h,s,o),E=o.extract(s);r.enableSvgFingerprint&&Wc(s)&&(E.svg=u.fingerprint(s));const S=s.parentElement;let w;if(S){const z=Array.from(S.children).indexOf(s);z!==-1&&(w=z+1)}const A={tag:s.tagName.toLowerCase(),semantics:E,score:o.scoreElement(s),nthChild:w},v=[],$={onMultiple:"best-score",onMissing:"anchor-only",maxDepth:3},N=b.degraded||C.degraded,_=Hc(b.degraded,C),F={version:"1.0",anchor:b,path:C.path,target:A,constraints:v,fallback:$,meta:{confidence:0,generatedAt:new Date().toISOString(),generator:"dom-eid@1.0",source:r.source,degraded:N,degradationReason:_}};return F.meta.confidence=Dc(F),F.meta.confidence<r.confidenceThreshold?null:(i.setEID(s,F),F)}function Wc(s){return s.namespaceURI==="http://www.w3.org/2000/svg"||s.tagName.toLowerCase()==="svg"||s instanceof SVGElement}function Hc(s,e){if(s&&e.degraded)return"anchor-and-path-degraded";if(s)return"no-semantic-anchor";if(e.degraded)return e.degradationReason}function Uc(s,e,t,r){const i={tag:"html",semantics:t.extract(s),score:1,degraded:!1,nthChild:void 0};return{version:"1.0",anchor:i,path:[],target:i,constraints:[],fallback:{onMultiple:"best-score",onMissing:"anchor-only",maxDepth:3},meta:{confidence:1,generatedAt:new Date().toISOString(),generator:"dom-eid@1.0",source:e.source,degraded:!1,degradationReason:void 0}}}const wo={maxClasses:2,maxAttributes:5,includeText:!0,maxTextLength:50,simplifyTarget:!0,includeConstraints:!0};function rn(s){return s==="id"?101:Le[s]!==void 0?Le[s]:s.startsWith("data-")?Le["data-*"]:s.startsWith("aria-")?Le["aria-*"]:0}function Vc(s){return["id","data-testid","data-qa","data-cy","href","text","role"].includes(s)}function jc(s){return!!(/@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/.test(s)||/(\+?\d{1,3}[-.\s]?)?\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}/.test(s)||/\d{4}[-\s]?\d{4}[-\s]?\d{4}[-\s]?\d{4}/.test(s))}function Gc(s,e){const t=x(x({},wo),e),r=`v${s.version}`,i=ss(s.anchor,!1,t),n=s.path.length>0?s.path.map(o=>ss(o,!1,t)).join(" > ")+" > ":"",a=ss(s.target,!0,t),l=t.includeConstraints?Yc(s):"";return`${r}: ${i} :: ${n}${a}${l}`}function ss(s,e=!1,t=wo){const{tag:r,semantics:i}=s;let n=r;const a=[],l=x({},i.attributes);i.id&&(l.id=i.id),i.role&&!l.role&&(l.role=i.role);const o=Object.entries(l).map(([h,d])=>{const f=rn(h),m=h==="href"||h==="src"?bo(h,d):d;return{name:h,value:m,priority:f}}).filter(h=>h.name!=="id"&&h.name!=="class"&&mo.has(h.name)||go.has(h.name)&&yo(h.value)?!1:h.priority>0||h.name==="role"||h.name==="id");o.sort((h,d)=>d.priority-h.priority);const u=o.slice(0,t.maxAttributes);u.sort((h,d)=>h.name.localeCompare(d.name));for(const{name:h,value:d}of u)a.push(`${h}="${ws(d)}"`);if(t.includeText&&i.text&&!jc(i.text.normalized)){const h=i.text.normalized;h.length>0&&h.length<=t.maxTextLength&&a.push(`text="${ws(h)}"`)}let c=a;if(a.length>0&&(e&&t.simplifyTarget&&i.id&&(c=a.filter(h=>{const d=h.split("=")[0];return rn(d)>=60||d==="text"||d==="id"||d==="role"})),c.length>0&&c.sort((h,d)=>h.localeCompare(d))),i.classes&&i.classes.length>0){const h=mc(i.classes),d=!!i.id||a.some(f=>f.startsWith("href=")||f.startsWith("data-testid=")||f.startsWith("text=")||f.startsWith("role="));if(!(e&&t.simplifyTarget&&d)&&h.length>0){const f=h.sort().slice(0,t.maxClasses);n+=f.map(m=>`.${m}`).join("")}}if(c.length>0&&(n+=`[${c.join(",")}]`),"nthChild"in s&&s.nthChild){const h=!!i.id||i.attributes&&Object.keys(i.attributes).some(Vc);e&&t.simplifyTarget&&h||(n+=`#${s.nthChild}`)}return n}function Yc(s){if(!s.constraints||s.constraints.length===0)return"";const e=[];for(const t of s.constraints)switch(t.type){case"uniqueness":e.push("unique=true");break;case"position":t.params&&t.params.strategy&&e.push(`pos=${t.params.strategy}`);break;case"text-proximity":if(t.params&&t.params.reference){const r=ws(String(t.params.reference));e.push(`text="${r}"`)}break}return e.length===0?"":` {${e.join(",")}}`}function ws(s){return s.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/>/g,"\\>").replace(/:/g,"\\:")}function Zc(s,e,t){const r=Bc(s,e);return r?Gc(r,t):null}let Jc=1;const Xc=new RegExp("[^a-z0-9-_:]"),At=-2;function So(){return Jc++}function Kc(s){if(s instanceof HTMLFormElement)return"form";const e=We(s.tagName);return Xc.test(e)?"div":e}let Ze,sn;const qc=/^[^ \t\n\r\u000c]+/,Qc=/^[, \t\n\r\u000c]+/;function eu(s,e){if(e.trim()==="")return e;let t=0;function r(n){let a;const l=n.exec(e.substring(t));return l?(a=l[0],t+=a.length,a):""}const i=[];for(;r(Qc),!(t>=e.length);){let n=r(qc);if(n.slice(-1)===",")n=Ke(s,n.substring(0,n.length-1)),i.push(n);else{let a="";n=Ke(s,n);let l=!1;for(;;){const o=e.charAt(t);if(o===""){i.push((n+a).trim());break}else if(l)o===")"&&(l=!1);else if(o===","){t+=1,i.push((n+a).trim());break}else o==="("&&(l=!0);a+=o,t+=1}}}return i.join(", ")}const nn=new WeakMap;function Ke(s,e){return!e||e.trim()===""?e:oi(s,e)}function tu(s){return!!(s.tagName==="svg"||s.ownerSVGElement)}function oi(s,e){let t=nn.get(s);if(t||(t=s.createElement("a"),nn.set(s,t)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return t.setAttribute("href",e),t.href}function vo(s,e,t,r){return r&&(t==="src"||t==="href"&&!(e==="use"&&r[0]==="#")||t==="xlink:href"&&r[0]!=="#"||t==="background"&&(e==="table"||e==="td"||e==="th")?Ke(s,r):t==="srcset"?eu(s,r):t==="style"?xr(r,oi(s)):e==="object"&&t==="data"?Ke(s,r):r)}function Co(s,e,t){return(s==="video"||s==="audio")&&e==="autoplay"}function Ss(s,e){return e?typeof e=="string"?s.includes(e):e.test(s):!1}function ru(s,e,t){try{if(typeof e=="string"){if(s.classList.contains(e))return!0}else for(let r=s.classList.length;r--;){const i=s.classList[r];if(e.test(i))return!0}if(t)return s.matches(t)}catch(r){}return!1}function Ar(s,e,t){if(!s)return!1;if(s.nodeType!==s.ELEMENT_NODE)return t?Ar(re.parentNode(s),e,t):!1;for(let r=s.classList.length;r--;){const i=s.classList[r];if(e.test(i))return!0}return t?Ar(re.parentNode(s),e,t):!1}function xo(s,e,t,r){let i;if(gr(s)){if(i=s,!re.childNodes(i).length)return!1}else{if(re.parentElement(s)===null)return!1;i=re.parentElement(s)}try{if(typeof e=="string"){if(r){if(i.closest(`.${e}`))return!0}else if(i.classList.contains(e))return!0}else if(Ar(i,e,r))return!0;if(t){if(r){if(i.closest(t))return!0}else if(i.matches(t))return!0}}catch(n){}return!1}function su(s,e,t){const r=s.contentWindow;if(!r)return;let i=!1,n;try{n=r.document.readyState}catch(l){return}if(n!=="complete"){const l=setTimeout(()=>{i||(e(),i=!0)},t);s.addEventListener("load",()=>{clearTimeout(l),i=!0,e()});return}const a="about:blank";if(r.location.href!==a||s.src===a||s.src==="")return setTimeout(e,0),s.addEventListener("load",e);s.addEventListener("load",e)}function iu(s,e,t){let r=!1,i;try{i=s.sheet}catch(a){return}if(i)return;const n=setTimeout(()=>{r||(e(),r=!0)},t);s.addEventListener("load",()=>{clearTimeout(n),r=!0,e()})}function nu(s,e){const{doc:t,mirror:r,blockClass:i,blockSelector:n,excludeAttribute:a,needsMask:l,inlineStylesheet:o,maskInputOptions:u={},maskTextFn:c,maskInputFn:h,dataURLOptions:d={},inlineImages:f,recordCanvas:m,keepIframeSrcFn:g,newlyAddedElement:p=!1,cssCaptured:b=!1}=e,C=ou(t,r);switch(s.nodeType){case s.DOCUMENT_NODE:return s.compatMode!=="CSS1Compat"?{type:ee.Document,childNodes:[],compatMode:s.compatMode}:{type:ee.Document,childNodes:[]};case s.DOCUMENT_TYPE_NODE:return{type:ee.DocumentType,name:s.name,publicId:s.publicId,systemId:s.systemId,rootId:C};case s.ELEMENT_NODE:return lu(s,{doc:t,blockClass:i,blockSelector:n,excludeAttribute:a,inlineStylesheet:o,maskInputOptions:u,maskInputFn:h,dataURLOptions:d,inlineImages:f,recordCanvas:m,keepIframeSrcFn:g,newlyAddedElement:p,rootId:C});case s.TEXT_NODE:return au(s,{doc:t,needsMask:l,maskTextFn:c,rootId:C,cssCaptured:b});case s.CDATA_SECTION_NODE:return{type:ee.CDATA,textContent:"",rootId:C};case s.COMMENT_NODE:return{type:ee.Comment,textContent:re.textContent(s)||"",rootId:C};default:return!1}}function ou(s,e){if(!e.hasNode(s))return;const t=e.getId(s);return t===1?void 0:t}function au(s,e){const{needsMask:t,maskTextFn:r,rootId:i,cssCaptured:n}=e,a=re.parentNode(s),l=a&&a.tagName;let o="";const u=l==="STYLE"?!0:void 0,c=l==="SCRIPT"?!0:void 0;return c?o="SCRIPT_PLACEHOLDER":n||(o=re.textContent(s),u&&o&&(o=xr(o,oi(e.doc)))),!u&&!c&&o&&t&&(o=r?r(o,re.parentElement(s)):o.replace(/[\S]/g,"*")),{type:ee.Text,textContent:o||"",rootId:i}}function lu(s,e){const{doc:t,blockClass:r,blockSelector:i,excludeAttribute:n,inlineStylesheet:a,maskInputOptions:l={},maskInputFn:o,dataURLOptions:u={},inlineImages:c,recordCanvas:h,keepIframeSrcFn:d,newlyAddedElement:f=!1,rootId:m}=e,g=ru(s,r,i),p=Kc(s);let b={};const C=s.attributes.length;for(let S=0;S<C;S++){const w=s.attributes[S];Ss(w.name,n)||Co(p,w.name,w.value)||(b[w.name]=vo(t,p,We(w.name),w.value))}if(p==="link"&&a){const S=Array.from(t.styleSheets).find(A=>A.href===s.href);let w=null;S&&(w=bs(S)),w&&(delete b.rel,delete b.href,b._cssText=w)}if(p==="style"&&s.sheet){let S=bs(s.sheet);S&&(s.childNodes.length>1&&(S=Ql(S,s)),b._cssText=S)}if(p==="input"||p==="textarea"||p==="select"){const S=s.value,w=s.checked;b.type!=="radio"&&b.type!=="checkbox"&&b.type!=="submit"&&b.type!=="button"&&S?b.value=vt({element:s,type:Ct(s),tagName:p,value:S,maskInputOptions:l,maskInputFn:o}):w&&(b.checked=w)}if(p==="option"&&(s.selected&&!l.select?b.selected=!0:delete b.selected),p==="dialog"&&s.open&&(b.rr_open_mode=s.matches("dialog:modal")?"modal":"non-modal"),p==="canvas"&&h){if(s.__context==="2d")Gl(s)||(b.rr_dataURL=s.toDataURL(u.type,u.quality));else if(!("__context"in s)){const S=s.toDataURL(u.type,u.quality),w=t.createElement("canvas");w.width=s.width,w.height=s.height;const A=w.toDataURL(u.type,u.quality);S!==A&&(b.rr_dataURL=S)}}if(p==="img"&&c){Ze||(Ze=t.createElement("canvas"),sn=Ze.getContext("2d"));const S=s,w=S.currentSrc||S.getAttribute("src")||"<unknown-src>",A=S.crossOrigin,v=()=>{S.removeEventListener("load",v);try{Ze.width=S.naturalWidth,Ze.height=S.naturalHeight,sn.drawImage(S,0,0),b.rr_dataURL=Ze.toDataURL(u.type,u.quality)}catch($){if(S.crossOrigin!=="anonymous"){S.crossOrigin="anonymous",S.complete&&S.naturalWidth!==0?v():S.addEventListener("load",v);return}else console.warn(`Cannot inline img src=${w}! Error: ${$}`)}S.crossOrigin==="anonymous"&&(A?b.crossOrigin=A:S.removeAttribute("crossorigin"))};S.complete&&S.naturalWidth!==0?v():S.addEventListener("load",v)}if(p==="audio"||p==="video"){const S=b;S.rr_mediaState=s.paused?"paused":"played",S.rr_mediaCurrentTime=s.currentTime,S.rr_mediaPlaybackRate=s.playbackRate,S.rr_mediaMuted=s.muted,S.rr_mediaLoop=s.loop,S.rr_mediaVolume=s.volume}if(f||(s.scrollLeft&&(b.rr_scrollLeft=s.scrollLeft),s.scrollTop&&(b.rr_scrollTop=s.scrollTop)),g){const{width:S,height:w}=s.getBoundingClientRect();b={class:b.class,rr_width:`${S}px`,rr_height:`${w}px`}}p==="iframe"&&!d(b.src)&&(s.contentDocument||(b.rr_src=b.src),delete b.src);let E;try{customElements.get(p)&&(E=!0)}catch(S){}return{type:ee.Element,tagName:p,attributes:b,childNodes:[],isSVG:tu(s)||void 0,needBlock:g,rootId:m,isCustom:E}}function G(s){return s==null?"":s.toLowerCase()}function cu(s,e){if(e.comment&&s.type===ee.Comment)return!0;if(s.type===ee.Element){if(e.script&&(s.tagName==="script"||s.tagName==="link"&&(s.attributes.rel==="preload"&&s.attributes.as==="script"||s.attributes.rel==="modulepreload")||s.tagName==="link"&&s.attributes.rel==="prefetch"&&typeof s.attributes.href=="string"&&po(s.attributes.href)==="js"))return!0;if(e.headFavicon&&(s.tagName==="link"&&s.attributes.rel==="shortcut icon"||s.tagName==="meta"&&(G(s.attributes.name).match(/^msapplication-tile(image|color)$/)||G(s.attributes.name)==="application-name"||G(s.attributes.rel)==="icon"||G(s.attributes.rel)==="apple-touch-icon"||G(s.attributes.rel)==="shortcut icon")))return!0;if(s.tagName==="meta"){if(e.headMetaDescKeywords&&G(s.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(G(s.attributes.property).match(/^(og|twitter|fb):/)||G(s.attributes.name).match(/^(og|twitter):/)||G(s.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(G(s.attributes.name)==="robots"||G(s.attributes.name)==="googlebot"||G(s.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&s.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(G(s.attributes.name)==="author"||G(s.attributes.name)==="generator"||G(s.attributes.name)==="framework"||G(s.attributes.name)==="publisher"||G(s.attributes.name)==="progid"||G(s.attributes.property).match(/^article:/)||G(s.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(G(s.attributes.name)==="google-site-verification"||G(s.attributes.name)==="yandex-verification"||G(s.attributes.name)==="csrf-token"||G(s.attributes.name)==="p:domain_verify"||G(s.attributes.name)==="verify-v1"||G(s.attributes.name)==="verification"||G(s.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function qe(s,e){const{doc:t,mirror:r,blockClass:i,blockSelector:n,maskTextClass:a,maskTextSelector:l,excludeAttribute:o,skipChild:u=!1,inlineStylesheet:c=!0,maskInputOptions:h={},maskTextFn:d,maskInputFn:f,slimDOMOptions:m,dataURLOptions:g={},inlineImages:p=!1,recordCanvas:b=!1,onSerialize:C,onIframeLoad:E,iframeLoadTimeout:S=5e3,onStylesheetLoad:w,stylesheetLoadTimeout:A=5e3,keepIframeSrcFn:v=()=>!1,newlyAddedElement:$=!1,cssCaptured:N=!1,selectorOptions:_}=e;let{needsMask:F}=e,{preserveWhiteSpace:V=!0}=e;F||(F=xo(s,a,l,F===void 0));const j=nu(s,{doc:t,mirror:r,blockClass:i,blockSelector:n,excludeAttribute:o,needsMask:F,inlineStylesheet:c,maskInputOptions:h,maskTextFn:d,maskInputFn:f,dataURLOptions:g,inlineImages:p,recordCanvas:b,keepIframeSrcFn:v,newlyAddedElement:$,cssCaptured:N});if(!j)return console.warn(s,"not serialized"),null;let q;r.hasNode(s)?q=r.getId(s):cu(j,m)||!V&&j.type===ee.Text&&!j.textContent.replace(/^\s+|\s+$/gm,"").length?q=At:q=So();const I=Object.assign(j,{id:q});if(gr(s)||s.nodeType===Node.TEXT_NODE){if(gr(s)&&_!==null&&_!==void 0)try{const J={maxPathDepth:_.maxPathDepth,enableSvgFingerprint:_.enableSvgFingerprint,fallbackToBody:_.fallbackToBody},he=Zc(s,J);he&&(I.selector=he)}catch(J){console.warn("Failed to generate SEQL selector:",J)}s.nodeType===Node.TEXT_NODE&&(I.isVisible=ec(s)),s.nodeType===Node.ELEMENT_NODE&&(I.isVisible=ri(s),I.isInteractive=ac(s))}if(r.add(s,I),q===At)return null;C&&C(s);let z=!u;if(I.type===ee.Element){z=z&&!I.needBlock,delete I.needBlock;const J=re.shadowRoot(s);J&&wt(J)&&(I.isShadowHost=!0)}if((I.type===ee.Document||I.type===ee.Element)&&z){m.headWhitespace&&I.type===ee.Element&&I.tagName==="head"&&(V=!1);const J={doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:F,maskTextClass:a,maskTextSelector:l,excludeAttribute:o,skipChild:u,inlineStylesheet:c,maskInputOptions:h,maskTextFn:d,maskInputFn:f,slimDOMOptions:m,dataURLOptions:g,inlineImages:p,recordCanvas:b,preserveWhiteSpace:V,onSerialize:C,onIframeLoad:E,iframeLoadTimeout:S,onStylesheetLoad:w,stylesheetLoadTimeout:A,keepIframeSrcFn:v,cssCaptured:!1,selectorOptions:_};if(!(I.type===ee.Element&&I.tagName==="textarea"&&I.attributes.value!==void 0)){I.type===ee.Element&&I.attributes._cssText!==void 0&&typeof I.attributes._cssText=="string"&&(J.cssCaptured=!0);for(const Ve of Array.from(re.childNodes(s))){const Oe=qe(Ve,J);Oe&&I.childNodes.push(Oe)}}let he=null;if(gr(s)&&(he=re.shadowRoot(s)))for(const Ve of Array.from(re.childNodes(he))){const Oe=qe(Ve,J);Oe&&(wt(he)&&(Oe.isShadow=!0),I.childNodes.push(Oe))}}const Q=re.parentNode(s);return Q&&bt(Q)&&wt(Q)&&(I.isShadow=!0),I.type===ee.Element&&I.tagName==="iframe"&&su(s,()=>{const J=s.contentDocument;if(J&&E){const he=qe(J,{doc:J,mirror:r,blockClass:i,blockSelector:n,needsMask:F,maskTextClass:a,maskTextSelector:l,excludeAttribute:o,skipChild:!1,inlineStylesheet:c,maskInputOptions:h,maskTextFn:d,maskInputFn:f,slimDOMOptions:m,dataURLOptions:g,inlineImages:p,recordCanvas:b,preserveWhiteSpace:V,onSerialize:C,onIframeLoad:E,iframeLoadTimeout:S,onStylesheetLoad:w,stylesheetLoadTimeout:A,keepIframeSrcFn:v,selectorOptions:_});he&&E(s,he)}},S),I.type===ee.Element&&I.tagName==="link"&&typeof I.attributes.rel=="string"&&(I.attributes.rel==="stylesheet"||I.attributes.rel==="preload"&&typeof I.attributes.href=="string"&&po(I.attributes.href)==="css")&&iu(s,()=>{if(w){const J=qe(s,{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:F,maskTextClass:a,maskTextSelector:l,excludeAttribute:o,skipChild:!1,inlineStylesheet:c,maskInputOptions:h,maskTextFn:d,maskInputFn:f,slimDOMOptions:m,dataURLOptions:g,inlineImages:p,recordCanvas:b,preserveWhiteSpace:V,onSerialize:C,onIframeLoad:E,iframeLoadTimeout:S,onStylesheetLoad:w,stylesheetLoadTimeout:A,keepIframeSrcFn:v,selectorOptions:_});J&&w(s,J)}},A),I}function uu(s,e){var F,V,j,q;const{mirror:t=new fo,blockClass:r="rr-block",blockSelector:i=null,maskTextClass:n="rr-mask",maskTextSelector:a=null,excludeAttribute:l=/.^/,inlineStylesheet:o=!0,inlineImages:u=!1,recordCanvas:c=!1,maskAllInputs:h=!1,maskTextFn:d,maskInputFn:f,slimDOM:m=!1,dataURLOptions:g,preserveWhiteSpace:p,onSerialize:b,onIframeLoad:C,iframeLoadTimeout:E,onStylesheetLoad:S,stylesheetLoadTimeout:w,keepIframeSrcFn:A=()=>!1,selector:v}=e||{},$=h===!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}:h===!1?{password:!0}:h,N=m===!0||m==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:m==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:m===!1?{}:m,_=v===!1?null:v===!0?{maxPathDepth:10,enableSvgFingerprint:!0,confidenceThreshold:.3,fallbackToBody:!0}:v===void 0?{maxPathDepth:10,enableSvgFingerprint:!0,confidenceThreshold:.3,fallbackToBody:!0}:{maxPathDepth:(F=v.maxPathDepth)!=null?F:10,enableSvgFingerprint:(V=v.enableSvgFingerprint)!=null?V:!0,confidenceThreshold:(j=v.confidenceThreshold)!=null?j:.3,fallbackToBody:(q=v.fallbackToBody)!=null?q:!0};return qe(s,{doc:s,mirror:t,blockClass:r,blockSelector:i,maskTextClass:n,maskTextSelector:a,excludeAttribute:l,skipChild:!1,inlineStylesheet:o,maskInputOptions:$,maskTextFn:d,maskInputFn:f,slimDOMOptions:N,dataURLOptions:g,inlineImages:u,recordCanvas:c,preserveWhiteSpace:p,onSerialize:b,onIframeLoad:C,iframeLoadTimeout:E,onStylesheetLoad:S,stylesheetLoadTimeout:w,keepIframeSrcFn:A,newlyAddedElement:!1,selectorOptions:_})}function hu(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function du(s){if(s.__esModule)return s;var e=s.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(r){var i=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return s[r]}})}),t}var ai={exports:{}},M=String,Ao=function(){return{isColorSupported:!1,reset:M,bold:M,dim:M,italic:M,underline:M,inverse:M,hidden:M,strikethrough:M,black:M,red:M,green:M,yellow:M,blue:M,magenta:M,cyan:M,white:M,gray:M,bgBlack:M,bgRed:M,bgGreen:M,bgYellow:M,bgBlue:M,bgMagenta:M,bgCyan:M,bgWhite:M,blackBright:M,redBright:M,greenBright:M,yellowBright:M,blueBright:M,magentaBright:M,cyanBright:M,whiteBright:M,bgBlackBright:M,bgRedBright:M,bgGreenBright:M,bgYellowBright:M,bgBlueBright:M,bgMagentaBright:M,bgCyanBright:M,bgWhiteBright:M}};ai.exports=Ao();ai.exports.createColors=Ao;var fu=ai.exports;const pu={},mu=Object.freeze(Object.defineProperty({__proto__:null,default:pu},Symbol.toStringTag,{value:"Module"})),ye=du(mu);let on=fu,an=ye,vs=class Io extends Error{constructor(e,t,r,i,n,a){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),i&&(this.source=i),a&&(this.plugin=a),typeof t!="undefined"&&typeof r!="undefined"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Io)}setMessage(){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}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=on.isColorSupported);let r=c=>c,i=c=>c,n=c=>c;if(e){let{bold:c,gray:h,red:d}=on.createColors(!0);i=f=>c(d(f)),r=f=>h(f),an&&(n=f=>an(f))}let a=t.split(/\r?\n/),l=Math.max(this.line-3,0),o=Math.min(this.line+2,a.length),u=String(o).length;return a.slice(l,o).map((c,h)=>{let d=l+1+h,f=" "+(" "+d).slice(-u)+" | ";if(d===this.line){if(c.length>160){let g=20,p=Math.max(0,this.column-g),b=Math.max(this.column+g,this.endColumn+g),C=c.slice(p,b),E=r(f.replace(/\d/g," "))+c.slice(0,Math.min(this.column-1,g-1)).replace(/[^\t]/g," ");return i(">")+r(f)+n(C)+`
12
- `+E+i("^")}let m=r(f.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+r(f)+n(c)+`
13
- `+m+i("^")}return" "+r(f)+n(c)}).join(`
11
+ Solution: Ensure element and root parameter are from the same document context.`)}function qc(s,e={}){var j,K,I,Q;var t;if(!s||!s.ownerDocument||!s.isConnected)return null;const r=x(x({},gc),e);if(r.root)try{Jc(s,r.root)}catch(z){return console.error("Cross-document generation detected:",z),null}const i=(j=r.cache)!=null?j:Zc(),n=i.getEID(s);if(n!==void 0)return n;const a=s.tagName.toLowerCase();if(a==="html"){const z=new rn(r,i),W=Qc(s,r,z);return i.setEID(s,W),W}const l=new yc(r,i),o=new $c(r,i),c=new rn(r,i),u=new Uc,h=l.findAnchor(s);if(!h&&!r.fallbackToBody)return null;const f=(I=(K=h==null?void 0:h.element)!=null?K:(t=s.ownerDocument)==null?void 0:t.body)!=null?I:null;if(!f)return null;const m=!h||h.tier==="C",p=f.tagName.toLowerCase(),g=c.extract(f),d=f.parentElement;let y;if(d&&p!=="body"&&p!=="html"&&Ar(p,g,f)){const z=Array.from(d.children).indexOf(f);z!==-1&&(y=z+1)}const v={tag:f.tagName.toLowerCase(),semantics:g,score:(Q=h==null?void 0:h.score)!=null?Q:we.DEGRADED_SCORE,degraded:m,nthChild:y},A=o.buildPath(f,s,c),S=c.extract(s);r.enableSvgFingerprint&&Xc(s)&&(S.svg=u.fingerprint(s));const w=s.parentElement;let E;if(w&&Ar(a,S,s)){const z=Array.from(w.children).indexOf(s);z!==-1&&(E=z+1)}const C={tag:s.tagName.toLowerCase(),semantics:S,score:c.scoreElement(s),nthChild:E},$=[],N={onMultiple:"best-score",onMissing:"anchor-only",maxDepth:3},_=v.degraded||A.degraded,J=Kc(v.degraded,A),F={version:"1.0",anchor:v,path:A.path,target:C,constraints:$,fallback:N,meta:{confidence:0,generatedAt:new Date().toISOString(),generator:"dom-eid@1.0",source:r.source,degraded:_,degradationReason:J}};return F.meta.confidence=Vc(F),F.meta.confidence<r.confidenceThreshold?null:(i.setEID(s,F),F)}function Xc(s){return s.namespaceURI==="http://www.w3.org/2000/svg"||s.tagName.toLowerCase()==="svg"||s instanceof SVGElement}function Kc(s,e){if(s&&e.degraded)return"anchor-and-path-degraded";if(s)return"no-semantic-anchor";if(e.degraded)return e.degradationReason}function Qc(s,e,t,r){const i={tag:"html",semantics:t.extract(s),score:1,degraded:!1,nthChild:void 0};return{version:"1.0",anchor:i,path:[],target:i,constraints:[],fallback:{onMultiple:"best-score",onMissing:"anchor-only",maxDepth:3},meta:{confidence:1,generatedAt:new Date().toISOString(),generator:"dom-eid@1.0",source:e.source,degraded:!1,degradationReason:void 0}}}const xo={id:"i","data-testid":"tid","data-qa":"qa","data-cy":"cy","data-test":"dt","aria-label":"al","aria-labelledby":"alb","aria-describedby":"adb",name:"n",href:"h",src:"s",type:"t",role:"r",alt:"at",title:"tt",for:"f",placeholder:"ph",text:"x"},nn=Object.fromEntries(Object.entries(xo).map(([s,e])=>[e,s])),Ao={maxClasses:2,maxAttributes:5,includeText:!0,maxTextLength:50,simplifyTarget:!0,includeConstraints:!0,format:"compact"};function on(s){return s==="id"?101:Le[s]!==void 0?Le[s]:s.startsWith("data-")?Le["data-*"]:s.startsWith("aria-")?Le["aria-*"]:0}function eu(s){return["id","data-testid","data-qa","data-cy","href","text","role"].includes(s)}function tu(s){return!!(/@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/.test(s)||/(\+?\d{1,3}[-.\s]?)?\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}/.test(s)||/\d{4}[-\s]?\d{4}[-\s]?\d{4}[-\s]?\d{4}/.test(s))}function ru(s,e){const t=x(x({},Ao),e),r=t.format==="compact",i=r?"v1":`v${s.version}`,n=r?":":": ",a=r?"::":" :: ",l=r?">":" > ",o=t.includeText&&s.target.semantics.text?s.target.semantics.text.normalized:void 0,c=ns(s.anchor,!1,t),u=s.path.length>0?s.path.map(m=>ns(m,!1,t,o)).join(l)+l:"",h=ns(s.target,!0,t),f=t.includeConstraints?su(s,t):"";return`${i}${n}${c}${a}${u}${h}${f}`}function ns(s,e=!1,t=Ao,r){var m;const{tag:i,semantics:n}=s,a=t.format==="compact";let l=i;const o=[],c=x({},n.attributes);n.id&&(c.id=n.id),n.role&&!c.role&&(c.role=n.role);const u=Object.entries(c).map(([p,g])=>{const d=on(p),y=p==="href"||p==="src"?Co(p,g):g;return{name:p,value:y,priority:d}}).filter(p=>p.name!=="id"&&p.name!=="class"&&wo.has(p.name)||So.has(p.name)&&vo(p.value)?!1:p.priority>0||p.name==="role"||p.name==="id");u.sort((p,g)=>g.priority-p.priority);const h=u.slice(0,t.maxAttributes);h.sort((p,g)=>p.name.localeCompare(g.name));for(const{name:p,value:g}of h){const d=a&&(m=xo[p])!=null?m:p;o.push(`${d}="${vs(g)}"`)}if(t.includeText&&n.text&&!tu(n.text.normalized)){const p=n.text.normalized;if(p.length>0&&p.length<=t.maxTextLength&&!(!e&&r!==void 0&&p===r)){const g=a?"x":"text";o.push(`${g}="${vs(p)}"`)}}let f=o;if(o.length>0&&e&&t.simplifyTarget&&n.id&&(f=o.filter(p=>{var y;const g=p.split("=")[0],d=(y=nn[g])!=null?y:g;return on(d)>=60||d==="text"||d==="id"||d==="role"})),n.classes&&n.classes.length>0){const p=vc(n.classes),g=!!n.id||o.some(d=>{var A;const y=d.split("=")[0],v=(A=nn[y])!=null?A:y;return v==="href"||v==="data-testid"||v==="text"||v==="role"});if(!(e&&t.simplifyTarget&&g)&&p.length>0){const d=p.sort().slice(0,t.maxClasses);l+=d.map(y=>`.${y}`).join("")}}if(f.length>0&&(l+=`[${f.join(",")}]`),"nthChild"in s&&s.nthChild){const p=!!n.id||n.attributes&&Object.keys(n.attributes).some(eu);e&&t.simplifyTarget&&p||(l+=`#${s.nthChild}`)}return l}function su(s,e){if(!s.constraints||s.constraints.length===0)return"";const t=[];for(const r of s.constraints)switch(r.type){case"uniqueness":t.push("unique=true");break;case"position":r.params&&r.params.strategy&&t.push(`pos=${r.params.strategy}`);break;case"text-proximity":if(r.params&&r.params.reference){const i=vs(String(r.params.reference));t.push(`text="${i}"`)}break}return t.length===0?"":`${e.format==="verbose"?" ":""}{${t.join(",")}}`}function vs(s){return s.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/>/g,"\\>").replace(/:/g,"\\:")}function iu(s,e,t){const r=qc(s,e);return r?ru(r,t):null}let nu=1;const ou=new RegExp("[^a-z0-9-_:]"),At=-2;function Eo(){return nu++}function au(s){if(s instanceof HTMLFormElement)return"form";const e=We(s.tagName);return ou.test(e)?"div":e}let Ze,an;const lu=/^[^ \t\n\r\u000c]+/,cu=/^[, \t\n\r\u000c]+/;function uu(s,e){if(e.trim()==="")return e;let t=0;function r(n){let a;const l=n.exec(e.substring(t));return l?(a=l[0],t+=a.length,a):""}const i=[];for(;r(cu),!(t>=e.length);){let n=r(lu);if(n.slice(-1)===",")n=Xe(s,n.substring(0,n.length-1)),i.push(n);else{let a="";n=Xe(s,n);let l=!1;for(;;){const o=e.charAt(t);if(o===""){i.push((n+a).trim());break}else if(l)o===")"&&(l=!1);else if(o===","){t+=1,i.push((n+a).trim());break}else o==="("&&(l=!0);a+=o,t+=1}}}return i.join(", ")}const ln=new WeakMap;function Xe(s,e){return!e||e.trim()===""?e:li(s,e)}function hu(s){return!!(s.tagName==="svg"||s.ownerSVGElement)}function li(s,e){let t=ln.get(s);if(t||(t=s.createElement("a"),ln.set(s,t)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return t.setAttribute("href",e),t.href}function Io(s,e,t,r){return r&&(t==="src"||t==="href"&&!(e==="use"&&r[0]==="#")||t==="xlink:href"&&r[0]!=="#"||t==="background"&&(e==="table"||e==="td"||e==="th")?Xe(s,r):t==="srcset"?uu(s,r):t==="style"?xr(r,li(s)):e==="object"&&t==="data"?Xe(s,r):r)}function $o(s,e,t){return(s==="video"||s==="audio")&&e==="autoplay"}function Cs(s,e){return e?typeof e=="string"?s.includes(e):e.test(s):!1}function du(s,e,t){try{if(typeof e=="string"){if(s.classList.contains(e))return!0}else for(let r=s.classList.length;r--;){const i=s.classList[r];if(e.test(i))return!0}if(t)return s.matches(t)}catch(r){}return!1}function Er(s,e,t){if(!s)return!1;if(s.nodeType!==s.ELEMENT_NODE)return t?Er(re.parentNode(s),e,t):!1;for(let r=s.classList.length;r--;){const i=s.classList[r];if(e.test(i))return!0}return t?Er(re.parentNode(s),e,t):!1}function Ro(s,e,t,r){let i;if(gr(s)){if(i=s,!re.childNodes(i).length)return!1}else{if(re.parentElement(s)===null)return!1;i=re.parentElement(s)}try{if(typeof e=="string"){if(r){if(i.closest(`.${e}`))return!0}else if(i.classList.contains(e))return!0}else if(Er(i,e,r))return!0;if(t){if(r){if(i.closest(t))return!0}else if(i.matches(t))return!0}}catch(n){}return!1}function fu(s,e,t){const r=s.contentWindow;if(!r)return;let i=!1,n;try{n=r.document.readyState}catch(l){return}if(n!=="complete"){const l=setTimeout(()=>{i||(e(),i=!0)},t);s.addEventListener("load",()=>{clearTimeout(l),i=!0,e()});return}const a="about:blank";if(r.location.href!==a||s.src===a||s.src==="")return setTimeout(e,0),s.addEventListener("load",e);s.addEventListener("load",e)}function pu(s,e,t){let r=!1,i;try{i=s.sheet}catch(a){return}if(i)return;const n=setTimeout(()=>{r||(e(),r=!0)},t);s.addEventListener("load",()=>{clearTimeout(n),r=!0,e()})}function mu(s,e){const{doc:t,mirror:r,blockClass:i,blockSelector:n,excludeAttribute:a,needsMask:l,inlineStylesheet:o,maskInputOptions:c={},maskTextFn:u,maskInputFn:h,dataURLOptions:f={},inlineImages:m,recordCanvas:p,keepIframeSrcFn:g,newlyAddedElement:d=!1,cssCaptured:y=!1}=e,v=gu(t,r);switch(s.nodeType){case s.DOCUMENT_NODE:return s.compatMode!=="CSS1Compat"?{type:ee.Document,childNodes:[],compatMode:s.compatMode}:{type:ee.Document,childNodes:[]};case s.DOCUMENT_TYPE_NODE:return{type:ee.DocumentType,name:s.name,publicId:s.publicId,systemId:s.systemId,rootId:v};case s.ELEMENT_NODE:return bu(s,{doc:t,blockClass:i,blockSelector:n,excludeAttribute:a,inlineStylesheet:o,maskInputOptions:c,maskInputFn:h,dataURLOptions:f,inlineImages:m,recordCanvas:p,keepIframeSrcFn:g,newlyAddedElement:d,rootId:v});case s.TEXT_NODE:return yu(s,{doc:t,needsMask:l,maskTextFn:u,rootId:v,cssCaptured:y});case s.CDATA_SECTION_NODE:return{type:ee.CDATA,textContent:"",rootId:v};case s.COMMENT_NODE:return{type:ee.Comment,textContent:re.textContent(s)||"",rootId:v};default:return!1}}function gu(s,e){if(!e.hasNode(s))return;const t=e.getId(s);return t===1?void 0:t}function yu(s,e){const{needsMask:t,maskTextFn:r,rootId:i,cssCaptured:n}=e,a=re.parentNode(s),l=a&&a.tagName;let o="";const c=l==="STYLE"?!0:void 0,u=l==="SCRIPT"?!0:void 0;return u?o="SCRIPT_PLACEHOLDER":n||(o=re.textContent(s),c&&o&&(o=xr(o,li(e.doc)))),!c&&!u&&o&&t&&(o=r?r(o,re.parentElement(s)):o.replace(/[\S]/g,"*")),{type:ee.Text,textContent:o||"",rootId:i}}function bu(s,e){const{doc:t,blockClass:r,blockSelector:i,excludeAttribute:n,inlineStylesheet:a,maskInputOptions:l={},maskInputFn:o,dataURLOptions:c={},inlineImages:u,recordCanvas:h,keepIframeSrcFn:f,newlyAddedElement:m=!1,rootId:p}=e,g=du(s,r,i),d=au(s);let y={};const v=s.attributes.length;for(let S=0;S<v;S++){const w=s.attributes[S];Cs(w.name,n)||$o(d,w.name,w.value)||(y[w.name]=Io(t,d,We(w.name),w.value))}if(d==="link"&&a){const S=Array.from(t.styleSheets).find(E=>E.href===s.href);let w=null;S&&(w=Ss(S)),w&&(delete y.rel,delete y.href,y._cssText=w)}if(d==="style"&&s.sheet){let S=Ss(s.sheet);S&&(s.childNodes.length>1&&(S=nc(S,s)),y._cssText=S)}if(d==="input"||d==="textarea"||d==="select"){const S=s.value,w=s.checked;y.type!=="radio"&&y.type!=="checkbox"&&y.type!=="submit"&&y.type!=="button"&&S?y.value=vt({element:s,type:Ct(s),tagName:d,value:S,maskInputOptions:l,maskInputFn:o}):w&&(y.checked=w)}if(d==="option"&&(s.selected&&!l.select?y.selected=!0:delete y.selected),d==="dialog"&&s.open&&(y.rr_open_mode=s.matches("dialog:modal")?"modal":"non-modal"),d==="canvas"&&h){if(s.__context==="2d")Kl(s)||(y.rr_dataURL=s.toDataURL(c.type,c.quality));else if(!("__context"in s)){const S=s.toDataURL(c.type,c.quality),w=t.createElement("canvas");w.width=s.width,w.height=s.height;const E=w.toDataURL(c.type,c.quality);S!==E&&(y.rr_dataURL=S)}}if(d==="img"&&u){Ze||(Ze=t.createElement("canvas"),an=Ze.getContext("2d"));const S=s,w=S.currentSrc||S.getAttribute("src")||"<unknown-src>",E=S.crossOrigin,C=()=>{S.removeEventListener("load",C);try{Ze.width=S.naturalWidth,Ze.height=S.naturalHeight,an.drawImage(S,0,0),y.rr_dataURL=Ze.toDataURL(c.type,c.quality)}catch($){if(S.crossOrigin!=="anonymous"){S.crossOrigin="anonymous",S.complete&&S.naturalWidth!==0?C():S.addEventListener("load",C);return}else console.warn(`Cannot inline img src=${w}! Error: ${$}`)}S.crossOrigin==="anonymous"&&(E?y.crossOrigin=E:S.removeAttribute("crossorigin"))};S.complete&&S.naturalWidth!==0?C():S.addEventListener("load",C)}if(d==="audio"||d==="video"){const S=y;S.rr_mediaState=s.paused?"paused":"played",S.rr_mediaCurrentTime=s.currentTime,S.rr_mediaPlaybackRate=s.playbackRate,S.rr_mediaMuted=s.muted,S.rr_mediaLoop=s.loop,S.rr_mediaVolume=s.volume}if(m||(s.scrollLeft&&(y.rr_scrollLeft=s.scrollLeft),s.scrollTop&&(y.rr_scrollTop=s.scrollTop)),g){const{width:S,height:w}=s.getBoundingClientRect();y={class:y.class,rr_width:`${S}px`,rr_height:`${w}px`}}d==="iframe"&&!f(y.src)&&(s.contentDocument||(y.rr_src=y.src),delete y.src);let A;try{customElements.get(d)&&(A=!0)}catch(S){}return{type:ee.Element,tagName:d,attributes:y,childNodes:[],isSVG:hu(s)||void 0,needBlock:g,rootId:p,isCustom:A}}function G(s){return s==null?"":s.toLowerCase()}function wu(s,e){if(e.comment&&s.type===ee.Comment)return!0;if(s.type===ee.Element){if(e.script&&(s.tagName==="script"||s.tagName==="link"&&(s.attributes.rel==="preload"&&s.attributes.as==="script"||s.attributes.rel==="modulepreload")||s.tagName==="link"&&s.attributes.rel==="prefetch"&&typeof s.attributes.href=="string"&&bo(s.attributes.href)==="js"))return!0;if(e.headFavicon&&(s.tagName==="link"&&s.attributes.rel==="shortcut icon"||s.tagName==="meta"&&(G(s.attributes.name).match(/^msapplication-tile(image|color)$/)||G(s.attributes.name)==="application-name"||G(s.attributes.rel)==="icon"||G(s.attributes.rel)==="apple-touch-icon"||G(s.attributes.rel)==="shortcut icon")))return!0;if(s.tagName==="meta"){if(e.headMetaDescKeywords&&G(s.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(G(s.attributes.property).match(/^(og|twitter|fb):/)||G(s.attributes.name).match(/^(og|twitter):/)||G(s.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(G(s.attributes.name)==="robots"||G(s.attributes.name)==="googlebot"||G(s.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&s.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(G(s.attributes.name)==="author"||G(s.attributes.name)==="generator"||G(s.attributes.name)==="framework"||G(s.attributes.name)==="publisher"||G(s.attributes.name)==="progid"||G(s.attributes.property).match(/^article:/)||G(s.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(G(s.attributes.name)==="google-site-verification"||G(s.attributes.name)==="yandex-verification"||G(s.attributes.name)==="csrf-token"||G(s.attributes.name)==="p:domain_verify"||G(s.attributes.name)==="verify-v1"||G(s.attributes.name)==="verification"||G(s.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Ke(s,e){const{doc:t,mirror:r,blockClass:i,blockSelector:n,maskTextClass:a,maskTextSelector:l,excludeAttribute:o,skipChild:c=!1,inlineStylesheet:u=!0,maskInputOptions:h={},maskTextFn:f,maskInputFn:m,slimDOMOptions:p,dataURLOptions:g={},inlineImages:d=!1,recordCanvas:y=!1,onSerialize:v,onIframeLoad:A,iframeLoadTimeout:S=5e3,onStylesheetLoad:w,stylesheetLoadTimeout:E=5e3,keepIframeSrcFn:C=()=>!1,newlyAddedElement:$=!1,cssCaptured:N=!1,selectorOptions:_}=e;let{needsMask:J}=e,{preserveWhiteSpace:F=!0}=e;J||(J=Ro(s,a,l,J===void 0));const j=mu(s,{doc:t,mirror:r,blockClass:i,blockSelector:n,excludeAttribute:o,needsMask:J,inlineStylesheet:u,maskInputOptions:h,maskTextFn:f,maskInputFn:m,dataURLOptions:g,inlineImages:d,recordCanvas:y,keepIframeSrcFn:C,newlyAddedElement:$,cssCaptured:N});if(!j)return console.warn(s,"not serialized"),null;let K;r.hasNode(s)?K=r.getId(s):wu(j,p)||!F&&j.type===ee.Text&&!j.textContent.replace(/^\s+|\s+$/gm,"").length?K=At:K=Eo();const I=Object.assign(j,{id:K});if(gr(s)||s.nodeType===Node.TEXT_NODE){if(gr(s)&&_!==null&&_!==void 0)try{const W={maxPathDepth:_.maxPathDepth,enableSvgFingerprint:_.enableSvgFingerprint,fallbackToBody:_.fallbackToBody},he=iu(s,W);he&&(I.selector=he)}catch(W){console.warn("Failed to generate SEQL selector:",W)}s.nodeType===Node.TEXT_NODE&&(I.isVisible=oc(s)),s.nodeType===Node.ELEMENT_NODE&&(I.isVisible=ii(s),I.isInteractive=fc(s))}if(r.add(s,I),K===At)return null;v&&v(s);let Q=!c;if(I.type===ee.Element){Q=Q&&!I.needBlock,delete I.needBlock;const W=re.shadowRoot(s);W&&wt(W)&&(I.isShadowHost=!0)}if((I.type===ee.Document||I.type===ee.Element)&&Q){p.headWhitespace&&I.type===ee.Element&&I.tagName==="head"&&(F=!1);const W={doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:J,maskTextClass:a,maskTextSelector:l,excludeAttribute:o,skipChild:c,inlineStylesheet:u,maskInputOptions:h,maskTextFn:f,maskInputFn:m,slimDOMOptions:p,dataURLOptions:g,inlineImages:d,recordCanvas:y,preserveWhiteSpace:F,onSerialize:v,onIframeLoad:A,iframeLoadTimeout:S,onStylesheetLoad:w,stylesheetLoadTimeout:E,keepIframeSrcFn:C,cssCaptured:!1,selectorOptions:_};if(!(I.type===ee.Element&&I.tagName==="textarea"&&I.attributes.value!==void 0)){I.type===ee.Element&&I.attributes._cssText!==void 0&&typeof I.attributes._cssText=="string"&&(W.cssCaptured=!0);for(const Ve of Array.from(re.childNodes(s))){const Oe=Ke(Ve,W);Oe&&I.childNodes.push(Oe)}}let he=null;if(gr(s)&&(he=re.shadowRoot(s)))for(const Ve of Array.from(re.childNodes(he))){const Oe=Ke(Ve,W);Oe&&(wt(he)&&(Oe.isShadow=!0),I.childNodes.push(Oe))}}const z=re.parentNode(s);return z&&bt(z)&&wt(z)&&(I.isShadow=!0),I.type===ee.Element&&I.tagName==="iframe"&&fu(s,()=>{const W=s.contentDocument;if(W&&A){const he=Ke(W,{doc:W,mirror:r,blockClass:i,blockSelector:n,needsMask:J,maskTextClass:a,maskTextSelector:l,excludeAttribute:o,skipChild:!1,inlineStylesheet:u,maskInputOptions:h,maskTextFn:f,maskInputFn:m,slimDOMOptions:p,dataURLOptions:g,inlineImages:d,recordCanvas:y,preserveWhiteSpace:F,onSerialize:v,onIframeLoad:A,iframeLoadTimeout:S,onStylesheetLoad:w,stylesheetLoadTimeout:E,keepIframeSrcFn:C,selectorOptions:_});he&&A(s,he)}},S),I.type===ee.Element&&I.tagName==="link"&&typeof I.attributes.rel=="string"&&(I.attributes.rel==="stylesheet"||I.attributes.rel==="preload"&&typeof I.attributes.href=="string"&&bo(I.attributes.href)==="css")&&pu(s,()=>{if(w){const W=Ke(s,{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:J,maskTextClass:a,maskTextSelector:l,excludeAttribute:o,skipChild:!1,inlineStylesheet:u,maskInputOptions:h,maskTextFn:f,maskInputFn:m,slimDOMOptions:p,dataURLOptions:g,inlineImages:d,recordCanvas:y,preserveWhiteSpace:F,onSerialize:v,onIframeLoad:A,iframeLoadTimeout:S,onStylesheetLoad:w,stylesheetLoadTimeout:E,keepIframeSrcFn:C,selectorOptions:_});W&&w(s,W)}},E),I}function Su(s,e){var J,F,j,K;const{mirror:t=new yo,blockClass:r="rr-block",blockSelector:i=null,maskTextClass:n="rr-mask",maskTextSelector:a=null,excludeAttribute:l=/.^/,inlineStylesheet:o=!0,inlineImages:c=!1,recordCanvas:u=!1,maskAllInputs:h=!1,maskTextFn:f,maskInputFn:m,slimDOM:p=!1,dataURLOptions:g,preserveWhiteSpace:d,onSerialize:y,onIframeLoad:v,iframeLoadTimeout:A,onStylesheetLoad:S,stylesheetLoadTimeout:w,keepIframeSrcFn:E=()=>!1,selector:C}=e||{},$=h===!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}:h===!1?{password:!0}:h,N=p===!0||p==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:p==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:p===!1?{}:p,_=C===!1?null:C===!0?{maxPathDepth:10,enableSvgFingerprint:!0,confidenceThreshold:.3,fallbackToBody:!0}:C===void 0?{maxPathDepth:10,enableSvgFingerprint:!0,confidenceThreshold:.3,fallbackToBody:!0}:{maxPathDepth:(J=C.maxPathDepth)!=null?J:10,enableSvgFingerprint:(F=C.enableSvgFingerprint)!=null?F:!0,confidenceThreshold:(j=C.confidenceThreshold)!=null?j:.3,fallbackToBody:(K=C.fallbackToBody)!=null?K:!0};return Ke(s,{doc:s,mirror:t,blockClass:r,blockSelector:i,maskTextClass:n,maskTextSelector:a,excludeAttribute:l,skipChild:!1,inlineStylesheet:o,maskInputOptions:$,maskTextFn:f,maskInputFn:m,slimDOMOptions:N,dataURLOptions:g,inlineImages:c,recordCanvas:u,preserveWhiteSpace:d,onSerialize:y,onIframeLoad:v,iframeLoadTimeout:A,onStylesheetLoad:S,stylesheetLoadTimeout:w,keepIframeSrcFn:E,newlyAddedElement:!1,selectorOptions:_})}function vu(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function Cu(s){if(s.__esModule)return s;var e=s.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(r){var i=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return s[r]}})}),t}var ci={exports:{}},M=String,Mo=function(){return{isColorSupported:!1,reset:M,bold:M,dim:M,italic:M,underline:M,inverse:M,hidden:M,strikethrough:M,black:M,red:M,green:M,yellow:M,blue:M,magenta:M,cyan:M,white:M,gray:M,bgBlack:M,bgRed:M,bgGreen:M,bgYellow:M,bgBlue:M,bgMagenta:M,bgCyan:M,bgWhite:M,blackBright:M,redBright:M,greenBright:M,yellowBright:M,blueBright:M,magentaBright:M,cyanBright:M,whiteBright:M,bgBlackBright:M,bgRedBright:M,bgGreenBright:M,bgYellowBright:M,bgBlueBright:M,bgMagentaBright:M,bgCyanBright:M,bgWhiteBright:M}};ci.exports=Mo();ci.exports.createColors=Mo;var xu=ci.exports;const Au={},Eu=Object.freeze(Object.defineProperty({__proto__:null,default:Au},Symbol.toStringTag,{value:"Module"})),ye=Cu(Eu);let cn=xu,un=ye,xs=class Oo extends Error{constructor(e,t,r,i,n,a){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),i&&(this.source=i),a&&(this.plugin=a),typeof t!="undefined"&&typeof r!="undefined"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Oo)}setMessage(){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}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=cn.isColorSupported);let r=u=>u,i=u=>u,n=u=>u;if(e){let{bold:u,gray:h,red:f}=cn.createColors(!0);i=m=>u(f(m)),r=m=>h(m),un&&(n=m=>un(m))}let a=t.split(/\r?\n/),l=Math.max(this.line-3,0),o=Math.min(this.line+2,a.length),c=String(o).length;return a.slice(l,o).map((u,h)=>{let f=l+1+h,m=" "+(" "+f).slice(-c)+" | ";if(f===this.line){if(u.length>160){let g=20,d=Math.max(0,this.column-g),y=Math.max(this.column+g,this.endColumn+g),v=u.slice(d,y),A=r(m.replace(/\d/g," "))+u.slice(0,Math.min(this.column-1,g-1)).replace(/[^\t]/g," ");return i(">")+r(m)+n(v)+`
12
+ `+A+i("^")}let p=r(m.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+r(m)+n(u)+`
13
+ `+p+i("^")}return" "+r(m)+n(u)}).join(`
14
14
  `)}toString(){let e=this.showSourceCode();return e&&(e=`
15
15
 
16
16
  `+e+`
17
- `),this.name+": "+this.message+e}};var li=vs;vs.default=vs;const ln={after:`
17
+ `),this.name+": "+this.message+e}};var ui=xs;xs.default=xs;const hn={after:`
18
18
  `,beforeClose:`
19
19
  `,beforeComment:`
20
20
  `,beforeDecl:`
21
21
  `,beforeOpen:" ",beforeRule:`
22
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function gu(s){return s[0].toUpperCase()+s.slice(1)}let Cs=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?r+=e.raws.afterName:i&&(r+=" "),e.nodes)this.block(e,r+i);else{let n=(e.raws.between||"")+(t?";":"");this.builder(r+i+n,e)}}beforeAfter(e,t){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):t==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let i=e.parent,n=0;for(;i&&i.type!=="root";)n+=1,i=i.parent;if(r.includes(`
23
- `)){let a=this.raw(e,null,"indent");if(a.length)for(let l=0;l<n;l++)r+=a}return r}block(e,t){let r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start");let i;e.nodes&&e.nodes.length?(this.body(e),i=this.raw(e,"after")):i=this.raw(e,"after","emptyBody"),i&&this.builder(i),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let r=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let n=e.nodes[i],a=this.raw(n,"before");a&&this.builder(a),this.stringify(n,t!==i||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),i=e.prop+r+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),t&&(i+=";"),this.builder(i,e)}document(e){this.body(e)}raw(e,t,r){let i;if(r||(r=t),t&&(i=e.raws[t],typeof i!="undefined"))return i;let n=e.parent;if(r==="before"&&(!n||n.type==="root"&&n.first===e||n&&n.type==="document"))return"";if(!n)return ln[r];let a=e.root();if(a.rawCache||(a.rawCache={}),typeof a.rawCache[r]!="undefined")return a.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let l="raw"+gu(r);this[l]?i=this[l](a,e):a.walk(o=>{if(i=o.raws[t],typeof i!="undefined")return!1})}return typeof i=="undefined"&&(i=ln[r]),a.rawCache[r]=i,i}rawBeforeClose(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after!="undefined")return t=r.raws.after,t.includes(`
22
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Iu(s){return s[0].toUpperCase()+s.slice(1)}let As=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?r+=e.raws.afterName:i&&(r+=" "),e.nodes)this.block(e,r+i);else{let n=(e.raws.between||"")+(t?";":"");this.builder(r+i+n,e)}}beforeAfter(e,t){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):t==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let i=e.parent,n=0;for(;i&&i.type!=="root";)n+=1,i=i.parent;if(r.includes(`
23
+ `)){let a=this.raw(e,null,"indent");if(a.length)for(let l=0;l<n;l++)r+=a}return r}block(e,t){let r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start");let i;e.nodes&&e.nodes.length?(this.body(e),i=this.raw(e,"after")):i=this.raw(e,"after","emptyBody"),i&&this.builder(i),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let r=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let n=e.nodes[i],a=this.raw(n,"before");a&&this.builder(a),this.stringify(n,t!==i||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),i=e.prop+r+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),t&&(i+=";"),this.builder(i,e)}document(e){this.body(e)}raw(e,t,r){let i;if(r||(r=t),t&&(i=e.raws[t],typeof i!="undefined"))return i;let n=e.parent;if(r==="before"&&(!n||n.type==="root"&&n.first===e||n&&n.type==="document"))return"";if(!n)return hn[r];let a=e.root();if(a.rawCache||(a.rawCache={}),typeof a.rawCache[r]!="undefined")return a.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let l="raw"+Iu(r);this[l]?i=this[l](a,e):a.walk(o=>{if(i=o.raws[t],typeof i!="undefined")return!1})}return typeof i=="undefined"&&(i=hn[r]),a.rawCache[r]=i,i}rawBeforeClose(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after!="undefined")return t=r.raws.after,t.includes(`
24
24
  `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(i=>{if(typeof i.raws.before!="undefined")return r=i.raws.before,r.includes(`
25
25
  `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r=="undefined"?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(i=>{if(typeof i.raws.before!="undefined")return r=i.raws.before,r.includes(`
26
26
  `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r=="undefined"?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(r=>{if(r.type!=="decl"&&(t=r.raws.between,typeof t!="undefined"))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before!="undefined")return t=r.raws.before,t.includes(`
27
27
  `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(r=>{if(typeof r.raws.between!="undefined")return t=r.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(t=r.raws.after,typeof t!="undefined"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let i=r.parent;if(i&&i!==e&&i.parent&&i.parent===e&&typeof r.raws.before!="undefined"){let n=r.raws.before.split(`
28
- `);return t=n[n.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(t=r.raws.semicolon,typeof t!="undefined"))return!1}),t}rawValue(e,t){let r=e[t],i=e.raws[t];return i&&i.value===r?i.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(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)}};var Eo=Cs;Cs.default=Cs;let yu=Eo;function xs(s,e){new yu(e).stringify(s)}var Pr=xs;xs.default=xs;var Lt={};Lt.isClean=Symbol("isClean");Lt.my=Symbol("my");let bu=li,wu=Eo,Su=Pr,{isClean:ut,my:vu}=Lt;function As(s,e){let t=new s.constructor;for(let r in s){if(!Object.prototype.hasOwnProperty.call(s,r)||r==="proxyCache")continue;let i=s[r],n=typeof i;r==="parent"&&n==="object"?e&&(t[r]=e):r==="source"?t[r]=i:Array.isArray(i)?t[r]=i.map(a=>As(a,t)):(n==="object"&&i!==null&&(i=As(i)),t[r]=i)}return t}function Ae(s,e){if(e&&typeof e.offset!="undefined")return e.offset;let t=1,r=1,i=0;for(let n=0;n<s.length;n++){if(r===e.line&&t===e.column){i=n;break}s[n]===`
29
- `?(t=1,r+=1):t+=1}return i}let Is=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[ut]=!1,this[vu]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let r of e[t])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=As(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new bu(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markClean(){this[ut]=!0}markDirty(){if(this[ut]){this[ut]=!1;let e=this;for(;e=e.parent;)e[ut]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css,n=r.slice(Ae(r,this.source.start),Ae(r,this.source.end)).indexOf(e.word);n!==-1&&(t=this.positionInside(n))}return t}positionInside(e){let t=this.source.start.column,r=this.source.start.line,i="document"in this.source.input?this.source.input.document:this.source.input.css,n=Ae(i,this.source.start),a=n+e;for(let l=n;l<a;l++)i[l]===`
30
- `?(t=1,r+=1):t+=1;return{column:t,line:r,offset:a}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:Ae(t,this.source.start)},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:Ae(t,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(e.word){let a=t.slice(Ae(t,this.source.start),Ae(t,this.source.end)).indexOf(e.word);a!==-1&&(r=this.positionInside(a),i=this.positionInside(a+e.word.length))}else e.start?r={column:e.start.column,line:e.start.line,offset:Ae(t,e.start)}:e.index&&(r=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line,offset:Ae(t,e.end)}:typeof e.endIndex=="number"?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<r.line||i.line===r.line&&i.column<=r.column)&&(i={column:r.column+1,line:r.line,offset:r.offset+1}),{end:i,start:r}}raw(e,t){return new wu().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let i of e)i===this?r=!0:r?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let r={},i=t==null;t=t||new Map;let n=0;for(let a in this){if(!Object.prototype.hasOwnProperty.call(this,a)||a==="parent"||a==="proxyCache")continue;let l=this[a];if(Array.isArray(l))r[a]=l.map(o=>typeof o=="object"&&o.toJSON?o.toJSON(null,t):o);else if(typeof l=="object"&&l.toJSON)r[a]=l.toJSON(null,t);else if(a==="source"){if(l==null)continue;let o=t.get(l.input);o==null&&(o=n,t.set(l.input,n),n++),r[a]={end:l.end,inputId:o,start:l.start}}else r[a]=l}return i&&(r.inputs=[...t.keys()].map(a=>a.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Su){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r={}){let i={node:this};for(let n in r)i[n]=r[n];return e.warn(t,i)}};var _r=Is;Is.default=Is;let Cu=_r,Es=class extends Cu{constructor(e){super(e),this.type="comment"}};var zr=Es;Es.default=Es;let xu=_r,$s=class extends xu{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value!="undefined"&&typeof e.value!="string"&&(e=oe(x({},e),{value:String(e.value)})),super(e),this.type="decl"}};var Fr=$s;$s.default=$s;let $o=zr,Ro=Fr,Au=_r,{isClean:Mo,my:Oo}=Lt,ci,To,No,ui;function ko(s){return s.map(e=>(e.nodes&&(e.nodes=ko(e.nodes)),delete e.source,e))}function Do(s){if(s[Mo]=!1,s.proxyOf.nodes)for(let e of s.proxyOf.nodes)Do(e)}let $e=class Lo extends Au{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let i of r)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,i;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],i=e(this.proxyOf.nodes[r],r),i!==!1);)this.indexes[t]+=1;return delete this.indexes[t],i}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...r)=>e[t](...r.map(i=>typeof i=="function"?(n,a)=>i(n.toProxy(),a):i)):t==="every"||t==="some"?r=>e[t]((i,...n)=>r(i.toProxy(),...n)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let a of i)this.proxyOf.nodes.splice(r+1,0,a);let n;for(let a in this.indexes)n=this.indexes[a],r<n&&(this.indexes[a]=n+i.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),i=r===0?"prepend":!1,n=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let l of n)this.proxyOf.nodes.splice(r,0,l);let a;for(let l in this.indexes)a=this.indexes[l],r<=a&&(this.indexes[l]=a+n.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=ko(To(e).nodes);else if(typeof e=="undefined")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value=="undefined")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Ro(e)]}else if(e.selector||e.selectors)e=[new ui(e)];else if(e.name)e=[new ci(e)];else if(e.text)e=[new $o(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[Oo]||Lo.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[Mo]&&Do(i),i.raws||(i.raws={}),typeof i.raws.before=="undefined"&&t&&typeof t.raws.before!="undefined"&&(i.raws.before=t.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let i of r)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(i=>{t.props&&!t.props.includes(i.prop)||t.fast&&!i.value.includes(t.fast)||(i.value=i.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let i;try{i=e(t,r)}catch(n){throw t.addToError(n)}return i!==!1&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,i)}):this.walk((r,i)=>{if(r.type==="atrule"&&r.name===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="atrule")return t(r,i)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,i)}):this.walk((r,i)=>{if(r.type==="decl"&&r.prop===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="decl")return t(r,i)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,i)}):this.walk((r,i)=>{if(r.type==="rule"&&r.selector===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="rule")return t(r,i)}))}};$e.registerParse=s=>{To=s};$e.registerRule=s=>{ui=s};$e.registerAtRule=s=>{ci=s};$e.registerRoot=s=>{No=s};var He=$e;$e.default=$e;$e.rebuild=s=>{s.type==="atrule"?Object.setPrototypeOf(s,ci.prototype):s.type==="rule"?Object.setPrototypeOf(s,ui.prototype):s.type==="decl"?Object.setPrototypeOf(s,Ro.prototype):s.type==="comment"?Object.setPrototypeOf(s,$o.prototype):s.type==="root"&&Object.setPrototypeOf(s,No.prototype),s[Oo]=!0,s.nodes&&s.nodes.forEach(e=>{$e.rebuild(e)})};let Po=He,Ir=class extends Po{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var hi=Ir;Ir.default=Ir;Po.registerAtRule(Ir);let Iu=He,_o,zo,It=class extends Iu{constructor(e){super(x({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new _o(new zo,this,e).stringify()}};It.registerLazyResult=s=>{_o=s};It.registerProcessor=s=>{zo=s};var di=It;It.default=It;let Eu="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",$u=(s=21)=>{let e="",t=s|0;for(;t--;)e+=Eu[Math.random()*64|0];return e};var Ru={nanoid:$u};let{existsSync:Mu,readFileSync:Ou}=ye,{dirname:is,join:Tu}=ye,{SourceMapConsumer:cn,SourceMapGenerator:un}=ye;function Nu(s){return Buffer?Buffer.from(s,"base64").toString():window.atob(s)}let Rs=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,i=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=is(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new cn(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/,a=e.match(i)||e.match(n);if(a)return decodeURIComponent(e.substr(a[0].length));let l=e.match(t)||e.match(r);if(l)return Nu(e.substr(l[0].length));let o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let r=e.lastIndexOf(t.pop()),i=e.indexOf("*/",r);r>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,i)))}loadFile(e){if(this.root=is(e),Mu(e))return this.mapFile=e,Ou(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let r=t(e);if(r){let i=this.loadFile(r);if(!i)throw new Error("Unable to load previous source map: "+r.toString());return i}}else{if(t instanceof cn)return un.fromSourceMap(t).toString();if(t instanceof un)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){let r=this.annotation;return e&&(r=Tu(is(e),r)),this.loadFile(r)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Fo=Rs;Rs.default=Rs;let{nanoid:ku}=Ru,{isAbsolute:Ms,resolve:Os}=ye,{SourceMapConsumer:Du,SourceMapGenerator:Lu}=ye,{fileURLToPath:hn,pathToFileURL:Jt}=ye,dn=li,Pu=Fo,ns=ye,os=Symbol("lineToIndexCache"),_u=!!(Du&&Lu),fn=!!(Os&&Ms);function pn(s){if(s[os])return s[os];let e=s.css.split(`
31
- `),t=new Array(e.length),r=0;for(let i=0,n=e.length;i<n;i++)t[i]=r,r+=e[i].length+1;return s[os]=t,t}let Er=class{get from(){return this.file||this.id}constructor(e,t={}){if(e===null||typeof e=="undefined"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!fn||/^\w+:\/\//.test(t.from)||Ms(t.from)?this.file=t.from:this.file=Os(t.from)),fn&&_u){let r=new Pu(this.css,t);if(r.text){this.map=r;let i=r.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+ku(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,i={}){let n,a,l,o,u;if(t&&typeof t=="object"){let h=t,d=r;if(typeof h.offset=="number"){o=h.offset;let f=this.fromOffset(o);t=f.line,r=f.col}else t=h.line,r=h.column,o=this.fromLineAndColumn(t,r);if(typeof d.offset=="number"){l=d.offset;let f=this.fromOffset(l);a=f.line,n=f.col}else a=d.line,n=d.column,l=this.fromLineAndColumn(d.line,d.column)}else if(r)o=this.fromLineAndColumn(t,r);else{o=t;let h=this.fromOffset(o);t=h.line,r=h.col}let c=this.origin(t,r,a,n);return c?u=new dn(e,c.endLine===void 0?c.line:{column:c.column,line:c.line},c.endLine===void 0?c.column:{column:c.endColumn,line:c.endLine},c.source,c.file,i.plugin):u=new dn(e,a===void 0?t:{column:r,line:t},a===void 0?r:{column:n,line:a},this.css,this.file,i.plugin),u.input={column:r,endColumn:n,endLine:a,endOffset:l,line:t,offset:o,source:this.css},this.file&&(Jt&&(u.input.url=Jt(this.file).toString()),u.input.file=this.file),u}fromLineAndColumn(e,t){return pn(this)[e-1]+t-1}fromOffset(e){let t=pn(this),r=t[t.length-1],i=0;if(e>=r)i=t.length-1;else{let n=t.length-2,a;for(;i<n;)if(a=i+(n-i>>1),e<t[a])n=a-1;else if(e>=t[a+1])i=a+1;else{i=a;break}}return{col:e-t[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Os(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,i){if(!this.map)return!1;let n=this.map.consumer(),a=n.originalPositionFor({column:t,line:e});if(!a.source)return!1;let l;typeof r=="number"&&(l=n.originalPositionFor({column:i,line:r}));let o;Ms(a.source)?o=Jt(a.source):o=new URL(a.source,this.map.consumer().sourceRoot||Jt(this.map.mapFile));let u={column:a.column,endColumn:l&&l.column,endLine:l&&l.line,line:a.line,url:o.toString()};if(o.protocol==="file:")if(hn)u.file=hn(o);else throw new Error("file: protocol is not available in this PostCSS build");let c=n.sourceContentFor(a.source);return c&&(u.source=c),u}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map=x({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};var Br=Er;Er.default=Er;ns&&ns.registerInput&&ns.registerInput(Er);let Bo=He,Wo,Ho,tt=class extends Bo{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let i=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let n of i)n.raws.before=t.raws.before}return i}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new Wo(new Ho,this,e).stringify()}};tt.registerLazyResult=s=>{Wo=s};tt.registerProcessor=s=>{Ho=s};var Pt=tt;tt.default=tt;Bo.registerRoot(tt);let Et={comma(s){return Et.split(s,[","],!0)},space(s){let e=[" ",`
32
- `," "];return Et.split(s,e)},split(s,e,t){let r=[],i="",n=!1,a=0,l=!1,o="",u=!1;for(let c of s)u?u=!1:c==="\\"?u=!0:l?c===o&&(l=!1):c==='"'||c==="'"?(l=!0,o=c):c==="("?a+=1:c===")"?a>0&&(a-=1):a===0&&e.includes(c)&&(n=!0),n?(i!==""&&r.push(i.trim()),i="",n=!1):i+=c;return(t||i!=="")&&r.push(i.trim()),r}};var Uo=Et;Et.default=Et;let Vo=He,zu=Uo,$r=class extends Vo{get selectors(){return zu.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};var fi=$r;$r.default=$r;Vo.registerRule($r);let Fu=hi,Bu=zr,Wu=Fr,Hu=Br,Uu=Fo,Vu=Pt,ju=fi;function $t(s,e){if(Array.isArray(s))return s.map(a=>$t(a));let i=s,{inputs:t}=i,r=Ye(i,["inputs"]);if(t){e=[];for(let a of t){let l=oe(x({},a),{__proto__:Hu.prototype});l.map&&(l.map=oe(x({},l.map),{__proto__:Uu.prototype})),e.push(l)}}if(r.nodes&&(r.nodes=s.nodes.map(a=>$t(a,e))),r.source){let n=r.source,{inputId:a}=n,l=Ye(n,["inputId"]);r.source=l,a!=null&&(r.source.input=e[a])}if(r.type==="root")return new Vu(r);if(r.type==="decl")return new Wu(r);if(r.type==="rule")return new ju(r);if(r.type==="comment")return new Bu(r);if(r.type==="atrule")return new Fu(r);throw new Error("Unknown node type: "+s.type)}var Gu=$t;$t.default=$t;let{dirname:yr,relative:jo,resolve:Go,sep:Yo}=ye,{SourceMapConsumer:Zo,SourceMapGenerator:br}=ye,{pathToFileURL:mn}=ye,Yu=Br,Zu=!!(Zo&&br),Ju=!!(yr&&Go&&jo&&Yo),Xu=class{constructor(e,t,r,i){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let 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";let t=`
28
+ `);return t=n[n.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(t=r.raws.semicolon,typeof t!="undefined"))return!1}),t}rawValue(e,t){let r=e[t],i=e.raws[t];return i&&i.value===r?i.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(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)}};var To=As;As.default=As;let $u=To;function Es(s,e){new $u(e).stringify(s)}var zr=Es;Es.default=Es;var Lt={};Lt.isClean=Symbol("isClean");Lt.my=Symbol("my");let Ru=ui,Mu=To,Ou=zr,{isClean:ut,my:Tu}=Lt;function Is(s,e){let t=new s.constructor;for(let r in s){if(!Object.prototype.hasOwnProperty.call(s,r)||r==="proxyCache")continue;let i=s[r],n=typeof i;r==="parent"&&n==="object"?e&&(t[r]=e):r==="source"?t[r]=i:Array.isArray(i)?t[r]=i.map(a=>Is(a,t)):(n==="object"&&i!==null&&(i=Is(i)),t[r]=i)}return t}function Ae(s,e){if(e&&typeof e.offset!="undefined")return e.offset;let t=1,r=1,i=0;for(let n=0;n<s.length;n++){if(r===e.line&&t===e.column){i=n;break}s[n]===`
29
+ `?(t=1,r+=1):t+=1}return i}let $s=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[ut]=!1,this[Tu]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let r of e[t])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=Is(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new Ru(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markClean(){this[ut]=!0}markDirty(){if(this[ut]){this[ut]=!1;let e=this;for(;e=e.parent;)e[ut]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css,n=r.slice(Ae(r,this.source.start),Ae(r,this.source.end)).indexOf(e.word);n!==-1&&(t=this.positionInside(n))}return t}positionInside(e){let t=this.source.start.column,r=this.source.start.line,i="document"in this.source.input?this.source.input.document:this.source.input.css,n=Ae(i,this.source.start),a=n+e;for(let l=n;l<a;l++)i[l]===`
30
+ `?(t=1,r+=1):t+=1;return{column:t,line:r,offset:a}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:Ae(t,this.source.start)},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:Ae(t,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(e.word){let a=t.slice(Ae(t,this.source.start),Ae(t,this.source.end)).indexOf(e.word);a!==-1&&(r=this.positionInside(a),i=this.positionInside(a+e.word.length))}else e.start?r={column:e.start.column,line:e.start.line,offset:Ae(t,e.start)}:e.index&&(r=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line,offset:Ae(t,e.end)}:typeof e.endIndex=="number"?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<r.line||i.line===r.line&&i.column<=r.column)&&(i={column:r.column+1,line:r.line,offset:r.offset+1}),{end:i,start:r}}raw(e,t){return new Mu().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let i of e)i===this?r=!0:r?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let r={},i=t==null;t=t||new Map;let n=0;for(let a in this){if(!Object.prototype.hasOwnProperty.call(this,a)||a==="parent"||a==="proxyCache")continue;let l=this[a];if(Array.isArray(l))r[a]=l.map(o=>typeof o=="object"&&o.toJSON?o.toJSON(null,t):o);else if(typeof l=="object"&&l.toJSON)r[a]=l.toJSON(null,t);else if(a==="source"){if(l==null)continue;let o=t.get(l.input);o==null&&(o=n,t.set(l.input,n),n++),r[a]={end:l.end,inputId:o,start:l.start}}else r[a]=l}return i&&(r.inputs=[...t.keys()].map(a=>a.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Ou){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r={}){let i={node:this};for(let n in r)i[n]=r[n];return e.warn(t,i)}};var Fr=$s;$s.default=$s;let Nu=Fr,Rs=class extends Nu{constructor(e){super(e),this.type="comment"}};var Br=Rs;Rs.default=Rs;let ku=Fr,Ms=class extends ku{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value!="undefined"&&typeof e.value!="string"&&(e=oe(x({},e),{value:String(e.value)})),super(e),this.type="decl"}};var Wr=Ms;Ms.default=Ms;let No=Br,ko=Wr,Du=Fr,{isClean:Do,my:Lo}=Lt,hi,Po,_o,di;function zo(s){return s.map(e=>(e.nodes&&(e.nodes=zo(e.nodes)),delete e.source,e))}function Fo(s){if(s[Do]=!1,s.proxyOf.nodes)for(let e of s.proxyOf.nodes)Fo(e)}let $e=class Bo extends Du{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let i of r)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,i;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],i=e(this.proxyOf.nodes[r],r),i!==!1);)this.indexes[t]+=1;return delete this.indexes[t],i}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...r)=>e[t](...r.map(i=>typeof i=="function"?(n,a)=>i(n.toProxy(),a):i)):t==="every"||t==="some"?r=>e[t]((i,...n)=>r(i.toProxy(),...n)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let a of i)this.proxyOf.nodes.splice(r+1,0,a);let n;for(let a in this.indexes)n=this.indexes[a],r<n&&(this.indexes[a]=n+i.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),i=r===0?"prepend":!1,n=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let l of n)this.proxyOf.nodes.splice(r,0,l);let a;for(let l in this.indexes)a=this.indexes[l],r<=a&&(this.indexes[l]=a+n.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=zo(Po(e).nodes);else if(typeof e=="undefined")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value=="undefined")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new ko(e)]}else if(e.selector||e.selectors)e=[new di(e)];else if(e.name)e=[new hi(e)];else if(e.text)e=[new No(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[Lo]||Bo.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[Do]&&Fo(i),i.raws||(i.raws={}),typeof i.raws.before=="undefined"&&t&&typeof t.raws.before!="undefined"&&(i.raws.before=t.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let i of r)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(i=>{t.props&&!t.props.includes(i.prop)||t.fast&&!i.value.includes(t.fast)||(i.value=i.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let i;try{i=e(t,r)}catch(n){throw t.addToError(n)}return i!==!1&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,i)}):this.walk((r,i)=>{if(r.type==="atrule"&&r.name===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="atrule")return t(r,i)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,i)}):this.walk((r,i)=>{if(r.type==="decl"&&r.prop===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="decl")return t(r,i)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,i)}):this.walk((r,i)=>{if(r.type==="rule"&&r.selector===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="rule")return t(r,i)}))}};$e.registerParse=s=>{Po=s};$e.registerRule=s=>{di=s};$e.registerAtRule=s=>{hi=s};$e.registerRoot=s=>{_o=s};var He=$e;$e.default=$e;$e.rebuild=s=>{s.type==="atrule"?Object.setPrototypeOf(s,hi.prototype):s.type==="rule"?Object.setPrototypeOf(s,di.prototype):s.type==="decl"?Object.setPrototypeOf(s,ko.prototype):s.type==="comment"?Object.setPrototypeOf(s,No.prototype):s.type==="root"&&Object.setPrototypeOf(s,_o.prototype),s[Lo]=!0,s.nodes&&s.nodes.forEach(e=>{$e.rebuild(e)})};let Wo=He,Ir=class extends Wo{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var fi=Ir;Ir.default=Ir;Wo.registerAtRule(Ir);let Lu=He,Ho,Uo,Et=class extends Lu{constructor(e){super(x({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new Ho(new Uo,this,e).stringify()}};Et.registerLazyResult=s=>{Ho=s};Et.registerProcessor=s=>{Uo=s};var pi=Et;Et.default=Et;let Pu="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",_u=(s=21)=>{let e="",t=s|0;for(;t--;)e+=Pu[Math.random()*64|0];return e};var zu={nanoid:_u};let{existsSync:Fu,readFileSync:Bu}=ye,{dirname:os,join:Wu}=ye,{SourceMapConsumer:dn,SourceMapGenerator:fn}=ye;function Hu(s){return Buffer?Buffer.from(s,"base64").toString():window.atob(s)}let Os=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,i=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=os(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new dn(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/,a=e.match(i)||e.match(n);if(a)return decodeURIComponent(e.substr(a[0].length));let l=e.match(t)||e.match(r);if(l)return Hu(e.substr(l[0].length));let o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let r=e.lastIndexOf(t.pop()),i=e.indexOf("*/",r);r>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,i)))}loadFile(e){if(this.root=os(e),Fu(e))return this.mapFile=e,Bu(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let r=t(e);if(r){let i=this.loadFile(r);if(!i)throw new Error("Unable to load previous source map: "+r.toString());return i}}else{if(t instanceof dn)return fn.fromSourceMap(t).toString();if(t instanceof fn)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){let r=this.annotation;return e&&(r=Wu(os(e),r)),this.loadFile(r)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Vo=Os;Os.default=Os;let{nanoid:Uu}=zu,{isAbsolute:Ts,resolve:Ns}=ye,{SourceMapConsumer:Vu,SourceMapGenerator:ju}=ye,{fileURLToPath:pn,pathToFileURL:Jt}=ye,mn=ui,Gu=Vo,as=ye,ls=Symbol("lineToIndexCache"),Yu=!!(Vu&&ju),gn=!!(Ns&&Ts);function yn(s){if(s[ls])return s[ls];let e=s.css.split(`
31
+ `),t=new Array(e.length),r=0;for(let i=0,n=e.length;i<n;i++)t[i]=r,r+=e[i].length+1;return s[ls]=t,t}let $r=class{get from(){return this.file||this.id}constructor(e,t={}){if(e===null||typeof e=="undefined"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!gn||/^\w+:\/\//.test(t.from)||Ts(t.from)?this.file=t.from:this.file=Ns(t.from)),gn&&Yu){let r=new Gu(this.css,t);if(r.text){this.map=r;let i=r.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+Uu(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,i={}){let n,a,l,o,c;if(t&&typeof t=="object"){let h=t,f=r;if(typeof h.offset=="number"){o=h.offset;let m=this.fromOffset(o);t=m.line,r=m.col}else t=h.line,r=h.column,o=this.fromLineAndColumn(t,r);if(typeof f.offset=="number"){l=f.offset;let m=this.fromOffset(l);a=m.line,n=m.col}else a=f.line,n=f.column,l=this.fromLineAndColumn(f.line,f.column)}else if(r)o=this.fromLineAndColumn(t,r);else{o=t;let h=this.fromOffset(o);t=h.line,r=h.col}let u=this.origin(t,r,a,n);return u?c=new mn(e,u.endLine===void 0?u.line:{column:u.column,line:u.line},u.endLine===void 0?u.column:{column:u.endColumn,line:u.endLine},u.source,u.file,i.plugin):c=new mn(e,a===void 0?t:{column:r,line:t},a===void 0?r:{column:n,line:a},this.css,this.file,i.plugin),c.input={column:r,endColumn:n,endLine:a,endOffset:l,line:t,offset:o,source:this.css},this.file&&(Jt&&(c.input.url=Jt(this.file).toString()),c.input.file=this.file),c}fromLineAndColumn(e,t){return yn(this)[e-1]+t-1}fromOffset(e){let t=yn(this),r=t[t.length-1],i=0;if(e>=r)i=t.length-1;else{let n=t.length-2,a;for(;i<n;)if(a=i+(n-i>>1),e<t[a])n=a-1;else if(e>=t[a+1])i=a+1;else{i=a;break}}return{col:e-t[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Ns(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,i){if(!this.map)return!1;let n=this.map.consumer(),a=n.originalPositionFor({column:t,line:e});if(!a.source)return!1;let l;typeof r=="number"&&(l=n.originalPositionFor({column:i,line:r}));let o;Ts(a.source)?o=Jt(a.source):o=new URL(a.source,this.map.consumer().sourceRoot||Jt(this.map.mapFile));let c={column:a.column,endColumn:l&&l.column,endLine:l&&l.line,line:a.line,url:o.toString()};if(o.protocol==="file:")if(pn)c.file=pn(o);else throw new Error("file: protocol is not available in this PostCSS build");let u=n.sourceContentFor(a.source);return u&&(c.source=u),c}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map=x({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};var Hr=$r;$r.default=$r;as&&as.registerInput&&as.registerInput($r);let jo=He,Go,Yo,tt=class extends jo{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let i=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let n of i)n.raws.before=t.raws.before}return i}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new Go(new Yo,this,e).stringify()}};tt.registerLazyResult=s=>{Go=s};tt.registerProcessor=s=>{Yo=s};var Pt=tt;tt.default=tt;jo.registerRoot(tt);let It={comma(s){return It.split(s,[","],!0)},space(s){let e=[" ",`
32
+ `," "];return It.split(s,e)},split(s,e,t){let r=[],i="",n=!1,a=0,l=!1,o="",c=!1;for(let u of s)c?c=!1:u==="\\"?c=!0:l?u===o&&(l=!1):u==='"'||u==="'"?(l=!0,o=u):u==="("?a+=1:u===")"?a>0&&(a-=1):a===0&&e.includes(u)&&(n=!0),n?(i!==""&&r.push(i.trim()),i="",n=!1):i+=u;return(t||i!=="")&&r.push(i.trim()),r}};var Zo=It;It.default=It;let Jo=He,Zu=Zo,Rr=class extends Jo{get selectors(){return Zu.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};var mi=Rr;Rr.default=Rr;Jo.registerRule(Rr);let Ju=fi,qu=Br,Xu=Wr,Ku=Hr,Qu=Vo,eh=Pt,th=mi;function $t(s,e){if(Array.isArray(s))return s.map(a=>$t(a));let i=s,{inputs:t}=i,r=Ye(i,["inputs"]);if(t){e=[];for(let a of t){let l=oe(x({},a),{__proto__:Ku.prototype});l.map&&(l.map=oe(x({},l.map),{__proto__:Qu.prototype})),e.push(l)}}if(r.nodes&&(r.nodes=s.nodes.map(a=>$t(a,e))),r.source){let n=r.source,{inputId:a}=n,l=Ye(n,["inputId"]);r.source=l,a!=null&&(r.source.input=e[a])}if(r.type==="root")return new eh(r);if(r.type==="decl")return new Xu(r);if(r.type==="rule")return new th(r);if(r.type==="comment")return new qu(r);if(r.type==="atrule")return new Ju(r);throw new Error("Unknown node type: "+s.type)}var rh=$t;$t.default=$t;let{dirname:yr,relative:qo,resolve:Xo,sep:Ko}=ye,{SourceMapConsumer:Qo,SourceMapGenerator:br}=ye,{pathToFileURL:bn}=ye,sh=Hr,ih=!!(Qo&&br),nh=!!(yr&&Xo&&qo&&Ko),oh=class{constructor(e,t,r,i){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let 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";let t=`
33
33
  `;this.css.includes(`\r
34
34
  `)&&(t=`\r
35
- `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||yr(e.file),i;this.mapOpts.sourcesContent===!1?(i=new Zo(e.text),i.sourcesContent&&(i.sourcesContent=null)):i=e.consumer(),this.map.applySourceMap(i,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),Ju&&Zu&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=br.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new br({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]}generateString(){this.css="",this.map=new br({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,r="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},n,a;this.stringify(this.root,(l,o,u)=>{if(this.css+=l,o&&u!=="end"&&(i.generated.line=e,i.generated.column=t-1,o.source&&o.source.start?(i.source=this.sourcePath(o),i.original.line=o.source.start.line,i.original.column=o.source.start.column-1,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,this.map.addMapping(i))),a=l.match(/\n/g),a?(e+=a.length,n=l.lastIndexOf(`
36
- `),t=l.length-n):t+=l.length,o&&u!=="start"){let c=o.parent||{raws:{}};(!(o.type==="decl"||o.type==="atrule"&&!o.nodes)||o!==c.last||c.raws.semicolon)&&(o.source&&o.source.end?(i.source=this.sourcePath(o),i.original.line=o.source.end.line,i.original.column=o.source.end.column-1,i.generated.line=e,i.generated.column=t-2,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=t-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?yr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=yr(Go(r,this.mapOpts.annotation)));let i=jo(r,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new Yu(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(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))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(mn){let r=mn(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Yo==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};var Jo=Xu;const as="'".charCodeAt(0),gn='"'.charCodeAt(0),Xt="\\".charCodeAt(0),yn="/".charCodeAt(0),Kt=`
37
- `.charCodeAt(0),ht=" ".charCodeAt(0),qt="\f".charCodeAt(0),Qt=" ".charCodeAt(0),er="\r".charCodeAt(0),Ku="[".charCodeAt(0),qu="]".charCodeAt(0),Qu="(".charCodeAt(0),eh=")".charCodeAt(0),th="{".charCodeAt(0),rh="}".charCodeAt(0),sh=";".charCodeAt(0),ih="*".charCodeAt(0),nh=":".charCodeAt(0),oh="@".charCodeAt(0),tr=/[\t\n\f\r "#'()/;[\\\]{}]/g,rr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,ah=/.[\r\n"'(/\\]/,bn=/[\da-f]/i;var lh=function(e,t={}){let r=e.css.valueOf(),i=t.ignoreErrors,n,a,l,o,u,c,h,d,f,m,g=r.length,p=0,b=[],C=[];function E(){return p}function S($){throw e.error("Unclosed "+$,p)}function w(){return C.length===0&&p>=g}function A($){if(C.length)return C.pop();if(p>=g)return;let N=$?$.ignoreUnclosed:!1;switch(n=r.charCodeAt(p),n){case Kt:case ht:case Qt:case er:case qt:{o=p;do o+=1,n=r.charCodeAt(o);while(n===ht||n===Kt||n===Qt||n===er||n===qt);c=["space",r.slice(p,o)],p=o-1;break}case Ku:case qu:case th:case rh:case nh:case sh:case eh:{let _=String.fromCharCode(n);c=[_,_,p];break}case Qu:{if(m=b.length?b.pop()[1]:"",f=r.charCodeAt(p+1),m==="url"&&f!==as&&f!==gn&&f!==ht&&f!==Kt&&f!==Qt&&f!==qt&&f!==er){o=p;do{if(h=!1,o=r.indexOf(")",o+1),o===-1)if(i||N){o=p;break}else S("bracket");for(d=o;r.charCodeAt(d-1)===Xt;)d-=1,h=!h}while(h);c=["brackets",r.slice(p,o+1),p,o],p=o}else o=r.indexOf(")",p+1),a=r.slice(p,o+1),o===-1||ah.test(a)?c=["(","(",p]:(c=["brackets",a,p,o],p=o);break}case as:case gn:{u=n===as?"'":'"',o=p;do{if(h=!1,o=r.indexOf(u,o+1),o===-1)if(i||N){o=p+1;break}else S("string");for(d=o;r.charCodeAt(d-1)===Xt;)d-=1,h=!h}while(h);c=["string",r.slice(p,o+1),p,o],p=o;break}case oh:{tr.lastIndex=p+1,tr.test(r),tr.lastIndex===0?o=r.length-1:o=tr.lastIndex-2,c=["at-word",r.slice(p,o+1),p,o],p=o;break}case Xt:{for(o=p,l=!0;r.charCodeAt(o+1)===Xt;)o+=1,l=!l;if(n=r.charCodeAt(o+1),l&&n!==yn&&n!==ht&&n!==Kt&&n!==Qt&&n!==er&&n!==qt&&(o+=1,bn.test(r.charAt(o)))){for(;bn.test(r.charAt(o+1));)o+=1;r.charCodeAt(o+1)===ht&&(o+=1)}c=["word",r.slice(p,o+1),p,o],p=o;break}default:{n===yn&&r.charCodeAt(p+1)===ih?(o=r.indexOf("*/",p+2)+1,o===0&&(i||N?o=r.length:S("comment")),c=["comment",r.slice(p,o+1),p,o],p=o):(rr.lastIndex=p+1,rr.test(r),rr.lastIndex===0?o=r.length-1:o=rr.lastIndex-2,c=["word",r.slice(p,o+1),p,o],b.push(c),p=o);break}}return p++,c}function v($){C.push($)}return{back:v,endOfFile:w,nextToken:A,position:E}};let ch=hi,uh=zr,hh=Fr,dh=Pt,wn=fi,fh=lh;const Sn={empty:!0,space:!0};function ph(s){for(let e=s.length-1;e>=0;e--){let t=s[e],r=t[3]||t[2];if(r)return r}}let mh=class{constructor(e){this.input=e,this.root=new dh,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new ch;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,i,n,a=!1,l=!1,o=[],u=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?u.push(r==="("?")":"]"):r==="{"&&u.length>0?u.push("}"):r===u[u.length-1]&&u.pop(),u.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){l=!0;break}else if(r==="}"){if(o.length>0){for(n=o.length-1,i=o[n];i&&i[0]==="space";)i=o[--n];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}else o.push(e);else o.push(e);if(this.tokenizer.endOfFile()){a=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(o),o.length?(t.raws.afterName=this.spacesAndCommentsFromStart(o),this.raw(t,"params",o),a&&(e=o[o.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)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,i;for(let n=t-1;n>=0&&(i=e[n],!(i[0]!=="space"&&(r+=1,r===2)));n--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0,r,i,n;for(let[a,l]of e.entries()){if(i=l,n=i[0],n==="("&&(t+=1),n===")"&&(t-=1),t===0&&n===":")if(!r)this.doubleColon(i);else{if(r[0]==="word"&&r[1]==="progid")continue;return a}r=i}return!1}comment(e){let t=new uh;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let i=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=i[2],t.raws.left=i[1],t.raws.right=i[3]}}createTokenizer(){this.tokenizer=fh(this.input)}decl(e,t){let r=new hh;this.init(r,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||ph(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let n;for(;e.length;)if(n=e.shift(),n[0]===":"){r.raws.between+=n[1];break}else n[0]==="word"&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let a=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)a.push(e.shift());this.precheckMissedSemicolon(e);for(let u=e.length-1;u>=0;u--){if(n=e[u],n[1].toLowerCase()==="!important"){r.important=!0;let c=this.stringFrom(e,u);c=this.spacesFromEnd(e)+c,c!==" !important"&&(r.raws.important=c);break}else if(n[1].toLowerCase()==="important"){let c=e.slice(0),h="";for(let d=u;d>0;d--){let f=c[d][0];if(h.trim().startsWith("!")&&f!=="space")break;h=c.pop()[1]+h}h.trim().startsWith("!")&&(r.important=!0,r.raws.important=h,e=c)}if(n[0]!=="space"&&n[0]!=="comment")break}e.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(r.raws.between+=a.map(u=>u[1]).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new wn;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(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)}endFile(){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())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(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)}other(e){let t=!1,r=null,i=!1,n=null,a=[],l=e[1].startsWith("--"),o=[],u=e;for(;u;){if(r=u[0],o.push(u),r==="("||r==="[")n||(n=u),a.push(r==="("?")":"]");else if(l&&i&&r==="{")n||(n=u),a.push("}");else if(a.length===0)if(r===";")if(i){this.decl(o,l);return}else break;else if(r==="{"){this.rule(o);return}else if(r==="}"){this.tokenizer.back(o.pop()),t=!0;break}else r===":"&&(i=!0);else r===a[a.length-1]&&(a.pop(),a.length===0&&(n=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(n),t&&i){if(!l)for(;o.length&&(u=o[o.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(o.pop());this.decl(o,l)}else this.unknownWord(o)}parse(){let e;for(;!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()}precheckMissedSemicolon(){}raw(e,t,r,i){let n,a,l=r.length,o="",u=!0,c,h;for(let d=0;d<l;d+=1)n=r[d],a=n[0],a==="space"&&d===l-1&&!i?u=!1:a==="comment"?(h=r[d-1]?r[d-1][0]:"empty",c=r[d+1]?r[d+1][0]:"empty",!Sn[h]&&!Sn[c]?o.slice(-1)===","?u=!1:o+=n[1]:u=!1):o+=n[1];if(!u){let d=r.reduce((f,m)=>f+m[1],"");e.raws[t]={raw:d,value:o}}e[t]=o}rule(e){e.pop();let t=new wn;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let i=t;i<e.length;i++)r+=e[i][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var gh=mh;let yh=He,bh=Br,wh=gh;function Rr(s,e){let t=new bh(s,e),r=new wh(t);try{r.parse()}catch(i){throw i}return r.root}var pi=Rr;Rr.default=Rr;yh.registerParse(Rr);let Ts=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}toString(){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}};var Xo=Ts;Ts.default=Ts;let Sh=Xo,Ns=class{get content(){return this.css}constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css="",this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new Sh(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}};var mi=Ns;Ns.default=Ns;let vh=He,Ch=di,xh=Jo,Ah=pi,vn=mi,Ih=Pt,Eh=Pr,{isClean:Se,my:$h}=Lt;const Rh={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Mh={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},Oh={Once:!0,postcssPlugin:!0,prepare:!0},rt=0;function dt(s){return typeof s=="object"&&typeof s.then=="function"}function Ko(s){let e=!1,t=Rh[s.type];return s.type==="decl"?e=s.prop.toLowerCase():s.type==="atrule"&&(e=s.name.toLowerCase()),e&&s.append?[t,t+"-"+e,rt,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:s.append?[t,rt,t+"Exit"]:[t,t+"Exit"]}function Cn(s){let e;return s.type==="document"?e=["Document",rt,"DocumentExit"]:s.type==="root"?e=["Root",rt,"RootExit"]:e=Ko(s),{eventIndex:0,events:e,iterator:0,node:s,visitorIndex:0,visitors:[]}}function ks(s){return s[Se]=!1,s.nodes&&s.nodes.forEach(e=>ks(e)),s}let Ds={},st=class qo{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,t,r){this.stringified=!1,this.processed=!1;let i;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))i=ks(t);else if(t instanceof qo||t instanceof vn)i=ks(t.root),t.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let n=Ah;r.syntax&&(n=r.syntax.parse),r.parser&&(n=r.parser),n.parse&&(n=n.parse);try{i=n(t,r)}catch(a){this.processed=!0,this.error=a}i&&!i[$h]&&vh.rebuild(i)}this.result=new vn(e,i,r),this.helpers=oe(x({},Ds),{postcss:Ds,result:this.result}),this.plugins=this.processor.plugins.map(n=>typeof n=="object"&&n.prepare?x(x({},n),n.prepare(this.result)):n)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(t,r,i)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([t,i])};for(let t of this.plugins)if(typeof t=="object")for(let r in t){if(!Mh[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Oh[r])if(typeof t[r]=="object")for(let i in t[r])i==="*"?e(t,r,t[r][i]):e(t,r+"-"+i.toLowerCase(),t[r][i]);else typeof t[r]=="function"&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(dt(r))try{await r}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Se];){e[Se]=!0;let t=[Cn(e)];for(;t.length>0;){let r=this.visitTick(t);if(dt(r))try{await r}catch(i){let n=t[t.length-1].node;throw this.handleError(i,n)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let i=e.nodes.map(n=>r(n,this.helpers));await Promise.all(i)}else await r(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return dt(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=Eh;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new xh(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(dt(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Se];)e[Se]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,i]of e){this.result.lastPlugin=r;let n;try{n=i(t,this.helpers)}catch(a){throw this.handleError(a,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(dt(n))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:i}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[a,l]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=a;try{return l(r.toProxy(),this.helpers)}catch(o){throw this.handleError(o,r)}}if(t.iterator!==0){let a=t.iterator,l;for(;l=r.nodes[r.indexes[a]];)if(r.indexes[a]+=1,!l[Se]){l[Se]=!0,e.push(Cn(l));return}t.iterator=0,delete r.indexes[a]}let n=t.events;for(;t.eventIndex<n.length;){let a=n[t.eventIndex];if(t.eventIndex+=1,a===rt){r.nodes&&r.nodes.length&&(r[Se]=!0,t.iterator=r.getIterator());return}else if(this.listeners[a]){t.visitors=this.listeners[a];return}}e.pop()}walkSync(e){e[Se]=!0;let t=Ko(e);for(let r of t)if(r===rt)e.nodes&&e.each(i=>{i[Se]||this.walkSync(i)});else{let i=this.listeners[r];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}};st.registerPostcss=s=>{Ds=s};var Qo=st;st.default=st;Ih.registerLazyResult(st);Ch.registerLazyResult(st);let Th=Jo,Nh=pi;const kh=mi;let Dh=Pr;let Ls=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=Nh;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let i,n=Dh;this.result=new kh(this._processor,i,this._opts),this.result.css=t;let a=this;Object.defineProperty(this.result,"root",{get(){return a.root}});let l=new Th(n,i,this._opts,t);if(l.isMap()){let[o,u]=l.generate();o&&(this.result.css=o),u&&(this.result.map=u)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}};var Lh=Ls;Ls.default=Ls;let Ph=di,_h=Qo,zh=Lh,Fh=Pt,Rt=class{constructor(e=[]){this.version="8.5.6",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)t.push(r);else if(typeof r=="function")t.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new zh(this,e,t):new _h(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var Bh=Rt;Rt.default=Rt;Fh.registerProcessor(Rt);Ph.registerProcessor(Rt);let ea=hi,ta=zr,Wh=He,Hh=li,ra=Fr,sa=di,Uh=Gu,Vh=Br,jh=Qo,Gh=Uo,Yh=_r,Zh=pi,gi=Bh,Jh=mi,ia=Pt,na=fi,Xh=Pr,Kh=Xo;function H(...s){return s.length===1&&Array.isArray(s[0])&&(s=s[0]),new gi(s)}H.plugin=function(e,t){let r=!1;function i(...a){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
35
+ `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||yr(e.file),i;this.mapOpts.sourcesContent===!1?(i=new Qo(e.text),i.sourcesContent&&(i.sourcesContent=null)):i=e.consumer(),this.map.applySourceMap(i,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),nh&&ih&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=br.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new br({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]}generateString(){this.css="",this.map=new br({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,r="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},n,a;this.stringify(this.root,(l,o,c)=>{if(this.css+=l,o&&c!=="end"&&(i.generated.line=e,i.generated.column=t-1,o.source&&o.source.start?(i.source=this.sourcePath(o),i.original.line=o.source.start.line,i.original.column=o.source.start.column-1,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,this.map.addMapping(i))),a=l.match(/\n/g),a?(e+=a.length,n=l.lastIndexOf(`
36
+ `),t=l.length-n):t+=l.length,o&&c!=="start"){let u=o.parent||{raws:{}};(!(o.type==="decl"||o.type==="atrule"&&!o.nodes)||o!==u.last||u.raws.semicolon)&&(o.source&&o.source.end?(i.source=this.sourcePath(o),i.original.line=o.source.end.line,i.original.column=o.source.end.column-1,i.generated.line=e,i.generated.column=t-2,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=t-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?yr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=yr(Xo(r,this.mapOpts.annotation)));let i=qo(r,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new sh(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(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))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(bn){let r=bn(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Ko==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};var ea=oh;const cs="'".charCodeAt(0),wn='"'.charCodeAt(0),qt="\\".charCodeAt(0),Sn="/".charCodeAt(0),Xt=`
37
+ `.charCodeAt(0),ht=" ".charCodeAt(0),Kt="\f".charCodeAt(0),Qt=" ".charCodeAt(0),er="\r".charCodeAt(0),ah="[".charCodeAt(0),lh="]".charCodeAt(0),ch="(".charCodeAt(0),uh=")".charCodeAt(0),hh="{".charCodeAt(0),dh="}".charCodeAt(0),fh=";".charCodeAt(0),ph="*".charCodeAt(0),mh=":".charCodeAt(0),gh="@".charCodeAt(0),tr=/[\t\n\f\r "#'()/;[\\\]{}]/g,rr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,yh=/.[\r\n"'(/\\]/,vn=/[\da-f]/i;var bh=function(e,t={}){let r=e.css.valueOf(),i=t.ignoreErrors,n,a,l,o,c,u,h,f,m,p,g=r.length,d=0,y=[],v=[];function A(){return d}function S($){throw e.error("Unclosed "+$,d)}function w(){return v.length===0&&d>=g}function E($){if(v.length)return v.pop();if(d>=g)return;let N=$?$.ignoreUnclosed:!1;switch(n=r.charCodeAt(d),n){case Xt:case ht:case Qt:case er:case Kt:{o=d;do o+=1,n=r.charCodeAt(o);while(n===ht||n===Xt||n===Qt||n===er||n===Kt);u=["space",r.slice(d,o)],d=o-1;break}case ah:case lh:case hh:case dh:case mh:case fh:case uh:{let _=String.fromCharCode(n);u=[_,_,d];break}case ch:{if(p=y.length?y.pop()[1]:"",m=r.charCodeAt(d+1),p==="url"&&m!==cs&&m!==wn&&m!==ht&&m!==Xt&&m!==Qt&&m!==Kt&&m!==er){o=d;do{if(h=!1,o=r.indexOf(")",o+1),o===-1)if(i||N){o=d;break}else S("bracket");for(f=o;r.charCodeAt(f-1)===qt;)f-=1,h=!h}while(h);u=["brackets",r.slice(d,o+1),d,o],d=o}else o=r.indexOf(")",d+1),a=r.slice(d,o+1),o===-1||yh.test(a)?u=["(","(",d]:(u=["brackets",a,d,o],d=o);break}case cs:case wn:{c=n===cs?"'":'"',o=d;do{if(h=!1,o=r.indexOf(c,o+1),o===-1)if(i||N){o=d+1;break}else S("string");for(f=o;r.charCodeAt(f-1)===qt;)f-=1,h=!h}while(h);u=["string",r.slice(d,o+1),d,o],d=o;break}case gh:{tr.lastIndex=d+1,tr.test(r),tr.lastIndex===0?o=r.length-1:o=tr.lastIndex-2,u=["at-word",r.slice(d,o+1),d,o],d=o;break}case qt:{for(o=d,l=!0;r.charCodeAt(o+1)===qt;)o+=1,l=!l;if(n=r.charCodeAt(o+1),l&&n!==Sn&&n!==ht&&n!==Xt&&n!==Qt&&n!==er&&n!==Kt&&(o+=1,vn.test(r.charAt(o)))){for(;vn.test(r.charAt(o+1));)o+=1;r.charCodeAt(o+1)===ht&&(o+=1)}u=["word",r.slice(d,o+1),d,o],d=o;break}default:{n===Sn&&r.charCodeAt(d+1)===ph?(o=r.indexOf("*/",d+2)+1,o===0&&(i||N?o=r.length:S("comment")),u=["comment",r.slice(d,o+1),d,o],d=o):(rr.lastIndex=d+1,rr.test(r),rr.lastIndex===0?o=r.length-1:o=rr.lastIndex-2,u=["word",r.slice(d,o+1),d,o],y.push(u),d=o);break}}return d++,u}function C($){v.push($)}return{back:C,endOfFile:w,nextToken:E,position:A}};let wh=fi,Sh=Br,vh=Wr,Ch=Pt,Cn=mi,xh=bh;const xn={empty:!0,space:!0};function Ah(s){for(let e=s.length-1;e>=0;e--){let t=s[e],r=t[3]||t[2];if(r)return r}}let Eh=class{constructor(e){this.input=e,this.root=new Ch,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new wh;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,i,n,a=!1,l=!1,o=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?c.push(r==="("?")":"]"):r==="{"&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),c.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){l=!0;break}else if(r==="}"){if(o.length>0){for(n=o.length-1,i=o[n];i&&i[0]==="space";)i=o[--n];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}else o.push(e);else o.push(e);if(this.tokenizer.endOfFile()){a=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(o),o.length?(t.raws.afterName=this.spacesAndCommentsFromStart(o),this.raw(t,"params",o),a&&(e=o[o.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)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,i;for(let n=t-1;n>=0&&(i=e[n],!(i[0]!=="space"&&(r+=1,r===2)));n--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0,r,i,n;for(let[a,l]of e.entries()){if(i=l,n=i[0],n==="("&&(t+=1),n===")"&&(t-=1),t===0&&n===":")if(!r)this.doubleColon(i);else{if(r[0]==="word"&&r[1]==="progid")continue;return a}r=i}return!1}comment(e){let t=new Sh;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let i=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=i[2],t.raws.left=i[1],t.raws.right=i[3]}}createTokenizer(){this.tokenizer=xh(this.input)}decl(e,t){let r=new vh;this.init(r,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||Ah(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let n;for(;e.length;)if(n=e.shift(),n[0]===":"){r.raws.between+=n[1];break}else n[0]==="word"&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let a=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)a.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(n=e[c],n[1].toLowerCase()==="!important"){r.important=!0;let u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u,u!==" !important"&&(r.raws.important=u);break}else if(n[1].toLowerCase()==="important"){let u=e.slice(0),h="";for(let f=c;f>0;f--){let m=u[f][0];if(h.trim().startsWith("!")&&m!=="space")break;h=u.pop()[1]+h}h.trim().startsWith("!")&&(r.important=!0,r.raws.important=h,e=u)}if(n[0]!=="space"&&n[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(r.raws.between+=a.map(c=>c[1]).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Cn;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(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)}endFile(){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())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(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)}other(e){let t=!1,r=null,i=!1,n=null,a=[],l=e[1].startsWith("--"),o=[],c=e;for(;c;){if(r=c[0],o.push(c),r==="("||r==="[")n||(n=c),a.push(r==="("?")":"]");else if(l&&i&&r==="{")n||(n=c),a.push("}");else if(a.length===0)if(r===";")if(i){this.decl(o,l);return}else break;else if(r==="{"){this.rule(o);return}else if(r==="}"){this.tokenizer.back(o.pop()),t=!0;break}else r===":"&&(i=!0);else r===a[a.length-1]&&(a.pop(),a.length===0&&(n=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(n),t&&i){if(!l)for(;o.length&&(c=o[o.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(o.pop());this.decl(o,l)}else this.unknownWord(o)}parse(){let e;for(;!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()}precheckMissedSemicolon(){}raw(e,t,r,i){let n,a,l=r.length,o="",c=!0,u,h;for(let f=0;f<l;f+=1)n=r[f],a=n[0],a==="space"&&f===l-1&&!i?c=!1:a==="comment"?(h=r[f-1]?r[f-1][0]:"empty",u=r[f+1]?r[f+1][0]:"empty",!xn[h]&&!xn[u]?o.slice(-1)===","?c=!1:o+=n[1]:c=!1):o+=n[1];if(!c){let f=r.reduce((m,p)=>m+p[1],"");e.raws[t]={raw:f,value:o}}e[t]=o}rule(e){e.pop();let t=new Cn;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let i=t;i<e.length;i++)r+=e[i][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var Ih=Eh;let $h=He,Rh=Hr,Mh=Ih;function Mr(s,e){let t=new Rh(s,e),r=new Mh(t);try{r.parse()}catch(i){throw i}return r.root}var gi=Mr;Mr.default=Mr;$h.registerParse(Mr);let ks=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}toString(){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}};var ta=ks;ks.default=ks;let Oh=ta,Ds=class{get content(){return this.css}constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css="",this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new Oh(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}};var yi=Ds;Ds.default=Ds;let Th=He,Nh=pi,kh=ea,Dh=gi,An=yi,Lh=Pt,Ph=zr,{isClean:Se,my:_h}=Lt;const zh={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Fh={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Bh={Once:!0,postcssPlugin:!0,prepare:!0},rt=0;function dt(s){return typeof s=="object"&&typeof s.then=="function"}function ra(s){let e=!1,t=zh[s.type];return s.type==="decl"?e=s.prop.toLowerCase():s.type==="atrule"&&(e=s.name.toLowerCase()),e&&s.append?[t,t+"-"+e,rt,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:s.append?[t,rt,t+"Exit"]:[t,t+"Exit"]}function En(s){let e;return s.type==="document"?e=["Document",rt,"DocumentExit"]:s.type==="root"?e=["Root",rt,"RootExit"]:e=ra(s),{eventIndex:0,events:e,iterator:0,node:s,visitorIndex:0,visitors:[]}}function Ls(s){return s[Se]=!1,s.nodes&&s.nodes.forEach(e=>Ls(e)),s}let Ps={},st=class sa{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,t,r){this.stringified=!1,this.processed=!1;let i;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))i=Ls(t);else if(t instanceof sa||t instanceof An)i=Ls(t.root),t.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let n=Dh;r.syntax&&(n=r.syntax.parse),r.parser&&(n=r.parser),n.parse&&(n=n.parse);try{i=n(t,r)}catch(a){this.processed=!0,this.error=a}i&&!i[_h]&&Th.rebuild(i)}this.result=new An(e,i,r),this.helpers=oe(x({},Ps),{postcss:Ps,result:this.result}),this.plugins=this.processor.plugins.map(n=>typeof n=="object"&&n.prepare?x(x({},n),n.prepare(this.result)):n)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(t,r,i)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([t,i])};for(let t of this.plugins)if(typeof t=="object")for(let r in t){if(!Fh[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Bh[r])if(typeof t[r]=="object")for(let i in t[r])i==="*"?e(t,r,t[r][i]):e(t,r+"-"+i.toLowerCase(),t[r][i]);else typeof t[r]=="function"&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(dt(r))try{await r}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Se];){e[Se]=!0;let t=[En(e)];for(;t.length>0;){let r=this.visitTick(t);if(dt(r))try{await r}catch(i){let n=t[t.length-1].node;throw this.handleError(i,n)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let i=e.nodes.map(n=>r(n,this.helpers));await Promise.all(i)}else await r(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return dt(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=Ph;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new kh(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(dt(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Se];)e[Se]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,i]of e){this.result.lastPlugin=r;let n;try{n=i(t,this.helpers)}catch(a){throw this.handleError(a,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(dt(n))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:i}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[a,l]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=a;try{return l(r.toProxy(),this.helpers)}catch(o){throw this.handleError(o,r)}}if(t.iterator!==0){let a=t.iterator,l;for(;l=r.nodes[r.indexes[a]];)if(r.indexes[a]+=1,!l[Se]){l[Se]=!0,e.push(En(l));return}t.iterator=0,delete r.indexes[a]}let n=t.events;for(;t.eventIndex<n.length;){let a=n[t.eventIndex];if(t.eventIndex+=1,a===rt){r.nodes&&r.nodes.length&&(r[Se]=!0,t.iterator=r.getIterator());return}else if(this.listeners[a]){t.visitors=this.listeners[a];return}}e.pop()}walkSync(e){e[Se]=!0;let t=ra(e);for(let r of t)if(r===rt)e.nodes&&e.each(i=>{i[Se]||this.walkSync(i)});else{let i=this.listeners[r];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}};st.registerPostcss=s=>{Ps=s};var ia=st;st.default=st;Lh.registerLazyResult(st);Nh.registerLazyResult(st);let Wh=ea,Hh=gi;const Uh=yi;let Vh=zr;let _s=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=Hh;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let i,n=Vh;this.result=new Uh(this._processor,i,this._opts),this.result.css=t;let a=this;Object.defineProperty(this.result,"root",{get(){return a.root}});let l=new Wh(n,i,this._opts,t);if(l.isMap()){let[o,c]=l.generate();o&&(this.result.css=o),c&&(this.result.map=c)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}};var jh=_s;_s.default=_s;let Gh=pi,Yh=ia,Zh=jh,Jh=Pt,Rt=class{constructor(e=[]){this.version="8.5.6",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)t.push(r);else if(typeof r=="function")t.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Zh(this,e,t):new Yh(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var qh=Rt;Rt.default=Rt;Jh.registerProcessor(Rt);Gh.registerProcessor(Rt);let na=fi,oa=Br,Xh=He,Kh=ui,aa=Wr,la=pi,Qh=rh,ed=Hr,td=ia,rd=Zo,sd=Fr,id=gi,bi=qh,nd=yi,ca=Pt,ua=mi,od=zr,ad=ta;function U(...s){return s.length===1&&Array.isArray(s[0])&&(s=s[0]),new bi(s)}U.plugin=function(e,t){let r=!1;function i(...a){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
38
38
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
39
- https://www.w3ctech.com/topic/2226`));let l=t(...a);return l.postcssPlugin=e,l.postcssVersion=new gi().version,l}let n;return Object.defineProperty(i,"postcss",{get(){return n||(n=i()),n}}),i.process=function(a,l,o){return H([i(o)]).process(a,l)},i};H.stringify=Xh;H.parse=Zh;H.fromJSON=Uh;H.list=Gh;H.comment=s=>new ta(s);H.atRule=s=>new ea(s);H.decl=s=>new ra(s);H.rule=s=>new na(s);H.root=s=>new ia(s);H.document=s=>new sa(s);H.CssSyntaxError=Hh;H.Declaration=ra;H.Container=Wh;H.Processor=gi;H.Document=sa;H.Comment=ta;H.Warning=Kh;H.AtRule=ea;H.Result=Jh;H.Input=Vh;H.Rule=na;H.Root=ia;H.Node=Yh;jh.registerPostcss(H);var qh=H;H.default=H;const X=hu(qh);X.stringify;X.fromJSON;X.plugin;X.parse;X.list;X.document;X.comment;X.atRule;X.rule;X.decl;X.root;X.CssSyntaxError;X.Declaration;X.Container;X.Processor;X.Document;X.Comment;X.Warning;X.AtRule;X.Result;X.Input;X.Rule;X.Root;X.Node;var Qh=Object.defineProperty,ed=(s,e,t)=>e in s?Qh(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,pe=(s,e,t)=>ed(s,typeof e!="symbol"?e+"":e,t);const td=["change","submit","dragstart","drop","pointerdown","pointerup","input","keydown","keyup","keypress","mouseenter","mouseleave","mouseup","mousedown","click","contextmenu","dblclick","focus","blur","touchstart","touchmove","touchend","touchcancel"],rd=["onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmouseout","onmousemove","onfocus","onblur","onkeydown","onkeypress","onkeyup","onchange","oninput","onsubmit","onreset","onselect","oncontextmenu","ontouchstart","ontouchmove","ontouchend","ontouchcancel"],oa=new WeakSet,sd=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(s,e,t){if(sd.call(this,s,e,t),this instanceof Element){const r=s.toLowerCase();td.includes(r)&&oa.add(this)}};const id=EventTarget.prototype.removeEventListener;EventTarget.prototype.removeEventListener=function(s,e,t){id.call(this,s,e,t)};function xn(){document.querySelectorAll("*").forEach(e=>{rd.forEach(t=>{e.hasAttribute(t)&&oa.add(e)})})}try{document.readyState==="complete"||document.readyState==="interactive"?xn():document.addEventListener("DOMContentLoaded",xn)}catch(s){}function nd(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function od(s){if(s.__esModule)return s;var e=s.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(r){var i=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return s[r]}})}),t}var yi={exports:{}},O=String,aa=function(){return{isColorSupported:!1,reset:O,bold:O,dim:O,italic:O,underline:O,inverse:O,hidden:O,strikethrough:O,black:O,red:O,green:O,yellow:O,blue:O,magenta:O,cyan:O,white:O,gray:O,bgBlack:O,bgRed:O,bgGreen:O,bgYellow:O,bgBlue:O,bgMagenta:O,bgCyan:O,bgWhite:O,blackBright:O,redBright:O,greenBright:O,yellowBright:O,blueBright:O,magentaBright:O,cyanBright:O,whiteBright:O,bgBlackBright:O,bgRedBright:O,bgGreenBright:O,bgYellowBright:O,bgBlueBright:O,bgMagentaBright:O,bgCyanBright:O,bgWhiteBright:O}};yi.exports=aa();yi.exports.createColors=aa;var ad=yi.exports;const ld={},cd=Object.freeze(Object.defineProperty({__proto__:null,default:ld},Symbol.toStringTag,{value:"Module"})),be=od(cd);let An=ad,In=be,Ps=class la extends Error{constructor(e,t,r,i,n,a){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),i&&(this.source=i),a&&(this.plugin=a),typeof t!="undefined"&&typeof r!="undefined"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,la)}setMessage(){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}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=An.isColorSupported);let r=c=>c,i=c=>c,n=c=>c;if(e){let{bold:c,gray:h,red:d}=An.createColors(!0);i=f=>c(d(f)),r=f=>h(f),In&&(n=f=>In(f))}let a=t.split(/\r?\n/),l=Math.max(this.line-3,0),o=Math.min(this.line+2,a.length),u=String(o).length;return a.slice(l,o).map((c,h)=>{let d=l+1+h,f=" "+(" "+d).slice(-u)+" | ";if(d===this.line){if(c.length>160){let g=20,p=Math.max(0,this.column-g),b=Math.max(this.column+g,this.endColumn+g),C=c.slice(p,b),E=r(f.replace(/\d/g," "))+c.slice(0,Math.min(this.column-1,g-1)).replace(/[^\t]/g," ");return i(">")+r(f)+n(C)+`
40
- `+E+i("^")}let m=r(f.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+r(f)+n(c)+`
41
- `+m+i("^")}return" "+r(f)+n(c)}).join(`
39
+ https://www.w3ctech.com/topic/2226`));let l=t(...a);return l.postcssPlugin=e,l.postcssVersion=new bi().version,l}let n;return Object.defineProperty(i,"postcss",{get(){return n||(n=i()),n}}),i.process=function(a,l,o){return U([i(o)]).process(a,l)},i};U.stringify=od;U.parse=id;U.fromJSON=Qh;U.list=rd;U.comment=s=>new oa(s);U.atRule=s=>new na(s);U.decl=s=>new aa(s);U.rule=s=>new ua(s);U.root=s=>new ca(s);U.document=s=>new la(s);U.CssSyntaxError=Kh;U.Declaration=aa;U.Container=Xh;U.Processor=bi;U.Document=la;U.Comment=oa;U.Warning=ad;U.AtRule=na;U.Result=nd;U.Input=ed;U.Rule=ua;U.Root=ca;U.Node=sd;td.registerPostcss(U);var ld=U;U.default=U;const q=vu(ld);q.stringify;q.fromJSON;q.plugin;q.parse;q.list;q.document;q.comment;q.atRule;q.rule;q.decl;q.root;q.CssSyntaxError;q.Declaration;q.Container;q.Processor;q.Document;q.Comment;q.Warning;q.AtRule;q.Result;q.Input;q.Rule;q.Root;q.Node;var cd=Object.defineProperty,ud=(s,e,t)=>e in s?cd(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,pe=(s,e,t)=>ud(s,typeof e!="symbol"?e+"":e,t);const hd=["change","submit","dragstart","drop","pointerdown","pointerup","input","keydown","keyup","keypress","mouseenter","mouseleave","mouseup","mousedown","click","contextmenu","dblclick","focus","blur","touchstart","touchmove","touchend","touchcancel"],dd=["onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmouseout","onmousemove","onfocus","onblur","onkeydown","onkeypress","onkeyup","onchange","oninput","onsubmit","onreset","onselect","oncontextmenu","ontouchstart","ontouchmove","ontouchend","ontouchcancel"],ha=new WeakSet,fd=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(s,e,t){if(fd.call(this,s,e,t),this instanceof Element){const r=s.toLowerCase();hd.includes(r)&&ha.add(this)}};const pd=EventTarget.prototype.removeEventListener;EventTarget.prototype.removeEventListener=function(s,e,t){pd.call(this,s,e,t)};function In(){document.querySelectorAll("*").forEach(e=>{dd.forEach(t=>{e.hasAttribute(t)&&ha.add(e)})})}try{document.readyState==="complete"||document.readyState==="interactive"?In():document.addEventListener("DOMContentLoaded",In)}catch(s){}const md={id:"i","data-testid":"tid","data-qa":"qa","data-cy":"cy","data-test":"dt","aria-label":"al","aria-labelledby":"alb","aria-describedby":"adb",name:"n",href:"h",src:"s",type:"t",role:"r",alt:"at",title:"tt",for:"f",placeholder:"ph",text:"x"};Object.fromEntries(Object.entries(md).map(([s,e])=>[e,s]));function gd(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function yd(s){if(s.__esModule)return s;var e=s.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(r){var i=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return s[r]}})}),t}var wi={exports:{}},O=String,da=function(){return{isColorSupported:!1,reset:O,bold:O,dim:O,italic:O,underline:O,inverse:O,hidden:O,strikethrough:O,black:O,red:O,green:O,yellow:O,blue:O,magenta:O,cyan:O,white:O,gray:O,bgBlack:O,bgRed:O,bgGreen:O,bgYellow:O,bgBlue:O,bgMagenta:O,bgCyan:O,bgWhite:O,blackBright:O,redBright:O,greenBright:O,yellowBright:O,blueBright:O,magentaBright:O,cyanBright:O,whiteBright:O,bgBlackBright:O,bgRedBright:O,bgGreenBright:O,bgYellowBright:O,bgBlueBright:O,bgMagentaBright:O,bgCyanBright:O,bgWhiteBright:O}};wi.exports=da();wi.exports.createColors=da;var bd=wi.exports;const wd={},Sd=Object.freeze(Object.defineProperty({__proto__:null,default:wd},Symbol.toStringTag,{value:"Module"})),be=yd(Sd);let $n=bd,Rn=be,zs=class fa extends Error{constructor(e,t,r,i,n,a){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),i&&(this.source=i),a&&(this.plugin=a),typeof t!="undefined"&&typeof r!="undefined"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,fa)}setMessage(){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}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=$n.isColorSupported);let r=u=>u,i=u=>u,n=u=>u;if(e){let{bold:u,gray:h,red:f}=$n.createColors(!0);i=m=>u(f(m)),r=m=>h(m),Rn&&(n=m=>Rn(m))}let a=t.split(/\r?\n/),l=Math.max(this.line-3,0),o=Math.min(this.line+2,a.length),c=String(o).length;return a.slice(l,o).map((u,h)=>{let f=l+1+h,m=" "+(" "+f).slice(-c)+" | ";if(f===this.line){if(u.length>160){let g=20,d=Math.max(0,this.column-g),y=Math.max(this.column+g,this.endColumn+g),v=u.slice(d,y),A=r(m.replace(/\d/g," "))+u.slice(0,Math.min(this.column-1,g-1)).replace(/[^\t]/g," ");return i(">")+r(m)+n(v)+`
40
+ `+A+i("^")}let p=r(m.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+r(m)+n(u)+`
41
+ `+p+i("^")}return" "+r(m)+n(u)}).join(`
42
42
  `)}toString(){let e=this.showSourceCode();return e&&(e=`
43
43
 
44
44
  `+e+`
45
- `),this.name+": "+this.message+e}};var bi=Ps;Ps.default=Ps;const En={after:`
45
+ `),this.name+": "+this.message+e}};var Si=zs;zs.default=zs;const Mn={after:`
46
46
  `,beforeClose:`
47
47
  `,beforeComment:`
48
48
  `,beforeDecl:`
49
49
  `,beforeOpen:" ",beforeRule:`
50
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function ud(s){return s[0].toUpperCase()+s.slice(1)}let _s=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?r+=e.raws.afterName:i&&(r+=" "),e.nodes)this.block(e,r+i);else{let n=(e.raws.between||"")+(t?";":"");this.builder(r+i+n,e)}}beforeAfter(e,t){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):t==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let i=e.parent,n=0;for(;i&&i.type!=="root";)n+=1,i=i.parent;if(r.includes(`
51
- `)){let a=this.raw(e,null,"indent");if(a.length)for(let l=0;l<n;l++)r+=a}return r}block(e,t){let r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start");let i;e.nodes&&e.nodes.length?(this.body(e),i=this.raw(e,"after")):i=this.raw(e,"after","emptyBody"),i&&this.builder(i),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let r=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let n=e.nodes[i],a=this.raw(n,"before");a&&this.builder(a),this.stringify(n,t!==i||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),i=e.prop+r+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),t&&(i+=";"),this.builder(i,e)}document(e){this.body(e)}raw(e,t,r){let i;if(r||(r=t),t&&(i=e.raws[t],typeof i!="undefined"))return i;let n=e.parent;if(r==="before"&&(!n||n.type==="root"&&n.first===e||n&&n.type==="document"))return"";if(!n)return En[r];let a=e.root();if(a.rawCache||(a.rawCache={}),typeof a.rawCache[r]!="undefined")return a.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let l="raw"+ud(r);this[l]?i=this[l](a,e):a.walk(o=>{if(i=o.raws[t],typeof i!="undefined")return!1})}return typeof i=="undefined"&&(i=En[r]),a.rawCache[r]=i,i}rawBeforeClose(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after!="undefined")return t=r.raws.after,t.includes(`
50
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function vd(s){return s[0].toUpperCase()+s.slice(1)}let Fs=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?r+=e.raws.afterName:i&&(r+=" "),e.nodes)this.block(e,r+i);else{let n=(e.raws.between||"")+(t?";":"");this.builder(r+i+n,e)}}beforeAfter(e,t){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):t==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let i=e.parent,n=0;for(;i&&i.type!=="root";)n+=1,i=i.parent;if(r.includes(`
51
+ `)){let a=this.raw(e,null,"indent");if(a.length)for(let l=0;l<n;l++)r+=a}return r}block(e,t){let r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start");let i;e.nodes&&e.nodes.length?(this.body(e),i=this.raw(e,"after")):i=this.raw(e,"after","emptyBody"),i&&this.builder(i),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let r=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let n=e.nodes[i],a=this.raw(n,"before");a&&this.builder(a),this.stringify(n,t!==i||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),i=e.prop+r+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),t&&(i+=";"),this.builder(i,e)}document(e){this.body(e)}raw(e,t,r){let i;if(r||(r=t),t&&(i=e.raws[t],typeof i!="undefined"))return i;let n=e.parent;if(r==="before"&&(!n||n.type==="root"&&n.first===e||n&&n.type==="document"))return"";if(!n)return Mn[r];let a=e.root();if(a.rawCache||(a.rawCache={}),typeof a.rawCache[r]!="undefined")return a.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let l="raw"+vd(r);this[l]?i=this[l](a,e):a.walk(o=>{if(i=o.raws[t],typeof i!="undefined")return!1})}return typeof i=="undefined"&&(i=Mn[r]),a.rawCache[r]=i,i}rawBeforeClose(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after!="undefined")return t=r.raws.after,t.includes(`
52
52
  `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(i=>{if(typeof i.raws.before!="undefined")return r=i.raws.before,r.includes(`
53
53
  `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r=="undefined"?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(i=>{if(typeof i.raws.before!="undefined")return r=i.raws.before,r.includes(`
54
54
  `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r=="undefined"?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(r=>{if(r.type!=="decl"&&(t=r.raws.between,typeof t!="undefined"))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before!="undefined")return t=r.raws.before,t.includes(`
55
55
  `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(r=>{if(typeof r.raws.between!="undefined")return t=r.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(t=r.raws.after,typeof t!="undefined"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let i=r.parent;if(i&&i!==e&&i.parent&&i.parent===e&&typeof r.raws.before!="undefined"){let n=r.raws.before.split(`
56
- `);return t=n[n.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(t=r.raws.semicolon,typeof t!="undefined"))return!1}),t}rawValue(e,t){let r=e[t],i=e.raws[t];return i&&i.value===r?i.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(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)}};var ca=_s;_s.default=_s;let hd=ca;function zs(s,e){new hd(e).stringify(s)}var Wr=zs;zs.default=zs;var _t={};_t.isClean=Symbol("isClean");_t.my=Symbol("my");let dd=bi,fd=ca,pd=Wr,{isClean:ft,my:md}=_t;function Fs(s,e){let t=new s.constructor;for(let r in s){if(!Object.prototype.hasOwnProperty.call(s,r)||r==="proxyCache")continue;let i=s[r],n=typeof i;r==="parent"&&n==="object"?e&&(t[r]=e):r==="source"?t[r]=i:Array.isArray(i)?t[r]=i.map(a=>Fs(a,t)):(n==="object"&&i!==null&&(i=Fs(i)),t[r]=i)}return t}function Ie(s,e){if(e&&typeof e.offset!="undefined")return e.offset;let t=1,r=1,i=0;for(let n=0;n<s.length;n++){if(r===e.line&&t===e.column){i=n;break}s[n]===`
57
- `?(t=1,r+=1):t+=1}return i}let Bs=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[ft]=!1,this[md]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let r of e[t])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=Fs(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new dd(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markClean(){this[ft]=!0}markDirty(){if(this[ft]){this[ft]=!1;let e=this;for(;e=e.parent;)e[ft]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css,n=r.slice(Ie(r,this.source.start),Ie(r,this.source.end)).indexOf(e.word);n!==-1&&(t=this.positionInside(n))}return t}positionInside(e){let t=this.source.start.column,r=this.source.start.line,i="document"in this.source.input?this.source.input.document:this.source.input.css,n=Ie(i,this.source.start),a=n+e;for(let l=n;l<a;l++)i[l]===`
58
- `?(t=1,r+=1):t+=1;return{column:t,line:r,offset:a}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:Ie(t,this.source.start)},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:Ie(t,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(e.word){let a=t.slice(Ie(t,this.source.start),Ie(t,this.source.end)).indexOf(e.word);a!==-1&&(r=this.positionInside(a),i=this.positionInside(a+e.word.length))}else e.start?r={column:e.start.column,line:e.start.line,offset:Ie(t,e.start)}:e.index&&(r=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line,offset:Ie(t,e.end)}:typeof e.endIndex=="number"?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<r.line||i.line===r.line&&i.column<=r.column)&&(i={column:r.column+1,line:r.line,offset:r.offset+1}),{end:i,start:r}}raw(e,t){return new fd().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let i of e)i===this?r=!0:r?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let r={},i=t==null;t=t||new Map;let n=0;for(let a in this){if(!Object.prototype.hasOwnProperty.call(this,a)||a==="parent"||a==="proxyCache")continue;let l=this[a];if(Array.isArray(l))r[a]=l.map(o=>typeof o=="object"&&o.toJSON?o.toJSON(null,t):o);else if(typeof l=="object"&&l.toJSON)r[a]=l.toJSON(null,t);else if(a==="source"){if(l==null)continue;let o=t.get(l.input);o==null&&(o=n,t.set(l.input,n),n++),r[a]={end:l.end,inputId:o,start:l.start}}else r[a]=l}return i&&(r.inputs=[...t.keys()].map(a=>a.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=pd){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r={}){let i={node:this};for(let n in r)i[n]=r[n];return e.warn(t,i)}};var Hr=Bs;Bs.default=Bs;let gd=Hr,Ws=class extends gd{constructor(e){super(e),this.type="comment"}};var Ur=Ws;Ws.default=Ws;let yd=Hr,Hs=class extends yd{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value!="undefined"&&typeof e.value!="string"&&(e=oe(x({},e),{value:String(e.value)})),super(e),this.type="decl"}};var Vr=Hs;Hs.default=Hs;let ua=Ur,ha=Vr,bd=Hr,{isClean:da,my:fa}=_t,wi,pa,ma,Si;function ga(s){return s.map(e=>(e.nodes&&(e.nodes=ga(e.nodes)),delete e.source,e))}function ya(s){if(s[da]=!1,s.proxyOf.nodes)for(let e of s.proxyOf.nodes)ya(e)}let Re=class ba extends bd{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let i of r)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,i;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],i=e(this.proxyOf.nodes[r],r),i!==!1);)this.indexes[t]+=1;return delete this.indexes[t],i}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...r)=>e[t](...r.map(i=>typeof i=="function"?(n,a)=>i(n.toProxy(),a):i)):t==="every"||t==="some"?r=>e[t]((i,...n)=>r(i.toProxy(),...n)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let a of i)this.proxyOf.nodes.splice(r+1,0,a);let n;for(let a in this.indexes)n=this.indexes[a],r<n&&(this.indexes[a]=n+i.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),i=r===0?"prepend":!1,n=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let l of n)this.proxyOf.nodes.splice(r,0,l);let a;for(let l in this.indexes)a=this.indexes[l],r<=a&&(this.indexes[l]=a+n.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=ga(pa(e).nodes);else if(typeof e=="undefined")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value=="undefined")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new ha(e)]}else if(e.selector||e.selectors)e=[new Si(e)];else if(e.name)e=[new wi(e)];else if(e.text)e=[new ua(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[fa]||ba.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[da]&&ya(i),i.raws||(i.raws={}),typeof i.raws.before=="undefined"&&t&&typeof t.raws.before!="undefined"&&(i.raws.before=t.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let i of r)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(i=>{t.props&&!t.props.includes(i.prop)||t.fast&&!i.value.includes(t.fast)||(i.value=i.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let i;try{i=e(t,r)}catch(n){throw t.addToError(n)}return i!==!1&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,i)}):this.walk((r,i)=>{if(r.type==="atrule"&&r.name===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="atrule")return t(r,i)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,i)}):this.walk((r,i)=>{if(r.type==="decl"&&r.prop===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="decl")return t(r,i)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,i)}):this.walk((r,i)=>{if(r.type==="rule"&&r.selector===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="rule")return t(r,i)}))}};Re.registerParse=s=>{pa=s};Re.registerRule=s=>{Si=s};Re.registerAtRule=s=>{wi=s};Re.registerRoot=s=>{ma=s};var Ue=Re;Re.default=Re;Re.rebuild=s=>{s.type==="atrule"?Object.setPrototypeOf(s,wi.prototype):s.type==="rule"?Object.setPrototypeOf(s,Si.prototype):s.type==="decl"?Object.setPrototypeOf(s,ha.prototype):s.type==="comment"?Object.setPrototypeOf(s,ua.prototype):s.type==="root"&&Object.setPrototypeOf(s,ma.prototype),s[fa]=!0,s.nodes&&s.nodes.forEach(e=>{Re.rebuild(e)})};let wa=Ue,Mr=class extends wa{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var vi=Mr;Mr.default=Mr;wa.registerAtRule(Mr);let wd=Ue,Sa,va,Mt=class extends wd{constructor(e){super(x({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new Sa(new va,this,e).stringify()}};Mt.registerLazyResult=s=>{Sa=s};Mt.registerProcessor=s=>{va=s};var Ci=Mt;Mt.default=Mt;let Sd="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",vd=(s=21)=>{let e="",t=s|0;for(;t--;)e+=Sd[Math.random()*64|0];return e};var Cd={nanoid:vd};let{existsSync:xd,readFileSync:Ad}=be,{dirname:ls,join:Id}=be,{SourceMapConsumer:$n,SourceMapGenerator:Rn}=be;function Ed(s){return Buffer?Buffer.from(s,"base64").toString():window.atob(s)}let Us=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,i=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=ls(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new $n(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/,a=e.match(i)||e.match(n);if(a)return decodeURIComponent(e.substr(a[0].length));let l=e.match(t)||e.match(r);if(l)return Ed(e.substr(l[0].length));let o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let r=e.lastIndexOf(t.pop()),i=e.indexOf("*/",r);r>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,i)))}loadFile(e){if(this.root=ls(e),xd(e))return this.mapFile=e,Ad(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let r=t(e);if(r){let i=this.loadFile(r);if(!i)throw new Error("Unable to load previous source map: "+r.toString());return i}}else{if(t instanceof $n)return Rn.fromSourceMap(t).toString();if(t instanceof Rn)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){let r=this.annotation;return e&&(r=Id(ls(e),r)),this.loadFile(r)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Ca=Us;Us.default=Us;let{nanoid:$d}=Cd,{isAbsolute:Vs,resolve:js}=be,{SourceMapConsumer:Rd,SourceMapGenerator:Md}=be,{fileURLToPath:Mn,pathToFileURL:sr}=be,On=bi,Od=Ca,cs=be,us=Symbol("lineToIndexCache"),Td=!!(Rd&&Md),Tn=!!(js&&Vs);function Nn(s){if(s[us])return s[us];let e=s.css.split(`
59
- `),t=new Array(e.length),r=0;for(let i=0,n=e.length;i<n;i++)t[i]=r,r+=e[i].length+1;return s[us]=t,t}let Or=class{get from(){return this.file||this.id}constructor(e,t={}){if(e===null||typeof e=="undefined"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!Tn||/^\w+:\/\//.test(t.from)||Vs(t.from)?this.file=t.from:this.file=js(t.from)),Tn&&Td){let r=new Od(this.css,t);if(r.text){this.map=r;let i=r.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+$d(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,i={}){let n,a,l,o,u;if(t&&typeof t=="object"){let h=t,d=r;if(typeof h.offset=="number"){o=h.offset;let f=this.fromOffset(o);t=f.line,r=f.col}else t=h.line,r=h.column,o=this.fromLineAndColumn(t,r);if(typeof d.offset=="number"){l=d.offset;let f=this.fromOffset(l);a=f.line,n=f.col}else a=d.line,n=d.column,l=this.fromLineAndColumn(d.line,d.column)}else if(r)o=this.fromLineAndColumn(t,r);else{o=t;let h=this.fromOffset(o);t=h.line,r=h.col}let c=this.origin(t,r,a,n);return c?u=new On(e,c.endLine===void 0?c.line:{column:c.column,line:c.line},c.endLine===void 0?c.column:{column:c.endColumn,line:c.endLine},c.source,c.file,i.plugin):u=new On(e,a===void 0?t:{column:r,line:t},a===void 0?r:{column:n,line:a},this.css,this.file,i.plugin),u.input={column:r,endColumn:n,endLine:a,endOffset:l,line:t,offset:o,source:this.css},this.file&&(sr&&(u.input.url=sr(this.file).toString()),u.input.file=this.file),u}fromLineAndColumn(e,t){return Nn(this)[e-1]+t-1}fromOffset(e){let t=Nn(this),r=t[t.length-1],i=0;if(e>=r)i=t.length-1;else{let n=t.length-2,a;for(;i<n;)if(a=i+(n-i>>1),e<t[a])n=a-1;else if(e>=t[a+1])i=a+1;else{i=a;break}}return{col:e-t[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:js(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,i){if(!this.map)return!1;let n=this.map.consumer(),a=n.originalPositionFor({column:t,line:e});if(!a.source)return!1;let l;typeof r=="number"&&(l=n.originalPositionFor({column:i,line:r}));let o;Vs(a.source)?o=sr(a.source):o=new URL(a.source,this.map.consumer().sourceRoot||sr(this.map.mapFile));let u={column:a.column,endColumn:l&&l.column,endLine:l&&l.line,line:a.line,url:o.toString()};if(o.protocol==="file:")if(Mn)u.file=Mn(o);else throw new Error("file: protocol is not available in this PostCSS build");let c=n.sourceContentFor(a.source);return c&&(u.source=c),u}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map=x({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};var jr=Or;Or.default=Or;cs&&cs.registerInput&&cs.registerInput(Or);let xa=Ue,Aa,Ia,it=class extends xa{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let i=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let n of i)n.raws.before=t.raws.before}return i}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new Aa(new Ia,this,e).stringify()}};it.registerLazyResult=s=>{Aa=s};it.registerProcessor=s=>{Ia=s};var zt=it;it.default=it;xa.registerRoot(it);let Ot={comma(s){return Ot.split(s,[","],!0)},space(s){let e=[" ",`
60
- `," "];return Ot.split(s,e)},split(s,e,t){let r=[],i="",n=!1,a=0,l=!1,o="",u=!1;for(let c of s)u?u=!1:c==="\\"?u=!0:l?c===o&&(l=!1):c==='"'||c==="'"?(l=!0,o=c):c==="("?a+=1:c===")"?a>0&&(a-=1):a===0&&e.includes(c)&&(n=!0),n?(i!==""&&r.push(i.trim()),i="",n=!1):i+=c;return(t||i!=="")&&r.push(i.trim()),r}};var Ea=Ot;Ot.default=Ot;let $a=Ue,Nd=Ea,Tr=class extends $a{get selectors(){return Nd.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};var xi=Tr;Tr.default=Tr;$a.registerRule(Tr);let kd=vi,Dd=Ur,Ld=Vr,Pd=jr,_d=Ca,zd=zt,Fd=xi;function Tt(s,e){if(Array.isArray(s))return s.map(a=>Tt(a));let i=s,{inputs:t}=i,r=Ye(i,["inputs"]);if(t){e=[];for(let a of t){let l=oe(x({},a),{__proto__:Pd.prototype});l.map&&(l.map=oe(x({},l.map),{__proto__:_d.prototype})),e.push(l)}}if(r.nodes&&(r.nodes=s.nodes.map(a=>Tt(a,e))),r.source){let n=r.source,{inputId:a}=n,l=Ye(n,["inputId"]);r.source=l,a!=null&&(r.source.input=e[a])}if(r.type==="root")return new zd(r);if(r.type==="decl")return new Ld(r);if(r.type==="rule")return new Fd(r);if(r.type==="comment")return new Dd(r);if(r.type==="atrule")return new kd(r);throw new Error("Unknown node type: "+s.type)}var Bd=Tt;Tt.default=Tt;let{dirname:wr,relative:Ra,resolve:Ma,sep:Oa}=be,{SourceMapConsumer:Ta,SourceMapGenerator:Sr}=be,{pathToFileURL:kn}=be,Wd=jr,Hd=!!(Ta&&Sr),Ud=!!(wr&&Ma&&Ra&&Oa),Vd=class{constructor(e,t,r,i){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let 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";let t=`
56
+ `);return t=n[n.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(t=r.raws.semicolon,typeof t!="undefined"))return!1}),t}rawValue(e,t){let r=e[t],i=e.raws[t];return i&&i.value===r?i.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(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)}};var pa=Fs;Fs.default=Fs;let Cd=pa;function Bs(s,e){new Cd(e).stringify(s)}var Ur=Bs;Bs.default=Bs;var _t={};_t.isClean=Symbol("isClean");_t.my=Symbol("my");let xd=Si,Ad=pa,Ed=Ur,{isClean:ft,my:Id}=_t;function Ws(s,e){let t=new s.constructor;for(let r in s){if(!Object.prototype.hasOwnProperty.call(s,r)||r==="proxyCache")continue;let i=s[r],n=typeof i;r==="parent"&&n==="object"?e&&(t[r]=e):r==="source"?t[r]=i:Array.isArray(i)?t[r]=i.map(a=>Ws(a,t)):(n==="object"&&i!==null&&(i=Ws(i)),t[r]=i)}return t}function Ee(s,e){if(e&&typeof e.offset!="undefined")return e.offset;let t=1,r=1,i=0;for(let n=0;n<s.length;n++){if(r===e.line&&t===e.column){i=n;break}s[n]===`
57
+ `?(t=1,r+=1):t+=1}return i}let Hs=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[ft]=!1,this[Id]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let r of e[t])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=Ws(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new xd(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markClean(){this[ft]=!0}markDirty(){if(this[ft]){this[ft]=!1;let e=this;for(;e=e.parent;)e[ft]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css,n=r.slice(Ee(r,this.source.start),Ee(r,this.source.end)).indexOf(e.word);n!==-1&&(t=this.positionInside(n))}return t}positionInside(e){let t=this.source.start.column,r=this.source.start.line,i="document"in this.source.input?this.source.input.document:this.source.input.css,n=Ee(i,this.source.start),a=n+e;for(let l=n;l<a;l++)i[l]===`
58
+ `?(t=1,r+=1):t+=1;return{column:t,line:r,offset:a}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:Ee(t,this.source.start)},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:Ee(t,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(e.word){let a=t.slice(Ee(t,this.source.start),Ee(t,this.source.end)).indexOf(e.word);a!==-1&&(r=this.positionInside(a),i=this.positionInside(a+e.word.length))}else e.start?r={column:e.start.column,line:e.start.line,offset:Ee(t,e.start)}:e.index&&(r=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line,offset:Ee(t,e.end)}:typeof e.endIndex=="number"?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<r.line||i.line===r.line&&i.column<=r.column)&&(i={column:r.column+1,line:r.line,offset:r.offset+1}),{end:i,start:r}}raw(e,t){return new Ad().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let i of e)i===this?r=!0:r?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let r={},i=t==null;t=t||new Map;let n=0;for(let a in this){if(!Object.prototype.hasOwnProperty.call(this,a)||a==="parent"||a==="proxyCache")continue;let l=this[a];if(Array.isArray(l))r[a]=l.map(o=>typeof o=="object"&&o.toJSON?o.toJSON(null,t):o);else if(typeof l=="object"&&l.toJSON)r[a]=l.toJSON(null,t);else if(a==="source"){if(l==null)continue;let o=t.get(l.input);o==null&&(o=n,t.set(l.input,n),n++),r[a]={end:l.end,inputId:o,start:l.start}}else r[a]=l}return i&&(r.inputs=[...t.keys()].map(a=>a.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Ed){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r={}){let i={node:this};for(let n in r)i[n]=r[n];return e.warn(t,i)}};var Vr=Hs;Hs.default=Hs;let $d=Vr,Us=class extends $d{constructor(e){super(e),this.type="comment"}};var jr=Us;Us.default=Us;let Rd=Vr,Vs=class extends Rd{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value!="undefined"&&typeof e.value!="string"&&(e=oe(x({},e),{value:String(e.value)})),super(e),this.type="decl"}};var Gr=Vs;Vs.default=Vs;let ma=jr,ga=Gr,Md=Vr,{isClean:ya,my:ba}=_t,vi,wa,Sa,Ci;function va(s){return s.map(e=>(e.nodes&&(e.nodes=va(e.nodes)),delete e.source,e))}function Ca(s){if(s[ya]=!1,s.proxyOf.nodes)for(let e of s.proxyOf.nodes)Ca(e)}let Re=class xa extends Md{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let i of r)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,i;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],i=e(this.proxyOf.nodes[r],r),i!==!1);)this.indexes[t]+=1;return delete this.indexes[t],i}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...r)=>e[t](...r.map(i=>typeof i=="function"?(n,a)=>i(n.toProxy(),a):i)):t==="every"||t==="some"?r=>e[t]((i,...n)=>r(i.toProxy(),...n)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let a of i)this.proxyOf.nodes.splice(r+1,0,a);let n;for(let a in this.indexes)n=this.indexes[a],r<n&&(this.indexes[a]=n+i.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),i=r===0?"prepend":!1,n=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let l of n)this.proxyOf.nodes.splice(r,0,l);let a;for(let l in this.indexes)a=this.indexes[l],r<=a&&(this.indexes[l]=a+n.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=va(wa(e).nodes);else if(typeof e=="undefined")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value=="undefined")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new ga(e)]}else if(e.selector||e.selectors)e=[new Ci(e)];else if(e.name)e=[new vi(e)];else if(e.text)e=[new ma(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[ba]||xa.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[ya]&&Ca(i),i.raws||(i.raws={}),typeof i.raws.before=="undefined"&&t&&typeof t.raws.before!="undefined"&&(i.raws.before=t.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let i of r)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(i=>{t.props&&!t.props.includes(i.prop)||t.fast&&!i.value.includes(t.fast)||(i.value=i.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let i;try{i=e(t,r)}catch(n){throw t.addToError(n)}return i!==!1&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,i)}):this.walk((r,i)=>{if(r.type==="atrule"&&r.name===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="atrule")return t(r,i)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,i)}):this.walk((r,i)=>{if(r.type==="decl"&&r.prop===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="decl")return t(r,i)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,i)}):this.walk((r,i)=>{if(r.type==="rule"&&r.selector===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="rule")return t(r,i)}))}};Re.registerParse=s=>{wa=s};Re.registerRule=s=>{Ci=s};Re.registerAtRule=s=>{vi=s};Re.registerRoot=s=>{Sa=s};var Ue=Re;Re.default=Re;Re.rebuild=s=>{s.type==="atrule"?Object.setPrototypeOf(s,vi.prototype):s.type==="rule"?Object.setPrototypeOf(s,Ci.prototype):s.type==="decl"?Object.setPrototypeOf(s,ga.prototype):s.type==="comment"?Object.setPrototypeOf(s,ma.prototype):s.type==="root"&&Object.setPrototypeOf(s,Sa.prototype),s[ba]=!0,s.nodes&&s.nodes.forEach(e=>{Re.rebuild(e)})};let Aa=Ue,Or=class extends Aa{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var xi=Or;Or.default=Or;Aa.registerAtRule(Or);let Od=Ue,Ea,Ia,Mt=class extends Od{constructor(e){super(x({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new Ea(new Ia,this,e).stringify()}};Mt.registerLazyResult=s=>{Ea=s};Mt.registerProcessor=s=>{Ia=s};var Ai=Mt;Mt.default=Mt;let Td="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Nd=(s=21)=>{let e="",t=s|0;for(;t--;)e+=Td[Math.random()*64|0];return e};var kd={nanoid:Nd};let{existsSync:Dd,readFileSync:Ld}=be,{dirname:us,join:Pd}=be,{SourceMapConsumer:On,SourceMapGenerator:Tn}=be;function _d(s){return Buffer?Buffer.from(s,"base64").toString():window.atob(s)}let js=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,i=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=us(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new On(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/,a=e.match(i)||e.match(n);if(a)return decodeURIComponent(e.substr(a[0].length));let l=e.match(t)||e.match(r);if(l)return _d(e.substr(l[0].length));let o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let r=e.lastIndexOf(t.pop()),i=e.indexOf("*/",r);r>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,i)))}loadFile(e){if(this.root=us(e),Dd(e))return this.mapFile=e,Ld(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let r=t(e);if(r){let i=this.loadFile(r);if(!i)throw new Error("Unable to load previous source map: "+r.toString());return i}}else{if(t instanceof On)return Tn.fromSourceMap(t).toString();if(t instanceof Tn)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){let r=this.annotation;return e&&(r=Pd(us(e),r)),this.loadFile(r)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var $a=js;js.default=js;let{nanoid:zd}=kd,{isAbsolute:Gs,resolve:Ys}=be,{SourceMapConsumer:Fd,SourceMapGenerator:Bd}=be,{fileURLToPath:Nn,pathToFileURL:sr}=be,kn=Si,Wd=$a,hs=be,ds=Symbol("lineToIndexCache"),Hd=!!(Fd&&Bd),Dn=!!(Ys&&Gs);function Ln(s){if(s[ds])return s[ds];let e=s.css.split(`
59
+ `),t=new Array(e.length),r=0;for(let i=0,n=e.length;i<n;i++)t[i]=r,r+=e[i].length+1;return s[ds]=t,t}let Tr=class{get from(){return this.file||this.id}constructor(e,t={}){if(e===null||typeof e=="undefined"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!Dn||/^\w+:\/\//.test(t.from)||Gs(t.from)?this.file=t.from:this.file=Ys(t.from)),Dn&&Hd){let r=new Wd(this.css,t);if(r.text){this.map=r;let i=r.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+zd(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,i={}){let n,a,l,o,c;if(t&&typeof t=="object"){let h=t,f=r;if(typeof h.offset=="number"){o=h.offset;let m=this.fromOffset(o);t=m.line,r=m.col}else t=h.line,r=h.column,o=this.fromLineAndColumn(t,r);if(typeof f.offset=="number"){l=f.offset;let m=this.fromOffset(l);a=m.line,n=m.col}else a=f.line,n=f.column,l=this.fromLineAndColumn(f.line,f.column)}else if(r)o=this.fromLineAndColumn(t,r);else{o=t;let h=this.fromOffset(o);t=h.line,r=h.col}let u=this.origin(t,r,a,n);return u?c=new kn(e,u.endLine===void 0?u.line:{column:u.column,line:u.line},u.endLine===void 0?u.column:{column:u.endColumn,line:u.endLine},u.source,u.file,i.plugin):c=new kn(e,a===void 0?t:{column:r,line:t},a===void 0?r:{column:n,line:a},this.css,this.file,i.plugin),c.input={column:r,endColumn:n,endLine:a,endOffset:l,line:t,offset:o,source:this.css},this.file&&(sr&&(c.input.url=sr(this.file).toString()),c.input.file=this.file),c}fromLineAndColumn(e,t){return Ln(this)[e-1]+t-1}fromOffset(e){let t=Ln(this),r=t[t.length-1],i=0;if(e>=r)i=t.length-1;else{let n=t.length-2,a;for(;i<n;)if(a=i+(n-i>>1),e<t[a])n=a-1;else if(e>=t[a+1])i=a+1;else{i=a;break}}return{col:e-t[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Ys(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,i){if(!this.map)return!1;let n=this.map.consumer(),a=n.originalPositionFor({column:t,line:e});if(!a.source)return!1;let l;typeof r=="number"&&(l=n.originalPositionFor({column:i,line:r}));let o;Gs(a.source)?o=sr(a.source):o=new URL(a.source,this.map.consumer().sourceRoot||sr(this.map.mapFile));let c={column:a.column,endColumn:l&&l.column,endLine:l&&l.line,line:a.line,url:o.toString()};if(o.protocol==="file:")if(Nn)c.file=Nn(o);else throw new Error("file: protocol is not available in this PostCSS build");let u=n.sourceContentFor(a.source);return u&&(c.source=u),c}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map=x({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};var Yr=Tr;Tr.default=Tr;hs&&hs.registerInput&&hs.registerInput(Tr);let Ra=Ue,Ma,Oa,it=class extends Ra{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let i=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let n of i)n.raws.before=t.raws.before}return i}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new Ma(new Oa,this,e).stringify()}};it.registerLazyResult=s=>{Ma=s};it.registerProcessor=s=>{Oa=s};var zt=it;it.default=it;Ra.registerRoot(it);let Ot={comma(s){return Ot.split(s,[","],!0)},space(s){let e=[" ",`
60
+ `," "];return Ot.split(s,e)},split(s,e,t){let r=[],i="",n=!1,a=0,l=!1,o="",c=!1;for(let u of s)c?c=!1:u==="\\"?c=!0:l?u===o&&(l=!1):u==='"'||u==="'"?(l=!0,o=u):u==="("?a+=1:u===")"?a>0&&(a-=1):a===0&&e.includes(u)&&(n=!0),n?(i!==""&&r.push(i.trim()),i="",n=!1):i+=u;return(t||i!=="")&&r.push(i.trim()),r}};var Ta=Ot;Ot.default=Ot;let Na=Ue,Ud=Ta,Nr=class extends Na{get selectors(){return Ud.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};var Ei=Nr;Nr.default=Nr;Na.registerRule(Nr);let Vd=xi,jd=jr,Gd=Gr,Yd=Yr,Zd=$a,Jd=zt,qd=Ei;function Tt(s,e){if(Array.isArray(s))return s.map(a=>Tt(a));let i=s,{inputs:t}=i,r=Ye(i,["inputs"]);if(t){e=[];for(let a of t){let l=oe(x({},a),{__proto__:Yd.prototype});l.map&&(l.map=oe(x({},l.map),{__proto__:Zd.prototype})),e.push(l)}}if(r.nodes&&(r.nodes=s.nodes.map(a=>Tt(a,e))),r.source){let n=r.source,{inputId:a}=n,l=Ye(n,["inputId"]);r.source=l,a!=null&&(r.source.input=e[a])}if(r.type==="root")return new Jd(r);if(r.type==="decl")return new Gd(r);if(r.type==="rule")return new qd(r);if(r.type==="comment")return new jd(r);if(r.type==="atrule")return new Vd(r);throw new Error("Unknown node type: "+s.type)}var Xd=Tt;Tt.default=Tt;let{dirname:wr,relative:ka,resolve:Da,sep:La}=be,{SourceMapConsumer:Pa,SourceMapGenerator:Sr}=be,{pathToFileURL:Pn}=be,Kd=Yr,Qd=!!(Pa&&Sr),ef=!!(wr&&Da&&ka&&La),tf=class{constructor(e,t,r,i){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let 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";let t=`
61
61
  `;this.css.includes(`\r
62
62
  `)&&(t=`\r
63
- `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||wr(e.file),i;this.mapOpts.sourcesContent===!1?(i=new Ta(e.text),i.sourcesContent&&(i.sourcesContent=null)):i=e.consumer(),this.map.applySourceMap(i,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),Ud&&Hd&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Sr.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Sr({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]}generateString(){this.css="",this.map=new Sr({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,r="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},n,a;this.stringify(this.root,(l,o,u)=>{if(this.css+=l,o&&u!=="end"&&(i.generated.line=e,i.generated.column=t-1,o.source&&o.source.start?(i.source=this.sourcePath(o),i.original.line=o.source.start.line,i.original.column=o.source.start.column-1,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,this.map.addMapping(i))),a=l.match(/\n/g),a?(e+=a.length,n=l.lastIndexOf(`
64
- `),t=l.length-n):t+=l.length,o&&u!=="start"){let c=o.parent||{raws:{}};(!(o.type==="decl"||o.type==="atrule"&&!o.nodes)||o!==c.last||c.raws.semicolon)&&(o.source&&o.source.end?(i.source=this.sourcePath(o),i.original.line=o.source.end.line,i.original.column=o.source.end.column-1,i.generated.line=e,i.generated.column=t-2,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=t-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?wr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=wr(Ma(r,this.mapOpts.annotation)));let i=Ra(r,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new Wd(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(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))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(kn){let r=kn(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Oa==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};var Na=Vd;const hs="'".charCodeAt(0),Dn='"'.charCodeAt(0),ir="\\".charCodeAt(0),Ln="/".charCodeAt(0),nr=`
65
- `.charCodeAt(0),pt=" ".charCodeAt(0),or="\f".charCodeAt(0),ar=" ".charCodeAt(0),lr="\r".charCodeAt(0),jd="[".charCodeAt(0),Gd="]".charCodeAt(0),Yd="(".charCodeAt(0),Zd=")".charCodeAt(0),Jd="{".charCodeAt(0),Xd="}".charCodeAt(0),Kd=";".charCodeAt(0),qd="*".charCodeAt(0),Qd=":".charCodeAt(0),ef="@".charCodeAt(0),cr=/[\t\n\f\r "#'()/;[\\\]{}]/g,ur=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,tf=/.[\r\n"'(/\\]/,Pn=/[\da-f]/i;var rf=function(e,t={}){let r=e.css.valueOf(),i=t.ignoreErrors,n,a,l,o,u,c,h,d,f,m,g=r.length,p=0,b=[],C=[];function E(){return p}function S($){throw e.error("Unclosed "+$,p)}function w(){return C.length===0&&p>=g}function A($){if(C.length)return C.pop();if(p>=g)return;let N=$?$.ignoreUnclosed:!1;switch(n=r.charCodeAt(p),n){case nr:case pt:case ar:case lr:case or:{o=p;do o+=1,n=r.charCodeAt(o);while(n===pt||n===nr||n===ar||n===lr||n===or);c=["space",r.slice(p,o)],p=o-1;break}case jd:case Gd:case Jd:case Xd:case Qd:case Kd:case Zd:{let _=String.fromCharCode(n);c=[_,_,p];break}case Yd:{if(m=b.length?b.pop()[1]:"",f=r.charCodeAt(p+1),m==="url"&&f!==hs&&f!==Dn&&f!==pt&&f!==nr&&f!==ar&&f!==or&&f!==lr){o=p;do{if(h=!1,o=r.indexOf(")",o+1),o===-1)if(i||N){o=p;break}else S("bracket");for(d=o;r.charCodeAt(d-1)===ir;)d-=1,h=!h}while(h);c=["brackets",r.slice(p,o+1),p,o],p=o}else o=r.indexOf(")",p+1),a=r.slice(p,o+1),o===-1||tf.test(a)?c=["(","(",p]:(c=["brackets",a,p,o],p=o);break}case hs:case Dn:{u=n===hs?"'":'"',o=p;do{if(h=!1,o=r.indexOf(u,o+1),o===-1)if(i||N){o=p+1;break}else S("string");for(d=o;r.charCodeAt(d-1)===ir;)d-=1,h=!h}while(h);c=["string",r.slice(p,o+1),p,o],p=o;break}case ef:{cr.lastIndex=p+1,cr.test(r),cr.lastIndex===0?o=r.length-1:o=cr.lastIndex-2,c=["at-word",r.slice(p,o+1),p,o],p=o;break}case ir:{for(o=p,l=!0;r.charCodeAt(o+1)===ir;)o+=1,l=!l;if(n=r.charCodeAt(o+1),l&&n!==Ln&&n!==pt&&n!==nr&&n!==ar&&n!==lr&&n!==or&&(o+=1,Pn.test(r.charAt(o)))){for(;Pn.test(r.charAt(o+1));)o+=1;r.charCodeAt(o+1)===pt&&(o+=1)}c=["word",r.slice(p,o+1),p,o],p=o;break}default:{n===Ln&&r.charCodeAt(p+1)===qd?(o=r.indexOf("*/",p+2)+1,o===0&&(i||N?o=r.length:S("comment")),c=["comment",r.slice(p,o+1),p,o],p=o):(ur.lastIndex=p+1,ur.test(r),ur.lastIndex===0?o=r.length-1:o=ur.lastIndex-2,c=["word",r.slice(p,o+1),p,o],b.push(c),p=o);break}}return p++,c}function v($){C.push($)}return{back:v,endOfFile:w,nextToken:A,position:E}};let sf=vi,nf=Ur,of=Vr,af=zt,_n=xi,lf=rf;const zn={empty:!0,space:!0};function cf(s){for(let e=s.length-1;e>=0;e--){let t=s[e],r=t[3]||t[2];if(r)return r}}let uf=class{constructor(e){this.input=e,this.root=new af,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new sf;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,i,n,a=!1,l=!1,o=[],u=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?u.push(r==="("?")":"]"):r==="{"&&u.length>0?u.push("}"):r===u[u.length-1]&&u.pop(),u.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){l=!0;break}else if(r==="}"){if(o.length>0){for(n=o.length-1,i=o[n];i&&i[0]==="space";)i=o[--n];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}else o.push(e);else o.push(e);if(this.tokenizer.endOfFile()){a=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(o),o.length?(t.raws.afterName=this.spacesAndCommentsFromStart(o),this.raw(t,"params",o),a&&(e=o[o.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)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,i;for(let n=t-1;n>=0&&(i=e[n],!(i[0]!=="space"&&(r+=1,r===2)));n--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0,r,i,n;for(let[a,l]of e.entries()){if(i=l,n=i[0],n==="("&&(t+=1),n===")"&&(t-=1),t===0&&n===":")if(!r)this.doubleColon(i);else{if(r[0]==="word"&&r[1]==="progid")continue;return a}r=i}return!1}comment(e){let t=new nf;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let i=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=i[2],t.raws.left=i[1],t.raws.right=i[3]}}createTokenizer(){this.tokenizer=lf(this.input)}decl(e,t){let r=new of;this.init(r,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||cf(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let n;for(;e.length;)if(n=e.shift(),n[0]===":"){r.raws.between+=n[1];break}else n[0]==="word"&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let a=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)a.push(e.shift());this.precheckMissedSemicolon(e);for(let u=e.length-1;u>=0;u--){if(n=e[u],n[1].toLowerCase()==="!important"){r.important=!0;let c=this.stringFrom(e,u);c=this.spacesFromEnd(e)+c,c!==" !important"&&(r.raws.important=c);break}else if(n[1].toLowerCase()==="important"){let c=e.slice(0),h="";for(let d=u;d>0;d--){let f=c[d][0];if(h.trim().startsWith("!")&&f!=="space")break;h=c.pop()[1]+h}h.trim().startsWith("!")&&(r.important=!0,r.raws.important=h,e=c)}if(n[0]!=="space"&&n[0]!=="comment")break}e.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(r.raws.between+=a.map(u=>u[1]).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new _n;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(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)}endFile(){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())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(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)}other(e){let t=!1,r=null,i=!1,n=null,a=[],l=e[1].startsWith("--"),o=[],u=e;for(;u;){if(r=u[0],o.push(u),r==="("||r==="[")n||(n=u),a.push(r==="("?")":"]");else if(l&&i&&r==="{")n||(n=u),a.push("}");else if(a.length===0)if(r===";")if(i){this.decl(o,l);return}else break;else if(r==="{"){this.rule(o);return}else if(r==="}"){this.tokenizer.back(o.pop()),t=!0;break}else r===":"&&(i=!0);else r===a[a.length-1]&&(a.pop(),a.length===0&&(n=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(n),t&&i){if(!l)for(;o.length&&(u=o[o.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(o.pop());this.decl(o,l)}else this.unknownWord(o)}parse(){let e;for(;!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()}precheckMissedSemicolon(){}raw(e,t,r,i){let n,a,l=r.length,o="",u=!0,c,h;for(let d=0;d<l;d+=1)n=r[d],a=n[0],a==="space"&&d===l-1&&!i?u=!1:a==="comment"?(h=r[d-1]?r[d-1][0]:"empty",c=r[d+1]?r[d+1][0]:"empty",!zn[h]&&!zn[c]?o.slice(-1)===","?u=!1:o+=n[1]:u=!1):o+=n[1];if(!u){let d=r.reduce((f,m)=>f+m[1],"");e.raws[t]={raw:d,value:o}}e[t]=o}rule(e){e.pop();let t=new _n;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let i=t;i<e.length;i++)r+=e[i][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var hf=uf;let df=Ue,ff=jr,pf=hf;function Nr(s,e){let t=new ff(s,e),r=new pf(t);try{r.parse()}catch(i){throw i}return r.root}var Ai=Nr;Nr.default=Nr;df.registerParse(Nr);let Gs=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}toString(){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}};var ka=Gs;Gs.default=Gs;let mf=ka,Ys=class{get content(){return this.css}constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css="",this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new mf(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}};var Ii=Ys;Ys.default=Ys;let gf=Ue,yf=Ci,bf=Na,wf=Ai,Fn=Ii,Sf=zt,vf=Wr,{isClean:ve,my:Cf}=_t;const xf={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Af={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},If={Once:!0,postcssPlugin:!0,prepare:!0},nt=0;function mt(s){return typeof s=="object"&&typeof s.then=="function"}function Da(s){let e=!1,t=xf[s.type];return s.type==="decl"?e=s.prop.toLowerCase():s.type==="atrule"&&(e=s.name.toLowerCase()),e&&s.append?[t,t+"-"+e,nt,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:s.append?[t,nt,t+"Exit"]:[t,t+"Exit"]}function Bn(s){let e;return s.type==="document"?e=["Document",nt,"DocumentExit"]:s.type==="root"?e=["Root",nt,"RootExit"]:e=Da(s),{eventIndex:0,events:e,iterator:0,node:s,visitorIndex:0,visitors:[]}}function Zs(s){return s[ve]=!1,s.nodes&&s.nodes.forEach(e=>Zs(e)),s}let Js={},ot=class La{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,t,r){this.stringified=!1,this.processed=!1;let i;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))i=Zs(t);else if(t instanceof La||t instanceof Fn)i=Zs(t.root),t.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let n=wf;r.syntax&&(n=r.syntax.parse),r.parser&&(n=r.parser),n.parse&&(n=n.parse);try{i=n(t,r)}catch(a){this.processed=!0,this.error=a}i&&!i[Cf]&&gf.rebuild(i)}this.result=new Fn(e,i,r),this.helpers=oe(x({},Js),{postcss:Js,result:this.result}),this.plugins=this.processor.plugins.map(n=>typeof n=="object"&&n.prepare?x(x({},n),n.prepare(this.result)):n)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(t,r,i)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([t,i])};for(let t of this.plugins)if(typeof t=="object")for(let r in t){if(!Af[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!If[r])if(typeof t[r]=="object")for(let i in t[r])i==="*"?e(t,r,t[r][i]):e(t,r+"-"+i.toLowerCase(),t[r][i]);else typeof t[r]=="function"&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(mt(r))try{await r}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ve];){e[ve]=!0;let t=[Bn(e)];for(;t.length>0;){let r=this.visitTick(t);if(mt(r))try{await r}catch(i){let n=t[t.length-1].node;throw this.handleError(i,n)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let i=e.nodes.map(n=>r(n,this.helpers));await Promise.all(i)}else await r(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return mt(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=vf;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new bf(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(mt(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ve];)e[ve]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,i]of e){this.result.lastPlugin=r;let n;try{n=i(t,this.helpers)}catch(a){throw this.handleError(a,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(mt(n))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:i}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[a,l]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=a;try{return l(r.toProxy(),this.helpers)}catch(o){throw this.handleError(o,r)}}if(t.iterator!==0){let a=t.iterator,l;for(;l=r.nodes[r.indexes[a]];)if(r.indexes[a]+=1,!l[ve]){l[ve]=!0,e.push(Bn(l));return}t.iterator=0,delete r.indexes[a]}let n=t.events;for(;t.eventIndex<n.length;){let a=n[t.eventIndex];if(t.eventIndex+=1,a===nt){r.nodes&&r.nodes.length&&(r[ve]=!0,t.iterator=r.getIterator());return}else if(this.listeners[a]){t.visitors=this.listeners[a];return}}e.pop()}walkSync(e){e[ve]=!0;let t=Da(e);for(let r of t)if(r===nt)e.nodes&&e.each(i=>{i[ve]||this.walkSync(i)});else{let i=this.listeners[r];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}};ot.registerPostcss=s=>{Js=s};var Pa=ot;ot.default=ot;Sf.registerLazyResult(ot);yf.registerLazyResult(ot);let Ef=Na,$f=Ai;const Rf=Ii;let Mf=Wr;let Xs=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=$f;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let i,n=Mf;this.result=new Rf(this._processor,i,this._opts),this.result.css=t;let a=this;Object.defineProperty(this.result,"root",{get(){return a.root}});let l=new Ef(n,i,this._opts,t);if(l.isMap()){let[o,u]=l.generate();o&&(this.result.css=o),u&&(this.result.map=u)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}};var Of=Xs;Xs.default=Xs;let Tf=Ci,Nf=Pa,kf=Of,Df=zt,Nt=class{constructor(e=[]){this.version="8.5.6",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)t.push(r);else if(typeof r=="function")t.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new kf(this,e,t):new Nf(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var Lf=Nt;Nt.default=Nt;Df.registerProcessor(Nt);Tf.registerProcessor(Nt);let _a=vi,za=Ur,Pf=Ue,_f=bi,Fa=Vr,Ba=Ci,zf=Bd,Ff=jr,Bf=Pa,Wf=Ea,Hf=Hr,Uf=Ai,Ei=Lf,Vf=Ii,Wa=zt,Ha=xi,jf=Wr,Gf=ka;function U(...s){return s.length===1&&Array.isArray(s[0])&&(s=s[0]),new Ei(s)}U.plugin=function(e,t){let r=!1;function i(...a){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
63
+ `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||wr(e.file),i;this.mapOpts.sourcesContent===!1?(i=new Pa(e.text),i.sourcesContent&&(i.sourcesContent=null)):i=e.consumer(),this.map.applySourceMap(i,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),ef&&Qd&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Sr.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Sr({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]}generateString(){this.css="",this.map=new Sr({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,r="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},n,a;this.stringify(this.root,(l,o,c)=>{if(this.css+=l,o&&c!=="end"&&(i.generated.line=e,i.generated.column=t-1,o.source&&o.source.start?(i.source=this.sourcePath(o),i.original.line=o.source.start.line,i.original.column=o.source.start.column-1,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,this.map.addMapping(i))),a=l.match(/\n/g),a?(e+=a.length,n=l.lastIndexOf(`
64
+ `),t=l.length-n):t+=l.length,o&&c!=="start"){let u=o.parent||{raws:{}};(!(o.type==="decl"||o.type==="atrule"&&!o.nodes)||o!==u.last||u.raws.semicolon)&&(o.source&&o.source.end?(i.source=this.sourcePath(o),i.original.line=o.source.end.line,i.original.column=o.source.end.column-1,i.generated.line=e,i.generated.column=t-2,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=t-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?wr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=wr(Da(r,this.mapOpts.annotation)));let i=ka(r,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new Kd(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(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))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(Pn){let r=Pn(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;La==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};var _a=tf;const fs="'".charCodeAt(0),_n='"'.charCodeAt(0),ir="\\".charCodeAt(0),zn="/".charCodeAt(0),nr=`
65
+ `.charCodeAt(0),pt=" ".charCodeAt(0),or="\f".charCodeAt(0),ar=" ".charCodeAt(0),lr="\r".charCodeAt(0),rf="[".charCodeAt(0),sf="]".charCodeAt(0),nf="(".charCodeAt(0),of=")".charCodeAt(0),af="{".charCodeAt(0),lf="}".charCodeAt(0),cf=";".charCodeAt(0),uf="*".charCodeAt(0),hf=":".charCodeAt(0),df="@".charCodeAt(0),cr=/[\t\n\f\r "#'()/;[\\\]{}]/g,ur=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,ff=/.[\r\n"'(/\\]/,Fn=/[\da-f]/i;var pf=function(e,t={}){let r=e.css.valueOf(),i=t.ignoreErrors,n,a,l,o,c,u,h,f,m,p,g=r.length,d=0,y=[],v=[];function A(){return d}function S($){throw e.error("Unclosed "+$,d)}function w(){return v.length===0&&d>=g}function E($){if(v.length)return v.pop();if(d>=g)return;let N=$?$.ignoreUnclosed:!1;switch(n=r.charCodeAt(d),n){case nr:case pt:case ar:case lr:case or:{o=d;do o+=1,n=r.charCodeAt(o);while(n===pt||n===nr||n===ar||n===lr||n===or);u=["space",r.slice(d,o)],d=o-1;break}case rf:case sf:case af:case lf:case hf:case cf:case of:{let _=String.fromCharCode(n);u=[_,_,d];break}case nf:{if(p=y.length?y.pop()[1]:"",m=r.charCodeAt(d+1),p==="url"&&m!==fs&&m!==_n&&m!==pt&&m!==nr&&m!==ar&&m!==or&&m!==lr){o=d;do{if(h=!1,o=r.indexOf(")",o+1),o===-1)if(i||N){o=d;break}else S("bracket");for(f=o;r.charCodeAt(f-1)===ir;)f-=1,h=!h}while(h);u=["brackets",r.slice(d,o+1),d,o],d=o}else o=r.indexOf(")",d+1),a=r.slice(d,o+1),o===-1||ff.test(a)?u=["(","(",d]:(u=["brackets",a,d,o],d=o);break}case fs:case _n:{c=n===fs?"'":'"',o=d;do{if(h=!1,o=r.indexOf(c,o+1),o===-1)if(i||N){o=d+1;break}else S("string");for(f=o;r.charCodeAt(f-1)===ir;)f-=1,h=!h}while(h);u=["string",r.slice(d,o+1),d,o],d=o;break}case df:{cr.lastIndex=d+1,cr.test(r),cr.lastIndex===0?o=r.length-1:o=cr.lastIndex-2,u=["at-word",r.slice(d,o+1),d,o],d=o;break}case ir:{for(o=d,l=!0;r.charCodeAt(o+1)===ir;)o+=1,l=!l;if(n=r.charCodeAt(o+1),l&&n!==zn&&n!==pt&&n!==nr&&n!==ar&&n!==lr&&n!==or&&(o+=1,Fn.test(r.charAt(o)))){for(;Fn.test(r.charAt(o+1));)o+=1;r.charCodeAt(o+1)===pt&&(o+=1)}u=["word",r.slice(d,o+1),d,o],d=o;break}default:{n===zn&&r.charCodeAt(d+1)===uf?(o=r.indexOf("*/",d+2)+1,o===0&&(i||N?o=r.length:S("comment")),u=["comment",r.slice(d,o+1),d,o],d=o):(ur.lastIndex=d+1,ur.test(r),ur.lastIndex===0?o=r.length-1:o=ur.lastIndex-2,u=["word",r.slice(d,o+1),d,o],y.push(u),d=o);break}}return d++,u}function C($){v.push($)}return{back:C,endOfFile:w,nextToken:E,position:A}};let mf=xi,gf=jr,yf=Gr,bf=zt,Bn=Ei,wf=pf;const Wn={empty:!0,space:!0};function Sf(s){for(let e=s.length-1;e>=0;e--){let t=s[e],r=t[3]||t[2];if(r)return r}}let vf=class{constructor(e){this.input=e,this.root=new bf,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new mf;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,i,n,a=!1,l=!1,o=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?c.push(r==="("?")":"]"):r==="{"&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),c.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){l=!0;break}else if(r==="}"){if(o.length>0){for(n=o.length-1,i=o[n];i&&i[0]==="space";)i=o[--n];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}else o.push(e);else o.push(e);if(this.tokenizer.endOfFile()){a=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(o),o.length?(t.raws.afterName=this.spacesAndCommentsFromStart(o),this.raw(t,"params",o),a&&(e=o[o.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)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,i;for(let n=t-1;n>=0&&(i=e[n],!(i[0]!=="space"&&(r+=1,r===2)));n--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0,r,i,n;for(let[a,l]of e.entries()){if(i=l,n=i[0],n==="("&&(t+=1),n===")"&&(t-=1),t===0&&n===":")if(!r)this.doubleColon(i);else{if(r[0]==="word"&&r[1]==="progid")continue;return a}r=i}return!1}comment(e){let t=new gf;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let i=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=i[2],t.raws.left=i[1],t.raws.right=i[3]}}createTokenizer(){this.tokenizer=wf(this.input)}decl(e,t){let r=new yf;this.init(r,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||Sf(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let n;for(;e.length;)if(n=e.shift(),n[0]===":"){r.raws.between+=n[1];break}else n[0]==="word"&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let a=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)a.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(n=e[c],n[1].toLowerCase()==="!important"){r.important=!0;let u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u,u!==" !important"&&(r.raws.important=u);break}else if(n[1].toLowerCase()==="important"){let u=e.slice(0),h="";for(let f=c;f>0;f--){let m=u[f][0];if(h.trim().startsWith("!")&&m!=="space")break;h=u.pop()[1]+h}h.trim().startsWith("!")&&(r.important=!0,r.raws.important=h,e=u)}if(n[0]!=="space"&&n[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(r.raws.between+=a.map(c=>c[1]).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Bn;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(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)}endFile(){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())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(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)}other(e){let t=!1,r=null,i=!1,n=null,a=[],l=e[1].startsWith("--"),o=[],c=e;for(;c;){if(r=c[0],o.push(c),r==="("||r==="[")n||(n=c),a.push(r==="("?")":"]");else if(l&&i&&r==="{")n||(n=c),a.push("}");else if(a.length===0)if(r===";")if(i){this.decl(o,l);return}else break;else if(r==="{"){this.rule(o);return}else if(r==="}"){this.tokenizer.back(o.pop()),t=!0;break}else r===":"&&(i=!0);else r===a[a.length-1]&&(a.pop(),a.length===0&&(n=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(n),t&&i){if(!l)for(;o.length&&(c=o[o.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(o.pop());this.decl(o,l)}else this.unknownWord(o)}parse(){let e;for(;!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()}precheckMissedSemicolon(){}raw(e,t,r,i){let n,a,l=r.length,o="",c=!0,u,h;for(let f=0;f<l;f+=1)n=r[f],a=n[0],a==="space"&&f===l-1&&!i?c=!1:a==="comment"?(h=r[f-1]?r[f-1][0]:"empty",u=r[f+1]?r[f+1][0]:"empty",!Wn[h]&&!Wn[u]?o.slice(-1)===","?c=!1:o+=n[1]:c=!1):o+=n[1];if(!c){let f=r.reduce((m,p)=>m+p[1],"");e.raws[t]={raw:f,value:o}}e[t]=o}rule(e){e.pop();let t=new Bn;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let i=t;i<e.length;i++)r+=e[i][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var Cf=vf;let xf=Ue,Af=Yr,Ef=Cf;function kr(s,e){let t=new Af(s,e),r=new Ef(t);try{r.parse()}catch(i){throw i}return r.root}var Ii=kr;kr.default=kr;xf.registerParse(kr);let Zs=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}toString(){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}};var za=Zs;Zs.default=Zs;let If=za,Js=class{get content(){return this.css}constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css="",this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new If(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}};var $i=Js;Js.default=Js;let $f=Ue,Rf=Ai,Mf=_a,Of=Ii,Hn=$i,Tf=zt,Nf=Ur,{isClean:ve,my:kf}=_t;const Df={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Lf={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},Pf={Once:!0,postcssPlugin:!0,prepare:!0},nt=0;function mt(s){return typeof s=="object"&&typeof s.then=="function"}function Fa(s){let e=!1,t=Df[s.type];return s.type==="decl"?e=s.prop.toLowerCase():s.type==="atrule"&&(e=s.name.toLowerCase()),e&&s.append?[t,t+"-"+e,nt,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:s.append?[t,nt,t+"Exit"]:[t,t+"Exit"]}function Un(s){let e;return s.type==="document"?e=["Document",nt,"DocumentExit"]:s.type==="root"?e=["Root",nt,"RootExit"]:e=Fa(s),{eventIndex:0,events:e,iterator:0,node:s,visitorIndex:0,visitors:[]}}function qs(s){return s[ve]=!1,s.nodes&&s.nodes.forEach(e=>qs(e)),s}let Xs={},ot=class Ba{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,t,r){this.stringified=!1,this.processed=!1;let i;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))i=qs(t);else if(t instanceof Ba||t instanceof Hn)i=qs(t.root),t.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let n=Of;r.syntax&&(n=r.syntax.parse),r.parser&&(n=r.parser),n.parse&&(n=n.parse);try{i=n(t,r)}catch(a){this.processed=!0,this.error=a}i&&!i[kf]&&$f.rebuild(i)}this.result=new Hn(e,i,r),this.helpers=oe(x({},Xs),{postcss:Xs,result:this.result}),this.plugins=this.processor.plugins.map(n=>typeof n=="object"&&n.prepare?x(x({},n),n.prepare(this.result)):n)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(t,r,i)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([t,i])};for(let t of this.plugins)if(typeof t=="object")for(let r in t){if(!Lf[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Pf[r])if(typeof t[r]=="object")for(let i in t[r])i==="*"?e(t,r,t[r][i]):e(t,r+"-"+i.toLowerCase(),t[r][i]);else typeof t[r]=="function"&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(mt(r))try{await r}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ve];){e[ve]=!0;let t=[Un(e)];for(;t.length>0;){let r=this.visitTick(t);if(mt(r))try{await r}catch(i){let n=t[t.length-1].node;throw this.handleError(i,n)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let i=e.nodes.map(n=>r(n,this.helpers));await Promise.all(i)}else await r(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return mt(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=Nf;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new Mf(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(mt(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ve];)e[ve]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,i]of e){this.result.lastPlugin=r;let n;try{n=i(t,this.helpers)}catch(a){throw this.handleError(a,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(mt(n))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:i}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[a,l]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=a;try{return l(r.toProxy(),this.helpers)}catch(o){throw this.handleError(o,r)}}if(t.iterator!==0){let a=t.iterator,l;for(;l=r.nodes[r.indexes[a]];)if(r.indexes[a]+=1,!l[ve]){l[ve]=!0,e.push(Un(l));return}t.iterator=0,delete r.indexes[a]}let n=t.events;for(;t.eventIndex<n.length;){let a=n[t.eventIndex];if(t.eventIndex+=1,a===nt){r.nodes&&r.nodes.length&&(r[ve]=!0,t.iterator=r.getIterator());return}else if(this.listeners[a]){t.visitors=this.listeners[a];return}}e.pop()}walkSync(e){e[ve]=!0;let t=Fa(e);for(let r of t)if(r===nt)e.nodes&&e.each(i=>{i[ve]||this.walkSync(i)});else{let i=this.listeners[r];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}};ot.registerPostcss=s=>{Xs=s};var Wa=ot;ot.default=ot;Tf.registerLazyResult(ot);Rf.registerLazyResult(ot);let _f=_a,zf=Ii;const Ff=$i;let Bf=Ur;let Ks=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=zf;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let i,n=Bf;this.result=new Ff(this._processor,i,this._opts),this.result.css=t;let a=this;Object.defineProperty(this.result,"root",{get(){return a.root}});let l=new _f(n,i,this._opts,t);if(l.isMap()){let[o,c]=l.generate();o&&(this.result.css=o),c&&(this.result.map=c)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}};var Wf=Ks;Ks.default=Ks;let Hf=Ai,Uf=Wa,Vf=Wf,jf=zt,Nt=class{constructor(e=[]){this.version="8.5.6",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)t.push(r);else if(typeof r=="function")t.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Vf(this,e,t):new Uf(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var Gf=Nt;Nt.default=Nt;jf.registerProcessor(Nt);Hf.registerProcessor(Nt);let Ha=xi,Ua=jr,Yf=Ue,Zf=Si,Va=Gr,ja=Ai,Jf=Xd,qf=Yr,Xf=Wa,Kf=Ta,Qf=Vr,ep=Ii,Ri=Gf,tp=$i,Ga=zt,Ya=Ei,rp=Ur,sp=za;function V(...s){return s.length===1&&Array.isArray(s[0])&&(s=s[0]),new Ri(s)}V.plugin=function(e,t){let r=!1;function i(...a){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
66
66
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
67
- https://www.w3ctech.com/topic/2226`));let l=t(...a);return l.postcssPlugin=e,l.postcssVersion=new Ei().version,l}let n;return Object.defineProperty(i,"postcss",{get(){return n||(n=i()),n}}),i.process=function(a,l,o){return U([i(o)]).process(a,l)},i};U.stringify=jf;U.parse=Uf;U.fromJSON=zf;U.list=Wf;U.comment=s=>new za(s);U.atRule=s=>new _a(s);U.decl=s=>new Fa(s);U.rule=s=>new Ha(s);U.root=s=>new Wa(s);U.document=s=>new Ba(s);U.CssSyntaxError=_f;U.Declaration=Fa;U.Container=Pf;U.Processor=Ei;U.Document=Ba;U.Comment=za;U.Warning=Gf;U.AtRule=_a;U.Result=Vf;U.Input=Ff;U.Rule=Ha;U.Root=Wa;U.Node=Hf;Bf.registerPostcss(U);var Yf=U;U.default=U;const K=nd(Yf);K.stringify;K.fromJSON;K.plugin;K.parse;K.list;K.document;K.comment;K.atRule;K.rule;K.decl;K.root;K.CssSyntaxError;K.Declaration;K.Container;K.Processor;K.Document;K.Comment;K.Warning;K.AtRule;K.Result;K.Input;K.Rule;K.Root;K.Node;class $i{constructor(...e){pe(this,"parentElement",null),pe(this,"parentNode",null),pe(this,"ownerDocument"),pe(this,"firstChild",null),pe(this,"lastChild",null),pe(this,"previousSibling",null),pe(this,"nextSibling",null),pe(this,"ELEMENT_NODE",1),pe(this,"TEXT_NODE",3),pe(this,"nodeType"),pe(this,"nodeName"),pe(this,"RRNodeType")}get childNodes(){const e=[];let t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(e instanceof $i){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}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}const Wn={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Hn={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},hr={},Zf=()=>!!globalThis.Zone;function Ri(s){if(hr[s])return hr[s];const e=globalThis[s],t=e.prototype,r=s in Wn?Wn[s]:void 0,i=!!(r&&r.every(l=>{var o,u;return!!((u=(o=Object.getOwnPropertyDescriptor(t,l))==null?void 0:o.get)!=null&&u.toString().includes("[native code]"))})),n=s in Hn?Hn[s]:void 0,a=!!(n&&n.every(l=>{var o;return typeof t[l]=="function"&&((o=t[l])==null?void 0:o.toString().includes("[native code]"))}));if(i&&a&&!Zf())return hr[s]=e.prototype,e.prototype;try{const l=document.createElement("iframe");document.body.appendChild(l);const o=l.contentWindow;if(!o)return e.prototype;const u=o[s].prototype;return document.body.removeChild(l),u?hr[s]=u:t}catch(l){return t}}const ds={};function ze(s,e,t){var r;const i=`${s}.${String(t)}`;if(ds[i])return ds[i].call(e);const n=Ri(s),a=(r=Object.getOwnPropertyDescriptor(n,t))==null?void 0:r.get;return a?(ds[i]=a,a.call(e)):e[t]}const fs={};function Ua(s,e,t){const r=`${s}.${String(t)}`;if(fs[r])return fs[r].bind(e);const n=Ri(s)[t];return typeof n!="function"?e[t]:(fs[r]=n,n.bind(e))}function Jf(s){return ze("Node",s,"childNodes")}function Xf(s){return ze("Node",s,"parentNode")}function Kf(s){return ze("Node",s,"parentElement")}function qf(s){return ze("Node",s,"textContent")}function Qf(s,e){return Ua("Node",s,"contains")(e)}function ep(s){return Ua("Node",s,"getRootNode")()}function tp(s){return!s||!("host"in s)?null:ze("ShadowRoot",s,"host")}function rp(s){return s.styleSheets}function sp(s){return!s||!("shadowRoot"in s)?null:ze("Element",s,"shadowRoot")}function ip(s,e){return ze("Element",s,"querySelector")(e)}function np(s,e){return ze("Element",s,"querySelectorAll")(e)}function Mi(){return Ri("MutationObserver").constructor}function Me(s,e,t){try{if(!(e in s))return()=>{};const r=s[e],i=t(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),s[e]=i,()=>{s[e]=r}}catch(r){return()=>{}}}function op(s){const e=s.tagName.toLowerCase(),t=s.id?`#${s.id}`:"",r=s.classList.length?"."+Array.from(s.classList).join("."):"";return`${e}${t}${r}`}function ap(s){var d;var e,t;const r=(d=(e=s.ownerDocument)==null?void 0:e.defaultView)!=null?d:window,i=s.getBoundingClientRect(),n=r.innerWidth||r.document.documentElement.clientWidth||0,a=r.innerHeight||r.document.documentElement.clientHeight||0,l=i.width>0&&i.height>0&&i.bottom>0&&i.right>0&&i.top<a&&i.left<n,o=(t=r.getComputedStyle)==null?void 0:t.call(r,s),c=!!o&&o.display!=="none"&&o.visibility!=="hidden"&&(parseFloat(o.opacity)||0)>0&&l;let h=0;if(c){const f=Math.max(0,Math.min(i.right,n)-Math.max(i.left,0)),m=Math.max(0,Math.min(i.bottom,a)-Math.max(i.top,0)),g=f*m,p=i.width*i.height;h=p>0?g/p:0}return{isVisible:c,ratio:h}}const T={childNodes:Jf,parentNode:Xf,parentElement:Kf,textContent:qf,contains:Qf,getRootNode:ep,host:tp,styleSheets:rp,shadowRoot:sp,querySelector:ip,querySelectorAll:np,mutationObserver:Mi,patch:Me,describeNode:op,getElementVisibility:ap};function se(s,e,t=document){const r={capture:!0,passive:!0};return t.addEventListener(s,e,r),()=>t.removeEventListener(s,e,r)}const Je=`Please stop import mirror directly. Instead of that,\r
67
+ https://www.w3ctech.com/topic/2226`));let l=t(...a);return l.postcssPlugin=e,l.postcssVersion=new Ri().version,l}let n;return Object.defineProperty(i,"postcss",{get(){return n||(n=i()),n}}),i.process=function(a,l,o){return V([i(o)]).process(a,l)},i};V.stringify=rp;V.parse=ep;V.fromJSON=Jf;V.list=Kf;V.comment=s=>new Ua(s);V.atRule=s=>new Ha(s);V.decl=s=>new Va(s);V.rule=s=>new Ya(s);V.root=s=>new Ga(s);V.document=s=>new ja(s);V.CssSyntaxError=Zf;V.Declaration=Va;V.Container=Yf;V.Processor=Ri;V.Document=ja;V.Comment=Ua;V.Warning=sp;V.AtRule=Ha;V.Result=tp;V.Input=qf;V.Rule=Ya;V.Root=Ga;V.Node=Qf;Xf.registerPostcss(V);var ip=V;V.default=V;const X=gd(ip);X.stringify;X.fromJSON;X.plugin;X.parse;X.list;X.document;X.comment;X.atRule;X.rule;X.decl;X.root;X.CssSyntaxError;X.Declaration;X.Container;X.Processor;X.Document;X.Comment;X.Warning;X.AtRule;X.Result;X.Input;X.Rule;X.Root;X.Node;class Mi{constructor(...e){pe(this,"parentElement",null),pe(this,"parentNode",null),pe(this,"ownerDocument"),pe(this,"firstChild",null),pe(this,"lastChild",null),pe(this,"previousSibling",null),pe(this,"nextSibling",null),pe(this,"ELEMENT_NODE",1),pe(this,"TEXT_NODE",3),pe(this,"nodeType"),pe(this,"nodeName"),pe(this,"RRNodeType")}get childNodes(){const e=[];let t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(e instanceof Mi){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}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}const Vn={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},jn={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},hr={},np=()=>!!globalThis.Zone;function Oi(s){if(hr[s])return hr[s];const e=globalThis[s],t=e.prototype,r=s in Vn?Vn[s]:void 0,i=!!(r&&r.every(l=>{var o,c;return!!((c=(o=Object.getOwnPropertyDescriptor(t,l))==null?void 0:o.get)!=null&&c.toString().includes("[native code]"))})),n=s in jn?jn[s]:void 0,a=!!(n&&n.every(l=>{var o;return typeof t[l]=="function"&&((o=t[l])==null?void 0:o.toString().includes("[native code]"))}));if(i&&a&&!np())return hr[s]=e.prototype,e.prototype;try{const l=document.createElement("iframe");document.body.appendChild(l);const o=l.contentWindow;if(!o)return e.prototype;const c=o[s].prototype;return document.body.removeChild(l),c?hr[s]=c:t}catch(l){return t}}const ps={};function ze(s,e,t){var r;const i=`${s}.${String(t)}`;if(ps[i])return ps[i].call(e);const n=Oi(s),a=(r=Object.getOwnPropertyDescriptor(n,t))==null?void 0:r.get;return a?(ps[i]=a,a.call(e)):e[t]}const ms={};function Za(s,e,t){const r=`${s}.${String(t)}`;if(ms[r])return ms[r].bind(e);const n=Oi(s)[t];return typeof n!="function"?e[t]:(ms[r]=n,n.bind(e))}function op(s){return ze("Node",s,"childNodes")}function ap(s){return ze("Node",s,"parentNode")}function lp(s){return ze("Node",s,"parentElement")}function cp(s){return ze("Node",s,"textContent")}function up(s,e){return Za("Node",s,"contains")(e)}function hp(s){return Za("Node",s,"getRootNode")()}function dp(s){return!s||!("host"in s)?null:ze("ShadowRoot",s,"host")}function fp(s){return s.styleSheets}function pp(s){return!s||!("shadowRoot"in s)?null:ze("Element",s,"shadowRoot")}function mp(s,e){return ze("Element",s,"querySelector")(e)}function gp(s,e){return ze("Element",s,"querySelectorAll")(e)}function Ti(){return Oi("MutationObserver").constructor}function Me(s,e,t){try{if(!(e in s))return()=>{};const r=s[e],i=t(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),s[e]=i,()=>{s[e]=r}}catch(r){return()=>{}}}function yp(s){const e=s.tagName.toLowerCase(),t=s.id?`#${s.id}`:"",r=s.classList.length?"."+Array.from(s.classList).join("."):"";return`${e}${t}${r}`}function bp(s){var f;var e,t;const r=(f=(e=s.ownerDocument)==null?void 0:e.defaultView)!=null?f:window,i=s.getBoundingClientRect(),n=r.innerWidth||r.document.documentElement.clientWidth||0,a=r.innerHeight||r.document.documentElement.clientHeight||0,l=i.width>0&&i.height>0&&i.bottom>0&&i.right>0&&i.top<a&&i.left<n,o=(t=r.getComputedStyle)==null?void 0:t.call(r,s),u=!!o&&o.display!=="none"&&o.visibility!=="hidden"&&(parseFloat(o.opacity)||0)>0&&l;let h=0;if(u){const m=Math.max(0,Math.min(i.right,n)-Math.max(i.left,0)),p=Math.max(0,Math.min(i.bottom,a)-Math.max(i.top,0)),g=m*p,d=i.width*i.height;h=d>0?g/d:0}return{isVisible:u,ratio:h}}const T={childNodes:op,parentNode:ap,parentElement:lp,textContent:cp,contains:up,getRootNode:hp,host:dp,styleSheets:fp,shadowRoot:pp,querySelector:mp,querySelectorAll:gp,mutationObserver:Ti,patch:Me,describeNode:yp,getElementVisibility:bp};function se(s,e,t=document){const r={capture:!0,passive:!0};return t.addEventListener(s,e,r),()=>t.removeEventListener(s,e,r)}const Je=`Please stop import mirror directly. Instead of that,\r
68
68
  now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
69
- or you can use record.mirror to access the mirror instance during recording.`;let Un={map:{},getId(){return console.error(Je),-1},getNode(){return console.error(Je),null},removeNodeFromMap(){console.error(Je)},has(){return console.error(Je),!1},reset(){console.error(Je)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(Un=new Proxy(Un,{get(s,e,t){return e==="map"&&console.error(Je),Reflect.get(s,e,t)}}));function kt(s,e,t={}){let r=null,i=0;return function(...n){const a=Date.now();!i&&t.leading===!1&&(i=a);const l=e-(a-i),o=this;l<=0||l>e?(r&&(clearTimeout(r),r=null),i=a,s.apply(o,n)):!r&&t.trailing!==!1&&(r=setTimeout(()=>{i=t.leading===!1?0:Date.now(),r=null,s.apply(o,n)},l))}}function Gr(s,e,t,r,i=window){const n=i.Object.getOwnPropertyDescriptor(s,e);return i.Object.defineProperty(s,e,r?t:{set(a){setTimeout(()=>{t.set.call(this,a)},0),n&&n.set&&n.set.call(this,a)}}),()=>Gr(s,e,n||{},!0)}function ae(){return Math.round(performance.timeOrigin+performance.now())}function Va(s=window){var e,t,r,i;const n=s.document;return{left:n.scrollingElement?n.scrollingElement.scrollLeft:s.pageXOffset!==void 0?s.pageXOffset:n.documentElement.scrollLeft||(n==null?void 0:n.body)&&((e=T.parentElement(n.body))==null?void 0:e.scrollLeft)||((t=n==null?void 0:n.body)==null?void 0:t.scrollLeft)||0,top:n.scrollingElement?n.scrollingElement.scrollTop:s.pageYOffset!==void 0?s.pageYOffset:(n==null?void 0:n.documentElement.scrollTop)||(n==null?void 0:n.body)&&((r=T.parentElement(n.body))==null?void 0:r.scrollTop)||((i=n==null?void 0:n.body)==null?void 0:i.scrollTop)||0}}function ja(s=window){const e=s.document;return s.innerHeight||e.documentElement&&e.documentElement.clientHeight||e.body&&e.body.clientHeight||0}function Ga(s=window){const e=s.document;return s.innerWidth||e.documentElement&&e.documentElement.clientWidth||e.body&&e.body.clientWidth||0}function Oi(s){return s?s.nodeType===s.ELEMENT_NODE?s:T.parentElement(s):null}function le(s,e,t,r){if(!s)return!1;const i=Oi(s);if(!i)return!1;try{if(typeof e=="string"){if(i.classList.contains(e)||r&&i.closest("."+e)!==null)return!0}else if(Ar(i,e,r))return!0}catch(n){}return!!(t&&(i.matches(t)||r&&i.closest(t)!==null))}function lp(s,e){return e.getId(s)!==-1}function ps(s,e,t){return s.tagName==="TITLE"&&t.headTitleMutations?!0:e.getId(s)===At}function Ya(s,e){if(bt(s))return!1;const t=e.getId(s);if(!e.has(t))return!0;const r=T.parentNode(s);return r&&r.nodeType===s.DOCUMENT_NODE?!1:r?Ya(r,e):!0}function Ks(s){return!!s.changedTouches}function cp(s=window){"NodeList"in s&&!s.NodeList.prototype.forEach&&(s.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in s&&!s.DOMTokenList.prototype.forEach&&(s.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Za(s,e){return!!(s.nodeName==="IFRAME"&&e.getMeta(s))}function Ja(s,e){return!!(s.nodeName==="LINK"&&s.nodeType===s.ELEMENT_NODE&&s.getAttribute&&s.getAttribute("rel")==="stylesheet"&&e.getMeta(s))}function qs(s){return s?s instanceof $i&&"shadowRoot"in s?!!s.shadowRoot:!!T.shadowRoot(s):!1}class up{constructor(){y(this,"id",1),y(this,"styleIDMap",new WeakMap),y(this,"idStyleMap",new Map)}getId(e){var t;return(t=this.styleIDMap.get(e))!=null?t:-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let r;return t===void 0?r=this.id++:r=t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Xa(s){var e;let t=null;return"getRootNode"in s&&((e=T.getRootNode(s))==null?void 0:e.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&T.host(T.getRootNode(s))&&(t=T.host(T.getRootNode(s))),t}function hp(s){let e=s,t;for(;t=Xa(e);)e=t;return e}function dp(s){const e=s.ownerDocument;if(!e)return!1;const t=hp(s);return T.contains(e,t)}function Ka(s){const e=s.ownerDocument;return e?T.contains(e,s)||dp(s):!1}var P=(s=>(s[s.DomContentLoaded=0]="DomContentLoaded",s[s.Load=1]="Load",s[s.FullSnapshot=2]="FullSnapshot",s[s.IncrementalSnapshot=3]="IncrementalSnapshot",s[s.Meta=4]="Meta",s[s.Custom=5]="Custom",s[s.Plugin=6]="Plugin",s))(P||{}),D=(s=>(s[s.Mutation=0]="Mutation",s[s.MouseMove=1]="MouseMove",s[s.MouseInteraction=2]="MouseInteraction",s[s.Scroll=3]="Scroll",s[s.ViewportResize=4]="ViewportResize",s[s.Input=5]="Input",s[s.TouchMove=6]="TouchMove",s[s.MediaInteraction=7]="MediaInteraction",s[s.StyleSheetRule=8]="StyleSheetRule",s[s.CanvasMutation=9]="CanvasMutation",s[s.Font=10]="Font",s[s.Log=11]="Log",s[s.Drag=12]="Drag",s[s.StyleDeclaration=13]="StyleDeclaration",s[s.Selection=14]="Selection",s[s.AdoptedStyleSheet=15]="AdoptedStyleSheet",s[s.CustomElement=16]="CustomElement",s[s.Visibility=17]="Visibility",s))(D||{}),ce=(s=>(s[s.MouseUp=0]="MouseUp",s[s.MouseDown=1]="MouseDown",s[s.Click=2]="Click",s[s.ContextMenu=3]="ContextMenu",s[s.DblClick=4]="DblClick",s[s.Focus=5]="Focus",s[s.Blur=6]="Blur",s[s.TouchStart=7]="TouchStart",s[s.TouchMove_Departed=8]="TouchMove_Departed",s[s.TouchEnd=9]="TouchEnd",s[s.TouchCancel=10]="TouchCancel",s))(ce||{}),Ee=(s=>(s[s.Mouse=0]="Mouse",s[s.Pen=1]="Pen",s[s.Touch=2]="Touch",s))(Ee||{}),at=(s=>(s[s["2D"]=0]="2D",s[s.WebGL=1]="WebGL",s[s.WebGL2=2]="WebGL2",s))(at||{}),Xe=(s=>(s[s.Play=0]="Play",s[s.Pause=1]="Pause",s[s.Seeked=2]="Seeked",s[s.VolumeChange=3]="VolumeChange",s[s.RateChange=4]="RateChange",s))(Xe||{}),qa=(s=>(s[s.Document=0]="Document",s[s.DocumentType=1]="DocumentType",s[s.Element=2]="Element",s[s.Text=3]="Text",s[s.CDATA=4]="CDATA",s[s.Comment=5]="Comment",s))(qa||{});const dr={ANCHOR:.4,PATH:.3,TARGET:.2,UNIQUENESS:.1},Ce={SEMANTIC_TAG:.5,ROLE:.3,ARIA_LABEL:.1,STABLE_ID:.25,TEST_MARKER:.05,DEPTH_PENALTY_THRESHOLD:5,DEPTH_PENALTY_FACTOR:.05,DEGRADED_SCORE:.3},fp={MIN_CONFIDENCE_FOR_SKIP:.7},Vn=["form","main","nav","section","article","footer","header"],jn=["form","navigation","main","region","contentinfo","complementary","banner","search"],pp=["article","aside","details","figcaption","figure","footer","header","main","mark","nav","section","summary","time","button","datalist","fieldset","form","input","label","legend","meter","optgroup","option","output","progress","select","textarea","a","audio","video","canvas","dialog","menu","blockquote","dd","dl","dt","hr","li","ol","ul","p","pre","h1","h2","h3","h4","h5","h6","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr","svg","path","circle","rect","line","polyline","polygon","ellipse","g","text","use"],Pe={"data-testid":100,"data-qa":99,"data-cy":98,"data-test":97,"data-test-id":96,"aria-label":90,"aria-labelledby":85,"aria-describedby":80,name:75,href:70,src:70,type:65,role:60,alt:55,title:50,for:45,placeholder:40,"data-*":30,"aria-*":25},Qa=new Set(["id","class","style","xmlns","tabindex","contenteditable"]),mp={maxPathDepth:10,enableSvgFingerprint:!0,confidenceThreshold:0,fallbackToBody:!0,includeUtilityClasses:!1,source:"dom-dsl"};function Dt(s){if(/^[a-z]+-\d+$/i.test(s)||/^[a-z]+(-[a-z]+)+-\d+$/i.test(s)||/^[a-z]+(_[a-z]+)*_\d+$/i.test(s)||/^\d+$/.test(s)||/^:[a-z0-9]+:$/i.test(s)||/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/i.test(s))return!0;if(/^[a-z]{1,3}[A-Za-z0-9]{8,}$/.test(s)){const e=/\d/.test(s),t=/[A-Z]/.test(s),r=s.length>=20;if(e&&t||r)return!0}return!!(/^radix-/.test(s)||/^mui-\d+$/.test(s))}const el=new Set(["aria-labelledby","aria-describedby","aria-controls","aria-owns","aria-activedescendant","for","form","list","headers","aria-details","aria-errormessage","aria-flowto"]);function tl(s){return s.trim().split(/\s+/).some(e=>Dt(e))}class gp{constructor(e,t){var r;this.maxDepth=(r=e.maxPathDepth)!=null?r:10,this.cache=t}findAnchor(e){if(this.cache){const o=this.cache.getAnchor(e);if(o!==void 0)return o}const t=e.tagName.toLowerCase(),r=e.ownerDocument;if(t==="html"){const o={element:e,score:1,tier:"A",depth:0};return this.cacheResult(e,o),o}if(t==="head"||this.isInsideHead(e)){const o=r==null?void 0:r.documentElement;if(o){const u={element:o,score:1,tier:"A",depth:0};return this.cacheResult(e,u),u}}if(t==="body"){const o=r==null?void 0:r.documentElement;if(o){const u={element:o,score:1,tier:"A",depth:0};return this.cacheResult(e,u),u}}let i=e.parentElement,n=0,a=null;for(;i&&n<this.maxDepth;){if(i.tagName.toLowerCase()==="body")return a||{element:i,score:Ce.DEGRADED_SCORE,tier:"C",depth:n};const o=this.scoreAnchor(i);if(o>0){const u=this.applyDepthPenalty(o,n),c=this.getTier(i),h={element:i,score:u,tier:c,depth:n};if(c==="A")return h;(!a||u>a.score)&&(a=h)}i=i.parentElement,n++}const l=a;return this.cache&&this.cache.setAnchor(e,l),l}scoreAnchor(e){let t=0;const r=e.tagName.toLowerCase();Vn.includes(r)&&(t+=Ce.SEMANTIC_TAG);const i=e.getAttribute("role");i&&jn.includes(i)&&(t+=Ce.ROLE),(e.hasAttribute("aria-label")||e.hasAttribute("aria-labelledby"))&&(t+=Ce.ARIA_LABEL);const n=e.id;return n&&!Dt(n)&&(t+=Ce.STABLE_ID),(e.hasAttribute("data-testid")||e.hasAttribute("data-qa")||e.hasAttribute("data-test"))&&(t+=Ce.TEST_MARKER),Math.min(t,1)}applyDepthPenalty(e,t){if(t<=Ce.DEPTH_PENALTY_THRESHOLD)return e;const r=(t-Ce.DEPTH_PENALTY_THRESHOLD)*Ce.DEPTH_PENALTY_FACTOR;return Math.max(0,e-r)}getTier(e){const t=e.tagName.toLowerCase();if(Vn.includes(t))return"A";const r=e.getAttribute("role");return r&&jn.includes(r)?"B":"C"}isInsideHead(e){let t=e.parentElement;for(;t;){const r=t.tagName.toLowerCase();if(r==="head")return!0;if(r==="body")return!1;t=t.parentElement}return!1}cacheResult(e,t){this.cache&&this.cache.setAnchor(e,t)}}const yp=[/^css-[a-z0-9]+$/i,/^sc-[a-z0-9]+-\d+$/i,/^[a-z]{5,8}$/i,/^Mui[A-Z]\w+-\w+-\w+/,/^makeStyles-\w+-\d+$/,/^jss\d+$/,/^(emotion|linaria)-[a-z0-9]+/i,/^(chakra|tw-|ant-)[a-z0-9]+-\w+/i,/-[a-f0-9]{6,}$/i,/^_[a-z0-9]{5,}$/i,/\d{5,}/],bp=[/^\[/,/^(first|last|odd|even|only|first-of-type|last-of-type|only-of-type):/,/^(hover|focus|active|disabled|enabled|checked|indeterminate|default|required|valid|invalid|in-range|out-of-range|placeholder-shown|autofill|read-only):/,/^(focus-within|focus-visible|visited|target|open):/,/^(sm|md|lg|xl|2xl|3xl|4xl|5xl|6xl|7xl):/,/^dark:/,/^(rtl|ltr):/,/^(group|peer)(-hover|-focus|-active)?:/,/^[a-z][a-z-]*:/,/\/([\d.]+|full|auto|screen)$/,/^(inset|top|right|bottom|left)(-|$)/,/^(flex|inline-flex|grid|block|inline|inline-block|hidden|visible)$/,/^(absolute|relative|fixed|sticky|static)$/,/^(items|justify|content|self|place)-/,/^flex-(row|col|wrap|nowrap|1|auto|initial|none)/,/^grid-(cols|rows|flow)/,/^(gap|space)-/,/^[mp][trblxy]?-(\d+|auto|px)$/,/^-[mp][trblxy]?-\d+$/,/^-(top|right|bottom|left|inset)-\d+$/,/^-z-\d+$/,/^-space-[xy]-\d+$/,/^-translate-[xy]-\d+$/,/^-rotate-\d+$/,/^-scale-\d+$/,/^-skew-[xy]-\d+$/,/^(w|h|min-w|min-h|max-w|max-h|size)-/,/^text-(center|left|right|justify|start|end|xs|sm|base|lg|xl|2xl|3xl|4xl|5xl|6xl|7xl|8xl|9xl)$/,/^text-(uppercase|lowercase|capitalize|normal-case|underline|line-through|no-underline)$/,/^text-(truncate|ellipsis|clip)$/,/^(bg|border|ring|shadow|outline)-/,/^rounded(-|$)/,/^(font|leading|tracking|whitespace|break|truncate)-/,/^(uppercase|lowercase|capitalize|normal-case)$/,/^(transform|transition|duration|delay|ease|animate)-/,/^(scale|rotate|translate|skew)-/,/^transform$/,/^backdrop-blur-/,/^motion-/,/^(fade|slide|zoom|bounce|pulse|spin|ping)-/,/^(overflow|overscroll|scroll)-/,/^object-(contain|cover|fill|none|scale-down)$/,/^(cursor|pointer-events|select|resize)-/,/^(opacity|z)-/,/^(visible|invisible|collapse)$/,/^d-(none|inline|inline-block|block|grid|table|flex)$/,/^(float|clearfix|text)-(left|right|center|justify|start|end)$/,/^(m|p)[trblxy]?-[0-5]$/,/^(w|h)-(25|50|75|100|auto)$/,/^btn-(sm|lg|block)$/,/^text-(muted|primary|success|danger|warning|info|light|dark|white)$/,/^bg-(primary|secondary|success|danger|warning|info|light|dark|white|transparent)$/,/^border(-top|-bottom|-left|-right)?(-0)?$/,/^rounded(-top|-bottom|-left|-right|-circle|-pill|-0)?$/,/^shadow(-sm|-lg|-none)?$/,/^(align|justify|order|flex)-(start|end|center|between|around|fill|grow|shrink)$/,/^col(-sm|-md|-lg|-xl)?(-\d+|-auto)?$/,/^row(-cols)?(-\d+)?$/,/^g[xy]?-[0-5]$/,/^(show|hide|invisible|visible)$/,/^(position|top|bottom|start|end)-(static|relative|absolute|fixed|sticky|-\d+)$/,/^(row|col)$/,/^clearfix$/,/^pull-(left|right)$/,/^float-(left|right|none)$/];function Ti(s){return yp.some(e=>e.test(s))}function Ni(s){return s.length<=2||/^\d/.test(s)?!0:bp.some(e=>e.test(s))}function wp(s){return!Ti(s)&&!Ni(s)}function Sp(s){return s.filter(e=>wp(e))}function vp(s){const e=[],t=[];for(const r of s)Ni(r)||Ti(r)?t.push(r):e.push(r);return{semantic:e,utility:t}}function Gn(s){return Ni(s)||Ti(s)}const Yn=s=>s.replace(/([#:.[\]@])/g,"\\$1");class Cp{constructor(e,t){var r;this.maxDepth=(r=e.maxPathDepth)!=null?r:10,this.cache=t}buildPath(e,t,r){const i=e.tagName.toLowerCase(),n=t.tagName.toLowerCase();if(i==="html"&&(n==="head"||n==="body"))return{path:[],degraded:!1};if(i==="html"&&this.isInsideHead(t))return this.buildHeadPath(e,t,r);const a=[];let l=t.parentElement;for(;l&&l!==e&&a.length<this.maxDepth;)a.unshift(l),l=l.parentElement;const o=a.length>=this.maxDepth&&l!==e;if(!o&&l!==e)return console.warn("[PathBuilder] Target is not a descendant of anchor"),{path:[],degraded:!0,degradationReason:"target-not-descendant-of-anchor"};let u=this.filterNoise(a);return u=this.ensureUniqueness(a,u,e,t,r),{path:u.map(c=>{const h=c.parentElement;let d;if(h){const f=Array.from(h.children).indexOf(c);f!==-1&&(d=f+1)}return{tag:c.tagName.toLowerCase(),semantics:r.extract(c),score:r.scoreElement(c),nthChild:d}}),degraded:o,degradationReason:o?"path-depth-overflow":void 0}}buildPathNodes(e,t,r){return this.buildPath(e,t,r).path}ensureUniqueness(e,t,r,i,n){const a=this.buildTestSelector(r,t,i);try{const l=i.ownerDocument;if(!l)return t;let o;if(this.cache){const c=this.cache.getSelectorResults(a);c!==void 0?o=c:(o=Array.from(l.querySelectorAll(a)),this.cache.setSelectorResults(a,o))}else o=l.querySelectorAll(a);if(o.length<=1)return t;const u=e.filter(c=>!t.includes(c));for(const c of u){if(n.scoreElement(c)<fp.MIN_CONFIDENCE_FOR_SKIP)continue;const h=this.insertNodeInOrder(t,c,e),d=this.buildTestSelector(r,h,i);try{let f;if(this.cache){const m=this.cache.getSelectorResults(d);m!==void 0?f=m:(f=Array.from(l.querySelectorAll(d)),this.cache.setSelectorResults(d,f))}else f=l.querySelectorAll(d);if(f.length===1)return h;f.length<o.length&&(t=h)}catch(f){}}return t}catch(l){return t}}insertNodeInOrder(e,t,r){const i=r.indexOf(t),n=[...e];let a=0;for(let l=0;l<n.length&&!(r.indexOf(n[l])>i);l++)a=l+1;return n.splice(a,0,t),n}buildTestSelector(e,t,r){const i=[];i.push(this.elementToSelector(e));for(const n of t)i.push(this.elementToSelector(n));return i.push(this.elementToSelector(r)),i.join(" ")}elementToSelector(e){let t=e.tagName.toLowerCase();e.id&&!Dt(e.id)&&(t+=`#${Yn(e.id)}`);for(const r of Array.from(e.classList))Gn(r)||(t+=`.${Yn(r)}`);return t}filterNoise(e){return e.filter(t=>this.shouldInclude(t))}shouldInclude(e){const t=e.tagName.toLowerCase();return pp.includes(t)?!0:t==="div"||t==="span"?this.hasSemanticFeatures(e):!1}hasSemanticFeatures(e){if(e.hasAttribute("role"))return!0;for(const r of Array.from(e.attributes))if(r.name.startsWith("aria-"))return!0;if(e.classList.length>0){for(const r of Array.from(e.classList))if(!Gn(r))return!0}if(e.hasAttribute("data-testid")||e.hasAttribute("data-qa")||e.hasAttribute("data-test"))return!0;const t=e.id;return!!(t&&!Dt(t))}isInsideHead(e){let t=e.parentElement;for(;t;){const r=t.tagName.toLowerCase();if(r==="head")return!0;if(r==="body")return!1;t=t.parentElement}return!1}buildHeadPath(e,t,r){const i=[];let n=t.parentElement;for(;n&&n!==e;)i.unshift(n),n=n.parentElement;return n!==e?{path:[],degraded:!0,degradationReason:"target-not-descendant-of-html"}:i.findIndex(a=>a.tagName.toLowerCase()==="head")===-1?{path:[],degraded:!0,degradationReason:"head-not-found-in-path"}:{path:i.map(a=>{const l=a.parentElement;let o;if(l){const u=Array.from(l.children).indexOf(a);u!==-1&&(o=u+1)}return{tag:a.tagName.toLowerCase(),semantics:r.extract(a),score:r.scoreElement(a),nthChild:o}}),degraded:!1}}}function xp(s){return s?s.trim().replace(/[\n\t\r]/g," ").replace(/\s+/g," "):""}const Ap={preserveQueryForAbsolute:!0,removeDynamicHashes:!0};function Ip(s){return s?[/\d{5,}/,/[a-f0-9]{8,}/i,/(session|token|temp|random|timestamp|nonce|cache)/i,/^\d+$/,/^[a-f0-9-]{32,}$/i].some(e=>e.test(s)):!1}function Ep(s,e){if(!s)return s;const t=s.startsWith("http://")||s.startsWith("https://"),[r,i]=s.split("#"),[n,a]=r.split("?");let l=n;return t&&e.preserveQueryForAbsolute&&a&&(l+=`?${a}`),i&&(e.removeDynamicHashes&&Ip(i)||(l+=`#${i}`)),l}function rl(s,e,t={}){if(!e)return e;const r=x(x({},Ap),t);return s==="href"||s==="src"?Ep(e,r):e}const $p=["role","aria-label","aria-labelledby","aria-describedby","aria-controls","aria-owns","aria-level","aria-posinset","aria-setsize","aria-haspopup"],Rp=["aria-selected","aria-checked","aria-pressed","aria-expanded","aria-hidden","aria-disabled","aria-current","aria-busy","aria-invalid","aria-grabbed","aria-live","aria-atomic"],Mp=["data-state","data-active","data-inactive","data-selected","data-open","data-closed","data-visible","data-hidden","data-disabled","data-enabled","data-loading","data-error","data-success","data-highlighted","data-focused","data-hover","data-orientation","data-theme"],Op=["data-radix-","data-headlessui-","data-reach-","data-mui-","data-chakra-","data-mantine-","data-tw-"],Tp=["data-testid","data-test-id","data-test","data-cy","data-qa","data-automation-id","data-id","data-component","data-entity-id","data-product-id","data-user-id"],Np=["data-ga","data-gtm","data-google","data-layer","data-event","data-yandex","data-ym","data-metrika","data-optimizely","data-vwo","data-optimize","data-hj","data-hotjar","data-fs","data-mouseflow","data-mf","data-smartlook","data-sl","data-fb","data-facebook","data-tt","data-li","data-track","data-tracking","data-click","data-impression","data-conversion","data-segment","data-analytics"],kp=["data-category","data-action","data-label","data-value"],Dp=["id","name","type","placeholder","title","for","alt","href"],Lp=["disabled","checked","selected","hidden","readonly","required","value"],Pp=[/^radix-/,/^headlessui-/,/^mui-/,/:\w+:/];function _p(s,e){return $p.includes(s)?!0:Rp.includes(s)||Mp.includes(s)||Op.some(t=>s.startsWith(t))?!1:Tp.includes(s)?!0:Np.some(t=>s.startsWith(t))||kp.includes(s)?!1:s.startsWith("data-")&&s.endsWith("-id")?!0:s==="id"?!Pp.some(t=>t.test(e)):Dp.includes(s)?!0:Lp.includes(s)?!1:!!s.startsWith("data-")}class Zn{constructor(e,t){var r;this.includeUtilityClasses=(r=e.includeUtilityClasses)!=null?r:!1,this.cache=t}extract(e){if(this.cache){const a=this.cache.getSemantics(e);if(a!==void 0)return a}const t={},r=e.id;if(r&&!Dt(r)&&(t.id=r),e.classList.length>0){const a=Array.from(e.classList);if(this.includeUtilityClasses)t.classes=a;else{const{semantic:l}=vp(a);l.length>0&&(t.classes=l)}}const i=this.extractAttributes(e);Object.keys(i).length>0&&(t.attributes=i);const n=e.getAttribute("role");if(n&&(t.role=n),this.shouldExtractText(e)){const a=this.extractText(e);a&&(t.text=a)}return this.cache&&this.cache.setSemantics(e,t),t}scoreElement(e){let t=.5;const r=this.extract(e);return r.id&&(t+=.15),r.classes&&r.classes.length>0&&(t+=.1),r.attributes&&Object.keys(r.attributes).length>0&&(t+=.1),r.role&&(t+=.1),r.text&&(t+=.05),Math.min(t,1)}shouldIgnoreAttribute(e){return!!(Qa.has(e)||e.startsWith("on")||e.startsWith("ng-")||e.startsWith("_ng")||e.startsWith("data-reactid")||e.startsWith("data-react")||e.startsWith("data-v-"))}getAttributePriority(e){return Pe[e]!==void 0?Pe[e]:e.startsWith("data-")?Pe["data-*"]:e.startsWith("aria-")?Pe["aria-*"]:0}isDynamicValue(e){return[/^[a-f0-9]{32,}$/i,/^\d{10,}$/,/^(undefined|null|\[object)/,/^{{.*}}$/].some(t=>t.test(e))}extractAttributes(e){const t={};for(const r of Array.from(e.attributes)){const i=r.name;if(this.shouldIgnoreAttribute(i)||!_p(i,r.value)||el.has(i)&&tl(r.value)||this.getAttributePriority(i)===0)continue;const n=i==="href"||i==="src"?rl(i,r.value):r.value;!n||n.trim()===""||this.isDynamicValue(n)||(t[i]=n)}return t}extractText(e){const t=this.getDirectTextContent(e);if(!t)return null;const r=xp(t);if(!r)return null;const i=100,n=t.length>i?t.slice(0,i)+"...":t,a=r.length>i?r.slice(0,i)+"...":r;return{raw:n,normalized:a}}getDirectTextContent(e){var r;const t=[];for(const i of Array.from(e.childNodes))if(i.nodeType===Node.TEXT_NODE&&i.textContent){const n=i.textContent.trim();n&&t.push(n)}return t.length>0?t.join(" "):(r=e.textContent)!=null?r:null}shouldExtractText(e){const t=e.tagName.toLowerCase();return["button","a","label","h1","h2","h3","h4","h5","h6","p","span","li","th","td","dt","dd","legend","figcaption","summary"].includes(t)}}class zp{fingerprint(e){const t=e.tagName.toLowerCase(),r=this.getShape(t),i={shape:r,hasAnimation:this.hasAnimation(e)};if(r==="path"){const l=e.getAttribute("d");l&&(i.dHash=this.computePathHash(l))}else["circle","rect","ellipse","line"].includes(r)&&(i.geomHash=this.computeGeomHash(e,r));const n=e.getAttribute("role");n&&(i.role=n);const a=e.querySelector("title");return a!=null&&a.textContent&&(i.titleText=a.textContent.trim()),i}computePathHash(e){const t=this.normalizePathData(e);return this.simpleHash(t)}getShape(e){var t;return(t=["path","circle","rect","line","polyline","polygon","ellipse","g","text","use","svg"].find(r=>r===e))!=null?t:"path"}normalizePathData(e){var t;return((t=e.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/gi))!=null?t:[]).slice(0,5).map(r=>r.trim().replace(/(-?\d+\.?\d*)/g,i=>parseFloat(i).toFixed(1))).join(" ")}computeGeomHash(e,t){var i,n,a,l,o,u,c,h,d;const r=[];switch(t){case"circle":r.push(`r=${(i=e.getAttribute("r"))!=null?i:"0"}`);break;case"rect":{const f=parseFloat((n=e.getAttribute("width"))!=null?n:"0"),m=parseFloat((a=e.getAttribute("height"))!=null?a:"0");f>0&&m>0&&r.push(`ratio=${(f/m).toFixed(2)}`)}break;case"ellipse":{const f=parseFloat((l=e.getAttribute("rx"))!=null?l:"0"),m=parseFloat((o=e.getAttribute("ry"))!=null?o:"0");f>0&&m>0&&r.push(`ratio=${(f/m).toFixed(2)}`)}break;case"line":{const f=parseFloat((u=e.getAttribute("x1"))!=null?u:"0"),m=parseFloat((c=e.getAttribute("y1"))!=null?c:"0"),g=parseFloat((h=e.getAttribute("x2"))!=null?h:"0"),p=parseFloat((d=e.getAttribute("y2"))!=null?d:"0"),b=Math.atan2(p-m,g-f);r.push(`angle=${b.toFixed(2)}`)}break}return this.simpleHash(r.join(";"))}hasAnimation(e){if(e.querySelector("animate, animateTransform, animateMotion"))return!0;const t=e.ownerDocument;if(t!=null&&t.defaultView)try{const r=t.defaultView.getComputedStyle(e);if(r.animationName!=="none"||r.transitionProperty!=="all"&&r.transitionProperty!=="none")return!0}catch(r){}return!1}simpleHash(e){let t=0;for(let r=0;r<e.length;r++){const i=e.charCodeAt(r);t=(t<<5)-t+i,t=t&t}return Math.abs(t).toString(16).padStart(8,"0")}}function Fp(s,e=0){const t=s.anchor.score,r=s.path.length>0?s.path.reduce((l,o)=>l+o.score,0)/s.path.length:.5,i=s.target.score,n=t*dr.ANCHOR+r*dr.PATH+i*dr.TARGET+e*dr.UNIQUENESS,a=s.anchor.degraded?.2:0;return Math.max(0,Math.min(1,n-a))}class Bp{constructor(e){this.cache=new Map,this.maxSize=e}get(e){const t=this.cache.get(e);if(t!==void 0)return this.cache.delete(e),this.cache.set(e,t),t}set(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.maxSize){const r=this.cache.keys().next().value;r!==void 0&&this.cache.delete(r)}this.cache.set(e,t)}has(e){return this.cache.has(e)}delete(e){this.cache.delete(e)}clear(){this.cache.clear()}get size(){return this.cache.size}}class Wp{constructor(e={}){var t,r;this.eidCache=new WeakMap,this.selectorResultCache=new Bp((t=e.maxSelectorCacheSize)!=null?t:1e3),this.anchorCache=new WeakMap,this.semanticsCache=new WeakMap,this.stats={eidHits:0,eidMisses:0,selectorHits:0,selectorMisses:0,anchorHits:0,anchorMisses:0,semanticsHits:0,semanticsMisses:0,selectorCacheSize:0,maxSelectorCacheSize:(r=e.maxSelectorCacheSize)!=null?r:1e3}}getEID(e){const t=this.eidCache.get(e);if(t!==void 0)return this.stats.eidHits++,t;this.stats.eidMisses++}setEID(e,t){this.eidCache.set(e,t)}getSelectorResults(e){const t=this.selectorResultCache.get(e);if(t!==void 0)return this.stats.selectorHits++,this.stats.selectorCacheSize=this.selectorResultCache.size,t;this.stats.selectorMisses++,this.stats.selectorCacheSize=this.selectorResultCache.size}setSelectorResults(e,t){this.selectorResultCache.set(e,t),this.stats.selectorCacheSize=this.selectorResultCache.size}getAnchor(e){if(this.anchorCache.has(e))return this.stats.anchorHits++,this.anchorCache.get(e);this.stats.anchorMisses++}setAnchor(e,t){this.anchorCache.set(e,t)}getSemantics(e){const t=this.semanticsCache.get(e);if(t!==void 0)return this.stats.semanticsHits++,t;this.stats.semanticsMisses++}setSemantics(e,t){this.semanticsCache.set(e,t)}clear(){this.selectorResultCache.clear(),this.stats.selectorCacheSize=0,this.stats={eidHits:0,eidMisses:0,selectorHits:0,selectorMisses:0,anchorHits:0,anchorMisses:0,semanticsHits:0,semanticsMisses:0,selectorCacheSize:0,maxSelectorCacheSize:this.stats.maxSelectorCacheSize}}invalidateElement(e){}invalidateSelector(e){this.selectorResultCache.delete(e),this.stats.selectorCacheSize=this.selectorResultCache.size}getStats(){return oe(x({},this.stats),{selectorCacheSize:this.selectorResultCache.size})}getEIDHitRate(){const e=this.stats.eidHits+this.stats.eidMisses;return e>0?this.stats.eidHits/e:0}getSelectorHitRate(){const e=this.stats.selectorHits+this.stats.selectorMisses;return e>0?this.stats.selectorHits/e:0}getAnchorHitRate(){const e=this.stats.anchorHits+this.stats.anchorMisses;return e>0?this.stats.anchorHits/e:0}getSemanticsHitRate(){const e=this.stats.semanticsHits+this.stats.semanticsMisses;return e>0?this.stats.semanticsHits/e:0}getOverallHitRate(){const e=this.stats.eidHits+this.stats.selectorHits+this.stats.anchorHits+this.stats.semanticsHits,t=this.stats.eidMisses+this.stats.selectorMisses+this.stats.anchorMisses+this.stats.semanticsMisses,r=e+t;return r>0?e/r:0}}function Hp(s){return new Wp(s)}let ms=null;function Up(){return ms||(ms=Hp()),ms}function Jn(s){if(s.ownerDocument)return s.ownerDocument;let e=s;for(;e;){if(e.nodeType===9)return e;e=e.parentNode}throw new Error(`Element does not have an ownerDocument. This typically means:
69
+ or you can use record.mirror to access the mirror instance during recording.`;let Gn={map:{},getId(){return console.error(Je),-1},getNode(){return console.error(Je),null},removeNodeFromMap(){console.error(Je)},has(){return console.error(Je),!1},reset(){console.error(Je)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(Gn=new Proxy(Gn,{get(s,e,t){return e==="map"&&console.error(Je),Reflect.get(s,e,t)}}));function kt(s,e,t={}){let r=null,i=0;return function(...n){const a=Date.now();!i&&t.leading===!1&&(i=a);const l=e-(a-i),o=this;l<=0||l>e?(r&&(clearTimeout(r),r=null),i=a,s.apply(o,n)):!r&&t.trailing!==!1&&(r=setTimeout(()=>{i=t.leading===!1?0:Date.now(),r=null,s.apply(o,n)},l))}}function Zr(s,e,t,r,i=window){const n=i.Object.getOwnPropertyDescriptor(s,e);return i.Object.defineProperty(s,e,r?t:{set(a){setTimeout(()=>{t.set.call(this,a)},0),n&&n.set&&n.set.call(this,a)}}),()=>Zr(s,e,n||{},!0)}function ae(){return Math.round(performance.timeOrigin+performance.now())}function Ja(s=window){var e,t,r,i;const n=s.document;return{left:n.scrollingElement?n.scrollingElement.scrollLeft:s.pageXOffset!==void 0?s.pageXOffset:n.documentElement.scrollLeft||(n==null?void 0:n.body)&&((e=T.parentElement(n.body))==null?void 0:e.scrollLeft)||((t=n==null?void 0:n.body)==null?void 0:t.scrollLeft)||0,top:n.scrollingElement?n.scrollingElement.scrollTop:s.pageYOffset!==void 0?s.pageYOffset:(n==null?void 0:n.documentElement.scrollTop)||(n==null?void 0:n.body)&&((r=T.parentElement(n.body))==null?void 0:r.scrollTop)||((i=n==null?void 0:n.body)==null?void 0:i.scrollTop)||0}}function qa(s=window){const e=s.document;return s.innerHeight||e.documentElement&&e.documentElement.clientHeight||e.body&&e.body.clientHeight||0}function Xa(s=window){const e=s.document;return s.innerWidth||e.documentElement&&e.documentElement.clientWidth||e.body&&e.body.clientWidth||0}function Ni(s){return s?s.nodeType===s.ELEMENT_NODE?s:T.parentElement(s):null}function le(s,e,t,r){if(!s)return!1;const i=Ni(s);if(!i)return!1;try{if(typeof e=="string"){if(i.classList.contains(e)||r&&i.closest("."+e)!==null)return!0}else if(Er(i,e,r))return!0}catch(n){}return!!(t&&(i.matches(t)||r&&i.closest(t)!==null))}function wp(s,e){return e.getId(s)!==-1}function gs(s,e,t){return s.tagName==="TITLE"&&t.headTitleMutations?!0:e.getId(s)===At}function Ka(s,e){if(bt(s))return!1;const t=e.getId(s);if(!e.has(t))return!0;const r=T.parentNode(s);return r&&r.nodeType===s.DOCUMENT_NODE?!1:r?Ka(r,e):!0}function Qs(s){return!!s.changedTouches}function Sp(s=window){"NodeList"in s&&!s.NodeList.prototype.forEach&&(s.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in s&&!s.DOMTokenList.prototype.forEach&&(s.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Qa(s,e){return!!(s.nodeName==="IFRAME"&&e.getMeta(s))}function el(s,e){return!!(s.nodeName==="LINK"&&s.nodeType===s.ELEMENT_NODE&&s.getAttribute&&s.getAttribute("rel")==="stylesheet"&&e.getMeta(s))}function ei(s){return s?s instanceof Mi&&"shadowRoot"in s?!!s.shadowRoot:!!T.shadowRoot(s):!1}class vp{constructor(){b(this,"id",1),b(this,"styleIDMap",new WeakMap),b(this,"idStyleMap",new Map)}getId(e){var t;return(t=this.styleIDMap.get(e))!=null?t:-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let r;return t===void 0?r=this.id++:r=t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function tl(s){var e;let t=null;return"getRootNode"in s&&((e=T.getRootNode(s))==null?void 0:e.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&T.host(T.getRootNode(s))&&(t=T.host(T.getRootNode(s))),t}function Cp(s){let e=s,t;for(;t=tl(e);)e=t;return e}function xp(s){const e=s.ownerDocument;if(!e)return!1;const t=Cp(s);return T.contains(e,t)}function rl(s){const e=s.ownerDocument;return e?T.contains(e,s)||xp(s):!1}var P=(s=>(s[s.DomContentLoaded=0]="DomContentLoaded",s[s.Load=1]="Load",s[s.FullSnapshot=2]="FullSnapshot",s[s.IncrementalSnapshot=3]="IncrementalSnapshot",s[s.Meta=4]="Meta",s[s.Custom=5]="Custom",s[s.Plugin=6]="Plugin",s))(P||{}),D=(s=>(s[s.Mutation=0]="Mutation",s[s.MouseMove=1]="MouseMove",s[s.MouseInteraction=2]="MouseInteraction",s[s.Scroll=3]="Scroll",s[s.ViewportResize=4]="ViewportResize",s[s.Input=5]="Input",s[s.TouchMove=6]="TouchMove",s[s.MediaInteraction=7]="MediaInteraction",s[s.StyleSheetRule=8]="StyleSheetRule",s[s.CanvasMutation=9]="CanvasMutation",s[s.Font=10]="Font",s[s.Log=11]="Log",s[s.Drag=12]="Drag",s[s.StyleDeclaration=13]="StyleDeclaration",s[s.Selection=14]="Selection",s[s.AdoptedStyleSheet=15]="AdoptedStyleSheet",s[s.CustomElement=16]="CustomElement",s[s.Visibility=17]="Visibility",s))(D||{}),ce=(s=>(s[s.MouseUp=0]="MouseUp",s[s.MouseDown=1]="MouseDown",s[s.Click=2]="Click",s[s.ContextMenu=3]="ContextMenu",s[s.DblClick=4]="DblClick",s[s.Focus=5]="Focus",s[s.Blur=6]="Blur",s[s.TouchStart=7]="TouchStart",s[s.TouchMove_Departed=8]="TouchMove_Departed",s[s.TouchEnd=9]="TouchEnd",s[s.TouchCancel=10]="TouchCancel",s))(ce||{}),Ie=(s=>(s[s.Mouse=0]="Mouse",s[s.Pen=1]="Pen",s[s.Touch=2]="Touch",s))(Ie||{}),at=(s=>(s[s["2D"]=0]="2D",s[s.WebGL=1]="WebGL",s[s.WebGL2=2]="WebGL2",s))(at||{}),qe=(s=>(s[s.Play=0]="Play",s[s.Pause=1]="Pause",s[s.Seeked=2]="Seeked",s[s.VolumeChange=3]="VolumeChange",s[s.RateChange=4]="RateChange",s))(qe||{}),sl=(s=>(s[s.Document=0]="Document",s[s.DocumentType=1]="DocumentType",s[s.Element=2]="Element",s[s.Text=3]="Text",s[s.CDATA=4]="CDATA",s[s.Comment=5]="Comment",s))(sl||{});const dr={ANCHOR:.4,PATH:.3,TARGET:.2,UNIQUENESS:.1},Ce={SEMANTIC_TAG:.5,ROLE:.3,ARIA_LABEL:.1,STABLE_ID:.25,TEST_MARKER:.05,DEPTH_PENALTY_THRESHOLD:5,DEPTH_PENALTY_FACTOR:.05,DEGRADED_SCORE:.3},Ap={MIN_CONFIDENCE_FOR_SKIP:.7},Yn=["form","main","nav","section","article","footer","header"],Zn=["form","navigation","main","region","contentinfo","complementary","banner","search"],Ep=["article","aside","details","figcaption","figure","footer","header","main","mark","nav","section","summary","time","button","datalist","fieldset","form","input","label","legend","meter","optgroup","option","output","progress","select","textarea","a","audio","video","canvas","dialog","menu","blockquote","dd","dl","dt","hr","li","ol","ul","p","pre","h1","h2","h3","h4","h5","h6","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr","svg","path","circle","rect","line","polyline","polygon","ellipse","g","text","use"],Pe={"data-testid":100,"data-qa":99,"data-cy":98,"data-test":97,"data-test-id":96,"aria-label":90,"aria-labelledby":85,"aria-describedby":80,name:75,href:70,src:70,type:65,role:60,alt:55,title:50,for:45,placeholder:40,"data-*":30,"aria-*":25},il=new Set(["id","class","style","xmlns","tabindex","contenteditable"]),Ip={maxPathDepth:10,enableSvgFingerprint:!0,confidenceThreshold:0,fallbackToBody:!0,includeUtilityClasses:!1,source:"dom-dsl"};function Dt(s){if(/^[a-z]+-\d+$/i.test(s)||/^[a-z]+(-[a-z]+)+-\d+$/i.test(s)||/^[a-z]+(_[a-z]+)*_\d+$/i.test(s)||/^\d+$/.test(s)||/^:[a-z0-9]+:$/i.test(s)||/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/i.test(s))return!0;if(/^[a-z]{1,3}[A-Za-z0-9]{8,}$/.test(s)){const e=/\d/.test(s),t=/[A-Z]/.test(s),r=s.length>=20;if(e&&t||r)return!0}return!!(/^radix-/.test(s)||/^mui-\d+$/.test(s))}const nl=new Set(["aria-labelledby","aria-describedby","aria-controls","aria-owns","aria-activedescendant","for","form","list","headers","aria-details","aria-errormessage","aria-flowto"]);function ol(s){return s.trim().split(/\s+/).some(e=>Dt(e))}class $p{constructor(e,t){var r;this.maxDepth=(r=e.maxPathDepth)!=null?r:10,this.cache=t}findAnchor(e){if(this.cache){const o=this.cache.getAnchor(e);if(o!==void 0)return o}const t=e.tagName.toLowerCase(),r=e.ownerDocument;if(t==="html"){const o={element:e,score:1,tier:"A",depth:0};return this.cacheResult(e,o),o}if(t==="head"||this.isInsideHead(e)){const o=r==null?void 0:r.documentElement;if(o){const c={element:o,score:1,tier:"A",depth:0};return this.cacheResult(e,c),c}}if(t==="body"){const o=r==null?void 0:r.documentElement;if(o){const c={element:o,score:1,tier:"A",depth:0};return this.cacheResult(e,c),c}}let i=e.parentElement,n=0,a=null;for(;i&&n<this.maxDepth;){if(i.tagName.toLowerCase()==="body")return a||{element:i,score:Ce.DEGRADED_SCORE,tier:"C",depth:n};const o=this.scoreAnchor(i);if(o>0){const c=this.applyDepthPenalty(o,n),u=this.getTier(i),h={element:i,score:c,tier:u,depth:n};if(u==="A")return h;(!a||c>a.score)&&(a=h)}i=i.parentElement,n++}const l=a;return this.cache&&this.cache.setAnchor(e,l),l}scoreAnchor(e){let t=0;const r=e.tagName.toLowerCase();Yn.includes(r)&&(t+=Ce.SEMANTIC_TAG);const i=e.getAttribute("role");i&&Zn.includes(i)&&(t+=Ce.ROLE),(e.hasAttribute("aria-label")||e.hasAttribute("aria-labelledby"))&&(t+=Ce.ARIA_LABEL);const n=e.id;return n&&!Dt(n)&&(t+=Ce.STABLE_ID),(e.hasAttribute("data-testid")||e.hasAttribute("data-qa")||e.hasAttribute("data-test"))&&(t+=Ce.TEST_MARKER),Math.min(t,1)}applyDepthPenalty(e,t){if(t<=Ce.DEPTH_PENALTY_THRESHOLD)return e;const r=(t-Ce.DEPTH_PENALTY_THRESHOLD)*Ce.DEPTH_PENALTY_FACTOR;return Math.max(0,e-r)}getTier(e){const t=e.tagName.toLowerCase();if(Yn.includes(t))return"A";const r=e.getAttribute("role");return r&&Zn.includes(r)?"B":"C"}isInsideHead(e){let t=e.parentElement;for(;t;){const r=t.tagName.toLowerCase();if(r==="head")return!0;if(r==="body")return!1;t=t.parentElement}return!1}cacheResult(e,t){this.cache&&this.cache.setAnchor(e,t)}}const Rp=[/^css-[a-z0-9]+$/i,/^sc-[a-z0-9]+-\d+$/i,/^[a-z]{5,8}$/i,/^Mui[A-Z]\w+-\w+-\w+/,/^makeStyles-\w+-\d+$/,/^jss\d+$/,/^(emotion|linaria)-[a-z0-9]+/i,/^(chakra|tw-|ant-)[a-z0-9]+-\w+/i,/-[a-f0-9]{6,}$/i,/^_[a-z0-9]{5,}$/i,/\d{5,}/],Mp=[/^\[/,/^(first|last|odd|even|only|first-of-type|last-of-type|only-of-type):/,/^(hover|focus|active|disabled|enabled|checked|indeterminate|default|required|valid|invalid|in-range|out-of-range|placeholder-shown|autofill|read-only):/,/^(focus-within|focus-visible|visited|target|open):/,/^(sm|md|lg|xl|2xl|3xl|4xl|5xl|6xl|7xl):/,/^dark:/,/^(rtl|ltr):/,/^(group|peer)(-hover|-focus|-active)?:/,/^[a-z][a-z-]*:/,/\/([\d.]+|full|auto|screen)$/,/^(inset|top|right|bottom|left)(-|$)/,/^(flex|inline-flex|grid|block|inline|inline-block|hidden|visible)$/,/^(absolute|relative|fixed|sticky|static)$/,/^(items|justify|content|self|place)-/,/^flex-(row|col|wrap|nowrap|1|auto|initial|none)/,/^grid-(cols|rows|flow)/,/^(gap|space)-/,/^[mp][trblxy]?-(\d+|auto|px)$/,/^-[mp][trblxy]?-\d+$/,/^-(top|right|bottom|left|inset)-\d+$/,/^-z-\d+$/,/^-space-[xy]-\d+$/,/^-translate-[xy]-\d+$/,/^-rotate-\d+$/,/^-scale-\d+$/,/^-skew-[xy]-\d+$/,/^(w|h|min-w|min-h|max-w|max-h|size)-/,/^text-(center|left|right|justify|start|end|xs|sm|base|lg|xl|2xl|3xl|4xl|5xl|6xl|7xl|8xl|9xl)$/,/^text-(uppercase|lowercase|capitalize|normal-case|underline|line-through|no-underline)$/,/^text-(truncate|ellipsis|clip)$/,/^(bg|border|ring|shadow|outline)-/,/^rounded(-|$)/,/^(font|leading|tracking|whitespace|break|truncate)-/,/^(uppercase|lowercase|capitalize|normal-case)$/,/^(transform|transition|duration|delay|ease|animate)-/,/^(scale|rotate|translate|skew)-/,/^transform$/,/^backdrop-blur-/,/^motion-/,/^(fade|slide|zoom|bounce|pulse|spin|ping)-/,/^(overflow|overscroll|scroll)-/,/^object-(contain|cover|fill|none|scale-down)$/,/^(cursor|pointer-events|select|resize)-/,/^(opacity|z)-/,/^(visible|invisible|collapse)$/,/^d-(none|inline|inline-block|block|grid|table|flex)$/,/^(float|clearfix|text)-(left|right|center|justify|start|end)$/,/^(m|p)[trblxy]?-[0-5]$/,/^(w|h)-(25|50|75|100|auto)$/,/^btn-(sm|lg|block)$/,/^text-(muted|primary|success|danger|warning|info|light|dark|white)$/,/^bg-(primary|secondary|success|danger|warning|info|light|dark|white|transparent)$/,/^border(-top|-bottom|-left|-right)?(-0)?$/,/^rounded(-top|-bottom|-left|-right|-circle|-pill|-0)?$/,/^shadow(-sm|-lg|-none)?$/,/^(align|justify|order|flex)-(start|end|center|between|around|fill|grow|shrink)$/,/^col(-sm|-md|-lg|-xl)?(-\d+|-auto)?$/,/^row(-cols)?(-\d+)?$/,/^g[xy]?-[0-5]$/,/^(show|hide|invisible|visible)$/,/^(position|top|bottom|start|end)-(static|relative|absolute|fixed|sticky|-\d+)$/,/^(row|col)$/,/^clearfix$/,/^pull-(left|right)$/,/^float-(left|right|none)$/];function ki(s){return Rp.some(e=>e.test(s))}function Di(s){return s.length<=2||/^\d/.test(s)?!0:Mp.some(e=>e.test(s))}function Op(s){return!ki(s)&&!Di(s)}function Tp(s){return s.filter(e=>Op(e))}function Np(s){const e=[],t=[];for(const r of s)Di(r)||ki(r)?t.push(r):e.push(r);return{semantic:e,utility:t}}function Jn(s){return Di(s)||ki(s)}const kp=new Set(["tr","td","th","thead","tbody","tfoot"]),Dp=new Set(["data-testid","data-qa","data-cy","data-test","aria-label","name","href"]);function Lp(s){if(s.id)return!0;if(s.attributes){for(const e of Object.keys(s.attributes))if(Dp.has(e))return!0}return!1}function Pp(s,e,t){var n;var r;const i=s.parentElement;if(!i)return!0;for(const a of Array.from(i.children))if(!(a===s||a.tagName.toLowerCase()!==e)&&((n=(r=a.textContent)==null?void 0:r.trim())!=null?n:"")===t)return!1;return!0}function Dr(s,e,t){var r;if(kp.has(s))return!0;if(Lp(e))return!1;if(t){const i=t.parentElement;if(i){const n=(r=e.text)==null?void 0:r.normalized;if(n&&Pp(t,s,n))return!1;if(Array.from(i.children).some(a=>a!==t&&a.tagName.toLowerCase()===s))return!0}return!1}return!0}const qn=s=>s.replace(/([#:.[\]@])/g,"\\$1");class _p{constructor(e,t){var r;this.maxDepth=(r=e.maxPathDepth)!=null?r:10,this.cache=t}buildPath(e,t,r){const i=e.tagName.toLowerCase(),n=t.tagName.toLowerCase();if(i==="html"&&(n==="head"||n==="body"))return{path:[],degraded:!1};if(i==="html"&&this.isInsideHead(t))return this.buildHeadPath(e,t,r);const a=[];let l=t.parentElement;for(;l&&l!==e&&a.length<this.maxDepth;)a.unshift(l),l=l.parentElement;const o=a.length>=this.maxDepth&&l!==e;if(!o&&l!==e)return console.warn("[PathBuilder] Target is not a descendant of anchor"),{path:[],degraded:!0,degradationReason:"target-not-descendant-of-anchor"};let c=this.filterNoise(a);return c=this.ensureUniqueness(a,c,e,t,r),{path:c.map(u=>{const h=u.tagName.toLowerCase(),f=r.extract(u);let m;if(Dr(h,f,u)){const p=u.parentElement;if(p){const g=Array.from(p.children).indexOf(u);g!==-1&&(m=g+1)}}return{tag:h,semantics:f,score:r.scoreElement(u),nthChild:m}}),degraded:o,degradationReason:o?"path-depth-overflow":void 0}}buildPathNodes(e,t,r){return this.buildPath(e,t,r).path}ensureUniqueness(e,t,r,i,n){const a=this.buildTestSelector(r,t,i);try{const l=i.ownerDocument;if(!l)return t;let o;if(this.cache){const u=this.cache.getSelectorResults(a);u!==void 0?o=u:(o=Array.from(l.querySelectorAll(a)),this.cache.setSelectorResults(a,o))}else o=l.querySelectorAll(a);if(o.length<=1)return t;const c=e.filter(u=>!t.includes(u));for(const u of c){if(n.scoreElement(u)<Ap.MIN_CONFIDENCE_FOR_SKIP)continue;const h=this.insertNodeInOrder(t,u,e),f=this.buildTestSelector(r,h,i);try{let m;if(this.cache){const p=this.cache.getSelectorResults(f);p!==void 0?m=p:(m=Array.from(l.querySelectorAll(f)),this.cache.setSelectorResults(f,m))}else m=l.querySelectorAll(f);if(m.length===1)return h;m.length<o.length&&(t=h)}catch(m){}}return t}catch(l){return t}}insertNodeInOrder(e,t,r){const i=r.indexOf(t),n=[...e];let a=0;for(let l=0;l<n.length&&!(r.indexOf(n[l])>i);l++)a=l+1;return n.splice(a,0,t),n}buildTestSelector(e,t,r){const i=[];i.push(this.elementToSelector(e));for(const n of t)i.push(this.elementToSelector(n));return i.push(this.elementToSelector(r)),i.join(" ")}elementToSelector(e){let t=e.tagName.toLowerCase();e.id&&!Dt(e.id)&&(t+=`#${qn(e.id)}`);for(const r of Array.from(e.classList))Jn(r)||(t+=`.${qn(r)}`);return t}filterNoise(e){return e.filter(t=>this.shouldInclude(t))}shouldInclude(e){const t=e.tagName.toLowerCase();return Ep.includes(t)?!0:t==="div"||t==="span"?this.hasSemanticFeatures(e):!1}hasSemanticFeatures(e){if(e.hasAttribute("role"))return!0;for(const r of Array.from(e.attributes))if(r.name.startsWith("aria-"))return!0;if(e.classList.length>0){for(const r of Array.from(e.classList))if(!Jn(r))return!0}if(e.hasAttribute("data-testid")||e.hasAttribute("data-qa")||e.hasAttribute("data-test"))return!0;const t=e.id;return!!(t&&!Dt(t))}isInsideHead(e){let t=e.parentElement;for(;t;){const r=t.tagName.toLowerCase();if(r==="head")return!0;if(r==="body")return!1;t=t.parentElement}return!1}buildHeadPath(e,t,r){const i=[];let n=t.parentElement;for(;n&&n!==e;)i.unshift(n),n=n.parentElement;return n!==e?{path:[],degraded:!0,degradationReason:"target-not-descendant-of-html"}:i.findIndex(a=>a.tagName.toLowerCase()==="head")===-1?{path:[],degraded:!0,degradationReason:"head-not-found-in-path"}:{path:i.map(a=>{const l=a.tagName.toLowerCase(),o=r.extract(a);let c;if(Dr(l,o,a)){const u=a.parentElement;if(u){const h=Array.from(u.children).indexOf(a);h!==-1&&(c=h+1)}}return{tag:l,semantics:o,score:r.scoreElement(a),nthChild:c}}),degraded:!1}}}function zp(s){return s?s.trim().replace(/[\n\t\r]/g," ").replace(/\s+/g," "):""}const Fp={preserveQueryForAbsolute:!0,removeDynamicHashes:!0};function Bp(s){return s?[/\d{5,}/,/[a-f0-9]{8,}/i,/(session|token|temp|random|timestamp|nonce|cache)/i,/^\d+$/,/^[a-f0-9-]{32,}$/i].some(e=>e.test(s)):!1}function Wp(s,e){if(!s)return s;const t=s.startsWith("http://")||s.startsWith("https://"),[r,i]=s.split("#"),[n,a]=r.split("?");let l=n;return t&&e.preserveQueryForAbsolute&&a&&(l+=`?${a}`),i&&(e.removeDynamicHashes&&Bp(i)||(l+=`#${i}`)),l}function al(s,e,t={}){if(!e)return e;const r=x(x({},Fp),t);return s==="href"||s==="src"?Wp(e,r):e}const Hp=["role","aria-label","aria-labelledby","aria-describedby","aria-controls","aria-owns","aria-level","aria-posinset","aria-setsize","aria-haspopup"],Up=["aria-selected","aria-checked","aria-pressed","aria-expanded","aria-hidden","aria-disabled","aria-current","aria-busy","aria-invalid","aria-grabbed","aria-live","aria-atomic"],Vp=["data-state","data-active","data-inactive","data-selected","data-open","data-closed","data-visible","data-hidden","data-disabled","data-enabled","data-loading","data-error","data-success","data-highlighted","data-focused","data-hover","data-orientation","data-theme"],jp=["data-radix-","data-headlessui-","data-reach-","data-mui-","data-chakra-","data-mantine-","data-tw-"],Gp=["data-testid","data-test-id","data-test","data-cy","data-qa","data-automation-id","data-id","data-component","data-entity-id","data-product-id","data-user-id"],Yp=["data-ga","data-gtm","data-google","data-layer","data-event","data-yandex","data-ym","data-metrika","data-optimizely","data-vwo","data-optimize","data-hj","data-hotjar","data-fs","data-mouseflow","data-mf","data-smartlook","data-sl","data-fb","data-facebook","data-tt","data-li","data-track","data-tracking","data-click","data-impression","data-conversion","data-segment","data-analytics"],Zp=["data-category","data-action","data-label","data-value"],Jp=["id","name","type","placeholder","title","for","alt","href"],qp=["disabled","checked","selected","hidden","readonly","required","value"],Xp=[/^radix-/,/^headlessui-/,/^mui-/,/:\w+:/];function Kp(s,e){return Hp.includes(s)?!0:Up.includes(s)||Vp.includes(s)||jp.some(t=>s.startsWith(t))?!1:Gp.includes(s)?!0:Yp.some(t=>s.startsWith(t))||Zp.includes(s)?!1:s.startsWith("data-")&&s.endsWith("-id")?!0:s==="id"?!Xp.some(t=>t.test(e)):Jp.includes(s)?!0:qp.includes(s)?!1:!!s.startsWith("data-")}class Xn{constructor(e,t){var r;this.includeUtilityClasses=(r=e.includeUtilityClasses)!=null?r:!1,this.cache=t}extract(e){if(this.cache){const a=this.cache.getSemantics(e);if(a!==void 0)return a}const t={},r=e.id;if(r&&!Dt(r)&&(t.id=r),e.classList.length>0){const a=Array.from(e.classList);if(this.includeUtilityClasses)t.classes=a;else{const{semantic:l}=Np(a);l.length>0&&(t.classes=l)}}const i=this.extractAttributes(e);Object.keys(i).length>0&&(t.attributes=i);const n=e.getAttribute("role");if(n&&(t.role=n),this.shouldExtractText(e)){const a=this.extractText(e);a&&(t.text=a)}return this.cache&&this.cache.setSemantics(e,t),t}scoreElement(e){let t=.5;const r=this.extract(e);return r.id&&(t+=.15),r.classes&&r.classes.length>0&&(t+=.1),r.attributes&&Object.keys(r.attributes).length>0&&(t+=.1),r.role&&(t+=.1),r.text&&(t+=.05),Math.min(t,1)}shouldIgnoreAttribute(e){return!!(il.has(e)||e.startsWith("on")||e.startsWith("ng-")||e.startsWith("_ng")||e.startsWith("data-reactid")||e.startsWith("data-react")||e.startsWith("data-v-"))}getAttributePriority(e){return Pe[e]!==void 0?Pe[e]:e.startsWith("data-")?Pe["data-*"]:e.startsWith("aria-")?Pe["aria-*"]:0}isDynamicValue(e){return[/^[a-f0-9]{32,}$/i,/^\d{10,}$/,/^(undefined|null|\[object)/,/^{{.*}}$/].some(t=>t.test(e))}extractAttributes(e){const t={};for(const r of Array.from(e.attributes)){const i=r.name;if(this.shouldIgnoreAttribute(i)||!Kp(i,r.value)||nl.has(i)&&ol(r.value)||this.getAttributePriority(i)===0)continue;const n=i==="href"||i==="src"?al(i,r.value):r.value;!n||n.trim()===""||this.isDynamicValue(n)||(t[i]=n)}return t}extractText(e){const t=this.getDirectTextContent(e);if(!t)return null;const r=zp(t);if(!r)return null;const i=100,n=t.length>i?t.slice(0,i)+"...":t,a=r.length>i?r.slice(0,i)+"...":r;return{raw:n,normalized:a}}getDirectTextContent(e){var r;const t=[];for(const i of Array.from(e.childNodes))if(i.nodeType===Node.TEXT_NODE&&i.textContent){const n=i.textContent.trim();n&&t.push(n)}return t.length>0?t.join(" "):(r=e.textContent)!=null?r:null}shouldExtractText(e){const t=e.tagName.toLowerCase();return["button","a","label","h1","h2","h3","h4","h5","h6","p","span","li","th","td","dt","dd","legend","figcaption","summary"].includes(t)}}class Qp{fingerprint(e){const t=e.tagName.toLowerCase(),r=this.getShape(t),i={shape:r,hasAnimation:this.hasAnimation(e)};if(r==="path"){const l=e.getAttribute("d");l&&(i.dHash=this.computePathHash(l))}else["circle","rect","ellipse","line"].includes(r)&&(i.geomHash=this.computeGeomHash(e,r));const n=e.getAttribute("role");n&&(i.role=n);const a=e.querySelector("title");return a!=null&&a.textContent&&(i.titleText=a.textContent.trim()),i}computePathHash(e){const t=this.normalizePathData(e);return this.simpleHash(t)}getShape(e){var t;return(t=["path","circle","rect","line","polyline","polygon","ellipse","g","text","use","svg"].find(r=>r===e))!=null?t:"path"}normalizePathData(e){var t;return((t=e.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/gi))!=null?t:[]).slice(0,5).map(r=>r.trim().replace(/(-?\d+\.?\d*)/g,i=>parseFloat(i).toFixed(1))).join(" ")}computeGeomHash(e,t){var i,n,a,l,o,c,u,h,f;const r=[];switch(t){case"circle":r.push(`r=${(i=e.getAttribute("r"))!=null?i:"0"}`);break;case"rect":{const m=parseFloat((n=e.getAttribute("width"))!=null?n:"0"),p=parseFloat((a=e.getAttribute("height"))!=null?a:"0");m>0&&p>0&&r.push(`ratio=${(m/p).toFixed(2)}`)}break;case"ellipse":{const m=parseFloat((l=e.getAttribute("rx"))!=null?l:"0"),p=parseFloat((o=e.getAttribute("ry"))!=null?o:"0");m>0&&p>0&&r.push(`ratio=${(m/p).toFixed(2)}`)}break;case"line":{const m=parseFloat((c=e.getAttribute("x1"))!=null?c:"0"),p=parseFloat((u=e.getAttribute("y1"))!=null?u:"0"),g=parseFloat((h=e.getAttribute("x2"))!=null?h:"0"),d=parseFloat((f=e.getAttribute("y2"))!=null?f:"0"),y=Math.atan2(d-p,g-m);r.push(`angle=${y.toFixed(2)}`)}break}return this.simpleHash(r.join(";"))}hasAnimation(e){if(e.querySelector("animate, animateTransform, animateMotion"))return!0;const t=e.ownerDocument;if(t!=null&&t.defaultView)try{const r=t.defaultView.getComputedStyle(e);if(r.animationName!=="none"||r.transitionProperty!=="all"&&r.transitionProperty!=="none")return!0}catch(r){}return!1}simpleHash(e){let t=0;for(let r=0;r<e.length;r++){const i=e.charCodeAt(r);t=(t<<5)-t+i,t=t&t}return Math.abs(t).toString(16).padStart(8,"0")}}function em(s,e=0){const t=s.anchor.score,r=s.path.length>0?s.path.reduce((l,o)=>l+o.score,0)/s.path.length:.5,i=s.target.score,n=t*dr.ANCHOR+r*dr.PATH+i*dr.TARGET+e*dr.UNIQUENESS,a=s.anchor.degraded?.2:0;return Math.max(0,Math.min(1,n-a))}class tm{constructor(e){this.cache=new Map,this.maxSize=e}get(e){const t=this.cache.get(e);if(t!==void 0)return this.cache.delete(e),this.cache.set(e,t),t}set(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.maxSize){const r=this.cache.keys().next().value;r!==void 0&&this.cache.delete(r)}this.cache.set(e,t)}has(e){return this.cache.has(e)}delete(e){this.cache.delete(e)}clear(){this.cache.clear()}get size(){return this.cache.size}}class rm{constructor(e={}){var t,r;this.eidCache=new WeakMap,this.selectorResultCache=new tm((t=e.maxSelectorCacheSize)!=null?t:1e3),this.anchorCache=new WeakMap,this.semanticsCache=new WeakMap,this.stats={eidHits:0,eidMisses:0,selectorHits:0,selectorMisses:0,anchorHits:0,anchorMisses:0,semanticsHits:0,semanticsMisses:0,selectorCacheSize:0,maxSelectorCacheSize:(r=e.maxSelectorCacheSize)!=null?r:1e3}}getEID(e){const t=this.eidCache.get(e);if(t!==void 0)return this.stats.eidHits++,t;this.stats.eidMisses++}setEID(e,t){this.eidCache.set(e,t)}getSelectorResults(e){const t=this.selectorResultCache.get(e);if(t!==void 0)return this.stats.selectorHits++,this.stats.selectorCacheSize=this.selectorResultCache.size,t;this.stats.selectorMisses++,this.stats.selectorCacheSize=this.selectorResultCache.size}setSelectorResults(e,t){this.selectorResultCache.set(e,t),this.stats.selectorCacheSize=this.selectorResultCache.size}getAnchor(e){if(this.anchorCache.has(e))return this.stats.anchorHits++,this.anchorCache.get(e);this.stats.anchorMisses++}setAnchor(e,t){this.anchorCache.set(e,t)}getSemantics(e){const t=this.semanticsCache.get(e);if(t!==void 0)return this.stats.semanticsHits++,t;this.stats.semanticsMisses++}setSemantics(e,t){this.semanticsCache.set(e,t)}clear(){this.selectorResultCache.clear(),this.stats.selectorCacheSize=0,this.stats={eidHits:0,eidMisses:0,selectorHits:0,selectorMisses:0,anchorHits:0,anchorMisses:0,semanticsHits:0,semanticsMisses:0,selectorCacheSize:0,maxSelectorCacheSize:this.stats.maxSelectorCacheSize}}invalidateElement(e){}invalidateSelector(e){this.selectorResultCache.delete(e),this.stats.selectorCacheSize=this.selectorResultCache.size}getStats(){return oe(x({},this.stats),{selectorCacheSize:this.selectorResultCache.size})}getEIDHitRate(){const e=this.stats.eidHits+this.stats.eidMisses;return e>0?this.stats.eidHits/e:0}getSelectorHitRate(){const e=this.stats.selectorHits+this.stats.selectorMisses;return e>0?this.stats.selectorHits/e:0}getAnchorHitRate(){const e=this.stats.anchorHits+this.stats.anchorMisses;return e>0?this.stats.anchorHits/e:0}getSemanticsHitRate(){const e=this.stats.semanticsHits+this.stats.semanticsMisses;return e>0?this.stats.semanticsHits/e:0}getOverallHitRate(){const e=this.stats.eidHits+this.stats.selectorHits+this.stats.anchorHits+this.stats.semanticsHits,t=this.stats.eidMisses+this.stats.selectorMisses+this.stats.anchorMisses+this.stats.semanticsMisses,r=e+t;return r>0?e/r:0}}function sm(s){return new rm(s)}let ys=null;function im(){return ys||(ys=sm()),ys}function Kn(s){if(s.ownerDocument)return s.ownerDocument;let e=s;for(;e;){if(e.nodeType===9)return e;e=e.parentNode}throw new Error(`Element does not have an ownerDocument. This typically means:
70
70
  1. The element is detached from the DOM
71
71
  2. The element was created but never attached
72
- 3. You are working with a document node instead of an element`)}function Vp(s,e){if(!e)return;const t=Jn(s),r=e instanceof Document?e:Jn(e);if(t!==r)throw new Error(`Cross-document operation detected: element and root are from different documents.
72
+ 3. You are working with a document node instead of an element`)}function nm(s,e){if(!e)return;const t=Kn(s),r=e instanceof Document?e:Kn(e);if(t!==r)throw new Error(`Cross-document operation detected: element and root are from different documents.
73
73
  Common causes:
74
74
  1. Working with iframe: pass iframe.contentDocument as root parameter
75
75
  2. Element from one iframe, root from another
76
76
  3. Element from main document, root from iframe (or vice versa)
77
77
 
78
- Solution: Ensure element and root parameter are from the same document context.`)}function jp(s,e={}){var V,j,q,I;var t;if(!s||!s.ownerDocument||!s.isConnected)return null;const r=x(x({},mp),e);if(r.root)try{Vp(s,r.root)}catch(z){return console.error("Cross-document generation detected:",z),null}const i=(V=r.cache)!=null?V:Up(),n=i.getEID(s);if(n!==void 0)return n;if(s.tagName.toLowerCase()==="html"){const z=new Zn(r,i),Q=Zp(s,r,z);return i.setEID(s,Q),Q}const a=new gp(r,i),l=new Cp(r,i),o=new Zn(r,i),u=new zp,c=a.findAnchor(s);if(!c&&!r.fallbackToBody)return null;const h=(q=(j=c==null?void 0:c.element)!=null?j:(t=s.ownerDocument)==null?void 0:t.body)!=null?q:null;if(!h)return null;const d=!c||c.tier==="C",f=h.tagName.toLowerCase(),m=h.parentElement;let g;if(m&&f!=="body"&&f!=="html"){const z=Array.from(m.children).indexOf(h);z!==-1&&(g=z+1)}const p=o.extract(h),b={tag:h.tagName.toLowerCase(),semantics:p,score:(I=c==null?void 0:c.score)!=null?I:Ce.DEGRADED_SCORE,degraded:d,nthChild:g},C=l.buildPath(h,s,o),E=o.extract(s);r.enableSvgFingerprint&&Gp(s)&&(E.svg=u.fingerprint(s));const S=s.parentElement;let w;if(S){const z=Array.from(S.children).indexOf(s);z!==-1&&(w=z+1)}const A={tag:s.tagName.toLowerCase(),semantics:E,score:o.scoreElement(s),nthChild:w},v=[],$={onMultiple:"best-score",onMissing:"anchor-only",maxDepth:3},N=b.degraded||C.degraded,_=Yp(b.degraded,C),F={version:"1.0",anchor:b,path:C.path,target:A,constraints:v,fallback:$,meta:{confidence:0,generatedAt:new Date().toISOString(),generator:"dom-eid@1.0",source:r.source,degraded:N,degradationReason:_}};return F.meta.confidence=Fp(F),F.meta.confidence<r.confidenceThreshold?null:(i.setEID(s,F),F)}function Gp(s){return s.namespaceURI==="http://www.w3.org/2000/svg"||s.tagName.toLowerCase()==="svg"||s instanceof SVGElement}function Yp(s,e){if(s&&e.degraded)return"anchor-and-path-degraded";if(s)return"no-semantic-anchor";if(e.degraded)return e.degradationReason}function Zp(s,e,t,r){const i={tag:"html",semantics:t.extract(s),score:1,degraded:!1,nthChild:void 0};return{version:"1.0",anchor:i,path:[],target:i,constraints:[],fallback:{onMultiple:"best-score",onMissing:"anchor-only",maxDepth:3},meta:{confidence:1,generatedAt:new Date().toISOString(),generator:"dom-eid@1.0",source:e.source,degraded:!1,degradationReason:void 0}}}const sl={maxClasses:2,maxAttributes:5,includeText:!0,maxTextLength:50,simplifyTarget:!0,includeConstraints:!0};function Xn(s){return s==="id"?101:Pe[s]!==void 0?Pe[s]:s.startsWith("data-")?Pe["data-*"]:s.startsWith("aria-")?Pe["aria-*"]:0}function Jp(s){return["id","data-testid","data-qa","data-cy","href","text","role"].includes(s)}function Xp(s){return!!(/@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/.test(s)||/(\+?\d{1,3}[-.\s]?)?\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}/.test(s)||/\d{4}[-\s]?\d{4}[-\s]?\d{4}[-\s]?\d{4}/.test(s))}function Kp(s,e){const t=x(x({},sl),e),r=`v${s.version}`,i=gs(s.anchor,!1,t),n=s.path.length>0?s.path.map(o=>gs(o,!1,t)).join(" > ")+" > ":"",a=gs(s.target,!0,t),l=t.includeConstraints?qp(s):"";return`${r}: ${i} :: ${n}${a}${l}`}function gs(s,e=!1,t=sl){const{tag:r,semantics:i}=s;let n=r;const a=[],l=x({},i.attributes);i.id&&(l.id=i.id),i.role&&!l.role&&(l.role=i.role);const o=Object.entries(l).map(([h,d])=>{const f=Xn(h),m=h==="href"||h==="src"?rl(h,d):d;return{name:h,value:m,priority:f}}).filter(h=>h.name!=="id"&&h.name!=="class"&&Qa.has(h.name)||el.has(h.name)&&tl(h.value)?!1:h.priority>0||h.name==="role"||h.name==="id");o.sort((h,d)=>d.priority-h.priority);const u=o.slice(0,t.maxAttributes);u.sort((h,d)=>h.name.localeCompare(d.name));for(const{name:h,value:d}of u)a.push(`${h}="${Qs(d)}"`);if(t.includeText&&i.text&&!Xp(i.text.normalized)){const h=i.text.normalized;h.length>0&&h.length<=t.maxTextLength&&a.push(`text="${Qs(h)}"`)}let c=a;if(a.length>0&&(e&&t.simplifyTarget&&i.id&&(c=a.filter(h=>{const d=h.split("=")[0];return Xn(d)>=60||d==="text"||d==="id"||d==="role"})),c.length>0&&c.sort((h,d)=>h.localeCompare(d))),i.classes&&i.classes.length>0){const h=Sp(i.classes),d=!!i.id||a.some(f=>f.startsWith("href=")||f.startsWith("data-testid=")||f.startsWith("text=")||f.startsWith("role="));if(!(e&&t.simplifyTarget&&d)&&h.length>0){const f=h.sort().slice(0,t.maxClasses);n+=f.map(m=>`.${m}`).join("")}}if(c.length>0&&(n+=`[${c.join(",")}]`),"nthChild"in s&&s.nthChild){const h=!!i.id||i.attributes&&Object.keys(i.attributes).some(Jp);e&&t.simplifyTarget&&h||(n+=`#${s.nthChild}`)}return n}function qp(s){if(!s.constraints||s.constraints.length===0)return"";const e=[];for(const t of s.constraints)switch(t.type){case"uniqueness":e.push("unique=true");break;case"position":t.params&&t.params.strategy&&e.push(`pos=${t.params.strategy}`);break;case"text-proximity":if(t.params&&t.params.reference){const r=Qs(String(t.params.reference));e.push(`text="${r}"`)}break}return e.length===0?"":` {${e.join(",")}}`}function Qs(s){return s.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/>/g,"\\>").replace(/:/g,"\\:")}function Qp(s,e,t){const r=jp(s,e);return r?Kp(r,t):null}const gt={maxPathDepth:10,enableSvgFingerprint:!0,confidenceThreshold:0,fallbackToBody:!0};function em(s){var e,t,r,i;return s===!1?null:s===!0||s===void 0?x({},gt):{maxPathDepth:(e=s.maxPathDepth)!=null?e:gt.maxPathDepth,enableSvgFingerprint:(t=s.enableSvgFingerprint)!=null?t:gt.enableSvgFingerprint,confidenceThreshold:(r=s.confidenceThreshold)!=null?r:gt.confidenceThreshold,fallbackToBody:(i=s.fallbackToBody)!=null?i:gt.fallbackToBody}}function Kn(s,e,t,r){const i=e.getMeta(s),n=i==null?void 0:i.selector;if(n&&!(r!=null&&r.force))return n;const a=s.nodeType===Node.ELEMENT_NODE?s:Oi(s);if(!a)return n;const l=e.getMeta(a),o=l==null?void 0:l.selector;if(o&&!(r!=null&&r.force))return o;if(!t)return o!=null?o:n;const u={maxPathDepth:t.maxPathDepth,enableSvgFingerprint:t.enableSvgFingerprint,fallbackToBody:t.fallbackToBody};try{const c=Qp(a,u);if(c)return l?l.selector=c:i&&(i.selector=c),c}catch(c){}return o!=null?o:n}function qn(s){return"__ln"in s}class tm{constructor(){y(this,"length",0),y(this,"head",null),y(this,"tail",null)}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=(t==null?void 0:t.next)||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&qn(e.previousSibling)){const r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&qn(e.nextSibling)&&e.nextSibling.__ln.previous){const r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;t.next===null&&(this.tail=t),this.length++}removeNode(e){const 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--)}}const Qn=(s,e)=>`${s}@${e}`,rm=new Set(["id","class","name","role","title","alt","placeholder","for","type"]);function sm(s){const e=s.toLowerCase();return rm.has(e)||e.startsWith("data-")||e.startsWith("aria-")}class im{constructor(){y(this,"frozen",!1),y(this,"locked",!1),y(this,"texts",[]),y(this,"attributes",[]),y(this,"attributeMap",new WeakMap),y(this,"removes",[]),y(this,"mapRemoves",[]),y(this,"movedMap",{}),y(this,"addedSet",new Set),y(this,"movedSet",new Set),y(this,"droppedSet",new Set),y(this,"removesSubTreeCache",new Set),y(this,"mutationCb"),y(this,"blockClass"),y(this,"blockSelector"),y(this,"maskTextClass"),y(this,"maskTextSelector"),y(this,"excludeAttribute"),y(this,"inlineStylesheet"),y(this,"maskInputOptions"),y(this,"maskTextFn"),y(this,"maskInputFn"),y(this,"keepIframeSrcFn"),y(this,"recordCanvas"),y(this,"inlineImages"),y(this,"slimDOMOptions"),y(this,"dataURLOptions"),y(this,"selectorOptions",null),y(this,"doc"),y(this,"mirror"),y(this,"iframeManager"),y(this,"stylesheetManager"),y(this,"shadowDomManager"),y(this,"canvasManager"),y(this,"processedNodeManager"),y(this,"unattachedDoc"),y(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),y(this,"emit",()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,r=new tm,i=o=>{let u=o,c=At;for(;c===At;)u=u&&u.nextSibling,c=u&&this.mirror.getId(u);return c},n=o=>{const u=T.parentNode(o);if(!u||!Ka(o))return;let c=!1;if(o.nodeType===Node.TEXT_NODE){const m=u.tagName;if(m==="TEXTAREA")return;m==="STYLE"&&this.addedSet.has(u)&&(c=!0)}const h=bt(u)?this.mirror.getId(Xa(o)):this.mirror.getId(u),d=i(o);if(h===-1||d===-1)return r.addNode(o);const f=qe(o,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,excludeAttribute:this.excludeAttribute,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:m=>{Za(m,this.mirror)&&this.iframeManager.addIframe(m),Ja(m,this.mirror)&&this.stylesheetManager.trackLinkElement(m),qs(o)&&this.shadowDomManager.addShadowRoot(T.shadowRoot(o),this.doc)},onIframeLoad:(m,g)=>{this.iframeManager.attachIframe(m,g),this.shadowDomManager.observeAttachShadow(m)},onStylesheetLoad:(m,g)=>{this.stylesheetManager.attachLinkElement(m,g)},cssCaptured:c,selectorOptions:this.selectorOptions});f&&(e.push({parentId:h,nextId:d,node:f}),t.add(f.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const o of this.movedSet)eo(this.removesSubTreeCache,o,this.mirror)&&!this.movedSet.has(T.parentNode(o))||n(o);for(const o of this.addedSet)!to(this.droppedSet,o)&&!eo(this.removesSubTreeCache,o,this.mirror)||to(this.movedSet,o)?n(o):this.droppedSet.add(o);let a=null;for(;r.length;){let o=null;if(a){const u=this.mirror.getId(T.parentNode(a.value)),c=i(a.value);u!==-1&&c!==-1&&(o=a)}if(!o){let u=r.tail;for(;u;){const c=u;if(u=u.previous,c){const h=this.mirror.getId(T.parentNode(c.value));if(i(c.value)===-1)continue;if(h!==-1){o=c;break}else{const f=c.value,m=T.parentNode(f);if(m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const g=T.host(m);if(this.mirror.getId(g)!==-1){o=c;break}}}}}}if(!o){for(;r.head;)r.removeNode(r.head.value);break}a=o.previous,r.removeNode(o.value),n(o.value)}const l={texts:this.texts.map(o=>{const u=o.node,c=T.parentNode(u);return c&&c.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(c),{id:this.mirror.getId(u),value:o.value,selector:Kn(u,this.mirror,this.selectorOptions)}}).filter(o=>!t.has(o.id)).filter(o=>this.mirror.has(o.id)),attributes:this.attributes.map(o=>{const{attributes:u}=o;if(typeof u.style=="string"){const c=JSON.stringify(o.styleDiff),h=JSON.stringify(o._unchangedStyles);c.length<u.style.length&&(c+h).split("var(").length===u.style.split("var(").length&&(u.style=o.styleDiff)}return{id:this.mirror.getId(o.node),attributes:u,selector:Kn(o.node,this.mirror,this.selectorOptions,{force:Object.keys(u).some(sm)})}}).filter(o=>!t.has(o.id)).filter(o=>this.mirror.has(o.id)),removes:this.removes,adds:e};!l.texts.length&&!l.attributes.length&&!l.removes.length&&!l.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(l))}),y(this,"genTextAreaValueMutation",e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t));const r=Array.from(T.childNodes(e),i=>T.textContent(i)||"").join("");t.attributes.value=vt({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:Ct(e),value:r,maskInputFn:this.maskInputFn})}),y(this,"processMutation",e=>{if(!ps(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case"characterData":{const t=T.textContent(e.target);!le(e.target,this.blockClass,this.blockSelector,!1)&&t!==e.oldValue&&this.texts.push({value:xo(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,Oi(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let r=e.attributeName,i=e.target.getAttribute(r);const a=t[r],l=typeof a=="boolean",o=document.contains(t),u=ri(t),c=Ss(r,this.excludeAttribute);if(i===null&&!t.hasAttribute(r)&&e.oldValue!==null&&(a===""||a===null||typeof a=="undefined")){console.debug(`[${ae()}] [rrweb:record/mutation] \u26D4 phantom attribute mutation ignored`,{node:T.describeNode(t),tag:t.tagName,nodeType:t.nodeType,attribute:r,value:i,oldValue:e.oldValue,excludeAttribute:this.excludeAttribute,propValue:a,isBooleanAttr:l,inDOM:o,isVisible:u,isExcludeAttributeName:c});return}if(Ss(r,this.excludeAttribute)){console.debug(`[${ae()}] [rrweb:record/mutation] \u26D4 excluded attribute mutation ignored`,{node:T.describeNode(t),tag:t.tagName,nodeType:t.nodeType,attribute:r,value:i,oldValue:e.oldValue,excludeAttribute:this.excludeAttribute,propValue:a,isBooleanAttr:l,inDOM:o,isVisible:u,isExcludeAttributeName:c});return}if(r==="value"){const f=Ct(t);i=vt({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:f,value:i,maskInputFn:this.maskInputFn})}if(le(e.target,this.blockClass,this.blockSelector,!1)||i===e.oldValue)return;let d=this.attributeMap.get(e.target);if(t.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(i))if(!t.contentDocument)r="rr_src";else return;if(d||(d={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(d),this.attributeMap.set(e.target,d)),r==="type"&&t.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&t.setAttribute("data-rr-is-password","true"),!Co(t.tagName,r))if(d.attributes[r]=vo(this.doc,We(t.tagName),We(r),i),r!=="class"&&(e.oldValue===null||i===""||i!==e.oldValue)&&console.debug(`[${ae()}] [rrweb:record/mutation] \u26A0\uFE0F suspicious attribute mutation`,{reason:[i===e.oldValue?"no change in value":null,i===a?"mirrored in DOM property":null,i===d.attributes[r]?"redundant assignment":null].filter(Boolean).join(", ")||"uncategorized",node:T.describeNode(t),tag:t.tagName,nodeType:t.nodeType,attribute:r,value:i,oldValue:e.oldValue,transformedValue:d.attributes[r],excludeAttribute:this.excludeAttribute,propValue:a,isBooleanAttr:l,inDOM:o,isVisible:u,isExcludeAttributeName:c}),r==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(g){this.unattachedDoc=this.doc}const m=this.unattachedDoc.createElement("span");e.oldValue&&m.setAttribute("style",e.oldValue);for(const g of Array.from(t.style)){const p=t.style.getPropertyValue(g),b=t.style.getPropertyPriority(g);p!==m.style.getPropertyValue(g)||b!==m.style.getPropertyPriority(g)?b===""?d.styleDiff[g]=p:d.styleDiff[g]=[p,b]:d._unchangedStyles[g]=[p,b]}for(const g of Array.from(m.style))t.style.getPropertyValue(g)===""&&(d.styleDiff[g]=!1)}else r==="open"&&t.tagName==="DIALOG"&&(t.matches("dialog:modal")?d.attributes.rr_open_mode="modal":d.attributes.rr_open_mode="non-modal");break}case"childList":{if(le(e.target,this.blockClass,this.blockSelector,!0))return;if(e.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(e.target);return}e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{const r=this.mirror.getId(t),i=bt(e.target)?this.mirror.getId(T.host(e.target)):this.mirror.getId(e.target);le(e.target,this.blockClass,this.blockSelector,!1)||ps(t,this.mirror,this.slimDOMOptions)||!lp(t,this.mirror)||(this.addedSet.has(t)?(ei(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&r===-1||Ya(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Qn(r,i)]?ei(this.movedSet,t):(this.removes.push({parentId:i,id:r,isShadow:bt(e.target)&&wt(e.target)?!0:void 0}),nm(t,this.removesSubTreeCache))),this.mapRemoves.push(t))});break}}}),y(this,"genAdds",(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(ps(e,this.mirror,this.slimDOMOptions))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&r!==-1&&(this.movedMap[Qn(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);le(e,this.blockClass,this.blockSelector,!1)||(T.childNodes(e).forEach(r=>this.genAdds(r)),qs(e)&&T.childNodes(T.shadowRoot(e)).forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,e)}))}})}init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","excludeAttribute","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","selectorOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}resetBuffers(){this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.mapRemoves=[],this.movedMap={},this.attributes=[],this.texts=[],this.attributeMap=new WeakMap,this.removes=[]}unsetFrozen(){this.frozen=!1,this.canvasManager.unfreeze()}}function ei(s,e){s.delete(e),T.childNodes(e).forEach(t=>ei(s,t))}function nm(s,e){const t=[s];for(;t.length;){const r=t.pop();e.has(r)||(e.add(r),T.childNodes(r).forEach(i=>t.push(i)))}}function eo(s,e,t){return s.size===0?!1:om(s,e)}function om(s,e,t){const r=T.parentNode(e);return r?s.has(r):!1}function to(s,e){return s.size===0?!1:il(s,e)}function il(s,e){const t=T.parentNode(e);return t?s.has(t)?!0:il(s,t):!1}let St;function am(s){St=s}function lm(){St=void 0}const L=s=>St?(...t)=>{try{return s(...t)}catch(r){if(St&&St(r)===!0)return;throw r}}:s,ge=[];function lt(s){try{if("composedPath"in s){const e=s.composedPath();if(e.length)return e[0]}else if("path"in s&&s.path.length)return s.path[0]}catch(e){}return s&&s.target}function nl(s,e){const t=new im;ge.push(t),t.init(s);const r=new(Mi())(L(t.processMutations.bind(t)));return r.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),r}function cm({mousemoveCb:s,sampling:e,doc:t,mirror:r}){if(e.mousemove===!1)return()=>{};const i=typeof e.mousemove=="number"?e.mousemove:50,n=typeof e.mousemoveCallback=="number"?e.mousemoveCallback:500;let a=[],l;const o=kt(L(h=>{const d=Date.now()-l;s(a.map(f=>(f.timeOffset-=d,f)),h),a=[],l=null}),n),u=L(kt(L(h=>{const d=lt(h),{clientX:f,clientY:m}=Ks(h)?h.changedTouches[0]:h;l||(l=ae()),a.push({x:f,y:m,id:r.getId(d),timeOffset:ae()-l}),o(typeof DragEvent!="undefined"&&h instanceof DragEvent?D.Drag:h instanceof MouseEvent?D.MouseMove:D.TouchMove)}),i,{trailing:!1})),c=[se("mousemove",u,t),se("touchmove",u,t),se("drag",u,t)];return L(()=>{c.forEach(h=>h())})}function um({mouseInteractionCb:s,doc:e,mirror:t,blockClass:r,blockSelector:i,sampling:n}){if(n.mouseInteraction===!1)return()=>{console.debug("MouseInteractionObserver: No operation needed")};const a=n.mouseInteraction===!0||n.mouseInteraction===void 0?{}:n.mouseInteraction,l=[];let o=null;const u=c=>h=>{const d=lt(h);if(le(d,r,i,!0))return;let f=null,m=c;if("pointerType"in h){switch(h.pointerType){case"mouse":f=Ee.Mouse;break;case"touch":f=Ee.Touch;break;case"pen":f=Ee.Pen;break}f===Ee.Touch?ce[c]===ce.MouseDown?m="TouchStart":ce[c]===ce.MouseUp&&(m="TouchEnd"):Ee.Pen}else Ks(h)&&(f=Ee.Touch);f!==null?(o=f,(m.startsWith("Touch")&&f===Ee.Touch||m.startsWith("Mouse")&&f===Ee.Mouse)&&(f=null)):ce[c]===ce.Click&&(f=o,o=null);const g=Ks(h)?h.changedTouches[0]:h;if(!g)return;const p=t.getId(d),{clientX:b,clientY:C}=g;L(s)(x({type:ce[m],id:p,x:b,y:C},f!==null&&{pointerType:f}))};return Object.keys(ce).filter(c=>Number.isNaN(Number(c))&&!c.endsWith("_Departed")&&a[c]!==!1).forEach(c=>{let h=We(c);const d=u(c);if(window.PointerEvent)switch(ce[c]){case ce.MouseDown:case ce.MouseUp:h=h.replace("mouse","pointer");break;case ce.TouchStart:case ce.TouchEnd:return}l.push(se(h,d,e))}),L(()=>{l.forEach(c=>c())})}function ol({scrollCb:s,doc:e,mirror:t,blockClass:r,blockSelector:i,sampling:n}){const a=L(kt(L(l=>{const o=lt(l);if(!o||le(o,r,i,!0))return;const u=t.getId(o);if(o===e&&e.defaultView){const c=Va(e.defaultView);s({id:u,x:c.left,y:c.top})}else s({id:u,x:o.scrollLeft,y:o.scrollTop})}),n.scroll||100));return se("scroll",a,e)}function hm({viewportResizeCb:s},{win:e}){let t=-1,r=-1;const i=L(kt(L(()=>{const n=ja(),a=Ga();(t!==n||r!==a)&&(s({width:Number(a),height:Number(n)}),t=n,r=a)}),200));return se("resize",i,e)}function dm({navigationCb:s,doc:e,sampling:t}){var c;if(t.navigation===!1)return()=>{};const r=e.defaultView;if(!r)return()=>{};let i=r.location.href;const n=[],a=L(h=>{const d=r.location.href;d!==i&&(s({href:d,oldHref:i,navigationType:h}),i=d)}),l=Me(r.history,"pushState",function(h){return function(...d){const f=h.apply(this,d);return a("pushState"),f}});n.push(l);const o=Me(r.history,"replaceState",function(h){return function(...d){const f=h.apply(this,d);return a("replaceState"),f}});if(n.push(o),n.push(se("popstate",()=>a("popstate"),r)),n.push(se("hashchange",()=>a("hashchange"),r)),(typeof t.navigation=="object"&&(c=t.navigation.useNavigationAPI)!=null?c:!0)&&"navigation"in r)try{const h=r.navigation,d=f=>{var m;const g=f;if(g.navigationType==="push"||g.navigationType==="replace"){const p=(m=g.destination)==null?void 0:m.url;p&&p!==i&&(s({href:p,oldHref:i,navigationType:"navigate"}),i=p)}};h.addEventListener("navigate",d),n.push(()=>h.removeEventListener("navigate",d))}catch(h){}return L(()=>{n.forEach(h=>h())})}const vr=["INPUT","TEXTAREA","SELECT"],kr=new WeakMap,fm=["Enter","Tab","Escape","ArrowDown","ArrowUp","Delete"],ro=new WeakMap;function pm({inputCb:s,doc:e,mirror:t,blockClass:r,blockSelector:i,ignoreClass:n,ignoreSelector:a,maskInputOptions:l,maskInputFn:o,sampling:u,userTriggeredOnInput:c,trustSyntheticInput:h}){function d(S){let w=lt(S);const A=S.isTrusted,v=w&&w.tagName;if(w&&v==="OPTION"&&(w=T.parentElement(w)),!w||!v||vr.indexOf(v)<0||le(w,r,i,!0)||w.classList.contains(n)||a&&w.matches(a))return;let $=w.value,N=!1;const _=Ct(w)||"";_==="radio"||_==="checkbox"?N=w.checked:(l[v.toLowerCase()]||l[_])&&($=vt({element:w,maskInputOptions:l,tagName:v,type:_,value:$,maskInputFn:o})),f(w,c?{text:$,isChecked:N,userTriggered:A}:{text:$,isChecked:N});const F=w.name;_==="radio"&&F&&N&&e.querySelectorAll(`input[type="radio"][name="${F}"]`).forEach(V=>{if(V!==w){const j=V.value;f(V,c?{text:j,isChecked:!N,userTriggered:!1}:{text:j,isChecked:!N})}})}function f(S,w){const A=kr.get(S),v=S;if(h){const $=!w.userTriggered&&v.value===""&&!w.isChecked&&!A,N=v.tagName==="SELECT"&&!w.userTriggered&&!A&&v.selectedIndex===0;if($||N){console.debug(`[${ae()}] [rrweb:record/observer] phantom input ignored (trust mode)`,{node:T.describeNode(v),tag:v.tagName,value:v.value,isInitialEmpty:$,isSelectDefaultSelection:N});return}}else{const $=v.hasAttribute("placeholder"),N=v.value==="",_=typeof v.defaultValue=="string"?v.defaultValue==="":!0,F=!w.userTriggered,V=!A||A.text==="",j=$&&N&&_&&V&&F&&!w.isChecked&&v.type!=="hidden"&&vr.includes(v.tagName),q=v.tagName==="INPUT"&&v.type==="text"&&!w.userTriggered&&w.text===v.defaultValue&&!A&&v.hasAttribute("placeholder"),I=!w.userTriggered&&v.value===v.defaultValue&&!A&&v.hasAttribute("placeholder")&&!w.isChecked&&v.type!=="hidden"&&vr.includes(v.tagName),z=v.type==="checkbox"&&!w.userTriggered&&!w.isChecked&&!A,Q=v.type==="radio"&&!w.userTriggered&&!w.isChecked&&!A;if(j||q||I||z||Q){console.debug(`[${ae()}] [rrweb:record/observer] \u26D4 phantom input ignored`,{node:T.describeNode(v),tag:v.tagName,nodeType:v.nodeType,attribute:v.attributes,value:v.value,isLikelyPhantom:j,isRenderDrivenTextInput:q,isValueFromDefault:I,isPhantomCheckbox:z,isPhantomRadio:Q});return}}if(!A||A.text!==w.text||A.isChecked!==w.isChecked){kr.set(S,w);const $=t.getId(S);L(s)(oe(x({},w),{id:$}))}}const g=(u.input==="last"?["change"]:["input","change"]).map(S=>se(S,L(d),e)),p=S=>{const w=lt(S);if(!w||!w.tagName)return;if(u.input==="all"){d(S);return}const A=w.tagName,v=S.key,$=fm.includes(v),N=A==="TEXTAREA",_=e.activeElement===w,F=w.value,V=ro.get(w);if(ro.set(w,F),!_){d(S);return}if($){if(!N){d(S);return}let j=V!=null?V:"",q=0;const I=2,z=()=>{const Q=w.value,J=e.activeElement===w,he=Q!==j;if(!J){d(S);return}if(he)q=0,j=Q;else if(q++,q>=I){d(S);return}requestAnimationFrame(z)};requestAnimationFrame(z);return}};g.push(se("keydown",L(p),e));const b=e.defaultView;if(!b)return()=>{g.forEach(S=>S())};const C=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),E=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return C&&C.set&&g.push(...E.map(S=>Gr(S[0],S[1],{set(){L(d)({target:this,isTrusted:!1})}},!1,b))),L(()=>{g.forEach(S=>S())})}function Dr(s){const e=[];function t(r,i){if(fr("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||fr("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||fr("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||fr("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const a=Array.from(r.parentRule.cssRules).indexOf(r);i.unshift(a)}else if(r.parentStyleSheet){const a=Array.from(r.parentStyleSheet.cssRules).indexOf(r);i.unshift(a)}return i}return t(s,e)}function De(s,e,t){let r,i;return s?(s.ownerNode?r=e.getId(s.ownerNode):i=t.getId(s),{styleId:i,id:r}):{}}function mm({styleSheetRuleCb:s,mirror:e,stylesheetManager:t},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:L((c,h,d)=>{const[f,m]=d,{id:g,styleId:p}=De(h,e,t.styleMirror);return(g&&g!==-1||p&&p!==-1)&&s({id:g,styleId:p,adds:[{rule:f,index:m}]}),c.apply(h,d)})}),r.CSSStyleSheet.prototype.addRule=function(c,h,d=this.cssRules.length){const f=`${c} { ${h} }`;return r.CSSStyleSheet.prototype.insertRule.apply(this,[f,d])};const n=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(n,{apply:L((c,h,d)=>{const[f]=d,{id:m,styleId:g}=De(h,e,t.styleMirror);return(m&&m!==-1||g&&g!==-1)&&s({id:m,styleId:g,removes:[{index:f}]}),c.apply(h,d)})}),r.CSSStyleSheet.prototype.removeRule=function(c){return r.CSSStyleSheet.prototype.deleteRule.apply(this,[c])};let a;r.CSSStyleSheet.prototype.replace&&(a=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:L((c,h,d)=>{const[f]=d,{id:m,styleId:g}=De(h,e,t.styleMirror);return(m&&m!==-1||g&&g!==-1)&&s({id:m,styleId:g,replace:f}),c.apply(h,d)})}));let l;r.CSSStyleSheet.prototype.replaceSync&&(l=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:L((c,h,d)=>{const[f]=d,{id:m,styleId:g}=De(h,e,t.styleMirror);return(m&&m!==-1||g&&g!==-1)&&s({id:m,styleId:g,replaceSync:f}),c.apply(h,d)})}));const o={};pr("CSSGroupingRule")?o.CSSGroupingRule=r.CSSGroupingRule:(pr("CSSMediaRule")&&(o.CSSMediaRule=r.CSSMediaRule),pr("CSSConditionRule")&&(o.CSSConditionRule=r.CSSConditionRule),pr("CSSSupportsRule")&&(o.CSSSupportsRule=r.CSSSupportsRule));const u={};return Object.entries(o).forEach(([c,h])=>{u[c]={insertRule:h.prototype.insertRule,deleteRule:h.prototype.deleteRule},h.prototype.insertRule=new Proxy(u[c].insertRule,{apply:L((d,f,m)=>{const[g,p]=m,{id:b,styleId:C}=De(f.parentStyleSheet,e,t.styleMirror);return(b&&b!==-1||C&&C!==-1)&&s({id:b,styleId:C,adds:[{rule:g,index:[...Dr(f),p||0]}]}),d.apply(f,m)})}),h.prototype.deleteRule=new Proxy(u[c].deleteRule,{apply:L((d,f,m)=>{const[g]=m,{id:p,styleId:b}=De(f.parentStyleSheet,e,t.styleMirror);return(p&&p!==-1||b&&b!==-1)&&s({id:p,styleId:b,removes:[{index:[...Dr(f),g]}]}),d.apply(f,m)})})}),L(()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=n,a&&(r.CSSStyleSheet.prototype.replace=a),l&&(r.CSSStyleSheet.prototype.replaceSync=l),Object.entries(o).forEach(([c,h])=>{h.prototype.insertRule=u[c].insertRule,h.prototype.deleteRule=u[c].deleteRule})})}function al({mirror:s,stylesheetManager:e},t){var r,i,n;let a=null;t.nodeName==="#document"?a=s.getId(t):a=s.getId(T.host(t));const l=t.nodeName==="#document"?(r=t.defaultView)==null?void 0:r.Document:(n=(i=t.ownerDocument)==null?void 0:i.defaultView)==null?void 0:n.ShadowRoot,o=l!=null&&l.prototype?Object.getOwnPropertyDescriptor(l==null?void 0:l.prototype,"adoptedStyleSheets"):void 0;return a===null||a===-1||!l||!o?()=>{}:(Object.defineProperty(t,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){var u;return(u=o.get)==null?void 0:u.call(this)},set(u){var c;const h=(c=o.set)==null?void 0:c.call(this,u);if(a!==null&&a!==-1)try{e.adoptStyleSheets(u,a)}catch(d){}return h}}),L(()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))}function gm({styleDeclarationCb:s,mirror:e,ignoreCSSAttributes:t,stylesheetManager:r},{win:i}){const n=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(n,{apply:L((l,o,u)=>{var c;const[h,d,f]=u;if(t.has(h))return n.apply(o,[h,d,f]);const{id:m,styleId:g}=De((c=o.parentRule)==null?void 0:c.parentStyleSheet,e,r.styleMirror);return(m&&m!==-1||g&&g!==-1)&&s({id:m,styleId:g,set:{property:h,value:d,priority:f},index:Dr(o.parentRule)}),l.apply(o,u)})});const a=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:L((l,o,u)=>{var c;const[h]=u;if(t.has(h))return a.apply(o,[h]);const{id:d,styleId:f}=De((c=o.parentRule)==null?void 0:c.parentStyleSheet,e,r.styleMirror);return(d&&d!==-1||f&&f!==-1)&&s({id:d,styleId:f,remove:{property:h},index:Dr(o.parentRule)}),l.apply(o,u)})}),L(()=>{i.CSSStyleDeclaration.prototype.setProperty=n,i.CSSStyleDeclaration.prototype.removeProperty=a})}function ym({mediaInteractionCb:s,blockClass:e,blockSelector:t,mirror:r,sampling:i,doc:n}){const a=L(o=>kt(L(u=>{const c=lt(u);if(!c||le(c,e,t,!0))return;const{currentTime:h,volume:d,muted:f,playbackRate:m,loop:g}=c;s({type:o,id:r.getId(c),currentTime:h,volume:d,muted:f,playbackRate:m,loop:g})}),i.media||500)),l=[se("play",a(Xe.Play),n),se("pause",a(Xe.Pause),n),se("seeked",a(Xe.Seeked),n),se("volumechange",a(Xe.VolumeChange),n),se("ratechange",a(Xe.RateChange),n)];return L(()=>{l.forEach(o=>o())})}function bm({fontCb:s,doc:e}){const t=e.defaultView;if(!t)return()=>{};const r=[],i=new WeakMap,n=t.FontFace;t.FontFace=function(o,u,c){const h=new n(o,u,c);return i.set(h,{family:o,buffer:typeof u!="string",descriptors:c,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(ArrayBuffer.isView(u)?new Uint8Array(u.buffer,u.byteOffset,u.byteLength):new Uint8Array(u)))}),h};const a=Me(e.fonts,"add",function(l){return function(o){return setTimeout(L(()=>{const u=i.get(o);u&&(s(u),i.delete(o))}),0),l.apply(this,[o])}});return r.push(()=>{t.FontFace=n}),r.push(a),L(()=>{r.forEach(l=>l())})}function wm(s){const{doc:e,mirror:t,blockClass:r,blockSelector:i,selectionCb:n}=s;let a=!0;const l=L(()=>{const o=e.getSelection();if(!o||a&&(o!=null&&o.isCollapsed))return;a=o.isCollapsed||!1;const u=[],c=o.rangeCount||0;for(let h=0;h<c;h++){const d=o.getRangeAt(h),{startContainer:f,startOffset:m,endContainer:g,endOffset:p}=d;le(f,r,i,!0)||le(g,r,i,!0)||u.push({start:t.getId(f),startOffset:m,end:t.getId(g),endOffset:p})}n({ranges:u})});return l(),se("selectionchange",l)}function Sm({doc:s,customElementCb:e}){const t=s.defaultView;return!t||!t.customElements?()=>{}:Me(t.customElements,"define",function(i){return function(n,a,l){try{e({define:{name:n}})}catch(o){console.warn(`Custom element callback failed for ${n}`)}return i.apply(this,[n,a,l])}})}function vm(s,e){const{mutationCb:t,mousemoveCb:r,mouseInteractionCb:i,scrollCb:n,viewportResizeCb:a,navigationCb:l,inputCb:o,mediaInteractionCb:u,styleSheetRuleCb:c,styleDeclarationCb:h,canvasMutationCb:d,fontCb:f,selectionCb:m,customElementCb:g}=s;s.mutationCb=(...p)=>{e.mutation&&e.mutation(...p),t(...p)},s.mousemoveCb=(...p)=>{e.mousemove&&e.mousemove(...p),r(...p)},s.mouseInteractionCb=(...p)=>{e.mouseInteraction&&e.mouseInteraction(...p),i(...p)},s.scrollCb=(...p)=>{e.scroll&&e.scroll(...p),n(...p)},s.viewportResizeCb=(...p)=>{e.viewportResize&&e.viewportResize(...p),a(...p)},s.navigationCb=(...p)=>{e.navigation&&e.navigation(...p),l(...p)},s.inputCb=(...p)=>{e.input&&e.input(...p),o(...p)},s.mediaInteractionCb=(...p)=>{e.mediaInteaction&&e.mediaInteaction(...p),u(...p)},s.styleSheetRuleCb=(...p)=>{e.styleSheetRule&&e.styleSheetRule(...p),c(...p)},s.styleDeclarationCb=(...p)=>{e.styleDeclaration&&e.styleDeclaration(...p),h(...p)},s.canvasMutationCb=(...p)=>{e.canvasMutation&&e.canvasMutation(...p),d(...p)},s.fontCb=(...p)=>{e.font&&e.font(...p),f(...p)},s.selectionCb=(...p)=>{e.selection&&e.selection(...p),m(...p)},s.customElementCb=(...p)=>{e.customElement&&e.customElement(...p),g(...p)}}function Cm(s,e={}){const t=s.doc.defaultView;if(!t)return()=>{};vm(s,e);let r;s.recordDOM&&(r=nl(s,s.doc));const i=cm(s),n=um(s),a=ol(s),l=hm(s,{win:t}),o=dm(s),u=pm(s),c=ym(s);let h=()=>{},d=()=>{},f=()=>{},m=()=>{};s.recordDOM&&(h=mm(s,{win:t}),d=al(s,s.doc),f=gm(s,{win:t}),s.collectFonts&&(m=bm(s)));const g=wm(s),p=Sm(s),b=[];for(const C of s.plugins)b.push(C.observer(C.callback,t,C.options));return L(()=>{var C;ge.forEach(E=>E.reset()),(C=s.visibilityManager)==null||C.reset(),r==null||r.disconnect(),i(),n(),a(),l(),o(),u(),c(),h(),d(),f(),m(),g(),p(),b.forEach(E=>E())})}function fr(s){return typeof window[s]!="undefined"}function pr(s){return!!(typeof window[s]!="undefined"&&window[s].prototype&&"insertRule"in window[s].prototype&&"deleteRule"in window[s].prototype)}class so{constructor(e){y(this,"iframeIdToRemoteIdMap",new WeakMap),y(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,t,r,i){const n=r||this.getIdToRemoteIdMap(e),a=i||this.getRemoteIdToIdMap(e);let l=n.get(t);return l||(l=this.generateIdFn(),n.set(t,l),a.set(l,t)),l}getIds(e,t){const r=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(n=>this.getId(e,n,r,i))}getRemoteId(e,t,r){const i=r||this.getRemoteIdToIdMap(e);if(typeof t!="number")return t;const n=i.get(t);return n||-1}getRemoteIds(e,t){const r=this.getRemoteIdToIdMap(e);return t.map(i=>this.getRemoteId(e,i,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class xm{constructor(e){y(this,"iframes",new WeakMap),y(this,"crossOriginIframeMap",new WeakMap),y(this,"crossOriginIframeMirror",new so(So)),y(this,"crossOriginIframeStyleMirror"),y(this,"crossOriginIframeRootIdMap",new WeakMap),y(this,"mirror"),y(this,"mutationCb"),y(this,"wrappedEmit"),y(this,"loadListener"),y(this,"stylesheetManager"),y(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new so(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var r,i;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((r=e.contentWindow)==null||r.addEventListener("message",this.handleMessage.bind(this))),(i=this.loadListener)==null||i.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e;if(t.data.type!=="rrweb"||!e.source)return;const i=this.crossOriginIframeMap.get(e.source);if(!i)return;const n=this.transformCrossOriginEvent(i,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}transformCrossOriginEvent(e,t){var r;switch(t.type){case P.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:P.IncrementalSnapshot,data:{source:D.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case P.Meta:case P.Load:case P.DomContentLoaded:return!1;case P.Plugin:return t;case P.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case P.IncrementalSnapshot:switch(t.data.source){case D.Mutation:return t.data.adds.forEach(i=>{this.replaceIds(i,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(i.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(i.node,n)}),t.data.removes.forEach(i=>{this.replaceIds(i,e,["parentId","id"])}),t.data.attributes.forEach(i=>{this.replaceIds(i,e,["id"])}),t.data.texts.forEach(i=>{this.replaceIds(i,e,["id"])}),t;case D.Drag:case D.TouchMove:case D.MouseMove:return t.data.positions.forEach(i=>{this.replaceIds(i,e,["id"])}),t;case D.ViewportResize:return!1;case D.MediaInteraction:case D.MouseInteraction:case D.Scroll:case D.CanvasMutation:case D.Input:return this.replaceIds(t.data,e,["id"]),t;case D.StyleSheetRule:case D.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case D.Font:return t;case D.Selection:return t.data.ranges.forEach(i=>{this.replaceIds(i,e,["start","end"])}),t;case D.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),(r=t.data.styles)==null||r.forEach(i=>{this.replaceStyleIds(i,e,["styleId"])}),t}}return!1}replace(e,t,r,i){for(const n of i)!Array.isArray(t[n])&&typeof t[n]!="number"||(Array.isArray(t[n])?t[n]=e.getIds(r,t[n]):t[n]=e.getId(r,t[n]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(r=>{this.replaceIdOnNode(r,t)})}patchRootIdOnNode(e,t){e.type!==qa.Document&&!e.rootId&&(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(r=>{this.patchRootIdOnNode(r,t)})}}class Am{constructor(e){y(this,"shadowDoms",new WeakSet),y(this,"mutationCb"),y(this,"scrollCb"),y(this,"bypassOptions"),y(this,"mirror"),y(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!wt(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);const r=nl(oe(x({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(ol(oe(x({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(T.host(e))),this.restoreHandlers.push(al({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){!e.contentWindow||!e.contentDocument||this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const r=this;this.restoreHandlers.push(Me(e.prototype,"attachShadow",function(i){return function(n){const a=i.call(this,n),l=T.shadowRoot(this);return l&&Ka(this)&&r.addShadowRoot(l,t),a}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}var Qe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Im=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var mr=0;mr<Qe.length;mr++)Im[Qe.charCodeAt(mr)]=mr;var Em=function(s){var e=new Uint8Array(s),t,r=e.length,i="";for(t=0;t<r;t+=3)i+=Qe[e[t]>>2],i+=Qe[(e[t]&3)<<4|e[t+1]>>4],i+=Qe[(e[t+1]&15)<<2|e[t+2]>>6],i+=Qe[e[t+2]&63];return r%3===2?i=i.substring(0,i.length-1)+"=":r%3===1&&(i=i.substring(0,i.length-2)+"=="),i};const io=new Map;function $m(s,e){let t=io.get(s);return t||(t=new Map,io.set(s,t)),t.has(e)||t.set(e,[]),t.get(e)}const ll=(s,e,t)=>{if(!s||!(ul(s,e)||typeof s=="object"))return;const r=s.constructor.name,i=$m(t,r);let n=i.indexOf(s);return n===-1&&(n=i.length,i.push(s)),n};function Cr(s,e,t){if(s instanceof Array)return s.map(r=>Cr(r,e,t));if(s===null)return s;if(s instanceof Float32Array||s instanceof Float64Array||s instanceof Int32Array||s instanceof Uint32Array||s instanceof Uint8Array||s instanceof Uint16Array||s instanceof Int16Array||s instanceof Int8Array||s instanceof Uint8ClampedArray)return{rr_type:s.constructor.name,args:[Object.values(s)]};if(s instanceof ArrayBuffer){const r=s.constructor.name,i=Em(s);return{rr_type:r,base64:i}}else{if(s instanceof DataView)return{rr_type:s.constructor.name,args:[Cr(s.buffer,e,t),s.byteOffset,s.byteLength]};if(s instanceof HTMLImageElement){const r=s.constructor.name,{src:i}=s;return{rr_type:r,src:i}}else if(s instanceof HTMLCanvasElement){const r="HTMLImageElement",i=s.toDataURL();return{rr_type:r,src:i}}else{if(s instanceof ImageData)return{rr_type:s.constructor.name,args:[Cr(s.data,e,t),s.width,s.height]};if(ul(s,e)||typeof s=="object"){const r=s.constructor.name,i=ll(s,e,t);return{rr_type:r,index:i}}}}return s}const cl=(s,e,t)=>s.map(r=>Cr(r,e,t)),ul=(s,e)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(i=>typeof e[i]=="function").find(i=>s instanceof e[i]);function Rm(s,e,t,r){const i=[],n=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype);for(const a of n)try{if(typeof e.CanvasRenderingContext2D.prototype[a]!="function")continue;const l=Me(e.CanvasRenderingContext2D.prototype,a,function(o){return function(...u){return le(this.canvas,t,r,!0)||setTimeout(()=>{const c=cl(u,e,this);s(this.canvas,{type:at["2D"],property:a,args:c})},0),o.apply(this,u)}});i.push(l)}catch(l){const o=Gr(e.CanvasRenderingContext2D.prototype,a,{set(u){s(this.canvas,{type:at["2D"],property:a,args:[u],setter:!0})}});i.push(o)}return()=>{i.forEach(a=>a())}}function Mm(s){return s==="experimental-webgl"?"webgl":s}function no(s,e,t,r){const i=[];try{const n=Me(s.HTMLCanvasElement.prototype,"getContext",function(a){return function(l,...o){if(!le(this,e,t,!0)){const u=Mm(l);if("__context"in this||(this.__context=u),r&&["webgl","webgl2"].includes(u))if(o[0]&&typeof o[0]=="object"){const c=o[0];c.preserveDrawingBuffer||(c.preserveDrawingBuffer=!0)}else o.splice(0,1,{preserveDrawingBuffer:!0})}return a.apply(this,[l,...o])}});i.push(n)}catch(n){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach(n=>n())}}function oo(s,e,t,r,i,n){const a=[],l=Object.getOwnPropertyNames(s);for(const o of l)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(o))try{if(typeof s[o]!="function")continue;const u=Me(s,o,function(c){return function(...h){const d=c.apply(this,h);if(ll(d,n,this),"tagName"in this.canvas&&!le(this.canvas,r,i,!0)){const f=cl(h,n,this),m={type:e,property:o,args:f};t(this.canvas,m)}return d}});a.push(u)}catch(u){const c=Gr(s,o,{set(h){t(this.canvas,{type:e,property:o,args:[h],setter:!0})}});a.push(c)}return a}function Om(s,e,t,r){const i=[];return i.push(...oo(e.WebGLRenderingContext.prototype,at.WebGL,s,t,r,e)),typeof e.WebGL2RenderingContext!="undefined"&&i.push(...oo(e.WebGL2RenderingContext.prototype,at.WebGL2,s,t,r,e)),()=>{i.forEach(n=>n())}}const hl="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Tm=s=>Uint8Array.from(atob(s),e=>e.charCodeAt(0)),ao=typeof self!="undefined"&&self.Blob&&new Blob([Tm(hl)],{type:"text/javascript;charset=utf-8"});function Nm(s){let e;try{if(e=ao&&(self.URL||self.webkitURL).createObjectURL(ao),!e)throw"";const t=new Worker(e,{name:s==null?void 0:s.name});return t.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(e)}),t}catch(t){return new Worker("data:text/javascript;base64,"+hl,{name:s==null?void 0:s.name})}finally{e&&(self.URL||self.webkitURL).revokeObjectURL(e)}}class km{constructor(e){y(this,"pendingCanvasMutations",new Map),y(this,"rafStamps",{latestId:0,invokeId:null}),y(this,"mirror"),y(this,"mutationCb"),y(this,"resetObservers"),y(this,"frozen",!1),y(this,"locked",!1),y(this,"processMutation",(o,u)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(o)||this.pendingCanvasMutations.set(o,[]),this.pendingCanvasMutations.get(o).push(u)});const{sampling:t="all",win:r,blockClass:i,blockSelector:n,recordCanvas:a,dataURLOptions:l}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,a&&t==="all"&&this.initCanvasMutationObserver(r,i,n),a&&typeof t=="number"&&this.initCanvasFPSObserver(t,r,i,n,{dataURLOptions:l})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(e,t,r,i,n){const a=no(t,r,i,!0),l=new Map,o=new Nm;o.onmessage=m=>{const{id:g}=m.data;if(l.set(g,!1),!("base64"in m.data))return;const{base64:p,type:b,width:C,height:E}=m.data;this.mutationCb({id:g,type:at["2D"],commands:[{property:"clearRect",args:[0,0,C,E]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:p}],type:b}]},0,0]}]})};const u=1e3/e;let c=0,h;const d=()=>{const m=[];return t.document.querySelectorAll("canvas").forEach(g=>{le(g,r,i,!0)||m.push(g)}),m},f=m=>{if(c&&m-c<u){h=requestAnimationFrame(f);return}c=m,d().forEach(async g=>{var p;const b=this.mirror.getId(g);if(l.get(b)||g.width===0||g.height===0)return;if(l.set(b,!0),["webgl","webgl2"].includes(g.__context)){const E=g.getContext(g.__context);((p=E==null?void 0:E.getContextAttributes())==null?void 0:p.preserveDrawingBuffer)===!1&&E.clear(E.COLOR_BUFFER_BIT)}const C=await createImageBitmap(g);o.postMessage({id:b,bitmap:C,width:g.width,height:g.height,dataURLOptions:n.dataURLOptions},[C])}),h=requestAnimationFrame(f)};h=requestAnimationFrame(f),this.resetObservers=()=>{a(),cancelAnimationFrame(h)}}initCanvasMutationObserver(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const i=no(e,t,r,!1),n=Rm(this.processMutation.bind(this),e,t,r),a=Om(this.processMutation.bind(this),e,t,r);this.resetObservers=()=>{i(),n(),a()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{const r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(e);if(!r||t===-1)return;const i=r.map(a=>{const u=a,{type:l}=u;return Ye(u,["type"])}),{type:n}=r[0];this.mutationCb({id:t,type:n,commands:i}),this.pendingCanvasMutations.delete(e)}}function lo(s,e,t){var c,h,d,f,m,g;const r=(c=t==null?void 0:t.root)!=null?c:null,i=(h=t==null?void 0:t.threshold)!=null?h:.5,n=(d=t==null?void 0:t.sensitivity)!=null?d:.05,a=Dm((f=t==null?void 0:t.rootMargin)!=null?f:"0px"),l=new Map,o=Lm(r),u=Pm(o,a);for(const p of s){const b=p.getBoundingClientRect();let C=Fm(),E=0;b.width>0&&b.height>0&&(C=_m(b,u),E=zm(b,C),E=Math.round(E*100)/100);const S=Bm(p),w=(m=e.get(p))!=null?m:null,A=(g=w==null?void 0:w.intersectionRatio)!=null?g:0,v=E,$=(w==null?void 0:w.isStyleVisible)&&A>i,N=S&&v>i;!w||$!==N||$!==N&&Math.abs(v-A)>n?l.set(p,{target:p,isVisible:N,isStyleVisible:S,intersectionRatio:v,intersectionRect:C,oldValue:w}):l.set(p,w)}return l}function Dm(s){const e=s.trim().split(/\s+/),t=(r,i)=>r.endsWith("%")?parseFloat(r)/100*i:parseFloat(r)||0;return function(r){const i=t(e[0]||"0px",r.height),n=t(e[1]||e[0]||"0px",r.width),a=t(e[2]||e[0]||"0px",r.height),l=t(e[3]||e[1]||e[0]||"0px",r.width);return{top:i,right:n,bottom:a,left:l,width:0,height:0}}}function Lm(s){return s?s.getBoundingClientRect():new DOMRect(0,0,window.innerWidth,window.innerHeight)}function Pm(s,e){const t=e(s);return new DOMRect(s.left-t.left,s.top-t.top,s.width+t.left+t.right,s.height+t.top+t.bottom)}function _m(s,e){const t=Math.max(s.top,e.top),r=Math.max(s.left,e.left),i=Math.min(s.bottom,e.bottom),n=Math.min(s.right,e.right),a=Math.max(0,n-r),l=Math.max(0,i-t);return{top:t,left:r,bottom:i,right:n,width:a,height:l}}function zm(s,e){const t=s.width*s.height,r=e.width*e.height;return t>0?r/t:0}function Fm(){return{top:0,left:0,right:0,bottom:0,width:0,height:0}}function Bm(s){const e=getComputedStyle(s);return e&&e.display!=="none"&&e.visibility!=="hidden"&&parseFloat(e.opacity||"1")>0}class Wm{constructor(e){var u,c,h,d,f,m;y(this,"frozen",!1),y(this,"locked",!1),y(this,"pending",new Map),y(this,"mirror"),y(this,"mutationCb"),y(this,"rafId",null),y(this,"intervalId",null),y(this,"rafThrottle"),y(this,"lastFlushTime",0),y(this,"elements",new Set),y(this,"previousState",new Map),y(this,"root",null),y(this,"threshold"),y(this,"sensitivity"),y(this,"rootMargin"),y(this,"hasInitialized",!1),y(this,"mode","none"),y(this,"debounce",50),y(this,"throttle",100),y(this,"buffer",new Map),y(this,"debounceTimer",null),y(this,"lastThrottleTime",0),y(this,"disabled",!1),y(this,"notifyActivity");const{doc:t,mirror:r,sampling:i,mutationCb:n,notifyActivity:a}=e;if(this.mirror=r,this.mutationCb=n,this.notifyActivity=a,this.rootMargin="0px",i===!1){this.disabled=!0;return}const l=typeof i=="object"&&i!==null?i:{};this.mode=(u=l==null?void 0:l.mode)!=null?u:"none",this.debounce=Number((c=l==null?void 0:l.debounce)!=null?c:100),this.throttle=Number((h=l==null?void 0:l.throttle)!=null?h:100),this.threshold=Number((d=l==null?void 0:l.threshold)!=null?d:.5),this.sensitivity=Number((f=l==null?void 0:l.sensitivity)!=null?f:.05),this.rafThrottle=Number((m=l==null?void 0:l.rafThrottle)!=null?m:50),t.querySelectorAll("*").forEach(g=>this.observe(g)),new MutationObserver(g=>{g.forEach(p=>{p.addedNodes.forEach(b=>{b.nodeType===Node.ELEMENT_NODE&&(this.observe(b),b.querySelectorAll("*").forEach(C=>this.observe(C)))}),p.removedNodes.forEach(b=>{b.nodeType===Node.ELEMENT_NODE&&this.unobserve(b)})})}).observe(t.body,{childList:!0,subtree:!0}),this.startPendingFlushLoop()}startPendingFlushLoop(){if(!this.disabled)if(typeof requestAnimationFrame=="function"){const e=t=>{t-this.lastFlushTime>=this.rafThrottle&&(this.lastFlushTime=t,this.flushPendingVisibilityMutations()),this.rafId=requestAnimationFrame(e)};this.rafId=requestAnimationFrame(e)}else{const e=()=>{const t=performance.now();t-this.lastFlushTime>=this.rafThrottle&&(this.lastFlushTime=t,this.flushPendingVisibilityMutations())};this.intervalId=setInterval(e,this.rafThrottle)}}flushPendingVisibilityMutations(){if(this.disabled||this.frozen||this.locked||this.elements.size===0)return;const e=lo(this.elements,this.previousState,{root:this.root,threshold:this.threshold,sensitivity:this.sensitivity,rootMargin:this.rootMargin});for(const[t,r]of e.entries()){const i=this.previousState.get(t);if(!i||i.isVisible!==r.isVisible||Math.abs(i.intersectionRatio-r.intersectionRatio)>this.sensitivity){const a=this.mirror.getId(t);a!==-1&&this.buffer.set(t,{id:a,isVisible:r.isVisible,ratio:r.intersectionRatio}),this.previousState.set(t,r)}}if(this.previousState=e,!this.hasInitialized){this.hasInitialized=!0,this.buffer.clear();return}this.scheduleEmit()}scheduleEmit(){if(this.mode==="debounce")clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>this.flushBuffer(),this.debounce);else if(this.mode==="throttle"){const e=performance.now();e-this.lastThrottleTime>=this.throttle&&(this.lastThrottleTime=e,this.flushBuffer())}else this.flushBuffer()}flushBuffer(){var e;if(this.frozen||this.locked||this.buffer.size===0)return;const t=Array.from(this.buffer.values()),r=t.length;this.buffer.clear(),this.mutationCb({mutations:t}),(e=this.notifyActivity)==null||e.call(this,r)}observe(e){this.disabled||this.elements.add(e)}unobserve(e){this.disabled||(this.elements.delete(e),this.previousState.delete(e),this.pending.delete(e))}freeze(){this.frozen=!0,this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=null)}unfreeze(){this.frozen=!1,this.flushPendingVisibilityMutations()}lock(){this.locked=!0,this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=null)}unlock(){this.locked=!1,this.buffer.clear(),this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=null),!this.disabled&&this.elements.size>0&&(this.previousState=lo(this.elements,new Map,{root:this.root,threshold:this.threshold,sensitivity:this.sensitivity,rootMargin:this.rootMargin}))}unsetFrozen(){this.frozen=!1}reset(){this.elements.clear(),this.previousState.clear(),this.pending.clear(),this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=null),this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)}}const Hm=150,Um=5e3,Vm=100;class jm{constructor(e){var n,a,l;y(this,"frozen",!1),y(this,"locked",!1),y(this,"disabled",!1),y(this,"settleTimeout"),y(this,"maxWait"),y(this,"debounceMs"),y(this,"settlingObserver",null),y(this,"debounceTimer",null),y(this,"settleCheckTimer",null),y(this,"maxWaitTimer",null),y(this,"lastMutationTime",0),y(this,"pendingNavigation",null),y(this,"doc"),y(this,"onSnapshot");const{doc:t,config:r,onSnapshot:i}=e;this.doc=t,this.onSnapshot=L(i),this.settleTimeout=(n=r.settleTimeout)!=null?n:Hm,this.maxWait=(a=r.maxWait)!=null?a:Um,this.debounceMs=(l=r.debounce)!=null?l:Vm}handleNavigation(e){this.disabled||this.locked||(this.pendingNavigation?(this.cancelTimers(),this.disconnectSettlingObserver(),this.pendingNavigation=null,this.onSnapshot(!0)):(this.cancelTimers(),this.disconnectSettlingObserver()),this.pendingNavigation=e,!this.frozen&&this.startDebounce())}cancelPending(){this.cancelTimers(),this.disconnectSettlingObserver(),this.pendingNavigation=null}freeze(){this.frozen=!0,this.cancelTimers(),this.disconnectSettlingObserver()}unfreeze(){this.frozen=!1,this.pendingNavigation&&!this.locked&&!this.disabled&&this.startDebounce()}lock(){this.locked=!0,this.cancelTimers(),this.disconnectSettlingObserver()}unlock(){this.locked=!1,this.pendingNavigation=null}unsetFrozen(){this.frozen=!1}reset(){this.cancelTimers(),this.disconnectSettlingObserver(),this.pendingNavigation=null,this.frozen=!1,this.locked=!1}destroy(){const e=this.pendingNavigation!==null;this.reset(),this.disabled=!0,e&&this.onSnapshot(!0)}startDebounce(){this.debounceTimer=setTimeout(()=>{this.debounceTimer=null,this.startDOMSettling()},this.debounceMs)}startDOMSettling(){if(this.frozen||this.locked||this.disabled)return;this.lastMutationTime=performance.now();const e=Mi();this.settlingObserver=new e(()=>{this.lastMutationTime=performance.now(),this.settleCheckTimer!==null&&clearTimeout(this.settleCheckTimer),this.settleCheckTimer=setTimeout(()=>this.checkSettled(),this.settleTimeout)}),this.settlingObserver.observe(this.doc,{childList:!0,subtree:!0}),this.settleCheckTimer=setTimeout(()=>this.checkSettled(),this.settleTimeout),this.maxWaitTimer=setTimeout(()=>{this.maxWaitTimer=null,this.completeSettling()},this.maxWait)}checkSettled(){this.settleCheckTimer=null;const e=performance.now()-this.lastMutationTime;e>=this.settleTimeout?this.completeSettling():this.settleCheckTimer=setTimeout(()=>this.checkSettled(),this.settleTimeout-e)}completeSettling(){this.frozen||this.locked||this.disabled||this.pendingNavigation&&(this.cancelTimers(),this.disconnectSettlingObserver(),this.pendingNavigation=null,this.onSnapshot(!0))}cancelTimers(){this.debounceTimer!==null&&(clearTimeout(this.debounceTimer),this.debounceTimer=null),this.settleCheckTimer!==null&&(clearTimeout(this.settleCheckTimer),this.settleCheckTimer=null),this.maxWaitTimer!==null&&(clearTimeout(this.maxWaitTimer),this.maxWaitTimer=null)}disconnectSettlingObserver(){this.settlingObserver&&(this.settlingObserver.disconnect(),this.settlingObserver=null)}}class Gm{constructor(e){y(this,"trackedLinkElements",new WeakSet),y(this,"mutationCb"),y(this,"adoptedStyleSheetCb"),y(this,"styleMirror",new up),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(e.length===0)return;const r={id:t,styleIds:[]},i=[];for(const n of e){let a;this.styleMirror.has(n)?a=this.styleMirror.getId(n):(a=this.styleMirror.add(n),i.push({styleId:a,rules:Array.from(n.rules||CSSRule,(l,o)=>({rule:ho(l,n.href),index:o}))})),r.styleIds.push(a)}i.length>0&&(r.styles=i),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class Ym{constructor(){y(this,"nodeMap",new WeakMap),y(this,"active",!1)}inOtherBuffer(e,t){const r=this.nodeMap.get(e);return r&&Array.from(r).some(i=>i!==t)}add(e,t){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}const Zm="3.10.0-alpha.1";let Z,ke,ys,et=!1;const Lr=[];let yt;try{if(Array.from([1],s=>s*2)[0]!==2){const s=document.createElement("iframe");document.body.appendChild(s),Array.from=((ji=s.contentWindow)==null?void 0:ji.Array.from)||Array.from,document.body.removeChild(s)}}catch(s){console.debug("Unable to override Array.from",s)}const fe=jl();function ue(s={}){const{emit:e,checkoutEveryNms:t,checkoutEveryNth:r,checkoutEveryNvm:i,checkoutDebounce:n,blockClass:a="rr-block",blockSelector:l=null,ignoreClass:o="rr-ignore",ignoreSelector:u=null,excludeAttribute:c,maskTextClass:h="rr-mask",maskTextSelector:d=null,inlineStylesheet:f=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:p,maskInputFn:b,maskTextFn:C,hooks:E,packFn:S,sampling:w={},dataURLOptions:A={},mousemoveWait:v,recordDOM:$=!0,recordCanvas:N=!1,recordCrossOriginIframes:_=!1,recordAfter:F=s.recordAfter==="DOMContentLoaded"?s.recordAfter:"load",flushCustomEvent:V=s.flushCustomEvent!==void 0?s.flushCustomEvent:"after",userTriggeredOnInput:j=!1,trustSyntheticInput:q=!1,collectFonts:I=!1,inlineImages:z=!1,plugins:Q,keepIframeSrcFn:J=()=>!1,ignoreCSSAttributes:he=new Set([]),selector:Ve,errorHandler:Oe}=s;am(Oe);const Ft=_?window.parent===window:!0;let ct=!1;if(!Ft)try{window.parent.document&&(ct=!1)}catch(R){ct=!0}if(Ft&&!e)throw new Error("emit function is required");if(!Ft&&!ct)return()=>{};v!==void 0&&w.mousemove===void 0&&(w.mousemove=v),fe.reset();const Yr=c===void 0?/.^/:c,je=m===!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}:g!==void 0?g:{password:!0},Zr=p===!0||p==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:p==="all",headMetaDescKeywords:p==="all",headTitleMutations:p==="all"}:p||{},ki=em(Ve);cp();let Di,Jr=0,Bt=0,Li=0,Te=!1,de=null,Ge=null,Pi=0;const dl=(w.scroll||100)*2;let _i=0;const fl=500;let Xr=!1;const zi=R=>{for(const te of Q||[])te.eventProcessor&&(R=te.eventProcessor(R));return S&&!ct&&(R=S(R)),R},Wt=()=>{de=null,Te=!1,Ge=null,ne==null||ne.cancelPending(),ke(!0),ge.forEach(R=>{R.resetBuffers(),R.unsetFrozen()}),ie&&ie.unsetFrozen(),ne&&ne.unsetFrozen()};Z=(R,te)=>{var W;const B=R;if(B.timestamp=ae(),B.checkoutId=Li,(W=ge[0])!=null&&W.isFrozen()&&!Te&&B.type!==P.FullSnapshot&&!(B.type===P.IncrementalSnapshot&&B.data.source===D.Mutation)&&(ge.forEach(Y=>Y.unfreeze()),ie==null||ie.unfreeze(),ne==null||ne.unfreeze()),Ft)e==null||e(zi(B),te);else if(ct){const Y={type:"rrweb",event:zi(B),isCheckout:te};window.parent.postMessage(Y,"*")}if(B.type===P.FullSnapshot)Di=B,Jr=0,Bt=0;else if(B.type===P.IncrementalSnapshot){if(B.data.source===D.Mutation&&B.data.isAttachIframe)return;if(B.data.source!==D.Visibility){Jr++;const Y=r&&Jr>=r,k=t&&B.timestamp-Di.timestamp>t;if(Y||k)if(n){Te||(Te=!0,Ge=ae(),ge.forEach(Ne=>Ne.freeze()),ie==null||ie.freeze()),de&&clearTimeout(de);const me=ae()-Ge,xe=n*3;me>=xe?Wt():de=setTimeout(()=>Wt(),n)}else ke(!0)}}};const Ht=R=>{var Y,k;var te,W;((Y=(te=R.adds)==null?void 0:te.length)!=null?Y:0)+((k=(W=R.removes)==null?void 0:W.length)!=null?k:0)>10&&(_i=ae(),Xr=!1),Z({type:P.IncrementalSnapshot,data:x({source:D.Mutation},R)})},pl=R=>{Z({type:P.IncrementalSnapshot,data:x({source:D.Visibility},R)})},Fi=R=>{Pi=ae(),Z({type:P.IncrementalSnapshot,data:x({source:D.Scroll},R)})},Bi=R=>Z({type:P.IncrementalSnapshot,data:x({source:D.CanvasMutation},R)}),ml=R=>Z({type:P.IncrementalSnapshot,data:x({source:D.AdoptedStyleSheet},R)}),Fe=new Gm({mutationCb:Ht,adoptedStyleSheetCb:ml}),Be=new xm({mirror:fe,mutationCb:Ht,stylesheetManager:Fe,recordCrossOriginIframes:_,wrappedEmit:Z});for(const R of Q||[])R.getMirror&&R.getMirror({nodeMirror:fe,crossOriginIframeMirror:Be.crossOriginIframeMirror,crossOriginIframeStyleMirror:Be.crossOriginIframeStyleMirror});const Kr=new Ym;ys=new km({recordCanvas:N,mutationCb:Bi,win:window,blockClass:a,blockSelector:l,mirror:fe,sampling:w.canvas,dataURLOptions:A});const Ut=new Am({mutationCb:Ht,scrollCb:Fi,bypassOptions:{blockClass:a,blockSelector:l,maskTextClass:h,maskTextSelector:d,excludeAttribute:Yr,inlineStylesheet:f,maskInputOptions:je,dataURLOptions:A,maskTextFn:C,maskInputFn:b,recordCanvas:N,inlineImages:z,sampling:w,slimDOMOptions:Zr,iframeManager:Be,stylesheetManager:Fe,canvasManager:ys,keepIframeSrcFn:J,processedNodeManager:Kr,selectorOptions:ki},mirror:fe}),gl=$&&(i!=null||(w==null?void 0:w.visibility)!==void 0&&(w==null?void 0:w.visibility)!==!1);let ie;if(gl){const R=typeof(w==null?void 0:w.visibility)=="object"&&(w==null?void 0:w.visibility)!==null?w.visibility:{},te=R.recordVisibility===!0;ie=new Wm({doc:document,mirror:fe,sampling:R,mutationCb:te?pl:()=>{},notifyActivity:i!=null?W=>{const B=ae(),Y=B-Pi<dl,k=B-_i<fl;if(!(Y&&!k)&&!(k&&Xr)&&(Bt+=W,Bt>=i))if(Bt=0,Xr=!0,n){Te||(Te=!0,Ge=ae(),ge.forEach(Ne=>Ne.freeze()),ie==null||ie.freeze()),de&&clearTimeout(de);const me=ae()-Ge,xe=n*3;me>=xe?Wt():de=setTimeout(()=>Wt(),n)}else ke(!0)}:void 0})}ke=(R=!1)=>{if(!$)return;Li++,Z({type:P.Meta,data:{href:window.location.href,width:Ga(),height:ja()}},R),Fe.reset(),Ut.init(),ge.forEach(W=>W.lock()),ie==null||ie.lock(),ne==null||ne.lock();const te=uu(document,{mirror:fe,blockClass:a,blockSelector:l,maskTextClass:h,maskTextSelector:d,excludeAttribute:Yr,inlineStylesheet:f,maskAllInputs:je,maskTextFn:C,maskInputFn:b,slimDOM:Zr,dataURLOptions:A,recordCanvas:N,inlineImages:z,onSerialize:W=>{Za(W,fe)&&Be.addIframe(W),Ja(W,fe)&&Fe.trackLinkElement(W),qs(W)&&Ut.addShadowRoot(T.shadowRoot(W),document)},onIframeLoad:(W,B)=>{Be.attachIframe(W,B),Ut.observeAttachShadow(W)},onStylesheetLoad:(W,B)=>{Fe.attachLinkElement(W,B)},keepIframeSrcFn:J,selector:Ve});if(!te)return console.warn("Failed to snapshot the document");Z({type:P.FullSnapshot,data:{node:te,initialOffset:Va(window)}},R),ge.forEach(W=>W.unlock()),ie==null||ie.unlock(),ne==null||ne.unlock(),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Fe.adoptStyleSheets(document.adoptedStyleSheets,fe.getId(document))},yt=()=>{for(const R of Lr)Z(R);Lr.length=0};let ne;const qr=w.navigation;if(qr!==!1){const R=typeof qr=="object"?qr:{};ne=new jm({doc:document,config:R,onSnapshot:te=>{Te&&(de&&(clearTimeout(de),de=null),Te=!1,Ge=null,ge.forEach(W=>{W.resetBuffers(),W.unsetFrozen()}),ie==null||ie.unsetFrozen()),ke(te)}})}try{const R=[],te=B=>{var Y;return L(Cm)({mutationCb:Ht,mousemoveCb:(k,me)=>Z({type:P.IncrementalSnapshot,data:{source:me,positions:k}}),mouseInteractionCb:k=>Z({type:P.IncrementalSnapshot,data:x({source:D.MouseInteraction},k)}),scrollCb:Fi,viewportResizeCb:k=>Z({type:P.IncrementalSnapshot,data:x({source:D.ViewportResize},k)}),navigationCb:k=>{ne?ne.handleNavigation(k):ke(!0)},inputCb:k=>Z({type:P.IncrementalSnapshot,data:x({source:D.Input},k)}),mediaInteractionCb:k=>Z({type:P.IncrementalSnapshot,data:x({source:D.MediaInteraction},k)}),styleSheetRuleCb:k=>Z({type:P.IncrementalSnapshot,data:x({source:D.StyleSheetRule},k)}),styleDeclarationCb:k=>Z({type:P.IncrementalSnapshot,data:x({source:D.StyleDeclaration},k)}),canvasMutationCb:Bi,visibilityManager:ie,fontCb:k=>Z({type:P.IncrementalSnapshot,data:x({source:D.Font},k)}),selectionCb:k=>{Z({type:P.IncrementalSnapshot,data:x({source:D.Selection},k)})},customElementCb:k=>{Z({type:P.IncrementalSnapshot,data:x({source:D.CustomElement},k)})},blockClass:a,ignoreClass:o,ignoreSelector:u,maskTextClass:h,maskTextSelector:d,excludeAttribute:Yr,maskInputOptions:je,inlineStylesheet:f,sampling:w,recordDOM:$,recordCanvas:N,inlineImages:z,userTriggeredOnInput:j,trustSyntheticInput:q,collectFonts:I,doc:B,maskInputFn:b,maskTextFn:C,keepIframeSrcFn:J,blockSelector:l,slimDOMOptions:Zr,dataURLOptions:A,selectorOptions:ki,mirror:fe,iframeManager:Be,stylesheetManager:Fe,shadowDomManager:Ut,processedNodeManager:Kr,canvasManager:ys,ignoreCSSAttributes:he,plugins:((Y=Q==null?void 0:Q.filter(k=>k.observer))==null?void 0:Y.map(k=>({observer:k.observer,options:k.options,callback:me=>Z({type:P.Plugin,data:{plugin:k.name,payload:me}})})))||[]},E)};Be.addLoadListener(B=>{try{R.push(te(B.contentDocument))}catch(Y){console.warn(Y)}});const W=()=>{V==="before"&&yt(),ke(),R.push(te(document)),et=!0,V==="after"&&yt()};return document.readyState==="interactive"||document.readyState==="complete"?W():(R.push(se("DOMContentLoaded",()=>{Z({type:P.DomContentLoaded,data:{}}),F==="DOMContentLoaded"&&W()})),R.push(se("load",()=>{Z({type:P.Load,data:{}}),F==="load"&&W()},window))),()=>{if(et){const B=document.activeElement;if(B&&vr.includes(B.tagName)){const Y=B,k=fe.getId(Y);if(k!==-1){const me=kr.get(Y);let xe=Y.value,Ne=!1;const Vt=Ct(Y)||"";if(Vt==="radio"||Vt==="checkbox"?Ne=Y.checked:(je[Y.tagName.toLowerCase()]||je[Vt])&&(xe=vt({element:Y,maskInputOptions:je,tagName:Y.tagName,type:Vt,value:xe,maskInputFn:b})),!me||me.text!==xe||me.isChecked!==Ne){const Wi=j?{text:xe,isChecked:Ne,userTriggered:!1}:{text:xe,isChecked:Ne};kr.set(Y,Wi),Z({type:P.IncrementalSnapshot,data:oe(x({source:D.Input},Wi),{id:k})})}}}}de&&(clearTimeout(de),de=null),yt(),R.forEach(B=>B()),ne==null||ne.destroy(),Kr.destroy(),et=!1,lm()}}catch(R){console.warn(R)}}ue.getVersion=()=>Zm;ue.isRecording=()=>et;ue.flushCustomEventQueue=()=>{console.warn(`[rrweb] CustomEvent flushing: ${Lr.length} events`),yt()};ue.addCustomEvent=(s,e)=>{const t={type:P.Custom,data:{tag:s,payload:e}};if(!et){console.warn(`[rrweb] CustomEvent buffered before/after recording start: ${s}`),Lr.push(t);return}Z(t)};ue.freezePage=()=>{ge.forEach(s=>s.freeze())};ue.takeFullSnapshot=s=>{if(!et)throw new Error("please take full snapshot after start recording");ke(s)};ue.mirror=fe;var co;(function(s){s[s.NotStarted=0]="NotStarted",s[s.Running=1]="Running",s[s.Stopped=2]="Stopped"})(co||(co={}));const{getVersion:Dg}=ue,{isRecording:Lg}=ue,{flushCustomEventQueue:Pg}=ue,{addCustomEvent:_g}=ue,{freezePage:zg}=ue,{takeFullSnapshot:Fg}=ue;exports.record=ue;
78
+ Solution: Ensure element and root parameter are from the same document context.`)}function om(s,e={}){var j,K,I,Q;var t;if(!s||!s.ownerDocument||!s.isConnected)return null;const r=x(x({},Ip),e);if(r.root)try{nm(s,r.root)}catch(z){return console.error("Cross-document generation detected:",z),null}const i=(j=r.cache)!=null?j:im(),n=i.getEID(s);if(n!==void 0)return n;const a=s.tagName.toLowerCase();if(a==="html"){const z=new Xn(r,i),W=cm(s,r,z);return i.setEID(s,W),W}const l=new $p(r,i),o=new _p(r,i),c=new Xn(r,i),u=new Qp,h=l.findAnchor(s);if(!h&&!r.fallbackToBody)return null;const f=(I=(K=h==null?void 0:h.element)!=null?K:(t=s.ownerDocument)==null?void 0:t.body)!=null?I:null;if(!f)return null;const m=!h||h.tier==="C",p=f.tagName.toLowerCase(),g=c.extract(f),d=f.parentElement;let y;if(d&&p!=="body"&&p!=="html"&&Dr(p,g,f)){const z=Array.from(d.children).indexOf(f);z!==-1&&(y=z+1)}const v={tag:f.tagName.toLowerCase(),semantics:g,score:(Q=h==null?void 0:h.score)!=null?Q:Ce.DEGRADED_SCORE,degraded:m,nthChild:y},A=o.buildPath(f,s,c),S=c.extract(s);r.enableSvgFingerprint&&am(s)&&(S.svg=u.fingerprint(s));const w=s.parentElement;let E;if(w&&Dr(a,S,s)){const z=Array.from(w.children).indexOf(s);z!==-1&&(E=z+1)}const C={tag:s.tagName.toLowerCase(),semantics:S,score:c.scoreElement(s),nthChild:E},$=[],N={onMultiple:"best-score",onMissing:"anchor-only",maxDepth:3},_=v.degraded||A.degraded,J=lm(v.degraded,A),F={version:"1.0",anchor:v,path:A.path,target:C,constraints:$,fallback:N,meta:{confidence:0,generatedAt:new Date().toISOString(),generator:"dom-eid@1.0",source:r.source,degraded:_,degradationReason:J}};return F.meta.confidence=em(F),F.meta.confidence<r.confidenceThreshold?null:(i.setEID(s,F),F)}function am(s){return s.namespaceURI==="http://www.w3.org/2000/svg"||s.tagName.toLowerCase()==="svg"||s instanceof SVGElement}function lm(s,e){if(s&&e.degraded)return"anchor-and-path-degraded";if(s)return"no-semantic-anchor";if(e.degraded)return e.degradationReason}function cm(s,e,t,r){const i={tag:"html",semantics:t.extract(s),score:1,degraded:!1,nthChild:void 0};return{version:"1.0",anchor:i,path:[],target:i,constraints:[],fallback:{onMultiple:"best-score",onMissing:"anchor-only",maxDepth:3},meta:{confidence:1,generatedAt:new Date().toISOString(),generator:"dom-eid@1.0",source:e.source,degraded:!1,degradationReason:void 0}}}const ll={id:"i","data-testid":"tid","data-qa":"qa","data-cy":"cy","data-test":"dt","aria-label":"al","aria-labelledby":"alb","aria-describedby":"adb",name:"n",href:"h",src:"s",type:"t",role:"r",alt:"at",title:"tt",for:"f",placeholder:"ph",text:"x"},Qn=Object.fromEntries(Object.entries(ll).map(([s,e])=>[e,s])),cl={maxClasses:2,maxAttributes:5,includeText:!0,maxTextLength:50,simplifyTarget:!0,includeConstraints:!0,format:"compact"};function eo(s){return s==="id"?101:Pe[s]!==void 0?Pe[s]:s.startsWith("data-")?Pe["data-*"]:s.startsWith("aria-")?Pe["aria-*"]:0}function um(s){return["id","data-testid","data-qa","data-cy","href","text","role"].includes(s)}function hm(s){return!!(/@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/.test(s)||/(\+?\d{1,3}[-.\s]?)?\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}/.test(s)||/\d{4}[-\s]?\d{4}[-\s]?\d{4}[-\s]?\d{4}/.test(s))}function dm(s,e){const t=x(x({},cl),e),r=t.format==="compact",i=r?"v1":`v${s.version}`,n=r?":":": ",a=r?"::":" :: ",l=r?">":" > ",o=t.includeText&&s.target.semantics.text?s.target.semantics.text.normalized:void 0,c=bs(s.anchor,!1,t),u=s.path.length>0?s.path.map(m=>bs(m,!1,t,o)).join(l)+l:"",h=bs(s.target,!0,t),f=t.includeConstraints?fm(s,t):"";return`${i}${n}${c}${a}${u}${h}${f}`}function bs(s,e=!1,t=cl,r){var m;const{tag:i,semantics:n}=s,a=t.format==="compact";let l=i;const o=[],c=x({},n.attributes);n.id&&(c.id=n.id),n.role&&!c.role&&(c.role=n.role);const u=Object.entries(c).map(([p,g])=>{const d=eo(p),y=p==="href"||p==="src"?al(p,g):g;return{name:p,value:y,priority:d}}).filter(p=>p.name!=="id"&&p.name!=="class"&&il.has(p.name)||nl.has(p.name)&&ol(p.value)?!1:p.priority>0||p.name==="role"||p.name==="id");u.sort((p,g)=>g.priority-p.priority);const h=u.slice(0,t.maxAttributes);h.sort((p,g)=>p.name.localeCompare(g.name));for(const{name:p,value:g}of h){const d=a&&(m=ll[p])!=null?m:p;o.push(`${d}="${ti(g)}"`)}if(t.includeText&&n.text&&!hm(n.text.normalized)){const p=n.text.normalized;if(p.length>0&&p.length<=t.maxTextLength&&!(!e&&r!==void 0&&p===r)){const g=a?"x":"text";o.push(`${g}="${ti(p)}"`)}}let f=o;if(o.length>0&&e&&t.simplifyTarget&&n.id&&(f=o.filter(p=>{var y;const g=p.split("=")[0],d=(y=Qn[g])!=null?y:g;return eo(d)>=60||d==="text"||d==="id"||d==="role"})),n.classes&&n.classes.length>0){const p=Tp(n.classes),g=!!n.id||o.some(d=>{var A;const y=d.split("=")[0],v=(A=Qn[y])!=null?A:y;return v==="href"||v==="data-testid"||v==="text"||v==="role"});if(!(e&&t.simplifyTarget&&g)&&p.length>0){const d=p.sort().slice(0,t.maxClasses);l+=d.map(y=>`.${y}`).join("")}}if(f.length>0&&(l+=`[${f.join(",")}]`),"nthChild"in s&&s.nthChild){const p=!!n.id||n.attributes&&Object.keys(n.attributes).some(um);e&&t.simplifyTarget&&p||(l+=`#${s.nthChild}`)}return l}function fm(s,e){if(!s.constraints||s.constraints.length===0)return"";const t=[];for(const r of s.constraints)switch(r.type){case"uniqueness":t.push("unique=true");break;case"position":r.params&&r.params.strategy&&t.push(`pos=${r.params.strategy}`);break;case"text-proximity":if(r.params&&r.params.reference){const i=ti(String(r.params.reference));t.push(`text="${i}"`)}break}return t.length===0?"":`${e.format==="verbose"?" ":""}{${t.join(",")}}`}function ti(s){return s.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/>/g,"\\>").replace(/:/g,"\\:")}function pm(s,e,t){const r=om(s,e);return r?dm(r,t):null}const gt={maxPathDepth:10,enableSvgFingerprint:!0,confidenceThreshold:0,fallbackToBody:!0};function mm(s){var e,t,r,i;return s===!1?null:s===!0||s===void 0?x({},gt):{maxPathDepth:(e=s.maxPathDepth)!=null?e:gt.maxPathDepth,enableSvgFingerprint:(t=s.enableSvgFingerprint)!=null?t:gt.enableSvgFingerprint,confidenceThreshold:(r=s.confidenceThreshold)!=null?r:gt.confidenceThreshold,fallbackToBody:(i=s.fallbackToBody)!=null?i:gt.fallbackToBody}}function to(s,e,t,r){const i=e.getMeta(s),n=i==null?void 0:i.selector;if(n&&!(r!=null&&r.force))return n;const a=s.nodeType===Node.ELEMENT_NODE?s:Ni(s);if(!a)return n;const l=e.getMeta(a),o=l==null?void 0:l.selector;if(o&&!(r!=null&&r.force))return o;if(!t)return o!=null?o:n;const c={maxPathDepth:t.maxPathDepth,enableSvgFingerprint:t.enableSvgFingerprint,fallbackToBody:t.fallbackToBody};try{const u=pm(a,c);if(u)return l?l.selector=u:i&&(i.selector=u),u}catch(u){}return o!=null?o:n}function ro(s){return"__ln"in s}class gm{constructor(){b(this,"length",0),b(this,"head",null),b(this,"tail",null)}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=(t==null?void 0:t.next)||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&ro(e.previousSibling)){const r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&ro(e.nextSibling)&&e.nextSibling.__ln.previous){const r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;t.next===null&&(this.tail=t),this.length++}removeNode(e){const 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--)}}const so=(s,e)=>`${s}@${e}`,ym=new Set(["id","class","name","role","title","alt","placeholder","for","type"]);function bm(s){const e=s.toLowerCase();return ym.has(e)||e.startsWith("data-")||e.startsWith("aria-")}class wm{constructor(){b(this,"frozen",!1),b(this,"locked",!1),b(this,"texts",[]),b(this,"attributes",[]),b(this,"attributeMap",new WeakMap),b(this,"removes",[]),b(this,"mapRemoves",[]),b(this,"movedMap",{}),b(this,"addedSet",new Set),b(this,"movedSet",new Set),b(this,"droppedSet",new Set),b(this,"removesSubTreeCache",new Set),b(this,"mutationCb"),b(this,"blockClass"),b(this,"blockSelector"),b(this,"maskTextClass"),b(this,"maskTextSelector"),b(this,"excludeAttribute"),b(this,"inlineStylesheet"),b(this,"maskInputOptions"),b(this,"maskTextFn"),b(this,"maskInputFn"),b(this,"keepIframeSrcFn"),b(this,"recordCanvas"),b(this,"inlineImages"),b(this,"slimDOMOptions"),b(this,"dataURLOptions"),b(this,"selectorOptions",null),b(this,"doc"),b(this,"mirror"),b(this,"iframeManager"),b(this,"stylesheetManager"),b(this,"shadowDomManager"),b(this,"canvasManager"),b(this,"processedNodeManager"),b(this,"unattachedDoc"),b(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),b(this,"emit",()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,r=new gm,i=o=>{let c=o,u=At;for(;u===At;)c=c&&c.nextSibling,u=c&&this.mirror.getId(c);return u},n=o=>{const c=T.parentNode(o);if(!c||!rl(o))return;let u=!1;if(o.nodeType===Node.TEXT_NODE){const p=c.tagName;if(p==="TEXTAREA")return;p==="STYLE"&&this.addedSet.has(c)&&(u=!0)}const h=bt(c)?this.mirror.getId(tl(o)):this.mirror.getId(c),f=i(o);if(h===-1||f===-1)return r.addNode(o);const m=Ke(o,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,excludeAttribute:this.excludeAttribute,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:p=>{Qa(p,this.mirror)&&this.iframeManager.addIframe(p),el(p,this.mirror)&&this.stylesheetManager.trackLinkElement(p),ei(o)&&this.shadowDomManager.addShadowRoot(T.shadowRoot(o),this.doc)},onIframeLoad:(p,g)=>{this.iframeManager.attachIframe(p,g),this.shadowDomManager.observeAttachShadow(p)},onStylesheetLoad:(p,g)=>{this.stylesheetManager.attachLinkElement(p,g)},cssCaptured:u,selectorOptions:this.selectorOptions});m&&(e.push({parentId:h,nextId:f,node:m}),t.add(m.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const o of this.movedSet)io(this.removesSubTreeCache,o,this.mirror)&&!this.movedSet.has(T.parentNode(o))||n(o);for(const o of this.addedSet)!no(this.droppedSet,o)&&!io(this.removesSubTreeCache,o,this.mirror)||no(this.movedSet,o)?n(o):this.droppedSet.add(o);let a=null;for(;r.length;){let o=null;if(a){const c=this.mirror.getId(T.parentNode(a.value)),u=i(a.value);c!==-1&&u!==-1&&(o=a)}if(!o){let c=r.tail;for(;c;){const u=c;if(c=c.previous,u){const h=this.mirror.getId(T.parentNode(u.value));if(i(u.value)===-1)continue;if(h!==-1){o=u;break}else{const m=u.value,p=T.parentNode(m);if(p&&p.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const g=T.host(p);if(this.mirror.getId(g)!==-1){o=u;break}}}}}}if(!o){for(;r.head;)r.removeNode(r.head.value);break}a=o.previous,r.removeNode(o.value),n(o.value)}const l={texts:this.texts.map(o=>{const c=o.node,u=T.parentNode(c);return u&&u.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(u),{id:this.mirror.getId(c),value:o.value,selector:to(c,this.mirror,this.selectorOptions)}}).filter(o=>!t.has(o.id)).filter(o=>this.mirror.has(o.id)),attributes:this.attributes.map(o=>{const{attributes:c}=o;if(typeof c.style=="string"){const u=JSON.stringify(o.styleDiff),h=JSON.stringify(o._unchangedStyles);u.length<c.style.length&&(u+h).split("var(").length===c.style.split("var(").length&&(c.style=o.styleDiff)}return{id:this.mirror.getId(o.node),attributes:c,selector:to(o.node,this.mirror,this.selectorOptions,{force:Object.keys(c).some(bm)})}}).filter(o=>!t.has(o.id)).filter(o=>this.mirror.has(o.id)),removes:this.removes,adds:e};!l.texts.length&&!l.attributes.length&&!l.removes.length&&!l.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(l))}),b(this,"genTextAreaValueMutation",e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t));const r=Array.from(T.childNodes(e),i=>T.textContent(i)||"").join("");t.attributes.value=vt({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:Ct(e),value:r,maskInputFn:this.maskInputFn})}),b(this,"processMutation",e=>{if(!gs(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case"characterData":{const t=T.textContent(e.target);!le(e.target,this.blockClass,this.blockSelector,!1)&&t!==e.oldValue&&this.texts.push({value:Ro(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,Ni(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let r=e.attributeName,i=e.target.getAttribute(r);const a=t[r],l=typeof a=="boolean",o=document.contains(t),c=ii(t),u=Cs(r,this.excludeAttribute);if(i===null&&!t.hasAttribute(r)&&e.oldValue!==null&&(a===""||a===null||typeof a=="undefined")){console.debug(`[${ae()}] [rrweb:record/mutation] \u26D4 phantom attribute mutation ignored`,{node:T.describeNode(t),tag:t.tagName,nodeType:t.nodeType,attribute:r,value:i,oldValue:e.oldValue,excludeAttribute:this.excludeAttribute,propValue:a,isBooleanAttr:l,inDOM:o,isVisible:c,isExcludeAttributeName:u});return}if(Cs(r,this.excludeAttribute)){console.debug(`[${ae()}] [rrweb:record/mutation] \u26D4 excluded attribute mutation ignored`,{node:T.describeNode(t),tag:t.tagName,nodeType:t.nodeType,attribute:r,value:i,oldValue:e.oldValue,excludeAttribute:this.excludeAttribute,propValue:a,isBooleanAttr:l,inDOM:o,isVisible:c,isExcludeAttributeName:u});return}if(r==="value"){const m=Ct(t);i=vt({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:m,value:i,maskInputFn:this.maskInputFn})}if(le(e.target,this.blockClass,this.blockSelector,!1)||i===e.oldValue)return;let f=this.attributeMap.get(e.target);if(t.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(i))if(!t.contentDocument)r="rr_src";else return;if(f||(f={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(f),this.attributeMap.set(e.target,f)),r==="type"&&t.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&t.setAttribute("data-rr-is-password","true"),!$o(t.tagName,r))if(f.attributes[r]=Io(this.doc,We(t.tagName),We(r),i),r!=="class"&&(e.oldValue===null||i===""||i!==e.oldValue)&&console.debug(`[${ae()}] [rrweb:record/mutation] \u26A0\uFE0F suspicious attribute mutation`,{reason:[i===e.oldValue?"no change in value":null,i===a?"mirrored in DOM property":null,i===f.attributes[r]?"redundant assignment":null].filter(Boolean).join(", ")||"uncategorized",node:T.describeNode(t),tag:t.tagName,nodeType:t.nodeType,attribute:r,value:i,oldValue:e.oldValue,transformedValue:f.attributes[r],excludeAttribute:this.excludeAttribute,propValue:a,isBooleanAttr:l,inDOM:o,isVisible:c,isExcludeAttributeName:u}),r==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(g){this.unattachedDoc=this.doc}const p=this.unattachedDoc.createElement("span");e.oldValue&&p.setAttribute("style",e.oldValue);for(const g of Array.from(t.style)){const d=t.style.getPropertyValue(g),y=t.style.getPropertyPriority(g);d!==p.style.getPropertyValue(g)||y!==p.style.getPropertyPriority(g)?y===""?f.styleDiff[g]=d:f.styleDiff[g]=[d,y]:f._unchangedStyles[g]=[d,y]}for(const g of Array.from(p.style))t.style.getPropertyValue(g)===""&&(f.styleDiff[g]=!1)}else r==="open"&&t.tagName==="DIALOG"&&(t.matches("dialog:modal")?f.attributes.rr_open_mode="modal":f.attributes.rr_open_mode="non-modal");break}case"childList":{if(le(e.target,this.blockClass,this.blockSelector,!0))return;if(e.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(e.target);return}e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{const r=this.mirror.getId(t),i=bt(e.target)?this.mirror.getId(T.host(e.target)):this.mirror.getId(e.target);le(e.target,this.blockClass,this.blockSelector,!1)||gs(t,this.mirror,this.slimDOMOptions)||!wp(t,this.mirror)||(this.addedSet.has(t)?(ri(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&r===-1||Ka(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[so(r,i)]?ri(this.movedSet,t):(this.removes.push({parentId:i,id:r,isShadow:bt(e.target)&&wt(e.target)?!0:void 0}),Sm(t,this.removesSubTreeCache))),this.mapRemoves.push(t))});break}}}),b(this,"genAdds",(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(gs(e,this.mirror,this.slimDOMOptions))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&r!==-1&&(this.movedMap[so(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);le(e,this.blockClass,this.blockSelector,!1)||(T.childNodes(e).forEach(r=>this.genAdds(r)),ei(e)&&T.childNodes(T.shadowRoot(e)).forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,e)}))}})}init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","excludeAttribute","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","selectorOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}resetBuffers(){this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.mapRemoves=[],this.movedMap={},this.attributes=[],this.texts=[],this.attributeMap=new WeakMap,this.removes=[]}unsetFrozen(){this.frozen=!1,this.canvasManager.unfreeze()}}function ri(s,e){s.delete(e),T.childNodes(e).forEach(t=>ri(s,t))}function Sm(s,e){const t=[s];for(;t.length;){const r=t.pop();e.has(r)||(e.add(r),T.childNodes(r).forEach(i=>t.push(i)))}}function io(s,e,t){return s.size===0?!1:vm(s,e)}function vm(s,e,t){const r=T.parentNode(e);return r?s.has(r):!1}function no(s,e){return s.size===0?!1:ul(s,e)}function ul(s,e){const t=T.parentNode(e);return t?s.has(t)?!0:ul(s,t):!1}let St;function Cm(s){St=s}function xm(){St=void 0}const L=s=>St?(...t)=>{try{return s(...t)}catch(r){if(St&&St(r)===!0)return;throw r}}:s,ge=[];function lt(s){try{if("composedPath"in s){const e=s.composedPath();if(e.length)return e[0]}else if("path"in s&&s.path.length)return s.path[0]}catch(e){}return s&&s.target}function hl(s,e){const t=new wm;ge.push(t),t.init(s);const r=new(Ti())(L(t.processMutations.bind(t)));return r.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),r}function Am({mousemoveCb:s,sampling:e,doc:t,mirror:r}){if(e.mousemove===!1)return()=>{};const i=typeof e.mousemove=="number"?e.mousemove:50,n=typeof e.mousemoveCallback=="number"?e.mousemoveCallback:500;let a=[],l;const o=kt(L(h=>{const f=Date.now()-l;s(a.map(m=>(m.timeOffset-=f,m)),h),a=[],l=null}),n),c=L(kt(L(h=>{const f=lt(h),{clientX:m,clientY:p}=Qs(h)?h.changedTouches[0]:h;l||(l=ae()),a.push({x:m,y:p,id:r.getId(f),timeOffset:ae()-l}),o(typeof DragEvent!="undefined"&&h instanceof DragEvent?D.Drag:h instanceof MouseEvent?D.MouseMove:D.TouchMove)}),i,{trailing:!1})),u=[se("mousemove",c,t),se("touchmove",c,t),se("drag",c,t)];return L(()=>{u.forEach(h=>h())})}function Em({mouseInteractionCb:s,doc:e,mirror:t,blockClass:r,blockSelector:i,sampling:n}){if(n.mouseInteraction===!1)return()=>{console.debug("MouseInteractionObserver: No operation needed")};const a=n.mouseInteraction===!0||n.mouseInteraction===void 0?{}:n.mouseInteraction,l=[];let o=null;const c=u=>h=>{const f=lt(h);if(le(f,r,i,!0))return;let m=null,p=u;if("pointerType"in h){switch(h.pointerType){case"mouse":m=Ie.Mouse;break;case"touch":m=Ie.Touch;break;case"pen":m=Ie.Pen;break}m===Ie.Touch?ce[u]===ce.MouseDown?p="TouchStart":ce[u]===ce.MouseUp&&(p="TouchEnd"):Ie.Pen}else Qs(h)&&(m=Ie.Touch);m!==null?(o=m,(p.startsWith("Touch")&&m===Ie.Touch||p.startsWith("Mouse")&&m===Ie.Mouse)&&(m=null)):ce[u]===ce.Click&&(m=o,o=null);const g=Qs(h)?h.changedTouches[0]:h;if(!g)return;const d=t.getId(f),{clientX:y,clientY:v}=g;L(s)(x({type:ce[p],id:d,x:y,y:v},m!==null&&{pointerType:m}))};return Object.keys(ce).filter(u=>Number.isNaN(Number(u))&&!u.endsWith("_Departed")&&a[u]!==!1).forEach(u=>{let h=We(u);const f=c(u);if(window.PointerEvent)switch(ce[u]){case ce.MouseDown:case ce.MouseUp:h=h.replace("mouse","pointer");break;case ce.TouchStart:case ce.TouchEnd:return}l.push(se(h,f,e))}),L(()=>{l.forEach(u=>u())})}function dl({scrollCb:s,doc:e,mirror:t,blockClass:r,blockSelector:i,sampling:n}){const a=L(kt(L(l=>{const o=lt(l);if(!o||le(o,r,i,!0))return;const c=t.getId(o);if(o===e&&e.defaultView){const u=Ja(e.defaultView);s({id:c,x:u.left,y:u.top})}else s({id:c,x:o.scrollLeft,y:o.scrollTop})}),n.scroll||100));return se("scroll",a,e)}function Im({viewportResizeCb:s},{win:e}){let t=-1,r=-1;const i=L(kt(L(()=>{const n=qa(),a=Xa();(t!==n||r!==a)&&(s({width:Number(a),height:Number(n)}),t=n,r=a)}),200));return se("resize",i,e)}function $m({navigationCb:s,doc:e,sampling:t}){var u;if(t.navigation===!1)return()=>{};const r=e.defaultView;if(!r)return()=>{};let i=r.location.href;const n=[],a=L(h=>{const f=r.location.href;f!==i&&(s({href:f,oldHref:i,navigationType:h}),i=f)}),l=Me(r.history,"pushState",function(h){return function(...f){const m=h.apply(this,f);return a("pushState"),m}});n.push(l);const o=Me(r.history,"replaceState",function(h){return function(...f){const m=h.apply(this,f);return a("replaceState"),m}});if(n.push(o),n.push(se("popstate",()=>a("popstate"),r)),n.push(se("hashchange",()=>a("hashchange"),r)),(typeof t.navigation=="object"&&(u=t.navigation.useNavigationAPI)!=null?u:!0)&&"navigation"in r)try{const h=r.navigation,f=m=>{var p;const g=m;if(g.navigationType==="push"||g.navigationType==="replace"){const d=(p=g.destination)==null?void 0:p.url;d&&d!==i&&(s({href:d,oldHref:i,navigationType:"navigate"}),i=d)}};h.addEventListener("navigate",f),n.push(()=>h.removeEventListener("navigate",f))}catch(h){}return L(()=>{n.forEach(h=>h())})}const vr=["INPUT","TEXTAREA","SELECT"],Lr=new WeakMap,Rm=["Enter","Tab","Escape","ArrowDown","ArrowUp","Delete"],oo=new WeakMap;function Mm({inputCb:s,doc:e,mirror:t,blockClass:r,blockSelector:i,ignoreClass:n,ignoreSelector:a,maskInputOptions:l,maskInputFn:o,sampling:c,userTriggeredOnInput:u,trustSyntheticInput:h}){function f(S){let w=lt(S);const E=S.isTrusted,C=w&&w.tagName;if(w&&C==="OPTION"&&(w=T.parentElement(w)),!w||!C||vr.indexOf(C)<0||le(w,r,i,!0)||w.classList.contains(n)||a&&w.matches(a))return;let $=w.value,N=!1;const _=Ct(w)||"";_==="radio"||_==="checkbox"?N=w.checked:(l[C.toLowerCase()]||l[_])&&($=vt({element:w,maskInputOptions:l,tagName:C,type:_,value:$,maskInputFn:o})),m(w,u?{text:$,isChecked:N,userTriggered:E}:{text:$,isChecked:N});const J=w.name;_==="radio"&&J&&N&&e.querySelectorAll(`input[type="radio"][name="${J}"]`).forEach(F=>{if(F!==w){const j=F.value;m(F,u?{text:j,isChecked:!N,userTriggered:!1}:{text:j,isChecked:!N})}})}function m(S,w){const E=Lr.get(S),C=S;if(h){const $=!w.userTriggered&&C.value===""&&!w.isChecked&&!E,N=C.tagName==="SELECT"&&!w.userTriggered&&!E&&C.selectedIndex===0;if($||N){console.debug(`[${ae()}] [rrweb:record/observer] phantom input ignored (trust mode)`,{node:T.describeNode(C),tag:C.tagName,value:C.value,isInitialEmpty:$,isSelectDefaultSelection:N});return}}else{const $=C.hasAttribute("placeholder"),N=C.value==="",_=typeof C.defaultValue=="string"?C.defaultValue==="":!0,J=!w.userTriggered,F=!E||E.text==="",j=$&&N&&_&&F&&J&&!w.isChecked&&C.type!=="hidden"&&vr.includes(C.tagName),K=C.tagName==="INPUT"&&C.type==="text"&&!w.userTriggered&&w.text===C.defaultValue&&!E&&C.hasAttribute("placeholder"),I=!w.userTriggered&&C.value===C.defaultValue&&!E&&C.hasAttribute("placeholder")&&!w.isChecked&&C.type!=="hidden"&&vr.includes(C.tagName),Q=C.type==="checkbox"&&!w.userTriggered&&!w.isChecked&&!E,z=C.type==="radio"&&!w.userTriggered&&!w.isChecked&&!E;if(j||K||I||Q||z){console.debug(`[${ae()}] [rrweb:record/observer] \u26D4 phantom input ignored`,{node:T.describeNode(C),tag:C.tagName,nodeType:C.nodeType,attribute:C.attributes,value:C.value,isLikelyPhantom:j,isRenderDrivenTextInput:K,isValueFromDefault:I,isPhantomCheckbox:Q,isPhantomRadio:z});return}}if(!E||E.text!==w.text||E.isChecked!==w.isChecked){Lr.set(S,w);const $=t.getId(S);L(s)(oe(x({},w),{id:$}))}}const g=(c.input==="last"?["change"]:["input","change"]).map(S=>se(S,L(f),e)),d=S=>{const w=lt(S);if(!w||!w.tagName)return;if(c.input==="all"){f(S);return}const E=w.tagName,C=S.key,$=Rm.includes(C),N=E==="TEXTAREA",_=e.activeElement===w,J=w.value,F=oo.get(w);if(oo.set(w,J),!_){f(S);return}if($){if(!N){f(S);return}let j=F!=null?F:"",K=0;const I=2,Q=()=>{const z=w.value,W=e.activeElement===w,he=z!==j;if(!W){f(S);return}if(he)K=0,j=z;else if(K++,K>=I){f(S);return}requestAnimationFrame(Q)};requestAnimationFrame(Q);return}};g.push(se("keydown",L(d),e));const y=e.defaultView;if(!y)return()=>{g.forEach(S=>S())};const v=y.Object.getOwnPropertyDescriptor(y.HTMLInputElement.prototype,"value"),A=[[y.HTMLInputElement.prototype,"value"],[y.HTMLInputElement.prototype,"checked"],[y.HTMLSelectElement.prototype,"value"],[y.HTMLTextAreaElement.prototype,"value"],[y.HTMLSelectElement.prototype,"selectedIndex"],[y.HTMLOptionElement.prototype,"selected"]];return v&&v.set&&g.push(...A.map(S=>Zr(S[0],S[1],{set(){L(f)({target:this,isTrusted:!1})}},!1,y))),L(()=>{g.forEach(S=>S())})}function Pr(s){const e=[];function t(r,i){if(fr("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||fr("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||fr("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||fr("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const a=Array.from(r.parentRule.cssRules).indexOf(r);i.unshift(a)}else if(r.parentStyleSheet){const a=Array.from(r.parentStyleSheet.cssRules).indexOf(r);i.unshift(a)}return i}return t(s,e)}function De(s,e,t){let r,i;return s?(s.ownerNode?r=e.getId(s.ownerNode):i=t.getId(s),{styleId:i,id:r}):{}}function Om({styleSheetRuleCb:s,mirror:e,stylesheetManager:t},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:L((u,h,f)=>{const[m,p]=f,{id:g,styleId:d}=De(h,e,t.styleMirror);return(g&&g!==-1||d&&d!==-1)&&s({id:g,styleId:d,adds:[{rule:m,index:p}]}),u.apply(h,f)})}),r.CSSStyleSheet.prototype.addRule=function(u,h,f=this.cssRules.length){const m=`${u} { ${h} }`;return r.CSSStyleSheet.prototype.insertRule.apply(this,[m,f])};const n=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(n,{apply:L((u,h,f)=>{const[m]=f,{id:p,styleId:g}=De(h,e,t.styleMirror);return(p&&p!==-1||g&&g!==-1)&&s({id:p,styleId:g,removes:[{index:m}]}),u.apply(h,f)})}),r.CSSStyleSheet.prototype.removeRule=function(u){return r.CSSStyleSheet.prototype.deleteRule.apply(this,[u])};let a;r.CSSStyleSheet.prototype.replace&&(a=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:L((u,h,f)=>{const[m]=f,{id:p,styleId:g}=De(h,e,t.styleMirror);return(p&&p!==-1||g&&g!==-1)&&s({id:p,styleId:g,replace:m}),u.apply(h,f)})}));let l;r.CSSStyleSheet.prototype.replaceSync&&(l=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:L((u,h,f)=>{const[m]=f,{id:p,styleId:g}=De(h,e,t.styleMirror);return(p&&p!==-1||g&&g!==-1)&&s({id:p,styleId:g,replaceSync:m}),u.apply(h,f)})}));const o={};pr("CSSGroupingRule")?o.CSSGroupingRule=r.CSSGroupingRule:(pr("CSSMediaRule")&&(o.CSSMediaRule=r.CSSMediaRule),pr("CSSConditionRule")&&(o.CSSConditionRule=r.CSSConditionRule),pr("CSSSupportsRule")&&(o.CSSSupportsRule=r.CSSSupportsRule));const c={};return Object.entries(o).forEach(([u,h])=>{c[u]={insertRule:h.prototype.insertRule,deleteRule:h.prototype.deleteRule},h.prototype.insertRule=new Proxy(c[u].insertRule,{apply:L((f,m,p)=>{const[g,d]=p,{id:y,styleId:v}=De(m.parentStyleSheet,e,t.styleMirror);return(y&&y!==-1||v&&v!==-1)&&s({id:y,styleId:v,adds:[{rule:g,index:[...Pr(m),d||0]}]}),f.apply(m,p)})}),h.prototype.deleteRule=new Proxy(c[u].deleteRule,{apply:L((f,m,p)=>{const[g]=p,{id:d,styleId:y}=De(m.parentStyleSheet,e,t.styleMirror);return(d&&d!==-1||y&&y!==-1)&&s({id:d,styleId:y,removes:[{index:[...Pr(m),g]}]}),f.apply(m,p)})})}),L(()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=n,a&&(r.CSSStyleSheet.prototype.replace=a),l&&(r.CSSStyleSheet.prototype.replaceSync=l),Object.entries(o).forEach(([u,h])=>{h.prototype.insertRule=c[u].insertRule,h.prototype.deleteRule=c[u].deleteRule})})}function fl({mirror:s,stylesheetManager:e},t){var r,i,n;let a=null;t.nodeName==="#document"?a=s.getId(t):a=s.getId(T.host(t));const l=t.nodeName==="#document"?(r=t.defaultView)==null?void 0:r.Document:(n=(i=t.ownerDocument)==null?void 0:i.defaultView)==null?void 0:n.ShadowRoot,o=l!=null&&l.prototype?Object.getOwnPropertyDescriptor(l==null?void 0:l.prototype,"adoptedStyleSheets"):void 0;return a===null||a===-1||!l||!o?()=>{}:(Object.defineProperty(t,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){var c;return(c=o.get)==null?void 0:c.call(this)},set(c){var u;const h=(u=o.set)==null?void 0:u.call(this,c);if(a!==null&&a!==-1)try{e.adoptStyleSheets(c,a)}catch(f){}return h}}),L(()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))}function Tm({styleDeclarationCb:s,mirror:e,ignoreCSSAttributes:t,stylesheetManager:r},{win:i}){const n=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(n,{apply:L((l,o,c)=>{var u;const[h,f,m]=c;if(t.has(h))return n.apply(o,[h,f,m]);const{id:p,styleId:g}=De((u=o.parentRule)==null?void 0:u.parentStyleSheet,e,r.styleMirror);return(p&&p!==-1||g&&g!==-1)&&s({id:p,styleId:g,set:{property:h,value:f,priority:m},index:Pr(o.parentRule)}),l.apply(o,c)})});const a=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:L((l,o,c)=>{var u;const[h]=c;if(t.has(h))return a.apply(o,[h]);const{id:f,styleId:m}=De((u=o.parentRule)==null?void 0:u.parentStyleSheet,e,r.styleMirror);return(f&&f!==-1||m&&m!==-1)&&s({id:f,styleId:m,remove:{property:h},index:Pr(o.parentRule)}),l.apply(o,c)})}),L(()=>{i.CSSStyleDeclaration.prototype.setProperty=n,i.CSSStyleDeclaration.prototype.removeProperty=a})}function Nm({mediaInteractionCb:s,blockClass:e,blockSelector:t,mirror:r,sampling:i,doc:n}){const a=L(o=>kt(L(c=>{const u=lt(c);if(!u||le(u,e,t,!0))return;const{currentTime:h,volume:f,muted:m,playbackRate:p,loop:g}=u;s({type:o,id:r.getId(u),currentTime:h,volume:f,muted:m,playbackRate:p,loop:g})}),i.media||500)),l=[se("play",a(qe.Play),n),se("pause",a(qe.Pause),n),se("seeked",a(qe.Seeked),n),se("volumechange",a(qe.VolumeChange),n),se("ratechange",a(qe.RateChange),n)];return L(()=>{l.forEach(o=>o())})}function km({fontCb:s,doc:e}){const t=e.defaultView;if(!t)return()=>{};const r=[],i=new WeakMap,n=t.FontFace;t.FontFace=function(o,c,u){const h=new n(o,c,u);return i.set(h,{family:o,buffer:typeof c!="string",descriptors:u,fontSource:typeof c=="string"?c:JSON.stringify(Array.from(ArrayBuffer.isView(c)?new Uint8Array(c.buffer,c.byteOffset,c.byteLength):new Uint8Array(c)))}),h};const a=Me(e.fonts,"add",function(l){return function(o){return setTimeout(L(()=>{const c=i.get(o);c&&(s(c),i.delete(o))}),0),l.apply(this,[o])}});return r.push(()=>{t.FontFace=n}),r.push(a),L(()=>{r.forEach(l=>l())})}function Dm(s){const{doc:e,mirror:t,blockClass:r,blockSelector:i,selectionCb:n}=s;let a=!0;const l=L(()=>{const o=e.getSelection();if(!o||a&&(o!=null&&o.isCollapsed))return;a=o.isCollapsed||!1;const c=[],u=o.rangeCount||0;for(let h=0;h<u;h++){const f=o.getRangeAt(h),{startContainer:m,startOffset:p,endContainer:g,endOffset:d}=f;le(m,r,i,!0)||le(g,r,i,!0)||c.push({start:t.getId(m),startOffset:p,end:t.getId(g),endOffset:d})}n({ranges:c})});return l(),se("selectionchange",l)}function Lm({doc:s,customElementCb:e}){const t=s.defaultView;return!t||!t.customElements?()=>{}:Me(t.customElements,"define",function(i){return function(n,a,l){try{e({define:{name:n}})}catch(o){console.warn(`Custom element callback failed for ${n}`)}return i.apply(this,[n,a,l])}})}function Pm(s,e){const{mutationCb:t,mousemoveCb:r,mouseInteractionCb:i,scrollCb:n,viewportResizeCb:a,navigationCb:l,inputCb:o,mediaInteractionCb:c,styleSheetRuleCb:u,styleDeclarationCb:h,canvasMutationCb:f,fontCb:m,selectionCb:p,customElementCb:g}=s;s.mutationCb=(...d)=>{e.mutation&&e.mutation(...d),t(...d)},s.mousemoveCb=(...d)=>{e.mousemove&&e.mousemove(...d),r(...d)},s.mouseInteractionCb=(...d)=>{e.mouseInteraction&&e.mouseInteraction(...d),i(...d)},s.scrollCb=(...d)=>{e.scroll&&e.scroll(...d),n(...d)},s.viewportResizeCb=(...d)=>{e.viewportResize&&e.viewportResize(...d),a(...d)},s.navigationCb=(...d)=>{e.navigation&&e.navigation(...d),l(...d)},s.inputCb=(...d)=>{e.input&&e.input(...d),o(...d)},s.mediaInteractionCb=(...d)=>{e.mediaInteaction&&e.mediaInteaction(...d),c(...d)},s.styleSheetRuleCb=(...d)=>{e.styleSheetRule&&e.styleSheetRule(...d),u(...d)},s.styleDeclarationCb=(...d)=>{e.styleDeclaration&&e.styleDeclaration(...d),h(...d)},s.canvasMutationCb=(...d)=>{e.canvasMutation&&e.canvasMutation(...d),f(...d)},s.fontCb=(...d)=>{e.font&&e.font(...d),m(...d)},s.selectionCb=(...d)=>{e.selection&&e.selection(...d),p(...d)},s.customElementCb=(...d)=>{e.customElement&&e.customElement(...d),g(...d)}}function _m(s,e={}){const t=s.doc.defaultView;if(!t)return()=>{};Pm(s,e);let r;s.recordDOM&&(r=hl(s,s.doc));const i=Am(s),n=Em(s),a=dl(s),l=Im(s,{win:t}),o=$m(s),c=Mm(s),u=Nm(s);let h=()=>{},f=()=>{},m=()=>{},p=()=>{};s.recordDOM&&(h=Om(s,{win:t}),f=fl(s,s.doc),m=Tm(s,{win:t}),s.collectFonts&&(p=km(s)));const g=Dm(s),d=Lm(s),y=[];for(const v of s.plugins)y.push(v.observer(v.callback,t,v.options));return L(()=>{var v;ge.forEach(A=>A.reset()),(v=s.visibilityManager)==null||v.reset(),r==null||r.disconnect(),i(),n(),a(),l(),o(),c(),u(),h(),f(),m(),p(),g(),d(),y.forEach(A=>A())})}function fr(s){return typeof window[s]!="undefined"}function pr(s){return!!(typeof window[s]!="undefined"&&window[s].prototype&&"insertRule"in window[s].prototype&&"deleteRule"in window[s].prototype)}class ao{constructor(e){b(this,"iframeIdToRemoteIdMap",new WeakMap),b(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,t,r,i){const n=r||this.getIdToRemoteIdMap(e),a=i||this.getRemoteIdToIdMap(e);let l=n.get(t);return l||(l=this.generateIdFn(),n.set(t,l),a.set(l,t)),l}getIds(e,t){const r=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(n=>this.getId(e,n,r,i))}getRemoteId(e,t,r){const i=r||this.getRemoteIdToIdMap(e);if(typeof t!="number")return t;const n=i.get(t);return n||-1}getRemoteIds(e,t){const r=this.getRemoteIdToIdMap(e);return t.map(i=>this.getRemoteId(e,i,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class zm{constructor(e){b(this,"iframes",new WeakMap),b(this,"crossOriginIframeMap",new WeakMap),b(this,"crossOriginIframeMirror",new ao(Eo)),b(this,"crossOriginIframeStyleMirror"),b(this,"crossOriginIframeRootIdMap",new WeakMap),b(this,"mirror"),b(this,"mutationCb"),b(this,"wrappedEmit"),b(this,"loadListener"),b(this,"stylesheetManager"),b(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new ao(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var r,i;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((r=e.contentWindow)==null||r.addEventListener("message",this.handleMessage.bind(this))),(i=this.loadListener)==null||i.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e;if(t.data.type!=="rrweb"||!e.source)return;const i=this.crossOriginIframeMap.get(e.source);if(!i)return;const n=this.transformCrossOriginEvent(i,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}transformCrossOriginEvent(e,t){var r;switch(t.type){case P.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:P.IncrementalSnapshot,data:{source:D.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case P.Meta:case P.Load:case P.DomContentLoaded:return!1;case P.Plugin:return t;case P.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case P.IncrementalSnapshot:switch(t.data.source){case D.Mutation:return t.data.adds.forEach(i=>{this.replaceIds(i,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(i.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(i.node,n)}),t.data.removes.forEach(i=>{this.replaceIds(i,e,["parentId","id"])}),t.data.attributes.forEach(i=>{this.replaceIds(i,e,["id"])}),t.data.texts.forEach(i=>{this.replaceIds(i,e,["id"])}),t;case D.Drag:case D.TouchMove:case D.MouseMove:return t.data.positions.forEach(i=>{this.replaceIds(i,e,["id"])}),t;case D.ViewportResize:return!1;case D.MediaInteraction:case D.MouseInteraction:case D.Scroll:case D.CanvasMutation:case D.Input:return this.replaceIds(t.data,e,["id"]),t;case D.StyleSheetRule:case D.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case D.Font:return t;case D.Selection:return t.data.ranges.forEach(i=>{this.replaceIds(i,e,["start","end"])}),t;case D.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),(r=t.data.styles)==null||r.forEach(i=>{this.replaceStyleIds(i,e,["styleId"])}),t}}return!1}replace(e,t,r,i){for(const n of i)!Array.isArray(t[n])&&typeof t[n]!="number"||(Array.isArray(t[n])?t[n]=e.getIds(r,t[n]):t[n]=e.getId(r,t[n]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(r=>{this.replaceIdOnNode(r,t)})}patchRootIdOnNode(e,t){e.type!==sl.Document&&!e.rootId&&(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(r=>{this.patchRootIdOnNode(r,t)})}}class Fm{constructor(e){b(this,"shadowDoms",new WeakSet),b(this,"mutationCb"),b(this,"scrollCb"),b(this,"bypassOptions"),b(this,"mirror"),b(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!wt(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);const r=hl(oe(x({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(dl(oe(x({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(T.host(e))),this.restoreHandlers.push(fl({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){!e.contentWindow||!e.contentDocument||this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const r=this;this.restoreHandlers.push(Me(e.prototype,"attachShadow",function(i){return function(n){const a=i.call(this,n),l=T.shadowRoot(this);return l&&rl(this)&&r.addShadowRoot(l,t),a}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}var Qe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Bm=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var mr=0;mr<Qe.length;mr++)Bm[Qe.charCodeAt(mr)]=mr;var Wm=function(s){var e=new Uint8Array(s),t,r=e.length,i="";for(t=0;t<r;t+=3)i+=Qe[e[t]>>2],i+=Qe[(e[t]&3)<<4|e[t+1]>>4],i+=Qe[(e[t+1]&15)<<2|e[t+2]>>6],i+=Qe[e[t+2]&63];return r%3===2?i=i.substring(0,i.length-1)+"=":r%3===1&&(i=i.substring(0,i.length-2)+"=="),i};const lo=new Map;function Hm(s,e){let t=lo.get(s);return t||(t=new Map,lo.set(s,t)),t.has(e)||t.set(e,[]),t.get(e)}const pl=(s,e,t)=>{if(!s||!(gl(s,e)||typeof s=="object"))return;const r=s.constructor.name,i=Hm(t,r);let n=i.indexOf(s);return n===-1&&(n=i.length,i.push(s)),n};function Cr(s,e,t){if(s instanceof Array)return s.map(r=>Cr(r,e,t));if(s===null)return s;if(s instanceof Float32Array||s instanceof Float64Array||s instanceof Int32Array||s instanceof Uint32Array||s instanceof Uint8Array||s instanceof Uint16Array||s instanceof Int16Array||s instanceof Int8Array||s instanceof Uint8ClampedArray)return{rr_type:s.constructor.name,args:[Object.values(s)]};if(s instanceof ArrayBuffer){const r=s.constructor.name,i=Wm(s);return{rr_type:r,base64:i}}else{if(s instanceof DataView)return{rr_type:s.constructor.name,args:[Cr(s.buffer,e,t),s.byteOffset,s.byteLength]};if(s instanceof HTMLImageElement){const r=s.constructor.name,{src:i}=s;return{rr_type:r,src:i}}else if(s instanceof HTMLCanvasElement){const r="HTMLImageElement",i=s.toDataURL();return{rr_type:r,src:i}}else{if(s instanceof ImageData)return{rr_type:s.constructor.name,args:[Cr(s.data,e,t),s.width,s.height]};if(gl(s,e)||typeof s=="object"){const r=s.constructor.name,i=pl(s,e,t);return{rr_type:r,index:i}}}}return s}const ml=(s,e,t)=>s.map(r=>Cr(r,e,t)),gl=(s,e)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(i=>typeof e[i]=="function").find(i=>s instanceof e[i]);function Um(s,e,t,r){const i=[],n=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype);for(const a of n)try{if(typeof e.CanvasRenderingContext2D.prototype[a]!="function")continue;const l=Me(e.CanvasRenderingContext2D.prototype,a,function(o){return function(...c){return le(this.canvas,t,r,!0)||setTimeout(()=>{const u=ml(c,e,this);s(this.canvas,{type:at["2D"],property:a,args:u})},0),o.apply(this,c)}});i.push(l)}catch(l){const o=Zr(e.CanvasRenderingContext2D.prototype,a,{set(c){s(this.canvas,{type:at["2D"],property:a,args:[c],setter:!0})}});i.push(o)}return()=>{i.forEach(a=>a())}}function Vm(s){return s==="experimental-webgl"?"webgl":s}function co(s,e,t,r){const i=[];try{const n=Me(s.HTMLCanvasElement.prototype,"getContext",function(a){return function(l,...o){if(!le(this,e,t,!0)){const c=Vm(l);if("__context"in this||(this.__context=c),r&&["webgl","webgl2"].includes(c))if(o[0]&&typeof o[0]=="object"){const u=o[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else o.splice(0,1,{preserveDrawingBuffer:!0})}return a.apply(this,[l,...o])}});i.push(n)}catch(n){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach(n=>n())}}function uo(s,e,t,r,i,n){const a=[],l=Object.getOwnPropertyNames(s);for(const o of l)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(o))try{if(typeof s[o]!="function")continue;const c=Me(s,o,function(u){return function(...h){const f=u.apply(this,h);if(pl(f,n,this),"tagName"in this.canvas&&!le(this.canvas,r,i,!0)){const m=ml(h,n,this),p={type:e,property:o,args:m};t(this.canvas,p)}return f}});a.push(c)}catch(c){const u=Zr(s,o,{set(h){t(this.canvas,{type:e,property:o,args:[h],setter:!0})}});a.push(u)}return a}function jm(s,e,t,r){const i=[];return i.push(...uo(e.WebGLRenderingContext.prototype,at.WebGL,s,t,r,e)),typeof e.WebGL2RenderingContext!="undefined"&&i.push(...uo(e.WebGL2RenderingContext.prototype,at.WebGL2,s,t,r,e)),()=>{i.forEach(n=>n())}}const yl="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Gm=s=>Uint8Array.from(atob(s),e=>e.charCodeAt(0)),ho=typeof self!="undefined"&&self.Blob&&new Blob([Gm(yl)],{type:"text/javascript;charset=utf-8"});function Ym(s){let e;try{if(e=ho&&(self.URL||self.webkitURL).createObjectURL(ho),!e)throw"";const t=new Worker(e,{name:s==null?void 0:s.name});return t.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(e)}),t}catch(t){return new Worker("data:text/javascript;base64,"+yl,{name:s==null?void 0:s.name})}finally{e&&(self.URL||self.webkitURL).revokeObjectURL(e)}}class Zm{constructor(e){b(this,"pendingCanvasMutations",new Map),b(this,"rafStamps",{latestId:0,invokeId:null}),b(this,"mirror"),b(this,"mutationCb"),b(this,"resetObservers"),b(this,"frozen",!1),b(this,"locked",!1),b(this,"processMutation",(o,c)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(o)||this.pendingCanvasMutations.set(o,[]),this.pendingCanvasMutations.get(o).push(c)});const{sampling:t="all",win:r,blockClass:i,blockSelector:n,recordCanvas:a,dataURLOptions:l}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,a&&t==="all"&&this.initCanvasMutationObserver(r,i,n),a&&typeof t=="number"&&this.initCanvasFPSObserver(t,r,i,n,{dataURLOptions:l})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(e,t,r,i,n){const a=co(t,r,i,!0),l=new Map,o=new Ym;o.onmessage=p=>{const{id:g}=p.data;if(l.set(g,!1),!("base64"in p.data))return;const{base64:d,type:y,width:v,height:A}=p.data;this.mutationCb({id:g,type:at["2D"],commands:[{property:"clearRect",args:[0,0,v,A]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:d}],type:y}]},0,0]}]})};const c=1e3/e;let u=0,h;const f=()=>{const p=[];return t.document.querySelectorAll("canvas").forEach(g=>{le(g,r,i,!0)||p.push(g)}),p},m=p=>{if(u&&p-u<c){h=requestAnimationFrame(m);return}u=p,f().forEach(async g=>{var d;const y=this.mirror.getId(g);if(l.get(y)||g.width===0||g.height===0)return;if(l.set(y,!0),["webgl","webgl2"].includes(g.__context)){const A=g.getContext(g.__context);((d=A==null?void 0:A.getContextAttributes())==null?void 0:d.preserveDrawingBuffer)===!1&&A.clear(A.COLOR_BUFFER_BIT)}const v=await createImageBitmap(g);o.postMessage({id:y,bitmap:v,width:g.width,height:g.height,dataURLOptions:n.dataURLOptions},[v])}),h=requestAnimationFrame(m)};h=requestAnimationFrame(m),this.resetObservers=()=>{a(),cancelAnimationFrame(h)}}initCanvasMutationObserver(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const i=co(e,t,r,!1),n=Um(this.processMutation.bind(this),e,t,r),a=jm(this.processMutation.bind(this),e,t,r);this.resetObservers=()=>{i(),n(),a()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{const r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(e);if(!r||t===-1)return;const i=r.map(a=>{const c=a,{type:l}=c;return Ye(c,["type"])}),{type:n}=r[0];this.mutationCb({id:t,type:n,commands:i}),this.pendingCanvasMutations.delete(e)}}function fo(s,e,t){var u,h,f,m,p,g;const r=(u=t==null?void 0:t.root)!=null?u:null,i=(h=t==null?void 0:t.threshold)!=null?h:.5,n=(f=t==null?void 0:t.sensitivity)!=null?f:.05,a=Jm((m=t==null?void 0:t.rootMargin)!=null?m:"0px"),l=new Map,o=qm(r),c=Xm(o,a);for(const d of s){const y=d.getBoundingClientRect();let v=eg(),A=0;y.width>0&&y.height>0&&(v=Km(y,c),A=Qm(y,v),A=Math.round(A*100)/100);const S=tg(d),w=(p=e.get(d))!=null?p:null,E=(g=w==null?void 0:w.intersectionRatio)!=null?g:0,C=A,$=(w==null?void 0:w.isStyleVisible)&&E>i,N=S&&C>i;!w||$!==N||$!==N&&Math.abs(C-E)>n?l.set(d,{target:d,isVisible:N,isStyleVisible:S,intersectionRatio:C,intersectionRect:v,oldValue:w}):l.set(d,w)}return l}function Jm(s){const e=s.trim().split(/\s+/),t=(r,i)=>r.endsWith("%")?parseFloat(r)/100*i:parseFloat(r)||0;return function(r){const i=t(e[0]||"0px",r.height),n=t(e[1]||e[0]||"0px",r.width),a=t(e[2]||e[0]||"0px",r.height),l=t(e[3]||e[1]||e[0]||"0px",r.width);return{top:i,right:n,bottom:a,left:l,width:0,height:0}}}function qm(s){return s?s.getBoundingClientRect():new DOMRect(0,0,window.innerWidth,window.innerHeight)}function Xm(s,e){const t=e(s);return new DOMRect(s.left-t.left,s.top-t.top,s.width+t.left+t.right,s.height+t.top+t.bottom)}function Km(s,e){const t=Math.max(s.top,e.top),r=Math.max(s.left,e.left),i=Math.min(s.bottom,e.bottom),n=Math.min(s.right,e.right),a=Math.max(0,n-r),l=Math.max(0,i-t);return{top:t,left:r,bottom:i,right:n,width:a,height:l}}function Qm(s,e){const t=s.width*s.height,r=e.width*e.height;return t>0?r/t:0}function eg(){return{top:0,left:0,right:0,bottom:0,width:0,height:0}}function tg(s){const e=getComputedStyle(s);return e&&e.display!=="none"&&e.visibility!=="hidden"&&parseFloat(e.opacity||"1")>0}class rg{constructor(e){var c,u,h,f,m,p;b(this,"frozen",!1),b(this,"locked",!1),b(this,"pending",new Map),b(this,"mirror"),b(this,"mutationCb"),b(this,"rafId",null),b(this,"intervalId",null),b(this,"rafThrottle"),b(this,"lastFlushTime",0),b(this,"elements",new Set),b(this,"previousState",new Map),b(this,"root",null),b(this,"threshold"),b(this,"sensitivity"),b(this,"rootMargin"),b(this,"hasInitialized",!1),b(this,"mode","none"),b(this,"debounce",50),b(this,"throttle",100),b(this,"buffer",new Map),b(this,"debounceTimer",null),b(this,"lastThrottleTime",0),b(this,"disabled",!1),b(this,"notifyActivity");const{doc:t,mirror:r,sampling:i,mutationCb:n,notifyActivity:a}=e;if(this.mirror=r,this.mutationCb=n,this.notifyActivity=a,this.rootMargin="0px",i===!1){this.disabled=!0;return}const l=typeof i=="object"&&i!==null?i:{};this.mode=(c=l==null?void 0:l.mode)!=null?c:"none",this.debounce=Number((u=l==null?void 0:l.debounce)!=null?u:100),this.throttle=Number((h=l==null?void 0:l.throttle)!=null?h:100),this.threshold=Number((f=l==null?void 0:l.threshold)!=null?f:.5),this.sensitivity=Number((m=l==null?void 0:l.sensitivity)!=null?m:.05),this.rafThrottle=Number((p=l==null?void 0:l.rafThrottle)!=null?p:50),t.querySelectorAll("*").forEach(g=>this.observe(g)),new MutationObserver(g=>{g.forEach(d=>{d.addedNodes.forEach(y=>{y.nodeType===Node.ELEMENT_NODE&&(this.observe(y),y.querySelectorAll("*").forEach(v=>this.observe(v)))}),d.removedNodes.forEach(y=>{y.nodeType===Node.ELEMENT_NODE&&this.unobserve(y)})})}).observe(t.body,{childList:!0,subtree:!0}),this.startPendingFlushLoop()}startPendingFlushLoop(){if(!this.disabled)if(typeof requestAnimationFrame=="function"){const e=t=>{t-this.lastFlushTime>=this.rafThrottle&&(this.lastFlushTime=t,this.flushPendingVisibilityMutations()),this.rafId=requestAnimationFrame(e)};this.rafId=requestAnimationFrame(e)}else{const e=()=>{const t=performance.now();t-this.lastFlushTime>=this.rafThrottle&&(this.lastFlushTime=t,this.flushPendingVisibilityMutations())};this.intervalId=setInterval(e,this.rafThrottle)}}flushPendingVisibilityMutations(){if(this.disabled||this.frozen||this.locked||this.elements.size===0)return;const e=fo(this.elements,this.previousState,{root:this.root,threshold:this.threshold,sensitivity:this.sensitivity,rootMargin:this.rootMargin});for(const[t,r]of e.entries()){const i=this.previousState.get(t);if(!i||i.isVisible!==r.isVisible||Math.abs(i.intersectionRatio-r.intersectionRatio)>this.sensitivity){const a=this.mirror.getId(t);a!==-1&&this.buffer.set(t,{id:a,isVisible:r.isVisible,ratio:r.intersectionRatio}),this.previousState.set(t,r)}}if(this.previousState=e,!this.hasInitialized){this.hasInitialized=!0,this.buffer.clear();return}this.scheduleEmit()}scheduleEmit(){if(this.mode==="debounce")clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>this.flushBuffer(),this.debounce);else if(this.mode==="throttle"){const e=performance.now();e-this.lastThrottleTime>=this.throttle&&(this.lastThrottleTime=e,this.flushBuffer())}else this.flushBuffer()}flushBuffer(){var e;if(this.frozen||this.locked||this.buffer.size===0)return;const t=Array.from(this.buffer.values()),r=t.length;this.buffer.clear(),this.mutationCb({mutations:t}),(e=this.notifyActivity)==null||e.call(this,r)}observe(e){this.disabled||this.elements.add(e)}unobserve(e){this.disabled||(this.elements.delete(e),this.previousState.delete(e),this.pending.delete(e))}freeze(){this.frozen=!0,this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=null)}unfreeze(){this.frozen=!1,this.flushPendingVisibilityMutations()}lock(){this.locked=!0,this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=null)}unlock(){this.locked=!1,this.buffer.clear(),this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=null),!this.disabled&&this.elements.size>0&&(this.previousState=fo(this.elements,new Map,{root:this.root,threshold:this.threshold,sensitivity:this.sensitivity,rootMargin:this.rootMargin}))}unsetFrozen(){this.frozen=!1}reset(){this.elements.clear(),this.previousState.clear(),this.pending.clear(),this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=null),this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)}}const sg=150,ig=5e3,ng=100;class og{constructor(e){var n,a,l;b(this,"frozen",!1),b(this,"locked",!1),b(this,"disabled",!1),b(this,"settleTimeout"),b(this,"maxWait"),b(this,"debounceMs"),b(this,"settlingObserver",null),b(this,"debounceTimer",null),b(this,"settleCheckTimer",null),b(this,"maxWaitTimer",null),b(this,"lastMutationTime",0),b(this,"pendingNavigation",null),b(this,"doc"),b(this,"onSnapshot");const{doc:t,config:r,onSnapshot:i}=e;this.doc=t,this.onSnapshot=L(i),this.settleTimeout=(n=r.settleTimeout)!=null?n:sg,this.maxWait=(a=r.maxWait)!=null?a:ig,this.debounceMs=(l=r.debounce)!=null?l:ng}handleNavigation(e){this.disabled||this.locked||(this.pendingNavigation?(this.cancelTimers(),this.disconnectSettlingObserver(),this.pendingNavigation=null,this.onSnapshot(!0)):(this.cancelTimers(),this.disconnectSettlingObserver()),this.pendingNavigation=e,!this.frozen&&this.startDebounce())}cancelPending(){this.cancelTimers(),this.disconnectSettlingObserver(),this.pendingNavigation=null}freeze(){this.frozen=!0,this.cancelTimers(),this.disconnectSettlingObserver()}unfreeze(){this.frozen=!1,this.pendingNavigation&&!this.locked&&!this.disabled&&this.startDebounce()}lock(){this.locked=!0,this.cancelTimers(),this.disconnectSettlingObserver()}unlock(){this.locked=!1,this.pendingNavigation=null}unsetFrozen(){this.frozen=!1}reset(){this.cancelTimers(),this.disconnectSettlingObserver(),this.pendingNavigation=null,this.frozen=!1,this.locked=!1}destroy(){const e=this.pendingNavigation!==null;this.reset(),this.disabled=!0,e&&this.onSnapshot(!0)}startDebounce(){this.debounceTimer=setTimeout(()=>{this.debounceTimer=null,this.startDOMSettling()},this.debounceMs)}startDOMSettling(){if(this.frozen||this.locked||this.disabled)return;this.lastMutationTime=performance.now();const e=Ti();this.settlingObserver=new e(()=>{this.lastMutationTime=performance.now(),this.settleCheckTimer!==null&&clearTimeout(this.settleCheckTimer),this.settleCheckTimer=setTimeout(()=>this.checkSettled(),this.settleTimeout)}),this.settlingObserver.observe(this.doc,{childList:!0,subtree:!0}),this.settleCheckTimer=setTimeout(()=>this.checkSettled(),this.settleTimeout),this.maxWaitTimer=setTimeout(()=>{this.maxWaitTimer=null,this.completeSettling()},this.maxWait)}checkSettled(){this.settleCheckTimer=null;const e=performance.now()-this.lastMutationTime;e>=this.settleTimeout?this.completeSettling():this.settleCheckTimer=setTimeout(()=>this.checkSettled(),this.settleTimeout-e)}completeSettling(){this.frozen||this.locked||this.disabled||this.pendingNavigation&&(this.cancelTimers(),this.disconnectSettlingObserver(),this.pendingNavigation=null,this.onSnapshot(!0))}cancelTimers(){this.debounceTimer!==null&&(clearTimeout(this.debounceTimer),this.debounceTimer=null),this.settleCheckTimer!==null&&(clearTimeout(this.settleCheckTimer),this.settleCheckTimer=null),this.maxWaitTimer!==null&&(clearTimeout(this.maxWaitTimer),this.maxWaitTimer=null)}disconnectSettlingObserver(){this.settlingObserver&&(this.settlingObserver.disconnect(),this.settlingObserver=null)}}class ag{constructor(e){b(this,"trackedLinkElements",new WeakSet),b(this,"mutationCb"),b(this,"adoptedStyleSheetCb"),b(this,"styleMirror",new vp),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(e.length===0)return;const r={id:t,styleIds:[]},i=[];for(const n of e){let a;this.styleMirror.has(n)?a=this.styleMirror.getId(n):(a=this.styleMirror.add(n),i.push({styleId:a,rules:Array.from(n.rules||CSSRule,(l,o)=>({rule:go(l,n.href),index:o}))})),r.styleIds.push(a)}i.length>0&&(r.styles=i),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class lg{constructor(){b(this,"nodeMap",new WeakMap),b(this,"active",!1)}inOtherBuffer(e,t){const r=this.nodeMap.get(e);return r&&Array.from(r).some(i=>i!==t)}add(e,t){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}const cg="3.11.0-alpha.1";let Z,ke,ws,et=!1;const _r=[];let yt;try{if(Array.from([1],s=>s*2)[0]!==2){const s=document.createElement("iframe");document.body.appendChild(s),Array.from=((Yi=s.contentWindow)==null?void 0:Yi.Array.from)||Array.from,document.body.removeChild(s)}}catch(s){console.debug("Unable to override Array.from",s)}const fe=Xl();function ue(s={}){const{emit:e,checkoutEveryNms:t,checkoutEveryNth:r,checkoutEveryNvm:i,checkoutDebounce:n,blockClass:a="rr-block",blockSelector:l=null,ignoreClass:o="rr-ignore",ignoreSelector:c=null,excludeAttribute:u,maskTextClass:h="rr-mask",maskTextSelector:f=null,inlineStylesheet:m=!0,maskAllInputs:p,maskInputOptions:g,slimDOMOptions:d,maskInputFn:y,maskTextFn:v,hooks:A,packFn:S,sampling:w={},dataURLOptions:E={},mousemoveWait:C,recordDOM:$=!0,recordCanvas:N=!1,recordCrossOriginIframes:_=!1,recordAfter:J=s.recordAfter==="DOMContentLoaded"?s.recordAfter:"load",flushCustomEvent:F=s.flushCustomEvent!==void 0?s.flushCustomEvent:"after",userTriggeredOnInput:j=!1,trustSyntheticInput:K=!1,collectFonts:I=!1,inlineImages:Q=!1,plugins:z,keepIframeSrcFn:W=()=>!1,ignoreCSSAttributes:he=new Set([]),selector:Ve,errorHandler:Oe}=s;Cm(Oe);const Ft=_?window.parent===window:!0;let ct=!1;if(!Ft)try{window.parent.document&&(ct=!1)}catch(R){ct=!0}if(Ft&&!e)throw new Error("emit function is required");if(!Ft&&!ct)return()=>{};C!==void 0&&w.mousemove===void 0&&(w.mousemove=C),fe.reset();const Jr=u===void 0?/.^/:u,je=p===!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}:g!==void 0?g:{password:!0},qr=d===!0||d==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:d==="all",headMetaDescKeywords:d==="all",headTitleMutations:d==="all"}:d||{},Li=mm(Ve);Sp();let Pi,Xr=0,Bt=0,_i=0,Te=!1,de=null,Ge=null,zi=0;const bl=(w.scroll||100)*2;let Fi=0;const wl=500;let Kr=!1;const Bi=R=>{for(const te of z||[])te.eventProcessor&&(R=te.eventProcessor(R));return S&&!ct&&(R=S(R)),R},Wt=()=>{de=null,Te=!1,Ge=null,ne==null||ne.cancelPending(),ke(!0),ge.forEach(R=>{R.resetBuffers(),R.unsetFrozen()}),ie&&ie.unsetFrozen(),ne&&ne.unsetFrozen()};Z=(R,te)=>{var H;const B=R;if(B.timestamp=ae(),B.checkoutId=_i,(H=ge[0])!=null&&H.isFrozen()&&!Te&&B.type!==P.FullSnapshot&&!(B.type===P.IncrementalSnapshot&&B.data.source===D.Mutation)&&(ge.forEach(Y=>Y.unfreeze()),ie==null||ie.unfreeze(),ne==null||ne.unfreeze()),Ft)e==null||e(Bi(B),te);else if(ct){const Y={type:"rrweb",event:Bi(B),isCheckout:te};window.parent.postMessage(Y,"*")}if(B.type===P.FullSnapshot)Pi=B,Xr=0,Bt=0;else if(B.type===P.IncrementalSnapshot){if(B.data.source===D.Mutation&&B.data.isAttachIframe)return;if(B.data.source!==D.Visibility){Xr++;const Y=r&&Xr>=r,k=t&&B.timestamp-Pi.timestamp>t;if(Y||k)if(n){Te||(Te=!0,Ge=ae(),ge.forEach(Ne=>Ne.freeze()),ie==null||ie.freeze()),de&&clearTimeout(de);const me=ae()-Ge,xe=n*3;me>=xe?Wt():de=setTimeout(()=>Wt(),n)}else ke(!0)}}};const Ht=R=>{var Y,k;var te,H;((Y=(te=R.adds)==null?void 0:te.length)!=null?Y:0)+((k=(H=R.removes)==null?void 0:H.length)!=null?k:0)>10&&(Fi=ae(),Kr=!1),Z({type:P.IncrementalSnapshot,data:x({source:D.Mutation},R)})},Sl=R=>{Z({type:P.IncrementalSnapshot,data:x({source:D.Visibility},R)})},Wi=R=>{zi=ae(),Z({type:P.IncrementalSnapshot,data:x({source:D.Scroll},R)})},Hi=R=>Z({type:P.IncrementalSnapshot,data:x({source:D.CanvasMutation},R)}),vl=R=>Z({type:P.IncrementalSnapshot,data:x({source:D.AdoptedStyleSheet},R)}),Fe=new ag({mutationCb:Ht,adoptedStyleSheetCb:vl}),Be=new zm({mirror:fe,mutationCb:Ht,stylesheetManager:Fe,recordCrossOriginIframes:_,wrappedEmit:Z});for(const R of z||[])R.getMirror&&R.getMirror({nodeMirror:fe,crossOriginIframeMirror:Be.crossOriginIframeMirror,crossOriginIframeStyleMirror:Be.crossOriginIframeStyleMirror});const Qr=new lg;ws=new Zm({recordCanvas:N,mutationCb:Hi,win:window,blockClass:a,blockSelector:l,mirror:fe,sampling:w.canvas,dataURLOptions:E});const Ut=new Fm({mutationCb:Ht,scrollCb:Wi,bypassOptions:{blockClass:a,blockSelector:l,maskTextClass:h,maskTextSelector:f,excludeAttribute:Jr,inlineStylesheet:m,maskInputOptions:je,dataURLOptions:E,maskTextFn:v,maskInputFn:y,recordCanvas:N,inlineImages:Q,sampling:w,slimDOMOptions:qr,iframeManager:Be,stylesheetManager:Fe,canvasManager:ws,keepIframeSrcFn:W,processedNodeManager:Qr,selectorOptions:Li},mirror:fe}),Cl=$&&(i!=null||(w==null?void 0:w.visibility)!==void 0&&(w==null?void 0:w.visibility)!==!1);let ie;if(Cl){const R=typeof(w==null?void 0:w.visibility)=="object"&&(w==null?void 0:w.visibility)!==null?w.visibility:{},te=R.recordVisibility===!0;ie=new rg({doc:document,mirror:fe,sampling:R,mutationCb:te?Sl:()=>{},notifyActivity:i!=null?H=>{const B=ae(),Y=B-zi<bl,k=B-Fi<wl;if(!(Y&&!k)&&!(k&&Kr)&&(Bt+=H,Bt>=i))if(Bt=0,Kr=!0,n){Te||(Te=!0,Ge=ae(),ge.forEach(Ne=>Ne.freeze()),ie==null||ie.freeze()),de&&clearTimeout(de);const me=ae()-Ge,xe=n*3;me>=xe?Wt():de=setTimeout(()=>Wt(),n)}else ke(!0)}:void 0})}ke=(R=!1)=>{if(!$)return;_i++,Z({type:P.Meta,data:{href:window.location.href,width:Xa(),height:qa()}},R),Fe.reset(),Ut.init(),ge.forEach(H=>H.lock()),ie==null||ie.lock(),ne==null||ne.lock();const te=Su(document,{mirror:fe,blockClass:a,blockSelector:l,maskTextClass:h,maskTextSelector:f,excludeAttribute:Jr,inlineStylesheet:m,maskAllInputs:je,maskTextFn:v,maskInputFn:y,slimDOM:qr,dataURLOptions:E,recordCanvas:N,inlineImages:Q,onSerialize:H=>{Qa(H,fe)&&Be.addIframe(H),el(H,fe)&&Fe.trackLinkElement(H),ei(H)&&Ut.addShadowRoot(T.shadowRoot(H),document)},onIframeLoad:(H,B)=>{Be.attachIframe(H,B),Ut.observeAttachShadow(H)},onStylesheetLoad:(H,B)=>{Fe.attachLinkElement(H,B)},keepIframeSrcFn:W,selector:Ve});if(!te)return console.warn("Failed to snapshot the document");Z({type:P.FullSnapshot,data:{node:te,initialOffset:Ja(window)}},R),ge.forEach(H=>H.unlock()),ie==null||ie.unlock(),ne==null||ne.unlock(),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Fe.adoptStyleSheets(document.adoptedStyleSheets,fe.getId(document))},yt=()=>{for(const R of _r)Z(R);_r.length=0};let ne;const es=w.navigation;if(es!==!1){const R=typeof es=="object"?es:{};ne=new og({doc:document,config:R,onSnapshot:te=>{Te&&(de&&(clearTimeout(de),de=null),Te=!1,Ge=null,ge.forEach(H=>{H.resetBuffers(),H.unsetFrozen()}),ie==null||ie.unsetFrozen()),ke(te)}})}try{const R=[],te=B=>{var Y;return L(_m)({mutationCb:Ht,mousemoveCb:(k,me)=>Z({type:P.IncrementalSnapshot,data:{source:me,positions:k}}),mouseInteractionCb:k=>Z({type:P.IncrementalSnapshot,data:x({source:D.MouseInteraction},k)}),scrollCb:Wi,viewportResizeCb:k=>Z({type:P.IncrementalSnapshot,data:x({source:D.ViewportResize},k)}),navigationCb:k=>{ne?ne.handleNavigation(k):ke(!0)},inputCb:k=>Z({type:P.IncrementalSnapshot,data:x({source:D.Input},k)}),mediaInteractionCb:k=>Z({type:P.IncrementalSnapshot,data:x({source:D.MediaInteraction},k)}),styleSheetRuleCb:k=>Z({type:P.IncrementalSnapshot,data:x({source:D.StyleSheetRule},k)}),styleDeclarationCb:k=>Z({type:P.IncrementalSnapshot,data:x({source:D.StyleDeclaration},k)}),canvasMutationCb:Hi,visibilityManager:ie,fontCb:k=>Z({type:P.IncrementalSnapshot,data:x({source:D.Font},k)}),selectionCb:k=>{Z({type:P.IncrementalSnapshot,data:x({source:D.Selection},k)})},customElementCb:k=>{Z({type:P.IncrementalSnapshot,data:x({source:D.CustomElement},k)})},blockClass:a,ignoreClass:o,ignoreSelector:c,maskTextClass:h,maskTextSelector:f,excludeAttribute:Jr,maskInputOptions:je,inlineStylesheet:m,sampling:w,recordDOM:$,recordCanvas:N,inlineImages:Q,userTriggeredOnInput:j,trustSyntheticInput:K,collectFonts:I,doc:B,maskInputFn:y,maskTextFn:v,keepIframeSrcFn:W,blockSelector:l,slimDOMOptions:qr,dataURLOptions:E,selectorOptions:Li,mirror:fe,iframeManager:Be,stylesheetManager:Fe,shadowDomManager:Ut,processedNodeManager:Qr,canvasManager:ws,ignoreCSSAttributes:he,plugins:((Y=z==null?void 0:z.filter(k=>k.observer))==null?void 0:Y.map(k=>({observer:k.observer,options:k.options,callback:me=>Z({type:P.Plugin,data:{plugin:k.name,payload:me}})})))||[]},A)};Be.addLoadListener(B=>{try{R.push(te(B.contentDocument))}catch(Y){console.warn(Y)}});const H=()=>{F==="before"&&yt(),ke(),R.push(te(document)),et=!0,F==="after"&&yt()};return document.readyState==="interactive"||document.readyState==="complete"?H():(R.push(se("DOMContentLoaded",()=>{Z({type:P.DomContentLoaded,data:{}}),J==="DOMContentLoaded"&&H()})),R.push(se("load",()=>{Z({type:P.Load,data:{}}),J==="load"&&H()},window))),()=>{if(et){const B=document.activeElement;if(B&&vr.includes(B.tagName)){const Y=B,k=fe.getId(Y);if(k!==-1){const me=Lr.get(Y);let xe=Y.value,Ne=!1;const Vt=Ct(Y)||"";if(Vt==="radio"||Vt==="checkbox"?Ne=Y.checked:(je[Y.tagName.toLowerCase()]||je[Vt])&&(xe=vt({element:Y,maskInputOptions:je,tagName:Y.tagName,type:Vt,value:xe,maskInputFn:y})),!me||me.text!==xe||me.isChecked!==Ne){const Ui=j?{text:xe,isChecked:Ne,userTriggered:!1}:{text:xe,isChecked:Ne};Lr.set(Y,Ui),Z({type:P.IncrementalSnapshot,data:oe(x({source:D.Input},Ui),{id:k})})}}}}de&&(clearTimeout(de),de=null),yt(),R.forEach(B=>B()),ne==null||ne.destroy(),Qr.destroy(),et=!1,xm()}}catch(R){console.warn(R)}}ue.getVersion=()=>cg;ue.isRecording=()=>et;ue.flushCustomEventQueue=()=>{console.warn(`[rrweb] CustomEvent flushing: ${_r.length} events`),yt()};ue.addCustomEvent=(s,e)=>{const t={type:P.Custom,data:{tag:s,payload:e}};if(!et){console.warn(`[rrweb] CustomEvent buffered before/after recording start: ${s}`),_r.push(t);return}Z(t)};ue.freezePage=()=>{ge.forEach(s=>s.freeze())};ue.takeFullSnapshot=s=>{if(!et)throw new Error("please take full snapshot after start recording");ke(s)};ue.mirror=fe;var po;(function(s){s[s.NotStarted=0]="NotStarted",s[s.Running=1]="Running",s[s.Stopped=2]="Stopped"})(po||(po={}));const{getVersion:Jg}=ue,{isRecording:qg}=ue,{flushCustomEventQueue:Xg}=ue,{addCustomEvent:Kg}=ue,{freezePage:Qg}=ue,{takeFullSnapshot:ey}=ue;exports.record=ue;
79
79
  ;if (typeof module.exports == "object" && typeof exports == "object") {
80
80
  var __cp = (to, from, except, desc) => {
81
81
  if ((from && typeof from === "object") || typeof from === "function") {