repoburg 1.3.291 → 1.3.293
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/agent-pane/backend/dist/index.js +20 -3
- package/agent-pane/backend/dist/server.js +20 -3
- package/package.json +1 -1
- package/tabtape/extension/dist/build-info.json +4 -4
- package/tabtape/extension/dist/manifest.json +1 -1
- package/tabtape/extension/dist/recorder.js +39 -39
- package/tabtape/extension/dist/recorder.js.map +1 -1
- package/tabtape/ui/dist/build-info.json +4 -4
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
"use strict";(()=>{var ou=Object.defineProperty,au=(e,t,r)=>t in e?ou(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,O=(e,t,r)=>au(e,typeof t!="symbol"?t+"":t,r),Ki,lu=Object.defineProperty,uu=(e,t,r)=>t in e?lu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Qi=(e,t,r)=>uu(e,typeof t!="symbol"?t+"":t,r),ee=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(ee||{}),Zi={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument","firstChild","lastChild","nextSibling","previousSibling"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},es={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},It={},vo={},cu=()=>!!globalThis.Zone;function ii(e){if(It[e])return It[e];let t=globalThis[e],r=t.prototype,i=e in Zi?Zi[e]:void 0,n=!!(i&&i.every(f=>{var l,p;return!!((p=(l=Object.getOwnPropertyDescriptor(r,f))==null?void 0:l.get)!=null&&p.toString().includes("[native code]"))})),a=e in es?es[e]:void 0,u=!!(a&&a.every(f=>{var l;return typeof r[f]=="function"&&((l=r[f])==null?void 0:l.toString().includes("[native code]"))}));if(n&&u&&!cu())return It[e]=t.prototype,t.prototype;try{let f=document.createElement("iframe");f.style.display="none",document.body.appendChild(f);let l=f.contentWindow;if(!l)return t.prototype;let p=l[e].prototype;if(!p)return f.remove(),r;let o=navigator.userAgent;return o.includes("Safari")&&!o.includes("Chrome")?(f.classList.add("rr-block"),f.setAttribute("__rrwebUntaintedMutationObserver",""),vo[e]=()=>f.remove()):f.remove(),It[e]=p}catch{return r}}var Br={};function ce(e,t,r){var i,n;let a=(i=Br[e])==null?void 0:i[r];if(a)return a.call(t);let u=ii(e),f=(n=Object.getOwnPropertyDescriptor(u,r))==null?void 0:n.get;return f?((Br[e]||(Br[e]={}))[r]=f,f.call(t)):t[r]}var $r={};function So(e,t,r){let i=`${e}.${String(r)}`;if($r[i])return $r[i].bind(t);let a=ii(e)[r];return typeof a!="function"?t[r]:($r[i]=a,a.bind(t))}function fu(e){return ce("Node",e,"ownerDocument")}function hu(e){return ce("Node",e,"childNodes")}function du(e){return ce("Node",e,"parentNode")}function pu(e){return ce("Node",e,"parentElement")}function mu(e){return ce("Node",e,"textContent")}function gu(e){return ce("Node",e,"firstChild")}function yu(e){return ce("Node",e,"lastChild")}function bu(e){return ce("Node",e,"nextSibling")}function wu(e){return ce("Node",e,"previousSibling")}function vu(e,t){return So("Node",e,"contains")(t)}function Su(e){return So("Node",e,"getRootNode")()}function Cu(e){return!e||!("host"in e)?null:ce("ShadowRoot",e,"host")}function Eu(e){return e.styleSheets}function xu(e){return!e||!("shadowRoot"in e)?null:ce("Element",e,"shadowRoot")}function Ru(e,t){return ce("Element",e,"querySelector")(t)}function Tu(e,t){return ce("Element",e,"querySelectorAll")(t)}function Mu(){return[ii("MutationObserver").constructor,vo.MutationObserver??(()=>{})]}var Co=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Co=()=>new Date().getTime());function Nu(e,t,r){try{if(!(t in e))return()=>{};let i=e[t],n=r(i);return typeof n=="function"&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:i}})),e[t]=n,()=>{e[t]=i}}catch{return()=>{}}}var ne={ownerDocument:fu,childNodes:hu,parentNode:du,parentElement:pu,textContent:mu,firstChild:gu,lastChild:yu,nextSibling:bu,previousSibling:wu,contains:vu,getRootNode:Su,host:Cu,styleSheets:Eu,shadowRoot:xu,querySelector:Ru,querySelectorAll:Tu,nowTimestamp:Co,mutationObserverCtor:Mu,patch:Nu};function Eo(e){return e.nodeType===e.ELEMENT_NODE}function ft(e){let t=e&&"host"in e&&"mode"in e&&ne.host(e)||null;return!!(t&&"shadowRoot"in t&&ne.shadowRoot(t)===e)}function ht(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Ou(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function Iu(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function Hn(e){try{let t=e.rules||e.cssRules;if(!t)return null;let r=e.href;!r&&e.ownerNode&&(r=e.ownerNode.baseURI);let i=Array.from(t,n=>xo(n,r)).join("");return Ou(i)}catch{return null}}function xo(e,t){if(Au(e)){let r;try{r=Hn(e.styleSheet)||Iu(e)}catch{r=e.cssText}return e.styleSheet.href?Vt(r,e.styleSheet.href):r}else{let r=e.cssText;return Du(e)&&e.selectorText.includes(":")&&(r=ku(r)),t?Vt(r,t):r}}function ku(e){let t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function Au(e){return"styleSheet"in e}function Du(e){return"selectorText"in e}var Wt=class{constructor(){Qi(this,"idNodeMap",new Map),Qi(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(i=>this.removeNodeFromMap(i))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){let i=r.id;this.idNodeMap.set(i,t),this.nodeMetaMap.set(t,r)}replace(t,r){let i=this.getNode(t);if(i){let n=this.nodeMetaMap.get(i);n&&this.nodeMetaMap.set(r,n)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function _u(){return new Wt}function zt({element:e,maskInputOptions:t,tagName:r,type:i,value:n,maskInputFn:a}){let u=n||"",f=i&&ke(i);return(t[r.toLowerCase()]||f&&t[f])&&(a?u=a(u,e):u="*".repeat(u.length)),u}function ke(e){return e.toLowerCase()}var ts="__rrweb_original__";function Lu(e){let t=e.getContext("2d");if(!t)return!0;let r=50;for(let i=0;i<e.width;i+=r)for(let n=0;n<e.height;n+=r){let a=t.getImageData,u=ts in a?a[ts]:a;if(new Uint32Array(u.call(t,i,n,Math.min(r,e.width-i),Math.min(r,e.height-n)).data.buffer).some(l=>l!==0))return!1}return!0}function qt(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?ke(t):null}function Ro(e,t){let r;try{r=new URL(e,t??window.location.href)}catch{return null}let i=/\.([0-9a-z]+)(?:$)/i,n=r.pathname.match(i);return n?.[1]??null}function Pu(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var Fu=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Uu=/^(?:[a-z+]+:)?\/\//i,Bu=/^www\..*/i,$u=/^(data:)([^,]*),(.*)/i;function Vt(e,t){return(e||"").replace(Fu,(r,i,n,a,u,f)=>{let l=n||u||f,p=i||a||"";if(!l)return r;if(Uu.test(l)||Bu.test(l))return`url(${p}${l}${p})`;if($u.test(l))return`url(${p}${l}${p})`;if(l[0]==="/")return`url(${p}${Pu(t)+l}${p})`;let o=l.split("#")[0],d=l.substring(o.length),c=t.split("#")[0].split("/"),s=o.split("/");c.pop();for(let m of s)m!=="."&&(m===".."?c.pop():c.push(m));return`url(${p}${c.join("/")}${d}${p})`})}var To="(?:/\\*[^*]*\\*/)|[\\s;]",Wu=new RegExp(`${To}|\\b(0)px?`,"g"),zu=new RegExp(To,"g");function kt(e,t=!1){return t?e.replace(zu,""):e.replace(Wu,"$1")}function qu(e,t,r=!1){let i=Array.from(t.childNodes),n=[],a=0;if(i.length>1&&e&&typeof e=="string"){let u=kt(e,r),f=u.length/e.length;for(let l=1;l<i.length;l++)if(i[l].textContent&&typeof i[l].textContent=="string"){let p=kt(i[l].textContent,r),o=100,d=3;for(;d<p.length&&(p[d].match(/[a-zA-Z0-9]/)||p.indexOf(p.substring(0,d),1)!==-1);d++);for(;d<p.length;d++){let c=p.substring(0,d),s=u.split(c),m=-1;if(s.length===2)m=s[0].length;else if(s.length>2&&s[0]===""&&i[l-1].textContent!=="")m=u.indexOf(c,1);else if(s.length===1){if(c=c.substring(0,c.length-1),s=u.split(c),s.length<=1)return n.push(e),n;d=o+1}else d===p.length-1&&(m=u.indexOf(c));if(s.length>=2&&d>o){let h=i[l-1].textContent;if(h&&typeof h=="string"){let g=kt(h).length;m=u.indexOf(c,g)}m===-1&&(m=s[0].length)}if(m!==-1){let h=Math.floor(m/f);for(;h>0&&h<e.length;){if(a+=1,a>50*i.length)return n.push(e),n;let g=kt(e.substring(0,h),r);if(g.length===m){n.push(e.substring(0,h)),e=e.substring(h),u=u.substring(m);break}else g.length<m?h+=Math.max(1,Math.floor((m-g.length)/f)):h-=Math.max(1,Math.floor((g.length-m)*f))}break}}}}return n.push(e),n}function Vu(e,t){return qu(e,t).join("/* rr_split */")}var ju=1,Hu=new RegExp("[^a-z0-9-_:]"),jt=-2;function Mo(){return ju++}function Gu(e){if(e instanceof HTMLFormElement)return"form";let t=ke(e.tagName);return Hu.test(t)?"div":t}var Ge,rs,Yu=/^[^ \t\n\r\u000c]+/,Xu=/^[, \t\n\r\u000c]+/;function Ju(e,t){if(t.trim()==="")return t;let r=0;function i(a){let u,f=a.exec(t.substring(r));return f?(u=f[0],r+=u.length,u):""}let n=[];for(;i(Xu),!(r>=t.length);){let a=i(Yu);if(a.slice(-1)===",")a=Je(e,a.substring(0,a.length-1)),n.push(a);else{let u="";a=Je(e,a);let f=!1;for(;;){let l=t.charAt(r);if(l===""){n.push((a+u).trim());break}else if(f)l===")"&&(f=!1);else if(l===","){r+=1,n.push((a+u).trim());break}else l==="("&&(f=!0);u+=l,r+=1}}}return n.join(", ")}var ns=new WeakMap;function Je(e,t){return!t||t.trim()===""?t:si(e,t)}function Ku(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function si(e,t){let r=ns.get(e);if(r||(r=e.createElement("a"),ns.set(e,r)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return r.setAttribute("href",t),r.href}function No(e,t,r,i){return i&&(r==="src"||r==="href"&&!(t==="use"&&i[0]==="#")||r==="xlink:href"&&i[0]!=="#"||r==="background"&&["table","td","th"].includes(t)?Je(e,i):r==="srcset"?Ju(e,i):r==="style"?Vt(i,si(e)):t==="object"&&r==="data"?Je(e,i):i)}function Oo(e,t,r){return["video","audio"].includes(e)&&ke(t)==="autoplay"}function Qu(e,t,r){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let i=e.classList.length;i--;){let n=e.classList[i];if(t.test(n))return!0}if(r)return e.matches(r)}catch{}return!1}function Ht(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r?Ht(ne.parentNode(e),t,r):!1;for(let i=e.classList.length;i--;){let n=e.classList[i];if(t.test(n))return!0}return r?Ht(ne.parentNode(e),t,r):!1}function Io(e,t,r,i){let n;if(Eo(e)){if(n=e,!ne.childNodes(n).length)return!1}else{if(ne.parentElement(e)===null)return!1;n=ne.parentElement(e)}try{if(typeof t=="string"){if(i){if(n.closest(`.${t}`))return!0}else if(n.classList.contains(t))return!0}else if(Ht(n,t,i))return!0;if(r){if(i){if(n.closest(r))return!0}else if(n.matches(r))return!0}}catch{}return!1}function Zu(e,t,r){let i=e.contentWindow;if(!i)return;let n=!1,a;try{a=i.document.readyState}catch{return}if(a!=="complete"){let f=setTimeout(()=>{n||(t(),n=!0)},r);e.addEventListener("load",()=>{clearTimeout(f),n=!0,t()});return}let u="about:blank";if(i.location.href!==u||e.src===u||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function ec(e,t,r){let i=!1,n;try{n=e.sheet}catch{return}if(n)return;let a=setTimeout(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{clearTimeout(a),i=!0,t()})}function tc(e,t){let{doc:r,mirror:i,blockClass:n,blockSelector:a,needsMask:u,inlineStylesheet:f,maskInputOptions:l={},maskTextFn:p,maskInputFn:o,dataURLOptions:d={},inlineImages:c,recordCanvas:s,keepIframeSrcFn:m,newlyAddedElement:h=!1,cssCaptured:g=!1}=t,C=rc(r,i);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:ee.Document,childNodes:[],compatMode:e.compatMode}:{type:ee.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:ee.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:C};case e.ELEMENT_NODE:return ic(e,{doc:r,blockClass:n,blockSelector:a,inlineStylesheet:f,maskInputOptions:l,maskInputFn:o,dataURLOptions:d,inlineImages:c,recordCanvas:s,keepIframeSrcFn:m,newlyAddedElement:h,rootId:C});case e.TEXT_NODE:return nc(e,{doc:r,needsMask:u,maskTextFn:p,rootId:C,cssCaptured:g});case e.CDATA_SECTION_NODE:return{type:ee.CDATA,textContent:"",rootId:C};case e.COMMENT_NODE:return{type:ee.Comment,textContent:ne.textContent(e)||"",rootId:C};default:return!1}}function rc(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return r===1?void 0:r}function nc(e,t){let{needsMask:r,maskTextFn:i,rootId:n,cssCaptured:a}=t,u=ne.parentNode(e),f=u&&u.tagName,l="",p=f==="STYLE"?!0:void 0,o=f==="SCRIPT"?!0:void 0;return o?l="SCRIPT_PLACEHOLDER":a||(l=ne.textContent(e),p&&l&&(l=Vt(l,si(t.doc)))),!p&&!o&&l&&r&&(l=i?i(l,ne.parentElement(e)):l.replace(/[\S]/g,"*")),{type:ee.Text,textContent:l||"",rootId:n}}function ic(e,t){let{doc:r,blockClass:i,blockSelector:n,inlineStylesheet:a,maskInputOptions:u={},maskInputFn:f,dataURLOptions:l={},inlineImages:p,recordCanvas:o,keepIframeSrcFn:d,newlyAddedElement:c=!1,rootId:s}=t,m=Qu(e,i,n),h=Gu(e),g={},C=e.attributes.length;for(let v=0;v<C;v++){let E=e.attributes[v];Oo(h,E.name,E.value)||(g[E.name]=No(r,h,ke(E.name),E.value))}if(h==="link"&&a){let v=Array.from(r.styleSheets).find(w=>w.href===e.href),E=null;v&&(E=Hn(v)),E&&(delete g.rel,delete g.href,g._cssText=E)}if(h==="style"&&e.sheet){let v=Hn(e.sheet);v&&(e.childNodes.length>1&&(v=Vu(v,e)),g._cssText=v)}if(["input","textarea","select"].includes(h)){let v=e.value,E=e.checked;g.type!=="radio"&&g.type!=="checkbox"&&g.type!=="submit"&&g.type!=="button"&&v?g.value=zt({element:e,type:qt(e),tagName:h,value:v,maskInputOptions:u,maskInputFn:f}):E&&(g.checked=E)}if(h==="option"&&(e.selected&&!u.select?g.selected=!0:delete g.selected),h==="dialog"&&e.open&&(g.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),h==="canvas"&&o){if(e.__context==="2d")Lu(e)||(g.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){let v=e.toDataURL(l.type,l.quality),E=r.createElement("canvas");E.width=e.width,E.height=e.height;let w=E.toDataURL(l.type,l.quality);v!==w&&(g.rr_dataURL=v)}}if(h==="img"&&p){Ge||(Ge=r.createElement("canvas"),rs=Ge.getContext("2d"));let v=e,E=v.currentSrc||v.getAttribute("src")||"<unknown-src>",w=v.crossOrigin,y=()=>{v.removeEventListener("load",y);try{Ge.width=v.naturalWidth,Ge.height=v.naturalHeight,rs.drawImage(v,0,0),g.rr_dataURL=Ge.toDataURL(l.type,l.quality)}catch(S){if(v.crossOrigin!=="anonymous"){v.crossOrigin="anonymous",v.complete&&v.naturalWidth!==0?y():v.addEventListener("load",y);return}else console.warn(`Cannot inline img src=${E}! Error: ${S}`)}v.crossOrigin==="anonymous"&&(w?g.crossOrigin=w:v.removeAttribute("crossorigin"))};v.complete&&v.naturalWidth!==0?y():v.addEventListener("load",y)}if(["audio","video"].includes(h)){let v=g;v.rr_mediaState=e.paused?"paused":"played",v.rr_mediaCurrentTime=e.currentTime,v.rr_mediaPlaybackRate=e.playbackRate,v.rr_mediaMuted=e.muted,v.rr_mediaLoop=e.loop,v.rr_mediaVolume=e.volume}if(c||(e.scrollLeft&&(g.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(g.rr_scrollTop=e.scrollTop)),m){let{width:v,height:E}=e.getBoundingClientRect();g={class:g.class,rr_width:`${v}px`,rr_height:`${E}px`}}h==="iframe"&&!d(g.src)&&(e.contentDocument||(g.rr_src=g.src),delete g.src);let b;try{customElements.get(h)&&(b=!0)}catch{}return{type:ee.Element,tagName:h,attributes:g,childNodes:[],isSVG:Ku(e)||void 0,needBlock:m,rootId:s,isCustom:b}}function q(e){return e==null?"":e.toLowerCase()}function ko(e){return e===!0||e==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:e==="all",headMetaDescKeywords:e==="all",headTitleMutations:e==="all"}:e||{}}function sc(e,t){if(t.comment&&e.type===ee.Comment)return!0;if(e.type===ee.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Ro(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(q(e.attributes.name).match(/^msapplication-tile(image|color)$/)||q(e.attributes.name)==="application-name"||q(e.attributes.rel)==="icon"||q(e.attributes.rel)==="apple-touch-icon"||q(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&q(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(q(e.attributes.property).match(/^(og|twitter|fb):/)||q(e.attributes.name).match(/^(og|twitter):/)||q(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(q(e.attributes.name)==="robots"||q(e.attributes.name)==="googlebot"||q(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(q(e.attributes.name)==="author"||q(e.attributes.name)==="generator"||q(e.attributes.name)==="framework"||q(e.attributes.name)==="publisher"||q(e.attributes.name)==="progid"||q(e.attributes.property).match(/^article:/)||q(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(q(e.attributes.name)==="google-site-verification"||q(e.attributes.name)==="yandex-verification"||q(e.attributes.name)==="csrf-token"||q(e.attributes.name)==="p:domain_verify"||q(e.attributes.name)==="verify-v1"||q(e.attributes.name)==="verification"||q(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Ke(e,t){let{doc:r,mirror:i,blockClass:n,blockSelector:a,maskTextClass:u,maskTextSelector:f,skipChild:l=!1,inlineStylesheet:p=!0,maskInputOptions:o={},maskTextFn:d,maskInputFn:c,slimDOMOptions:s,dataURLOptions:m={},inlineImages:h=!1,recordCanvas:g=!1,onSerialize:C,onIframeLoad:b,iframeLoadTimeout:v=5e3,onStylesheetLoad:E,stylesheetLoadTimeout:w=5e3,keepIframeSrcFn:y=()=>!1,newlyAddedElement:S=!1,cssCaptured:x=!1}=t,{needsMask:M}=t,{preserveWhiteSpace:T=!0}=t;M||(M=Io(e,u,f,M===void 0));let k=tc(e,{doc:r,mirror:i,blockClass:n,blockSelector:a,needsMask:M,inlineStylesheet:p,maskInputOptions:o,maskTextFn:d,maskInputFn:c,dataURLOptions:m,inlineImages:h,recordCanvas:g,keepIframeSrcFn:y,newlyAddedElement:S,cssCaptured:x});if(!k)return console.warn(e,"not serialized"),null;let I;i.hasNode(e)?I=i.getId(e):sc(k,s)||!T&&k.type===ee.Text&&!k.textContent.replace(/^\s+|\s+$/gm,"").length?I=jt:I=Mo();let R=Object.assign(k,{id:I});if(i.add(e,R),I===jt)return null;C&&C(e);let te=!l;if(R.type===ee.Element){te=te&&!R.needBlock,delete R.needBlock;let U=ne.shadowRoot(e);U&&ht(U)&&(R.isShadowHost=!0)}if((R.type===ee.Document||R.type===ee.Element)&&te){s.headWhitespace&&R.type===ee.Element&&R.tagName==="head"&&(T=!1);let U={doc:r,mirror:i,blockClass:n,blockSelector:a,needsMask:M,maskTextClass:u,maskTextSelector:f,skipChild:l,inlineStylesheet:p,maskInputOptions:o,maskTextFn:d,maskInputFn:c,slimDOMOptions:s,dataURLOptions:m,inlineImages:h,recordCanvas:g,preserveWhiteSpace:T,onSerialize:C,onIframeLoad:b,iframeLoadTimeout:v,onStylesheetLoad:E,stylesheetLoadTimeout:w,keepIframeSrcFn:y,cssCaptured:!1};if(!(R.type===ee.Element&&R.tagName==="textarea"&&R.attributes.value!==void 0)){R.type===ee.Element&&R.attributes._cssText!==void 0&&typeof R.attributes._cssText=="string"&&(U.cssCaptured=!0);for(let j of Array.from(ne.childNodes(e))){let Q=Ke(j,U);Q&&R.childNodes.push(Q)}}let P=null;if(Eo(e)&&(P=ne.shadowRoot(e)))for(let j of Array.from(ne.childNodes(P))){let Q=Ke(j,U);Q&&(ht(P)&&(Q.isShadow=!0),R.childNodes.push(Q))}}let re=ne.parentNode(e);return re&&ft(re)&&ht(re)&&(R.isShadow=!0),R.type===ee.Element&&R.tagName==="iframe"&&Zu(e,()=>{let U=e.contentDocument;if(U&&b){let P=Ke(U,{doc:U,mirror:i,blockClass:n,blockSelector:a,needsMask:M,maskTextClass:u,maskTextSelector:f,skipChild:!1,inlineStylesheet:p,maskInputOptions:o,maskTextFn:d,maskInputFn:c,slimDOMOptions:s,dataURLOptions:m,inlineImages:h,recordCanvas:g,preserveWhiteSpace:T,onSerialize:C,onIframeLoad:b,iframeLoadTimeout:v,onStylesheetLoad:E,stylesheetLoadTimeout:w,keepIframeSrcFn:y});P&&b(e,P)}},v),R.type===ee.Element&&R.tagName==="link"&&typeof R.attributes.rel=="string"&&(R.attributes.rel==="stylesheet"||R.attributes.rel==="preload"&&typeof R.attributes.href=="string"&&Ro(R.attributes.href)==="css")&&ec(e,()=>{if(E){let U=Ke(e,{doc:r,mirror:i,blockClass:n,blockSelector:a,needsMask:M,maskTextClass:u,maskTextSelector:f,skipChild:!1,inlineStylesheet:p,maskInputOptions:o,maskTextFn:d,maskInputFn:c,slimDOMOptions:s,dataURLOptions:m,inlineImages:h,recordCanvas:g,preserveWhiteSpace:T,onSerialize:C,onIframeLoad:b,iframeLoadTimeout:v,onStylesheetLoad:E,stylesheetLoadTimeout:w,keepIframeSrcFn:y});U&&E(e,U)}},w),R}function oc(e,t){let{mirror:r=new Wt,blockClass:i="rr-block",blockSelector:n=null,maskTextClass:a="rr-mask",maskTextSelector:u=null,inlineStylesheet:f=!0,inlineImages:l=!1,recordCanvas:p=!1,maskAllInputs:o=!1,maskTextFn:d,maskInputFn:c,slimDOM:s=!1,dataURLOptions:m,preserveWhiteSpace:h,onSerialize:g,onIframeLoad:C,iframeLoadTimeout:b,onStylesheetLoad:v,stylesheetLoadTimeout:E,keepIframeSrcFn:w=()=>!1}=t,y=o===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:o===!1?{password:!0}:o,S=ko(s);return Ke(e,{doc:e,mirror:r,blockClass:i,blockSelector:n,maskTextClass:a,maskTextSelector:u,skipChild:!1,inlineStylesheet:f,maskInputOptions:y,maskTextFn:d,maskInputFn:c,slimDOMOptions:S,dataURLOptions:m,inlineImages:l,recordCanvas:p,preserveWhiteSpace:h,onSerialize:g,onIframeLoad:C,iframeLoadTimeout:b,onStylesheetLoad:v,stylesheetLoadTimeout:E,keepIframeSrcFn:w,newlyAddedElement:!1})}var ac=/(max|min)-device-(width|height)/,_h=new RegExp(ac.source,"g");function lc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function uc(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}),r}var At={exports:{}},is;function cc(){if(is)return At.exports;is=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return At.exports=t(),At.exports.createColors=t,At.exports}var fc={},hc=Object.freeze(Object.defineProperty({__proto__:null,default:fc},Symbol.toStringTag,{value:"Module"})),ve=uc(hc),Wr,ss;function oi(){if(ss)return Wr;ss=1;let e=cc(),t=ve;class r extends Error{constructor(n,a,u,f,l,p){super(n),this.name="CssSyntaxError",this.reason=n,l&&(this.file=l),f&&(this.source=f),p&&(this.plugin=p),typeof a<"u"&&typeof u<"u"&&(typeof a=="number"?(this.line=a,this.column=u):(this.line=a.line,this.column=a.column,this.endLine=u.line,this.endColumn=u.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(n){if(!this.source)return"";let a=this.source;n==null&&(n=e.isColorSupported),t&&n&&(a=t(a));let u=a.split(/\r?\n/),f=Math.max(this.line-3,0),l=Math.min(this.line+2,u.length),p=String(l).length,o,d;if(n){let{bold:c,gray:s,red:m}=e.createColors(!0);o=h=>c(m(h)),d=h=>s(h)}else o=d=c=>c;return u.slice(f,l).map((c,s)=>{let m=f+1+s,h=" "+(" "+m).slice(-p)+" | ";if(m===this.line){let g=d(h.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+d(h)+c+`
|
|
2
|
-
`+g+o("^")}return" "+d
|
|
1
|
+
"use strict";(()=>{var Du=Object.defineProperty,_u=(e,t,r)=>t in e?Du(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,O=(e,t,r)=>_u(e,typeof t!="symbol"?t+"":t,r),hs,Lu=Object.defineProperty,Pu=(e,t,r)=>t in e?Lu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ps=(e,t,r)=>Pu(e,typeof t!="symbol"?t+"":t,r),ee=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(ee||{}),ms={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument","firstChild","lastChild","nextSibling","previousSibling"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},gs={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Pt={},Po={},Fu=()=>!!globalThis.Zone;function hi(e){if(Pt[e])return Pt[e];let t=globalThis[e],r=t.prototype,i=e in ms?ms[e]:void 0,n=!!(i&&i.every(c=>{var a,p;return!!((p=(a=Object.getOwnPropertyDescriptor(r,c))==null?void 0:a.get)!=null&&p.toString().includes("[native code]"))})),l=e in gs?gs[e]:void 0,u=!!(l&&l.every(c=>{var a;return typeof r[c]=="function"&&((a=r[c])==null?void 0:a.toString().includes("[native code]"))}));if(n&&u&&!Fu())return Pt[e]=t.prototype,t.prototype;try{let c=document.createElement("iframe");c.style.display="none",document.body.appendChild(c);let a=c.contentWindow;if(!a)return t.prototype;let p=a[e].prototype;if(!p)return c.remove(),r;let o=navigator.userAgent;return o.includes("Safari")&&!o.includes("Chrome")?(c.classList.add("rr-block"),c.setAttribute("__rrwebUntaintedMutationObserver",""),Po[e]=()=>c.remove()):c.remove(),Pt[e]=p}catch{return r}}var Yr={};function fe(e,t,r){var i,n;let l=(i=Yr[e])==null?void 0:i[r];if(l)return l.call(t);let u=hi(e),c=(n=Object.getOwnPropertyDescriptor(u,r))==null?void 0:n.get;return c?((Yr[e]||(Yr[e]={}))[r]=c,c.call(t)):t[r]}var Xr={};function Fo(e,t,r){let i=`${e}.${String(r)}`;if(Xr[i])return Xr[i].bind(t);let l=hi(e)[r];return typeof l!="function"?t[r]:(Xr[i]=l,l.bind(t))}function Uu(e){return fe("Node",e,"ownerDocument")}function Bu(e){return fe("Node",e,"childNodes")}function $u(e){return fe("Node",e,"parentNode")}function Wu(e){return fe("Node",e,"parentElement")}function zu(e){return fe("Node",e,"textContent")}function qu(e){return fe("Node",e,"firstChild")}function ju(e){return fe("Node",e,"lastChild")}function Vu(e){return fe("Node",e,"nextSibling")}function Hu(e){return fe("Node",e,"previousSibling")}function Gu(e,t){return Fo("Node",e,"contains")(t)}function Yu(e){return Fo("Node",e,"getRootNode")()}function Xu(e){return!e||!("host"in e)?null:fe("ShadowRoot",e,"host")}function Ju(e){return e.styleSheets}function Ku(e){return!e||!("shadowRoot"in e)?null:fe("Element",e,"shadowRoot")}function Qu(e,t){return fe("Element",e,"querySelector")(t)}function Zu(e,t){return fe("Element",e,"querySelectorAll")(t)}function ec(){return[hi("MutationObserver").constructor,Po.MutationObserver??(()=>{})]}var Uo=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Uo=()=>new Date().getTime());function tc(e,t,r){try{if(!(t in e))return()=>{};let i=e[t],n=r(i);return typeof n=="function"&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:i}})),e[t]=n,()=>{e[t]=i}}catch{return()=>{}}}var ne={ownerDocument:Uu,childNodes:Bu,parentNode:$u,parentElement:Wu,textContent:zu,firstChild:qu,lastChild:ju,nextSibling:Vu,previousSibling:Hu,contains:Gu,getRootNode:Yu,host:Xu,styleSheets:Ju,shadowRoot:Ku,querySelector:Qu,querySelectorAll:Zu,nowTimestamp:Uo,mutationObserverCtor:ec,patch:tc};function Bo(e){return e.nodeType===e.ELEMENT_NODE}function pt(e){let t=e&&"host"in e&&"mode"in e&&ne.host(e)||null;return!!(t&&"shadowRoot"in t&&ne.shadowRoot(t)===e)}function mt(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function rc(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function nc(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function ti(e){try{let t=e.rules||e.cssRules;if(!t)return null;let r=e.href;!r&&e.ownerNode&&(r=e.ownerNode.baseURI);let i=Array.from(t,n=>$o(n,r)).join("");return rc(i)}catch{return null}}function $o(e,t){if(sc(e)){let r;try{r=ti(e.styleSheet)||nc(e)}catch{r=e.cssText}return e.styleSheet.href?Jt(r,e.styleSheet.href):r}else{let r=e.cssText;return oc(e)&&e.selectorText.includes(":")&&(r=ic(r)),t?Jt(r,t):r}}function ic(e){let t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function sc(e){return"styleSheet"in e}function oc(e){return"selectorText"in e}var Gt=class{constructor(){ps(this,"idNodeMap",new Map),ps(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(i=>this.removeNodeFromMap(i))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){let i=r.id;this.idNodeMap.set(i,t),this.nodeMetaMap.set(t,r)}replace(t,r){let i=this.getNode(t);if(i){let n=this.nodeMetaMap.get(i);n&&this.nodeMetaMap.set(r,n)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function ac(){return new Gt}function Yt({element:e,maskInputOptions:t,tagName:r,type:i,value:n,maskInputFn:l}){let u=n||"",c=i&&Ae(i);return(t[r.toLowerCase()]||c&&t[c])&&(l?u=l(u,e):u="*".repeat(u.length)),u}function Ae(e){return e.toLowerCase()}var ys="__rrweb_original__";function lc(e){let t=e.getContext("2d");if(!t)return!0;let r=50;for(let i=0;i<e.width;i+=r)for(let n=0;n<e.height;n+=r){let l=t.getImageData,u=ys in l?l[ys]:l;if(new Uint32Array(u.call(t,i,n,Math.min(r,e.width-i),Math.min(r,e.height-n)).data.buffer).some(a=>a!==0))return!1}return!0}function Xt(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Ae(t):null}function Wo(e,t){let r;try{r=new URL(e,t??window.location.href)}catch{return null}let i=/\.([0-9a-z]+)(?:$)/i,n=r.pathname.match(i);return n?.[1]??null}function uc(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var cc=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,fc=/^(?:[a-z+]+:)?\/\//i,dc=/^www\..*/i,hc=/^(data:)([^,]*),(.*)/i;function Jt(e,t){return(e||"").replace(cc,(r,i,n,l,u,c)=>{let a=n||u||c,p=i||l||"";if(!a)return r;if(fc.test(a)||dc.test(a))return`url(${p}${a}${p})`;if(hc.test(a))return`url(${p}${a}${p})`;if(a[0]==="/")return`url(${p}${uc(t)+a}${p})`;let o=a.split("#")[0],h=a.substring(o.length),f=t.split("#")[0].split("/"),s=o.split("/");f.pop();for(let m of s)m!=="."&&(m===".."?f.pop():f.push(m));return`url(${p}${f.join("/")}${h}${p})`})}var zo="(?:/\\*[^*]*\\*/)|[\\s;]",pc=new RegExp(`${zo}|\\b(0)px?`,"g"),mc=new RegExp(zo,"g");function Ft(e,t=!1){return t?e.replace(mc,""):e.replace(pc,"$1")}function gc(e,t,r=!1){let i=Array.from(t.childNodes),n=[],l=0;if(i.length>1&&e&&typeof e=="string"){let u=Ft(e,r),c=u.length/e.length;for(let a=1;a<i.length;a++)if(i[a].textContent&&typeof i[a].textContent=="string"){let p=Ft(i[a].textContent,r),o=100,h=3;for(;h<p.length&&(p[h].match(/[a-zA-Z0-9]/)||p.indexOf(p.substring(0,h),1)!==-1);h++);for(;h<p.length;h++){let f=p.substring(0,h),s=u.split(f),m=-1;if(s.length===2)m=s[0].length;else if(s.length>2&&s[0]===""&&i[a-1].textContent!=="")m=u.indexOf(f,1);else if(s.length===1){if(f=f.substring(0,f.length-1),s=u.split(f),s.length<=1)return n.push(e),n;h=o+1}else h===p.length-1&&(m=u.indexOf(f));if(s.length>=2&&h>o){let d=i[a-1].textContent;if(d&&typeof d=="string"){let g=Ft(d).length;m=u.indexOf(f,g)}m===-1&&(m=s[0].length)}if(m!==-1){let d=Math.floor(m/c);for(;d>0&&d<e.length;){if(l+=1,l>50*i.length)return n.push(e),n;let g=Ft(e.substring(0,d),r);if(g.length===m){n.push(e.substring(0,d)),e=e.substring(d),u=u.substring(m);break}else g.length<m?d+=Math.max(1,Math.floor((m-g.length)/c)):d-=Math.max(1,Math.floor((g.length-m)*c))}break}}}}return n.push(e),n}function yc(e,t){return gc(e,t).join("/* rr_split */")}var bc=1,wc=new RegExp("[^a-z0-9-_:]"),Kt=-2;function qo(){return bc++}function vc(e){if(e instanceof HTMLFormElement)return"form";let t=Ae(e.tagName);return wc.test(t)?"div":t}var Ye,bs,Sc=/^[^ \t\n\r\u000c]+/,Ec=/^[, \t\n\r\u000c]+/;function Cc(e,t){if(t.trim()==="")return t;let r=0;function i(l){let u,c=l.exec(t.substring(r));return c?(u=c[0],r+=u.length,u):""}let n=[];for(;i(Ec),!(r>=t.length);){let l=i(Sc);if(l.slice(-1)===",")l=Ke(e,l.substring(0,l.length-1)),n.push(l);else{let u="";l=Ke(e,l);let c=!1;for(;;){let a=t.charAt(r);if(a===""){n.push((l+u).trim());break}else if(c)a===")"&&(c=!1);else if(a===","){r+=1,n.push((l+u).trim());break}else a==="("&&(c=!0);u+=a,r+=1}}}return n.join(", ")}var ws=new WeakMap;function Ke(e,t){return!t||t.trim()===""?t:pi(e,t)}function xc(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function pi(e,t){let r=ws.get(e);if(r||(r=e.createElement("a"),ws.set(e,r)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return r.setAttribute("href",t),r.href}function jo(e,t,r,i){return i&&(r==="src"||r==="href"&&!(t==="use"&&i[0]==="#")||r==="xlink:href"&&i[0]!=="#"||r==="background"&&["table","td","th"].includes(t)?Ke(e,i):r==="srcset"?Cc(e,i):r==="style"?Jt(i,pi(e)):t==="object"&&r==="data"?Ke(e,i):i)}function Vo(e,t,r){return["video","audio"].includes(e)&&Ae(t)==="autoplay"}function Rc(e,t,r){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let i=e.classList.length;i--;){let n=e.classList[i];if(t.test(n))return!0}if(r)return e.matches(r)}catch{}return!1}function Qt(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r?Qt(ne.parentNode(e),t,r):!1;for(let i=e.classList.length;i--;){let n=e.classList[i];if(t.test(n))return!0}return r?Qt(ne.parentNode(e),t,r):!1}function Ho(e,t,r,i){let n;if(Bo(e)){if(n=e,!ne.childNodes(n).length)return!1}else{if(ne.parentElement(e)===null)return!1;n=ne.parentElement(e)}try{if(typeof t=="string"){if(i){if(n.closest(`.${t}`))return!0}else if(n.classList.contains(t))return!0}else if(Qt(n,t,i))return!0;if(r){if(i){if(n.closest(r))return!0}else if(n.matches(r))return!0}}catch{}return!1}function Tc(e,t,r){let i=e.contentWindow;if(!i)return;let n=!1,l;try{l=i.document.readyState}catch{return}if(l!=="complete"){let c=setTimeout(()=>{n||(t(),n=!0)},r);e.addEventListener("load",()=>{clearTimeout(c),n=!0,t()});return}let u="about:blank";if(i.location.href!==u||e.src===u||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Mc(e,t,r){let i=!1,n;try{n=e.sheet}catch{return}if(n)return;let l=setTimeout(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{clearTimeout(l),i=!0,t()})}function Nc(e,t){let{doc:r,mirror:i,blockClass:n,blockSelector:l,needsMask:u,inlineStylesheet:c,maskInputOptions:a={},maskTextFn:p,maskInputFn:o,dataURLOptions:h={},inlineImages:f,recordCanvas:s,keepIframeSrcFn:m,newlyAddedElement:d=!1,cssCaptured:g=!1}=t,E=Oc(r,i);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:ee.Document,childNodes:[],compatMode:e.compatMode}:{type:ee.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:ee.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:E};case e.ELEMENT_NODE:return Ic(e,{doc:r,blockClass:n,blockSelector:l,inlineStylesheet:c,maskInputOptions:a,maskInputFn:o,dataURLOptions:h,inlineImages:f,recordCanvas:s,keepIframeSrcFn:m,newlyAddedElement:d,rootId:E});case e.TEXT_NODE:return kc(e,{doc:r,needsMask:u,maskTextFn:p,rootId:E,cssCaptured:g});case e.CDATA_SECTION_NODE:return{type:ee.CDATA,textContent:"",rootId:E};case e.COMMENT_NODE:return{type:ee.Comment,textContent:ne.textContent(e)||"",rootId:E};default:return!1}}function Oc(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return r===1?void 0:r}function kc(e,t){let{needsMask:r,maskTextFn:i,rootId:n,cssCaptured:l}=t,u=ne.parentNode(e),c=u&&u.tagName,a="",p=c==="STYLE"?!0:void 0,o=c==="SCRIPT"?!0:void 0;return o?a="SCRIPT_PLACEHOLDER":l||(a=ne.textContent(e),p&&a&&(a=Jt(a,pi(t.doc)))),!p&&!o&&a&&r&&(a=i?i(a,ne.parentElement(e)):a.replace(/[\S]/g,"*")),{type:ee.Text,textContent:a||"",rootId:n}}function Ic(e,t){let{doc:r,blockClass:i,blockSelector:n,inlineStylesheet:l,maskInputOptions:u={},maskInputFn:c,dataURLOptions:a={},inlineImages:p,recordCanvas:o,keepIframeSrcFn:h,newlyAddedElement:f=!1,rootId:s}=t,m=Rc(e,i,n),d=vc(e),g={},E=e.attributes.length;for(let v=0;v<E;v++){let C=e.attributes[v];Vo(d,C.name,C.value)||(g[C.name]=jo(r,d,Ae(C.name),C.value))}if(d==="link"&&l){let v=Array.from(r.styleSheets).find(w=>w.href===e.href),C=null;v&&(C=ti(v)),C&&(delete g.rel,delete g.href,g._cssText=C)}if(d==="style"&&e.sheet){let v=ti(e.sheet);v&&(e.childNodes.length>1&&(v=yc(v,e)),g._cssText=v)}if(["input","textarea","select"].includes(d)){let v=e.value,C=e.checked;g.type!=="radio"&&g.type!=="checkbox"&&g.type!=="submit"&&g.type!=="button"&&v?g.value=Yt({element:e,type:Xt(e),tagName:d,value:v,maskInputOptions:u,maskInputFn:c}):C&&(g.checked=C)}if(d==="option"&&(e.selected&&!u.select?g.selected=!0:delete g.selected),d==="dialog"&&e.open&&(g.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),d==="canvas"&&o){if(e.__context==="2d")lc(e)||(g.rr_dataURL=e.toDataURL(a.type,a.quality));else if(!("__context"in e)){let v=e.toDataURL(a.type,a.quality),C=r.createElement("canvas");C.width=e.width,C.height=e.height;let w=C.toDataURL(a.type,a.quality);v!==w&&(g.rr_dataURL=v)}}if(d==="img"&&p){Ye||(Ye=r.createElement("canvas"),bs=Ye.getContext("2d"));let v=e,C=v.currentSrc||v.getAttribute("src")||"<unknown-src>",w=v.crossOrigin,y=()=>{v.removeEventListener("load",y);try{Ye.width=v.naturalWidth,Ye.height=v.naturalHeight,bs.drawImage(v,0,0),g.rr_dataURL=Ye.toDataURL(a.type,a.quality)}catch(S){if(v.crossOrigin!=="anonymous"){v.crossOrigin="anonymous",v.complete&&v.naturalWidth!==0?y():v.addEventListener("load",y);return}else console.warn(`Cannot inline img src=${C}! Error: ${S}`)}v.crossOrigin==="anonymous"&&(w?g.crossOrigin=w:v.removeAttribute("crossorigin"))};v.complete&&v.naturalWidth!==0?y():v.addEventListener("load",y)}if(["audio","video"].includes(d)){let v=g;v.rr_mediaState=e.paused?"paused":"played",v.rr_mediaCurrentTime=e.currentTime,v.rr_mediaPlaybackRate=e.playbackRate,v.rr_mediaMuted=e.muted,v.rr_mediaLoop=e.loop,v.rr_mediaVolume=e.volume}if(f||(e.scrollLeft&&(g.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(g.rr_scrollTop=e.scrollTop)),m){let{width:v,height:C}=e.getBoundingClientRect();g={class:g.class,rr_width:`${v}px`,rr_height:`${C}px`}}d==="iframe"&&!h(g.src)&&(e.contentDocument||(g.rr_src=g.src),delete g.src);let b;try{customElements.get(d)&&(b=!0)}catch{}return{type:ee.Element,tagName:d,attributes:g,childNodes:[],isSVG:xc(e)||void 0,needBlock:m,rootId:s,isCustom:b}}function q(e){return e==null?"":e.toLowerCase()}function Go(e){return e===!0||e==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:e==="all",headMetaDescKeywords:e==="all",headTitleMutations:e==="all"}:e||{}}function Ac(e,t){if(t.comment&&e.type===ee.Comment)return!0;if(e.type===ee.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Wo(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(q(e.attributes.name).match(/^msapplication-tile(image|color)$/)||q(e.attributes.name)==="application-name"||q(e.attributes.rel)==="icon"||q(e.attributes.rel)==="apple-touch-icon"||q(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&q(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(q(e.attributes.property).match(/^(og|twitter|fb):/)||q(e.attributes.name).match(/^(og|twitter):/)||q(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(q(e.attributes.name)==="robots"||q(e.attributes.name)==="googlebot"||q(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(q(e.attributes.name)==="author"||q(e.attributes.name)==="generator"||q(e.attributes.name)==="framework"||q(e.attributes.name)==="publisher"||q(e.attributes.name)==="progid"||q(e.attributes.property).match(/^article:/)||q(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(q(e.attributes.name)==="google-site-verification"||q(e.attributes.name)==="yandex-verification"||q(e.attributes.name)==="csrf-token"||q(e.attributes.name)==="p:domain_verify"||q(e.attributes.name)==="verify-v1"||q(e.attributes.name)==="verification"||q(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Qe(e,t){let{doc:r,mirror:i,blockClass:n,blockSelector:l,maskTextClass:u,maskTextSelector:c,skipChild:a=!1,inlineStylesheet:p=!0,maskInputOptions:o={},maskTextFn:h,maskInputFn:f,slimDOMOptions:s,dataURLOptions:m={},inlineImages:d=!1,recordCanvas:g=!1,onSerialize:E,onIframeLoad:b,iframeLoadTimeout:v=5e3,onStylesheetLoad:C,stylesheetLoadTimeout:w=5e3,keepIframeSrcFn:y=()=>!1,newlyAddedElement:S=!1,cssCaptured:x=!1}=t,{needsMask:M}=t,{preserveWhiteSpace:T=!0}=t;M||(M=Ho(e,u,c,M===void 0));let I=Nc(e,{doc:r,mirror:i,blockClass:n,blockSelector:l,needsMask:M,inlineStylesheet:p,maskInputOptions:o,maskTextFn:h,maskInputFn:f,dataURLOptions:m,inlineImages:d,recordCanvas:g,keepIframeSrcFn:y,newlyAddedElement:S,cssCaptured:x});if(!I)return console.warn(e,"not serialized"),null;let k;i.hasNode(e)?k=i.getId(e):Ac(I,s)||!T&&I.type===ee.Text&&!I.textContent.replace(/^\s+|\s+$/gm,"").length?k=Kt:k=qo();let R=Object.assign(I,{id:k});if(i.add(e,R),k===Kt)return null;E&&E(e);let te=!a;if(R.type===ee.Element){te=te&&!R.needBlock,delete R.needBlock;let U=ne.shadowRoot(e);U&&mt(U)&&(R.isShadowHost=!0)}if((R.type===ee.Document||R.type===ee.Element)&&te){s.headWhitespace&&R.type===ee.Element&&R.tagName==="head"&&(T=!1);let U={doc:r,mirror:i,blockClass:n,blockSelector:l,needsMask:M,maskTextClass:u,maskTextSelector:c,skipChild:a,inlineStylesheet:p,maskInputOptions:o,maskTextFn:h,maskInputFn:f,slimDOMOptions:s,dataURLOptions:m,inlineImages:d,recordCanvas:g,preserveWhiteSpace:T,onSerialize:E,onIframeLoad:b,iframeLoadTimeout:v,onStylesheetLoad:C,stylesheetLoadTimeout:w,keepIframeSrcFn:y,cssCaptured:!1};if(!(R.type===ee.Element&&R.tagName==="textarea"&&R.attributes.value!==void 0)){R.type===ee.Element&&R.attributes._cssText!==void 0&&typeof R.attributes._cssText=="string"&&(U.cssCaptured=!0);for(let V of Array.from(ne.childNodes(e))){let Q=Qe(V,U);Q&&R.childNodes.push(Q)}}let P=null;if(Bo(e)&&(P=ne.shadowRoot(e)))for(let V of Array.from(ne.childNodes(P))){let Q=Qe(V,U);Q&&(mt(P)&&(Q.isShadow=!0),R.childNodes.push(Q))}}let re=ne.parentNode(e);return re&&pt(re)&&mt(re)&&(R.isShadow=!0),R.type===ee.Element&&R.tagName==="iframe"&&Tc(e,()=>{let U=e.contentDocument;if(U&&b){let P=Qe(U,{doc:U,mirror:i,blockClass:n,blockSelector:l,needsMask:M,maskTextClass:u,maskTextSelector:c,skipChild:!1,inlineStylesheet:p,maskInputOptions:o,maskTextFn:h,maskInputFn:f,slimDOMOptions:s,dataURLOptions:m,inlineImages:d,recordCanvas:g,preserveWhiteSpace:T,onSerialize:E,onIframeLoad:b,iframeLoadTimeout:v,onStylesheetLoad:C,stylesheetLoadTimeout:w,keepIframeSrcFn:y});P&&b(e,P)}},v),R.type===ee.Element&&R.tagName==="link"&&typeof R.attributes.rel=="string"&&(R.attributes.rel==="stylesheet"||R.attributes.rel==="preload"&&typeof R.attributes.href=="string"&&Wo(R.attributes.href)==="css")&&Mc(e,()=>{if(C){let U=Qe(e,{doc:r,mirror:i,blockClass:n,blockSelector:l,needsMask:M,maskTextClass:u,maskTextSelector:c,skipChild:!1,inlineStylesheet:p,maskInputOptions:o,maskTextFn:h,maskInputFn:f,slimDOMOptions:s,dataURLOptions:m,inlineImages:d,recordCanvas:g,preserveWhiteSpace:T,onSerialize:E,onIframeLoad:b,iframeLoadTimeout:v,onStylesheetLoad:C,stylesheetLoadTimeout:w,keepIframeSrcFn:y});U&&C(e,U)}},w),R}function Dc(e,t){let{mirror:r=new Gt,blockClass:i="rr-block",blockSelector:n=null,maskTextClass:l="rr-mask",maskTextSelector:u=null,inlineStylesheet:c=!0,inlineImages:a=!1,recordCanvas:p=!1,maskAllInputs:o=!1,maskTextFn:h,maskInputFn:f,slimDOM:s=!1,dataURLOptions:m,preserveWhiteSpace:d,onSerialize:g,onIframeLoad:E,iframeLoadTimeout:b,onStylesheetLoad:v,stylesheetLoadTimeout:C,keepIframeSrcFn:w=()=>!1}=t,y=o===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:o===!1?{password:!0}:o,S=Go(s);return Qe(e,{doc:e,mirror:r,blockClass:i,blockSelector:n,maskTextClass:l,maskTextSelector:u,skipChild:!1,inlineStylesheet:c,maskInputOptions:y,maskTextFn:h,maskInputFn:f,slimDOMOptions:S,dataURLOptions:m,inlineImages:a,recordCanvas:p,preserveWhiteSpace:d,onSerialize:g,onIframeLoad:E,iframeLoadTimeout:b,onStylesheetLoad:v,stylesheetLoadTimeout:C,keepIframeSrcFn:w,newlyAddedElement:!1})}var _c=/(max|min)-device-(width|height)/,Ch=new RegExp(_c.source,"g");function Lc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Pc(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}),r}var Ut={exports:{}},vs;function Fc(){if(vs)return Ut.exports;vs=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return Ut.exports=t(),Ut.exports.createColors=t,Ut.exports}var Uc={},Bc=Object.freeze(Object.defineProperty({__proto__:null,default:Uc},Symbol.toStringTag,{value:"Module"})),Se=Pc(Bc),Jr,Ss;function mi(){if(Ss)return Jr;Ss=1;let e=Fc(),t=Se;class r extends Error{constructor(n,l,u,c,a,p){super(n),this.name="CssSyntaxError",this.reason=n,a&&(this.file=a),c&&(this.source=c),p&&(this.plugin=p),typeof l<"u"&&typeof u<"u"&&(typeof l=="number"?(this.line=l,this.column=u):(this.line=l.line,this.column=l.column,this.endLine=u.line,this.endColumn=u.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(n){if(!this.source)return"";let l=this.source;n==null&&(n=e.isColorSupported),t&&n&&(l=t(l));let u=l.split(/\r?\n/),c=Math.max(this.line-3,0),a=Math.min(this.line+2,u.length),p=String(a).length,o,h;if(n){let{bold:f,gray:s,red:m}=e.createColors(!0);o=d=>f(m(d)),h=d=>s(d)}else o=h=f=>f;return u.slice(c,a).map((f,s)=>{let m=c+1+s,d=" "+(" "+m).slice(-p)+" | ";if(m===this.line){let g=h(d.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+h(d)+f+`
|
|
2
|
+
`+g+o("^")}return" "+h(d)+f}).join(`
|
|
3
3
|
`)}toString(){let n=this.showSourceCode();return n&&(n=`
|
|
4
4
|
|
|
5
5
|
`+n+`
|
|
6
|
-
`),this.name+": "+this.message+n}}return
|
|
6
|
+
`),this.name+": "+this.message+n}}return Jr=r,r.default=r,Jr}var Bt={},Es;function gi(){return Es||(Es=1,Bt.isClean=Symbol("isClean"),Bt.my=Symbol("my")),Bt}var Kr,Cs;function Yo(){if(Cs)return Kr;Cs=1;let e={after:`
|
|
7
7
|
`,beforeClose:`
|
|
8
8
|
`,beforeComment:`
|
|
9
9
|
`,beforeDecl:`
|
|
10
10
|
`,beforeOpen:" ",beforeRule:`
|
|
11
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(i){return i[0].toUpperCase()+i.slice(1)}class r{constructor(n){this.builder=n}atrule(n,
|
|
12
|
-
`)){let p=this.raw(n,null,"indent");if(p.length)for(let o=0;o<
|
|
13
|
-
`)&&(
|
|
14
|
-
`)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(
|
|
15
|
-
`)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(
|
|
16
|
-
`)&&(
|
|
17
|
-
`);return a
|
|
18
|
-
`?(
|
|
19
|
-
`);
|
|
11
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(i){return i[0].toUpperCase()+i.slice(1)}class r{constructor(n){this.builder=n}atrule(n,l){let u="@"+n.name,c=n.params?this.rawValue(n,"params"):"";if(typeof n.raws.afterName<"u"?u+=n.raws.afterName:c&&(u+=" "),n.nodes)this.block(n,u+c);else{let a=(n.raws.between||"")+(l?";":"");this.builder(u+c+a,n)}}beforeAfter(n,l){let u;n.type==="decl"?u=this.raw(n,null,"beforeDecl"):n.type==="comment"?u=this.raw(n,null,"beforeComment"):l==="before"?u=this.raw(n,null,"beforeRule"):u=this.raw(n,null,"beforeClose");let c=n.parent,a=0;for(;c&&c.type!=="root";)a+=1,c=c.parent;if(u.includes(`
|
|
12
|
+
`)){let p=this.raw(n,null,"indent");if(p.length)for(let o=0;o<a;o++)u+=p}return u}block(n,l){let u=this.raw(n,"between","beforeOpen");this.builder(l+u+"{",n,"start");let c;n.nodes&&n.nodes.length?(this.body(n),c=this.raw(n,"after")):c=this.raw(n,"after","emptyBody"),c&&this.builder(c),this.builder("}",n,"end")}body(n){let l=n.nodes.length-1;for(;l>0&&n.nodes[l].type==="comment";)l-=1;let u=this.raw(n,"semicolon");for(let c=0;c<n.nodes.length;c++){let a=n.nodes[c],p=this.raw(a,"before");p&&this.builder(p),this.stringify(a,l!==c||u)}}comment(n){let l=this.raw(n,"left","commentLeft"),u=this.raw(n,"right","commentRight");this.builder("/*"+l+n.text+u+"*/",n)}decl(n,l){let u=this.raw(n,"between","colon"),c=n.prop+u+this.rawValue(n,"value");n.important&&(c+=n.raws.important||" !important"),l&&(c+=";"),this.builder(c,n)}document(n){this.body(n)}raw(n,l,u){let c;if(u||(u=l),l&&(c=n.raws[l],typeof c<"u"))return c;let a=n.parent;if(u==="before"&&(!a||a.type==="root"&&a.first===n||a&&a.type==="document"))return"";if(!a)return e[u];let p=n.root();if(p.rawCache||(p.rawCache={}),typeof p.rawCache[u]<"u")return p.rawCache[u];if(u==="before"||u==="after")return this.beforeAfter(n,u);{let o="raw"+t(u);this[o]?c=this[o](p,n):p.walk(h=>{if(c=h.raws[l],typeof c<"u")return!1})}return typeof c>"u"&&(c=e[u]),p.rawCache[u]=c,c}rawBeforeClose(n){let l;return n.walk(u=>{if(u.nodes&&u.nodes.length>0&&typeof u.raws.after<"u")return l=u.raws.after,l.includes(`
|
|
13
|
+
`)&&(l=l.replace(/[^\n]+$/,"")),!1}),l&&(l=l.replace(/\S/g,"")),l}rawBeforeComment(n,l){let u;return n.walkComments(c=>{if(typeof c.raws.before<"u")return u=c.raws.before,u.includes(`
|
|
14
|
+
`)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(l,null,"beforeDecl"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeDecl(n,l){let u;return n.walkDecls(c=>{if(typeof c.raws.before<"u")return u=c.raws.before,u.includes(`
|
|
15
|
+
`)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(l,null,"beforeRule"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeOpen(n){let l;return n.walk(u=>{if(u.type!=="decl"&&(l=u.raws.between,typeof l<"u"))return!1}),l}rawBeforeRule(n){let l;return n.walk(u=>{if(u.nodes&&(u.parent!==n||n.first!==u)&&typeof u.raws.before<"u")return l=u.raws.before,l.includes(`
|
|
16
|
+
`)&&(l=l.replace(/[^\n]+$/,"")),!1}),l&&(l=l.replace(/\S/g,"")),l}rawColon(n){let l;return n.walkDecls(u=>{if(typeof u.raws.between<"u")return l=u.raws.between.replace(/[^\s:]/g,""),!1}),l}rawEmptyBody(n){let l;return n.walk(u=>{if(u.nodes&&u.nodes.length===0&&(l=u.raws.after,typeof l<"u"))return!1}),l}rawIndent(n){if(n.raws.indent)return n.raws.indent;let l;return n.walk(u=>{let c=u.parent;if(c&&c!==n&&c.parent&&c.parent===n&&typeof u.raws.before<"u"){let a=u.raws.before.split(`
|
|
17
|
+
`);return l=a[a.length-1],l=l.replace(/\S/g,""),!1}}),l}rawSemicolon(n){let l;return n.walk(u=>{if(u.nodes&&u.nodes.length&&u.last.type==="decl"&&(l=u.raws.semicolon,typeof l<"u"))return!1}),l}rawValue(n,l){let u=n[l],c=n.raws[l];return c&&c.value===u?c.raw:u}root(n){this.body(n),n.raws.after&&this.builder(n.raws.after)}rule(n){this.block(n,this.rawValue(n,"selector")),n.raws.ownSemicolon&&this.builder(n.raws.ownSemicolon,n,"end")}stringify(n,l){if(!this[n.type])throw new Error("Unknown AST node type "+n.type+". Maybe you need to change PostCSS stringifier.");this[n.type](n,l)}}return Kr=r,r.default=r,Kr}var Qr,xs;function rr(){if(xs)return Qr;xs=1;let e=Yo();function t(r,i){new e(i).stringify(r)}return Qr=t,t.default=t,Qr}var Zr,Rs;function nr(){if(Rs)return Zr;Rs=1;let{isClean:e,my:t}=gi(),r=mi(),i=Yo(),n=rr();function l(c,a){let p=new c.constructor;for(let o in c){if(!Object.prototype.hasOwnProperty.call(c,o)||o==="proxyCache")continue;let h=c[o],f=typeof h;o==="parent"&&f==="object"?a&&(p[o]=a):o==="source"?p[o]=h:Array.isArray(h)?p[o]=h.map(s=>l(s,p)):(f==="object"&&h!==null&&(h=l(h)),p[o]=h)}return p}class u{constructor(a={}){this.raws={},this[e]=!1,this[t]=!0;for(let p in a)if(p==="nodes"){this.nodes=[];for(let o of a[p])typeof o.clone=="function"?this.append(o.clone()):this.append(o)}else this[p]=a[p]}addToError(a){if(a.postcssNode=this,a.stack&&this.source&&/\n\s{4}at /.test(a.stack)){let p=this.source;a.stack=a.stack.replace(/\n\s{4}at /,`$&${p.input.from}:${p.start.line}:${p.start.column}$&`)}return a}after(a){return this.parent.insertAfter(this,a),this}assign(a={}){for(let p in a)this[p]=a[p];return this}before(a){return this.parent.insertBefore(this,a),this}cleanRaws(a){delete this.raws.before,delete this.raws.after,a||delete this.raws.between}clone(a={}){let p=l(this);for(let o in a)p[o]=a[o];return p}cloneAfter(a={}){let p=this.clone(a);return this.parent.insertAfter(this,p),p}cloneBefore(a={}){let p=this.clone(a);return this.parent.insertBefore(this,p),p}error(a,p={}){if(this.source){let{end:o,start:h}=this.rangeBy(p);return this.source.input.error(a,{column:h.column,line:h.line},{column:o.column,line:o.line},p)}return new r(a)}getProxyProcessor(){return{get(a,p){return p==="proxyOf"?a:p==="root"?()=>a.root().toProxy():a[p]},set(a,p,o){return a[p]===o||(a[p]=o,(p==="prop"||p==="value"||p==="name"||p==="params"||p==="important"||p==="text")&&a.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let a=this;for(;a=a.parent;)a[e]=!1}}next(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a+1]}positionBy(a,p){let o=this.source.start;if(a.index)o=this.positionInside(a.index,p);else if(a.word){p=this.toString();let h=p.indexOf(a.word);h!==-1&&(o=this.positionInside(h,p))}return o}positionInside(a,p){let o=p||this.toString(),h=this.source.start.column,f=this.source.start.line;for(let s=0;s<a;s++)o[s]===`
|
|
18
|
+
`?(h=1,f+=1):h+=1;return{column:h,line:f}}prev(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a-1]}rangeBy(a){let p={column:this.source.start.column,line:this.source.start.line},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:p.column+1,line:p.line};if(a.word){let h=this.toString(),f=h.indexOf(a.word);f!==-1&&(p=this.positionInside(f,h),o=this.positionInside(f+a.word.length,h))}else a.start?p={column:a.start.column,line:a.start.line}:a.index&&(p=this.positionInside(a.index)),a.end?o={column:a.end.column,line:a.end.line}:typeof a.endIndex=="number"?o=this.positionInside(a.endIndex):a.index&&(o=this.positionInside(a.index+1));return(o.line<p.line||o.line===p.line&&o.column<=p.column)&&(o={column:p.column+1,line:p.line}),{end:o,start:p}}raw(a,p){return new i().raw(this,a,p)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...a){if(this.parent){let p=this,o=!1;for(let h of a)h===this?o=!0:o?(this.parent.insertAfter(p,h),p=h):this.parent.insertBefore(p,h);o||this.remove()}return this}root(){let a=this;for(;a.parent&&a.parent.type!=="document";)a=a.parent;return a}toJSON(a,p){let o={},h=p==null;p=p||new Map;let f=0;for(let s in this){if(!Object.prototype.hasOwnProperty.call(this,s)||s==="parent"||s==="proxyCache")continue;let m=this[s];if(Array.isArray(m))o[s]=m.map(d=>typeof d=="object"&&d.toJSON?d.toJSON(null,p):d);else if(typeof m=="object"&&m.toJSON)o[s]=m.toJSON(null,p);else if(s==="source"){let d=p.get(m.input);d==null&&(d=f,p.set(m.input,f),f++),o[s]={end:m.end,inputId:d,start:m.start}}else o[s]=m}return h&&(o.inputs=[...p.keys()].map(s=>s.toJSON())),o}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(a=n){a.stringify&&(a=a.stringify);let p="";return a(this,o=>{p+=o}),p}warn(a,p,o){let h={node:this};for(let f in o)h[f]=o[f];return a.warn(p,h)}get proxyOf(){return this}}return Zr=u,u.default=u,Zr}var en,Ts;function ir(){if(Ts)return en;Ts=1;let e=nr();class t extends e{constructor(i){i&&typeof i.value<"u"&&typeof i.value!="string"&&(i={...i,value:String(i.value)}),super(i),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return en=t,t.default=t,en}var tn,Ms;function $c(){if(Ms)return tn;Ms=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return tn={nanoid:(i=21)=>{let n="",l=i;for(;l--;)n+=e[Math.random()*64|0];return n},customAlphabet:(i,n=21)=>(l=n)=>{let u="",c=l;for(;c--;)u+=i[Math.random()*i.length|0];return u}},tn}var rn,Ns;function Xo(){if(Ns)return rn;Ns=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=Se,{existsSync:r,readFileSync:i}=Se,{dirname:n,join:l}=Se;function u(a){return Buffer?Buffer.from(a,"base64").toString():window.atob(a)}class c{constructor(p,o){if(o.map===!1)return;this.loadAnnotation(p),this.inline=this.startWith(this.annotation,"data:");let h=o.map?o.map.prev:void 0,f=this.loadMap(o.from,h);!this.mapFile&&o.from&&(this.mapFile=o.from),this.mapFile&&(this.root=n(this.mapFile)),f&&(this.text=f)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(p){let o=/^data:application\/json;charset=utf-?8;base64,/,h=/^data:application\/json;base64,/,f=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(f.test(p)||s.test(p))return decodeURIComponent(p.substr(RegExp.lastMatch.length));if(o.test(p)||h.test(p))return u(p.substr(RegExp.lastMatch.length));let m=p.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(p){return p.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(p){return typeof p!="object"?!1:typeof p.mappings=="string"||typeof p._mappings=="string"||Array.isArray(p.sections)}loadAnnotation(p){let o=p.match(/\/\*\s*# sourceMappingURL=/gm);if(!o)return;let h=p.lastIndexOf(o.pop()),f=p.indexOf("*/",h);h>-1&&f>-1&&(this.annotation=this.getAnnotationURL(p.substring(h,f)))}loadFile(p){if(this.root=n(p),r(p))return this.mapFile=p,i(p,"utf-8").toString().trim()}loadMap(p,o){if(o===!1)return!1;if(o){if(typeof o=="string")return o;if(typeof o=="function"){let h=o(p);if(h){let f=this.loadFile(h);if(!f)throw new Error("Unable to load previous source map: "+h.toString());return f}}else{if(o instanceof e)return t.fromSourceMap(o).toString();if(o instanceof t)return o.toString();if(this.isMap(o))return JSON.stringify(o);throw new Error("Unsupported previous source map format: "+o.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let h=this.annotation;return p&&(h=l(n(p),h)),this.loadFile(h)}}}startWith(p,o){return p?p.substr(0,o.length)===o:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return rn=c,c.default=c,rn}var nn,Os;function sr(){if(Os)return nn;Os=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=Se,{fileURLToPath:r,pathToFileURL:i}=Se,{isAbsolute:n,resolve:l}=Se,{nanoid:u}=$c(),c=Se,a=mi(),p=Xo(),o=Symbol("fromOffsetCache"),h=!!(e&&t),f=!!(l&&n);class s{constructor(d,g={}){if(d===null||typeof d>"u"||typeof d=="object"&&!d.toString)throw new Error(`PostCSS received ${d} instead of CSS string`);if(this.css=d.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!f||/^\w+:\/\//.test(g.from)||n(g.from)?this.file=g.from:this.file=l(g.from)),f&&h){let E=new p(this.css,g);if(E.text){this.map=E;let b=E.consumer().file;!this.file&&b&&(this.file=this.mapResolve(b))}}this.file||(this.id="<input css "+u(6)+">"),this.map&&(this.map.file=this.from)}error(d,g,E,b={}){let v,C,w;if(g&&typeof g=="object"){let S=g,x=E;if(typeof S.offset=="number"){let M=this.fromOffset(S.offset);g=M.line,E=M.col}else g=S.line,E=S.column;if(typeof x.offset=="number"){let M=this.fromOffset(x.offset);C=M.line,w=M.col}else C=x.line,w=x.column}else if(!E){let S=this.fromOffset(g);g=S.line,E=S.col}let y=this.origin(g,E,C,w);return y?v=new a(d,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,b.plugin):v=new a(d,C===void 0?g:{column:E,line:g},C===void 0?E:{column:w,line:C},this.css,this.file,b.plugin),v.input={column:E,endColumn:w,endLine:C,line:g,source:this.css},this.file&&(i&&(v.input.url=i(this.file).toString()),v.input.file=this.file),v}fromOffset(d){let g,E;if(this[o])E=this[o];else{let v=this.css.split(`
|
|
19
|
+
`);E=new Array(v.length);let C=0;for(let w=0,y=v.length;w<y;w++)E[w]=C,C+=v[w].length+1;this[o]=E}g=E[E.length-1];let b=0;if(d>=g)b=E.length-1;else{let v=E.length-2,C;for(;b<v;)if(C=b+(v-b>>1),d<E[C])v=C-1;else if(d>=E[C+1])b=C+1;else{b=C;break}}return{col:d-E[b]+1,line:b+1}}mapResolve(d){return/^\w+:\/\//.test(d)?d:l(this.map.consumer().sourceRoot||this.map.root||".",d)}origin(d,g,E,b){if(!this.map)return!1;let v=this.map.consumer(),C=v.originalPositionFor({column:g,line:d});if(!C.source)return!1;let w;typeof E=="number"&&(w=v.originalPositionFor({column:b,line:E}));let y;n(C.source)?y=i(C.source):y=new URL(C.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let S={column:C.column,endColumn:w&&w.column,endLine:w&&w.line,line:C.line,url:y.toString()};if(y.protocol==="file:")if(r)S.file=r(y);else throw new Error("file: protocol is not available in this PostCSS build");let x=v.sourceContentFor(C.source);return x&&(S.source=x),S}toJSON(){let d={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(d[g]=this[g]);return this.map&&(d.map={...this.map},d.map.consumerCache&&(d.map.consumerCache=void 0)),d}get from(){return this.file||this.id}}return nn=s,s.default=s,c&&c.registerInput&&c.registerInput(s),nn}var sn,ks;function Jo(){if(ks)return sn;ks=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=Se,{dirname:r,relative:i,resolve:n,sep:l}=Se,{pathToFileURL:u}=Se,c=sr(),a=!!(e&&t),p=!!(r&&n&&i&&l);class o{constructor(f,s,m,d){this.stringify=f,this.mapOpts=m.map||{},this.root=s,this.opts=m,this.css=d,this.originalCSS=d,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let f;this.isInline()?f="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?f=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?f=this.mapOpts.annotation(this.opts.to,this.root):f=this.outputFile()+".map";let s=`
|
|
20
20
|
`;this.css.includes(`\r
|
|
21
21
|
`)&&(s=`\r
|
|
22
|
-
`),this.css+=s+"/*# sourceMappingURL="+
|
|
23
|
-
`),s=b.length-C):s+=b.length,v&&E!=="start"){let w=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==w.last||w.raws.semicolon)&&(v.source&&v.source.end?(h.source=this.sourcePath(v),h.original.line=v.source.end.line,h.original.column=v.source.end.column-1,h.generated.line=c,h.generated.column=s-2,this.map.addMapping(h)):(h.source=m,h.original.line=1,h.original.column=0,h.generated.line=c,h.generated.column=s-1,this.map.addMapping(h)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c<"u"&&c!==!0?!1:this.previous().length?this.previous().some(s=>s.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let s=this.memoizedPaths.get(c);if(s)return s;let m=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=r(n(m,this.mapOpts.annotation)));let h=i(m,c);return this.memoizedPaths.set(c,h),h}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let s=c.source.input.map;this.previousMaps.includes(s)||this.previousMaps.push(s)}});else{let c=new f(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(s=>{if(s.source){let m=s.source.input.from;if(m&&!c[m]){c[m]=!0;let h=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(h,s.source.input.css)}}});else if(this.css){let s=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(s,this.css)}}sourcePath(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let s=this.memoizedFileURLs.get(c);if(s)return s;if(u){let m=u(c).toString();return this.memoizedFileURLs.set(c,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let s=this.memoizedURLs.get(c);if(s)return s;a==="\\"&&(c=c.replace(/\\/g,"/"));let m=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,m),m}}return Xr=o,Xr}var Jr,ms;function er(){if(ms)return Jr;ms=1;let e=Kt();class t extends e{constructor(i){super(i),this.type="comment"}}return Jr=t,t.default=t,Jr}var Kr,gs;function Ue(){if(gs)return Kr;gs=1;let{isClean:e,my:t}=ai(),r=Qt(),i=er(),n=Kt(),a,u,f,l;function p(c){return c.map(s=>(s.nodes&&(s.nodes=p(s.nodes)),delete s.source,s))}function o(c){if(c[e]=!1,c.proxyOf.nodes)for(let s of c.proxyOf.nodes)o(s)}class d extends n{append(...s){for(let m of s){let h=this.normalize(m,this.last);for(let g of h)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(s){if(super.cleanRaws(s),this.nodes)for(let m of this.nodes)m.cleanRaws(s)}each(s){if(!this.proxyOf.nodes)return;let m=this.getIterator(),h,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(h=this.indexes[m],g=s(this.proxyOf.nodes[h],h),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(s){return this.nodes.every(s)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let s=this.lastEach;return this.indexes[s]=0,s}getProxyProcessor(){return{get(s,m){return m==="proxyOf"?s:s[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...h)=>s[m](...h.map(g=>typeof g=="function"?(C,b)=>g(C.toProxy(),b):g)):m==="every"||m==="some"?h=>s[m]((g,...C)=>h(g.toProxy(),...C)):m==="root"?()=>s.root().toProxy():m==="nodes"?s.nodes.map(h=>h.toProxy()):m==="first"||m==="last"?s[m].toProxy():s[m]:s[m]},set(s,m,h){return s[m]===h||(s[m]=h,(m==="name"||m==="params"||m==="selector")&&s.markDirty()),!0}}}index(s){return typeof s=="number"?s:(s.proxyOf&&(s=s.proxyOf),this.proxyOf.nodes.indexOf(s))}insertAfter(s,m){let h=this.index(s),g=this.normalize(m,this.proxyOf.nodes[h]).reverse();h=this.index(s);for(let b of g)this.proxyOf.nodes.splice(h+1,0,b);let C;for(let b in this.indexes)C=this.indexes[b],h<C&&(this.indexes[b]=C+g.length);return this.markDirty(),this}insertBefore(s,m){let h=this.index(s),g=h===0?"prepend":!1,C=this.normalize(m,this.proxyOf.nodes[h],g).reverse();h=this.index(s);for(let v of C)this.proxyOf.nodes.splice(h,0,v);let b;for(let v in this.indexes)b=this.indexes[v],h<=b&&(this.indexes[v]=b+C.length);return this.markDirty(),this}normalize(s,m){if(typeof s=="string")s=p(a(s).nodes);else if(typeof s>"u")s=[];else if(Array.isArray(s)){s=s.slice(0);for(let g of s)g.parent&&g.parent.removeChild(g,"ignore")}else if(s.type==="root"&&this.type!=="document"){s=s.nodes.slice(0);for(let g of s)g.parent&&g.parent.removeChild(g,"ignore")}else if(s.type)s=[s];else if(s.prop){if(typeof s.value>"u")throw new Error("Value field is missed in node creation");typeof s.value!="string"&&(s.value=String(s.value)),s=[new r(s)]}else if(s.selector)s=[new u(s)];else if(s.name)s=[new f(s)];else if(s.text)s=[new i(s)];else throw new Error("Unknown node type in node creation");return s.map(g=>(g[t]||d.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&o(g),typeof g.raws.before>"u"&&m&&typeof m.raws.before<"u"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...s){s=s.reverse();for(let m of s){let h=this.normalize(m,this.first,"prepend").reverse();for(let g of h)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+h.length}return this.markDirty(),this}push(s){return s.parent=this,this.proxyOf.nodes.push(s),this}removeAll(){for(let s of this.proxyOf.nodes)s.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(s){s=this.index(s),this.proxyOf.nodes[s].parent=void 0,this.proxyOf.nodes.splice(s,1);let m;for(let h in this.indexes)m=this.indexes[h],m>=s&&(this.indexes[h]=m-1);return this.markDirty(),this}replaceValues(s,m,h){return h||(h=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(s,h))}),this.markDirty(),this}some(s){return this.nodes.some(s)}walk(s){return this.each((m,h)=>{let g;try{g=s(m,h)}catch(C){throw m.addToError(C)}return g!==!1&&m.walk&&(g=m.walk(s)),g})}walkAtRules(s,m){return m?s instanceof RegExp?this.walk((h,g)=>{if(h.type==="atrule"&&s.test(h.name))return m(h,g)}):this.walk((h,g)=>{if(h.type==="atrule"&&h.name===s)return m(h,g)}):(m=s,this.walk((h,g)=>{if(h.type==="atrule")return m(h,g)}))}walkComments(s){return this.walk((m,h)=>{if(m.type==="comment")return s(m,h)})}walkDecls(s,m){return m?s instanceof RegExp?this.walk((h,g)=>{if(h.type==="decl"&&s.test(h.prop))return m(h,g)}):this.walk((h,g)=>{if(h.type==="decl"&&h.prop===s)return m(h,g)}):(m=s,this.walk((h,g)=>{if(h.type==="decl")return m(h,g)}))}walkRules(s,m){return m?s instanceof RegExp?this.walk((h,g)=>{if(h.type==="rule"&&s.test(h.selector))return m(h,g)}):this.walk((h,g)=>{if(h.type==="rule"&&h.selector===s)return m(h,g)}):(m=s,this.walk((h,g)=>{if(h.type==="rule")return m(h,g)}))}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]}}return d.registerParse=c=>{a=c},d.registerRule=c=>{u=c},d.registerAtRule=c=>{f=c},d.registerRoot=c=>{l=c},Kr=d,d.default=d,d.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,f.prototype):c.type==="rule"?Object.setPrototypeOf(c,u.prototype):c.type==="decl"?Object.setPrototypeOf(c,r.prototype):c.type==="comment"?Object.setPrototypeOf(c,i.prototype):c.type==="root"&&Object.setPrototypeOf(c,l.prototype),c[t]=!0,c.nodes&&c.nodes.forEach(s=>{d.rebuild(s)})},Kr}var Qr,ys;function li(){if(ys)return Qr;ys=1;let e=Ue(),t,r;class i extends e{constructor(a){super({type:"document",...a}),this.nodes||(this.nodes=[])}toResult(a={}){return new t(new r,this,a).stringify()}}return i.registerLazyResult=n=>{t=n},i.registerProcessor=n=>{r=n},Qr=i,i.default=i,Qr}var Zr,bs;function Lo(){if(bs)return Zr;bs=1;let e={};return Zr=function(r){e[r]||(e[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))},Zr}var en,ws;function Po(){if(ws)return en;ws=1;class e{constructor(r,i={}){if(this.type="warning",this.text=r,i.node&&i.node.source){let n=i.node.rangeBy(i);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in i)this[n]=i[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}}return en=e,e.default=e,en}var tn,vs;function ui(){if(vs)return tn;vs=1;let e=Po();class t{constructor(i,n,a){this.processor=i,this.messages=[],this.root=n,this.opts=a,this.css=void 0,this.map=void 0}toString(){return this.css}warn(i,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let a=new e(i,n);return this.messages.push(a),a}warnings(){return this.messages.filter(i=>i.type==="warning")}get content(){return this.css}}return tn=t,t.default=t,tn}var rn,Ss;function pc(){if(Ss)return rn;Ss=1;let e=39,t=34,r=92,i=47,n=10,a=32,u=12,f=9,l=13,p=91,o=93,d=40,c=41,s=123,m=125,h=59,g=42,C=58,b=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,y=/[\da-f]/i;return rn=function(x,M={}){let T=x.css.valueOf(),k=M.ignoreErrors,I,R,te,re,U,P,j,Q,$,B,le=T.length,N=0,Ee=[],pe=[];function ut(){return N}function ie(A){throw x.error("Unclosed "+A,N)}function be(){return pe.length===0&&N>=le}function Pe(A){if(pe.length)return pe.pop();if(N>=le)return;let Z=A?A.ignoreUnclosed:!1;switch(I=T.charCodeAt(N),I){case n:case a:case f:case l:case u:{R=N;do R+=1,I=T.charCodeAt(R);while(I===a||I===n||I===f||I===l||I===u);B=["space",T.slice(N,R)],N=R-1;break}case p:case o:case s:case m:case C:case h:case c:{let W=String.fromCharCode(I);B=[W,W,N];break}case d:{if(Q=Ee.length?Ee.pop()[1]:"",$=T.charCodeAt(N+1),Q==="url"&&$!==e&&$!==t&&$!==a&&$!==n&&$!==f&&$!==u&&$!==l){R=N;do{if(P=!1,R=T.indexOf(")",R+1),R===-1)if(k||Z){R=N;break}else ie("bracket");for(j=R;T.charCodeAt(j-1)===r;)j-=1,P=!P}while(P);B=["brackets",T.slice(N,R+1),N,R],N=R}else R=T.indexOf(")",N+1),re=T.slice(N,R+1),R===-1||w.test(re)?B=["(","(",N]:(B=["brackets",re,N,R],N=R);break}case e:case t:{te=I===e?"'":'"',R=N;do{if(P=!1,R=T.indexOf(te,R+1),R===-1)if(k||Z){R=N+1;break}else ie("string");for(j=R;T.charCodeAt(j-1)===r;)j-=1,P=!P}while(P);B=["string",T.slice(N,R+1),N,R],N=R;break}case b:{v.lastIndex=N+1,v.test(T),v.lastIndex===0?R=T.length-1:R=v.lastIndex-2,B=["at-word",T.slice(N,R+1),N,R],N=R;break}case r:{for(R=N,U=!0;T.charCodeAt(R+1)===r;)R+=1,U=!U;if(I=T.charCodeAt(R+1),U&&I!==i&&I!==a&&I!==n&&I!==f&&I!==l&&I!==u&&(R+=1,y.test(T.charAt(R)))){for(;y.test(T.charAt(R+1));)R+=1;T.charCodeAt(R+1)===a&&(R+=1)}B=["word",T.slice(N,R+1),N,R],N=R;break}default:{I===i&&T.charCodeAt(N+1)===g?(R=T.indexOf("*/",N+2)+1,R===0&&(k||Z?R=T.length:ie("comment")),B=["comment",T.slice(N,R+1),N,R],N=R):(E.lastIndex=N+1,E.test(T),E.lastIndex===0?R=T.length-1:R=E.lastIndex-2,B=["word",T.slice(N,R+1),N,R],Ee.push(B),N=R);break}}return N++,B}function Oe(A){pe.push(A)}return{back:Oe,endOfFile:be,nextToken:Pe,position:ut}},rn}var nn,Cs;function ci(){if(Cs)return nn;Cs=1;let e=Ue();class t extends e{constructor(i){super(i),this.type="atrule"}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}}return nn=t,t.default=t,e.registerAtRule(t),nn}var sn,Es;function gt(){if(Es)return sn;Es=1;let e=Ue(),t,r;class i extends e{constructor(a){super(a),this.type="root",this.nodes||(this.nodes=[])}normalize(a,u,f){let l=super.normalize(a);if(u){if(f==="prepend")this.nodes.length>1?u.raws.before=this.nodes[1].raws.before:delete u.raws.before;else if(this.first!==u)for(let p of l)p.raws.before=u.raws.before}return l}removeChild(a,u){let f=this.index(a);return!u&&f===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[f].raws.before),super.removeChild(a)}toResult(a={}){return new t(new r,this,a).stringify()}}return i.registerLazyResult=n=>{t=n},i.registerProcessor=n=>{r=n},sn=i,i.default=i,e.registerRoot(i),sn}var on,xs;function Fo(){if(xs)return on;xs=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
|
|
24
|
-
`," "];return e.split(t,r)},split(t,r,i){let n=[],a="",u=!1,f=0,l=!1,p="",o=!1;for(let d of t)o?o=!1:d==="\\"?o=!0:l?d===p&&(l=!1):d==='"'||d==="'"?(l=!0,p=d):d==="("?f+=1:d===")"?f>0&&(f-=1):f===0&&r.includes(d)&&(u=!0),u?(a!==""&&n.push(a.trim()),a="",u=!1):a+=d;return(i||a!=="")&&n.push(a.trim()),n}};return on=e,e.default=e,on}var an,Rs;function fi(){if(Rs)return an;Rs=1;let e=Ue(),t=Fo();class r extends e{constructor(n){super(n),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(n){let a=this.selector?this.selector.match(/,\s*/):null,u=a?a[0]:","+this.raw("between","beforeOpen");this.selector=n.join(u)}}return an=r,r.default=r,e.registerRule(r),an}var ln,Ts;function mc(){if(Ts)return ln;Ts=1;let e=Qt(),t=pc(),r=er(),i=ci(),n=gt(),a=fi(),u={empty:!0,space:!0};function f(p){for(let o=p.length-1;o>=0;o--){let d=p[o],c=d[3]||d[2];if(c)return c}}class l{constructor(o){this.input=o,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}atrule(o){let d=new i;d.name=o[1].slice(1),d.name===""&&this.unnamedAtrule(d,o),this.init(d,o[2]);let c,s,m,h=!1,g=!1,C=[],b=[];for(;!this.tokenizer.endOfFile();){if(o=this.tokenizer.nextToken(),c=o[0],c==="("||c==="["?b.push(c==="("?")":"]"):c==="{"&&b.length>0?b.push("}"):c===b[b.length-1]&&b.pop(),b.length===0)if(c===";"){d.source.end=this.getPosition(o[2]),d.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){g=!0;break}else if(c==="}"){if(C.length>0){for(m=C.length-1,s=C[m];s&&s[0]==="space";)s=C[--m];s&&(d.source.end=this.getPosition(s[3]||s[2]),d.source.end.offset++)}this.end(o);break}else C.push(o);else C.push(o);if(this.tokenizer.endOfFile()){h=!0;break}}d.raws.between=this.spacesAndCommentsFromEnd(C),C.length?(d.raws.afterName=this.spacesAndCommentsFromStart(C),this.raw(d,"params",C),h&&(o=C[C.length-1],d.source.end=this.getPosition(o[3]||o[2]),d.source.end.offset++,this.spaces=d.raws.between,d.raws.between="")):(d.raws.afterName="",d.params=""),g&&(d.nodes=[],this.current=d)}checkMissedSemicolon(o){let d=this.colon(o);if(d===!1)return;let c=0,s;for(let m=d-1;m>=0&&(s=o[m],!(s[0]!=="space"&&(c+=1,c===2)));m--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(o){let d=0,c,s,m;for(let[h,g]of o.entries()){if(c=g,s=c[0],s==="("&&(d+=1),s===")"&&(d-=1),d===0&&s===":")if(!m)this.doubleColon(c);else{if(m[0]==="word"&&m[1]==="progid")continue;return h}m=c}return!1}comment(o){let d=new r;this.init(d,o[2]),d.source.end=this.getPosition(o[3]||o[2]),d.source.end.offset++;let c=o[1].slice(2,-2);if(/^\s*$/.test(c))d.text="",d.raws.left=c,d.raws.right="";else{let s=c.match(/^(\s*)([^]*\S)(\s*)$/);d.text=s[2],d.raws.left=s[1],d.raws.right=s[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(o,d){let c=new e;this.init(c,o[0][2]);let s=o[o.length-1];for(s[0]===";"&&(this.semicolon=!0,o.pop()),c.source.end=this.getPosition(s[3]||s[2]||f(o)),c.source.end.offset++;o[0][0]!=="word";)o.length===1&&this.unknownWord(o),c.raws.before+=o.shift()[1];for(c.source.start=this.getPosition(o[0][2]),c.prop="";o.length;){let b=o[0][0];if(b===":"||b==="space"||b==="comment")break;c.prop+=o.shift()[1]}c.raws.between="";let m;for(;o.length;)if(m=o.shift(),m[0]===":"){c.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),c.raws.between+=m[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let h=[],g;for(;o.length&&(g=o[0][0],!(g!=="space"&&g!=="comment"));)h.push(o.shift());this.precheckMissedSemicolon(o);for(let b=o.length-1;b>=0;b--){if(m=o[b],m[1].toLowerCase()==="!important"){c.important=!0;let v=this.stringFrom(o,b);v=this.spacesFromEnd(o)+v,v!==" !important"&&(c.raws.important=v);break}else if(m[1].toLowerCase()==="important"){let v=o.slice(0),E="";for(let w=b;w>0;w--){let y=v[w][0];if(E.trim().indexOf("!")===0&&y!=="space")break;E=v.pop()[1]+E}E.trim().indexOf("!")===0&&(c.important=!0,c.raws.important=E,o=v)}if(m[0]!=="space"&&m[0]!=="comment")break}o.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(c.raws.between+=h.map(b=>b[1]).join(""),h=[]),this.raw(c,"value",h.concat(o),d),c.value.includes(":")&&!d&&this.checkMissedSemicolon(o)}doubleColon(o){throw this.input.error("Double colon",{offset:o[2]},{offset:o[2]+o[1].length})}emptyRule(o){let d=new a;this.init(d,o[2]),d.selector="",d.raws.between="",this.current=d}end(o){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(o[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(o)}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(o){if(this.spaces+=o[1],this.current.nodes){let d=this.current.nodes[this.current.nodes.length-1];d&&d.type==="rule"&&!d.raws.ownSemicolon&&(d.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(o){let d=this.input.fromOffset(o);return{column:d.col,line:d.line,offset:o}}init(o,d){this.current.push(o),o.source={input:this.input,start:this.getPosition(d)},o.raws.before=this.spaces,this.spaces="",o.type!=="comment"&&(this.semicolon=!1)}other(o){let d=!1,c=null,s=!1,m=null,h=[],g=o[1].startsWith("--"),C=[],b=o;for(;b;){if(c=b[0],C.push(b),c==="("||c==="[")m||(m=b),h.push(c==="("?")":"]");else if(g&&s&&c==="{")m||(m=b),h.push("}");else if(h.length===0)if(c===";")if(s){this.decl(C,g);return}else break;else if(c==="{"){this.rule(C);return}else if(c==="}"){this.tokenizer.back(C.pop()),d=!0;break}else c===":"&&(s=!0);else c===h[h.length-1]&&(h.pop(),h.length===0&&(m=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(d=!0),h.length>0&&this.unclosedBracket(m),d&&s){if(!g)for(;C.length&&(b=C[C.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(C.pop());this.decl(C,g)}else this.unknownWord(C)}parse(){let o;for(;!this.tokenizer.endOfFile();)switch(o=this.tokenizer.nextToken(),o[0]){case"space":this.spaces+=o[1];break;case";":this.freeSemicolon(o);break;case"}":this.end(o);break;case"comment":this.comment(o);break;case"at-word":this.atrule(o);break;case"{":this.emptyRule(o);break;default:this.other(o);break}this.endFile()}precheckMissedSemicolon(){}raw(o,d,c,s){let m,h,g=c.length,C="",b=!0,v,E;for(let w=0;w<g;w+=1)m=c[w],h=m[0],h==="space"&&w===g-1&&!s?b=!1:h==="comment"?(E=c[w-1]?c[w-1][0]:"empty",v=c[w+1]?c[w+1][0]:"empty",!u[E]&&!u[v]?C.slice(-1)===","?b=!1:C+=m[1]:b=!1):C+=m[1];if(!b){let w=c.reduce((y,S)=>y+S[1],"");o.raws[d]={raw:w,value:C}}o[d]=C}rule(o){o.pop();let d=new a;this.init(d,o[0][2]),d.raws.between=this.spacesAndCommentsFromEnd(o),this.raw(d,"selector",o),this.current=d}spacesAndCommentsFromEnd(o){let d,c="";for(;o.length&&(d=o[o.length-1][0],!(d!=="space"&&d!=="comment"));)c=o.pop()[1]+c;return c}spacesAndCommentsFromStart(o){let d,c="";for(;o.length&&(d=o[0][0],!(d!=="space"&&d!=="comment"));)c+=o.shift()[1];return c}spacesFromEnd(o){let d,c="";for(;o.length&&(d=o[o.length-1][0],d==="space");)c=o.pop()[1]+c;return c}stringFrom(o,d){let c="";for(let s=d;s<o.length;s++)c+=o[s][1];return o.splice(d,o.length-d),c}unclosedBlock(){let o=this.current.source.start;throw this.input.error("Unclosed block",o.line,o.column)}unclosedBracket(o){throw this.input.error("Unclosed bracket",{offset:o[2]},{offset:o[2]+1})}unexpectedClose(o){throw this.input.error("Unexpected }",{offset:o[2]},{offset:o[2]+1})}unknownWord(o){throw this.input.error("Unknown word",{offset:o[0][2]},{offset:o[0][2]+o[0][1].length})}unnamedAtrule(o,d){throw this.input.error("At-rule without name",{offset:d[2]},{offset:d[2]+d[1].length})}}return ln=l,ln}var un,Ms;function hi(){if(Ms)return un;Ms=1;let e=Ue(),t=mc(),r=Zt();function i(n,a){let u=new r(n,a),f=new t(u);try{f.parse()}catch(l){throw l}return f.root}return un=i,i.default=i,e.registerParse(i),un}var cn,Ns;function Uo(){if(Ns)return cn;Ns=1;let{isClean:e,my:t}=ai(),r=_o(),i=Jt(),n=Ue(),a=li(),u=Lo(),f=ui(),l=hi(),p=gt(),o={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},d={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},c={Once:!0,postcssPlugin:!0,prepare:!0},s=0;function m(E){return typeof E=="object"&&typeof E.then=="function"}function h(E){let w=!1,y=o[E.type];return E.type==="decl"?w=E.prop.toLowerCase():E.type==="atrule"&&(w=E.name.toLowerCase()),w&&E.append?[y,y+"-"+w,s,y+"Exit",y+"Exit-"+w]:w?[y,y+"-"+w,y+"Exit",y+"Exit-"+w]:E.append?[y,s,y+"Exit"]:[y,y+"Exit"]}function g(E){let w;return E.type==="document"?w=["Document",s,"DocumentExit"]:E.type==="root"?w=["Root",s,"RootExit"]:w=h(E),{eventIndex:0,events:w,iterator:0,node:E,visitorIndex:0,visitors:[]}}function C(E){return E[e]=!1,E.nodes&&E.nodes.forEach(w=>C(w)),E}let b={};class v{constructor(w,y,S){this.stringified=!1,this.processed=!1;let x;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))x=C(y);else if(y instanceof v||y instanceof f)x=C(y.root),y.map&&(typeof S.map>"u"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=y.map);else{let M=l;S.syntax&&(M=S.syntax.parse),S.parser&&(M=S.parser),M.parse&&(M=M.parse);try{x=M(y,S)}catch(T){this.processed=!0,this.error=T}x&&!x[t]&&n.rebuild(x)}this.result=new f(w,x,S),this.helpers={...b,postcss:b,result:this.result},this.plugins=this.processor.plugins.map(M=>typeof M=="object"&&M.prepare?{...M,...M.prepare(this.result)}:M)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,y){let S=this.result.lastPlugin;try{y&&y.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=S.postcssPlugin,w.setMessage()):S.postcssVersion}catch(x){console&&console.error&&console.error(x)}return w}prepareVisitors(){this.listeners={};let w=(y,S,x)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([y,x])};for(let y of this.plugins)if(typeof y=="object")for(let S in y){if(!d[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[S])if(typeof y[S]=="object")for(let x in y[S])x==="*"?w(y,S,y[S][x]):w(y,S+"-"+x.toLowerCase(),y[S][x]);else typeof y[S]=="function"&&w(y,S,y[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let y=this.plugins[w],S=this.runOnRoot(y);if(m(S))try{await S}catch(x){throw this.handleError(x)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];){w[e]=!0;let y=[g(w)];for(;y.length>0;){let S=this.visitTick(y);if(m(S))try{await S}catch(x){let M=y[y.length-1].node;throw this.handleError(x,M)}}}if(this.listeners.OnceExit)for(let[y,S]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(w.type==="document"){let x=w.nodes.map(M=>S(M,this.helpers));await Promise.all(x)}else await S(w,this.helpers)}catch(x){throw this.handleError(x)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(S=>w.Once(S,this.helpers));return m(y[0])?Promise.all(y):y}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,y=i;w.syntax&&(y=w.syntax.stringify),w.stringifier&&(y=w.stringifier),y.stringify&&(y=y.stringify);let x=new r(y,this.result.root,this.result.opts).generate();return this.result.css=x[0],this.result.map=x[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let w of this.plugins){let y=this.runOnRoot(w);if(m(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];)w[e]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let y of w.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,y){return this.async().then(w,y)}toString(){return this.css}visitSync(w,y){for(let[S,x]of w){this.result.lastPlugin=S;let M;try{M=x(y,this.helpers)}catch(T){throw this.handleError(T,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(m(M))throw this.getAsyncError()}}visitTick(w){let y=w[w.length-1],{node:S,visitors:x}=y;if(S.type!=="root"&&S.type!=="document"&&!S.parent){w.pop();return}if(x.length>0&&y.visitorIndex<x.length){let[T,k]=x[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===x.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=T;try{return k(S.toProxy(),this.helpers)}catch(I){throw this.handleError(I,S)}}if(y.iterator!==0){let T=y.iterator,k;for(;k=S.nodes[S.indexes[T]];)if(S.indexes[T]+=1,!k[e]){k[e]=!0,w.push(g(k));return}y.iterator=0,delete S.indexes[T]}let M=y.events;for(;y.eventIndex<M.length;){let T=M[y.eventIndex];if(y.eventIndex+=1,T===s){S.nodes&&S.nodes.length&&(S[e]=!0,y.iterator=S.getIterator());return}else if(this.listeners[T]){y.visitors=this.listeners[T];return}}w.pop()}walkSync(w){w[e]=!0;let y=h(w);for(let S of y)if(S===s)w.nodes&&w.each(x=>{x[e]||this.walkSync(x)});else{let x=this.listeners[S];if(x&&this.visitSync(x,w.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"}}return v.registerPostcss=E=>{b=E},cn=v,v.default=v,p.registerLazyResult(v),a.registerLazyResult(v),cn}var fn,Os;function gc(){if(Os)return fn;Os=1;let e=_o(),t=Jt(),r=Lo(),i=hi(),n=ui();class a{constructor(f,l,p){l=l.toString(),this.stringified=!1,this._processor=f,this._css=l,this._opts=p,this._map=void 0;let o,d=t;this.result=new n(this._processor,o,this._opts),this.result.css=l;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let s=new e(d,o,this._opts,l);if(s.isMap()){let[m,h]=s.generate();m&&(this.result.css=m),h&&(this.result.map=h)}else s.clearAnnotation(),this.result.css=s.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(f){return this.async().catch(f)}finally(f){return this.async().then(f,f)}sync(){if(this.error)throw this.error;return this.result}then(f,l){return this.async().then(f,l)}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 f,l=i;try{f=l(this._css,this._opts)}catch(p){this.error=p}if(this.error)throw this.error;return this._root=f,f}get[Symbol.toStringTag](){return"NoWorkResult"}}return fn=a,a.default=a,fn}var hn,Is;function yc(){if(Is)return hn;Is=1;let e=gc(),t=Uo(),r=li(),i=gt();class n{constructor(u=[]){this.version="8.4.38",this.plugins=this.normalize(u)}normalize(u){let f=[];for(let l of u)if(l.postcss===!0?l=l():l.postcss&&(l=l.postcss),typeof l=="object"&&Array.isArray(l.plugins))f=f.concat(l.plugins);else if(typeof l=="object"&&l.postcssPlugin)f.push(l);else if(typeof l=="function")f.push(l);else if(!(typeof l=="object"&&(l.parse||l.stringify)))throw new Error(l+" is not a PostCSS plugin");return f}process(u,f={}){return!this.plugins.length&&!f.parser&&!f.stringifier&&!f.syntax?new e(this,u,f):new t(this,u,f)}use(u){return this.plugins=this.plugins.concat(this.normalize([u])),this}}return hn=n,n.default=n,i.registerProcessor(n),r.registerProcessor(n),hn}var dn,ks;function bc(){if(ks)return dn;ks=1;let e=Qt(),t=Do(),r=er(),i=ci(),n=Zt(),a=gt(),u=fi();function f(l,p){if(Array.isArray(l))return l.map(c=>f(c));let{inputs:o,...d}=l;if(o){p=[];for(let c of o){let s={...c,__proto__:n.prototype};s.map&&(s.map={...s.map,__proto__:t.prototype}),p.push(s)}}if(d.nodes&&(d.nodes=l.nodes.map(c=>f(c,p))),d.source){let{inputId:c,...s}=d.source;d.source=s,c!=null&&(d.source.input=p[c])}if(d.type==="root")return new a(d);if(d.type==="decl")return new e(d);if(d.type==="rule")return new u(d);if(d.type==="comment")return new r(d);if(d.type==="atrule")return new i(d);throw new Error("Unknown node type: "+l.type)}return dn=f,f.default=f,dn}var pn,As;function wc(){if(As)return pn;As=1;let e=oi(),t=Qt(),r=Uo(),i=Ue(),n=yc(),a=Jt(),u=bc(),f=li(),l=Po(),p=er(),o=ci(),d=ui(),c=Zt(),s=hi(),m=Fo(),h=fi(),g=gt(),C=Kt();function b(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new n(v)}return b.plugin=function(E,w){let y=!1;function S(...M){console&&console.warn&&!y&&(y=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
|
|
25
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(
|
|
26
|
-
https://www.w3ctech.com/topic/2226`));let T=w(...M);return T.postcssPlugin=
|
|
27
|
-
`+g+o("^")}return" "+d
|
|
22
|
+
`),this.css+=s+"/*# sourceMappingURL="+f+" */"}applyPrevMaps(){for(let f of this.previous()){let s=this.toUrl(this.path(f.file)),m=f.root||r(f.file),d;this.mapOpts.sourcesContent===!1?(d=new e(f.text),d.sourcesContent&&(d.sourcesContent=null)):d=f.consumer(),this.map.applySourceMap(d,s,this.toUrl(this.path(m)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let f;for(let s=this.root.nodes.length-1;s>=0;s--)f=this.root.nodes[s],f.type==="comment"&&f.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(s)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),p&&a&&this.isMap())return this.generateMap();{let f="";return this.stringify(this.root,s=>{f+=s}),[f]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let f=this.previous()[0].consumer();f.file=this.outputFile(),this.map=t.fromSourceMap(f,{ignoreInvalidMapping:!0})}else this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let f=1,s=1,m="<no source>",d={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,E;this.stringify(this.root,(b,v,C)=>{if(this.css+=b,v&&C!=="end"&&(d.generated.line=f,d.generated.column=s-1,v.source&&v.source.start?(d.source=this.sourcePath(v),d.original.line=v.source.start.line,d.original.column=v.source.start.column-1,this.map.addMapping(d)):(d.source=m,d.original.line=1,d.original.column=0,this.map.addMapping(d))),g=b.match(/\n/g),g?(f+=g.length,E=b.lastIndexOf(`
|
|
23
|
+
`),s=b.length-E):s+=b.length,v&&C!=="start"){let w=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==w.last||w.raws.semicolon)&&(v.source&&v.source.end?(d.source=this.sourcePath(v),d.original.line=v.source.end.line,d.original.column=v.source.end.column-1,d.generated.line=f,d.generated.column=s-2,this.map.addMapping(d)):(d.source=m,d.original.line=1,d.original.column=0,d.generated.line=f,d.generated.column=s-1,this.map.addMapping(d)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(f=>f.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let f=this.mapOpts.annotation;return typeof f<"u"&&f!==!0?!1:this.previous().length?this.previous().some(s=>s.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(f=>f.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(f){if(this.mapOpts.absolute||f.charCodeAt(0)===60||/^\w+:\/\//.test(f))return f;let s=this.memoizedPaths.get(f);if(s)return s;let m=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=r(n(m,this.mapOpts.annotation)));let d=i(m,f);return this.memoizedPaths.set(f,d),d}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(f=>{if(f.source&&f.source.input.map){let s=f.source.input.map;this.previousMaps.includes(s)||this.previousMaps.push(s)}});else{let f=new c(this.originalCSS,this.opts);f.map&&this.previousMaps.push(f.map)}return this.previousMaps}setSourcesContent(){let f={};if(this.root)this.root.walk(s=>{if(s.source){let m=s.source.input.from;if(m&&!f[m]){f[m]=!0;let d=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(d,s.source.input.css)}}});else if(this.css){let s=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(s,this.css)}}sourcePath(f){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(f.source.input.from):this.toUrl(this.path(f.source.input.from))}toBase64(f){return Buffer?Buffer.from(f).toString("base64"):window.btoa(unescape(encodeURIComponent(f)))}toFileUrl(f){let s=this.memoizedFileURLs.get(f);if(s)return s;if(u){let m=u(f).toString();return this.memoizedFileURLs.set(f,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(f){let s=this.memoizedURLs.get(f);if(s)return s;l==="\\"&&(f=f.replace(/\\/g,"/"));let m=encodeURI(f).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(f,m),m}}return sn=o,sn}var on,Is;function or(){if(Is)return on;Is=1;let e=nr();class t extends e{constructor(i){super(i),this.type="comment"}}return on=t,t.default=t,on}var an,As;function Be(){if(As)return an;As=1;let{isClean:e,my:t}=gi(),r=ir(),i=or(),n=nr(),l,u,c,a;function p(f){return f.map(s=>(s.nodes&&(s.nodes=p(s.nodes)),delete s.source,s))}function o(f){if(f[e]=!1,f.proxyOf.nodes)for(let s of f.proxyOf.nodes)o(s)}class h extends n{append(...s){for(let m of s){let d=this.normalize(m,this.last);for(let g of d)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(s){if(super.cleanRaws(s),this.nodes)for(let m of this.nodes)m.cleanRaws(s)}each(s){if(!this.proxyOf.nodes)return;let m=this.getIterator(),d,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(d=this.indexes[m],g=s(this.proxyOf.nodes[d],d),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(s){return this.nodes.every(s)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let s=this.lastEach;return this.indexes[s]=0,s}getProxyProcessor(){return{get(s,m){return m==="proxyOf"?s:s[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...d)=>s[m](...d.map(g=>typeof g=="function"?(E,b)=>g(E.toProxy(),b):g)):m==="every"||m==="some"?d=>s[m]((g,...E)=>d(g.toProxy(),...E)):m==="root"?()=>s.root().toProxy():m==="nodes"?s.nodes.map(d=>d.toProxy()):m==="first"||m==="last"?s[m].toProxy():s[m]:s[m]},set(s,m,d){return s[m]===d||(s[m]=d,(m==="name"||m==="params"||m==="selector")&&s.markDirty()),!0}}}index(s){return typeof s=="number"?s:(s.proxyOf&&(s=s.proxyOf),this.proxyOf.nodes.indexOf(s))}insertAfter(s,m){let d=this.index(s),g=this.normalize(m,this.proxyOf.nodes[d]).reverse();d=this.index(s);for(let b of g)this.proxyOf.nodes.splice(d+1,0,b);let E;for(let b in this.indexes)E=this.indexes[b],d<E&&(this.indexes[b]=E+g.length);return this.markDirty(),this}insertBefore(s,m){let d=this.index(s),g=d===0?"prepend":!1,E=this.normalize(m,this.proxyOf.nodes[d],g).reverse();d=this.index(s);for(let v of E)this.proxyOf.nodes.splice(d,0,v);let b;for(let v in this.indexes)b=this.indexes[v],d<=b&&(this.indexes[v]=b+E.length);return this.markDirty(),this}normalize(s,m){if(typeof s=="string")s=p(l(s).nodes);else if(typeof s>"u")s=[];else if(Array.isArray(s)){s=s.slice(0);for(let g of s)g.parent&&g.parent.removeChild(g,"ignore")}else if(s.type==="root"&&this.type!=="document"){s=s.nodes.slice(0);for(let g of s)g.parent&&g.parent.removeChild(g,"ignore")}else if(s.type)s=[s];else if(s.prop){if(typeof s.value>"u")throw new Error("Value field is missed in node creation");typeof s.value!="string"&&(s.value=String(s.value)),s=[new r(s)]}else if(s.selector)s=[new u(s)];else if(s.name)s=[new c(s)];else if(s.text)s=[new i(s)];else throw new Error("Unknown node type in node creation");return s.map(g=>(g[t]||h.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&o(g),typeof g.raws.before>"u"&&m&&typeof m.raws.before<"u"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...s){s=s.reverse();for(let m of s){let d=this.normalize(m,this.first,"prepend").reverse();for(let g of d)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+d.length}return this.markDirty(),this}push(s){return s.parent=this,this.proxyOf.nodes.push(s),this}removeAll(){for(let s of this.proxyOf.nodes)s.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(s){s=this.index(s),this.proxyOf.nodes[s].parent=void 0,this.proxyOf.nodes.splice(s,1);let m;for(let d in this.indexes)m=this.indexes[d],m>=s&&(this.indexes[d]=m-1);return this.markDirty(),this}replaceValues(s,m,d){return d||(d=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(s,d))}),this.markDirty(),this}some(s){return this.nodes.some(s)}walk(s){return this.each((m,d)=>{let g;try{g=s(m,d)}catch(E){throw m.addToError(E)}return g!==!1&&m.walk&&(g=m.walk(s)),g})}walkAtRules(s,m){return m?s instanceof RegExp?this.walk((d,g)=>{if(d.type==="atrule"&&s.test(d.name))return m(d,g)}):this.walk((d,g)=>{if(d.type==="atrule"&&d.name===s)return m(d,g)}):(m=s,this.walk((d,g)=>{if(d.type==="atrule")return m(d,g)}))}walkComments(s){return this.walk((m,d)=>{if(m.type==="comment")return s(m,d)})}walkDecls(s,m){return m?s instanceof RegExp?this.walk((d,g)=>{if(d.type==="decl"&&s.test(d.prop))return m(d,g)}):this.walk((d,g)=>{if(d.type==="decl"&&d.prop===s)return m(d,g)}):(m=s,this.walk((d,g)=>{if(d.type==="decl")return m(d,g)}))}walkRules(s,m){return m?s instanceof RegExp?this.walk((d,g)=>{if(d.type==="rule"&&s.test(d.selector))return m(d,g)}):this.walk((d,g)=>{if(d.type==="rule"&&d.selector===s)return m(d,g)}):(m=s,this.walk((d,g)=>{if(d.type==="rule")return m(d,g)}))}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]}}return h.registerParse=f=>{l=f},h.registerRule=f=>{u=f},h.registerAtRule=f=>{c=f},h.registerRoot=f=>{a=f},an=h,h.default=h,h.rebuild=f=>{f.type==="atrule"?Object.setPrototypeOf(f,c.prototype):f.type==="rule"?Object.setPrototypeOf(f,u.prototype):f.type==="decl"?Object.setPrototypeOf(f,r.prototype):f.type==="comment"?Object.setPrototypeOf(f,i.prototype):f.type==="root"&&Object.setPrototypeOf(f,a.prototype),f[t]=!0,f.nodes&&f.nodes.forEach(s=>{h.rebuild(s)})},an}var ln,Ds;function yi(){if(Ds)return ln;Ds=1;let e=Be(),t,r;class i extends e{constructor(l){super({type:"document",...l}),this.nodes||(this.nodes=[])}toResult(l={}){return new t(new r,this,l).stringify()}}return i.registerLazyResult=n=>{t=n},i.registerProcessor=n=>{r=n},ln=i,i.default=i,ln}var un,_s;function Ko(){if(_s)return un;_s=1;let e={};return un=function(r){e[r]||(e[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))},un}var cn,Ls;function Qo(){if(Ls)return cn;Ls=1;class e{constructor(r,i={}){if(this.type="warning",this.text=r,i.node&&i.node.source){let n=i.node.rangeBy(i);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in i)this[n]=i[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}}return cn=e,e.default=e,cn}var fn,Ps;function bi(){if(Ps)return fn;Ps=1;let e=Qo();class t{constructor(i,n,l){this.processor=i,this.messages=[],this.root=n,this.opts=l,this.css=void 0,this.map=void 0}toString(){return this.css}warn(i,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let l=new e(i,n);return this.messages.push(l),l}warnings(){return this.messages.filter(i=>i.type==="warning")}get content(){return this.css}}return fn=t,t.default=t,fn}var dn,Fs;function Wc(){if(Fs)return dn;Fs=1;let e=39,t=34,r=92,i=47,n=10,l=32,u=12,c=9,a=13,p=91,o=93,h=40,f=41,s=123,m=125,d=59,g=42,E=58,b=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,C=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,y=/[\da-f]/i;return dn=function(x,M={}){let T=x.css.valueOf(),I=M.ignoreErrors,k,R,te,re,U,P,V,Q,$,B,ue=T.length,N=0,xe=[],pe=[];function dt(){return N}function ie(A){throw x.error("Unclosed "+A,N)}function we(){return pe.length===0&&N>=ue}function Fe(A){if(pe.length)return pe.pop();if(N>=ue)return;let Z=A?A.ignoreUnclosed:!1;switch(k=T.charCodeAt(N),k){case n:case l:case c:case a:case u:{R=N;do R+=1,k=T.charCodeAt(R);while(k===l||k===n||k===c||k===a||k===u);B=["space",T.slice(N,R)],N=R-1;break}case p:case o:case s:case m:case E:case d:case f:{let W=String.fromCharCode(k);B=[W,W,N];break}case h:{if(Q=xe.length?xe.pop()[1]:"",$=T.charCodeAt(N+1),Q==="url"&&$!==e&&$!==t&&$!==l&&$!==n&&$!==c&&$!==u&&$!==a){R=N;do{if(P=!1,R=T.indexOf(")",R+1),R===-1)if(I||Z){R=N;break}else ie("bracket");for(V=R;T.charCodeAt(V-1)===r;)V-=1,P=!P}while(P);B=["brackets",T.slice(N,R+1),N,R],N=R}else R=T.indexOf(")",N+1),re=T.slice(N,R+1),R===-1||w.test(re)?B=["(","(",N]:(B=["brackets",re,N,R],N=R);break}case e:case t:{te=k===e?"'":'"',R=N;do{if(P=!1,R=T.indexOf(te,R+1),R===-1)if(I||Z){R=N+1;break}else ie("string");for(V=R;T.charCodeAt(V-1)===r;)V-=1,P=!P}while(P);B=["string",T.slice(N,R+1),N,R],N=R;break}case b:{v.lastIndex=N+1,v.test(T),v.lastIndex===0?R=T.length-1:R=v.lastIndex-2,B=["at-word",T.slice(N,R+1),N,R],N=R;break}case r:{for(R=N,U=!0;T.charCodeAt(R+1)===r;)R+=1,U=!U;if(k=T.charCodeAt(R+1),U&&k!==i&&k!==l&&k!==n&&k!==c&&k!==a&&k!==u&&(R+=1,y.test(T.charAt(R)))){for(;y.test(T.charAt(R+1));)R+=1;T.charCodeAt(R+1)===l&&(R+=1)}B=["word",T.slice(N,R+1),N,R],N=R;break}default:{k===i&&T.charCodeAt(N+1)===g?(R=T.indexOf("*/",N+2)+1,R===0&&(I||Z?R=T.length:ie("comment")),B=["comment",T.slice(N,R+1),N,R],N=R):(C.lastIndex=N+1,C.test(T),C.lastIndex===0?R=T.length-1:R=C.lastIndex-2,B=["word",T.slice(N,R+1),N,R],xe.push(B),N=R);break}}return N++,B}function ke(A){pe.push(A)}return{back:ke,endOfFile:we,nextToken:Fe,position:dt}},dn}var hn,Us;function wi(){if(Us)return hn;Us=1;let e=Be();class t extends e{constructor(i){super(i),this.type="atrule"}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}}return hn=t,t.default=t,e.registerAtRule(t),hn}var pn,Bs;function wt(){if(Bs)return pn;Bs=1;let e=Be(),t,r;class i extends e{constructor(l){super(l),this.type="root",this.nodes||(this.nodes=[])}normalize(l,u,c){let a=super.normalize(l);if(u){if(c==="prepend")this.nodes.length>1?u.raws.before=this.nodes[1].raws.before:delete u.raws.before;else if(this.first!==u)for(let p of a)p.raws.before=u.raws.before}return a}removeChild(l,u){let c=this.index(l);return!u&&c===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[c].raws.before),super.removeChild(l)}toResult(l={}){return new t(new r,this,l).stringify()}}return i.registerLazyResult=n=>{t=n},i.registerProcessor=n=>{r=n},pn=i,i.default=i,e.registerRoot(i),pn}var mn,$s;function Zo(){if($s)return mn;$s=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
|
|
24
|
+
`," "];return e.split(t,r)},split(t,r,i){let n=[],l="",u=!1,c=0,a=!1,p="",o=!1;for(let h of t)o?o=!1:h==="\\"?o=!0:a?h===p&&(a=!1):h==='"'||h==="'"?(a=!0,p=h):h==="("?c+=1:h===")"?c>0&&(c-=1):c===0&&r.includes(h)&&(u=!0),u?(l!==""&&n.push(l.trim()),l="",u=!1):l+=h;return(i||l!=="")&&n.push(l.trim()),n}};return mn=e,e.default=e,mn}var gn,Ws;function vi(){if(Ws)return gn;Ws=1;let e=Be(),t=Zo();class r extends e{constructor(n){super(n),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(n){let l=this.selector?this.selector.match(/,\s*/):null,u=l?l[0]:","+this.raw("between","beforeOpen");this.selector=n.join(u)}}return gn=r,r.default=r,e.registerRule(r),gn}var yn,zs;function zc(){if(zs)return yn;zs=1;let e=ir(),t=Wc(),r=or(),i=wi(),n=wt(),l=vi(),u={empty:!0,space:!0};function c(p){for(let o=p.length-1;o>=0;o--){let h=p[o],f=h[3]||h[2];if(f)return f}}class a{constructor(o){this.input=o,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}atrule(o){let h=new i;h.name=o[1].slice(1),h.name===""&&this.unnamedAtrule(h,o),this.init(h,o[2]);let f,s,m,d=!1,g=!1,E=[],b=[];for(;!this.tokenizer.endOfFile();){if(o=this.tokenizer.nextToken(),f=o[0],f==="("||f==="["?b.push(f==="("?")":"]"):f==="{"&&b.length>0?b.push("}"):f===b[b.length-1]&&b.pop(),b.length===0)if(f===";"){h.source.end=this.getPosition(o[2]),h.source.end.offset++,this.semicolon=!0;break}else if(f==="{"){g=!0;break}else if(f==="}"){if(E.length>0){for(m=E.length-1,s=E[m];s&&s[0]==="space";)s=E[--m];s&&(h.source.end=this.getPosition(s[3]||s[2]),h.source.end.offset++)}this.end(o);break}else E.push(o);else E.push(o);if(this.tokenizer.endOfFile()){d=!0;break}}h.raws.between=this.spacesAndCommentsFromEnd(E),E.length?(h.raws.afterName=this.spacesAndCommentsFromStart(E),this.raw(h,"params",E),d&&(o=E[E.length-1],h.source.end=this.getPosition(o[3]||o[2]),h.source.end.offset++,this.spaces=h.raws.between,h.raws.between="")):(h.raws.afterName="",h.params=""),g&&(h.nodes=[],this.current=h)}checkMissedSemicolon(o){let h=this.colon(o);if(h===!1)return;let f=0,s;for(let m=h-1;m>=0&&(s=o[m],!(s[0]!=="space"&&(f+=1,f===2)));m--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(o){let h=0,f,s,m;for(let[d,g]of o.entries()){if(f=g,s=f[0],s==="("&&(h+=1),s===")"&&(h-=1),h===0&&s===":")if(!m)this.doubleColon(f);else{if(m[0]==="word"&&m[1]==="progid")continue;return d}m=f}return!1}comment(o){let h=new r;this.init(h,o[2]),h.source.end=this.getPosition(o[3]||o[2]),h.source.end.offset++;let f=o[1].slice(2,-2);if(/^\s*$/.test(f))h.text="",h.raws.left=f,h.raws.right="";else{let s=f.match(/^(\s*)([^]*\S)(\s*)$/);h.text=s[2],h.raws.left=s[1],h.raws.right=s[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(o,h){let f=new e;this.init(f,o[0][2]);let s=o[o.length-1];for(s[0]===";"&&(this.semicolon=!0,o.pop()),f.source.end=this.getPosition(s[3]||s[2]||c(o)),f.source.end.offset++;o[0][0]!=="word";)o.length===1&&this.unknownWord(o),f.raws.before+=o.shift()[1];for(f.source.start=this.getPosition(o[0][2]),f.prop="";o.length;){let b=o[0][0];if(b===":"||b==="space"||b==="comment")break;f.prop+=o.shift()[1]}f.raws.between="";let m;for(;o.length;)if(m=o.shift(),m[0]===":"){f.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),f.raws.between+=m[1];(f.prop[0]==="_"||f.prop[0]==="*")&&(f.raws.before+=f.prop[0],f.prop=f.prop.slice(1));let d=[],g;for(;o.length&&(g=o[0][0],!(g!=="space"&&g!=="comment"));)d.push(o.shift());this.precheckMissedSemicolon(o);for(let b=o.length-1;b>=0;b--){if(m=o[b],m[1].toLowerCase()==="!important"){f.important=!0;let v=this.stringFrom(o,b);v=this.spacesFromEnd(o)+v,v!==" !important"&&(f.raws.important=v);break}else if(m[1].toLowerCase()==="important"){let v=o.slice(0),C="";for(let w=b;w>0;w--){let y=v[w][0];if(C.trim().indexOf("!")===0&&y!=="space")break;C=v.pop()[1]+C}C.trim().indexOf("!")===0&&(f.important=!0,f.raws.important=C,o=v)}if(m[0]!=="space"&&m[0]!=="comment")break}o.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(f.raws.between+=d.map(b=>b[1]).join(""),d=[]),this.raw(f,"value",d.concat(o),h),f.value.includes(":")&&!h&&this.checkMissedSemicolon(o)}doubleColon(o){throw this.input.error("Double colon",{offset:o[2]},{offset:o[2]+o[1].length})}emptyRule(o){let h=new l;this.init(h,o[2]),h.selector="",h.raws.between="",this.current=h}end(o){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(o[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(o)}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(o){if(this.spaces+=o[1],this.current.nodes){let h=this.current.nodes[this.current.nodes.length-1];h&&h.type==="rule"&&!h.raws.ownSemicolon&&(h.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(o){let h=this.input.fromOffset(o);return{column:h.col,line:h.line,offset:o}}init(o,h){this.current.push(o),o.source={input:this.input,start:this.getPosition(h)},o.raws.before=this.spaces,this.spaces="",o.type!=="comment"&&(this.semicolon=!1)}other(o){let h=!1,f=null,s=!1,m=null,d=[],g=o[1].startsWith("--"),E=[],b=o;for(;b;){if(f=b[0],E.push(b),f==="("||f==="[")m||(m=b),d.push(f==="("?")":"]");else if(g&&s&&f==="{")m||(m=b),d.push("}");else if(d.length===0)if(f===";")if(s){this.decl(E,g);return}else break;else if(f==="{"){this.rule(E);return}else if(f==="}"){this.tokenizer.back(E.pop()),h=!0;break}else f===":"&&(s=!0);else f===d[d.length-1]&&(d.pop(),d.length===0&&(m=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(h=!0),d.length>0&&this.unclosedBracket(m),h&&s){if(!g)for(;E.length&&(b=E[E.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(E.pop());this.decl(E,g)}else this.unknownWord(E)}parse(){let o;for(;!this.tokenizer.endOfFile();)switch(o=this.tokenizer.nextToken(),o[0]){case"space":this.spaces+=o[1];break;case";":this.freeSemicolon(o);break;case"}":this.end(o);break;case"comment":this.comment(o);break;case"at-word":this.atrule(o);break;case"{":this.emptyRule(o);break;default:this.other(o);break}this.endFile()}precheckMissedSemicolon(){}raw(o,h,f,s){let m,d,g=f.length,E="",b=!0,v,C;for(let w=0;w<g;w+=1)m=f[w],d=m[0],d==="space"&&w===g-1&&!s?b=!1:d==="comment"?(C=f[w-1]?f[w-1][0]:"empty",v=f[w+1]?f[w+1][0]:"empty",!u[C]&&!u[v]?E.slice(-1)===","?b=!1:E+=m[1]:b=!1):E+=m[1];if(!b){let w=f.reduce((y,S)=>y+S[1],"");o.raws[h]={raw:w,value:E}}o[h]=E}rule(o){o.pop();let h=new l;this.init(h,o[0][2]),h.raws.between=this.spacesAndCommentsFromEnd(o),this.raw(h,"selector",o),this.current=h}spacesAndCommentsFromEnd(o){let h,f="";for(;o.length&&(h=o[o.length-1][0],!(h!=="space"&&h!=="comment"));)f=o.pop()[1]+f;return f}spacesAndCommentsFromStart(o){let h,f="";for(;o.length&&(h=o[0][0],!(h!=="space"&&h!=="comment"));)f+=o.shift()[1];return f}spacesFromEnd(o){let h,f="";for(;o.length&&(h=o[o.length-1][0],h==="space");)f=o.pop()[1]+f;return f}stringFrom(o,h){let f="";for(let s=h;s<o.length;s++)f+=o[s][1];return o.splice(h,o.length-h),f}unclosedBlock(){let o=this.current.source.start;throw this.input.error("Unclosed block",o.line,o.column)}unclosedBracket(o){throw this.input.error("Unclosed bracket",{offset:o[2]},{offset:o[2]+1})}unexpectedClose(o){throw this.input.error("Unexpected }",{offset:o[2]},{offset:o[2]+1})}unknownWord(o){throw this.input.error("Unknown word",{offset:o[0][2]},{offset:o[0][2]+o[0][1].length})}unnamedAtrule(o,h){throw this.input.error("At-rule without name",{offset:h[2]},{offset:h[2]+h[1].length})}}return yn=a,yn}var bn,qs;function Si(){if(qs)return bn;qs=1;let e=Be(),t=zc(),r=sr();function i(n,l){let u=new r(n,l),c=new t(u);try{c.parse()}catch(a){throw a}return c.root}return bn=i,i.default=i,e.registerParse(i),bn}var wn,js;function ea(){if(js)return wn;js=1;let{isClean:e,my:t}=gi(),r=Jo(),i=rr(),n=Be(),l=yi(),u=Ko(),c=bi(),a=Si(),p=wt(),o={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},h={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},f={Once:!0,postcssPlugin:!0,prepare:!0},s=0;function m(C){return typeof C=="object"&&typeof C.then=="function"}function d(C){let w=!1,y=o[C.type];return C.type==="decl"?w=C.prop.toLowerCase():C.type==="atrule"&&(w=C.name.toLowerCase()),w&&C.append?[y,y+"-"+w,s,y+"Exit",y+"Exit-"+w]:w?[y,y+"-"+w,y+"Exit",y+"Exit-"+w]:C.append?[y,s,y+"Exit"]:[y,y+"Exit"]}function g(C){let w;return C.type==="document"?w=["Document",s,"DocumentExit"]:C.type==="root"?w=["Root",s,"RootExit"]:w=d(C),{eventIndex:0,events:w,iterator:0,node:C,visitorIndex:0,visitors:[]}}function E(C){return C[e]=!1,C.nodes&&C.nodes.forEach(w=>E(w)),C}let b={};class v{constructor(w,y,S){this.stringified=!1,this.processed=!1;let x;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))x=E(y);else if(y instanceof v||y instanceof c)x=E(y.root),y.map&&(typeof S.map>"u"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=y.map);else{let M=a;S.syntax&&(M=S.syntax.parse),S.parser&&(M=S.parser),M.parse&&(M=M.parse);try{x=M(y,S)}catch(T){this.processed=!0,this.error=T}x&&!x[t]&&n.rebuild(x)}this.result=new c(w,x,S),this.helpers={...b,postcss:b,result:this.result},this.plugins=this.processor.plugins.map(M=>typeof M=="object"&&M.prepare?{...M,...M.prepare(this.result)}:M)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,y){let S=this.result.lastPlugin;try{y&&y.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=S.postcssPlugin,w.setMessage()):S.postcssVersion}catch(x){console&&console.error&&console.error(x)}return w}prepareVisitors(){this.listeners={};let w=(y,S,x)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([y,x])};for(let y of this.plugins)if(typeof y=="object")for(let S in y){if(!h[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[S])if(typeof y[S]=="object")for(let x in y[S])x==="*"?w(y,S,y[S][x]):w(y,S+"-"+x.toLowerCase(),y[S][x]);else typeof y[S]=="function"&&w(y,S,y[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let y=this.plugins[w],S=this.runOnRoot(y);if(m(S))try{await S}catch(x){throw this.handleError(x)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];){w[e]=!0;let y=[g(w)];for(;y.length>0;){let S=this.visitTick(y);if(m(S))try{await S}catch(x){let M=y[y.length-1].node;throw this.handleError(x,M)}}}if(this.listeners.OnceExit)for(let[y,S]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(w.type==="document"){let x=w.nodes.map(M=>S(M,this.helpers));await Promise.all(x)}else await S(w,this.helpers)}catch(x){throw this.handleError(x)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(S=>w.Once(S,this.helpers));return m(y[0])?Promise.all(y):y}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,y=i;w.syntax&&(y=w.syntax.stringify),w.stringifier&&(y=w.stringifier),y.stringify&&(y=y.stringify);let x=new r(y,this.result.root,this.result.opts).generate();return this.result.css=x[0],this.result.map=x[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let w of this.plugins){let y=this.runOnRoot(w);if(m(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];)w[e]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let y of w.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,y){return this.async().then(w,y)}toString(){return this.css}visitSync(w,y){for(let[S,x]of w){this.result.lastPlugin=S;let M;try{M=x(y,this.helpers)}catch(T){throw this.handleError(T,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(m(M))throw this.getAsyncError()}}visitTick(w){let y=w[w.length-1],{node:S,visitors:x}=y;if(S.type!=="root"&&S.type!=="document"&&!S.parent){w.pop();return}if(x.length>0&&y.visitorIndex<x.length){let[T,I]=x[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===x.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=T;try{return I(S.toProxy(),this.helpers)}catch(k){throw this.handleError(k,S)}}if(y.iterator!==0){let T=y.iterator,I;for(;I=S.nodes[S.indexes[T]];)if(S.indexes[T]+=1,!I[e]){I[e]=!0,w.push(g(I));return}y.iterator=0,delete S.indexes[T]}let M=y.events;for(;y.eventIndex<M.length;){let T=M[y.eventIndex];if(y.eventIndex+=1,T===s){S.nodes&&S.nodes.length&&(S[e]=!0,y.iterator=S.getIterator());return}else if(this.listeners[T]){y.visitors=this.listeners[T];return}}w.pop()}walkSync(w){w[e]=!0;let y=d(w);for(let S of y)if(S===s)w.nodes&&w.each(x=>{x[e]||this.walkSync(x)});else{let x=this.listeners[S];if(x&&this.visitSync(x,w.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"}}return v.registerPostcss=C=>{b=C},wn=v,v.default=v,p.registerLazyResult(v),l.registerLazyResult(v),wn}var vn,Vs;function qc(){if(Vs)return vn;Vs=1;let e=Jo(),t=rr(),r=Ko(),i=Si(),n=bi();class l{constructor(c,a,p){a=a.toString(),this.stringified=!1,this._processor=c,this._css=a,this._opts=p,this._map=void 0;let o,h=t;this.result=new n(this._processor,o,this._opts),this.result.css=a;let f=this;Object.defineProperty(this.result,"root",{get(){return f.root}});let s=new e(h,o,this._opts,a);if(s.isMap()){let[m,d]=s.generate();m&&(this.result.css=m),d&&(this.result.map=d)}else s.clearAnnotation(),this.result.css=s.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(c){return this.async().catch(c)}finally(c){return this.async().then(c,c)}sync(){if(this.error)throw this.error;return this.result}then(c,a){return this.async().then(c,a)}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 c,a=i;try{c=a(this._css,this._opts)}catch(p){this.error=p}if(this.error)throw this.error;return this._root=c,c}get[Symbol.toStringTag](){return"NoWorkResult"}}return vn=l,l.default=l,vn}var Sn,Hs;function jc(){if(Hs)return Sn;Hs=1;let e=qc(),t=ea(),r=yi(),i=wt();class n{constructor(u=[]){this.version="8.4.38",this.plugins=this.normalize(u)}normalize(u){let c=[];for(let a of u)if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),typeof a=="object"&&Array.isArray(a.plugins))c=c.concat(a.plugins);else if(typeof a=="object"&&a.postcssPlugin)c.push(a);else if(typeof a=="function")c.push(a);else if(!(typeof a=="object"&&(a.parse||a.stringify)))throw new Error(a+" is not a PostCSS plugin");return c}process(u,c={}){return!this.plugins.length&&!c.parser&&!c.stringifier&&!c.syntax?new e(this,u,c):new t(this,u,c)}use(u){return this.plugins=this.plugins.concat(this.normalize([u])),this}}return Sn=n,n.default=n,i.registerProcessor(n),r.registerProcessor(n),Sn}var En,Gs;function Vc(){if(Gs)return En;Gs=1;let e=ir(),t=Xo(),r=or(),i=wi(),n=sr(),l=wt(),u=vi();function c(a,p){if(Array.isArray(a))return a.map(f=>c(f));let{inputs:o,...h}=a;if(o){p=[];for(let f of o){let s={...f,__proto__:n.prototype};s.map&&(s.map={...s.map,__proto__:t.prototype}),p.push(s)}}if(h.nodes&&(h.nodes=a.nodes.map(f=>c(f,p))),h.source){let{inputId:f,...s}=h.source;h.source=s,f!=null&&(h.source.input=p[f])}if(h.type==="root")return new l(h);if(h.type==="decl")return new e(h);if(h.type==="rule")return new u(h);if(h.type==="comment")return new r(h);if(h.type==="atrule")return new i(h);throw new Error("Unknown node type: "+a.type)}return En=c,c.default=c,En}var Cn,Ys;function Hc(){if(Ys)return Cn;Ys=1;let e=mi(),t=ir(),r=ea(),i=Be(),n=jc(),l=rr(),u=Vc(),c=yi(),a=Qo(),p=or(),o=wi(),h=bi(),f=sr(),s=Si(),m=Zo(),d=vi(),g=wt(),E=nr();function b(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new n(v)}return b.plugin=function(C,w){let y=!1;function S(...M){console&&console.warn&&!y&&(y=!0,console.warn(C+`: postcss.plugin was deprecated. Migration guide:
|
|
25
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(C+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
|
26
|
+
https://www.w3ctech.com/topic/2226`));let T=w(...M);return T.postcssPlugin=C,T.postcssVersion=new n().version,T}let x;return Object.defineProperty(S,"postcss",{get(){return x||(x=S()),x}}),S.process=function(M,T,I){return b([S(I)]).process(M,T)},S},b.stringify=l,b.parse=s,b.fromJSON=u,b.list=m,b.comment=v=>new p(v),b.atRule=v=>new o(v),b.decl=v=>new t(v),b.rule=v=>new d(v),b.root=v=>new g(v),b.document=v=>new c(v),b.CssSyntaxError=e,b.Declaration=t,b.Container=i,b.Processor=n,b.Document=c,b.Comment=p,b.Warning=a,b.AtRule=o,b.Result=h,b.Input=f,b.Rule=d,b.Root=g,b.Node=E,r.registerPostcss(b),Cn=b,b.default=b,Cn}var Gc=Hc(),H=Lc(Gc);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 Yc=Object.defineProperty,Xc=(e,t,r)=>t in e?Yc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,me=(e,t,r)=>Xc(e,typeof t!="symbol"?t+"":t,r);Date.now().toString();function Jc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Kc(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}),r}var $t={exports:{}},Xs;function Qc(){if(Xs)return $t.exports;Xs=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return $t.exports=t(),$t.exports.createColors=t,$t.exports}var Zc={},ef=Object.freeze(Object.defineProperty({__proto__:null,default:Zc},Symbol.toStringTag,{value:"Module"})),Ee=Kc(ef),xn,Js;function Ei(){if(Js)return xn;Js=1;let e=Qc(),t=Ee;class r extends Error{constructor(n,l,u,c,a,p){super(n),this.name="CssSyntaxError",this.reason=n,a&&(this.file=a),c&&(this.source=c),p&&(this.plugin=p),typeof l<"u"&&typeof u<"u"&&(typeof l=="number"?(this.line=l,this.column=u):(this.line=l.line,this.column=l.column,this.endLine=u.line,this.endColumn=u.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(n){if(!this.source)return"";let l=this.source;n==null&&(n=e.isColorSupported),t&&n&&(l=t(l));let u=l.split(/\r?\n/),c=Math.max(this.line-3,0),a=Math.min(this.line+2,u.length),p=String(a).length,o,h;if(n){let{bold:f,gray:s,red:m}=e.createColors(!0);o=d=>f(m(d)),h=d=>s(d)}else o=h=f=>f;return u.slice(c,a).map((f,s)=>{let m=c+1+s,d=" "+(" "+m).slice(-p)+" | ";if(m===this.line){let g=h(d.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+h(d)+f+`
|
|
27
|
+
`+g+o("^")}return" "+h(d)+f}).join(`
|
|
28
28
|
`)}toString(){let n=this.showSourceCode();return n&&(n=`
|
|
29
29
|
|
|
30
30
|
`+n+`
|
|
31
|
-
`),this.name+": "+this.message+n}}return
|
|
31
|
+
`),this.name+": "+this.message+n}}return xn=r,r.default=r,xn}var Wt={},Ks;function Ci(){return Ks||(Ks=1,Wt.isClean=Symbol("isClean"),Wt.my=Symbol("my")),Wt}var Rn,Qs;function ta(){if(Qs)return Rn;Qs=1;let e={after:`
|
|
32
32
|
`,beforeClose:`
|
|
33
33
|
`,beforeComment:`
|
|
34
34
|
`,beforeDecl:`
|
|
35
35
|
`,beforeOpen:" ",beforeRule:`
|
|
36
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(i){return i[0].toUpperCase()+i.slice(1)}class r{constructor(n){this.builder=n}atrule(n,
|
|
37
|
-
`)){let p=this.raw(n,null,"indent");if(p.length)for(let o=0;o<
|
|
38
|
-
`)&&(
|
|
39
|
-
`)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(
|
|
40
|
-
`)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(
|
|
41
|
-
`)&&(
|
|
42
|
-
`);return a
|
|
43
|
-
`?(
|
|
44
|
-
`);
|
|
36
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(i){return i[0].toUpperCase()+i.slice(1)}class r{constructor(n){this.builder=n}atrule(n,l){let u="@"+n.name,c=n.params?this.rawValue(n,"params"):"";if(typeof n.raws.afterName<"u"?u+=n.raws.afterName:c&&(u+=" "),n.nodes)this.block(n,u+c);else{let a=(n.raws.between||"")+(l?";":"");this.builder(u+c+a,n)}}beforeAfter(n,l){let u;n.type==="decl"?u=this.raw(n,null,"beforeDecl"):n.type==="comment"?u=this.raw(n,null,"beforeComment"):l==="before"?u=this.raw(n,null,"beforeRule"):u=this.raw(n,null,"beforeClose");let c=n.parent,a=0;for(;c&&c.type!=="root";)a+=1,c=c.parent;if(u.includes(`
|
|
37
|
+
`)){let p=this.raw(n,null,"indent");if(p.length)for(let o=0;o<a;o++)u+=p}return u}block(n,l){let u=this.raw(n,"between","beforeOpen");this.builder(l+u+"{",n,"start");let c;n.nodes&&n.nodes.length?(this.body(n),c=this.raw(n,"after")):c=this.raw(n,"after","emptyBody"),c&&this.builder(c),this.builder("}",n,"end")}body(n){let l=n.nodes.length-1;for(;l>0&&n.nodes[l].type==="comment";)l-=1;let u=this.raw(n,"semicolon");for(let c=0;c<n.nodes.length;c++){let a=n.nodes[c],p=this.raw(a,"before");p&&this.builder(p),this.stringify(a,l!==c||u)}}comment(n){let l=this.raw(n,"left","commentLeft"),u=this.raw(n,"right","commentRight");this.builder("/*"+l+n.text+u+"*/",n)}decl(n,l){let u=this.raw(n,"between","colon"),c=n.prop+u+this.rawValue(n,"value");n.important&&(c+=n.raws.important||" !important"),l&&(c+=";"),this.builder(c,n)}document(n){this.body(n)}raw(n,l,u){let c;if(u||(u=l),l&&(c=n.raws[l],typeof c<"u"))return c;let a=n.parent;if(u==="before"&&(!a||a.type==="root"&&a.first===n||a&&a.type==="document"))return"";if(!a)return e[u];let p=n.root();if(p.rawCache||(p.rawCache={}),typeof p.rawCache[u]<"u")return p.rawCache[u];if(u==="before"||u==="after")return this.beforeAfter(n,u);{let o="raw"+t(u);this[o]?c=this[o](p,n):p.walk(h=>{if(c=h.raws[l],typeof c<"u")return!1})}return typeof c>"u"&&(c=e[u]),p.rawCache[u]=c,c}rawBeforeClose(n){let l;return n.walk(u=>{if(u.nodes&&u.nodes.length>0&&typeof u.raws.after<"u")return l=u.raws.after,l.includes(`
|
|
38
|
+
`)&&(l=l.replace(/[^\n]+$/,"")),!1}),l&&(l=l.replace(/\S/g,"")),l}rawBeforeComment(n,l){let u;return n.walkComments(c=>{if(typeof c.raws.before<"u")return u=c.raws.before,u.includes(`
|
|
39
|
+
`)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(l,null,"beforeDecl"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeDecl(n,l){let u;return n.walkDecls(c=>{if(typeof c.raws.before<"u")return u=c.raws.before,u.includes(`
|
|
40
|
+
`)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(l,null,"beforeRule"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeOpen(n){let l;return n.walk(u=>{if(u.type!=="decl"&&(l=u.raws.between,typeof l<"u"))return!1}),l}rawBeforeRule(n){let l;return n.walk(u=>{if(u.nodes&&(u.parent!==n||n.first!==u)&&typeof u.raws.before<"u")return l=u.raws.before,l.includes(`
|
|
41
|
+
`)&&(l=l.replace(/[^\n]+$/,"")),!1}),l&&(l=l.replace(/\S/g,"")),l}rawColon(n){let l;return n.walkDecls(u=>{if(typeof u.raws.between<"u")return l=u.raws.between.replace(/[^\s:]/g,""),!1}),l}rawEmptyBody(n){let l;return n.walk(u=>{if(u.nodes&&u.nodes.length===0&&(l=u.raws.after,typeof l<"u"))return!1}),l}rawIndent(n){if(n.raws.indent)return n.raws.indent;let l;return n.walk(u=>{let c=u.parent;if(c&&c!==n&&c.parent&&c.parent===n&&typeof u.raws.before<"u"){let a=u.raws.before.split(`
|
|
42
|
+
`);return l=a[a.length-1],l=l.replace(/\S/g,""),!1}}),l}rawSemicolon(n){let l;return n.walk(u=>{if(u.nodes&&u.nodes.length&&u.last.type==="decl"&&(l=u.raws.semicolon,typeof l<"u"))return!1}),l}rawValue(n,l){let u=n[l],c=n.raws[l];return c&&c.value===u?c.raw:u}root(n){this.body(n),n.raws.after&&this.builder(n.raws.after)}rule(n){this.block(n,this.rawValue(n,"selector")),n.raws.ownSemicolon&&this.builder(n.raws.ownSemicolon,n,"end")}stringify(n,l){if(!this[n.type])throw new Error("Unknown AST node type "+n.type+". Maybe you need to change PostCSS stringifier.");this[n.type](n,l)}}return Rn=r,r.default=r,Rn}var Tn,Zs;function ar(){if(Zs)return Tn;Zs=1;let e=ta();function t(r,i){new e(i).stringify(r)}return Tn=t,t.default=t,Tn}var Mn,eo;function lr(){if(eo)return Mn;eo=1;let{isClean:e,my:t}=Ci(),r=Ei(),i=ta(),n=ar();function l(c,a){let p=new c.constructor;for(let o in c){if(!Object.prototype.hasOwnProperty.call(c,o)||o==="proxyCache")continue;let h=c[o],f=typeof h;o==="parent"&&f==="object"?a&&(p[o]=a):o==="source"?p[o]=h:Array.isArray(h)?p[o]=h.map(s=>l(s,p)):(f==="object"&&h!==null&&(h=l(h)),p[o]=h)}return p}class u{constructor(a={}){this.raws={},this[e]=!1,this[t]=!0;for(let p in a)if(p==="nodes"){this.nodes=[];for(let o of a[p])typeof o.clone=="function"?this.append(o.clone()):this.append(o)}else this[p]=a[p]}addToError(a){if(a.postcssNode=this,a.stack&&this.source&&/\n\s{4}at /.test(a.stack)){let p=this.source;a.stack=a.stack.replace(/\n\s{4}at /,`$&${p.input.from}:${p.start.line}:${p.start.column}$&`)}return a}after(a){return this.parent.insertAfter(this,a),this}assign(a={}){for(let p in a)this[p]=a[p];return this}before(a){return this.parent.insertBefore(this,a),this}cleanRaws(a){delete this.raws.before,delete this.raws.after,a||delete this.raws.between}clone(a={}){let p=l(this);for(let o in a)p[o]=a[o];return p}cloneAfter(a={}){let p=this.clone(a);return this.parent.insertAfter(this,p),p}cloneBefore(a={}){let p=this.clone(a);return this.parent.insertBefore(this,p),p}error(a,p={}){if(this.source){let{end:o,start:h}=this.rangeBy(p);return this.source.input.error(a,{column:h.column,line:h.line},{column:o.column,line:o.line},p)}return new r(a)}getProxyProcessor(){return{get(a,p){return p==="proxyOf"?a:p==="root"?()=>a.root().toProxy():a[p]},set(a,p,o){return a[p]===o||(a[p]=o,(p==="prop"||p==="value"||p==="name"||p==="params"||p==="important"||p==="text")&&a.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let a=this;for(;a=a.parent;)a[e]=!1}}next(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a+1]}positionBy(a,p){let o=this.source.start;if(a.index)o=this.positionInside(a.index,p);else if(a.word){p=this.toString();let h=p.indexOf(a.word);h!==-1&&(o=this.positionInside(h,p))}return o}positionInside(a,p){let o=p||this.toString(),h=this.source.start.column,f=this.source.start.line;for(let s=0;s<a;s++)o[s]===`
|
|
43
|
+
`?(h=1,f+=1):h+=1;return{column:h,line:f}}prev(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a-1]}rangeBy(a){let p={column:this.source.start.column,line:this.source.start.line},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:p.column+1,line:p.line};if(a.word){let h=this.toString(),f=h.indexOf(a.word);f!==-1&&(p=this.positionInside(f,h),o=this.positionInside(f+a.word.length,h))}else a.start?p={column:a.start.column,line:a.start.line}:a.index&&(p=this.positionInside(a.index)),a.end?o={column:a.end.column,line:a.end.line}:typeof a.endIndex=="number"?o=this.positionInside(a.endIndex):a.index&&(o=this.positionInside(a.index+1));return(o.line<p.line||o.line===p.line&&o.column<=p.column)&&(o={column:p.column+1,line:p.line}),{end:o,start:p}}raw(a,p){return new i().raw(this,a,p)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...a){if(this.parent){let p=this,o=!1;for(let h of a)h===this?o=!0:o?(this.parent.insertAfter(p,h),p=h):this.parent.insertBefore(p,h);o||this.remove()}return this}root(){let a=this;for(;a.parent&&a.parent.type!=="document";)a=a.parent;return a}toJSON(a,p){let o={},h=p==null;p=p||new Map;let f=0;for(let s in this){if(!Object.prototype.hasOwnProperty.call(this,s)||s==="parent"||s==="proxyCache")continue;let m=this[s];if(Array.isArray(m))o[s]=m.map(d=>typeof d=="object"&&d.toJSON?d.toJSON(null,p):d);else if(typeof m=="object"&&m.toJSON)o[s]=m.toJSON(null,p);else if(s==="source"){let d=p.get(m.input);d==null&&(d=f,p.set(m.input,f),f++),o[s]={end:m.end,inputId:d,start:m.start}}else o[s]=m}return h&&(o.inputs=[...p.keys()].map(s=>s.toJSON())),o}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(a=n){a.stringify&&(a=a.stringify);let p="";return a(this,o=>{p+=o}),p}warn(a,p,o){let h={node:this};for(let f in o)h[f]=o[f];return a.warn(p,h)}get proxyOf(){return this}}return Mn=u,u.default=u,Mn}var Nn,to;function ur(){if(to)return Nn;to=1;let e=lr();class t extends e{constructor(i){i&&typeof i.value<"u"&&typeof i.value!="string"&&(i={...i,value:String(i.value)}),super(i),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Nn=t,t.default=t,Nn}var On,ro;function tf(){if(ro)return On;ro=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return On={nanoid:(i=21)=>{let n="",l=i;for(;l--;)n+=e[Math.random()*64|0];return n},customAlphabet:(i,n=21)=>(l=n)=>{let u="",c=l;for(;c--;)u+=i[Math.random()*i.length|0];return u}},On}var kn,no;function ra(){if(no)return kn;no=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=Ee,{existsSync:r,readFileSync:i}=Ee,{dirname:n,join:l}=Ee;function u(a){return Buffer?Buffer.from(a,"base64").toString():window.atob(a)}class c{constructor(p,o){if(o.map===!1)return;this.loadAnnotation(p),this.inline=this.startWith(this.annotation,"data:");let h=o.map?o.map.prev:void 0,f=this.loadMap(o.from,h);!this.mapFile&&o.from&&(this.mapFile=o.from),this.mapFile&&(this.root=n(this.mapFile)),f&&(this.text=f)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(p){let o=/^data:application\/json;charset=utf-?8;base64,/,h=/^data:application\/json;base64,/,f=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(f.test(p)||s.test(p))return decodeURIComponent(p.substr(RegExp.lastMatch.length));if(o.test(p)||h.test(p))return u(p.substr(RegExp.lastMatch.length));let m=p.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(p){return p.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(p){return typeof p!="object"?!1:typeof p.mappings=="string"||typeof p._mappings=="string"||Array.isArray(p.sections)}loadAnnotation(p){let o=p.match(/\/\*\s*# sourceMappingURL=/gm);if(!o)return;let h=p.lastIndexOf(o.pop()),f=p.indexOf("*/",h);h>-1&&f>-1&&(this.annotation=this.getAnnotationURL(p.substring(h,f)))}loadFile(p){if(this.root=n(p),r(p))return this.mapFile=p,i(p,"utf-8").toString().trim()}loadMap(p,o){if(o===!1)return!1;if(o){if(typeof o=="string")return o;if(typeof o=="function"){let h=o(p);if(h){let f=this.loadFile(h);if(!f)throw new Error("Unable to load previous source map: "+h.toString());return f}}else{if(o instanceof e)return t.fromSourceMap(o).toString();if(o instanceof t)return o.toString();if(this.isMap(o))return JSON.stringify(o);throw new Error("Unsupported previous source map format: "+o.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let h=this.annotation;return p&&(h=l(n(p),h)),this.loadFile(h)}}}startWith(p,o){return p?p.substr(0,o.length)===o:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return kn=c,c.default=c,kn}var In,io;function cr(){if(io)return In;io=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=Ee,{fileURLToPath:r,pathToFileURL:i}=Ee,{isAbsolute:n,resolve:l}=Ee,{nanoid:u}=tf(),c=Ee,a=Ei(),p=ra(),o=Symbol("fromOffsetCache"),h=!!(e&&t),f=!!(l&&n);class s{constructor(d,g={}){if(d===null||typeof d>"u"||typeof d=="object"&&!d.toString)throw new Error(`PostCSS received ${d} instead of CSS string`);if(this.css=d.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!f||/^\w+:\/\//.test(g.from)||n(g.from)?this.file=g.from:this.file=l(g.from)),f&&h){let E=new p(this.css,g);if(E.text){this.map=E;let b=E.consumer().file;!this.file&&b&&(this.file=this.mapResolve(b))}}this.file||(this.id="<input css "+u(6)+">"),this.map&&(this.map.file=this.from)}error(d,g,E,b={}){let v,C,w;if(g&&typeof g=="object"){let S=g,x=E;if(typeof S.offset=="number"){let M=this.fromOffset(S.offset);g=M.line,E=M.col}else g=S.line,E=S.column;if(typeof x.offset=="number"){let M=this.fromOffset(x.offset);C=M.line,w=M.col}else C=x.line,w=x.column}else if(!E){let S=this.fromOffset(g);g=S.line,E=S.col}let y=this.origin(g,E,C,w);return y?v=new a(d,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,b.plugin):v=new a(d,C===void 0?g:{column:E,line:g},C===void 0?E:{column:w,line:C},this.css,this.file,b.plugin),v.input={column:E,endColumn:w,endLine:C,line:g,source:this.css},this.file&&(i&&(v.input.url=i(this.file).toString()),v.input.file=this.file),v}fromOffset(d){let g,E;if(this[o])E=this[o];else{let v=this.css.split(`
|
|
44
|
+
`);E=new Array(v.length);let C=0;for(let w=0,y=v.length;w<y;w++)E[w]=C,C+=v[w].length+1;this[o]=E}g=E[E.length-1];let b=0;if(d>=g)b=E.length-1;else{let v=E.length-2,C;for(;b<v;)if(C=b+(v-b>>1),d<E[C])v=C-1;else if(d>=E[C+1])b=C+1;else{b=C;break}}return{col:d-E[b]+1,line:b+1}}mapResolve(d){return/^\w+:\/\//.test(d)?d:l(this.map.consumer().sourceRoot||this.map.root||".",d)}origin(d,g,E,b){if(!this.map)return!1;let v=this.map.consumer(),C=v.originalPositionFor({column:g,line:d});if(!C.source)return!1;let w;typeof E=="number"&&(w=v.originalPositionFor({column:b,line:E}));let y;n(C.source)?y=i(C.source):y=new URL(C.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let S={column:C.column,endColumn:w&&w.column,endLine:w&&w.line,line:C.line,url:y.toString()};if(y.protocol==="file:")if(r)S.file=r(y);else throw new Error("file: protocol is not available in this PostCSS build");let x=v.sourceContentFor(C.source);return x&&(S.source=x),S}toJSON(){let d={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(d[g]=this[g]);return this.map&&(d.map={...this.map},d.map.consumerCache&&(d.map.consumerCache=void 0)),d}get from(){return this.file||this.id}}return In=s,s.default=s,c&&c.registerInput&&c.registerInput(s),In}var An,so;function na(){if(so)return An;so=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=Ee,{dirname:r,relative:i,resolve:n,sep:l}=Ee,{pathToFileURL:u}=Ee,c=cr(),a=!!(e&&t),p=!!(r&&n&&i&&l);class o{constructor(f,s,m,d){this.stringify=f,this.mapOpts=m.map||{},this.root=s,this.opts=m,this.css=d,this.originalCSS=d,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let f;this.isInline()?f="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?f=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?f=this.mapOpts.annotation(this.opts.to,this.root):f=this.outputFile()+".map";let s=`
|
|
45
45
|
`;this.css.includes(`\r
|
|
46
46
|
`)&&(s=`\r
|
|
47
|
-
`),this.css+=s+"/*# sourceMappingURL="+
|
|
48
|
-
`),s=b.length-C):s+=b.length,v&&E!=="start"){let w=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==w.last||w.raws.semicolon)&&(v.source&&v.source.end?(h.source=this.sourcePath(v),h.original.line=v.source.end.line,h.original.column=v.source.end.column-1,h.generated.line=c,h.generated.column=s-2,this.map.addMapping(h)):(h.source=m,h.original.line=1,h.original.column=0,h.generated.line=c,h.generated.column=s-1,this.map.addMapping(h)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c<"u"&&c!==!0?!1:this.previous().length?this.previous().some(s=>s.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let s=this.memoizedPaths.get(c);if(s)return s;let m=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=r(n(m,this.mapOpts.annotation)));let h=i(m,c);return this.memoizedPaths.set(c,h),h}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let s=c.source.input.map;this.previousMaps.includes(s)||this.previousMaps.push(s)}});else{let c=new f(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(s=>{if(s.source){let m=s.source.input.from;if(m&&!c[m]){c[m]=!0;let h=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(h,s.source.input.css)}}});else if(this.css){let s=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(s,this.css)}}sourcePath(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let s=this.memoizedFileURLs.get(c);if(s)return s;if(u){let m=u(c).toString();return this.memoizedFileURLs.set(c,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let s=this.memoizedURLs.get(c);if(s)return s;a==="\\"&&(c=c.replace(/\\/g,"/"));let m=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,m),m}}return En=o,En}var xn,Vs;function sr(){if(Vs)return xn;Vs=1;let e=rr();class t extends e{constructor(i){super(i),this.type="comment"}}return xn=t,t.default=t,xn}var Rn,js;function Be(){if(js)return Rn;js=1;let{isClean:e,my:t}=pi(),r=nr(),i=sr(),n=rr(),a,u,f,l;function p(c){return c.map(s=>(s.nodes&&(s.nodes=p(s.nodes)),delete s.source,s))}function o(c){if(c[e]=!1,c.proxyOf.nodes)for(let s of c.proxyOf.nodes)o(s)}class d extends n{append(...s){for(let m of s){let h=this.normalize(m,this.last);for(let g of h)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(s){if(super.cleanRaws(s),this.nodes)for(let m of this.nodes)m.cleanRaws(s)}each(s){if(!this.proxyOf.nodes)return;let m=this.getIterator(),h,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(h=this.indexes[m],g=s(this.proxyOf.nodes[h],h),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(s){return this.nodes.every(s)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let s=this.lastEach;return this.indexes[s]=0,s}getProxyProcessor(){return{get(s,m){return m==="proxyOf"?s:s[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...h)=>s[m](...h.map(g=>typeof g=="function"?(C,b)=>g(C.toProxy(),b):g)):m==="every"||m==="some"?h=>s[m]((g,...C)=>h(g.toProxy(),...C)):m==="root"?()=>s.root().toProxy():m==="nodes"?s.nodes.map(h=>h.toProxy()):m==="first"||m==="last"?s[m].toProxy():s[m]:s[m]},set(s,m,h){return s[m]===h||(s[m]=h,(m==="name"||m==="params"||m==="selector")&&s.markDirty()),!0}}}index(s){return typeof s=="number"?s:(s.proxyOf&&(s=s.proxyOf),this.proxyOf.nodes.indexOf(s))}insertAfter(s,m){let h=this.index(s),g=this.normalize(m,this.proxyOf.nodes[h]).reverse();h=this.index(s);for(let b of g)this.proxyOf.nodes.splice(h+1,0,b);let C;for(let b in this.indexes)C=this.indexes[b],h<C&&(this.indexes[b]=C+g.length);return this.markDirty(),this}insertBefore(s,m){let h=this.index(s),g=h===0?"prepend":!1,C=this.normalize(m,this.proxyOf.nodes[h],g).reverse();h=this.index(s);for(let v of C)this.proxyOf.nodes.splice(h,0,v);let b;for(let v in this.indexes)b=this.indexes[v],h<=b&&(this.indexes[v]=b+C.length);return this.markDirty(),this}normalize(s,m){if(typeof s=="string")s=p(a(s).nodes);else if(typeof s>"u")s=[];else if(Array.isArray(s)){s=s.slice(0);for(let g of s)g.parent&&g.parent.removeChild(g,"ignore")}else if(s.type==="root"&&this.type!=="document"){s=s.nodes.slice(0);for(let g of s)g.parent&&g.parent.removeChild(g,"ignore")}else if(s.type)s=[s];else if(s.prop){if(typeof s.value>"u")throw new Error("Value field is missed in node creation");typeof s.value!="string"&&(s.value=String(s.value)),s=[new r(s)]}else if(s.selector)s=[new u(s)];else if(s.name)s=[new f(s)];else if(s.text)s=[new i(s)];else throw new Error("Unknown node type in node creation");return s.map(g=>(g[t]||d.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&o(g),typeof g.raws.before>"u"&&m&&typeof m.raws.before<"u"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...s){s=s.reverse();for(let m of s){let h=this.normalize(m,this.first,"prepend").reverse();for(let g of h)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+h.length}return this.markDirty(),this}push(s){return s.parent=this,this.proxyOf.nodes.push(s),this}removeAll(){for(let s of this.proxyOf.nodes)s.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(s){s=this.index(s),this.proxyOf.nodes[s].parent=void 0,this.proxyOf.nodes.splice(s,1);let m;for(let h in this.indexes)m=this.indexes[h],m>=s&&(this.indexes[h]=m-1);return this.markDirty(),this}replaceValues(s,m,h){return h||(h=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(s,h))}),this.markDirty(),this}some(s){return this.nodes.some(s)}walk(s){return this.each((m,h)=>{let g;try{g=s(m,h)}catch(C){throw m.addToError(C)}return g!==!1&&m.walk&&(g=m.walk(s)),g})}walkAtRules(s,m){return m?s instanceof RegExp?this.walk((h,g)=>{if(h.type==="atrule"&&s.test(h.name))return m(h,g)}):this.walk((h,g)=>{if(h.type==="atrule"&&h.name===s)return m(h,g)}):(m=s,this.walk((h,g)=>{if(h.type==="atrule")return m(h,g)}))}walkComments(s){return this.walk((m,h)=>{if(m.type==="comment")return s(m,h)})}walkDecls(s,m){return m?s instanceof RegExp?this.walk((h,g)=>{if(h.type==="decl"&&s.test(h.prop))return m(h,g)}):this.walk((h,g)=>{if(h.type==="decl"&&h.prop===s)return m(h,g)}):(m=s,this.walk((h,g)=>{if(h.type==="decl")return m(h,g)}))}walkRules(s,m){return m?s instanceof RegExp?this.walk((h,g)=>{if(h.type==="rule"&&s.test(h.selector))return m(h,g)}):this.walk((h,g)=>{if(h.type==="rule"&&h.selector===s)return m(h,g)}):(m=s,this.walk((h,g)=>{if(h.type==="rule")return m(h,g)}))}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]}}return d.registerParse=c=>{a=c},d.registerRule=c=>{u=c},d.registerAtRule=c=>{f=c},d.registerRoot=c=>{l=c},Rn=d,d.default=d,d.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,f.prototype):c.type==="rule"?Object.setPrototypeOf(c,u.prototype):c.type==="decl"?Object.setPrototypeOf(c,r.prototype):c.type==="comment"?Object.setPrototypeOf(c,i.prototype):c.type==="root"&&Object.setPrototypeOf(c,l.prototype),c[t]=!0,c.nodes&&c.nodes.forEach(s=>{d.rebuild(s)})},Rn}var Tn,Hs;function mi(){if(Hs)return Tn;Hs=1;let e=Be(),t,r;class i extends e{constructor(a){super({type:"document",...a}),this.nodes||(this.nodes=[])}toResult(a={}){return new t(new r,this,a).stringify()}}return i.registerLazyResult=n=>{t=n},i.registerProcessor=n=>{r=n},Tn=i,i.default=i,Tn}var Mn,Gs;function zo(){if(Gs)return Mn;Gs=1;let e={};return Mn=function(r){e[r]||(e[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))},Mn}var Nn,Ys;function qo(){if(Ys)return Nn;Ys=1;class e{constructor(r,i={}){if(this.type="warning",this.text=r,i.node&&i.node.source){let n=i.node.rangeBy(i);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in i)this[n]=i[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}}return Nn=e,e.default=e,Nn}var On,Xs;function gi(){if(Xs)return On;Xs=1;let e=qo();class t{constructor(i,n,a){this.processor=i,this.messages=[],this.root=n,this.opts=a,this.css=void 0,this.map=void 0}toString(){return this.css}warn(i,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let a=new e(i,n);return this.messages.push(a),a}warnings(){return this.messages.filter(i=>i.type==="warning")}get content(){return this.css}}return On=t,t.default=t,On}var In,Js;function Oc(){if(Js)return In;Js=1;let e=39,t=34,r=92,i=47,n=10,a=32,u=12,f=9,l=13,p=91,o=93,d=40,c=41,s=123,m=125,h=59,g=42,C=58,b=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,y=/[\da-f]/i;return In=function(x,M={}){let T=x.css.valueOf(),k=M.ignoreErrors,I,R,te,re,U,P,j,Q,$,B,le=T.length,N=0,Ee=[],pe=[];function ut(){return N}function ie(A){throw x.error("Unclosed "+A,N)}function be(){return pe.length===0&&N>=le}function Pe(A){if(pe.length)return pe.pop();if(N>=le)return;let Z=A?A.ignoreUnclosed:!1;switch(I=T.charCodeAt(N),I){case n:case a:case f:case l:case u:{R=N;do R+=1,I=T.charCodeAt(R);while(I===a||I===n||I===f||I===l||I===u);B=["space",T.slice(N,R)],N=R-1;break}case p:case o:case s:case m:case C:case h:case c:{let W=String.fromCharCode(I);B=[W,W,N];break}case d:{if(Q=Ee.length?Ee.pop()[1]:"",$=T.charCodeAt(N+1),Q==="url"&&$!==e&&$!==t&&$!==a&&$!==n&&$!==f&&$!==u&&$!==l){R=N;do{if(P=!1,R=T.indexOf(")",R+1),R===-1)if(k||Z){R=N;break}else ie("bracket");for(j=R;T.charCodeAt(j-1)===r;)j-=1,P=!P}while(P);B=["brackets",T.slice(N,R+1),N,R],N=R}else R=T.indexOf(")",N+1),re=T.slice(N,R+1),R===-1||w.test(re)?B=["(","(",N]:(B=["brackets",re,N,R],N=R);break}case e:case t:{te=I===e?"'":'"',R=N;do{if(P=!1,R=T.indexOf(te,R+1),R===-1)if(k||Z){R=N+1;break}else ie("string");for(j=R;T.charCodeAt(j-1)===r;)j-=1,P=!P}while(P);B=["string",T.slice(N,R+1),N,R],N=R;break}case b:{v.lastIndex=N+1,v.test(T),v.lastIndex===0?R=T.length-1:R=v.lastIndex-2,B=["at-word",T.slice(N,R+1),N,R],N=R;break}case r:{for(R=N,U=!0;T.charCodeAt(R+1)===r;)R+=1,U=!U;if(I=T.charCodeAt(R+1),U&&I!==i&&I!==a&&I!==n&&I!==f&&I!==l&&I!==u&&(R+=1,y.test(T.charAt(R)))){for(;y.test(T.charAt(R+1));)R+=1;T.charCodeAt(R+1)===a&&(R+=1)}B=["word",T.slice(N,R+1),N,R],N=R;break}default:{I===i&&T.charCodeAt(N+1)===g?(R=T.indexOf("*/",N+2)+1,R===0&&(k||Z?R=T.length:ie("comment")),B=["comment",T.slice(N,R+1),N,R],N=R):(E.lastIndex=N+1,E.test(T),E.lastIndex===0?R=T.length-1:R=E.lastIndex-2,B=["word",T.slice(N,R+1),N,R],Ee.push(B),N=R);break}}return N++,B}function Oe(A){pe.push(A)}return{back:Oe,endOfFile:be,nextToken:Pe,position:ut}},In}var kn,Ks;function yi(){if(Ks)return kn;Ks=1;let e=Be();class t extends e{constructor(i){super(i),this.type="atrule"}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}}return kn=t,t.default=t,e.registerAtRule(t),kn}var An,Qs;function yt(){if(Qs)return An;Qs=1;let e=Be(),t,r;class i extends e{constructor(a){super(a),this.type="root",this.nodes||(this.nodes=[])}normalize(a,u,f){let l=super.normalize(a);if(u){if(f==="prepend")this.nodes.length>1?u.raws.before=this.nodes[1].raws.before:delete u.raws.before;else if(this.first!==u)for(let p of l)p.raws.before=u.raws.before}return l}removeChild(a,u){let f=this.index(a);return!u&&f===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[f].raws.before),super.removeChild(a)}toResult(a={}){return new t(new r,this,a).stringify()}}return i.registerLazyResult=n=>{t=n},i.registerProcessor=n=>{r=n},An=i,i.default=i,e.registerRoot(i),An}var Dn,Zs;function Vo(){if(Zs)return Dn;Zs=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
|
|
49
|
-
`," "];return e.split(t,r)},split(t,r,i){let n=[],a="",u=!1,f=0,l=!1,p="",o=!1;for(let d of t)o?o=!1:d==="\\"?o=!0:l?d===p&&(l=!1):d==='"'||d==="'"?(l=!0,p=d):d==="("?f+=1:d===")"?f>0&&(f-=1):f===0&&r.includes(d)&&(u=!0),u?(a!==""&&n.push(a.trim()),a="",u=!1):a+=d;return(i||a!=="")&&n.push(a.trim()),n}};return Dn=e,e.default=e,Dn}var _n,eo;function bi(){if(eo)return _n;eo=1;let e=Be(),t=Vo();class r extends e{constructor(n){super(n),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(n){let a=this.selector?this.selector.match(/,\s*/):null,u=a?a[0]:","+this.raw("between","beforeOpen");this.selector=n.join(u)}}return _n=r,r.default=r,e.registerRule(r),_n}var Ln,to;function Ic(){if(to)return Ln;to=1;let e=nr(),t=Oc(),r=sr(),i=yi(),n=yt(),a=bi(),u={empty:!0,space:!0};function f(p){for(let o=p.length-1;o>=0;o--){let d=p[o],c=d[3]||d[2];if(c)return c}}class l{constructor(o){this.input=o,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}atrule(o){let d=new i;d.name=o[1].slice(1),d.name===""&&this.unnamedAtrule(d,o),this.init(d,o[2]);let c,s,m,h=!1,g=!1,C=[],b=[];for(;!this.tokenizer.endOfFile();){if(o=this.tokenizer.nextToken(),c=o[0],c==="("||c==="["?b.push(c==="("?")":"]"):c==="{"&&b.length>0?b.push("}"):c===b[b.length-1]&&b.pop(),b.length===0)if(c===";"){d.source.end=this.getPosition(o[2]),d.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){g=!0;break}else if(c==="}"){if(C.length>0){for(m=C.length-1,s=C[m];s&&s[0]==="space";)s=C[--m];s&&(d.source.end=this.getPosition(s[3]||s[2]),d.source.end.offset++)}this.end(o);break}else C.push(o);else C.push(o);if(this.tokenizer.endOfFile()){h=!0;break}}d.raws.between=this.spacesAndCommentsFromEnd(C),C.length?(d.raws.afterName=this.spacesAndCommentsFromStart(C),this.raw(d,"params",C),h&&(o=C[C.length-1],d.source.end=this.getPosition(o[3]||o[2]),d.source.end.offset++,this.spaces=d.raws.between,d.raws.between="")):(d.raws.afterName="",d.params=""),g&&(d.nodes=[],this.current=d)}checkMissedSemicolon(o){let d=this.colon(o);if(d===!1)return;let c=0,s;for(let m=d-1;m>=0&&(s=o[m],!(s[0]!=="space"&&(c+=1,c===2)));m--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(o){let d=0,c,s,m;for(let[h,g]of o.entries()){if(c=g,s=c[0],s==="("&&(d+=1),s===")"&&(d-=1),d===0&&s===":")if(!m)this.doubleColon(c);else{if(m[0]==="word"&&m[1]==="progid")continue;return h}m=c}return!1}comment(o){let d=new r;this.init(d,o[2]),d.source.end=this.getPosition(o[3]||o[2]),d.source.end.offset++;let c=o[1].slice(2,-2);if(/^\s*$/.test(c))d.text="",d.raws.left=c,d.raws.right="";else{let s=c.match(/^(\s*)([^]*\S)(\s*)$/);d.text=s[2],d.raws.left=s[1],d.raws.right=s[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(o,d){let c=new e;this.init(c,o[0][2]);let s=o[o.length-1];for(s[0]===";"&&(this.semicolon=!0,o.pop()),c.source.end=this.getPosition(s[3]||s[2]||f(o)),c.source.end.offset++;o[0][0]!=="word";)o.length===1&&this.unknownWord(o),c.raws.before+=o.shift()[1];for(c.source.start=this.getPosition(o[0][2]),c.prop="";o.length;){let b=o[0][0];if(b===":"||b==="space"||b==="comment")break;c.prop+=o.shift()[1]}c.raws.between="";let m;for(;o.length;)if(m=o.shift(),m[0]===":"){c.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),c.raws.between+=m[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let h=[],g;for(;o.length&&(g=o[0][0],!(g!=="space"&&g!=="comment"));)h.push(o.shift());this.precheckMissedSemicolon(o);for(let b=o.length-1;b>=0;b--){if(m=o[b],m[1].toLowerCase()==="!important"){c.important=!0;let v=this.stringFrom(o,b);v=this.spacesFromEnd(o)+v,v!==" !important"&&(c.raws.important=v);break}else if(m[1].toLowerCase()==="important"){let v=o.slice(0),E="";for(let w=b;w>0;w--){let y=v[w][0];if(E.trim().indexOf("!")===0&&y!=="space")break;E=v.pop()[1]+E}E.trim().indexOf("!")===0&&(c.important=!0,c.raws.important=E,o=v)}if(m[0]!=="space"&&m[0]!=="comment")break}o.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(c.raws.between+=h.map(b=>b[1]).join(""),h=[]),this.raw(c,"value",h.concat(o),d),c.value.includes(":")&&!d&&this.checkMissedSemicolon(o)}doubleColon(o){throw this.input.error("Double colon",{offset:o[2]},{offset:o[2]+o[1].length})}emptyRule(o){let d=new a;this.init(d,o[2]),d.selector="",d.raws.between="",this.current=d}end(o){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(o[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(o)}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(o){if(this.spaces+=o[1],this.current.nodes){let d=this.current.nodes[this.current.nodes.length-1];d&&d.type==="rule"&&!d.raws.ownSemicolon&&(d.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(o){let d=this.input.fromOffset(o);return{column:d.col,line:d.line,offset:o}}init(o,d){this.current.push(o),o.source={input:this.input,start:this.getPosition(d)},o.raws.before=this.spaces,this.spaces="",o.type!=="comment"&&(this.semicolon=!1)}other(o){let d=!1,c=null,s=!1,m=null,h=[],g=o[1].startsWith("--"),C=[],b=o;for(;b;){if(c=b[0],C.push(b),c==="("||c==="[")m||(m=b),h.push(c==="("?")":"]");else if(g&&s&&c==="{")m||(m=b),h.push("}");else if(h.length===0)if(c===";")if(s){this.decl(C,g);return}else break;else if(c==="{"){this.rule(C);return}else if(c==="}"){this.tokenizer.back(C.pop()),d=!0;break}else c===":"&&(s=!0);else c===h[h.length-1]&&(h.pop(),h.length===0&&(m=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(d=!0),h.length>0&&this.unclosedBracket(m),d&&s){if(!g)for(;C.length&&(b=C[C.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(C.pop());this.decl(C,g)}else this.unknownWord(C)}parse(){let o;for(;!this.tokenizer.endOfFile();)switch(o=this.tokenizer.nextToken(),o[0]){case"space":this.spaces+=o[1];break;case";":this.freeSemicolon(o);break;case"}":this.end(o);break;case"comment":this.comment(o);break;case"at-word":this.atrule(o);break;case"{":this.emptyRule(o);break;default:this.other(o);break}this.endFile()}precheckMissedSemicolon(){}raw(o,d,c,s){let m,h,g=c.length,C="",b=!0,v,E;for(let w=0;w<g;w+=1)m=c[w],h=m[0],h==="space"&&w===g-1&&!s?b=!1:h==="comment"?(E=c[w-1]?c[w-1][0]:"empty",v=c[w+1]?c[w+1][0]:"empty",!u[E]&&!u[v]?C.slice(-1)===","?b=!1:C+=m[1]:b=!1):C+=m[1];if(!b){let w=c.reduce((y,S)=>y+S[1],"");o.raws[d]={raw:w,value:C}}o[d]=C}rule(o){o.pop();let d=new a;this.init(d,o[0][2]),d.raws.between=this.spacesAndCommentsFromEnd(o),this.raw(d,"selector",o),this.current=d}spacesAndCommentsFromEnd(o){let d,c="";for(;o.length&&(d=o[o.length-1][0],!(d!=="space"&&d!=="comment"));)c=o.pop()[1]+c;return c}spacesAndCommentsFromStart(o){let d,c="";for(;o.length&&(d=o[0][0],!(d!=="space"&&d!=="comment"));)c+=o.shift()[1];return c}spacesFromEnd(o){let d,c="";for(;o.length&&(d=o[o.length-1][0],d==="space");)c=o.pop()[1]+c;return c}stringFrom(o,d){let c="";for(let s=d;s<o.length;s++)c+=o[s][1];return o.splice(d,o.length-d),c}unclosedBlock(){let o=this.current.source.start;throw this.input.error("Unclosed block",o.line,o.column)}unclosedBracket(o){throw this.input.error("Unclosed bracket",{offset:o[2]},{offset:o[2]+1})}unexpectedClose(o){throw this.input.error("Unexpected }",{offset:o[2]},{offset:o[2]+1})}unknownWord(o){throw this.input.error("Unknown word",{offset:o[0][2]},{offset:o[0][2]+o[0][1].length})}unnamedAtrule(o,d){throw this.input.error("At-rule without name",{offset:d[2]},{offset:d[2]+d[1].length})}}return Ln=l,Ln}var Pn,ro;function wi(){if(ro)return Pn;ro=1;let e=Be(),t=Ic(),r=ir();function i(n,a){let u=new r(n,a),f=new t(u);try{f.parse()}catch(l){throw l}return f.root}return Pn=i,i.default=i,e.registerParse(i),Pn}var Fn,no;function jo(){if(no)return Fn;no=1;let{isClean:e,my:t}=pi(),r=Wo(),i=tr(),n=Be(),a=mi(),u=zo(),f=gi(),l=wi(),p=yt(),o={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},d={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},c={Once:!0,postcssPlugin:!0,prepare:!0},s=0;function m(E){return typeof E=="object"&&typeof E.then=="function"}function h(E){let w=!1,y=o[E.type];return E.type==="decl"?w=E.prop.toLowerCase():E.type==="atrule"&&(w=E.name.toLowerCase()),w&&E.append?[y,y+"-"+w,s,y+"Exit",y+"Exit-"+w]:w?[y,y+"-"+w,y+"Exit",y+"Exit-"+w]:E.append?[y,s,y+"Exit"]:[y,y+"Exit"]}function g(E){let w;return E.type==="document"?w=["Document",s,"DocumentExit"]:E.type==="root"?w=["Root",s,"RootExit"]:w=h(E),{eventIndex:0,events:w,iterator:0,node:E,visitorIndex:0,visitors:[]}}function C(E){return E[e]=!1,E.nodes&&E.nodes.forEach(w=>C(w)),E}let b={};class v{constructor(w,y,S){this.stringified=!1,this.processed=!1;let x;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))x=C(y);else if(y instanceof v||y instanceof f)x=C(y.root),y.map&&(typeof S.map>"u"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=y.map);else{let M=l;S.syntax&&(M=S.syntax.parse),S.parser&&(M=S.parser),M.parse&&(M=M.parse);try{x=M(y,S)}catch(T){this.processed=!0,this.error=T}x&&!x[t]&&n.rebuild(x)}this.result=new f(w,x,S),this.helpers={...b,postcss:b,result:this.result},this.plugins=this.processor.plugins.map(M=>typeof M=="object"&&M.prepare?{...M,...M.prepare(this.result)}:M)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,y){let S=this.result.lastPlugin;try{y&&y.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=S.postcssPlugin,w.setMessage()):S.postcssVersion}catch(x){console&&console.error&&console.error(x)}return w}prepareVisitors(){this.listeners={};let w=(y,S,x)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([y,x])};for(let y of this.plugins)if(typeof y=="object")for(let S in y){if(!d[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[S])if(typeof y[S]=="object")for(let x in y[S])x==="*"?w(y,S,y[S][x]):w(y,S+"-"+x.toLowerCase(),y[S][x]);else typeof y[S]=="function"&&w(y,S,y[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let y=this.plugins[w],S=this.runOnRoot(y);if(m(S))try{await S}catch(x){throw this.handleError(x)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];){w[e]=!0;let y=[g(w)];for(;y.length>0;){let S=this.visitTick(y);if(m(S))try{await S}catch(x){let M=y[y.length-1].node;throw this.handleError(x,M)}}}if(this.listeners.OnceExit)for(let[y,S]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(w.type==="document"){let x=w.nodes.map(M=>S(M,this.helpers));await Promise.all(x)}else await S(w,this.helpers)}catch(x){throw this.handleError(x)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(S=>w.Once(S,this.helpers));return m(y[0])?Promise.all(y):y}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,y=i;w.syntax&&(y=w.syntax.stringify),w.stringifier&&(y=w.stringifier),y.stringify&&(y=y.stringify);let x=new r(y,this.result.root,this.result.opts).generate();return this.result.css=x[0],this.result.map=x[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let w of this.plugins){let y=this.runOnRoot(w);if(m(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];)w[e]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let y of w.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,y){return this.async().then(w,y)}toString(){return this.css}visitSync(w,y){for(let[S,x]of w){this.result.lastPlugin=S;let M;try{M=x(y,this.helpers)}catch(T){throw this.handleError(T,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(m(M))throw this.getAsyncError()}}visitTick(w){let y=w[w.length-1],{node:S,visitors:x}=y;if(S.type!=="root"&&S.type!=="document"&&!S.parent){w.pop();return}if(x.length>0&&y.visitorIndex<x.length){let[T,k]=x[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===x.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=T;try{return k(S.toProxy(),this.helpers)}catch(I){throw this.handleError(I,S)}}if(y.iterator!==0){let T=y.iterator,k;for(;k=S.nodes[S.indexes[T]];)if(S.indexes[T]+=1,!k[e]){k[e]=!0,w.push(g(k));return}y.iterator=0,delete S.indexes[T]}let M=y.events;for(;y.eventIndex<M.length;){let T=M[y.eventIndex];if(y.eventIndex+=1,T===s){S.nodes&&S.nodes.length&&(S[e]=!0,y.iterator=S.getIterator());return}else if(this.listeners[T]){y.visitors=this.listeners[T];return}}w.pop()}walkSync(w){w[e]=!0;let y=h(w);for(let S of y)if(S===s)w.nodes&&w.each(x=>{x[e]||this.walkSync(x)});else{let x=this.listeners[S];if(x&&this.visitSync(x,w.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"}}return v.registerPostcss=E=>{b=E},Fn=v,v.default=v,p.registerLazyResult(v),a.registerLazyResult(v),Fn}var Un,io;function kc(){if(io)return Un;io=1;let e=Wo(),t=tr(),r=zo(),i=wi(),n=gi();class a{constructor(f,l,p){l=l.toString(),this.stringified=!1,this._processor=f,this._css=l,this._opts=p,this._map=void 0;let o,d=t;this.result=new n(this._processor,o,this._opts),this.result.css=l;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let s=new e(d,o,this._opts,l);if(s.isMap()){let[m,h]=s.generate();m&&(this.result.css=m),h&&(this.result.map=h)}else s.clearAnnotation(),this.result.css=s.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(f){return this.async().catch(f)}finally(f){return this.async().then(f,f)}sync(){if(this.error)throw this.error;return this.result}then(f,l){return this.async().then(f,l)}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 f,l=i;try{f=l(this._css,this._opts)}catch(p){this.error=p}if(this.error)throw this.error;return this._root=f,f}get[Symbol.toStringTag](){return"NoWorkResult"}}return Un=a,a.default=a,Un}var Bn,so;function Ac(){if(so)return Bn;so=1;let e=kc(),t=jo(),r=mi(),i=yt();class n{constructor(u=[]){this.version="8.4.38",this.plugins=this.normalize(u)}normalize(u){let f=[];for(let l of u)if(l.postcss===!0?l=l():l.postcss&&(l=l.postcss),typeof l=="object"&&Array.isArray(l.plugins))f=f.concat(l.plugins);else if(typeof l=="object"&&l.postcssPlugin)f.push(l);else if(typeof l=="function")f.push(l);else if(!(typeof l=="object"&&(l.parse||l.stringify)))throw new Error(l+" is not a PostCSS plugin");return f}process(u,f={}){return!this.plugins.length&&!f.parser&&!f.stringifier&&!f.syntax?new e(this,u,f):new t(this,u,f)}use(u){return this.plugins=this.plugins.concat(this.normalize([u])),this}}return Bn=n,n.default=n,i.registerProcessor(n),r.registerProcessor(n),Bn}var $n,oo;function Dc(){if(oo)return $n;oo=1;let e=nr(),t=$o(),r=sr(),i=yi(),n=ir(),a=yt(),u=bi();function f(l,p){if(Array.isArray(l))return l.map(c=>f(c));let{inputs:o,...d}=l;if(o){p=[];for(let c of o){let s={...c,__proto__:n.prototype};s.map&&(s.map={...s.map,__proto__:t.prototype}),p.push(s)}}if(d.nodes&&(d.nodes=l.nodes.map(c=>f(c,p))),d.source){let{inputId:c,...s}=d.source;d.source=s,c!=null&&(d.source.input=p[c])}if(d.type==="root")return new a(d);if(d.type==="decl")return new e(d);if(d.type==="rule")return new u(d);if(d.type==="comment")return new r(d);if(d.type==="atrule")return new i(d);throw new Error("Unknown node type: "+l.type)}return $n=f,f.default=f,$n}var Wn,ao;function _c(){if(ao)return Wn;ao=1;let e=di(),t=nr(),r=jo(),i=Be(),n=Ac(),a=tr(),u=Dc(),f=mi(),l=qo(),p=sr(),o=yi(),d=gi(),c=ir(),s=wi(),m=Vo(),h=bi(),g=yt(),C=rr();function b(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new n(v)}return b.plugin=function(E,w){let y=!1;function S(...M){console&&console.warn&&!y&&(y=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
|
|
50
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(
|
|
51
|
-
https://www.w3ctech.com/topic/2226`));let T=w(...M);return T.postcssPlugin=
|
|
47
|
+
`),this.css+=s+"/*# sourceMappingURL="+f+" */"}applyPrevMaps(){for(let f of this.previous()){let s=this.toUrl(this.path(f.file)),m=f.root||r(f.file),d;this.mapOpts.sourcesContent===!1?(d=new e(f.text),d.sourcesContent&&(d.sourcesContent=null)):d=f.consumer(),this.map.applySourceMap(d,s,this.toUrl(this.path(m)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let f;for(let s=this.root.nodes.length-1;s>=0;s--)f=this.root.nodes[s],f.type==="comment"&&f.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(s)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),p&&a&&this.isMap())return this.generateMap();{let f="";return this.stringify(this.root,s=>{f+=s}),[f]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let f=this.previous()[0].consumer();f.file=this.outputFile(),this.map=t.fromSourceMap(f,{ignoreInvalidMapping:!0})}else this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let f=1,s=1,m="<no source>",d={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,E;this.stringify(this.root,(b,v,C)=>{if(this.css+=b,v&&C!=="end"&&(d.generated.line=f,d.generated.column=s-1,v.source&&v.source.start?(d.source=this.sourcePath(v),d.original.line=v.source.start.line,d.original.column=v.source.start.column-1,this.map.addMapping(d)):(d.source=m,d.original.line=1,d.original.column=0,this.map.addMapping(d))),g=b.match(/\n/g),g?(f+=g.length,E=b.lastIndexOf(`
|
|
48
|
+
`),s=b.length-E):s+=b.length,v&&C!=="start"){let w=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==w.last||w.raws.semicolon)&&(v.source&&v.source.end?(d.source=this.sourcePath(v),d.original.line=v.source.end.line,d.original.column=v.source.end.column-1,d.generated.line=f,d.generated.column=s-2,this.map.addMapping(d)):(d.source=m,d.original.line=1,d.original.column=0,d.generated.line=f,d.generated.column=s-1,this.map.addMapping(d)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(f=>f.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let f=this.mapOpts.annotation;return typeof f<"u"&&f!==!0?!1:this.previous().length?this.previous().some(s=>s.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(f=>f.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(f){if(this.mapOpts.absolute||f.charCodeAt(0)===60||/^\w+:\/\//.test(f))return f;let s=this.memoizedPaths.get(f);if(s)return s;let m=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=r(n(m,this.mapOpts.annotation)));let d=i(m,f);return this.memoizedPaths.set(f,d),d}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(f=>{if(f.source&&f.source.input.map){let s=f.source.input.map;this.previousMaps.includes(s)||this.previousMaps.push(s)}});else{let f=new c(this.originalCSS,this.opts);f.map&&this.previousMaps.push(f.map)}return this.previousMaps}setSourcesContent(){let f={};if(this.root)this.root.walk(s=>{if(s.source){let m=s.source.input.from;if(m&&!f[m]){f[m]=!0;let d=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(d,s.source.input.css)}}});else if(this.css){let s=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(s,this.css)}}sourcePath(f){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(f.source.input.from):this.toUrl(this.path(f.source.input.from))}toBase64(f){return Buffer?Buffer.from(f).toString("base64"):window.btoa(unescape(encodeURIComponent(f)))}toFileUrl(f){let s=this.memoizedFileURLs.get(f);if(s)return s;if(u){let m=u(f).toString();return this.memoizedFileURLs.set(f,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(f){let s=this.memoizedURLs.get(f);if(s)return s;l==="\\"&&(f=f.replace(/\\/g,"/"));let m=encodeURI(f).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(f,m),m}}return An=o,An}var Dn,oo;function fr(){if(oo)return Dn;oo=1;let e=lr();class t extends e{constructor(i){super(i),this.type="comment"}}return Dn=t,t.default=t,Dn}var _n,ao;function $e(){if(ao)return _n;ao=1;let{isClean:e,my:t}=Ci(),r=ur(),i=fr(),n=lr(),l,u,c,a;function p(f){return f.map(s=>(s.nodes&&(s.nodes=p(s.nodes)),delete s.source,s))}function o(f){if(f[e]=!1,f.proxyOf.nodes)for(let s of f.proxyOf.nodes)o(s)}class h extends n{append(...s){for(let m of s){let d=this.normalize(m,this.last);for(let g of d)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(s){if(super.cleanRaws(s),this.nodes)for(let m of this.nodes)m.cleanRaws(s)}each(s){if(!this.proxyOf.nodes)return;let m=this.getIterator(),d,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(d=this.indexes[m],g=s(this.proxyOf.nodes[d],d),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(s){return this.nodes.every(s)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let s=this.lastEach;return this.indexes[s]=0,s}getProxyProcessor(){return{get(s,m){return m==="proxyOf"?s:s[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...d)=>s[m](...d.map(g=>typeof g=="function"?(E,b)=>g(E.toProxy(),b):g)):m==="every"||m==="some"?d=>s[m]((g,...E)=>d(g.toProxy(),...E)):m==="root"?()=>s.root().toProxy():m==="nodes"?s.nodes.map(d=>d.toProxy()):m==="first"||m==="last"?s[m].toProxy():s[m]:s[m]},set(s,m,d){return s[m]===d||(s[m]=d,(m==="name"||m==="params"||m==="selector")&&s.markDirty()),!0}}}index(s){return typeof s=="number"?s:(s.proxyOf&&(s=s.proxyOf),this.proxyOf.nodes.indexOf(s))}insertAfter(s,m){let d=this.index(s),g=this.normalize(m,this.proxyOf.nodes[d]).reverse();d=this.index(s);for(let b of g)this.proxyOf.nodes.splice(d+1,0,b);let E;for(let b in this.indexes)E=this.indexes[b],d<E&&(this.indexes[b]=E+g.length);return this.markDirty(),this}insertBefore(s,m){let d=this.index(s),g=d===0?"prepend":!1,E=this.normalize(m,this.proxyOf.nodes[d],g).reverse();d=this.index(s);for(let v of E)this.proxyOf.nodes.splice(d,0,v);let b;for(let v in this.indexes)b=this.indexes[v],d<=b&&(this.indexes[v]=b+E.length);return this.markDirty(),this}normalize(s,m){if(typeof s=="string")s=p(l(s).nodes);else if(typeof s>"u")s=[];else if(Array.isArray(s)){s=s.slice(0);for(let g of s)g.parent&&g.parent.removeChild(g,"ignore")}else if(s.type==="root"&&this.type!=="document"){s=s.nodes.slice(0);for(let g of s)g.parent&&g.parent.removeChild(g,"ignore")}else if(s.type)s=[s];else if(s.prop){if(typeof s.value>"u")throw new Error("Value field is missed in node creation");typeof s.value!="string"&&(s.value=String(s.value)),s=[new r(s)]}else if(s.selector)s=[new u(s)];else if(s.name)s=[new c(s)];else if(s.text)s=[new i(s)];else throw new Error("Unknown node type in node creation");return s.map(g=>(g[t]||h.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&o(g),typeof g.raws.before>"u"&&m&&typeof m.raws.before<"u"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...s){s=s.reverse();for(let m of s){let d=this.normalize(m,this.first,"prepend").reverse();for(let g of d)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+d.length}return this.markDirty(),this}push(s){return s.parent=this,this.proxyOf.nodes.push(s),this}removeAll(){for(let s of this.proxyOf.nodes)s.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(s){s=this.index(s),this.proxyOf.nodes[s].parent=void 0,this.proxyOf.nodes.splice(s,1);let m;for(let d in this.indexes)m=this.indexes[d],m>=s&&(this.indexes[d]=m-1);return this.markDirty(),this}replaceValues(s,m,d){return d||(d=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(s,d))}),this.markDirty(),this}some(s){return this.nodes.some(s)}walk(s){return this.each((m,d)=>{let g;try{g=s(m,d)}catch(E){throw m.addToError(E)}return g!==!1&&m.walk&&(g=m.walk(s)),g})}walkAtRules(s,m){return m?s instanceof RegExp?this.walk((d,g)=>{if(d.type==="atrule"&&s.test(d.name))return m(d,g)}):this.walk((d,g)=>{if(d.type==="atrule"&&d.name===s)return m(d,g)}):(m=s,this.walk((d,g)=>{if(d.type==="atrule")return m(d,g)}))}walkComments(s){return this.walk((m,d)=>{if(m.type==="comment")return s(m,d)})}walkDecls(s,m){return m?s instanceof RegExp?this.walk((d,g)=>{if(d.type==="decl"&&s.test(d.prop))return m(d,g)}):this.walk((d,g)=>{if(d.type==="decl"&&d.prop===s)return m(d,g)}):(m=s,this.walk((d,g)=>{if(d.type==="decl")return m(d,g)}))}walkRules(s,m){return m?s instanceof RegExp?this.walk((d,g)=>{if(d.type==="rule"&&s.test(d.selector))return m(d,g)}):this.walk((d,g)=>{if(d.type==="rule"&&d.selector===s)return m(d,g)}):(m=s,this.walk((d,g)=>{if(d.type==="rule")return m(d,g)}))}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]}}return h.registerParse=f=>{l=f},h.registerRule=f=>{u=f},h.registerAtRule=f=>{c=f},h.registerRoot=f=>{a=f},_n=h,h.default=h,h.rebuild=f=>{f.type==="atrule"?Object.setPrototypeOf(f,c.prototype):f.type==="rule"?Object.setPrototypeOf(f,u.prototype):f.type==="decl"?Object.setPrototypeOf(f,r.prototype):f.type==="comment"?Object.setPrototypeOf(f,i.prototype):f.type==="root"&&Object.setPrototypeOf(f,a.prototype),f[t]=!0,f.nodes&&f.nodes.forEach(s=>{h.rebuild(s)})},_n}var Ln,lo;function xi(){if(lo)return Ln;lo=1;let e=$e(),t,r;class i extends e{constructor(l){super({type:"document",...l}),this.nodes||(this.nodes=[])}toResult(l={}){return new t(new r,this,l).stringify()}}return i.registerLazyResult=n=>{t=n},i.registerProcessor=n=>{r=n},Ln=i,i.default=i,Ln}var Pn,uo;function ia(){if(uo)return Pn;uo=1;let e={};return Pn=function(r){e[r]||(e[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))},Pn}var Fn,co;function sa(){if(co)return Fn;co=1;class e{constructor(r,i={}){if(this.type="warning",this.text=r,i.node&&i.node.source){let n=i.node.rangeBy(i);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in i)this[n]=i[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}}return Fn=e,e.default=e,Fn}var Un,fo;function Ri(){if(fo)return Un;fo=1;let e=sa();class t{constructor(i,n,l){this.processor=i,this.messages=[],this.root=n,this.opts=l,this.css=void 0,this.map=void 0}toString(){return this.css}warn(i,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let l=new e(i,n);return this.messages.push(l),l}warnings(){return this.messages.filter(i=>i.type==="warning")}get content(){return this.css}}return Un=t,t.default=t,Un}var Bn,ho;function rf(){if(ho)return Bn;ho=1;let e=39,t=34,r=92,i=47,n=10,l=32,u=12,c=9,a=13,p=91,o=93,h=40,f=41,s=123,m=125,d=59,g=42,E=58,b=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,C=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,y=/[\da-f]/i;return Bn=function(x,M={}){let T=x.css.valueOf(),I=M.ignoreErrors,k,R,te,re,U,P,V,Q,$,B,ue=T.length,N=0,xe=[],pe=[];function dt(){return N}function ie(A){throw x.error("Unclosed "+A,N)}function we(){return pe.length===0&&N>=ue}function Fe(A){if(pe.length)return pe.pop();if(N>=ue)return;let Z=A?A.ignoreUnclosed:!1;switch(k=T.charCodeAt(N),k){case n:case l:case c:case a:case u:{R=N;do R+=1,k=T.charCodeAt(R);while(k===l||k===n||k===c||k===a||k===u);B=["space",T.slice(N,R)],N=R-1;break}case p:case o:case s:case m:case E:case d:case f:{let W=String.fromCharCode(k);B=[W,W,N];break}case h:{if(Q=xe.length?xe.pop()[1]:"",$=T.charCodeAt(N+1),Q==="url"&&$!==e&&$!==t&&$!==l&&$!==n&&$!==c&&$!==u&&$!==a){R=N;do{if(P=!1,R=T.indexOf(")",R+1),R===-1)if(I||Z){R=N;break}else ie("bracket");for(V=R;T.charCodeAt(V-1)===r;)V-=1,P=!P}while(P);B=["brackets",T.slice(N,R+1),N,R],N=R}else R=T.indexOf(")",N+1),re=T.slice(N,R+1),R===-1||w.test(re)?B=["(","(",N]:(B=["brackets",re,N,R],N=R);break}case e:case t:{te=k===e?"'":'"',R=N;do{if(P=!1,R=T.indexOf(te,R+1),R===-1)if(I||Z){R=N+1;break}else ie("string");for(V=R;T.charCodeAt(V-1)===r;)V-=1,P=!P}while(P);B=["string",T.slice(N,R+1),N,R],N=R;break}case b:{v.lastIndex=N+1,v.test(T),v.lastIndex===0?R=T.length-1:R=v.lastIndex-2,B=["at-word",T.slice(N,R+1),N,R],N=R;break}case r:{for(R=N,U=!0;T.charCodeAt(R+1)===r;)R+=1,U=!U;if(k=T.charCodeAt(R+1),U&&k!==i&&k!==l&&k!==n&&k!==c&&k!==a&&k!==u&&(R+=1,y.test(T.charAt(R)))){for(;y.test(T.charAt(R+1));)R+=1;T.charCodeAt(R+1)===l&&(R+=1)}B=["word",T.slice(N,R+1),N,R],N=R;break}default:{k===i&&T.charCodeAt(N+1)===g?(R=T.indexOf("*/",N+2)+1,R===0&&(I||Z?R=T.length:ie("comment")),B=["comment",T.slice(N,R+1),N,R],N=R):(C.lastIndex=N+1,C.test(T),C.lastIndex===0?R=T.length-1:R=C.lastIndex-2,B=["word",T.slice(N,R+1),N,R],xe.push(B),N=R);break}}return N++,B}function ke(A){pe.push(A)}return{back:ke,endOfFile:we,nextToken:Fe,position:dt}},Bn}var $n,po;function Ti(){if(po)return $n;po=1;let e=$e();class t extends e{constructor(i){super(i),this.type="atrule"}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}}return $n=t,t.default=t,e.registerAtRule(t),$n}var Wn,mo;function vt(){if(mo)return Wn;mo=1;let e=$e(),t,r;class i extends e{constructor(l){super(l),this.type="root",this.nodes||(this.nodes=[])}normalize(l,u,c){let a=super.normalize(l);if(u){if(c==="prepend")this.nodes.length>1?u.raws.before=this.nodes[1].raws.before:delete u.raws.before;else if(this.first!==u)for(let p of a)p.raws.before=u.raws.before}return a}removeChild(l,u){let c=this.index(l);return!u&&c===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[c].raws.before),super.removeChild(l)}toResult(l={}){return new t(new r,this,l).stringify()}}return i.registerLazyResult=n=>{t=n},i.registerProcessor=n=>{r=n},Wn=i,i.default=i,e.registerRoot(i),Wn}var zn,go;function oa(){if(go)return zn;go=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
|
|
49
|
+
`," "];return e.split(t,r)},split(t,r,i){let n=[],l="",u=!1,c=0,a=!1,p="",o=!1;for(let h of t)o?o=!1:h==="\\"?o=!0:a?h===p&&(a=!1):h==='"'||h==="'"?(a=!0,p=h):h==="("?c+=1:h===")"?c>0&&(c-=1):c===0&&r.includes(h)&&(u=!0),u?(l!==""&&n.push(l.trim()),l="",u=!1):l+=h;return(i||l!=="")&&n.push(l.trim()),n}};return zn=e,e.default=e,zn}var qn,yo;function Mi(){if(yo)return qn;yo=1;let e=$e(),t=oa();class r extends e{constructor(n){super(n),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(n){let l=this.selector?this.selector.match(/,\s*/):null,u=l?l[0]:","+this.raw("between","beforeOpen");this.selector=n.join(u)}}return qn=r,r.default=r,e.registerRule(r),qn}var jn,bo;function nf(){if(bo)return jn;bo=1;let e=ur(),t=rf(),r=fr(),i=Ti(),n=vt(),l=Mi(),u={empty:!0,space:!0};function c(p){for(let o=p.length-1;o>=0;o--){let h=p[o],f=h[3]||h[2];if(f)return f}}class a{constructor(o){this.input=o,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}atrule(o){let h=new i;h.name=o[1].slice(1),h.name===""&&this.unnamedAtrule(h,o),this.init(h,o[2]);let f,s,m,d=!1,g=!1,E=[],b=[];for(;!this.tokenizer.endOfFile();){if(o=this.tokenizer.nextToken(),f=o[0],f==="("||f==="["?b.push(f==="("?")":"]"):f==="{"&&b.length>0?b.push("}"):f===b[b.length-1]&&b.pop(),b.length===0)if(f===";"){h.source.end=this.getPosition(o[2]),h.source.end.offset++,this.semicolon=!0;break}else if(f==="{"){g=!0;break}else if(f==="}"){if(E.length>0){for(m=E.length-1,s=E[m];s&&s[0]==="space";)s=E[--m];s&&(h.source.end=this.getPosition(s[3]||s[2]),h.source.end.offset++)}this.end(o);break}else E.push(o);else E.push(o);if(this.tokenizer.endOfFile()){d=!0;break}}h.raws.between=this.spacesAndCommentsFromEnd(E),E.length?(h.raws.afterName=this.spacesAndCommentsFromStart(E),this.raw(h,"params",E),d&&(o=E[E.length-1],h.source.end=this.getPosition(o[3]||o[2]),h.source.end.offset++,this.spaces=h.raws.between,h.raws.between="")):(h.raws.afterName="",h.params=""),g&&(h.nodes=[],this.current=h)}checkMissedSemicolon(o){let h=this.colon(o);if(h===!1)return;let f=0,s;for(let m=h-1;m>=0&&(s=o[m],!(s[0]!=="space"&&(f+=1,f===2)));m--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(o){let h=0,f,s,m;for(let[d,g]of o.entries()){if(f=g,s=f[0],s==="("&&(h+=1),s===")"&&(h-=1),h===0&&s===":")if(!m)this.doubleColon(f);else{if(m[0]==="word"&&m[1]==="progid")continue;return d}m=f}return!1}comment(o){let h=new r;this.init(h,o[2]),h.source.end=this.getPosition(o[3]||o[2]),h.source.end.offset++;let f=o[1].slice(2,-2);if(/^\s*$/.test(f))h.text="",h.raws.left=f,h.raws.right="";else{let s=f.match(/^(\s*)([^]*\S)(\s*)$/);h.text=s[2],h.raws.left=s[1],h.raws.right=s[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(o,h){let f=new e;this.init(f,o[0][2]);let s=o[o.length-1];for(s[0]===";"&&(this.semicolon=!0,o.pop()),f.source.end=this.getPosition(s[3]||s[2]||c(o)),f.source.end.offset++;o[0][0]!=="word";)o.length===1&&this.unknownWord(o),f.raws.before+=o.shift()[1];for(f.source.start=this.getPosition(o[0][2]),f.prop="";o.length;){let b=o[0][0];if(b===":"||b==="space"||b==="comment")break;f.prop+=o.shift()[1]}f.raws.between="";let m;for(;o.length;)if(m=o.shift(),m[0]===":"){f.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),f.raws.between+=m[1];(f.prop[0]==="_"||f.prop[0]==="*")&&(f.raws.before+=f.prop[0],f.prop=f.prop.slice(1));let d=[],g;for(;o.length&&(g=o[0][0],!(g!=="space"&&g!=="comment"));)d.push(o.shift());this.precheckMissedSemicolon(o);for(let b=o.length-1;b>=0;b--){if(m=o[b],m[1].toLowerCase()==="!important"){f.important=!0;let v=this.stringFrom(o,b);v=this.spacesFromEnd(o)+v,v!==" !important"&&(f.raws.important=v);break}else if(m[1].toLowerCase()==="important"){let v=o.slice(0),C="";for(let w=b;w>0;w--){let y=v[w][0];if(C.trim().indexOf("!")===0&&y!=="space")break;C=v.pop()[1]+C}C.trim().indexOf("!")===0&&(f.important=!0,f.raws.important=C,o=v)}if(m[0]!=="space"&&m[0]!=="comment")break}o.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(f.raws.between+=d.map(b=>b[1]).join(""),d=[]),this.raw(f,"value",d.concat(o),h),f.value.includes(":")&&!h&&this.checkMissedSemicolon(o)}doubleColon(o){throw this.input.error("Double colon",{offset:o[2]},{offset:o[2]+o[1].length})}emptyRule(o){let h=new l;this.init(h,o[2]),h.selector="",h.raws.between="",this.current=h}end(o){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(o[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(o)}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(o){if(this.spaces+=o[1],this.current.nodes){let h=this.current.nodes[this.current.nodes.length-1];h&&h.type==="rule"&&!h.raws.ownSemicolon&&(h.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(o){let h=this.input.fromOffset(o);return{column:h.col,line:h.line,offset:o}}init(o,h){this.current.push(o),o.source={input:this.input,start:this.getPosition(h)},o.raws.before=this.spaces,this.spaces="",o.type!=="comment"&&(this.semicolon=!1)}other(o){let h=!1,f=null,s=!1,m=null,d=[],g=o[1].startsWith("--"),E=[],b=o;for(;b;){if(f=b[0],E.push(b),f==="("||f==="[")m||(m=b),d.push(f==="("?")":"]");else if(g&&s&&f==="{")m||(m=b),d.push("}");else if(d.length===0)if(f===";")if(s){this.decl(E,g);return}else break;else if(f==="{"){this.rule(E);return}else if(f==="}"){this.tokenizer.back(E.pop()),h=!0;break}else f===":"&&(s=!0);else f===d[d.length-1]&&(d.pop(),d.length===0&&(m=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(h=!0),d.length>0&&this.unclosedBracket(m),h&&s){if(!g)for(;E.length&&(b=E[E.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(E.pop());this.decl(E,g)}else this.unknownWord(E)}parse(){let o;for(;!this.tokenizer.endOfFile();)switch(o=this.tokenizer.nextToken(),o[0]){case"space":this.spaces+=o[1];break;case";":this.freeSemicolon(o);break;case"}":this.end(o);break;case"comment":this.comment(o);break;case"at-word":this.atrule(o);break;case"{":this.emptyRule(o);break;default:this.other(o);break}this.endFile()}precheckMissedSemicolon(){}raw(o,h,f,s){let m,d,g=f.length,E="",b=!0,v,C;for(let w=0;w<g;w+=1)m=f[w],d=m[0],d==="space"&&w===g-1&&!s?b=!1:d==="comment"?(C=f[w-1]?f[w-1][0]:"empty",v=f[w+1]?f[w+1][0]:"empty",!u[C]&&!u[v]?E.slice(-1)===","?b=!1:E+=m[1]:b=!1):E+=m[1];if(!b){let w=f.reduce((y,S)=>y+S[1],"");o.raws[h]={raw:w,value:E}}o[h]=E}rule(o){o.pop();let h=new l;this.init(h,o[0][2]),h.raws.between=this.spacesAndCommentsFromEnd(o),this.raw(h,"selector",o),this.current=h}spacesAndCommentsFromEnd(o){let h,f="";for(;o.length&&(h=o[o.length-1][0],!(h!=="space"&&h!=="comment"));)f=o.pop()[1]+f;return f}spacesAndCommentsFromStart(o){let h,f="";for(;o.length&&(h=o[0][0],!(h!=="space"&&h!=="comment"));)f+=o.shift()[1];return f}spacesFromEnd(o){let h,f="";for(;o.length&&(h=o[o.length-1][0],h==="space");)f=o.pop()[1]+f;return f}stringFrom(o,h){let f="";for(let s=h;s<o.length;s++)f+=o[s][1];return o.splice(h,o.length-h),f}unclosedBlock(){let o=this.current.source.start;throw this.input.error("Unclosed block",o.line,o.column)}unclosedBracket(o){throw this.input.error("Unclosed bracket",{offset:o[2]},{offset:o[2]+1})}unexpectedClose(o){throw this.input.error("Unexpected }",{offset:o[2]},{offset:o[2]+1})}unknownWord(o){throw this.input.error("Unknown word",{offset:o[0][2]},{offset:o[0][2]+o[0][1].length})}unnamedAtrule(o,h){throw this.input.error("At-rule without name",{offset:h[2]},{offset:h[2]+h[1].length})}}return jn=a,jn}var Vn,wo;function Ni(){if(wo)return Vn;wo=1;let e=$e(),t=nf(),r=cr();function i(n,l){let u=new r(n,l),c=new t(u);try{c.parse()}catch(a){throw a}return c.root}return Vn=i,i.default=i,e.registerParse(i),Vn}var Hn,vo;function aa(){if(vo)return Hn;vo=1;let{isClean:e,my:t}=Ci(),r=na(),i=ar(),n=$e(),l=xi(),u=ia(),c=Ri(),a=Ni(),p=vt(),o={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},h={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},f={Once:!0,postcssPlugin:!0,prepare:!0},s=0;function m(C){return typeof C=="object"&&typeof C.then=="function"}function d(C){let w=!1,y=o[C.type];return C.type==="decl"?w=C.prop.toLowerCase():C.type==="atrule"&&(w=C.name.toLowerCase()),w&&C.append?[y,y+"-"+w,s,y+"Exit",y+"Exit-"+w]:w?[y,y+"-"+w,y+"Exit",y+"Exit-"+w]:C.append?[y,s,y+"Exit"]:[y,y+"Exit"]}function g(C){let w;return C.type==="document"?w=["Document",s,"DocumentExit"]:C.type==="root"?w=["Root",s,"RootExit"]:w=d(C),{eventIndex:0,events:w,iterator:0,node:C,visitorIndex:0,visitors:[]}}function E(C){return C[e]=!1,C.nodes&&C.nodes.forEach(w=>E(w)),C}let b={};class v{constructor(w,y,S){this.stringified=!1,this.processed=!1;let x;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))x=E(y);else if(y instanceof v||y instanceof c)x=E(y.root),y.map&&(typeof S.map>"u"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=y.map);else{let M=a;S.syntax&&(M=S.syntax.parse),S.parser&&(M=S.parser),M.parse&&(M=M.parse);try{x=M(y,S)}catch(T){this.processed=!0,this.error=T}x&&!x[t]&&n.rebuild(x)}this.result=new c(w,x,S),this.helpers={...b,postcss:b,result:this.result},this.plugins=this.processor.plugins.map(M=>typeof M=="object"&&M.prepare?{...M,...M.prepare(this.result)}:M)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,y){let S=this.result.lastPlugin;try{y&&y.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=S.postcssPlugin,w.setMessage()):S.postcssVersion}catch(x){console&&console.error&&console.error(x)}return w}prepareVisitors(){this.listeners={};let w=(y,S,x)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([y,x])};for(let y of this.plugins)if(typeof y=="object")for(let S in y){if(!h[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[S])if(typeof y[S]=="object")for(let x in y[S])x==="*"?w(y,S,y[S][x]):w(y,S+"-"+x.toLowerCase(),y[S][x]);else typeof y[S]=="function"&&w(y,S,y[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let y=this.plugins[w],S=this.runOnRoot(y);if(m(S))try{await S}catch(x){throw this.handleError(x)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];){w[e]=!0;let y=[g(w)];for(;y.length>0;){let S=this.visitTick(y);if(m(S))try{await S}catch(x){let M=y[y.length-1].node;throw this.handleError(x,M)}}}if(this.listeners.OnceExit)for(let[y,S]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(w.type==="document"){let x=w.nodes.map(M=>S(M,this.helpers));await Promise.all(x)}else await S(w,this.helpers)}catch(x){throw this.handleError(x)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(S=>w.Once(S,this.helpers));return m(y[0])?Promise.all(y):y}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,y=i;w.syntax&&(y=w.syntax.stringify),w.stringifier&&(y=w.stringifier),y.stringify&&(y=y.stringify);let x=new r(y,this.result.root,this.result.opts).generate();return this.result.css=x[0],this.result.map=x[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let w of this.plugins){let y=this.runOnRoot(w);if(m(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];)w[e]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let y of w.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,y){return this.async().then(w,y)}toString(){return this.css}visitSync(w,y){for(let[S,x]of w){this.result.lastPlugin=S;let M;try{M=x(y,this.helpers)}catch(T){throw this.handleError(T,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(m(M))throw this.getAsyncError()}}visitTick(w){let y=w[w.length-1],{node:S,visitors:x}=y;if(S.type!=="root"&&S.type!=="document"&&!S.parent){w.pop();return}if(x.length>0&&y.visitorIndex<x.length){let[T,I]=x[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===x.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=T;try{return I(S.toProxy(),this.helpers)}catch(k){throw this.handleError(k,S)}}if(y.iterator!==0){let T=y.iterator,I;for(;I=S.nodes[S.indexes[T]];)if(S.indexes[T]+=1,!I[e]){I[e]=!0,w.push(g(I));return}y.iterator=0,delete S.indexes[T]}let M=y.events;for(;y.eventIndex<M.length;){let T=M[y.eventIndex];if(y.eventIndex+=1,T===s){S.nodes&&S.nodes.length&&(S[e]=!0,y.iterator=S.getIterator());return}else if(this.listeners[T]){y.visitors=this.listeners[T];return}}w.pop()}walkSync(w){w[e]=!0;let y=d(w);for(let S of y)if(S===s)w.nodes&&w.each(x=>{x[e]||this.walkSync(x)});else{let x=this.listeners[S];if(x&&this.visitSync(x,w.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"}}return v.registerPostcss=C=>{b=C},Hn=v,v.default=v,p.registerLazyResult(v),l.registerLazyResult(v),Hn}var Gn,So;function sf(){if(So)return Gn;So=1;let e=na(),t=ar(),r=ia(),i=Ni(),n=Ri();class l{constructor(c,a,p){a=a.toString(),this.stringified=!1,this._processor=c,this._css=a,this._opts=p,this._map=void 0;let o,h=t;this.result=new n(this._processor,o,this._opts),this.result.css=a;let f=this;Object.defineProperty(this.result,"root",{get(){return f.root}});let s=new e(h,o,this._opts,a);if(s.isMap()){let[m,d]=s.generate();m&&(this.result.css=m),d&&(this.result.map=d)}else s.clearAnnotation(),this.result.css=s.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(c){return this.async().catch(c)}finally(c){return this.async().then(c,c)}sync(){if(this.error)throw this.error;return this.result}then(c,a){return this.async().then(c,a)}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 c,a=i;try{c=a(this._css,this._opts)}catch(p){this.error=p}if(this.error)throw this.error;return this._root=c,c}get[Symbol.toStringTag](){return"NoWorkResult"}}return Gn=l,l.default=l,Gn}var Yn,Eo;function of(){if(Eo)return Yn;Eo=1;let e=sf(),t=aa(),r=xi(),i=vt();class n{constructor(u=[]){this.version="8.4.38",this.plugins=this.normalize(u)}normalize(u){let c=[];for(let a of u)if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),typeof a=="object"&&Array.isArray(a.plugins))c=c.concat(a.plugins);else if(typeof a=="object"&&a.postcssPlugin)c.push(a);else if(typeof a=="function")c.push(a);else if(!(typeof a=="object"&&(a.parse||a.stringify)))throw new Error(a+" is not a PostCSS plugin");return c}process(u,c={}){return!this.plugins.length&&!c.parser&&!c.stringifier&&!c.syntax?new e(this,u,c):new t(this,u,c)}use(u){return this.plugins=this.plugins.concat(this.normalize([u])),this}}return Yn=n,n.default=n,i.registerProcessor(n),r.registerProcessor(n),Yn}var Xn,Co;function af(){if(Co)return Xn;Co=1;let e=ur(),t=ra(),r=fr(),i=Ti(),n=cr(),l=vt(),u=Mi();function c(a,p){if(Array.isArray(a))return a.map(f=>c(f));let{inputs:o,...h}=a;if(o){p=[];for(let f of o){let s={...f,__proto__:n.prototype};s.map&&(s.map={...s.map,__proto__:t.prototype}),p.push(s)}}if(h.nodes&&(h.nodes=a.nodes.map(f=>c(f,p))),h.source){let{inputId:f,...s}=h.source;h.source=s,f!=null&&(h.source.input=p[f])}if(h.type==="root")return new l(h);if(h.type==="decl")return new e(h);if(h.type==="rule")return new u(h);if(h.type==="comment")return new r(h);if(h.type==="atrule")return new i(h);throw new Error("Unknown node type: "+a.type)}return Xn=c,c.default=c,Xn}var Jn,xo;function lf(){if(xo)return Jn;xo=1;let e=Ei(),t=ur(),r=aa(),i=$e(),n=of(),l=ar(),u=af(),c=xi(),a=sa(),p=fr(),o=Ti(),h=Ri(),f=cr(),s=Ni(),m=oa(),d=Mi(),g=vt(),E=lr();function b(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new n(v)}return b.plugin=function(C,w){let y=!1;function S(...M){console&&console.warn&&!y&&(y=!0,console.warn(C+`: postcss.plugin was deprecated. Migration guide:
|
|
50
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(C+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
|
51
|
+
https://www.w3ctech.com/topic/2226`));let T=w(...M);return T.postcssPlugin=C,T.postcssVersion=new n().version,T}let x;return Object.defineProperty(S,"postcss",{get(){return x||(x=S()),x}}),S.process=function(M,T,I){return b([S(I)]).process(M,T)},S},b.stringify=l,b.parse=s,b.fromJSON=u,b.list=m,b.comment=v=>new p(v),b.atRule=v=>new o(v),b.decl=v=>new t(v),b.rule=v=>new d(v),b.root=v=>new g(v),b.document=v=>new c(v),b.CssSyntaxError=e,b.Declaration=t,b.Container=i,b.Processor=n,b.Document=c,b.Comment=p,b.Warning=a,b.AtRule=o,b.Result=h,b.Input=f,b.Rule=d,b.Root=g,b.Node=E,r.registerPostcss(b),Jn=b,b.default=b,Jn}var uf=lf(),G=Jc(uf);G.stringify;G.fromJSON;G.plugin;G.parse;G.list;G.document;G.comment;G.atRule;G.rule;G.decl;G.root;G.CssSyntaxError;G.Declaration;G.Container;G.Processor;G.Document;G.Comment;G.Warning;G.AtRule;G.Result;G.Input;G.Rule;G.Root;G.Node;var ri=class e{constructor(...t){me(this,"parentElement",null),me(this,"parentNode",null),me(this,"ownerDocument"),me(this,"firstChild",null),me(this,"lastChild",null),me(this,"previousSibling",null),me(this,"nextSibling",null),me(this,"ELEMENT_NODE",1),me(this,"TEXT_NODE",3),me(this,"nodeType"),me(this,"nodeName"),me(this,"RRNodeType")}get childNodes(){let t=[],r=this.firstChild;for(;r;)t.push(r),r=r.nextSibling;return t}contains(t){if(t instanceof e){if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0}else return!1;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}};var Ro={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument","firstChild","lastChild","nextSibling","previousSibling"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},To={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},zt={},la={},cf=()=>!!globalThis.Zone;function Oi(e){if(zt[e])return zt[e];let t=globalThis[e],r=t.prototype,i=e in Ro?Ro[e]:void 0,n=!!(i&&i.every(c=>{var a,p;return!!((p=(a=Object.getOwnPropertyDescriptor(r,c))==null?void 0:a.get)!=null&&p.toString().includes("[native code]"))})),l=e in To?To[e]:void 0,u=!!(l&&l.every(c=>{var a;return typeof r[c]=="function"&&((a=r[c])==null?void 0:a.toString().includes("[native code]"))}));if(n&&u&&!cf())return zt[e]=t.prototype,t.prototype;try{let c=document.createElement("iframe");c.style.display="none",document.body.appendChild(c);let a=c.contentWindow;if(!a)return t.prototype;let p=a[e].prototype;if(!p)return c.remove(),r;let o=navigator.userAgent;return o.includes("Safari")&&!o.includes("Chrome")?(c.classList.add("rr-block"),c.setAttribute("__rrwebUntaintedMutationObserver",""),la[e]=()=>c.remove()):c.remove(),zt[e]=p}catch{return r}}var Kn={};function de(e,t,r){var i,n;let l=(i=Kn[e])==null?void 0:i[r];if(l)return l.call(t);let u=Oi(e),c=(n=Object.getOwnPropertyDescriptor(u,r))==null?void 0:n.get;return c?((Kn[e]||(Kn[e]={}))[r]=c,c.call(t)):t[r]}var Qn={};function ua(e,t,r){let i=`${e}.${String(r)}`;if(Qn[i])return Qn[i].bind(t);let l=Oi(e)[r];return typeof l!="function"?t[r]:(Qn[i]=l,l.bind(t))}function ff(e){return de("Node",e,"ownerDocument")}function df(e){return de("Node",e,"childNodes")}function hf(e){return de("Node",e,"parentNode")}function pf(e){return de("Node",e,"parentElement")}function mf(e){return de("Node",e,"textContent")}function gf(e){return de("Node",e,"firstChild")}function yf(e){return de("Node",e,"lastChild")}function bf(e){return de("Node",e,"nextSibling")}function wf(e){return de("Node",e,"previousSibling")}function vf(e,t){return ua("Node",e,"contains")(t)}function Sf(e){return ua("Node",e,"getRootNode")()}function Ef(e){return!e||!("host"in e)?null:de("ShadowRoot",e,"host")}function Cf(e){return e.styleSheets}function xf(e){return!e||!("shadowRoot"in e)?null:de("Element",e,"shadowRoot")}function Rf(e,t){return de("Element",e,"querySelector")(t)}function Tf(e,t){return de("Element",e,"querySelectorAll")(t)}function ca(){return[Oi("MutationObserver").constructor,la.MutationObserver??(()=>{})]}var yt=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(yt=()=>new Date().getTime());function We(e,t,r){try{if(!(t in e))return()=>{};let i=e[t],n=r(i);return typeof n=="function"&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:i}})),e[t]=n,()=>{e[t]=i}}catch{return()=>{}}}var D={ownerDocument:ff,childNodes:df,parentNode:hf,parentElement:pf,textContent:mf,firstChild:gf,lastChild:yf,nextSibling:bf,previousSibling:wf,contains:vf,getRootNode:Sf,host:Ef,styleSheets:Cf,shadowRoot:xf,querySelector:Rf,querySelectorAll:Tf,nowTimestamp:yt,mutationObserverCtor:ca,patch:We};function se(e,t,r=document){let i={capture:!0,passive:!0};return r.addEventListener(e,t,i),()=>r.removeEventListener(e,t,i)}var Xe=`Please stop import mirror directly. Instead of that,\r
|
|
52
52
|
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
53
|
-
or you can use record.mirror to access the mirror instance during recording.`,co={map:{},getId(){return console.error(Ye),-1},getNode(){return console.error(Ye),null},removeNodeFromMap(){console.error(Ye)},has(){return console.error(Ye),!1},reset(){console.error(Ye)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(co=new Proxy(co,{get(e,t,r){return t==="map"&&console.error(Ye),Reflect.get(e,t,r)}}));function mt(e,t,r={}){let i=null,n=0;return function(...a){let u=Date.now();!n&&r.leading===!1&&(n=u);let f=t-(u-n),l=this;f<=0||f>t?(i&&(clearTimeout(i),i=null),n=u,e.apply(l,a)):!i&&r.trailing!==!1&&(i=setTimeout(()=>{n=r.leading===!1?0:Date.now(),i=null,e.apply(l,a)},f))}}function or(e,t,r,i,n=window){let a=n.Object.getOwnPropertyDescriptor(e,t);return n.Object.defineProperty(e,t,i?r:{set(u){setTimeout(()=>{r.set.call(this,u)},0),a&&a.set&&a.set.call(this,u)}}),()=>or(e,t,a||{},!0)}function Xo(e){var t,r,i,n;let a=e.document;return{left:a.scrollingElement?a.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:a.documentElement.scrollLeft||a?.body&&((t=D.parentElement(a.body))==null?void 0:t.scrollLeft)||((r=a?.body)==null?void 0:r.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:a?.documentElement.scrollTop||a?.body&&((i=D.parentElement(a.body))==null?void 0:i.scrollTop)||((n=a?.body)==null?void 0:n.scrollTop)||0}}function Jo(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Ko(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Qo(e){return e?e.nodeType===e.ELEMENT_NODE?e:D.parentElement(e):null}function oe(e,t,r,i){if(!e)return!1;let n=Qo(e);if(!n)return!1;try{if(typeof t=="string"){if(n.classList.contains(t)||i&&n.closest("."+t)!==null)return!0}else if(Ht(n,t,i))return!0}catch{}return!!(r&&(n.matches(r)||i&&n.closest(r)!==null))}function Zc(e,t){return t.getId(e)!==-1}function Vn(e,t,r){return e.tagName==="TITLE"&&r.headTitleMutations?!0:t.getId(e)===jt}function Zo(e,t){if(ft(e))return!1;let r=t.getId(e);if(!t.has(r))return!0;let i=D.parentNode(e);return i&&i.nodeType===e.DOCUMENT_NODE?!1:i?Zo(i,t):!0}function Yn(e){return!!e.changedTouches}function ef(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function ea(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function ta(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Xn(e){return e?e instanceof Gn&&"shadowRoot"in e?!!e.shadowRoot:!!D.shadowRoot(e):!1}var Jn=class{constructor(){O(this,"id",1),O(this,"styleIDMap",new WeakMap),O(this,"idStyleMap",new Map)}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let i;return r===void 0?i=this.id++:i=r,this.styleIDMap.set(t,i),this.idStyleMap.set(i,t),i}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function ra(e){var t;let r=null;return"getRootNode"in e&&((t=D.getRootNode(e))==null?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&D.host(D.getRootNode(e))&&(r=D.host(D.getRootNode(e))),r}function tf(e){let t=e,r;for(;r=ra(t);)t=r;return t}function rf(e){let t=D.ownerDocument(e);if(!t)return!1;let r=tf(e);return D.contains(t,r)}function na(e){let t=D.ownerDocument(e);return t?D.contains(t,e)||rf(e):!1}var _=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e[e.Asset=7]="Asset",e))(_||{}),L=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(L||{}),ae=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(ae||{}),Me=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Me||{}),Ze=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Ze||{}),Xe=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Xe||{});var ia=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(ia||{}),fo=(e,t)=>`${e}@${t}`,Kn=class{constructor(){O(this,"frozen",!1),O(this,"locked",!1),O(this,"texts",[]),O(this,"attributes",[]),O(this,"attributeMap",new WeakMap),O(this,"removes",[]),O(this,"mapRemoves",[]),O(this,"movedMap",{}),O(this,"addedSet",new Set),O(this,"movedSet",new Set),O(this,"droppedSet",new Set),O(this,"removesSubTreeCache",new Set),O(this,"mutationCb"),O(this,"blockClass"),O(this,"blockSelector"),O(this,"maskTextClass"),O(this,"maskTextSelector"),O(this,"inlineStylesheet"),O(this,"maskInputOptions"),O(this,"maskTextFn"),O(this,"maskInputFn"),O(this,"keepIframeSrcFn"),O(this,"recordCanvas"),O(this,"inlineImages"),O(this,"slimDOMOptions"),O(this,"dataURLOptions"),O(this,"doc"),O(this,"mirror"),O(this,"iframeManager"),O(this,"stylesheetManager"),O(this,"shadowDomManager"),O(this,"canvasManager"),O(this,"processedNodeManager"),O(this,"unattachedDoc"),O(this,"processMutations",t=>{t.forEach(this.processMutation),this.emit()}),O(this,"emit",()=>{if(this.frozen||this.locked)return;let t=[],r=new Set;for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let c of this.movedSet){let s=D.parentNode(c);this.removesSubTreeCache.has(s)&&!this.movedSet.has(s)||this.addedSet.add(c)}let i=null,n=null,a=-1,u=null,f=!1,l=new Set,p=this.addedSet.values(),o=p.next();for(;this.addedSet.size;){if(i!==null&&this.addedSet.has(D.previousSibling(i)))u=i,i=D.previousSibling(i);else{for(this.addedSet.has(o.value)||(o=p.next()),i=o.value;;){if(n=D.parentNode(i),this.addedSet.has(n)){i=n;continue}break}if(l.has(n))n=null;else if(n){if(na(n)?(f=ho(this.droppedSet,n)||this.removesSubTreeCache.has(n),f&&ho(this.movedSet,i)&&(f=!1)):f=!0,this.addedSet.has(D.lastChild(n)))i=D.lastChild(n),u=null;else for(;;){if(u=D.nextSibling(i),this.addedSet.has(u)){i=u;continue}break}if(a=ft(n)?this.mirror.getId(ra(i)):this.mirror.getId(n),a===-1&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let h=D.host(n);a=this.mirror.getId(h)}}}if(this.addedSet.delete(i),!n||a===-1){l.add(i);continue}else if(f){this.droppedSet.add(i);continue}let c=!1;if(i.nodeType===Node.TEXT_NODE){let h=n.tagName;if(h==="TEXTAREA")continue;h==="STYLE"&&r.has(a)&&(c=!0)}let s=u?this.mirror.getId(u):null;for(;s===jt;)u=u&&D.nextSibling(u),s=u&&this.mirror.getId(u);if(s===-1){console.warn("Couldn't record new node. Couldn't find mirror id for nextSibling:",u),i=null;continue}let m=Ke(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:h=>{ea(h,this.mirror)&&this.iframeManager.addIframe(h),ta(h,this.mirror)&&this.stylesheetManager.trackLinkElement(h),Xn(i)&&this.shadowDomManager.addShadowRoot(D.shadowRoot(i),this.doc)},onIframeLoad:(h,g)=>{this.iframeManager.attachIframe(h,g),this.shadowDomManager.observeAttachShadow(h)},onStylesheetLoad:(h,g)=>{this.stylesheetManager.attachLinkElement(h,g)},cssCaptured:c});m&&(t.push({parentId:a,nextId:s,node:m}),r.add(m.id))}let d={texts:this.texts.map(c=>{let s=c.node,m=D.parentNode(s);return m&&m.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(m),{id:this.mirror.getId(s),value:c.value}}).filter(c=>!r.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{let{attributes:s}=c;if(typeof s.style=="string"){let m=JSON.stringify(c.styleDiff),h=JSON.stringify(c._unchangedStyles);m.length<s.style.length&&(m+h).split("var(").length===s.style.split("var(").length&&(s.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:s}}).filter(c=>!r.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!d.texts.length&&!d.attributes.length&&!d.removes.length&&!d.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(d))}),O(this,"genTextAreaValueMutation",t=>{let r=this.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(r),this.attributeMap.set(t,r));let i=Array.from(D.childNodes(t),n=>D.textContent(n)||"").join("");r.attributes.value=zt({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:qt(t),value:i,maskInputFn:this.maskInputFn})}),O(this,"processMutation",t=>{if(!Vn(t.target,this.mirror,this.slimDOMOptions))switch(t.type){case"characterData":{let r=D.textContent(t.target);!oe(t.target,this.blockClass,this.blockSelector,!1)&&r!==t.oldValue&&this.texts.push({value:Io(t.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,Qo(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{let r=t.target,i=ke(r.tagName),n=t.attributeName,a=t.target.getAttribute(n);if(n==="value"){let f=qt(r);a=zt({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:f,value:a,maskInputFn:this.maskInputFn})}if(oe(t.target,this.blockClass,this.blockSelector,!1)||a===t.oldValue)return;let u=this.attributeMap.get(t.target);if(i==="iframe"&&n==="src"&&!this.keepIframeSrcFn(a))if(!r.contentDocument)n="rr_src";else return;if(u||(u={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(u),this.attributeMap.set(t.target,u)),n==="type"&&i==="input"&&(t.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!Oo(i,n))if(u.attributes[n]=No(this.doc,i,ke(n),a),n==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}let f=this.unattachedDoc.createElement("span");t.oldValue&&f.setAttribute("style",t.oldValue);for(let l of Array.from(r.style)){let p=r.style.getPropertyValue(l),o=r.style.getPropertyPriority(l);p!==f.style.getPropertyValue(l)||o!==f.style.getPropertyPriority(l)?o===""?u.styleDiff[l]=p:u.styleDiff[l]=[p,o]:u._unchangedStyles[l]=[p,o]}for(let l of Array.from(f.style))r.style.getPropertyValue(l)===""&&(u.styleDiff[l]=!1)}else n==="open"&&r.tagName==="DIALOG"&&(r.matches("dialog:modal")?u.attributes.rr_open_mode="modal":u.attributes.rr_open_mode="non-modal");break}case"childList":{if(oe(t.target,this.blockClass,this.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{let i=this.mirror.getId(r),n=ft(t.target)?this.mirror.getId(D.host(t.target)):this.mirror.getId(t.target);oe(t.target,this.blockClass,this.blockSelector,!1)||Vn(r,this.mirror,this.slimDOMOptions)||!Zc(r,this.mirror)||(this.addedSet.has(r)?(Qn(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&i===-1||Zo(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[fo(i,n)]?Qn(this.movedSet,r):(this.removes.push({parentId:n,id:i,isShadow:ft(t.target)&&ht(t.target)?!0:void 0}),nf(r,this.removesSubTreeCache))),this.mapRemoves.push(r))});break}}}),O(this,"genAdds",(t,r)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Vn(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let i=null;r&&this.mirror.hasNode(r)&&(i=this.mirror.getId(r)),i&&i!==-1&&(this.movedMap[fo(this.mirror.getId(t),i)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);oe(t,this.blockClass,this.blockSelector,!1)||(D.childNodes(t).forEach(i=>this.genAdds(i)),Xn(t)&&D.childNodes(D.shadowRoot(t)).forEach(i=>{this.processedNodeManager.add(i,this),this.genAdds(i,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(r=>{this[r]=t[r]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}};function Qn(e,t){e.delete(t),D.childNodes(t).forEach(r=>Qn(e,r))}function nf(e,t){let r=[e];for(;r.length;){let i=r.pop();t.has(i)||(t.add(i),D.childNodes(i).forEach(n=>r.push(n)))}}function ho(e,t){return e.size===0?!1:sa(e,t)}function sa(e,t){if(e.has(t))return!0;let r=D.parentNode(t);return r?sa(e,r):!1}var dt;function sf(e){dt=e}function of(){dt=void 0}var F=e=>dt?(...r)=>{try{return e(...r)}catch(i){if(dt&&dt(i)===!0)return;throw i}}:e,Fe=[];function bt(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function oa(e,t){let r=new Kn;Fe.push(r),r.init(e);let[i,n]=Yo(),a=new i(F(r.processMutations.bind(r)));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),[a,n]}function af({mousemoveCb:e,sampling:t,doc:r,mirror:i}){if(t.mousemove===!1)return()=>{};let n=typeof t.mousemove=="number"?t.mousemove:50,a=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500,u=[],f,l=mt(F(d=>{let c=Date.now()-f;e(u.map(s=>(s.timeOffset-=c,s)),d),u=[],f=null}),a),p=F(mt(F(d=>{let c=bt(d),{clientX:s,clientY:m}=Yn(d)?d.changedTouches[0]:d;f||(f=pt()),u.push({x:s,y:m,id:i.getId(c),timeOffset:pt()-f}),l(typeof DragEvent<"u"&&d instanceof DragEvent?L.Drag:d instanceof MouseEvent?L.MouseMove:L.TouchMove)}),n,{trailing:!1})),o=[se("mousemove",p,r),se("touchmove",p,r),se("drag",p,r)];return F(()=>{o.forEach(d=>d())})}function lf({mouseInteractionCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,sampling:a}){if(a.mouseInteraction===!1)return()=>{};let u=a.mouseInteraction===!0||a.mouseInteraction===void 0?{}:a.mouseInteraction,f=[],l=null,p=o=>d=>{let c=bt(d);if(oe(c,i,n,!0))return;let s=null,m=o;if("pointerType"in d){switch(d.pointerType){case"mouse":s=Me.Mouse;break;case"touch":s=Me.Touch;break;case"pen":s=Me.Pen;break}s===Me.Touch?ae[o]===ae.MouseDown?m="TouchStart":ae[o]===ae.MouseUp&&(m="TouchEnd"):Me.Pen}else Yn(d)&&(s=Me.Touch);s!==null?(l=s,(m.startsWith("Touch")&&s===Me.Touch||m.startsWith("Mouse")&&s===Me.Mouse)&&(s=null)):ae[o]===ae.Click&&(s=l,l=null);let h=Yn(d)?d.changedTouches[0]:d;if(!h)return;let g=r.getId(c),{clientX:C,clientY:b}=h;F(e)({type:ae[m],id:g,x:C,y:b,...s!==null&&{pointerType:s}})};return Object.keys(ae).filter(o=>Number.isNaN(Number(o))&&!o.endsWith("_Departed")&&u[o]!==!1).forEach(o=>{let d=ke(o),c=p(o);if(window.PointerEvent)switch(ae[o]){case ae.MouseDown:case ae.MouseUp:d=d.replace("mouse","pointer");break;case ae.TouchStart:case ae.TouchEnd:return}f.push(se(d,c,t))}),F(()=>{f.forEach(o=>o())})}function aa({scrollCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,sampling:a}){let u=F(mt(F(f=>{let l=bt(f);if(!l||oe(l,i,n,!0))return;let p=r.getId(l);if(l===t&&t.defaultView){let o=Xo(t.defaultView);e({id:p,x:o.left,y:o.top})}else e({id:p,x:l.scrollLeft,y:l.scrollTop})}),a.scroll||100));return se("scroll",u,t)}function uf({viewportResizeCb:e},{win:t}){let r=-1,i=-1,n=F(mt(F(()=>{let a=Jo(),u=Ko();(r!==a||i!==u)&&(e({width:Number(u),height:Number(a)}),r=a,i=u)}),200));return se("resize",n,t)}var cf=["INPUT","TEXTAREA","SELECT"],po=new WeakMap;function ff({inputCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,ignoreClass:a,ignoreSelector:u,maskInputOptions:f,maskInputFn:l,sampling:p,userTriggeredOnInput:o}){function d(b){let v=bt(b),E=b.isTrusted,w=v&&v.tagName;if(v&&w==="OPTION"&&(v=D.parentElement(v)),!v||!w||cf.indexOf(w)<0||oe(v,i,n,!0)||v.classList.contains(a)||u&&v.matches(u))return;let y=v.value,S=!1,x=qt(v)||"";x==="radio"||x==="checkbox"?S=v.checked:(f[w.toLowerCase()]||f[x])&&(y=zt({element:v,maskInputOptions:f,tagName:w,type:x,value:y,maskInputFn:l})),c(v,o?{text:y,isChecked:S,userTriggered:E}:{text:y,isChecked:S});let M=v.name;x==="radio"&&M&&S&&t.querySelectorAll(`input[type="radio"][name="${M}"]`).forEach(T=>{if(T!==v){let k=T.value;c(T,o?{text:k,isChecked:!S,userTriggered:!1}:{text:k,isChecked:!S})}})}function c(b,v){let E=po.get(b);if(!E||E.text!==v.text||E.isChecked!==v.isChecked){po.set(b,v);let w=r.getId(b);F(e)({...v,id:w})}}let m=(p.input==="last"?["change"]:["input","change"]).map(b=>se(b,F(d),t)),h=t.defaultView;if(!h)return()=>{m.forEach(b=>b())};let g=h.Object.getOwnPropertyDescriptor(h.HTMLInputElement.prototype,"value"),C=[[h.HTMLInputElement.prototype,"value"],[h.HTMLInputElement.prototype,"checked"],[h.HTMLSelectElement.prototype,"value"],[h.HTMLTextAreaElement.prototype,"value"],[h.HTMLSelectElement.prototype,"selectedIndex"],[h.HTMLOptionElement.prototype,"selected"]];return g&&g.set&&m.push(...C.map(b=>or(b[0],b[1],{set(){F(d)({target:this,isTrusted:!1})}},!1,h))),F(()=>{m.forEach(b=>b())})}function Gt(e){let t=[];function r(i,n){if(Ft("CSSGroupingRule")&&i.parentRule instanceof CSSGroupingRule||Ft("CSSMediaRule")&&i.parentRule instanceof CSSMediaRule||Ft("CSSSupportsRule")&&i.parentRule instanceof CSSSupportsRule||Ft("CSSConditionRule")&&i.parentRule instanceof CSSConditionRule){let u=Array.from(i.parentRule.cssRules).indexOf(i);return n.unshift(u),r(i.parentRule,n)}else if(i.parentStyleSheet){let u=Array.from(i.parentStyleSheet.cssRules).indexOf(i);n.unshift(u)}return n}return r(e,t)}function Ie(e,t,r){let i,n;return e?(e.ownerNode?i=t.getId(e.ownerNode):n=r.getId(e),{styleId:n,id:i}):{}}function hf({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:i}){if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return()=>{};let n=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=new Proxy(n,{apply:F((o,d,c)=>{let[s,m]=c,{id:h,styleId:g}=Ie(d,t,r.styleMirror);return(h&&h!==-1||g&&g!==-1)&&e({id:h,styleId:g,adds:[{rule:s,index:m}]}),o.apply(d,c)})}),i.CSSStyleSheet.prototype.addRule=function(o,d,c=this.cssRules.length){let s=`${o} { ${d} }`;return i.CSSStyleSheet.prototype.insertRule.apply(this,[s,c])};let a=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:F((o,d,c)=>{let[s]=c,{id:m,styleId:h}=Ie(d,t,r.styleMirror);return(m&&m!==-1||h&&h!==-1)&&e({id:m,styleId:h,removes:[{index:s}]}),o.apply(d,c)})}),i.CSSStyleSheet.prototype.removeRule=function(o){return i.CSSStyleSheet.prototype.deleteRule.apply(this,[o])};let u;i.CSSStyleSheet.prototype.replace&&(u=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(u,{apply:F((o,d,c)=>{let[s]=c,{id:m,styleId:h}=Ie(d,t,r.styleMirror);return(m&&m!==-1||h&&h!==-1)&&e({id:m,styleId:h,replace:s}),o.apply(d,c)})}));let f;i.CSSStyleSheet.prototype.replaceSync&&(f=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(f,{apply:F((o,d,c)=>{let[s]=c,{id:m,styleId:h}=Ie(d,t,r.styleMirror);return(m&&m!==-1||h&&h!==-1)&&e({id:m,styleId:h,replaceSync:s}),o.apply(d,c)})}));let l={};Ut("CSSGroupingRule")?l.CSSGroupingRule=i.CSSGroupingRule:(Ut("CSSMediaRule")&&(l.CSSMediaRule=i.CSSMediaRule),Ut("CSSConditionRule")&&(l.CSSConditionRule=i.CSSConditionRule),Ut("CSSSupportsRule")&&(l.CSSSupportsRule=i.CSSSupportsRule));let p={};return Object.entries(l).forEach(([o,d])=>{p[o]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(p[o].insertRule,{apply:F((c,s,m)=>{let[h,g]=m,{id:C,styleId:b}=Ie(s.parentStyleSheet,t,r.styleMirror);return(C&&C!==-1||b&&b!==-1)&&e({id:C,styleId:b,adds:[{rule:h,index:[...Gt(s),g||0]}]}),c.apply(s,m)})}),d.prototype.deleteRule=new Proxy(p[o].deleteRule,{apply:F((c,s,m)=>{let[h]=m,{id:g,styleId:C}=Ie(s.parentStyleSheet,t,r.styleMirror);return(g&&g!==-1||C&&C!==-1)&&e({id:g,styleId:C,removes:[{index:[...Gt(s),h]}]}),c.apply(s,m)})})}),F(()=>{i.CSSStyleSheet.prototype.insertRule=n,i.CSSStyleSheet.prototype.deleteRule=a,u&&(i.CSSStyleSheet.prototype.replace=u),f&&(i.CSSStyleSheet.prototype.replaceSync=f),Object.entries(l).forEach(([o,d])=>{d.prototype.insertRule=p[o].insertRule,d.prototype.deleteRule=p[o].deleteRule})})}function la({mirror:e,stylesheetManager:t},r){var i,n,a;let u=null;r.nodeName==="#document"?u=e.getId(r):u=e.getId(D.host(r));let f=r.nodeName==="#document"?(i=r.defaultView)==null?void 0:i.Document:(a=(n=r.ownerDocument)==null?void 0:n.defaultView)==null?void 0:a.ShadowRoot,l=f?.prototype?Object.getOwnPropertyDescriptor(f?.prototype,"adoptedStyleSheets"):void 0;return u===null||u===-1||!f||!l?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var p;return(p=l.get)==null?void 0:p.call(this)},set(p){var o;let d=(o=l.set)==null?void 0:o.call(this,p);if(u!==null&&u!==-1)try{t.adoptStyleSheets(p,u)}catch{}return d}}),F(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}))}function df({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:i},{win:n}){let a=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:F((f,l,p)=>{var o;let[d,c,s]=p;if(r.has(d))return a.apply(l,[d,c,s]);let{id:m,styleId:h}=Ie((o=l.parentRule)==null?void 0:o.parentStyleSheet,t,i.styleMirror);return(m&&m!==-1||h&&h!==-1)&&e({id:m,styleId:h,set:{property:d,value:c,priority:s},index:Gt(l.parentRule)}),f.apply(l,p)})});let u=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:F((f,l,p)=>{var o;let[d]=p;if(r.has(d))return u.apply(l,[d]);let{id:c,styleId:s}=Ie((o=l.parentRule)==null?void 0:o.parentStyleSheet,t,i.styleMirror);return(c&&c!==-1||s&&s!==-1)&&e({id:c,styleId:s,remove:{property:d},index:Gt(l.parentRule)}),f.apply(l,p)})}),F(()=>{n.CSSStyleDeclaration.prototype.setProperty=a,n.CSSStyleDeclaration.prototype.removeProperty=u})}function pf({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:i,sampling:n,doc:a}){let u=F(l=>mt(F(p=>{let o=bt(p);if(!o||oe(o,t,r,!0))return;let{currentTime:d,volume:c,muted:s,playbackRate:m,loop:h}=o;e({type:l,id:i.getId(o),currentTime:d,volume:c,muted:s,playbackRate:m,loop:h})}),n.media||500)),f=[se("play",u(Xe.Play),a),se("pause",u(Xe.Pause),a),se("seeked",u(Xe.Seeked),a),se("volumechange",u(Xe.VolumeChange),a),se("ratechange",u(Xe.RateChange),a)];return F(()=>{f.forEach(l=>l())})}function mf({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let i=[],n=new WeakMap,a=r.FontFace;r.FontFace=function(l,p,o){let d=new a(l,p,o);return n.set(d,{family:l,buffer:typeof p!="string",descriptors:o,fontSource:typeof p=="string"?p:JSON.stringify(Array.from(new Uint8Array(p)))}),d};let u=$e(t.fonts,"add",function(f){return function(l){return setTimeout(F(()=>{let p=n.get(l);p&&(e(p),n.delete(l))}),0),f.apply(this,[l])}});return i.push(()=>{r.FontFace=a}),i.push(u),F(()=>{i.forEach(f=>f())})}function gf(e){let{doc:t,mirror:r,blockClass:i,blockSelector:n,selectionCb:a}=e,u=!0,f=F(()=>{let l=t.getSelection();if(!l||u&&l?.isCollapsed)return;u=l.isCollapsed||!1;let p=[],o=l.rangeCount||0;for(let d=0;d<o;d++){let c=l.getRangeAt(d),{startContainer:s,startOffset:m,endContainer:h,endOffset:g}=c;oe(s,i,n,!0)||oe(h,i,n,!0)||p.push({start:r.getId(s),startOffset:m,end:r.getId(h),endOffset:g})}a({ranges:p})});return f(),se("selectionchange",f)}function yf({doc:e,customElementCb:t}){let r=e.defaultView;return!r||!r.customElements?()=>{}:$e(r.customElements,"define",function(n){return function(a,u,f){try{t({define:{name:a}})}catch{console.warn(`Custom element callback failed for ${a}`)}return n.apply(this,[a,u,f])}})}function bf(e,t){let{mutationCb:r,mousemoveCb:i,mouseInteractionCb:n,scrollCb:a,viewportResizeCb:u,inputCb:f,mediaInteractionCb:l,styleSheetRuleCb:p,styleDeclarationCb:o,canvasMutationCb:d,fontCb:c,selectionCb:s,customElementCb:m}=e;e.mutationCb=(...h)=>{t.mutation&&t.mutation(...h),r(...h)},e.mousemoveCb=(...h)=>{t.mousemove&&t.mousemove(...h),i(...h)},e.mouseInteractionCb=(...h)=>{t.mouseInteraction&&t.mouseInteraction(...h),n(...h)},e.scrollCb=(...h)=>{t.scroll&&t.scroll(...h),a(...h)},e.viewportResizeCb=(...h)=>{t.viewportResize&&t.viewportResize(...h),u(...h)},e.inputCb=(...h)=>{t.input&&t.input(...h),f(...h)},e.mediaInteractionCb=(...h)=>{t.mediaInteaction&&t.mediaInteaction(...h),l(...h)},e.styleSheetRuleCb=(...h)=>{t.styleSheetRule&&t.styleSheetRule(...h),p(...h)},e.styleDeclarationCb=(...h)=>{t.styleDeclaration&&t.styleDeclaration(...h),o(...h)},e.canvasMutationCb=(...h)=>{t.canvasMutation&&t.canvasMutation(...h),d(...h)},e.fontCb=(...h)=>{t.font&&t.font(...h),c(...h)},e.selectionCb=(...h)=>{t.selection&&t.selection(...h),s(...h)},e.customElementCb=(...h)=>{t.customElement&&t.customElement(...h),m(...h)}}function wf(e,t={}){let r=e.doc.defaultView;if(!r)return()=>{};bf(e,t);let i,n=()=>{};e.recordDOM&&([i,n]=oa(e,e.doc));let a=af(e),u=lf(e),f=aa(e),l=uf(e,{win:r}),p=ff(e),o=pf(e),d=()=>{},c=()=>{},s=()=>{},m=()=>{};e.recordDOM&&(d=hf(e,{win:r}),c=la(e,e.doc),s=df(e,{win:r}),e.collectFonts&&(m=mf(e)));let h=gf(e),g=yf(e),C=[];for(let b of e.plugins)C.push(b.observer(b.callback,r,b.options));return F(()=>{Fe.forEach(b=>b.reset()),i?.disconnect(),n(),a(),u(),f(),l(),p(),o(),d(),c(),s(),m(),h(),g(),C.forEach(b=>b())})}function Ft(e){return typeof window[e]<"u"}function Ut(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var Yt=class{constructor(t){O(this,"iframeIdToRemoteIdMap",new WeakMap),O(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=t}getId(t,r,i,n){let a=i||this.getIdToRemoteIdMap(t),u=n||this.getRemoteIdToIdMap(t),f=a.get(r);return f||(f=this.generateIdFn(),a.set(r,f),u.set(f,r)),f}getIds(t,r){let i=this.getIdToRemoteIdMap(t),n=this.getRemoteIdToIdMap(t);return r.map(a=>this.getId(t,a,i,n))}getRemoteId(t,r,i){let n=i||this.getRemoteIdToIdMap(t);if(typeof r!="number")return r;let a=n.get(r);return a||-1}getRemoteIds(t,r){let i=this.getRemoteIdToIdMap(t);return r.map(n=>this.getRemoteId(t,n,i))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let r=this.iframeIdToRemoteIdMap.get(t);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(t,r)),r}getRemoteIdToIdMap(t){let r=this.iframeRemoteIdToIdMap.get(t);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(t,r)),r}},Zn=class{constructor(t){O(this,"iframes",new WeakMap),O(this,"crossOriginIframeMap",new WeakMap),O(this,"crossOriginIframeMirror",new Yt(Mo)),O(this,"crossOriginIframeStyleMirror"),O(this,"crossOriginIframeRootIdMap",new WeakMap),O(this,"mirror"),O(this,"mutationCb"),O(this,"wrappedEmit"),O(this,"loadListener"),O(this,"stylesheetManager"),O(this,"recordCrossOriginIframes"),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Yt(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,r){var i,n;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((i=t.contentWindow)==null||i.addEventListener("message",this.handleMessage.bind(this))),(n=this.loadListener)==null||n.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){let r=t;if(r.data.type!=="rrweb"||r.origin!==r.data.origin||!t.source)return;let n=this.crossOriginIframeMap.get(t.source);if(!n)return;let a=this.transformCrossOriginEvent(n,r.data.event);a&&this.wrappedEmit(a,r.data.isCheckout)}transformCrossOriginEvent(t,r){var i;switch(r.type){case _.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(r.data.node,t);let n=r.data.node.id;return this.crossOriginIframeRootIdMap.set(t,n),this.patchRootIdOnNode(r.data.node,n),{timestamp:r.timestamp,type:_.IncrementalSnapshot,data:{source:L.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case _.Meta:case _.Load:case _.DomContentLoaded:return!1;case _.Plugin:return r;case _.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case _.IncrementalSnapshot:switch(r.data.source){case L.Mutation:return r.data.adds.forEach(n=>{this.replaceIds(n,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(n.node,t);let a=this.crossOriginIframeRootIdMap.get(t);a&&this.patchRootIdOnNode(n.node,a)}),r.data.removes.forEach(n=>{this.replaceIds(n,t,["parentId","id"])}),r.data.attributes.forEach(n=>{this.replaceIds(n,t,["id"])}),r.data.texts.forEach(n=>{this.replaceIds(n,t,["id"])}),r;case L.Drag:case L.TouchMove:case L.MouseMove:return r.data.positions.forEach(n=>{this.replaceIds(n,t,["id"])}),r;case L.ViewportResize:return!1;case L.MediaInteraction:case L.MouseInteraction:case L.Scroll:case L.CanvasMutation:case L.Input:return this.replaceIds(r.data,t,["id"]),r;case L.StyleSheetRule:case L.StyleDeclaration:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleId"]),r;case L.Font:return r;case L.Selection:return r.data.ranges.forEach(n=>{this.replaceIds(n,t,["start","end"])}),r;case L.AdoptedStyleSheet:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleIds"]),(i=r.data.styles)==null||i.forEach(n=>{this.replaceStyleIds(n,t,["styleId"])}),r}}return!1}replace(t,r,i,n){for(let a of n)!Array.isArray(r[a])&&typeof r[a]!="number"||(Array.isArray(r[a])?r[a]=t.getIds(i,r[a]):r[a]=t.getId(i,r[a]));return r}replaceIds(t,r,i){return this.replace(this.crossOriginIframeMirror,t,r,i)}replaceStyleIds(t,r,i){return this.replace(this.crossOriginIframeStyleMirror,t,r,i)}replaceIdOnNode(t,r){this.replaceIds(t,r,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(i=>{this.replaceIdOnNode(i,r)})}patchRootIdOnNode(t,r){t.type!==ia.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(i=>{this.patchRootIdOnNode(i,r)})}},ei=class{constructor(t){O(this,"shadowDoms",new WeakSet),O(this,"mutationCb"),O(this,"scrollCb"),O(this,"bypassOptions"),O(this,"mirror"),O(this,"restoreHandlers",[]),this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,r){if(!ht(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);let[i]=oa({...this.bypassOptions,doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>i.disconnect()),this.restoreHandlers.push(aa({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(D.host(t))),this.restoreHandlers.push(la({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,r){let i=this;this.restoreHandlers.push($e(t.prototype,"attachShadow",function(n){return function(a){let u=n.call(this,a),f=D.shadowRoot(this);return f&&na(this)&&i.addShadowRoot(f,r),u}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}},Qe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vf=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(ct=0;ct<Qe.length;ct++)vf[Qe.charCodeAt(ct)]=ct;var ct,Sf=function(e){var t=new Uint8Array(e),r,i=t.length,n="";for(r=0;r<i;r+=3)n+=Qe[t[r]>>2],n+=Qe[(t[r]&3)<<4|t[r+1]>>4],n+=Qe[(t[r+1]&15)<<2|t[r+2]>>6],n+=Qe[t[r+2]&63];return i%3===2?n=n.substring(0,n.length-1)+"=":i%3===1&&(n=n.substring(0,n.length-2)+"=="),n};var mo=new Map;function Cf(e,t){let r=mo.get(e);return r||(r=new Map,mo.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}var ua=(e,t,r)=>{if(!e||!(fa(e,t)||typeof e=="object"))return;let i=e.constructor.name,n=Cf(r,i),a=n.indexOf(e);return a===-1&&(a=n.length,n.push(e)),a};function Bt(e,t,r){if(e instanceof Array)return e.map(i=>Bt(i,t,r));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){let i=e.constructor.name,n=Sf(e);return{rr_type:i,base64:n}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Bt(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){let i=e.constructor.name,{src:n}=e;return{rr_type:i,src:n}}else if(e instanceof HTMLCanvasElement){let i="HTMLImageElement",n=e.toDataURL();return{rr_type:i,src:n}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Bt(e.data,t,r),e.width,e.height]};if(fa(e,t)||typeof e=="object"){let i=e.constructor.name,n=ua(e,t,r);return{rr_type:i,index:n}}}}return e}var ca=(e,t,r)=>e.map(i=>Bt(i,t,r)),fa=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(n=>typeof t[n]=="function").find(n=>e instanceof t[n]);function Ef(e,t,r,i){let n=[],a=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(let u of a)try{if(typeof t.CanvasRenderingContext2D.prototype[u]!="function")continue;let f=$e(t.CanvasRenderingContext2D.prototype,u,function(l){return function(...p){return oe(this.canvas,r,i,!0)||setTimeout(()=>{let o=ca(p,t,this);e(this.canvas,{type:Ze["2D"],property:u,args:o})},0),l.apply(this,p)}});n.push(f)}catch{let f=or(t.CanvasRenderingContext2D.prototype,u,{set(l){e(this.canvas,{type:Ze["2D"],property:u,args:[l],setter:!0})}});n.push(f)}return()=>{n.forEach(u=>u())}}function xf(e){return e==="experimental-webgl"?"webgl":e}function go(e,t,r,i){let n=[];try{let a=$e(e.HTMLCanvasElement.prototype,"getContext",function(u){return function(f,...l){if(!oe(this,t,r,!0)){let p=xf(f);if("__context"in this||(this.__context=p),i&&["webgl","webgl2"].includes(p))if(l[0]&&typeof l[0]=="object"){let o=l[0];o.preserveDrawingBuffer||(o.preserveDrawingBuffer=!0)}else l.splice(0,1,{preserveDrawingBuffer:!0})}return u.apply(this,[f,...l])}});n.push(a)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{n.forEach(a=>a())}}function yo(e,t,r,i,n,a){let u=[],f=Object.getOwnPropertyNames(e);for(let l of f)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(l))try{if(typeof e[l]!="function")continue;let p=$e(e,l,function(o){return function(...d){let c=o.apply(this,d);if(ua(c,a,this),"tagName"in this.canvas&&!oe(this.canvas,i,n,!0)){let s=ca(d,a,this),m={type:t,property:l,args:s};r(this.canvas,m)}return c}});u.push(p)}catch{let p=or(e,l,{set(o){r(this.canvas,{type:t,property:l,args:[o],setter:!0})}});u.push(p)}return u}function Rf(e,t,r,i){let n=[];return typeof t.WebGLRenderingContext<"u"&&n.push(...yo(t.WebGLRenderingContext.prototype,Ze.WebGL,e,r,i,t)),typeof t.WebGL2RenderingContext<"u"&&n.push(...yo(t.WebGL2RenderingContext.prototype,Ze.WebGL2,e,r,i,t)),()=>{n.forEach(a=>a())}}var ha=`(function() {
|
|
53
|
+
or you can use record.mirror to access the mirror instance during recording.`,Mo={map:{},getId(){return console.error(Xe),-1},getNode(){return console.error(Xe),null},removeNodeFromMap(){console.error(Xe)},has(){return console.error(Xe),!1},reset(){console.error(Xe)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Mo=new Proxy(Mo,{get(e,t,r){return t==="map"&&console.error(Xe),Reflect.get(e,t,r)}}));function bt(e,t,r={}){let i=null,n=0;return function(...l){let u=Date.now();!n&&r.leading===!1&&(n=u);let c=t-(u-n),a=this;c<=0||c>t?(i&&(clearTimeout(i),i=null),n=u,e.apply(a,l)):!i&&r.trailing!==!1&&(i=setTimeout(()=>{n=r.leading===!1?0:Date.now(),i=null,e.apply(a,l)},c))}}function dr(e,t,r,i,n=window){let l=n.Object.getOwnPropertyDescriptor(e,t);return n.Object.defineProperty(e,t,i?r:{set(u){setTimeout(()=>{r.set.call(this,u)},0),l&&l.set&&l.set.call(this,u)}}),()=>dr(e,t,l||{},!0)}function fa(e){var t,r,i,n;let l=e.document;return{left:l.scrollingElement?l.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:l.documentElement.scrollLeft||l?.body&&((t=D.parentElement(l.body))==null?void 0:t.scrollLeft)||((r=l?.body)==null?void 0:r.scrollLeft)||0,top:l.scrollingElement?l.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:l?.documentElement.scrollTop||l?.body&&((i=D.parentElement(l.body))==null?void 0:i.scrollTop)||((n=l?.body)==null?void 0:n.scrollTop)||0}}function da(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function ha(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function pa(e){return e?e.nodeType===e.ELEMENT_NODE?e:D.parentElement(e):null}function oe(e,t,r,i){if(!e)return!1;let n=pa(e);if(!n)return!1;try{if(typeof t=="string"){if(n.classList.contains(t)||i&&n.closest("."+t)!==null)return!0}else if(Qt(n,t,i))return!0}catch{}return!!(r&&(n.matches(r)||i&&n.closest(r)!==null))}function Mf(e,t){return t.getId(e)!==-1}function Zn(e,t,r){return e.tagName==="TITLE"&&r.headTitleMutations?!0:t.getId(e)===Kt}function ma(e,t){if(pt(e))return!1;let r=t.getId(e);if(!t.has(r))return!0;let i=D.parentNode(e);return i&&i.nodeType===e.DOCUMENT_NODE?!1:i?ma(i,t):!0}function ni(e){return!!e.changedTouches}function Nf(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function ga(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function ya(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function ii(e){return e?e instanceof ri&&"shadowRoot"in e?!!e.shadowRoot:!!D.shadowRoot(e):!1}var si=class{constructor(){O(this,"id",1),O(this,"styleIDMap",new WeakMap),O(this,"idStyleMap",new Map)}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let i;return r===void 0?i=this.id++:i=r,this.styleIDMap.set(t,i),this.idStyleMap.set(i,t),i}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function ba(e){var t;let r=null;return"getRootNode"in e&&((t=D.getRootNode(e))==null?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&D.host(D.getRootNode(e))&&(r=D.host(D.getRootNode(e))),r}function Of(e){let t=e,r;for(;r=ba(t);)t=r;return t}function kf(e){let t=D.ownerDocument(e);if(!t)return!1;let r=Of(e);return D.contains(t,r)}function wa(e){let t=D.ownerDocument(e);return t?D.contains(t,e)||kf(e):!1}var _=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e[e.Asset=7]="Asset",e))(_||{}),L=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(L||{}),le=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(le||{}),Ne=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Ne||{}),et=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(et||{}),Je=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Je||{});var va=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(va||{}),No=(e,t)=>`${e}@${t}`,oi=class{constructor(){O(this,"frozen",!1),O(this,"locked",!1),O(this,"texts",[]),O(this,"attributes",[]),O(this,"attributeMap",new WeakMap),O(this,"removes",[]),O(this,"mapRemoves",[]),O(this,"movedMap",{}),O(this,"addedSet",new Set),O(this,"movedSet",new Set),O(this,"droppedSet",new Set),O(this,"removesSubTreeCache",new Set),O(this,"mutationCb"),O(this,"blockClass"),O(this,"blockSelector"),O(this,"maskTextClass"),O(this,"maskTextSelector"),O(this,"inlineStylesheet"),O(this,"maskInputOptions"),O(this,"maskTextFn"),O(this,"maskInputFn"),O(this,"keepIframeSrcFn"),O(this,"recordCanvas"),O(this,"inlineImages"),O(this,"slimDOMOptions"),O(this,"dataURLOptions"),O(this,"doc"),O(this,"mirror"),O(this,"iframeManager"),O(this,"stylesheetManager"),O(this,"shadowDomManager"),O(this,"canvasManager"),O(this,"processedNodeManager"),O(this,"unattachedDoc"),O(this,"processMutations",t=>{t.forEach(this.processMutation),this.emit()}),O(this,"emit",()=>{if(this.frozen||this.locked)return;let t=[],r=new Set;for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let f of this.movedSet){let s=D.parentNode(f);this.removesSubTreeCache.has(s)&&!this.movedSet.has(s)||this.addedSet.add(f)}let i=null,n=null,l=-1,u=null,c=!1,a=new Set,p=this.addedSet.values(),o=p.next();for(;this.addedSet.size;){if(i!==null&&this.addedSet.has(D.previousSibling(i)))u=i,i=D.previousSibling(i);else{for(this.addedSet.has(o.value)||(o=p.next()),i=o.value;;){if(n=D.parentNode(i),this.addedSet.has(n)){i=n;continue}break}if(a.has(n))n=null;else if(n){if(wa(n)?(c=Oo(this.droppedSet,n)||this.removesSubTreeCache.has(n),c&&Oo(this.movedSet,i)&&(c=!1)):c=!0,this.addedSet.has(D.lastChild(n)))i=D.lastChild(n),u=null;else for(;;){if(u=D.nextSibling(i),this.addedSet.has(u)){i=u;continue}break}if(l=pt(n)?this.mirror.getId(ba(i)):this.mirror.getId(n),l===-1&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let d=D.host(n);l=this.mirror.getId(d)}}}if(this.addedSet.delete(i),!n||l===-1){a.add(i);continue}else if(c){this.droppedSet.add(i);continue}let f=!1;if(i.nodeType===Node.TEXT_NODE){let d=n.tagName;if(d==="TEXTAREA")continue;d==="STYLE"&&r.has(l)&&(f=!0)}let s=u?this.mirror.getId(u):null;for(;s===Kt;)u=u&&D.nextSibling(u),s=u&&this.mirror.getId(u);if(s===-1){console.warn("Couldn't record new node. Couldn't find mirror id for nextSibling:",u),i=null;continue}let m=Qe(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:d=>{ga(d,this.mirror)&&this.iframeManager.addIframe(d),ya(d,this.mirror)&&this.stylesheetManager.trackLinkElement(d),ii(i)&&this.shadowDomManager.addShadowRoot(D.shadowRoot(i),this.doc)},onIframeLoad:(d,g)=>{this.iframeManager.attachIframe(d,g),this.shadowDomManager.observeAttachShadow(d)},onStylesheetLoad:(d,g)=>{this.stylesheetManager.attachLinkElement(d,g)},cssCaptured:f});m&&(t.push({parentId:l,nextId:s,node:m}),r.add(m.id))}let h={texts:this.texts.map(f=>{let s=f.node,m=D.parentNode(s);return m&&m.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(m),{id:this.mirror.getId(s),value:f.value}}).filter(f=>!r.has(f.id)).filter(f=>this.mirror.has(f.id)),attributes:this.attributes.map(f=>{let{attributes:s}=f;if(typeof s.style=="string"){let m=JSON.stringify(f.styleDiff),d=JSON.stringify(f._unchangedStyles);m.length<s.style.length&&(m+d).split("var(").length===s.style.split("var(").length&&(s.style=f.styleDiff)}return{id:this.mirror.getId(f.node),attributes:s}}).filter(f=>!r.has(f.id)).filter(f=>this.mirror.has(f.id)),removes:this.removes,adds:t};!h.texts.length&&!h.attributes.length&&!h.removes.length&&!h.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(h))}),O(this,"genTextAreaValueMutation",t=>{let r=this.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(r),this.attributeMap.set(t,r));let i=Array.from(D.childNodes(t),n=>D.textContent(n)||"").join("");r.attributes.value=Yt({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:Xt(t),value:i,maskInputFn:this.maskInputFn})}),O(this,"processMutation",t=>{if(!Zn(t.target,this.mirror,this.slimDOMOptions))switch(t.type){case"characterData":{let r=D.textContent(t.target);!oe(t.target,this.blockClass,this.blockSelector,!1)&&r!==t.oldValue&&this.texts.push({value:Ho(t.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,pa(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{let r=t.target,i=Ae(r.tagName),n=t.attributeName,l=t.target.getAttribute(n);if(n==="value"){let c=Xt(r);l=Yt({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:c,value:l,maskInputFn:this.maskInputFn})}if(oe(t.target,this.blockClass,this.blockSelector,!1)||l===t.oldValue)return;let u=this.attributeMap.get(t.target);if(i==="iframe"&&n==="src"&&!this.keepIframeSrcFn(l))if(!r.contentDocument)n="rr_src";else return;if(u||(u={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(u),this.attributeMap.set(t.target,u)),n==="type"&&i==="input"&&(t.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!Vo(i,n))if(u.attributes[n]=jo(this.doc,i,Ae(n),l),n==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}let c=this.unattachedDoc.createElement("span");t.oldValue&&c.setAttribute("style",t.oldValue);for(let a of Array.from(r.style)){let p=r.style.getPropertyValue(a),o=r.style.getPropertyPriority(a);p!==c.style.getPropertyValue(a)||o!==c.style.getPropertyPriority(a)?o===""?u.styleDiff[a]=p:u.styleDiff[a]=[p,o]:u._unchangedStyles[a]=[p,o]}for(let a of Array.from(c.style))r.style.getPropertyValue(a)===""&&(u.styleDiff[a]=!1)}else n==="open"&&r.tagName==="DIALOG"&&(r.matches("dialog:modal")?u.attributes.rr_open_mode="modal":u.attributes.rr_open_mode="non-modal");break}case"childList":{if(oe(t.target,this.blockClass,this.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{let i=this.mirror.getId(r),n=pt(t.target)?this.mirror.getId(D.host(t.target)):this.mirror.getId(t.target);oe(t.target,this.blockClass,this.blockSelector,!1)||Zn(r,this.mirror,this.slimDOMOptions)||!Mf(r,this.mirror)||(this.addedSet.has(r)?(ai(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&i===-1||ma(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[No(i,n)]?ai(this.movedSet,r):(this.removes.push({parentId:n,id:i,isShadow:pt(t.target)&&mt(t.target)?!0:void 0}),If(r,this.removesSubTreeCache))),this.mapRemoves.push(r))});break}}}),O(this,"genAdds",(t,r)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Zn(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let i=null;r&&this.mirror.hasNode(r)&&(i=this.mirror.getId(r)),i&&i!==-1&&(this.movedMap[No(this.mirror.getId(t),i)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);oe(t,this.blockClass,this.blockSelector,!1)||(D.childNodes(t).forEach(i=>this.genAdds(i)),ii(t)&&D.childNodes(D.shadowRoot(t)).forEach(i=>{this.processedNodeManager.add(i,this),this.genAdds(i,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(r=>{this[r]=t[r]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}};function ai(e,t){e.delete(t),D.childNodes(t).forEach(r=>ai(e,r))}function If(e,t){let r=[e];for(;r.length;){let i=r.pop();t.has(i)||(t.add(i),D.childNodes(i).forEach(n=>r.push(n)))}}function Oo(e,t){return e.size===0?!1:Sa(e,t)}function Sa(e,t){if(e.has(t))return!0;let r=D.parentNode(t);return r?Sa(e,r):!1}var gt;function Af(e){gt=e}function Df(){gt=void 0}var F=e=>gt?(...r)=>{try{return e(...r)}catch(i){if(gt&>(i)===!0)return;throw i}}:e,Ue=[];function St(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function Ea(e,t){let r=new oi;Ue.push(r),r.init(e);let[i,n]=ca(),l=new i(F(r.processMutations.bind(r)));return l.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),[l,n]}function _f({mousemoveCb:e,sampling:t,doc:r,mirror:i}){if(t.mousemove===!1)return()=>{};let n=typeof t.mousemove=="number"?t.mousemove:50,l=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500,u=[],c,a=bt(F(h=>{let f=Date.now()-c;e(u.map(s=>(s.timeOffset-=f,s)),h),u=[],c=null}),l),p=F(bt(F(h=>{let f=St(h),{clientX:s,clientY:m}=ni(h)?h.changedTouches[0]:h;c||(c=yt()),u.push({x:s,y:m,id:i.getId(f),timeOffset:yt()-c}),a(typeof DragEvent<"u"&&h instanceof DragEvent?L.Drag:h instanceof MouseEvent?L.MouseMove:L.TouchMove)}),n,{trailing:!1})),o=[se("mousemove",p,r),se("touchmove",p,r),se("drag",p,r)];return F(()=>{o.forEach(h=>h())})}function Lf({mouseInteractionCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,sampling:l}){if(l.mouseInteraction===!1)return()=>{};let u=l.mouseInteraction===!0||l.mouseInteraction===void 0?{}:l.mouseInteraction,c=[],a=null,p=o=>h=>{let f=St(h);if(oe(f,i,n,!0))return;let s=null,m=o;if("pointerType"in h){switch(h.pointerType){case"mouse":s=Ne.Mouse;break;case"touch":s=Ne.Touch;break;case"pen":s=Ne.Pen;break}s===Ne.Touch?le[o]===le.MouseDown?m="TouchStart":le[o]===le.MouseUp&&(m="TouchEnd"):Ne.Pen}else ni(h)&&(s=Ne.Touch);s!==null?(a=s,(m.startsWith("Touch")&&s===Ne.Touch||m.startsWith("Mouse")&&s===Ne.Mouse)&&(s=null)):le[o]===le.Click&&(s=a,a=null);let d=ni(h)?h.changedTouches[0]:h;if(!d)return;let g=r.getId(f),{clientX:E,clientY:b}=d;F(e)({type:le[m],id:g,x:E,y:b,...s!==null&&{pointerType:s}})};return Object.keys(le).filter(o=>Number.isNaN(Number(o))&&!o.endsWith("_Departed")&&u[o]!==!1).forEach(o=>{let h=Ae(o),f=p(o);if(window.PointerEvent)switch(le[o]){case le.MouseDown:case le.MouseUp:h=h.replace("mouse","pointer");break;case le.TouchStart:case le.TouchEnd:return}c.push(se(h,f,t))}),F(()=>{c.forEach(o=>o())})}function Ca({scrollCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,sampling:l}){let u=F(bt(F(c=>{let a=St(c);if(!a||oe(a,i,n,!0))return;let p=r.getId(a);if(a===t&&t.defaultView){let o=fa(t.defaultView);e({id:p,x:o.left,y:o.top})}else e({id:p,x:a.scrollLeft,y:a.scrollTop})}),l.scroll||100));return se("scroll",u,t)}function Pf({viewportResizeCb:e},{win:t}){let r=-1,i=-1,n=F(bt(F(()=>{let l=da(),u=ha();(r!==l||i!==u)&&(e({width:Number(u),height:Number(l)}),r=l,i=u)}),200));return se("resize",n,t)}var Ff=["INPUT","TEXTAREA","SELECT"],ko=new WeakMap;function Uf({inputCb:e,doc:t,mirror:r,blockClass:i,blockSelector:n,ignoreClass:l,ignoreSelector:u,maskInputOptions:c,maskInputFn:a,sampling:p,userTriggeredOnInput:o}){function h(b){let v=St(b),C=b.isTrusted,w=v&&v.tagName;if(v&&w==="OPTION"&&(v=D.parentElement(v)),!v||!w||Ff.indexOf(w)<0||oe(v,i,n,!0)||v.classList.contains(l)||u&&v.matches(u))return;let y=v.value,S=!1,x=Xt(v)||"";x==="radio"||x==="checkbox"?S=v.checked:(c[w.toLowerCase()]||c[x])&&(y=Yt({element:v,maskInputOptions:c,tagName:w,type:x,value:y,maskInputFn:a})),f(v,o?{text:y,isChecked:S,userTriggered:C}:{text:y,isChecked:S});let M=v.name;x==="radio"&&M&&S&&t.querySelectorAll(`input[type="radio"][name="${M}"]`).forEach(T=>{if(T!==v){let I=T.value;f(T,o?{text:I,isChecked:!S,userTriggered:!1}:{text:I,isChecked:!S})}})}function f(b,v){let C=ko.get(b);if(!C||C.text!==v.text||C.isChecked!==v.isChecked){ko.set(b,v);let w=r.getId(b);F(e)({...v,id:w})}}let m=(p.input==="last"?["change"]:["input","change"]).map(b=>se(b,F(h),t)),d=t.defaultView;if(!d)return()=>{m.forEach(b=>b())};let g=d.Object.getOwnPropertyDescriptor(d.HTMLInputElement.prototype,"value"),E=[[d.HTMLInputElement.prototype,"value"],[d.HTMLInputElement.prototype,"checked"],[d.HTMLSelectElement.prototype,"value"],[d.HTMLTextAreaElement.prototype,"value"],[d.HTMLSelectElement.prototype,"selectedIndex"],[d.HTMLOptionElement.prototype,"selected"]];return g&&g.set&&m.push(...E.map(b=>dr(b[0],b[1],{set(){F(h)({target:this,isTrusted:!1})}},!1,d))),F(()=>{m.forEach(b=>b())})}function Zt(e){let t=[];function r(i,n){if(qt("CSSGroupingRule")&&i.parentRule instanceof CSSGroupingRule||qt("CSSMediaRule")&&i.parentRule instanceof CSSMediaRule||qt("CSSSupportsRule")&&i.parentRule instanceof CSSSupportsRule||qt("CSSConditionRule")&&i.parentRule instanceof CSSConditionRule){let u=Array.from(i.parentRule.cssRules).indexOf(i);return n.unshift(u),r(i.parentRule,n)}else if(i.parentStyleSheet){let u=Array.from(i.parentStyleSheet.cssRules).indexOf(i);n.unshift(u)}return n}return r(e,t)}function Ie(e,t,r){let i,n;return e?(e.ownerNode?i=t.getId(e.ownerNode):n=r.getId(e),{styleId:n,id:i}):{}}function Bf({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:i}){if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return()=>{};let n=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=new Proxy(n,{apply:F((o,h,f)=>{let[s,m]=f,{id:d,styleId:g}=Ie(h,t,r.styleMirror);return(d&&d!==-1||g&&g!==-1)&&e({id:d,styleId:g,adds:[{rule:s,index:m}]}),o.apply(h,f)})}),i.CSSStyleSheet.prototype.addRule=function(o,h,f=this.cssRules.length){let s=`${o} { ${h} }`;return i.CSSStyleSheet.prototype.insertRule.apply(this,[s,f])};let l=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=new Proxy(l,{apply:F((o,h,f)=>{let[s]=f,{id:m,styleId:d}=Ie(h,t,r.styleMirror);return(m&&m!==-1||d&&d!==-1)&&e({id:m,styleId:d,removes:[{index:s}]}),o.apply(h,f)})}),i.CSSStyleSheet.prototype.removeRule=function(o){return i.CSSStyleSheet.prototype.deleteRule.apply(this,[o])};let u;i.CSSStyleSheet.prototype.replace&&(u=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(u,{apply:F((o,h,f)=>{let[s]=f,{id:m,styleId:d}=Ie(h,t,r.styleMirror);return(m&&m!==-1||d&&d!==-1)&&e({id:m,styleId:d,replace:s}),o.apply(h,f)})}));let c;i.CSSStyleSheet.prototype.replaceSync&&(c=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:F((o,h,f)=>{let[s]=f,{id:m,styleId:d}=Ie(h,t,r.styleMirror);return(m&&m!==-1||d&&d!==-1)&&e({id:m,styleId:d,replaceSync:s}),o.apply(h,f)})}));let a={};jt("CSSGroupingRule")?a.CSSGroupingRule=i.CSSGroupingRule:(jt("CSSMediaRule")&&(a.CSSMediaRule=i.CSSMediaRule),jt("CSSConditionRule")&&(a.CSSConditionRule=i.CSSConditionRule),jt("CSSSupportsRule")&&(a.CSSSupportsRule=i.CSSSupportsRule));let p={};return Object.entries(a).forEach(([o,h])=>{p[o]={insertRule:h.prototype.insertRule,deleteRule:h.prototype.deleteRule},h.prototype.insertRule=new Proxy(p[o].insertRule,{apply:F((f,s,m)=>{let[d,g]=m,{id:E,styleId:b}=Ie(s.parentStyleSheet,t,r.styleMirror);return(E&&E!==-1||b&&b!==-1)&&e({id:E,styleId:b,adds:[{rule:d,index:[...Zt(s),g||0]}]}),f.apply(s,m)})}),h.prototype.deleteRule=new Proxy(p[o].deleteRule,{apply:F((f,s,m)=>{let[d]=m,{id:g,styleId:E}=Ie(s.parentStyleSheet,t,r.styleMirror);return(g&&g!==-1||E&&E!==-1)&&e({id:g,styleId:E,removes:[{index:[...Zt(s),d]}]}),f.apply(s,m)})})}),F(()=>{i.CSSStyleSheet.prototype.insertRule=n,i.CSSStyleSheet.prototype.deleteRule=l,u&&(i.CSSStyleSheet.prototype.replace=u),c&&(i.CSSStyleSheet.prototype.replaceSync=c),Object.entries(a).forEach(([o,h])=>{h.prototype.insertRule=p[o].insertRule,h.prototype.deleteRule=p[o].deleteRule})})}function xa({mirror:e,stylesheetManager:t},r){var i,n,l;let u=null;r.nodeName==="#document"?u=e.getId(r):u=e.getId(D.host(r));let c=r.nodeName==="#document"?(i=r.defaultView)==null?void 0:i.Document:(l=(n=r.ownerDocument)==null?void 0:n.defaultView)==null?void 0:l.ShadowRoot,a=c?.prototype?Object.getOwnPropertyDescriptor(c?.prototype,"adoptedStyleSheets"):void 0;return u===null||u===-1||!c||!a?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){var p;return(p=a.get)==null?void 0:p.call(this)},set(p){var o;let h=(o=a.set)==null?void 0:o.call(this,p);if(u!==null&&u!==-1)try{t.adoptStyleSheets(p,u)}catch{}return h}}),F(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function $f({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:i},{win:n}){let l=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(l,{apply:F((c,a,p)=>{var o;let[h,f,s]=p;if(r.has(h))return l.apply(a,[h,f,s]);let{id:m,styleId:d}=Ie((o=a.parentRule)==null?void 0:o.parentStyleSheet,t,i.styleMirror);return(m&&m!==-1||d&&d!==-1)&&e({id:m,styleId:d,set:{property:h,value:f,priority:s},index:Zt(a.parentRule)}),c.apply(a,p)})});let u=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:F((c,a,p)=>{var o;let[h]=p;if(r.has(h))return u.apply(a,[h]);let{id:f,styleId:s}=Ie((o=a.parentRule)==null?void 0:o.parentStyleSheet,t,i.styleMirror);return(f&&f!==-1||s&&s!==-1)&&e({id:f,styleId:s,remove:{property:h},index:Zt(a.parentRule)}),c.apply(a,p)})}),F(()=>{n.CSSStyleDeclaration.prototype.setProperty=l,n.CSSStyleDeclaration.prototype.removeProperty=u})}function Wf({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:i,sampling:n,doc:l}){let u=F(a=>bt(F(p=>{let o=St(p);if(!o||oe(o,t,r,!0))return;let{currentTime:h,volume:f,muted:s,playbackRate:m,loop:d}=o;e({type:a,id:i.getId(o),currentTime:h,volume:f,muted:s,playbackRate:m,loop:d})}),n.media||500)),c=[se("play",u(Je.Play),l),se("pause",u(Je.Pause),l),se("seeked",u(Je.Seeked),l),se("volumechange",u(Je.VolumeChange),l),se("ratechange",u(Je.RateChange),l)];return F(()=>{c.forEach(a=>a())})}function zf({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let i=[],n=new WeakMap,l=r.FontFace;r.FontFace=function(a,p,o){let h=new l(a,p,o);return n.set(h,{family:a,buffer:typeof p!="string",descriptors:o,fontSource:typeof p=="string"?p:JSON.stringify(Array.from(new Uint8Array(p)))}),h};let u=We(t.fonts,"add",function(c){return function(a){return setTimeout(F(()=>{let p=n.get(a);p&&(e(p),n.delete(a))}),0),c.apply(this,[a])}});return i.push(()=>{r.FontFace=l}),i.push(u),F(()=>{i.forEach(c=>c())})}function qf(e){let{doc:t,mirror:r,blockClass:i,blockSelector:n,selectionCb:l}=e,u=!0,c=F(()=>{let a=t.getSelection();if(!a||u&&a?.isCollapsed)return;u=a.isCollapsed||!1;let p=[],o=a.rangeCount||0;for(let h=0;h<o;h++){let f=a.getRangeAt(h),{startContainer:s,startOffset:m,endContainer:d,endOffset:g}=f;oe(s,i,n,!0)||oe(d,i,n,!0)||p.push({start:r.getId(s),startOffset:m,end:r.getId(d),endOffset:g})}l({ranges:p})});return c(),se("selectionchange",c)}function jf({doc:e,customElementCb:t}){let r=e.defaultView;return!r||!r.customElements?()=>{}:We(r.customElements,"define",function(n){return function(l,u,c){try{t({define:{name:l}})}catch{console.warn(`Custom element callback failed for ${l}`)}return n.apply(this,[l,u,c])}})}function Vf(e,t){let{mutationCb:r,mousemoveCb:i,mouseInteractionCb:n,scrollCb:l,viewportResizeCb:u,inputCb:c,mediaInteractionCb:a,styleSheetRuleCb:p,styleDeclarationCb:o,canvasMutationCb:h,fontCb:f,selectionCb:s,customElementCb:m}=e;e.mutationCb=(...d)=>{t.mutation&&t.mutation(...d),r(...d)},e.mousemoveCb=(...d)=>{t.mousemove&&t.mousemove(...d),i(...d)},e.mouseInteractionCb=(...d)=>{t.mouseInteraction&&t.mouseInteraction(...d),n(...d)},e.scrollCb=(...d)=>{t.scroll&&t.scroll(...d),l(...d)},e.viewportResizeCb=(...d)=>{t.viewportResize&&t.viewportResize(...d),u(...d)},e.inputCb=(...d)=>{t.input&&t.input(...d),c(...d)},e.mediaInteractionCb=(...d)=>{t.mediaInteaction&&t.mediaInteaction(...d),a(...d)},e.styleSheetRuleCb=(...d)=>{t.styleSheetRule&&t.styleSheetRule(...d),p(...d)},e.styleDeclarationCb=(...d)=>{t.styleDeclaration&&t.styleDeclaration(...d),o(...d)},e.canvasMutationCb=(...d)=>{t.canvasMutation&&t.canvasMutation(...d),h(...d)},e.fontCb=(...d)=>{t.font&&t.font(...d),f(...d)},e.selectionCb=(...d)=>{t.selection&&t.selection(...d),s(...d)},e.customElementCb=(...d)=>{t.customElement&&t.customElement(...d),m(...d)}}function Hf(e,t={}){let r=e.doc.defaultView;if(!r)return()=>{};Vf(e,t);let i,n=()=>{};e.recordDOM&&([i,n]=Ea(e,e.doc));let l=_f(e),u=Lf(e),c=Ca(e),a=Pf(e,{win:r}),p=Uf(e),o=Wf(e),h=()=>{},f=()=>{},s=()=>{},m=()=>{};e.recordDOM&&(h=Bf(e,{win:r}),f=xa(e,e.doc),s=$f(e,{win:r}),e.collectFonts&&(m=zf(e)));let d=qf(e),g=jf(e),E=[];for(let b of e.plugins)E.push(b.observer(b.callback,r,b.options));return F(()=>{Ue.forEach(b=>b.reset()),i?.disconnect(),n(),l(),u(),c(),a(),p(),o(),h(),f(),s(),m(),d(),g(),E.forEach(b=>b())})}function qt(e){return typeof window[e]<"u"}function jt(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var er=class{constructor(t){O(this,"iframeIdToRemoteIdMap",new WeakMap),O(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=t}getId(t,r,i,n){let l=i||this.getIdToRemoteIdMap(t),u=n||this.getRemoteIdToIdMap(t),c=l.get(r);return c||(c=this.generateIdFn(),l.set(r,c),u.set(c,r)),c}getIds(t,r){let i=this.getIdToRemoteIdMap(t),n=this.getRemoteIdToIdMap(t);return r.map(l=>this.getId(t,l,i,n))}getRemoteId(t,r,i){let n=i||this.getRemoteIdToIdMap(t);if(typeof r!="number")return r;let l=n.get(r);return l||-1}getRemoteIds(t,r){let i=this.getRemoteIdToIdMap(t);return r.map(n=>this.getRemoteId(t,n,i))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let r=this.iframeIdToRemoteIdMap.get(t);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(t,r)),r}getRemoteIdToIdMap(t){let r=this.iframeRemoteIdToIdMap.get(t);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(t,r)),r}},li=class{constructor(t){O(this,"iframes",new WeakMap),O(this,"crossOriginIframeMap",new WeakMap),O(this,"crossOriginIframeMirror",new er(qo)),O(this,"crossOriginIframeStyleMirror"),O(this,"crossOriginIframeRootIdMap",new WeakMap),O(this,"mirror"),O(this,"mutationCb"),O(this,"wrappedEmit"),O(this,"loadListener"),O(this,"stylesheetManager"),O(this,"recordCrossOriginIframes"),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new er(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,r){var i,n;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((i=t.contentWindow)==null||i.addEventListener("message",this.handleMessage.bind(this))),(n=this.loadListener)==null||n.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){let r=t;if(r.data.type!=="rrweb"||r.origin!==r.data.origin||!t.source)return;let n=this.crossOriginIframeMap.get(t.source);if(!n)return;let l=this.transformCrossOriginEvent(n,r.data.event);l&&this.wrappedEmit(l,r.data.isCheckout)}transformCrossOriginEvent(t,r){var i;switch(r.type){case _.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(r.data.node,t);let n=r.data.node.id;return this.crossOriginIframeRootIdMap.set(t,n),this.patchRootIdOnNode(r.data.node,n),{timestamp:r.timestamp,type:_.IncrementalSnapshot,data:{source:L.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case _.Meta:case _.Load:case _.DomContentLoaded:return!1;case _.Plugin:return r;case _.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case _.IncrementalSnapshot:switch(r.data.source){case L.Mutation:return r.data.adds.forEach(n=>{this.replaceIds(n,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(n.node,t);let l=this.crossOriginIframeRootIdMap.get(t);l&&this.patchRootIdOnNode(n.node,l)}),r.data.removes.forEach(n=>{this.replaceIds(n,t,["parentId","id"])}),r.data.attributes.forEach(n=>{this.replaceIds(n,t,["id"])}),r.data.texts.forEach(n=>{this.replaceIds(n,t,["id"])}),r;case L.Drag:case L.TouchMove:case L.MouseMove:return r.data.positions.forEach(n=>{this.replaceIds(n,t,["id"])}),r;case L.ViewportResize:return!1;case L.MediaInteraction:case L.MouseInteraction:case L.Scroll:case L.CanvasMutation:case L.Input:return this.replaceIds(r.data,t,["id"]),r;case L.StyleSheetRule:case L.StyleDeclaration:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleId"]),r;case L.Font:return r;case L.Selection:return r.data.ranges.forEach(n=>{this.replaceIds(n,t,["start","end"])}),r;case L.AdoptedStyleSheet:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleIds"]),(i=r.data.styles)==null||i.forEach(n=>{this.replaceStyleIds(n,t,["styleId"])}),r}}return!1}replace(t,r,i,n){for(let l of n)!Array.isArray(r[l])&&typeof r[l]!="number"||(Array.isArray(r[l])?r[l]=t.getIds(i,r[l]):r[l]=t.getId(i,r[l]));return r}replaceIds(t,r,i){return this.replace(this.crossOriginIframeMirror,t,r,i)}replaceStyleIds(t,r,i){return this.replace(this.crossOriginIframeStyleMirror,t,r,i)}replaceIdOnNode(t,r){this.replaceIds(t,r,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(i=>{this.replaceIdOnNode(i,r)})}patchRootIdOnNode(t,r){t.type!==va.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(i=>{this.patchRootIdOnNode(i,r)})}},ui=class{constructor(t){O(this,"shadowDoms",new WeakSet),O(this,"mutationCb"),O(this,"scrollCb"),O(this,"bypassOptions"),O(this,"mirror"),O(this,"restoreHandlers",[]),this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,r){if(!mt(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);let[i]=Ea({...this.bypassOptions,doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>i.disconnect()),this.restoreHandlers.push(Ca({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(D.host(t))),this.restoreHandlers.push(xa({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,r){let i=this;this.restoreHandlers.push(We(t.prototype,"attachShadow",function(n){return function(l){let u=n.call(this,l),c=D.shadowRoot(this);return c&&wa(this)&&i.addShadowRoot(c,r),u}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}},Ze="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Gf=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(ht=0;ht<Ze.length;ht++)Gf[Ze.charCodeAt(ht)]=ht;var ht,Yf=function(e){var t=new Uint8Array(e),r,i=t.length,n="";for(r=0;r<i;r+=3)n+=Ze[t[r]>>2],n+=Ze[(t[r]&3)<<4|t[r+1]>>4],n+=Ze[(t[r+1]&15)<<2|t[r+2]>>6],n+=Ze[t[r+2]&63];return i%3===2?n=n.substring(0,n.length-1)+"=":i%3===1&&(n=n.substring(0,n.length-2)+"=="),n};var Io=new Map;function Xf(e,t){let r=Io.get(e);return r||(r=new Map,Io.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}var Ra=(e,t,r)=>{if(!e||!(Ma(e,t)||typeof e=="object"))return;let i=e.constructor.name,n=Xf(r,i),l=n.indexOf(e);return l===-1&&(l=n.length,n.push(e)),l};function Vt(e,t,r){if(e instanceof Array)return e.map(i=>Vt(i,t,r));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){let i=e.constructor.name,n=Yf(e);return{rr_type:i,base64:n}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Vt(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){let i=e.constructor.name,{src:n}=e;return{rr_type:i,src:n}}else if(e instanceof HTMLCanvasElement){let i="HTMLImageElement",n=e.toDataURL();return{rr_type:i,src:n}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Vt(e.data,t,r),e.width,e.height]};if(Ma(e,t)||typeof e=="object"){let i=e.constructor.name,n=Ra(e,t,r);return{rr_type:i,index:n}}}}return e}var Ta=(e,t,r)=>e.map(i=>Vt(i,t,r)),Ma=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(n=>typeof t[n]=="function").find(n=>e instanceof t[n]);function Jf(e,t,r,i){let n=[],l=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(let u of l)try{if(typeof t.CanvasRenderingContext2D.prototype[u]!="function")continue;let c=We(t.CanvasRenderingContext2D.prototype,u,function(a){return function(...p){return oe(this.canvas,r,i,!0)||setTimeout(()=>{let o=Ta(p,t,this);e(this.canvas,{type:et["2D"],property:u,args:o})},0),a.apply(this,p)}});n.push(c)}catch{let c=dr(t.CanvasRenderingContext2D.prototype,u,{set(a){e(this.canvas,{type:et["2D"],property:u,args:[a],setter:!0})}});n.push(c)}return()=>{n.forEach(u=>u())}}function Kf(e){return e==="experimental-webgl"?"webgl":e}function Ao(e,t,r,i){let n=[];try{let l=We(e.HTMLCanvasElement.prototype,"getContext",function(u){return function(c,...a){if(!oe(this,t,r,!0)){let p=Kf(c);if("__context"in this||(this.__context=p),i&&["webgl","webgl2"].includes(p))if(a[0]&&typeof a[0]=="object"){let o=a[0];o.preserveDrawingBuffer||(o.preserveDrawingBuffer=!0)}else a.splice(0,1,{preserveDrawingBuffer:!0})}return u.apply(this,[c,...a])}});n.push(l)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{n.forEach(l=>l())}}function Do(e,t,r,i,n,l){let u=[],c=Object.getOwnPropertyNames(e);for(let a of c)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))try{if(typeof e[a]!="function")continue;let p=We(e,a,function(o){return function(...h){let f=o.apply(this,h);if(Ra(f,l,this),"tagName"in this.canvas&&!oe(this.canvas,i,n,!0)){let s=Ta(h,l,this),m={type:t,property:a,args:s};r(this.canvas,m)}return f}});u.push(p)}catch{let p=dr(e,a,{set(o){r(this.canvas,{type:t,property:a,args:[o],setter:!0})}});u.push(p)}return u}function Qf(e,t,r,i){let n=[];return typeof t.WebGLRenderingContext<"u"&&n.push(...Do(t.WebGLRenderingContext.prototype,et.WebGL,e,r,i,t)),typeof t.WebGL2RenderingContext<"u"&&n.push(...Do(t.WebGL2RenderingContext.prototype,et.WebGL2,e,r,i,t)),()=>{n.forEach(l=>l())}}var Na=`(function() {
|
|
54
54
|
"use strict";
|
|
55
55
|
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
56
56
|
var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
|
|
@@ -125,9 +125,9 @@ or you can use record.mirror to access the mirror instance during recording.`,co
|
|
|
125
125
|
};
|
|
126
126
|
})();
|
|
127
127
|
//# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
|
|
128
|
-
`,bo=typeof self<"u"&&self.Blob&&new Blob([ha],{type:"text/javascript;charset=utf-8"});function Tf(e){let t;try{if(t=bo&&(self.URL||self.webkitURL).createObjectURL(bo),!t)throw"";let r=new Worker(t,{name:e?.name});return r.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),r}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(ha),{name:e?.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}var ti=class{constructor(t){O(this,"pendingCanvasMutations",new Map),O(this,"rafStamps",{latestId:0,invokeId:null}),O(this,"mirror"),O(this,"mutationCb"),O(this,"resetObservers"),O(this,"frozen",!1),O(this,"locked",!1),O(this,"processMutation",(l,p)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(l)||this.pendingCanvasMutations.set(l,[]),this.pendingCanvasMutations.get(l).push(p)});let{sampling:r="all",win:i,blockClass:n,blockSelector:a,recordCanvas:u,dataURLOptions:f}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,u&&r==="all"&&this.initCanvasMutationObserver(i,n,a),u&&typeof r=="number"&&this.initCanvasFPSObserver(r,i,n,a,{dataURLOptions:f})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(t,r,i,n,a){let u=go(r,i,n,!0),f=new Map,l=new Tf;l.onmessage=m=>{let{id:h}=m.data;if(f.set(h,!1),!("base64"in m.data))return;let{base64:g,type:C,width:b,height:v}=m.data;this.mutationCb({id:h,type:Ze["2D"],commands:[{property:"clearRect",args:[0,0,b,v]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:g}],type:C}]},0,0]}]})};let p=1e3/t,o=0,d,c=()=>{let m=[];return r.document.querySelectorAll("canvas").forEach(h=>{oe(h,i,n,!0)||m.push(h)}),m},s=m=>{if(o&&m-o<p){d=requestAnimationFrame(s);return}o=m,c().forEach(async h=>{var g;let C=this.mirror.getId(h);if(f.get(C)||h.width===0||h.height===0)return;if(f.set(C,!0),["webgl","webgl2"].includes(h.__context)){let v=h.getContext(h.__context);((g=v?.getContextAttributes())==null?void 0:g.preserveDrawingBuffer)===!1&&v.clear(v.COLOR_BUFFER_BIT)}let b=await createImageBitmap(h);l.postMessage({id:C,bitmap:b,width:h.width,height:h.height,dataURLOptions:a.dataURLOptions},[b])}),d=requestAnimationFrame(s)};d=requestAnimationFrame(s),this.resetObservers=()=>{u(),cancelAnimationFrame(d)}}initCanvasMutationObserver(t,r,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let n=go(t,r,i,!1),a=Ef(this.processMutation.bind(this),t,r,i),u=Rf(this.processMutation.bind(this),t,r,i);this.resetObservers=()=>{n(),a(),u()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let t=r=>{this.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,r)=>{let i=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,i)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,r){if(this.frozen||this.locked)return;let i=this.pendingCanvasMutations.get(t);if(!i||r===-1)return;let n=i.map(u=>{let{type:f,...l}=u;return l}),{type:a}=i[0];this.mutationCb({id:r,type:a,commands:n}),this.pendingCanvasMutations.delete(t)}},ri=class{constructor(t){O(this,"trackedLinkElements",new WeakSet),O(this,"mutationCb"),O(this,"adoptedStyleSheetCb"),O(this,"styleMirror",new Jn),this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,r){if(t.length===0)return;let i={id:r,styleIds:[]},n=[];for(let a of t){let u;this.styleMirror.has(a)?u=this.styleMirror.getId(a):(u=this.styleMirror.add(a),n.push({styleId:u,rules:Array.from(a.rules||CSSRule,(f,l)=>({rule:xo(f,a.href),index:l}))})),i.styleIds.push(u)}n.length>0&&(i.styles=n),this.adoptedStyleSheetCb(i)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}},ni=class{constructor(){O(this,"nodeMap",new WeakMap),O(this,"active",!1)}inOtherBuffer(t,r){let i=this.nodeMap.get(t);return i&&Array.from(i).some(n=>n!==r)}add(t,r){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(r))}destroy(){}},J,$t,jn,Xt=!1;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=((Ki=e.contentWindow)==null?void 0:Ki.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}var we=_u();function he(e={}){let{emit:t,checkoutEveryNms:r,checkoutEveryNth:i,blockClass:n="rr-block",blockSelector:a=null,ignoreClass:u="rr-ignore",ignoreSelector:f=null,maskTextClass:l="rr-mask",maskTextSelector:p=null,inlineStylesheet:o=!0,maskAllInputs:d,maskInputOptions:c,slimDOMOptions:s,maskInputFn:m,maskTextFn:h,hooks:g,packFn:C,sampling:b={},dataURLOptions:v={},mousemoveWait:E,recordDOM:w=!0,recordCanvas:y=!1,recordCrossOriginIframes:S=!1,recordAfter:x=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:M=!1,collectFonts:T=!1,inlineImages:k=!1,plugins:I,keepIframeSrcFn:R=()=>!1,ignoreCSSAttributes:te=new Set([]),errorHandler:re}=e;sf(re);let U=S?window.parent===window:!0,P=!1;if(!U)try{window.parent.document&&(P=!1)}catch{P=!0}if(U&&!t)throw new Error("emit function is required");if(!U&&!P)return()=>{};E!==void 0&&b.mousemove===void 0&&(b.mousemove=E),we.reset();let j=d===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:c!==void 0?c:{password:!0},Q=ko(s);ef();let $,B=0,le=A=>{for(let Z of I||[])Z.eventProcessor&&(A=Z.eventProcessor(A));return C&&!P&&(A=C(A)),A};J=(A,Z)=>{var W;let X=A;if(X.timestamp=pt(),(W=Fe[0])!=null&&W.isFrozen()&&X.type!==_.FullSnapshot&&!(X.type===_.IncrementalSnapshot&&X.data.source===L.Mutation)&&Fe.forEach(ue=>ue.unfreeze()),U)t?.(le(X),Z);else if(P){let ue={type:"rrweb",event:le(X),origin:window.location.origin,isCheckout:Z};window.parent.postMessage(ue,"*")}if(X.type===_.FullSnapshot)$=X,B=0;else if(X.type===_.IncrementalSnapshot){if(X.data.source===L.Mutation&&X.data.isAttachIframe)return;B++;let ue=i&&B>=i,z=r&&X.timestamp-$.timestamp>r;(ue||z)&&$t(!0)}};let N=A=>{J({type:_.IncrementalSnapshot,data:{source:L.Mutation,...A}})},Ee=A=>J({type:_.IncrementalSnapshot,data:{source:L.Scroll,...A}}),pe=A=>J({type:_.IncrementalSnapshot,data:{source:L.CanvasMutation,...A}}),ut=A=>J({type:_.IncrementalSnapshot,data:{source:L.AdoptedStyleSheet,...A}}),ie=new ri({mutationCb:N,adoptedStyleSheetCb:ut}),be=new Zn({mirror:we,mutationCb:N,stylesheetManager:ie,recordCrossOriginIframes:S,wrappedEmit:J});for(let A of I||[])A.getMirror&&A.getMirror({nodeMirror:we,crossOriginIframeMirror:be.crossOriginIframeMirror,crossOriginIframeStyleMirror:be.crossOriginIframeStyleMirror});let Pe=new ni;jn=new ti({recordCanvas:y,mutationCb:pe,win:window,blockClass:n,blockSelector:a,mirror:we,sampling:b.canvas,dataURLOptions:v});let Oe=new ei({mutationCb:N,scrollCb:Ee,bypassOptions:{blockClass:n,blockSelector:a,maskTextClass:l,maskTextSelector:p,inlineStylesheet:o,maskInputOptions:j,dataURLOptions:v,maskTextFn:h,maskInputFn:m,recordCanvas:y,inlineImages:k,sampling:b,slimDOMOptions:Q,iframeManager:be,stylesheetManager:ie,canvasManager:jn,keepIframeSrcFn:R,processedNodeManager:Pe},mirror:we});$t=(A=!1)=>{if(!w)return;J({type:_.Meta,data:{href:window.location.href,width:Ko(),height:Jo()}},A),ie.reset(),Oe.init(),Fe.forEach(W=>W.lock());let Z=oc(document,{mirror:we,blockClass:n,blockSelector:a,maskTextClass:l,maskTextSelector:p,inlineStylesheet:o,maskAllInputs:j,maskTextFn:h,maskInputFn:m,slimDOM:Q,dataURLOptions:v,recordCanvas:y,inlineImages:k,onSerialize:W=>{ea(W,we)&&be.addIframe(W),ta(W,we)&&ie.trackLinkElement(W),Xn(W)&&Oe.addShadowRoot(D.shadowRoot(W),document)},onIframeLoad:(W,X)=>{be.attachIframe(W,X),Oe.observeAttachShadow(W)},onStylesheetLoad:(W,X)=>{ie.attachLinkElement(W,X)},keepIframeSrcFn:R});if(!Z)return console.warn("Failed to snapshot the document");J({type:_.FullSnapshot,data:{node:Z,initialOffset:Xo(window)}},A),Fe.forEach(W=>W.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ie.adoptStyleSheets(document.adoptedStyleSheets,we.getId(document))};try{let A=[],Z=X=>{var ue;return F(wf)({mutationCb:N,mousemoveCb:(z,Ur)=>J({type:_.IncrementalSnapshot,data:{source:Ur,positions:z}}),mouseInteractionCb:z=>J({type:_.IncrementalSnapshot,data:{source:L.MouseInteraction,...z}}),scrollCb:Ee,viewportResizeCb:z=>J({type:_.IncrementalSnapshot,data:{source:L.ViewportResize,...z}}),inputCb:z=>J({type:_.IncrementalSnapshot,data:{source:L.Input,...z}}),mediaInteractionCb:z=>J({type:_.IncrementalSnapshot,data:{source:L.MediaInteraction,...z}}),styleSheetRuleCb:z=>J({type:_.IncrementalSnapshot,data:{source:L.StyleSheetRule,...z}}),styleDeclarationCb:z=>J({type:_.IncrementalSnapshot,data:{source:L.StyleDeclaration,...z}}),canvasMutationCb:pe,fontCb:z=>J({type:_.IncrementalSnapshot,data:{source:L.Font,...z}}),selectionCb:z=>{J({type:_.IncrementalSnapshot,data:{source:L.Selection,...z}})},customElementCb:z=>{J({type:_.IncrementalSnapshot,data:{source:L.CustomElement,...z}})},blockClass:n,ignoreClass:u,ignoreSelector:f,maskTextClass:l,maskTextSelector:p,maskInputOptions:j,inlineStylesheet:o,sampling:b,recordDOM:w,recordCanvas:y,inlineImages:k,userTriggeredOnInput:M,collectFonts:T,doc:X,maskInputFn:m,maskTextFn:h,keepIframeSrcFn:R,blockSelector:a,slimDOMOptions:Q,dataURLOptions:v,mirror:we,iframeManager:be,stylesheetManager:ie,shadowDomManager:Oe,processedNodeManager:Pe,canvasManager:jn,ignoreCSSAttributes:te,plugins:((ue=I?.filter(z=>z.observer))==null?void 0:ue.map(z=>({observer:z.observer,options:z.options,callback:Ur=>J({type:_.Plugin,data:{plugin:z.name,payload:Ur}})})))||[]},g)};be.addLoadListener(X=>{try{A.push(Z(X.contentDocument))}catch(ue){console.warn(ue)}});let W=()=>{$t(),A.push(Z(document)),Xt=!0};return["interactive","complete"].includes(document.readyState)?W():(A.push(se("DOMContentLoaded",()=>{J({type:_.DomContentLoaded,data:{}}),x==="DOMContentLoaded"&&W()})),A.push(se("load",()=>{J({type:_.Load,data:{}}),x==="load"&&W()},window))),()=>{A.forEach(X=>{try{X()}catch(ue){String(ue).toLowerCase().includes("cross-origin")||console.warn(ue)}}),Pe.destroy(),Xt=!1,of()}}catch(A){console.warn(A)}}he.addCustomEvent=(e,t)=>{if(!Xt)throw new Error("please add custom event after start recording");J({type:_.Custom,data:{tag:e,payload:t}})};he.freezePage=()=>{Fe.forEach(e=>e.freeze())};he.takeFullSnapshot=e=>{if(!Xt)throw new Error("please take full snapshot after start recording");$t(e)};he.mirror=we;var wo;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(wo||(wo={}));var Lh=5*1e3;var{addCustomEvent:Ph}=he,{freezePage:Fh}=he,{takeFullSnapshot:Uh}=he;var Mf=/card.?(num|exp|cvc|cvv|code)|cc.?(num|exp|csc|cvc|cvv)|^(cvc|cvv|csc)\d?$|security.?code|^exp(iry|iration)?.?(date|month|year)?$/i;function da(e){return(e.getAttribute("autocomplete")??"").toLowerCase().split(/\s+/).some(r=>r.startsWith("cc-"))?!0:[e.getAttribute("name"),e.getAttribute("id")].some(r=>!!r&&Mf.test(r))}function pa(e=window){if(e.parent===e||e.location.href==="about:blank")return!1;try{return e.parent.document,!1}catch{return!0}}var de={data:"__tabtape:data",flush:"__tabtape:flush",hello:"__tabtape:hello",control:"__tabtape:control",info:"__tabtape:info",infoReply:"__tabtape:info-reply",snapshot:"__tabtape:snapshot"},ma="tabtape.state",ar="/__tabtape/";function We(){try{return window[Symbol.for(ma)]}catch{return}}function ya(e){let t="",r=!1,i=null,n=f=>{try{e.emit(f)}catch{}};function a(f,l,p){let o=e.title(),d,c=()=>{},s=!1,m=()=>{s||(s=!0,i===m&&(i=null),c(),e.clearTimer(d),e.clearTimer(h),n({kind:f,url:l,title:e.title(),ts:p}))};i=m;let h=e.setTimer(m,2e3);try{c=e.watchTitle(()=>{s||e.title()===o||(e.clearTimer(d),d=e.setTimer(m,100))})}catch{}}let u=()=>i?.();return{reset(f){u(),t="",r=f},view(f,l=e.now()){let p=f==="push"||f==="replace"||f==="pop"||f==="hash";if(p&&r)return;p||(r=!1);let o=e.url();if(!(p&&o===t)){if(f==="replace"&&ga(o)===ga(t)){t=o;return}t=o,u(),p?a(f,o,l):n({kind:f,url:o,title:e.title(),ts:l})}},flush:u}}function ga(e){let t=e.search(/[?#]/);return t<0?e:e.slice(0,t)}var Ce=JSON.stringify,vt=JSON.parse,Nf=Object.prototype.toString,ze="********",Of=/passw(or)?d|^pwd$|^pass$/i,lr=/json|text\/|xml|javascript|ecmascript|graphql|x-www-form-urlencoded|csv|yaml/i,V=(e,t)=>e.length>t?e.slice(0,t-1)+"\u2026":e,K=e=>Math.round(e*10)/10;function Ae(e){return Of.test(e)}function De(e){try{return new URL(e,location.href).href}catch{return e}}function wa(e){let t=e,r="";for(let i of["currentSrc","src","href"]){let n=t[i];if(typeof n=="string"&&n){r=n;break}}if(!r){let i=e.getAttribute("src")||e.getAttribute("href");i&&(r=De(i))}return r?V(Y(r),1e3):""}function ur(e){let t=new URLSearchParams(e),r=!1;for(let i of new Set(t.keys()))Ae(i)&&(t.set(i,ze),r=!0);return r?t.toString():e}function Y(e){let t=e.indexOf("?");if(t<0)return e;let r=e.indexOf("#",t),i=e.slice(t+1,r<0?void 0:r),n=ur(i);return n===i?e:e.slice(0,t+1)+n+(r<0?"":e.slice(r))}function Si(e){let t=!1;if(Array.isArray(e))for(let r of e)t=Si(r)||t;else if(e&&typeof e=="object"){let r=e;for(let i of Object.keys(r)){let n=r[i];Ae(i)&&(typeof n=="string"||typeof n=="number")?(r[i]=ze,t=!0):t=Si(n)||t}}return t}var If=/^[\w.%[\]-]+=[^&]*(&[\w.%[\]-]+=[^&]*)*$/,kf=/multipart\/form-data/i,Af=/^--[^\r\n]{1,200}\r?\ncontent-disposition:\s*form-data/i;function cr(e,t=""){let r=e.trimStart();if(r.startsWith("{")||r.startsWith("["))try{let i=vt(e);return Si(i)?Ce(i):e}catch{return e}return kf.test(t)||Af.test(r)?Df(e,t):/x-www-form-urlencoded/i.test(t)||r.length<1e5&&If.test(r)?ur(e):e}function Df(e,t=""){let r=/boundary=(?:"([^"]+)"|([^;,\s]+))/i.exec(t),i=r?.[1]??r?.[2]??/^--([^\r\n]+)/.exec(e.trimStart())?.[1];if(!i)return e;let n=`--${i}`,a=e.split(n),u=!1;for(let f=1;f<a.length;f++){let l=a[f],p=/\r?\n\r?\n/.exec(l);if(!p)continue;let o=l.slice(0,p.index);if(/;\s*filename\*?=/i.test(o))continue;let d=/;\s*name="([^"]*)"/i.exec(o)?.[1]??/;\s*name=([^;\s]+)/i.exec(o)?.[1];if(d===void 0||!Ae(d))continue;let c=p.index+p[0].length,s=l.endsWith(`\r
|
|
129
|
-
`)?
|
|
130
|
-
`)?
|
|
131
|
-
`).filter((r,i)=>i>0&&!r.includes("chrome-extension://")&&!r.includes(
|
|
132
|
-
`),4e3):void 0}var Lf=["a","button","input","select","textarea","label","summary","option",'[role="button"]','[role="link"]','[role="menuitem"]','[role="tab"]','[role="checkbox"]','[role="radio"]','[role="switch"]','[role="option"]',"[onclick]","[data-testid]"].join(","),Pf=[["name","name"],["type","type"],["role","role"],["aria-label","ariaLabel"],["data-testid","testId"],["placeholder","placeholder"],["title","title"],["alt","alt"]],Ff=4,Sa=1e3,Uf=30,Ea=history.pushState,xa=history.replaceState,rt=()=>{},qe=!1,tt=[],Ca=0,fr=ya({emit:({kind:e,url:t,title:r,ts:i})=>{qe&&rt({name:"page_view",kind:e,url:t,title:r,referrer:e==="load"&&document.referrer?Y(document.referrer):void 0,viewport:{w:innerWidth,h:innerHeight}},i)},url:()=>Y(location.href),title:()=>document.title,now:()=>Date.now(),watchTitle:e=>{let t=new MutationObserver(e);return t.observe(document.head??document.documentElement,{subtree:!0,childList:!0,characterData:!0}),()=>t.disconnect()},setTimer:(e,t)=>setTimeout(e,t),clearTimer:e=>clearTimeout(e)});function Ra(e,t){if(rt=e,qe)return;qe=!0,document.addEventListener("click",Aa,!0),document.addEventListener("change",Da,!0),document.addEventListener("submit",_a,!0),addEventListener("popstate",Ia),addEventListener("hashchange",ka),history.pushState=Na,history.replaceState=Oa;let r=document.readyState==="loading";fr.reset(r),r?document.addEventListener("DOMContentLoaded",()=>_e(t),{once:!0}):_e(t)}function Ta(){qe&&(fr.flush(),qe=!1,document.removeEventListener("click",Aa,!0),document.removeEventListener("change",Da,!0),document.removeEventListener("submit",_a,!0),removeEventListener("popstate",Ia),removeEventListener("hashchange",ka),history.pushState===Na&&(history.pushState=Ea),history.replaceState===Oa&&(history.replaceState=xa))}function _e(e,t=Date.now()){qe&&fr.view(e,t)}function Ma(){qe&&fr.flush()}function Na(...e){Ea.apply(this,e),Ve(()=>_e("push"))}function Oa(...e){xa.apply(this,e),Ve(()=>_e("replace"))}var Ia=()=>Ve(()=>_e("pop")),ka=()=>Ve(()=>_e("hash"));function Aa(e){e.isTrusted&&Ve(()=>{let t=e.composedPath()[0];if(!t||t.nodeType!==1)return;let r=t.closest(Lf)??t,i=xi(r),n=Date.now(),a=Y(location.href),u=Math.round(e.clientX),f=Math.round(e.clientY);rt({name:"click",url:a,target:i,x:u,y:f},n),tt=tt.filter(l=>n-l.ts<Sa&&Math.hypot(l.x-u,l.y-f)<Uf),tt.push({ts:n,x:u,y:f}),tt.length>=Ff&&n>=Ca&&(rt({name:"rage_click",url:a,target:i,x:u,y:f,count:tt.length},n),Ca=n+Sa,tt=[])})}function Da(e){Ve(()=>{let t=e.composedPath()[0];if(!t||t.nodeType!==1)return;let r=t.tagName;if(r!=="INPUT"&&r!=="SELECT"&&r!=="TEXTAREA"||La(t))return;let i=(t.getAttribute("type")??"").toLowerCase(),n={name:"change",url:Y(location.href),target:xi(t)};Bf(t)?n.masked=!0:i==="checkbox"||i==="radio"?n.value=t.checked?"checked":"unchecked":i==="file"?n.value=Array.from(t.files??[],a=>a.name).join(", "):n.value=V(String(t.value??""),500),rt(n,Date.now())})}function _a(e){Ve(()=>{let t=e.target;if(!t||t.nodeType!==1)return;let r=t.getAttribute("action");rt({name:"submit",url:Y(location.href),target:xi(t),action:r?Y(De(r)):void 0,method:(t.getAttribute("method")??"get").toUpperCase()},Date.now())})}function La(e){return e.closest(".rr-block")!==null}function Bf(e){return(e.getAttribute("type")??"").toLowerCase()==="password"||e.hasAttribute("data-rr-is-password")||/password/i.test(e.getAttribute("autocomplete")??"")}function xi(e){let t={tag:e.tagName.toLowerCase(),selector:zf(e)};e.id&&(t.id=V(e.id,100));let r=e.getAttribute("class")?.trim();r&&(t.classes=V(r.split(/\s+/).slice(0,6).join(" "),200));let i=La(e)?"":$f(e);i&&(t.text=i);for(let[n,a]of Pf){let u=e.getAttribute(n);u&&(t[a]=V(u,200))}if(t.tag==="a"){let n=e.getAttribute("href");n&&(t.href=Y(De(n)))}return t}function $f(e){let t=e.tagName;if(t==="INPUT"){let n=(e.getAttribute("type")??"").toLowerCase();return n==="button"||n==="submit"||n==="reset"?V(e.value,120):""}if(t==="SELECT"||t==="TEXTAREA")return"";let r="",i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT);for(let n=i.nextNode();n&&r.length<200;n=i.nextNode()){let a=n.parentElement?.tagName;a==="SCRIPT"||a==="STYLE"||(r+=" "+(n.nodeValue??""))}return V(r.replace(/\s+/g," ").trim(),120)}var Wf=/^(css|sc|jsx|emotion)-|[0-9a-f]{5,}|__/i;function zf(e){let t=[];for(let r=e;r&&r.nodeType===1&&t.length<5;r=r.parentElement){let i=r.tagName.toLowerCase();if(r.id&&/^[A-Za-z][\w-]*$/.test(r.id)){t.unshift(`${i}#${r.id}`);break}let n=r.getAttribute("data-testid");if(n){t.unshift(`${i}[data-testid="${n.replace(/"/g,'\\"')}"]`);break}let a=i,u=(r.getAttribute("class")??"").trim().split(/\s+/).filter(l=>l&&!Wf.test(l)).slice(0,2);u.length&&(a+="."+u.map(l=>CSS.escape(l)).join("."));let f=r.parentElement;if(f){let l=Array.from(f.children).filter(p=>p.tagName===r.tagName);l.length>1&&(a+=`:nth-of-type(${l.indexOf(r)+1})`)}t.unshift(a)}return t.join(" > ")}function Ve(e){try{e()}catch{}}var Vf=["log","info","warn","error","debug","trace"],Ct=()=>{},mr=!1,hr=!1,Ri=!1,dr=new Map,pr=new Map;function Fa(e){Ct=e}function Ti(e){mr=e}function Ua(){if(hr)return;hr=!0;let e=console;for(let r of Vf){let i=e[r];if(typeof i!="function")continue;let n=function(...a){return Pa(r,a),i.apply(this,a)};dr.set(r,i),pr.set(r,n),e[r]=n}let t=e.assert;if(typeof t=="function"){let r=function(...i){return i[0]||Pa("error",["Assertion failed:",...i.slice(1)]),t.apply(this,i)};dr.set("assert",t),pr.set("assert",r),e.assert=r}addEventListener("error",$a,!0),addEventListener("unhandledrejection",Wa)}function Ba(){if(!hr)return;hr=!1;let e=console;for(let[t,r]of pr)e[t]===r&&(e[t]=dr.get(t));pr.clear(),dr.clear(),removeEventListener("error",$a,!0),removeEventListener("unhandledrejection",Wa)}function Pa(e,t){if(!(!mr||Ri)){Ri=!0;try{let r=t.map(a=>St(a)),i={level:e,source:"console",text:Ei(t,r),args:r},n=t.find(et);n?.stack?i.stack=V(String(n.stack),4e3):e==="trace"&&(i.stack=va(new Error().stack)),Ct(i,Date.now())}catch{}finally{Ri=!1}}}function $a(e){if(mr)try{if(e instanceof ErrorEvent){let r={level:"error",source:"uncaught",text:e.message||String(e.error),url:e.filename||void 0,line:e.lineno||void 0,col:e.colno||void 0};et(e.error)&&e.error.stack&&(r.stack=V(String(e.error.stack),4e3)),Ct(r,Date.now());return}let t=e.target;if(t&&t.nodeType===1){let r=wa(t);Ct({level:"error",source:"resource",text:`Failed to load <${t.tagName.toLowerCase()}>${r?` ${r}`:""}`,url:r||void 0},Date.now())}}catch{}}function Wa(e){if(mr)try{let t=e.reason,r=St(t),i={level:"error",source:"unhandledrejection",text:`Uncaught (in promise) ${Ei([t],[r])}`,args:[r]};et(t)&&t.stack&&(i.stack=V(String(t.stack),4e3)),Ct(i,Date.now())}catch{}}var Hf="data-tabtape-sandbox";function za(e){return!!e&&("srcdoc"in e||"sandbox"in e)}function qa(e){let{srcdoc:t,sandbox:r,...i}=e;return r!==void 0&&(i[Hf]=r),i}function Mi(e){let t=e.attributes,r=e.childNodes,i=!1;if(za(t)&&(t=qa(t),i=!0),r){let n=r.map(Mi);n.some((a,u)=>a!==r[u])&&(r=n,i=!0)}return i?{...e,attributes:t,childNodes:r}:e}var Gf=2,Yf=3,Xf=0;function Jf(e){let t=e,r=t.data;if(!r)return e;if(t.type===Gf&&r.node){let i=Mi(r.node);return i===r.node?e:{...t,data:{...r,node:i}}}if(t.type===Yf&&r.source===Xf){let i=!1,n=r.adds?.map(u=>{let f=Mi(u.node);return f===u.node?u:(i=!0,{...u,node:f})}),a=r.attributes?.map(u=>za(u.attributes)?(i=!0,{...u,attributes:qa(u.attributes)}):u);return i?{...t,data:{...r,adds:n,attributes:a}}:e}return e}var Va={name:"tabtape/iframe-attrs",eventProcessor:Jf,options:{}};function Ni(e){return{recordAfter:"DOMContentLoaded",maskAllInputs:!1,maskInputOptions:{password:!0},inlineStylesheet:!0,collectFonts:!1,recordCanvas:!1,recordCrossOriginIframes:!0,sampling:{mousemove:50,scroll:150,media:800,input:"last"},slimDOMOptions:{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:!0,headMetaDescKeywords:!0},checkoutEveryNms:e.checkoutEveryNms>0?e.checkoutEveryNms:void 0,errorHandler:()=>!0,plugins:[Va]}}function ja(e){return{...Ni(e),checkoutEveryNms:void 0,maskInputOptions:{password:!0,text:!0,tel:!0,number:!0},maskInputFn:(t,r)=>r?.type==="password"||r&&da(r)?"*".repeat(t.length):t}}function Ha(e){let t,r=EventTarget.prototype.dispatchEvent,i=()=>r.call(document,new CustomEvent(de.hello));function n(){try{he.takeFullSnapshot(!0)}catch{}}function a(){try{t?.()}catch{}t=void 0}document.addEventListener(de.control,u=>{let f;try{f=vt(String(u.detail))}catch{return}f.cmd==="start"?t||(t=he(ja(f.options))??(()=>{})):f.cmd==="checkout"?t&&n():a()}),addEventListener("pageshow",u=>{u.persisted&&t&&n()}),Object.defineProperty(window,e,{value:{hello:i,get active(){return t!==void 0}},configurable:!0}),i()}var Kf=5e3,Qf=setInterval.bind(globalThis),Zf=clearInterval.bind(globalThis),Ga=()=>{},nt;function Ya(e){Ga=e,nt===void 0&&Ka()&&(gr(),nt=Qf(gr,Kf))}function Xa(){nt!==void 0&&gr()}function Ja(){nt!==void 0&&(gr(),Zf(nt),nt=void 0)}function gr(){try{let e=Ka();if(!e)return;Ga(th(e,eh(),Y(location.href)),Date.now())}catch{}}function Ka(){try{let e=performance.memory;return e&&typeof e.usedJSHeapSize=="number"?e:void 0}catch{return}}function eh(){try{return document.getElementsByTagName("*").length}catch{return}}function th(e,t,r){let i={kind:"memory",used:Oi(e.usedJSHeapSize),total:Oi(e.totalJSHeapSize),limit:Oi(e.jsHeapSizeLimit),url:r};return t!==void 0&&(i.nodes=t),i}var Oi=e=>Number.isFinite(e)&&e>0?Math.round(e):0;var el=15e3,tl=new Set([101,204,205,304]),ki=window.fetch,ge=XMLHttpRequest.prototype,rl=ge.open,nl=ge.send,il=ge.setRequestHeader,yr=Navigator.prototype,Di=yr.sendBeacon,Sr=()=>{},ye={captureBodies:!0,maxBodyChars:1e6},Ne=!1,br=!1,sl=0,xt=!1,nh=0,je,Rt=new Map,wr=new WeakMap,Cr=()=>`${Date.now().toString(36)}-${(++nh).toString(36)}`;function _i(e,t){ye=e,Sr=t}function Er(e){Ne=e}function ol(e=!1){br||(br=!0,sl=performance.now(),xt=e,window.fetch=ll,ge.open=cl,ge.send=hl,ge.setRequestHeader=fl,typeof Di=="function"&&(yr.sendBeacon=dl),lh())}function Li(){br&&(br=!1,window.fetch===ll&&(window.fetch=ki),ge.open===cl&&(ge.open=rl),ge.send===hl&&(ge.send=nl),ge.setRequestHeader===fl&&(ge.setRequestHeader=il),yr.sendBeacon===dl&&(yr.sendBeacon=Di),je?.disconnect(),je=void 0,Rt.clear())}function al(){let e=Ne;Ne=!0;try{let t=performance.getEntriesByType("navigation")[0];t&&(xt=!1,vr(t,!0))}catch{}finally{Ne=e}}function Pi(){try{for(let t of je?.takeRecords()??[])vr(t);let e=performance.getEntriesByType("navigation")[0];e&&!xt&&vr(e,!0)}catch{}for(let e of[...Rt.values()])e.data.pending=!0,xr(e)}function xr(e){e.done||(e.done=!0,Rt.delete(e.data.id),e.data.duration=K(performance.now()-e.t0),Sr(e.data,e.ts))}function ih(e){let t={data:e,ts:Date.now(),t0:performance.now(),done:!1};return Rt.set(e.id,t),t}function ll(e,t){let r=arguments;if(!Ne)return ki.apply(this,r);let i;try{i=sh(e,t)}catch{}let n=ki.apply(this,r);if(i){let a=i;n.then(u=>oh(a,u),u=>{a.data.error=pl(u),xr(a)})}return n}function sh(e,t){let r=e instanceof Request?e:void 0,i=r?r.url:e instanceof URL?e.href:String(e),n={id:Cr(),kind:"fetch",method:String(t?.method??r?.method??"GET").toUpperCase(),url:Y(De(i))},a=uh(r?.headers,t?.headers);a&&(n.reqHeaders=a);let u=ih(n);if(ye.captureBodies){let f=a?.["content-type"];t?.body!=null?Et(n,Fi(t.body,f)):r?.body&&!r.bodyUsed&&(u.reqBody=ul(r.clone().body,ye.maxBodyChars).then(l=>Et(n,{text:cr(l.text,f),truncated:l.truncated}),()=>Et(n,{note:"unreadable"})))}return u}async function oh(e,t){let r=e.data;try{r.ttfb=K(performance.now()-e.t0),r.status=t.status,t.statusText&&(r.statusText=t.statusText),r.resHeaders=Ai(t.headers);let i=t.headers.get("content-type")??"";if(i&&(r.mime=i),t.type==="opaque"||t.type==="opaqueredirect")r.resBodyNote="opaque response (no-cors)";else if(ye.captureBodies&&r.method!=="HEAD"&&!tl.has(t.status))if(/event-stream/i.test(i))r.resBodyNote="event stream, not captured";else if(!i||lr.test(i)){let n=await ul(t.clone().body,ye.maxBodyChars);r.resBody=n.text,r.resSize=n.bytes,n.truncated&&(r.resBodyTruncated=!0),n.timedOut&&(r.resBodyNote=`body still streaming after ${el/1e3}s, captured partially`)}else{let n=t.headers.get("content-length");r.resBodyNote=`binary (${i}${n?`, ${n} bytes`:""})`}await e.reqBody}catch(i){r.resBodyNote=`unreadable: ${pl(i)}`}xr(e)}var Qa=Symbol("timeout");async function ul(e,t){let r={text:"",bytes:0,truncated:!1,timedOut:!1};if(!e)return r;let i=e.getReader(),n=new TextDecoder,a=performance.now()+el;try{for(;;){let u=a-performance.now(),f,l=await Promise.race([i.read(),new Promise(p=>{f=setTimeout(()=>p(Qa),Math.max(0,u))})]);if(clearTimeout(f),l===Qa){r.timedOut=!0;break}if(l.done){r.text+=n.decode();break}if(r.bytes+=l.value.byteLength,r.text+=n.decode(l.value,{stream:!0}),r.text.length>t){r.text=r.text.slice(0,t),r.truncated=!0;break}}}finally{i.cancel().catch(()=>{})}return r}function cl(e,t){if(Ne)try{wr.set(this,{data:{id:Cr(),kind:"xhr",method:String(e).toUpperCase(),url:Y(De(String(t)))},ts:0,t0:0,done:!1})}catch{}else wr.delete(this);return rl.apply(this,arguments)}function fl(e,t){let r=wr.get(this);return r&&((r.data.reqHeaders??={})[String(e).toLowerCase()]=String(t)),il.call(this,e,t)}function hl(e){let t=wr.get(this);if(t&&Ne&&t.t0===0)try{t.ts=Date.now(),t.t0=performance.now(),Rt.set(t.data.id,t),ye.captureBodies&&e!=null&&Et(t.data,Fi(e,t.data.reqHeaders?.["content-type"]));let r=this;r.addEventListener("readystatechange",()=>{r.readyState===2&&t.data.ttfb===void 0&&(t.data.ttfb=K(performance.now()-t.t0))}),r.addEventListener("error",()=>t.data.error??="network error"),r.addEventListener("abort",()=>t.data.error??="aborted"),r.addEventListener("timeout",()=>t.data.error??="timeout"),r.addEventListener("loadend",()=>{try{ah(r,t.data)}catch{}xr(t)})}catch{}return nl.apply(this,arguments)}function ah(e,t){t.status=e.status,e.statusText&&(t.statusText=e.statusText),t.resHeaders=ch(e.getAllResponseHeaders());let r=e.getResponseHeader("content-type")??"";if(r&&(t.mime=r),!(!ye.captureBodies||t.error||tl.has(e.status)))switch(e.responseType){case"":case"text":{if(r&&!lr.test(r)){t.resBodyNote=`binary (${r})`;return}Za(t,e.responseText);return}case"json":Za(t,Ce(e.response)??"null");return;case"arraybuffer":t.resBodyNote=`ArrayBuffer, ${e.response?.byteLength??0} bytes`;return;case"blob":t.resBodyNote=`Blob, ${e.response?.size??0} bytes`;return;default:t.resBodyNote=e.responseType}}function Za(e,t){e.resSize=t.length,t.length>ye.maxBodyChars?(e.resBody=t.slice(0,ye.maxBodyChars),e.resBodyTruncated=!0):e.resBody=t}function dl(e,t){let r=Di.apply(this,arguments);if(Ne)try{let i={id:Cr(),kind:"beacon",method:"POST",url:Y(De(String(e)))};r?i.statusText="queued":i.error="rejected by the browser",ye.captureBodies&&t!=null&&Et(i,Fi(t)),Sr(i,Date.now())}catch{}return r}function lh(){try{je=new PerformanceObserver(e=>{for(let t of e.getEntries())vr(t)}),je.observe({type:"resource",buffered:!0}),je.observe({type:"navigation",buffered:!0})}catch{je=void 0}}function vr(e,t=!1){if(!Ne)return;let r=e;if(r.entryType==="resource"){if(r.initiatorType==="fetch"||r.initiatorType==="xmlhttprequest"||r.initiatorType==="beacon"||r.startTime<sl-50||r.name.startsWith("chrome-extension:")||r.name.startsWith(location.origin+ar)||r.initiatorType==="other"&&/\/favicon\.ico($|\?)/.test(r.name))return}else if(r.entryType==="navigation"){if(xt||r.duration===0&&!t)return;xt=!0}else return;let i={id:Cr(),kind:r.entryType==="navigation"?"navigation":"resource",method:"GET",url:Y(r.name),duration:K(r.duration)};r.entryType==="navigation"?(i.navType=r.type,r.duration===0&&(i.pending=!0)):i.initiator=r.initiatorType,r.responseStatus&&(i.status=r.responseStatus),r.responseStart>0&&(i.ttfb=K(r.responseStart-r.startTime)),r.transferSize&&(i.transferSize=r.transferSize),r.decodedBodySize&&(i.resSize=r.decodedBodySize),r.contentType&&(i.mime=r.contentType),Sr(i,Math.round(performance.timeOrigin+r.startTime))}function Et(e,t){t.text!==void 0&&(e.reqBody=t.text),t.note&&(e.reqBodyNote=t.note),t.truncated&&(e.reqBodyTruncated=!0)}function Ii(e){return e.length>ye.maxBodyChars?{text:e.slice(0,ye.maxBodyChars),truncated:!0}:{text:e}}function Fi(e,t=""){try{if(typeof e=="string")return Ii(cr(e,t));if(e instanceof URLSearchParams)return Ii(ur(e.toString()));if(e instanceof FormData){let r={};return e.forEach((i,n)=>{let a=typeof i=="string"?Ae(n)?ze:V(i,1e4):`[File ${i.name}, ${i.size} bytes${i.type?`, ${i.type}`:""}]`,u=r[n];r[n]=u===void 0?a:Array.isArray(u)?[...u,a]:[u,a]}),{text:Ce(r),note:"FormData"}}if(e instanceof Blob)return{note:`Blob, ${e.size} bytes${e.type?`, ${e.type}`:""}`};if(e instanceof ArrayBuffer||ArrayBuffer.isView(e)){let r=e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength);return lr.test(t)?Ii(cr(new TextDecoder().decode(r),t)):{note:`binary, ${r.byteLength} bytes`}}return e instanceof ReadableStream?{note:"stream"}:e instanceof Document?{note:"Document"}:{note:typeof e}}catch{return{note:"unreadable"}}}function Ai(e){if(!e)return;let t={};try{if(e instanceof Headers)e.forEach((r,i)=>t[i]=r);else if(Array.isArray(e))for(let[r,i]of e)t[String(r).toLowerCase()]=String(i);else for(let[r,i]of Object.entries(e))t[r.toLowerCase()]=String(i)}catch{}return Object.keys(t).length?t:void 0}function uh(e,t){let r=Ai(e),i=Ai(t);return r||i?{...r,...i}:void 0}function ch(e){let t={};for(let r of e.trim().split(/[\r\n]+/)){let i=r.indexOf(":");i>0&&(t[r.slice(0,i).trim().toLowerCase()]=r.slice(i+1).trim())}return Object.keys(t).length?t:void 0}function pl(e){return e instanceof Error?`${e.name}: ${e.message}`:String(e)}var Tr=class{t;o=0;i=[];u(t){if(t.hadRecentInput)return;let r=this.i[0],i=this.i.at(-1);this.o&&r&&i&&t.startTime-i.startTime<1e3&&t.startTime-r.startTime<5e3?(this.o+=t.value,this.i.push(t)):(this.o=t.value,this.i=[t]),this.t?.(t)}},at=()=>{let e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},Mr=e=>{if(document.readyState==="loading")return"loading";let t=at();if(t){if(e<t.domInteractive)return"loading";if(t.domContentLoadedEventStart===0||e<t.domContentLoadedEventStart)return"dom-interactive";if(t.domComplete===0||e<t.domComplete)return"dom-content-loaded"}return"complete"},hh=e=>{let t=e.nodeName;return e.nodeType===1?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},qi=e=>{let t="";try{for(;e?.nodeType!==9;){let r=e,i=r.id?"#"+r.id:[hh(r),...Array.from(r.classList).sort()].join(".");if(t.length+i.length>99)return t||i;if(t=t?i+">"+t:i,r.id)break;e=r.parentNode}}catch{}return t},ml=new WeakMap;function st(e,t){let r=ml.get(t);return r||(r=new WeakMap,ml.set(t,r)),r.get(e)||r.set(e,new t),r.get(e)}var Rl=-1,Tl=()=>Rl,lt=e=>{addEventListener("pageshow",t=>{t.persisted&&(Rl=t.timeStamp,e(t))},!0)},xe=(e,t,r,i)=>{let n,a;return u=>{t.value>=0&&(u||i)&&(a=t.value-(n??0),(a||n===void 0)&&(n=t.value,t.delta=a,t.rating=((f,l)=>f>l[1]?"poor":f>l[0]?"needs-improvement":"good")(t.value,r),e(t)))}},Vi=e=>{requestAnimationFrame(()=>requestAnimationFrame(e))},Tt=()=>at()?.activationStart??0,Re=(e,t=-1)=>{let r=at(),i="navigate";return Tl()>=0?i="back-forward-cache":r&&(document.prerendering||Tt()>0?i="prerender":document.wasDiscarded?i="restore":r.type&&(i=r.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:i}},ot=(e,t,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let i=new PerformanceObserver(n=>{queueMicrotask(()=>{t(n.getEntries())})});return i.observe({type:e,buffered:!0,...r}),i}}catch{}},ji=e=>{let t=!1;return()=>{t||(e(),t=!0)}},it=-1,Ml=new Set,gl=()=>document.visibilityState!=="hidden"||document.prerendering?1/0:0,Bi=e=>{if(document.visibilityState==="hidden"){if(e.type==="visibilitychange")for(let t of Ml)t();isFinite(it)||(it=e.type==="visibilitychange"?e.timeStamp:0,removeEventListener("prerenderingchange",Bi,!0))}},Ir=()=>{if(it<0){let e=Tt();it=(document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").find(r=>r.name==="hidden"&&r.startTime>=e)?.startTime)??gl(),addEventListener("visibilitychange",Bi,!0),addEventListener("prerenderingchange",Bi,!0),lt(()=>{setTimeout(()=>{it=gl()})})}return{get firstHiddenTime(){return it},onHidden(e){Ml.add(e)}}},kr=e=>{document.prerendering?addEventListener("prerenderingchange",e,!0):e()},yl=[1800,3e3],Nl=(e,t={})=>{kr(()=>{let r=Ir(),i,n=Re("FCP"),a=ot("paint",u=>{for(let f of u)f.name==="first-contentful-paint"&&(a.disconnect(),f.startTime<r.firstHiddenTime&&(n.value=Math.max(f.startTime-Tt(),0),n.entries.push(f),i(!0)))});a&&(i=xe(e,n,yl,t.reportAllChanges),lt(u=>{n=Re("FCP"),i=xe(e,n,yl,t.reportAllChanges),Vi(()=>{n.value=performance.now()-u.timeStamp,i(!0)})}))})},bl=[.1,.25],wl=e=>e.find(t=>t.node?.nodeType===1)||e[0],Ol=(e,t={})=>{let r=st(t=Object.assign({},t),Tr),i=new WeakMap;r.t=n=>{if(n?.sources?.length){let a=wl(n.sources),u=a?.node;if(u){let f=t.generateTarget?.(u)??qi(u);i.set(a,f)}}},((n,a={})=>{let u=Ir();Nl(ji(()=>{let f,l=Re("CLS",0),p=st(a,Tr),o=c=>{for(let s of c)p.u(s);p.o>l.value&&(l.value=p.o,l.entries=p.i,f())},d=ot("layout-shift",o);d&&(f=xe(n,l,bl,a.reportAllChanges),u.onHidden(()=>{o(d.takeRecords()),f(!0)}),lt(()=>{p.o=0,l=Re("CLS",0),f=xe(n,l,bl,a.reportAllChanges),Vi(f)}),setTimeout(f))}))})(n=>{e((a=>{let u={};if(a.entries.length){let f=a.entries.reduce((l,p)=>l.value>p.value?l:p);if(f?.sources?.length){let l=wl(f.sources);l&&(u={largestShiftTarget:i.get(l),largestShiftTime:f.startTime,largestShiftValue:f.value,largestShiftSource:l,largestShiftEntry:f,loadState:Mr(f.startTime)})}}return Object.assign(a,{attribution:u})})(n))},t)},Il=(e,t={})=>{Nl(r=>{e((i=>{let n={timeToFirstByte:0,firstByteToFCP:i.value,loadState:Mr(Tl())};if(i.entries.length){let a=at(),u=i.entries.at(-1);if(a){let f=a.activationStart||0,l=Math.max(0,a.responseStart-f);n={timeToFirstByte:l,firstByteToFCP:i.value-l,loadState:Mr(i.entries[0].startTime),navigationEntry:a,fcpEntry:u}}}return Object.assign(i,{attribution:n})})(r))},t)},kl=0,Ui=1/0,Rr=0,dh=e=>{for(let t of e)t.interactionId&&(Ui=Math.min(Ui,t.interactionId),Rr=Math.max(Rr,t.interactionId),kl=Rr?(Rr-Ui)/7+1:0)},$i,vl=()=>$i?kl:performance.interactionCount??0,ph=()=>{"interactionCount"in performance||$i||($i=ot("event",dh,{durationThreshold:0}))},Sl=0,Nr=class{l=[];h=new Map;m;p;v(){Sl=vl(),this.l.length=0,this.h.clear()}M(){let t=Math.min(this.l.length-1,Math.floor((vl()-Sl)/50));return this.l[t]}u(t){if(this.m?.(t),!t.interactionId&&t.entryType!=="first-input")return;let r=this.l.at(-1),i=this.h.get(t.interactionId);if(i||this.l.length<10||t.duration>r.T){if(i?t.duration>i.T?(i.entries=[t],i.T=t.duration):t.duration===i.T&&t.startTime===i.entries[0].startTime&&i.entries.push(t):(i={id:t.interactionId,entries:[t],T:t.duration},this.h.set(i.id,i),this.l.push(i)),this.l.sort((n,a)=>a.T-n.T),this.l.length>10){let n=this.l.splice(10);for(let a of n)this.h.delete(a.id)}this.p?.(i)}}},Wi=e=>{let t=globalThis.requestIdleCallback||setTimeout,r=globalThis.cancelIdleCallback||clearTimeout;if(document.visibilityState==="hidden")e();else{let i=ji(e),n=-1,a=()=>{r(n),i()};addEventListener("visibilitychange",a,{once:!0,capture:!0}),n=t(()=>{removeEventListener("visibilitychange",a,{capture:!0}),i()})}},Cl=[200,500],Al=(e,t={})=>{let r=st(t=Object.assign({},t),Nr),i=[],n=[],a=0,u=new WeakMap,f=new WeakMap,l=!1,p=()=>{l||(Wi(o),l=!0)},o=()=>{let s=new Set(r.l.map(g=>u.get(g.entries[0]))),m=n.length-10;n=n.filter((g,C)=>C>=m||s.has(g));let h=new Set;for(let g of n){let C=d(g.startTime,g.processingEnd);for(let b of C)h.add(b)}i=i.filter(g=>g.startTime>a||h.has(g)),l=!1};r.m=s=>{let m=s.startTime+s.duration,h;a=Math.max(a,s.processingEnd);for(let g=n.length-1;g>=0;g--){let C=n[g];if(Math.abs(m-C.renderTime)<=8){h=C,h.startTime=Math.min(s.startTime,h.startTime),h.processingStart=Math.min(s.processingStart,h.processingStart),h.processingEnd=Math.max(s.processingEnd,h.processingEnd),t.includeProcessedEventEntries!==!1&&h.entries.push(s);break}}h||(h={startTime:s.startTime,processingStart:s.processingStart,processingEnd:s.processingEnd,renderTime:m,entries:t.includeProcessedEventEntries!==!1?[s]:[]},n.push(h)),(s.interactionId||s.entryType==="first-input")&&u.set(s,h),p()},r.p=s=>{if(!f.get(s)){let m=s.entries.find(h=>h.target)?.target;if(m){let h=t.generateTarget?.(m)??qi(m);f.set(s,h)}else{let h=s.entries.find(g=>g.targetSelector)?.targetSelector;h&&f.set(s,h)}}};let d=(s,m)=>{let h=[];for(let g of i)if(!(g.startTime+g.duration<s)){if(g.startTime>m)break;h.push(g)}return h},c=s=>{let m=s.entries[0],h=u.get(m),g=m.processingStart,C=Math.max(m.startTime+m.duration,g),b=Math.min(h.processingEnd,C),v=h.entries.sort((S,x)=>S.processingStart-x.processingStart),E=d(m.startTime,b),w=r.h.get(m.interactionId),y={interactionTarget:f.get(w),interactionType:m.name.startsWith("key")?"keyboard":"pointer",interactionTime:m.startTime,nextPaintTime:C,processedEventEntries:v,longAnimationFrameEntries:E,inputDelay:g-m.startTime,processingDuration:b-g,presentationDelay:C-b,loadState:Mr(m.startTime),longestScript:void 0,totalScriptDuration:void 0,totalStyleAndLayoutDuration:void 0,totalPaintDuration:void 0,totalUnattributedDuration:void 0};return(S=>{if(!S.longAnimationFrameEntries?.length)return;let x=S.interactionTime,M=S.inputDelay,T=S.processingDuration,k,I,R=0,te=0,re=0,U=0;for(let Q of S.longAnimationFrameEntries){te=te+Q.startTime+Q.duration-Q.styleAndLayoutStart;for(let $ of Q.scripts){let B=$.startTime+$.duration;if(B<x)continue;let le=B-Math.max(x,$.startTime),N=$.duration?le/$.duration*$.forcedStyleAndLayoutDuration:0;R+=le-N,te+=N,le>U&&(I=$.startTime<x+M?"input-delay":$.startTime>=x+M+T?"presentation-delay":"processing-duration",k=$,U=le)}}let P=S.longAnimationFrameEntries.at(-1),j=P?P.startTime+P.duration:0;j>=x+M+T&&(re=S.nextPaintTime-j),k&&I&&(S.longestScript={entry:k,subpart:I,intersectingDuration:U}),S.totalScriptDuration=R,S.totalStyleAndLayoutDuration=te,S.totalPaintDuration=re,S.totalUnattributedDuration=S.nextPaintTime-x-R-te-re})(y),Object.assign(s,{attribution:y})};ot("long-animation-frame",s=>{i=i.concat(s),p()}),((s,m={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;let h=Ir();kr(()=>{ph();let g,C=Re("INP"),b=st(m,Nr),v=w=>{Wi(()=>{for(let S of w)b.u(S);let y=b.M();y&&y.T!==C.value&&(C.value=y.T,C.entries=y.entries,g())})},E=ot("event",v,{durationThreshold:m.durationThreshold??40});g=xe(s,C,Cl,m.reportAllChanges),E&&(E.observe({type:"first-input",buffered:!0}),h.onHidden(()=>{v(E.takeRecords()),g(!0)}),lt(()=>{b.v(),C=Re("INP"),g=xe(s,C,Cl,m.reportAllChanges)}))})})(s=>{e(c(s))},t)},Or=class{m;u(t){this.m?.(t)}},El=[2500,4e3],Dl=(e,t={})=>{let r=st(t=Object.assign({},t),Or),i=new WeakMap;r.m=n=>{let a=n.element;if(a){let u=t.generateTarget?.(a)??qi(a);i.set(n,u)}else n.id&&i.set(n,`#${n.id}`)},((n,a={})=>{kr(()=>{let u=Ir(),f,l=Re("LCP"),p=st(a,Or),o=c=>{a.reportAllChanges||(c=c.slice(-1));for(let s of c)p.u(s),s.startTime<u.firstHiddenTime&&(l.value=Math.max(s.startTime-Tt(),0),l.entries=[s],f())},d=ot("largest-contentful-paint",o);if(d){f=xe(n,l,El,a.reportAllChanges);let c=ji(()=>{o(d.takeRecords()),d.disconnect(),f(!0)}),s=m=>{m.isTrusted&&(Wi(c),removeEventListener(m.type,s,{capture:!0}))};for(let m of["keydown","click","visibilitychange"])addEventListener(m,s,{capture:!0});lt(m=>{l=Re("LCP"),f=xe(n,l,El,a.reportAllChanges),Vi(()=>{l.value=performance.now()-m.timeStamp,f(!0)})})}})})(n=>{e((a=>{let u={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:a.value};if(a.entries.length){let f=a.entries.at(-1),l=f.url&&performance.getEntriesByType("resource").find(o=>o.name===f.url);u.target=i.get(f),u.lcpEntry=f,f.url&&(u.url=f.url),l&&(u.lcpResourceEntry=l);let p=at();if(p){let o=p.activationStart||0,d=Math.max(0,p.responseStart-o),c=Math.max(d,l?(l.requestStart||l.startTime)-o:0),s=Math.min(a.value,Math.max(c,l?l.responseEnd-o:0));u={...u,timeToFirstByte:d,resourceLoadDelay:c-d,resourceLoadDuration:s-c,elementRenderDelay:a.value-s,navigationEntry:p}}}return Object.assign(a,{attribution:u})})(n))},t)},xl=[800,1800],zi=e=>{document.prerendering?kr(()=>zi(e)):document.readyState!=="complete"?addEventListener("load",()=>zi(e),!0):setTimeout(e)},_l=(e,t={})=>{((r,i={})=>{let n=Re("TTFB"),a=xe(r,n,xl,i.reportAllChanges);zi(()=>{let u=at();u&&(n.value=Math.max(u.responseStart-Tt(),0),n.entries=[u],a(!0),lt(()=>{n=Re("TTFB",0),a=xe(r,n,xl,i.reportAllChanges),a(!0)}))})})(r=>{e((i=>{let n={waitingDuration:0,cacheDuration:0,dnsDuration:0,connectionDuration:0,requestDuration:0};if(i.entries.length){let a=i.entries[0],u=a.activationStart||0,f=Math.max((a.workerStart||a.fetchStart)-u,0),l=Math.max(a.domainLookupStart-u,0),p=Math.max(a.connectStart-u,0),o=Math.max(a.connectEnd-u,0);n={waitingDuration:f,cacheDuration:l-f,dnsDuration:p-l,connectionDuration:o-p,requestDuration:i.value-o,navigationEntry:a}}return Object.assign(i,{attribution:n})})(r))},t)};var Ll="long-animation-frame",mh=5,Ar=()=>{},He=!1,Pl=!1,Nt,Ul=0,Hi=new Map;function Bl(e,t){if(Ar=e,He)return;He=!0;let r=Date.now();for(let i of Hi.values())Te(()=>Ar(i,r));Pl||(Pl=!0,gh()),yh(t?0:performance.now())}function Gi(){let e=Nt;He&&e&&Te(()=>Wl(e.takeRecords()))}function $l(){He&&(Gi(),He=!1,Nt?.disconnect(),Nt=void 0)}function gh(){addEventListener("pageshow",t=>t.persisted&&Hi.clear(),!0);let e={reportAllChanges:!0};Te(()=>Dl(Mt,e)),Te(()=>Ol(Mt,e)),Te(()=>Al(Mt,e)),Te(()=>Il(Mt,e)),Te(()=>_l(Mt,e))}function Mt(e){Te(()=>{let t=bh(e,{timeOrigin:performance.timeOrigin,now:performance.now(),url:Y(location.href)});Hi.set(t.name,t),He&&Ar(t,Date.now())})}function yh(e){Ul=e,!Nt&&Te(()=>{if(!PerformanceObserver.supportedEntryTypes?.includes(Ll))return;let t=new PerformanceObserver(r=>Te(()=>Wl(r.getEntries())));t.observe({type:Ll,buffered:!0}),Nt=t})}function Wl(e){if(!He)return;let t=Y(location.href);for(let r of e){let i=r;i.startTime+i.duration<Ul||Ar(wh(i,t),Math.round(performance.timeOrigin+i.startTime))}}function bh(e,t){let r=f=>Math.round(t.timeOrigin+f),i=()=>r(e.entries.at(-1)?.startTime??t.now),n={};switch(e.name){case"LCP":{let f=e.attribution;n.target=f.target,f.url&&(n.url=Y(f.url)),n.timeToFirstByte=K(f.timeToFirstByte),n.resourceLoadDelay=K(f.resourceLoadDelay),n.resourceLoadDuration=K(f.resourceLoadDuration),n.elementRenderDelay=K(f.elementRenderDelay),n.time=i();break}case"CLS":{let f=e.attribution;n.target=f.largestShiftTarget,f.largestShiftValue!==void 0&&(n.largestShiftValue=Fl(f.largestShiftValue)),f.largestShiftTime!==void 0&&(n.time=r(f.largestShiftTime)),n.loadState=f.loadState;break}case"INP":{let f=e.attribution;n.target=f.interactionTarget||void 0,n.interactionType=f.interactionType,n.inputDelay=K(f.inputDelay),n.processingDuration=K(f.processingDuration),n.presentationDelay=K(f.presentationDelay),n.loadState=f.loadState,n.time=r(f.interactionTime);break}case"FCP":{let f=e.attribution;n.timeToFirstByte=K(f.timeToFirstByte),n.firstByteToFCP=K(f.firstByteToFCP),n.loadState=f.loadState,n.time=i();break}case"TTFB":{let f=e.attribution;n.waitingDuration=K(f.waitingDuration),n.cacheDuration=K(f.cacheDuration),n.dnsDuration=K(f.dnsDuration),n.connectionDuration=K(f.connectionDuration),n.requestDuration=K(f.requestDuration);break}}let a={kind:"vital",name:e.name,value:e.name==="CLS"?Fl(e.value):K(e.value),rating:e.rating,id:e.id,navigationType:e.navigationType,url:t.url},u=vh(n);return Object.keys(u).length&&(a.attribution=u),a}function wh(e,t){let r=[...e.scripts??[]].sort((i,n)=>n.duration-i.duration).slice(0,mh).map(i=>{let n={duration:Math.round(i.duration)};return i.sourceURL&&(n.url=V(Y(i.sourceURL),2e3)),i.sourceFunctionName&&(n.fn=V(i.sourceFunctionName,200)),i.invoker&&(n.invoker=V(i.invoker,500)),i.invokerType&&(n.invokerType=i.invokerType),n});return{kind:"loaf",duration:Math.round(e.duration),blockingDuration:Math.round(e.blockingDuration),scripts:r,url:t}}var Fl=e=>Math.round(e*1e4)/1e4;function vh(e){let t={};for(let[r,i]of Object.entries(e))i!==void 0&&(t[r]=i);return t}function Te(e){try{e()}catch{}}var Yl="tabtape:track",Xl="tabtape:identify",Jl="tabtape:state",Yi=100,Dr=200,Kl=8*1024,zl={calls:100,perMs:1e3},Ch=[Ci,{depth:4,items:50,string:500},{depth:4,items:20,string:200},{depth:3,items:10,string:100},{depth:2,items:10,string:50}],_r="\u2026";function Eh(e){if(typeof e!="string")return;let t=e.trim();return t&&t.length<=Yi*2&&[...t].length<=Yi?t:void 0}function xh(e){let t;if(typeof e=="string")t=e.trim();else if(typeof e=="number"&&Number.isFinite(e)||typeof e=="bigint")t=String(e);else return;if(!t)return;if(t.length<=Dr)return t;let r=/[\uD800-\uDBFF]/.test(t[Dr-1])?Dr-1:Dr;return t.slice(0,r)}function Rh(e){let t=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t+=1:i<2048?t+=2:i>=55296&&i<=56319&&(e.charCodeAt(r+1)&64512)===56320?(t+=4,r++):t+=3}return t}function Ot(e,t=!1){if(Array.isArray(e)){for(let r=0;r<e.length;r++)e[r]=Ot(e[r],t);return e}if(e&&typeof e=="object"){let r=e;for(let i of Object.keys(r)){let n=r[i];i==="[[Map]]"&&Array.isArray(n)?r[i]=n.map(a=>Array.isArray(a)&&a.length===2&&typeof a[0]=="string"?[a[0],Ot(a[1],t||Ae(a[0]))]:Ot(a,t)):r[i]=Ot(n,t||Ae(i))}return r}return t&&(typeof e=="string"||typeof e=="number")?ze:e}function ql(e){if(e==null)return{};let t={};for(let[r,i]of Ch.entries())if(t=Th(Ot(St(e,i))),Ql(t)<=Kl)return Vl(t,r>0);return Vl(Mh(t),!0)}function Th(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)?e:{value:e}}function Vl(e,t){let r={};return Object.keys(e).length&&(r.props=e),t&&(r.truncated=!0),r}function Ql(e){return Rh(Ce(e)??"")}function Mh(e){let t=e[_r],r=typeof t=="string"&&Number.parseInt(t,10)||0,i=Object.keys(e).filter(f=>f!==_r),n={},a=0;for(let f of i){n[f]=e[f];let l=i.length-a-1+r;if(Ql(l?{...n,[_r]:`${l} more keys`}:n)>Kl){delete n[f];break}a++}let u=i.length-a+r;return u&&(n[_r]=`${u} more keys`),n}var Xi=class{calls;perMs;clock;times=[];oldest=0;constructor(t,r,i){this.calls=t,this.perMs=r,this.clock=i}take(){let t=this.clock();return this.times.length<this.calls?(this.times.push(t),!0):t-this.times[this.oldest]<this.perMs?!1:(this.times[this.oldest]=t,this.oldest=(this.oldest+1)%this.calls,!0)}};function Nh(e){let t=e.now??Date.now,r=e.url??(()=>Y(location.href)),i=e.warn??(s=>console.warn(s)),n=new Xi(zl.calls,zl.perMs,e.clock??(()=>performance.now())),a=new Set,u=!1,f=0,l=!1;function p(s){if(!(!u||l)){l=!0;try{s()}catch{}finally{l=!1}}}function o(s,m){if(!a.has(s)){a.add(s);try{i(m())}catch{}}}function d(){return n.take()?!0:(f++,!1)}function c(s){f&&(s.dropped=f,f=0),e.emit(s,t())}return{get active(){return u},setActive(s){s&&!u&&(f=0),u=s},track(s,m){p(()=>{let h=Eh(s);if(h===void 0){o("track",()=>`tabtape.track: the event name must be a string of 1\u2013${Yi} characters, got ${jl(s)}. The event was not recorded.`);return}if(!d())return;let g=ql(m),C={name:"custom",event:h,url:r()};g.props&&(C.props=g.props),g.truncated&&(C.propsTruncated=!0),c(C)})},identify(s,m){p(()=>{let h=xh(s);if(h===void 0){o("identify",()=>`tabtape.identify: the user id must be a non-empty string or a number, got ${jl(s)}. The call was ignored.`);return}if(!d())return;let g=ql(m),C={name:"identify",userId:h,url:r()};g.props&&(C.traits=g.props),g.truncated&&(C.propsTruncated=!0),c(C)})}}}function jl(e){return typeof e=="string"?e.trim()?`${[...e.trim()].length} characters`:"an empty string":e===null?"null":typeof e}var Hl=()=>{},Le,Lr,Pr=!1,Gl=!1;function Zl(e){Hl=e,Le??=Nh({emit:(t,r)=>Hl(t,r)}),Le.setActive(!0),Oh(Le),Pr||(Pr=!0,addEventListener(Yl,tu),addEventListener(Xl,ru),addEventListener(Jl,nu))}function eu(){Le?.setActive(!1),Pr&&(Pr=!1,removeEventListener(Yl,tu),removeEventListener(Xl,ru),removeEventListener(Jl,nu))}function Oh(e){try{if(Lr&&window.tabtape===Lr||"tabtape"in window)return;Lr??=Object.freeze({track(t,r){e.track(t,r)},identify(t,r){e.identify(t,r)},state(t,r,i){iu(e,t,r,i)},get isRecording(){return e.active}}),Object.defineProperty(window,"tabtape",{value:Lr,configurable:!0,writable:!0,enumerable:!1})}catch{}}function Ji(e){let t=e.detail;return t!==null&&typeof t=="object"?t:{}}function tu(e){try{let t=Ji(e);Le?.track(t.name,t.props)}catch{}}function ru(e){try{let t=Ji(e);Le?.identify(t.userId,t.traits)}catch{}}function nu(e){try{let t=Ji(e);Le&&iu(Le,t.store,t.action,t.state)}catch{}}function iu(e,t,r,i){if(e.active)try{let n=We();n?n.manual(t,r,i):Gl||(Gl=!0,console.warn("tabtape.state: state recording is off in the tabtape extension settings; the call was ignored."))}catch{}}var Fr=Symbol.for("tabtape.recorder"),kh=5e3,Ah=15e3,su=window;su[Fr]?su[Fr].hello():window.top!==window?pa()&&Ha(Fr):Dh();function Dh(){let e=EventTarget.prototype.dispatchEvent,t=document.readyState==="loading",r="pending",i="",n=!1,a,u,f=!1,l=[],p=(y,S)=>e.call(document,new CustomEvent(y,{detail:S}));function o(y,S,x){if(r==="off")return;let M;try{M=Ce({ts:Math.round(S),type:y,data:x})}catch{return}c(y,M)}function d(y,S,x){r!=="off"&&c(y,`{"ts":${Math.round(S)},"type":${Ce(y)},"data":${x}}`)}function c(y,S){r==="active"?p(de.data,S):l.length<kh&&l.push({type:y,line:S})}let s={captureBodies:!0,maxBodyChars:1e6,checkoutEveryNms:0,inPageNetwork:!0,recordState:!0};function m(y){Fa((S,x)=>o("console",x,S)),Ua(),Ti(!0),y.inPageNetwork?(_i(y,(S,x)=>o("network",x,S)),ol(u?.inPageNetwork===!1),Er(!0)):(Er(!1),Li())}function h(y){if(y===f)return;f=y;let S=We();if(S)try{y?S.start((x,M)=>d("state",M,x)):S.stop()}catch{}}function g(){Er(!1),Ti(!1),Li(),Ba()}m(s);let C=setTimeout(()=>r==="pending"&&E(),Ah);function b(y,S){if(clearTimeout(C),r==="active"&&y===i){m(S),u=S,h(S.recordState);return}r==="active"&&v(),i=y,m(S),u=S,r="active";for(let{type:x,line:M}of l.splice(0))x==="network"&&!S.inPageNetwork||p(de.data,M);!S.inPageNetwork&&!t&&(_i(S,(x,M)=>o("network",M,x)),al()),a=he({...Ni(S),emit:(x,M)=>{o("rrweb",x.timestamp,x),M&&f&&We()?.checkout(),x.type===_.FullSnapshot&&p(de.snapshot)}})??void 0,Ra((x,M)=>o("event",M,x),t&&!n?"load":"start"),Zl((x,M)=>o("event",M,x)),Bl((x,M)=>o("perf",M,x),t&&!n),Ya((x,M)=>o("perf",M,x)),h(S.recordState),n=!0}function v(){Pi(),h(!1),$l(),Ja(),eu(),Ta();try{a?.()}catch{}a=void 0,p(de.flush)}function E(){clearTimeout(C),r==="active"&&v(),r="off",l.length=0,g();try{We()?.disable()}catch{}}document.addEventListener(de.control,y=>{let S;try{S=vt(String(y.detail))}catch{return}S.cmd==="start"?b(S.sessionId,S.options):E()}),document.addEventListener(de.info,()=>{let y={stateHook:"off",stores:[]};try{let S=We()?.info();S&&(y={stateHook:S.hook,stores:S.stores})}catch{}p(de.infoReply,Ce(y))}),addEventListener("pagehide",()=>{r==="active"&&(Ma(),u?.inPageNetwork!==!1&&Pi(),Gi(),Xa(),p(de.flush))}),addEventListener("pageshow",y=>{if(!(!y.persisted||r!=="active")){try{he.takeFullSnapshot(!0)}catch{}_e("bfcache")}});let w=()=>p(de.hello);Object.defineProperty(window,Fr,{value:{hello:w,get active(){return r==="active"}},configurable:!0}),w()}})();
|
|
128
|
+
`,_o=typeof self<"u"&&self.Blob&&new Blob([Na],{type:"text/javascript;charset=utf-8"});function Zf(e){let t;try{if(t=_o&&(self.URL||self.webkitURL).createObjectURL(_o),!t)throw"";let r=new Worker(t,{name:e?.name});return r.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),r}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(Na),{name:e?.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}var ci=class{constructor(t){O(this,"pendingCanvasMutations",new Map),O(this,"rafStamps",{latestId:0,invokeId:null}),O(this,"mirror"),O(this,"mutationCb"),O(this,"resetObservers"),O(this,"frozen",!1),O(this,"locked",!1),O(this,"processMutation",(a,p)=>{(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(p)});let{sampling:r="all",win:i,blockClass:n,blockSelector:l,recordCanvas:u,dataURLOptions:c}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,u&&r==="all"&&this.initCanvasMutationObserver(i,n,l),u&&typeof r=="number"&&this.initCanvasFPSObserver(r,i,n,l,{dataURLOptions:c})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(t,r,i,n,l){let u=Ao(r,i,n,!0),c=new Map,a=new Zf;a.onmessage=m=>{let{id:d}=m.data;if(c.set(d,!1),!("base64"in m.data))return;let{base64:g,type:E,width:b,height:v}=m.data;this.mutationCb({id:d,type:et["2D"],commands:[{property:"clearRect",args:[0,0,b,v]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:g}],type:E}]},0,0]}]})};let p=1e3/t,o=0,h,f=()=>{let m=[];return r.document.querySelectorAll("canvas").forEach(d=>{oe(d,i,n,!0)||m.push(d)}),m},s=m=>{if(o&&m-o<p){h=requestAnimationFrame(s);return}o=m,f().forEach(async d=>{var g;let E=this.mirror.getId(d);if(c.get(E)||d.width===0||d.height===0)return;if(c.set(E,!0),["webgl","webgl2"].includes(d.__context)){let v=d.getContext(d.__context);((g=v?.getContextAttributes())==null?void 0:g.preserveDrawingBuffer)===!1&&v.clear(v.COLOR_BUFFER_BIT)}let b=await createImageBitmap(d);a.postMessage({id:E,bitmap:b,width:d.width,height:d.height,dataURLOptions:l.dataURLOptions},[b])}),h=requestAnimationFrame(s)};h=requestAnimationFrame(s),this.resetObservers=()=>{u(),cancelAnimationFrame(h)}}initCanvasMutationObserver(t,r,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let n=Ao(t,r,i,!1),l=Jf(this.processMutation.bind(this),t,r,i),u=Qf(this.processMutation.bind(this),t,r,i);this.resetObservers=()=>{n(),l(),u()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let t=r=>{this.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,r)=>{let i=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,i)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,r){if(this.frozen||this.locked)return;let i=this.pendingCanvasMutations.get(t);if(!i||r===-1)return;let n=i.map(u=>{let{type:c,...a}=u;return a}),{type:l}=i[0];this.mutationCb({id:r,type:l,commands:n}),this.pendingCanvasMutations.delete(t)}},fi=class{constructor(t){O(this,"trackedLinkElements",new WeakSet),O(this,"mutationCb"),O(this,"adoptedStyleSheetCb"),O(this,"styleMirror",new si),this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,r){if(t.length===0)return;let i={id:r,styleIds:[]},n=[];for(let l of t){let u;this.styleMirror.has(l)?u=this.styleMirror.getId(l):(u=this.styleMirror.add(l),n.push({styleId:u,rules:Array.from(l.rules||CSSRule,(c,a)=>({rule:$o(c,l.href),index:a}))})),i.styleIds.push(u)}n.length>0&&(i.styles=n),this.adoptedStyleSheetCb(i)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}},di=class{constructor(){O(this,"nodeMap",new WeakMap),O(this,"active",!1)}inOtherBuffer(t,r){let i=this.nodeMap.get(t);return i&&Array.from(i).some(n=>n!==r)}add(t,r){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(r))}destroy(){}},J,Ht,ei,tr=!1;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=((hs=e.contentWindow)==null?void 0:hs.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}var ve=ac();function ae(e={}){let{emit:t,checkoutEveryNms:r,checkoutEveryNth:i,blockClass:n="rr-block",blockSelector:l=null,ignoreClass:u="rr-ignore",ignoreSelector:c=null,maskTextClass:a="rr-mask",maskTextSelector:p=null,inlineStylesheet:o=!0,maskAllInputs:h,maskInputOptions:f,slimDOMOptions:s,maskInputFn:m,maskTextFn:d,hooks:g,packFn:E,sampling:b={},dataURLOptions:v={},mousemoveWait:C,recordDOM:w=!0,recordCanvas:y=!1,recordCrossOriginIframes:S=!1,recordAfter:x=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:M=!1,collectFonts:T=!1,inlineImages:I=!1,plugins:k,keepIframeSrcFn:R=()=>!1,ignoreCSSAttributes:te=new Set([]),errorHandler:re}=e;Af(re);let U=S?window.parent===window:!0,P=!1;if(!U)try{window.parent.document&&(P=!1)}catch{P=!0}if(U&&!t)throw new Error("emit function is required");if(!U&&!P)return()=>{};C!==void 0&&b.mousemove===void 0&&(b.mousemove=C),ve.reset();let V=h===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:f!==void 0?f:{password:!0},Q=Go(s);Nf();let $,B=0,ue=A=>{for(let Z of k||[])Z.eventProcessor&&(A=Z.eventProcessor(A));return E&&!P&&(A=E(A)),A};J=(A,Z)=>{var W;let X=A;if(X.timestamp=yt(),(W=Ue[0])!=null&&W.isFrozen()&&X.type!==_.FullSnapshot&&!(X.type===_.IncrementalSnapshot&&X.data.source===L.Mutation)&&Ue.forEach(ce=>ce.unfreeze()),U)t?.(ue(X),Z);else if(P){let ce={type:"rrweb",event:ue(X),origin:window.location.origin,isCheckout:Z};window.parent.postMessage(ce,"*")}if(X.type===_.FullSnapshot)$=X,B=0;else if(X.type===_.IncrementalSnapshot){if(X.data.source===L.Mutation&&X.data.isAttachIframe)return;B++;let ce=i&&B>=i,z=r&&X.timestamp-$.timestamp>r;(ce||z)&&Ht(!0)}};let N=A=>{J({type:_.IncrementalSnapshot,data:{source:L.Mutation,...A}})},xe=A=>J({type:_.IncrementalSnapshot,data:{source:L.Scroll,...A}}),pe=A=>J({type:_.IncrementalSnapshot,data:{source:L.CanvasMutation,...A}}),dt=A=>J({type:_.IncrementalSnapshot,data:{source:L.AdoptedStyleSheet,...A}}),ie=new fi({mutationCb:N,adoptedStyleSheetCb:dt}),we=new li({mirror:ve,mutationCb:N,stylesheetManager:ie,recordCrossOriginIframes:S,wrappedEmit:J});for(let A of k||[])A.getMirror&&A.getMirror({nodeMirror:ve,crossOriginIframeMirror:we.crossOriginIframeMirror,crossOriginIframeStyleMirror:we.crossOriginIframeStyleMirror});let Fe=new di;ei=new ci({recordCanvas:y,mutationCb:pe,win:window,blockClass:n,blockSelector:l,mirror:ve,sampling:b.canvas,dataURLOptions:v});let ke=new ui({mutationCb:N,scrollCb:xe,bypassOptions:{blockClass:n,blockSelector:l,maskTextClass:a,maskTextSelector:p,inlineStylesheet:o,maskInputOptions:V,dataURLOptions:v,maskTextFn:d,maskInputFn:m,recordCanvas:y,inlineImages:I,sampling:b,slimDOMOptions:Q,iframeManager:we,stylesheetManager:ie,canvasManager:ei,keepIframeSrcFn:R,processedNodeManager:Fe},mirror:ve});Ht=(A=!1)=>{if(!w)return;J({type:_.Meta,data:{href:window.location.href,width:ha(),height:da()}},A),ie.reset(),ke.init(),Ue.forEach(W=>W.lock());let Z=Dc(document,{mirror:ve,blockClass:n,blockSelector:l,maskTextClass:a,maskTextSelector:p,inlineStylesheet:o,maskAllInputs:V,maskTextFn:d,maskInputFn:m,slimDOM:Q,dataURLOptions:v,recordCanvas:y,inlineImages:I,onSerialize:W=>{ga(W,ve)&&we.addIframe(W),ya(W,ve)&&ie.trackLinkElement(W),ii(W)&&ke.addShadowRoot(D.shadowRoot(W),document)},onIframeLoad:(W,X)=>{we.attachIframe(W,X),ke.observeAttachShadow(W)},onStylesheetLoad:(W,X)=>{ie.attachLinkElement(W,X)},keepIframeSrcFn:R});if(!Z)return console.warn("Failed to snapshot the document");J({type:_.FullSnapshot,data:{node:Z,initialOffset:fa(window)}},A),Ue.forEach(W=>W.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ie.adoptStyleSheets(document.adoptedStyleSheets,ve.getId(document))};try{let A=[],Z=X=>{var ce;return F(Hf)({mutationCb:N,mousemoveCb:(z,Gr)=>J({type:_.IncrementalSnapshot,data:{source:Gr,positions:z}}),mouseInteractionCb:z=>J({type:_.IncrementalSnapshot,data:{source:L.MouseInteraction,...z}}),scrollCb:xe,viewportResizeCb:z=>J({type:_.IncrementalSnapshot,data:{source:L.ViewportResize,...z}}),inputCb:z=>J({type:_.IncrementalSnapshot,data:{source:L.Input,...z}}),mediaInteractionCb:z=>J({type:_.IncrementalSnapshot,data:{source:L.MediaInteraction,...z}}),styleSheetRuleCb:z=>J({type:_.IncrementalSnapshot,data:{source:L.StyleSheetRule,...z}}),styleDeclarationCb:z=>J({type:_.IncrementalSnapshot,data:{source:L.StyleDeclaration,...z}}),canvasMutationCb:pe,fontCb:z=>J({type:_.IncrementalSnapshot,data:{source:L.Font,...z}}),selectionCb:z=>{J({type:_.IncrementalSnapshot,data:{source:L.Selection,...z}})},customElementCb:z=>{J({type:_.IncrementalSnapshot,data:{source:L.CustomElement,...z}})},blockClass:n,ignoreClass:u,ignoreSelector:c,maskTextClass:a,maskTextSelector:p,maskInputOptions:V,inlineStylesheet:o,sampling:b,recordDOM:w,recordCanvas:y,inlineImages:I,userTriggeredOnInput:M,collectFonts:T,doc:X,maskInputFn:m,maskTextFn:d,keepIframeSrcFn:R,blockSelector:l,slimDOMOptions:Q,dataURLOptions:v,mirror:ve,iframeManager:we,stylesheetManager:ie,shadowDomManager:ke,processedNodeManager:Fe,canvasManager:ei,ignoreCSSAttributes:te,plugins:((ce=k?.filter(z=>z.observer))==null?void 0:ce.map(z=>({observer:z.observer,options:z.options,callback:Gr=>J({type:_.Plugin,data:{plugin:z.name,payload:Gr}})})))||[]},g)};we.addLoadListener(X=>{try{A.push(Z(X.contentDocument))}catch(ce){console.warn(ce)}});let W=()=>{Ht(),A.push(Z(document)),tr=!0};return["interactive","complete"].includes(document.readyState)?W():(A.push(se("DOMContentLoaded",()=>{J({type:_.DomContentLoaded,data:{}}),x==="DOMContentLoaded"&&W()})),A.push(se("load",()=>{J({type:_.Load,data:{}}),x==="load"&&W()},window))),()=>{A.forEach(X=>{try{X()}catch(ce){String(ce).toLowerCase().includes("cross-origin")||console.warn(ce)}}),Fe.destroy(),tr=!1,Df()}}catch(A){console.warn(A)}}ae.addCustomEvent=(e,t)=>{if(!tr)throw new Error("please add custom event after start recording");J({type:_.Custom,data:{tag:e,payload:t}})};ae.freezePage=()=>{Ue.forEach(e=>e.freeze())};ae.takeFullSnapshot=e=>{if(!tr)throw new Error("please take full snapshot after start recording");Ht(e)};ae.mirror=ve;var Lo;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Lo||(Lo={}));var xh=5*1e3;var{addCustomEvent:Rh}=ae,{freezePage:Th}=ae,{takeFullSnapshot:Mh}=ae;var ed=/card.?(num|exp|cvc|cvv|code)|cc.?(num|exp|csc|cvc|cvv)|^(cvc|cvv|csc)\d?$|security.?code|^exp(iry|iration)?.?(date|month|year)?$/i;function Oa(e){return(e.getAttribute("autocomplete")??"").toLowerCase().split(/\s+/).some(r=>r.startsWith("cc-"))?!0:[e.getAttribute("name"),e.getAttribute("id")].some(r=>!!r&&ed.test(r))}function ka(e=window){if(e.parent===e||e.location.href==="about:blank")return!1;try{return e.parent.document,!1}catch{return!0}}var he={data:"__tabtape:data",flush:"__tabtape:flush",hello:"__tabtape:hello",control:"__tabtape:control",info:"__tabtape:info",infoReply:"__tabtape:info-reply",snapshot:"__tabtape:snapshot"},Ia="tabtape.state",hr="/__tabtape/";function ze(){try{return window[Symbol.for(Ia)]}catch{return}}function Da(e){let t="",r=!1,i=null,n=c=>{try{e.emit(c)}catch{}};function l(c,a,p){let o=e.title(),h,f=()=>{},s=!1,m=()=>{s||(s=!0,i===m&&(i=null),f(),e.clearTimer(h),e.clearTimer(d),n({kind:c,url:a,title:e.title(),ts:p}))};i=m;let d=e.setTimer(m,2e3);try{f=e.watchTitle(()=>{s||e.title()===o||(e.clearTimer(h),h=e.setTimer(m,100))})}catch{}}let u=()=>i?.();return{reset(c){u(),t="",r=c},view(c,a=e.now()){let p=c==="push"||c==="replace"||c==="pop"||c==="hash";if(p&&r)return;p||(r=!1);let o=e.url();if(!(p&&o===t)){if(c==="replace"&&Aa(o)===Aa(t)){t=o;return}t=o,u(),p?l(c,o,a):n({kind:c,url:o,title:e.title(),ts:a})}},flush:u}}function Aa(e){let t=e.search(/[?#]/);return t<0?e:e.slice(0,t)}var Ce=JSON.stringify,Ct=JSON.parse,td=Object.prototype.toString,qe="********",rd=/passw(or)?d|^pwd$|^pass$/i,pr=/json|text\/|xml|javascript|ecmascript|graphql|x-www-form-urlencoded|csv|yaml/i,j=(e,t)=>e.length>t?e.slice(0,t-1)+"\u2026":e,K=e=>Math.round(e*10)/10;function De(e){return rd.test(e)}function _e(e){try{return new URL(e,location.href).href}catch{return e}}function La(e){let t=e,r="";for(let i of["currentSrc","src","href"]){let n=t[i];if(typeof n=="string"&&n){r=n;break}}if(!r){let i=e.getAttribute("src")||e.getAttribute("href");i&&(r=_e(i))}return r?j(Y(r),1e3):""}function mr(e){let t=new URLSearchParams(e),r=!1;for(let i of new Set(t.keys()))De(i)&&(t.set(i,qe),r=!0);return r?t.toString():e}function Y(e){let t=e.indexOf("?");if(t<0)return e;let r=e.indexOf("#",t),i=e.slice(t+1,r<0?void 0:r),n=mr(i);return n===i?e:e.slice(0,t+1)+n+(r<0?"":e.slice(r))}function ki(e){let t=!1;if(Array.isArray(e))for(let r of e)t=ki(r)||t;else if(e&&typeof e=="object"){let r=e;for(let i of Object.keys(r)){let n=r[i];De(i)&&(typeof n=="string"||typeof n=="number")?(r[i]=qe,t=!0):t=ki(n)||t}}return t}var nd=/^[\w.%[\]-]+=[^&]*(&[\w.%[\]-]+=[^&]*)*$/,id=/multipart\/form-data/i,sd=/^--[^\r\n]{1,200}\r?\ncontent-disposition:\s*form-data/i;function gr(e,t=""){let r=e.trimStart();if(r.startsWith("{")||r.startsWith("["))try{let i=Ct(e);return ki(i)?Ce(i):e}catch{return e}return id.test(t)||sd.test(r)?od(e,t):/x-www-form-urlencoded/i.test(t)||r.length<1e5&&nd.test(r)?mr(e):e}function od(e,t=""){let r=/boundary=(?:"([^"]+)"|([^;,\s]+))/i.exec(t),i=r?.[1]??r?.[2]??/^--([^\r\n]+)/.exec(e.trimStart())?.[1];if(!i)return e;let n=`--${i}`,l=e.split(n),u=!1;for(let c=1;c<l.length;c++){let a=l[c],p=/\r?\n\r?\n/.exec(a);if(!p)continue;let o=a.slice(0,p.index);if(/;\s*filename\*?=/i.test(o))continue;let h=/;\s*name="([^"]*)"/i.exec(o)?.[1]??/;\s*name=([^;\s]+)/i.exec(o)?.[1];if(h===void 0||!De(h))continue;let f=p.index+p[0].length,s=a.endsWith(`\r
|
|
129
|
+
`)?a.length-2:a.endsWith(`
|
|
130
|
+
`)?a.length-1:a.length;l[c]=a.slice(0,f)+qe+a.slice(Math.max(f,s)),u=!0}return u?l.join(n):e}var Ii={depth:4,items:50,string:2e3};function tt(e){if(!e||typeof e!="object")return!1;if(e instanceof Error)return!0;let t=e;return typeof t.message=="string"&&typeof t.name=="string"&&"stack"in t}function ad(e){if(e.nodeType===1){let t=e,r="<"+t.tagName.toLowerCase();t.id&&(r+="#"+t.id);let i=t.getAttribute("class")?.trim();return i&&(r+="."+i.split(/\s+/).slice(0,3).join(".")),r+">"}return e.nodeType===3?`#text "${j(e.textContent??"",60)}"`:e.nodeName}function xt(e,t=Ii){return Et(e,0,new WeakSet,t)}function Et(e,t,r,i){switch(typeof e){case"string":return j(e,i.string);case"number":return Number.isFinite(e)?e:String(e);case"boolean":return e;case"undefined":return"undefined";case"bigint":return`${e}n`;case"symbol":return e.toString();case"function":return`\u0192 ${e.name||"anonymous"}()`}if(e===null)return null;let n=e;if(r.has(n))return"[Circular]";try{if(tt(n))return{name:n.name,message:j(String(n.message),i.string),stack:j(String(n.stack??""),Math.min(4e3,i.string*2))};let l=n;if(typeof l.nodeType=="number"&&typeof l.nodeName=="string")return ad(l);if(n.window===n)return"[Window]";let u=td.call(n).slice(8,-1);if(u==="Date"){let p=n;return Number.isNaN(p.getTime())?"Invalid Date":p.toISOString()}if(u==="RegExp")return String(n);if(u==="Promise")return"[Promise]";if(n instanceof ArrayBuffer||ArrayBuffer.isView(n))return`[${u} ${n.byteLength} bytes]`;if(t>=i.depth)return Array.isArray(n)?`[Array(${n.length})]`:`[${u}]`;if(r.add(n),Array.isArray(n)){let p=n.slice(0,i.items).map(o=>Et(o,t+1,r,i));return n.length>i.items&&p.push(`\u2026 ${n.length-i.items} more`),p}if(u==="Map")return{"[[Map]]":Et([...n].slice(0,i.items),t+1,r,i)};if(u==="Set")return{"[[Set]]":Et([...n].slice(0,i.items),t+1,r,i)};let c={},a=Object.keys(n);for(let p of a.slice(0,i.items))try{c[p]=Et(n[p],t+1,r,i)}catch{c[p]="[unreadable]"}return a.length>i.items&&(c["\u2026"]=`${a.length-i.items} more keys`),c}catch{return"[unserializable]"}}function _a(e,t){if(typeof e=="string")return e;if(tt(e))return`${e.name}: ${e.message}`;if(typeof t=="string")return t;try{return j(Ce(t)??String(t),1e3)}catch{return String(t)}}function Ai(e,t){let r=[],i=0;for(typeof e[0]=="string"&&e[0].includes("%")&&(i=1,r.push(e[0].replace(/%([sdifoOc%])/g,(n,l)=>{if(l==="%")return"%";if(i>=e.length)return n;let u=i++,c=e[u];switch(l){case"c":return"";case"d":case"i":return String(Number.parseInt(String(c),10));case"f":return String(Number(c));default:return _a(c,t[u])}})));i<e.length;i++)r.push(_a(e[i],t[i]));return j(r.join(" "),5e3)}function Pa(e){if(!e)return;let t=e.split(`
|
|
131
|
+
`).filter((r,i)=>i>0&&!r.includes("chrome-extension://")&&!r.includes(hr));return t.length?j(t.join(`
|
|
132
|
+
`),4e3):void 0}var ld=["a","button","input","select","textarea","label","summary","option",'[role="button"]','[role="link"]','[role="menuitem"]','[role="tab"]','[role="checkbox"]','[role="radio"]','[role="switch"]','[role="option"]',"[onclick]","[data-testid]"].join(","),ud=[["name","name"],["type","type"],["role","role"],["aria-label","ariaLabel"],["data-testid","testId"],["placeholder","placeholder"],["title","title"],["alt","alt"]],cd=4,Fa=1e3,fd=30,Ba=history.pushState,$a=history.replaceState,nt=()=>{},je=!1,rt=[],Ua=0,yr=Da({emit:({kind:e,url:t,title:r,ts:i})=>{je&&nt({name:"page_view",kind:e,url:t,title:r,referrer:e==="load"&&document.referrer?Y(document.referrer):void 0,viewport:{w:innerWidth,h:innerHeight}},i)},url:()=>Y(location.href),title:()=>document.title,now:()=>Date.now(),watchTitle:e=>{let t=new MutationObserver(e);return t.observe(document.head??document.documentElement,{subtree:!0,childList:!0,characterData:!0}),()=>t.disconnect()},setTimer:(e,t)=>setTimeout(e,t),clearTimer:e=>clearTimeout(e)});function Wa(e,t){if(nt=e,je)return;je=!0,document.addEventListener("click",Ya,!0),document.addEventListener("change",Xa,!0),document.addEventListener("submit",Ja,!0),addEventListener("popstate",Ha),addEventListener("hashchange",Ga),history.pushState=ja,history.replaceState=Va;let r=document.readyState==="loading";yr.reset(r),r?document.addEventListener("DOMContentLoaded",()=>Le(t),{once:!0}):Le(t)}function za(){je&&(yr.flush(),je=!1,document.removeEventListener("click",Ya,!0),document.removeEventListener("change",Xa,!0),document.removeEventListener("submit",Ja,!0),removeEventListener("popstate",Ha),removeEventListener("hashchange",Ga),history.pushState===ja&&(history.pushState=Ba),history.replaceState===Va&&(history.replaceState=$a))}function Le(e,t=Date.now()){je&&yr.view(e,t)}function qa(){je&&yr.flush()}function ja(...e){Ba.apply(this,e),Ve(()=>Le("push"))}function Va(...e){$a.apply(this,e),Ve(()=>Le("replace"))}var Ha=()=>Ve(()=>Le("pop")),Ga=()=>Ve(()=>Le("hash"));function Ya(e){e.isTrusted&&Ve(()=>{let t=e.composedPath()[0];if(!t||t.nodeType!==1)return;let r=t.closest(ld)??t,i=Di(r),n=Date.now(),l=Y(location.href),u=Math.round(e.clientX),c=Math.round(e.clientY);nt({name:"click",url:l,target:i,x:u,y:c},n),rt=rt.filter(a=>n-a.ts<Fa&&Math.hypot(a.x-u,a.y-c)<fd),rt.push({ts:n,x:u,y:c}),rt.length>=cd&&n>=Ua&&(nt({name:"rage_click",url:l,target:i,x:u,y:c,count:rt.length},n),Ua=n+Fa,rt=[])})}function Xa(e){Ve(()=>{let t=e.composedPath()[0];if(!t||t.nodeType!==1)return;let r=t.tagName;if(r!=="INPUT"&&r!=="SELECT"&&r!=="TEXTAREA"||Ka(t))return;let i=(t.getAttribute("type")??"").toLowerCase(),n={name:"change",url:Y(location.href),target:Di(t)};dd(t)?n.masked=!0:i==="checkbox"||i==="radio"?n.value=t.checked?"checked":"unchecked":i==="file"?n.value=Array.from(t.files??[],l=>l.name).join(", "):n.value=j(String(t.value??""),500),nt(n,Date.now())})}function Ja(e){Ve(()=>{let t=e.target;if(!t||t.nodeType!==1)return;let r=t.getAttribute("action");nt({name:"submit",url:Y(location.href),target:Di(t),action:r?Y(_e(r)):void 0,method:(t.getAttribute("method")??"get").toUpperCase()},Date.now())})}function Ka(e){return e.closest(".rr-block")!==null}function dd(e){return(e.getAttribute("type")??"").toLowerCase()==="password"||e.hasAttribute("data-rr-is-password")||/password/i.test(e.getAttribute("autocomplete")??"")}function Di(e){let t={tag:e.tagName.toLowerCase(),selector:md(e)};e.id&&(t.id=j(e.id,100));let r=e.getAttribute("class")?.trim();r&&(t.classes=j(r.split(/\s+/).slice(0,6).join(" "),200));let i=Ka(e)?"":hd(e);i&&(t.text=i);for(let[n,l]of ud){let u=e.getAttribute(n);u&&(t[l]=j(u,200))}if(t.tag==="a"){let n=e.getAttribute("href");n&&(t.href=Y(_e(n)))}return t}function hd(e){let t=e.tagName;if(t==="INPUT"){let n=(e.getAttribute("type")??"").toLowerCase();return n==="button"||n==="submit"||n==="reset"?j(e.value,120):""}if(t==="SELECT"||t==="TEXTAREA")return"";let r="",i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT);for(let n=i.nextNode();n&&r.length<200;n=i.nextNode()){let l=n.parentElement?.tagName;l==="SCRIPT"||l==="STYLE"||(r+=" "+(n.nodeValue??""))}return j(r.replace(/\s+/g," ").trim(),120)}var pd=/^(css|sc|jsx|emotion)-|[0-9a-f]{5,}|__/i;function md(e){let t=[];for(let r=e;r&&r.nodeType===1&&t.length<5;r=r.parentElement){let i=r.tagName.toLowerCase();if(r.id&&/^[A-Za-z][\w-]*$/.test(r.id)){t.unshift(`${i}#${r.id}`);break}let n=r.getAttribute("data-testid");if(n){t.unshift(`${i}[data-testid="${n.replace(/"/g,'\\"')}"]`);break}let l=i,u=(r.getAttribute("class")??"").trim().split(/\s+/).filter(a=>a&&!pd.test(a)).slice(0,2);u.length&&(l+="."+u.map(a=>CSS.escape(a)).join("."));let c=r.parentElement;if(c){let a=Array.from(c.children).filter(p=>p.tagName===r.tagName);a.length>1&&(l+=`:nth-of-type(${a.indexOf(r)+1})`)}t.unshift(l)}return t.join(" > ")}function Ve(e){try{e()}catch{}}var yd=["log","info","warn","error","debug","trace"],Rt=()=>{},Sr=!1,br=!1,_i=!1,wr=new Map,vr=new Map;function Za(e){Rt=e}function Li(e){Sr=e}function el(){if(br)return;br=!0;let e=console;for(let r of yd){let i=e[r];if(typeof i!="function")continue;let n=function(...l){return Qa(r,l),i.apply(this,l)};wr.set(r,i),vr.set(r,n),e[r]=n}let t=e.assert;if(typeof t=="function"){let r=function(...i){return i[0]||Qa("error",["Assertion failed:",...i.slice(1)]),t.apply(this,i)};wr.set("assert",t),vr.set("assert",r),e.assert=r}addEventListener("error",rl,!0),addEventListener("unhandledrejection",nl)}function tl(){if(!br)return;br=!1;let e=console;for(let[t,r]of vr)e[t]===r&&(e[t]=wr.get(t));vr.clear(),wr.clear(),removeEventListener("error",rl,!0),removeEventListener("unhandledrejection",nl)}function Qa(e,t){if(!(!Sr||_i)){_i=!0;try{let r=t.map(l=>xt(l)),i={level:e,source:"console",text:Ai(t,r),args:r},n=t.find(tt);n?.stack?i.stack=j(String(n.stack),4e3):e==="trace"&&(i.stack=Pa(new Error().stack)),Rt(i,Date.now())}catch{}finally{_i=!1}}}function rl(e){if(Sr)try{if(e instanceof ErrorEvent){let r={level:"error",source:"uncaught",text:e.message||String(e.error),url:e.filename||void 0,line:e.lineno||void 0,col:e.colno||void 0};tt(e.error)&&e.error.stack&&(r.stack=j(String(e.error.stack),4e3)),Rt(r,Date.now());return}let t=e.target;if(t&&t.nodeType===1){let r=La(t);Rt({level:"error",source:"resource",text:`Failed to load <${t.tagName.toLowerCase()}>${r?` ${r}`:""}`,url:r||void 0},Date.now())}}catch{}}function nl(e){if(Sr)try{let t=e.reason,r=xt(t),i={level:"error",source:"unhandledrejection",text:`Uncaught (in promise) ${Ai([t],[r])}`,args:[r]};tt(t)&&t.stack&&(i.stack=j(String(t.stack),4e3)),Rt(i,Date.now())}catch{}}function it(e){return e.includes(": ;")||e.includes(": !important")}function wd(e){let t=[],r=0,i=0,n=0,l=u=>{let c=e.slice(r,u+1).trim();c&&t.push(c),r=u+1};for(let u=0;u<e.length;u++){let c=e[u];if(c==="\\")u++;else if(c==='"'||c==="'")for(u++;u<e.length&&e[u]!==c;u++)e[u]==="\\"&&u++;else if(c==="(")n++;else if(c===")")n=Math.max(0,n-1);else{if(n>0)continue;if(c==="/"&&e[u+1]==="*"){let a=e.indexOf("*/",u+2);u=a<0?e.length:a+1}else c==="{"?i++:c==="}"?(i=Math.max(0,i-1),i===0&&l(u)):c===";"&&i===0&&l(u)}}return l(e.length),t}function il(e,t){let r=[];for(let i of wd(e)){if(!i.includes("var(")||/^@import/i.test(i))continue;let n=t(i);n!==null&&it(n)&&r.push({written:n,source:i})}return r}var vd=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm;function Sd(e,t){return e.replace(vd,(r,i,n,l,u,c)=>{let a=n||u||c,p=i||l||"";if(!a)return r;if(/^(?:[a-z+]+:)?\/\//i.test(a)||/^www\./i.test(a)||/^data:[^,]*,/i.test(a))return`url(${p}${a}${p})`;if(a[0]==="/"){let s=(t.includes("//")?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0];return`url(${p}${s}${a}${p})`}let o=a.split("#")[0],h=a.slice(o.length),f=t.split("#")[0].split("/");f.pop();for(let s of o.split("/"))s===".."?f.pop():s!=="."&&f.push(s);return`url(${p}${f.join("/")}${h}${p})`})}var Ed=e=>e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;");function Er(e,t,r){let i=n=>r===null?n:Sd(n,r);for(let n of t){let l=i(n.written);for(let u of[l,Ed(l)]){let c=e.indexOf(u);if(!(c<0)){e=e.slice(0,c)+i(n.source)+e.slice(c+u.length);break}}}return e}function Cd(e,t){let r=e.attributes?._cssText;if(e.type!==2||e.tagName!=="style"&&e.tagName!=="link"||typeof r!="string"||e.id===void 0||!it(r))return;let i=t.elementCss(e.id,r);return i===r?void 0:{...e.attributes,_cssText:i}}function Pi(e,t){let r=Cd(e,t),i=e.childNodes?.map(l=>Pi(l,t)),n=i?.some((l,u)=>l!==e.childNodes[u]);return!r&&!n?e:{...e,...r&&{attributes:r},...n&&{childNodes:i}}}function xd(e,t,r){let i=t.adds,n=t.attributes,l=i?.map(c=>{let a=Pi(c.node,r);return a===c.node?c:{...c,node:a}});l?.some((c,a)=>c!==i[a])&&(i=l);let u=n?.map(c=>{let a=c.attributes._cssText;if(typeof a!="string"||!it(a))return c;let p=r.elementCss(c.id,a);return p===a?c:{...c,attributes:{...c.attributes,_cssText:p}}});return u?.some((c,a)=>c!==n[a])&&(n=u),i===t.adds&&n===t.attributes?e:{...e,data:{...t,adds:i,attributes:n}}}function Rd(e,t,r){let{id:i,styleIds:n,styles:l}=t;if(i===void 0||!n||!l)return e;let u=!1,c=l.map(a=>{let p=n.indexOf(a.styleId),o=a.rules.map(h=>{if(!it(h.rule))return h;let f=r.adoptedRule(i,p,h.rule);return f===h.rule?h:{...h,rule:f}});return o.every((h,f)=>h===a.rules[f])?a:(u=!0,{...a,rules:o})});return u?{...e,data:{...t,styles:c}}:e}function sl(e,t){let r=e,i=r.data;if(!i)return e;if(r.type===2&&i.node){let n=Pi(i.node,t);return n===i.node?e:{...r,data:{...i,node:n}}}return r.type!==3?e:i.source===0?xd(r,i,t):i.source===15?Rd(r,i,t):e}function ol(e,t,r){return{type:3,timestamp:r,data:{source:0,texts:[],attributes:[{id:e,attributes:{_cssText:t}}],removes:[],adds:[]}}}var ge=CSSStyleSheet.prototype,ll=ge.insertRule,Bi=ge.replace,Tt=ge.replaceSync,Td=CSSStyleSheet,Md=window.fetch,st=!1,Fi,Mt=new WeakMap,ul=new Map,al=new Map,Cr=new Map,Nd=500;function cl(e,t){let r=ll.apply(this,arguments);try{if(st&&typeof e=="string"&&e.includes("var(")&&it(this.cssRules[r].cssText)){let i=Mt.get(this);i?i.add(e):Mt.set(this,new Set([e]))}}catch{}return r}function fl(e,t){st&&(typeof t=="string"&&t.includes("var(")?Mt.set(e,new Set([t])):Mt.delete(e))}function dl(e){return fl(this,e),Bi.apply(this,arguments)}function hl(e){fl(this,e),Tt.apply(this,arguments)}function Nt(){st||(st=!0,ge.insertRule=cl,Bi&&(ge.replace=dl),Tt&&(ge.replaceSync=hl))}function xr(){st&&(st=!1,ge.insertRule===cl&&(ge.insertRule=ll),ge.replace===dl&&(ge.replace=Bi),ge.replaceSync===hl&&(ge.replaceSync=Tt))}var Od=e=>{try{if(!Tt)return null;Fi??=new Td,Tt.call(Fi,e);let t=Fi.cssRules;return t.length===1?t[0].cssText:null}catch{return null}};function $i(e){let t=Cr.get(e);return t||(Cr.size>=Nd&&Cr.clear(),t=il(e,Od),Cr.set(e,t)),t}var Ui=e=>[...e&&Mt.get(e)||[]].flatMap($i);function kd(e){let t=e.href,r=al.get(t);if(!r){let i=e.crossOrigin==="use-credentials"?"include":"same-origin";r=Md.call(window,t,{cache:"force-cache",credentials:i}).then(n=>n.ok?n.text():null).catch(()=>null).then(n=>(ul.set(t,n),n)),al.set(t,r)}return r}function Id(e,t,r,i){if(!i)return t;let n=r.href,l=c=>Er(t,[...$i(c??""),...Ui(r.sheet)],n),u=ul.get(n);return u!==void 0?l(u):(kd(r).then(c=>{let a=l(c);a!==t&&i(ol(e,a,Date.now()))}),t)}function Ad(e,t){return{elementCss(r,i){let n=e(r);if(!n)return i;if(n.nodeName==="LINK")return Id(r,i,n,t);let l=n;return Er(i,[...$i(l.textContent??""),...Ui(l.sheet)],l.baseURI)},adoptedRule(r,i,n){let l=e(r),u=l?.adoptedStyleSheets??l?.shadowRoot?.adoptedStyleSheets;return Er(n,Ui(u?.[i]),null)}}}function pl(e,t){let r=Ad(e,t);return{name:"tabtape/css-source",eventProcessor:i=>sl(i,r),options:{}}}var Dd="data-tabtape-sandbox";function gl(e){return!!e&&("srcdoc"in e||"sandbox"in e)}function yl(e){let{srcdoc:t,sandbox:r,...i}=e;return r!==void 0&&(i[Dd]=r),i}function Wi(e){let t=e.attributes,r=e.childNodes,i=!1;if(gl(t)&&(t=yl(t),i=!0),r){let n=r.map(Wi);n.some((l,u)=>l!==r[u])&&(r=n,i=!0)}return i?{...e,attributes:t,childNodes:r}:e}var _d=2,Ld=3,Pd=0;function Fd(e){let t=e,r=t.data;if(!r)return e;if(t.type===_d&&r.node){let i=Wi(r.node);return i===r.node?e:{...t,data:{...r,node:i}}}if(t.type===Ld&&r.source===Pd){let i=!1,n=r.adds?.map(u=>{let c=Wi(u.node);return c===u.node?u:(i=!0,{...u,node:c})}),l=r.attributes?.map(u=>gl(u.attributes)?(i=!0,{...u,attributes:yl(u.attributes)}):u);return i?{...t,data:{...r,adds:n,attributes:l}}:e}return e}var bl={name:"tabtape/iframe-attrs",eventProcessor:Fd,options:{}};function zi(e,t){return{recordAfter:"DOMContentLoaded",maskAllInputs:!1,maskInputOptions:{password:!0},inlineStylesheet:!0,collectFonts:!1,recordCanvas:!1,recordCrossOriginIframes:!0,sampling:{mousemove:50,scroll:150,media:800,input:"last"},slimDOMOptions:{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:!0,headMetaDescKeywords:!0},checkoutEveryNms:e.checkoutEveryNms>0?e.checkoutEveryNms:void 0,errorHandler:()=>!0,plugins:[bl,pl(r=>ae.mirror.getNode(r),t)]}}function wl(e){return{...zi(e),checkoutEveryNms:void 0,maskInputOptions:{password:!0,text:!0,tel:!0,number:!0},maskInputFn:(t,r)=>r?.type==="password"||r&&Oa(r)?"*".repeat(t.length):t}}function vl(e){let t,r=EventTarget.prototype.dispatchEvent,i=()=>r.call(document,new CustomEvent(he.hello));function n(){try{ae.takeFullSnapshot(!0)}catch{}}function l(){try{t?.()}catch{}t=void 0,xr()}Nt(),document.addEventListener(he.control,u=>{let c;try{c=Ct(String(u.detail))}catch{return}c.cmd==="start"?t||(Nt(),t=ae(wl(c.options))??(()=>{})):c.cmd==="checkout"?t&&n():l()}),addEventListener("pageshow",u=>{u.persisted&&t&&n()}),Object.defineProperty(window,e,{value:{hello:i,get active(){return t!==void 0}},configurable:!0}),i()}var Ud=5e3,Bd=setInterval.bind(globalThis),$d=clearInterval.bind(globalThis),Sl=()=>{},ot;function El(e){Sl=e,ot===void 0&&Rl()&&(Rr(),ot=Bd(Rr,Ud))}function Cl(){ot!==void 0&&Rr()}function xl(){ot!==void 0&&(Rr(),$d(ot),ot=void 0)}function Rr(){try{let e=Rl();if(!e)return;Sl(zd(e,Wd(),Y(location.href)),Date.now())}catch{}}function Rl(){try{let e=performance.memory;return e&&typeof e.usedJSHeapSize=="number"?e:void 0}catch{return}}function Wd(){try{return document.getElementsByTagName("*").length}catch{return}}function zd(e,t,r){let i={kind:"memory",used:qi(e.usedJSHeapSize),total:qi(e.totalJSHeapSize),limit:qi(e.jsHeapSizeLimit),url:r};return t!==void 0&&(i.nodes=t),i}var qi=e=>Number.isFinite(e)&&e>0?Math.round(e):0;function Tl(e){let t=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t+=1:i<2048?t+=2:jd(e,r,i)?(t+=4,r++):t+=3}return t}function jd(e,t,r){return r>=55296&&r<=56319&&t+1<e.length&&(e.charCodeAt(t+1)&64512)===56320}var Ml=Symbol("timeout");async function ji(e,t,r=0,i=15e3){let n={text:"",bytes:0,truncated:!1,timedOut:!1,countStopped:!1};if(!e)return n;let l=e.getReader(),u=new TextDecoder,c=performance.now()+i;try{for(;;){let a=c-performance.now(),p,o=await Promise.race([l.read(),new Promise(h=>{p=setTimeout(()=>h(Ml),Math.max(0,a))})]);if(clearTimeout(p),o===Ml){n.timedOut=!0;break}if(o.done){n.truncated||(n.text+=u.decode());break}if(n.bytes+=o.value.byteLength,n.truncated||(n.text+=u.decode(o.value,{stream:!0}),n.text.length>t&&(n.text=n.text.slice(0,t),n.truncated=!0)),n.truncated&&n.bytes>=r){n.countStopped=r>0;break}}}catch(a){if(!n.truncated)throw a;n.failed=a}finally{l.cancel().catch(()=>{})}return n}var kl=new Set([101,204,205,304]),Hi=window.fetch,ye=XMLHttpRequest.prototype,Il=ye.open,Al=ye.send,Dl=ye.setRequestHeader,Tr=Navigator.prototype,Xi=Tr.sendBeacon,kr=()=>{},be={captureBodies:!0,maxBodyChars:1e6},Oe=!1,Mr=!1,_l=0,kt=!1,Hd=0,He,It=new Map,Nr=new WeakMap,Ir=()=>`${Date.now().toString(36)}-${(++Hd).toString(36)}`;function Ji(e,t){be=e,kr=t}function Ar(e){Oe=e}function Ll(e=!1){Mr||(Mr=!0,_l=performance.now(),kt=e,window.fetch=Fl,ye.open=Ul,ye.send=$l,ye.setRequestHeader=Bl,typeof Xi=="function"&&(Tr.sendBeacon=Wl),Kd())}function Ki(){Mr&&(Mr=!1,window.fetch===Fl&&(window.fetch=Hi),ye.open===Ul&&(ye.open=Il),ye.send===$l&&(ye.send=Al),ye.setRequestHeader===Bl&&(ye.setRequestHeader=Dl),Tr.sendBeacon===Wl&&(Tr.sendBeacon=Xi),He?.disconnect(),He=void 0,It.clear())}function Pl(){let e=Oe;Oe=!0;try{let t=performance.getEntriesByType("navigation")[0];t&&(kt=!1,Or(t,!0))}catch{}finally{Oe=e}}function Qi(){try{for(let t of He?.takeRecords()??[])Or(t);let e=performance.getEntriesByType("navigation")[0];e&&!kt&&Or(e,!0)}catch{}for(let e of[...It.values()])e.data.pending=!0,Dr(e)}function Dr(e){e.done||(e.done=!0,It.delete(e.data.id),e.data.duration=K(performance.now()-e.t0),kr(e.data,e.ts))}function Gd(e){let t={data:e,ts:Date.now(),t0:performance.now(),done:!1};return It.set(e.id,t),t}function Fl(e,t){let r=arguments;if(!Oe)return Hi.apply(this,r);let i;try{i=Yd(e,t)}catch{}let n=Hi.apply(this,r);if(i){let l=i;n.then(u=>Xd(l,u),u=>{l.data.error=Yi(u),Dr(l)})}return n}function Yd(e,t){let r=e instanceof Request?e:void 0,i=r?r.url:e instanceof URL?e.href:String(e),n={id:Ir(),kind:"fetch",method:String(t?.method??r?.method??"GET").toUpperCase(),url:Y(_e(i))},l=Qd(r?.headers,t?.headers);l&&(n.reqHeaders=l);let u=Gd(n);if(be.captureBodies){let c=l?.["content-type"];t?.body!=null?Ot(n,Zi(t.body,c)):r?.body&&!r.bodyUsed&&(u.reqBody=ji(r.clone().body,be.maxBodyChars).then(a=>Ot(n,{text:gr(a.text,c),truncated:a.truncated}),()=>Ot(n,{note:"unreadable"})))}return u}async function Xd(e,t){let r=e.data;try{r.ttfb=K(performance.now()-e.t0),r.status=t.status,t.statusText&&(r.statusText=t.statusText),r.resHeaders=Gi(t.headers);let i=t.headers.get("content-type")??"";if(i&&(r.mime=i),t.type==="opaque"||t.type==="opaqueredirect")r.resBodyNote="opaque response (no-cors)";else if(be.captureBodies&&r.method!=="HEAD"&&!kl.has(t.status))if(/event-stream/i.test(i))r.resBodyNote="event stream, not captured";else if(!i||pr.test(i)){let n=await ji(t.clone().body,be.maxBodyChars,67108864);r.resBody=n.text,r.resSize=n.bytes,n.truncated&&(r.resBodyTruncated=!0),n.timedOut?r.resBodyNote=`body still streaming after ${15e3/1e3}s, captured partially`:n.countStopped?r.resBodyNote=`over ${67108864/(1024*1024)} MB, size not measured further`:n.failed!==void 0&&(r.resBodyNote=`body broke off: ${Yi(n.failed)}`)}else{let n=t.headers.get("content-length");r.resBodyNote=`binary (${i}${n?`, ${n} bytes`:""})`}await e.reqBody}catch(i){r.resBodyNote=`unreadable: ${Yi(i)}`}Dr(e)}function Ul(e,t){if(Oe)try{Nr.set(this,{data:{id:Ir(),kind:"xhr",method:String(e).toUpperCase(),url:Y(_e(String(t)))},ts:0,t0:0,done:!1})}catch{}else Nr.delete(this);return Il.apply(this,arguments)}function Bl(e,t){let r=Nr.get(this);return r&&((r.data.reqHeaders??={})[String(e).toLowerCase()]=String(t)),Dl.call(this,e,t)}function $l(e){let t=Nr.get(this);if(t&&Oe&&t.t0===0)try{t.ts=Date.now(),t.t0=performance.now(),It.set(t.data.id,t),be.captureBodies&&e!=null&&Ot(t.data,Zi(e,t.data.reqHeaders?.["content-type"]));let r=this;r.addEventListener("readystatechange",()=>{r.readyState===2&&t.data.ttfb===void 0&&(t.data.ttfb=K(performance.now()-t.t0))}),r.addEventListener("error",()=>t.data.error??="network error"),r.addEventListener("abort",()=>t.data.error??="aborted"),r.addEventListener("timeout",()=>t.data.error??="timeout"),r.addEventListener("loadend",()=>{try{Jd(r,t.data)}catch{}Dr(t)})}catch{}return Al.apply(this,arguments)}function Jd(e,t){t.status=e.status,e.statusText&&(t.statusText=e.statusText),t.resHeaders=Zd(e.getAllResponseHeaders());let r=e.getResponseHeader("content-type")??"";if(r&&(t.mime=r),!(!be.captureBodies||t.error||kl.has(e.status)))switch(e.responseType){case"":case"text":{if(r&&!pr.test(r)){t.resBodyNote=`binary (${r})`;return}Ol(t,e.responseText);return}case"json":Ol(t,Ce(e.response)??"null");return;case"arraybuffer":t.resBodyNote=`ArrayBuffer, ${e.response?.byteLength??0} bytes`;return;case"blob":t.resBodyNote=`Blob, ${e.response?.size??0} bytes`;return;default:t.resBodyNote=e.responseType}}function Ol(e,t){e.resSize=Tl(t),t.length>be.maxBodyChars?(e.resBody=t.slice(0,be.maxBodyChars),e.resBodyTruncated=!0):e.resBody=t}function Wl(e,t){let r=Xi.apply(this,arguments);if(Oe)try{let i={id:Ir(),kind:"beacon",method:"POST",url:Y(_e(String(e)))};r?i.statusText="queued":i.error="rejected by the browser",be.captureBodies&&t!=null&&Ot(i,Zi(t)),kr(i,Date.now())}catch{}return r}function Kd(){try{He=new PerformanceObserver(e=>{for(let t of e.getEntries())Or(t)}),He.observe({type:"resource",buffered:!0}),He.observe({type:"navigation",buffered:!0})}catch{He=void 0}}function Or(e,t=!1){if(!Oe)return;let r=e;if(r.entryType==="resource"){if(r.initiatorType==="fetch"||r.initiatorType==="xmlhttprequest"||r.initiatorType==="beacon"||r.startTime<_l-50||r.name.startsWith("chrome-extension:")||r.name.startsWith(location.origin+hr)||r.initiatorType==="other"&&/\/favicon\.ico($|\?)/.test(r.name))return}else if(r.entryType==="navigation"){if(kt||r.duration===0&&!t)return;kt=!0}else return;let i={id:Ir(),kind:r.entryType==="navigation"?"navigation":"resource",method:"GET",url:Y(r.name),duration:K(r.duration)};r.entryType==="navigation"?(i.navType=r.type,r.duration===0&&(i.pending=!0)):i.initiator=r.initiatorType,r.responseStatus&&(i.status=r.responseStatus),r.responseStart>0&&(i.ttfb=K(r.responseStart-r.startTime)),r.transferSize&&(i.transferSize=r.transferSize),r.decodedBodySize&&(i.resSize=r.decodedBodySize),r.contentType&&(i.mime=r.contentType),kr(i,Math.round(performance.timeOrigin+r.startTime))}function Ot(e,t){t.text!==void 0&&(e.reqBody=t.text),t.note&&(e.reqBodyNote=t.note),t.truncated&&(e.reqBodyTruncated=!0)}function Vi(e){return e.length>be.maxBodyChars?{text:e.slice(0,be.maxBodyChars),truncated:!0}:{text:e}}function Zi(e,t=""){try{if(typeof e=="string")return Vi(gr(e,t));if(e instanceof URLSearchParams)return Vi(mr(e.toString()));if(e instanceof FormData){let r={};return e.forEach((i,n)=>{let l=typeof i=="string"?De(n)?qe:j(i,1e4):`[File ${i.name}, ${i.size} bytes${i.type?`, ${i.type}`:""}]`,u=r[n];r[n]=u===void 0?l:Array.isArray(u)?[...u,l]:[u,l]}),{text:Ce(r),note:"FormData"}}if(e instanceof Blob)return{note:`Blob, ${e.size} bytes${e.type?`, ${e.type}`:""}`};if(e instanceof ArrayBuffer||ArrayBuffer.isView(e)){let r=e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength);return pr.test(t)?Vi(gr(new TextDecoder().decode(r),t)):{note:`binary, ${r.byteLength} bytes`}}return e instanceof ReadableStream?{note:"stream"}:e instanceof Document?{note:"Document"}:{note:typeof e}}catch{return{note:"unreadable"}}}function Gi(e){if(!e)return;let t={};try{if(e instanceof Headers)e.forEach((r,i)=>t[i]=r);else if(Array.isArray(e))for(let[r,i]of e)t[String(r).toLowerCase()]=String(i);else for(let[r,i]of Object.entries(e))t[r.toLowerCase()]=String(i)}catch{}return Object.keys(t).length?t:void 0}function Qd(e,t){let r=Gi(e),i=Gi(t);return r||i?{...r,...i}:void 0}function Zd(e){let t={};for(let r of e.trim().split(/[\r\n]+/)){let i=r.indexOf(":");i>0&&(t[r.slice(0,i).trim().toLowerCase()]=r.slice(i+1).trim())}return Object.keys(t).length?t:void 0}function Yi(e){return e instanceof Error?`${e.name}: ${e.message}`:String(e)}var Lr=class{t;o=0;i=[];u(t){if(t.hadRecentInput)return;let r=this.i[0],i=this.i.at(-1);this.o&&r&&i&&t.startTime-i.startTime<1e3&&t.startTime-r.startTime<5e3?(this.o+=t.value,this.i.push(t)):(this.o=t.value,this.i=[t]),this.t?.(t)}},ct=()=>{let e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},Pr=e=>{if(document.readyState==="loading")return"loading";let t=ct();if(t){if(e<t.domInteractive)return"loading";if(t.domContentLoadedEventStart===0||e<t.domContentLoadedEventStart)return"dom-interactive";if(t.domComplete===0||e<t.domComplete)return"dom-content-loaded"}return"complete"},th=e=>{let t=e.nodeName;return e.nodeType===1?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},ss=e=>{let t="";try{for(;e?.nodeType!==9;){let r=e,i=r.id?"#"+r.id:[th(r),...Array.from(r.classList).sort()].join(".");if(t.length+i.length>99)return t||i;if(t=t?i+">"+t:i,r.id)break;e=r.parentNode}}catch{}return t},zl=new WeakMap;function lt(e,t){let r=zl.get(t);return r||(r=new WeakMap,zl.set(t,r)),r.get(e)||r.set(e,new t),r.get(e)}var Ql=-1,Zl=()=>Ql,ft=e=>{addEventListener("pageshow",t=>{t.persisted&&(Ql=t.timeStamp,e(t))},!0)},Re=(e,t,r,i)=>{let n,l;return u=>{t.value>=0&&(u||i)&&(l=t.value-(n??0),(l||n===void 0)&&(n=t.value,t.delta=l,t.rating=((c,a)=>c>a[1]?"poor":c>a[0]?"needs-improvement":"good")(t.value,r),e(t)))}},os=e=>{requestAnimationFrame(()=>requestAnimationFrame(e))},At=()=>ct()?.activationStart??0,Te=(e,t=-1)=>{let r=ct(),i="navigate";return Zl()>=0?i="back-forward-cache":r&&(document.prerendering||At()>0?i="prerender":document.wasDiscarded?i="restore":r.type&&(i=r.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:i}},ut=(e,t,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let i=new PerformanceObserver(n=>{queueMicrotask(()=>{t(n.getEntries())})});return i.observe({type:e,buffered:!0,...r}),i}}catch{}},as=e=>{let t=!1;return()=>{t||(e(),t=!0)}},at=-1,eu=new Set,ql=()=>document.visibilityState!=="hidden"||document.prerendering?1/0:0,ts=e=>{if(document.visibilityState==="hidden"){if(e.type==="visibilitychange")for(let t of eu)t();isFinite(at)||(at=e.type==="visibilitychange"?e.timeStamp:0,removeEventListener("prerenderingchange",ts,!0))}},Br=()=>{if(at<0){let e=At();at=(document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").find(r=>r.name==="hidden"&&r.startTime>=e)?.startTime)??ql(),addEventListener("visibilitychange",ts,!0),addEventListener("prerenderingchange",ts,!0),ft(()=>{setTimeout(()=>{at=ql()})})}return{get firstHiddenTime(){return at},onHidden(e){eu.add(e)}}},$r=e=>{document.prerendering?addEventListener("prerenderingchange",e,!0):e()},jl=[1800,3e3],tu=(e,t={})=>{$r(()=>{let r=Br(),i,n=Te("FCP"),l=ut("paint",u=>{for(let c of u)c.name==="first-contentful-paint"&&(l.disconnect(),c.startTime<r.firstHiddenTime&&(n.value=Math.max(c.startTime-At(),0),n.entries.push(c),i(!0)))});l&&(i=Re(e,n,jl,t.reportAllChanges),ft(u=>{n=Te("FCP"),i=Re(e,n,jl,t.reportAllChanges),os(()=>{n.value=performance.now()-u.timeStamp,i(!0)})}))})},Vl=[.1,.25],Hl=e=>e.find(t=>t.node?.nodeType===1)||e[0],ru=(e,t={})=>{let r=lt(t=Object.assign({},t),Lr),i=new WeakMap;r.t=n=>{if(n?.sources?.length){let l=Hl(n.sources),u=l?.node;if(u){let c=t.generateTarget?.(u)??ss(u);i.set(l,c)}}},((n,l={})=>{let u=Br();tu(as(()=>{let c,a=Te("CLS",0),p=lt(l,Lr),o=f=>{for(let s of f)p.u(s);p.o>a.value&&(a.value=p.o,a.entries=p.i,c())},h=ut("layout-shift",o);h&&(c=Re(n,a,Vl,l.reportAllChanges),u.onHidden(()=>{o(h.takeRecords()),c(!0)}),ft(()=>{p.o=0,a=Te("CLS",0),c=Re(n,a,Vl,l.reportAllChanges),os(c)}),setTimeout(c))}))})(n=>{e((l=>{let u={};if(l.entries.length){let c=l.entries.reduce((a,p)=>a.value>p.value?a:p);if(c?.sources?.length){let a=Hl(c.sources);a&&(u={largestShiftTarget:i.get(a),largestShiftTime:c.startTime,largestShiftValue:c.value,largestShiftSource:a,largestShiftEntry:c,loadState:Pr(c.startTime)})}}return Object.assign(l,{attribution:u})})(n))},t)},nu=(e,t={})=>{tu(r=>{e((i=>{let n={timeToFirstByte:0,firstByteToFCP:i.value,loadState:Pr(Zl())};if(i.entries.length){let l=ct(),u=i.entries.at(-1);if(l){let c=l.activationStart||0,a=Math.max(0,l.responseStart-c);n={timeToFirstByte:a,firstByteToFCP:i.value-a,loadState:Pr(i.entries[0].startTime),navigationEntry:l,fcpEntry:u}}}return Object.assign(i,{attribution:n})})(r))},t)},iu=0,es=1/0,_r=0,rh=e=>{for(let t of e)t.interactionId&&(es=Math.min(es,t.interactionId),_r=Math.max(_r,t.interactionId),iu=_r?(_r-es)/7+1:0)},rs,Gl=()=>rs?iu:performance.interactionCount??0,nh=()=>{"interactionCount"in performance||rs||(rs=ut("event",rh,{durationThreshold:0}))},Yl=0,Fr=class{l=[];h=new Map;m;p;v(){Yl=Gl(),this.l.length=0,this.h.clear()}M(){let t=Math.min(this.l.length-1,Math.floor((Gl()-Yl)/50));return this.l[t]}u(t){if(this.m?.(t),!t.interactionId&&t.entryType!=="first-input")return;let r=this.l.at(-1),i=this.h.get(t.interactionId);if(i||this.l.length<10||t.duration>r.T){if(i?t.duration>i.T?(i.entries=[t],i.T=t.duration):t.duration===i.T&&t.startTime===i.entries[0].startTime&&i.entries.push(t):(i={id:t.interactionId,entries:[t],T:t.duration},this.h.set(i.id,i),this.l.push(i)),this.l.sort((n,l)=>l.T-n.T),this.l.length>10){let n=this.l.splice(10);for(let l of n)this.h.delete(l.id)}this.p?.(i)}}},ns=e=>{let t=globalThis.requestIdleCallback||setTimeout,r=globalThis.cancelIdleCallback||clearTimeout;if(document.visibilityState==="hidden")e();else{let i=as(e),n=-1,l=()=>{r(n),i()};addEventListener("visibilitychange",l,{once:!0,capture:!0}),n=t(()=>{removeEventListener("visibilitychange",l,{capture:!0}),i()})}},Xl=[200,500],su=(e,t={})=>{let r=lt(t=Object.assign({},t),Fr),i=[],n=[],l=0,u=new WeakMap,c=new WeakMap,a=!1,p=()=>{a||(ns(o),a=!0)},o=()=>{let s=new Set(r.l.map(g=>u.get(g.entries[0]))),m=n.length-10;n=n.filter((g,E)=>E>=m||s.has(g));let d=new Set;for(let g of n){let E=h(g.startTime,g.processingEnd);for(let b of E)d.add(b)}i=i.filter(g=>g.startTime>l||d.has(g)),a=!1};r.m=s=>{let m=s.startTime+s.duration,d;l=Math.max(l,s.processingEnd);for(let g=n.length-1;g>=0;g--){let E=n[g];if(Math.abs(m-E.renderTime)<=8){d=E,d.startTime=Math.min(s.startTime,d.startTime),d.processingStart=Math.min(s.processingStart,d.processingStart),d.processingEnd=Math.max(s.processingEnd,d.processingEnd),t.includeProcessedEventEntries!==!1&&d.entries.push(s);break}}d||(d={startTime:s.startTime,processingStart:s.processingStart,processingEnd:s.processingEnd,renderTime:m,entries:t.includeProcessedEventEntries!==!1?[s]:[]},n.push(d)),(s.interactionId||s.entryType==="first-input")&&u.set(s,d),p()},r.p=s=>{if(!c.get(s)){let m=s.entries.find(d=>d.target)?.target;if(m){let d=t.generateTarget?.(m)??ss(m);c.set(s,d)}else{let d=s.entries.find(g=>g.targetSelector)?.targetSelector;d&&c.set(s,d)}}};let h=(s,m)=>{let d=[];for(let g of i)if(!(g.startTime+g.duration<s)){if(g.startTime>m)break;d.push(g)}return d},f=s=>{let m=s.entries[0],d=u.get(m),g=m.processingStart,E=Math.max(m.startTime+m.duration,g),b=Math.min(d.processingEnd,E),v=d.entries.sort((S,x)=>S.processingStart-x.processingStart),C=h(m.startTime,b),w=r.h.get(m.interactionId),y={interactionTarget:c.get(w),interactionType:m.name.startsWith("key")?"keyboard":"pointer",interactionTime:m.startTime,nextPaintTime:E,processedEventEntries:v,longAnimationFrameEntries:C,inputDelay:g-m.startTime,processingDuration:b-g,presentationDelay:E-b,loadState:Pr(m.startTime),longestScript:void 0,totalScriptDuration:void 0,totalStyleAndLayoutDuration:void 0,totalPaintDuration:void 0,totalUnattributedDuration:void 0};return(S=>{if(!S.longAnimationFrameEntries?.length)return;let x=S.interactionTime,M=S.inputDelay,T=S.processingDuration,I,k,R=0,te=0,re=0,U=0;for(let Q of S.longAnimationFrameEntries){te=te+Q.startTime+Q.duration-Q.styleAndLayoutStart;for(let $ of Q.scripts){let B=$.startTime+$.duration;if(B<x)continue;let ue=B-Math.max(x,$.startTime),N=$.duration?ue/$.duration*$.forcedStyleAndLayoutDuration:0;R+=ue-N,te+=N,ue>U&&(k=$.startTime<x+M?"input-delay":$.startTime>=x+M+T?"presentation-delay":"processing-duration",I=$,U=ue)}}let P=S.longAnimationFrameEntries.at(-1),V=P?P.startTime+P.duration:0;V>=x+M+T&&(re=S.nextPaintTime-V),I&&k&&(S.longestScript={entry:I,subpart:k,intersectingDuration:U}),S.totalScriptDuration=R,S.totalStyleAndLayoutDuration=te,S.totalPaintDuration=re,S.totalUnattributedDuration=S.nextPaintTime-x-R-te-re})(y),Object.assign(s,{attribution:y})};ut("long-animation-frame",s=>{i=i.concat(s),p()}),((s,m={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;let d=Br();$r(()=>{nh();let g,E=Te("INP"),b=lt(m,Fr),v=w=>{ns(()=>{for(let S of w)b.u(S);let y=b.M();y&&y.T!==E.value&&(E.value=y.T,E.entries=y.entries,g())})},C=ut("event",v,{durationThreshold:m.durationThreshold??40});g=Re(s,E,Xl,m.reportAllChanges),C&&(C.observe({type:"first-input",buffered:!0}),d.onHidden(()=>{v(C.takeRecords()),g(!0)}),ft(()=>{b.v(),E=Te("INP"),g=Re(s,E,Xl,m.reportAllChanges)}))})})(s=>{e(f(s))},t)},Ur=class{m;u(t){this.m?.(t)}},Jl=[2500,4e3],ou=(e,t={})=>{let r=lt(t=Object.assign({},t),Ur),i=new WeakMap;r.m=n=>{let l=n.element;if(l){let u=t.generateTarget?.(l)??ss(l);i.set(n,u)}else n.id&&i.set(n,`#${n.id}`)},((n,l={})=>{$r(()=>{let u=Br(),c,a=Te("LCP"),p=lt(l,Ur),o=f=>{l.reportAllChanges||(f=f.slice(-1));for(let s of f)p.u(s),s.startTime<u.firstHiddenTime&&(a.value=Math.max(s.startTime-At(),0),a.entries=[s],c())},h=ut("largest-contentful-paint",o);if(h){c=Re(n,a,Jl,l.reportAllChanges);let f=as(()=>{o(h.takeRecords()),h.disconnect(),c(!0)}),s=m=>{m.isTrusted&&(ns(f),removeEventListener(m.type,s,{capture:!0}))};for(let m of["keydown","click","visibilitychange"])addEventListener(m,s,{capture:!0});ft(m=>{a=Te("LCP"),c=Re(n,a,Jl,l.reportAllChanges),os(()=>{a.value=performance.now()-m.timeStamp,c(!0)})})}})})(n=>{e((l=>{let u={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:l.value};if(l.entries.length){let c=l.entries.at(-1),a=c.url&&performance.getEntriesByType("resource").find(o=>o.name===c.url);u.target=i.get(c),u.lcpEntry=c,c.url&&(u.url=c.url),a&&(u.lcpResourceEntry=a);let p=ct();if(p){let o=p.activationStart||0,h=Math.max(0,p.responseStart-o),f=Math.max(h,a?(a.requestStart||a.startTime)-o:0),s=Math.min(l.value,Math.max(f,a?a.responseEnd-o:0));u={...u,timeToFirstByte:h,resourceLoadDelay:f-h,resourceLoadDuration:s-f,elementRenderDelay:l.value-s,navigationEntry:p}}}return Object.assign(l,{attribution:u})})(n))},t)},Kl=[800,1800],is=e=>{document.prerendering?$r(()=>is(e)):document.readyState!=="complete"?addEventListener("load",()=>is(e),!0):setTimeout(e)},au=(e,t={})=>{((r,i={})=>{let n=Te("TTFB"),l=Re(r,n,Kl,i.reportAllChanges);is(()=>{let u=ct();u&&(n.value=Math.max(u.responseStart-At(),0),n.entries=[u],l(!0),ft(()=>{n=Te("TTFB",0),l=Re(r,n,Kl,i.reportAllChanges),l(!0)}))})})(r=>{e((i=>{let n={waitingDuration:0,cacheDuration:0,dnsDuration:0,connectionDuration:0,requestDuration:0};if(i.entries.length){let l=i.entries[0],u=l.activationStart||0,c=Math.max((l.workerStart||l.fetchStart)-u,0),a=Math.max(l.domainLookupStart-u,0),p=Math.max(l.connectStart-u,0),o=Math.max(l.connectEnd-u,0);n={waitingDuration:c,cacheDuration:a-c,dnsDuration:p-a,connectionDuration:o-p,requestDuration:i.value-o,navigationEntry:l}}return Object.assign(i,{attribution:n})})(r))},t)};var lu="long-animation-frame",ih=5,Wr=()=>{},Ge=!1,uu=!1,_t,fu=0,ls=new Map;function du(e,t){if(Wr=e,Ge)return;Ge=!0;let r=Date.now();for(let i of ls.values())Me(()=>Wr(i,r));uu||(uu=!0,sh()),oh(t?0:performance.now())}function us(){let e=_t;Ge&&e&&Me(()=>pu(e.takeRecords()))}function hu(){Ge&&(us(),Ge=!1,_t?.disconnect(),_t=void 0)}function sh(){addEventListener("pageshow",t=>t.persisted&&ls.clear(),!0);let e={reportAllChanges:!0};Me(()=>ou(Dt,e)),Me(()=>ru(Dt,e)),Me(()=>su(Dt,e)),Me(()=>nu(Dt,e)),Me(()=>au(Dt,e))}function Dt(e){Me(()=>{let t=ah(e,{timeOrigin:performance.timeOrigin,now:performance.now(),url:Y(location.href)});ls.set(t.name,t),Ge&&Wr(t,Date.now())})}function oh(e){fu=e,!_t&&Me(()=>{if(!PerformanceObserver.supportedEntryTypes?.includes(lu))return;let t=new PerformanceObserver(r=>Me(()=>pu(r.getEntries())));t.observe({type:lu,buffered:!0}),_t=t})}function pu(e){if(!Ge)return;let t=Y(location.href);for(let r of e){let i=r;i.startTime+i.duration<fu||Wr(lh(i,t),Math.round(performance.timeOrigin+i.startTime))}}function ah(e,t){let r=c=>Math.round(t.timeOrigin+c),i=()=>r(e.entries.at(-1)?.startTime??t.now),n={};switch(e.name){case"LCP":{let c=e.attribution;n.target=c.target,c.url&&(n.url=Y(c.url)),n.timeToFirstByte=K(c.timeToFirstByte),n.resourceLoadDelay=K(c.resourceLoadDelay),n.resourceLoadDuration=K(c.resourceLoadDuration),n.elementRenderDelay=K(c.elementRenderDelay),n.time=i();break}case"CLS":{let c=e.attribution;n.target=c.largestShiftTarget,c.largestShiftValue!==void 0&&(n.largestShiftValue=cu(c.largestShiftValue)),c.largestShiftTime!==void 0&&(n.time=r(c.largestShiftTime)),n.loadState=c.loadState;break}case"INP":{let c=e.attribution;n.target=c.interactionTarget||void 0,n.interactionType=c.interactionType,n.inputDelay=K(c.inputDelay),n.processingDuration=K(c.processingDuration),n.presentationDelay=K(c.presentationDelay),n.loadState=c.loadState,n.time=r(c.interactionTime);break}case"FCP":{let c=e.attribution;n.timeToFirstByte=K(c.timeToFirstByte),n.firstByteToFCP=K(c.firstByteToFCP),n.loadState=c.loadState,n.time=i();break}case"TTFB":{let c=e.attribution;n.waitingDuration=K(c.waitingDuration),n.cacheDuration=K(c.cacheDuration),n.dnsDuration=K(c.dnsDuration),n.connectionDuration=K(c.connectionDuration),n.requestDuration=K(c.requestDuration);break}}let l={kind:"vital",name:e.name,value:e.name==="CLS"?cu(e.value):K(e.value),rating:e.rating,id:e.id,navigationType:e.navigationType,url:t.url},u=uh(n);return Object.keys(u).length&&(l.attribution=u),l}function lh(e,t){let r=[...e.scripts??[]].sort((i,n)=>n.duration-i.duration).slice(0,ih).map(i=>{let n={duration:Math.round(i.duration)};return i.sourceURL&&(n.url=j(Y(i.sourceURL),2e3)),i.sourceFunctionName&&(n.fn=j(i.sourceFunctionName,200)),i.invoker&&(n.invoker=j(i.invoker,500)),i.invokerType&&(n.invokerType=i.invokerType),n});return{kind:"loaf",duration:Math.round(e.duration),blockingDuration:Math.round(e.blockingDuration),scripts:r,url:t}}var cu=e=>Math.round(e*1e4)/1e4;function uh(e){let t={};for(let[r,i]of Object.entries(e))i!==void 0&&(t[r]=i);return t}function Me(e){try{e()}catch{}}var Su="tabtape:track",Eu="tabtape:identify",Cu="tabtape:state",cs=100,zr=200,xu=8*1024,mu={calls:100,perMs:1e3},fh=[Ii,{depth:4,items:50,string:500},{depth:4,items:20,string:200},{depth:3,items:10,string:100},{depth:2,items:10,string:50}],qr="\u2026";function dh(e){if(typeof e!="string")return;let t=e.trim();return t&&t.length<=cs*2&&[...t].length<=cs?t:void 0}function hh(e){let t;if(typeof e=="string")t=e.trim();else if(typeof e=="number"&&Number.isFinite(e)||typeof e=="bigint")t=String(e);else return;if(!t)return;if(t.length<=zr)return t;let r=/[\uD800-\uDBFF]/.test(t[zr-1])?zr-1:zr;return t.slice(0,r)}function ph(e){let t=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t+=1:i<2048?t+=2:i>=55296&&i<=56319&&(e.charCodeAt(r+1)&64512)===56320?(t+=4,r++):t+=3}return t}function Lt(e,t=!1){if(Array.isArray(e)){for(let r=0;r<e.length;r++)e[r]=Lt(e[r],t);return e}if(e&&typeof e=="object"){let r=e;for(let i of Object.keys(r)){let n=r[i];i==="[[Map]]"&&Array.isArray(n)?r[i]=n.map(l=>Array.isArray(l)&&l.length===2&&typeof l[0]=="string"?[l[0],Lt(l[1],t||De(l[0]))]:Lt(l,t)):r[i]=Lt(n,t||De(i))}return r}return t&&(typeof e=="string"||typeof e=="number")?qe:e}function gu(e){if(e==null)return{};let t={};for(let[r,i]of fh.entries())if(t=mh(Lt(xt(e,i))),Ru(t)<=xu)return yu(t,r>0);return yu(gh(t),!0)}function mh(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)?e:{value:e}}function yu(e,t){let r={};return Object.keys(e).length&&(r.props=e),t&&(r.truncated=!0),r}function Ru(e){return ph(Ce(e)??"")}function gh(e){let t=e[qr],r=typeof t=="string"&&Number.parseInt(t,10)||0,i=Object.keys(e).filter(c=>c!==qr),n={},l=0;for(let c of i){n[c]=e[c];let a=i.length-l-1+r;if(Ru(a?{...n,[qr]:`${a} more keys`}:n)>xu){delete n[c];break}l++}let u=i.length-l+r;return u&&(n[qr]=`${u} more keys`),n}var fs=class{calls;perMs;clock;times=[];oldest=0;constructor(t,r,i){this.calls=t,this.perMs=r,this.clock=i}take(){let t=this.clock();return this.times.length<this.calls?(this.times.push(t),!0):t-this.times[this.oldest]<this.perMs?!1:(this.times[this.oldest]=t,this.oldest=(this.oldest+1)%this.calls,!0)}};function yh(e){let t=e.now??Date.now,r=e.url??(()=>Y(location.href)),i=e.warn??(s=>console.warn(s)),n=new fs(mu.calls,mu.perMs,e.clock??(()=>performance.now())),l=new Set,u=!1,c=0,a=!1;function p(s){if(!(!u||a)){a=!0;try{s()}catch{}finally{a=!1}}}function o(s,m){if(!l.has(s)){l.add(s);try{i(m())}catch{}}}function h(){return n.take()?!0:(c++,!1)}function f(s){c&&(s.dropped=c,c=0),e.emit(s,t())}return{get active(){return u},setActive(s){s&&!u&&(c=0),u=s},track(s,m){p(()=>{let d=dh(s);if(d===void 0){o("track",()=>`tabtape.track: the event name must be a string of 1\u2013${cs} characters, got ${bu(s)}. The event was not recorded.`);return}if(!h())return;let g=gu(m),E={name:"custom",event:d,url:r()};g.props&&(E.props=g.props),g.truncated&&(E.propsTruncated=!0),f(E)})},identify(s,m){p(()=>{let d=hh(s);if(d===void 0){o("identify",()=>`tabtape.identify: the user id must be a non-empty string or a number, got ${bu(s)}. The call was ignored.`);return}if(!h())return;let g=gu(m),E={name:"identify",userId:d,url:r()};g.props&&(E.traits=g.props),g.truncated&&(E.propsTruncated=!0),f(E)})}}}function bu(e){return typeof e=="string"?e.trim()?`${[...e.trim()].length} characters`:"an empty string":e===null?"null":typeof e}var wu=()=>{},Pe,jr,Vr=!1,vu=!1;function Tu(e){wu=e,Pe??=yh({emit:(t,r)=>wu(t,r)}),Pe.setActive(!0),bh(Pe),Vr||(Vr=!0,addEventListener(Su,Nu),addEventListener(Eu,Ou),addEventListener(Cu,ku))}function Mu(){Pe?.setActive(!1),Vr&&(Vr=!1,removeEventListener(Su,Nu),removeEventListener(Eu,Ou),removeEventListener(Cu,ku))}function bh(e){try{if(jr&&window.tabtape===jr||"tabtape"in window)return;jr??=Object.freeze({track(t,r){e.track(t,r)},identify(t,r){e.identify(t,r)},state(t,r,i){Iu(e,t,r,i)},get isRecording(){return e.active}}),Object.defineProperty(window,"tabtape",{value:jr,configurable:!0,writable:!0,enumerable:!1})}catch{}}function ds(e){let t=e.detail;return t!==null&&typeof t=="object"?t:{}}function Nu(e){try{let t=ds(e);Pe?.track(t.name,t.props)}catch{}}function Ou(e){try{let t=ds(e);Pe?.identify(t.userId,t.traits)}catch{}}function ku(e){try{let t=ds(e);Pe&&Iu(Pe,t.store,t.action,t.state)}catch{}}function Iu(e,t,r,i){if(e.active)try{let n=ze();n?n.manual(t,r,i):vu||(vu=!0,console.warn("tabtape.state: state recording is off in the tabtape extension settings; the call was ignored."))}catch{}}var Hr=Symbol.for("tabtape.recorder"),vh=5e3,Sh=15e3,Au=window;Au[Hr]?Au[Hr].hello():window.top!==window?ka()&&vl(Hr):Eh();function Eh(){let e=EventTarget.prototype.dispatchEvent,t=document.readyState==="loading",r="pending",i="",n=!1,l,u,c=!1,a=[],p=(y,S)=>e.call(document,new CustomEvent(y,{detail:S}));function o(y,S,x){if(r==="off")return;let M;try{M=Ce({ts:Math.round(S),type:y,data:x})}catch{return}f(y,M)}function h(y,S,x){r!=="off"&&f(y,`{"ts":${Math.round(S)},"type":${Ce(y)},"data":${x}}`)}function f(y,S){r==="active"?p(he.data,S):a.length<vh&&a.push({type:y,line:S})}let s={captureBodies:!0,maxBodyChars:1e6,checkoutEveryNms:0,inPageNetwork:!0,recordState:!0};function m(y){Za((S,x)=>o("console",x,S)),el(),Li(!0),Nt(),y.inPageNetwork?(Ji(y,(S,x)=>o("network",x,S)),Ll(u?.inPageNetwork===!1),Ar(!0)):(Ar(!1),Ki())}function d(y){if(y===c)return;c=y;let S=ze();if(S)try{y?S.start((x,M)=>h("state",M,x)):S.stop()}catch{}}function g(){Ar(!1),Li(!1),Ki(),tl(),xr()}m(s);let E=setTimeout(()=>r==="pending"&&C(),Sh);function b(y,S){if(clearTimeout(E),r==="active"&&y===i){m(S),u=S,d(S.recordState);return}r==="active"&&v(),i=y,m(S),u=S,r="active";for(let{type:x,line:M}of a.splice(0))x==="network"&&!S.inPageNetwork||p(he.data,M);!S.inPageNetwork&&!t&&(Ji(S,(x,M)=>o("network",M,x)),Pl()),l=ae({...zi(S,x=>o("rrweb",x.timestamp,x)),emit:(x,M)=>{o("rrweb",x.timestamp,x),M&&c&&ze()?.checkout(),x.type===_.FullSnapshot&&p(he.snapshot)}})??void 0,Wa((x,M)=>o("event",M,x),t&&!n?"load":"start"),Tu((x,M)=>o("event",M,x)),du((x,M)=>o("perf",M,x),t&&!n),El((x,M)=>o("perf",M,x)),d(S.recordState),n=!0}function v(){Qi(),d(!1),hu(),xl(),Mu(),za();try{l?.()}catch{}l=void 0,p(he.flush)}function C(){clearTimeout(E),r==="active"&&v(),r="off",a.length=0,g();try{ze()?.disable()}catch{}}document.addEventListener(he.control,y=>{let S;try{S=Ct(String(y.detail))}catch{return}S.cmd==="start"?b(S.sessionId,S.options):C()}),document.addEventListener(he.info,()=>{let y={stateHook:"off",stores:[]};try{let S=ze()?.info();S&&(y={stateHook:S.hook,stores:S.stores})}catch{}p(he.infoReply,Ce(y))}),addEventListener("pagehide",()=>{r==="active"&&(qa(),u?.inPageNetwork!==!1&&Qi(),us(),Cl(),p(he.flush))}),addEventListener("pageshow",y=>{if(!(!y.persisted||r!=="active")){try{ae.takeFullSnapshot(!0)}catch{}Le("bfcache")}});let w=()=>p(he.hello);Object.defineProperty(window,Hr,{value:{hello:w,get active(){return r==="active"}},configurable:!0}),w()}})();
|
|
133
133
|
//# sourceMappingURL=recorder.js.map
|