blocfeed 0.24.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/script.js CHANGED
@@ -1,57 +1,58 @@
1
- var BlocFeedScript=(function(exports){'use strict';var oc=Object.defineProperty;var pe=(r,e)=>()=>(r&&(e=r(r=0)),e);var ac=(r,e)=>{for(var t in e)oc(r,t,{get:e[t],enumerable:true});};function El(r,e){if(r.match(/^[a-z]+:\/\//i))return r;if(r.match(/^\/\//))return window.location.protocol+r;if(r.match(/^[a-z]+:/i))return r;let t=document.implementation.createHTMLDocument(),n=t.createElement("base"),i=t.createElement("a");return t.head.appendChild(n),t.body.appendChild(i),e&&(n.href=e),i.href=r,i.href}function de(r){let e=[];for(let t=0,n=r.length;t<n;t++)e.push(r[t]);return e}function Qr(r={}){return Qe||(r.includeStyleProperties?(Qe=r.includeStyleProperties,Qe):(Qe=de(window.getComputedStyle(document.documentElement)),Qe))}function qr(r,e){let n=(r.ownerDocument.defaultView||window).getComputedStyle(r).getPropertyValue(e);return n?parseFloat(n.replace("px","")):0}function pm(r){let e=qr(r,"border-left-width"),t=qr(r,"border-right-width");return r.clientWidth+e+t}function mm(r){let e=qr(r,"border-top-width"),t=qr(r,"border-bottom-width");return r.clientHeight+e+t}function en(r,e={}){let t=e.width||pm(r),n=e.height||mm(r);return {width:t,height:n}}function xl(){let r,e;try{e=process;}catch(n){}let t=e&&e.env?e.env.devicePixelRatio:null;return t&&(r=parseInt(t,10),Number.isNaN(r)&&(r=1)),r||window.devicePixelRatio||1}function Rl(r){(r.width>ie||r.height>ie)&&(r.width>ie&&r.height>ie?r.width>r.height?(r.height*=ie/r.width,r.width=ie):(r.width*=ie/r.height,r.height=ie):r.width>ie?(r.height*=ie/r.width,r.width=ie):(r.width*=ie/r.height,r.height=ie));}function Ml(r,e={}){return r.toBlob?new Promise(t=>{r.toBlob(t,e.type?e.type:"image/png",e.quality?e.quality:1);}):new Promise(t=>{let n=window.atob(r.toDataURL(e.type?e.type:void 0,e.quality?e.quality:void 0).split(",")[1]),i=n.length,s=new Uint8Array(i);for(let o=0;o<i;o+=1)s[o]=n.charCodeAt(o);t(new Blob([s],{type:e.type?e.type:"image/png"}));})}function et(r){return new Promise((e,t)=>{let n=new Image;n.onload=()=>{n.decode().then(()=>{requestAnimationFrame(()=>e(n));});},n.onerror=t,n.crossOrigin="anonymous",n.decoding="async",n.src=r;})}async function gm(r){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(r)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function Tl(r,e,t){let n="http://www.w3.org/2000/svg",i=document.createElementNS(n,"svg"),s=document.createElementNS(n,"foreignObject");return i.setAttribute("width",`${e}`),i.setAttribute("height",`${t}`),i.setAttribute("viewBox",`0 0 ${e} ${t}`),s.setAttribute("width","100%"),s.setAttribute("height","100%"),s.setAttribute("x","0"),s.setAttribute("y","0"),s.setAttribute("externalResourcesRequired","true"),i.appendChild(s),s.appendChild(r),gm(i)}var Il,Qe,ie,K,Le=pe(()=>{Il=(()=>{let r=0,e=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return ()=>(r+=1,`u${e()}${r}`)})();Qe=null;ie=16384;K=(r,e)=>{if(r instanceof e)return true;let t=Object.getPrototypeOf(r);return t===null?false:t.constructor.name===e.name||K(t,e)};});function ym(r){let e=r.getPropertyValue("content");return `${r.cssText} content: '${e.replace(/'|"/g,"")}';`}function bm(r,e){return Qr(e).map(t=>{let n=r.getPropertyValue(t),i=r.getPropertyPriority(t);return `${t}: ${n}${i?" !important":""};`}).join(" ")}function wm(r,e,t,n){let i=`.${r}:${e}`,s=t.cssText?ym(t):bm(t,n);return document.createTextNode(`${i}{${s}}`)}function Al(r,e,t,n){let i=window.getComputedStyle(r,t),s=i.getPropertyValue("content");if(s===""||s==="none")return;let o=Il();try{e.className=`${e.className} ${o}`;}catch(a){return}let l=document.createElement("style");l.appendChild(wm(o,t,i,n)),e.appendChild(l);}function kl(r,e,t){Al(r,e,":before",t),Al(r,e,":after",t);}var _l=pe(()=>{Le();});function Sm(r){let e=/\.([^./]*?)$/g.exec(r);return e?e[1]:""}function tt(r){let e=Sm(r).toLowerCase();return vm[e]||""}var Nl,Ol,vm,tn=pe(()=>{Nl="application/font-woff",Ol="image/jpeg",vm={woff:Nl,woff2:Nl,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Ol,jpeg:Ol,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};});function Cm(r){return r.split(/,/)[1]}function At(r){return r.search(/^(data:)/)!==-1}function zi(r,e){return `data:${e};base64,${r}`}async function Vi(r,e,t){let n=await fetch(r,e);if(n.status===404)throw new Error(`Resource "${n.url}" not found`);let i=await n.blob();return new Promise((s,o)=>{let l=new FileReader;l.onerror=o,l.onloadend=()=>{try{s(t({res:n,result:l.result}));}catch(a){o(a);}},l.readAsDataURL(i);})}function Em(r,e,t){let n=r.replace(/\?.*/,"");return t&&(n=r),/ttf|otf|eot|woff2?/i.test(n)&&(n=n.replace(/.*\//,"")),e?`[${e}]${n}`:n}async function rt(r,e,t){let n=Em(r,e,t.includeQueryParams);if(Hi[n]!=null)return Hi[n];t.cacheBust&&(r+=(/\?/.test(r)?"&":"?")+new Date().getTime());let i;try{let s=await Vi(r,t.fetchRequestInit,({res:o,result:l})=>(e||(e=o.headers.get("Content-Type")||""),Cm(l)));i=zi(s,e);}catch(s){i=t.imagePlaceholder||"";let o=`Failed to fetch resource: ${r}`;s&&(o=typeof s=="string"?s:s.message),o&&console.warn(o);}return Hi[n]=i,i}var Hi,kt=pe(()=>{Hi={};});async function Im(r){let e=r.toDataURL();return e==="data:,"?r.cloneNode(false):et(e)}async function xm(r,e){if(r.currentSrc){let s=document.createElement("canvas"),o=s.getContext("2d");s.width=r.clientWidth,s.height=r.clientHeight,o==null||o.drawImage(r,0,0,s.width,s.height);let l=s.toDataURL();return et(l)}let t=r.poster,n=tt(t),i=await rt(t,n,e);return et(i)}async function Rm(r,e){var t;try{if(!((t=r==null?void 0:r.contentDocument)===null||t===void 0)&&t.body)return await _t(r.contentDocument.body,e,!0)}catch(n){}return r.cloneNode(false)}async function Mm(r,e){return K(r,HTMLCanvasElement)?Im(r):K(r,HTMLVideoElement)?xm(r,e):K(r,HTMLIFrameElement)?Rm(r,e):r.cloneNode(Dl(r))}async function Am(r,e,t){var n,i;if(Dl(e))return e;let s=[];return Tm(r)&&r.assignedNodes?s=de(r.assignedNodes()):K(r,HTMLIFrameElement)&&(!((n=r.contentDocument)===null||n===void 0)&&n.body)?s=de(r.contentDocument.body.childNodes):s=de(((i=r.shadowRoot)!==null&&i!==void 0?i:r).childNodes),s.length===0||K(r,HTMLVideoElement)||await s.reduce((o,l)=>o.then(()=>_t(l,t)).then(a=>{a&&e.appendChild(a);}),Promise.resolve()),e}function km(r,e,t){let n=e.style;if(!n)return;let i=window.getComputedStyle(r);i.cssText?(n.cssText=i.cssText,n.transformOrigin=i.transformOrigin):Qr(t).forEach(s=>{let o=i.getPropertyValue(s);s==="font-size"&&o.endsWith("px")&&(o=`${Math.floor(parseFloat(o.substring(0,o.length-2)))-.1}px`),K(r,HTMLIFrameElement)&&s==="display"&&o==="inline"&&(o="block"),s==="d"&&e.getAttribute("d")&&(o=`path(${e.getAttribute("d")})`),n.setProperty(s,o,i.getPropertyPriority(s));});}function _m(r,e){K(r,HTMLTextAreaElement)&&(e.innerHTML=r.value),K(r,HTMLInputElement)&&e.setAttribute("value",r.value);}function Nm(r,e){if(K(r,HTMLSelectElement)){let n=Array.from(e.children).find(i=>r.value===i.getAttribute("value"));n&&n.setAttribute("selected","");}}function Om(r,e,t){return K(e,Element)&&(km(r,e,t),kl(r,e,t),_m(r,e),Nm(r,e)),e}async function Dm(r,e){let t=r.querySelectorAll?r.querySelectorAll("use"):[];if(t.length===0)return r;let n={};for(let s=0;s<t.length;s++){let l=t[s].getAttribute("xlink:href");if(l){let a=r.querySelector(l),c=document.querySelector(l);!a&&c&&!n[l]&&(n[l]=await _t(c,e,true));}}let i=Object.values(n);if(i.length){let s="http://www.w3.org/1999/xhtml",o=document.createElementNS(s,"svg");o.setAttribute("xmlns",s),o.style.position="absolute",o.style.width="0",o.style.height="0",o.style.overflow="hidden",o.style.display="none";let l=document.createElementNS(s,"defs");o.appendChild(l);for(let a=0;a<i.length;a++)l.appendChild(i[a]);r.appendChild(o);}return r}async function _t(r,e,t){return !t&&e.filter&&!e.filter(r)?null:Promise.resolve(r).then(n=>Mm(n,e)).then(n=>Am(r,n,e)).then(n=>Om(r,n,e)).then(n=>Dm(n,e))}var Tm,Dl,Ll=pe(()=>{_l();Le();tn();kt();Tm=r=>r.tagName!=null&&r.tagName.toUpperCase()==="SLOT",Dl=r=>r.tagName!=null&&r.tagName.toUpperCase()==="SVG";});function Fm(r){let e=r.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${e})(['"]?\\))`,"g")}function $m(r){let e=[];return r.replace(Pl,(t,n,i)=>(e.push(i),t)),e.filter(t=>!At(t))}async function Bm(r,e,t,n,i){try{let s=t?El(e,t):e,o=tt(e),l;if(i);else l=await rt(s,o,n);return r.replace(Fm(e),`$1${l}$3`)}catch(s){}return r}function Um(r,{preferredFontFormat:e}){return e?r.replace(Pm,t=>{for(;;){let[n,,i]=Lm.exec(t)||[];if(!i)return "";if(i===e)return `src: ${n};`}}):r}function Gi(r){return r.search(Pl)!==-1}async function rn(r,e,t){if(!Gi(r))return r;let n=Um(r,t);return $m(n).reduce((s,o)=>s.then(l=>Bm(l,o,e,t)),Promise.resolve(n))}var Pl,Lm,Pm,ji=pe(()=>{Le();tn();kt();Pl=/url\((['"]?)([^'"]+?)\1\)/g,Lm=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Pm=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;});async function nt(r,e,t){var n;let i=(n=e.style)===null||n===void 0?void 0:n.getPropertyValue(r);if(i){let s=await rn(i,null,t);return e.style.setProperty(r,s,e.style.getPropertyPriority(r)),true}return false}async function Wm(r,e){await nt("background",r,e)||await nt("background-image",r,e),await nt("mask",r,e)||await nt("-webkit-mask",r,e)||await nt("mask-image",r,e)||await nt("-webkit-mask-image",r,e);}async function Hm(r,e){let t=K(r,HTMLImageElement);if(!(t&&!At(r.src))&&!(K(r,SVGImageElement)&&!At(r.href.baseVal)))return;let n=t?r.src:r.href.baseVal,i=await rt(n,tt(n),e);await new Promise((s,o)=>{r.onload=s,r.onerror=e.onImageErrorHandler?(...a)=>{try{s(e.onImageErrorHandler(...a));}catch(c){o(c);}}:o;let l=r;l.decode&&(l.decode=s),l.loading==="lazy"&&(l.loading="eager"),t?(r.srcset="",r.src=i):r.href.baseVal=i;});}async function zm(r,e){let n=de(r.childNodes).map(i=>Yi(i,e));await Promise.all(n).then(()=>r);}async function Yi(r,e){K(r,Element)&&(await Wm(r,e),await Hm(r,e),await zm(r,e));}var Fl=pe(()=>{ji();Le();kt();tn();});function $l(r,e){let{style:t}=r;e.backgroundColor&&(t.backgroundColor=e.backgroundColor),e.width&&(t.width=`${e.width}px`),e.height&&(t.height=`${e.height}px`);let n=e.style;return n!=null&&Object.keys(n).forEach(i=>{t[i]=n[i];}),r}var Bl=pe(()=>{});async function Wl(r){let e=Ul[r];if(e!=null)return e;let n=await(await fetch(r)).text();return e={url:r,cssText:n},Ul[r]=e,e}async function Hl(r,e){let t=r.cssText,n=/url\(["']?([^"')]+)["']?\)/g,s=(t.match(/url\([^)]+\)/g)||[]).map(async o=>{let l=o.replace(n,"$1");return l.startsWith("https://")||(l=new URL(l,r.url).href),Vi(l,e.fetchRequestInit,({result:a})=>(t=t.replace(o,`url(${a})`),[o,a]))});return Promise.all(s).then(()=>t)}function zl(r){if(r==null)return [];let e=[],t=/(\/\*[\s\S]*?\*\/)/gi,n=r.replace(t,""),i=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){let a=i.exec(n);if(a===null)break;e.push(a[0]);}n=n.replace(i,"");let s=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",l=new RegExp(o,"gi");for(;;){let a=s.exec(n);if(a===null){if(a=l.exec(n),a===null)break;s.lastIndex=l.lastIndex;}else l.lastIndex=s.lastIndex;e.push(a[0]);}return e}async function Vm(r,e){let t=[],n=[];return r.forEach(i=>{if("cssRules"in i)try{de(i.cssRules||[]).forEach((s,o)=>{if(s.type===CSSRule.IMPORT_RULE){let l=o+1,a=s.href,c=Wl(a).then(u=>Hl(u,e)).then(u=>zl(u).forEach(d=>{try{i.insertRule(d,d.startsWith("@import")?l+=1:i.cssRules.length);}catch(f){console.error("Error inserting rule from remote css",{rule:d,error:f});}})).catch(u=>{console.error("Error loading remote css",u.toString());});n.push(c);}});}catch(s){let o=r.find(l=>l.href==null)||document.styleSheets[0];i.href!=null&&n.push(Wl(i.href).then(l=>Hl(l,e)).then(l=>zl(l).forEach(a=>{o.insertRule(a,o.cssRules.length);})).catch(l=>{console.error("Error loading remote stylesheet",l);})),console.error("Error inlining remote css file",s);}}),Promise.all(n).then(()=>(r.forEach(i=>{if("cssRules"in i)try{de(i.cssRules||[]).forEach(s=>{t.push(s);});}catch(s){console.error(`Error while reading CSS rules from ${i.href}`,s);}}),t))}function Gm(r){return r.filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>Gi(e.style.getPropertyValue("src")))}async function jm(r,e){if(r.ownerDocument==null)throw new Error("Provided element is not within a Document");let t=de(r.ownerDocument.styleSheets),n=await Vm(t,e);return Gm(n)}function Vl(r){return r.trim().replace(/["']/g,"")}function Ym(r){let e=new Set;function t(n){(n.style.fontFamily||getComputedStyle(n).fontFamily).split(",").forEach(s=>{e.add(Vl(s));}),Array.from(n.children).forEach(s=>{s instanceof HTMLElement&&t(s);});}return t(r),e}async function Xi(r,e){let t=await jm(r,e),n=Ym(r);return (await Promise.all(t.filter(s=>n.has(Vl(s.style.fontFamily))).map(s=>{let o=s.parentStyleSheet?s.parentStyleSheet.href:null;return rn(s.cssText,o,e)}))).join(`
2
- `)}async function Gl(r,e){let t=e.fontEmbedCSS!=null?e.fontEmbedCSS:e.skipFonts?null:await Xi(r,e);if(t){let n=document.createElement("style"),i=document.createTextNode(t);n.appendChild(i),r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n);}}var Ul,jl=pe(()=>{Le();kt();ji();Ul={};});var Xl={};ac(Xl,{getFontEmbedCSS:()=>qm,toBlob:()=>Km,toCanvas:()=>Nt,toJpeg:()=>Jm,toPixelData:()=>Xm,toPng:()=>Zm,toSvg:()=>Yl});async function Yl(r,e={}){let{width:t,height:n}=en(r,e),i=await _t(r,e,true);return await Gl(i,e),await Yi(i,e),$l(i,e),await Tl(i,t,n)}async function Nt(r,e={}){let{width:t,height:n}=en(r,e),i=await Yl(r,e),s=await et(i),o=document.createElement("canvas"),l=o.getContext("2d"),a=e.pixelRatio||xl(),c=e.canvasWidth||t,u=e.canvasHeight||n;return o.width=c*a,o.height=u*a,e.skipAutoScale||Rl(o),o.style.width=`${c}`,o.style.height=`${u}`,e.backgroundColor&&(l.fillStyle=e.backgroundColor,l.fillRect(0,0,o.width,o.height)),l.drawImage(s,0,0,o.width,o.height),o}async function Xm(r,e={}){let{width:t,height:n}=en(r,e);return (await Nt(r,e)).getContext("2d").getImageData(0,0,t,n).data}async function Zm(r,e={}){return (await Nt(r,e)).toDataURL()}async function Jm(r,e={}){return (await Nt(r,e)).toDataURL("image/jpeg",e.quality||1)}async function Km(r,e={}){let t=await Nt(r,e);return await Ml(t)}async function qm(r,e={}){return Xi(r,e)}var Zl=pe(()=>{Ll();Fl();Bl();jl();Le();});var lc={enabled:true,sampling:1,ignoreSelectors:["[data-blocfeed-ui]","[data-blocfeed-ignore]"],rageClick:{enabled:true,threshold:3,windowMs:1e3,streakIdleMs:1500},httpFail:{enabled:true,statusCodes:[400,401,403,404,408,409,422,429,500,502,503,504],ignoreUrls:["/api/behavioral-events","/api/feedback"],treatJsonErrorAsFail:false},redirectLoop:{enabled:true,threshold:3,windowMs:2e3},formDataLoss:{enabled:true},deadClick:{enabled:true,observationWindowMs:300,rateLimitPerSelector:5},piiScrub:"default"};function os(r){var t,n,i,s,o,l,a,c,u;let e=lc;return {enabled:(t=r==null?void 0:r.enabled)!=null?t:e.enabled,sampling:(n=r==null?void 0:r.sampling)!=null?n:e.sampling,ignoreSelectors:(i=r==null?void 0:r.ignoreSelectors)!=null?i:e.ignoreSelectors,rageClick:{...e.rageClick,...(s=r==null?void 0:r.rageClick)!=null?s:{}},httpFail:{...e.httpFail,...(o=r==null?void 0:r.httpFail)!=null?o:{}},redirectLoop:{...e.redirectLoop,...(l=r==null?void 0:r.redirectLoop)!=null?l:{}},formDataLoss:{...e.formDataLoss,...(a=r==null?void 0:r.formDataLoss)!=null?a:{}},deadClick:{...e.deadClick,...(c=r==null?void 0:r.deadClick)!=null?c:{}},piiScrub:(u=r==null?void 0:r.piiScrub)!=null?u:e.piiScrub}}function as(r){let e=[];async function t(){if(e.length===0)return;let i=e.splice(0,50);try{await fetch(r.endpoint,{method:"POST",headers:{"Content-Type":"application/json","x-blocfeed-id":r.blocfeedId},body:JSON.stringify({events:i}),keepalive:!0});}catch(s){}}function n(){if(e.length===0)return;if(typeof navigator=="undefined"||typeof navigator.sendBeacon!="function"){t();return}let i=e.splice(0,50),s=new Blob([JSON.stringify({events:i})],{type:"application/json"}),o=`${r.endpoint}?_bfid=${encodeURIComponent(r.blocfeedId)}`;try{navigator.sendBeacon(o,s);}catch(l){}}return {enqueue(i){e.push(i);},flush:t,flushBeacon:n,size(){return e.length}}}function ls(r){let e=globalThis.CSS;return typeof(e==null?void 0:e.escape)=="function"?e.escape(r):r.replace(/[^a-zA-Z0-9_-]/g,t=>{let n=t.codePointAt(0);return n===void 0?"":`\\${n.toString(16)} `})}function cc(r){return r.replace(/\s+/g," ").trim()}function Pe(r,e=140){let t=r.textContent;if(!t)return;let n=cc(t);if(n)return n.length<=e?n:`${n.slice(0,e-1)}\u2026`}function uc(r){let e=1;for(let t=r.previousElementSibling;t;t=t.previousElementSibling)t.tagName===r.tagName&&(e+=1);return e}var cs=["data-testid","data-test-id","data-test","data-qa","data-cy"],un="data-blocfeed-component";function it(r){let e=r.closest(`[${un}]`);if(!e)return;let t=e.getAttribute(un),n=t==null?void 0:t.trim();return n||void 0}function Fe(r,e=5){let t=[],n=r,i=0;for(;n&&i<e*4;){let s=it(n);if(s&&t[t.length-1]!==s&&(t.push(s),t.length>=e))break;n=n.parentElement,i++;}return t}function $e(r,e=4){let t=r,n=0;for(;t&&n<e;){let i=t.getAttribute(un),s=i==null?void 0:i.trim();if(s)return `bf:component:${s}`;for(let a of cs){let c=t.getAttribute(a),u=c==null?void 0:c.trim();if(u)return `bf:testid:${u}`}let o=t.getAttribute("id"),l=o==null?void 0:o.trim();if(l&&!/^\d/.test(l))return `bf:id:${l}`;t=t.parentElement,n+=1;}return null}function fc(r){let e=r.tagName.toLowerCase(),t=r.getAttribute("id");if(t)return `#${ls(t)}`;for(let n of cs){let i=r.getAttribute(n);if(i)return `${e}[${n}="${ls(i)}"]`}return `${e}:nth-of-type(${uc(r)})`}function Be(r,e=10){let t=[],n=r;for(;n&&t.length<e;){let i=fc(n);if(t.unshift(i),i.startsWith("#"))break;n=n.parentElement;}return t.join(" > ")}var dc=new Set(["button","link","tab","menuitem"]);function us(r){var t;if(r.tagName==="BUTTON")return r.disabled?null:"button";if(r.tagName==="A"||r.tagName==="a"){let n=(t=r.getAttribute("href"))==null?void 0:t.trim();return !n||n==="#"||n.toLowerCase().startsWith("javascript:")?null:"link"}let e=r.getAttribute("role");if(e&&dc.has(e))return "role";try{if(window.getComputedStyle(r).cursor==="pointer")return "cursor_pointer"}catch(n){}return null}function Ft(r,e){if(e.length===0)return false;for(let t of e)try{if(r.matches(t)||r.closest(t))return !0}catch(n){}return false}var fs="bf_behavioral_session",$t=null;function Y(){try{let r=sessionStorage.getItem(fs);if(r)return r;let e=ds();return sessionStorage.setItem(fs,e),e}catch(r){return $t||($t=ds(),$t)}}function ds(){let r=Math.random().toString(36).slice(2,10).padEnd(8,"0");return `bf_${Date.now()}_${r}`}function Bt(r){let e=0;for(let t=0;t<r.length;t++)e=e*31+r.charCodeAt(t)|0;return Math.abs(e)}function hs(r,e){if(!r.rageClick.enabled)return ()=>{};let{threshold:t,windowMs:n,streakIdleMs:i}=r.rageClick,s=new Map;function o(d){var b,S;let f=d.target,g=f?hc(f):false,m=f&&(b=Pe(f,200))!=null?b:null,p=f?f.tagName.toLowerCase():"",h=f&&f.id||null,y=f&&(S=it(f))!=null?S:null,w=f?Fe(f,5):[];return {session_id:Y(),event_type:"rage_click",page_url:typeof window=="undefined"?"":window.location.href,selector:d.selector,element_text:m,event_data:{click_count:d.timestamps.length,window_ms:n,final:true,...g?{disabled:true}:{},tag_name:p,...h?{element_id:h}:{},...y?{component_name:y}:{},...w.length>0?{parent_components:w}:{}},created_at:new Date().toISOString(),stable_key:d.stableKey}}function l(d){let f=s.get(d);f&&(f.idleTimer&&(clearTimeout(f.idleTimer),f.idleTimer=null),f.reached&&e(o(f)),s.delete(d));}function a(d){let f=s.get(d);f&&(f.idleTimer&&clearTimeout(f.idleTimer),f.idleTimer=setTimeout(()=>{l(d);},i));}function c(d){try{let f=d.target;if(!f||!(f instanceof Element)||Ft(f,r.ignoreSelectors))return;let g=Be(f,4);if(!g)return;let m=$e(f),p=m!=null?m:g,h=Date.now(),y=s.get(p);y?(y.target=f,y.selector=g):(y={selector:g,stableKey:m,timestamps:[],reached:!1,idleTimer:null,target:f},s.set(p,y)),y.reached||(y.timestamps=y.timestamps.filter(w=>h-w<=n)),y.timestamps.push(h),a(p),!y.reached&&y.timestamps.length>=t&&(y.reached=!0);}catch(f){}}function u(){for(let d of Array.from(s.keys()))l(d);}return document.addEventListener("click",c,{capture:true,passive:true}),typeof window!="undefined"&&window.addEventListener("pagehide",u),()=>{document.removeEventListener("click",c,{capture:true}),typeof window!="undefined"&&window.removeEventListener("pagehide",u);for(let d of s.values())d.idleTimer&&clearTimeout(d.idleTimer);s.clear();}}function hc(r){if(r.hasAttribute("disabled")||r.getAttribute("aria-disabled")==="true")return true;try{if(window.getComputedStyle(r).pointerEvents==="none")return !0}catch(e){}return false}var ps=0,ms=null,Wt=null,Ht=[],pc=1500;function mc(){function r(e){var t;try{let n=e.target;if(!n)return;let i=n.closest('button[type="submit"], input[type="submit"], [data-blocfeed-submit]');if(!i)return;ps=Date.now();let s=i.closest("form");ms=(s?Be(s,3):"")||null,Wt=(t=Pe(i,100))!=null?t:null,Ht=Fe(i,5);}catch(n){}}return document.addEventListener("click",r,{capture:true,passive:true}),()=>document.removeEventListener("click",r,{capture:true})}function gs(r,e){if(!r.httpFail.enabled)return ()=>{};let{statusCodes:t,ignoreUrls:n,treatJsonErrorAsFail:i}=r.httpFail,s=new Set(t),o=mc(),l=globalThis.fetch,a=async(f,g)=>{var y,w,b;let m=typeof f=="string"?f:f instanceof URL?f.toString():f.url,p=((w=(y=g==null?void 0:g.method)!=null?y:f.method)!=null?w:"GET").toUpperCase(),h;try{h=await l.call(globalThis,f,g);}catch(S){try{if(!Ut(m,n)){let E=S&&typeof S=="object"&&S.name==="AbortError"?"abort":"network";e(d(0,m,p,E));}}catch(E){}throw S}try{if(!Ut(m,n)&&s.has(h.status))e(d(h.status,m,p));else if(i&&!Ut(m,n)&&h.status>=200&&h.status<300){let S=(b=h.headers.get("content-type"))!=null?b:"";(S.includes("application/json")||S.includes("+json"))&&h.clone().json().then(E=>{if(gc(E))try{e(d(h.status,m,p,"json_error"));}catch(I){}}).catch(()=>{});}}catch(S){}return h};globalThis.fetch=a;let c=XMLHttpRequest.prototype.open,u=XMLHttpRequest.prototype.send;return XMLHttpRequest.prototype.open=function(f,g,...m){return this.__bf_url=g,this.__bf_method=f.toUpperCase(),c.call(this,f,g,...m)},XMLHttpRequest.prototype.send=function(f){let g=()=>{var m,p;try{let h=(m=this.__bf_url)!=null?m:"",y=(p=this.__bf_method)!=null?p:"GET";!Ut(h,n)&&s.has(this.status)&&e(d(this.status,h,y));}catch(h){}};return this.__bf_handler=g,this.addEventListener("loadend",g),u.call(this,f!=null?f:null)},()=>{globalThis.fetch=l,XMLHttpRequest.prototype.open=c,XMLHttpRequest.prototype.send=u,o(),Wt=null,Ht=[];};function d(f,g,m,p){let y=Date.now()-ps<pc;return {session_id:Y(),event_type:"error",page_url:typeof window=="undefined"?"":window.location.href,selector:null,element_text:null,event_data:{http_status:f,request_url:g,method:m,...p?{error_kind:p}:{},form_selector:y?ms:null,...y&&Wt?{button_text:Wt}:{},...y&&Ht.length>0?{parent_components:Ht}:{}},created_at:new Date().toISOString(),stable_key:null}}}function gc(r){if(!r||typeof r!="object")return false;let e=r;return e.ok===false||e.success===false||"error"in e&&e.error!=null&&e.error!==false}function Ut(r,e){if(e.length===0)return false;for(let t of e)if(r.includes(t))return true;return false}var yc=3e4;function ys(r,e){if(!r.redirectLoop.enabled)return ()=>{};if(typeof window=="undefined")return ()=>{};let{threshold:t,windowMs:n}=r.redirectLoop,i=new Map,s=new Map,o=history.pushState,l=history.replaceState;function a(u){var d,f;try{let g=Date.now(),m=(d=s.get(u))!=null?d:0;if(g<m)return;let h=((f=i.get(u))!=null?f:[]).filter(y=>g-y<=n);if(h.push(g),i.set(u,h),h.length>=t){let y={session_id:Y(),event_type:"thrashing",page_url:window.location.href,selector:null,element_text:null,event_data:{count:h.length,url:u,window_ms:n},created_at:new Date().toISOString(),stable_key:null};e(y),s.set(u,g+yc),i.set(u,[]);}}catch(g){}}function c(){let u=window.location.pathname+window.location.search;a(u);}return history.pushState=function(...u){let d=o.apply(this,u);return c(),d},history.replaceState=function(...u){let d=l.apply(this,u);return c(),d},window.addEventListener("popstate",c),()=>{history.pushState=o,history.replaceState=l,window.removeEventListener("popstate",c);}}var bc=6e4;function bs(r,e){if(!r.formDataLoss.enabled)return ()=>{};if(typeof window=="undefined")return ()=>{};let t=new Set,n=new Map,i=new Map,s=new Map;function o(p){let h=p.closest("form");return h?h.id?`#${h.id}`:"form":null}function l(){let p=0;for(let h of n.values())p+=h;return p}function a(p){t.delete(p),n.delete(p),s.delete(p);}function c(p){var h;try{let y=p.target;if(!y||!(y instanceof HTMLInputElement||y instanceof HTMLTextAreaElement||y instanceof HTMLSelectElement))return;let w=o(y);if(!w)return;t.add(w),n.set(w,((h=n.get(w))!=null?h:0)+1);let b=y.closest("form");b&&s.set(w,b);}catch(y){}}function u(p){try{let h=p.target;if(!h||!(h instanceof HTMLFormElement))return;let y=h.id?`#${h.id}`:"form";i.set(y,Date.now()),a(y);}catch(h){}}function d(p){try{let h=p.target;if(!h||!(h instanceof HTMLFormElement))return;let y=h.id?`#${h.id}`:"form";a(y);}catch(h){}}function f(p){var E,I;if(t.size===0)return;let h=Array.from(t),y=(E=h[0])!=null?E:null,w=y&&(I=s.get(y))!=null?I:null,b=w?$e(w):null,S={session_id:Y(),event_type:"form_abandonment",page_url:window.location.href,selector:y,element_text:null,event_data:{cause:p,field_count:l(),forms:h},created_at:new Date().toISOString(),stable_key:b};e(S);}function g(p){if(!p.persisted||t.size===0)return;let h=Date.now();for(let[,y]of i)if(h-y<bc)return;f("bfcache_restore");}function m(){f("beforeunload_after_edit");}return document.addEventListener("input",c,{capture:true,passive:true}),document.addEventListener("submit",u,{capture:true}),document.addEventListener("reset",d,{capture:true}),window.addEventListener("pageshow",g),window.addEventListener("beforeunload",m),()=>{document.removeEventListener("input",c,{capture:true}),document.removeEventListener("submit",u,{capture:true}),document.removeEventListener("reset",d,{capture:true}),window.removeEventListener("pageshow",g),window.removeEventListener("beforeunload",m);}}function wc(){let r={urlChangeCount:0,networkCount:0,filePickerCount:0,uninstall:()=>{}},e=history.pushState,t=history.replaceState;history.pushState=function(...l){return r.urlChangeCount+=1,e.apply(this,l)},history.replaceState=function(...l){return r.urlChangeCount+=1,t.apply(this,l)};let n=()=>{r.urlChangeCount+=1;};window.addEventListener("popstate",n);let i=globalThis.fetch;if(i){let l=(a,c)=>(r.networkCount+=1,i.call(globalThis,a,c));globalThis.fetch=l;}let s=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=function(l,a,...c){return r.networkCount+=1,s.call(this,l,a,...c)};let o=HTMLInputElement.prototype.click;return HTMLInputElement.prototype.click=function(){return this.type==="file"&&(r.filePickerCount+=1),o.call(this)},r.uninstall=()=>{history.pushState=e,history.replaceState=t,window.removeEventListener("popstate",n),i&&(globalThis.fetch=i),XMLHttpRequest.prototype.open=s,HTMLInputElement.prototype.click=o;},r}function ws(r,e){if(!r.deadClick.enabled)return ()=>{};if(typeof window=="undefined")return ()=>{};let{observationWindowMs:t,rateLimitPerSelector:n}=r.deadClick,i=new Map,s=wc();function o(l){var a,c;try{let u=l.target;if(!u||!(u instanceof Element)||l.button!==0||l.metaKey||l.ctrlKey||l.altKey||l.shiftKey||Ft(u,r.ignoreSelectors)||u.closest("label"))return;if(u instanceof HTMLInputElement){let D=u.type;if(D==="checkbox"||D==="radio"||D==="file")return}if(u instanceof HTMLSelectElement||u.closest("a[target='_blank'], a[download]")||u.closest('[contenteditable="true"]'))return;try{let D=window.getSelection();if(D&&D.toString().length>0)return}catch(D){}let d=us(u);if(!d)return;let f=Be(u,4);if(!f)return;let g=$e(u),m=g!=null?g:f,p=s.urlChangeCount,h=s.networkCount,y=s.filePickerCount,w=new Date().toISOString(),b=(a=Pe(u,200))!=null?a:null,S=u.tagName.toLowerCase(),E=u.id||null,I=(c=it(u))!=null?c:null,P=Fe(u,5),A=vc(u),F=0,$=null;if(A){$=new MutationObserver(()=>{F+=1;});try{$.observe(A,{childList:!0,attributes:!0,characterData:!0,subtree:!0});}catch(D){$=null;}}setTimeout(()=>{var C;if($)try{$.disconnect();}catch(re){}if(F>0||s.urlChangeCount!==p||s.networkCount!==h||s.filePickerCount!==y)return;let D=(C=i.get(m))!=null?C:0;if(D>=n)return;i.set(m,D+1);let q={session_id:Y(),event_type:"dead_click",page_url:typeof window=="undefined"?"":window.location.href,selector:f,element_text:b,event_data:{tag_name:S,...E?{element_id:E}:{},...I?{component_name:I}:{},...P.length>0?{parent_components:P}:{},clickable_reason:d},created_at:w,stable_key:g};e(q);},t);}catch(u){}}return document.addEventListener("click",o,{capture:true,passive:true}),()=>{document.removeEventListener("click",o,{capture:true}),s.uninstall();}}function vc(r){let e=r.closest('button, a, form, [role="button"]');return e||r.parentElement}var Sc=Object.defineProperty,Cc=(r,e,t)=>e in r?Sc(r,e,{enumerable:true,configurable:true,writable:true,value:t}):r[e]=t,v=(r,e,t)=>Cc(r,typeof e!="symbol"?e+"":e,t),vs,Ec=Object.defineProperty,Ic=(r,e,t)=>e in r?Ec(r,e,{enumerable:true,configurable:true,writable:true,value:t}):r[e]=t,Ss=(r,e,t)=>Ic(r,typeof e!="symbol"?e+"":e,t),Z=(r=>(r[r.Document=0]="Document",r[r.DocumentType=1]="DocumentType",r[r.Element=2]="Element",r[r.Text=3]="Text",r[r.CDATA=4]="CDATA",r[r.Comment=5]="Comment",r))(Z||{}),Cs={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Es={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},zt={},xc=()=>!!globalThis.Zone;function pi(r){if(zt[r])return zt[r];let e=globalThis[r],t=e.prototype,n=r in Cs?Cs[r]:void 0,i=!!(n&&n.every(l=>{var a,c;return !!((c=(a=Object.getOwnPropertyDescriptor(t,l))==null?void 0:a.get)!=null&&c.toString().includes("[native code]"))})),s=r in Es?Es[r]:void 0,o=!!(s&&s.every(l=>{var a;return typeof t[l]=="function"&&((a=t[l])==null?void 0:a.toString().includes("[native code]"))}));if(i&&o&&!xc())return zt[r]=e.prototype,e.prototype;try{let l=document.createElement("iframe");document.body.appendChild(l);let a=l.contentWindow;if(!a)return e.prototype;let c=a[r].prototype;return document.body.removeChild(l),c?zt[r]=c:t}catch(l){return t}}var fn={};function ve(r,e,t){var n;let i=`${r}.${String(t)}`;if(fn[i])return fn[i].call(e);let s=pi(r),o=(n=Object.getOwnPropertyDescriptor(s,t))==null?void 0:n.get;return o?(fn[i]=o,o.call(e)):e[t]}var dn={};function wo(r,e,t){let n=`${r}.${String(t)}`;if(dn[n])return dn[n].bind(e);let s=pi(r)[t];return typeof s!="function"?e[t]:(dn[n]=s,s.bind(e))}function Rc(r){return ve("Node",r,"ownerDocument")}function Mc(r){return ve("Node",r,"childNodes")}function Tc(r){return ve("Node",r,"parentNode")}function Ac(r){return ve("Node",r,"parentElement")}function kc(r){return ve("Node",r,"textContent")}function _c(r,e){return wo("Node",r,"contains")(e)}function Nc(r){return wo("Node",r,"getRootNode")()}function Oc(r){return !r||!("host"in r)?null:ve("ShadowRoot",r,"host")}function Dc(r){return r.styleSheets}function Lc(r){return !r||!("shadowRoot"in r)?null:ve("Element",r,"shadowRoot")}function Pc(r,e){return ve("Element",r,"querySelector")(e)}function Fc(r,e){return ve("Element",r,"querySelectorAll")(e)}function $c(){return pi("MutationObserver").constructor}function Bc(r,e,t){try{if(!(e in r))return ()=>{};let n=r[e],i=t(n);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),r[e]=i,()=>{r[e]=n;}}catch(n){return ()=>{}}}var J={ownerDocument:Rc,childNodes:Mc,parentNode:Tc,parentElement:Ac,textContent:kc,contains:_c,getRootNode:Nc,host:Oc,styleSheets:Dc,shadowRoot:Lc,querySelector:Pc,querySelectorAll:Fc,mutationObserver:$c,patch:Bc};function vo(r){return r.nodeType===r.ELEMENT_NODE}function ut(r){let e=r&&"host"in r&&"mode"in r&&J.host(r)||null;return !!(e&&"shadowRoot"in e&&J.shadowRoot(e)===r)}function ft(r){return Object.prototype.toString.call(r)==="[object ShadowRoot]"}function Uc(r){return r.includes(" background-clip: text;")&&!r.includes(" -webkit-background-clip: text;")&&(r=r.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),r}function Wc(r){let{cssText:e}=r;if(e.split('"').length<3)return e;let t=["@import",`url(${JSON.stringify(r.href)})`];return r.layerName===""?t.push("layer"):r.layerName&&t.push(`layer(${r.layerName})`),r.supportsText&&t.push(`supports(${r.supportsText})`),r.media.length&&t.push(r.media.mediaText),t.join(" ")+";"}function xn(r){try{let e=r.rules||r.cssRules;if(!e)return null;let t=r.href;!t&&r.ownerNode&&(t=r.ownerNode.baseURI);let n=Array.from(e,i=>So(i,t)).join("");return Uc(n)}catch(e){return null}}function So(r,e){if(zc(r)){let t;try{t=xn(r.styleSheet)||Wc(r);}catch(n){t=r.cssText;}return r.styleSheet.href?Sr(t,r.styleSheet.href):t}else {let t=r.cssText;return Vc(r)&&r.selectorText.includes(":")&&(t=Hc(t)),e?Sr(t,e):t}}function Hc(r){let e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return r.replace(e,"$1\\$2")}function zc(r){return "styleSheet"in r}function Vc(r){return "selectorText"in r}var br=class{constructor(){Ss(this,"idNodeMap",new Map),Ss(this,"nodeMetaMap",new WeakMap);}getId(e){var t;if(!e)return -1;let n=(t=this.getMeta(e))==null?void 0:t.id;return n!=null?n:-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){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(n=>this.removeNodeFromMap(n));}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t);}replace(e,t){let n=this.getNode(e);if(n){let i=this.nodeMetaMap.get(n);i&&this.nodeMetaMap.set(t,i);}this.idNodeMap.set(e,t);}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap;}};function Gc(){return new br}function wr({element:r,maskInputOptions:e,tagName:t,type:n,value:i,maskInputFn:s}){let o=i||"",l=n&&_e(n);return (e[t.toLowerCase()]||l&&e[l])&&(s?o=s(o,r):o="*".repeat(o.length)),o}function _e(r){return r.toLowerCase()}var Is="__rrweb_original__";function jc(r){let e=r.getContext("2d");if(!e)return true;let t=50;for(let n=0;n<r.width;n+=t)for(let i=0;i<r.height;i+=t){let s=e.getImageData,o=Is in s?s[Is]:s;if(new Uint32Array(o.call(e,n,i,Math.min(t,r.width-n),Math.min(t,r.height-i)).data.buffer).some(a=>a!==0))return false}return true}function vr(r){let e=r.type;return r.hasAttribute("data-rr-is-password")?"password":e?_e(e):null}function Co(r,e){var s;let t;try{t=new URL(r,e!=null?e:window.location.href);}catch(o){return null}let n=/\.([0-9a-z]+)(?:$)/i,i=t.pathname.match(n);return (s=i==null?void 0:i[1])!=null?s:null}function Yc(r){let e="";return r.indexOf("//")>-1?e=r.split("/").slice(0,3).join("/"):e=r.split("/")[0],e=e.split("?")[0],e}var Xc=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Zc=/^(?:[a-z+]+:)?\/\//i,Jc=/^www\..*/i,Kc=/^(data:)([^,]*),(.*)/i;function Sr(r,e){return (r||"").replace(Xc,(t,n,i,s,o,l)=>{let a=i||o||l,c=n||s||"";if(!a)return t;if(Zc.test(a)||Jc.test(a))return `url(${c}${a}${c})`;if(Kc.test(a))return `url(${c}${a}${c})`;if(a[0]==="/")return `url(${c}${Yc(e)+a}${c})`;let u=e.split("/"),d=a.split("/");u.pop();for(let f of d)f!=="."&&(f===".."?u.pop():u.push(f));return `url(${c}${u.join("/")}${c})`})}function Vt(r,e=false){return e?r.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):r.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function qc(r,e,t=false){let n=Array.from(e.childNodes),i=[],s=0;if(n.length>1&&r&&typeof r=="string"){let o=Vt(r,t),l=o.length/r.length;for(let a=1;a<n.length;a++)if(n[a].textContent&&typeof n[a].textContent=="string"){let c=Vt(n[a].textContent,t),u=100,d=3;for(;d<c.length&&(c[d].match(/[a-zA-Z0-9]/)||c.indexOf(c.substring(0,d),1)!==-1);d++);for(;d<c.length;d++){let f=c.substring(0,d),g=o.split(f),m=-1;if(g.length===2)m=g[0].length;else if(g.length>2&&g[0]===""&&n[a-1].textContent!=="")m=o.indexOf(f,1);else if(g.length===1){if(f=f.substring(0,f.length-1),g=o.split(f),g.length<=1)return i.push(r),i;d=u+1;}else d===c.length-1&&(m=o.indexOf(f));if(g.length>=2&&d>u){let p=n[a-1].textContent;if(p&&typeof p=="string"){let h=Vt(p).length;m=o.indexOf(f,h);}m===-1&&(m=g[0].length);}if(m!==-1){let p=Math.floor(m/l);for(;p>0&&p<r.length;){if(s+=1,s>50*n.length)return i.push(r),i;let h=Vt(r.substring(0,p),t);if(h.length===m){i.push(r.substring(0,p)),r=r.substring(p),o=o.substring(m);break}else h.length<m?p+=Math.max(1,Math.floor((m-h.length)/l)):p-=Math.max(1,Math.floor((h.length-m)*l));}break}}}}return i.push(r),i}function Qc(r,e){return qc(r,e).join("/* rr_split */")}var eu=1,tu=new RegExp("[^a-z0-9-_:]"),ht=-2;function Eo(){return eu++}function ru(r){if(r instanceof HTMLFormElement)return "form";let e=_e(r.tagName);return tu.test(e)?"div":e}var Ue,xs,nu=/^[^ \t\n\r\u000c]+/,iu=/^[, \t\n\r\u000c]+/;function su(r,e){if(e.trim()==="")return e;let t=0;function n(s){let o,l=s.exec(e.substring(t));return l?(o=l[0],t+=o.length,o):""}let i=[];for(;n(iu),!(t>=e.length);){let s=n(nu);if(s.slice(-1)===",")s=ze(r,s.substring(0,s.length-1)),i.push(s);else {let o="";s=ze(r,s);let l=false;for(;;){let a=e.charAt(t);if(a===""){i.push((s+o).trim());break}else if(l)a===")"&&(l=false);else if(a===","){t+=1,i.push((s+o).trim());break}else a==="("&&(l=true);o+=a,t+=1;}}}return i.join(", ")}var Rs=new WeakMap;function ze(r,e){return !e||e.trim()===""?e:mi(r,e)}function ou(r){return !!(r.tagName==="svg"||r.ownerSVGElement)}function mi(r,e){let t=Rs.get(r);if(t||(t=r.createElement("a"),Rs.set(r,t)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return t.setAttribute("href",e),t.href}function Io(r,e,t,n){return n&&(t==="src"||t==="href"&&!(e==="use"&&n[0]==="#")||t==="xlink:href"&&n[0]!=="#"||t==="background"&&["table","td","th"].includes(e)?ze(r,n):t==="srcset"?su(r,n):t==="style"?Sr(n,mi(r)):e==="object"&&t==="data"?ze(r,n):n)}function xo(r,e,t){return ["video","audio"].includes(r)&&e==="autoplay"}function au(r,e,t){try{if(typeof e=="string"){if(r.classList.contains(e))return !0}else for(let n=r.classList.length;n--;){let i=r.classList[n];if(e.test(i))return !0}if(t)return r.matches(t)}catch(n){}return false}function Cr(r,e,t){if(!r)return false;if(r.nodeType!==r.ELEMENT_NODE)return t?Cr(J.parentNode(r),e,t):false;for(let n=r.classList.length;n--;){let i=r.classList[n];if(e.test(i))return true}return t?Cr(J.parentNode(r),e,t):false}function Ro(r,e,t,n){let i;if(vo(r)){if(i=r,!J.childNodes(i).length)return false}else {if(J.parentElement(r)===null)return false;i=J.parentElement(r);}try{if(typeof e=="string"){if(n){if(i.closest(`.${e}`))return !0}else if(i.classList.contains(e))return !0}else if(Cr(i,e,n))return !0;if(t){if(n){if(i.closest(t))return !0}else if(i.matches(t))return !0}}catch(s){}return false}function lu(r,e,t){let n=r.contentWindow;if(!n)return;let i=false,s;try{s=n.document.readyState;}catch(l){return}if(s!=="complete"){let l=setTimeout(()=>{i||(e(),i=true);},t);r.addEventListener("load",()=>{clearTimeout(l),i=true,e();});return}let o="about:blank";if(n.location.href!==o||r.src===o||r.src==="")return setTimeout(e,0),r.addEventListener("load",e);r.addEventListener("load",e);}function cu(r,e,t){let n=false,i;try{i=r.sheet;}catch(o){return}if(i)return;let s=setTimeout(()=>{n||(e(),n=true);},t);r.addEventListener("load",()=>{clearTimeout(s),n=true,e();});}function uu(r,e){let{doc:t,mirror:n,blockClass:i,blockSelector:s,needsMask:o,inlineStylesheet:l,maskInputOptions:a={},maskTextFn:c,maskInputFn:u,dataURLOptions:d={},inlineImages:f,recordCanvas:g,keepIframeSrcFn:m,newlyAddedElement:p=false,cssCaptured:h=false}=e,y=fu(t,n);switch(r.nodeType){case r.DOCUMENT_NODE:return r.compatMode!=="CSS1Compat"?{type:Z.Document,childNodes:[],compatMode:r.compatMode}:{type:Z.Document,childNodes:[]};case r.DOCUMENT_TYPE_NODE:return {type:Z.DocumentType,name:r.name,publicId:r.publicId,systemId:r.systemId,rootId:y};case r.ELEMENT_NODE:return hu(r,{doc:t,blockClass:i,blockSelector:s,inlineStylesheet:l,maskInputOptions:a,maskInputFn:u,dataURLOptions:d,inlineImages:f,recordCanvas:g,keepIframeSrcFn:m,newlyAddedElement:p,rootId:y});case r.TEXT_NODE:return du(r,{doc:t,needsMask:o,maskTextFn:c,rootId:y,cssCaptured:h});case r.CDATA_SECTION_NODE:return {type:Z.CDATA,textContent:"",rootId:y};case r.COMMENT_NODE:return {type:Z.Comment,textContent:J.textContent(r)||"",rootId:y};default:return false}}function fu(r,e){if(!e.hasNode(r))return;let t=e.getId(r);return t===1?void 0:t}function du(r,e){let{needsMask:t,maskTextFn:n,rootId:i,cssCaptured:s}=e,o=J.parentNode(r),l=o&&o.tagName,a="",c=l==="STYLE"?true:void 0,u=l==="SCRIPT"?true:void 0;return u?a="SCRIPT_PLACEHOLDER":s||(a=J.textContent(r),c&&a&&(a=Sr(a,mi(e.doc)))),!c&&!u&&a&&t&&(a=n?n(a,J.parentElement(r)):a.replace(/[\S]/g,"*")),{type:Z.Text,textContent:a||"",rootId:i}}function hu(r,e){let{doc:t,blockClass:n,blockSelector:i,inlineStylesheet:s,maskInputOptions:o={},maskInputFn:l,dataURLOptions:a={},inlineImages:c,recordCanvas:u,keepIframeSrcFn:d,newlyAddedElement:f=false,rootId:g}=e,m=au(r,n,i),p=ru(r),h={},y=r.attributes.length;for(let b=0;b<y;b++){let S=r.attributes[b];xo(p,S.name,S.value)||(h[S.name]=Io(t,p,_e(S.name),S.value));}if(p==="link"&&s){let b=Array.from(t.styleSheets).find(E=>E.href===r.href),S=null;b&&(S=xn(b)),S&&(delete h.rel,delete h.href,h._cssText=S);}if(p==="style"&&r.sheet){let b=xn(r.sheet);b&&(r.childNodes.length>1&&(b=Qc(b,r)),h._cssText=b);}if(["input","textarea","select"].includes(p)){let b=r.value,S=r.checked;h.type!=="radio"&&h.type!=="checkbox"&&h.type!=="submit"&&h.type!=="button"&&b?h.value=wr({element:r,type:vr(r),tagName:p,value:b,maskInputOptions:o,maskInputFn:l}):S&&(h.checked=S);}if(p==="option"&&(r.selected&&!o.select?h.selected=true:delete h.selected),p==="dialog"&&r.open&&(h.rr_open_mode=r.matches("dialog:modal")?"modal":"non-modal"),p==="canvas"&&u){if(r.__context==="2d")jc(r)||(h.rr_dataURL=r.toDataURL(a.type,a.quality));else if(!("__context"in r)){let b=r.toDataURL(a.type,a.quality),S=t.createElement("canvas");S.width=r.width,S.height=r.height;let E=S.toDataURL(a.type,a.quality);b!==E&&(h.rr_dataURL=b);}}if(p==="img"&&c){Ue||(Ue=t.createElement("canvas"),xs=Ue.getContext("2d"));let b=r,S=b.currentSrc||b.getAttribute("src")||"<unknown-src>",E=b.crossOrigin,I=()=>{b.removeEventListener("load",I);try{Ue.width=b.naturalWidth,Ue.height=b.naturalHeight,xs.drawImage(b,0,0),h.rr_dataURL=Ue.toDataURL(a.type,a.quality);}catch(P){if(b.crossOrigin!=="anonymous"){b.crossOrigin="anonymous",b.complete&&b.naturalWidth!==0?I():b.addEventListener("load",I);return}else console.warn(`Cannot inline img src=${S}! Error: ${P}`);}b.crossOrigin==="anonymous"&&(E?h.crossOrigin=E:b.removeAttribute("crossorigin"));};b.complete&&b.naturalWidth!==0?I():b.addEventListener("load",I);}if(["audio","video"].includes(p)){let b=h;b.rr_mediaState=r.paused?"paused":"played",b.rr_mediaCurrentTime=r.currentTime,b.rr_mediaPlaybackRate=r.playbackRate,b.rr_mediaMuted=r.muted,b.rr_mediaLoop=r.loop,b.rr_mediaVolume=r.volume;}if(f||(r.scrollLeft&&(h.rr_scrollLeft=r.scrollLeft),r.scrollTop&&(h.rr_scrollTop=r.scrollTop)),m){let{width:b,height:S}=r.getBoundingClientRect();h={class:h.class,rr_width:`${b}px`,rr_height:`${S}px`};}p==="iframe"&&!d(h.src)&&(r.contentDocument||(h.rr_src=h.src),delete h.src);let w;try{customElements.get(p)&&(w=!0);}catch(b){}return {type:Z.Element,tagName:p,attributes:h,childNodes:[],isSVG:ou(r)||void 0,needBlock:m,rootId:g,isCustom:w}}function L(r){return r==null?"":r.toLowerCase()}function Mo(r){return r===true||r==="all"?{script:true,comment:true,headFavicon:true,headWhitespace:true,headMetaSocial:true,headMetaRobots:true,headMetaHttpEquiv:true,headMetaVerification:true,headMetaAuthorship:r==="all",headMetaDescKeywords:r==="all",headTitleMutations:r==="all"}:r||{}}function pu(r,e){if(e.comment&&r.type===Z.Comment)return true;if(r.type===Z.Element){if(e.script&&(r.tagName==="script"||r.tagName==="link"&&(r.attributes.rel==="preload"&&r.attributes.as==="script"||r.attributes.rel==="modulepreload")||r.tagName==="link"&&r.attributes.rel==="prefetch"&&typeof r.attributes.href=="string"&&Co(r.attributes.href)==="js"))return true;if(e.headFavicon&&(r.tagName==="link"&&r.attributes.rel==="shortcut icon"||r.tagName==="meta"&&(L(r.attributes.name).match(/^msapplication-tile(image|color)$/)||L(r.attributes.name)==="application-name"||L(r.attributes.rel)==="icon"||L(r.attributes.rel)==="apple-touch-icon"||L(r.attributes.rel)==="shortcut icon")))return true;if(r.tagName==="meta"){if(e.headMetaDescKeywords&&L(r.attributes.name).match(/^description|keywords$/))return true;if(e.headMetaSocial&&(L(r.attributes.property).match(/^(og|twitter|fb):/)||L(r.attributes.name).match(/^(og|twitter):/)||L(r.attributes.name)==="pinterest"))return true;if(e.headMetaRobots&&(L(r.attributes.name)==="robots"||L(r.attributes.name)==="googlebot"||L(r.attributes.name)==="bingbot"))return true;if(e.headMetaHttpEquiv&&r.attributes["http-equiv"]!==void 0)return true;if(e.headMetaAuthorship&&(L(r.attributes.name)==="author"||L(r.attributes.name)==="generator"||L(r.attributes.name)==="framework"||L(r.attributes.name)==="publisher"||L(r.attributes.name)==="progid"||L(r.attributes.property).match(/^article:/)||L(r.attributes.property).match(/^product:/)))return true;if(e.headMetaVerification&&(L(r.attributes.name)==="google-site-verification"||L(r.attributes.name)==="yandex-verification"||L(r.attributes.name)==="csrf-token"||L(r.attributes.name)==="p:domain_verify"||L(r.attributes.name)==="verify-v1"||L(r.attributes.name)==="verification"||L(r.attributes.name)==="shopify-checkout-api-token"))return true}}return false}function Ve(r,e){let{doc:t,mirror:n,blockClass:i,blockSelector:s,maskTextClass:o,maskTextSelector:l,skipChild:a=false,inlineStylesheet:c=true,maskInputOptions:u={},maskTextFn:d,maskInputFn:f,slimDOMOptions:g,dataURLOptions:m={},inlineImages:p=false,recordCanvas:h=false,onSerialize:y,onIframeLoad:w,iframeLoadTimeout:b=5e3,onStylesheetLoad:S,stylesheetLoadTimeout:E=5e3,keepIframeSrcFn:I=()=>false,newlyAddedElement:P=false,cssCaptured:A=false}=e,{needsMask:F}=e,{preserveWhiteSpace:$=true}=e;F||(F=Ro(r,o,l,F===void 0));let D=uu(r,{doc:t,mirror:n,blockClass:i,blockSelector:s,needsMask:F,inlineStylesheet:c,maskInputOptions:u,maskTextFn:d,maskInputFn:f,dataURLOptions:m,inlineImages:p,recordCanvas:h,keepIframeSrcFn:I,newlyAddedElement:P,cssCaptured:A});if(!D)return console.warn(r,"not serialized"),null;let q;n.hasNode(r)?q=n.getId(r):pu(D,g)||!$&&D.type===Z.Text&&!D.textContent.replace(/^\s+|\s+$/gm,"").length?q=ht:q=Eo();let C=Object.assign(D,{id:q});if(n.add(r,C),q===ht)return null;y&&y(r);let re=!a;if(C.type===Z.Element){re=re&&!C.needBlock,delete C.needBlock;let j=J.shadowRoot(r);j&&ft(j)&&(C.isShadowHost=true);}if((C.type===Z.Document||C.type===Z.Element)&&re){g.headWhitespace&&C.type===Z.Element&&C.tagName==="head"&&($=false);let j={doc:t,mirror:n,blockClass:i,blockSelector:s,needsMask:F,maskTextClass:o,maskTextSelector:l,skipChild:a,inlineStylesheet:c,maskInputOptions:u,maskTextFn:d,maskInputFn:f,slimDOMOptions:g,dataURLOptions:m,inlineImages:p,recordCanvas:h,preserveWhiteSpace:$,onSerialize:y,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:S,stylesheetLoadTimeout:E,keepIframeSrcFn:I,cssCaptured:false};if(!(C.type===Z.Element&&C.tagName==="textarea"&&C.attributes.value!==void 0)){C.type===Z.Element&&C.attributes._cssText!==void 0&&typeof C.attributes._cssText=="string"&&(j.cssCaptured=true);for(let Me of Array.from(J.childNodes(r))){let he=Ve(Me,j);he&&C.childNodes.push(he);}}let se=null;if(vo(r)&&(se=J.shadowRoot(r)))for(let Me of Array.from(J.childNodes(se))){let he=Ve(Me,j);he&&(ft(se)&&(he.isShadow=true),C.childNodes.push(he));}}let Re=J.parentNode(r);return Re&&ut(Re)&&ft(Re)&&(C.isShadow=true),C.type===Z.Element&&C.tagName==="iframe"&&lu(r,()=>{let j=r.contentDocument;if(j&&w){let se=Ve(j,{doc:j,mirror:n,blockClass:i,blockSelector:s,needsMask:F,maskTextClass:o,maskTextSelector:l,skipChild:false,inlineStylesheet:c,maskInputOptions:u,maskTextFn:d,maskInputFn:f,slimDOMOptions:g,dataURLOptions:m,inlineImages:p,recordCanvas:h,preserveWhiteSpace:$,onSerialize:y,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:S,stylesheetLoadTimeout:E,keepIframeSrcFn:I});se&&w(r,se);}},b),C.type===Z.Element&&C.tagName==="link"&&typeof C.attributes.rel=="string"&&(C.attributes.rel==="stylesheet"||C.attributes.rel==="preload"&&typeof C.attributes.href=="string"&&Co(C.attributes.href)==="css")&&cu(r,()=>{if(S){let j=Ve(r,{doc:t,mirror:n,blockClass:i,blockSelector:s,needsMask:F,maskTextClass:o,maskTextSelector:l,skipChild:false,inlineStylesheet:c,maskInputOptions:u,maskTextFn:d,maskInputFn:f,slimDOMOptions:g,dataURLOptions:m,inlineImages:p,recordCanvas:h,preserveWhiteSpace:$,onSerialize:y,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:S,stylesheetLoadTimeout:E,keepIframeSrcFn:I});j&&S(r,j);}},E),C}function mu(r,e){let{mirror:t=new br,blockClass:n="rr-block",blockSelector:i=null,maskTextClass:s="rr-mask",maskTextSelector:o=null,inlineStylesheet:l=true,inlineImages:a=false,recordCanvas:c=false,maskAllInputs:u=false,maskTextFn:d,maskInputFn:f,slimDOM:g=false,dataURLOptions:m,preserveWhiteSpace:p,onSerialize:h,onIframeLoad:y,iframeLoadTimeout:w,onStylesheetLoad:b,stylesheetLoadTimeout:S,keepIframeSrcFn:E=()=>false}=e||{},I=u===true?{color:true,date:true,"datetime-local":true,email:true,month:true,number:true,range:true,search:true,tel:true,text:true,time:true,url:true,week:true,textarea:true,select:true,password:true}:u===false?{password:true}:u,P=Mo(g);return Ve(r,{doc:r,mirror:t,blockClass:n,blockSelector:i,maskTextClass:s,maskTextSelector:o,skipChild:false,inlineStylesheet:l,maskInputOptions:I,maskTextFn:d,maskInputFn:f,slimDOMOptions:P,dataURLOptions:m,inlineImages:a,recordCanvas:c,preserveWhiteSpace:p,onSerialize:h,onIframeLoad:y,iframeLoadTimeout:w,onStylesheetLoad:b,stylesheetLoadTimeout:S,keepIframeSrcFn:E,newlyAddedElement:false})}function yu(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function bu(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype;}else t={};return Object.defineProperty(t,"__esModule",{value:true}),Object.keys(r).forEach(function(n){var i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,i.get?i:{enumerable:true,get:function(){return r[n]}});}),t}var gi={exports:{}},B=String,To=function(){return {isColorSupported:false,reset:B,bold:B,dim:B,italic:B,underline:B,inverse:B,hidden:B,strikethrough:B,black:B,red:B,green:B,yellow:B,blue:B,magenta:B,cyan:B,white:B,gray:B,bgBlack:B,bgRed:B,bgGreen:B,bgYellow:B,bgBlue:B,bgMagenta:B,bgCyan:B,bgWhite:B}};gi.exports=To();gi.exports.createColors=To;var wu=gi.exports,vu={},Su=Object.freeze(Object.defineProperty({__proto__:null,default:vu},Symbol.toStringTag,{value:"Module"})),ue=bu(Su),Ms=wu,Ts=ue,Rn=class Ao extends Error{constructor(e,t,n,i,s,o){super(e),this.name="CssSyntaxError",this.reason=e,s&&(this.file=s),i&&(this.source=i),o&&(this.plugin=o),typeof t!="undefined"&&typeof n!="undefined"&&(typeof t=="number"?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Ao);}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=Ms.isColorSupported),Ts&&e&&(t=Ts(t));let n=t.split(/\r?\n/),i=Math.max(this.line-3,0),s=Math.min(this.line+2,n.length),o=String(s).length,l,a;if(e){let{bold:c,gray:u,red:d}=Ms.createColors(true);l=f=>c(d(f)),a=f=>u(f);}else l=a=c=>c;return n.slice(i,s).map((c,u)=>{let d=i+1+u,f=" "+(" "+d).slice(-o)+" | ";if(d===this.line){let g=a(f.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(f)+c+`
1
+ var BlocFeedScript=(function(exports){'use strict';var pc=Object.defineProperty;var pe=(r,e)=>()=>(r&&(e=r(r=0)),e);var mc=(r,e)=>{for(var t in e)pc(r,t,{get:e[t],enumerable:true});};function kl(r,e){if(r.match(/^[a-z]+:\/\//i))return r;if(r.match(/^\/\//))return window.location.protocol+r;if(r.match(/^[a-z]+:/i))return r;let t=document.implementation.createHTMLDocument(),n=t.createElement("base"),i=t.createElement("a");return t.head.appendChild(n),t.body.appendChild(i),e&&(n.href=e),i.href=r,i.href}function de(r){let e=[];for(let t=0,n=r.length;t<n;t++)e.push(r[t]);return e}function en(r={}){return rt||(r.includeStyleProperties?(rt=r.includeStyleProperties,rt):(rt=de(window.getComputedStyle(document.documentElement)),rt))}function Qr(r,e){let n=(r.ownerDocument.defaultView||window).getComputedStyle(r).getPropertyValue(e);return n?parseFloat(n.replace("px","")):0}function Mm(r){let e=Qr(r,"border-left-width"),t=Qr(r,"border-right-width");return r.clientWidth+e+t}function Tm(r){let e=Qr(r,"border-top-width"),t=Qr(r,"border-bottom-width");return r.clientHeight+e+t}function tn(r,e={}){let t=e.width||Mm(r),n=e.height||Tm(r);return {width:t,height:n}}function Ol(){let r,e;try{e=process;}catch(n){}let t=e&&e.env?e.env.devicePixelRatio:null;return t&&(r=parseInt(t,10),Number.isNaN(r)&&(r=1)),r||window.devicePixelRatio||1}function Dl(r){(r.width>ie||r.height>ie)&&(r.width>ie&&r.height>ie?r.width>r.height?(r.height*=ie/r.width,r.width=ie):(r.width*=ie/r.height,r.height=ie):r.width>ie?(r.height*=ie/r.width,r.width=ie):(r.width*=ie/r.height,r.height=ie));}function Ll(r,e={}){return r.toBlob?new Promise(t=>{r.toBlob(t,e.type?e.type:"image/png",e.quality?e.quality:1);}):new Promise(t=>{let n=window.atob(r.toDataURL(e.type?e.type:void 0,e.quality?e.quality:void 0).split(",")[1]),i=n.length,s=new Uint8Array(i);for(let o=0;o<i;o+=1)s[o]=n.charCodeAt(o);t(new Blob([s],{type:e.type?e.type:"image/png"}));})}function nt(r){return new Promise((e,t)=>{let n=new Image;n.onload=()=>{n.decode().then(()=>{requestAnimationFrame(()=>e(n));});},n.onerror=t,n.crossOrigin="anonymous",n.decoding="async",n.src=r;})}async function Am(r){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(r)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function Pl(r,e,t){let n="http://www.w3.org/2000/svg",i=document.createElementNS(n,"svg"),s=document.createElementNS(n,"foreignObject");return i.setAttribute("width",`${e}`),i.setAttribute("height",`${t}`),i.setAttribute("viewBox",`0 0 ${e} ${t}`),s.setAttribute("width","100%"),s.setAttribute("height","100%"),s.setAttribute("x","0"),s.setAttribute("y","0"),s.setAttribute("externalResourcesRequired","true"),i.appendChild(s),s.appendChild(r),Am(i)}var Nl,rt,ie,K,Fe=pe(()=>{Nl=(()=>{let r=0,e=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return ()=>(r+=1,`u${e()}${r}`)})();rt=null;ie=16384;K=(r,e)=>{if(r instanceof e)return true;let t=Object.getPrototypeOf(r);return t===null?false:t.constructor.name===e.name||K(t,e)};});function _m(r){let e=r.getPropertyValue("content");return `${r.cssText} content: '${e.replace(/'|"/g,"")}';`}function km(r,e){return en(e).map(t=>{let n=r.getPropertyValue(t),i=r.getPropertyPriority(t);return `${t}: ${n}${i?" !important":""};`}).join(" ")}function Nm(r,e,t,n){let i=`.${r}:${e}`,s=t.cssText?_m(t):km(t,n);return document.createTextNode(`${i}{${s}}`)}function Fl(r,e,t,n){let i=window.getComputedStyle(r,t),s=i.getPropertyValue("content");if(s===""||s==="none")return;let o=Nl();try{e.className=`${e.className} ${o}`;}catch(a){return}let l=document.createElement("style");l.appendChild(Nm(o,t,i,n)),e.appendChild(l);}function $l(r,e,t){Fl(r,e,":before",t),Fl(r,e,":after",t);}var Bl=pe(()=>{Fe();});function Dm(r){let e=/\.([^./]*?)$/g.exec(r);return e?e[1]:""}function it(r){let e=Dm(r).toLowerCase();return Om[e]||""}var Ul,Wl,Om,rn=pe(()=>{Ul="application/font-woff",Wl="image/jpeg",Om={woff:Ul,woff2:Ul,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Wl,jpeg:Wl,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};});function Lm(r){return r.split(/,/)[1]}function kt(r){return r.search(/^(data:)/)!==-1}function Gi(r,e){return `data:${e};base64,${r}`}async function ji(r,e,t){let n=await fetch(r,e);if(n.status===404)throw new Error(`Resource "${n.url}" not found`);let i=await n.blob();return new Promise((s,o)=>{let l=new FileReader;l.onerror=o,l.onloadend=()=>{try{s(t({res:n,result:l.result}));}catch(a){o(a);}},l.readAsDataURL(i);})}function Pm(r,e,t){let n=r.replace(/\?.*/,"");return t&&(n=r),/ttf|otf|eot|woff2?/i.test(n)&&(n=n.replace(/.*\//,"")),e?`[${e}]${n}`:n}async function st(r,e,t){let n=Pm(r,e,t.includeQueryParams);if(Vi[n]!=null)return Vi[n];t.cacheBust&&(r+=(/\?/.test(r)?"&":"?")+new Date().getTime());let i;try{let s=await ji(r,t.fetchRequestInit,({res:o,result:l})=>(e||(e=o.headers.get("Content-Type")||""),Lm(l)));i=Gi(s,e);}catch(s){i=t.imagePlaceholder||"";let o=`Failed to fetch resource: ${r}`;s&&(o=typeof s=="string"?s:s.message),o&&console.warn(o);}return Vi[n]=i,i}var Vi,Nt=pe(()=>{Vi={};});async function Fm(r){let e=r.toDataURL();return e==="data:,"?r.cloneNode(false):nt(e)}async function $m(r,e){if(r.currentSrc){let s=document.createElement("canvas"),o=s.getContext("2d");s.width=r.clientWidth,s.height=r.clientHeight,o==null||o.drawImage(r,0,0,s.width,s.height);let l=s.toDataURL();return nt(l)}let t=r.poster,n=it(t),i=await st(t,n,e);return nt(i)}async function Bm(r,e){var t;try{if(!((t=r==null?void 0:r.contentDocument)===null||t===void 0)&&t.body)return await Ot(r.contentDocument.body,e,!0)}catch(n){}return r.cloneNode(false)}async function Um(r,e){return K(r,HTMLCanvasElement)?Fm(r):K(r,HTMLVideoElement)?$m(r,e):K(r,HTMLIFrameElement)?Bm(r,e):r.cloneNode(Hl(r))}async function Hm(r,e,t){var n,i;if(Hl(e))return e;let s=[];return Wm(r)&&r.assignedNodes?s=de(r.assignedNodes()):K(r,HTMLIFrameElement)&&(!((n=r.contentDocument)===null||n===void 0)&&n.body)?s=de(r.contentDocument.body.childNodes):s=de(((i=r.shadowRoot)!==null&&i!==void 0?i:r).childNodes),s.length===0||K(r,HTMLVideoElement)||await s.reduce((o,l)=>o.then(()=>Ot(l,t)).then(a=>{a&&e.appendChild(a);}),Promise.resolve()),e}function zm(r,e,t){let n=e.style;if(!n)return;let i=window.getComputedStyle(r);i.cssText?(n.cssText=i.cssText,n.transformOrigin=i.transformOrigin):en(t).forEach(s=>{let o=i.getPropertyValue(s);s==="font-size"&&o.endsWith("px")&&(o=`${Math.floor(parseFloat(o.substring(0,o.length-2)))-.1}px`),K(r,HTMLIFrameElement)&&s==="display"&&o==="inline"&&(o="block"),s==="d"&&e.getAttribute("d")&&(o=`path(${e.getAttribute("d")})`),n.setProperty(s,o,i.getPropertyPriority(s));});}function Vm(r,e){K(r,HTMLTextAreaElement)&&(e.innerHTML=r.value),K(r,HTMLInputElement)&&e.setAttribute("value",r.value);}function Gm(r,e){if(K(r,HTMLSelectElement)){let n=Array.from(e.children).find(i=>r.value===i.getAttribute("value"));n&&n.setAttribute("selected","");}}function jm(r,e,t){return K(e,Element)&&(zm(r,e,t),$l(r,e,t),Vm(r,e),Gm(r,e)),e}async function Ym(r,e){let t=r.querySelectorAll?r.querySelectorAll("use"):[];if(t.length===0)return r;let n={};for(let s=0;s<t.length;s++){let l=t[s].getAttribute("xlink:href");if(l){let a=r.querySelector(l),c=document.querySelector(l);!a&&c&&!n[l]&&(n[l]=await Ot(c,e,true));}}let i=Object.values(n);if(i.length){let s="http://www.w3.org/1999/xhtml",o=document.createElementNS(s,"svg");o.setAttribute("xmlns",s),o.style.position="absolute",o.style.width="0",o.style.height="0",o.style.overflow="hidden",o.style.display="none";let l=document.createElementNS(s,"defs");o.appendChild(l);for(let a=0;a<i.length;a++)l.appendChild(i[a]);r.appendChild(o);}return r}async function Ot(r,e,t){return !t&&e.filter&&!e.filter(r)?null:Promise.resolve(r).then(n=>Um(n,e)).then(n=>Hm(r,n,e)).then(n=>jm(r,n,e)).then(n=>Ym(n,e))}var Wm,Hl,zl=pe(()=>{Bl();Fe();rn();Nt();Wm=r=>r.tagName!=null&&r.tagName.toUpperCase()==="SLOT",Hl=r=>r.tagName!=null&&r.tagName.toUpperCase()==="SVG";});function Zm(r){let e=r.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${e})(['"]?\\))`,"g")}function Km(r){let e=[];return r.replace(Vl,(t,n,i)=>(e.push(i),t)),e.filter(t=>!kt(t))}async function qm(r,e,t,n,i){try{let s=t?kl(e,t):e,o=it(e),l;if(i);else l=await st(s,o,n);return r.replace(Zm(e),`$1${l}$3`)}catch(s){}return r}function Qm(r,{preferredFontFormat:e}){return e?r.replace(Jm,t=>{for(;;){let[n,,i]=Xm.exec(t)||[];if(!i)return "";if(i===e)return `src: ${n};`}}):r}function Yi(r){return r.search(Vl)!==-1}async function nn(r,e,t){if(!Yi(r))return r;let n=Qm(r,t);return Km(n).reduce((s,o)=>s.then(l=>qm(l,o,e,t)),Promise.resolve(n))}var Vl,Xm,Jm,Xi=pe(()=>{Fe();rn();Nt();Vl=/url\((['"]?)([^'"]+?)\1\)/g,Xm=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Jm=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;});async function ot(r,e,t){var n;let i=(n=e.style)===null||n===void 0?void 0:n.getPropertyValue(r);if(i){let s=await nn(i,null,t);return e.style.setProperty(r,s,e.style.getPropertyPriority(r)),true}return false}async function eg(r,e){await ot("background",r,e)||await ot("background-image",r,e),await ot("mask",r,e)||await ot("-webkit-mask",r,e)||await ot("mask-image",r,e)||await ot("-webkit-mask-image",r,e);}async function tg(r,e){let t=K(r,HTMLImageElement);if(!(t&&!kt(r.src))&&!(K(r,SVGImageElement)&&!kt(r.href.baseVal)))return;let n=t?r.src:r.href.baseVal,i=await st(n,it(n),e);await new Promise((s,o)=>{r.onload=s,r.onerror=e.onImageErrorHandler?(...a)=>{try{s(e.onImageErrorHandler(...a));}catch(c){o(c);}}:o;let l=r;l.decode&&(l.decode=s),l.loading==="lazy"&&(l.loading="eager"),t?(r.srcset="",r.src=i):r.href.baseVal=i;});}async function rg(r,e){let n=de(r.childNodes).map(i=>Ji(i,e));await Promise.all(n).then(()=>r);}async function Ji(r,e){K(r,Element)&&(await eg(r,e),await tg(r,e),await rg(r,e));}var Gl=pe(()=>{Xi();Fe();Nt();rn();});function jl(r,e){let{style:t}=r;e.backgroundColor&&(t.backgroundColor=e.backgroundColor),e.width&&(t.width=`${e.width}px`),e.height&&(t.height=`${e.height}px`);let n=e.style;return n!=null&&Object.keys(n).forEach(i=>{t[i]=n[i];}),r}var Yl=pe(()=>{});async function Jl(r){let e=Xl[r];if(e!=null)return e;let n=await(await fetch(r)).text();return e={url:r,cssText:n},Xl[r]=e,e}async function Zl(r,e){let t=r.cssText,n=/url\(["']?([^"')]+)["']?\)/g,s=(t.match(/url\([^)]+\)/g)||[]).map(async o=>{let l=o.replace(n,"$1");return l.startsWith("https://")||(l=new URL(l,r.url).href),ji(l,e.fetchRequestInit,({result:a})=>(t=t.replace(o,`url(${a})`),[o,a]))});return Promise.all(s).then(()=>t)}function Kl(r){if(r==null)return [];let e=[],t=/(\/\*[\s\S]*?\*\/)/gi,n=r.replace(t,""),i=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){let a=i.exec(n);if(a===null)break;e.push(a[0]);}n=n.replace(i,"");let s=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",l=new RegExp(o,"gi");for(;;){let a=s.exec(n);if(a===null){if(a=l.exec(n),a===null)break;s.lastIndex=l.lastIndex;}else l.lastIndex=s.lastIndex;e.push(a[0]);}return e}async function ng(r,e){let t=[],n=[];return r.forEach(i=>{if("cssRules"in i)try{de(i.cssRules||[]).forEach((s,o)=>{if(s.type===CSSRule.IMPORT_RULE){let l=o+1,a=s.href,c=Jl(a).then(u=>Zl(u,e)).then(u=>Kl(u).forEach(d=>{try{i.insertRule(d,d.startsWith("@import")?l+=1:i.cssRules.length);}catch(f){console.error("Error inserting rule from remote css",{rule:d,error:f});}})).catch(u=>{console.error("Error loading remote css",u.toString());});n.push(c);}});}catch(s){let o=r.find(l=>l.href==null)||document.styleSheets[0];i.href!=null&&n.push(Jl(i.href).then(l=>Zl(l,e)).then(l=>Kl(l).forEach(a=>{o.insertRule(a,o.cssRules.length);})).catch(l=>{console.error("Error loading remote stylesheet",l);})),console.error("Error inlining remote css file",s);}}),Promise.all(n).then(()=>(r.forEach(i=>{if("cssRules"in i)try{de(i.cssRules||[]).forEach(s=>{t.push(s);});}catch(s){console.error(`Error while reading CSS rules from ${i.href}`,s);}}),t))}function ig(r){return r.filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>Yi(e.style.getPropertyValue("src")))}async function sg(r,e){if(r.ownerDocument==null)throw new Error("Provided element is not within a Document");let t=de(r.ownerDocument.styleSheets),n=await ng(t,e);return ig(n)}function ql(r){return r.trim().replace(/["']/g,"")}function og(r){let e=new Set;function t(n){(n.style.fontFamily||getComputedStyle(n).fontFamily).split(",").forEach(s=>{e.add(ql(s));}),Array.from(n.children).forEach(s=>{s instanceof HTMLElement&&t(s);});}return t(r),e}async function Zi(r,e){let t=await sg(r,e),n=og(r);return (await Promise.all(t.filter(s=>n.has(ql(s.style.fontFamily))).map(s=>{let o=s.parentStyleSheet?s.parentStyleSheet.href:null;return nn(s.cssText,o,e)}))).join(`
2
+ `)}async function Ql(r,e){let t=e.fontEmbedCSS!=null?e.fontEmbedCSS:e.skipFonts?null:await Zi(r,e);if(t){let n=document.createElement("style"),i=document.createTextNode(t);n.appendChild(i),r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n);}}var Xl,ec=pe(()=>{Fe();Nt();Xi();Xl={};});var rc={};mc(rc,{getFontEmbedCSS:()=>fg,toBlob:()=>ug,toCanvas:()=>Dt,toJpeg:()=>cg,toPixelData:()=>ag,toPng:()=>lg,toSvg:()=>tc});async function tc(r,e={}){let{width:t,height:n}=tn(r,e),i=await Ot(r,e,true);return await Ql(i,e),await Ji(i,e),jl(i,e),await Pl(i,t,n)}async function Dt(r,e={}){let{width:t,height:n}=tn(r,e),i=await tc(r,e),s=await nt(i),o=document.createElement("canvas"),l=o.getContext("2d"),a=e.pixelRatio||Ol(),c=e.canvasWidth||t,u=e.canvasHeight||n;return o.width=c*a,o.height=u*a,e.skipAutoScale||Dl(o),o.style.width=`${c}`,o.style.height=`${u}`,e.backgroundColor&&(l.fillStyle=e.backgroundColor,l.fillRect(0,0,o.width,o.height)),l.drawImage(s,0,0,o.width,o.height),o}async function ag(r,e={}){let{width:t,height:n}=tn(r,e);return (await Dt(r,e)).getContext("2d").getImageData(0,0,t,n).data}async function lg(r,e={}){return (await Dt(r,e)).toDataURL()}async function cg(r,e={}){return (await Dt(r,e)).toDataURL("image/jpeg",e.quality||1)}async function ug(r,e={}){let t=await Dt(r,e);return await Ll(t)}async function fg(r,e={}){return Zi(r,e)}var nc=pe(()=>{zl();Gl();Yl();ec();Fe();});var gc={enabled:true,sampling:1,ignoreSelectors:["[data-blocfeed-ui]","[data-blocfeed-ignore]"],rageClick:{enabled:true,threshold:3,windowMs:1e3,streakIdleMs:1500},httpFail:{enabled:true,statusCodes:[400,401,403,404,408,409,422,429,500,502,503,504],ignoreUrls:["/api/behavioral-events","/api/feedback"],treatJsonErrorAsFail:false},redirectLoop:{enabled:true,threshold:3,windowMs:2e3},formDataLoss:{enabled:true},deadClick:{enabled:true,observationWindowMs:300,rateLimitPerSelector:5},jsError:{enabled:true,sampling:1,ignorePatterns:[],rateLimitPerFingerprint:5,rateLimitWindowMs:6e4},sessionTimeout:{enabled:true,idleMs:18e5,maxMs:144e5},piiScrub:"default"};function ls(r){var t,n,i,s,o,l,a,c,u,d,f;let e=gc;return {enabled:(t=r==null?void 0:r.enabled)!=null?t:e.enabled,sampling:(n=r==null?void 0:r.sampling)!=null?n:e.sampling,ignoreSelectors:(i=r==null?void 0:r.ignoreSelectors)!=null?i:e.ignoreSelectors,rageClick:{...e.rageClick,...(s=r==null?void 0:r.rageClick)!=null?s:{}},httpFail:{...e.httpFail,...(o=r==null?void 0:r.httpFail)!=null?o:{}},redirectLoop:{...e.redirectLoop,...(l=r==null?void 0:r.redirectLoop)!=null?l:{}},formDataLoss:{...e.formDataLoss,...(a=r==null?void 0:r.formDataLoss)!=null?a:{}},deadClick:{...e.deadClick,...(c=r==null?void 0:r.deadClick)!=null?c:{}},jsError:{...e.jsError,...(u=r==null?void 0:r.jsError)!=null?u:{}},sessionTimeout:{...e.sessionTimeout,...(d=r==null?void 0:r.sessionTimeout)!=null?d:{}},piiScrub:(f=r==null?void 0:r.piiScrub)!=null?f:e.piiScrub}}function cs(r){let e=[];async function t(){if(e.length===0)return;let i=e.splice(0,50);try{await fetch(r.endpoint,{method:"POST",headers:{"Content-Type":"application/json","x-blocfeed-id":r.blocfeedId},body:JSON.stringify({events:i}),keepalive:!0});}catch(s){}}function n(){if(e.length===0)return;if(typeof navigator=="undefined"||typeof navigator.sendBeacon!="function"){t();return}let i=e.splice(0,50),s=new Blob([JSON.stringify({events:i})],{type:"application/json"}),o=`${r.endpoint}?_bfid=${encodeURIComponent(r.blocfeedId)}`;try{navigator.sendBeacon(o,s);}catch(l){}}return {enqueue(i){e.push(i);},flush:t,flushBeacon:n,size(){return e.length}}}function us(r){let e=globalThis.CSS;return typeof(e==null?void 0:e.escape)=="function"?e.escape(r):r.replace(/[^a-zA-Z0-9_-]/g,t=>{let n=t.codePointAt(0);return n===void 0?"":`\\${n.toString(16)} `})}function yc(r){return r.replace(/\s+/g," ").trim()}function $e(r,e=140){let t=r.textContent;if(!t)return;let n=yc(t);if(n)return n.length<=e?n:`${n.slice(0,e-1)}\u2026`}function bc(r){let e=1;for(let t=r.previousElementSibling;t;t=t.previousElementSibling)t.tagName===r.tagName&&(e+=1);return e}var fs=["data-testid","data-test-id","data-test","data-qa","data-cy"],fn="data-blocfeed-component";function at(r){let e=r.closest(`[${fn}]`);if(!e)return;let t=e.getAttribute(fn),n=t==null?void 0:t.trim();return n||void 0}function Be(r,e=5){let t=[],n=r,i=0;for(;n&&i<e*4;){let s=at(n);if(s&&t[t.length-1]!==s&&(t.push(s),t.length>=e))break;n=n.parentElement,i++;}return t}function Ue(r,e=4){let t=r,n=0;for(;t&&n<e;){let i=t.getAttribute(fn),s=i==null?void 0:i.trim();if(s)return `bf:component:${s}`;for(let a of fs){let c=t.getAttribute(a),u=c==null?void 0:c.trim();if(u)return `bf:testid:${u}`}let o=t.getAttribute("id"),l=o==null?void 0:o.trim();if(l&&!/^\d/.test(l))return `bf:id:${l}`;t=t.parentElement,n+=1;}return null}function wc(r){let e=r.tagName.toLowerCase(),t=r.getAttribute("id");if(t)return `#${us(t)}`;for(let n of fs){let i=r.getAttribute(n);if(i)return `${e}[${n}="${us(i)}"]`}return `${e}:nth-of-type(${bc(r)})`}function We(r,e=10){let t=[],n=r;for(;n&&t.length<e;){let i=wc(n);if(t.unshift(i),i.startsWith("#"))break;n=n.parentElement;}return t.join(" > ")}var vc=new Set(["button","link","tab","menuitem"]);function ds(r){var t;if(r.tagName==="BUTTON")return r.disabled?null:"button";if(r.tagName==="A"||r.tagName==="a"){let n=(t=r.getAttribute("href"))==null?void 0:t.trim();return !n||n==="#"||n.toLowerCase().startsWith("javascript:")?null:"link"}let e=r.getAttribute("role");if(e&&vc.has(e))return "role";try{if(window.getComputedStyle(r).cursor==="pointer")return "cursor_pointer"}catch(n){}return null}function Bt(r,e){if(e.length===0)return false;for(let t of e)try{if(r.matches(t)||r.closest(t))return !0}catch(n){}return false}var hs="bf_behavioral_session",ps="bf_behavioral_session_started",Ut="bf_behavioral_session_last_activity";var gs=18e5,ys=144e5,bs=true,ye=null;function ws(r){typeof r.enabled=="boolean"&&(bs=r.enabled),typeof r.idleMs=="number"&&r.idleMs>0&&(gs=r.idleMs),typeof r.maxMs=="number"&&r.maxMs>0&&(ys=r.maxMs);}function G(r){var s,o;let e=(s=void 0)!=null?s:gs,t=(o=void 0)!=null?o:ys,n=bs,i=Date.now();try{let l=sessionStorage.getItem(hs),a=sessionStorage.getItem(ps),c=sessionStorage.getItem(Ut);if(l&&a&&c){let d=Number(a),f=Number(c);if(!(n&&(!Number.isFinite(d)||!Number.isFinite(f)||i-f>e||i-d>t)))return l}let u=ms();return sessionStorage.setItem(hs,u),sessionStorage.setItem(ps,String(i)),sessionStorage.setItem(Ut,String(i)),u}catch(l){return ye&&!(n&&(i-ye.lastActivityAt>e||i-ye.startedAt>t))||(ye={id:ms(),startedAt:i,lastActivityAt:i}),ye.id}}function dn(){let r=Date.now();try{let e=sessionStorage.getItem(Ut);if(e){let t=Number(e);if(Number.isFinite(t)&&r-t<1e4)return}sessionStorage.setItem(Ut,String(r));}catch(e){if(ye){if(r-ye.lastActivityAt<1e4)return;ye.lastActivityAt=r;}}}function ms(){let r=Math.random().toString(36).slice(2,10).padEnd(8,"0");return `bf_${Date.now()}_${r}`}function He(r){let e=0;for(let t=0;t<r.length;t++)e=e*31+r.charCodeAt(t)|0;return Math.abs(e)}function vs(r,e){if(!r.rageClick.enabled)return ()=>{};let{threshold:t,windowMs:n,streakIdleMs:i}=r.rageClick,s=new Map;function o(d){var b,v;let f=d.target,g=f?Sc(f):false,m=f&&(b=$e(f,200))!=null?b:null,p=f?f.tagName.toLowerCase():"",h=f&&f.id||null,y=f&&(v=at(f))!=null?v:null,w=f?Be(f,5):[];return {session_id:G(),event_type:"rage_click",page_url:typeof window=="undefined"?"":window.location.href,selector:d.selector,element_text:m,event_data:{click_count:d.timestamps.length,window_ms:n,final:true,...g?{disabled:true}:{},tag_name:p,...h?{element_id:h}:{},...y?{component_name:y}:{},...w.length>0?{parent_components:w}:{}},created_at:new Date().toISOString(),stable_key:d.stableKey}}function l(d){let f=s.get(d);f&&(f.idleTimer&&(clearTimeout(f.idleTimer),f.idleTimer=null),f.reached&&e(o(f)),s.delete(d));}function a(d){let f=s.get(d);f&&(f.idleTimer&&clearTimeout(f.idleTimer),f.idleTimer=setTimeout(()=>{l(d);},i));}function c(d){try{let f=d.target;if(!f||!(f instanceof Element)||Bt(f,r.ignoreSelectors))return;let g=We(f,4);if(!g)return;let m=Ue(f),p=m!=null?m:g,h=Date.now(),y=s.get(p);y?(y.target=f,y.selector=g):(y={selector:g,stableKey:m,timestamps:[],reached:!1,idleTimer:null,target:f},s.set(p,y)),y.reached||(y.timestamps=y.timestamps.filter(w=>h-w<=n)),y.timestamps.push(h),a(p),!y.reached&&y.timestamps.length>=t&&(y.reached=!0);}catch(f){}}function u(){for(let d of Array.from(s.keys()))l(d);}return document.addEventListener("click",c,{capture:true,passive:true}),typeof window!="undefined"&&window.addEventListener("pagehide",u),()=>{document.removeEventListener("click",c,{capture:true}),typeof window!="undefined"&&window.removeEventListener("pagehide",u);for(let d of s.values())d.idleTimer&&clearTimeout(d.idleTimer);s.clear();}}function Sc(r){if(r.hasAttribute("disabled")||r.getAttribute("aria-disabled")==="true")return true;try{if(window.getComputedStyle(r).pointerEvents==="none")return !0}catch(e){}return false}var Ss=0,Cs=null,Ht=null,zt=[],Cc=1500;function Ec(){function r(e){var t;try{let n=e.target;if(!n)return;let i=n.closest('button[type="submit"], input[type="submit"], [data-blocfeed-submit]');if(!i)return;Ss=Date.now();let s=i.closest("form");Cs=(s?We(s,3):"")||null,Ht=(t=$e(i,100))!=null?t:null,zt=Be(i,5);}catch(n){}}return document.addEventListener("click",r,{capture:true,passive:true}),()=>document.removeEventListener("click",r,{capture:true})}function Es(r,e){if(!r.httpFail.enabled)return ()=>{};let{statusCodes:t,ignoreUrls:n,treatJsonErrorAsFail:i}=r.httpFail,s=new Set(t),o=Ec(),l=globalThis.fetch,a=async(f,g)=>{var y,w,b;let m=typeof f=="string"?f:f instanceof URL?f.toString():f.url,p=((w=(y=g==null?void 0:g.method)!=null?y:f.method)!=null?w:"GET").toUpperCase(),h;try{h=await l.call(globalThis,f,g);}catch(v){try{if(!Wt(m,n)){let C=v&&typeof v=="object"&&v.name==="AbortError"?"abort":"network";e(d(0,m,p,C));}}catch(C){}throw v}try{if(!Wt(m,n)&&s.has(h.status))e(d(h.status,m,p));else if(i&&!Wt(m,n)&&h.status>=200&&h.status<300){let v=(b=h.headers.get("content-type"))!=null?b:"";(v.includes("application/json")||v.includes("+json"))&&h.clone().json().then(C=>{if(Ic(C))try{e(d(h.status,m,p,"json_error"));}catch(I){}}).catch(()=>{});}}catch(v){}return h};globalThis.fetch=a;let c=XMLHttpRequest.prototype.open,u=XMLHttpRequest.prototype.send;return XMLHttpRequest.prototype.open=function(f,g,...m){return this.__bf_url=g,this.__bf_method=f.toUpperCase(),c.call(this,f,g,...m)},XMLHttpRequest.prototype.send=function(f){let g=()=>{var m,p;try{let h=(m=this.__bf_url)!=null?m:"",y=(p=this.__bf_method)!=null?p:"GET";!Wt(h,n)&&s.has(this.status)&&e(d(this.status,h,y));}catch(h){}};return this.__bf_handler=g,this.addEventListener("loadend",g),u.call(this,f!=null?f:null)},()=>{globalThis.fetch=l,XMLHttpRequest.prototype.open=c,XMLHttpRequest.prototype.send=u,o(),Ht=null,zt=[];};function d(f,g,m,p){let y=Date.now()-Ss<Cc;return {session_id:G(),event_type:"error",page_url:typeof window=="undefined"?"":window.location.href,selector:null,element_text:null,event_data:{http_status:f,request_url:g,method:m,...p?{error_kind:p}:{},form_selector:y?Cs:null,...y&&Ht?{button_text:Ht}:{},...y&&zt.length>0?{parent_components:zt}:{}},created_at:new Date().toISOString(),stable_key:null}}}function Ic(r){if(!r||typeof r!="object")return false;let e=r;return e.ok===false||e.success===false||"error"in e&&e.error!=null&&e.error!==false}function Wt(r,e){if(e.length===0)return false;for(let t of e)if(r.includes(t))return true;return false}var xc=3e4;function Is(r,e){if(!r.redirectLoop.enabled)return ()=>{};if(typeof window=="undefined")return ()=>{};let{threshold:t,windowMs:n}=r.redirectLoop,i=new Map,s=new Map,o=history.pushState,l=history.replaceState;function a(u){var d,f;try{let g=Date.now(),m=(d=s.get(u))!=null?d:0;if(g<m)return;let h=((f=i.get(u))!=null?f:[]).filter(y=>g-y<=n);if(h.push(g),i.set(u,h),h.length>=t){let y={session_id:G(),event_type:"thrashing",page_url:window.location.href,selector:null,element_text:null,event_data:{count:h.length,url:u,window_ms:n},created_at:new Date().toISOString(),stable_key:null};e(y),s.set(u,g+xc),i.set(u,[]);}}catch(g){}}function c(){let u=window.location.pathname+window.location.search;a(u);}return history.pushState=function(...u){let d=o.apply(this,u);return c(),d},history.replaceState=function(...u){let d=l.apply(this,u);return c(),d},window.addEventListener("popstate",c),()=>{history.pushState=o,history.replaceState=l,window.removeEventListener("popstate",c);}}var Rc=6e4;function xs(r,e){if(!r.formDataLoss.enabled)return ()=>{};if(typeof window=="undefined")return ()=>{};let t=new Set,n=new Map,i=new Map,s=new Map;function o(p){let h=p.closest("form");return h?h.id?`#${h.id}`:"form":null}function l(){let p=0;for(let h of n.values())p+=h;return p}function a(p){t.delete(p),n.delete(p),s.delete(p);}function c(p){var h;try{let y=p.target;if(!y||!(y instanceof HTMLInputElement||y instanceof HTMLTextAreaElement||y instanceof HTMLSelectElement))return;let w=o(y);if(!w)return;t.add(w),n.set(w,((h=n.get(w))!=null?h:0)+1);let b=y.closest("form");b&&s.set(w,b);}catch(y){}}function u(p){try{let h=p.target;if(!h||!(h instanceof HTMLFormElement))return;let y=h.id?`#${h.id}`:"form";i.set(y,Date.now()),a(y);}catch(h){}}function d(p){try{let h=p.target;if(!h||!(h instanceof HTMLFormElement))return;let y=h.id?`#${h.id}`:"form";a(y);}catch(h){}}function f(p){var C,I;if(t.size===0)return;let h=Array.from(t),y=(C=h[0])!=null?C:null,w=y&&(I=s.get(y))!=null?I:null,b=w?Ue(w):null,v={session_id:G(),event_type:"form_abandonment",page_url:window.location.href,selector:y,element_text:null,event_data:{cause:p,field_count:l(),forms:h},created_at:new Date().toISOString(),stable_key:b};e(v);}function g(p){if(!p.persisted||t.size===0)return;let h=Date.now();for(let[,y]of i)if(h-y<Rc)return;f("bfcache_restore");}function m(){f("beforeunload_after_edit");}return document.addEventListener("input",c,{capture:true,passive:true}),document.addEventListener("submit",u,{capture:true}),document.addEventListener("reset",d,{capture:true}),window.addEventListener("pageshow",g),window.addEventListener("beforeunload",m),()=>{document.removeEventListener("input",c,{capture:true}),document.removeEventListener("submit",u,{capture:true}),document.removeEventListener("reset",d,{capture:true}),window.removeEventListener("pageshow",g),window.removeEventListener("beforeunload",m);}}function Mc(){let r={urlChangeCount:0,networkCount:0,filePickerCount:0,uninstall:()=>{}},e=history.pushState,t=history.replaceState;history.pushState=function(...l){return r.urlChangeCount+=1,e.apply(this,l)},history.replaceState=function(...l){return r.urlChangeCount+=1,t.apply(this,l)};let n=()=>{r.urlChangeCount+=1;};window.addEventListener("popstate",n);let i=globalThis.fetch;if(i){let l=(a,c)=>(r.networkCount+=1,i.call(globalThis,a,c));globalThis.fetch=l;}let s=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=function(l,a,...c){return r.networkCount+=1,s.call(this,l,a,...c)};let o=HTMLInputElement.prototype.click;return HTMLInputElement.prototype.click=function(){return this.type==="file"&&(r.filePickerCount+=1),o.call(this)},r.uninstall=()=>{history.pushState=e,history.replaceState=t,window.removeEventListener("popstate",n),i&&(globalThis.fetch=i),XMLHttpRequest.prototype.open=s,HTMLInputElement.prototype.click=o;},r}function Rs(r,e){if(!r.deadClick.enabled)return ()=>{};if(typeof window=="undefined")return ()=>{};let{observationWindowMs:t,rateLimitPerSelector:n}=r.deadClick,i=new Map,s=Mc();function o(l){var a,c;try{let u=l.target;if(!u||!(u instanceof Element)||l.button!==0||l.metaKey||l.ctrlKey||l.altKey||l.shiftKey||Bt(u,r.ignoreSelectors)||u.closest("label"))return;if(u instanceof HTMLInputElement){let P=u.type;if(P==="checkbox"||P==="radio"||P==="file")return}if(u instanceof HTMLSelectElement||u.closest("a[target='_blank'], a[download]")||u.closest('[contenteditable="true"]'))return;try{let P=window.getSelection();if(P&&P.toString().length>0)return}catch(P){}let d=ds(u);if(!d)return;let f=We(u,4);if(!f)return;let g=Ue(u),m=g!=null?g:f,p=s.urlChangeCount,h=s.networkCount,y=s.filePickerCount,w=new Date().toISOString(),b=(a=$e(u,200))!=null?a:null,v=u.tagName.toLowerCase(),C=u.id||null,I=(c=at(u))!=null?c:null,D=Be(u,5),A=Tc(u),L=0,$=null;if(A){$=new MutationObserver(()=>{L+=1;});try{$.observe(A,{childList:!0,attributes:!0,characterData:!0,subtree:!0});}catch(P){$=null;}}setTimeout(()=>{var E;if($)try{$.disconnect();}catch(re){}if(L>0||s.urlChangeCount!==p||s.networkCount!==h||s.filePickerCount!==y)return;let P=(E=i.get(m))!=null?E:0;if(P>=n)return;i.set(m,P+1);let q={session_id:G(),event_type:"dead_click",page_url:typeof window=="undefined"?"":window.location.href,selector:f,element_text:b,event_data:{tag_name:v,...C?{element_id:C}:{},...I?{component_name:I}:{},...D.length>0?{parent_components:D}:{},clickable_reason:d},created_at:w,stable_key:g};e(q);},t);}catch(u){}}return document.addEventListener("click",o,{capture:true,passive:true}),()=>{document.removeEventListener("click",o,{capture:true}),s.uninstall();}}function Tc(r){let e=r.closest('button, a, form, [role="button"]');return e||r.parentElement}var Ms=[{name:"email",regex:/[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g,replacement:"[email]"},{name:"credit_card",regex:/\b(?:\d[ -]?){13,19}\b/g,replacement:"[card]"},{name:"ssn",regex:/\b\d{3}-\d{2}-\d{4}\b/g,replacement:"[ssn]"},{name:"phone",regex:/(?:\+?\d{1,3}[\s.-]?)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}/g,replacement:"[phone]"}],Ac=[...Ms,{name:"ipv4",regex:/\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b/g,replacement:"[ip]"},{name:"iban",regex:/\b[A-Z]{2}\d{2}[A-Z0-9]{11,30}\b/g,replacement:"[iban]"}],_c=10;function kc(r){return r==="strict"?Ac:r==="default"?Ms:[]}function Nc(r,e){let t=r;for(let n of e)t=t.replace(n.regex,n.replacement);return t}function hn(r,e,t){if(t>_c||r==null)return r;if(typeof r=="string")return Nc(r,e);if(typeof r=="number"||typeof r=="boolean")return r;if(Array.isArray(r))return r.map(n=>hn(n,e,t+1));if(typeof r=="object"){let n={};for(let i of Object.keys(r))n[i]=hn(r[i],e,t+1);return n}return r}function Ie(r,e){if(e==="off")return r;let t=kc(e);return t.length===0?r:hn(r,t,0)}var Oc=[/^Script error\.?$/,/^ResizeObserver loop/,/^Non-Error promise rejection captured/];function Dc(r){var l,a;let e=r.trim();if(!e)return "";let t="",n=e,i=e.indexOf("@"),s=/^\s*at\s+(?:(.+?)\s+\()?(.+?)\)?$/.exec(e);i>-1&&!e.startsWith("at ")?(t=e.slice(0,i),n=e.slice(i+1)):s&&(t=(l=s[1])!=null?l:"",n=(a=s[2])!=null?a:""),n=n.replace(/^https?:\/\/[^/]+/,""),n=n.replace(/\?[^:]*(?=:\d|$)/,"");let o=n.split(":");return o.length>=3&&(n=o.slice(0,o.length-1).join(":")),t?`${t}@${n}`:n}function Lc(r,e,t){let n=e.slice(0,120),i=[];if(t){let o=t.split(`
3
+ `);for(let l of o){let a=Dc(l);if(a&&(i.push(a),i.length>=3))break}}let s=`${r}:${n}:${i.join("|")}`;return He(s).toString(16).padStart(8,"0").slice(0,8)}function Pc(r,e){for(let t of e)if(t.test(r))return true;return false}function Ts(r,e){if(!r.jsError.enabled)return ()=>{};if(typeof window=="undefined")return ()=>{};let{sampling:t,ignorePatterns:n,rateLimitPerFingerprint:i,rateLimitWindowMs:s}=r.jsError,o=[];for(let g of n)try{o.push(new RegExp(g));}catch(m){}let l=[...Oc,...o],a=r.piiScrub,c=new Map;function u(g,m,p,h,y,w,b){try{if(Pc(m,l))return;let v=Lc(g,m,p),C=Date.now(),I=c.get(v);if(I&&C-I.windowStart<s){if(I.count>=i)return;I.count+=1;}else c.set(v,{count:1,windowStart:C});if(t<1&&Math.random()>=t)return;let D=a==="off"?m:Ie(m,a),A=p==null?null:a==="off"?p:Ie(p,a),L={session_id:G(),event_type:"error",page_url:window.location.href,selector:null,element_text:null,event_data:{name:g,message:D,filename:h,lineno:y,colno:w,stack:A,fingerprint:v,source:b,error_kind:"js_error"},created_at:new Date().toISOString(),stable_key:null};e(L);}catch(v){}}function d(g){var w,b,v,C;let m=g.error,p=(w=m==null?void 0:m.name)!=null?w:"Error",h=(v=(b=g.message)!=null?b:m==null?void 0:m.message)!=null?v:"Error",y=(C=m==null?void 0:m.stack)!=null?C:null;u(p,h,y,g.filename||null,typeof g.lineno=="number"?g.lineno:null,typeof g.colno=="number"?g.colno:null,"window.onerror");}function f(g){var w;let m=g.reason,p="UnhandledRejection",h,y=null;if(m instanceof Error)p=m.name||"UnhandledRejection",h=m.message||String(m),y=(w=m.stack)!=null?w:null;else if(m&&typeof m=="object"){let b=m;typeof b.name=="string"&&(p=b.name),h=typeof b.message=="string"?b.message:Fc(m),y=typeof b.stack=="string"?b.stack:null;}else h=String(m);u(p,h,y,null,null,null,"unhandledrejection");}return window.addEventListener("error",d,true),window.addEventListener("unhandledrejection",f),()=>{window.removeEventListener("error",d,true),window.removeEventListener("unhandledrejection",f),c.clear();}}function Fc(r){try{return JSON.stringify(r)}catch(e){return String(r)}}var $c=Object.defineProperty,Bc=(r,e,t)=>e in r?$c(r,e,{enumerable:true,configurable:true,writable:true,value:t}):r[e]=t,S=(r,e,t)=>Bc(r,typeof e!="symbol"?e+"":e,t),As,Uc=Object.defineProperty,Wc=(r,e,t)=>e in r?Uc(r,e,{enumerable:true,configurable:true,writable:true,value:t}):r[e]=t,_s=(r,e,t)=>Wc(r,typeof e!="symbol"?e+"":e,t),J=(r=>(r[r.Document=0]="Document",r[r.DocumentType=1]="DocumentType",r[r.Element=2]="Element",r[r.Text=3]="Text",r[r.CDATA=4]="CDATA",r[r.Comment=5]="Comment",r))(J||{}),ks={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Ns={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Vt={},Hc=()=>!!globalThis.Zone;function yi(r){if(Vt[r])return Vt[r];let e=globalThis[r],t=e.prototype,n=r in ks?ks[r]:void 0,i=!!(n&&n.every(l=>{var a,c;return !!((c=(a=Object.getOwnPropertyDescriptor(t,l))==null?void 0:a.get)!=null&&c.toString().includes("[native code]"))})),s=r in Ns?Ns[r]:void 0,o=!!(s&&s.every(l=>{var a;return typeof t[l]=="function"&&((a=t[l])==null?void 0:a.toString().includes("[native code]"))}));if(i&&o&&!Hc())return Vt[r]=e.prototype,e.prototype;try{let l=document.createElement("iframe");document.body.appendChild(l);let a=l.contentWindow;if(!a)return e.prototype;let c=a[r].prototype;return document.body.removeChild(l),c?Vt[r]=c:t}catch(l){return t}}var pn={};function Se(r,e,t){var n;let i=`${r}.${String(t)}`;if(pn[i])return pn[i].call(e);let s=yi(r),o=(n=Object.getOwnPropertyDescriptor(s,t))==null?void 0:n.get;return o?(pn[i]=o,o.call(e)):e[t]}var mn={};function To(r,e,t){let n=`${r}.${String(t)}`;if(mn[n])return mn[n].bind(e);let s=yi(r)[t];return typeof s!="function"?e[t]:(mn[n]=s,s.bind(e))}function zc(r){return Se("Node",r,"ownerDocument")}function Vc(r){return Se("Node",r,"childNodes")}function Gc(r){return Se("Node",r,"parentNode")}function jc(r){return Se("Node",r,"parentElement")}function Yc(r){return Se("Node",r,"textContent")}function Xc(r,e){return To("Node",r,"contains")(e)}function Jc(r){return To("Node",r,"getRootNode")()}function Zc(r){return !r||!("host"in r)?null:Se("ShadowRoot",r,"host")}function Kc(r){return r.styleSheets}function qc(r){return !r||!("shadowRoot"in r)?null:Se("Element",r,"shadowRoot")}function Qc(r,e){return Se("Element",r,"querySelector")(e)}function eu(r,e){return Se("Element",r,"querySelectorAll")(e)}function tu(){return yi("MutationObserver").constructor}function ru(r,e,t){try{if(!(e in r))return ()=>{};let n=r[e],i=t(n);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),r[e]=i,()=>{r[e]=n;}}catch(n){return ()=>{}}}var Z={ownerDocument:zc,childNodes:Vc,parentNode:Gc,parentElement:jc,textContent:Yc,contains:Xc,getRootNode:Jc,host:Zc,styleSheets:Kc,shadowRoot:qc,querySelector:Qc,querySelectorAll:eu,mutationObserver:tu,patch:ru};function Ao(r){return r.nodeType===r.ELEMENT_NODE}function ht(r){let e=r&&"host"in r&&"mode"in r&&Z.host(r)||null;return !!(e&&"shadowRoot"in e&&Z.shadowRoot(e)===r)}function pt(r){return Object.prototype.toString.call(r)==="[object ShadowRoot]"}function nu(r){return r.includes(" background-clip: text;")&&!r.includes(" -webkit-background-clip: text;")&&(r=r.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),r}function iu(r){let{cssText:e}=r;if(e.split('"').length<3)return e;let t=["@import",`url(${JSON.stringify(r.href)})`];return r.layerName===""?t.push("layer"):r.layerName&&t.push(`layer(${r.layerName})`),r.supportsText&&t.push(`supports(${r.supportsText})`),r.media.length&&t.push(r.media.mediaText),t.join(" ")+";"}function Tn(r){try{let e=r.rules||r.cssRules;if(!e)return null;let t=r.href;!t&&r.ownerNode&&(t=r.ownerNode.baseURI);let n=Array.from(e,i=>_o(i,t)).join("");return nu(n)}catch(e){return null}}function _o(r,e){if(ou(r)){let t;try{t=Tn(r.styleSheet)||iu(r);}catch(n){t=r.cssText;}return r.styleSheet.href?Cr(t,r.styleSheet.href):t}else {let t=r.cssText;return au(r)&&r.selectorText.includes(":")&&(t=su(t)),e?Cr(t,e):t}}function su(r){let e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return r.replace(e,"$1\\$2")}function ou(r){return "styleSheet"in r}function au(r){return "selectorText"in r}var wr=class{constructor(){_s(this,"idNodeMap",new Map),_s(this,"nodeMetaMap",new WeakMap);}getId(e){var t;if(!e)return -1;let n=(t=this.getMeta(e))==null?void 0:t.id;return n!=null?n:-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){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(n=>this.removeNodeFromMap(n));}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t);}replace(e,t){let n=this.getNode(e);if(n){let i=this.nodeMetaMap.get(n);i&&this.nodeMetaMap.set(t,i);}this.idNodeMap.set(e,t);}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap;}};function lu(){return new wr}function vr({element:r,maskInputOptions:e,tagName:t,type:n,value:i,maskInputFn:s}){let o=i||"",l=n&&Oe(n);return (e[t.toLowerCase()]||l&&e[l])&&(s?o=s(o,r):o="*".repeat(o.length)),o}function Oe(r){return r.toLowerCase()}var Os="__rrweb_original__";function cu(r){let e=r.getContext("2d");if(!e)return true;let t=50;for(let n=0;n<r.width;n+=t)for(let i=0;i<r.height;i+=t){let s=e.getImageData,o=Os in s?s[Os]:s;if(new Uint32Array(o.call(e,n,i,Math.min(t,r.width-n),Math.min(t,r.height-i)).data.buffer).some(a=>a!==0))return false}return true}function Sr(r){let e=r.type;return r.hasAttribute("data-rr-is-password")?"password":e?Oe(e):null}function ko(r,e){var s;let t;try{t=new URL(r,e!=null?e:window.location.href);}catch(o){return null}let n=/\.([0-9a-z]+)(?:$)/i,i=t.pathname.match(n);return (s=i==null?void 0:i[1])!=null?s:null}function uu(r){let e="";return r.indexOf("//")>-1?e=r.split("/").slice(0,3).join("/"):e=r.split("/")[0],e=e.split("?")[0],e}var fu=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,du=/^(?:[a-z+]+:)?\/\//i,hu=/^www\..*/i,pu=/^(data:)([^,]*),(.*)/i;function Cr(r,e){return (r||"").replace(fu,(t,n,i,s,o,l)=>{let a=i||o||l,c=n||s||"";if(!a)return t;if(du.test(a)||hu.test(a))return `url(${c}${a}${c})`;if(pu.test(a))return `url(${c}${a}${c})`;if(a[0]==="/")return `url(${c}${uu(e)+a}${c})`;let u=e.split("/"),d=a.split("/");u.pop();for(let f of d)f!=="."&&(f===".."?u.pop():u.push(f));return `url(${c}${u.join("/")}${c})`})}function Gt(r,e=false){return e?r.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):r.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function mu(r,e,t=false){let n=Array.from(e.childNodes),i=[],s=0;if(n.length>1&&r&&typeof r=="string"){let o=Gt(r,t),l=o.length/r.length;for(let a=1;a<n.length;a++)if(n[a].textContent&&typeof n[a].textContent=="string"){let c=Gt(n[a].textContent,t),u=100,d=3;for(;d<c.length&&(c[d].match(/[a-zA-Z0-9]/)||c.indexOf(c.substring(0,d),1)!==-1);d++);for(;d<c.length;d++){let f=c.substring(0,d),g=o.split(f),m=-1;if(g.length===2)m=g[0].length;else if(g.length>2&&g[0]===""&&n[a-1].textContent!=="")m=o.indexOf(f,1);else if(g.length===1){if(f=f.substring(0,f.length-1),g=o.split(f),g.length<=1)return i.push(r),i;d=u+1;}else d===c.length-1&&(m=o.indexOf(f));if(g.length>=2&&d>u){let p=n[a-1].textContent;if(p&&typeof p=="string"){let h=Gt(p).length;m=o.indexOf(f,h);}m===-1&&(m=g[0].length);}if(m!==-1){let p=Math.floor(m/l);for(;p>0&&p<r.length;){if(s+=1,s>50*n.length)return i.push(r),i;let h=Gt(r.substring(0,p),t);if(h.length===m){i.push(r.substring(0,p)),r=r.substring(p),o=o.substring(m);break}else h.length<m?p+=Math.max(1,Math.floor((m-h.length)/l)):p-=Math.max(1,Math.floor((h.length-m)*l));}break}}}}return i.push(r),i}function gu(r,e){return mu(r,e).join("/* rr_split */")}var yu=1,bu=new RegExp("[^a-z0-9-_:]"),gt=-2;function No(){return yu++}function wu(r){if(r instanceof HTMLFormElement)return "form";let e=Oe(r.tagName);return bu.test(e)?"div":e}var ze,Ds,vu=/^[^ \t\n\r\u000c]+/,Su=/^[, \t\n\r\u000c]+/;function Cu(r,e){if(e.trim()==="")return e;let t=0;function n(s){let o,l=s.exec(e.substring(t));return l?(o=l[0],t+=o.length,o):""}let i=[];for(;n(Su),!(t>=e.length);){let s=n(vu);if(s.slice(-1)===",")s=je(r,s.substring(0,s.length-1)),i.push(s);else {let o="";s=je(r,s);let l=false;for(;;){let a=e.charAt(t);if(a===""){i.push((s+o).trim());break}else if(l)a===")"&&(l=false);else if(a===","){t+=1,i.push((s+o).trim());break}else a==="("&&(l=true);o+=a,t+=1;}}}return i.join(", ")}var Ls=new WeakMap;function je(r,e){return !e||e.trim()===""?e:bi(r,e)}function Eu(r){return !!(r.tagName==="svg"||r.ownerSVGElement)}function bi(r,e){let t=Ls.get(r);if(t||(t=r.createElement("a"),Ls.set(r,t)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return t.setAttribute("href",e),t.href}function Oo(r,e,t,n){return n&&(t==="src"||t==="href"&&!(e==="use"&&n[0]==="#")||t==="xlink:href"&&n[0]!=="#"||t==="background"&&["table","td","th"].includes(e)?je(r,n):t==="srcset"?Cu(r,n):t==="style"?Cr(n,bi(r)):e==="object"&&t==="data"?je(r,n):n)}function Do(r,e,t){return ["video","audio"].includes(r)&&e==="autoplay"}function Iu(r,e,t){try{if(typeof e=="string"){if(r.classList.contains(e))return !0}else for(let n=r.classList.length;n--;){let i=r.classList[n];if(e.test(i))return !0}if(t)return r.matches(t)}catch(n){}return false}function Er(r,e,t){if(!r)return false;if(r.nodeType!==r.ELEMENT_NODE)return t?Er(Z.parentNode(r),e,t):false;for(let n=r.classList.length;n--;){let i=r.classList[n];if(e.test(i))return true}return t?Er(Z.parentNode(r),e,t):false}function Lo(r,e,t,n){let i;if(Ao(r)){if(i=r,!Z.childNodes(i).length)return false}else {if(Z.parentElement(r)===null)return false;i=Z.parentElement(r);}try{if(typeof e=="string"){if(n){if(i.closest(`.${e}`))return !0}else if(i.classList.contains(e))return !0}else if(Er(i,e,n))return !0;if(t){if(n){if(i.closest(t))return !0}else if(i.matches(t))return !0}}catch(s){}return false}function xu(r,e,t){let n=r.contentWindow;if(!n)return;let i=false,s;try{s=n.document.readyState;}catch(l){return}if(s!=="complete"){let l=setTimeout(()=>{i||(e(),i=true);},t);r.addEventListener("load",()=>{clearTimeout(l),i=true,e();});return}let o="about:blank";if(n.location.href!==o||r.src===o||r.src==="")return setTimeout(e,0),r.addEventListener("load",e);r.addEventListener("load",e);}function Ru(r,e,t){let n=false,i;try{i=r.sheet;}catch(o){return}if(i)return;let s=setTimeout(()=>{n||(e(),n=true);},t);r.addEventListener("load",()=>{clearTimeout(s),n=true,e();});}function Mu(r,e){let{doc:t,mirror:n,blockClass:i,blockSelector:s,needsMask:o,inlineStylesheet:l,maskInputOptions:a={},maskTextFn:c,maskInputFn:u,dataURLOptions:d={},inlineImages:f,recordCanvas:g,keepIframeSrcFn:m,newlyAddedElement:p=false,cssCaptured:h=false}=e,y=Tu(t,n);switch(r.nodeType){case r.DOCUMENT_NODE:return r.compatMode!=="CSS1Compat"?{type:J.Document,childNodes:[],compatMode:r.compatMode}:{type:J.Document,childNodes:[]};case r.DOCUMENT_TYPE_NODE:return {type:J.DocumentType,name:r.name,publicId:r.publicId,systemId:r.systemId,rootId:y};case r.ELEMENT_NODE:return _u(r,{doc:t,blockClass:i,blockSelector:s,inlineStylesheet:l,maskInputOptions:a,maskInputFn:u,dataURLOptions:d,inlineImages:f,recordCanvas:g,keepIframeSrcFn:m,newlyAddedElement:p,rootId:y});case r.TEXT_NODE:return Au(r,{doc:t,needsMask:o,maskTextFn:c,rootId:y,cssCaptured:h});case r.CDATA_SECTION_NODE:return {type:J.CDATA,textContent:"",rootId:y};case r.COMMENT_NODE:return {type:J.Comment,textContent:Z.textContent(r)||"",rootId:y};default:return false}}function Tu(r,e){if(!e.hasNode(r))return;let t=e.getId(r);return t===1?void 0:t}function Au(r,e){let{needsMask:t,maskTextFn:n,rootId:i,cssCaptured:s}=e,o=Z.parentNode(r),l=o&&o.tagName,a="",c=l==="STYLE"?true:void 0,u=l==="SCRIPT"?true:void 0;return u?a="SCRIPT_PLACEHOLDER":s||(a=Z.textContent(r),c&&a&&(a=Cr(a,bi(e.doc)))),!c&&!u&&a&&t&&(a=n?n(a,Z.parentElement(r)):a.replace(/[\S]/g,"*")),{type:J.Text,textContent:a||"",rootId:i}}function _u(r,e){let{doc:t,blockClass:n,blockSelector:i,inlineStylesheet:s,maskInputOptions:o={},maskInputFn:l,dataURLOptions:a={},inlineImages:c,recordCanvas:u,keepIframeSrcFn:d,newlyAddedElement:f=false,rootId:g}=e,m=Iu(r,n,i),p=wu(r),h={},y=r.attributes.length;for(let b=0;b<y;b++){let v=r.attributes[b];Do(p,v.name,v.value)||(h[v.name]=Oo(t,p,Oe(v.name),v.value));}if(p==="link"&&s){let b=Array.from(t.styleSheets).find(C=>C.href===r.href),v=null;b&&(v=Tn(b)),v&&(delete h.rel,delete h.href,h._cssText=v);}if(p==="style"&&r.sheet){let b=Tn(r.sheet);b&&(r.childNodes.length>1&&(b=gu(b,r)),h._cssText=b);}if(["input","textarea","select"].includes(p)){let b=r.value,v=r.checked;h.type!=="radio"&&h.type!=="checkbox"&&h.type!=="submit"&&h.type!=="button"&&b?h.value=vr({element:r,type:Sr(r),tagName:p,value:b,maskInputOptions:o,maskInputFn:l}):v&&(h.checked=v);}if(p==="option"&&(r.selected&&!o.select?h.selected=true:delete h.selected),p==="dialog"&&r.open&&(h.rr_open_mode=r.matches("dialog:modal")?"modal":"non-modal"),p==="canvas"&&u){if(r.__context==="2d")cu(r)||(h.rr_dataURL=r.toDataURL(a.type,a.quality));else if(!("__context"in r)){let b=r.toDataURL(a.type,a.quality),v=t.createElement("canvas");v.width=r.width,v.height=r.height;let C=v.toDataURL(a.type,a.quality);b!==C&&(h.rr_dataURL=b);}}if(p==="img"&&c){ze||(ze=t.createElement("canvas"),Ds=ze.getContext("2d"));let b=r,v=b.currentSrc||b.getAttribute("src")||"<unknown-src>",C=b.crossOrigin,I=()=>{b.removeEventListener("load",I);try{ze.width=b.naturalWidth,ze.height=b.naturalHeight,Ds.drawImage(b,0,0),h.rr_dataURL=ze.toDataURL(a.type,a.quality);}catch(D){if(b.crossOrigin!=="anonymous"){b.crossOrigin="anonymous",b.complete&&b.naturalWidth!==0?I():b.addEventListener("load",I);return}else console.warn(`Cannot inline img src=${v}! Error: ${D}`);}b.crossOrigin==="anonymous"&&(C?h.crossOrigin=C:b.removeAttribute("crossorigin"));};b.complete&&b.naturalWidth!==0?I():b.addEventListener("load",I);}if(["audio","video"].includes(p)){let b=h;b.rr_mediaState=r.paused?"paused":"played",b.rr_mediaCurrentTime=r.currentTime,b.rr_mediaPlaybackRate=r.playbackRate,b.rr_mediaMuted=r.muted,b.rr_mediaLoop=r.loop,b.rr_mediaVolume=r.volume;}if(f||(r.scrollLeft&&(h.rr_scrollLeft=r.scrollLeft),r.scrollTop&&(h.rr_scrollTop=r.scrollTop)),m){let{width:b,height:v}=r.getBoundingClientRect();h={class:h.class,rr_width:`${b}px`,rr_height:`${v}px`};}p==="iframe"&&!d(h.src)&&(r.contentDocument||(h.rr_src=h.src),delete h.src);let w;try{customElements.get(p)&&(w=!0);}catch(b){}return {type:J.Element,tagName:p,attributes:h,childNodes:[],isSVG:Eu(r)||void 0,needBlock:m,rootId:g,isCustom:w}}function F(r){return r==null?"":r.toLowerCase()}function Po(r){return r===true||r==="all"?{script:true,comment:true,headFavicon:true,headWhitespace:true,headMetaSocial:true,headMetaRobots:true,headMetaHttpEquiv:true,headMetaVerification:true,headMetaAuthorship:r==="all",headMetaDescKeywords:r==="all",headTitleMutations:r==="all"}:r||{}}function ku(r,e){if(e.comment&&r.type===J.Comment)return true;if(r.type===J.Element){if(e.script&&(r.tagName==="script"||r.tagName==="link"&&(r.attributes.rel==="preload"&&r.attributes.as==="script"||r.attributes.rel==="modulepreload")||r.tagName==="link"&&r.attributes.rel==="prefetch"&&typeof r.attributes.href=="string"&&ko(r.attributes.href)==="js"))return true;if(e.headFavicon&&(r.tagName==="link"&&r.attributes.rel==="shortcut icon"||r.tagName==="meta"&&(F(r.attributes.name).match(/^msapplication-tile(image|color)$/)||F(r.attributes.name)==="application-name"||F(r.attributes.rel)==="icon"||F(r.attributes.rel)==="apple-touch-icon"||F(r.attributes.rel)==="shortcut icon")))return true;if(r.tagName==="meta"){if(e.headMetaDescKeywords&&F(r.attributes.name).match(/^description|keywords$/))return true;if(e.headMetaSocial&&(F(r.attributes.property).match(/^(og|twitter|fb):/)||F(r.attributes.name).match(/^(og|twitter):/)||F(r.attributes.name)==="pinterest"))return true;if(e.headMetaRobots&&(F(r.attributes.name)==="robots"||F(r.attributes.name)==="googlebot"||F(r.attributes.name)==="bingbot"))return true;if(e.headMetaHttpEquiv&&r.attributes["http-equiv"]!==void 0)return true;if(e.headMetaAuthorship&&(F(r.attributes.name)==="author"||F(r.attributes.name)==="generator"||F(r.attributes.name)==="framework"||F(r.attributes.name)==="publisher"||F(r.attributes.name)==="progid"||F(r.attributes.property).match(/^article:/)||F(r.attributes.property).match(/^product:/)))return true;if(e.headMetaVerification&&(F(r.attributes.name)==="google-site-verification"||F(r.attributes.name)==="yandex-verification"||F(r.attributes.name)==="csrf-token"||F(r.attributes.name)==="p:domain_verify"||F(r.attributes.name)==="verify-v1"||F(r.attributes.name)==="verification"||F(r.attributes.name)==="shopify-checkout-api-token"))return true}}return false}function Ye(r,e){let{doc:t,mirror:n,blockClass:i,blockSelector:s,maskTextClass:o,maskTextSelector:l,skipChild:a=false,inlineStylesheet:c=true,maskInputOptions:u={},maskTextFn:d,maskInputFn:f,slimDOMOptions:g,dataURLOptions:m={},inlineImages:p=false,recordCanvas:h=false,onSerialize:y,onIframeLoad:w,iframeLoadTimeout:b=5e3,onStylesheetLoad:v,stylesheetLoadTimeout:C=5e3,keepIframeSrcFn:I=()=>false,newlyAddedElement:D=false,cssCaptured:A=false}=e,{needsMask:L}=e,{preserveWhiteSpace:$=true}=e;L||(L=Lo(r,o,l,L===void 0));let P=Mu(r,{doc:t,mirror:n,blockClass:i,blockSelector:s,needsMask:L,inlineStylesheet:c,maskInputOptions:u,maskTextFn:d,maskInputFn:f,dataURLOptions:m,inlineImages:p,recordCanvas:h,keepIframeSrcFn:I,newlyAddedElement:D,cssCaptured:A});if(!P)return console.warn(r,"not serialized"),null;let q;n.hasNode(r)?q=n.getId(r):ku(P,g)||!$&&P.type===J.Text&&!P.textContent.replace(/^\s+|\s+$/gm,"").length?q=gt:q=No();let E=Object.assign(P,{id:q});if(n.add(r,E),q===gt)return null;y&&y(r);let re=!a;if(E.type===J.Element){re=re&&!E.needBlock,delete E.needBlock;let Y=Z.shadowRoot(r);Y&&pt(Y)&&(E.isShadowHost=true);}if((E.type===J.Document||E.type===J.Element)&&re){g.headWhitespace&&E.type===J.Element&&E.tagName==="head"&&($=false);let Y={doc:t,mirror:n,blockClass:i,blockSelector:s,needsMask:L,maskTextClass:o,maskTextSelector:l,skipChild:a,inlineStylesheet:c,maskInputOptions:u,maskTextFn:d,maskInputFn:f,slimDOMOptions:g,dataURLOptions:m,inlineImages:p,recordCanvas:h,preserveWhiteSpace:$,onSerialize:y,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:v,stylesheetLoadTimeout:C,keepIframeSrcFn:I,cssCaptured:false};if(!(E.type===J.Element&&E.tagName==="textarea"&&E.attributes.value!==void 0)){E.type===J.Element&&E.attributes._cssText!==void 0&&typeof E.attributes._cssText=="string"&&(Y.cssCaptured=true);for(let Ae of Array.from(Z.childNodes(r))){let he=Ye(Ae,Y);he&&E.childNodes.push(he);}}let se=null;if(Ao(r)&&(se=Z.shadowRoot(r)))for(let Ae of Array.from(Z.childNodes(se))){let he=Ye(Ae,Y);he&&(pt(se)&&(he.isShadow=true),E.childNodes.push(he));}}let Te=Z.parentNode(r);return Te&&ht(Te)&&pt(Te)&&(E.isShadow=true),E.type===J.Element&&E.tagName==="iframe"&&xu(r,()=>{let Y=r.contentDocument;if(Y&&w){let se=Ye(Y,{doc:Y,mirror:n,blockClass:i,blockSelector:s,needsMask:L,maskTextClass:o,maskTextSelector:l,skipChild:false,inlineStylesheet:c,maskInputOptions:u,maskTextFn:d,maskInputFn:f,slimDOMOptions:g,dataURLOptions:m,inlineImages:p,recordCanvas:h,preserveWhiteSpace:$,onSerialize:y,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:v,stylesheetLoadTimeout:C,keepIframeSrcFn:I});se&&w(r,se);}},b),E.type===J.Element&&E.tagName==="link"&&typeof E.attributes.rel=="string"&&(E.attributes.rel==="stylesheet"||E.attributes.rel==="preload"&&typeof E.attributes.href=="string"&&ko(E.attributes.href)==="css")&&Ru(r,()=>{if(v){let Y=Ye(r,{doc:t,mirror:n,blockClass:i,blockSelector:s,needsMask:L,maskTextClass:o,maskTextSelector:l,skipChild:false,inlineStylesheet:c,maskInputOptions:u,maskTextFn:d,maskInputFn:f,slimDOMOptions:g,dataURLOptions:m,inlineImages:p,recordCanvas:h,preserveWhiteSpace:$,onSerialize:y,onIframeLoad:w,iframeLoadTimeout:b,onStylesheetLoad:v,stylesheetLoadTimeout:C,keepIframeSrcFn:I});Y&&v(r,Y);}},C),E}function Nu(r,e){let{mirror:t=new wr,blockClass:n="rr-block",blockSelector:i=null,maskTextClass:s="rr-mask",maskTextSelector:o=null,inlineStylesheet:l=true,inlineImages:a=false,recordCanvas:c=false,maskAllInputs:u=false,maskTextFn:d,maskInputFn:f,slimDOM:g=false,dataURLOptions:m,preserveWhiteSpace:p,onSerialize:h,onIframeLoad:y,iframeLoadTimeout:w,onStylesheetLoad:b,stylesheetLoadTimeout:v,keepIframeSrcFn:C=()=>false}=e||{},I=u===true?{color:true,date:true,"datetime-local":true,email:true,month:true,number:true,range:true,search:true,tel:true,text:true,time:true,url:true,week:true,textarea:true,select:true,password:true}:u===false?{password:true}:u,D=Po(g);return Ye(r,{doc:r,mirror:t,blockClass:n,blockSelector:i,maskTextClass:s,maskTextSelector:o,skipChild:false,inlineStylesheet:l,maskInputOptions:I,maskTextFn:d,maskInputFn:f,slimDOMOptions:D,dataURLOptions:m,inlineImages:a,recordCanvas:c,preserveWhiteSpace:p,onSerialize:h,onIframeLoad:y,iframeLoadTimeout:w,onStylesheetLoad:b,stylesheetLoadTimeout:v,keepIframeSrcFn:C,newlyAddedElement:false})}function Du(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Lu(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype;}else t={};return Object.defineProperty(t,"__esModule",{value:true}),Object.keys(r).forEach(function(n){var i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,i.get?i:{enumerable:true,get:function(){return r[n]}});}),t}var wi={exports:{}},B=String,Fo=function(){return {isColorSupported:false,reset:B,bold:B,dim:B,italic:B,underline:B,inverse:B,hidden:B,strikethrough:B,black:B,red:B,green:B,yellow:B,blue:B,magenta:B,cyan:B,white:B,gray:B,bgBlack:B,bgRed:B,bgGreen:B,bgYellow:B,bgBlue:B,bgMagenta:B,bgCyan:B,bgWhite:B}};wi.exports=Fo();wi.exports.createColors=Fo;var Pu=wi.exports,Fu={},$u=Object.freeze(Object.defineProperty({__proto__:null,default:Fu},Symbol.toStringTag,{value:"Module"})),ue=Lu($u),Ps=Pu,Fs=ue,An=class $o extends Error{constructor(e,t,n,i,s,o){super(e),this.name="CssSyntaxError",this.reason=e,s&&(this.file=s),i&&(this.source=i),o&&(this.plugin=o),typeof t!="undefined"&&typeof n!="undefined"&&(typeof t=="number"?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,$o);}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=Ps.isColorSupported),Fs&&e&&(t=Fs(t));let n=t.split(/\r?\n/),i=Math.max(this.line-3,0),s=Math.min(this.line+2,n.length),o=String(s).length,l,a;if(e){let{bold:c,gray:u,red:d}=Ps.createColors(true);l=f=>c(d(f)),a=f=>u(f);}else l=a=c=>c;return n.slice(i,s).map((c,u)=>{let d=i+1+u,f=" "+(" "+d).slice(-o)+" | ";if(d===this.line){let g=a(f.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(f)+c+`
3
4
  `+g+l("^")}return " "+a(f)+c}).join(`
4
5
  `)}toString(){let e=this.showSourceCode();return e&&(e=`
5
6
 
6
7
  `+e+`
7
- `),this.name+": "+this.message+e}},yi=Rn;Rn.default=Rn;var Et={};Et.isClean=Symbol("isClean");Et.my=Symbol("my");var As={after:`
8
+ `),this.name+": "+this.message+e}},vi=An;An.default=An;var Rt={};Rt.isClean=Symbol("isClean");Rt.my=Symbol("my");var $s={after:`
8
9
  `,beforeClose:`
9
10
  `,beforeComment:`
10
11
  `,beforeDecl:`
11
12
  `,beforeOpen:" ",beforeRule:`
12
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:false};function Cu(r){return r[0].toUpperCase()+r.slice(1)}var Mn=class{constructor(e){this.builder=e;}atrule(e,t){let n="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?n+=e.raws.afterName:i&&(n+=" "),e.nodes)this.block(e,n+i);else {let s=(e.raws.between||"")+(t?";":"");this.builder(n+i+s,e);}}beforeAfter(e,t){let n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):t==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");let i=e.parent,s=0;for(;i&&i.type!=="root";)s+=1,i=i.parent;if(n.includes(`
13
- `)){let o=this.raw(e,null,"indent");if(o.length)for(let l=0;l<s;l++)n+=o;}return n}block(e,t){let n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",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 n=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let s=e.nodes[i],o=this.raw(s,"before");o&&this.builder(o),this.stringify(s,t!==i||n);}}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e);}decl(e,t){let n=this.raw(e,"between","colon"),i=e.prop+n+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,n){let i;if(n||(n=t),t&&(i=e.raws[t],typeof i!="undefined"))return i;let s=e.parent;if(n==="before"&&(!s||s.type==="root"&&s.first===e||s&&s.type==="document"))return "";if(!s)return As[n];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[n]!="undefined")return o.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);{let l="raw"+Cu(n);this[l]?i=this[l](o,e):o.walk(a=>{if(i=a.raws[t],typeof i!="undefined")return false});}return typeof i=="undefined"&&(i=As[n]),o.rawCache[n]=i,i}rawBeforeClose(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length>0&&typeof n.raws.after!="undefined")return t=n.raws.after,t.includes(`
13
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:false};function Bu(r){return r[0].toUpperCase()+r.slice(1)}var _n=class{constructor(e){this.builder=e;}atrule(e,t){let n="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?n+=e.raws.afterName:i&&(n+=" "),e.nodes)this.block(e,n+i);else {let s=(e.raws.between||"")+(t?";":"");this.builder(n+i+s,e);}}beforeAfter(e,t){let n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):t==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");let i=e.parent,s=0;for(;i&&i.type!=="root";)s+=1,i=i.parent;if(n.includes(`
14
+ `)){let o=this.raw(e,null,"indent");if(o.length)for(let l=0;l<s;l++)n+=o;}return n}block(e,t){let n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",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 n=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let s=e.nodes[i],o=this.raw(s,"before");o&&this.builder(o),this.stringify(s,t!==i||n);}}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e);}decl(e,t){let n=this.raw(e,"between","colon"),i=e.prop+n+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,n){let i;if(n||(n=t),t&&(i=e.raws[t],typeof i!="undefined"))return i;let s=e.parent;if(n==="before"&&(!s||s.type==="root"&&s.first===e||s&&s.type==="document"))return "";if(!s)return $s[n];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[n]!="undefined")return o.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);{let l="raw"+Bu(n);this[l]?i=this[l](o,e):o.walk(a=>{if(i=a.raws[t],typeof i!="undefined")return false});}return typeof i=="undefined"&&(i=$s[n]),o.rawCache[n]=i,i}rawBeforeClose(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length>0&&typeof n.raws.after!="undefined")return t=n.raws.after,t.includes(`
14
15
  `)&&(t=t.replace(/[^\n]+$/,"")),false}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let n;return e.walkComments(i=>{if(typeof i.raws.before!="undefined")return n=i.raws.before,n.includes(`
15
16
  `)&&(n=n.replace(/[^\n]+$/,"")),false}),typeof n=="undefined"?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls(i=>{if(typeof i.raws.before!="undefined")return n=i.raws.before,n.includes(`
16
17
  `)&&(n=n.replace(/[^\n]+$/,"")),false}),typeof n=="undefined"?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let t;return e.walk(n=>{if(n.type!=="decl"&&(t=n.raws.between,typeof t!="undefined"))return false}),t}rawBeforeRule(e){let t;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before!="undefined")return t=n.raws.before,t.includes(`
17
18
  `)&&(t=t.replace(/[^\n]+$/,"")),false}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(n=>{if(typeof n.raws.between!="undefined")return t=n.raws.between.replace(/[^\s:]/g,""),false}),t}rawEmptyBody(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length===0&&(t=n.raws.after,typeof t!="undefined"))return false}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(n=>{let i=n.parent;if(i&&i!==e&&i.parent&&i.parent===e&&typeof n.raws.before!="undefined"){let s=n.raws.before.split(`
18
- `);return t=s[s.length-1],t=t.replace(/\S/g,""),false}}),t}rawSemicolon(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(t=n.raws.semicolon,typeof t!="undefined"))return false}),t}rawValue(e,t){let n=e[t],i=e.raws[t];return i&&i.value===n?i.raw:n}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);}},ko=Mn;Mn.default=Mn;var Eu=ko;function Tn(r,e){new Eu(e).stringify(r);}var Lr=Tn;Tn.default=Tn;var{isClean:Gt,my:Iu}=Et,xu=yi,Ru=ko,Mu=Lr;function An(r,e){let t=new r.constructor;for(let n in r){if(!Object.prototype.hasOwnProperty.call(r,n)||n==="proxyCache")continue;let i=r[n],s=typeof i;n==="parent"&&s==="object"?e&&(t[n]=e):n==="source"?t[n]=i:Array.isArray(i)?t[n]=i.map(o=>An(o,t)):(s==="object"&&i!==null&&(i=An(i)),t[n]=i);}return t}var kn=class{constructor(e={}){this.raws={},this[Gt]=false,this[Iu]=true;for(let t in e)if(t==="nodes"){this.nodes=[];for(let n of e[t])typeof n.clone=="function"?this.append(n.clone()):this.append(n);}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=An(this);for(let n in e)t[n]=e[n];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:n,start:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new xu(e)}getProxyProcessor(){return {get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),true}}}markDirty(){if(this[Gt]){this[Gt]=false;let e=this;for(;e=e.parent;)e[Gt]=false;}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){t=this.toString();let i=t.indexOf(e.word);i!==-1&&(n=this.positionInside(i,t));}return n}positionInside(e,t){let n=t||this.toString(),i=this.source.start.column,s=this.source.start.line;for(let o=0;o<e;o++)n[o]===`
19
- `?(i=1,s+=1):i+=1;return {column:i,line:s}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let i=this.toString(),s=i.indexOf(e.word);s!==-1&&(t=this.positionInside(s,i),n=this.positionInside(s+e.word.length,i));}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return (n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return new Ru().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,n=false;for(let i of e)i===this?n=true:n?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);n||this.remove();}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let n={},i=t==null;t=t||new Map;let s=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let l=this[o];if(Array.isArray(l))n[o]=l.map(a=>typeof a=="object"&&a.toJSON?a.toJSON(null,t):a);else if(typeof l=="object"&&l.toJSON)n[o]=l.toJSON(null,t);else if(o==="source"){let a=t.get(l.input);a==null&&(a=s,t.set(l.input,s),s++),n[o]={end:l.end,inputId:a,start:l.start};}else n[o]=l;}return i&&(n.inputs=[...t.keys()].map(o=>o.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Mu){e.stringify&&(e=e.stringify);let t="";return e(this,n=>{t+=n;}),t}warn(e,t,n){let i={node:this};for(let s in n)i[s]=n[s];return e.warn(t,i)}get proxyOf(){return this}},Pr=kn;kn.default=kn;var Tu=Pr,_n=class extends Tu{constructor(e){e&&typeof e.value!="undefined"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl";}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}},Fr=_n;_n.default=_n;var Au="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",_u=(r=21)=>{let e="",t=r;for(;t--;)e+=Au[Math.random()*64|0];return e},Nu={nanoid:_u},{SourceMapConsumer:ks,SourceMapGenerator:_s}=ue,{existsSync:Ou,readFileSync:Du}=ue,{dirname:hn,join:Lu}=ue;function Pu(r){return Buffer?Buffer.from(r,"base64").toString():window.atob(r)}var Nn=class{constructor(e,t){if(t.map===false)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,i=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=hn(this.mapFile)),i&&(this.text=i);}consumer(){return this.consumerCache||(this.consumerCache=new ks(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(i.test(e)||s.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||n.test(e))return Pu(e.substr(RegExp.lastMatch.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"?false:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let n=e.lastIndexOf(t.pop()),i=e.indexOf("*/",n);n>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,i)));}loadFile(e){if(this.root=hn(e),Ou(e))return this.mapFile=e,Du(e,"utf-8").toString().trim()}loadMap(e,t){if(t===false)return false;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let n=t(e);if(n){let i=this.loadFile(n);if(!i)throw new Error("Unable to load previous source map: "+n.toString());return i}}else {if(t instanceof ks)return _s.fromSourceMap(t).toString();if(t instanceof _s)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 n=this.annotation;return e&&(n=Lu(hn(e),n)),this.loadFile(n)}}}startWith(e,t){return e?e.substr(0,t.length)===t:false}withContent(){return !!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},_o=Nn;Nn.default=Nn;var{SourceMapConsumer:Fu,SourceMapGenerator:$u}=ue,{fileURLToPath:Ns,pathToFileURL:jt}=ue,{isAbsolute:On,resolve:Dn}=ue,{nanoid:Bu}=Nu,pn=ue,Os=yi,Uu=_o,mn=Symbol("fromOffsetCache"),Wu=!!(Fu&&$u),Ds=!!(Dn&&On),Er=class{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=true,this.css=this.css.slice(1)):this.hasBOM=false,t.from&&(!Ds||/^\w+:\/\//.test(t.from)||On(t.from)?this.file=t.from:this.file=Dn(t.from)),Ds&&Wu){let n=new Uu(this.css,t);if(n.text){this.map=n;let i=n.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i));}}this.file||(this.id="<input css "+Bu(6)+">"),this.map&&(this.map.file=this.from);}error(e,t,n,i={}){let s,o,l;if(t&&typeof t=="object"){let c=t,u=n;if(typeof c.offset=="number"){let d=this.fromOffset(c.offset);t=d.line,n=d.col;}else t=c.line,n=c.column;if(typeof u.offset=="number"){let d=this.fromOffset(u.offset);o=d.line,l=d.col;}else o=u.line,l=u.column;}else if(!n){let c=this.fromOffset(t);t=c.line,n=c.col;}let a=this.origin(t,n,o,l);return a?s=new Os(e,a.endLine===void 0?a.line:{column:a.column,line:a.line},a.endLine===void 0?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,i.plugin):s=new Os(e,o===void 0?t:{column:n,line:t},o===void 0?n:{column:l,line:o},this.css,this.file,i.plugin),s.input={column:n,endColumn:l,endLine:o,line:t,source:this.css},this.file&&(jt&&(s.input.url=jt(this.file).toString()),s.input.file=this.file),s}fromOffset(e){let t,n;if(this[mn])n=this[mn];else {let s=this.css.split(`
20
- `);n=new Array(s.length);let o=0;for(let l=0,a=s.length;l<a;l++)n[l]=o,o+=s[l].length+1;this[mn]=n;}t=n[n.length-1];let i=0;if(e>=t)i=n.length-1;else {let s=n.length-2,o;for(;i<s;)if(o=i+(s-i>>1),e<n[o])s=o-1;else if(e>=n[o+1])i=o+1;else {i=o;break}}return {col:e-n[i]+1,line:i+1}}mapResolve(e){return /^\w+:\/\//.test(e)?e:Dn(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,i){if(!this.map)return false;let s=this.map.consumer(),o=s.originalPositionFor({column:t,line:e});if(!o.source)return false;let l;typeof n=="number"&&(l=s.originalPositionFor({column:i,line:n}));let a;On(o.source)?a=jt(o.source):a=new URL(o.source,this.map.consumer().sourceRoot||jt(this.map.mapFile));let c={column:o.column,endColumn:l&&l.column,endLine:l&&l.line,line:o.line,url:a.toString()};if(a.protocol==="file:")if(Ns)c.file=Ns(a);else throw new Error("file: protocol is not available in this PostCSS build");let u=s.sourceContentFor(o.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={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}},$r=Er;Er.default=Er;pn&&pn.registerInput&&pn.registerInput(Er);var{SourceMapConsumer:No,SourceMapGenerator:dr}=ue,{dirname:hr,relative:Oo,resolve:Do,sep:Lo}=ue,{pathToFileURL:Ls}=ue,Hu=$r,zu=!!(No&&dr),Vu=!!(hr&&Do&&Oo&&Lo),Gu=class{constructor(e,t,n,i){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,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=`
19
+ `);return t=s[s.length-1],t=t.replace(/\S/g,""),false}}),t}rawSemicolon(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(t=n.raws.semicolon,typeof t!="undefined"))return false}),t}rawValue(e,t){let n=e[t],i=e.raws[t];return i&&i.value===n?i.raw:n}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);}},Bo=_n;_n.default=_n;var Uu=Bo;function kn(r,e){new Uu(e).stringify(r);}var Pr=kn;kn.default=kn;var{isClean:jt,my:Wu}=Rt,Hu=vi,zu=Bo,Vu=Pr;function Nn(r,e){let t=new r.constructor;for(let n in r){if(!Object.prototype.hasOwnProperty.call(r,n)||n==="proxyCache")continue;let i=r[n],s=typeof i;n==="parent"&&s==="object"?e&&(t[n]=e):n==="source"?t[n]=i:Array.isArray(i)?t[n]=i.map(o=>Nn(o,t)):(s==="object"&&i!==null&&(i=Nn(i)),t[n]=i);}return t}var On=class{constructor(e={}){this.raws={},this[jt]=false,this[Wu]=true;for(let t in e)if(t==="nodes"){this.nodes=[];for(let n of e[t])typeof n.clone=="function"?this.append(n.clone()):this.append(n);}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=Nn(this);for(let n in e)t[n]=e[n];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:n,start:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new Hu(e)}getProxyProcessor(){return {get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),true}}}markDirty(){if(this[jt]){this[jt]=false;let e=this;for(;e=e.parent;)e[jt]=false;}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){t=this.toString();let i=t.indexOf(e.word);i!==-1&&(n=this.positionInside(i,t));}return n}positionInside(e,t){let n=t||this.toString(),i=this.source.start.column,s=this.source.start.line;for(let o=0;o<e;o++)n[o]===`
20
+ `?(i=1,s+=1):i+=1;return {column:i,line:s}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let i=this.toString(),s=i.indexOf(e.word);s!==-1&&(t=this.positionInside(s,i),n=this.positionInside(s+e.word.length,i));}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return (n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return new zu().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,n=false;for(let i of e)i===this?n=true:n?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);n||this.remove();}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let n={},i=t==null;t=t||new Map;let s=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let l=this[o];if(Array.isArray(l))n[o]=l.map(a=>typeof a=="object"&&a.toJSON?a.toJSON(null,t):a);else if(typeof l=="object"&&l.toJSON)n[o]=l.toJSON(null,t);else if(o==="source"){let a=t.get(l.input);a==null&&(a=s,t.set(l.input,s),s++),n[o]={end:l.end,inputId:a,start:l.start};}else n[o]=l;}return i&&(n.inputs=[...t.keys()].map(o=>o.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Vu){e.stringify&&(e=e.stringify);let t="";return e(this,n=>{t+=n;}),t}warn(e,t,n){let i={node:this};for(let s in n)i[s]=n[s];return e.warn(t,i)}get proxyOf(){return this}},Fr=On;On.default=On;var Gu=Fr,Dn=class extends Gu{constructor(e){e&&typeof e.value!="undefined"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl";}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}},$r=Dn;Dn.default=Dn;var ju="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Xu=(r=21)=>{let e="",t=r;for(;t--;)e+=ju[Math.random()*64|0];return e},Ju={nanoid:Xu},{SourceMapConsumer:Bs,SourceMapGenerator:Us}=ue,{existsSync:Zu,readFileSync:Ku}=ue,{dirname:gn,join:qu}=ue;function Qu(r){return Buffer?Buffer.from(r,"base64").toString():window.atob(r)}var Ln=class{constructor(e,t){if(t.map===false)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,i=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=gn(this.mapFile)),i&&(this.text=i);}consumer(){return this.consumerCache||(this.consumerCache=new Bs(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(i.test(e)||s.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||n.test(e))return Qu(e.substr(RegExp.lastMatch.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"?false:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let n=e.lastIndexOf(t.pop()),i=e.indexOf("*/",n);n>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,i)));}loadFile(e){if(this.root=gn(e),Zu(e))return this.mapFile=e,Ku(e,"utf-8").toString().trim()}loadMap(e,t){if(t===false)return false;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let n=t(e);if(n){let i=this.loadFile(n);if(!i)throw new Error("Unable to load previous source map: "+n.toString());return i}}else {if(t instanceof Bs)return Us.fromSourceMap(t).toString();if(t instanceof Us)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 n=this.annotation;return e&&(n=qu(gn(e),n)),this.loadFile(n)}}}startWith(e,t){return e?e.substr(0,t.length)===t:false}withContent(){return !!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},Uo=Ln;Ln.default=Ln;var{SourceMapConsumer:ef,SourceMapGenerator:tf}=ue,{fileURLToPath:Ws,pathToFileURL:Yt}=ue,{isAbsolute:Pn,resolve:Fn}=ue,{nanoid:rf}=Ju,yn=ue,Hs=vi,nf=Uo,bn=Symbol("fromOffsetCache"),sf=!!(ef&&tf),zs=!!(Fn&&Pn),Ir=class{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=true,this.css=this.css.slice(1)):this.hasBOM=false,t.from&&(!zs||/^\w+:\/\//.test(t.from)||Pn(t.from)?this.file=t.from:this.file=Fn(t.from)),zs&&sf){let n=new nf(this.css,t);if(n.text){this.map=n;let i=n.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i));}}this.file||(this.id="<input css "+rf(6)+">"),this.map&&(this.map.file=this.from);}error(e,t,n,i={}){let s,o,l;if(t&&typeof t=="object"){let c=t,u=n;if(typeof c.offset=="number"){let d=this.fromOffset(c.offset);t=d.line,n=d.col;}else t=c.line,n=c.column;if(typeof u.offset=="number"){let d=this.fromOffset(u.offset);o=d.line,l=d.col;}else o=u.line,l=u.column;}else if(!n){let c=this.fromOffset(t);t=c.line,n=c.col;}let a=this.origin(t,n,o,l);return a?s=new Hs(e,a.endLine===void 0?a.line:{column:a.column,line:a.line},a.endLine===void 0?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,i.plugin):s=new Hs(e,o===void 0?t:{column:n,line:t},o===void 0?n:{column:l,line:o},this.css,this.file,i.plugin),s.input={column:n,endColumn:l,endLine:o,line:t,source:this.css},this.file&&(Yt&&(s.input.url=Yt(this.file).toString()),s.input.file=this.file),s}fromOffset(e){let t,n;if(this[bn])n=this[bn];else {let s=this.css.split(`
21
+ `);n=new Array(s.length);let o=0;for(let l=0,a=s.length;l<a;l++)n[l]=o,o+=s[l].length+1;this[bn]=n;}t=n[n.length-1];let i=0;if(e>=t)i=n.length-1;else {let s=n.length-2,o;for(;i<s;)if(o=i+(s-i>>1),e<n[o])s=o-1;else if(e>=n[o+1])i=o+1;else {i=o;break}}return {col:e-n[i]+1,line:i+1}}mapResolve(e){return /^\w+:\/\//.test(e)?e:Fn(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,i){if(!this.map)return false;let s=this.map.consumer(),o=s.originalPositionFor({column:t,line:e});if(!o.source)return false;let l;typeof n=="number"&&(l=s.originalPositionFor({column:i,line:n}));let a;Pn(o.source)?a=Yt(o.source):a=new URL(o.source,this.map.consumer().sourceRoot||Yt(this.map.mapFile));let c={column:o.column,endColumn:l&&l.column,endLine:l&&l.line,line:o.line,url:a.toString()};if(a.protocol==="file:")if(Ws)c.file=Ws(a);else throw new Error("file: protocol is not available in this PostCSS build");let u=s.sourceContentFor(o.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={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}},Br=Ir;Ir.default=Ir;yn&&yn.registerInput&&yn.registerInput(Ir);var{SourceMapConsumer:Wo,SourceMapGenerator:hr}=ue,{dirname:pr,relative:Ho,resolve:zo,sep:Vo}=ue,{pathToFileURL:Vs}=ue,of=Br,af=!!(Wo&&hr),lf=!!(pr&&zo&&Ho&&Vo),cf=class{constructor(e,t,n,i){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,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=`
21
22
  `;this.css.includes(`\r
22
23
  `)&&(t=`\r
23
- `),this.css+=t+"/*# sourceMappingURL="+e+" */";}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),n=e.root||hr(e.file),i;this.mapOpts.sourcesContent===false?(i=new No(e.text),i.sourcesContent&&(i.sourcesContent=null)):i=e.consumer(),this.map.applySourceMap(i,t,this.toUrl(this.path(n)));}}clearAnnotation(){if(this.mapOpts.annotation!==false)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.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t);}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""));}generate(){if(this.clearAnnotation(),Vu&&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=dr.fromSourceMap(e,{ignoreInvalidMapping:true});}else this.map=new dr({file:this.outputFile(),ignoreInvalidMapping:true}),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 dr({file:this.outputFile(),ignoreInvalidMapping:true});let e=1,t=1,n="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},s,o;this.stringify(this.root,(l,a,c)=>{if(this.css+=l,a&&c!=="end"&&(i.generated.line=e,i.generated.column=t-1,a.source&&a.source.start?(i.source=this.sourcePath(a),i.original.line=a.source.start.line,i.original.column=a.source.start.column-1,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,this.map.addMapping(i))),s=l.match(/\n/g),s?(e+=s.length,o=l.lastIndexOf(`
24
- `),t=l.length-o):t+=l.length,a&&c!=="start"){let u=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==u.last||u.raws.semicolon)&&(a.source&&a.source.end?(i.source=this.sourcePath(a),i.original.line=a.source.end.line,i.original.column=a.source.end.column-1,i.generated.line=e,i.generated.column=t-2,this.map.addMapping(i)):(i.source=n,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()?true:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):true}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==true?false:this.previous().length?this.previous().some(t=>t.inline):true}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()):true}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 n=this.opts.to?hr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=hr(Do(n,this.mapOpts.annotation)));let i=Oo(n,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 Hu(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 n=t.source.input.from;if(n&&!e[n]){e[n]=true;let i=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));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(Ls){let n=Ls(e).toString();return this.memoizedFileURLs.set(e,n),n}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;Lo==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}},Po=Gu,ju=Pr,Ln=class extends ju{constructor(e){super(e),this.type="comment";}},Br=Ln;Ln.default=Ln;var{isClean:Fo,my:$o}=Et,Bo=Fr,Uo=Br,Yu=Pr,Wo,bi,wi,Ho;function zo(r){return r.map(e=>(e.nodes&&(e.nodes=zo(e.nodes)),delete e.source,e))}function Vo(r){if(r[Fo]=false,r.proxyOf.nodes)for(let e of r.proxyOf.nodes)Vo(e);}var be=class Go extends Yu{append(...e){for(let t of e){let n=this.normalize(t,this.last);for(let i of n)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(),n,i;for(;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],i=e(this.proxyOf.nodes[n],n),i!==false);)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")?(...n)=>e[t](...n.map(i=>typeof i=="function"?(s,o)=>i(s.toProxy(),o):i)):t==="every"||t==="some"?n=>e[t]((i,...s)=>n(i.toProxy(),...s)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(n=>n.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),true}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let o of i)this.proxyOf.nodes.splice(n+1,0,o);let s;for(let o in this.indexes)s=this.indexes[o],n<s&&(this.indexes[o]=s+i.length);return this.markDirty(),this}insertBefore(e,t){let n=this.index(e),i=n===0?"prepend":false,s=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(let l of s)this.proxyOf.nodes.splice(n,0,l);let o;for(let l in this.indexes)o=this.indexes[l],n<=o&&(this.indexes[l]=o+s.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=zo(Wo(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 Bo(e)];}else if(e.selector)e=[new bi(e)];else if(e.name)e=[new wi(e)];else if(e.text)e=[new Uo(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[$o]||Go.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[Fo]&&Vo(i),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 n=this.normalize(t,this.first,"prepend").reverse();for(let i of n)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+n.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 n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=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,n));}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,n)=>{let i;try{i=e(t,n);}catch(s){throw t.addToError(s)}return i!==false&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="atrule"&&e.test(n.name))return t(n,i)}):this.walk((n,i)=>{if(n.type==="atrule"&&n.name===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="atrule")return t(n,i)}))}walkComments(e){return this.walk((t,n)=>{if(t.type==="comment")return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="decl"&&e.test(n.prop))return t(n,i)}):this.walk((n,i)=>{if(n.type==="decl"&&n.prop===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="decl")return t(n,i)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="rule"&&e.test(n.selector))return t(n,i)}):this.walk((n,i)=>{if(n.type==="rule"&&n.selector===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="rule")return t(n,i)}))}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]}};be.registerParse=r=>{Wo=r;};be.registerRule=r=>{bi=r;};be.registerAtRule=r=>{wi=r;};be.registerRoot=r=>{Ho=r;};var Ne=be;be.default=be;be.rebuild=r=>{r.type==="atrule"?Object.setPrototypeOf(r,wi.prototype):r.type==="rule"?Object.setPrototypeOf(r,bi.prototype):r.type==="decl"?Object.setPrototypeOf(r,Bo.prototype):r.type==="comment"?Object.setPrototypeOf(r,Uo.prototype):r.type==="root"&&Object.setPrototypeOf(r,Ho.prototype),r[$o]=true,r.nodes&&r.nodes.forEach(e=>{be.rebuild(e);});};var Xu=Ne,jo,Yo,pt=class extends Xu{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[]);}toResult(e={}){return new jo(new Yo,this,e).stringify()}};pt.registerLazyResult=r=>{jo=r;};pt.registerProcessor=r=>{Yo=r;};var vi=pt;pt.default=pt;var Pn=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let n=t.node.rangeBy(t);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column;}for(let n in t)this[n]=t[n];}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}},Xo=Pn;Pn.default=Pn;var Zu=Xo,Fn=class{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0;}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new Zu(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}},Si=Fn;Fn.default=Fn;var gn=39,Ps=34,Yt=92,Fs=47,Xt=10,st=32,Zt=12,Jt=9,Kt=13,Ju=91,Ku=93,qu=40,Qu=41,ef=123,tf=125,rf=59,nf=42,sf=58,of=64,qt=/[\t\n\f\r "#'()/;[\\\]{}]/g,Qt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,af=/.[\r\n"'(/\\]/,$s=/[\da-f]/i,lf=function(e,t={}){let n=e.css.valueOf(),i=t.ignoreErrors,s,o,l,a,c,u,d,f,g,m,p=n.length,h=0,y=[],w=[];function b(){return h}function S(A){throw e.error("Unclosed "+A,h)}function E(){return w.length===0&&h>=p}function I(A){if(w.length)return w.pop();if(h>=p)return;let F=A?A.ignoreUnclosed:false;switch(s=n.charCodeAt(h),s){case Xt:case st:case Jt:case Kt:case Zt:{o=h;do o+=1,s=n.charCodeAt(o);while(s===st||s===Xt||s===Jt||s===Kt||s===Zt);m=["space",n.slice(h,o)],h=o-1;break}case Ju:case Ku:case ef:case tf:case sf:case rf:case Qu:{let $=String.fromCharCode(s);m=[$,$,h];break}case qu:{if(f=y.length?y.pop()[1]:"",g=n.charCodeAt(h+1),f==="url"&&g!==gn&&g!==Ps&&g!==st&&g!==Xt&&g!==Jt&&g!==Zt&&g!==Kt){o=h;do{if(u=false,o=n.indexOf(")",o+1),o===-1)if(i||F){o=h;break}else S("bracket");for(d=o;n.charCodeAt(d-1)===Yt;)d-=1,u=!u;}while(u);m=["brackets",n.slice(h,o+1),h,o],h=o;}else o=n.indexOf(")",h+1),a=n.slice(h,o+1),o===-1||af.test(a)?m=["(","(",h]:(m=["brackets",a,h,o],h=o);break}case gn:case Ps:{l=s===gn?"'":'"',o=h;do{if(u=false,o=n.indexOf(l,o+1),o===-1)if(i||F){o=h+1;break}else S("string");for(d=o;n.charCodeAt(d-1)===Yt;)d-=1,u=!u;}while(u);m=["string",n.slice(h,o+1),h,o],h=o;break}case of:{qt.lastIndex=h+1,qt.test(n),qt.lastIndex===0?o=n.length-1:o=qt.lastIndex-2,m=["at-word",n.slice(h,o+1),h,o],h=o;break}case Yt:{for(o=h,c=true;n.charCodeAt(o+1)===Yt;)o+=1,c=!c;if(s=n.charCodeAt(o+1),c&&s!==Fs&&s!==st&&s!==Xt&&s!==Jt&&s!==Kt&&s!==Zt&&(o+=1,$s.test(n.charAt(o)))){for(;$s.test(n.charAt(o+1));)o+=1;n.charCodeAt(o+1)===st&&(o+=1);}m=["word",n.slice(h,o+1),h,o],h=o;break}default:{s===Fs&&n.charCodeAt(h+1)===nf?(o=n.indexOf("*/",h+2)+1,o===0&&(i||F?o=n.length:S("comment")),m=["comment",n.slice(h,o+1),h,o],h=o):(Qt.lastIndex=h+1,Qt.test(n),Qt.lastIndex===0?o=n.length-1:o=Qt.lastIndex-2,m=["word",n.slice(h,o+1),h,o],y.push(m),h=o);break}}return h++,m}function P(A){w.push(A);}return {back:P,endOfFile:E,nextToken:I,position:b}},Zo=Ne,Ir=class extends Zo{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)}},Ci=Ir;Ir.default=Ir;Zo.registerAtRule(Ir);var Jo=Ne,Ko,qo,je=class extends Jo{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[]);}normalize(e,t,n){let i=super.normalize(e);if(t){if(n==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let s of i)s.raws.before=t.raws.before;}return i}removeChild(e,t){let n=this.index(e);return !t&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new Ko(new qo,this,e).stringify()}};je.registerLazyResult=r=>{Ko=r;};je.registerProcessor=r=>{qo=r;};var It=je;je.default=je;Jo.registerRoot(je);var mt={comma(r){return mt.split(r,[","],true)},space(r){let e=[" ",`
25
- `," "];return mt.split(r,e)},split(r,e,t){let n=[],i="",s=false,o=0,l=false,a="",c=false;for(let u of r)c?c=false:u==="\\"?c=true:l?u===a&&(l=false):u==='"'||u==="'"?(l=true,a=u):u==="("?o+=1:u===")"?o>0&&(o-=1):o===0&&e.includes(u)&&(s=true),s?(i!==""&&n.push(i.trim()),i="",s=false):i+=u;return (t||i!=="")&&n.push(i.trim()),n}},Qo=mt;mt.default=mt;var ea=Ne,cf=Qo,xr=class extends ea{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[]);}get selectors(){return cf.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n);}},Ei=xr;xr.default=xr;ea.registerRule(xr);var uf=Fr,ff=lf,df=Br,hf=Ci,pf=It,Bs=Ei,Us={empty:true,space:true};function mf(r){for(let e=r.length-1;e>=0;e--){let t=r[e],n=t[3]||t[2];if(n)return n}}var gf=class{constructor(e){this.input=e,this.root=new pf,this.current=this.root,this.spaces="",this.semicolon=false,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}};}atrule(e){let t=new hf;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let n,i,s,o=false,l=false,a=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=true;break}else if(n==="{"){l=true;break}else if(n==="}"){if(a.length>0){for(s=a.length-1,i=a[s];i&&i[0]==="space";)i=a[--s];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++);}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=true;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),o&&(e=a[a.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===false)return;let n=0,i;for(let s=t-1;s>=0&&(i=e[s],!(i[0]!=="space"&&(n+=1,n===2)));s--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0,n,i,s;for(let[o,l]of e.entries()){if(n=l,i=n[0],i==="("&&(t+=1),i===")"&&(t-=1),t===0&&i===":")if(!s)this.doubleColon(n);else {if(s[0]==="word"&&s[1]==="progid")continue;return o}s=n;}return false}comment(e){let t=new df;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else {let i=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=i[2],t.raws.left=i[1],t.raws.right=i[3];}}createTokenizer(){this.tokenizer=ff(this.input);}decl(e,t){let n=new uf;this.init(n,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=true,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||mf(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;n.prop+=e.shift()[1];}n.raws.between="";let s;for(;e.length;)if(s=e.shift(),s[0]===":"){n.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),n.raws.between+=s[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let o=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(s=e[c],s[1].toLowerCase()==="!important"){n.important=true;let u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u,u!==" !important"&&(n.raws.important=u);break}else if(s[1].toLowerCase()==="important"){let u=e.slice(0),d="";for(let f=c;f>0;f--){let g=u[f][0];if(d.trim().indexOf("!")===0&&g!=="space")break;d=u.pop()[1]+d;}d.trim().indexOf("!")===0&&(n.important=true,n.raws.important=d,e=u);}if(s[0]!=="space"&&s[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(n.raws.between+=o.map(c=>c[1]).join(""),o=[]),this.raw(n,"value",o.concat(e),t),n.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 Bs;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=false,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="");}}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=false);}other(e){let t=false,n=null,i=false,s=null,o=[],l=e[1].startsWith("--"),a=[],c=e;for(;c;){if(n=c[0],a.push(c),n==="("||n==="[")s||(s=c),o.push(n==="("?")":"]");else if(l&&i&&n==="{")s||(s=c),o.push("}");else if(o.length===0)if(n===";")if(i){this.decl(a,l);return}else break;else if(n==="{"){this.rule(a);return}else if(n==="}"){this.tokenizer.back(a.pop()),t=true;break}else n===":"&&(i=true);else n===o[o.length-1]&&(o.pop(),o.length===0&&(s=null));c=this.tokenizer.nextToken();}if(this.tokenizer.endOfFile()&&(t=true),o.length>0&&this.unclosedBracket(s),t&&i){if(!l)for(;a.length&&(c=a[a.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l);}else this.unknownWord(a);}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,n,i){let s,o,l=n.length,a="",c=true,u,d;for(let f=0;f<l;f+=1)s=n[f],o=s[0],o==="space"&&f===l-1&&!i?c=false:o==="comment"?(d=n[f-1]?n[f-1][0]:"empty",u=n[f+1]?n[f+1][0]:"empty",!Us[d]&&!Us[u]?a.slice(-1)===","?c=false:a+=s[1]:c=false):a+=s[1];if(!c){let f=n.reduce((g,m)=>g+m[1],"");e.raws[t]={raw:f,value:a};}e[t]=a;}rule(e){e.pop();let t=new Bs;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t;}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],t==="space");)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let i=t;i<e.length;i++)n+=e[i][1];return e.splice(t,e.length-t),n}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",{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})}},yf=gf,bf=Ne,wf=yf,vf=$r;function Rr(r,e){let t=new vf(r,e),n=new wf(t);try{n.parse();}catch(i){throw i}return n.root}var Ii=Rr;Rr.default=Rr;bf.registerParse(Rr);var{isClean:me,my:Sf}=Et,Cf=Po,Ef=Lr,If=Ne,xf=vi;var Ws=Si,Rf=Ii,Mf=It,Tf={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Af={AtRule:true,AtRuleExit:true,Comment:true,CommentExit:true,Declaration:true,DeclarationExit:true,Document:true,DocumentExit:true,Once:true,OnceExit:true,postcssPlugin:true,prepare:true,Root:true,RootExit:true,Rule:true,RuleExit:true},kf={Once:true,postcssPlugin:true,prepare:true},Ye=0;function ot(r){return typeof r=="object"&&typeof r.then=="function"}function ta(r){let e=false,t=Tf[r.type];return r.type==="decl"?e=r.prop.toLowerCase():r.type==="atrule"&&(e=r.name.toLowerCase()),e&&r.append?[t,t+"-"+e,Ye,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:r.append?[t,Ye,t+"Exit"]:[t,t+"Exit"]}function Hs(r){let e;return r.type==="document"?e=["Document",Ye,"DocumentExit"]:r.type==="root"?e=["Root",Ye,"RootExit"]:e=ta(r),{eventIndex:0,events:e,iterator:0,node:r,visitorIndex:0,visitors:[]}}function $n(r){return r[me]=false,r.nodes&&r.nodes.forEach(e=>$n(e)),r}var Bn={},Xe=class ra{constructor(e,t,n){this.stringified=false,this.processed=false;let i;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))i=$n(t);else if(t instanceof ra||t instanceof Ws)i=$n(t.root),t.map&&(typeof n.map=="undefined"&&(n.map={}),n.map.inline||(n.map.inline=false),n.map.prev=t.map);else {let s=Rf;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(t,n);}catch(o){this.processed=true,this.error=o;}i&&!i[Sf]&&If.rebuild(i);}this.result=new Ws(e,i,n),this.helpers={...Bn,postcss:Bn,result:this.result},this.plugins=this.processor.plugins.map(s=>typeof s=="object"&&s.prepare?{...s,...s.prepare(this.result)}:s);}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 n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion;}catch(i){console&&console.error&&console.error(i);}return e}prepareVisitors(){this.listeners={};let e=(t,n,i)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([t,i]);};for(let t of this.plugins)if(typeof t=="object")for(let n in t){if(!Af[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!kf[n])if(typeof t[n]=="object")for(let i in t[n])i==="*"?e(t,n,t[n][i]):e(t,n+"-"+i.toLowerCase(),t[n][i]);else typeof t[n]=="function"&&e(t,n,t[n]);}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],n=this.runOnRoot(t);if(ot(n))try{await n;}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[me];){e[me]=true;let t=[Hs(e)];for(;t.length>0;){let n=this.visitTick(t);if(ot(n))try{await n;}catch(i){let s=t[t.length-1].node;throw this.handleError(i,s)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let i=e.nodes.map(s=>n(s,this.helpers));await Promise.all(i);}else await n(e,this.helpers);}catch(i){throw this.handleError(i)}}}return this.processed=true,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(n=>e.Once(n,this.helpers));return ot(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=true,this.sync();let e=this.result.opts,t=Ef;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new Cf(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=true,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(ot(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[me];)e[me]=true,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[n,i]of e){this.result.lastPlugin=n;let s;try{s=i(t,this.helpers);}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return true;if(ot(s))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:i}=t;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[o,l]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return l(n.toProxy(),this.helpers)}catch(a){throw this.handleError(a,n)}}if(t.iterator!==0){let o=t.iterator,l;for(;l=n.nodes[n.indexes[o]];)if(n.indexes[o]+=1,!l[me]){l[me]=true,e.push(Hs(l));return}t.iterator=0,delete n.indexes[o];}let s=t.events;for(;t.eventIndex<s.length;){let o=s[t.eventIndex];if(t.eventIndex+=1,o===Ye){n.nodes&&n.nodes.length&&(n[me]=true,t.iterator=n.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop();}walkSync(e){e[me]=true;let t=ta(e);for(let n of t)if(n===Ye)e.nodes&&e.each(i=>{i[me]||this.walkSync(i);});else {let i=this.listeners[n];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}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"}};Xe.registerPostcss=r=>{Bn=r;};var na=Xe;Xe.default=Xe;Mf.registerLazyResult(Xe);xf.registerLazyResult(Xe);var _f=Po,Nf=Lr;var Of=Ii,Df=Si,Un=class{constructor(e,t,n){t=t.toString(),this.stringified=false,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let i,s=Nf;this.result=new Df(this._processor,i,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let l=new _f(s,i,this._opts,t);if(l.isMap()){let[a,c]=l.generate();a&&(this.result.css=a),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 []}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=Of;try{e=t(this._css,this._opts);}catch(n){this.error=n;}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return "NoWorkResult"}},Lf=Un;Un.default=Un;var Pf=Lf,Ff=na,$f=vi,Bf=It,gt=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e);}normalize(e){let t=[];for(let n of e)if(n.postcss===true?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)t.push(n);else if(typeof n=="function")t.push(n);else if(!(typeof n=="object"&&(n.parse||n.stringify)))throw new Error(n+" is not a PostCSS plugin");return t}process(e,t={}){return !this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Pf(this,e,t):new Ff(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}},Uf=gt;gt.default=gt;Bf.registerProcessor(gt);$f.registerProcessor(gt);var Wf=Fr,Hf=_o,zf=Br,Vf=Ci,Gf=$r,jf=It,Yf=Ei;function yt(r,e){if(Array.isArray(r))return r.map(i=>yt(i));let{inputs:t,...n}=r;if(t){e=[];for(let i of t){let s={...i,__proto__:Gf.prototype};s.map&&(s.map={...s.map,__proto__:Hf.prototype}),e.push(s);}}if(n.nodes&&(n.nodes=r.nodes.map(i=>yt(i,e))),n.source){let{inputId:i,...s}=n.source;n.source=s,i!=null&&(n.source.input=e[i]);}if(n.type==="root")return new jf(n);if(n.type==="decl")return new Wf(n);if(n.type==="rule")return new Yf(n);if(n.type==="comment")return new zf(n);if(n.type==="atrule")return new Vf(n);throw new Error("Unknown node type: "+r.type)}var Xf=yt;yt.default=yt;var Zf=yi,ia=Fr,Jf=na,Kf=Ne,xi=Uf,qf=Lr,Qf=Xf,sa=vi,ed=Xo,oa=Br,aa=Ci,td=Si,rd=$r,nd=Ii,id=Qo,la=Ei,ca=It,sd=Pr;function _(...r){return r.length===1&&Array.isArray(r[0])&&(r=r[0]),new xi(r)}_.plugin=function(e,t){let n=false;function i(...o){console&&console.warn&&!n&&(n=true,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
24
+ `),this.css+=t+"/*# sourceMappingURL="+e+" */";}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),n=e.root||pr(e.file),i;this.mapOpts.sourcesContent===false?(i=new Wo(e.text),i.sourcesContent&&(i.sourcesContent=null)):i=e.consumer(),this.map.applySourceMap(i,t,this.toUrl(this.path(n)));}}clearAnnotation(){if(this.mapOpts.annotation!==false)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.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t);}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""));}generate(){if(this.clearAnnotation(),lf&&af&&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=hr.fromSourceMap(e,{ignoreInvalidMapping:true});}else this.map=new hr({file:this.outputFile(),ignoreInvalidMapping:true}),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 hr({file:this.outputFile(),ignoreInvalidMapping:true});let e=1,t=1,n="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},s,o;this.stringify(this.root,(l,a,c)=>{if(this.css+=l,a&&c!=="end"&&(i.generated.line=e,i.generated.column=t-1,a.source&&a.source.start?(i.source=this.sourcePath(a),i.original.line=a.source.start.line,i.original.column=a.source.start.column-1,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,this.map.addMapping(i))),s=l.match(/\n/g),s?(e+=s.length,o=l.lastIndexOf(`
25
+ `),t=l.length-o):t+=l.length,a&&c!=="start"){let u=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==u.last||u.raws.semicolon)&&(a.source&&a.source.end?(i.source=this.sourcePath(a),i.original.line=a.source.end.line,i.original.column=a.source.end.column-1,i.generated.line=e,i.generated.column=t-2,this.map.addMapping(i)):(i.source=n,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()?true:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):true}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==true?false:this.previous().length?this.previous().some(t=>t.inline):true}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()):true}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 n=this.opts.to?pr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=pr(zo(n,this.mapOpts.annotation)));let i=Ho(n,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 of(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 n=t.source.input.from;if(n&&!e[n]){e[n]=true;let i=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));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(Vs){let n=Vs(e).toString();return this.memoizedFileURLs.set(e,n),n}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;Vo==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}},Go=cf,uf=Fr,$n=class extends uf{constructor(e){super(e),this.type="comment";}},Ur=$n;$n.default=$n;var{isClean:jo,my:Yo}=Rt,Xo=$r,Jo=Ur,ff=Fr,Zo,Si,Ci,Ko;function qo(r){return r.map(e=>(e.nodes&&(e.nodes=qo(e.nodes)),delete e.source,e))}function Qo(r){if(r[jo]=false,r.proxyOf.nodes)for(let e of r.proxyOf.nodes)Qo(e);}var we=class ea extends ff{append(...e){for(let t of e){let n=this.normalize(t,this.last);for(let i of n)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(),n,i;for(;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],i=e(this.proxyOf.nodes[n],n),i!==false);)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")?(...n)=>e[t](...n.map(i=>typeof i=="function"?(s,o)=>i(s.toProxy(),o):i)):t==="every"||t==="some"?n=>e[t]((i,...s)=>n(i.toProxy(),...s)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(n=>n.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),true}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let o of i)this.proxyOf.nodes.splice(n+1,0,o);let s;for(let o in this.indexes)s=this.indexes[o],n<s&&(this.indexes[o]=s+i.length);return this.markDirty(),this}insertBefore(e,t){let n=this.index(e),i=n===0?"prepend":false,s=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(let l of s)this.proxyOf.nodes.splice(n,0,l);let o;for(let l in this.indexes)o=this.indexes[l],n<=o&&(this.indexes[l]=o+s.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=qo(Zo(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 Xo(e)];}else if(e.selector)e=[new Si(e)];else if(e.name)e=[new Ci(e)];else if(e.text)e=[new Jo(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[Yo]||ea.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[jo]&&Qo(i),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 n=this.normalize(t,this.first,"prepend").reverse();for(let i of n)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+n.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 n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=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,n));}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,n)=>{let i;try{i=e(t,n);}catch(s){throw t.addToError(s)}return i!==false&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="atrule"&&e.test(n.name))return t(n,i)}):this.walk((n,i)=>{if(n.type==="atrule"&&n.name===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="atrule")return t(n,i)}))}walkComments(e){return this.walk((t,n)=>{if(t.type==="comment")return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="decl"&&e.test(n.prop))return t(n,i)}):this.walk((n,i)=>{if(n.type==="decl"&&n.prop===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="decl")return t(n,i)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="rule"&&e.test(n.selector))return t(n,i)}):this.walk((n,i)=>{if(n.type==="rule"&&n.selector===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="rule")return t(n,i)}))}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]}};we.registerParse=r=>{Zo=r;};we.registerRule=r=>{Si=r;};we.registerAtRule=r=>{Ci=r;};we.registerRoot=r=>{Ko=r;};var De=we;we.default=we;we.rebuild=r=>{r.type==="atrule"?Object.setPrototypeOf(r,Ci.prototype):r.type==="rule"?Object.setPrototypeOf(r,Si.prototype):r.type==="decl"?Object.setPrototypeOf(r,Xo.prototype):r.type==="comment"?Object.setPrototypeOf(r,Jo.prototype):r.type==="root"&&Object.setPrototypeOf(r,Ko.prototype),r[Yo]=true,r.nodes&&r.nodes.forEach(e=>{we.rebuild(e);});};var df=De,ta,ra,yt=class extends df{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[]);}toResult(e={}){return new ta(new ra,this,e).stringify()}};yt.registerLazyResult=r=>{ta=r;};yt.registerProcessor=r=>{ra=r;};var Ei=yt;yt.default=yt;var Bn=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let n=t.node.rangeBy(t);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column;}for(let n in t)this[n]=t[n];}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}},na=Bn;Bn.default=Bn;var hf=na,Un=class{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0;}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new hf(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}},Ii=Un;Un.default=Un;var wn=39,Gs=34,Xt=92,js=47,Jt=10,lt=32,Zt=12,Kt=9,qt=13,pf=91,mf=93,gf=40,yf=41,bf=123,wf=125,vf=59,Sf=42,Cf=58,Ef=64,Qt=/[\t\n\f\r "#'()/;[\\\]{}]/g,er=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,If=/.[\r\n"'(/\\]/,Ys=/[\da-f]/i,xf=function(e,t={}){let n=e.css.valueOf(),i=t.ignoreErrors,s,o,l,a,c,u,d,f,g,m,p=n.length,h=0,y=[],w=[];function b(){return h}function v(A){throw e.error("Unclosed "+A,h)}function C(){return w.length===0&&h>=p}function I(A){if(w.length)return w.pop();if(h>=p)return;let L=A?A.ignoreUnclosed:false;switch(s=n.charCodeAt(h),s){case Jt:case lt:case Kt:case qt:case Zt:{o=h;do o+=1,s=n.charCodeAt(o);while(s===lt||s===Jt||s===Kt||s===qt||s===Zt);m=["space",n.slice(h,o)],h=o-1;break}case pf:case mf:case bf:case wf:case Cf:case vf:case yf:{let $=String.fromCharCode(s);m=[$,$,h];break}case gf:{if(f=y.length?y.pop()[1]:"",g=n.charCodeAt(h+1),f==="url"&&g!==wn&&g!==Gs&&g!==lt&&g!==Jt&&g!==Kt&&g!==Zt&&g!==qt){o=h;do{if(u=false,o=n.indexOf(")",o+1),o===-1)if(i||L){o=h;break}else v("bracket");for(d=o;n.charCodeAt(d-1)===Xt;)d-=1,u=!u;}while(u);m=["brackets",n.slice(h,o+1),h,o],h=o;}else o=n.indexOf(")",h+1),a=n.slice(h,o+1),o===-1||If.test(a)?m=["(","(",h]:(m=["brackets",a,h,o],h=o);break}case wn:case Gs:{l=s===wn?"'":'"',o=h;do{if(u=false,o=n.indexOf(l,o+1),o===-1)if(i||L){o=h+1;break}else v("string");for(d=o;n.charCodeAt(d-1)===Xt;)d-=1,u=!u;}while(u);m=["string",n.slice(h,o+1),h,o],h=o;break}case Ef:{Qt.lastIndex=h+1,Qt.test(n),Qt.lastIndex===0?o=n.length-1:o=Qt.lastIndex-2,m=["at-word",n.slice(h,o+1),h,o],h=o;break}case Xt:{for(o=h,c=true;n.charCodeAt(o+1)===Xt;)o+=1,c=!c;if(s=n.charCodeAt(o+1),c&&s!==js&&s!==lt&&s!==Jt&&s!==Kt&&s!==qt&&s!==Zt&&(o+=1,Ys.test(n.charAt(o)))){for(;Ys.test(n.charAt(o+1));)o+=1;n.charCodeAt(o+1)===lt&&(o+=1);}m=["word",n.slice(h,o+1),h,o],h=o;break}default:{s===js&&n.charCodeAt(h+1)===Sf?(o=n.indexOf("*/",h+2)+1,o===0&&(i||L?o=n.length:v("comment")),m=["comment",n.slice(h,o+1),h,o],h=o):(er.lastIndex=h+1,er.test(n),er.lastIndex===0?o=n.length-1:o=er.lastIndex-2,m=["word",n.slice(h,o+1),h,o],y.push(m),h=o);break}}return h++,m}function D(A){w.push(A);}return {back:D,endOfFile:C,nextToken:I,position:b}},ia=De,xr=class extends ia{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)}},xi=xr;xr.default=xr;ia.registerAtRule(xr);var sa=De,oa,aa,Je=class extends sa{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[]);}normalize(e,t,n){let i=super.normalize(e);if(t){if(n==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let s of i)s.raws.before=t.raws.before;}return i}removeChild(e,t){let n=this.index(e);return !t&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new oa(new aa,this,e).stringify()}};Je.registerLazyResult=r=>{oa=r;};Je.registerProcessor=r=>{aa=r;};var Mt=Je;Je.default=Je;sa.registerRoot(Je);var bt={comma(r){return bt.split(r,[","],true)},space(r){let e=[" ",`
26
+ `," "];return bt.split(r,e)},split(r,e,t){let n=[],i="",s=false,o=0,l=false,a="",c=false;for(let u of r)c?c=false:u==="\\"?c=true:l?u===a&&(l=false):u==='"'||u==="'"?(l=true,a=u):u==="("?o+=1:u===")"?o>0&&(o-=1):o===0&&e.includes(u)&&(s=true),s?(i!==""&&n.push(i.trim()),i="",s=false):i+=u;return (t||i!=="")&&n.push(i.trim()),n}},la=bt;bt.default=bt;var ca=De,Rf=la,Rr=class extends ca{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[]);}get selectors(){return Rf.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n);}},Ri=Rr;Rr.default=Rr;ca.registerRule(Rr);var Mf=$r,Tf=xf,Af=Ur,_f=xi,kf=Mt,Xs=Ri,Js={empty:true,space:true};function Nf(r){for(let e=r.length-1;e>=0;e--){let t=r[e],n=t[3]||t[2];if(n)return n}}var Of=class{constructor(e){this.input=e,this.root=new kf,this.current=this.root,this.spaces="",this.semicolon=false,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}};}atrule(e){let t=new _f;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let n,i,s,o=false,l=false,a=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=true;break}else if(n==="{"){l=true;break}else if(n==="}"){if(a.length>0){for(s=a.length-1,i=a[s];i&&i[0]==="space";)i=a[--s];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++);}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=true;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),o&&(e=a[a.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===false)return;let n=0,i;for(let s=t-1;s>=0&&(i=e[s],!(i[0]!=="space"&&(n+=1,n===2)));s--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0,n,i,s;for(let[o,l]of e.entries()){if(n=l,i=n[0],i==="("&&(t+=1),i===")"&&(t-=1),t===0&&i===":")if(!s)this.doubleColon(n);else {if(s[0]==="word"&&s[1]==="progid")continue;return o}s=n;}return false}comment(e){let t=new Af;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else {let i=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=i[2],t.raws.left=i[1],t.raws.right=i[3];}}createTokenizer(){this.tokenizer=Tf(this.input);}decl(e,t){let n=new Mf;this.init(n,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=true,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||Nf(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;n.prop+=e.shift()[1];}n.raws.between="";let s;for(;e.length;)if(s=e.shift(),s[0]===":"){n.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),n.raws.between+=s[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let o=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(s=e[c],s[1].toLowerCase()==="!important"){n.important=true;let u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u,u!==" !important"&&(n.raws.important=u);break}else if(s[1].toLowerCase()==="important"){let u=e.slice(0),d="";for(let f=c;f>0;f--){let g=u[f][0];if(d.trim().indexOf("!")===0&&g!=="space")break;d=u.pop()[1]+d;}d.trim().indexOf("!")===0&&(n.important=true,n.raws.important=d,e=u);}if(s[0]!=="space"&&s[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(n.raws.between+=o.map(c=>c[1]).join(""),o=[]),this.raw(n,"value",o.concat(e),t),n.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 Xs;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=false,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="");}}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=false);}other(e){let t=false,n=null,i=false,s=null,o=[],l=e[1].startsWith("--"),a=[],c=e;for(;c;){if(n=c[0],a.push(c),n==="("||n==="[")s||(s=c),o.push(n==="("?")":"]");else if(l&&i&&n==="{")s||(s=c),o.push("}");else if(o.length===0)if(n===";")if(i){this.decl(a,l);return}else break;else if(n==="{"){this.rule(a);return}else if(n==="}"){this.tokenizer.back(a.pop()),t=true;break}else n===":"&&(i=true);else n===o[o.length-1]&&(o.pop(),o.length===0&&(s=null));c=this.tokenizer.nextToken();}if(this.tokenizer.endOfFile()&&(t=true),o.length>0&&this.unclosedBracket(s),t&&i){if(!l)for(;a.length&&(c=a[a.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l);}else this.unknownWord(a);}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,n,i){let s,o,l=n.length,a="",c=true,u,d;for(let f=0;f<l;f+=1)s=n[f],o=s[0],o==="space"&&f===l-1&&!i?c=false:o==="comment"?(d=n[f-1]?n[f-1][0]:"empty",u=n[f+1]?n[f+1][0]:"empty",!Js[d]&&!Js[u]?a.slice(-1)===","?c=false:a+=s[1]:c=false):a+=s[1];if(!c){let f=n.reduce((g,m)=>g+m[1],"");e.raws[t]={raw:f,value:a};}e[t]=a;}rule(e){e.pop();let t=new Xs;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t;}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],t==="space");)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let i=t;i<e.length;i++)n+=e[i][1];return e.splice(t,e.length-t),n}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",{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})}},Df=Of,Lf=De,Pf=Df,Ff=Br;function Mr(r,e){let t=new Ff(r,e),n=new Pf(t);try{n.parse();}catch(i){throw i}return n.root}var Mi=Mr;Mr.default=Mr;Lf.registerParse(Mr);var{isClean:me,my:$f}=Rt,Bf=Go,Uf=Pr,Wf=De,Hf=Ei;var Zs=Ii,zf=Mi,Vf=Mt,Gf={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},jf={AtRule:true,AtRuleExit:true,Comment:true,CommentExit:true,Declaration:true,DeclarationExit:true,Document:true,DocumentExit:true,Once:true,OnceExit:true,postcssPlugin:true,prepare:true,Root:true,RootExit:true,Rule:true,RuleExit:true},Yf={Once:true,postcssPlugin:true,prepare:true},Ze=0;function ct(r){return typeof r=="object"&&typeof r.then=="function"}function ua(r){let e=false,t=Gf[r.type];return r.type==="decl"?e=r.prop.toLowerCase():r.type==="atrule"&&(e=r.name.toLowerCase()),e&&r.append?[t,t+"-"+e,Ze,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:r.append?[t,Ze,t+"Exit"]:[t,t+"Exit"]}function Ks(r){let e;return r.type==="document"?e=["Document",Ze,"DocumentExit"]:r.type==="root"?e=["Root",Ze,"RootExit"]:e=ua(r),{eventIndex:0,events:e,iterator:0,node:r,visitorIndex:0,visitors:[]}}function Wn(r){return r[me]=false,r.nodes&&r.nodes.forEach(e=>Wn(e)),r}var Hn={},Ke=class fa{constructor(e,t,n){this.stringified=false,this.processed=false;let i;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))i=Wn(t);else if(t instanceof fa||t instanceof Zs)i=Wn(t.root),t.map&&(typeof n.map=="undefined"&&(n.map={}),n.map.inline||(n.map.inline=false),n.map.prev=t.map);else {let s=zf;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(t,n);}catch(o){this.processed=true,this.error=o;}i&&!i[$f]&&Wf.rebuild(i);}this.result=new Zs(e,i,n),this.helpers={...Hn,postcss:Hn,result:this.result},this.plugins=this.processor.plugins.map(s=>typeof s=="object"&&s.prepare?{...s,...s.prepare(this.result)}:s);}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 n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion;}catch(i){console&&console.error&&console.error(i);}return e}prepareVisitors(){this.listeners={};let e=(t,n,i)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([t,i]);};for(let t of this.plugins)if(typeof t=="object")for(let n in t){if(!jf[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Yf[n])if(typeof t[n]=="object")for(let i in t[n])i==="*"?e(t,n,t[n][i]):e(t,n+"-"+i.toLowerCase(),t[n][i]);else typeof t[n]=="function"&&e(t,n,t[n]);}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],n=this.runOnRoot(t);if(ct(n))try{await n;}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[me];){e[me]=true;let t=[Ks(e)];for(;t.length>0;){let n=this.visitTick(t);if(ct(n))try{await n;}catch(i){let s=t[t.length-1].node;throw this.handleError(i,s)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let i=e.nodes.map(s=>n(s,this.helpers));await Promise.all(i);}else await n(e,this.helpers);}catch(i){throw this.handleError(i)}}}return this.processed=true,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(n=>e.Once(n,this.helpers));return ct(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=true,this.sync();let e=this.result.opts,t=Uf;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=true,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(ct(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[me];)e[me]=true,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[n,i]of e){this.result.lastPlugin=n;let s;try{s=i(t,this.helpers);}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return true;if(ct(s))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:i}=t;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[o,l]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return l(n.toProxy(),this.helpers)}catch(a){throw this.handleError(a,n)}}if(t.iterator!==0){let o=t.iterator,l;for(;l=n.nodes[n.indexes[o]];)if(n.indexes[o]+=1,!l[me]){l[me]=true,e.push(Ks(l));return}t.iterator=0,delete n.indexes[o];}let s=t.events;for(;t.eventIndex<s.length;){let o=s[t.eventIndex];if(t.eventIndex+=1,o===Ze){n.nodes&&n.nodes.length&&(n[me]=true,t.iterator=n.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop();}walkSync(e){e[me]=true;let t=ua(e);for(let n of t)if(n===Ze)e.nodes&&e.each(i=>{i[me]||this.walkSync(i);});else {let i=this.listeners[n];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}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"}};Ke.registerPostcss=r=>{Hn=r;};var da=Ke;Ke.default=Ke;Vf.registerLazyResult(Ke);Hf.registerLazyResult(Ke);var Xf=Go,Jf=Pr;var Zf=Mi,Kf=Ii,zn=class{constructor(e,t,n){t=t.toString(),this.stringified=false,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let i,s=Jf;this.result=new Kf(this._processor,i,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let l=new Xf(s,i,this._opts,t);if(l.isMap()){let[a,c]=l.generate();a&&(this.result.css=a),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 []}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(n){this.error=n;}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return "NoWorkResult"}},qf=zn;zn.default=zn;var Qf=qf,ed=da,td=Ei,rd=Mt,wt=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e);}normalize(e){let t=[];for(let n of e)if(n.postcss===true?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)t.push(n);else if(typeof n=="function")t.push(n);else if(!(typeof n=="object"&&(n.parse||n.stringify)))throw new Error(n+" is not a PostCSS plugin");return t}process(e,t={}){return !this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Qf(this,e,t):new ed(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}},nd=wt;wt.default=wt;rd.registerProcessor(wt);td.registerProcessor(wt);var id=$r,sd=Uo,od=Ur,ad=xi,ld=Br,cd=Mt,ud=Ri;function vt(r,e){if(Array.isArray(r))return r.map(i=>vt(i));let{inputs:t,...n}=r;if(t){e=[];for(let i of t){let s={...i,__proto__:ld.prototype};s.map&&(s.map={...s.map,__proto__:sd.prototype}),e.push(s);}}if(n.nodes&&(n.nodes=r.nodes.map(i=>vt(i,e))),n.source){let{inputId:i,...s}=n.source;n.source=s,i!=null&&(n.source.input=e[i]);}if(n.type==="root")return new cd(n);if(n.type==="decl")return new id(n);if(n.type==="rule")return new ud(n);if(n.type==="comment")return new od(n);if(n.type==="atrule")return new ad(n);throw new Error("Unknown node type: "+r.type)}var fd=vt;vt.default=vt;var dd=vi,ha=$r,hd=da,pd=De,Ti=nd,md=Pr,gd=fd,pa=Ei,yd=na,ma=Ur,ga=xi,bd=Ii,wd=Br,vd=Mi,Sd=la,ya=Ri,ba=Mt,Cd=Fr;function k(...r){return r.length===1&&Array.isArray(r[0])&&(r=r[0]),new Ti(r)}k.plugin=function(e,t){let n=false;function i(...o){console&&console.warn&&!n&&(n=true,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
26
27
  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:
27
- https://www.w3ctech.com/topic/2226`));let l=t(...o);return l.postcssPlugin=e,l.postcssVersion=new xi().version,l}let s;return Object.defineProperty(i,"postcss",{get(){return s||(s=i()),s}}),i.process=function(o,l,a){return _([i(a)]).process(o,l)},i};_.stringify=qf;_.parse=nd;_.fromJSON=Qf;_.list=id;_.comment=r=>new oa(r);_.atRule=r=>new aa(r);_.decl=r=>new ia(r);_.rule=r=>new la(r);_.root=r=>new ca(r);_.document=r=>new sa(r);_.CssSyntaxError=Zf;_.Declaration=ia;_.Container=Kf;_.Processor=xi;_.Document=sa;_.Comment=oa;_.Warning=ed;_.AtRule=aa;_.Result=td;_.Input=rd;_.Rule=la;_.Root=ca;_.Node=sd;Jf.registerPostcss(_);var od=_;_.default=_;var W=yu(od);W.stringify;W.fromJSON;W.plugin;W.parse;W.list;W.document;W.comment;W.atRule;W.rule;W.decl;W.root;W.CssSyntaxError;W.Declaration;W.Container;W.Processor;W.Document;W.Comment;W.Warning;W.AtRule;W.Result;W.Input;W.Rule;W.Root;W.Node;var ad=Object.defineProperty,ld=(r,e,t)=>e in r?ad(r,e,{enumerable:true,configurable:true,writable:true,value:t}):r[e]=t,oe=(r,e,t)=>ld(r,typeof e!="symbol"?e+"":e,t);function cd(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function ud(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype;}else t={};return Object.defineProperty(t,"__esModule",{value:true}),Object.keys(r).forEach(function(n){var i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,i.get?i:{enumerable:true,get:function(){return r[n]}});}),t}var Ri={exports:{}},U=String,ua=function(){return {isColorSupported:false,reset:U,bold:U,dim:U,italic:U,underline:U,inverse:U,hidden:U,strikethrough:U,black:U,red:U,green:U,yellow:U,blue:U,magenta:U,cyan:U,white:U,gray:U,bgBlack:U,bgRed:U,bgGreen:U,bgYellow:U,bgBlue:U,bgMagenta:U,bgCyan:U,bgWhite:U}};Ri.exports=ua();Ri.exports.createColors=ua;var fd=Ri.exports,dd={},hd=Object.freeze(Object.defineProperty({__proto__:null,default:dd},Symbol.toStringTag,{value:"Module"})),fe=ud(hd),zs=fd,Vs=fe,Wn=class fa extends Error{constructor(e,t,n,i,s,o){super(e),this.name="CssSyntaxError",this.reason=e,s&&(this.file=s),i&&(this.source=i),o&&(this.plugin=o),typeof t!="undefined"&&typeof n!="undefined"&&(typeof t=="number"?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.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=zs.isColorSupported),Vs&&e&&(t=Vs(t));let n=t.split(/\r?\n/),i=Math.max(this.line-3,0),s=Math.min(this.line+2,n.length),o=String(s).length,l,a;if(e){let{bold:c,gray:u,red:d}=zs.createColors(true);l=f=>c(d(f)),a=f=>u(f);}else l=a=c=>c;return n.slice(i,s).map((c,u)=>{let d=i+1+u,f=" "+(" "+d).slice(-o)+" | ";if(d===this.line){let g=a(f.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(f)+c+`
28
+ https://www.w3ctech.com/topic/2226`));let l=t(...o);return l.postcssPlugin=e,l.postcssVersion=new Ti().version,l}let s;return Object.defineProperty(i,"postcss",{get(){return s||(s=i()),s}}),i.process=function(o,l,a){return k([i(a)]).process(o,l)},i};k.stringify=md;k.parse=vd;k.fromJSON=gd;k.list=Sd;k.comment=r=>new ma(r);k.atRule=r=>new ga(r);k.decl=r=>new ha(r);k.rule=r=>new ya(r);k.root=r=>new ba(r);k.document=r=>new pa(r);k.CssSyntaxError=dd;k.Declaration=ha;k.Container=pd;k.Processor=Ti;k.Document=pa;k.Comment=ma;k.Warning=yd;k.AtRule=ga;k.Result=bd;k.Input=wd;k.Rule=ya;k.Root=ba;k.Node=Cd;hd.registerPostcss(k);var Ed=k;k.default=k;var W=Du(Ed);W.stringify;W.fromJSON;W.plugin;W.parse;W.list;W.document;W.comment;W.atRule;W.rule;W.decl;W.root;W.CssSyntaxError;W.Declaration;W.Container;W.Processor;W.Document;W.Comment;W.Warning;W.AtRule;W.Result;W.Input;W.Rule;W.Root;W.Node;var Id=Object.defineProperty,xd=(r,e,t)=>e in r?Id(r,e,{enumerable:true,configurable:true,writable:true,value:t}):r[e]=t,oe=(r,e,t)=>xd(r,typeof e!="symbol"?e+"":e,t);function Rd(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Md(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype;}else t={};return Object.defineProperty(t,"__esModule",{value:true}),Object.keys(r).forEach(function(n){var i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,i.get?i:{enumerable:true,get:function(){return r[n]}});}),t}var Ai={exports:{}},U=String,wa=function(){return {isColorSupported:false,reset:U,bold:U,dim:U,italic:U,underline:U,inverse:U,hidden:U,strikethrough:U,black:U,red:U,green:U,yellow:U,blue:U,magenta:U,cyan:U,white:U,gray:U,bgBlack:U,bgRed:U,bgGreen:U,bgYellow:U,bgBlue:U,bgMagenta:U,bgCyan:U,bgWhite:U}};Ai.exports=wa();Ai.exports.createColors=wa;var Td=Ai.exports,Ad={},_d=Object.freeze(Object.defineProperty({__proto__:null,default:Ad},Symbol.toStringTag,{value:"Module"})),fe=Md(_d),qs=Td,Qs=fe,Vn=class va extends Error{constructor(e,t,n,i,s,o){super(e),this.name="CssSyntaxError",this.reason=e,s&&(this.file=s),i&&(this.source=i),o&&(this.plugin=o),typeof t!="undefined"&&typeof n!="undefined"&&(typeof t=="number"?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,va);}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=qs.isColorSupported),Qs&&e&&(t=Qs(t));let n=t.split(/\r?\n/),i=Math.max(this.line-3,0),s=Math.min(this.line+2,n.length),o=String(s).length,l,a;if(e){let{bold:c,gray:u,red:d}=qs.createColors(true);l=f=>c(d(f)),a=f=>u(f);}else l=a=c=>c;return n.slice(i,s).map((c,u)=>{let d=i+1+u,f=" "+(" "+d).slice(-o)+" | ";if(d===this.line){let g=a(f.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(f)+c+`
28
29
  `+g+l("^")}return " "+a(f)+c}).join(`
29
30
  `)}toString(){let e=this.showSourceCode();return e&&(e=`
30
31
 
31
32
  `+e+`
32
- `),this.name+": "+this.message+e}},Mi=Wn;Wn.default=Wn;var xt={};xt.isClean=Symbol("isClean");xt.my=Symbol("my");var Gs={after:`
33
+ `),this.name+": "+this.message+e}},_i=Vn;Vn.default=Vn;var Tt={};Tt.isClean=Symbol("isClean");Tt.my=Symbol("my");var eo={after:`
33
34
  `,beforeClose:`
34
35
  `,beforeComment:`
35
36
  `,beforeDecl:`
36
37
  `,beforeOpen:" ",beforeRule:`
37
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:false};function pd(r){return r[0].toUpperCase()+r.slice(1)}var Hn=class{constructor(e){this.builder=e;}atrule(e,t){let n="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?n+=e.raws.afterName:i&&(n+=" "),e.nodes)this.block(e,n+i);else {let s=(e.raws.between||"")+(t?";":"");this.builder(n+i+s,e);}}beforeAfter(e,t){let n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):t==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");let i=e.parent,s=0;for(;i&&i.type!=="root";)s+=1,i=i.parent;if(n.includes(`
38
- `)){let o=this.raw(e,null,"indent");if(o.length)for(let l=0;l<s;l++)n+=o;}return n}block(e,t){let n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",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 n=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let s=e.nodes[i],o=this.raw(s,"before");o&&this.builder(o),this.stringify(s,t!==i||n);}}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e);}decl(e,t){let n=this.raw(e,"between","colon"),i=e.prop+n+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,n){let i;if(n||(n=t),t&&(i=e.raws[t],typeof i!="undefined"))return i;let s=e.parent;if(n==="before"&&(!s||s.type==="root"&&s.first===e||s&&s.type==="document"))return "";if(!s)return Gs[n];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[n]!="undefined")return o.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);{let l="raw"+pd(n);this[l]?i=this[l](o,e):o.walk(a=>{if(i=a.raws[t],typeof i!="undefined")return false});}return typeof i=="undefined"&&(i=Gs[n]),o.rawCache[n]=i,i}rawBeforeClose(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length>0&&typeof n.raws.after!="undefined")return t=n.raws.after,t.includes(`
38
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:false};function kd(r){return r[0].toUpperCase()+r.slice(1)}var Gn=class{constructor(e){this.builder=e;}atrule(e,t){let n="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?n+=e.raws.afterName:i&&(n+=" "),e.nodes)this.block(e,n+i);else {let s=(e.raws.between||"")+(t?";":"");this.builder(n+i+s,e);}}beforeAfter(e,t){let n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):t==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");let i=e.parent,s=0;for(;i&&i.type!=="root";)s+=1,i=i.parent;if(n.includes(`
39
+ `)){let o=this.raw(e,null,"indent");if(o.length)for(let l=0;l<s;l++)n+=o;}return n}block(e,t){let n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",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 n=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let s=e.nodes[i],o=this.raw(s,"before");o&&this.builder(o),this.stringify(s,t!==i||n);}}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e);}decl(e,t){let n=this.raw(e,"between","colon"),i=e.prop+n+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,n){let i;if(n||(n=t),t&&(i=e.raws[t],typeof i!="undefined"))return i;let s=e.parent;if(n==="before"&&(!s||s.type==="root"&&s.first===e||s&&s.type==="document"))return "";if(!s)return eo[n];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[n]!="undefined")return o.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);{let l="raw"+kd(n);this[l]?i=this[l](o,e):o.walk(a=>{if(i=a.raws[t],typeof i!="undefined")return false});}return typeof i=="undefined"&&(i=eo[n]),o.rawCache[n]=i,i}rawBeforeClose(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length>0&&typeof n.raws.after!="undefined")return t=n.raws.after,t.includes(`
39
40
  `)&&(t=t.replace(/[^\n]+$/,"")),false}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let n;return e.walkComments(i=>{if(typeof i.raws.before!="undefined")return n=i.raws.before,n.includes(`
40
41
  `)&&(n=n.replace(/[^\n]+$/,"")),false}),typeof n=="undefined"?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls(i=>{if(typeof i.raws.before!="undefined")return n=i.raws.before,n.includes(`
41
42
  `)&&(n=n.replace(/[^\n]+$/,"")),false}),typeof n=="undefined"?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let t;return e.walk(n=>{if(n.type!=="decl"&&(t=n.raws.between,typeof t!="undefined"))return false}),t}rawBeforeRule(e){let t;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before!="undefined")return t=n.raws.before,t.includes(`
42
43
  `)&&(t=t.replace(/[^\n]+$/,"")),false}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(n=>{if(typeof n.raws.between!="undefined")return t=n.raws.between.replace(/[^\s:]/g,""),false}),t}rawEmptyBody(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length===0&&(t=n.raws.after,typeof t!="undefined"))return false}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(n=>{let i=n.parent;if(i&&i!==e&&i.parent&&i.parent===e&&typeof n.raws.before!="undefined"){let s=n.raws.before.split(`
43
- `);return t=s[s.length-1],t=t.replace(/\S/g,""),false}}),t}rawSemicolon(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(t=n.raws.semicolon,typeof t!="undefined"))return false}),t}rawValue(e,t){let n=e[t],i=e.raws[t];return i&&i.value===n?i.raw:n}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);}},da=Hn;Hn.default=Hn;var md=da;function zn(r,e){new md(e).stringify(r);}var Ur=zn;zn.default=zn;var{isClean:er,my:gd}=xt,yd=Mi,bd=da,wd=Ur;function Vn(r,e){let t=new r.constructor;for(let n in r){if(!Object.prototype.hasOwnProperty.call(r,n)||n==="proxyCache")continue;let i=r[n],s=typeof i;n==="parent"&&s==="object"?e&&(t[n]=e):n==="source"?t[n]=i:Array.isArray(i)?t[n]=i.map(o=>Vn(o,t)):(s==="object"&&i!==null&&(i=Vn(i)),t[n]=i);}return t}var Gn=class{constructor(e={}){this.raws={},this[er]=false,this[gd]=true;for(let t in e)if(t==="nodes"){this.nodes=[];for(let n of e[t])typeof n.clone=="function"?this.append(n.clone()):this.append(n);}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=Vn(this);for(let n in e)t[n]=e[n];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:n,start:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new yd(e)}getProxyProcessor(){return {get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),true}}}markDirty(){if(this[er]){this[er]=false;let e=this;for(;e=e.parent;)e[er]=false;}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){t=this.toString();let i=t.indexOf(e.word);i!==-1&&(n=this.positionInside(i,t));}return n}positionInside(e,t){let n=t||this.toString(),i=this.source.start.column,s=this.source.start.line;for(let o=0;o<e;o++)n[o]===`
44
- `?(i=1,s+=1):i+=1;return {column:i,line:s}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let i=this.toString(),s=i.indexOf(e.word);s!==-1&&(t=this.positionInside(s,i),n=this.positionInside(s+e.word.length,i));}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return (n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return new bd().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,n=false;for(let i of e)i===this?n=true:n?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);n||this.remove();}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let n={},i=t==null;t=t||new Map;let s=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let l=this[o];if(Array.isArray(l))n[o]=l.map(a=>typeof a=="object"&&a.toJSON?a.toJSON(null,t):a);else if(typeof l=="object"&&l.toJSON)n[o]=l.toJSON(null,t);else if(o==="source"){let a=t.get(l.input);a==null&&(a=s,t.set(l.input,s),s++),n[o]={end:l.end,inputId:a,start:l.start};}else n[o]=l;}return i&&(n.inputs=[...t.keys()].map(o=>o.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=wd){e.stringify&&(e=e.stringify);let t="";return e(this,n=>{t+=n;}),t}warn(e,t,n){let i={node:this};for(let s in n)i[s]=n[s];return e.warn(t,i)}get proxyOf(){return this}},Wr=Gn;Gn.default=Gn;var vd=Wr,jn=class extends vd{constructor(e){e&&typeof e.value!="undefined"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl";}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}},Hr=jn;jn.default=jn;var Sd="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Ed=(r=21)=>{let e="",t=r;for(;t--;)e+=Sd[Math.random()*64|0];return e},Id={nanoid:Ed},{SourceMapConsumer:js,SourceMapGenerator:Ys}=fe,{existsSync:xd,readFileSync:Rd}=fe,{dirname:yn,join:Md}=fe;function Td(r){return Buffer?Buffer.from(r,"base64").toString():window.atob(r)}var Yn=class{constructor(e,t){if(t.map===false)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,i=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=yn(this.mapFile)),i&&(this.text=i);}consumer(){return this.consumerCache||(this.consumerCache=new js(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(i.test(e)||s.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||n.test(e))return Td(e.substr(RegExp.lastMatch.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"?false:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let n=e.lastIndexOf(t.pop()),i=e.indexOf("*/",n);n>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,i)));}loadFile(e){if(this.root=yn(e),xd(e))return this.mapFile=e,Rd(e,"utf-8").toString().trim()}loadMap(e,t){if(t===false)return false;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let n=t(e);if(n){let i=this.loadFile(n);if(!i)throw new Error("Unable to load previous source map: "+n.toString());return i}}else {if(t instanceof js)return Ys.fromSourceMap(t).toString();if(t instanceof Ys)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 n=this.annotation;return e&&(n=Md(yn(e),n)),this.loadFile(n)}}}startWith(e,t){return e?e.substr(0,t.length)===t:false}withContent(){return !!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},ha=Yn;Yn.default=Yn;var{SourceMapConsumer:Ad,SourceMapGenerator:kd}=fe,{fileURLToPath:Xs,pathToFileURL:tr}=fe,{isAbsolute:Xn,resolve:Zn}=fe,{nanoid:_d}=Id,bn=fe,Zs=Mi,Nd=ha,wn=Symbol("fromOffsetCache"),Od=!!(Ad&&kd),Js=!!(Zn&&Xn),Mr=class{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=true,this.css=this.css.slice(1)):this.hasBOM=false,t.from&&(!Js||/^\w+:\/\//.test(t.from)||Xn(t.from)?this.file=t.from:this.file=Zn(t.from)),Js&&Od){let n=new Nd(this.css,t);if(n.text){this.map=n;let i=n.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,n,i={}){let s,o,l;if(t&&typeof t=="object"){let c=t,u=n;if(typeof c.offset=="number"){let d=this.fromOffset(c.offset);t=d.line,n=d.col;}else t=c.line,n=c.column;if(typeof u.offset=="number"){let d=this.fromOffset(u.offset);o=d.line,l=d.col;}else o=u.line,l=u.column;}else if(!n){let c=this.fromOffset(t);t=c.line,n=c.col;}let a=this.origin(t,n,o,l);return a?s=new Zs(e,a.endLine===void 0?a.line:{column:a.column,line:a.line},a.endLine===void 0?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,i.plugin):s=new Zs(e,o===void 0?t:{column:n,line:t},o===void 0?n:{column:l,line:o},this.css,this.file,i.plugin),s.input={column:n,endColumn:l,endLine:o,line:t,source:this.css},this.file&&(tr&&(s.input.url=tr(this.file).toString()),s.input.file=this.file),s}fromOffset(e){let t,n;if(this[wn])n=this[wn];else {let s=this.css.split(`
45
- `);n=new Array(s.length);let o=0;for(let l=0,a=s.length;l<a;l++)n[l]=o,o+=s[l].length+1;this[wn]=n;}t=n[n.length-1];let i=0;if(e>=t)i=n.length-1;else {let s=n.length-2,o;for(;i<s;)if(o=i+(s-i>>1),e<n[o])s=o-1;else if(e>=n[o+1])i=o+1;else {i=o;break}}return {col:e-n[i]+1,line:i+1}}mapResolve(e){return /^\w+:\/\//.test(e)?e:Zn(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,i){if(!this.map)return false;let s=this.map.consumer(),o=s.originalPositionFor({column:t,line:e});if(!o.source)return false;let l;typeof n=="number"&&(l=s.originalPositionFor({column:i,line:n}));let a;Xn(o.source)?a=tr(o.source):a=new URL(o.source,this.map.consumer().sourceRoot||tr(this.map.mapFile));let c={column:o.column,endColumn:l&&l.column,endLine:l&&l.line,line:o.line,url:a.toString()};if(a.protocol==="file:")if(Xs)c.file=Xs(a);else throw new Error("file: protocol is not available in this PostCSS build");let u=s.sourceContentFor(o.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={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}},zr=Mr;Mr.default=Mr;bn&&bn.registerInput&&bn.registerInput(Mr);var{SourceMapConsumer:pa,SourceMapGenerator:pr}=fe,{dirname:mr,relative:ma,resolve:ga,sep:ya}=fe,{pathToFileURL:Ks}=fe,Dd=zr,Ld=!!(pa&&pr),Pd=!!(mr&&ga&&ma&&ya),Fd=class{constructor(e,t,n,i){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,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=`
44
+ `);return t=s[s.length-1],t=t.replace(/\S/g,""),false}}),t}rawSemicolon(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(t=n.raws.semicolon,typeof t!="undefined"))return false}),t}rawValue(e,t){let n=e[t],i=e.raws[t];return i&&i.value===n?i.raw:n}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);}},Sa=Gn;Gn.default=Gn;var Nd=Sa;function jn(r,e){new Nd(e).stringify(r);}var Wr=jn;jn.default=jn;var{isClean:tr,my:Od}=Tt,Dd=_i,Ld=Sa,Pd=Wr;function Yn(r,e){let t=new r.constructor;for(let n in r){if(!Object.prototype.hasOwnProperty.call(r,n)||n==="proxyCache")continue;let i=r[n],s=typeof i;n==="parent"&&s==="object"?e&&(t[n]=e):n==="source"?t[n]=i:Array.isArray(i)?t[n]=i.map(o=>Yn(o,t)):(s==="object"&&i!==null&&(i=Yn(i)),t[n]=i);}return t}var Xn=class{constructor(e={}){this.raws={},this[tr]=false,this[Od]=true;for(let t in e)if(t==="nodes"){this.nodes=[];for(let n of e[t])typeof n.clone=="function"?this.append(n.clone()):this.append(n);}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=Yn(this);for(let n in e)t[n]=e[n];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:n,start:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.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,n){return e[t]===n||(e[t]=n,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),true}}}markDirty(){if(this[tr]){this[tr]=false;let e=this;for(;e=e.parent;)e[tr]=false;}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){t=this.toString();let i=t.indexOf(e.word);i!==-1&&(n=this.positionInside(i,t));}return n}positionInside(e,t){let n=t||this.toString(),i=this.source.start.column,s=this.source.start.line;for(let o=0;o<e;o++)n[o]===`
45
+ `?(i=1,s+=1):i+=1;return {column:i,line:s}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let i=this.toString(),s=i.indexOf(e.word);s!==-1&&(t=this.positionInside(s,i),n=this.positionInside(s+e.word.length,i));}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return (n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return new Ld().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,n=false;for(let i of e)i===this?n=true:n?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);n||this.remove();}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let n={},i=t==null;t=t||new Map;let s=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let l=this[o];if(Array.isArray(l))n[o]=l.map(a=>typeof a=="object"&&a.toJSON?a.toJSON(null,t):a);else if(typeof l=="object"&&l.toJSON)n[o]=l.toJSON(null,t);else if(o==="source"){let a=t.get(l.input);a==null&&(a=s,t.set(l.input,s),s++),n[o]={end:l.end,inputId:a,start:l.start};}else n[o]=l;}return i&&(n.inputs=[...t.keys()].map(o=>o.toJSON())),n}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,n=>{t+=n;}),t}warn(e,t,n){let i={node:this};for(let s in n)i[s]=n[s];return e.warn(t,i)}get proxyOf(){return this}},Hr=Xn;Xn.default=Xn;var Fd=Hr,Jn=class extends Fd{constructor(e){e&&typeof e.value!="undefined"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl";}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}},zr=Jn;Jn.default=Jn;var $d="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Ud=(r=21)=>{let e="",t=r;for(;t--;)e+=$d[Math.random()*64|0];return e},Wd={nanoid:Ud},{SourceMapConsumer:to,SourceMapGenerator:ro}=fe,{existsSync:Hd,readFileSync:zd}=fe,{dirname:vn,join:Vd}=fe;function Gd(r){return Buffer?Buffer.from(r,"base64").toString():window.atob(r)}var Zn=class{constructor(e,t){if(t.map===false)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,i=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=vn(this.mapFile)),i&&(this.text=i);}consumer(){return this.consumerCache||(this.consumerCache=new to(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(i.test(e)||s.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||n.test(e))return Gd(e.substr(RegExp.lastMatch.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"?false:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let n=e.lastIndexOf(t.pop()),i=e.indexOf("*/",n);n>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,i)));}loadFile(e){if(this.root=vn(e),Hd(e))return this.mapFile=e,zd(e,"utf-8").toString().trim()}loadMap(e,t){if(t===false)return false;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let n=t(e);if(n){let i=this.loadFile(n);if(!i)throw new Error("Unable to load previous source map: "+n.toString());return i}}else {if(t instanceof to)return ro.fromSourceMap(t).toString();if(t instanceof ro)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 n=this.annotation;return e&&(n=Vd(vn(e),n)),this.loadFile(n)}}}startWith(e,t){return e?e.substr(0,t.length)===t:false}withContent(){return !!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},Ca=Zn;Zn.default=Zn;var{SourceMapConsumer:jd,SourceMapGenerator:Yd}=fe,{fileURLToPath:no,pathToFileURL:rr}=fe,{isAbsolute:Kn,resolve:qn}=fe,{nanoid:Xd}=Wd,Sn=fe,io=_i,Jd=Ca,Cn=Symbol("fromOffsetCache"),Zd=!!(jd&&Yd),so=!!(qn&&Kn),Tr=class{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=true,this.css=this.css.slice(1)):this.hasBOM=false,t.from&&(!so||/^\w+:\/\//.test(t.from)||Kn(t.from)?this.file=t.from:this.file=qn(t.from)),so&&Zd){let n=new Jd(this.css,t);if(n.text){this.map=n;let i=n.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i));}}this.file||(this.id="<input css "+Xd(6)+">"),this.map&&(this.map.file=this.from);}error(e,t,n,i={}){let s,o,l;if(t&&typeof t=="object"){let c=t,u=n;if(typeof c.offset=="number"){let d=this.fromOffset(c.offset);t=d.line,n=d.col;}else t=c.line,n=c.column;if(typeof u.offset=="number"){let d=this.fromOffset(u.offset);o=d.line,l=d.col;}else o=u.line,l=u.column;}else if(!n){let c=this.fromOffset(t);t=c.line,n=c.col;}let a=this.origin(t,n,o,l);return a?s=new io(e,a.endLine===void 0?a.line:{column:a.column,line:a.line},a.endLine===void 0?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,i.plugin):s=new io(e,o===void 0?t:{column:n,line:t},o===void 0?n:{column:l,line:o},this.css,this.file,i.plugin),s.input={column:n,endColumn:l,endLine:o,line:t,source:this.css},this.file&&(rr&&(s.input.url=rr(this.file).toString()),s.input.file=this.file),s}fromOffset(e){let t,n;if(this[Cn])n=this[Cn];else {let s=this.css.split(`
46
+ `);n=new Array(s.length);let o=0;for(let l=0,a=s.length;l<a;l++)n[l]=o,o+=s[l].length+1;this[Cn]=n;}t=n[n.length-1];let i=0;if(e>=t)i=n.length-1;else {let s=n.length-2,o;for(;i<s;)if(o=i+(s-i>>1),e<n[o])s=o-1;else if(e>=n[o+1])i=o+1;else {i=o;break}}return {col:e-n[i]+1,line:i+1}}mapResolve(e){return /^\w+:\/\//.test(e)?e:qn(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,i){if(!this.map)return false;let s=this.map.consumer(),o=s.originalPositionFor({column:t,line:e});if(!o.source)return false;let l;typeof n=="number"&&(l=s.originalPositionFor({column:i,line:n}));let a;Kn(o.source)?a=rr(o.source):a=new URL(o.source,this.map.consumer().sourceRoot||rr(this.map.mapFile));let c={column:o.column,endColumn:l&&l.column,endLine:l&&l.line,line:o.line,url:a.toString()};if(a.protocol==="file:")if(no)c.file=no(a);else throw new Error("file: protocol is not available in this PostCSS build");let u=s.sourceContentFor(o.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={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}},Vr=Tr;Tr.default=Tr;Sn&&Sn.registerInput&&Sn.registerInput(Tr);var{SourceMapConsumer:Ea,SourceMapGenerator:mr}=fe,{dirname:gr,relative:Ia,resolve:xa,sep:Ra}=fe,{pathToFileURL:oo}=fe,Kd=Vr,qd=!!(Ea&&mr),Qd=!!(gr&&xa&&Ia&&Ra),eh=class{constructor(e,t,n,i){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,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=`
46
47
  `;this.css.includes(`\r
47
48
  `)&&(t=`\r
48
- `),this.css+=t+"/*# sourceMappingURL="+e+" */";}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),n=e.root||mr(e.file),i;this.mapOpts.sourcesContent===false?(i=new pa(e.text),i.sourcesContent&&(i.sourcesContent=null)):i=e.consumer(),this.map.applySourceMap(i,t,this.toUrl(this.path(n)));}}clearAnnotation(){if(this.mapOpts.annotation!==false)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.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t);}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""));}generate(){if(this.clearAnnotation(),Pd&&Ld&&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=pr.fromSourceMap(e,{ignoreInvalidMapping:true});}else this.map=new pr({file:this.outputFile(),ignoreInvalidMapping:true}),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 pr({file:this.outputFile(),ignoreInvalidMapping:true});let e=1,t=1,n="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},s,o;this.stringify(this.root,(l,a,c)=>{if(this.css+=l,a&&c!=="end"&&(i.generated.line=e,i.generated.column=t-1,a.source&&a.source.start?(i.source=this.sourcePath(a),i.original.line=a.source.start.line,i.original.column=a.source.start.column-1,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,this.map.addMapping(i))),s=l.match(/\n/g),s?(e+=s.length,o=l.lastIndexOf(`
49
- `),t=l.length-o):t+=l.length,a&&c!=="start"){let u=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==u.last||u.raws.semicolon)&&(a.source&&a.source.end?(i.source=this.sourcePath(a),i.original.line=a.source.end.line,i.original.column=a.source.end.column-1,i.generated.line=e,i.generated.column=t-2,this.map.addMapping(i)):(i.source=n,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()?true:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):true}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==true?false:this.previous().length?this.previous().some(t=>t.inline):true}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()):true}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 n=this.opts.to?mr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=mr(ga(n,this.mapOpts.annotation)));let i=ma(n,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 Dd(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 n=t.source.input.from;if(n&&!e[n]){e[n]=true;let i=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));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(Ks){let n=Ks(e).toString();return this.memoizedFileURLs.set(e,n),n}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;ya==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}},ba=Fd,$d=Wr,Jn=class extends $d{constructor(e){super(e),this.type="comment";}},Vr=Jn;Jn.default=Jn;var{isClean:wa,my:va}=xt,Sa=Hr,Ca=Vr,Bd=Wr,Ea,Ti,Ai,Ia;function xa(r){return r.map(e=>(e.nodes&&(e.nodes=xa(e.nodes)),delete e.source,e))}function Ra(r){if(r[wa]=false,r.proxyOf.nodes)for(let e of r.proxyOf.nodes)Ra(e);}var we=class Ma extends Bd{append(...e){for(let t of e){let n=this.normalize(t,this.last);for(let i of n)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(),n,i;for(;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],i=e(this.proxyOf.nodes[n],n),i!==false);)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")?(...n)=>e[t](...n.map(i=>typeof i=="function"?(s,o)=>i(s.toProxy(),o):i)):t==="every"||t==="some"?n=>e[t]((i,...s)=>n(i.toProxy(),...s)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(n=>n.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),true}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let o of i)this.proxyOf.nodes.splice(n+1,0,o);let s;for(let o in this.indexes)s=this.indexes[o],n<s&&(this.indexes[o]=s+i.length);return this.markDirty(),this}insertBefore(e,t){let n=this.index(e),i=n===0?"prepend":false,s=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(let l of s)this.proxyOf.nodes.splice(n,0,l);let o;for(let l in this.indexes)o=this.indexes[l],n<=o&&(this.indexes[l]=o+s.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=xa(Ea(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 Sa(e)];}else if(e.selector)e=[new Ti(e)];else if(e.name)e=[new Ai(e)];else if(e.text)e=[new Ca(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[va]||Ma.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[wa]&&Ra(i),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 n=this.normalize(t,this.first,"prepend").reverse();for(let i of n)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+n.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 n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=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,n));}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,n)=>{let i;try{i=e(t,n);}catch(s){throw t.addToError(s)}return i!==false&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="atrule"&&e.test(n.name))return t(n,i)}):this.walk((n,i)=>{if(n.type==="atrule"&&n.name===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="atrule")return t(n,i)}))}walkComments(e){return this.walk((t,n)=>{if(t.type==="comment")return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="decl"&&e.test(n.prop))return t(n,i)}):this.walk((n,i)=>{if(n.type==="decl"&&n.prop===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="decl")return t(n,i)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="rule"&&e.test(n.selector))return t(n,i)}):this.walk((n,i)=>{if(n.type==="rule"&&n.selector===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="rule")return t(n,i)}))}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]}};we.registerParse=r=>{Ea=r;};we.registerRule=r=>{Ti=r;};we.registerAtRule=r=>{Ai=r;};we.registerRoot=r=>{Ia=r;};var Oe=we;we.default=we;we.rebuild=r=>{r.type==="atrule"?Object.setPrototypeOf(r,Ai.prototype):r.type==="rule"?Object.setPrototypeOf(r,Ti.prototype):r.type==="decl"?Object.setPrototypeOf(r,Sa.prototype):r.type==="comment"?Object.setPrototypeOf(r,Ca.prototype):r.type==="root"&&Object.setPrototypeOf(r,Ia.prototype),r[va]=true,r.nodes&&r.nodes.forEach(e=>{we.rebuild(e);});};var Ud=Oe,Ta,Aa,bt=class extends Ud{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[]);}toResult(e={}){return new Ta(new Aa,this,e).stringify()}};bt.registerLazyResult=r=>{Ta=r;};bt.registerProcessor=r=>{Aa=r;};var ki=bt;bt.default=bt;var Kn=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let n=t.node.rangeBy(t);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column;}for(let n in t)this[n]=t[n];}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}},ka=Kn;Kn.default=Kn;var Wd=ka,qn=class{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0;}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new Wd(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}},_i=qn;qn.default=qn;var vn=39,qs=34,rr=92,Qs=47,nr=10,at=32,ir=12,sr=9,or=13,Hd=91,zd=93,Vd=40,Gd=41,jd=123,Yd=125,Xd=59,Zd=42,Jd=58,Kd=64,ar=/[\t\n\f\r "#'()/;[\\\]{}]/g,lr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,qd=/.[\r\n"'(/\\]/,eo=/[\da-f]/i,Qd=function(e,t={}){let n=e.css.valueOf(),i=t.ignoreErrors,s,o,l,a,c,u,d,f,g,m,p=n.length,h=0,y=[],w=[];function b(){return h}function S(A){throw e.error("Unclosed "+A,h)}function E(){return w.length===0&&h>=p}function I(A){if(w.length)return w.pop();if(h>=p)return;let F=A?A.ignoreUnclosed:false;switch(s=n.charCodeAt(h),s){case nr:case at:case sr:case or:case ir:{o=h;do o+=1,s=n.charCodeAt(o);while(s===at||s===nr||s===sr||s===or||s===ir);m=["space",n.slice(h,o)],h=o-1;break}case Hd:case zd:case jd:case Yd:case Jd:case Xd:case Gd:{let $=String.fromCharCode(s);m=[$,$,h];break}case Vd:{if(f=y.length?y.pop()[1]:"",g=n.charCodeAt(h+1),f==="url"&&g!==vn&&g!==qs&&g!==at&&g!==nr&&g!==sr&&g!==ir&&g!==or){o=h;do{if(u=false,o=n.indexOf(")",o+1),o===-1)if(i||F){o=h;break}else S("bracket");for(d=o;n.charCodeAt(d-1)===rr;)d-=1,u=!u;}while(u);m=["brackets",n.slice(h,o+1),h,o],h=o;}else o=n.indexOf(")",h+1),a=n.slice(h,o+1),o===-1||qd.test(a)?m=["(","(",h]:(m=["brackets",a,h,o],h=o);break}case vn:case qs:{l=s===vn?"'":'"',o=h;do{if(u=false,o=n.indexOf(l,o+1),o===-1)if(i||F){o=h+1;break}else S("string");for(d=o;n.charCodeAt(d-1)===rr;)d-=1,u=!u;}while(u);m=["string",n.slice(h,o+1),h,o],h=o;break}case Kd:{ar.lastIndex=h+1,ar.test(n),ar.lastIndex===0?o=n.length-1:o=ar.lastIndex-2,m=["at-word",n.slice(h,o+1),h,o],h=o;break}case rr:{for(o=h,c=true;n.charCodeAt(o+1)===rr;)o+=1,c=!c;if(s=n.charCodeAt(o+1),c&&s!==Qs&&s!==at&&s!==nr&&s!==sr&&s!==or&&s!==ir&&(o+=1,eo.test(n.charAt(o)))){for(;eo.test(n.charAt(o+1));)o+=1;n.charCodeAt(o+1)===at&&(o+=1);}m=["word",n.slice(h,o+1),h,o],h=o;break}default:{s===Qs&&n.charCodeAt(h+1)===Zd?(o=n.indexOf("*/",h+2)+1,o===0&&(i||F?o=n.length:S("comment")),m=["comment",n.slice(h,o+1),h,o],h=o):(lr.lastIndex=h+1,lr.test(n),lr.lastIndex===0?o=n.length-1:o=lr.lastIndex-2,m=["word",n.slice(h,o+1),h,o],y.push(m),h=o);break}}return h++,m}function P(A){w.push(A);}return {back:P,endOfFile:E,nextToken:I,position:b}},_a=Oe,Tr=class extends _a{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)}},Ni=Tr;Tr.default=Tr;_a.registerAtRule(Tr);var Na=Oe,Oa,Da,Ze=class extends Na{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[]);}normalize(e,t,n){let i=super.normalize(e);if(t){if(n==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let s of i)s.raws.before=t.raws.before;}return i}removeChild(e,t){let n=this.index(e);return !t&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new Oa(new Da,this,e).stringify()}};Ze.registerLazyResult=r=>{Oa=r;};Ze.registerProcessor=r=>{Da=r;};var Rt=Ze;Ze.default=Ze;Na.registerRoot(Ze);var wt={comma(r){return wt.split(r,[","],true)},space(r){let e=[" ",`
50
- `," "];return wt.split(r,e)},split(r,e,t){let n=[],i="",s=false,o=0,l=false,a="",c=false;for(let u of r)c?c=false:u==="\\"?c=true:l?u===a&&(l=false):u==='"'||u==="'"?(l=true,a=u):u==="("?o+=1:u===")"?o>0&&(o-=1):o===0&&e.includes(u)&&(s=true),s?(i!==""&&n.push(i.trim()),i="",s=false):i+=u;return (t||i!=="")&&n.push(i.trim()),n}},La=wt;wt.default=wt;var Pa=Oe,eh=La,Ar=class extends Pa{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[]);}get selectors(){return eh.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n);}},Oi=Ar;Ar.default=Ar;Pa.registerRule(Ar);var th=Hr,rh=Qd,nh=Vr,ih=Ni,sh=Rt,to=Oi,ro={empty:true,space:true};function oh(r){for(let e=r.length-1;e>=0;e--){let t=r[e],n=t[3]||t[2];if(n)return n}}var ah=class{constructor(e){this.input=e,this.root=new sh,this.current=this.root,this.spaces="",this.semicolon=false,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}};}atrule(e){let t=new ih;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let n,i,s,o=false,l=false,a=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=true;break}else if(n==="{"){l=true;break}else if(n==="}"){if(a.length>0){for(s=a.length-1,i=a[s];i&&i[0]==="space";)i=a[--s];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++);}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=true;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),o&&(e=a[a.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===false)return;let n=0,i;for(let s=t-1;s>=0&&(i=e[s],!(i[0]!=="space"&&(n+=1,n===2)));s--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0,n,i,s;for(let[o,l]of e.entries()){if(n=l,i=n[0],i==="("&&(t+=1),i===")"&&(t-=1),t===0&&i===":")if(!s)this.doubleColon(n);else {if(s[0]==="word"&&s[1]==="progid")continue;return o}s=n;}return false}comment(e){let t=new nh;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else {let i=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=i[2],t.raws.left=i[1],t.raws.right=i[3];}}createTokenizer(){this.tokenizer=rh(this.input);}decl(e,t){let n=new th;this.init(n,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=true,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||oh(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;n.prop+=e.shift()[1];}n.raws.between="";let s;for(;e.length;)if(s=e.shift(),s[0]===":"){n.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),n.raws.between+=s[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let o=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(s=e[c],s[1].toLowerCase()==="!important"){n.important=true;let u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u,u!==" !important"&&(n.raws.important=u);break}else if(s[1].toLowerCase()==="important"){let u=e.slice(0),d="";for(let f=c;f>0;f--){let g=u[f][0];if(d.trim().indexOf("!")===0&&g!=="space")break;d=u.pop()[1]+d;}d.trim().indexOf("!")===0&&(n.important=true,n.raws.important=d,e=u);}if(s[0]!=="space"&&s[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(n.raws.between+=o.map(c=>c[1]).join(""),o=[]),this.raw(n,"value",o.concat(e),t),n.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 to;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=false,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="");}}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=false);}other(e){let t=false,n=null,i=false,s=null,o=[],l=e[1].startsWith("--"),a=[],c=e;for(;c;){if(n=c[0],a.push(c),n==="("||n==="[")s||(s=c),o.push(n==="("?")":"]");else if(l&&i&&n==="{")s||(s=c),o.push("}");else if(o.length===0)if(n===";")if(i){this.decl(a,l);return}else break;else if(n==="{"){this.rule(a);return}else if(n==="}"){this.tokenizer.back(a.pop()),t=true;break}else n===":"&&(i=true);else n===o[o.length-1]&&(o.pop(),o.length===0&&(s=null));c=this.tokenizer.nextToken();}if(this.tokenizer.endOfFile()&&(t=true),o.length>0&&this.unclosedBracket(s),t&&i){if(!l)for(;a.length&&(c=a[a.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l);}else this.unknownWord(a);}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,n,i){let s,o,l=n.length,a="",c=true,u,d;for(let f=0;f<l;f+=1)s=n[f],o=s[0],o==="space"&&f===l-1&&!i?c=false:o==="comment"?(d=n[f-1]?n[f-1][0]:"empty",u=n[f+1]?n[f+1][0]:"empty",!ro[d]&&!ro[u]?a.slice(-1)===","?c=false:a+=s[1]:c=false):a+=s[1];if(!c){let f=n.reduce((g,m)=>g+m[1],"");e.raws[t]={raw:f,value:a};}e[t]=a;}rule(e){e.pop();let t=new to;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t;}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],t==="space");)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let i=t;i<e.length;i++)n+=e[i][1];return e.splice(t,e.length-t),n}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",{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})}},lh=ah,ch=Oe,uh=lh,fh=zr;function kr(r,e){let t=new fh(r,e),n=new uh(t);try{n.parse();}catch(i){throw i}return n.root}var Di=kr;kr.default=kr;ch.registerParse(kr);var{isClean:ge,my:dh}=xt,hh=ba,ph=Ur,mh=Oe,gh=ki;var no=_i,yh=Di,bh=Rt,wh={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},vh={AtRule:true,AtRuleExit:true,Comment:true,CommentExit:true,Declaration:true,DeclarationExit:true,Document:true,DocumentExit:true,Once:true,OnceExit:true,postcssPlugin:true,prepare:true,Root:true,RootExit:true,Rule:true,RuleExit:true},Sh={Once:true,postcssPlugin:true,prepare:true},Je=0;function lt(r){return typeof r=="object"&&typeof r.then=="function"}function Fa(r){let e=false,t=wh[r.type];return r.type==="decl"?e=r.prop.toLowerCase():r.type==="atrule"&&(e=r.name.toLowerCase()),e&&r.append?[t,t+"-"+e,Je,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:r.append?[t,Je,t+"Exit"]:[t,t+"Exit"]}function io(r){let e;return r.type==="document"?e=["Document",Je,"DocumentExit"]:r.type==="root"?e=["Root",Je,"RootExit"]:e=Fa(r),{eventIndex:0,events:e,iterator:0,node:r,visitorIndex:0,visitors:[]}}function Qn(r){return r[ge]=false,r.nodes&&r.nodes.forEach(e=>Qn(e)),r}var ei={},Ke=class $a{constructor(e,t,n){this.stringified=false,this.processed=false;let i;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))i=Qn(t);else if(t instanceof $a||t instanceof no)i=Qn(t.root),t.map&&(typeof n.map=="undefined"&&(n.map={}),n.map.inline||(n.map.inline=false),n.map.prev=t.map);else {let s=yh;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(t,n);}catch(o){this.processed=true,this.error=o;}i&&!i[dh]&&mh.rebuild(i);}this.result=new no(e,i,n),this.helpers={...ei,postcss:ei,result:this.result},this.plugins=this.processor.plugins.map(s=>typeof s=="object"&&s.prepare?{...s,...s.prepare(this.result)}:s);}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 n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion;}catch(i){console&&console.error&&console.error(i);}return e}prepareVisitors(){this.listeners={};let e=(t,n,i)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([t,i]);};for(let t of this.plugins)if(typeof t=="object")for(let n in t){if(!vh[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Sh[n])if(typeof t[n]=="object")for(let i in t[n])i==="*"?e(t,n,t[n][i]):e(t,n+"-"+i.toLowerCase(),t[n][i]);else typeof t[n]=="function"&&e(t,n,t[n]);}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],n=this.runOnRoot(t);if(lt(n))try{await n;}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ge];){e[ge]=true;let t=[io(e)];for(;t.length>0;){let n=this.visitTick(t);if(lt(n))try{await n;}catch(i){let s=t[t.length-1].node;throw this.handleError(i,s)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let i=e.nodes.map(s=>n(s,this.helpers));await Promise.all(i);}else await n(e,this.helpers);}catch(i){throw this.handleError(i)}}}return this.processed=true,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(n=>e.Once(n,this.helpers));return lt(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=true,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 hh(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=true,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(lt(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ge];)e[ge]=true,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[n,i]of e){this.result.lastPlugin=n;let s;try{s=i(t,this.helpers);}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return true;if(lt(s))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:i}=t;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[o,l]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return l(n.toProxy(),this.helpers)}catch(a){throw this.handleError(a,n)}}if(t.iterator!==0){let o=t.iterator,l;for(;l=n.nodes[n.indexes[o]];)if(n.indexes[o]+=1,!l[ge]){l[ge]=true,e.push(io(l));return}t.iterator=0,delete n.indexes[o];}let s=t.events;for(;t.eventIndex<s.length;){let o=s[t.eventIndex];if(t.eventIndex+=1,o===Je){n.nodes&&n.nodes.length&&(n[ge]=true,t.iterator=n.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop();}walkSync(e){e[ge]=true;let t=Fa(e);for(let n of t)if(n===Je)e.nodes&&e.each(i=>{i[ge]||this.walkSync(i);});else {let i=this.listeners[n];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}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"}};Ke.registerPostcss=r=>{ei=r;};var Ba=Ke;Ke.default=Ke;bh.registerLazyResult(Ke);gh.registerLazyResult(Ke);var Ch=ba,Eh=Ur;var Ih=Di,xh=_i,ti=class{constructor(e,t,n){t=t.toString(),this.stringified=false,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let i,s=Eh;this.result=new xh(this._processor,i,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let l=new Ch(s,i,this._opts,t);if(l.isMap()){let[a,c]=l.generate();a&&(this.result.css=a),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 []}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=Ih;try{e=t(this._css,this._opts);}catch(n){this.error=n;}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return "NoWorkResult"}},Rh=ti;ti.default=ti;var Mh=Rh,Th=Ba,Ah=ki,kh=Rt,vt=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e);}normalize(e){let t=[];for(let n of e)if(n.postcss===true?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)t.push(n);else if(typeof n=="function")t.push(n);else if(!(typeof n=="object"&&(n.parse||n.stringify)))throw new Error(n+" is not a PostCSS plugin");return t}process(e,t={}){return !this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Mh(this,e,t):new Th(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}},_h=vt;vt.default=vt;kh.registerProcessor(vt);Ah.registerProcessor(vt);var Nh=Hr,Oh=ha,Dh=Vr,Lh=Ni,Ph=zr,Fh=Rt,$h=Oi;function St(r,e){if(Array.isArray(r))return r.map(i=>St(i));let{inputs:t,...n}=r;if(t){e=[];for(let i of t){let s={...i,__proto__:Ph.prototype};s.map&&(s.map={...s.map,__proto__:Oh.prototype}),e.push(s);}}if(n.nodes&&(n.nodes=r.nodes.map(i=>St(i,e))),n.source){let{inputId:i,...s}=n.source;n.source=s,i!=null&&(n.source.input=e[i]);}if(n.type==="root")return new Fh(n);if(n.type==="decl")return new Nh(n);if(n.type==="rule")return new $h(n);if(n.type==="comment")return new Dh(n);if(n.type==="atrule")return new Lh(n);throw new Error("Unknown node type: "+r.type)}var Bh=St;St.default=St;var Uh=Mi,Ua=Hr,Wh=Ba,Hh=Oe,Li=_h,zh=Ur,Vh=Bh,Wa=ki,Gh=ka,Ha=Vr,za=Ni,jh=_i,Yh=zr,Xh=Di,Zh=La,Va=Oi,Ga=Rt,Jh=Wr;function N(...r){return r.length===1&&Array.isArray(r[0])&&(r=r[0]),new Li(r)}N.plugin=function(e,t){let n=false;function i(...o){console&&console.warn&&!n&&(n=true,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
49
+ `),this.css+=t+"/*# sourceMappingURL="+e+" */";}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),n=e.root||gr(e.file),i;this.mapOpts.sourcesContent===false?(i=new Ea(e.text),i.sourcesContent&&(i.sourcesContent=null)):i=e.consumer(),this.map.applySourceMap(i,t,this.toUrl(this.path(n)));}}clearAnnotation(){if(this.mapOpts.annotation!==false)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.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t);}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""));}generate(){if(this.clearAnnotation(),Qd&&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=mr.fromSourceMap(e,{ignoreInvalidMapping:true});}else this.map=new mr({file:this.outputFile(),ignoreInvalidMapping:true}),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 mr({file:this.outputFile(),ignoreInvalidMapping:true});let e=1,t=1,n="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},s,o;this.stringify(this.root,(l,a,c)=>{if(this.css+=l,a&&c!=="end"&&(i.generated.line=e,i.generated.column=t-1,a.source&&a.source.start?(i.source=this.sourcePath(a),i.original.line=a.source.start.line,i.original.column=a.source.start.column-1,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,this.map.addMapping(i))),s=l.match(/\n/g),s?(e+=s.length,o=l.lastIndexOf(`
50
+ `),t=l.length-o):t+=l.length,a&&c!=="start"){let u=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==u.last||u.raws.semicolon)&&(a.source&&a.source.end?(i.source=this.sourcePath(a),i.original.line=a.source.end.line,i.original.column=a.source.end.column-1,i.generated.line=e,i.generated.column=t-2,this.map.addMapping(i)):(i.source=n,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()?true:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):true}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==true?false:this.previous().length?this.previous().some(t=>t.inline):true}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()):true}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 n=this.opts.to?gr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=gr(xa(n,this.mapOpts.annotation)));let i=Ia(n,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 n=t.source.input.from;if(n&&!e[n]){e[n]=true;let i=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));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(oo){let n=oo(e).toString();return this.memoizedFileURLs.set(e,n),n}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;Ra==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}},Ma=eh,th=Hr,Qn=class extends th{constructor(e){super(e),this.type="comment";}},Gr=Qn;Qn.default=Qn;var{isClean:Ta,my:Aa}=Tt,_a=zr,ka=Gr,rh=Hr,Na,ki,Ni,Oa;function Da(r){return r.map(e=>(e.nodes&&(e.nodes=Da(e.nodes)),delete e.source,e))}function La(r){if(r[Ta]=false,r.proxyOf.nodes)for(let e of r.proxyOf.nodes)La(e);}var ve=class Pa extends rh{append(...e){for(let t of e){let n=this.normalize(t,this.last);for(let i of n)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(),n,i;for(;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],i=e(this.proxyOf.nodes[n],n),i!==false);)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")?(...n)=>e[t](...n.map(i=>typeof i=="function"?(s,o)=>i(s.toProxy(),o):i)):t==="every"||t==="some"?n=>e[t]((i,...s)=>n(i.toProxy(),...s)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(n=>n.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),true}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let o of i)this.proxyOf.nodes.splice(n+1,0,o);let s;for(let o in this.indexes)s=this.indexes[o],n<s&&(this.indexes[o]=s+i.length);return this.markDirty(),this}insertBefore(e,t){let n=this.index(e),i=n===0?"prepend":false,s=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(let l of s)this.proxyOf.nodes.splice(n,0,l);let o;for(let l in this.indexes)o=this.indexes[l],n<=o&&(this.indexes[l]=o+s.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Da(Na(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 _a(e)];}else if(e.selector)e=[new ki(e)];else if(e.name)e=[new Ni(e)];else if(e.text)e=[new ka(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[Aa]||Pa.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[Ta]&&La(i),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 n=this.normalize(t,this.first,"prepend").reverse();for(let i of n)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+n.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 n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=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,n));}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,n)=>{let i;try{i=e(t,n);}catch(s){throw t.addToError(s)}return i!==false&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="atrule"&&e.test(n.name))return t(n,i)}):this.walk((n,i)=>{if(n.type==="atrule"&&n.name===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="atrule")return t(n,i)}))}walkComments(e){return this.walk((t,n)=>{if(t.type==="comment")return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="decl"&&e.test(n.prop))return t(n,i)}):this.walk((n,i)=>{if(n.type==="decl"&&n.prop===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="decl")return t(n,i)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="rule"&&e.test(n.selector))return t(n,i)}):this.walk((n,i)=>{if(n.type==="rule"&&n.selector===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="rule")return t(n,i)}))}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]}};ve.registerParse=r=>{Na=r;};ve.registerRule=r=>{ki=r;};ve.registerAtRule=r=>{Ni=r;};ve.registerRoot=r=>{Oa=r;};var Le=ve;ve.default=ve;ve.rebuild=r=>{r.type==="atrule"?Object.setPrototypeOf(r,Ni.prototype):r.type==="rule"?Object.setPrototypeOf(r,ki.prototype):r.type==="decl"?Object.setPrototypeOf(r,_a.prototype):r.type==="comment"?Object.setPrototypeOf(r,ka.prototype):r.type==="root"&&Object.setPrototypeOf(r,Oa.prototype),r[Aa]=true,r.nodes&&r.nodes.forEach(e=>{ve.rebuild(e);});};var nh=Le,Fa,$a,St=class extends nh{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[]);}toResult(e={}){return new Fa(new $a,this,e).stringify()}};St.registerLazyResult=r=>{Fa=r;};St.registerProcessor=r=>{$a=r;};var Oi=St;St.default=St;var ei=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let n=t.node.rangeBy(t);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column;}for(let n in t)this[n]=t[n];}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}},Ba=ei;ei.default=ei;var ih=Ba,ti=class{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0;}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new ih(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}},Di=ti;ti.default=ti;var En=39,ao=34,nr=92,lo=47,ir=10,ut=32,sr=12,or=9,ar=13,sh=91,oh=93,ah=40,lh=41,ch=123,uh=125,fh=59,dh=42,hh=58,ph=64,lr=/[\t\n\f\r "#'()/;[\\\]{}]/g,cr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,mh=/.[\r\n"'(/\\]/,co=/[\da-f]/i,gh=function(e,t={}){let n=e.css.valueOf(),i=t.ignoreErrors,s,o,l,a,c,u,d,f,g,m,p=n.length,h=0,y=[],w=[];function b(){return h}function v(A){throw e.error("Unclosed "+A,h)}function C(){return w.length===0&&h>=p}function I(A){if(w.length)return w.pop();if(h>=p)return;let L=A?A.ignoreUnclosed:false;switch(s=n.charCodeAt(h),s){case ir:case ut:case or:case ar:case sr:{o=h;do o+=1,s=n.charCodeAt(o);while(s===ut||s===ir||s===or||s===ar||s===sr);m=["space",n.slice(h,o)],h=o-1;break}case sh:case oh:case ch:case uh:case hh:case fh:case lh:{let $=String.fromCharCode(s);m=[$,$,h];break}case ah:{if(f=y.length?y.pop()[1]:"",g=n.charCodeAt(h+1),f==="url"&&g!==En&&g!==ao&&g!==ut&&g!==ir&&g!==or&&g!==sr&&g!==ar){o=h;do{if(u=false,o=n.indexOf(")",o+1),o===-1)if(i||L){o=h;break}else v("bracket");for(d=o;n.charCodeAt(d-1)===nr;)d-=1,u=!u;}while(u);m=["brackets",n.slice(h,o+1),h,o],h=o;}else o=n.indexOf(")",h+1),a=n.slice(h,o+1),o===-1||mh.test(a)?m=["(","(",h]:(m=["brackets",a,h,o],h=o);break}case En:case ao:{l=s===En?"'":'"',o=h;do{if(u=false,o=n.indexOf(l,o+1),o===-1)if(i||L){o=h+1;break}else v("string");for(d=o;n.charCodeAt(d-1)===nr;)d-=1,u=!u;}while(u);m=["string",n.slice(h,o+1),h,o],h=o;break}case ph:{lr.lastIndex=h+1,lr.test(n),lr.lastIndex===0?o=n.length-1:o=lr.lastIndex-2,m=["at-word",n.slice(h,o+1),h,o],h=o;break}case nr:{for(o=h,c=true;n.charCodeAt(o+1)===nr;)o+=1,c=!c;if(s=n.charCodeAt(o+1),c&&s!==lo&&s!==ut&&s!==ir&&s!==or&&s!==ar&&s!==sr&&(o+=1,co.test(n.charAt(o)))){for(;co.test(n.charAt(o+1));)o+=1;n.charCodeAt(o+1)===ut&&(o+=1);}m=["word",n.slice(h,o+1),h,o],h=o;break}default:{s===lo&&n.charCodeAt(h+1)===dh?(o=n.indexOf("*/",h+2)+1,o===0&&(i||L?o=n.length:v("comment")),m=["comment",n.slice(h,o+1),h,o],h=o):(cr.lastIndex=h+1,cr.test(n),cr.lastIndex===0?o=n.length-1:o=cr.lastIndex-2,m=["word",n.slice(h,o+1),h,o],y.push(m),h=o);break}}return h++,m}function D(A){w.push(A);}return {back:D,endOfFile:C,nextToken:I,position:b}},Ua=Le,Ar=class extends Ua{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)}},Li=Ar;Ar.default=Ar;Ua.registerAtRule(Ar);var Wa=Le,Ha,za,qe=class extends Wa{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[]);}normalize(e,t,n){let i=super.normalize(e);if(t){if(n==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let s of i)s.raws.before=t.raws.before;}return i}removeChild(e,t){let n=this.index(e);return !t&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new Ha(new za,this,e).stringify()}};qe.registerLazyResult=r=>{Ha=r;};qe.registerProcessor=r=>{za=r;};var At=qe;qe.default=qe;Wa.registerRoot(qe);var Ct={comma(r){return Ct.split(r,[","],true)},space(r){let e=[" ",`
51
+ `," "];return Ct.split(r,e)},split(r,e,t){let n=[],i="",s=false,o=0,l=false,a="",c=false;for(let u of r)c?c=false:u==="\\"?c=true:l?u===a&&(l=false):u==='"'||u==="'"?(l=true,a=u):u==="("?o+=1:u===")"?o>0&&(o-=1):o===0&&e.includes(u)&&(s=true),s?(i!==""&&n.push(i.trim()),i="",s=false):i+=u;return (t||i!=="")&&n.push(i.trim()),n}},Va=Ct;Ct.default=Ct;var Ga=Le,yh=Va,_r=class extends Ga{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[]);}get selectors(){return yh.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n);}},Pi=_r;_r.default=_r;Ga.registerRule(_r);var bh=zr,wh=gh,vh=Gr,Sh=Li,Ch=At,uo=Pi,fo={empty:true,space:true};function Eh(r){for(let e=r.length-1;e>=0;e--){let t=r[e],n=t[3]||t[2];if(n)return n}}var Ih=class{constructor(e){this.input=e,this.root=new Ch,this.current=this.root,this.spaces="",this.semicolon=false,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}};}atrule(e){let t=new Sh;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let n,i,s,o=false,l=false,a=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=true;break}else if(n==="{"){l=true;break}else if(n==="}"){if(a.length>0){for(s=a.length-1,i=a[s];i&&i[0]==="space";)i=a[--s];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++);}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=true;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),o&&(e=a[a.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===false)return;let n=0,i;for(let s=t-1;s>=0&&(i=e[s],!(i[0]!=="space"&&(n+=1,n===2)));s--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0,n,i,s;for(let[o,l]of e.entries()){if(n=l,i=n[0],i==="("&&(t+=1),i===")"&&(t-=1),t===0&&i===":")if(!s)this.doubleColon(n);else {if(s[0]==="word"&&s[1]==="progid")continue;return o}s=n;}return false}comment(e){let t=new vh;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else {let i=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=i[2],t.raws.left=i[1],t.raws.right=i[3];}}createTokenizer(){this.tokenizer=wh(this.input);}decl(e,t){let n=new bh;this.init(n,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=true,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||Eh(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;n.prop+=e.shift()[1];}n.raws.between="";let s;for(;e.length;)if(s=e.shift(),s[0]===":"){n.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),n.raws.between+=s[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let o=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(s=e[c],s[1].toLowerCase()==="!important"){n.important=true;let u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u,u!==" !important"&&(n.raws.important=u);break}else if(s[1].toLowerCase()==="important"){let u=e.slice(0),d="";for(let f=c;f>0;f--){let g=u[f][0];if(d.trim().indexOf("!")===0&&g!=="space")break;d=u.pop()[1]+d;}d.trim().indexOf("!")===0&&(n.important=true,n.raws.important=d,e=u);}if(s[0]!=="space"&&s[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(n.raws.between+=o.map(c=>c[1]).join(""),o=[]),this.raw(n,"value",o.concat(e),t),n.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 uo;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=false,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="");}}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=false);}other(e){let t=false,n=null,i=false,s=null,o=[],l=e[1].startsWith("--"),a=[],c=e;for(;c;){if(n=c[0],a.push(c),n==="("||n==="[")s||(s=c),o.push(n==="("?")":"]");else if(l&&i&&n==="{")s||(s=c),o.push("}");else if(o.length===0)if(n===";")if(i){this.decl(a,l);return}else break;else if(n==="{"){this.rule(a);return}else if(n==="}"){this.tokenizer.back(a.pop()),t=true;break}else n===":"&&(i=true);else n===o[o.length-1]&&(o.pop(),o.length===0&&(s=null));c=this.tokenizer.nextToken();}if(this.tokenizer.endOfFile()&&(t=true),o.length>0&&this.unclosedBracket(s),t&&i){if(!l)for(;a.length&&(c=a[a.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l);}else this.unknownWord(a);}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,n,i){let s,o,l=n.length,a="",c=true,u,d;for(let f=0;f<l;f+=1)s=n[f],o=s[0],o==="space"&&f===l-1&&!i?c=false:o==="comment"?(d=n[f-1]?n[f-1][0]:"empty",u=n[f+1]?n[f+1][0]:"empty",!fo[d]&&!fo[u]?a.slice(-1)===","?c=false:a+=s[1]:c=false):a+=s[1];if(!c){let f=n.reduce((g,m)=>g+m[1],"");e.raws[t]={raw:f,value:a};}e[t]=a;}rule(e){e.pop();let t=new uo;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t;}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],t==="space");)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let i=t;i<e.length;i++)n+=e[i][1];return e.splice(t,e.length-t),n}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",{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})}},xh=Ih,Rh=Le,Mh=xh,Th=Vr;function kr(r,e){let t=new Th(r,e),n=new Mh(t);try{n.parse();}catch(i){throw i}return n.root}var Fi=kr;kr.default=kr;Rh.registerParse(kr);var{isClean:ge,my:Ah}=Tt,_h=Ma,kh=Wr,Nh=Le,Oh=Oi;var ho=Di,Dh=Fi,Lh=At,Ph={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Fh={AtRule:true,AtRuleExit:true,Comment:true,CommentExit:true,Declaration:true,DeclarationExit:true,Document:true,DocumentExit:true,Once:true,OnceExit:true,postcssPlugin:true,prepare:true,Root:true,RootExit:true,Rule:true,RuleExit:true},$h={Once:true,postcssPlugin:true,prepare:true},Qe=0;function ft(r){return typeof r=="object"&&typeof r.then=="function"}function ja(r){let e=false,t=Ph[r.type];return r.type==="decl"?e=r.prop.toLowerCase():r.type==="atrule"&&(e=r.name.toLowerCase()),e&&r.append?[t,t+"-"+e,Qe,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:r.append?[t,Qe,t+"Exit"]:[t,t+"Exit"]}function po(r){let e;return r.type==="document"?e=["Document",Qe,"DocumentExit"]:r.type==="root"?e=["Root",Qe,"RootExit"]:e=ja(r),{eventIndex:0,events:e,iterator:0,node:r,visitorIndex:0,visitors:[]}}function ri(r){return r[ge]=false,r.nodes&&r.nodes.forEach(e=>ri(e)),r}var ni={},et=class Ya{constructor(e,t,n){this.stringified=false,this.processed=false;let i;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))i=ri(t);else if(t instanceof Ya||t instanceof ho)i=ri(t.root),t.map&&(typeof n.map=="undefined"&&(n.map={}),n.map.inline||(n.map.inline=false),n.map.prev=t.map);else {let s=Dh;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(t,n);}catch(o){this.processed=true,this.error=o;}i&&!i[Ah]&&Nh.rebuild(i);}this.result=new ho(e,i,n),this.helpers={...ni,postcss:ni,result:this.result},this.plugins=this.processor.plugins.map(s=>typeof s=="object"&&s.prepare?{...s,...s.prepare(this.result)}:s);}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 n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion;}catch(i){console&&console.error&&console.error(i);}return e}prepareVisitors(){this.listeners={};let e=(t,n,i)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([t,i]);};for(let t of this.plugins)if(typeof t=="object")for(let n in t){if(!Fh[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!$h[n])if(typeof t[n]=="object")for(let i in t[n])i==="*"?e(t,n,t[n][i]):e(t,n+"-"+i.toLowerCase(),t[n][i]);else typeof t[n]=="function"&&e(t,n,t[n]);}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],n=this.runOnRoot(t);if(ft(n))try{await n;}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ge];){e[ge]=true;let t=[po(e)];for(;t.length>0;){let n=this.visitTick(t);if(ft(n))try{await n;}catch(i){let s=t[t.length-1].node;throw this.handleError(i,s)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let i=e.nodes.map(s=>n(s,this.helpers));await Promise.all(i);}else await n(e,this.helpers);}catch(i){throw this.handleError(i)}}}return this.processed=true,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(n=>e.Once(n,this.helpers));return ft(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=true,this.sync();let e=this.result.opts,t=kh;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new _h(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=true,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(ft(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ge];)e[ge]=true,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[n,i]of e){this.result.lastPlugin=n;let s;try{s=i(t,this.helpers);}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return true;if(ft(s))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:i}=t;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[o,l]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return l(n.toProxy(),this.helpers)}catch(a){throw this.handleError(a,n)}}if(t.iterator!==0){let o=t.iterator,l;for(;l=n.nodes[n.indexes[o]];)if(n.indexes[o]+=1,!l[ge]){l[ge]=true,e.push(po(l));return}t.iterator=0,delete n.indexes[o];}let s=t.events;for(;t.eventIndex<s.length;){let o=s[t.eventIndex];if(t.eventIndex+=1,o===Qe){n.nodes&&n.nodes.length&&(n[ge]=true,t.iterator=n.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop();}walkSync(e){e[ge]=true;let t=ja(e);for(let n of t)if(n===Qe)e.nodes&&e.each(i=>{i[ge]||this.walkSync(i);});else {let i=this.listeners[n];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}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"}};et.registerPostcss=r=>{ni=r;};var Xa=et;et.default=et;Lh.registerLazyResult(et);Oh.registerLazyResult(et);var Bh=Ma,Uh=Wr;var Wh=Fi,Hh=Di,ii=class{constructor(e,t,n){t=t.toString(),this.stringified=false,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let i,s=Uh;this.result=new Hh(this._processor,i,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let l=new Bh(s,i,this._opts,t);if(l.isMap()){let[a,c]=l.generate();a&&(this.result.css=a),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 []}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=Wh;try{e=t(this._css,this._opts);}catch(n){this.error=n;}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return "NoWorkResult"}},zh=ii;ii.default=ii;var Vh=zh,Gh=Xa,jh=Oi,Yh=At,Et=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e);}normalize(e){let t=[];for(let n of e)if(n.postcss===true?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)t.push(n);else if(typeof n=="function")t.push(n);else if(!(typeof n=="object"&&(n.parse||n.stringify)))throw new Error(n+" is not a PostCSS plugin");return t}process(e,t={}){return !this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Vh(this,e,t):new Gh(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}},Xh=Et;Et.default=Et;Yh.registerProcessor(Et);jh.registerProcessor(Et);var Jh=zr,Zh=Ca,Kh=Gr,qh=Li,Qh=Vr,ep=At,tp=Pi;function It(r,e){if(Array.isArray(r))return r.map(i=>It(i));let{inputs:t,...n}=r;if(t){e=[];for(let i of t){let s={...i,__proto__:Qh.prototype};s.map&&(s.map={...s.map,__proto__:Zh.prototype}),e.push(s);}}if(n.nodes&&(n.nodes=r.nodes.map(i=>It(i,e))),n.source){let{inputId:i,...s}=n.source;n.source=s,i!=null&&(n.source.input=e[i]);}if(n.type==="root")return new ep(n);if(n.type==="decl")return new Jh(n);if(n.type==="rule")return new tp(n);if(n.type==="comment")return new Kh(n);if(n.type==="atrule")return new qh(n);throw new Error("Unknown node type: "+r.type)}var rp=It;It.default=It;var np=_i,Ja=zr,ip=Xa,sp=Le,$i=Xh,op=Wr,ap=rp,Za=Oi,lp=Ba,Ka=Gr,qa=Li,cp=Di,up=Vr,fp=Fi,dp=Va,Qa=Pi,el=At,hp=Hr;function N(...r){return r.length===1&&Array.isArray(r[0])&&(r=r[0]),new $i(r)}N.plugin=function(e,t){let n=false;function i(...o){console&&console.warn&&!n&&(n=true,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
51
52
  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:
52
- https://www.w3ctech.com/topic/2226`));let l=t(...o);return l.postcssPlugin=e,l.postcssVersion=new Li().version,l}let s;return Object.defineProperty(i,"postcss",{get(){return s||(s=i()),s}}),i.process=function(o,l,a){return N([i(a)]).process(o,l)},i};N.stringify=zh;N.parse=Xh;N.fromJSON=Vh;N.list=Zh;N.comment=r=>new Ha(r);N.atRule=r=>new za(r);N.decl=r=>new Ua(r);N.rule=r=>new Va(r);N.root=r=>new Ga(r);N.document=r=>new Wa(r);N.CssSyntaxError=Uh;N.Declaration=Ua;N.Container=Hh;N.Processor=Li;N.Document=Wa;N.Comment=Ha;N.Warning=Gh;N.AtRule=za;N.Result=jh;N.Input=Yh;N.Rule=Va;N.Root=Ga;N.Node=Jh;Wh.registerPostcss(N);var Kh=N;N.default=N;var H=cd(Kh);H.stringify;H.fromJSON;H.plugin;H.parse;H.list;H.document;H.comment;H.atRule;H.rule;H.decl;H.root;H.CssSyntaxError;H.Declaration;H.Container;H.Processor;H.Document;H.Comment;H.Warning;H.AtRule;H.Result;H.Input;H.Rule;H.Root;H.Node;var ri=class r{constructor(...e){oe(this,"parentElement",null),oe(this,"parentNode",null),oe(this,"ownerDocument"),oe(this,"firstChild",null),oe(this,"lastChild",null),oe(this,"previousSibling",null),oe(this,"nextSibling",null),oe(this,"ELEMENT_NODE",1),oe(this,"TEXT_NODE",3),oe(this,"nodeType"),oe(this,"nodeName"),oe(this,"RRNodeType");}get childNodes(){let e=[],t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(e instanceof r){if(e.ownerDocument!==this.ownerDocument)return false;if(e===this)return true}else return false;for(;e.parentNode;){if(e.parentNode===this)return true;e=e.parentNode;}return false}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"}};var so={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},oo={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},cr={},qh=()=>!!globalThis.Zone;function Pi(r){if(cr[r])return cr[r];let e=globalThis[r],t=e.prototype,n=r in so?so[r]:void 0,i=!!(n&&n.every(l=>{var a,c;return !!((c=(a=Object.getOwnPropertyDescriptor(t,l))==null?void 0:a.get)!=null&&c.toString().includes("[native code]"))})),s=r in oo?oo[r]:void 0,o=!!(s&&s.every(l=>{var a;return typeof t[l]=="function"&&((a=t[l])==null?void 0:a.toString().includes("[native code]"))}));if(i&&o&&!qh())return cr[r]=e.prototype,e.prototype;try{let l=document.createElement("iframe");document.body.appendChild(l);let a=l.contentWindow;if(!a)return e.prototype;let c=a[r].prototype;return document.body.removeChild(l),c?cr[r]=c:t}catch(l){return t}}var Sn={};function Se(r,e,t){var n;let i=`${r}.${String(t)}`;if(Sn[i])return Sn[i].call(e);let s=Pi(r),o=(n=Object.getOwnPropertyDescriptor(s,t))==null?void 0:n.get;return o?(Sn[i]=o,o.call(e)):e[t]}var Cn={};function ja(r,e,t){let n=`${r}.${String(t)}`;if(Cn[n])return Cn[n].bind(e);let s=Pi(r)[t];return typeof s!="function"?e[t]:(Cn[n]=s,s.bind(e))}function Qh(r){return Se("Node",r,"ownerDocument")}function ep(r){return Se("Node",r,"childNodes")}function tp(r){return Se("Node",r,"parentNode")}function rp(r){return Se("Node",r,"parentElement")}function np(r){return Se("Node",r,"textContent")}function ip(r,e){return ja("Node",r,"contains")(e)}function sp(r){return ja("Node",r,"getRootNode")()}function op(r){return !r||!("host"in r)?null:Se("ShadowRoot",r,"host")}function ap(r){return r.styleSheets}function lp(r){return !r||!("shadowRoot"in r)?null:Se("Element",r,"shadowRoot")}function cp(r,e){return Se("Element",r,"querySelector")(e)}function up(r,e){return Se("Element",r,"querySelectorAll")(e)}function Ya(){return Pi("MutationObserver").constructor}function De(r,e,t){try{if(!(e in r))return ()=>{};let n=r[e],i=t(n);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),r[e]=i,()=>{r[e]=n;}}catch(n){return ()=>{}}}var x={ownerDocument:Qh,childNodes:ep,parentNode:tp,parentElement:rp,textContent:np,contains:ip,getRootNode:sp,host:op,styleSheets:ap,shadowRoot:lp,querySelector:cp,querySelectorAll:up,mutationObserver:Ya,patch:De};function Q(r,e,t=document){let n={capture:true,passive:true};return t.addEventListener(r,e,n),()=>t.removeEventListener(r,e,n)}var We=`Please stop import mirror directly. Instead of that,\r
53
+ https://www.w3ctech.com/topic/2226`));let l=t(...o);return l.postcssPlugin=e,l.postcssVersion=new $i().version,l}let s;return Object.defineProperty(i,"postcss",{get(){return s||(s=i()),s}}),i.process=function(o,l,a){return N([i(a)]).process(o,l)},i};N.stringify=op;N.parse=fp;N.fromJSON=ap;N.list=dp;N.comment=r=>new Ka(r);N.atRule=r=>new qa(r);N.decl=r=>new Ja(r);N.rule=r=>new Qa(r);N.root=r=>new el(r);N.document=r=>new Za(r);N.CssSyntaxError=np;N.Declaration=Ja;N.Container=sp;N.Processor=$i;N.Document=Za;N.Comment=Ka;N.Warning=lp;N.AtRule=qa;N.Result=cp;N.Input=up;N.Rule=Qa;N.Root=el;N.Node=hp;ip.registerPostcss(N);var pp=N;N.default=N;var H=Rd(pp);H.stringify;H.fromJSON;H.plugin;H.parse;H.list;H.document;H.comment;H.atRule;H.rule;H.decl;H.root;H.CssSyntaxError;H.Declaration;H.Container;H.Processor;H.Document;H.Comment;H.Warning;H.AtRule;H.Result;H.Input;H.Rule;H.Root;H.Node;var si=class r{constructor(...e){oe(this,"parentElement",null),oe(this,"parentNode",null),oe(this,"ownerDocument"),oe(this,"firstChild",null),oe(this,"lastChild",null),oe(this,"previousSibling",null),oe(this,"nextSibling",null),oe(this,"ELEMENT_NODE",1),oe(this,"TEXT_NODE",3),oe(this,"nodeType"),oe(this,"nodeName"),oe(this,"RRNodeType");}get childNodes(){let e=[],t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(e instanceof r){if(e.ownerDocument!==this.ownerDocument)return false;if(e===this)return true}else return false;for(;e.parentNode;){if(e.parentNode===this)return true;e=e.parentNode;}return false}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"}};var mo={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},go={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ur={},mp=()=>!!globalThis.Zone;function Bi(r){if(ur[r])return ur[r];let e=globalThis[r],t=e.prototype,n=r in mo?mo[r]:void 0,i=!!(n&&n.every(l=>{var a,c;return !!((c=(a=Object.getOwnPropertyDescriptor(t,l))==null?void 0:a.get)!=null&&c.toString().includes("[native code]"))})),s=r in go?go[r]:void 0,o=!!(s&&s.every(l=>{var a;return typeof t[l]=="function"&&((a=t[l])==null?void 0:a.toString().includes("[native code]"))}));if(i&&o&&!mp())return ur[r]=e.prototype,e.prototype;try{let l=document.createElement("iframe");document.body.appendChild(l);let a=l.contentWindow;if(!a)return e.prototype;let c=a[r].prototype;return document.body.removeChild(l),c?ur[r]=c:t}catch(l){return t}}var In={};function Ce(r,e,t){var n;let i=`${r}.${String(t)}`;if(In[i])return In[i].call(e);let s=Bi(r),o=(n=Object.getOwnPropertyDescriptor(s,t))==null?void 0:n.get;return o?(In[i]=o,o.call(e)):e[t]}var xn={};function tl(r,e,t){let n=`${r}.${String(t)}`;if(xn[n])return xn[n].bind(e);let s=Bi(r)[t];return typeof s!="function"?e[t]:(xn[n]=s,s.bind(e))}function gp(r){return Ce("Node",r,"ownerDocument")}function yp(r){return Ce("Node",r,"childNodes")}function bp(r){return Ce("Node",r,"parentNode")}function wp(r){return Ce("Node",r,"parentElement")}function vp(r){return Ce("Node",r,"textContent")}function Sp(r,e){return tl("Node",r,"contains")(e)}function Cp(r){return tl("Node",r,"getRootNode")()}function Ep(r){return !r||!("host"in r)?null:Ce("ShadowRoot",r,"host")}function Ip(r){return r.styleSheets}function xp(r){return !r||!("shadowRoot"in r)?null:Ce("Element",r,"shadowRoot")}function Rp(r,e){return Ce("Element",r,"querySelector")(e)}function Mp(r,e){return Ce("Element",r,"querySelectorAll")(e)}function rl(){return Bi("MutationObserver").constructor}function Pe(r,e,t){try{if(!(e in r))return ()=>{};let n=r[e],i=t(n);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),r[e]=i,()=>{r[e]=n;}}catch(n){return ()=>{}}}var x={ownerDocument:gp,childNodes:yp,parentNode:bp,parentElement:wp,textContent:vp,contains:Sp,getRootNode:Cp,host:Ep,styleSheets:Ip,shadowRoot:xp,querySelector:Rp,querySelectorAll:Mp,mutationObserver:rl,patch:Pe};function Q(r,e,t=document){let n={capture:true,passive:true};return t.addEventListener(r,e,n),()=>t.removeEventListener(r,e,n)}var Ve=`Please stop import mirror directly. Instead of that,\r
53
54
  now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
54
- or you can use record.mirror to access the mirror instance during recording.`,ao={map:{},getId(){return console.error(We),-1},getNode(){return console.error(We),null},removeNodeFromMap(){console.error(We);},has(){return console.error(We),false},reset(){console.error(We);}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(ao=new Proxy(ao,{get(r,e,t){return e==="map"&&console.error(We),Reflect.get(r,e,t)}}));function Ct(r,e,t={}){let n=null,i=0;return function(...s){let o=Date.now();!i&&t.leading===false&&(i=o);let l=e-(o-i),a=this;l<=0||l>e?(n&&(clearTimeout(n),n=null),i=o,r.apply(a,s)):!n&&t.trailing!==false&&(n=setTimeout(()=>{i=t.leading===false?0:Date.now(),n=null,r.apply(a,s);},l));}}function Gr(r,e,t,n,i=window){let s=i.Object.getOwnPropertyDescriptor(r,e);return i.Object.defineProperty(r,e,n?t:{set(o){setTimeout(()=>{t.set.call(this,o);},0),s&&s.set&&s.set.call(this,o);}}),()=>Gr(r,e,s||{},true)}var _r=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(_r=()=>new Date().getTime());function Xa(r){var e,t,n,i;let s=r.document;return {left:s.scrollingElement?s.scrollingElement.scrollLeft:r.pageXOffset!==void 0?r.pageXOffset:s.documentElement.scrollLeft||(s==null?void 0:s.body)&&((e=x.parentElement(s.body))==null?void 0:e.scrollLeft)||((t=s==null?void 0:s.body)==null?void 0:t.scrollLeft)||0,top:s.scrollingElement?s.scrollingElement.scrollTop:r.pageYOffset!==void 0?r.pageYOffset:(s==null?void 0:s.documentElement.scrollTop)||(s==null?void 0:s.body)&&((n=x.parentElement(s.body))==null?void 0:n.scrollTop)||((i=s==null?void 0:s.body)==null?void 0:i.scrollTop)||0}}function Za(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Ja(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ka(r){return r?r.nodeType===r.ELEMENT_NODE?r:x.parentElement(r):null}function ee(r,e,t,n){if(!r)return false;let i=Ka(r);if(!i)return false;try{if(typeof e=="string"){if(i.classList.contains(e)||n&&i.closest("."+e)!==null)return !0}else if(Cr(i,e,n))return !0}catch(s){}return !!(t&&(i.matches(t)||n&&i.closest(t)!==null))}function fp(r,e){return e.getId(r)!==-1}function En(r,e,t){return r.tagName==="TITLE"&&t.headTitleMutations?true:e.getId(r)===ht}function qa(r,e){if(ut(r))return false;let t=e.getId(r);if(!e.has(t))return true;let n=x.parentNode(r);return n&&n.nodeType===r.DOCUMENT_NODE?false:n?qa(n,e):true}function ni(r){return !!r.changedTouches}function dp(r=window){"NodeList"in r&&!r.NodeList.prototype.forEach&&(r.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in r&&!r.DOMTokenList.prototype.forEach&&(r.DOMTokenList.prototype.forEach=Array.prototype.forEach);}function Qa(r,e){return !!(r.nodeName==="IFRAME"&&e.getMeta(r))}function el(r,e){return !!(r.nodeName==="LINK"&&r.nodeType===r.ELEMENT_NODE&&r.getAttribute&&r.getAttribute("rel")==="stylesheet"&&e.getMeta(r))}function ii(r){return r?r instanceof ri&&"shadowRoot"in r?!!r.shadowRoot:!!x.shadowRoot(r):false}var si=class{constructor(){v(this,"id",1),v(this,"styleIDMap",new WeakMap),v(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 n;return t===void 0?n=this.id++:n=t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}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(r){var e;let t=null;return "getRootNode"in r&&((e=x.getRootNode(r))==null?void 0:e.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&x.host(x.getRootNode(r))&&(t=x.host(x.getRootNode(r))),t}function hp(r){let e=r,t;for(;t=tl(e);)e=t;return e}function pp(r){let e=x.ownerDocument(r);if(!e)return false;let t=hp(r);return x.contains(e,t)}function rl(r){let e=x.ownerDocument(r);return e?x.contains(e,r)||pp(r):false}var T=(r=>(r[r.DomContentLoaded=0]="DomContentLoaded",r[r.Load=1]="Load",r[r.FullSnapshot=2]="FullSnapshot",r[r.IncrementalSnapshot=3]="IncrementalSnapshot",r[r.Meta=4]="Meta",r[r.Custom=5]="Custom",r[r.Plugin=6]="Plugin",r))(T||{}),R=(r=>(r[r.Mutation=0]="Mutation",r[r.MouseMove=1]="MouseMove",r[r.MouseInteraction=2]="MouseInteraction",r[r.Scroll=3]="Scroll",r[r.ViewportResize=4]="ViewportResize",r[r.Input=5]="Input",r[r.TouchMove=6]="TouchMove",r[r.MediaInteraction=7]="MediaInteraction",r[r.StyleSheetRule=8]="StyleSheetRule",r[r.CanvasMutation=9]="CanvasMutation",r[r.Font=10]="Font",r[r.Log=11]="Log",r[r.Drag=12]="Drag",r[r.StyleDeclaration=13]="StyleDeclaration",r[r.Selection=14]="Selection",r[r.AdoptedStyleSheet=15]="AdoptedStyleSheet",r[r.CustomElement=16]="CustomElement",r))(R||{}),te=(r=>(r[r.MouseUp=0]="MouseUp",r[r.MouseDown=1]="MouseDown",r[r.Click=2]="Click",r[r.ContextMenu=3]="ContextMenu",r[r.DblClick=4]="DblClick",r[r.Focus=5]="Focus",r[r.Blur=6]="Blur",r[r.TouchStart=7]="TouchStart",r[r.TouchMove_Departed=8]="TouchMove_Departed",r[r.TouchEnd=9]="TouchEnd",r[r.TouchCancel=10]="TouchCancel",r))(te||{}),ye=(r=>(r[r.Mouse=0]="Mouse",r[r.Pen=1]="Pen",r[r.Touch=2]="Touch",r))(ye||{}),qe=(r=>(r[r["2D"]=0]="2D",r[r.WebGL=1]="WebGL",r[r.WebGL2=2]="WebGL2",r))(qe||{}),He=(r=>(r[r.Play=0]="Play",r[r.Pause=1]="Pause",r[r.Seeked=2]="Seeked",r[r.VolumeChange=3]="VolumeChange",r[r.RateChange=4]="RateChange",r))(He||{});var nl=(r=>(r[r.Document=0]="Document",r[r.DocumentType=1]="DocumentType",r[r.Element=2]="Element",r[r.Text=3]="Text",r[r.CDATA=4]="CDATA",r[r.Comment=5]="Comment",r))(nl||{});function lo(r){return "__ln"in r}var oi=class{constructor(){v(this,"length",0),v(this,"head",null),v(this,"tail",null);}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=(t==null?void 0:t.next)||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&lo(e.previousSibling)){let n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t);}else if(e.nextSibling&&lo(e.nextSibling)&&e.nextSibling.__ln.previous){let n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.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){let 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--);}},co=(r,e)=>`${r}@${e}`,ai=class{constructor(){v(this,"frozen",false),v(this,"locked",false),v(this,"texts",[]),v(this,"attributes",[]),v(this,"attributeMap",new WeakMap),v(this,"removes",[]),v(this,"mapRemoves",[]),v(this,"movedMap",{}),v(this,"addedSet",new Set),v(this,"movedSet",new Set),v(this,"droppedSet",new Set),v(this,"removesSubTreeCache",new Set),v(this,"mutationCb"),v(this,"blockClass"),v(this,"blockSelector"),v(this,"maskTextClass"),v(this,"maskTextSelector"),v(this,"inlineStylesheet"),v(this,"maskInputOptions"),v(this,"maskTextFn"),v(this,"maskInputFn"),v(this,"keepIframeSrcFn"),v(this,"recordCanvas"),v(this,"inlineImages"),v(this,"slimDOMOptions"),v(this,"dataURLOptions"),v(this,"doc"),v(this,"mirror"),v(this,"iframeManager"),v(this,"stylesheetManager"),v(this,"shadowDomManager"),v(this,"canvasManager"),v(this,"processedNodeManager"),v(this,"unattachedDoc"),v(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit();}),v(this,"emit",()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,n=new oi,i=a=>{let c=a,u=ht;for(;u===ht;)c=c&&c.nextSibling,u=c&&this.mirror.getId(c);return u},s=a=>{let c=x.parentNode(a);if(!c||!rl(a))return;let u=false;if(a.nodeType===Node.TEXT_NODE){let m=c.tagName;if(m==="TEXTAREA")return;m==="STYLE"&&this.addedSet.has(c)&&(u=true);}let d=ut(c)?this.mirror.getId(tl(a)):this.mirror.getId(c),f=i(a);if(d===-1||f===-1)return n.addNode(a);let g=Ve(a,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:true,newlyAddedElement:true,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=>{Qa(m,this.mirror)&&this.iframeManager.addIframe(m),el(m,this.mirror)&&this.stylesheetManager.trackLinkElement(m),ii(a)&&this.shadowDomManager.addShadowRoot(x.shadowRoot(a),this.doc);},onIframeLoad:(m,p)=>{this.iframeManager.attachIframe(m,p),this.shadowDomManager.observeAttachShadow(m);},onStylesheetLoad:(m,p)=>{this.stylesheetManager.attachLinkElement(m,p);},cssCaptured:u});g&&(e.push({parentId:d,nextId:f,node:g}),t.add(g.id));};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let a of this.movedSet)uo(this.removesSubTreeCache,a,this.mirror)&&!this.movedSet.has(x.parentNode(a))||s(a);for(let a of this.addedSet)!fo(this.droppedSet,a)&&!uo(this.removesSubTreeCache,a,this.mirror)||fo(this.movedSet,a)?s(a):this.droppedSet.add(a);let o=null;for(;n.length;){let a=null;if(o){let c=this.mirror.getId(x.parentNode(o.value)),u=i(o.value);c!==-1&&u!==-1&&(a=o);}if(!a){let c=n.tail;for(;c;){let u=c;if(c=c.previous,u){let d=this.mirror.getId(x.parentNode(u.value));if(i(u.value)===-1)continue;if(d!==-1){a=u;break}else {let g=u.value,m=x.parentNode(g);if(m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let p=x.host(m);if(this.mirror.getId(p)!==-1){a=u;break}}}}}}if(!a){for(;n.head;)n.removeNode(n.head.value);break}o=a.previous,n.removeNode(a.value),s(a.value);}let l={texts:this.texts.map(a=>{let c=a.node,u=x.parentNode(c);return u&&u.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(u),{id:this.mirror.getId(c),value:a.value}}).filter(a=>!t.has(a.id)).filter(a=>this.mirror.has(a.id)),attributes:this.attributes.map(a=>{let{attributes:c}=a;if(typeof c.style=="string"){let u=JSON.stringify(a.styleDiff),d=JSON.stringify(a._unchangedStyles);u.length<c.style.length&&(u+d).split("var(").length===c.style.split("var(").length&&(c.style=a.styleDiff);}return {id:this.mirror.getId(a.node),attributes:c}}).filter(a=>!t.has(a.id)).filter(a=>this.mirror.has(a.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));}),v(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));let n=Array.from(x.childNodes(e),i=>x.textContent(i)||"").join("");t.attributes.value=wr({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:vr(e),value:n,maskInputFn:this.maskInputFn});}),v(this,"processMutation",e=>{if(!En(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case "characterData":{let t=x.textContent(e.target);!ee(e.target,this.blockClass,this.blockSelector,false)&&t!==e.oldValue&&this.texts.push({value:Ro(e.target,this.maskTextClass,this.maskTextSelector,true)&&t?this.maskTextFn?this.maskTextFn(t,Ka(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case "attributes":{let t=e.target,n=e.attributeName,i=e.target.getAttribute(n);if(n==="value"){let o=vr(t);i=wr({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:o,value:i,maskInputFn:this.maskInputFn});}if(ee(e.target,this.blockClass,this.blockSelector,false)||i===e.oldValue)return;let s=this.attributeMap.get(e.target);if(t.tagName==="IFRAME"&&n==="src"&&!this.keepIframeSrcFn(i))if(!t.contentDocument)n="rr_src";else return;if(s||(s={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(e.target,s)),n==="type"&&t.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&t.setAttribute("data-rr-is-password","true"),!xo(t.tagName,n))if(s.attributes[n]=Io(this.doc,_e(t.tagName),_e(n),i),n==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument();}catch(l){this.unattachedDoc=this.doc;}let o=this.unattachedDoc.createElement("span");e.oldValue&&o.setAttribute("style",e.oldValue);for(let l of Array.from(t.style)){let a=t.style.getPropertyValue(l),c=t.style.getPropertyPriority(l);a!==o.style.getPropertyValue(l)||c!==o.style.getPropertyPriority(l)?c===""?s.styleDiff[l]=a:s.styleDiff[l]=[a,c]:s._unchangedStyles[l]=[a,c];}for(let l of Array.from(o.style))t.style.getPropertyValue(l)===""&&(s.styleDiff[l]=false);}else n==="open"&&t.tagName==="DIALOG"&&(t.matches("dialog:modal")?s.attributes.rr_open_mode="modal":s.attributes.rr_open_mode="non-modal");break}case "childList":{if(ee(e.target,this.blockClass,this.blockSelector,true))return;if(e.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(e.target);return}e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let n=this.mirror.getId(t),i=ut(e.target)?this.mirror.getId(x.host(e.target)):this.mirror.getId(e.target);ee(e.target,this.blockClass,this.blockSelector,false)||En(t,this.mirror,this.slimDOMOptions)||!fp(t,this.mirror)||(this.addedSet.has(t)?(li(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&n===-1||qa(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[co(n,i)]?li(this.movedSet,t):(this.removes.push({parentId:i,id:n,isShadow:ut(e.target)&&ft(e.target)?true:void 0}),mp(t,this.removesSubTreeCache))),this.mapRemoves.push(t));});break}}}),v(this,"genAdds",(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(En(e,this.mirror,this.slimDOMOptions))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&n!==-1&&(this.movedMap[co(this.mirror.getId(e),n)]=true);}else this.addedSet.add(e),this.droppedSet.delete(e);ee(e,this.blockClass,this.blockSelector,false)||(x.childNodes(e).forEach(n=>this.genAdds(n)),ii(e)&&x.childNodes(x.shadowRoot(e)).forEach(n=>{this.processedNodeManager.add(n,this),this.genAdds(n,e);}));}});}init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=e[t];});}freeze(){this.frozen=true,this.canvasManager.freeze();}unfreeze(){this.frozen=false,this.canvasManager.unfreeze(),this.emit();}isFrozen(){return this.frozen}lock(){this.locked=true,this.canvasManager.lock();}unlock(){this.locked=false,this.canvasManager.unlock(),this.emit();}reset(){this.shadowDomManager.reset(),this.canvasManager.reset();}};function li(r,e){r.delete(e),x.childNodes(e).forEach(t=>li(r,t));}function mp(r,e){let t=[r];for(;t.length;){let n=t.pop();e.has(n)||(e.add(n),x.childNodes(n).forEach(i=>t.push(i)));}}function uo(r,e,t){return r.size===0?false:gp(r,e)}function gp(r,e,t){let n=x.parentNode(e);return n?r.has(n):false}function fo(r,e){return r.size===0?false:il(r,e)}function il(r,e){let t=x.parentNode(e);return t?r.has(t)?true:il(r,t):false}var dt;function yp(r){dt=r;}function bp(){dt=void 0;}var M=r=>dt?(...t)=>{try{return r(...t)}catch(n){if(dt&&dt(n)===true)return;throw n}}:r,ke=[];function Mt(r){try{if("composedPath"in r){let e=r.composedPath();if(e.length)return e[0]}else if("path"in r&&r.path.length)return r.path[0]}catch(e){}return r&&r.target}function sl(r,e){let t=new ai;ke.push(t),t.init(r);let n=new(Ya())(M(t.processMutations.bind(t)));return n.observe(e,{attributes:true,attributeOldValue:true,characterData:true,characterDataOldValue:true,childList:true,subtree:true}),n}function wp({mousemoveCb:r,sampling:e,doc:t,mirror:n}){if(e.mousemove===false)return ()=>{};let i=typeof e.mousemove=="number"?e.mousemove:50,s=typeof e.mousemoveCallback=="number"?e.mousemoveCallback:500,o=[],l,a=Ct(M(d=>{let f=Date.now()-l;r(o.map(g=>(g.timeOffset-=f,g)),d),o=[],l=null;}),s),c=M(Ct(M(d=>{let f=Mt(d),{clientX:g,clientY:m}=ni(d)?d.changedTouches[0]:d;l||(l=_r()),o.push({x:g,y:m,id:n.getId(f),timeOffset:_r()-l}),a(typeof DragEvent!="undefined"&&d instanceof DragEvent?R.Drag:d instanceof MouseEvent?R.MouseMove:R.TouchMove);}),i,{trailing:!1})),u=[Q("mousemove",c,t),Q("touchmove",c,t),Q("drag",c,t)];return M(()=>{u.forEach(d=>d());})}function vp({mouseInteractionCb:r,doc:e,mirror:t,blockClass:n,blockSelector:i,sampling:s}){if(s.mouseInteraction===false)return ()=>{};let o=s.mouseInteraction===true||s.mouseInteraction===void 0?{}:s.mouseInteraction,l=[],a=null,c=u=>d=>{let f=Mt(d);if(ee(f,n,i,true))return;let g=null,m=u;if("pointerType"in d){switch(d.pointerType){case "mouse":g=ye.Mouse;break;case "touch":g=ye.Touch;break;case "pen":g=ye.Pen;break}g===ye.Touch?te[u]===te.MouseDown?m="TouchStart":te[u]===te.MouseUp&&(m="TouchEnd"):ye.Pen;}else ni(d)&&(g=ye.Touch);g!==null?(a=g,(m.startsWith("Touch")&&g===ye.Touch||m.startsWith("Mouse")&&g===ye.Mouse)&&(g=null)):te[u]===te.Click&&(g=a,a=null);let p=ni(d)?d.changedTouches[0]:d;if(!p)return;let h=t.getId(f),{clientX:y,clientY:w}=p;M(r)({type:te[m],id:h,x:y,y:w,...g!==null&&{pointerType:g}});};return Object.keys(te).filter(u=>Number.isNaN(Number(u))&&!u.endsWith("_Departed")&&o[u]!==false).forEach(u=>{let d=_e(u),f=c(u);if(window.PointerEvent)switch(te[u]){case te.MouseDown:case te.MouseUp:d=d.replace("mouse","pointer");break;case te.TouchStart:case te.TouchEnd:return}l.push(Q(d,f,e));}),M(()=>{l.forEach(u=>u());})}function ol({scrollCb:r,doc:e,mirror:t,blockClass:n,blockSelector:i,sampling:s}){let o=M(Ct(M(l=>{let a=Mt(l);if(!a||ee(a,n,i,!0))return;let c=t.getId(a);if(a===e&&e.defaultView){let u=Xa(e.defaultView);r({id:c,x:u.left,y:u.top});}else r({id:c,x:a.scrollLeft,y:a.scrollTop});}),s.scroll||100));return Q("scroll",o,e)}function Sp({viewportResizeCb:r},{win:e}){let t=-1,n=-1,i=M(Ct(M(()=>{let s=Za(),o=Ja();(t!==s||n!==o)&&(r({width:Number(o),height:Number(s)}),t=s,n=o);}),200));return Q("resize",i,e)}var Cp=["INPUT","TEXTAREA","SELECT"],ho=new WeakMap;function Ep({inputCb:r,doc:e,mirror:t,blockClass:n,blockSelector:i,ignoreClass:s,ignoreSelector:o,maskInputOptions:l,maskInputFn:a,sampling:c,userTriggeredOnInput:u}){function d(w){let b=Mt(w),S=w.isTrusted,E=b&&b.tagName;if(b&&E==="OPTION"&&(b=x.parentElement(b)),!b||!E||Cp.indexOf(E)<0||ee(b,n,i,true)||b.classList.contains(s)||o&&b.matches(o))return;let I=b.value,P=false,A=vr(b)||"";A==="radio"||A==="checkbox"?P=b.checked:(l[E.toLowerCase()]||l[A])&&(I=wr({element:b,maskInputOptions:l,tagName:E,type:A,value:I,maskInputFn:a})),f(b,u?{text:I,isChecked:P,userTriggered:S}:{text:I,isChecked:P});let F=b.name;A==="radio"&&F&&P&&e.querySelectorAll(`input[type="radio"][name="${F}"]`).forEach($=>{if($!==b){let D=$.value;f($,u?{text:D,isChecked:!P,userTriggered:false}:{text:D,isChecked:!P});}});}function f(w,b){let S=ho.get(w);if(!S||S.text!==b.text||S.isChecked!==b.isChecked){ho.set(w,b);let E=t.getId(w);M(r)({...b,id:E});}}let m=(c.input==="last"?["change"]:["input","change"]).map(w=>Q(w,M(d),e)),p=e.defaultView;if(!p)return ()=>{m.forEach(w=>w());};let h=p.Object.getOwnPropertyDescriptor(p.HTMLInputElement.prototype,"value"),y=[[p.HTMLInputElement.prototype,"value"],[p.HTMLInputElement.prototype,"checked"],[p.HTMLSelectElement.prototype,"value"],[p.HTMLTextAreaElement.prototype,"value"],[p.HTMLSelectElement.prototype,"selectedIndex"],[p.HTMLOptionElement.prototype,"selected"]];return h&&h.set&&m.push(...y.map(w=>Gr(w[0],w[1],{set(){M(d)({target:this,isTrusted:false});}},false,p))),M(()=>{m.forEach(w=>w());})}function Nr(r){let e=[];function t(n,i){if(ur("CSSGroupingRule")&&n.parentRule instanceof CSSGroupingRule||ur("CSSMediaRule")&&n.parentRule instanceof CSSMediaRule||ur("CSSSupportsRule")&&n.parentRule instanceof CSSSupportsRule||ur("CSSConditionRule")&&n.parentRule instanceof CSSConditionRule){let o=Array.from(n.parentRule.cssRules).indexOf(n);i.unshift(o);}else if(n.parentStyleSheet){let o=Array.from(n.parentStyleSheet.cssRules).indexOf(n);i.unshift(o);}return i}return t(r,e)}function Ee(r,e,t){let n,i;return r?(r.ownerNode?n=e.getId(r.ownerNode):i=t.getId(r),{styleId:i,id:n}):{}}function Ip({styleSheetRuleCb:r,mirror:e,stylesheetManager:t},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return ()=>{};let i=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:M((u,d,f)=>{let[g,m]=f,{id:p,styleId:h}=Ee(d,e,t.styleMirror);return (p&&p!==-1||h&&h!==-1)&&r({id:p,styleId:h,adds:[{rule:g,index:m}]}),u.apply(d,f)})}),n.CSSStyleSheet.prototype.addRule=function(u,d,f=this.cssRules.length){let g=`${u} { ${d} }`;return n.CSSStyleSheet.prototype.insertRule.apply(this,[g,f])};let s=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:M((u,d,f)=>{let[g]=f,{id:m,styleId:p}=Ee(d,e,t.styleMirror);return (m&&m!==-1||p&&p!==-1)&&r({id:m,styleId:p,removes:[{index:g}]}),u.apply(d,f)})}),n.CSSStyleSheet.prototype.removeRule=function(u){return n.CSSStyleSheet.prototype.deleteRule.apply(this,[u])};let o;n.CSSStyleSheet.prototype.replace&&(o=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:M((u,d,f)=>{let[g]=f,{id:m,styleId:p}=Ee(d,e,t.styleMirror);return (m&&m!==-1||p&&p!==-1)&&r({id:m,styleId:p,replace:g}),u.apply(d,f)})}));let l;n.CSSStyleSheet.prototype.replaceSync&&(l=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:M((u,d,f)=>{let[g]=f,{id:m,styleId:p}=Ee(d,e,t.styleMirror);return (m&&m!==-1||p&&p!==-1)&&r({id:m,styleId:p,replaceSync:g}),u.apply(d,f)})}));let a={};fr("CSSGroupingRule")?a.CSSGroupingRule=n.CSSGroupingRule:(fr("CSSMediaRule")&&(a.CSSMediaRule=n.CSSMediaRule),fr("CSSConditionRule")&&(a.CSSConditionRule=n.CSSConditionRule),fr("CSSSupportsRule")&&(a.CSSSupportsRule=n.CSSSupportsRule));let c={};return Object.entries(a).forEach(([u,d])=>{c[u]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(c[u].insertRule,{apply:M((f,g,m)=>{let[p,h]=m,{id:y,styleId:w}=Ee(g.parentStyleSheet,e,t.styleMirror);return (y&&y!==-1||w&&w!==-1)&&r({id:y,styleId:w,adds:[{rule:p,index:[...Nr(g),h||0]}]}),f.apply(g,m)})}),d.prototype.deleteRule=new Proxy(c[u].deleteRule,{apply:M((f,g,m)=>{let[p]=m,{id:h,styleId:y}=Ee(g.parentStyleSheet,e,t.styleMirror);return (h&&h!==-1||y&&y!==-1)&&r({id:h,styleId:y,removes:[{index:[...Nr(g),p]}]}),f.apply(g,m)})});}),M(()=>{n.CSSStyleSheet.prototype.insertRule=i,n.CSSStyleSheet.prototype.deleteRule=s,o&&(n.CSSStyleSheet.prototype.replace=o),l&&(n.CSSStyleSheet.prototype.replaceSync=l),Object.entries(a).forEach(([u,d])=>{d.prototype.insertRule=c[u].insertRule,d.prototype.deleteRule=c[u].deleteRule;});})}function al({mirror:r,stylesheetManager:e},t){var n,i,s;let o=null;t.nodeName==="#document"?o=r.getId(t):o=r.getId(x.host(t));let l=t.nodeName==="#document"?(n=t.defaultView)==null?void 0:n.Document:(s=(i=t.ownerDocument)==null?void 0:i.defaultView)==null?void 0:s.ShadowRoot,a=l!=null&&l.prototype?Object.getOwnPropertyDescriptor(l==null?void 0:l.prototype,"adoptedStyleSheets"):void 0;return o===null||o===-1||!l||!a?()=>{}:(Object.defineProperty(t,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){var c;return (c=a.get)==null?void 0:c.call(this)},set(c){var u;let d=(u=a.set)==null?void 0:u.call(this,c);if(o!==null&&o!==-1)try{e.adoptStyleSheets(c,o);}catch(f){}return d}}),M(()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set});}))}function xp({styleDeclarationCb:r,mirror:e,ignoreCSSAttributes:t,stylesheetManager:n},{win:i}){let s=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:M((l,a,c)=>{var u;let[d,f,g]=c;if(t.has(d))return s.apply(a,[d,f,g]);let{id:m,styleId:p}=Ee((u=a.parentRule)==null?void 0:u.parentStyleSheet,e,n.styleMirror);return (m&&m!==-1||p&&p!==-1)&&r({id:m,styleId:p,set:{property:d,value:f,priority:g},index:Nr(a.parentRule)}),l.apply(a,c)})});let o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:M((l,a,c)=>{var u;let[d]=c;if(t.has(d))return o.apply(a,[d]);let{id:f,styleId:g}=Ee((u=a.parentRule)==null?void 0:u.parentStyleSheet,e,n.styleMirror);return (f&&f!==-1||g&&g!==-1)&&r({id:f,styleId:g,remove:{property:d},index:Nr(a.parentRule)}),l.apply(a,c)})}),M(()=>{i.CSSStyleDeclaration.prototype.setProperty=s,i.CSSStyleDeclaration.prototype.removeProperty=o;})}function Rp({mediaInteractionCb:r,blockClass:e,blockSelector:t,mirror:n,sampling:i,doc:s}){let o=M(a=>Ct(M(c=>{let u=Mt(c);if(!u||ee(u,e,t,!0))return;let{currentTime:d,volume:f,muted:g,playbackRate:m,loop:p}=u;r({type:a,id:n.getId(u),currentTime:d,volume:f,muted:g,playbackRate:m,loop:p});}),i.media||500)),l=[Q("play",o(He.Play),s),Q("pause",o(He.Pause),s),Q("seeked",o(He.Seeked),s),Q("volumechange",o(He.VolumeChange),s),Q("ratechange",o(He.RateChange),s)];return M(()=>{l.forEach(a=>a());})}function Mp({fontCb:r,doc:e}){let t=e.defaultView;if(!t)return ()=>{};let n=[],i=new WeakMap,s=t.FontFace;t.FontFace=function(a,c,u){let d=new s(a,c,u);return i.set(d,{family:a,buffer:typeof c!="string",descriptors:u,fontSource:typeof c=="string"?c:JSON.stringify(Array.from(new Uint8Array(c)))}),d};let o=De(e.fonts,"add",function(l){return function(a){return setTimeout(M(()=>{let c=i.get(a);c&&(r(c),i.delete(a));}),0),l.apply(this,[a])}});return n.push(()=>{t.FontFace=s;}),n.push(o),M(()=>{n.forEach(l=>l());})}function Tp(r){let{doc:e,mirror:t,blockClass:n,blockSelector:i,selectionCb:s}=r,o=true,l=M(()=>{let a=e.getSelection();if(!a||o&&(a!=null&&a.isCollapsed))return;o=a.isCollapsed||!1;let c=[],u=a.rangeCount||0;for(let d=0;d<u;d++){let f=a.getRangeAt(d),{startContainer:g,startOffset:m,endContainer:p,endOffset:h}=f;ee(g,n,i,!0)||ee(p,n,i,!0)||c.push({start:t.getId(g),startOffset:m,end:t.getId(p),endOffset:h});}s({ranges:c});});return l(),Q("selectionchange",l)}function Ap({doc:r,customElementCb:e}){let t=r.defaultView;return !t||!t.customElements?()=>{}:De(t.customElements,"define",function(i){return function(s,o,l){try{e({define:{name:s}});}catch(a){console.warn(`Custom element callback failed for ${s}`);}return i.apply(this,[s,o,l])}})}function kp(r,e){let{mutationCb:t,mousemoveCb:n,mouseInteractionCb:i,scrollCb:s,viewportResizeCb:o,inputCb:l,mediaInteractionCb:a,styleSheetRuleCb:c,styleDeclarationCb:u,canvasMutationCb:d,fontCb:f,selectionCb:g,customElementCb:m}=r;r.mutationCb=(...p)=>{e.mutation&&e.mutation(...p),t(...p);},r.mousemoveCb=(...p)=>{e.mousemove&&e.mousemove(...p),n(...p);},r.mouseInteractionCb=(...p)=>{e.mouseInteraction&&e.mouseInteraction(...p),i(...p);},r.scrollCb=(...p)=>{e.scroll&&e.scroll(...p),s(...p);},r.viewportResizeCb=(...p)=>{e.viewportResize&&e.viewportResize(...p),o(...p);},r.inputCb=(...p)=>{e.input&&e.input(...p),l(...p);},r.mediaInteractionCb=(...p)=>{e.mediaInteaction&&e.mediaInteaction(...p),a(...p);},r.styleSheetRuleCb=(...p)=>{e.styleSheetRule&&e.styleSheetRule(...p),c(...p);},r.styleDeclarationCb=(...p)=>{e.styleDeclaration&&e.styleDeclaration(...p),u(...p);},r.canvasMutationCb=(...p)=>{e.canvasMutation&&e.canvasMutation(...p),d(...p);},r.fontCb=(...p)=>{e.font&&e.font(...p),f(...p);},r.selectionCb=(...p)=>{e.selection&&e.selection(...p),g(...p);},r.customElementCb=(...p)=>{e.customElement&&e.customElement(...p),m(...p);};}function _p(r,e={}){let t=r.doc.defaultView;if(!t)return ()=>{};kp(r,e);let n;r.recordDOM&&(n=sl(r,r.doc));let i=wp(r),s=vp(r),o=ol(r),l=Sp(r,{win:t}),a=Ep(r),c=Rp(r),u=()=>{},d=()=>{},f=()=>{},g=()=>{};r.recordDOM&&(u=Ip(r,{win:t}),d=al(r,r.doc),f=xp(r,{win:t}),r.collectFonts&&(g=Mp(r)));let m=Tp(r),p=Ap(r),h=[];for(let y of r.plugins)h.push(y.observer(y.callback,t,y.options));return M(()=>{ke.forEach(y=>y.reset()),n==null||n.disconnect(),i(),s(),o(),l(),a(),c(),u(),d(),f(),g(),m(),p(),h.forEach(y=>y());})}function ur(r){return typeof window[r]!="undefined"}function fr(r){return !!(typeof window[r]!="undefined"&&window[r].prototype&&"insertRule"in window[r].prototype&&"deleteRule"in window[r].prototype)}var Or=class{constructor(e){v(this,"iframeIdToRemoteIdMap",new WeakMap),v(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e;}getId(e,t,n,i){let s=n||this.getIdToRemoteIdMap(e),o=i||this.getRemoteIdToIdMap(e),l=s.get(t);return l||(l=this.generateIdFn(),s.set(t,l),o.set(l,t)),l}getIds(e,t){let n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(s=>this.getId(e,s,n,i))}getRemoteId(e,t,n){let i=n||this.getRemoteIdToIdMap(e);if(typeof t!="number")return t;let s=i.get(t);return s||-1}getRemoteIds(e,t){let n=this.getRemoteIdToIdMap(e);return t.map(i=>this.getRemoteId(e,i,n))}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}},ci=class{constructor(e){v(this,"iframes",new WeakMap),v(this,"crossOriginIframeMap",new WeakMap),v(this,"crossOriginIframeMirror",new Or(Eo)),v(this,"crossOriginIframeStyleMirror"),v(this,"crossOriginIframeRootIdMap",new WeakMap),v(this,"mirror"),v(this,"mutationCb"),v(this,"wrappedEmit"),v(this,"loadListener"),v(this,"stylesheetManager"),v(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Or(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,true),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e);}addLoadListener(e){this.loadListener=e;}attachIframe(e,t){var n,i;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:true}),this.recordCrossOriginIframes&&((n=e.contentWindow)==null||n.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){let t=e;if(t.data.type!=="rrweb"||t.origin!==t.data.origin||!e.source)return;let i=this.crossOriginIframeMap.get(e.source);if(!i)return;let s=this.transformCrossOriginEvent(i,t.data.event);s&&this.wrappedEmit(s,t.data.isCheckout);}transformCrossOriginEvent(e,t){var n;switch(t.type){case T.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:T.IncrementalSnapshot,data:{source:R.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:true}}}case T.Meta:case T.Load:case T.DomContentLoaded:return false;case T.Plugin:return t;case T.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case T.IncrementalSnapshot:switch(t.data.source){case R.Mutation:return t.data.adds.forEach(i=>{this.replaceIds(i,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(i.node,e);let s=this.crossOriginIframeRootIdMap.get(e);s&&this.patchRootIdOnNode(i.node,s);}),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 R.Drag:case R.TouchMove:case R.MouseMove:return t.data.positions.forEach(i=>{this.replaceIds(i,e,["id"]);}),t;case R.ViewportResize:return false;case R.MediaInteraction:case R.MouseInteraction:case R.Scroll:case R.CanvasMutation:case R.Input:return this.replaceIds(t.data,e,["id"]),t;case R.StyleSheetRule:case R.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case R.Font:return t;case R.Selection:return t.data.ranges.forEach(i=>{this.replaceIds(i,e,["start","end"]);}),t;case R.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),(n=t.data.styles)==null||n.forEach(i=>{this.replaceStyleIds(i,e,["styleId"]);}),t}}return false}replace(e,t,n,i){for(let s of i)!Array.isArray(t[s])&&typeof t[s]!="number"||(Array.isArray(t[s])?t[s]=e.getIds(n,t[s]):t[s]=e.getId(n,t[s]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(n=>{this.replaceIdOnNode(n,t);});}patchRootIdOnNode(e,t){e.type!==nl.Document&&!e.rootId&&(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(n=>{this.patchRootIdOnNode(n,t);});}},ui=class{constructor(e){v(this,"shadowDoms",new WeakSet),v(this,"mutationCb"),v(this,"scrollCb"),v(this,"bypassOptions"),v(this,"mirror"),v(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(!ft(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);let n=sl({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(ol({...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(x.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){let n=this;this.restoreHandlers.push(De(e.prototype,"attachShadow",function(i){return function(s){let o=i.call(this,s),l=x.shadowRoot(this);return l&&rl(this)&&n.addShadowRoot(l,t),o}}));}reset(){this.restoreHandlers.forEach(e=>{try{e();}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet;}},Ge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Np=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(ct=0;ct<Ge.length;ct++)Np[Ge.charCodeAt(ct)]=ct;var ct,Op=function(r){var e=new Uint8Array(r),t,n=e.length,i="";for(t=0;t<n;t+=3)i+=Ge[e[t]>>2],i+=Ge[(e[t]&3)<<4|e[t+1]>>4],i+=Ge[(e[t+1]&15)<<2|e[t+2]>>6],i+=Ge[e[t+2]&63];return n%3===2?i=i.substring(0,i.length-1)+"=":n%3===1&&(i=i.substring(0,i.length-2)+"=="),i};var po=new Map;function Dp(r,e){let t=po.get(r);return t||(t=new Map,po.set(r,t)),t.has(e)||t.set(e,[]),t.get(e)}var ll=(r,e,t)=>{if(!r||!(ul(r,e)||typeof r=="object"))return;let n=r.constructor.name,i=Dp(t,n),s=i.indexOf(r);return s===-1&&(s=i.length,i.push(r)),s};function gr(r,e,t){if(r instanceof Array)return r.map(n=>gr(n,e,t));if(r===null)return r;if(r instanceof Float32Array||r instanceof Float64Array||r instanceof Int32Array||r instanceof Uint32Array||r instanceof Uint8Array||r instanceof Uint16Array||r instanceof Int16Array||r instanceof Int8Array||r instanceof Uint8ClampedArray)return {rr_type:r.constructor.name,args:[Object.values(r)]};if(r instanceof ArrayBuffer){let n=r.constructor.name,i=Op(r);return {rr_type:n,base64:i}}else {if(r instanceof DataView)return {rr_type:r.constructor.name,args:[gr(r.buffer,e,t),r.byteOffset,r.byteLength]};if(r instanceof HTMLImageElement){let n=r.constructor.name,{src:i}=r;return {rr_type:n,src:i}}else if(r instanceof HTMLCanvasElement){let n="HTMLImageElement",i=r.toDataURL();return {rr_type:n,src:i}}else {if(r instanceof ImageData)return {rr_type:r.constructor.name,args:[gr(r.data,e,t),r.width,r.height]};if(ul(r,e)||typeof r=="object"){let n=r.constructor.name,i=ll(r,e,t);return {rr_type:n,index:i}}}}return r}var cl=(r,e,t)=>r.map(n=>gr(n,e,t)),ul=(r,e)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(i=>typeof e[i]=="function").find(i=>r instanceof e[i]);function Lp(r,e,t,n){let i=[],s=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype);for(let o of s)try{if(typeof e.CanvasRenderingContext2D.prototype[o]!="function")continue;let l=De(e.CanvasRenderingContext2D.prototype,o,function(a){return function(...c){return ee(this.canvas,t,n,!0)||setTimeout(()=>{let u=cl(c,e,this);r(this.canvas,{type:qe["2D"],property:o,args:u});},0),a.apply(this,c)}});i.push(l);}catch(l){let a=Gr(e.CanvasRenderingContext2D.prototype,o,{set(c){r(this.canvas,{type:qe["2D"],property:o,args:[c],setter:true});}});i.push(a);}return ()=>{i.forEach(o=>o());}}function Pp(r){return r==="experimental-webgl"?"webgl":r}function mo(r,e,t,n){let i=[];try{let s=De(r.HTMLCanvasElement.prototype,"getContext",function(o){return function(l,...a){if(!ee(this,e,t,!0)){let c=Pp(l);if("__context"in this||(this.__context=c),n&&["webgl","webgl2"].includes(c))if(a[0]&&typeof a[0]=="object"){let u=a[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0);}else a.splice(0,1,{preserveDrawingBuffer:!0});}return o.apply(this,[l,...a])}});i.push(s);}catch(s){console.error("failed to patch HTMLCanvasElement.prototype.getContext");}return ()=>{i.forEach(s=>s());}}function go(r,e,t,n,i,s){let o=[],l=Object.getOwnPropertyNames(r);for(let a of l)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))try{if(typeof r[a]!="function")continue;let c=De(r,a,function(u){return function(...d){let f=u.apply(this,d);if(ll(f,s,this),"tagName"in this.canvas&&!ee(this.canvas,n,i,!0)){let g=cl(d,s,this),m={type:e,property:a,args:g};t(this.canvas,m);}return f}});o.push(c);}catch(c){let u=Gr(r,a,{set(d){t(this.canvas,{type:e,property:a,args:[d],setter:true});}});o.push(u);}return o}function Fp(r,e,t,n){let i=[];return i.push(...go(e.WebGLRenderingContext.prototype,qe.WebGL,r,t,n,e)),typeof e.WebGL2RenderingContext!="undefined"&&i.push(...go(e.WebGL2RenderingContext.prototype,qe.WebGL2,r,t,n,e)),()=>{i.forEach(s=>s());}}var fl="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",$p=r=>Uint8Array.from(atob(r),e=>e.charCodeAt(0)),yo=typeof window!="undefined"&&window.Blob&&new Blob([$p(fl)],{type:"text/javascript;charset=utf-8"});function Bp(r){let e;try{if(e=yo&&(window.URL||window.webkitURL).createObjectURL(yo),!e)throw "";let t=new Worker(e,{name:r==null?void 0:r.name});return t.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(e);}),t}catch(t){return new Worker("data:text/javascript;base64,"+fl,{name:r==null?void 0:r.name})}finally{e&&(window.URL||window.webkitURL).revokeObjectURL(e);}}var fi=class{constructor(e){v(this,"pendingCanvasMutations",new Map),v(this,"rafStamps",{latestId:0,invokeId:null}),v(this,"mirror"),v(this,"mutationCb"),v(this,"resetObservers"),v(this,"frozen",false),v(this,"locked",false),v(this,"processMutation",(a,c)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(a)||this.pendingCanvasMutations.set(a,[]),this.pendingCanvasMutations.get(a).push(c);});let{sampling:t="all",win:n,blockClass:i,blockSelector:s,recordCanvas:o,dataURLOptions:l}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,o&&t==="all"&&this.initCanvasMutationObserver(n,i,s),o&&typeof t=="number"&&this.initCanvasFPSObserver(t,n,i,s,{dataURLOptions:l});}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers();}freeze(){this.frozen=true;}unfreeze(){this.frozen=false;}lock(){this.locked=true;}unlock(){this.locked=false;}initCanvasFPSObserver(e,t,n,i,s){let o=mo(t,n,i,true),l=new Map,a=new Bp;a.onmessage=m=>{let{id:p}=m.data;if(l.set(p,false),!("base64"in m.data))return;let{base64:h,type:y,width:w,height:b}=m.data;this.mutationCb({id:p,type:qe["2D"],commands:[{property:"clearRect",args:[0,0,w,b]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:h}],type:y}]},0,0]}]});};let c=1e3/e,u=0,d,f=()=>{let m=[];return t.document.querySelectorAll("canvas").forEach(p=>{ee(p,n,i,true)||m.push(p);}),m},g=m=>{if(u&&m-u<c){d=requestAnimationFrame(g);return}u=m,f().forEach(async p=>{var h;let y=this.mirror.getId(p);if(l.get(y)||p.width===0||p.height===0)return;if(l.set(y,true),["webgl","webgl2"].includes(p.__context)){let b=p.getContext(p.__context);((h=b==null?void 0:b.getContextAttributes())==null?void 0:h.preserveDrawingBuffer)===false&&b.clear(b.COLOR_BUFFER_BIT);}let w=await createImageBitmap(p);a.postMessage({id:y,bitmap:w,width:p.width,height:p.height,dataURLOptions:s.dataURLOptions},[w]);}),d=requestAnimationFrame(g);};d=requestAnimationFrame(g),this.resetObservers=()=>{o(),cancelAnimationFrame(d);};}initCanvasMutationObserver(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let i=mo(e,t,n,false),s=Lp(this.processMutation.bind(this),e,t,n),o=Fp(this.processMutation.bind(this),e,t,n);this.resetObservers=()=>{i(),s(),o();};}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations());}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e);};requestAnimationFrame(e);}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n);}),requestAnimationFrame(()=>this.flushPendingCanvasMutations());}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let n=this.pendingCanvasMutations.get(e);if(!n||t===-1)return;let i=n.map(o=>{let{type:l,...a}=o;return a}),{type:s}=n[0];this.mutationCb({id:t,type:s,commands:i}),this.pendingCanvasMutations.delete(e);}},di=class{constructor(e){v(this,"trackedLinkElements",new WeakSet),v(this,"mutationCb"),v(this,"adoptedStyleSheetCb"),v(this,"styleMirror",new si),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;let n={id:t,styleIds:[]},i=[];for(let s of e){let o;this.styleMirror.has(s)?o=this.styleMirror.getId(s):(o=this.styleMirror.add(s),i.push({styleId:o,rules:Array.from(s.rules||CSSRule,(l,a)=>({rule:So(l,s.href),index:a}))})),n.styleIds.push(o);}i.length>0&&(n.styles=i),this.adoptedStyleSheetCb(n);}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet;}trackStylesheetInLinkElement(e){}},hi=class{constructor(){v(this,"nodeMap",new WeakMap),v(this,"active",false);}inOtherBuffer(e,t){let n=this.nodeMap.get(e);return n&&Array.from(n).some(i=>i!==t)}add(e,t){this.active||(this.active=true,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=false;})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t));}destroy(){}},G,yr,In,Dr=false;try{if(Array.from([1],r=>r*2)[0]!==2){let r=document.createElement("iframe");document.body.appendChild(r),Array.from=((vs=r.contentWindow)==null?void 0:vs.Array.from)||Array.from,document.body.removeChild(r);}}catch(r){console.debug("Unable to override Array.from",r);}var ce=Gc();function Ce(r={}){let{emit:e,checkoutEveryNms:t,checkoutEveryNth:n,blockClass:i="rr-block",blockSelector:s=null,ignoreClass:o="rr-ignore",ignoreSelector:l=null,maskTextClass:a="rr-mask",maskTextSelector:c=null,inlineStylesheet:u=true,maskAllInputs:d,maskInputOptions:f,slimDOMOptions:g,maskInputFn:m,maskTextFn:p,hooks:h,packFn:y,sampling:w={},dataURLOptions:b={},mousemoveWait:S,recordDOM:E=true,recordCanvas:I=false,recordCrossOriginIframes:P=false,recordAfter:A=r.recordAfter==="DOMContentLoaded"?r.recordAfter:"load",userTriggeredOnInput:F=false,collectFonts:$=false,inlineImages:D=false,plugins:q,keepIframeSrcFn:C=()=>false,ignoreCSSAttributes:re=new Set([]),errorHandler:Re}=r;yp(Re);let j=P?window.parent===window:true,se=false;if(!j)try{window.parent.document&&(se=!1);}catch(k){se=true;}if(j&&!e)throw new Error("emit function is required");if(!j&&!se)return ()=>{};S!==void 0&&w.mousemove===void 0&&(w.mousemove=S),ce.reset();let Me=d===true?{color:true,date:true,"datetime-local":true,email:true,month:true,number:true,range:true,search:true,tel:true,text:true,time:true,url:true,week:true,textarea:true,select:true,password:true}:f!==void 0?f:{password:true},he=Mo(g);dp();let rs,an=0,ns=k=>{for(let le of q||[])le.eventProcessor&&(k=le.eventProcessor(k));return y&&!se&&(k=y(k)),k};G=(k,le)=>{var z;let V=k;if(V.timestamp=_r(),(z=ke[0])!=null&&z.isFrozen()&&V.type!==T.FullSnapshot&&!(V.type===T.IncrementalSnapshot&&V.data.source===R.Mutation)&&ke.forEach(ne=>ne.unfreeze()),j)e==null||e(ns(V),le);else if(se){let ne={type:"rrweb",event:ns(V),origin:window.location.origin,isCheckout:le};window.parent.postMessage(ne,"*");}if(V.type===T.FullSnapshot)rs=V,an=0;else if(V.type===T.IncrementalSnapshot){if(V.data.source===R.Mutation&&V.data.isAttachIframe)return;an++;let ne=n&&an>=n,O=t&&V.timestamp-rs.timestamp>t;(ne||O)&&yr(true);}};let Lt=k=>{G({type:T.IncrementalSnapshot,data:{source:R.Mutation,...k}});},is=k=>G({type:T.IncrementalSnapshot,data:{source:R.Scroll,...k}}),ss=k=>G({type:T.IncrementalSnapshot,data:{source:R.CanvasMutation,...k}}),sc=k=>G({type:T.IncrementalSnapshot,data:{source:R.AdoptedStyleSheet,...k}}),Te=new di({mutationCb:Lt,adoptedStyleSheetCb:sc}),Ae=new ci({mirror:ce,mutationCb:Lt,stylesheetManager:Te,recordCrossOriginIframes:P,wrappedEmit:G});for(let k of q||[])k.getMirror&&k.getMirror({nodeMirror:ce,crossOriginIframeMirror:Ae.crossOriginIframeMirror,crossOriginIframeStyleMirror:Ae.crossOriginIframeStyleMirror});let ln=new hi;In=new fi({recordCanvas:I,mutationCb:ss,win:window,blockClass:i,blockSelector:s,mirror:ce,sampling:w.canvas,dataURLOptions:b});let Pt=new ui({mutationCb:Lt,scrollCb:is,bypassOptions:{blockClass:i,blockSelector:s,maskTextClass:a,maskTextSelector:c,inlineStylesheet:u,maskInputOptions:Me,dataURLOptions:b,maskTextFn:p,maskInputFn:m,recordCanvas:I,inlineImages:D,sampling:w,slimDOMOptions:he,iframeManager:Ae,stylesheetManager:Te,canvasManager:In,keepIframeSrcFn:C,processedNodeManager:ln},mirror:ce});yr=(k=false)=>{if(!E)return;G({type:T.Meta,data:{href:window.location.href,width:Ja(),height:Za()}},k),Te.reset(),Pt.init(),ke.forEach(z=>z.lock());let le=mu(document,{mirror:ce,blockClass:i,blockSelector:s,maskTextClass:a,maskTextSelector:c,inlineStylesheet:u,maskAllInputs:Me,maskTextFn:p,maskInputFn:m,slimDOM:he,dataURLOptions:b,recordCanvas:I,inlineImages:D,onSerialize:z=>{Qa(z,ce)&&Ae.addIframe(z),el(z,ce)&&Te.trackLinkElement(z),ii(z)&&Pt.addShadowRoot(x.shadowRoot(z),document);},onIframeLoad:(z,V)=>{Ae.attachIframe(z,V),Pt.observeAttachShadow(z);},onStylesheetLoad:(z,V)=>{Te.attachLinkElement(z,V);},keepIframeSrcFn:C});if(!le)return console.warn("Failed to snapshot the document");G({type:T.FullSnapshot,data:{node:le,initialOffset:Xa(window)}},k),ke.forEach(z=>z.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Te.adoptStyleSheets(document.adoptedStyleSheets,ce.getId(document));};try{let k=[],le=V=>{var ne;return M(_p)({mutationCb:Lt,mousemoveCb:(O,cn)=>G({type:T.IncrementalSnapshot,data:{source:cn,positions:O}}),mouseInteractionCb:O=>G({type:T.IncrementalSnapshot,data:{source:R.MouseInteraction,...O}}),scrollCb:is,viewportResizeCb:O=>G({type:T.IncrementalSnapshot,data:{source:R.ViewportResize,...O}}),inputCb:O=>G({type:T.IncrementalSnapshot,data:{source:R.Input,...O}}),mediaInteractionCb:O=>G({type:T.IncrementalSnapshot,data:{source:R.MediaInteraction,...O}}),styleSheetRuleCb:O=>G({type:T.IncrementalSnapshot,data:{source:R.StyleSheetRule,...O}}),styleDeclarationCb:O=>G({type:T.IncrementalSnapshot,data:{source:R.StyleDeclaration,...O}}),canvasMutationCb:ss,fontCb:O=>G({type:T.IncrementalSnapshot,data:{source:R.Font,...O}}),selectionCb:O=>{G({type:T.IncrementalSnapshot,data:{source:R.Selection,...O}});},customElementCb:O=>{G({type:T.IncrementalSnapshot,data:{source:R.CustomElement,...O}});},blockClass:i,ignoreClass:o,ignoreSelector:l,maskTextClass:a,maskTextSelector:c,maskInputOptions:Me,inlineStylesheet:u,sampling:w,recordDOM:E,recordCanvas:I,inlineImages:D,userTriggeredOnInput:F,collectFonts:$,doc:V,maskInputFn:m,maskTextFn:p,keepIframeSrcFn:C,blockSelector:s,slimDOMOptions:he,dataURLOptions:b,mirror:ce,iframeManager:Ae,stylesheetManager:Te,shadowDomManager:Pt,processedNodeManager:ln,canvasManager:In,ignoreCSSAttributes:re,plugins:((ne=q==null?void 0:q.filter(O=>O.observer))==null?void 0:ne.map(O=>({observer:O.observer,options:O.options,callback:cn=>G({type:T.Plugin,data:{plugin:O.name,payload:cn}})})))||[]},h)};Ae.addLoadListener(V=>{try{k.push(le(V.contentDocument));}catch(ne){console.warn(ne);}});let z=()=>{yr(),k.push(le(document)),Dr=!0;};return ["interactive","complete"].includes(document.readyState)?z():(k.push(Q("DOMContentLoaded",()=>{G({type:T.DomContentLoaded,data:{}}),A==="DOMContentLoaded"&&z();})),k.push(Q("load",()=>{G({type:T.Load,data:{}}),A==="load"&&z();},window))),()=>{k.forEach(V=>{try{V();}catch(ne){String(ne).toLowerCase().includes("cross-origin")||console.warn(ne);}}),ln.destroy(),Dr=!1,bp();}}catch(k){console.warn(k);}}Ce.addCustomEvent=(r,e)=>{if(!Dr)throw new Error("please add custom event after start recording");G({type:T.Custom,data:{tag:r,payload:e}});};Ce.freezePage=()=>{ke.forEach(r=>r.freeze());};Ce.takeFullSnapshot=r=>{if(!Dr)throw new Error("please take full snapshot after start recording");yr(r);};Ce.mirror=ce;var bo;(function(r){r[r.NotStarted=0]="NotStarted",r[r.Running=1]="Running",r[r.Stopped=2]="Stopped";})(bo||(bo={}));var Up="https://blocfeed.com/api/replay-events";function dl(r){var q;if(!r.config.enabled)return ()=>{};if(typeof window=="undefined")return ()=>{};if(typeof globalThis.matchMedia=="undefined")return ()=>{};let e=Y();if(Bt(e)%100/100>=r.config.sampling)return ()=>{};let n=Date.now(),i=(q=r.config.endpoint)!=null?q:Up,s=[],o=0,l=false,a=false,c=null,u=`bf_replay_chunkseq_${e}`,d=`bf_replay_pauses_${e}`,f=0,g=0;try{let C=sessionStorage.getItem(u);C&&(f=parseInt(C,10)||0);let re=sessionStorage.getItem(d);re&&(g=parseInt(re,10)||0);}catch(C){}let m=(C=false)=>{if(s.length===0)return;let re=C?Hp(s):s;s=[],o=0;let Re=f++;try{sessionStorage.setItem(u,String(f));}catch(j){}zp({blocfeedId:r.blocfeedId,sessionId:e,sessionStartedAtMs:n,chunkSeq:Re,events:re,endpoint:i,useBeacon:C,pauseCount:g});},p=setInterval(()=>{l||m();},r.config.flushIntervalMs),h=setTimeout(()=>{m(),D();},r.config.maxDurationMs),y=null,w=()=>{y&&clearTimeout(y),y=setTimeout(()=>{F();},r.config.inactivityTimeoutMs);},b=()=>{m(true);};window.addEventListener("pagehide",b);let S=r.config.masking,E={emit(C){l||(s.push(C),o+=Wp(C),w(),o>=r.config.flushSizeBytes&&m());},recordCanvas:false,sampling:{mousemove:50}};S.maskAllInputs!==void 0&&(E.maskAllInputs=S.maskAllInputs),S.maskTextSelector!==void 0&&(E.maskTextSelector=S.maskTextSelector),S.maskTextClass!==void 0&&(E.maskTextClass=S.maskTextClass),S.blockSelector!==void 0&&(E.blockSelector=S.blockSelector);let I=null,P=()=>{I&&(document.removeEventListener("pointerdown",I,true),document.removeEventListener("keydown",I,true),I=null);};function A(){var C;c=(C=Ce(E))!=null?C:null;}function F(){if(l||a)return;a=true,g++;try{sessionStorage.setItem(d,String(g));}catch(re){}if(m(),c){try{c();}catch(re){}c=null;}y&&(clearTimeout(y),y=null);let C=()=>{P(),$();};I=C,document.addEventListener("pointerdown",C,{capture:true,once:true}),document.addEventListener("keydown",C,{capture:true,once:true});}function $(){l||!a||(a=false,A(),w());}w(),A();function D(){if(!l&&(l=true,clearInterval(p),clearTimeout(h),y&&clearTimeout(y),P(),window.removeEventListener("pagehide",b),c)){try{c();}catch(C){}c=null;}}return D}function Wp(r){try{return JSON.stringify(r).length}catch(e){return 1024}}function Hp(r){let t=JSON.stringify(r);if(t.length<=6e4)return r;let n=[...r];for(;n.length>1;)if(n.shift(),t=JSON.stringify(n),t.length<=6e4)return n;return n}async function zp(r){let e=JSON.stringify({blocfeed_id:r.blocfeedId,session_id:r.sessionId,session_started_at_ms:r.sessionStartedAtMs,chunk_seq:r.chunkSeq,pause_count:r.pauseCount,events:r.events,page_url:typeof window!="undefined"?window.location.href:"",user_agent:typeof navigator!="undefined"?navigator.userAgent:""});if(r.useBeacon&&typeof navigator!="undefined"&&typeof navigator.sendBeacon=="function")try{let n=new Blob([e],{type:"application/json"});navigator.sendBeacon(r.endpoint,n);return}catch(n){}let t=!!r.useBeacon;try{await fetch(r.endpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:e,...t?{keepalive:!0}:{}});}catch(n){}}var Vp={enabled:true,endpoint:null,maxDurationMs:144e5,flushIntervalMs:3e4,flushSizeBytes:1048576,inactivityTimeoutMs:18e5,sampling:1,masking:{maskAllInputs:true,maskTextSelector:"[data-blocfeed-mask]",maskTextClass:"blocfeed-mask",blockSelector:"[data-blocfeed-block]"}};function hl(r){var t,n,i,s,o,l,a,c;let e=Vp;return {enabled:(t=r==null?void 0:r.enabled)!=null?t:e.enabled,endpoint:(n=r==null?void 0:r.endpoint)!=null?n:e.endpoint,maxDurationMs:(i=r==null?void 0:r.maxDurationMs)!=null?i:e.maxDurationMs,flushIntervalMs:(s=r==null?void 0:r.flushIntervalMs)!=null?s:e.flushIntervalMs,flushSizeBytes:(o=r==null?void 0:r.flushSizeBytes)!=null?o:e.flushSizeBytes,inactivityTimeoutMs:(l=r==null?void 0:r.inactivityTimeoutMs)!=null?l:e.inactivityTimeoutMs,sampling:(a=r==null?void 0:r.sampling)!=null?a:e.sampling,masking:{...e.masking,...(c=r==null?void 0:r.masking)!=null?c:{}}}}var pl=[{name:"email",regex:/[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g,replacement:"[email]"},{name:"credit_card",regex:/\b(?:\d[ -]?){13,19}\b/g,replacement:"[card]"},{name:"ssn",regex:/\b\d{3}-\d{2}-\d{4}\b/g,replacement:"[ssn]"},{name:"phone",regex:/(?:\+?\d{1,3}[\s.-]?)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}/g,replacement:"[phone]"}],Gp=[...pl,{name:"ipv4",regex:/\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b/g,replacement:"[ip]"},{name:"iban",regex:/\b[A-Z]{2}\d{2}[A-Z0-9]{11,30}\b/g,replacement:"[iban]"}],jp=10;function Yp(r){return r==="strict"?Gp:r==="default"?pl:[]}function Xp(r,e){let t=r;for(let n of e)t=t.replace(n.regex,n.replacement);return t}function Fi(r,e,t){if(t>jp||r==null)return r;if(typeof r=="string")return Xp(r,e);if(typeof r=="number"||typeof r=="boolean")return r;if(Array.isArray(r))return r.map(n=>Fi(n,e,t+1));if(typeof r=="object"){let n={};for(let i of Object.keys(r))n[i]=Fi(r[i],e,t+1);return n}return r}function Tt(r,e){if(e==="off")return r;let t=Yp(e);return t.length===0?r:Fi(r,t,0)}var Zp="https://blocfeed.com/api/events/track",Jp=5e3,Kp=50,qp=1024,Xr="blocfeed-events-queue",ml=500,gl=100,Qp=/^[a-z][a-z0-9_]{0,127}$/,yl=50,bl=1024,wl,$i="default";function Zr(r){wl=r;}function vl(r){$i=r;}function em(r){if(typeof r!="string"||!Qp.test(r))throw new Error(`[BlocFeed] track(): event_name "${r}" must match /^[a-z][a-z0-9_]{0,127}$/ (lowercase, start with a letter, only [a-z0-9_], \u2264128 chars).`)}function tm(r){if(r===void 0)return {};if(r===null||typeof r!="object"||Array.isArray(r))throw new Error("[BlocFeed] track(): properties must be a plain object.");let e=Object.keys(r);if(e.length>yl)throw new Error(`[BlocFeed] track(): properties has ${e.length} keys, max ${yl}.`);for(let n of e){let i=r[n];if(i!==null&&typeof i!="string"&&typeof i!="number"&&typeof i!="boolean")throw new Error(`[BlocFeed] track(): property "${n}" has unsupported type "${typeof i}". Allowed: string | number | boolean | null.`)}let t;try{t=JSON.stringify(r);}catch(n){throw new Error(`[BlocFeed] track(): properties is not JSON-serializable (${n.message}).`)}if(t.length>bl)throw new Error(`[BlocFeed] track(): properties serialized to ${t.length} bytes, max ${bl}. Server allows 8192 bytes \u2014 the client cap is defensive; trim down or split the event.`);return r}function Bi(){if(typeof localStorage=="undefined")return [];try{let r=localStorage.getItem(Xr);if(!r)return [];let e=JSON.parse(r);return Array.isArray(e)?e:[]}catch(r){try{localStorage.removeItem(Xr);}catch(e){}return []}}function Ui(r){if(typeof localStorage!="undefined")try{if(r.length===0)localStorage.removeItem(Xr);else {let e=r.length>ml?r.slice(r.length-ml):r;localStorage.setItem(Xr,JSON.stringify(e));}}catch(e){}}var ae=null;function rm(){if(ae)return ae;if(typeof window=="undefined")return null;let r=nm();return r?(ae={blocfeedId:r,endpoint:Zp,events:[],bytes:0,flushTimer:null,pageHideHandler:null,visibilityHandler:null},ae.flushTimer=setInterval(()=>{Yr(false);},Jp),ae.pageHideHandler=()=>{Yr(true);},ae.visibilityHandler=()=>{document.visibilityState==="hidden"&&Yr(true);},window.addEventListener("pagehide",ae.pageHideHandler),document.addEventListener("visibilitychange",ae.visibilityHandler),ae):null}function nm(){try{let e=window.__blocfeed_id__;return typeof e=="string"&&e.length>0?e:null}catch(r){return null}}function Sl(r){try{window.__blocfeed_id__=r;}catch(e){}ae&&(ae.blocfeedId=r);}function Wi(r,e,t){var f,g,m;em(r);let n=tm(e),i=$i==="off"?n:Tt(n,$i),s=new Date().toISOString(),o={event_name:r,properties:i,occurred_at:s},l=(f=void 0)!=null?f:sm();l&&(o.session_id=l);let a=(g=void 0)!=null?g:wl;a&&(o.user_id=a);let c=(m=void 0)!=null?m:om();c&&(o.page_url=c);let u=am();u&&(o.user_agent=u);let d=rm();if(!d){let p=Bi();p.push(o),Ui(p);return}d.events.push(o),d.bytes+=im(o),(d.events.length>=Kp||d.bytes>=qp)&&Yr(false);}async function Yr(r){let e=ae;if(!e)return;let n=Bi().concat(e.events);if(e.events=[],e.bytes=0,Ui([]),n.length!==0)for(let i=0;i<n.length;i+=gl){let s=n.slice(i,i+gl),o=JSON.stringify({blocfeed_id:e.blocfeedId,events:s});if(r&&cm())try{let l=new Blob([o],{type:"application/json"});navigator.sendBeacon(e.endpoint,l)||jr(s);continue}catch(l){jr(s);continue}try{(await fetch(e.endpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:o})).ok||jr(s);}catch(l){jr(s);}}}function jr(r){let e=Bi();Ui(e.concat(r));}function im(r){try{return JSON.stringify(r).length}catch(e){return 256}}function sm(){try{return Y()}catch(r){return}}function om(){try{return typeof window!="undefined"?window.location.href:void 0}catch(r){return}}function am(){try{return typeof navigator!="undefined"?navigator.userAgent:void 0}catch(r){return}}function cm(){return typeof navigator!="undefined"&&typeof navigator.sendBeacon=="function"}var um="https://blocfeed.com/api/heartbeat",fm=300*1e3;function Cl(r){var l,a,c;if(typeof window=="undefined")return ()=>{};if(typeof globalThis.matchMedia=="undefined")return ()=>{};let e=(l=r.endpoint)!=null?l:um,t=(a=r.intervalMs)!=null?a:fm,n=(c=r.features)!=null?c:["replay","behavioral","customEvents"],i=u=>{try{let d=JSON.stringify({blocfeed_id:r.blocfeedId,session_id:dm(),version:r.version,page_url:typeof window!="undefined"?window.location.href:"",user_agent:typeof navigator!="undefined"?navigator.userAgent:"",sdk_features:n}),f={method:"POST",headers:{"Content-Type":"application/json"},body:d};u&&(f.keepalive=!0),fetch(e,f).catch(()=>{});}catch(d){}};try{i(!1);}catch(u){}let s=null;try{s=setInterval(()=>{try{i(!1);}catch(u){}},t);}catch(u){s=null;}let o=()=>{try{i(!0);}catch(u){}};try{window.addEventListener("pagehide",o);}catch(u){}return function(){try{s&&clearInterval(s);}catch(d){}s=null;try{window.removeEventListener("pagehide",o);}catch(d){}}}function dm(){try{return Y()}catch(r){return ""}}var Jr="0.24.0";var hm=5e3,Kr=class{constructor(e){this.submitter=null;this.detectorUninstallers=[];this.flushTimer=null;this.pageHideHandler=null;this.installed=false;this.opts=e,this.resolved=os(e.config);}install(){var a,c,u,d;if(this.installed||!this.resolved.enabled)return;let e=()=>{try{let f=Y();return Bt(f)%100/100<this.resolved.sampling}catch(f){return false}};if(!((a=this.opts.passiveSampler)!=null?a:e)())return;Sl(this.opts.blocfeedId),vl(this.resolved.piiScrub);let n=(c=this.opts.endpoint)!=null?c:"https://blocfeed.com/api/behavioral-events";this.submitter=(u=this.opts.submitter)!=null?u:as({endpoint:n,blocfeedId:this.opts.blocfeedId});let i=this.resolved.piiScrub,s=f=>{var m;let g=i==="off"?f:{...f,element_text:f.element_text==null?f.element_text:Tt(f.element_text,i),event_data:f.event_data==null?f.event_data:Tt(f.event_data,i)};(m=this.submitter)==null||m.enqueue(g);};this.detectorUninstallers.push(hs(this.resolved,s)),this.detectorUninstallers.push(gs(this.resolved,s)),this.detectorUninstallers.push(ys(this.resolved,s)),this.detectorUninstallers.push(bs(this.resolved,s)),this.detectorUninstallers.push(ws(this.resolved,s));let o=hl((d=this.opts.config)==null?void 0:d.sessionReplay);this.detectorUninstallers.push(dl({blocfeedId:this.opts.blocfeedId,config:o}));let l=["behavioral","customEvents"];if(o.enabled&&l.unshift("replay"),this.opts.extraSdkFeatures)for(let f of this.opts.extraSdkFeatures)l.push(f);this.detectorUninstallers.push(Cl({blocfeedId:this.opts.blocfeedId,version:Jr,features:l})),this.flushTimer=setInterval(()=>{var f;(f=this.submitter)==null||f.flush();},hm),this.pageHideHandler=()=>{var f;(f=this.submitter)==null||f.flushBeacon();},typeof window!="undefined"&&window.addEventListener("pagehide",this.pageHideHandler),this.installed=true;}uninstall(){var e;if(this.installed){for(let t of [...this.detectorUninstallers].reverse())try{t();}catch(n){}this.detectorUninstallers=[],this.flushTimer&&(clearInterval(this.flushTimer),this.flushTimer=null),this.pageHideHandler&&typeof window!="undefined"&&(window.removeEventListener("pagehide",this.pageHideHandler),this.pageHideHandler=null);try{(e=this.submitter)==null||e.flush();}catch(t){}this.submitter=null,this.installed=false;}}};var Qm="blocfeed-embed/ready",eg="blocfeed-embed/screenshot-request",tg="blocfeed-embed/submit-success",rg="blocfeed-embed/close",ng="blocfeed-embed/init",ig="blocfeed-embed/screenshot-result",Ot=null;function sg(r,e,t){r.style.position="fixed",r.style.zIndex="2147483647",r.style.background=e,r.style.color="#ffffff",r.style.border="0",r.style.borderRadius="24px",r.style.padding="12px 20px",r.style.fontSize="14px",r.style.fontWeight="600",r.style.fontFamily="system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",r.style.cursor="pointer",r.style.boxShadow="0 8px 16px rgba(0,0,0,0.18)",r.style.lineHeight="1",r.style.top="",r.style.bottom="",r.style.left="",r.style.right="";let n="16px";t==="bottom-right"?(r.style.bottom=n,r.style.right=n):t==="bottom-left"?(r.style.bottom=n,r.style.left=n):t==="top-right"?(r.style.top=n,r.style.right=n):(r.style.top=n,r.style.left=n);}function og(r,e){r.style.position="fixed",r.style.width="380px",r.style.height="600px",r.style.border="0",r.style.borderRadius="12px",r.style.boxShadow="0 25px 50px -12px rgba(0,0,0,0.4)",r.style.zIndex="2147483646",r.style.display="none",r.style.background="transparent",r.style.top="",r.style.bottom="",r.style.left="",r.style.right="",e==="bottom-right"?(r.style.bottom="80px",r.style.right="16px"):e==="bottom-left"?(r.style.bottom="80px",r.style.left="16px"):e==="top-right"?(r.style.top="80px",r.style.right="16px"):(r.style.top="80px",r.style.left="16px");}function ag(r,e){return `${r.replace(/\/+$/,"")}/embed/${encodeURIComponent(e)}`}async function lg(){try{let r=await Promise.resolve().then(()=>(Zl(),Xl)),e=typeof devicePixelRatio=="number"?devicePixelRatio:1;return {dataUrl:await r.toPng(document.body,{pixelRatio:Math.min(2,e),cacheBust:!0})}}catch(r){return {dataUrl:null,error:r instanceof Error?r.message:String(r)}}}function Jl(r,e,t){let n=r.contentWindow;if(n)try{n.postMessage(t,e);}catch(i){}}function Kl(r){if(Ot){try{Ot();}catch(f){}Ot=null;}if(typeof window=="undefined"||typeof document=="undefined")return ()=>{};let{blocfeedId:e,embedOrigin:t,color:n,label:i,position:s,user:o}=r,l=document.createElement("button");l.setAttribute("data-blocfeed-trigger",""),l.setAttribute("type","button"),l.setAttribute("aria-label","Open feedback"),l.textContent=i,sg(l,n,s);let a=document.createElement("iframe");a.setAttribute("data-blocfeed-iframe",""),a.setAttribute("title","BlocFeed feedback"),a.setAttribute("allow","microphone; clipboard-write"),a.src=ag(t,e),og(a,s);let c=()=>{a.style.display="block";};l.addEventListener("click",c);let u=f=>{if(f.origin!==t)return;let g=f.data;if(!(!g||typeof g!="object"||typeof g.kind!="string")){if(g.kind===Qm){let m={kind:ng,pageUrl:window.location.href,userAgent:navigator.userAgent,sessionId:Y(),...o!==void 0?{user:o}:{}};Jl(a,t,m);return}if(g.kind===eg){let m=g.requestId;lg().then(p=>{Jl(a,t,{kind:ig,requestId:m,dataUrl:p.dataUrl,...p.error!==void 0?{error:p.error}:{}});});return}if(g.kind===tg){try{console.log("[BlocFeed] feedback submitted",{feedback_id:g.feedback_id,viewer_url:g.viewer_url});}catch(m){}return}if(g.kind===rg){a.style.display="none";return}}};window.addEventListener("message",u),document.body.appendChild(l),document.body.appendChild(a);let d=()=>{try{l.removeEventListener("click",c);}catch(f){}try{window.removeEventListener("message",u);}catch(f){}l.parentNode&&l.parentNode.removeChild(l),a.parentNode&&a.parentNode.removeChild(a),Ot=null;};return Ot=d,d}function cg(r){let e=(r!=null?r:"inputs").toLowerCase();return e==="none"?{maskAllInputs:false,maskTextSelector:"[data-blocfeed-mask]",maskTextClass:"blocfeed-mask",blockSelector:"[data-blocfeed-block]"}:e==="text"?{maskAllInputs:true,maskTextSelector:"*",maskTextClass:"blocfeed-mask",blockSelector:"[data-blocfeed-block]"}:{maskAllInputs:true,maskTextSelector:"[data-blocfeed-mask]",maskTextClass:"blocfeed-mask",blockSelector:"[data-blocfeed-block]"}}var Zi="https://blocfeed.com",Ql="#12D393",ec="Feedback",ql="bottom-right",ug=new Set(["bottom-right","bottom-left","top-right","top-left"]);function Ji(r){if(!r)return Zi;let e=r.trim();return e&&(e.startsWith("https://")||/^http:\/\/localhost(?::\d+)?(\/.*)?$/i.test(e))?e:Zi}function Ki(r){if(!r)return ql;let e=r.toLowerCase();return ug.has(e)?e:ql}function fg(r){var m;let e=r.blocfeedId;if(!e)return null;let t=parseFloat((m=r.sample)!=null?m:"1"),n=Number.isFinite(t)&&t>0?t:1,i=r.replay!=="false",s=r.signals!=="false",o=r.mask!==void 0?cg(r.mask):void 0,l={sampling:n,sessionReplay:{enabled:i,sampling:n,...o!==void 0?{masking:o}:{}},rageClick:{enabled:s},deadClick:{enabled:s},httpFail:{enabled:s},redirectLoop:{enabled:s},formDataLoss:{enabled:s}},a=r.userId||r.userEmail||r.userName?{...r.userId!==void 0?{id:r.userId}:{},...r.userEmail!==void 0?{email:r.userEmail}:{},...r.userName!==void 0?{name:r.userName}:{}}:void 0,c=r.feedback==="true",u=Ji(r.embedOrigin),d=r.feedbackColor&&r.feedbackColor.trim()?r.feedbackColor.trim():Ql,f=r.feedbackLabel&&r.feedbackLabel.trim()?r.feedbackLabel:ec,g=Ki(r.feedbackPosition);return {blocfeedId:e,...a!==void 0?{user:a}:{},config:l,trackClicks:r.trackClicks==="true",feedback:c,embedOrigin:u,feedbackColor:d,feedbackLabel:f,feedbackPosition:g}}function nn(r){if(typeof r!="object"||r===null)return false;let e=Object.getPrototypeOf(r);return e===Object.prototype||e===null}function qi(r,e){if(e===void 0)return r;if(!nn(r)||!nn(e))return e;let t={...r};for(let n of Object.keys(e)){let i=e[n];if(i===void 0)continue;let s=t[n];nn(i)&&nn(s)?t[n]=qi(s,i):t[n]=i;}return t}function tc(){if(typeof window=="undefined")return null;let r=window.blocfeedConfig;return !r||typeof r!="object"?null:r}function rc(r){let e={};return r.sampling!==void 0&&(e.sampling=r.sampling),r.ignoreSelectors!==void 0&&(e.ignoreSelectors=r.ignoreSelectors),r.rageClick!==void 0&&(e.rageClick=r.rageClick),r.deadClick!==void 0&&(e.deadClick=r.deadClick),r.httpFail!==void 0&&(e.httpFail=r.httpFail),r.redirectLoop!==void 0&&(e.redirectLoop=r.redirectLoop),r.formDataLoss!==void 0&&(e.formDataLoss=r.formDataLoss),r.sessionReplay!==void 0&&(e.sessionReplay=r.sessionReplay),e}function Qi(r,e){var p,h,y,w,b,S,E;let t=(p=r==null?void 0:r.blocfeedId)!=null?p:e==null?void 0:e.blocfeed_id;if(!t)return null;let n=e?rc(e):{},i=r?qi(n,r.config):n,s=e==null?void 0:e.user,o=r==null?void 0:r.user,l;(o||s)&&(l={...s!=null&&s.id?{id:s.id}:{},...s!=null&&s.email?{email:s.email}:{},...s!=null&&s.name?{name:s.name}:{},...o!=null&&o.id?{id:o.id}:{},...o!=null&&o.email?{email:o.email}:{},...o!=null&&o.name?{name:o.name}:{}},!l.id&&!l.email&&!l.name&&(l=void 0));let a=(r==null?void 0:r.trackClicks)===true?true:(e==null?void 0:e.trackClicks)!==void 0?!!e.trackClicks:false,c=(r==null?void 0:r.feedback)===true?true:((h=e==null?void 0:e.feedback)==null?void 0:h.enabled)!==void 0?!!e.feedback.enabled:false,u=r?r.embedOrigin:Ji(e==null?void 0:e.embedOrigin),d=r?r.feedbackColor:((w=(y=e==null?void 0:e.feedback)==null?void 0:y.color)==null?void 0:w.trim())||Ql,f=r?r.feedbackLabel:((S=(b=e==null?void 0:e.feedback)==null?void 0:b.label)==null?void 0:S.trim())||ec,g=r?r.feedbackPosition:Ki((E=e==null?void 0:e.feedback)==null?void 0:E.position),m=(e==null?void 0:e.autoInstall)!==false;return {blocfeedId:t,...l!==void 0?{user:l}:{},config:i,trackClicks:a,feedback:c,embedOrigin:u,feedbackColor:d,feedbackLabel:f,feedbackPosition:g,autoInstall:m}}var dg=60;function hg(){if(typeof document=="undefined")return ()=>{};let r=[],e=t=>{var o,l;let n=Date.now();if(r=r.filter(a=>n-a<6e4),r.length>=dg)return;r.push(n);let i=t.target;if(!i||!(i instanceof Element))return;let s=null;try{s=(l=(o=i.innerText)==null?void 0:o.trim().slice(0,80))!=null?l:null;}catch(a){s=null;}try{Wi("click",{tag:i.tagName.toLowerCase(),text:s||null,url:window.location.href});}catch(a){}};return document.addEventListener("click",e,{capture:true,passive:true}),()=>{try{document.removeEventListener("click",e,{capture:!0});}catch(t){}}}var X=null,Ie=null,sn=null,Dt=null,xe=false;function es(r){var e;if(!Ie){if((e=r.user)!=null&&e.id&&Zr(r.user.id),Ie=new Kr({blocfeedId:r.blocfeedId,config:r.config,extraSdkFeatures:["script-tag"]}),Ie.install(),r.trackClicks&&!Dt&&(Dt=hg()),r.feedback)try{sn=Kl({blocfeedId:r.blocfeedId,embedOrigin:r.embedOrigin,color:r.feedbackColor,label:r.feedbackLabel,position:r.feedbackPosition,...r.user!==void 0?{user:r.user}:{}});}catch(t){}xe=true;}}function ts(){if(Ie){try{Ie.uninstall();}catch(r){}Ie=null;}if(sn){try{sn();}catch(r){}sn=null;}if(Dt){try{Dt();}catch(r){}Dt=null;}}function pg(r){var e,t;if(!(!r||typeof r!="object")){if(X){let n=rc(r),i={...X,config:qi(X.config,n)};r.user!==void 0&&(i.user={...(e=X.user)!=null?e:{},...r.user.id!==void 0?{id:r.user.id}:{},...r.user.email!==void 0?{email:r.user.email}:{},...r.user.name!==void 0?{name:r.user.name}:{}}),r.trackClicks!==void 0&&(i.trackClicks=!!r.trackClicks),r.embedOrigin!==void 0&&(i.embedOrigin=Ji(r.embedOrigin)),r.feedback&&(r.feedback.enabled!==void 0&&(i.feedback=!!r.feedback.enabled),r.feedback.color!==void 0&&r.feedback.color.trim()&&(i.feedbackColor=r.feedback.color.trim()),r.feedback.label!==void 0&&r.feedback.label.trim()&&(i.feedbackLabel=r.feedback.label),r.feedback.position!==void 0&&(i.feedbackPosition=Ki(r.feedback.position))),r.autoInstall!==void 0&&(i.autoInstall=!!r.autoInstall),r.blocfeed_id!==void 0&&r.blocfeed_id&&(i.blocfeedId=r.blocfeed_id),X=i;}else X=Qi(null,r);xe&&X&&(ts(),xe=false,es(X)),(t=r.user)!=null&&t.id&&Zr(r.user.id);}}function mg(r,e){var t;Zr(r),X&&(X.user={...(t=X.user)!=null?t:{},id:r});}function gg(r,e){Wi(r,e);}function yg(){if(!(xe&&Ie)){if(X||(X=Qi(null,tc())),!X){console.warn("[BlocFeed] install() called but no blocfeed_id is configured");return}es(X);}}function bg(){ts(),xe=false;}var nc={configure:pg,identify:mg,track:gg,install:yg,uninstall:bg,SDK_VERSION:Jr};function wg(r){if(typeof window=="undefined")return;let e=window.BlocFeed;if(e&&Array.isArray(e._q))for(let t of e._q){if(!Array.isArray(t)||typeof t[0]!="string")continue;let[n,...i]=t,s=r[n];if(typeof s=="function")try{s.apply(r,i);}catch(o){console.error("[BlocFeed] queued call failed:",n,o);}}window.BlocFeed=r;}function ic(){if(typeof document=="undefined")return null;let r=document.currentScript;return r&&r.dataset&&r.dataset.blocfeedId?r:document.querySelector("script[data-blocfeed-id]")}function on(){if(typeof window=="undefined"||typeof document=="undefined")return;let r=ic(),e=r?fg(r.dataset):null,t=tc(),n=Qi(e,t);if(!n){r&&console.warn("[BlocFeed] script-tag init: blocfeed_id missing from both data-* and window.blocfeedConfig");return}X=n,wg(nc),X.autoInstall&&!xe&&es(X);}if(typeof window!="undefined"){let r=window.BlocFeed;(!r||!Array.isArray(r._q))&&(window.BlocFeed=nc),ic()?on():typeof document!="undefined"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",on,{once:true}):on());}function _b(){return Ie}function Nb(){ts(),X=null,xe=false;}function Ob(){on();}function Db(){return X}function Lb(){return xe}/*! Bundled license information:
55
+ or you can use record.mirror to access the mirror instance during recording.`,yo={map:{},getId(){return console.error(Ve),-1},getNode(){return console.error(Ve),null},removeNodeFromMap(){console.error(Ve);},has(){return console.error(Ve),false},reset(){console.error(Ve);}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(yo=new Proxy(yo,{get(r,e,t){return e==="map"&&console.error(Ve),Reflect.get(r,e,t)}}));function xt(r,e,t={}){let n=null,i=0;return function(...s){let o=Date.now();!i&&t.leading===false&&(i=o);let l=e-(o-i),a=this;l<=0||l>e?(n&&(clearTimeout(n),n=null),i=o,r.apply(a,s)):!n&&t.trailing!==false&&(n=setTimeout(()=>{i=t.leading===false?0:Date.now(),n=null,r.apply(a,s);},l));}}function jr(r,e,t,n,i=window){let s=i.Object.getOwnPropertyDescriptor(r,e);return i.Object.defineProperty(r,e,n?t:{set(o){setTimeout(()=>{t.set.call(this,o);},0),s&&s.set&&s.set.call(this,o);}}),()=>jr(r,e,s||{},true)}var Nr=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Nr=()=>new Date().getTime());function nl(r){var e,t,n,i;let s=r.document;return {left:s.scrollingElement?s.scrollingElement.scrollLeft:r.pageXOffset!==void 0?r.pageXOffset:s.documentElement.scrollLeft||(s==null?void 0:s.body)&&((e=x.parentElement(s.body))==null?void 0:e.scrollLeft)||((t=s==null?void 0:s.body)==null?void 0:t.scrollLeft)||0,top:s.scrollingElement?s.scrollingElement.scrollTop:r.pageYOffset!==void 0?r.pageYOffset:(s==null?void 0:s.documentElement.scrollTop)||(s==null?void 0:s.body)&&((n=x.parentElement(s.body))==null?void 0:n.scrollTop)||((i=s==null?void 0:s.body)==null?void 0:i.scrollTop)||0}}function il(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function sl(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ol(r){return r?r.nodeType===r.ELEMENT_NODE?r:x.parentElement(r):null}function ee(r,e,t,n){if(!r)return false;let i=ol(r);if(!i)return false;try{if(typeof e=="string"){if(i.classList.contains(e)||n&&i.closest("."+e)!==null)return !0}else if(Er(i,e,n))return !0}catch(s){}return !!(t&&(i.matches(t)||n&&i.closest(t)!==null))}function Tp(r,e){return e.getId(r)!==-1}function Rn(r,e,t){return r.tagName==="TITLE"&&t.headTitleMutations?true:e.getId(r)===gt}function al(r,e){if(ht(r))return false;let t=e.getId(r);if(!e.has(t))return true;let n=x.parentNode(r);return n&&n.nodeType===r.DOCUMENT_NODE?false:n?al(n,e):true}function oi(r){return !!r.changedTouches}function Ap(r=window){"NodeList"in r&&!r.NodeList.prototype.forEach&&(r.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in r&&!r.DOMTokenList.prototype.forEach&&(r.DOMTokenList.prototype.forEach=Array.prototype.forEach);}function ll(r,e){return !!(r.nodeName==="IFRAME"&&e.getMeta(r))}function cl(r,e){return !!(r.nodeName==="LINK"&&r.nodeType===r.ELEMENT_NODE&&r.getAttribute&&r.getAttribute("rel")==="stylesheet"&&e.getMeta(r))}function ai(r){return r?r instanceof si&&"shadowRoot"in r?!!r.shadowRoot:!!x.shadowRoot(r):false}var li=class{constructor(){S(this,"id",1),S(this,"styleIDMap",new WeakMap),S(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 n;return t===void 0?n=this.id++:n=t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}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 ul(r){var e;let t=null;return "getRootNode"in r&&((e=x.getRootNode(r))==null?void 0:e.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&x.host(x.getRootNode(r))&&(t=x.host(x.getRootNode(r))),t}function _p(r){let e=r,t;for(;t=ul(e);)e=t;return e}function kp(r){let e=x.ownerDocument(r);if(!e)return false;let t=_p(r);return x.contains(e,t)}function fl(r){let e=x.ownerDocument(r);return e?x.contains(e,r)||kp(r):false}var T=(r=>(r[r.DomContentLoaded=0]="DomContentLoaded",r[r.Load=1]="Load",r[r.FullSnapshot=2]="FullSnapshot",r[r.IncrementalSnapshot=3]="IncrementalSnapshot",r[r.Meta=4]="Meta",r[r.Custom=5]="Custom",r[r.Plugin=6]="Plugin",r))(T||{}),R=(r=>(r[r.Mutation=0]="Mutation",r[r.MouseMove=1]="MouseMove",r[r.MouseInteraction=2]="MouseInteraction",r[r.Scroll=3]="Scroll",r[r.ViewportResize=4]="ViewportResize",r[r.Input=5]="Input",r[r.TouchMove=6]="TouchMove",r[r.MediaInteraction=7]="MediaInteraction",r[r.StyleSheetRule=8]="StyleSheetRule",r[r.CanvasMutation=9]="CanvasMutation",r[r.Font=10]="Font",r[r.Log=11]="Log",r[r.Drag=12]="Drag",r[r.StyleDeclaration=13]="StyleDeclaration",r[r.Selection=14]="Selection",r[r.AdoptedStyleSheet=15]="AdoptedStyleSheet",r[r.CustomElement=16]="CustomElement",r))(R||{}),te=(r=>(r[r.MouseUp=0]="MouseUp",r[r.MouseDown=1]="MouseDown",r[r.Click=2]="Click",r[r.ContextMenu=3]="ContextMenu",r[r.DblClick=4]="DblClick",r[r.Focus=5]="Focus",r[r.Blur=6]="Blur",r[r.TouchStart=7]="TouchStart",r[r.TouchMove_Departed=8]="TouchMove_Departed",r[r.TouchEnd=9]="TouchEnd",r[r.TouchCancel=10]="TouchCancel",r))(te||{}),be=(r=>(r[r.Mouse=0]="Mouse",r[r.Pen=1]="Pen",r[r.Touch=2]="Touch",r))(be||{}),tt=(r=>(r[r["2D"]=0]="2D",r[r.WebGL=1]="WebGL",r[r.WebGL2=2]="WebGL2",r))(tt||{}),Ge=(r=>(r[r.Play=0]="Play",r[r.Pause=1]="Pause",r[r.Seeked=2]="Seeked",r[r.VolumeChange=3]="VolumeChange",r[r.RateChange=4]="RateChange",r))(Ge||{});var dl=(r=>(r[r.Document=0]="Document",r[r.DocumentType=1]="DocumentType",r[r.Element=2]="Element",r[r.Text=3]="Text",r[r.CDATA=4]="CDATA",r[r.Comment=5]="Comment",r))(dl||{});function bo(r){return "__ln"in r}var ci=class{constructor(){S(this,"length",0),S(this,"head",null),S(this,"tail",null);}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=(t==null?void 0:t.next)||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&bo(e.previousSibling)){let n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t);}else if(e.nextSibling&&bo(e.nextSibling)&&e.nextSibling.__ln.previous){let n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.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){let 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--);}},wo=(r,e)=>`${r}@${e}`,ui=class{constructor(){S(this,"frozen",false),S(this,"locked",false),S(this,"texts",[]),S(this,"attributes",[]),S(this,"attributeMap",new WeakMap),S(this,"removes",[]),S(this,"mapRemoves",[]),S(this,"movedMap",{}),S(this,"addedSet",new Set),S(this,"movedSet",new Set),S(this,"droppedSet",new Set),S(this,"removesSubTreeCache",new Set),S(this,"mutationCb"),S(this,"blockClass"),S(this,"blockSelector"),S(this,"maskTextClass"),S(this,"maskTextSelector"),S(this,"inlineStylesheet"),S(this,"maskInputOptions"),S(this,"maskTextFn"),S(this,"maskInputFn"),S(this,"keepIframeSrcFn"),S(this,"recordCanvas"),S(this,"inlineImages"),S(this,"slimDOMOptions"),S(this,"dataURLOptions"),S(this,"doc"),S(this,"mirror"),S(this,"iframeManager"),S(this,"stylesheetManager"),S(this,"shadowDomManager"),S(this,"canvasManager"),S(this,"processedNodeManager"),S(this,"unattachedDoc"),S(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit();}),S(this,"emit",()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,n=new ci,i=a=>{let c=a,u=gt;for(;u===gt;)c=c&&c.nextSibling,u=c&&this.mirror.getId(c);return u},s=a=>{let c=x.parentNode(a);if(!c||!fl(a))return;let u=false;if(a.nodeType===Node.TEXT_NODE){let m=c.tagName;if(m==="TEXTAREA")return;m==="STYLE"&&this.addedSet.has(c)&&(u=true);}let d=ht(c)?this.mirror.getId(ul(a)):this.mirror.getId(c),f=i(a);if(d===-1||f===-1)return n.addNode(a);let g=Ye(a,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:true,newlyAddedElement:true,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=>{ll(m,this.mirror)&&this.iframeManager.addIframe(m),cl(m,this.mirror)&&this.stylesheetManager.trackLinkElement(m),ai(a)&&this.shadowDomManager.addShadowRoot(x.shadowRoot(a),this.doc);},onIframeLoad:(m,p)=>{this.iframeManager.attachIframe(m,p),this.shadowDomManager.observeAttachShadow(m);},onStylesheetLoad:(m,p)=>{this.stylesheetManager.attachLinkElement(m,p);},cssCaptured:u});g&&(e.push({parentId:d,nextId:f,node:g}),t.add(g.id));};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let a of this.movedSet)vo(this.removesSubTreeCache,a,this.mirror)&&!this.movedSet.has(x.parentNode(a))||s(a);for(let a of this.addedSet)!So(this.droppedSet,a)&&!vo(this.removesSubTreeCache,a,this.mirror)||So(this.movedSet,a)?s(a):this.droppedSet.add(a);let o=null;for(;n.length;){let a=null;if(o){let c=this.mirror.getId(x.parentNode(o.value)),u=i(o.value);c!==-1&&u!==-1&&(a=o);}if(!a){let c=n.tail;for(;c;){let u=c;if(c=c.previous,u){let d=this.mirror.getId(x.parentNode(u.value));if(i(u.value)===-1)continue;if(d!==-1){a=u;break}else {let g=u.value,m=x.parentNode(g);if(m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let p=x.host(m);if(this.mirror.getId(p)!==-1){a=u;break}}}}}}if(!a){for(;n.head;)n.removeNode(n.head.value);break}o=a.previous,n.removeNode(a.value),s(a.value);}let l={texts:this.texts.map(a=>{let c=a.node,u=x.parentNode(c);return u&&u.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(u),{id:this.mirror.getId(c),value:a.value}}).filter(a=>!t.has(a.id)).filter(a=>this.mirror.has(a.id)),attributes:this.attributes.map(a=>{let{attributes:c}=a;if(typeof c.style=="string"){let u=JSON.stringify(a.styleDiff),d=JSON.stringify(a._unchangedStyles);u.length<c.style.length&&(u+d).split("var(").length===c.style.split("var(").length&&(c.style=a.styleDiff);}return {id:this.mirror.getId(a.node),attributes:c}}).filter(a=>!t.has(a.id)).filter(a=>this.mirror.has(a.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));}),S(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));let n=Array.from(x.childNodes(e),i=>x.textContent(i)||"").join("");t.attributes.value=vr({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:Sr(e),value:n,maskInputFn:this.maskInputFn});}),S(this,"processMutation",e=>{if(!Rn(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case "characterData":{let t=x.textContent(e.target);!ee(e.target,this.blockClass,this.blockSelector,false)&&t!==e.oldValue&&this.texts.push({value:Lo(e.target,this.maskTextClass,this.maskTextSelector,true)&&t?this.maskTextFn?this.maskTextFn(t,ol(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case "attributes":{let t=e.target,n=e.attributeName,i=e.target.getAttribute(n);if(n==="value"){let o=Sr(t);i=vr({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:o,value:i,maskInputFn:this.maskInputFn});}if(ee(e.target,this.blockClass,this.blockSelector,false)||i===e.oldValue)return;let s=this.attributeMap.get(e.target);if(t.tagName==="IFRAME"&&n==="src"&&!this.keepIframeSrcFn(i))if(!t.contentDocument)n="rr_src";else return;if(s||(s={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(e.target,s)),n==="type"&&t.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&t.setAttribute("data-rr-is-password","true"),!Do(t.tagName,n))if(s.attributes[n]=Oo(this.doc,Oe(t.tagName),Oe(n),i),n==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument();}catch(l){this.unattachedDoc=this.doc;}let o=this.unattachedDoc.createElement("span");e.oldValue&&o.setAttribute("style",e.oldValue);for(let l of Array.from(t.style)){let a=t.style.getPropertyValue(l),c=t.style.getPropertyPriority(l);a!==o.style.getPropertyValue(l)||c!==o.style.getPropertyPriority(l)?c===""?s.styleDiff[l]=a:s.styleDiff[l]=[a,c]:s._unchangedStyles[l]=[a,c];}for(let l of Array.from(o.style))t.style.getPropertyValue(l)===""&&(s.styleDiff[l]=false);}else n==="open"&&t.tagName==="DIALOG"&&(t.matches("dialog:modal")?s.attributes.rr_open_mode="modal":s.attributes.rr_open_mode="non-modal");break}case "childList":{if(ee(e.target,this.blockClass,this.blockSelector,true))return;if(e.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(e.target);return}e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let n=this.mirror.getId(t),i=ht(e.target)?this.mirror.getId(x.host(e.target)):this.mirror.getId(e.target);ee(e.target,this.blockClass,this.blockSelector,false)||Rn(t,this.mirror,this.slimDOMOptions)||!Tp(t,this.mirror)||(this.addedSet.has(t)?(fi(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&n===-1||al(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[wo(n,i)]?fi(this.movedSet,t):(this.removes.push({parentId:i,id:n,isShadow:ht(e.target)&&pt(e.target)?true:void 0}),Np(t,this.removesSubTreeCache))),this.mapRemoves.push(t));});break}}}),S(this,"genAdds",(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(Rn(e,this.mirror,this.slimDOMOptions))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&n!==-1&&(this.movedMap[wo(this.mirror.getId(e),n)]=true);}else this.addedSet.add(e),this.droppedSet.delete(e);ee(e,this.blockClass,this.blockSelector,false)||(x.childNodes(e).forEach(n=>this.genAdds(n)),ai(e)&&x.childNodes(x.shadowRoot(e)).forEach(n=>{this.processedNodeManager.add(n,this),this.genAdds(n,e);}));}});}init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=e[t];});}freeze(){this.frozen=true,this.canvasManager.freeze();}unfreeze(){this.frozen=false,this.canvasManager.unfreeze(),this.emit();}isFrozen(){return this.frozen}lock(){this.locked=true,this.canvasManager.lock();}unlock(){this.locked=false,this.canvasManager.unlock(),this.emit();}reset(){this.shadowDomManager.reset(),this.canvasManager.reset();}};function fi(r,e){r.delete(e),x.childNodes(e).forEach(t=>fi(r,t));}function Np(r,e){let t=[r];for(;t.length;){let n=t.pop();e.has(n)||(e.add(n),x.childNodes(n).forEach(i=>t.push(i)));}}function vo(r,e,t){return r.size===0?false:Op(r,e)}function Op(r,e,t){let n=x.parentNode(e);return n?r.has(n):false}function So(r,e){return r.size===0?false:hl(r,e)}function hl(r,e){let t=x.parentNode(e);return t?r.has(t)?true:hl(r,t):false}var mt;function Dp(r){mt=r;}function Lp(){mt=void 0;}var M=r=>mt?(...t)=>{try{return r(...t)}catch(n){if(mt&&mt(n)===true)return;throw n}}:r,Ne=[];function _t(r){try{if("composedPath"in r){let e=r.composedPath();if(e.length)return e[0]}else if("path"in r&&r.path.length)return r.path[0]}catch(e){}return r&&r.target}function pl(r,e){let t=new ui;Ne.push(t),t.init(r);let n=new(rl())(M(t.processMutations.bind(t)));return n.observe(e,{attributes:true,attributeOldValue:true,characterData:true,characterDataOldValue:true,childList:true,subtree:true}),n}function Pp({mousemoveCb:r,sampling:e,doc:t,mirror:n}){if(e.mousemove===false)return ()=>{};let i=typeof e.mousemove=="number"?e.mousemove:50,s=typeof e.mousemoveCallback=="number"?e.mousemoveCallback:500,o=[],l,a=xt(M(d=>{let f=Date.now()-l;r(o.map(g=>(g.timeOffset-=f,g)),d),o=[],l=null;}),s),c=M(xt(M(d=>{let f=_t(d),{clientX:g,clientY:m}=oi(d)?d.changedTouches[0]:d;l||(l=Nr()),o.push({x:g,y:m,id:n.getId(f),timeOffset:Nr()-l}),a(typeof DragEvent!="undefined"&&d instanceof DragEvent?R.Drag:d instanceof MouseEvent?R.MouseMove:R.TouchMove);}),i,{trailing:!1})),u=[Q("mousemove",c,t),Q("touchmove",c,t),Q("drag",c,t)];return M(()=>{u.forEach(d=>d());})}function Fp({mouseInteractionCb:r,doc:e,mirror:t,blockClass:n,blockSelector:i,sampling:s}){if(s.mouseInteraction===false)return ()=>{};let o=s.mouseInteraction===true||s.mouseInteraction===void 0?{}:s.mouseInteraction,l=[],a=null,c=u=>d=>{let f=_t(d);if(ee(f,n,i,true))return;let g=null,m=u;if("pointerType"in d){switch(d.pointerType){case "mouse":g=be.Mouse;break;case "touch":g=be.Touch;break;case "pen":g=be.Pen;break}g===be.Touch?te[u]===te.MouseDown?m="TouchStart":te[u]===te.MouseUp&&(m="TouchEnd"):be.Pen;}else oi(d)&&(g=be.Touch);g!==null?(a=g,(m.startsWith("Touch")&&g===be.Touch||m.startsWith("Mouse")&&g===be.Mouse)&&(g=null)):te[u]===te.Click&&(g=a,a=null);let p=oi(d)?d.changedTouches[0]:d;if(!p)return;let h=t.getId(f),{clientX:y,clientY:w}=p;M(r)({type:te[m],id:h,x:y,y:w,...g!==null&&{pointerType:g}});};return Object.keys(te).filter(u=>Number.isNaN(Number(u))&&!u.endsWith("_Departed")&&o[u]!==false).forEach(u=>{let d=Oe(u),f=c(u);if(window.PointerEvent)switch(te[u]){case te.MouseDown:case te.MouseUp:d=d.replace("mouse","pointer");break;case te.TouchStart:case te.TouchEnd:return}l.push(Q(d,f,e));}),M(()=>{l.forEach(u=>u());})}function ml({scrollCb:r,doc:e,mirror:t,blockClass:n,blockSelector:i,sampling:s}){let o=M(xt(M(l=>{let a=_t(l);if(!a||ee(a,n,i,!0))return;let c=t.getId(a);if(a===e&&e.defaultView){let u=nl(e.defaultView);r({id:c,x:u.left,y:u.top});}else r({id:c,x:a.scrollLeft,y:a.scrollTop});}),s.scroll||100));return Q("scroll",o,e)}function $p({viewportResizeCb:r},{win:e}){let t=-1,n=-1,i=M(xt(M(()=>{let s=il(),o=sl();(t!==s||n!==o)&&(r({width:Number(o),height:Number(s)}),t=s,n=o);}),200));return Q("resize",i,e)}var Bp=["INPUT","TEXTAREA","SELECT"],Co=new WeakMap;function Up({inputCb:r,doc:e,mirror:t,blockClass:n,blockSelector:i,ignoreClass:s,ignoreSelector:o,maskInputOptions:l,maskInputFn:a,sampling:c,userTriggeredOnInput:u}){function d(w){let b=_t(w),v=w.isTrusted,C=b&&b.tagName;if(b&&C==="OPTION"&&(b=x.parentElement(b)),!b||!C||Bp.indexOf(C)<0||ee(b,n,i,true)||b.classList.contains(s)||o&&b.matches(o))return;let I=b.value,D=false,A=Sr(b)||"";A==="radio"||A==="checkbox"?D=b.checked:(l[C.toLowerCase()]||l[A])&&(I=vr({element:b,maskInputOptions:l,tagName:C,type:A,value:I,maskInputFn:a})),f(b,u?{text:I,isChecked:D,userTriggered:v}:{text:I,isChecked:D});let L=b.name;A==="radio"&&L&&D&&e.querySelectorAll(`input[type="radio"][name="${L}"]`).forEach($=>{if($!==b){let P=$.value;f($,u?{text:P,isChecked:!D,userTriggered:false}:{text:P,isChecked:!D});}});}function f(w,b){let v=Co.get(w);if(!v||v.text!==b.text||v.isChecked!==b.isChecked){Co.set(w,b);let C=t.getId(w);M(r)({...b,id:C});}}let m=(c.input==="last"?["change"]:["input","change"]).map(w=>Q(w,M(d),e)),p=e.defaultView;if(!p)return ()=>{m.forEach(w=>w());};let h=p.Object.getOwnPropertyDescriptor(p.HTMLInputElement.prototype,"value"),y=[[p.HTMLInputElement.prototype,"value"],[p.HTMLInputElement.prototype,"checked"],[p.HTMLSelectElement.prototype,"value"],[p.HTMLTextAreaElement.prototype,"value"],[p.HTMLSelectElement.prototype,"selectedIndex"],[p.HTMLOptionElement.prototype,"selected"]];return h&&h.set&&m.push(...y.map(w=>jr(w[0],w[1],{set(){M(d)({target:this,isTrusted:false});}},false,p))),M(()=>{m.forEach(w=>w());})}function Or(r){let e=[];function t(n,i){if(fr("CSSGroupingRule")&&n.parentRule instanceof CSSGroupingRule||fr("CSSMediaRule")&&n.parentRule instanceof CSSMediaRule||fr("CSSSupportsRule")&&n.parentRule instanceof CSSSupportsRule||fr("CSSConditionRule")&&n.parentRule instanceof CSSConditionRule){let o=Array.from(n.parentRule.cssRules).indexOf(n);i.unshift(o);}else if(n.parentStyleSheet){let o=Array.from(n.parentStyleSheet.cssRules).indexOf(n);i.unshift(o);}return i}return t(r,e)}function xe(r,e,t){let n,i;return r?(r.ownerNode?n=e.getId(r.ownerNode):i=t.getId(r),{styleId:i,id:n}):{}}function Wp({styleSheetRuleCb:r,mirror:e,stylesheetManager:t},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return ()=>{};let i=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:M((u,d,f)=>{let[g,m]=f,{id:p,styleId:h}=xe(d,e,t.styleMirror);return (p&&p!==-1||h&&h!==-1)&&r({id:p,styleId:h,adds:[{rule:g,index:m}]}),u.apply(d,f)})}),n.CSSStyleSheet.prototype.addRule=function(u,d,f=this.cssRules.length){let g=`${u} { ${d} }`;return n.CSSStyleSheet.prototype.insertRule.apply(this,[g,f])};let s=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:M((u,d,f)=>{let[g]=f,{id:m,styleId:p}=xe(d,e,t.styleMirror);return (m&&m!==-1||p&&p!==-1)&&r({id:m,styleId:p,removes:[{index:g}]}),u.apply(d,f)})}),n.CSSStyleSheet.prototype.removeRule=function(u){return n.CSSStyleSheet.prototype.deleteRule.apply(this,[u])};let o;n.CSSStyleSheet.prototype.replace&&(o=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:M((u,d,f)=>{let[g]=f,{id:m,styleId:p}=xe(d,e,t.styleMirror);return (m&&m!==-1||p&&p!==-1)&&r({id:m,styleId:p,replace:g}),u.apply(d,f)})}));let l;n.CSSStyleSheet.prototype.replaceSync&&(l=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:M((u,d,f)=>{let[g]=f,{id:m,styleId:p}=xe(d,e,t.styleMirror);return (m&&m!==-1||p&&p!==-1)&&r({id:m,styleId:p,replaceSync:g}),u.apply(d,f)})}));let a={};dr("CSSGroupingRule")?a.CSSGroupingRule=n.CSSGroupingRule:(dr("CSSMediaRule")&&(a.CSSMediaRule=n.CSSMediaRule),dr("CSSConditionRule")&&(a.CSSConditionRule=n.CSSConditionRule),dr("CSSSupportsRule")&&(a.CSSSupportsRule=n.CSSSupportsRule));let c={};return Object.entries(a).forEach(([u,d])=>{c[u]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(c[u].insertRule,{apply:M((f,g,m)=>{let[p,h]=m,{id:y,styleId:w}=xe(g.parentStyleSheet,e,t.styleMirror);return (y&&y!==-1||w&&w!==-1)&&r({id:y,styleId:w,adds:[{rule:p,index:[...Or(g),h||0]}]}),f.apply(g,m)})}),d.prototype.deleteRule=new Proxy(c[u].deleteRule,{apply:M((f,g,m)=>{let[p]=m,{id:h,styleId:y}=xe(g.parentStyleSheet,e,t.styleMirror);return (h&&h!==-1||y&&y!==-1)&&r({id:h,styleId:y,removes:[{index:[...Or(g),p]}]}),f.apply(g,m)})});}),M(()=>{n.CSSStyleSheet.prototype.insertRule=i,n.CSSStyleSheet.prototype.deleteRule=s,o&&(n.CSSStyleSheet.prototype.replace=o),l&&(n.CSSStyleSheet.prototype.replaceSync=l),Object.entries(a).forEach(([u,d])=>{d.prototype.insertRule=c[u].insertRule,d.prototype.deleteRule=c[u].deleteRule;});})}function gl({mirror:r,stylesheetManager:e},t){var n,i,s;let o=null;t.nodeName==="#document"?o=r.getId(t):o=r.getId(x.host(t));let l=t.nodeName==="#document"?(n=t.defaultView)==null?void 0:n.Document:(s=(i=t.ownerDocument)==null?void 0:i.defaultView)==null?void 0:s.ShadowRoot,a=l!=null&&l.prototype?Object.getOwnPropertyDescriptor(l==null?void 0:l.prototype,"adoptedStyleSheets"):void 0;return o===null||o===-1||!l||!a?()=>{}:(Object.defineProperty(t,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){var c;return (c=a.get)==null?void 0:c.call(this)},set(c){var u;let d=(u=a.set)==null?void 0:u.call(this,c);if(o!==null&&o!==-1)try{e.adoptStyleSheets(c,o);}catch(f){}return d}}),M(()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set});}))}function Hp({styleDeclarationCb:r,mirror:e,ignoreCSSAttributes:t,stylesheetManager:n},{win:i}){let s=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:M((l,a,c)=>{var u;let[d,f,g]=c;if(t.has(d))return s.apply(a,[d,f,g]);let{id:m,styleId:p}=xe((u=a.parentRule)==null?void 0:u.parentStyleSheet,e,n.styleMirror);return (m&&m!==-1||p&&p!==-1)&&r({id:m,styleId:p,set:{property:d,value:f,priority:g},index:Or(a.parentRule)}),l.apply(a,c)})});let o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:M((l,a,c)=>{var u;let[d]=c;if(t.has(d))return o.apply(a,[d]);let{id:f,styleId:g}=xe((u=a.parentRule)==null?void 0:u.parentStyleSheet,e,n.styleMirror);return (f&&f!==-1||g&&g!==-1)&&r({id:f,styleId:g,remove:{property:d},index:Or(a.parentRule)}),l.apply(a,c)})}),M(()=>{i.CSSStyleDeclaration.prototype.setProperty=s,i.CSSStyleDeclaration.prototype.removeProperty=o;})}function zp({mediaInteractionCb:r,blockClass:e,blockSelector:t,mirror:n,sampling:i,doc:s}){let o=M(a=>xt(M(c=>{let u=_t(c);if(!u||ee(u,e,t,!0))return;let{currentTime:d,volume:f,muted:g,playbackRate:m,loop:p}=u;r({type:a,id:n.getId(u),currentTime:d,volume:f,muted:g,playbackRate:m,loop:p});}),i.media||500)),l=[Q("play",o(Ge.Play),s),Q("pause",o(Ge.Pause),s),Q("seeked",o(Ge.Seeked),s),Q("volumechange",o(Ge.VolumeChange),s),Q("ratechange",o(Ge.RateChange),s)];return M(()=>{l.forEach(a=>a());})}function Vp({fontCb:r,doc:e}){let t=e.defaultView;if(!t)return ()=>{};let n=[],i=new WeakMap,s=t.FontFace;t.FontFace=function(a,c,u){let d=new s(a,c,u);return i.set(d,{family:a,buffer:typeof c!="string",descriptors:u,fontSource:typeof c=="string"?c:JSON.stringify(Array.from(new Uint8Array(c)))}),d};let o=Pe(e.fonts,"add",function(l){return function(a){return setTimeout(M(()=>{let c=i.get(a);c&&(r(c),i.delete(a));}),0),l.apply(this,[a])}});return n.push(()=>{t.FontFace=s;}),n.push(o),M(()=>{n.forEach(l=>l());})}function Gp(r){let{doc:e,mirror:t,blockClass:n,blockSelector:i,selectionCb:s}=r,o=true,l=M(()=>{let a=e.getSelection();if(!a||o&&(a!=null&&a.isCollapsed))return;o=a.isCollapsed||!1;let c=[],u=a.rangeCount||0;for(let d=0;d<u;d++){let f=a.getRangeAt(d),{startContainer:g,startOffset:m,endContainer:p,endOffset:h}=f;ee(g,n,i,!0)||ee(p,n,i,!0)||c.push({start:t.getId(g),startOffset:m,end:t.getId(p),endOffset:h});}s({ranges:c});});return l(),Q("selectionchange",l)}function jp({doc:r,customElementCb:e}){let t=r.defaultView;return !t||!t.customElements?()=>{}:Pe(t.customElements,"define",function(i){return function(s,o,l){try{e({define:{name:s}});}catch(a){console.warn(`Custom element callback failed for ${s}`);}return i.apply(this,[s,o,l])}})}function Yp(r,e){let{mutationCb:t,mousemoveCb:n,mouseInteractionCb:i,scrollCb:s,viewportResizeCb:o,inputCb:l,mediaInteractionCb:a,styleSheetRuleCb:c,styleDeclarationCb:u,canvasMutationCb:d,fontCb:f,selectionCb:g,customElementCb:m}=r;r.mutationCb=(...p)=>{e.mutation&&e.mutation(...p),t(...p);},r.mousemoveCb=(...p)=>{e.mousemove&&e.mousemove(...p),n(...p);},r.mouseInteractionCb=(...p)=>{e.mouseInteraction&&e.mouseInteraction(...p),i(...p);},r.scrollCb=(...p)=>{e.scroll&&e.scroll(...p),s(...p);},r.viewportResizeCb=(...p)=>{e.viewportResize&&e.viewportResize(...p),o(...p);},r.inputCb=(...p)=>{e.input&&e.input(...p),l(...p);},r.mediaInteractionCb=(...p)=>{e.mediaInteaction&&e.mediaInteaction(...p),a(...p);},r.styleSheetRuleCb=(...p)=>{e.styleSheetRule&&e.styleSheetRule(...p),c(...p);},r.styleDeclarationCb=(...p)=>{e.styleDeclaration&&e.styleDeclaration(...p),u(...p);},r.canvasMutationCb=(...p)=>{e.canvasMutation&&e.canvasMutation(...p),d(...p);},r.fontCb=(...p)=>{e.font&&e.font(...p),f(...p);},r.selectionCb=(...p)=>{e.selection&&e.selection(...p),g(...p);},r.customElementCb=(...p)=>{e.customElement&&e.customElement(...p),m(...p);};}function Xp(r,e={}){let t=r.doc.defaultView;if(!t)return ()=>{};Yp(r,e);let n;r.recordDOM&&(n=pl(r,r.doc));let i=Pp(r),s=Fp(r),o=ml(r),l=$p(r,{win:t}),a=Up(r),c=zp(r),u=()=>{},d=()=>{},f=()=>{},g=()=>{};r.recordDOM&&(u=Wp(r,{win:t}),d=gl(r,r.doc),f=Hp(r,{win:t}),r.collectFonts&&(g=Vp(r)));let m=Gp(r),p=jp(r),h=[];for(let y of r.plugins)h.push(y.observer(y.callback,t,y.options));return M(()=>{Ne.forEach(y=>y.reset()),n==null||n.disconnect(),i(),s(),o(),l(),a(),c(),u(),d(),f(),g(),m(),p(),h.forEach(y=>y());})}function fr(r){return typeof window[r]!="undefined"}function dr(r){return !!(typeof window[r]!="undefined"&&window[r].prototype&&"insertRule"in window[r].prototype&&"deleteRule"in window[r].prototype)}var Dr=class{constructor(e){S(this,"iframeIdToRemoteIdMap",new WeakMap),S(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e;}getId(e,t,n,i){let s=n||this.getIdToRemoteIdMap(e),o=i||this.getRemoteIdToIdMap(e),l=s.get(t);return l||(l=this.generateIdFn(),s.set(t,l),o.set(l,t)),l}getIds(e,t){let n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(s=>this.getId(e,s,n,i))}getRemoteId(e,t,n){let i=n||this.getRemoteIdToIdMap(e);if(typeof t!="number")return t;let s=i.get(t);return s||-1}getRemoteIds(e,t){let n=this.getRemoteIdToIdMap(e);return t.map(i=>this.getRemoteId(e,i,n))}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}},di=class{constructor(e){S(this,"iframes",new WeakMap),S(this,"crossOriginIframeMap",new WeakMap),S(this,"crossOriginIframeMirror",new Dr(No)),S(this,"crossOriginIframeStyleMirror"),S(this,"crossOriginIframeRootIdMap",new WeakMap),S(this,"mirror"),S(this,"mutationCb"),S(this,"wrappedEmit"),S(this,"loadListener"),S(this,"stylesheetManager"),S(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Dr(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,true),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e);}addLoadListener(e){this.loadListener=e;}attachIframe(e,t){var n,i;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:true}),this.recordCrossOriginIframes&&((n=e.contentWindow)==null||n.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){let t=e;if(t.data.type!=="rrweb"||t.origin!==t.data.origin||!e.source)return;let i=this.crossOriginIframeMap.get(e.source);if(!i)return;let s=this.transformCrossOriginEvent(i,t.data.event);s&&this.wrappedEmit(s,t.data.isCheckout);}transformCrossOriginEvent(e,t){var n;switch(t.type){case T.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:T.IncrementalSnapshot,data:{source:R.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:true}}}case T.Meta:case T.Load:case T.DomContentLoaded:return false;case T.Plugin:return t;case T.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case T.IncrementalSnapshot:switch(t.data.source){case R.Mutation:return t.data.adds.forEach(i=>{this.replaceIds(i,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(i.node,e);let s=this.crossOriginIframeRootIdMap.get(e);s&&this.patchRootIdOnNode(i.node,s);}),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 R.Drag:case R.TouchMove:case R.MouseMove:return t.data.positions.forEach(i=>{this.replaceIds(i,e,["id"]);}),t;case R.ViewportResize:return false;case R.MediaInteraction:case R.MouseInteraction:case R.Scroll:case R.CanvasMutation:case R.Input:return this.replaceIds(t.data,e,["id"]),t;case R.StyleSheetRule:case R.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case R.Font:return t;case R.Selection:return t.data.ranges.forEach(i=>{this.replaceIds(i,e,["start","end"]);}),t;case R.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),(n=t.data.styles)==null||n.forEach(i=>{this.replaceStyleIds(i,e,["styleId"]);}),t}}return false}replace(e,t,n,i){for(let s of i)!Array.isArray(t[s])&&typeof t[s]!="number"||(Array.isArray(t[s])?t[s]=e.getIds(n,t[s]):t[s]=e.getId(n,t[s]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(n=>{this.replaceIdOnNode(n,t);});}patchRootIdOnNode(e,t){e.type!==dl.Document&&!e.rootId&&(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(n=>{this.patchRootIdOnNode(n,t);});}},hi=class{constructor(e){S(this,"shadowDoms",new WeakSet),S(this,"mutationCb"),S(this,"scrollCb"),S(this,"bypassOptions"),S(this,"mirror"),S(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(!pt(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);let n=pl({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(ml({...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(x.host(e))),this.restoreHandlers.push(gl({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){let n=this;this.restoreHandlers.push(Pe(e.prototype,"attachShadow",function(i){return function(s){let o=i.call(this,s),l=x.shadowRoot(this);return l&&fl(this)&&n.addShadowRoot(l,t),o}}));}reset(){this.restoreHandlers.forEach(e=>{try{e();}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet;}},Xe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Jp=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(dt=0;dt<Xe.length;dt++)Jp[Xe.charCodeAt(dt)]=dt;var dt,Zp=function(r){var e=new Uint8Array(r),t,n=e.length,i="";for(t=0;t<n;t+=3)i+=Xe[e[t]>>2],i+=Xe[(e[t]&3)<<4|e[t+1]>>4],i+=Xe[(e[t+1]&15)<<2|e[t+2]>>6],i+=Xe[e[t+2]&63];return n%3===2?i=i.substring(0,i.length-1)+"=":n%3===1&&(i=i.substring(0,i.length-2)+"=="),i};var Eo=new Map;function Kp(r,e){let t=Eo.get(r);return t||(t=new Map,Eo.set(r,t)),t.has(e)||t.set(e,[]),t.get(e)}var yl=(r,e,t)=>{if(!r||!(wl(r,e)||typeof r=="object"))return;let n=r.constructor.name,i=Kp(t,n),s=i.indexOf(r);return s===-1&&(s=i.length,i.push(r)),s};function yr(r,e,t){if(r instanceof Array)return r.map(n=>yr(n,e,t));if(r===null)return r;if(r instanceof Float32Array||r instanceof Float64Array||r instanceof Int32Array||r instanceof Uint32Array||r instanceof Uint8Array||r instanceof Uint16Array||r instanceof Int16Array||r instanceof Int8Array||r instanceof Uint8ClampedArray)return {rr_type:r.constructor.name,args:[Object.values(r)]};if(r instanceof ArrayBuffer){let n=r.constructor.name,i=Zp(r);return {rr_type:n,base64:i}}else {if(r instanceof DataView)return {rr_type:r.constructor.name,args:[yr(r.buffer,e,t),r.byteOffset,r.byteLength]};if(r instanceof HTMLImageElement){let n=r.constructor.name,{src:i}=r;return {rr_type:n,src:i}}else if(r instanceof HTMLCanvasElement){let n="HTMLImageElement",i=r.toDataURL();return {rr_type:n,src:i}}else {if(r instanceof ImageData)return {rr_type:r.constructor.name,args:[yr(r.data,e,t),r.width,r.height]};if(wl(r,e)||typeof r=="object"){let n=r.constructor.name,i=yl(r,e,t);return {rr_type:n,index:i}}}}return r}var bl=(r,e,t)=>r.map(n=>yr(n,e,t)),wl=(r,e)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(i=>typeof e[i]=="function").find(i=>r instanceof e[i]);function qp(r,e,t,n){let i=[],s=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype);for(let o of s)try{if(typeof e.CanvasRenderingContext2D.prototype[o]!="function")continue;let l=Pe(e.CanvasRenderingContext2D.prototype,o,function(a){return function(...c){return ee(this.canvas,t,n,!0)||setTimeout(()=>{let u=bl(c,e,this);r(this.canvas,{type:tt["2D"],property:o,args:u});},0),a.apply(this,c)}});i.push(l);}catch(l){let a=jr(e.CanvasRenderingContext2D.prototype,o,{set(c){r(this.canvas,{type:tt["2D"],property:o,args:[c],setter:true});}});i.push(a);}return ()=>{i.forEach(o=>o());}}function Qp(r){return r==="experimental-webgl"?"webgl":r}function Io(r,e,t,n){let i=[];try{let s=Pe(r.HTMLCanvasElement.prototype,"getContext",function(o){return function(l,...a){if(!ee(this,e,t,!0)){let c=Qp(l);if("__context"in this||(this.__context=c),n&&["webgl","webgl2"].includes(c))if(a[0]&&typeof a[0]=="object"){let u=a[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0);}else a.splice(0,1,{preserveDrawingBuffer:!0});}return o.apply(this,[l,...a])}});i.push(s);}catch(s){console.error("failed to patch HTMLCanvasElement.prototype.getContext");}return ()=>{i.forEach(s=>s());}}function xo(r,e,t,n,i,s){let o=[],l=Object.getOwnPropertyNames(r);for(let a of l)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))try{if(typeof r[a]!="function")continue;let c=Pe(r,a,function(u){return function(...d){let f=u.apply(this,d);if(yl(f,s,this),"tagName"in this.canvas&&!ee(this.canvas,n,i,!0)){let g=bl(d,s,this),m={type:e,property:a,args:g};t(this.canvas,m);}return f}});o.push(c);}catch(c){let u=jr(r,a,{set(d){t(this.canvas,{type:e,property:a,args:[d],setter:true});}});o.push(u);}return o}function em(r,e,t,n){let i=[];return i.push(...xo(e.WebGLRenderingContext.prototype,tt.WebGL,r,t,n,e)),typeof e.WebGL2RenderingContext!="undefined"&&i.push(...xo(e.WebGL2RenderingContext.prototype,tt.WebGL2,r,t,n,e)),()=>{i.forEach(s=>s());}}var vl="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",tm=r=>Uint8Array.from(atob(r),e=>e.charCodeAt(0)),Ro=typeof window!="undefined"&&window.Blob&&new Blob([tm(vl)],{type:"text/javascript;charset=utf-8"});function rm(r){let e;try{if(e=Ro&&(window.URL||window.webkitURL).createObjectURL(Ro),!e)throw "";let t=new Worker(e,{name:r==null?void 0:r.name});return t.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(e);}),t}catch(t){return new Worker("data:text/javascript;base64,"+vl,{name:r==null?void 0:r.name})}finally{e&&(window.URL||window.webkitURL).revokeObjectURL(e);}}var pi=class{constructor(e){S(this,"pendingCanvasMutations",new Map),S(this,"rafStamps",{latestId:0,invokeId:null}),S(this,"mirror"),S(this,"mutationCb"),S(this,"resetObservers"),S(this,"frozen",false),S(this,"locked",false),S(this,"processMutation",(a,c)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(a)||this.pendingCanvasMutations.set(a,[]),this.pendingCanvasMutations.get(a).push(c);});let{sampling:t="all",win:n,blockClass:i,blockSelector:s,recordCanvas:o,dataURLOptions:l}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,o&&t==="all"&&this.initCanvasMutationObserver(n,i,s),o&&typeof t=="number"&&this.initCanvasFPSObserver(t,n,i,s,{dataURLOptions:l});}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers();}freeze(){this.frozen=true;}unfreeze(){this.frozen=false;}lock(){this.locked=true;}unlock(){this.locked=false;}initCanvasFPSObserver(e,t,n,i,s){let o=Io(t,n,i,true),l=new Map,a=new rm;a.onmessage=m=>{let{id:p}=m.data;if(l.set(p,false),!("base64"in m.data))return;let{base64:h,type:y,width:w,height:b}=m.data;this.mutationCb({id:p,type:tt["2D"],commands:[{property:"clearRect",args:[0,0,w,b]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:h}],type:y}]},0,0]}]});};let c=1e3/e,u=0,d,f=()=>{let m=[];return t.document.querySelectorAll("canvas").forEach(p=>{ee(p,n,i,true)||m.push(p);}),m},g=m=>{if(u&&m-u<c){d=requestAnimationFrame(g);return}u=m,f().forEach(async p=>{var h;let y=this.mirror.getId(p);if(l.get(y)||p.width===0||p.height===0)return;if(l.set(y,true),["webgl","webgl2"].includes(p.__context)){let b=p.getContext(p.__context);((h=b==null?void 0:b.getContextAttributes())==null?void 0:h.preserveDrawingBuffer)===false&&b.clear(b.COLOR_BUFFER_BIT);}let w=await createImageBitmap(p);a.postMessage({id:y,bitmap:w,width:p.width,height:p.height,dataURLOptions:s.dataURLOptions},[w]);}),d=requestAnimationFrame(g);};d=requestAnimationFrame(g),this.resetObservers=()=>{o(),cancelAnimationFrame(d);};}initCanvasMutationObserver(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let i=Io(e,t,n,false),s=qp(this.processMutation.bind(this),e,t,n),o=em(this.processMutation.bind(this),e,t,n);this.resetObservers=()=>{i(),s(),o();};}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations());}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e);};requestAnimationFrame(e);}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n);}),requestAnimationFrame(()=>this.flushPendingCanvasMutations());}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let n=this.pendingCanvasMutations.get(e);if(!n||t===-1)return;let i=n.map(o=>{let{type:l,...a}=o;return a}),{type:s}=n[0];this.mutationCb({id:t,type:s,commands:i}),this.pendingCanvasMutations.delete(e);}},mi=class{constructor(e){S(this,"trackedLinkElements",new WeakSet),S(this,"mutationCb"),S(this,"adoptedStyleSheetCb"),S(this,"styleMirror",new li),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;let n={id:t,styleIds:[]},i=[];for(let s of e){let o;this.styleMirror.has(s)?o=this.styleMirror.getId(s):(o=this.styleMirror.add(s),i.push({styleId:o,rules:Array.from(s.rules||CSSRule,(l,a)=>({rule:_o(l,s.href),index:a}))})),n.styleIds.push(o);}i.length>0&&(n.styles=i),this.adoptedStyleSheetCb(n);}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet;}trackStylesheetInLinkElement(e){}},gi=class{constructor(){S(this,"nodeMap",new WeakMap),S(this,"active",false);}inOtherBuffer(e,t){let n=this.nodeMap.get(e);return n&&Array.from(n).some(i=>i!==t)}add(e,t){this.active||(this.active=true,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=false;})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t));}destroy(){}},j,br,Mn,Lr=false;try{if(Array.from([1],r=>r*2)[0]!==2){let r=document.createElement("iframe");document.body.appendChild(r),Array.from=((As=r.contentWindow)==null?void 0:As.Array.from)||Array.from,document.body.removeChild(r);}}catch(r){console.debug("Unable to override Array.from",r);}var ce=lu();function Ee(r={}){let{emit:e,checkoutEveryNms:t,checkoutEveryNth:n,blockClass:i="rr-block",blockSelector:s=null,ignoreClass:o="rr-ignore",ignoreSelector:l=null,maskTextClass:a="rr-mask",maskTextSelector:c=null,inlineStylesheet:u=true,maskAllInputs:d,maskInputOptions:f,slimDOMOptions:g,maskInputFn:m,maskTextFn:p,hooks:h,packFn:y,sampling:w={},dataURLOptions:b={},mousemoveWait:v,recordDOM:C=true,recordCanvas:I=false,recordCrossOriginIframes:D=false,recordAfter:A=r.recordAfter==="DOMContentLoaded"?r.recordAfter:"load",userTriggeredOnInput:L=false,collectFonts:$=false,inlineImages:P=false,plugins:q,keepIframeSrcFn:E=()=>false,ignoreCSSAttributes:re=new Set([]),errorHandler:Te}=r;Dp(Te);let Y=D?window.parent===window:true,se=false;if(!Y)try{window.parent.document&&(se=!1);}catch(_){se=true;}if(Y&&!e)throw new Error("emit function is required");if(!Y&&!se)return ()=>{};v!==void 0&&w.mousemove===void 0&&(w.mousemove=v),ce.reset();let Ae=d===true?{color:true,date:true,"datetime-local":true,email:true,month:true,number:true,range:true,search:true,tel:true,text:true,time:true,url:true,week:true,textarea:true,select:true,password:true}:f!==void 0?f:{password:true},he=Po(g);Ap();let is,ln=0,ss=_=>{for(let le of q||[])le.eventProcessor&&(_=le.eventProcessor(_));return y&&!se&&(_=y(_)),_};j=(_,le)=>{var z;let V=_;if(V.timestamp=Nr(),(z=Ne[0])!=null&&z.isFrozen()&&V.type!==T.FullSnapshot&&!(V.type===T.IncrementalSnapshot&&V.data.source===R.Mutation)&&Ne.forEach(ne=>ne.unfreeze()),Y)e==null||e(ss(V),le);else if(se){let ne={type:"rrweb",event:ss(V),origin:window.location.origin,isCheckout:le};window.parent.postMessage(ne,"*");}if(V.type===T.FullSnapshot)is=V,ln=0;else if(V.type===T.IncrementalSnapshot){if(V.data.source===R.Mutation&&V.data.isAttachIframe)return;ln++;let ne=n&&ln>=n,O=t&&V.timestamp-is.timestamp>t;(ne||O)&&br(true);}};let Ft=_=>{j({type:T.IncrementalSnapshot,data:{source:R.Mutation,..._}});},os=_=>j({type:T.IncrementalSnapshot,data:{source:R.Scroll,..._}}),as=_=>j({type:T.IncrementalSnapshot,data:{source:R.CanvasMutation,..._}}),hc=_=>j({type:T.IncrementalSnapshot,data:{source:R.AdoptedStyleSheet,..._}}),_e=new mi({mutationCb:Ft,adoptedStyleSheetCb:hc}),ke=new di({mirror:ce,mutationCb:Ft,stylesheetManager:_e,recordCrossOriginIframes:D,wrappedEmit:j});for(let _ of q||[])_.getMirror&&_.getMirror({nodeMirror:ce,crossOriginIframeMirror:ke.crossOriginIframeMirror,crossOriginIframeStyleMirror:ke.crossOriginIframeStyleMirror});let cn=new gi;Mn=new pi({recordCanvas:I,mutationCb:as,win:window,blockClass:i,blockSelector:s,mirror:ce,sampling:w.canvas,dataURLOptions:b});let $t=new hi({mutationCb:Ft,scrollCb:os,bypassOptions:{blockClass:i,blockSelector:s,maskTextClass:a,maskTextSelector:c,inlineStylesheet:u,maskInputOptions:Ae,dataURLOptions:b,maskTextFn:p,maskInputFn:m,recordCanvas:I,inlineImages:P,sampling:w,slimDOMOptions:he,iframeManager:ke,stylesheetManager:_e,canvasManager:Mn,keepIframeSrcFn:E,processedNodeManager:cn},mirror:ce});br=(_=false)=>{if(!C)return;j({type:T.Meta,data:{href:window.location.href,width:sl(),height:il()}},_),_e.reset(),$t.init(),Ne.forEach(z=>z.lock());let le=Nu(document,{mirror:ce,blockClass:i,blockSelector:s,maskTextClass:a,maskTextSelector:c,inlineStylesheet:u,maskAllInputs:Ae,maskTextFn:p,maskInputFn:m,slimDOM:he,dataURLOptions:b,recordCanvas:I,inlineImages:P,onSerialize:z=>{ll(z,ce)&&ke.addIframe(z),cl(z,ce)&&_e.trackLinkElement(z),ai(z)&&$t.addShadowRoot(x.shadowRoot(z),document);},onIframeLoad:(z,V)=>{ke.attachIframe(z,V),$t.observeAttachShadow(z);},onStylesheetLoad:(z,V)=>{_e.attachLinkElement(z,V);},keepIframeSrcFn:E});if(!le)return console.warn("Failed to snapshot the document");j({type:T.FullSnapshot,data:{node:le,initialOffset:nl(window)}},_),Ne.forEach(z=>z.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&_e.adoptStyleSheets(document.adoptedStyleSheets,ce.getId(document));};try{let _=[],le=V=>{var ne;return M(Xp)({mutationCb:Ft,mousemoveCb:(O,un)=>j({type:T.IncrementalSnapshot,data:{source:un,positions:O}}),mouseInteractionCb:O=>j({type:T.IncrementalSnapshot,data:{source:R.MouseInteraction,...O}}),scrollCb:os,viewportResizeCb:O=>j({type:T.IncrementalSnapshot,data:{source:R.ViewportResize,...O}}),inputCb:O=>j({type:T.IncrementalSnapshot,data:{source:R.Input,...O}}),mediaInteractionCb:O=>j({type:T.IncrementalSnapshot,data:{source:R.MediaInteraction,...O}}),styleSheetRuleCb:O=>j({type:T.IncrementalSnapshot,data:{source:R.StyleSheetRule,...O}}),styleDeclarationCb:O=>j({type:T.IncrementalSnapshot,data:{source:R.StyleDeclaration,...O}}),canvasMutationCb:as,fontCb:O=>j({type:T.IncrementalSnapshot,data:{source:R.Font,...O}}),selectionCb:O=>{j({type:T.IncrementalSnapshot,data:{source:R.Selection,...O}});},customElementCb:O=>{j({type:T.IncrementalSnapshot,data:{source:R.CustomElement,...O}});},blockClass:i,ignoreClass:o,ignoreSelector:l,maskTextClass:a,maskTextSelector:c,maskInputOptions:Ae,inlineStylesheet:u,sampling:w,recordDOM:C,recordCanvas:I,inlineImages:P,userTriggeredOnInput:L,collectFonts:$,doc:V,maskInputFn:m,maskTextFn:p,keepIframeSrcFn:E,blockSelector:s,slimDOMOptions:he,dataURLOptions:b,mirror:ce,iframeManager:ke,stylesheetManager:_e,shadowDomManager:$t,processedNodeManager:cn,canvasManager:Mn,ignoreCSSAttributes:re,plugins:((ne=q==null?void 0:q.filter(O=>O.observer))==null?void 0:ne.map(O=>({observer:O.observer,options:O.options,callback:un=>j({type:T.Plugin,data:{plugin:O.name,payload:un}})})))||[]},h)};ke.addLoadListener(V=>{try{_.push(le(V.contentDocument));}catch(ne){console.warn(ne);}});let z=()=>{br(),_.push(le(document)),Lr=!0;};return ["interactive","complete"].includes(document.readyState)?z():(_.push(Q("DOMContentLoaded",()=>{j({type:T.DomContentLoaded,data:{}}),A==="DOMContentLoaded"&&z();})),_.push(Q("load",()=>{j({type:T.Load,data:{}}),A==="load"&&z();},window))),()=>{_.forEach(V=>{try{V();}catch(ne){String(ne).toLowerCase().includes("cross-origin")||console.warn(ne);}}),cn.destroy(),Lr=!1,Lp();}}catch(_){console.warn(_);}}Ee.addCustomEvent=(r,e)=>{if(!Lr)throw new Error("please add custom event after start recording");j({type:T.Custom,data:{tag:r,payload:e}});};Ee.freezePage=()=>{Ne.forEach(r=>r.freeze());};Ee.takeFullSnapshot=r=>{if(!Lr)throw new Error("please take full snapshot after start recording");br(r);};Ee.mirror=ce;var Mo;(function(r){r[r.NotStarted=0]="NotStarted",r[r.Running=1]="Running",r[r.Stopped=2]="Stopped";})(Mo||(Mo={}));var nm="https://blocfeed.com/api/replay-events";function Sl(r){var q;if(!r.config.enabled)return ()=>{};if(typeof window=="undefined")return ()=>{};if(typeof globalThis.matchMedia=="undefined")return ()=>{};let e=G();if(He(e)%100/100>=r.config.sampling)return ()=>{};let n=Date.now(),i=(q=r.config.endpoint)!=null?q:nm,s=[],o=0,l=false,a=false,c=null,u=`bf_replay_chunkseq_${e}`,d=`bf_replay_pauses_${e}`,f=0,g=0;try{let E=sessionStorage.getItem(u);E&&(f=parseInt(E,10)||0);let re=sessionStorage.getItem(d);re&&(g=parseInt(re,10)||0);}catch(E){}let m=(E=false)=>{if(s.length===0)return;let re=E?sm(s):s;s=[],o=0;let Te=f++;try{sessionStorage.setItem(u,String(f));}catch(Y){}om({blocfeedId:r.blocfeedId,sessionId:e,sessionStartedAtMs:n,chunkSeq:Te,events:re,endpoint:i,useBeacon:E,pauseCount:g});},p=setInterval(()=>{l||m();},r.config.flushIntervalMs),h=setTimeout(()=>{m(),P();},r.config.maxDurationMs),y=null,w=()=>{y&&clearTimeout(y),y=setTimeout(()=>{L();},r.config.inactivityTimeoutMs);},b=()=>{m(true);};window.addEventListener("pagehide",b);let v=r.config.masking,C={emit(E){l||(s.push(E),o+=im(E),w(),o>=r.config.flushSizeBytes&&m());},recordCanvas:false,sampling:{mousemove:50}};v.maskAllInputs!==void 0&&(C.maskAllInputs=v.maskAllInputs),v.maskTextSelector!==void 0&&(C.maskTextSelector=v.maskTextSelector),v.maskTextClass!==void 0&&(C.maskTextClass=v.maskTextClass),v.blockSelector!==void 0&&(C.blockSelector=v.blockSelector);let I=null,D=()=>{I&&(document.removeEventListener("pointerdown",I,true),document.removeEventListener("keydown",I,true),I=null);};function A(){var E;c=(E=Ee(C))!=null?E:null;}function L(){if(l||a)return;a=true,g++;try{sessionStorage.setItem(d,String(g));}catch(re){}if(m(),c){try{c();}catch(re){}c=null;}y&&(clearTimeout(y),y=null);let E=()=>{D(),$();};I=E,document.addEventListener("pointerdown",E,{capture:true,once:true}),document.addEventListener("keydown",E,{capture:true,once:true});}function $(){l||!a||(a=false,A(),w());}w(),A();function P(){if(!l&&(l=true,clearInterval(p),clearTimeout(h),y&&clearTimeout(y),D(),window.removeEventListener("pagehide",b),c)){try{c();}catch(E){}c=null;}}return P}function im(r){try{return JSON.stringify(r).length}catch(e){return 1024}}function sm(r){let t=JSON.stringify(r);if(t.length<=6e4)return r;let n=[...r];for(;n.length>1;)if(n.shift(),t=JSON.stringify(n),t.length<=6e4)return n;return n}async function om(r){let e=JSON.stringify({blocfeed_id:r.blocfeedId,session_id:r.sessionId,session_started_at_ms:r.sessionStartedAtMs,chunk_seq:r.chunkSeq,pause_count:r.pauseCount,events:r.events,page_url:typeof window!="undefined"?window.location.href:"",user_agent:typeof navigator!="undefined"?navigator.userAgent:""});if(r.useBeacon&&typeof navigator!="undefined"&&typeof navigator.sendBeacon=="function")try{let n=new Blob([e],{type:"application/json"});navigator.sendBeacon(r.endpoint,n);return}catch(n){}let t=!!r.useBeacon;try{await fetch(r.endpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:e,...t?{keepalive:!0}:{}});}catch(n){}}var am={enabled:true,endpoint:null,maxDurationMs:144e5,flushIntervalMs:3e4,flushSizeBytes:1048576,inactivityTimeoutMs:18e5,sampling:1,masking:{maskAllInputs:true,maskTextSelector:"[data-blocfeed-mask]",maskTextClass:"blocfeed-mask",blockSelector:"[data-blocfeed-block]"}};function Cl(r){var t,n,i,s,o,l,a,c;let e=am;return {enabled:(t=r==null?void 0:r.enabled)!=null?t:e.enabled,endpoint:(n=r==null?void 0:r.endpoint)!=null?n:e.endpoint,maxDurationMs:(i=r==null?void 0:r.maxDurationMs)!=null?i:e.maxDurationMs,flushIntervalMs:(s=r==null?void 0:r.flushIntervalMs)!=null?s:e.flushIntervalMs,flushSizeBytes:(o=r==null?void 0:r.flushSizeBytes)!=null?o:e.flushSizeBytes,inactivityTimeoutMs:(l=r==null?void 0:r.inactivityTimeoutMs)!=null?l:e.inactivityTimeoutMs,sampling:(a=r==null?void 0:r.sampling)!=null?a:e.sampling,masking:{...e.masking,...(c=r==null?void 0:r.masking)!=null?c:{}}}}var lm="https://blocfeed.com/api/events/track",cm=5e3,um=50,fm=1024,Jr="blocfeed-events-queue",El=500,Il=100,dm=/^[a-z][a-z0-9_]{0,127}$/,xl=50,Rl=1024,Ml,Ui="default";function Zr(r){Ml=r;}function Tl(r){Ui=r;}function hm(r){if(typeof r!="string"||!dm.test(r))throw new Error(`[BlocFeed] track(): event_name "${r}" must match /^[a-z][a-z0-9_]{0,127}$/ (lowercase, start with a letter, only [a-z0-9_], \u2264128 chars).`)}function pm(r){if(r===void 0)return {};if(r===null||typeof r!="object"||Array.isArray(r))throw new Error("[BlocFeed] track(): properties must be a plain object.");let e=Object.keys(r);if(e.length>xl)throw new Error(`[BlocFeed] track(): properties has ${e.length} keys, max ${xl}.`);for(let n of e){let i=r[n];if(i!==null&&typeof i!="string"&&typeof i!="number"&&typeof i!="boolean")throw new Error(`[BlocFeed] track(): property "${n}" has unsupported type "${typeof i}". Allowed: string | number | boolean | null.`)}let t;try{t=JSON.stringify(r);}catch(n){throw new Error(`[BlocFeed] track(): properties is not JSON-serializable (${n.message}).`)}if(t.length>Rl)throw new Error(`[BlocFeed] track(): properties serialized to ${t.length} bytes, max ${Rl}. Server allows 8192 bytes \u2014 the client cap is defensive; trim down or split the event.`);return r}function Wi(){if(typeof localStorage=="undefined")return [];try{let r=localStorage.getItem(Jr);if(!r)return [];let e=JSON.parse(r);return Array.isArray(e)?e:[]}catch(r){try{localStorage.removeItem(Jr);}catch(e){}return []}}function Hi(r){if(typeof localStorage!="undefined")try{if(r.length===0)localStorage.removeItem(Jr);else {let e=r.length>El?r.slice(r.length-El):r;localStorage.setItem(Jr,JSON.stringify(e));}}catch(e){}}var ae=null;function mm(){if(ae)return ae;if(typeof window=="undefined")return null;let r=gm();return r?(ae={blocfeedId:r,endpoint:lm,events:[],bytes:0,flushTimer:null,pageHideHandler:null,visibilityHandler:null},ae.flushTimer=setInterval(()=>{Xr(false);},cm),ae.pageHideHandler=()=>{Xr(true);},ae.visibilityHandler=()=>{document.visibilityState==="hidden"&&Xr(true);},window.addEventListener("pagehide",ae.pageHideHandler),document.addEventListener("visibilitychange",ae.visibilityHandler),ae):null}function gm(){try{let e=window.__blocfeed_id__;return typeof e=="string"&&e.length>0?e:null}catch(r){return null}}function Al(r){try{window.__blocfeed_id__=r;}catch(e){}ae&&(ae.blocfeedId=r);}function zi(r,e,t){var f,g,m;hm(r);let n=pm(e),i=Ui==="off"?n:Ie(n,Ui),s=new Date().toISOString(),o={event_name:r,properties:i,occurred_at:s},l=(f=void 0)!=null?f:bm();l&&(o.session_id=l);let a=(g=void 0)!=null?g:Ml;a&&(o.user_id=a);let c=(m=void 0)!=null?m:wm();c&&(o.page_url=c);let u=vm();u&&(o.user_agent=u);let d=mm();if(!d){let p=Wi();p.push(o),Hi(p);return}d.events.push(o),d.bytes+=ym(o),(d.events.length>=um||d.bytes>=fm)&&Xr(false);}async function Xr(r){let e=ae;if(!e)return;let n=Wi().concat(e.events);if(e.events=[],e.bytes=0,Hi([]),n.length!==0)for(let i=0;i<n.length;i+=Il){let s=n.slice(i,i+Il),o=JSON.stringify({blocfeed_id:e.blocfeedId,events:s});if(r&&Cm())try{let l=new Blob([o],{type:"application/json"});navigator.sendBeacon(e.endpoint,l)||Yr(s);continue}catch(l){Yr(s);continue}try{(await fetch(e.endpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:o})).ok||Yr(s);}catch(l){Yr(s);}}}function Yr(r){let e=Wi();Hi(e.concat(r));}function ym(r){try{return JSON.stringify(r).length}catch(e){return 256}}function bm(){try{return G()}catch(r){return}}function wm(){try{return typeof window!="undefined"?window.location.href:void 0}catch(r){return}}function vm(){try{return typeof navigator!="undefined"?navigator.userAgent:void 0}catch(r){return}}function Cm(){return typeof navigator!="undefined"&&typeof navigator.sendBeacon=="function"}var Em="https://blocfeed.com/api/heartbeat",Im=300*1e3;function _l(r){var l,a,c;if(typeof window=="undefined")return ()=>{};if(typeof globalThis.matchMedia=="undefined")return ()=>{};let e=(l=r.endpoint)!=null?l:Em,t=(a=r.intervalMs)!=null?a:Im,n=(c=r.features)!=null?c:["replay","behavioral","customEvents"],i=u=>{try{let d=JSON.stringify({blocfeed_id:r.blocfeedId,session_id:xm(),version:r.version,page_url:typeof window!="undefined"?window.location.href:"",user_agent:typeof navigator!="undefined"?navigator.userAgent:"",sdk_features:n}),f={method:"POST",headers:{"Content-Type":"application/json"},body:d};u&&(f.keepalive=!0),fetch(e,f).catch(()=>{});}catch(d){}};try{i(!1);}catch(u){}let s=null;try{s=setInterval(()=>{try{i(!1);}catch(u){}},t);}catch(u){s=null;}let o=()=>{try{i(!0);}catch(u){}};try{window.addEventListener("pagehide",o);}catch(u){}return function(){try{s&&clearInterval(s);}catch(d){}s=null;try{window.removeEventListener("pagehide",o);}catch(d){}}}function xm(){try{return G()}catch(r){return ""}}var Kr="0.26.0";var Rm=5e3,qr=class{constructor(e){this.submitter=null;this.detectorUninstallers=[];this.flushTimer=null;this.pageHideHandler=null;this.installed=false;this.opts=e,this.resolved=ls(e.config);}install(){var a,c,u,d;if(this.installed||!this.resolved.enabled)return;ws({enabled:this.resolved.sessionTimeout.enabled,idleMs:this.resolved.sessionTimeout.idleMs,maxMs:this.resolved.sessionTimeout.maxMs});let e=()=>{try{let f=G();return He(f)%100/100<this.resolved.sampling}catch(f){return false}};if(!((a=this.opts.passiveSampler)!=null?a:e)())return;Al(this.opts.blocfeedId),Tl(this.resolved.piiScrub);let n=(c=this.opts.endpoint)!=null?c:"https://blocfeed.com/api/behavioral-events";this.submitter=(u=this.opts.submitter)!=null?u:cs({endpoint:n,blocfeedId:this.opts.blocfeedId});let i=this.resolved.piiScrub,s=f=>{var m;let g=i==="off"?f:{...f,element_text:f.element_text==null?f.element_text:Ie(f.element_text,i),event_data:f.event_data==null?f.event_data:Ie(f.event_data,i)};(m=this.submitter)==null||m.enqueue(g);};if(this.resolved.sessionTimeout.enabled&&typeof window!="undefined"){let f=()=>{dn();},g=()=>{typeof document!="undefined"&&document.visibilityState==="visible"&&dn();},m={capture:true},p={capture:true,passive:true};window.addEventListener("mousedown",f,m),window.addEventListener("keydown",f,m),window.addEventListener("touchstart",f,p),window.addEventListener("scroll",f,p),window.addEventListener("mousemove",f,p),typeof document!="undefined"&&document.addEventListener("visibilitychange",g),this.detectorUninstallers.push(()=>{window.removeEventListener("mousedown",f,m),window.removeEventListener("keydown",f,m),window.removeEventListener("touchstart",f,p),window.removeEventListener("scroll",f,p),window.removeEventListener("mousemove",f,p),typeof document!="undefined"&&document.removeEventListener("visibilitychange",g);});}this.detectorUninstallers.push(vs(this.resolved,s)),this.detectorUninstallers.push(Es(this.resolved,s)),this.detectorUninstallers.push(Is(this.resolved,s)),this.detectorUninstallers.push(xs(this.resolved,s)),this.detectorUninstallers.push(Rs(this.resolved,s)),this.detectorUninstallers.push(Ts(this.resolved,s));let o=Cl((d=this.opts.config)==null?void 0:d.sessionReplay);this.detectorUninstallers.push(Sl({blocfeedId:this.opts.blocfeedId,config:o}));let l=["behavioral","customEvents"];if(o.enabled&&l.unshift("replay"),this.opts.extraSdkFeatures)for(let f of this.opts.extraSdkFeatures)l.push(f);this.detectorUninstallers.push(_l({blocfeedId:this.opts.blocfeedId,version:Kr,features:l})),this.flushTimer=setInterval(()=>{var f;(f=this.submitter)==null||f.flush();},Rm),this.pageHideHandler=()=>{var f;(f=this.submitter)==null||f.flushBeacon();},typeof window!="undefined"&&window.addEventListener("pagehide",this.pageHideHandler),this.installed=true;}uninstall(){var e;if(this.installed){for(let t of [...this.detectorUninstallers].reverse())try{t();}catch(n){}this.detectorUninstallers=[],this.flushTimer&&(clearInterval(this.flushTimer),this.flushTimer=null),this.pageHideHandler&&typeof window!="undefined"&&(window.removeEventListener("pagehide",this.pageHideHandler),this.pageHideHandler=null);try{(e=this.submitter)==null||e.flush();}catch(t){}this.submitter=null,this.installed=false;}}};var dg="blocfeed-embed/ready",hg="blocfeed-embed/screenshot-request",pg="blocfeed-embed/submit-success",mg="blocfeed-embed/close",gg="blocfeed-embed/init",yg="blocfeed-embed/screenshot-result",Lt=null;function bg(r,e,t){r.style.position="fixed",r.style.zIndex="2147483647",r.style.background=e,r.style.color="#ffffff",r.style.border="0",r.style.borderRadius="24px",r.style.padding="12px 20px",r.style.fontSize="14px",r.style.fontWeight="600",r.style.fontFamily="system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",r.style.cursor="pointer",r.style.boxShadow="0 8px 16px rgba(0,0,0,0.18)",r.style.lineHeight="1",r.style.top="",r.style.bottom="",r.style.left="",r.style.right="";let n="16px";t==="bottom-right"?(r.style.bottom=n,r.style.right=n):t==="bottom-left"?(r.style.bottom=n,r.style.left=n):t==="top-right"?(r.style.top=n,r.style.right=n):(r.style.top=n,r.style.left=n);}function wg(r,e){r.style.position="fixed",r.style.width="380px",r.style.height="600px",r.style.border="0",r.style.borderRadius="12px",r.style.boxShadow="0 25px 50px -12px rgba(0,0,0,0.4)",r.style.zIndex="2147483646",r.style.display="none",r.style.background="transparent",r.style.top="",r.style.bottom="",r.style.left="",r.style.right="",e==="bottom-right"?(r.style.bottom="80px",r.style.right="16px"):e==="bottom-left"?(r.style.bottom="80px",r.style.left="16px"):e==="top-right"?(r.style.top="80px",r.style.right="16px"):(r.style.top="80px",r.style.left="16px");}function vg(r,e){return `${r.replace(/\/+$/,"")}/embed/${encodeURIComponent(e)}`}async function Sg(){try{let r=await Promise.resolve().then(()=>(nc(),rc)),e=typeof devicePixelRatio=="number"?devicePixelRatio:1;return {dataUrl:await r.toPng(document.body,{pixelRatio:Math.min(2,e),cacheBust:!0})}}catch(r){return {dataUrl:null,error:r instanceof Error?r.message:String(r)}}}function ic(r,e,t){let n=r.contentWindow;if(n)try{n.postMessage(t,e);}catch(i){}}function sc(r){if(Lt){try{Lt();}catch(f){}Lt=null;}if(typeof window=="undefined"||typeof document=="undefined")return ()=>{};let{blocfeedId:e,embedOrigin:t,color:n,label:i,position:s,user:o}=r,l=document.createElement("button");l.setAttribute("data-blocfeed-trigger",""),l.setAttribute("type","button"),l.setAttribute("aria-label","Open feedback"),l.textContent=i,bg(l,n,s);let a=document.createElement("iframe");a.setAttribute("data-blocfeed-iframe",""),a.setAttribute("title","BlocFeed feedback"),a.setAttribute("allow","microphone; clipboard-write"),a.src=vg(t,e),wg(a,s);let c=()=>{a.style.display="block";};l.addEventListener("click",c);let u=f=>{if(f.origin!==t)return;let g=f.data;if(!(!g||typeof g!="object"||typeof g.kind!="string")){if(g.kind===dg){let m={kind:gg,pageUrl:window.location.href,userAgent:navigator.userAgent,sessionId:G(),...o!==void 0?{user:o}:{}};ic(a,t,m);return}if(g.kind===hg){let m=g.requestId;Sg().then(p=>{ic(a,t,{kind:yg,requestId:m,dataUrl:p.dataUrl,...p.error!==void 0?{error:p.error}:{}});});return}if(g.kind===pg){try{console.log("[BlocFeed] feedback submitted",{feedback_id:g.feedback_id,viewer_url:g.viewer_url});}catch(m){}return}if(g.kind===mg){a.style.display="none";return}}};window.addEventListener("message",u),document.body.appendChild(l),document.body.appendChild(a);let d=()=>{try{l.removeEventListener("click",c);}catch(f){}try{window.removeEventListener("message",u);}catch(f){}l.parentNode&&l.parentNode.removeChild(l),a.parentNode&&a.parentNode.removeChild(a),Lt=null;};return Lt=d,d}function Cg(r){let e=(r!=null?r:"inputs").toLowerCase();return e==="none"?{maskAllInputs:false,maskTextSelector:"[data-blocfeed-mask]",maskTextClass:"blocfeed-mask",blockSelector:"[data-blocfeed-block]"}:e==="text"?{maskAllInputs:true,maskTextSelector:"*",maskTextClass:"blocfeed-mask",blockSelector:"[data-blocfeed-block]"}:{maskAllInputs:true,maskTextSelector:"[data-blocfeed-mask]",maskTextClass:"blocfeed-mask",blockSelector:"[data-blocfeed-block]"}}var Ki="https://blocfeed.com",ac="#12D393",lc="Feedback",oc="bottom-right",Eg=new Set(["bottom-right","bottom-left","top-right","top-left"]);function qi(r){if(!r)return Ki;let e=r.trim();return e&&(e.startsWith("https://")||/^http:\/\/localhost(?::\d+)?(\/.*)?$/i.test(e))?e:Ki}function Qi(r){if(!r)return oc;let e=r.toLowerCase();return Eg.has(e)?e:oc}function Ig(r){var m;let e=r.blocfeedId;if(!e)return null;let t=parseFloat((m=r.sample)!=null?m:"1"),n=Number.isFinite(t)&&t>0?t:1,i=r.replay!=="false",s=r.signals!=="false",o=r.mask!==void 0?Cg(r.mask):void 0,l={sampling:n,sessionReplay:{enabled:i,sampling:n,...o!==void 0?{masking:o}:{}},rageClick:{enabled:s},deadClick:{enabled:s},httpFail:{enabled:s},redirectLoop:{enabled:s},formDataLoss:{enabled:s}},a=r.userId||r.userEmail||r.userName?{...r.userId!==void 0?{id:r.userId}:{},...r.userEmail!==void 0?{email:r.userEmail}:{},...r.userName!==void 0?{name:r.userName}:{}}:void 0,c=r.feedback==="true",u=qi(r.embedOrigin),d=r.feedbackColor&&r.feedbackColor.trim()?r.feedbackColor.trim():ac,f=r.feedbackLabel&&r.feedbackLabel.trim()?r.feedbackLabel:lc,g=Qi(r.feedbackPosition);return {blocfeedId:e,...a!==void 0?{user:a}:{},config:l,trackClicks:r.trackClicks==="true",feedback:c,embedOrigin:u,feedbackColor:d,feedbackLabel:f,feedbackPosition:g}}function sn(r){if(typeof r!="object"||r===null)return false;let e=Object.getPrototypeOf(r);return e===Object.prototype||e===null}function es(r,e){if(e===void 0)return r;if(!sn(r)||!sn(e))return e;let t={...r};for(let n of Object.keys(e)){let i=e[n];if(i===void 0)continue;let s=t[n];sn(i)&&sn(s)?t[n]=es(s,i):t[n]=i;}return t}function cc(){if(typeof window=="undefined")return null;let r=window.blocfeedConfig;return !r||typeof r!="object"?null:r}function uc(r){let e={};return r.sampling!==void 0&&(e.sampling=r.sampling),r.ignoreSelectors!==void 0&&(e.ignoreSelectors=r.ignoreSelectors),r.rageClick!==void 0&&(e.rageClick=r.rageClick),r.deadClick!==void 0&&(e.deadClick=r.deadClick),r.httpFail!==void 0&&(e.httpFail=r.httpFail),r.redirectLoop!==void 0&&(e.redirectLoop=r.redirectLoop),r.formDataLoss!==void 0&&(e.formDataLoss=r.formDataLoss),r.sessionReplay!==void 0&&(e.sessionReplay=r.sessionReplay),e}function ts(r,e){var p,h,y,w,b,v,C;let t=(p=r==null?void 0:r.blocfeedId)!=null?p:e==null?void 0:e.blocfeed_id;if(!t)return null;let n=e?uc(e):{},i=r?es(n,r.config):n,s=e==null?void 0:e.user,o=r==null?void 0:r.user,l;(o||s)&&(l={...s!=null&&s.id?{id:s.id}:{},...s!=null&&s.email?{email:s.email}:{},...s!=null&&s.name?{name:s.name}:{},...o!=null&&o.id?{id:o.id}:{},...o!=null&&o.email?{email:o.email}:{},...o!=null&&o.name?{name:o.name}:{}},!l.id&&!l.email&&!l.name&&(l=void 0));let a=(r==null?void 0:r.trackClicks)===true?true:(e==null?void 0:e.trackClicks)!==void 0?!!e.trackClicks:false,c=(r==null?void 0:r.feedback)===true?true:((h=e==null?void 0:e.feedback)==null?void 0:h.enabled)!==void 0?!!e.feedback.enabled:false,u=r?r.embedOrigin:qi(e==null?void 0:e.embedOrigin),d=r?r.feedbackColor:((w=(y=e==null?void 0:e.feedback)==null?void 0:y.color)==null?void 0:w.trim())||ac,f=r?r.feedbackLabel:((v=(b=e==null?void 0:e.feedback)==null?void 0:b.label)==null?void 0:v.trim())||lc,g=r?r.feedbackPosition:Qi((C=e==null?void 0:e.feedback)==null?void 0:C.position),m=(e==null?void 0:e.autoInstall)!==false;return {blocfeedId:t,...l!==void 0?{user:l}:{},config:i,trackClicks:a,feedback:c,embedOrigin:u,feedbackColor:d,feedbackLabel:f,feedbackPosition:g,autoInstall:m}}var xg=60;function Rg(){if(typeof document=="undefined")return ()=>{};let r=[],e=t=>{var o,l;let n=Date.now();if(r=r.filter(a=>n-a<6e4),r.length>=xg)return;r.push(n);let i=t.target;if(!i||!(i instanceof Element))return;let s=null;try{s=(l=(o=i.innerText)==null?void 0:o.trim().slice(0,80))!=null?l:null;}catch(a){s=null;}try{zi("click",{tag:i.tagName.toLowerCase(),text:s||null,url:window.location.href});}catch(a){}};return document.addEventListener("click",e,{capture:true,passive:true}),()=>{try{document.removeEventListener("click",e,{capture:!0});}catch(t){}}}var X=null,Re=null,on=null,Pt=null,Me=false;function rs(r){var e;if(!Re){if((e=r.user)!=null&&e.id&&Zr(r.user.id),Re=new qr({blocfeedId:r.blocfeedId,config:r.config,extraSdkFeatures:["script-tag"]}),Re.install(),r.trackClicks&&!Pt&&(Pt=Rg()),r.feedback)try{on=sc({blocfeedId:r.blocfeedId,embedOrigin:r.embedOrigin,color:r.feedbackColor,label:r.feedbackLabel,position:r.feedbackPosition,...r.user!==void 0?{user:r.user}:{}});}catch(t){}Me=true;}}function ns(){if(Re){try{Re.uninstall();}catch(r){}Re=null;}if(on){try{on();}catch(r){}on=null;}if(Pt){try{Pt();}catch(r){}Pt=null;}}function Mg(r){var e,t;if(!(!r||typeof r!="object")){if(X){let n=uc(r),i={...X,config:es(X.config,n)};r.user!==void 0&&(i.user={...(e=X.user)!=null?e:{},...r.user.id!==void 0?{id:r.user.id}:{},...r.user.email!==void 0?{email:r.user.email}:{},...r.user.name!==void 0?{name:r.user.name}:{}}),r.trackClicks!==void 0&&(i.trackClicks=!!r.trackClicks),r.embedOrigin!==void 0&&(i.embedOrigin=qi(r.embedOrigin)),r.feedback&&(r.feedback.enabled!==void 0&&(i.feedback=!!r.feedback.enabled),r.feedback.color!==void 0&&r.feedback.color.trim()&&(i.feedbackColor=r.feedback.color.trim()),r.feedback.label!==void 0&&r.feedback.label.trim()&&(i.feedbackLabel=r.feedback.label),r.feedback.position!==void 0&&(i.feedbackPosition=Qi(r.feedback.position))),r.autoInstall!==void 0&&(i.autoInstall=!!r.autoInstall),r.blocfeed_id!==void 0&&r.blocfeed_id&&(i.blocfeedId=r.blocfeed_id),X=i;}else X=ts(null,r);Me&&X&&(ns(),Me=false,rs(X)),(t=r.user)!=null&&t.id&&Zr(r.user.id);}}function Tg(r,e){var t;Zr(r),X&&(X.user={...(t=X.user)!=null?t:{},id:r});}function Ag(r,e){zi(r,e);}function _g(){if(!(Me&&Re)){if(X||(X=ts(null,cc())),!X){console.warn("[BlocFeed] install() called but no blocfeed_id is configured");return}rs(X);}}function kg(){ns(),Me=false;}var fc={configure:Mg,identify:Tg,track:Ag,install:_g,uninstall:kg,SDK_VERSION:Kr};function Ng(r){if(typeof window=="undefined")return;let e=window.BlocFeed;if(e&&Array.isArray(e._q))for(let t of e._q){if(!Array.isArray(t)||typeof t[0]!="string")continue;let[n,...i]=t,s=r[n];if(typeof s=="function")try{s.apply(r,i);}catch(o){console.error("[BlocFeed] queued call failed:",n,o);}}window.BlocFeed=r;}function dc(){if(typeof document=="undefined")return null;let r=document.currentScript;return r&&r.dataset&&r.dataset.blocfeedId?r:document.querySelector("script[data-blocfeed-id]")}function an(){if(typeof window=="undefined"||typeof document=="undefined")return;let r=dc(),e=r?Ig(r.dataset):null,t=cc(),n=ts(e,t);if(!n){r&&console.warn("[BlocFeed] script-tag init: blocfeed_id missing from both data-* and window.blocfeedConfig");return}X=n,Ng(fc),X.autoInstall&&!Me&&rs(X);}if(typeof window!="undefined"){let r=window.BlocFeed;(!r||!Array.isArray(r._q))&&(window.BlocFeed=fc),dc()?an():typeof document!="undefined"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",an,{once:true}):an());}function Xb(){return Re}function Jb(){ns(),X=null,Me=false;}function Zb(){an();}function Kb(){return X}function qb(){return Me}/*! Bundled license information:
55
56
 
56
57
  rrweb/dist/rrweb.js:
57
58
  (*! *****************************************************************************
@@ -68,4 +69,4 @@ rrweb/dist/rrweb.js:
68
69
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
69
70
  PERFORMANCE OF THIS SOFTWARE.
70
71
  ***************************************************************************** *)
71
- */exports.BlocFeed=nc;exports.__autoInitForTesting=Ob;exports.__getInstalledTrackerForTesting=_b;exports.__getResolvedConfigForTesting=Db;exports.__isInstallCalledForTesting=Lb;exports.__resetForTesting=Nb;exports.buildResolvedConfig=Qi;exports.deepMerge=qi;exports.parseMasking=cg;exports.parseScriptTagAttrs=fg;return exports;})({});
72
+ */exports.BlocFeed=fc;exports.__autoInitForTesting=Zb;exports.__getInstalledTrackerForTesting=Xb;exports.__getResolvedConfigForTesting=Kb;exports.__isInstallCalledForTesting=qb;exports.__resetForTesting=Jb;exports.buildResolvedConfig=ts;exports.deepMerge=es;exports.parseMasking=Cg;exports.parseScriptTagAttrs=Ig;return exports;})({});