iris-recorder 0.4.0 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- "use strict";var Iris=(()=>{var ut=Object.defineProperty;var sa=Object.getOwnPropertyDescriptor;var ia=Object.getOwnPropertyNames;var oa=Object.prototype.hasOwnProperty;var aa=(e,t,r)=>t in e?ut(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var la=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,r)=>(typeof require!="undefined"?require:t)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var ua=(e,t)=>{for(var r in t)ut(e,r,{get:t[r],enumerable:!0})},ca=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ia(t))!oa.call(e,n)&&n!==r&&ut(e,n,{get:()=>t[n],enumerable:!(s=sa(t,n))||s.enumerable});return e};var fa=e=>ca(ut({},"__esModule",{value:!0}),e);var Ae=(e,t,r)=>aa(e,typeof t!="symbol"?t+"":t,r);var oc={};ua(oc,{record:()=>ic});function ct(e){let r=Xn(e,1,{keys:32});return r&&Object.keys(r).length>0?r:void 0}function Xn(e,t,r){if(typeof e!="object"||e===null||Array.isArray(e))return;let s={};for(let[n,o]of Object.entries(e)){if(r.keys<=0)break;let c=n.slice(0,64);if(c){if(typeof o=="string")s[c]=o.slice(0,300),r.keys-=1;else if(typeof o=="number"||typeof o=="boolean")s[c]=String(o),r.keys-=1;else if(typeof o=="object"&&o!==null&&!Array.isArray(o)&&t<3){r.keys-=1;let p=Xn(o,t+1,r);p&&Object.keys(p).length>0?s[c]=p:r.keys+=1}}}return s}function ft(e){for(let t of["id","userId","email","username","name"]){let r=e[t];if(typeof r=="string"&&r)return r}for(let t of Object.values(e))if(typeof t=="string"&&t)return t}function ha(){let e="iris.sid";try{let t=sessionStorage.getItem(e);if(t)return t;let r=crypto.randomUUID();return sessionStorage.setItem(e,r),r}catch(t){return crypto.randomUUID()}}function Jn(e,t){let r=ct(typeof t=="string"?{id:t}:t);return{sessionId:ha(),user:r,userId:r?ft(r):void 0,release:e,startedAt:Date.now(),url:location.href,userAgent:navigator.userAgent}}var rs=la("module"),da=(0,rs.createRequire)("/"),Fe,pa,ma;try{Fe=da("worker_threads"),pa=Fe.Worker,ma=Fe.isMarkedAsUntransferable}catch(e){}var ce=Uint8Array,de=Uint16Array,rr=Int32Array,nr=new ce([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),sr=new ce([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Kn=new ce([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ns=function(e,t){for(var r=new de(31),s=0;s<31;++s)r[s]=t+=1<<e[s-1];for(var n=new rr(r[30]),s=1;s<30;++s)for(var o=r[s];o<r[s+1];++o)n[o]=o-r[s]<<5|s;return{b:r,r:n}},Fe=ns(nr,2),ga=Fe.b,Zt=Fe.r;ga[28]=258,Zt[258]=28;var ss=ns(sr,0),fc=ss.b,Zn=ss.r,Qt=new de(32768);for(V=0;V<32768;++V)xe=(V&43690)>>1|(V&21845)<<1,xe=(xe&52428)>>2|(xe&13107)<<2,xe=(xe&61680)>>4|(xe&3855)<<4,Qt[V]=((xe&65280)>>8|(xe&255)<<8)>>1;var xe,V,Je=(function(e,t,r){for(var s=e.length,n=0,o=new de(t);n<s;++n)e[n]&&++o[e[n]-1];var c=new de(t);for(n=1;n<t;++n)c[n]=c[n-1]+o[n-1]<<1;var p;if(r){p=new de(1<<t);var a=15-t;for(n=0;n<s;++n)if(e[n])for(var d=n<<4|e[n],i=t-e[n],h=c[e[n]-1]++<<i,u=h|(1<<i)-1;h<=u;++h)p[Qt[h]>>a]=d}else for(p=new de(s),n=0;n<s;++n)e[n]&&(p[n]=Qt[c[e[n]-1]++]>>15-e[n]);return p}),Te=new ce(288);for(V=0;V<144;++V)Te[V]=8;var V;for(V=144;V<256;++V)Te[V]=9;var V;for(V=256;V<280;++V)Te[V]=7;var V;for(V=280;V<288;++V)Te[V]=8;var V,ht=new ce(32);for(V=0;V<32;++V)ht[V]=5;var V,ya=Je(Te,9,0);var va=Je(ht,5,0);var is=function(e){return(e+7)/8|0},os=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new ce(e.subarray(t,r))};var Ee=function(e,t,r){r<<=t&7;var s=t/8|0;e[s]|=r,e[s+1]|=r>>8},Ye=function(e,t,r){r<<=t&7;var s=t/8|0;e[s]|=r,e[s+1]|=r>>8,e[s+2]|=r>>16},Kt=function(e,t){for(var r=[],s=0;s<e.length;++s)e[s]&&r.push({s,f:e[s]});var n=r.length,o=r.slice();if(!n)return{t:ls,l:0};if(n==1){var c=new ce(r[0].s+1);return c[r[0].s]=1,{t:c,l:1}}r.sort(function(b,y){return b.f-y.f}),r.push({s:-1,f:25001});var p=r[0],a=r[1],d=0,i=1,h=2;for(r[0]={s:-1,f:p.f+a.f,l:p,r:a};i!=n-1;)p=r[r[d].f<r[h].f?d++:h++],a=r[d!=i&&r[d].f<r[h].f?d++:h++],r[i++]={s:-1,f:p.f+a.f,l:p,r:a};for(var u=o[0].s,s=1;s<n;++s)o[s].s>u&&(u=o[s].s);var l=new de(u+1),m=er(r[i-1],l,0);if(m>t){var s=0,f=0,g=m-t,C=1<<g;for(o.sort(function(y,v){return l[v.s]-l[y.s]||y.f-v.f});s<n;++s){var w=o[s].s;if(l[w]>t)f+=C-(1<<m-l[w]),l[w]=t;else break}for(f>>=g;f>0;){var S=o[s].s;l[S]<t?f-=1<<t-l[S]++-1:++s}for(;s>=0&&f;--s){var E=o[s].s;l[E]==t&&(--l[E],++f)}m=t}return{t:new ce(l),l:m}},er=function(e,t,r){return e.s==-1?Math.max(er(e.l,t,r+1),er(e.r,t,r+1)):t[e.s]=r},Qn=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new de(++t),s=0,n=e[0],o=1,c=function(a){r[s++]=a},p=1;p<=t;++p)if(e[p]==n&&p!=t)++o;else{if(!n&&o>2){for(;o>138;o-=138)c(32754);o>2&&(c(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(c(n),--o;o>6;o-=6)c(8304);o>2&&(c(o-3<<5|8208),o=0)}for(;o--;)c(n);o=1,n=e[p]}return{c:r.subarray(0,s),n:t}},Xe=function(e,t){for(var r=0,s=0;s<t.length;++s)r+=e[s]*t[s];return r},as=function(e,t,r){var s=r.length,n=is(t+2);e[n]=s&255,e[n+1]=s>>8,e[n+2]=e[n]^255,e[n+3]=e[n+1]^255;for(var o=0;o<s;++o)e[n+o+4]=r[o];return(n+4+s)*8},es=function(e,t,r,s,n,o,c,p,a,d,i){Ee(t,i++,r),++n[256];for(var h=Kt(n,15),u=h.t,l=h.l,m=Kt(o,15),f=m.t,g=m.l,C=Qn(u),w=C.c,S=C.n,E=Qn(f),b=E.c,y=E.n,v=new de(19),x=0;x<w.length;++x)++v[w[x]&31];for(var x=0;x<b.length;++x)++v[b[x]&31];for(var I=Kt(v,7),R=I.t,A=I.l,O=19;O>4&&!R[Kn[O-1]];--O);var M=d+5<<3,P=Xe(n,Te)+Xe(o,ht)+c,U=Xe(n,u)+Xe(o,f)+c+14+3*O+Xe(v,R)+2*v[16]+3*v[17]+7*v[18];if(a>=0&&M<=P&&M<=U)return as(t,i,e.subarray(a,a+d));var k,D,_,Y;if(Ee(t,i,1+(U<P)),i+=2,U<P){k=Je(u,l,0),D=u,_=Je(f,g,0),Y=f;var H=Je(R,A,0);Ee(t,i,S-257),Ee(t,i+5,y-1),Ee(t,i+10,O-4),i+=14;for(var x=0;x<O;++x)Ee(t,i+3*x,R[Kn[x]]);i+=3*O;for(var F=[w,b],ne=0;ne<2;++ne)for(var N=F[ne],x=0;x<N.length;++x){var K=N[x]&31;Ee(t,i,H[K]),i+=R[K],K>15&&(Ee(t,i,N[x]>>5&127),i+=N[x]>>12)}}else k=ya,D=Te,_=va,Y=ht;for(var x=0;x<p;++x){var z=s[x];if(z>255){var K=z>>18&31;Ye(t,i,k[K+257]),i+=D[K+257],K>7&&(Ee(t,i,z>>23&31),i+=nr[K]);var ie=z&31;Ye(t,i,_[ie]),i+=Y[ie],ie>3&&(Ye(t,i,z>>5&8191),i+=sr[ie])}else Ye(t,i,k[z]),i+=D[z]}return Ye(t,i,k[256]),i+D[256]},wa=new rr([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),ls=new ce(0),ba=function(e,t,r,s,n,o){var c=o.z||e.length,p=new ce(s+c+5*(1+Math.ceil(c/7e3))+n),a=p.subarray(s,p.length-n),d=o.l,i=(o.r||0)&7;if(t){i&&(a[0]=o.r>>3);for(var h=wa[t-1],u=h>>13,l=h&8191,m=(1<<r)-1,f=o.p||new de(32768),g=o.h||new de(m+1),C=Math.ceil(r/3),w=2*C,S=function(X){return(e[X]^e[X+1]<<C^e[X+2]<<w)&m},E=new rr(25e3),b=new de(288),y=new de(32),v=0,x=0,I=o.i||0,R=0,A=o.w||0,O=0;I+2<c;++I){var M=S(I),P=I&32767,U=g[M];if(f[P]=U,g[M]=P,A<=I){var k=c-I;if((v>7e3||R>24576)&&(k>423||!d)){i=es(e,a,0,E,b,y,x,R,O,I-O,i),R=v=x=0,O=I;for(var D=0;D<286;++D)b[D]=0;for(var D=0;D<30;++D)y[D]=0}var _=2,Y=0,H=l,F=P-U&32767;if(k>2&&M==S(I-F))for(var ne=Math.min(u,k)-1,N=Math.min(32767,I),K=Math.min(258,k);F<=N&&--H&&P!=U;){if(e[I+_]==e[I+_-F]){for(var z=0;z<K&&e[I+z]==e[I+z-F];++z);if(z>_){if(_=z,Y=F,z>ne)break;for(var ie=Math.min(F,z-2),se=0,D=0;D<ie;++D){var ae=I-F+D&32767,Ce=f[ae],me=ae-Ce&32767;me>se&&(se=me,U=ae)}}}P=U,U=f[P],F+=P-U&32767}if(Y){E[R++]=268435456|Zt[_]<<18|Zn[Y];var L=Zt[_]&31,ee=Zn[Y]&31;x+=nr[L]+sr[ee],++b[257+L],++y[ee],A=I+_,++v}else E[R++]=e[I],++b[e[I]]}}for(I=Math.max(I,A);I<c;++I)E[R++]=e[I],++b[e[I]];i=es(e,a,d,E,b,y,x,R,O,I-O,i),d||(o.r=i&7|a[i/8|0]<<3,i-=7,o.h=g,o.p=f,o.i=I,o.w=A)}else{for(var I=o.w||0;I<c+d;I+=65535){var j=I+65535;j>=c&&(a[i/8|0]=d,j=c),i=as(a,i+1,e.subarray(I,j))}o.i=c}return os(p,0,s+is(i)+n)},Sa=(function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var r=t,s=9;--s;)r=(r&1&&-306674912)^r>>>1;e[t]=r}return e})(),Ca=function(){var e=-1;return{p:function(t){for(var r=e,s=0;s<t.length;++s)r=Sa[r&255^t[s]]^r>>>8;e=r},d:function(){return~e}}};var xa=function(e,t,r,s,n){if(!n&&(n={l:1},t.dictionary)){var o=t.dictionary.subarray(-32768),c=new ce(o.length+e.length);c.set(o),c.set(e,o.length),e=c,n.w=o.length}return ba(e,t.level==null?6:t.level,t.mem==null?n.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,r,s,n)};var tr=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},Ea=function(e,t){var r=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:t.level==9?2:0,e[9]=3,t.mtime!=0&&tr(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),r){e[3]=8;for(var s=0;s<=r.length;++s)e[s+10]=r.charCodeAt(s)}};var Ma=function(e){return 10+(e.filename?e.filename.length+1:0)};function us(e,t){t||(t={});var r=Ca(),s=e.length;r.p(e);var n=xa(e,t,Ma(t),8),o=n.length;return Ea(n,t),tr(n,o-8,r.d()),tr(n,o-4,s),n}var ts=typeof TextEncoder!="undefined"&&new TextEncoder,Ra=typeof TextDecoder!="undefined"&&new TextDecoder,Ia=0;try{Ra.decode(ls,{stream:!0}),Ia=1}catch(e){}function cs(e,t){if(t){for(var r=new ce(e.length),s=0;s<e.length;++s)r[s]=e.charCodeAt(s);return r}if(ts)return ts.encode(e);for(var n=e.length,o=new ce(e.length+(e.length>>1)),c=0,p=function(i){o[c++]=i},s=0;s<n;++s){if(c+5>o.length){var a=new ce(c+8+(n-s<<1));a.set(o),o=a}var d=e.charCodeAt(s);d<128||t?p(d):d<2048?(p(192|d>>6),p(128|d&63)):d>55295&&d<57344?(d=65536+(d&1047552)|e.charCodeAt(++s)&1023,p(240|d>>18),p(128|d>>12&63),p(128|d>>6&63),p(128|d&63)):(p(224|d>>12),p(128|d>>6&63),p(128|d&63))}return os(o,0,c)}var dt=class{constructor(t){Ae(this,"opts",t);Ae(this,"queue",[]);Ae(this,"bytes",0);Ae(this,"timer");Ae(this,"flushBytes");Ae(this,"maxBytes",4e6);var r,s;this.flushBytes=(r=t.flushBytes)!=null?r:64e3,this.timer=setInterval(()=>this.flush(!1),(s=t.flushMs)!=null?s:5e3),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&this.flush(!0)}),addEventListener("pagehide",()=>this.flush(!0))}push(t){this.queue.push(t),this.bytes+=fs(t),this.bytes>=this.flushBytes&&this.flush(!1)}flush(t){if(this.queue.length===0)return;let r=this.queue;this.queue=[],this.bytes=0;let s={meta:this.opts.meta,events:r},n=us(cs(JSON.stringify(s))),o=`${this.opts.endpoint}/v1/ingest`;if(this.log(`flush via ${t?"beacon":"fetch"}: ${r.length} events, ${n.length}b gz \u2192 ${o}`),t&&"sendBeacon"in navigator){let c=!1;try{c=navigator.sendBeacon(o,new Blob([n],{type:"application/octet-stream"}))}catch(p){c=!1}c||(this.log("beacon refused \u2014 re-queueing"),this.requeue(r));return}fetch(o,{method:"POST",body:n,keepalive:t,headers:{"content-encoding":"gzip","content-type":"application/octet-stream","x-iris-key":this.opts.projectKey}}).then(c=>{this.log(`ingest responded ${c.status}`),c.ok||this.requeue(r)}).catch(c=>{this.log("ingest request failed",c),this.requeue(r)})}identify(t){var s;let r=ct(typeof t=="string"?{id:t}:t);r&&(this.opts.meta.user=r,this.opts.meta.userId=ft(r),this.log(`identified as ${(s=this.opts.meta.userId)!=null?s:"(unnamed user)"}`))}log(...t){this.opts.debug&&console.debug("[iris]",...t)}requeue(t){let r=t.concat(this.queue),s=0;for(let n of r)s+=fs(n);s>this.maxBytes||(this.queue=r,this.bytes=s)}stop(){this.timer&&clearInterval(this.timer),this.flush(!0)}};function fs(e){return JSON.stringify(e).length}var Oa=["authorization","cookie","set-cookie","proxy-authorization","x-api-key","x-auth-token","x-csrf-token","x-xsrf-token"],Na=/pass(word|wd)?|secret|token|api[-_]?key|auth|credential|session|cvv|card[-_]?(number|num)?|ssn|pin/i;var Aa="[redacted]",Ke="[masked]";function Ue(e={}){var l,m,f,g;let t=new Set([...Oa,...((l=e.redactHeaders)!=null?l:[]).map(C=>C.toLowerCase())]),r=(m=e.maskKeys)!=null?m:Na,s=new Set(((f=e.maskExtraKeys)!=null?f:[]).map(C=>C.toLowerCase())),n=C=>r.test(C)||s.has(C.toLowerCase()),o=(g=e.maxBodyChars)!=null?g:1e4,c=()=>typeof location!="undefined"?location.href:void 0,p=C=>{try{let w=new URL(C,c()),S=!1;for(let E of[...w.searchParams.keys()])n(E)&&(w.searchParams.set(E,Ke),S=!0);return S?w.toString():C}catch(w){return C}},a=C=>{let w={};for(let S of Object.keys(C))w[S]=t.has(S.toLowerCase())?Aa:C[S];return w},d=C=>{if(Array.isArray(C))return C.map(d);if(C&&typeof C=="object"){let w={};for(let[S,E]of Object.entries(C))w[S]=n(S)?Ke:d(E);return w}return C},i=(C,w=o)=>C.length>w?`${C.slice(0,w)}\u2026[+${C.length-w} chars]`:C;return{maskUrl:p,maskHeaders:a,maskBody:(C,w=o)=>{if(C==null||C==="")return;let S=String(C),E;try{E=JSON.stringify(d(JSON.parse(S)))}catch(b){if(/^[^={}\s]+=[^&]*(?:&[^=]+=[^&]*)*$/.test(S))try{let y=new URLSearchParams(S);for(let v of[...y.keys()])n(v)&&y.set(v,Ke);E=y.toString()}catch(y){E=S}else E=S}return i(E,w)},maskObject:C=>d(C),truncate:i,isMaskedKey:n,maxBodyChars:o}}var Ta=500,Da=8e3,ka=120;function hs(e,t={},r={}){var a,d;let s=Ue(t),n=(a=r.maxEvents)!=null?a:Ta,o=(d=r.maxPropsChars)!=null?d:Da,c=0,p=!1;return(i,h)=>{try{let u=typeof i=="string"?i.trim().slice(0,ka):"";if(!u)return;if(c>=n){p||(p=!0,console.warn(`[iris] track() budget exhausted (${n} events) \u2014 further events are dropped`));return}c++;let l={type:"custom",ts:Date.now(),name:u};if(h!=null&&typeof h=="object"){let m=null,f=1/0;try{m=s.maskObject(h),f=JSON.stringify(m).length}catch(g){m=null}l.props=m!=null&&f<=o?m:{"[iris]":`props dropped (${Number.isFinite(f)?`${f} chars > ${o}`:"not serializable"})`}}e(l)}catch(u){}}}var _a=Object.defineProperty,La=(e,t,r)=>t in e?_a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T=(e,t,r)=>La(e,typeof t!="symbol"?t+"":t,r),ds,Pa=Object.defineProperty,Fa=(e,t,r)=>t in e?Pa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ps=(e,t,r)=>Fa(e,typeof t!="symbol"?t+"":t,r),re=(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))(re||{}),ms={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},gs={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},pt={},Fi={},Ua=()=>!!globalThis.Zone;function Mn(e){if(pt[e])return pt[e];let t=globalThis[e],r=t.prototype,s=e in ms?ms[e]:void 0,n=!!(s&&s.every(p=>{var a,d;return!!((d=(a=Object.getOwnPropertyDescriptor(r,p))==null?void 0:a.get)!=null&&d.toString().includes("[native code]"))})),o=e in gs?gs[e]:void 0,c=!!(o&&o.every(p=>{var a;return typeof r[p]=="function"&&((a=r[p])==null?void 0:a.toString().includes("[native code]"))}));if(n&&c&&!Ua())return pt[e]=t.prototype,t.prototype;try{let p=document.createElement("iframe");p.style.display="none",document.body.appendChild(p);let a=p.contentWindow;if(!a)return t.prototype;let d=a[e].prototype;if(!d)return p.remove(),r;let i=navigator.userAgent;return i.includes("Safari")&&!i.includes("Chrome")?(p.classList.add("rr-block"),p.setAttribute("__rrwebUntaintedMutationObserver",""),Fi[e]=()=>p.remove()):p.remove(),pt[e]=d}catch(p){return r}}var ir={};function Re(e,t,r){var s;let n=`${e}.${String(r)}`;if(ir[n])return ir[n].call(t);let o=Mn(e),c=(s=Object.getOwnPropertyDescriptor(o,r))==null?void 0:s.get;return c?(ir[n]=c,c.call(t)):t[r]}var or={};function Ui(e,t,r){let s=`${e}.${String(r)}`;if(or[s])return or[s].bind(t);let o=Mn(e)[r];return typeof o!="function"?t[r]:(or[s]=o,o.bind(t))}function Ba(e){return Re("Node",e,"ownerDocument")}function za(e){return Re("Node",e,"childNodes")}function $a(e){return Re("Node",e,"parentNode")}function Wa(e){return Re("Node",e,"parentElement")}function qa(e){return Re("Node",e,"textContent")}function ja(e,t){return Ui("Node",e,"contains")(t)}function Va(e){return Ui("Node",e,"getRootNode")()}function Ha(e){return!e||!("host"in e)?null:Re("ShadowRoot",e,"host")}function Ga(e){return e.styleSheets}function Ya(e){return!e||!("shadowRoot"in e)?null:Re("Element",e,"shadowRoot")}function Xa(e,t){return Re("Element",e,"querySelector")(t)}function Ja(e,t){return Re("Element",e,"querySelectorAll")(t)}function Ka(){var e;return[Mn("MutationObserver").constructor,(e=Fi.MutationObserver)!=null?e:(()=>{})]}var Bi=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Bi=()=>new Date().getTime());function Za(e,t,r){try{if(!(t in e))return()=>{};let s=e[t],n=r(s);return typeof n=="function"&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:s}})),e[t]=n,()=>{e[t]=s}}catch(s){return()=>{}}}var oe={ownerDocument:Ba,childNodes:za,parentNode:$a,parentElement:Wa,textContent:qa,contains:ja,getRootNode:Va,host:Ha,styleSheets:Ga,shadowRoot:Ya,querySelector:Xa,querySelectorAll:Ja,nowTimestamp:Bi,mutationObserverCtor:Ka,patch:Za};function zi(e){return e.nodeType===e.ELEMENT_NODE}function Qe(e){let t=e&&"host"in e&&"mode"in e&&oe.host(e)||null;return!!(t&&"shadowRoot"in t&&oe.shadowRoot(t)===e)}function et(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Qa(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 el(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 s=Array.from(t,n=>$i(n,r)).join("");return Qa(s)}catch(t){return null}}function $i(e,t){if(rl(e)){let r;try{r=hn(e.styleSheet)||el(e)}catch(s){r=e.cssText}return e.styleSheet.href?Ot(r,e.styleSheet.href):r}else{let r=e.cssText;return nl(e)&&e.selectorText.includes(":")&&(r=tl(r)),t?Ot(r,t):r}}function tl(e){let t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function rl(e){return"styleSheet"in e}function nl(e){return"selectorText"in e}var Mt=class{constructor(){ps(this,"idNodeMap",new Map),ps(this,"nodeMetaMap",new WeakMap)}getId(t){var r;if(!t)return-1;let s=(r=this.getMeta(t))==null?void 0:r.id;return s!=null?s:-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(s=>this.removeNodeFromMap(s))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){let s=r.id;this.idNodeMap.set(s,t),this.nodeMetaMap.set(t,r)}replace(t,r){let s=this.getNode(t);if(s){let n=this.nodeMetaMap.get(s);n&&this.nodeMetaMap.set(r,n)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function sl(){return new Mt}function Rt({element:e,maskInputOptions:t,tagName:r,type:s,value:n,maskInputFn:o}){let c=n||"",p=s&&ke(s);return(t[r.toLowerCase()]||p&&t[p])&&(o?c=o(c,e):c="*".repeat(c.length)),c}function ke(e){return e.toLowerCase()}var ys="__rrweb_original__";function il(e){let t=e.getContext("2d");if(!t)return!0;let r=50;for(let s=0;s<e.width;s+=r)for(let n=0;n<e.height;n+=r){let o=t.getImageData,c=ys in o?o[ys]:o;if(new Uint32Array(c.call(t,s,n,Math.min(r,e.width-s),Math.min(r,e.height-n)).data.buffer).some(a=>a!==0))return!1}return!0}function It(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?ke(t):null}function Wi(e,t){var o;let r;try{r=new URL(e,t!=null?t:window.location.href)}catch(c){return null}let s=/\.([0-9a-z]+)(?:$)/i,n=r.pathname.match(s);return(o=n==null?void 0:n[1])!=null?o:null}function ol(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var al=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ll=/^(?:[a-z+]+:)?\/\//i,ul=/^www\..*/i,cl=/^(data:)([^,]*),(.*)/i;function Ot(e,t){return(e||"").replace(al,(r,s,n,o,c,p)=>{let a=n||c||p,d=s||o||"";if(!a)return r;if(ll.test(a)||ul.test(a))return`url(${d}${a}${d})`;if(cl.test(a))return`url(${d}${a}${d})`;if(a[0]==="/")return`url(${d}${ol(t)+a}${d})`;let i=t.split("/"),h=a.split("/");i.pop();for(let u of h)u!=="."&&(u===".."?i.pop():i.push(u));return`url(${d}${i.join("/")}${d})`})}function mt(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function fl(e,t,r=!1){let s=Array.from(t.childNodes),n=[],o=0;if(s.length>1&&e&&typeof e=="string"){let c=mt(e,r),p=c.length/e.length;for(let a=1;a<s.length;a++)if(s[a].textContent&&typeof s[a].textContent=="string"){let d=mt(s[a].textContent,r),i=100,h=3;for(;h<d.length&&(d[h].match(/[a-zA-Z0-9]/)||d.indexOf(d.substring(0,h),1)!==-1);h++);for(;h<d.length;h++){let u=d.substring(0,h),l=c.split(u),m=-1;if(l.length===2)m=l[0].length;else if(l.length>2&&l[0]===""&&s[a-1].textContent!=="")m=c.indexOf(u,1);else if(l.length===1){if(u=u.substring(0,u.length-1),l=c.split(u),l.length<=1)return n.push(e),n;h=i+1}else h===d.length-1&&(m=c.indexOf(u));if(l.length>=2&&h>i){let f=s[a-1].textContent;if(f&&typeof f=="string"){let g=mt(f).length;m=c.indexOf(u,g)}m===-1&&(m=l[0].length)}if(m!==-1){let f=Math.floor(m/p);for(;f>0&&f<e.length;){if(o+=1,o>50*s.length)return n.push(e),n;let g=mt(e.substring(0,f),r);if(g.length===m){n.push(e.substring(0,f)),e=e.substring(f),c=c.substring(m);break}else g.length<m?f+=Math.max(1,Math.floor((m-g.length)/p)):f-=Math.max(1,Math.floor((g.length-m)*p))}break}}}}return n.push(e),n}function hl(e,t){return fl(e,t).join("/* rr_split */")}var dl=1,pl=new RegExp("[^a-z0-9-_:]"),rt=-2;function qi(){return dl++}function ml(e){if(e instanceof HTMLFormElement)return"form";let t=ke(e.tagName);return pl.test(t)?"div":t}var Be,vs,gl=/^[^ \t\n\r\u000c]+/,yl=/^[, \t\n\r\u000c]+/;function vl(e,t){if(t.trim()==="")return t;let r=0;function s(o){let c,p=o.exec(t.substring(r));return p?(c=p[0],r+=c.length,c):""}let n=[];for(;s(yl),!(r>=t.length);){let o=s(gl);if(o.slice(-1)===",")o=We(e,o.substring(0,o.length-1)),n.push(o);else{let c="";o=We(e,o);let p=!1;for(;;){let a=t.charAt(r);if(a===""){n.push((o+c).trim());break}else if(p)a===")"&&(p=!1);else if(a===","){r+=1,n.push((o+c).trim());break}else a==="("&&(p=!0);c+=a,r+=1}}}return n.join(", ")}var ws=new WeakMap;function We(e,t){return!t||t.trim()===""?t:Rn(e,t)}function wl(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Rn(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 ji(e,t,r,s){return s&&(r==="src"||r==="href"&&!(t==="use"&&s[0]==="#")||r==="xlink:href"&&s[0]!=="#"||r==="background"&&["table","td","th"].includes(t)?We(e,s):r==="srcset"?vl(e,s):r==="style"?Ot(s,Rn(e)):t==="object"&&r==="data"?We(e,s):s)}function Vi(e,t,r){return["video","audio"].includes(e)&&t==="autoplay"}function bl(e,t,r){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let s=e.classList.length;s--;){let n=e.classList[s];if(t.test(n))return!0}if(r)return e.matches(r)}catch(s){}return!1}function Nt(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r?Nt(oe.parentNode(e),t,r):!1;for(let s=e.classList.length;s--;){let n=e.classList[s];if(t.test(n))return!0}return r?Nt(oe.parentNode(e),t,r):!1}function Hi(e,t,r,s){let n;if(zi(e)){if(n=e,!oe.childNodes(n).length)return!1}else{if(oe.parentElement(e)===null)return!1;n=oe.parentElement(e)}try{if(typeof t=="string"){if(s){if(n.closest(`.${t}`))return!0}else if(n.classList.contains(t))return!0}else if(Nt(n,t,s))return!0;if(r){if(s){if(n.closest(r))return!0}else if(n.matches(r))return!0}}catch(o){}return!1}function Sl(e,t,r){let s=e.contentWindow;if(!s)return;let n=!1,o;try{o=s.document.readyState}catch(p){return}if(o!=="complete"){let p=setTimeout(()=>{n||(t(),n=!0)},r);e.addEventListener("load",()=>{clearTimeout(p),n=!0,t()});return}let c="about:blank";if(s.location.href!==c||e.src===c||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Cl(e,t,r){let s=!1,n;try{n=e.sheet}catch(c){return}if(n)return;let o=setTimeout(()=>{s||(t(),s=!0)},r);e.addEventListener("load",()=>{clearTimeout(o),s=!0,t()})}function xl(e,t){let{doc:r,mirror:s,blockClass:n,blockSelector:o,needsMask:c,inlineStylesheet:p,maskInputOptions:a={},maskTextFn:d,maskInputFn:i,dataURLOptions:h={},inlineImages:u,recordCanvas:l,keepIframeSrcFn:m,newlyAddedElement:f=!1,cssCaptured:g=!1}=t,C=El(r,s);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:re.Document,childNodes:[],compatMode:e.compatMode}:{type:re.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:re.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:C};case e.ELEMENT_NODE:return Rl(e,{doc:r,blockClass:n,blockSelector:o,inlineStylesheet:p,maskInputOptions:a,maskInputFn:i,dataURLOptions:h,inlineImages:u,recordCanvas:l,keepIframeSrcFn:m,newlyAddedElement:f,rootId:C});case e.TEXT_NODE:return Ml(e,{doc:r,needsMask:c,maskTextFn:d,rootId:C,cssCaptured:g});case e.CDATA_SECTION_NODE:return{type:re.CDATA,textContent:"",rootId:C};case e.COMMENT_NODE:return{type:re.Comment,textContent:oe.textContent(e)||"",rootId:C};default:return!1}}function El(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return r===1?void 0:r}function Ml(e,t){let{needsMask:r,maskTextFn:s,rootId:n,cssCaptured:o}=t,c=oe.parentNode(e),p=c&&c.tagName,a="",d=p==="STYLE"?!0:void 0,i=p==="SCRIPT"?!0:void 0;return i?a="SCRIPT_PLACEHOLDER":o||(a=oe.textContent(e),d&&a&&(a=Ot(a,Rn(t.doc)))),!d&&!i&&a&&r&&(a=s?s(a,oe.parentElement(e)):a.replace(/[\S]/g,"*")),{type:re.Text,textContent:a||"",rootId:n}}function Rl(e,t){let{doc:r,blockClass:s,blockSelector:n,inlineStylesheet:o,maskInputOptions:c={},maskInputFn:p,dataURLOptions:a={},inlineImages:d,recordCanvas:i,keepIframeSrcFn:h,newlyAddedElement:u=!1,rootId:l}=t,m=bl(e,s,n),f=ml(e),g={},C=e.attributes.length;for(let S=0;S<C;S++){let E=e.attributes[S];Vi(f,E.name,E.value)||(g[E.name]=ji(r,f,ke(E.name),E.value))}if(f==="link"&&o){let S=Array.from(r.styleSheets).find(b=>b.href===e.href),E=null;S&&(E=hn(S)),E&&(delete g.rel,delete g.href,g._cssText=E)}if(f==="style"&&e.sheet){let S=hn(e.sheet);S&&(e.childNodes.length>1&&(S=hl(S,e)),g._cssText=S)}if(["input","textarea","select"].includes(f)){let S=e.value,E=e.checked;g.type!=="radio"&&g.type!=="checkbox"&&g.type!=="submit"&&g.type!=="button"&&S?g.value=Rt({element:e,type:It(e),tagName:f,value:S,maskInputOptions:c,maskInputFn:p}):E&&(g.checked=E)}if(f==="option"&&(e.selected&&!c.select?g.selected=!0:delete g.selected),f==="dialog"&&e.open&&(g.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),f==="canvas"&&i){if(e.__context==="2d")il(e)||(g.rr_dataURL=e.toDataURL(a.type,a.quality));else if(!("__context"in e)){let S=e.toDataURL(a.type,a.quality),E=r.createElement("canvas");E.width=e.width,E.height=e.height;let b=E.toDataURL(a.type,a.quality);S!==b&&(g.rr_dataURL=S)}}if(f==="img"&&d){Be||(Be=r.createElement("canvas"),vs=Be.getContext("2d"));let S=e,E=S.currentSrc||S.getAttribute("src")||"<unknown-src>",b=S.crossOrigin,y=()=>{S.removeEventListener("load",y);try{Be.width=S.naturalWidth,Be.height=S.naturalHeight,vs.drawImage(S,0,0),g.rr_dataURL=Be.toDataURL(a.type,a.quality)}catch(v){if(S.crossOrigin!=="anonymous"){S.crossOrigin="anonymous",S.complete&&S.naturalWidth!==0?y():S.addEventListener("load",y);return}else console.warn(`Cannot inline img src=${E}! Error: ${v}`)}S.crossOrigin==="anonymous"&&(b?g.crossOrigin=b:S.removeAttribute("crossorigin"))};S.complete&&S.naturalWidth!==0?y():S.addEventListener("load",y)}if(["audio","video"].includes(f)){let S=g;S.rr_mediaState=e.paused?"paused":"played",S.rr_mediaCurrentTime=e.currentTime,S.rr_mediaPlaybackRate=e.playbackRate,S.rr_mediaMuted=e.muted,S.rr_mediaLoop=e.loop,S.rr_mediaVolume=e.volume}if(u||(e.scrollLeft&&(g.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(g.rr_scrollTop=e.scrollTop)),m){let{width:S,height:E}=e.getBoundingClientRect();g={class:g.class,rr_width:`${S}px`,rr_height:`${E}px`}}f==="iframe"&&!h(g.src)&&(e.contentDocument||(g.rr_src=g.src),delete g.src);let w;try{customElements.get(f)&&(w=!0)}catch(S){}return{type:re.Element,tagName:f,attributes:g,childNodes:[],isSVG:wl(e)||void 0,needBlock:m,rootId:l,isCustom:w}}function J(e){return e==null?"":e.toLowerCase()}function Gi(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 Il(e,t){if(t.comment&&e.type===re.Comment)return!0;if(e.type===re.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"&&Wi(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(J(e.attributes.name).match(/^msapplication-tile(image|color)$/)||J(e.attributes.name)==="application-name"||J(e.attributes.rel)==="icon"||J(e.attributes.rel)==="apple-touch-icon"||J(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&J(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(J(e.attributes.property).match(/^(og|twitter|fb):/)||J(e.attributes.name).match(/^(og|twitter):/)||J(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(J(e.attributes.name)==="robots"||J(e.attributes.name)==="googlebot"||J(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(J(e.attributes.name)==="author"||J(e.attributes.name)==="generator"||J(e.attributes.name)==="framework"||J(e.attributes.name)==="publisher"||J(e.attributes.name)==="progid"||J(e.attributes.property).match(/^article:/)||J(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(J(e.attributes.name)==="google-site-verification"||J(e.attributes.name)==="yandex-verification"||J(e.attributes.name)==="csrf-token"||J(e.attributes.name)==="p:domain_verify"||J(e.attributes.name)==="verify-v1"||J(e.attributes.name)==="verification"||J(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function qe(e,t){let{doc:r,mirror:s,blockClass:n,blockSelector:o,maskTextClass:c,maskTextSelector:p,skipChild:a=!1,inlineStylesheet:d=!0,maskInputOptions:i={},maskTextFn:h,maskInputFn:u,slimDOMOptions:l,dataURLOptions:m={},inlineImages:f=!1,recordCanvas:g=!1,onSerialize:C,onIframeLoad:w,iframeLoadTimeout:S=5e3,onStylesheetLoad:E,stylesheetLoadTimeout:b=5e3,keepIframeSrcFn:y=()=>!1,newlyAddedElement:v=!1,cssCaptured:x=!1}=t,{needsMask:I}=t,{preserveWhiteSpace:R=!0}=t;I||(I=Hi(e,c,p,I===void 0));let A=xl(e,{doc:r,mirror:s,blockClass:n,blockSelector:o,needsMask:I,inlineStylesheet:d,maskInputOptions:i,maskTextFn:h,maskInputFn:u,dataURLOptions:m,inlineImages:f,recordCanvas:g,keepIframeSrcFn:y,newlyAddedElement:v,cssCaptured:x});if(!A)return console.warn(e,"not serialized"),null;let O;s.hasNode(e)?O=s.getId(e):Il(A,l)||!R&&A.type===re.Text&&!A.textContent.replace(/^\s+|\s+$/gm,"").length?O=rt:O=qi();let M=Object.assign(A,{id:O});if(s.add(e,M),O===rt)return null;C&&C(e);let P=!a;if(M.type===re.Element){P=P&&!M.needBlock,delete M.needBlock;let k=oe.shadowRoot(e);k&&et(k)&&(M.isShadowHost=!0)}if((M.type===re.Document||M.type===re.Element)&&P){l.headWhitespace&&M.type===re.Element&&M.tagName==="head"&&(R=!1);let k={doc:r,mirror:s,blockClass:n,blockSelector:o,needsMask:I,maskTextClass:c,maskTextSelector:p,skipChild:a,inlineStylesheet:d,maskInputOptions:i,maskTextFn:h,maskInputFn:u,slimDOMOptions:l,dataURLOptions:m,inlineImages:f,recordCanvas:g,preserveWhiteSpace:R,onSerialize:C,onIframeLoad:w,iframeLoadTimeout:S,onStylesheetLoad:E,stylesheetLoadTimeout:b,keepIframeSrcFn:y,cssCaptured:!1};if(!(M.type===re.Element&&M.tagName==="textarea"&&M.attributes.value!==void 0)){M.type===re.Element&&M.attributes._cssText!==void 0&&typeof M.attributes._cssText=="string"&&(k.cssCaptured=!0);for(let _ of Array.from(oe.childNodes(e))){let Y=qe(_,k);Y&&M.childNodes.push(Y)}}let D=null;if(zi(e)&&(D=oe.shadowRoot(e)))for(let _ of Array.from(oe.childNodes(D))){let Y=qe(_,k);Y&&(et(D)&&(Y.isShadow=!0),M.childNodes.push(Y))}}let U=oe.parentNode(e);return U&&Qe(U)&&et(U)&&(M.isShadow=!0),M.type===re.Element&&M.tagName==="iframe"&&Sl(e,()=>{let k=e.contentDocument;if(k&&w){let D=qe(k,{doc:k,mirror:s,blockClass:n,blockSelector:o,needsMask:I,maskTextClass:c,maskTextSelector:p,skipChild:!1,inlineStylesheet:d,maskInputOptions:i,maskTextFn:h,maskInputFn:u,slimDOMOptions:l,dataURLOptions:m,inlineImages:f,recordCanvas:g,preserveWhiteSpace:R,onSerialize:C,onIframeLoad:w,iframeLoadTimeout:S,onStylesheetLoad:E,stylesheetLoadTimeout:b,keepIframeSrcFn:y});D&&w(e,D)}},S),M.type===re.Element&&M.tagName==="link"&&typeof M.attributes.rel=="string"&&(M.attributes.rel==="stylesheet"||M.attributes.rel==="preload"&&typeof M.attributes.href=="string"&&Wi(M.attributes.href)==="css")&&Cl(e,()=>{if(E){let k=qe(e,{doc:r,mirror:s,blockClass:n,blockSelector:o,needsMask:I,maskTextClass:c,maskTextSelector:p,skipChild:!1,inlineStylesheet:d,maskInputOptions:i,maskTextFn:h,maskInputFn:u,slimDOMOptions:l,dataURLOptions:m,inlineImages:f,recordCanvas:g,preserveWhiteSpace:R,onSerialize:C,onIframeLoad:w,iframeLoadTimeout:S,onStylesheetLoad:E,stylesheetLoadTimeout:b,keepIframeSrcFn:y});k&&E(e,k)}},b),M}function Ol(e,t){let{mirror:r=new Mt,blockClass:s="rr-block",blockSelector:n=null,maskTextClass:o="rr-mask",maskTextSelector:c=null,inlineStylesheet:p=!0,inlineImages:a=!1,recordCanvas:d=!1,maskAllInputs:i=!1,maskTextFn:h,maskInputFn:u,slimDOM:l=!1,dataURLOptions:m,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:C,iframeLoadTimeout:w,onStylesheetLoad:S,stylesheetLoadTimeout:E,keepIframeSrcFn:b=()=>!1}=t,y=i===!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}:i===!1?{password:!0}:i,v=Gi(l);return qe(e,{doc:e,mirror:r,blockClass:s,blockSelector:n,maskTextClass:o,maskTextSelector:c,skipChild:!1,inlineStylesheet:p,maskInputOptions:y,maskTextFn:h,maskInputFn:u,slimDOMOptions:v,dataURLOptions:m,inlineImages:a,recordCanvas:d,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:C,iframeLoadTimeout:w,onStylesheetLoad:S,stylesheetLoadTimeout:E,keepIframeSrcFn:b,newlyAddedElement:!1})}var Nl=/(max|min)-device-(width|height)/,bc=new RegExp(Nl.source,"g");function Al(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Tl(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function s(){return this instanceof s?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(s){var n=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(r,s,n.get?n:{enumerable:!0,get:function(){return e[s]}})}),r}var gt={exports:{}},bs;function Dl(){if(bs)return gt.exports;bs=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 gt.exports=t(),gt.exports.createColors=t,gt.exports}var kl={},_l=Object.freeze(Object.defineProperty({__proto__:null,default:kl},Symbol.toStringTag,{value:"Module"})),ye=Tl(_l),ar,Ss;function In(){if(Ss)return ar;Ss=1;let e=Dl(),t=ye;class r extends Error{constructor(n,o,c,p,a,d){super(n),this.name="CssSyntaxError",this.reason=n,a&&(this.file=a),p&&(this.source=p),d&&(this.plugin=d),typeof o!="undefined"&&typeof c!="undefined"&&(typeof o=="number"?(this.line=o,this.column=c):(this.line=o.line,this.column=o.column,this.endLine=c.line,this.endColumn=c.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!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(n){if(!this.source)return"";let o=this.source;n==null&&(n=e.isColorSupported),t&&n&&(o=t(o));let c=o.split(/\r?\n/),p=Math.max(this.line-3,0),a=Math.min(this.line+2,c.length),d=String(a).length,i,h;if(n){let{bold:u,gray:l,red:m}=e.createColors(!0);i=f=>u(m(f)),h=f=>l(f)}else i=h=u=>u;return c.slice(p,a).map((u,l)=>{let m=p+1+l,f=" "+(" "+m).slice(-d)+" | ";if(m===this.line){let g=h(f.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+h(f)+u+`
1
+ "use strict";var Iris=(()=>{var ut=Object.defineProperty;var aa=Object.getOwnPropertyDescriptor;var la=Object.getOwnPropertyNames;var ua=Object.prototype.hasOwnProperty;var ca=(e,t,r)=>t in e?ut(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var fa=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,r)=>(typeof require!="undefined"?require:t)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var ha=(e,t)=>{for(var r in t)ut(e,r,{get:t[r],enumerable:!0})},da=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of la(t))!ua.call(e,n)&&n!==r&&ut(e,n,{get:()=>t[n],enumerable:!(s=aa(t,n))||s.enumerable});return e};var pa=e=>da(ut({},"__esModule",{value:!0}),e);var Ae=(e,t,r)=>ca(e,typeof t!="symbol"?t+"":t,r);var cc={};ha(cc,{currentSessionId:()=>Qt,record:()=>uc});function ct(e){let r=Zn(e,1,{keys:32});return r&&Object.keys(r).length>0?r:void 0}function Zn(e,t,r){if(typeof e!="object"||e===null||Array.isArray(e))return;let s={};for(let[n,o]of Object.entries(e)){if(r.keys<=0)break;let c=n.slice(0,64);if(c){if(typeof o=="string")s[c]=o.slice(0,300),r.keys-=1;else if(typeof o=="number"||typeof o=="boolean")s[c]=String(o),r.keys-=1;else if(typeof o=="object"&&o!==null&&!Array.isArray(o)&&t<3){r.keys-=1;let p=Zn(o,t+1,r);p&&Object.keys(p).length>0?s[c]=p:r.keys+=1}}}return s}function ft(e){for(let t of["id","userId","email","username","name"]){let r=e[t];if(typeof r=="string"&&r)return r}for(let t of Object.values(e))if(typeof t=="string"&&t)return t}var Kt="iris.sid",ma=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function Zt(e){return typeof e=="string"&&ma.test(e)}function Qt(){try{let e=sessionStorage.getItem(Kt);return Zt(e)?e:void 0}catch(e){return}}function ga(e){try{if(Zt(e))return sessionStorage.setItem(Kt,e),e;let t=Qt();if(t)return t;let r=crypto.randomUUID();return sessionStorage.setItem(Kt,r),r}catch(t){return Zt(e)?e:crypto.randomUUID()}}function Qn(e,t,r){let s=ct(typeof t=="string"?{id:t}:t);return{sessionId:ga(r),user:s,userId:s?ft(s):void 0,release:e,startedAt:Date.now(),url:location.href,userAgent:navigator.userAgent}}var is=fa("module"),ya=(0,is.createRequire)("/"),Fe,va,wa;try{Fe=ya("worker_threads"),va=Fe.Worker,wa=Fe.isMarkedAsUntransferable}catch(e){}var ce=Uint8Array,de=Uint16Array,ir=Int32Array,or=new ce([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),ar=new ce([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),es=new ce([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),os=function(e,t){for(var r=new de(31),s=0;s<31;++s)r[s]=t+=1<<e[s-1];for(var n=new ir(r[30]),s=1;s<30;++s)for(var o=r[s];o<r[s+1];++o)n[o]=o-r[s]<<5|s;return{b:r,r:n}},Fe=os(or,2),ba=Fe.b,tr=Fe.r;ba[28]=258,tr[258]=28;var as=os(ar,0),mc=as.b,ts=as.r,rr=new de(32768);for(V=0;V<32768;++V)xe=(V&43690)>>1|(V&21845)<<1,xe=(xe&52428)>>2|(xe&13107)<<2,xe=(xe&61680)>>4|(xe&3855)<<4,rr[V]=((xe&65280)>>8|(xe&255)<<8)>>1;var xe,V,Je=(function(e,t,r){for(var s=e.length,n=0,o=new de(t);n<s;++n)e[n]&&++o[e[n]-1];var c=new de(t);for(n=1;n<t;++n)c[n]=c[n-1]+o[n-1]<<1;var p;if(r){p=new de(1<<t);var a=15-t;for(n=0;n<s;++n)if(e[n])for(var d=n<<4|e[n],i=t-e[n],h=c[e[n]-1]++<<i,u=h|(1<<i)-1;h<=u;++h)p[rr[h]>>a]=d}else for(p=new de(s),n=0;n<s;++n)e[n]&&(p[n]=rr[c[e[n]-1]++]>>15-e[n]);return p}),De=new ce(288);for(V=0;V<144;++V)De[V]=8;var V;for(V=144;V<256;++V)De[V]=9;var V;for(V=256;V<280;++V)De[V]=7;var V;for(V=280;V<288;++V)De[V]=8;var V,ht=new ce(32);for(V=0;V<32;++V)ht[V]=5;var V,Sa=Je(De,9,0);var Ca=Je(ht,5,0);var ls=function(e){return(e+7)/8|0},us=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new ce(e.subarray(t,r))};var Ee=function(e,t,r){r<<=t&7;var s=t/8|0;e[s]|=r,e[s+1]|=r>>8},Ye=function(e,t,r){r<<=t&7;var s=t/8|0;e[s]|=r,e[s+1]|=r>>8,e[s+2]|=r>>16},er=function(e,t){for(var r=[],s=0;s<e.length;++s)e[s]&&r.push({s,f:e[s]});var n=r.length,o=r.slice();if(!n)return{t:fs,l:0};if(n==1){var c=new ce(r[0].s+1);return c[r[0].s]=1,{t:c,l:1}}r.sort(function(b,y){return b.f-y.f}),r.push({s:-1,f:25001});var p=r[0],a=r[1],d=0,i=1,h=2;for(r[0]={s:-1,f:p.f+a.f,l:p,r:a};i!=n-1;)p=r[r[d].f<r[h].f?d++:h++],a=r[d!=i&&r[d].f<r[h].f?d++:h++],r[i++]={s:-1,f:p.f+a.f,l:p,r:a};for(var u=o[0].s,s=1;s<n;++s)o[s].s>u&&(u=o[s].s);var l=new de(u+1),m=nr(r[i-1],l,0);if(m>t){var s=0,f=0,g=m-t,C=1<<g;for(o.sort(function(y,v){return l[v.s]-l[y.s]||y.f-v.f});s<n;++s){var w=o[s].s;if(l[w]>t)f+=C-(1<<m-l[w]),l[w]=t;else break}for(f>>=g;f>0;){var S=o[s].s;l[S]<t?f-=1<<t-l[S]++-1:++s}for(;s>=0&&f;--s){var E=o[s].s;l[E]==t&&(--l[E],++f)}m=t}return{t:new ce(l),l:m}},nr=function(e,t,r){return e.s==-1?Math.max(nr(e.l,t,r+1),nr(e.r,t,r+1)):t[e.s]=r},rs=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new de(++t),s=0,n=e[0],o=1,c=function(a){r[s++]=a},p=1;p<=t;++p)if(e[p]==n&&p!=t)++o;else{if(!n&&o>2){for(;o>138;o-=138)c(32754);o>2&&(c(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(c(n),--o;o>6;o-=6)c(8304);o>2&&(c(o-3<<5|8208),o=0)}for(;o--;)c(n);o=1,n=e[p]}return{c:r.subarray(0,s),n:t}},Xe=function(e,t){for(var r=0,s=0;s<t.length;++s)r+=e[s]*t[s];return r},cs=function(e,t,r){var s=r.length,n=ls(t+2);e[n]=s&255,e[n+1]=s>>8,e[n+2]=e[n]^255,e[n+3]=e[n+1]^255;for(var o=0;o<s;++o)e[n+o+4]=r[o];return(n+4+s)*8},ns=function(e,t,r,s,n,o,c,p,a,d,i){Ee(t,i++,r),++n[256];for(var h=er(n,15),u=h.t,l=h.l,m=er(o,15),f=m.t,g=m.l,C=rs(u),w=C.c,S=C.n,E=rs(f),b=E.c,y=E.n,v=new de(19),x=0;x<w.length;++x)++v[w[x]&31];for(var x=0;x<b.length;++x)++v[b[x]&31];for(var I=er(v,7),R=I.t,A=I.l,O=19;O>4&&!R[es[O-1]];--O);var M=d+5<<3,P=Xe(n,De)+Xe(o,ht)+c,U=Xe(n,u)+Xe(o,f)+c+14+3*O+Xe(v,R)+2*v[16]+3*v[17]+7*v[18];if(a>=0&&M<=P&&M<=U)return cs(t,i,e.subarray(a,a+d));var k,T,_,Y;if(Ee(t,i,1+(U<P)),i+=2,U<P){k=Je(u,l,0),T=u,_=Je(f,g,0),Y=f;var H=Je(R,A,0);Ee(t,i,S-257),Ee(t,i+5,y-1),Ee(t,i+10,O-4),i+=14;for(var x=0;x<O;++x)Ee(t,i+3*x,R[es[x]]);i+=3*O;for(var F=[w,b],ne=0;ne<2;++ne)for(var N=F[ne],x=0;x<N.length;++x){var K=N[x]&31;Ee(t,i,H[K]),i+=R[K],K>15&&(Ee(t,i,N[x]>>5&127),i+=N[x]>>12)}}else k=Sa,T=De,_=Ca,Y=ht;for(var x=0;x<p;++x){var z=s[x];if(z>255){var K=z>>18&31;Ye(t,i,k[K+257]),i+=T[K+257],K>7&&(Ee(t,i,z>>23&31),i+=or[K]);var ie=z&31;Ye(t,i,_[ie]),i+=Y[ie],ie>3&&(Ye(t,i,z>>5&8191),i+=ar[ie])}else Ye(t,i,k[z]),i+=T[z]}return Ye(t,i,k[256]),i+T[256]},xa=new ir([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),fs=new ce(0),Ea=function(e,t,r,s,n,o){var c=o.z||e.length,p=new ce(s+c+5*(1+Math.ceil(c/7e3))+n),a=p.subarray(s,p.length-n),d=o.l,i=(o.r||0)&7;if(t){i&&(a[0]=o.r>>3);for(var h=xa[t-1],u=h>>13,l=h&8191,m=(1<<r)-1,f=o.p||new de(32768),g=o.h||new de(m+1),C=Math.ceil(r/3),w=2*C,S=function(X){return(e[X]^e[X+1]<<C^e[X+2]<<w)&m},E=new ir(25e3),b=new de(288),y=new de(32),v=0,x=0,I=o.i||0,R=0,A=o.w||0,O=0;I+2<c;++I){var M=S(I),P=I&32767,U=g[M];if(f[P]=U,g[M]=P,A<=I){var k=c-I;if((v>7e3||R>24576)&&(k>423||!d)){i=ns(e,a,0,E,b,y,x,R,O,I-O,i),R=v=x=0,O=I;for(var T=0;T<286;++T)b[T]=0;for(var T=0;T<30;++T)y[T]=0}var _=2,Y=0,H=l,F=P-U&32767;if(k>2&&M==S(I-F))for(var ne=Math.min(u,k)-1,N=Math.min(32767,I),K=Math.min(258,k);F<=N&&--H&&P!=U;){if(e[I+_]==e[I+_-F]){for(var z=0;z<K&&e[I+z]==e[I+z-F];++z);if(z>_){if(_=z,Y=F,z>ne)break;for(var ie=Math.min(F,z-2),se=0,T=0;T<ie;++T){var ae=I-F+T&32767,Ce=f[ae],me=ae-Ce&32767;me>se&&(se=me,U=ae)}}}P=U,U=f[P],F+=P-U&32767}if(Y){E[R++]=268435456|tr[_]<<18|ts[Y];var L=tr[_]&31,ee=ts[Y]&31;x+=or[L]+ar[ee],++b[257+L],++y[ee],A=I+_,++v}else E[R++]=e[I],++b[e[I]]}}for(I=Math.max(I,A);I<c;++I)E[R++]=e[I],++b[e[I]];i=ns(e,a,d,E,b,y,x,R,O,I-O,i),d||(o.r=i&7|a[i/8|0]<<3,i-=7,o.h=g,o.p=f,o.i=I,o.w=A)}else{for(var I=o.w||0;I<c+d;I+=65535){var j=I+65535;j>=c&&(a[i/8|0]=d,j=c),i=cs(a,i+1,e.subarray(I,j))}o.i=c}return us(p,0,s+ls(i)+n)},Ma=(function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var r=t,s=9;--s;)r=(r&1&&-306674912)^r>>>1;e[t]=r}return e})(),Ra=function(){var e=-1;return{p:function(t){for(var r=e,s=0;s<t.length;++s)r=Ma[r&255^t[s]]^r>>>8;e=r},d:function(){return~e}}};var Ia=function(e,t,r,s,n){if(!n&&(n={l:1},t.dictionary)){var o=t.dictionary.subarray(-32768),c=new ce(o.length+e.length);c.set(o),c.set(e,o.length),e=c,n.w=o.length}return Ea(e,t.level==null?6:t.level,t.mem==null?n.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,r,s,n)};var sr=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},Oa=function(e,t){var r=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:t.level==9?2:0,e[9]=3,t.mtime!=0&&sr(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),r){e[3]=8;for(var s=0;s<=r.length;++s)e[s+10]=r.charCodeAt(s)}};var Na=function(e){return 10+(e.filename?e.filename.length+1:0)};function hs(e,t){t||(t={});var r=Ra(),s=e.length;r.p(e);var n=Ia(e,t,Na(t),8),o=n.length;return Oa(n,t),sr(n,o-8,r.d()),sr(n,o-4,s),n}var ss=typeof TextEncoder!="undefined"&&new TextEncoder,Aa=typeof TextDecoder!="undefined"&&new TextDecoder,Da=0;try{Aa.decode(fs,{stream:!0}),Da=1}catch(e){}function ds(e,t){if(t){for(var r=new ce(e.length),s=0;s<e.length;++s)r[s]=e.charCodeAt(s);return r}if(ss)return ss.encode(e);for(var n=e.length,o=new ce(e.length+(e.length>>1)),c=0,p=function(i){o[c++]=i},s=0;s<n;++s){if(c+5>o.length){var a=new ce(c+8+(n-s<<1));a.set(o),o=a}var d=e.charCodeAt(s);d<128||t?p(d):d<2048?(p(192|d>>6),p(128|d&63)):d>55295&&d<57344?(d=65536+(d&1047552)|e.charCodeAt(++s)&1023,p(240|d>>18),p(128|d>>12&63),p(128|d>>6&63),p(128|d&63)):(p(224|d>>12),p(128|d>>6&63),p(128|d&63))}return us(o,0,c)}var dt=class{constructor(t){Ae(this,"opts",t);Ae(this,"queue",[]);Ae(this,"bytes",0);Ae(this,"timer");Ae(this,"flushBytes");Ae(this,"maxBytes",4e6);var r,s;this.flushBytes=(r=t.flushBytes)!=null?r:64e3,this.timer=setInterval(()=>this.flush(!1),(s=t.flushMs)!=null?s:5e3),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&this.flush(!0)}),addEventListener("pagehide",()=>this.flush(!0))}push(t){this.queue.push(t),this.bytes+=ps(t),this.bytes>=this.flushBytes&&this.flush(!1)}flush(t){if(this.queue.length===0)return;let r=this.queue;this.queue=[],this.bytes=0;let s={meta:this.opts.meta,events:r},n=hs(ds(JSON.stringify(s))),o=`${this.opts.endpoint}/v1/ingest`;if(this.log(`flush via ${t?"beacon":"fetch"}: ${r.length} events, ${n.length}b gz \u2192 ${o}`),t&&"sendBeacon"in navigator){let c=!1;try{let p=`${o}?k=${encodeURIComponent(this.opts.projectKey)}`;c=navigator.sendBeacon(p,new Blob([n],{type:"text/plain"}))}catch(p){c=!1}c||(this.log("beacon refused \u2014 re-queueing"),this.requeue(r));return}fetch(o,{method:"POST",body:n,keepalive:t,headers:{"content-encoding":"gzip","content-type":"application/octet-stream","x-iris-key":this.opts.projectKey}}).then(c=>{this.log(`ingest responded ${c.status}`),c.ok||this.requeue(r)}).catch(c=>{this.log("ingest request failed",c),this.requeue(r)})}identify(t){var s;let r=ct(typeof t=="string"?{id:t}:t);r&&(this.opts.meta.user=r,this.opts.meta.userId=ft(r),this.log(`identified as ${(s=this.opts.meta.userId)!=null?s:"(unnamed user)"}`))}log(...t){this.opts.debug&&console.debug("[iris]",...t)}requeue(t){let r=t.concat(this.queue),s=0;for(let n of r)s+=ps(n);s>this.maxBytes||(this.queue=r,this.bytes=s)}stop(){this.timer&&clearInterval(this.timer),this.flush(!0)}};function ps(e){return JSON.stringify(e).length}var Ta=["authorization","cookie","set-cookie","proxy-authorization","x-api-key","x-auth-token","x-csrf-token","x-xsrf-token"],ka=/pass(word|wd)?|secret|token|api[-_]?key|auth|credential|session|cvv|card[-_]?(number|num)?|ssn|pin/i;var _a="[redacted]",Ke="[masked]";function Ue(e={}){var l,m,f,g;let t=new Set([...Ta,...((l=e.redactHeaders)!=null?l:[]).map(C=>C.toLowerCase())]),r=(m=e.maskKeys)!=null?m:ka,s=new Set(((f=e.maskExtraKeys)!=null?f:[]).map(C=>C.toLowerCase())),n=C=>r.test(C)||s.has(C.toLowerCase()),o=(g=e.maxBodyChars)!=null?g:1e4,c=()=>typeof location!="undefined"?location.href:void 0,p=C=>{try{let w=new URL(C,c()),S=!1;for(let E of[...w.searchParams.keys()])n(E)&&(w.searchParams.set(E,Ke),S=!0);return S?w.toString():C}catch(w){return C}},a=C=>{let w={};for(let S of Object.keys(C))w[S]=t.has(S.toLowerCase())?_a:C[S];return w},d=C=>{if(Array.isArray(C))return C.map(d);if(C&&typeof C=="object"){let w={};for(let[S,E]of Object.entries(C))w[S]=n(S)?Ke:d(E);return w}return C},i=(C,w=o)=>C.length>w?`${C.slice(0,w)}\u2026[+${C.length-w} chars]`:C;return{maskUrl:p,maskHeaders:a,maskBody:(C,w=o)=>{if(C==null||C==="")return;let S=String(C),E;try{E=JSON.stringify(d(JSON.parse(S)))}catch(b){if(/^[^={}\s]+=[^&]*(?:&[^=]+=[^&]*)*$/.test(S))try{let y=new URLSearchParams(S);for(let v of[...y.keys()])n(v)&&y.set(v,Ke);E=y.toString()}catch(y){E=S}else E=S}return i(E,w)},maskObject:C=>d(C),truncate:i,isMaskedKey:n,maxBodyChars:o}}var La=500,Pa=8e3,Fa=120;function ms(e,t={},r={}){var a,d;let s=Ue(t),n=(a=r.maxEvents)!=null?a:La,o=(d=r.maxPropsChars)!=null?d:Pa,c=0,p=!1;return(i,h)=>{try{let u=typeof i=="string"?i.trim().slice(0,Fa):"";if(!u)return;if(c>=n){p||(p=!0,console.warn(`[iris] track() budget exhausted (${n} events) \u2014 further events are dropped`));return}c++;let l={type:"custom",ts:Date.now(),name:u};if(h!=null&&typeof h=="object"){let m=null,f=1/0;try{m=s.maskObject(h),f=JSON.stringify(m).length}catch(g){m=null}l.props=m!=null&&f<=o?m:{"[iris]":`props dropped (${Number.isFinite(f)?`${f} chars > ${o}`:"not serializable"})`}}e(l)}catch(u){}}}var Ua=Object.defineProperty,Ba=(e,t,r)=>t in e?Ua(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,D=(e,t,r)=>Ba(e,typeof t!="symbol"?t+"":t,r),gs,za=Object.defineProperty,$a=(e,t,r)=>t in e?za(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ys=(e,t,r)=>$a(e,typeof t!="symbol"?t+"":t,r),re=(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))(re||{}),vs={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ws={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},pt={},zi={},Wa=()=>!!globalThis.Zone;function On(e){if(pt[e])return pt[e];let t=globalThis[e],r=t.prototype,s=e in vs?vs[e]:void 0,n=!!(s&&s.every(p=>{var a,d;return!!((d=(a=Object.getOwnPropertyDescriptor(r,p))==null?void 0:a.get)!=null&&d.toString().includes("[native code]"))})),o=e in ws?ws[e]:void 0,c=!!(o&&o.every(p=>{var a;return typeof r[p]=="function"&&((a=r[p])==null?void 0:a.toString().includes("[native code]"))}));if(n&&c&&!Wa())return pt[e]=t.prototype,t.prototype;try{let p=document.createElement("iframe");p.style.display="none",document.body.appendChild(p);let a=p.contentWindow;if(!a)return t.prototype;let d=a[e].prototype;if(!d)return p.remove(),r;let i=navigator.userAgent;return i.includes("Safari")&&!i.includes("Chrome")?(p.classList.add("rr-block"),p.setAttribute("__rrwebUntaintedMutationObserver",""),zi[e]=()=>p.remove()):p.remove(),pt[e]=d}catch(p){return r}}var lr={};function Re(e,t,r){var s;let n=`${e}.${String(r)}`;if(lr[n])return lr[n].call(t);let o=On(e),c=(s=Object.getOwnPropertyDescriptor(o,r))==null?void 0:s.get;return c?(lr[n]=c,c.call(t)):t[r]}var ur={};function $i(e,t,r){let s=`${e}.${String(r)}`;if(ur[s])return ur[s].bind(t);let o=On(e)[r];return typeof o!="function"?t[r]:(ur[s]=o,o.bind(t))}function qa(e){return Re("Node",e,"ownerDocument")}function ja(e){return Re("Node",e,"childNodes")}function Va(e){return Re("Node",e,"parentNode")}function Ha(e){return Re("Node",e,"parentElement")}function Ga(e){return Re("Node",e,"textContent")}function Ya(e,t){return $i("Node",e,"contains")(t)}function Xa(e){return $i("Node",e,"getRootNode")()}function Ja(e){return!e||!("host"in e)?null:Re("ShadowRoot",e,"host")}function Ka(e){return e.styleSheets}function Za(e){return!e||!("shadowRoot"in e)?null:Re("Element",e,"shadowRoot")}function Qa(e,t){return Re("Element",e,"querySelector")(t)}function el(e,t){return Re("Element",e,"querySelectorAll")(t)}function tl(){var e;return[On("MutationObserver").constructor,(e=zi.MutationObserver)!=null?e:(()=>{})]}var Wi=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Wi=()=>new Date().getTime());function rl(e,t,r){try{if(!(t in e))return()=>{};let s=e[t],n=r(s);return typeof n=="function"&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:s}})),e[t]=n,()=>{e[t]=s}}catch(s){return()=>{}}}var oe={ownerDocument:qa,childNodes:ja,parentNode:Va,parentElement:Ha,textContent:Ga,contains:Ya,getRootNode:Xa,host:Ja,styleSheets:Ka,shadowRoot:Za,querySelector:Qa,querySelectorAll:el,nowTimestamp:Wi,mutationObserverCtor:tl,patch:rl};function qi(e){return e.nodeType===e.ELEMENT_NODE}function Qe(e){let t=e&&"host"in e&&"mode"in e&&oe.host(e)||null;return!!(t&&"shadowRoot"in t&&oe.shadowRoot(t)===e)}function et(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function nl(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 sl(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 mn(e){try{let t=e.rules||e.cssRules;if(!t)return null;let r=e.href;!r&&e.ownerNode&&(r=e.ownerNode.baseURI);let s=Array.from(t,n=>ji(n,r)).join("");return nl(s)}catch(t){return null}}function ji(e,t){if(ol(e)){let r;try{r=mn(e.styleSheet)||sl(e)}catch(s){r=e.cssText}return e.styleSheet.href?Ot(r,e.styleSheet.href):r}else{let r=e.cssText;return al(e)&&e.selectorText.includes(":")&&(r=il(r)),t?Ot(r,t):r}}function il(e){let t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function ol(e){return"styleSheet"in e}function al(e){return"selectorText"in e}var Mt=class{constructor(){ys(this,"idNodeMap",new Map),ys(this,"nodeMetaMap",new WeakMap)}getId(t){var r;if(!t)return-1;let s=(r=this.getMeta(t))==null?void 0:r.id;return s!=null?s:-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(s=>this.removeNodeFromMap(s))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){let s=r.id;this.idNodeMap.set(s,t),this.nodeMetaMap.set(t,r)}replace(t,r){let s=this.getNode(t);if(s){let n=this.nodeMetaMap.get(s);n&&this.nodeMetaMap.set(r,n)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function ll(){return new Mt}function Rt({element:e,maskInputOptions:t,tagName:r,type:s,value:n,maskInputFn:o}){let c=n||"",p=s&&ke(s);return(t[r.toLowerCase()]||p&&t[p])&&(o?c=o(c,e):c="*".repeat(c.length)),c}function ke(e){return e.toLowerCase()}var bs="__rrweb_original__";function ul(e){let t=e.getContext("2d");if(!t)return!0;let r=50;for(let s=0;s<e.width;s+=r)for(let n=0;n<e.height;n+=r){let o=t.getImageData,c=bs in o?o[bs]:o;if(new Uint32Array(c.call(t,s,n,Math.min(r,e.width-s),Math.min(r,e.height-n)).data.buffer).some(a=>a!==0))return!1}return!0}function It(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?ke(t):null}function Vi(e,t){var o;let r;try{r=new URL(e,t!=null?t:window.location.href)}catch(c){return null}let s=/\.([0-9a-z]+)(?:$)/i,n=r.pathname.match(s);return(o=n==null?void 0:n[1])!=null?o:null}function cl(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var fl=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,hl=/^(?:[a-z+]+:)?\/\//i,dl=/^www\..*/i,pl=/^(data:)([^,]*),(.*)/i;function Ot(e,t){return(e||"").replace(fl,(r,s,n,o,c,p)=>{let a=n||c||p,d=s||o||"";if(!a)return r;if(hl.test(a)||dl.test(a))return`url(${d}${a}${d})`;if(pl.test(a))return`url(${d}${a}${d})`;if(a[0]==="/")return`url(${d}${cl(t)+a}${d})`;let i=t.split("/"),h=a.split("/");i.pop();for(let u of h)u!=="."&&(u===".."?i.pop():i.push(u));return`url(${d}${i.join("/")}${d})`})}function mt(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function ml(e,t,r=!1){let s=Array.from(t.childNodes),n=[],o=0;if(s.length>1&&e&&typeof e=="string"){let c=mt(e,r),p=c.length/e.length;for(let a=1;a<s.length;a++)if(s[a].textContent&&typeof s[a].textContent=="string"){let d=mt(s[a].textContent,r),i=100,h=3;for(;h<d.length&&(d[h].match(/[a-zA-Z0-9]/)||d.indexOf(d.substring(0,h),1)!==-1);h++);for(;h<d.length;h++){let u=d.substring(0,h),l=c.split(u),m=-1;if(l.length===2)m=l[0].length;else if(l.length>2&&l[0]===""&&s[a-1].textContent!=="")m=c.indexOf(u,1);else if(l.length===1){if(u=u.substring(0,u.length-1),l=c.split(u),l.length<=1)return n.push(e),n;h=i+1}else h===d.length-1&&(m=c.indexOf(u));if(l.length>=2&&h>i){let f=s[a-1].textContent;if(f&&typeof f=="string"){let g=mt(f).length;m=c.indexOf(u,g)}m===-1&&(m=l[0].length)}if(m!==-1){let f=Math.floor(m/p);for(;f>0&&f<e.length;){if(o+=1,o>50*s.length)return n.push(e),n;let g=mt(e.substring(0,f),r);if(g.length===m){n.push(e.substring(0,f)),e=e.substring(f),c=c.substring(m);break}else g.length<m?f+=Math.max(1,Math.floor((m-g.length)/p)):f-=Math.max(1,Math.floor((g.length-m)*p))}break}}}}return n.push(e),n}function gl(e,t){return ml(e,t).join("/* rr_split */")}var yl=1,vl=new RegExp("[^a-z0-9-_:]"),rt=-2;function Hi(){return yl++}function wl(e){if(e instanceof HTMLFormElement)return"form";let t=ke(e.tagName);return vl.test(t)?"div":t}var Be,Ss,bl=/^[^ \t\n\r\u000c]+/,Sl=/^[, \t\n\r\u000c]+/;function Cl(e,t){if(t.trim()==="")return t;let r=0;function s(o){let c,p=o.exec(t.substring(r));return p?(c=p[0],r+=c.length,c):""}let n=[];for(;s(Sl),!(r>=t.length);){let o=s(bl);if(o.slice(-1)===",")o=We(e,o.substring(0,o.length-1)),n.push(o);else{let c="";o=We(e,o);let p=!1;for(;;){let a=t.charAt(r);if(a===""){n.push((o+c).trim());break}else if(p)a===")"&&(p=!1);else if(a===","){r+=1,n.push((o+c).trim());break}else a==="("&&(p=!0);c+=a,r+=1}}}return n.join(", ")}var Cs=new WeakMap;function We(e,t){return!t||t.trim()===""?t:Nn(e,t)}function xl(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Nn(e,t){let r=Cs.get(e);if(r||(r=e.createElement("a"),Cs.set(e,r)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return r.setAttribute("href",t),r.href}function Gi(e,t,r,s){return s&&(r==="src"||r==="href"&&!(t==="use"&&s[0]==="#")||r==="xlink:href"&&s[0]!=="#"||r==="background"&&["table","td","th"].includes(t)?We(e,s):r==="srcset"?Cl(e,s):r==="style"?Ot(s,Nn(e)):t==="object"&&r==="data"?We(e,s):s)}function Yi(e,t,r){return["video","audio"].includes(e)&&t==="autoplay"}function El(e,t,r){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let s=e.classList.length;s--;){let n=e.classList[s];if(t.test(n))return!0}if(r)return e.matches(r)}catch(s){}return!1}function Nt(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r?Nt(oe.parentNode(e),t,r):!1;for(let s=e.classList.length;s--;){let n=e.classList[s];if(t.test(n))return!0}return r?Nt(oe.parentNode(e),t,r):!1}function Xi(e,t,r,s){let n;if(qi(e)){if(n=e,!oe.childNodes(n).length)return!1}else{if(oe.parentElement(e)===null)return!1;n=oe.parentElement(e)}try{if(typeof t=="string"){if(s){if(n.closest(`.${t}`))return!0}else if(n.classList.contains(t))return!0}else if(Nt(n,t,s))return!0;if(r){if(s){if(n.closest(r))return!0}else if(n.matches(r))return!0}}catch(o){}return!1}function Ml(e,t,r){let s=e.contentWindow;if(!s)return;let n=!1,o;try{o=s.document.readyState}catch(p){return}if(o!=="complete"){let p=setTimeout(()=>{n||(t(),n=!0)},r);e.addEventListener("load",()=>{clearTimeout(p),n=!0,t()});return}let c="about:blank";if(s.location.href!==c||e.src===c||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Rl(e,t,r){let s=!1,n;try{n=e.sheet}catch(c){return}if(n)return;let o=setTimeout(()=>{s||(t(),s=!0)},r);e.addEventListener("load",()=>{clearTimeout(o),s=!0,t()})}function Il(e,t){let{doc:r,mirror:s,blockClass:n,blockSelector:o,needsMask:c,inlineStylesheet:p,maskInputOptions:a={},maskTextFn:d,maskInputFn:i,dataURLOptions:h={},inlineImages:u,recordCanvas:l,keepIframeSrcFn:m,newlyAddedElement:f=!1,cssCaptured:g=!1}=t,C=Ol(r,s);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:re.Document,childNodes:[],compatMode:e.compatMode}:{type:re.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:re.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:C};case e.ELEMENT_NODE:return Al(e,{doc:r,blockClass:n,blockSelector:o,inlineStylesheet:p,maskInputOptions:a,maskInputFn:i,dataURLOptions:h,inlineImages:u,recordCanvas:l,keepIframeSrcFn:m,newlyAddedElement:f,rootId:C});case e.TEXT_NODE:return Nl(e,{doc:r,needsMask:c,maskTextFn:d,rootId:C,cssCaptured:g});case e.CDATA_SECTION_NODE:return{type:re.CDATA,textContent:"",rootId:C};case e.COMMENT_NODE:return{type:re.Comment,textContent:oe.textContent(e)||"",rootId:C};default:return!1}}function Ol(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return r===1?void 0:r}function Nl(e,t){let{needsMask:r,maskTextFn:s,rootId:n,cssCaptured:o}=t,c=oe.parentNode(e),p=c&&c.tagName,a="",d=p==="STYLE"?!0:void 0,i=p==="SCRIPT"?!0:void 0;return i?a="SCRIPT_PLACEHOLDER":o||(a=oe.textContent(e),d&&a&&(a=Ot(a,Nn(t.doc)))),!d&&!i&&a&&r&&(a=s?s(a,oe.parentElement(e)):a.replace(/[\S]/g,"*")),{type:re.Text,textContent:a||"",rootId:n}}function Al(e,t){let{doc:r,blockClass:s,blockSelector:n,inlineStylesheet:o,maskInputOptions:c={},maskInputFn:p,dataURLOptions:a={},inlineImages:d,recordCanvas:i,keepIframeSrcFn:h,newlyAddedElement:u=!1,rootId:l}=t,m=El(e,s,n),f=wl(e),g={},C=e.attributes.length;for(let S=0;S<C;S++){let E=e.attributes[S];Yi(f,E.name,E.value)||(g[E.name]=Gi(r,f,ke(E.name),E.value))}if(f==="link"&&o){let S=Array.from(r.styleSheets).find(b=>b.href===e.href),E=null;S&&(E=mn(S)),E&&(delete g.rel,delete g.href,g._cssText=E)}if(f==="style"&&e.sheet){let S=mn(e.sheet);S&&(e.childNodes.length>1&&(S=gl(S,e)),g._cssText=S)}if(["input","textarea","select"].includes(f)){let S=e.value,E=e.checked;g.type!=="radio"&&g.type!=="checkbox"&&g.type!=="submit"&&g.type!=="button"&&S?g.value=Rt({element:e,type:It(e),tagName:f,value:S,maskInputOptions:c,maskInputFn:p}):E&&(g.checked=E)}if(f==="option"&&(e.selected&&!c.select?g.selected=!0:delete g.selected),f==="dialog"&&e.open&&(g.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),f==="canvas"&&i){if(e.__context==="2d")ul(e)||(g.rr_dataURL=e.toDataURL(a.type,a.quality));else if(!("__context"in e)){let S=e.toDataURL(a.type,a.quality),E=r.createElement("canvas");E.width=e.width,E.height=e.height;let b=E.toDataURL(a.type,a.quality);S!==b&&(g.rr_dataURL=S)}}if(f==="img"&&d){Be||(Be=r.createElement("canvas"),Ss=Be.getContext("2d"));let S=e,E=S.currentSrc||S.getAttribute("src")||"<unknown-src>",b=S.crossOrigin,y=()=>{S.removeEventListener("load",y);try{Be.width=S.naturalWidth,Be.height=S.naturalHeight,Ss.drawImage(S,0,0),g.rr_dataURL=Be.toDataURL(a.type,a.quality)}catch(v){if(S.crossOrigin!=="anonymous"){S.crossOrigin="anonymous",S.complete&&S.naturalWidth!==0?y():S.addEventListener("load",y);return}else console.warn(`Cannot inline img src=${E}! Error: ${v}`)}S.crossOrigin==="anonymous"&&(b?g.crossOrigin=b:S.removeAttribute("crossorigin"))};S.complete&&S.naturalWidth!==0?y():S.addEventListener("load",y)}if(["audio","video"].includes(f)){let S=g;S.rr_mediaState=e.paused?"paused":"played",S.rr_mediaCurrentTime=e.currentTime,S.rr_mediaPlaybackRate=e.playbackRate,S.rr_mediaMuted=e.muted,S.rr_mediaLoop=e.loop,S.rr_mediaVolume=e.volume}if(u||(e.scrollLeft&&(g.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(g.rr_scrollTop=e.scrollTop)),m){let{width:S,height:E}=e.getBoundingClientRect();g={class:g.class,rr_width:`${S}px`,rr_height:`${E}px`}}f==="iframe"&&!h(g.src)&&(e.contentDocument||(g.rr_src=g.src),delete g.src);let w;try{customElements.get(f)&&(w=!0)}catch(S){}return{type:re.Element,tagName:f,attributes:g,childNodes:[],isSVG:xl(e)||void 0,needBlock:m,rootId:l,isCustom:w}}function J(e){return e==null?"":e.toLowerCase()}function Ji(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 Dl(e,t){if(t.comment&&e.type===re.Comment)return!0;if(e.type===re.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"&&Vi(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(J(e.attributes.name).match(/^msapplication-tile(image|color)$/)||J(e.attributes.name)==="application-name"||J(e.attributes.rel)==="icon"||J(e.attributes.rel)==="apple-touch-icon"||J(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&J(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(J(e.attributes.property).match(/^(og|twitter|fb):/)||J(e.attributes.name).match(/^(og|twitter):/)||J(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(J(e.attributes.name)==="robots"||J(e.attributes.name)==="googlebot"||J(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(J(e.attributes.name)==="author"||J(e.attributes.name)==="generator"||J(e.attributes.name)==="framework"||J(e.attributes.name)==="publisher"||J(e.attributes.name)==="progid"||J(e.attributes.property).match(/^article:/)||J(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(J(e.attributes.name)==="google-site-verification"||J(e.attributes.name)==="yandex-verification"||J(e.attributes.name)==="csrf-token"||J(e.attributes.name)==="p:domain_verify"||J(e.attributes.name)==="verify-v1"||J(e.attributes.name)==="verification"||J(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function qe(e,t){let{doc:r,mirror:s,blockClass:n,blockSelector:o,maskTextClass:c,maskTextSelector:p,skipChild:a=!1,inlineStylesheet:d=!0,maskInputOptions:i={},maskTextFn:h,maskInputFn:u,slimDOMOptions:l,dataURLOptions:m={},inlineImages:f=!1,recordCanvas:g=!1,onSerialize:C,onIframeLoad:w,iframeLoadTimeout:S=5e3,onStylesheetLoad:E,stylesheetLoadTimeout:b=5e3,keepIframeSrcFn:y=()=>!1,newlyAddedElement:v=!1,cssCaptured:x=!1}=t,{needsMask:I}=t,{preserveWhiteSpace:R=!0}=t;I||(I=Xi(e,c,p,I===void 0));let A=Il(e,{doc:r,mirror:s,blockClass:n,blockSelector:o,needsMask:I,inlineStylesheet:d,maskInputOptions:i,maskTextFn:h,maskInputFn:u,dataURLOptions:m,inlineImages:f,recordCanvas:g,keepIframeSrcFn:y,newlyAddedElement:v,cssCaptured:x});if(!A)return console.warn(e,"not serialized"),null;let O;s.hasNode(e)?O=s.getId(e):Dl(A,l)||!R&&A.type===re.Text&&!A.textContent.replace(/^\s+|\s+$/gm,"").length?O=rt:O=Hi();let M=Object.assign(A,{id:O});if(s.add(e,M),O===rt)return null;C&&C(e);let P=!a;if(M.type===re.Element){P=P&&!M.needBlock,delete M.needBlock;let k=oe.shadowRoot(e);k&&et(k)&&(M.isShadowHost=!0)}if((M.type===re.Document||M.type===re.Element)&&P){l.headWhitespace&&M.type===re.Element&&M.tagName==="head"&&(R=!1);let k={doc:r,mirror:s,blockClass:n,blockSelector:o,needsMask:I,maskTextClass:c,maskTextSelector:p,skipChild:a,inlineStylesheet:d,maskInputOptions:i,maskTextFn:h,maskInputFn:u,slimDOMOptions:l,dataURLOptions:m,inlineImages:f,recordCanvas:g,preserveWhiteSpace:R,onSerialize:C,onIframeLoad:w,iframeLoadTimeout:S,onStylesheetLoad:E,stylesheetLoadTimeout:b,keepIframeSrcFn:y,cssCaptured:!1};if(!(M.type===re.Element&&M.tagName==="textarea"&&M.attributes.value!==void 0)){M.type===re.Element&&M.attributes._cssText!==void 0&&typeof M.attributes._cssText=="string"&&(k.cssCaptured=!0);for(let _ of Array.from(oe.childNodes(e))){let Y=qe(_,k);Y&&M.childNodes.push(Y)}}let T=null;if(qi(e)&&(T=oe.shadowRoot(e)))for(let _ of Array.from(oe.childNodes(T))){let Y=qe(_,k);Y&&(et(T)&&(Y.isShadow=!0),M.childNodes.push(Y))}}let U=oe.parentNode(e);return U&&Qe(U)&&et(U)&&(M.isShadow=!0),M.type===re.Element&&M.tagName==="iframe"&&Ml(e,()=>{let k=e.contentDocument;if(k&&w){let T=qe(k,{doc:k,mirror:s,blockClass:n,blockSelector:o,needsMask:I,maskTextClass:c,maskTextSelector:p,skipChild:!1,inlineStylesheet:d,maskInputOptions:i,maskTextFn:h,maskInputFn:u,slimDOMOptions:l,dataURLOptions:m,inlineImages:f,recordCanvas:g,preserveWhiteSpace:R,onSerialize:C,onIframeLoad:w,iframeLoadTimeout:S,onStylesheetLoad:E,stylesheetLoadTimeout:b,keepIframeSrcFn:y});T&&w(e,T)}},S),M.type===re.Element&&M.tagName==="link"&&typeof M.attributes.rel=="string"&&(M.attributes.rel==="stylesheet"||M.attributes.rel==="preload"&&typeof M.attributes.href=="string"&&Vi(M.attributes.href)==="css")&&Rl(e,()=>{if(E){let k=qe(e,{doc:r,mirror:s,blockClass:n,blockSelector:o,needsMask:I,maskTextClass:c,maskTextSelector:p,skipChild:!1,inlineStylesheet:d,maskInputOptions:i,maskTextFn:h,maskInputFn:u,slimDOMOptions:l,dataURLOptions:m,inlineImages:f,recordCanvas:g,preserveWhiteSpace:R,onSerialize:C,onIframeLoad:w,iframeLoadTimeout:S,onStylesheetLoad:E,stylesheetLoadTimeout:b,keepIframeSrcFn:y});k&&E(e,k)}},b),M}function Tl(e,t){let{mirror:r=new Mt,blockClass:s="rr-block",blockSelector:n=null,maskTextClass:o="rr-mask",maskTextSelector:c=null,inlineStylesheet:p=!0,inlineImages:a=!1,recordCanvas:d=!1,maskAllInputs:i=!1,maskTextFn:h,maskInputFn:u,slimDOM:l=!1,dataURLOptions:m,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:C,iframeLoadTimeout:w,onStylesheetLoad:S,stylesheetLoadTimeout:E,keepIframeSrcFn:b=()=>!1}=t,y=i===!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}:i===!1?{password:!0}:i,v=Ji(l);return qe(e,{doc:e,mirror:r,blockClass:s,blockSelector:n,maskTextClass:o,maskTextSelector:c,skipChild:!1,inlineStylesheet:p,maskInputOptions:y,maskTextFn:h,maskInputFn:u,slimDOMOptions:v,dataURLOptions:m,inlineImages:a,recordCanvas:d,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:C,iframeLoadTimeout:w,onStylesheetLoad:S,stylesheetLoadTimeout:E,keepIframeSrcFn:b,newlyAddedElement:!1})}var kl=/(max|min)-device-(width|height)/,Ec=new RegExp(kl.source,"g");function _l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ll(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function s(){return this instanceof s?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(s){var n=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(r,s,n.get?n:{enumerable:!0,get:function(){return e[s]}})}),r}var gt={exports:{}},xs;function Pl(){if(xs)return gt.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 gt.exports=t(),gt.exports.createColors=t,gt.exports}var Fl={},Ul=Object.freeze(Object.defineProperty({__proto__:null,default:Fl},Symbol.toStringTag,{value:"Module"})),ye=Ll(Ul),cr,Es;function An(){if(Es)return cr;Es=1;let e=Pl(),t=ye;class r extends Error{constructor(n,o,c,p,a,d){super(n),this.name="CssSyntaxError",this.reason=n,a&&(this.file=a),p&&(this.source=p),d&&(this.plugin=d),typeof o!="undefined"&&typeof c!="undefined"&&(typeof o=="number"?(this.line=o,this.column=c):(this.line=o.line,this.column=o.column,this.endLine=c.line,this.endColumn=c.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!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(n){if(!this.source)return"";let o=this.source;n==null&&(n=e.isColorSupported),t&&n&&(o=t(o));let c=o.split(/\r?\n/),p=Math.max(this.line-3,0),a=Math.min(this.line+2,c.length),d=String(a).length,i,h;if(n){let{bold:u,gray:l,red:m}=e.createColors(!0);i=f=>u(m(f)),h=f=>l(f)}else i=h=u=>u;return c.slice(p,a).map((u,l)=>{let m=p+1+l,f=" "+(" "+m).slice(-d)+" | ";if(m===this.line){let g=h(f.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+h(f)+u+`
2
2
  `+g+i("^")}return" "+h(f)+u}).join(`
3
3
  `)}toString(){let n=this.showSourceCode();return n&&(n=`
4
4
 
5
5
  `+n+`
6
- `),this.name+": "+this.message+n}}return ar=r,r.default=r,ar}var yt={},Cs;function On(){return Cs||(Cs=1,yt.isClean=Symbol("isClean"),yt.my=Symbol("my")),yt}var lr,xs;function Yi(){if(xs)return lr;xs=1;let e={after:`
6
+ `),this.name+": "+this.message+n}}return cr=r,r.default=r,cr}var yt={},Ms;function Dn(){return Ms||(Ms=1,yt.isClean=Symbol("isClean"),yt.my=Symbol("my")),yt}var fr,Rs;function Ki(){if(Rs)return fr;Rs=1;let e={after:`
7
7
  `,beforeClose:`
8
8
  `,beforeComment:`
9
9
  `,beforeDecl:`
@@ -14,24 +14,24 @@
14
14
  `)&&(c=c.replace(/[^\n]+$/,"")),!1}),typeof c=="undefined"?c=this.raw(o,null,"beforeDecl"):c&&(c=c.replace(/\S/g,"")),c}rawBeforeDecl(n,o){let c;return n.walkDecls(p=>{if(typeof p.raws.before!="undefined")return c=p.raws.before,c.includes(`
15
15
  `)&&(c=c.replace(/[^\n]+$/,"")),!1}),typeof c=="undefined"?c=this.raw(o,null,"beforeRule"):c&&(c=c.replace(/\S/g,"")),c}rawBeforeOpen(n){let o;return n.walk(c=>{if(c.type!=="decl"&&(o=c.raws.between,typeof o!="undefined"))return!1}),o}rawBeforeRule(n){let o;return n.walk(c=>{if(c.nodes&&(c.parent!==n||n.first!==c)&&typeof c.raws.before!="undefined")return o=c.raws.before,o.includes(`
16
16
  `)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawColon(n){let o;return n.walkDecls(c=>{if(typeof c.raws.between!="undefined")return o=c.raws.between.replace(/[^\s:]/g,""),!1}),o}rawEmptyBody(n){let o;return n.walk(c=>{if(c.nodes&&c.nodes.length===0&&(o=c.raws.after,typeof o!="undefined"))return!1}),o}rawIndent(n){if(n.raws.indent)return n.raws.indent;let o;return n.walk(c=>{let p=c.parent;if(p&&p!==n&&p.parent&&p.parent===n&&typeof c.raws.before!="undefined"){let a=c.raws.before.split(`
17
- `);return o=a[a.length-1],o=o.replace(/\S/g,""),!1}}),o}rawSemicolon(n){let o;return n.walk(c=>{if(c.nodes&&c.nodes.length&&c.last.type==="decl"&&(o=c.raws.semicolon,typeof o!="undefined"))return!1}),o}rawValue(n,o){let c=n[o],p=n.raws[o];return p&&p.value===c?p.raw:c}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,o){if(!this[n.type])throw new Error("Unknown AST node type "+n.type+". Maybe you need to change PostCSS stringifier.");this[n.type](n,o)}}return lr=r,r.default=r,lr}var ur,Es;function kt(){if(Es)return ur;Es=1;let e=Yi();function t(r,s){new e(s).stringify(r)}return ur=t,t.default=t,ur}var cr,Ms;function _t(){if(Ms)return cr;Ms=1;let{isClean:e,my:t}=On(),r=In(),s=Yi(),n=kt();function o(p,a){let d=new p.constructor;for(let i in p){if(!Object.prototype.hasOwnProperty.call(p,i)||i==="proxyCache")continue;let h=p[i],u=typeof h;i==="parent"&&u==="object"?a&&(d[i]=a):i==="source"?d[i]=h:Array.isArray(h)?d[i]=h.map(l=>o(l,d)):(u==="object"&&h!==null&&(h=o(h)),d[i]=h)}return d}class c{constructor(a={}){this.raws={},this[e]=!1,this[t]=!0;for(let d in a)if(d==="nodes"){this.nodes=[];for(let i of a[d])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[d]=a[d]}addToError(a){if(a.postcssNode=this,a.stack&&this.source&&/\n\s{4}at /.test(a.stack)){let d=this.source;a.stack=a.stack.replace(/\n\s{4}at /,`$&${d.input.from}:${d.start.line}:${d.start.column}$&`)}return a}after(a){return this.parent.insertAfter(this,a),this}assign(a={}){for(let d in a)this[d]=a[d];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 d=o(this);for(let i in a)d[i]=a[i];return d}cloneAfter(a={}){let d=this.clone(a);return this.parent.insertAfter(this,d),d}cloneBefore(a={}){let d=this.clone(a);return this.parent.insertBefore(this,d),d}error(a,d={}){if(this.source){let{end:i,start:h}=this.rangeBy(d);return this.source.input.error(a,{column:h.column,line:h.line},{column:i.column,line:i.line},d)}return new r(a)}getProxyProcessor(){return{get(a,d){return d==="proxyOf"?a:d==="root"?()=>a.root().toProxy():a[d]},set(a,d,i){return a[d]===i||(a[d]=i,(d==="prop"||d==="value"||d==="name"||d==="params"||d==="important"||d==="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,d){let i=this.source.start;if(a.index)i=this.positionInside(a.index,d);else if(a.word){d=this.toString();let h=d.indexOf(a.word);h!==-1&&(i=this.positionInside(h,d))}return i}positionInside(a,d){let i=d||this.toString(),h=this.source.start.column,u=this.source.start.line;for(let l=0;l<a;l++)i[l]===`
18
- `?(h=1,u+=1):h+=1;return{column:h,line:u}}prev(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a-1]}rangeBy(a){let d={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:d.column+1,line:d.line};if(a.word){let h=this.toString(),u=h.indexOf(a.word);u!==-1&&(d=this.positionInside(u,h),i=this.positionInside(u+a.word.length,h))}else a.start?d={column:a.start.column,line:a.start.line}:a.index&&(d=this.positionInside(a.index)),a.end?i={column:a.end.column,line:a.end.line}:typeof a.endIndex=="number"?i=this.positionInside(a.endIndex):a.index&&(i=this.positionInside(a.index+1));return(i.line<d.line||i.line===d.line&&i.column<=d.column)&&(i={column:d.column+1,line:d.line}),{end:i,start:d}}raw(a,d){return new s().raw(this,a,d)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...a){if(this.parent){let d=this,i=!1;for(let h of a)h===this?i=!0:i?(this.parent.insertAfter(d,h),d=h):this.parent.insertBefore(d,h);i||this.remove()}return this}root(){let a=this;for(;a.parent&&a.parent.type!=="document";)a=a.parent;return a}toJSON(a,d){let i={},h=d==null;d=d||new Map;let u=0;for(let l in this){if(!Object.prototype.hasOwnProperty.call(this,l)||l==="parent"||l==="proxyCache")continue;let m=this[l];if(Array.isArray(m))i[l]=m.map(f=>typeof f=="object"&&f.toJSON?f.toJSON(null,d):f);else if(typeof m=="object"&&m.toJSON)i[l]=m.toJSON(null,d);else if(l==="source"){let f=d.get(m.input);f==null&&(f=u,d.set(m.input,u),u++),i[l]={end:m.end,inputId:f,start:m.start}}else i[l]=m}return h&&(i.inputs=[...d.keys()].map(l=>l.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(a=n){a.stringify&&(a=a.stringify);let d="";return a(this,i=>{d+=i}),d}warn(a,d,i){let h={node:this};for(let u in i)h[u]=i[u];return a.warn(d,h)}get proxyOf(){return this}}return cr=c,c.default=c,cr}var fr,Rs;function Lt(){if(Rs)return fr;Rs=1;let e=_t();class t extends e{constructor(s){s&&typeof s.value!="undefined"&&typeof s.value!="string"&&(s={...s,value:String(s.value)}),super(s),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return fr=t,t.default=t,fr}var hr,Is;function Ll(){if(Is)return hr;Is=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return hr={nanoid:(s=21)=>{let n="",o=s;for(;o--;)n+=e[Math.random()*64|0];return n},customAlphabet:(s,n=21)=>(o=n)=>{let c="",p=o;for(;p--;)c+=s[Math.random()*s.length|0];return c}},hr}var dr,Os;function Xi(){if(Os)return dr;Os=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ye,{existsSync:r,readFileSync:s}=ye,{dirname:n,join:o}=ye;function c(a){return Buffer?Buffer.from(a,"base64").toString():window.atob(a)}class p{constructor(d,i){if(i.map===!1)return;this.loadAnnotation(d),this.inline=this.startWith(this.annotation,"data:");let h=i.map?i.map.prev:void 0,u=this.loadMap(i.from,h);!this.mapFile&&i.from&&(this.mapFile=i.from),this.mapFile&&(this.root=n(this.mapFile)),u&&(this.text=u)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(d){let i=/^data:application\/json;charset=utf-?8;base64,/,h=/^data:application\/json;base64,/,u=/^data:application\/json;charset=utf-?8,/,l=/^data:application\/json,/;if(u.test(d)||l.test(d))return decodeURIComponent(d.substr(RegExp.lastMatch.length));if(i.test(d)||h.test(d))return c(d.substr(RegExp.lastMatch.length));let m=d.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(d){return d.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(d){return typeof d!="object"?!1:typeof d.mappings=="string"||typeof d._mappings=="string"||Array.isArray(d.sections)}loadAnnotation(d){let i=d.match(/\/\*\s*# sourceMappingURL=/gm);if(!i)return;let h=d.lastIndexOf(i.pop()),u=d.indexOf("*/",h);h>-1&&u>-1&&(this.annotation=this.getAnnotationURL(d.substring(h,u)))}loadFile(d){if(this.root=n(d),r(d))return this.mapFile=d,s(d,"utf-8").toString().trim()}loadMap(d,i){if(i===!1)return!1;if(i){if(typeof i=="string")return i;if(typeof i=="function"){let h=i(d);if(h){let u=this.loadFile(h);if(!u)throw new Error("Unable to load previous source map: "+h.toString());return u}}else{if(i instanceof e)return t.fromSourceMap(i).toString();if(i instanceof t)return i.toString();if(this.isMap(i))return JSON.stringify(i);throw new Error("Unsupported previous source map format: "+i.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let h=this.annotation;return d&&(h=o(n(d),h)),this.loadFile(h)}}}startWith(d,i){return d?d.substr(0,i.length)===i:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return dr=p,p.default=p,dr}var pr,Ns;function Pt(){if(Ns)return pr;Ns=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ye,{fileURLToPath:r,pathToFileURL:s}=ye,{isAbsolute:n,resolve:o}=ye,{nanoid:c}=Ll(),p=ye,a=In(),d=Xi(),i=Symbol("fromOffsetCache"),h=!!(e&&t),u=!!(o&&n);class l{constructor(f,g={}){if(f===null||typeof f=="undefined"||typeof f=="object"&&!f.toString)throw new Error(`PostCSS received ${f} instead of CSS string`);if(this.css=f.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!u||/^\w+:\/\//.test(g.from)||n(g.from)?this.file=g.from:this.file=o(g.from)),u&&h){let C=new d(this.css,g);if(C.text){this.map=C;let w=C.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+c(6)+">"),this.map&&(this.map.file=this.from)}error(f,g,C,w={}){let S,E,b;if(g&&typeof g=="object"){let v=g,x=C;if(typeof v.offset=="number"){let I=this.fromOffset(v.offset);g=I.line,C=I.col}else g=v.line,C=v.column;if(typeof x.offset=="number"){let I=this.fromOffset(x.offset);E=I.line,b=I.col}else E=x.line,b=x.column}else if(!C){let v=this.fromOffset(g);g=v.line,C=v.col}let y=this.origin(g,C,E,b);return y?S=new a(f,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,w.plugin):S=new a(f,E===void 0?g:{column:C,line:g},E===void 0?C:{column:b,line:E},this.css,this.file,w.plugin),S.input={column:C,endColumn:b,endLine:E,line:g,source:this.css},this.file&&(s&&(S.input.url=s(this.file).toString()),S.input.file=this.file),S}fromOffset(f){let g,C;if(this[i])C=this[i];else{let S=this.css.split(`
19
- `);C=new Array(S.length);let E=0;for(let b=0,y=S.length;b<y;b++)C[b]=E,E+=S[b].length+1;this[i]=C}g=C[C.length-1];let w=0;if(f>=g)w=C.length-1;else{let S=C.length-2,E;for(;w<S;)if(E=w+(S-w>>1),f<C[E])S=E-1;else if(f>=C[E+1])w=E+1;else{w=E;break}}return{col:f-C[w]+1,line:w+1}}mapResolve(f){return/^\w+:\/\//.test(f)?f:o(this.map.consumer().sourceRoot||this.map.root||".",f)}origin(f,g,C,w){if(!this.map)return!1;let S=this.map.consumer(),E=S.originalPositionFor({column:g,line:f});if(!E.source)return!1;let b;typeof C=="number"&&(b=S.originalPositionFor({column:w,line:C}));let y;n(E.source)?y=s(E.source):y=new URL(E.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let v={column:E.column,endColumn:b&&b.column,endLine:b&&b.line,line:E.line,url:y.toString()};if(y.protocol==="file:")if(r)v.file=r(y);else throw new Error("file: protocol is not available in this PostCSS build");let x=S.sourceContentFor(E.source);return x&&(v.source=x),v}toJSON(){let f={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(f[g]=this[g]);return this.map&&(f.map={...this.map},f.map.consumerCache&&(f.map.consumerCache=void 0)),f}get from(){return this.file||this.id}}return pr=l,l.default=l,p&&p.registerInput&&p.registerInput(l),pr}var mr,As;function Ji(){if(As)return mr;As=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ye,{dirname:r,relative:s,resolve:n,sep:o}=ye,{pathToFileURL:c}=ye,p=Pt(),a=!!(e&&t),d=!!(r&&n&&s&&o);class i{constructor(u,l,m,f){this.stringify=u,this.mapOpts=m.map||{},this.root=l,this.opts=m,this.css=f,this.originalCSS=f,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let u;this.isInline()?u="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?u=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?u=this.mapOpts.annotation(this.opts.to,this.root):u=this.outputFile()+".map";let l=`
17
+ `);return o=a[a.length-1],o=o.replace(/\S/g,""),!1}}),o}rawSemicolon(n){let o;return n.walk(c=>{if(c.nodes&&c.nodes.length&&c.last.type==="decl"&&(o=c.raws.semicolon,typeof o!="undefined"))return!1}),o}rawValue(n,o){let c=n[o],p=n.raws[o];return p&&p.value===c?p.raw:c}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,o){if(!this[n.type])throw new Error("Unknown AST node type "+n.type+". Maybe you need to change PostCSS stringifier.");this[n.type](n,o)}}return fr=r,r.default=r,fr}var hr,Is;function kt(){if(Is)return hr;Is=1;let e=Ki();function t(r,s){new e(s).stringify(r)}return hr=t,t.default=t,hr}var dr,Os;function _t(){if(Os)return dr;Os=1;let{isClean:e,my:t}=Dn(),r=An(),s=Ki(),n=kt();function o(p,a){let d=new p.constructor;for(let i in p){if(!Object.prototype.hasOwnProperty.call(p,i)||i==="proxyCache")continue;let h=p[i],u=typeof h;i==="parent"&&u==="object"?a&&(d[i]=a):i==="source"?d[i]=h:Array.isArray(h)?d[i]=h.map(l=>o(l,d)):(u==="object"&&h!==null&&(h=o(h)),d[i]=h)}return d}class c{constructor(a={}){this.raws={},this[e]=!1,this[t]=!0;for(let d in a)if(d==="nodes"){this.nodes=[];for(let i of a[d])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[d]=a[d]}addToError(a){if(a.postcssNode=this,a.stack&&this.source&&/\n\s{4}at /.test(a.stack)){let d=this.source;a.stack=a.stack.replace(/\n\s{4}at /,`$&${d.input.from}:${d.start.line}:${d.start.column}$&`)}return a}after(a){return this.parent.insertAfter(this,a),this}assign(a={}){for(let d in a)this[d]=a[d];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 d=o(this);for(let i in a)d[i]=a[i];return d}cloneAfter(a={}){let d=this.clone(a);return this.parent.insertAfter(this,d),d}cloneBefore(a={}){let d=this.clone(a);return this.parent.insertBefore(this,d),d}error(a,d={}){if(this.source){let{end:i,start:h}=this.rangeBy(d);return this.source.input.error(a,{column:h.column,line:h.line},{column:i.column,line:i.line},d)}return new r(a)}getProxyProcessor(){return{get(a,d){return d==="proxyOf"?a:d==="root"?()=>a.root().toProxy():a[d]},set(a,d,i){return a[d]===i||(a[d]=i,(d==="prop"||d==="value"||d==="name"||d==="params"||d==="important"||d==="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,d){let i=this.source.start;if(a.index)i=this.positionInside(a.index,d);else if(a.word){d=this.toString();let h=d.indexOf(a.word);h!==-1&&(i=this.positionInside(h,d))}return i}positionInside(a,d){let i=d||this.toString(),h=this.source.start.column,u=this.source.start.line;for(let l=0;l<a;l++)i[l]===`
18
+ `?(h=1,u+=1):h+=1;return{column:h,line:u}}prev(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a-1]}rangeBy(a){let d={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:d.column+1,line:d.line};if(a.word){let h=this.toString(),u=h.indexOf(a.word);u!==-1&&(d=this.positionInside(u,h),i=this.positionInside(u+a.word.length,h))}else a.start?d={column:a.start.column,line:a.start.line}:a.index&&(d=this.positionInside(a.index)),a.end?i={column:a.end.column,line:a.end.line}:typeof a.endIndex=="number"?i=this.positionInside(a.endIndex):a.index&&(i=this.positionInside(a.index+1));return(i.line<d.line||i.line===d.line&&i.column<=d.column)&&(i={column:d.column+1,line:d.line}),{end:i,start:d}}raw(a,d){return new s().raw(this,a,d)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...a){if(this.parent){let d=this,i=!1;for(let h of a)h===this?i=!0:i?(this.parent.insertAfter(d,h),d=h):this.parent.insertBefore(d,h);i||this.remove()}return this}root(){let a=this;for(;a.parent&&a.parent.type!=="document";)a=a.parent;return a}toJSON(a,d){let i={},h=d==null;d=d||new Map;let u=0;for(let l in this){if(!Object.prototype.hasOwnProperty.call(this,l)||l==="parent"||l==="proxyCache")continue;let m=this[l];if(Array.isArray(m))i[l]=m.map(f=>typeof f=="object"&&f.toJSON?f.toJSON(null,d):f);else if(typeof m=="object"&&m.toJSON)i[l]=m.toJSON(null,d);else if(l==="source"){let f=d.get(m.input);f==null&&(f=u,d.set(m.input,u),u++),i[l]={end:m.end,inputId:f,start:m.start}}else i[l]=m}return h&&(i.inputs=[...d.keys()].map(l=>l.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(a=n){a.stringify&&(a=a.stringify);let d="";return a(this,i=>{d+=i}),d}warn(a,d,i){let h={node:this};for(let u in i)h[u]=i[u];return a.warn(d,h)}get proxyOf(){return this}}return dr=c,c.default=c,dr}var pr,Ns;function Lt(){if(Ns)return pr;Ns=1;let e=_t();class t extends e{constructor(s){s&&typeof s.value!="undefined"&&typeof s.value!="string"&&(s={...s,value:String(s.value)}),super(s),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return pr=t,t.default=t,pr}var mr,As;function Bl(){if(As)return mr;As=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return mr={nanoid:(s=21)=>{let n="",o=s;for(;o--;)n+=e[Math.random()*64|0];return n},customAlphabet:(s,n=21)=>(o=n)=>{let c="",p=o;for(;p--;)c+=s[Math.random()*s.length|0];return c}},mr}var gr,Ds;function Zi(){if(Ds)return gr;Ds=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ye,{existsSync:r,readFileSync:s}=ye,{dirname:n,join:o}=ye;function c(a){return Buffer?Buffer.from(a,"base64").toString():window.atob(a)}class p{constructor(d,i){if(i.map===!1)return;this.loadAnnotation(d),this.inline=this.startWith(this.annotation,"data:");let h=i.map?i.map.prev:void 0,u=this.loadMap(i.from,h);!this.mapFile&&i.from&&(this.mapFile=i.from),this.mapFile&&(this.root=n(this.mapFile)),u&&(this.text=u)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(d){let i=/^data:application\/json;charset=utf-?8;base64,/,h=/^data:application\/json;base64,/,u=/^data:application\/json;charset=utf-?8,/,l=/^data:application\/json,/;if(u.test(d)||l.test(d))return decodeURIComponent(d.substr(RegExp.lastMatch.length));if(i.test(d)||h.test(d))return c(d.substr(RegExp.lastMatch.length));let m=d.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(d){return d.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(d){return typeof d!="object"?!1:typeof d.mappings=="string"||typeof d._mappings=="string"||Array.isArray(d.sections)}loadAnnotation(d){let i=d.match(/\/\*\s*# sourceMappingURL=/gm);if(!i)return;let h=d.lastIndexOf(i.pop()),u=d.indexOf("*/",h);h>-1&&u>-1&&(this.annotation=this.getAnnotationURL(d.substring(h,u)))}loadFile(d){if(this.root=n(d),r(d))return this.mapFile=d,s(d,"utf-8").toString().trim()}loadMap(d,i){if(i===!1)return!1;if(i){if(typeof i=="string")return i;if(typeof i=="function"){let h=i(d);if(h){let u=this.loadFile(h);if(!u)throw new Error("Unable to load previous source map: "+h.toString());return u}}else{if(i instanceof e)return t.fromSourceMap(i).toString();if(i instanceof t)return i.toString();if(this.isMap(i))return JSON.stringify(i);throw new Error("Unsupported previous source map format: "+i.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let h=this.annotation;return d&&(h=o(n(d),h)),this.loadFile(h)}}}startWith(d,i){return d?d.substr(0,i.length)===i:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return gr=p,p.default=p,gr}var yr,Ts;function Pt(){if(Ts)return yr;Ts=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ye,{fileURLToPath:r,pathToFileURL:s}=ye,{isAbsolute:n,resolve:o}=ye,{nanoid:c}=Bl(),p=ye,a=An(),d=Zi(),i=Symbol("fromOffsetCache"),h=!!(e&&t),u=!!(o&&n);class l{constructor(f,g={}){if(f===null||typeof f=="undefined"||typeof f=="object"&&!f.toString)throw new Error(`PostCSS received ${f} instead of CSS string`);if(this.css=f.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!u||/^\w+:\/\//.test(g.from)||n(g.from)?this.file=g.from:this.file=o(g.from)),u&&h){let C=new d(this.css,g);if(C.text){this.map=C;let w=C.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+c(6)+">"),this.map&&(this.map.file=this.from)}error(f,g,C,w={}){let S,E,b;if(g&&typeof g=="object"){let v=g,x=C;if(typeof v.offset=="number"){let I=this.fromOffset(v.offset);g=I.line,C=I.col}else g=v.line,C=v.column;if(typeof x.offset=="number"){let I=this.fromOffset(x.offset);E=I.line,b=I.col}else E=x.line,b=x.column}else if(!C){let v=this.fromOffset(g);g=v.line,C=v.col}let y=this.origin(g,C,E,b);return y?S=new a(f,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,w.plugin):S=new a(f,E===void 0?g:{column:C,line:g},E===void 0?C:{column:b,line:E},this.css,this.file,w.plugin),S.input={column:C,endColumn:b,endLine:E,line:g,source:this.css},this.file&&(s&&(S.input.url=s(this.file).toString()),S.input.file=this.file),S}fromOffset(f){let g,C;if(this[i])C=this[i];else{let S=this.css.split(`
19
+ `);C=new Array(S.length);let E=0;for(let b=0,y=S.length;b<y;b++)C[b]=E,E+=S[b].length+1;this[i]=C}g=C[C.length-1];let w=0;if(f>=g)w=C.length-1;else{let S=C.length-2,E;for(;w<S;)if(E=w+(S-w>>1),f<C[E])S=E-1;else if(f>=C[E+1])w=E+1;else{w=E;break}}return{col:f-C[w]+1,line:w+1}}mapResolve(f){return/^\w+:\/\//.test(f)?f:o(this.map.consumer().sourceRoot||this.map.root||".",f)}origin(f,g,C,w){if(!this.map)return!1;let S=this.map.consumer(),E=S.originalPositionFor({column:g,line:f});if(!E.source)return!1;let b;typeof C=="number"&&(b=S.originalPositionFor({column:w,line:C}));let y;n(E.source)?y=s(E.source):y=new URL(E.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let v={column:E.column,endColumn:b&&b.column,endLine:b&&b.line,line:E.line,url:y.toString()};if(y.protocol==="file:")if(r)v.file=r(y);else throw new Error("file: protocol is not available in this PostCSS build");let x=S.sourceContentFor(E.source);return x&&(v.source=x),v}toJSON(){let f={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(f[g]=this[g]);return this.map&&(f.map={...this.map},f.map.consumerCache&&(f.map.consumerCache=void 0)),f}get from(){return this.file||this.id}}return yr=l,l.default=l,p&&p.registerInput&&p.registerInput(l),yr}var vr,ks;function Qi(){if(ks)return vr;ks=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ye,{dirname:r,relative:s,resolve:n,sep:o}=ye,{pathToFileURL:c}=ye,p=Pt(),a=!!(e&&t),d=!!(r&&n&&s&&o);class i{constructor(u,l,m,f){this.stringify=u,this.mapOpts=m.map||{},this.root=l,this.opts=m,this.css=f,this.originalCSS=f,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let u;this.isInline()?u="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?u=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?u=this.mapOpts.annotation(this.opts.to,this.root):u=this.outputFile()+".map";let l=`
20
20
  `;this.css.includes(`\r
21
21
  `)&&(l=`\r
22
22
  `),this.css+=l+"/*# sourceMappingURL="+u+" */"}applyPrevMaps(){for(let u of this.previous()){let l=this.toUrl(this.path(u.file)),m=u.root||r(u.file),f;this.mapOpts.sourcesContent===!1?(f=new e(u.text),f.sourcesContent&&(f.sourcesContent=null)):f=u.consumer(),this.map.applySourceMap(f,l,this.toUrl(this.path(m)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let u;for(let l=this.root.nodes.length-1;l>=0;l--)u=this.root.nodes[l],u.type==="comment"&&u.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(l)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),d&&a&&this.isMap())return this.generateMap();{let u="";return this.stringify(this.root,l=>{u+=l}),[u]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let u=this.previous()[0].consumer();u.file=this.outputFile(),this.map=t.fromSourceMap(u,{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 u=1,l=1,m="<no source>",f={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,C;this.stringify(this.root,(w,S,E)=>{if(this.css+=w,S&&E!=="end"&&(f.generated.line=u,f.generated.column=l-1,S.source&&S.source.start?(f.source=this.sourcePath(S),f.original.line=S.source.start.line,f.original.column=S.source.start.column-1,this.map.addMapping(f)):(f.source=m,f.original.line=1,f.original.column=0,this.map.addMapping(f))),g=w.match(/\n/g),g?(u+=g.length,C=w.lastIndexOf(`
23
- `),l=w.length-C):l+=w.length,S&&E!=="start"){let b=S.parent||{raws:{}};(!(S.type==="decl"||S.type==="atrule"&&!S.nodes)||S!==b.last||b.raws.semicolon)&&(S.source&&S.source.end?(f.source=this.sourcePath(S),f.original.line=S.source.end.line,f.original.column=S.source.end.column-1,f.generated.line=u,f.generated.column=l-2,this.map.addMapping(f)):(f.source=m,f.original.line=1,f.original.column=0,f.generated.line=u,f.generated.column=l-1,this.map.addMapping(f)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(u=>u.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let u=this.mapOpts.annotation;return typeof u!="undefined"&&u!==!0?!1:this.previous().length?this.previous().some(l=>l.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(u=>u.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(u){if(this.mapOpts.absolute||u.charCodeAt(0)===60||/^\w+:\/\//.test(u))return u;let l=this.memoizedPaths.get(u);if(l)return l;let m=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=r(n(m,this.mapOpts.annotation)));let f=s(m,u);return this.memoizedPaths.set(u,f),f}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(u=>{if(u.source&&u.source.input.map){let l=u.source.input.map;this.previousMaps.includes(l)||this.previousMaps.push(l)}});else{let u=new p(this.originalCSS,this.opts);u.map&&this.previousMaps.push(u.map)}return this.previousMaps}setSourcesContent(){let u={};if(this.root)this.root.walk(l=>{if(l.source){let m=l.source.input.from;if(m&&!u[m]){u[m]=!0;let f=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(f,l.source.input.css)}}});else if(this.css){let l=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(l,this.css)}}sourcePath(u){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(u.source.input.from):this.toUrl(this.path(u.source.input.from))}toBase64(u){return Buffer?Buffer.from(u).toString("base64"):window.btoa(unescape(encodeURIComponent(u)))}toFileUrl(u){let l=this.memoizedFileURLs.get(u);if(l)return l;if(c){let m=c(u).toString();return this.memoizedFileURLs.set(u,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(u){let l=this.memoizedURLs.get(u);if(l)return l;o==="\\"&&(u=u.replace(/\\/g,"/"));let m=encodeURI(u).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(u,m),m}}return mr=i,mr}var gr,Ts;function Ft(){if(Ts)return gr;Ts=1;let e=_t();class t extends e{constructor(s){super(s),this.type="comment"}}return gr=t,t.default=t,gr}var yr,Ds;function _e(){if(Ds)return yr;Ds=1;let{isClean:e,my:t}=On(),r=Lt(),s=Ft(),n=_t(),o,c,p,a;function d(u){return u.map(l=>(l.nodes&&(l.nodes=d(l.nodes)),delete l.source,l))}function i(u){if(u[e]=!1,u.proxyOf.nodes)for(let l of u.proxyOf.nodes)i(l)}class h extends n{append(...l){for(let m of l){let f=this.normalize(m,this.last);for(let g of f)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(l){if(super.cleanRaws(l),this.nodes)for(let m of this.nodes)m.cleanRaws(l)}each(l){if(!this.proxyOf.nodes)return;let m=this.getIterator(),f,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(f=this.indexes[m],g=l(this.proxyOf.nodes[f],f),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(l){return this.nodes.every(l)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let l=this.lastEach;return this.indexes[l]=0,l}getProxyProcessor(){return{get(l,m){return m==="proxyOf"?l:l[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...f)=>l[m](...f.map(g=>typeof g=="function"?(C,w)=>g(C.toProxy(),w):g)):m==="every"||m==="some"?f=>l[m]((g,...C)=>f(g.toProxy(),...C)):m==="root"?()=>l.root().toProxy():m==="nodes"?l.nodes.map(f=>f.toProxy()):m==="first"||m==="last"?l[m].toProxy():l[m]:l[m]},set(l,m,f){return l[m]===f||(l[m]=f,(m==="name"||m==="params"||m==="selector")&&l.markDirty()),!0}}}index(l){return typeof l=="number"?l:(l.proxyOf&&(l=l.proxyOf),this.proxyOf.nodes.indexOf(l))}insertAfter(l,m){let f=this.index(l),g=this.normalize(m,this.proxyOf.nodes[f]).reverse();f=this.index(l);for(let w of g)this.proxyOf.nodes.splice(f+1,0,w);let C;for(let w in this.indexes)C=this.indexes[w],f<C&&(this.indexes[w]=C+g.length);return this.markDirty(),this}insertBefore(l,m){let f=this.index(l),g=f===0?"prepend":!1,C=this.normalize(m,this.proxyOf.nodes[f],g).reverse();f=this.index(l);for(let S of C)this.proxyOf.nodes.splice(f,0,S);let w;for(let S in this.indexes)w=this.indexes[S],f<=w&&(this.indexes[S]=w+C.length);return this.markDirty(),this}normalize(l,m){if(typeof l=="string")l=d(o(l).nodes);else if(typeof l=="undefined")l=[];else if(Array.isArray(l)){l=l.slice(0);for(let g of l)g.parent&&g.parent.removeChild(g,"ignore")}else if(l.type==="root"&&this.type!=="document"){l=l.nodes.slice(0);for(let g of l)g.parent&&g.parent.removeChild(g,"ignore")}else if(l.type)l=[l];else if(l.prop){if(typeof l.value=="undefined")throw new Error("Value field is missed in node creation");typeof l.value!="string"&&(l.value=String(l.value)),l=[new r(l)]}else if(l.selector)l=[new c(l)];else if(l.name)l=[new p(l)];else if(l.text)l=[new s(l)];else throw new Error("Unknown node type in node creation");return l.map(g=>(g[t]||h.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&i(g),typeof g.raws.before=="undefined"&&m&&typeof m.raws.before!="undefined"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...l){l=l.reverse();for(let m of l){let f=this.normalize(m,this.first,"prepend").reverse();for(let g of f)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+f.length}return this.markDirty(),this}push(l){return l.parent=this,this.proxyOf.nodes.push(l),this}removeAll(){for(let l of this.proxyOf.nodes)l.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(l){l=this.index(l),this.proxyOf.nodes[l].parent=void 0,this.proxyOf.nodes.splice(l,1);let m;for(let f in this.indexes)m=this.indexes[f],m>=l&&(this.indexes[f]=m-1);return this.markDirty(),this}replaceValues(l,m,f){return f||(f=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(l,f))}),this.markDirty(),this}some(l){return this.nodes.some(l)}walk(l){return this.each((m,f)=>{let g;try{g=l(m,f)}catch(C){throw m.addToError(C)}return g!==!1&&m.walk&&(g=m.walk(l)),g})}walkAtRules(l,m){return m?l instanceof RegExp?this.walk((f,g)=>{if(f.type==="atrule"&&l.test(f.name))return m(f,g)}):this.walk((f,g)=>{if(f.type==="atrule"&&f.name===l)return m(f,g)}):(m=l,this.walk((f,g)=>{if(f.type==="atrule")return m(f,g)}))}walkComments(l){return this.walk((m,f)=>{if(m.type==="comment")return l(m,f)})}walkDecls(l,m){return m?l instanceof RegExp?this.walk((f,g)=>{if(f.type==="decl"&&l.test(f.prop))return m(f,g)}):this.walk((f,g)=>{if(f.type==="decl"&&f.prop===l)return m(f,g)}):(m=l,this.walk((f,g)=>{if(f.type==="decl")return m(f,g)}))}walkRules(l,m){return m?l instanceof RegExp?this.walk((f,g)=>{if(f.type==="rule"&&l.test(f.selector))return m(f,g)}):this.walk((f,g)=>{if(f.type==="rule"&&f.selector===l)return m(f,g)}):(m=l,this.walk((f,g)=>{if(f.type==="rule")return m(f,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=u=>{o=u},h.registerRule=u=>{c=u},h.registerAtRule=u=>{p=u},h.registerRoot=u=>{a=u},yr=h,h.default=h,h.rebuild=u=>{u.type==="atrule"?Object.setPrototypeOf(u,p.prototype):u.type==="rule"?Object.setPrototypeOf(u,c.prototype):u.type==="decl"?Object.setPrototypeOf(u,r.prototype):u.type==="comment"?Object.setPrototypeOf(u,s.prototype):u.type==="root"&&Object.setPrototypeOf(u,a.prototype),u[t]=!0,u.nodes&&u.nodes.forEach(l=>{h.rebuild(l)})},yr}var vr,ks;function Nn(){if(ks)return vr;ks=1;let e=_e(),t,r;class s extends e{constructor(o){super({type:"document",...o}),this.nodes||(this.nodes=[])}toResult(o={}){return new t(new r,this,o).stringify()}}return s.registerLazyResult=n=>{t=n},s.registerProcessor=n=>{r=n},vr=s,s.default=s,vr}var wr,_s;function Ki(){if(_s)return wr;_s=1;let e={};return wr=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},wr}var br,Ls;function Zi(){if(Ls)return br;Ls=1;class e{constructor(r,s={}){if(this.type="warning",this.text=r,s.node&&s.node.source){let n=s.node.rangeBy(s);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in s)this[n]=s[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 br=e,e.default=e,br}var Sr,Ps;function An(){if(Ps)return Sr;Ps=1;let e=Zi();class t{constructor(s,n,o){this.processor=s,this.messages=[],this.root=n,this.opts=o,this.css=void 0,this.map=void 0}toString(){return this.css}warn(s,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let o=new e(s,n);return this.messages.push(o),o}warnings(){return this.messages.filter(s=>s.type==="warning")}get content(){return this.css}}return Sr=t,t.default=t,Sr}var Cr,Fs;function Pl(){if(Fs)return Cr;Fs=1;let e=39,t=34,r=92,s=47,n=10,o=32,c=12,p=9,a=13,d=91,i=93,h=40,u=41,l=123,m=125,f=59,g=42,C=58,w=64,S=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,b=/.[\r\n"'(/\\]/,y=/[\da-f]/i;return Cr=function(x,I={}){let R=x.css.valueOf(),A=I.ignoreErrors,O,M,P,U,k,D,_,Y,H,F,ne=R.length,N=0,K=[],z=[];function ie(){return N}function se(L){throw x.error("Unclosed "+L,N)}function ae(){return z.length===0&&N>=ne}function Ce(L){if(z.length)return z.pop();if(N>=ne)return;let ee=L?L.ignoreUnclosed:!1;switch(O=R.charCodeAt(N),O){case n:case o:case p:case a:case c:{M=N;do M+=1,O=R.charCodeAt(M);while(O===o||O===n||O===p||O===a||O===c);F=["space",R.slice(N,M)],N=M-1;break}case d:case i:case l:case m:case C:case f:case u:{let j=String.fromCharCode(O);F=[j,j,N];break}case h:{if(Y=K.length?K.pop()[1]:"",H=R.charCodeAt(N+1),Y==="url"&&H!==e&&H!==t&&H!==o&&H!==n&&H!==p&&H!==c&&H!==a){M=N;do{if(D=!1,M=R.indexOf(")",M+1),M===-1)if(A||ee){M=N;break}else se("bracket");for(_=M;R.charCodeAt(_-1)===r;)_-=1,D=!D}while(D);F=["brackets",R.slice(N,M+1),N,M],N=M}else M=R.indexOf(")",N+1),U=R.slice(N,M+1),M===-1||b.test(U)?F=["(","(",N]:(F=["brackets",U,N,M],N=M);break}case e:case t:{P=O===e?"'":'"',M=N;do{if(D=!1,M=R.indexOf(P,M+1),M===-1)if(A||ee){M=N+1;break}else se("string");for(_=M;R.charCodeAt(_-1)===r;)_-=1,D=!D}while(D);F=["string",R.slice(N,M+1),N,M],N=M;break}case w:{S.lastIndex=N+1,S.test(R),S.lastIndex===0?M=R.length-1:M=S.lastIndex-2,F=["at-word",R.slice(N,M+1),N,M],N=M;break}case r:{for(M=N,k=!0;R.charCodeAt(M+1)===r;)M+=1,k=!k;if(O=R.charCodeAt(M+1),k&&O!==s&&O!==o&&O!==n&&O!==p&&O!==a&&O!==c&&(M+=1,y.test(R.charAt(M)))){for(;y.test(R.charAt(M+1));)M+=1;R.charCodeAt(M+1)===o&&(M+=1)}F=["word",R.slice(N,M+1),N,M],N=M;break}default:{O===s&&R.charCodeAt(N+1)===g?(M=R.indexOf("*/",N+2)+1,M===0&&(A||ee?M=R.length:se("comment")),F=["comment",R.slice(N,M+1),N,M],N=M):(E.lastIndex=N+1,E.test(R),E.lastIndex===0?M=R.length-1:M=E.lastIndex-2,F=["word",R.slice(N,M+1),N,M],K.push(F),N=M);break}}return N++,F}function me(L){z.push(L)}return{back:me,endOfFile:ae,nextToken:Ce,position:ie}},Cr}var xr,Us;function Tn(){if(Us)return xr;Us=1;let e=_e();class t extends e{constructor(s){super(s),this.type="atrule"}append(...s){return this.proxyOf.nodes||(this.nodes=[]),super.append(...s)}prepend(...s){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...s)}}return xr=t,t.default=t,e.registerAtRule(t),xr}var Er,Bs;function it(){if(Bs)return Er;Bs=1;let e=_e(),t,r;class s extends e{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[])}normalize(o,c,p){let a=super.normalize(o);if(c){if(p==="prepend")this.nodes.length>1?c.raws.before=this.nodes[1].raws.before:delete c.raws.before;else if(this.first!==c)for(let d of a)d.raws.before=c.raws.before}return a}removeChild(o,c){let p=this.index(o);return!c&&p===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[p].raws.before),super.removeChild(o)}toResult(o={}){return new t(new r,this,o).stringify()}}return s.registerLazyResult=n=>{t=n},s.registerProcessor=n=>{r=n},Er=s,s.default=s,e.registerRoot(s),Er}var Mr,zs;function Qi(){if(zs)return Mr;zs=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
24
- `," "];return e.split(t,r)},split(t,r,s){let n=[],o="",c=!1,p=0,a=!1,d="",i=!1;for(let h of t)i?i=!1:h==="\\"?i=!0:a?h===d&&(a=!1):h==='"'||h==="'"?(a=!0,d=h):h==="("?p+=1:h===")"?p>0&&(p-=1):p===0&&r.includes(h)&&(c=!0),c?(o!==""&&n.push(o.trim()),o="",c=!1):o+=h;return(s||o!=="")&&n.push(o.trim()),n}};return Mr=e,e.default=e,Mr}var Rr,$s;function Dn(){if($s)return Rr;$s=1;let e=_e(),t=Qi();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 o=this.selector?this.selector.match(/,\s*/):null,c=o?o[0]:","+this.raw("between","beforeOpen");this.selector=n.join(c)}}return Rr=r,r.default=r,e.registerRule(r),Rr}var Ir,Ws;function Fl(){if(Ws)return Ir;Ws=1;let e=Lt(),t=Pl(),r=Ft(),s=Tn(),n=it(),o=Dn(),c={empty:!0,space:!0};function p(d){for(let i=d.length-1;i>=0;i--){let h=d[i],u=h[3]||h[2];if(u)return u}}class a{constructor(i){this.input=i,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}atrule(i){let h=new s;h.name=i[1].slice(1),h.name===""&&this.unnamedAtrule(h,i),this.init(h,i[2]);let u,l,m,f=!1,g=!1,C=[],w=[];for(;!this.tokenizer.endOfFile();){if(i=this.tokenizer.nextToken(),u=i[0],u==="("||u==="["?w.push(u==="("?")":"]"):u==="{"&&w.length>0?w.push("}"):u===w[w.length-1]&&w.pop(),w.length===0)if(u===";"){h.source.end=this.getPosition(i[2]),h.source.end.offset++,this.semicolon=!0;break}else if(u==="{"){g=!0;break}else if(u==="}"){if(C.length>0){for(m=C.length-1,l=C[m];l&&l[0]==="space";)l=C[--m];l&&(h.source.end=this.getPosition(l[3]||l[2]),h.source.end.offset++)}this.end(i);break}else C.push(i);else C.push(i);if(this.tokenizer.endOfFile()){f=!0;break}}h.raws.between=this.spacesAndCommentsFromEnd(C),C.length?(h.raws.afterName=this.spacesAndCommentsFromStart(C),this.raw(h,"params",C),f&&(i=C[C.length-1],h.source.end=this.getPosition(i[3]||i[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(i){let h=this.colon(i);if(h===!1)return;let u=0,l;for(let m=h-1;m>=0&&(l=i[m],!(l[0]!=="space"&&(u+=1,u===2)));m--);throw this.input.error("Missed semicolon",l[0]==="word"?l[3]+1:l[2])}colon(i){let h=0,u,l,m;for(let[f,g]of i.entries()){if(u=g,l=u[0],l==="("&&(h+=1),l===")"&&(h-=1),h===0&&l===":")if(!m)this.doubleColon(u);else{if(m[0]==="word"&&m[1]==="progid")continue;return f}m=u}return!1}comment(i){let h=new r;this.init(h,i[2]),h.source.end=this.getPosition(i[3]||i[2]),h.source.end.offset++;let u=i[1].slice(2,-2);if(/^\s*$/.test(u))h.text="",h.raws.left=u,h.raws.right="";else{let l=u.match(/^(\s*)([^]*\S)(\s*)$/);h.text=l[2],h.raws.left=l[1],h.raws.right=l[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(i,h){let u=new e;this.init(u,i[0][2]);let l=i[i.length-1];for(l[0]===";"&&(this.semicolon=!0,i.pop()),u.source.end=this.getPosition(l[3]||l[2]||p(i)),u.source.end.offset++;i[0][0]!=="word";)i.length===1&&this.unknownWord(i),u.raws.before+=i.shift()[1];for(u.source.start=this.getPosition(i[0][2]),u.prop="";i.length;){let w=i[0][0];if(w===":"||w==="space"||w==="comment")break;u.prop+=i.shift()[1]}u.raws.between="";let m;for(;i.length;)if(m=i.shift(),m[0]===":"){u.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),u.raws.between+=m[1];(u.prop[0]==="_"||u.prop[0]==="*")&&(u.raws.before+=u.prop[0],u.prop=u.prop.slice(1));let f=[],g;for(;i.length&&(g=i[0][0],!(g!=="space"&&g!=="comment"));)f.push(i.shift());this.precheckMissedSemicolon(i);for(let w=i.length-1;w>=0;w--){if(m=i[w],m[1].toLowerCase()==="!important"){u.important=!0;let S=this.stringFrom(i,w);S=this.spacesFromEnd(i)+S,S!==" !important"&&(u.raws.important=S);break}else if(m[1].toLowerCase()==="important"){let S=i.slice(0),E="";for(let b=w;b>0;b--){let y=S[b][0];if(E.trim().indexOf("!")===0&&y!=="space")break;E=S.pop()[1]+E}E.trim().indexOf("!")===0&&(u.important=!0,u.raws.important=E,i=S)}if(m[0]!=="space"&&m[0]!=="comment")break}i.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(u.raws.between+=f.map(w=>w[1]).join(""),f=[]),this.raw(u,"value",f.concat(i),h),u.value.includes(":")&&!h&&this.checkMissedSemicolon(i)}doubleColon(i){throw this.input.error("Double colon",{offset:i[2]},{offset:i[2]+i[1].length})}emptyRule(i){let h=new o;this.init(h,i[2]),h.selector="",h.raws.between="",this.current=h}end(i){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(i[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(i)}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(i){if(this.spaces+=i[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(i){let h=this.input.fromOffset(i);return{column:h.col,line:h.line,offset:i}}init(i,h){this.current.push(i),i.source={input:this.input,start:this.getPosition(h)},i.raws.before=this.spaces,this.spaces="",i.type!=="comment"&&(this.semicolon=!1)}other(i){let h=!1,u=null,l=!1,m=null,f=[],g=i[1].startsWith("--"),C=[],w=i;for(;w;){if(u=w[0],C.push(w),u==="("||u==="[")m||(m=w),f.push(u==="("?")":"]");else if(g&&l&&u==="{")m||(m=w),f.push("}");else if(f.length===0)if(u===";")if(l){this.decl(C,g);return}else break;else if(u==="{"){this.rule(C);return}else if(u==="}"){this.tokenizer.back(C.pop()),h=!0;break}else u===":"&&(l=!0);else u===f[f.length-1]&&(f.pop(),f.length===0&&(m=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(h=!0),f.length>0&&this.unclosedBracket(m),h&&l){if(!g)for(;C.length&&(w=C[C.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(C.pop());this.decl(C,g)}else this.unknownWord(C)}parse(){let i;for(;!this.tokenizer.endOfFile();)switch(i=this.tokenizer.nextToken(),i[0]){case"space":this.spaces+=i[1];break;case";":this.freeSemicolon(i);break;case"}":this.end(i);break;case"comment":this.comment(i);break;case"at-word":this.atrule(i);break;case"{":this.emptyRule(i);break;default:this.other(i);break}this.endFile()}precheckMissedSemicolon(){}raw(i,h,u,l){let m,f,g=u.length,C="",w=!0,S,E;for(let b=0;b<g;b+=1)m=u[b],f=m[0],f==="space"&&b===g-1&&!l?w=!1:f==="comment"?(E=u[b-1]?u[b-1][0]:"empty",S=u[b+1]?u[b+1][0]:"empty",!c[E]&&!c[S]?C.slice(-1)===","?w=!1:C+=m[1]:w=!1):C+=m[1];if(!w){let b=u.reduce((y,v)=>y+v[1],"");i.raws[h]={raw:b,value:C}}i[h]=C}rule(i){i.pop();let h=new o;this.init(h,i[0][2]),h.raws.between=this.spacesAndCommentsFromEnd(i),this.raw(h,"selector",i),this.current=h}spacesAndCommentsFromEnd(i){let h,u="";for(;i.length&&(h=i[i.length-1][0],!(h!=="space"&&h!=="comment"));)u=i.pop()[1]+u;return u}spacesAndCommentsFromStart(i){let h,u="";for(;i.length&&(h=i[0][0],!(h!=="space"&&h!=="comment"));)u+=i.shift()[1];return u}spacesFromEnd(i){let h,u="";for(;i.length&&(h=i[i.length-1][0],h==="space");)u=i.pop()[1]+u;return u}stringFrom(i,h){let u="";for(let l=h;l<i.length;l++)u+=i[l][1];return i.splice(h,i.length-h),u}unclosedBlock(){let i=this.current.source.start;throw this.input.error("Unclosed block",i.line,i.column)}unclosedBracket(i){throw this.input.error("Unclosed bracket",{offset:i[2]},{offset:i[2]+1})}unexpectedClose(i){throw this.input.error("Unexpected }",{offset:i[2]},{offset:i[2]+1})}unknownWord(i){throw this.input.error("Unknown word",{offset:i[0][2]},{offset:i[0][2]+i[0][1].length})}unnamedAtrule(i,h){throw this.input.error("At-rule without name",{offset:h[2]},{offset:h[2]+h[1].length})}}return Ir=a,Ir}var Or,qs;function kn(){if(qs)return Or;qs=1;let e=_e(),t=Fl(),r=Pt();function s(n,o){let c=new r(n,o),p=new t(c);try{p.parse()}catch(a){throw process.env.NODE_ENV!=="production"&&a.name==="CssSyntaxError"&&o&&o.from&&(/\.scss$/i.test(o.from)?a.message+=`
23
+ `),l=w.length-C):l+=w.length,S&&E!=="start"){let b=S.parent||{raws:{}};(!(S.type==="decl"||S.type==="atrule"&&!S.nodes)||S!==b.last||b.raws.semicolon)&&(S.source&&S.source.end?(f.source=this.sourcePath(S),f.original.line=S.source.end.line,f.original.column=S.source.end.column-1,f.generated.line=u,f.generated.column=l-2,this.map.addMapping(f)):(f.source=m,f.original.line=1,f.original.column=0,f.generated.line=u,f.generated.column=l-1,this.map.addMapping(f)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(u=>u.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let u=this.mapOpts.annotation;return typeof u!="undefined"&&u!==!0?!1:this.previous().length?this.previous().some(l=>l.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(u=>u.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(u){if(this.mapOpts.absolute||u.charCodeAt(0)===60||/^\w+:\/\//.test(u))return u;let l=this.memoizedPaths.get(u);if(l)return l;let m=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=r(n(m,this.mapOpts.annotation)));let f=s(m,u);return this.memoizedPaths.set(u,f),f}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(u=>{if(u.source&&u.source.input.map){let l=u.source.input.map;this.previousMaps.includes(l)||this.previousMaps.push(l)}});else{let u=new p(this.originalCSS,this.opts);u.map&&this.previousMaps.push(u.map)}return this.previousMaps}setSourcesContent(){let u={};if(this.root)this.root.walk(l=>{if(l.source){let m=l.source.input.from;if(m&&!u[m]){u[m]=!0;let f=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(f,l.source.input.css)}}});else if(this.css){let l=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(l,this.css)}}sourcePath(u){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(u.source.input.from):this.toUrl(this.path(u.source.input.from))}toBase64(u){return Buffer?Buffer.from(u).toString("base64"):window.btoa(unescape(encodeURIComponent(u)))}toFileUrl(u){let l=this.memoizedFileURLs.get(u);if(l)return l;if(c){let m=c(u).toString();return this.memoizedFileURLs.set(u,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(u){let l=this.memoizedURLs.get(u);if(l)return l;o==="\\"&&(u=u.replace(/\\/g,"/"));let m=encodeURI(u).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(u,m),m}}return vr=i,vr}var wr,_s;function Ft(){if(_s)return wr;_s=1;let e=_t();class t extends e{constructor(s){super(s),this.type="comment"}}return wr=t,t.default=t,wr}var br,Ls;function _e(){if(Ls)return br;Ls=1;let{isClean:e,my:t}=Dn(),r=Lt(),s=Ft(),n=_t(),o,c,p,a;function d(u){return u.map(l=>(l.nodes&&(l.nodes=d(l.nodes)),delete l.source,l))}function i(u){if(u[e]=!1,u.proxyOf.nodes)for(let l of u.proxyOf.nodes)i(l)}class h extends n{append(...l){for(let m of l){let f=this.normalize(m,this.last);for(let g of f)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(l){if(super.cleanRaws(l),this.nodes)for(let m of this.nodes)m.cleanRaws(l)}each(l){if(!this.proxyOf.nodes)return;let m=this.getIterator(),f,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(f=this.indexes[m],g=l(this.proxyOf.nodes[f],f),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(l){return this.nodes.every(l)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let l=this.lastEach;return this.indexes[l]=0,l}getProxyProcessor(){return{get(l,m){return m==="proxyOf"?l:l[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...f)=>l[m](...f.map(g=>typeof g=="function"?(C,w)=>g(C.toProxy(),w):g)):m==="every"||m==="some"?f=>l[m]((g,...C)=>f(g.toProxy(),...C)):m==="root"?()=>l.root().toProxy():m==="nodes"?l.nodes.map(f=>f.toProxy()):m==="first"||m==="last"?l[m].toProxy():l[m]:l[m]},set(l,m,f){return l[m]===f||(l[m]=f,(m==="name"||m==="params"||m==="selector")&&l.markDirty()),!0}}}index(l){return typeof l=="number"?l:(l.proxyOf&&(l=l.proxyOf),this.proxyOf.nodes.indexOf(l))}insertAfter(l,m){let f=this.index(l),g=this.normalize(m,this.proxyOf.nodes[f]).reverse();f=this.index(l);for(let w of g)this.proxyOf.nodes.splice(f+1,0,w);let C;for(let w in this.indexes)C=this.indexes[w],f<C&&(this.indexes[w]=C+g.length);return this.markDirty(),this}insertBefore(l,m){let f=this.index(l),g=f===0?"prepend":!1,C=this.normalize(m,this.proxyOf.nodes[f],g).reverse();f=this.index(l);for(let S of C)this.proxyOf.nodes.splice(f,0,S);let w;for(let S in this.indexes)w=this.indexes[S],f<=w&&(this.indexes[S]=w+C.length);return this.markDirty(),this}normalize(l,m){if(typeof l=="string")l=d(o(l).nodes);else if(typeof l=="undefined")l=[];else if(Array.isArray(l)){l=l.slice(0);for(let g of l)g.parent&&g.parent.removeChild(g,"ignore")}else if(l.type==="root"&&this.type!=="document"){l=l.nodes.slice(0);for(let g of l)g.parent&&g.parent.removeChild(g,"ignore")}else if(l.type)l=[l];else if(l.prop){if(typeof l.value=="undefined")throw new Error("Value field is missed in node creation");typeof l.value!="string"&&(l.value=String(l.value)),l=[new r(l)]}else if(l.selector)l=[new c(l)];else if(l.name)l=[new p(l)];else if(l.text)l=[new s(l)];else throw new Error("Unknown node type in node creation");return l.map(g=>(g[t]||h.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&i(g),typeof g.raws.before=="undefined"&&m&&typeof m.raws.before!="undefined"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...l){l=l.reverse();for(let m of l){let f=this.normalize(m,this.first,"prepend").reverse();for(let g of f)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+f.length}return this.markDirty(),this}push(l){return l.parent=this,this.proxyOf.nodes.push(l),this}removeAll(){for(let l of this.proxyOf.nodes)l.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(l){l=this.index(l),this.proxyOf.nodes[l].parent=void 0,this.proxyOf.nodes.splice(l,1);let m;for(let f in this.indexes)m=this.indexes[f],m>=l&&(this.indexes[f]=m-1);return this.markDirty(),this}replaceValues(l,m,f){return f||(f=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(l,f))}),this.markDirty(),this}some(l){return this.nodes.some(l)}walk(l){return this.each((m,f)=>{let g;try{g=l(m,f)}catch(C){throw m.addToError(C)}return g!==!1&&m.walk&&(g=m.walk(l)),g})}walkAtRules(l,m){return m?l instanceof RegExp?this.walk((f,g)=>{if(f.type==="atrule"&&l.test(f.name))return m(f,g)}):this.walk((f,g)=>{if(f.type==="atrule"&&f.name===l)return m(f,g)}):(m=l,this.walk((f,g)=>{if(f.type==="atrule")return m(f,g)}))}walkComments(l){return this.walk((m,f)=>{if(m.type==="comment")return l(m,f)})}walkDecls(l,m){return m?l instanceof RegExp?this.walk((f,g)=>{if(f.type==="decl"&&l.test(f.prop))return m(f,g)}):this.walk((f,g)=>{if(f.type==="decl"&&f.prop===l)return m(f,g)}):(m=l,this.walk((f,g)=>{if(f.type==="decl")return m(f,g)}))}walkRules(l,m){return m?l instanceof RegExp?this.walk((f,g)=>{if(f.type==="rule"&&l.test(f.selector))return m(f,g)}):this.walk((f,g)=>{if(f.type==="rule"&&f.selector===l)return m(f,g)}):(m=l,this.walk((f,g)=>{if(f.type==="rule")return m(f,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=u=>{o=u},h.registerRule=u=>{c=u},h.registerAtRule=u=>{p=u},h.registerRoot=u=>{a=u},br=h,h.default=h,h.rebuild=u=>{u.type==="atrule"?Object.setPrototypeOf(u,p.prototype):u.type==="rule"?Object.setPrototypeOf(u,c.prototype):u.type==="decl"?Object.setPrototypeOf(u,r.prototype):u.type==="comment"?Object.setPrototypeOf(u,s.prototype):u.type==="root"&&Object.setPrototypeOf(u,a.prototype),u[t]=!0,u.nodes&&u.nodes.forEach(l=>{h.rebuild(l)})},br}var Sr,Ps;function Tn(){if(Ps)return Sr;Ps=1;let e=_e(),t,r;class s extends e{constructor(o){super({type:"document",...o}),this.nodes||(this.nodes=[])}toResult(o={}){return new t(new r,this,o).stringify()}}return s.registerLazyResult=n=>{t=n},s.registerProcessor=n=>{r=n},Sr=s,s.default=s,Sr}var Cr,Fs;function eo(){if(Fs)return Cr;Fs=1;let e={};return Cr=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},Cr}var xr,Us;function to(){if(Us)return xr;Us=1;class e{constructor(r,s={}){if(this.type="warning",this.text=r,s.node&&s.node.source){let n=s.node.rangeBy(s);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in s)this[n]=s[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 xr=e,e.default=e,xr}var Er,Bs;function kn(){if(Bs)return Er;Bs=1;let e=to();class t{constructor(s,n,o){this.processor=s,this.messages=[],this.root=n,this.opts=o,this.css=void 0,this.map=void 0}toString(){return this.css}warn(s,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let o=new e(s,n);return this.messages.push(o),o}warnings(){return this.messages.filter(s=>s.type==="warning")}get content(){return this.css}}return Er=t,t.default=t,Er}var Mr,zs;function zl(){if(zs)return Mr;zs=1;let e=39,t=34,r=92,s=47,n=10,o=32,c=12,p=9,a=13,d=91,i=93,h=40,u=41,l=123,m=125,f=59,g=42,C=58,w=64,S=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,b=/.[\r\n"'(/\\]/,y=/[\da-f]/i;return Mr=function(x,I={}){let R=x.css.valueOf(),A=I.ignoreErrors,O,M,P,U,k,T,_,Y,H,F,ne=R.length,N=0,K=[],z=[];function ie(){return N}function se(L){throw x.error("Unclosed "+L,N)}function ae(){return z.length===0&&N>=ne}function Ce(L){if(z.length)return z.pop();if(N>=ne)return;let ee=L?L.ignoreUnclosed:!1;switch(O=R.charCodeAt(N),O){case n:case o:case p:case a:case c:{M=N;do M+=1,O=R.charCodeAt(M);while(O===o||O===n||O===p||O===a||O===c);F=["space",R.slice(N,M)],N=M-1;break}case d:case i:case l:case m:case C:case f:case u:{let j=String.fromCharCode(O);F=[j,j,N];break}case h:{if(Y=K.length?K.pop()[1]:"",H=R.charCodeAt(N+1),Y==="url"&&H!==e&&H!==t&&H!==o&&H!==n&&H!==p&&H!==c&&H!==a){M=N;do{if(T=!1,M=R.indexOf(")",M+1),M===-1)if(A||ee){M=N;break}else se("bracket");for(_=M;R.charCodeAt(_-1)===r;)_-=1,T=!T}while(T);F=["brackets",R.slice(N,M+1),N,M],N=M}else M=R.indexOf(")",N+1),U=R.slice(N,M+1),M===-1||b.test(U)?F=["(","(",N]:(F=["brackets",U,N,M],N=M);break}case e:case t:{P=O===e?"'":'"',M=N;do{if(T=!1,M=R.indexOf(P,M+1),M===-1)if(A||ee){M=N+1;break}else se("string");for(_=M;R.charCodeAt(_-1)===r;)_-=1,T=!T}while(T);F=["string",R.slice(N,M+1),N,M],N=M;break}case w:{S.lastIndex=N+1,S.test(R),S.lastIndex===0?M=R.length-1:M=S.lastIndex-2,F=["at-word",R.slice(N,M+1),N,M],N=M;break}case r:{for(M=N,k=!0;R.charCodeAt(M+1)===r;)M+=1,k=!k;if(O=R.charCodeAt(M+1),k&&O!==s&&O!==o&&O!==n&&O!==p&&O!==a&&O!==c&&(M+=1,y.test(R.charAt(M)))){for(;y.test(R.charAt(M+1));)M+=1;R.charCodeAt(M+1)===o&&(M+=1)}F=["word",R.slice(N,M+1),N,M],N=M;break}default:{O===s&&R.charCodeAt(N+1)===g?(M=R.indexOf("*/",N+2)+1,M===0&&(A||ee?M=R.length:se("comment")),F=["comment",R.slice(N,M+1),N,M],N=M):(E.lastIndex=N+1,E.test(R),E.lastIndex===0?M=R.length-1:M=E.lastIndex-2,F=["word",R.slice(N,M+1),N,M],K.push(F),N=M);break}}return N++,F}function me(L){z.push(L)}return{back:me,endOfFile:ae,nextToken:Ce,position:ie}},Mr}var Rr,$s;function _n(){if($s)return Rr;$s=1;let e=_e();class t extends e{constructor(s){super(s),this.type="atrule"}append(...s){return this.proxyOf.nodes||(this.nodes=[]),super.append(...s)}prepend(...s){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...s)}}return Rr=t,t.default=t,e.registerAtRule(t),Rr}var Ir,Ws;function it(){if(Ws)return Ir;Ws=1;let e=_e(),t,r;class s extends e{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[])}normalize(o,c,p){let a=super.normalize(o);if(c){if(p==="prepend")this.nodes.length>1?c.raws.before=this.nodes[1].raws.before:delete c.raws.before;else if(this.first!==c)for(let d of a)d.raws.before=c.raws.before}return a}removeChild(o,c){let p=this.index(o);return!c&&p===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[p].raws.before),super.removeChild(o)}toResult(o={}){return new t(new r,this,o).stringify()}}return s.registerLazyResult=n=>{t=n},s.registerProcessor=n=>{r=n},Ir=s,s.default=s,e.registerRoot(s),Ir}var Or,qs;function ro(){if(qs)return Or;qs=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
24
+ `," "];return e.split(t,r)},split(t,r,s){let n=[],o="",c=!1,p=0,a=!1,d="",i=!1;for(let h of t)i?i=!1:h==="\\"?i=!0:a?h===d&&(a=!1):h==='"'||h==="'"?(a=!0,d=h):h==="("?p+=1:h===")"?p>0&&(p-=1):p===0&&r.includes(h)&&(c=!0),c?(o!==""&&n.push(o.trim()),o="",c=!1):o+=h;return(s||o!=="")&&n.push(o.trim()),n}};return Or=e,e.default=e,Or}var Nr,js;function Ln(){if(js)return Nr;js=1;let e=_e(),t=ro();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 o=this.selector?this.selector.match(/,\s*/):null,c=o?o[0]:","+this.raw("between","beforeOpen");this.selector=n.join(c)}}return Nr=r,r.default=r,e.registerRule(r),Nr}var Ar,Vs;function $l(){if(Vs)return Ar;Vs=1;let e=Lt(),t=zl(),r=Ft(),s=_n(),n=it(),o=Ln(),c={empty:!0,space:!0};function p(d){for(let i=d.length-1;i>=0;i--){let h=d[i],u=h[3]||h[2];if(u)return u}}class a{constructor(i){this.input=i,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}atrule(i){let h=new s;h.name=i[1].slice(1),h.name===""&&this.unnamedAtrule(h,i),this.init(h,i[2]);let u,l,m,f=!1,g=!1,C=[],w=[];for(;!this.tokenizer.endOfFile();){if(i=this.tokenizer.nextToken(),u=i[0],u==="("||u==="["?w.push(u==="("?")":"]"):u==="{"&&w.length>0?w.push("}"):u===w[w.length-1]&&w.pop(),w.length===0)if(u===";"){h.source.end=this.getPosition(i[2]),h.source.end.offset++,this.semicolon=!0;break}else if(u==="{"){g=!0;break}else if(u==="}"){if(C.length>0){for(m=C.length-1,l=C[m];l&&l[0]==="space";)l=C[--m];l&&(h.source.end=this.getPosition(l[3]||l[2]),h.source.end.offset++)}this.end(i);break}else C.push(i);else C.push(i);if(this.tokenizer.endOfFile()){f=!0;break}}h.raws.between=this.spacesAndCommentsFromEnd(C),C.length?(h.raws.afterName=this.spacesAndCommentsFromStart(C),this.raw(h,"params",C),f&&(i=C[C.length-1],h.source.end=this.getPosition(i[3]||i[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(i){let h=this.colon(i);if(h===!1)return;let u=0,l;for(let m=h-1;m>=0&&(l=i[m],!(l[0]!=="space"&&(u+=1,u===2)));m--);throw this.input.error("Missed semicolon",l[0]==="word"?l[3]+1:l[2])}colon(i){let h=0,u,l,m;for(let[f,g]of i.entries()){if(u=g,l=u[0],l==="("&&(h+=1),l===")"&&(h-=1),h===0&&l===":")if(!m)this.doubleColon(u);else{if(m[0]==="word"&&m[1]==="progid")continue;return f}m=u}return!1}comment(i){let h=new r;this.init(h,i[2]),h.source.end=this.getPosition(i[3]||i[2]),h.source.end.offset++;let u=i[1].slice(2,-2);if(/^\s*$/.test(u))h.text="",h.raws.left=u,h.raws.right="";else{let l=u.match(/^(\s*)([^]*\S)(\s*)$/);h.text=l[2],h.raws.left=l[1],h.raws.right=l[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(i,h){let u=new e;this.init(u,i[0][2]);let l=i[i.length-1];for(l[0]===";"&&(this.semicolon=!0,i.pop()),u.source.end=this.getPosition(l[3]||l[2]||p(i)),u.source.end.offset++;i[0][0]!=="word";)i.length===1&&this.unknownWord(i),u.raws.before+=i.shift()[1];for(u.source.start=this.getPosition(i[0][2]),u.prop="";i.length;){let w=i[0][0];if(w===":"||w==="space"||w==="comment")break;u.prop+=i.shift()[1]}u.raws.between="";let m;for(;i.length;)if(m=i.shift(),m[0]===":"){u.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),u.raws.between+=m[1];(u.prop[0]==="_"||u.prop[0]==="*")&&(u.raws.before+=u.prop[0],u.prop=u.prop.slice(1));let f=[],g;for(;i.length&&(g=i[0][0],!(g!=="space"&&g!=="comment"));)f.push(i.shift());this.precheckMissedSemicolon(i);for(let w=i.length-1;w>=0;w--){if(m=i[w],m[1].toLowerCase()==="!important"){u.important=!0;let S=this.stringFrom(i,w);S=this.spacesFromEnd(i)+S,S!==" !important"&&(u.raws.important=S);break}else if(m[1].toLowerCase()==="important"){let S=i.slice(0),E="";for(let b=w;b>0;b--){let y=S[b][0];if(E.trim().indexOf("!")===0&&y!=="space")break;E=S.pop()[1]+E}E.trim().indexOf("!")===0&&(u.important=!0,u.raws.important=E,i=S)}if(m[0]!=="space"&&m[0]!=="comment")break}i.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(u.raws.between+=f.map(w=>w[1]).join(""),f=[]),this.raw(u,"value",f.concat(i),h),u.value.includes(":")&&!h&&this.checkMissedSemicolon(i)}doubleColon(i){throw this.input.error("Double colon",{offset:i[2]},{offset:i[2]+i[1].length})}emptyRule(i){let h=new o;this.init(h,i[2]),h.selector="",h.raws.between="",this.current=h}end(i){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(i[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(i)}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(i){if(this.spaces+=i[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(i){let h=this.input.fromOffset(i);return{column:h.col,line:h.line,offset:i}}init(i,h){this.current.push(i),i.source={input:this.input,start:this.getPosition(h)},i.raws.before=this.spaces,this.spaces="",i.type!=="comment"&&(this.semicolon=!1)}other(i){let h=!1,u=null,l=!1,m=null,f=[],g=i[1].startsWith("--"),C=[],w=i;for(;w;){if(u=w[0],C.push(w),u==="("||u==="[")m||(m=w),f.push(u==="("?")":"]");else if(g&&l&&u==="{")m||(m=w),f.push("}");else if(f.length===0)if(u===";")if(l){this.decl(C,g);return}else break;else if(u==="{"){this.rule(C);return}else if(u==="}"){this.tokenizer.back(C.pop()),h=!0;break}else u===":"&&(l=!0);else u===f[f.length-1]&&(f.pop(),f.length===0&&(m=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(h=!0),f.length>0&&this.unclosedBracket(m),h&&l){if(!g)for(;C.length&&(w=C[C.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(C.pop());this.decl(C,g)}else this.unknownWord(C)}parse(){let i;for(;!this.tokenizer.endOfFile();)switch(i=this.tokenizer.nextToken(),i[0]){case"space":this.spaces+=i[1];break;case";":this.freeSemicolon(i);break;case"}":this.end(i);break;case"comment":this.comment(i);break;case"at-word":this.atrule(i);break;case"{":this.emptyRule(i);break;default:this.other(i);break}this.endFile()}precheckMissedSemicolon(){}raw(i,h,u,l){let m,f,g=u.length,C="",w=!0,S,E;for(let b=0;b<g;b+=1)m=u[b],f=m[0],f==="space"&&b===g-1&&!l?w=!1:f==="comment"?(E=u[b-1]?u[b-1][0]:"empty",S=u[b+1]?u[b+1][0]:"empty",!c[E]&&!c[S]?C.slice(-1)===","?w=!1:C+=m[1]:w=!1):C+=m[1];if(!w){let b=u.reduce((y,v)=>y+v[1],"");i.raws[h]={raw:b,value:C}}i[h]=C}rule(i){i.pop();let h=new o;this.init(h,i[0][2]),h.raws.between=this.spacesAndCommentsFromEnd(i),this.raw(h,"selector",i),this.current=h}spacesAndCommentsFromEnd(i){let h,u="";for(;i.length&&(h=i[i.length-1][0],!(h!=="space"&&h!=="comment"));)u=i.pop()[1]+u;return u}spacesAndCommentsFromStart(i){let h,u="";for(;i.length&&(h=i[0][0],!(h!=="space"&&h!=="comment"));)u+=i.shift()[1];return u}spacesFromEnd(i){let h,u="";for(;i.length&&(h=i[i.length-1][0],h==="space");)u=i.pop()[1]+u;return u}stringFrom(i,h){let u="";for(let l=h;l<i.length;l++)u+=i[l][1];return i.splice(h,i.length-h),u}unclosedBlock(){let i=this.current.source.start;throw this.input.error("Unclosed block",i.line,i.column)}unclosedBracket(i){throw this.input.error("Unclosed bracket",{offset:i[2]},{offset:i[2]+1})}unexpectedClose(i){throw this.input.error("Unexpected }",{offset:i[2]},{offset:i[2]+1})}unknownWord(i){throw this.input.error("Unknown word",{offset:i[0][2]},{offset:i[0][2]+i[0][1].length})}unnamedAtrule(i,h){throw this.input.error("At-rule without name",{offset:h[2]},{offset:h[2]+h[1].length})}}return Ar=a,Ar}var Dr,Hs;function Pn(){if(Hs)return Dr;Hs=1;let e=_e(),t=$l(),r=Pt();function s(n,o){let c=new r(n,o),p=new t(c);try{p.parse()}catch(a){throw process.env.NODE_ENV!=="production"&&a.name==="CssSyntaxError"&&o&&o.from&&(/\.scss$/i.test(o.from)?a.message+=`
25
25
  You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(o.from)?a.message+=`
26
26
  You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(o.from)&&(a.message+=`
27
- You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),a}return p.root}return Or=s,s.default=s,e.registerParse(s),Or}var Nr,js;function eo(){if(js)return Nr;js=1;let{isClean:e,my:t}=On(),r=Ji(),s=kt(),n=_e(),o=Nn(),c=Ki(),p=An(),a=kn(),d=it(),i={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},u={Once:!0,postcssPlugin:!0,prepare:!0},l=0;function m(E){return typeof E=="object"&&typeof E.then=="function"}function f(E){let b=!1,y=i[E.type];return E.type==="decl"?b=E.prop.toLowerCase():E.type==="atrule"&&(b=E.name.toLowerCase()),b&&E.append?[y,y+"-"+b,l,y+"Exit",y+"Exit-"+b]:b?[y,y+"-"+b,y+"Exit",y+"Exit-"+b]:E.append?[y,l,y+"Exit"]:[y,y+"Exit"]}function g(E){let b;return E.type==="document"?b=["Document",l,"DocumentExit"]:E.type==="root"?b=["Root",l,"RootExit"]:b=f(E),{eventIndex:0,events:b,iterator:0,node:E,visitorIndex:0,visitors:[]}}function C(E){return E[e]=!1,E.nodes&&E.nodes.forEach(b=>C(b)),E}let w={};class S{constructor(b,y,v){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 S||y instanceof p)x=C(y.root),y.map&&(typeof v.map=="undefined"&&(v.map={}),v.map.inline||(v.map.inline=!1),v.map.prev=y.map);else{let I=a;v.syntax&&(I=v.syntax.parse),v.parser&&(I=v.parser),I.parse&&(I=I.parse);try{x=I(y,v)}catch(R){this.processed=!0,this.error=R}x&&!x[t]&&n.rebuild(x)}this.result=new p(b,x,v),this.helpers={...w,postcss:w,result:this.result},this.plugins=this.processor.plugins.map(I=>typeof I=="object"&&I.prepare?{...I,...I.prepare(this.result)}:I)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(b){return this.async().catch(b)}finally(b){return this.async().then(b,b)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(b,y){let v=this.result.lastPlugin;try{if(y&&y.addToError(b),this.error=b,b.name==="CssSyntaxError"&&!b.plugin)b.plugin=v.postcssPlugin,b.setMessage();else if(v.postcssVersion&&process.env.NODE_ENV!=="production"){let x=v.postcssPlugin,I=v.postcssVersion,R=this.result.processor.version,A=I.split("."),O=R.split(".");(A[0]!==O[0]||parseInt(A[1])>parseInt(O[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+R+", but "+x+" uses "+I+". Perhaps this is the source of the error below.")}}catch(x){console&&console.error&&console.error(x)}return b}prepareVisitors(){this.listeners={};let b=(y,v,x)=>{this.listeners[v]||(this.listeners[v]=[]),this.listeners[v].push([y,x])};for(let y of this.plugins)if(typeof y=="object")for(let v in y){if(!h[v]&&/^[A-Z]/.test(v))throw new Error(`Unknown event ${v} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!u[v])if(typeof y[v]=="object")for(let x in y[v])x==="*"?b(y,v,y[v][x]):b(y,v+"-"+x.toLowerCase(),y[v][x]);else typeof y[v]=="function"&&b(y,v,y[v])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let b=0;b<this.plugins.length;b++){let y=this.plugins[b],v=this.runOnRoot(y);if(m(v))try{await v}catch(x){throw this.handleError(x)}}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];){b[e]=!0;let y=[g(b)];for(;y.length>0;){let v=this.visitTick(y);if(m(v))try{await v}catch(x){let I=y[y.length-1].node;throw this.handleError(x,I)}}}if(this.listeners.OnceExit)for(let[y,v]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(b.type==="document"){let x=b.nodes.map(I=>v(I,this.helpers));await Promise.all(x)}else await v(b,this.helpers)}catch(x){throw this.handleError(x)}}}return this.processed=!0,this.stringify()}runOnRoot(b){this.result.lastPlugin=b;try{if(typeof b=="object"&&b.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(v=>b.Once(v,this.helpers));return m(y[0])?Promise.all(y):y}return b.Once(this.result.root,this.helpers)}else if(typeof b=="function")return b(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 b=this.result.opts,y=s;b.syntax&&(y=b.syntax.stringify),b.stringifier&&(y=b.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 b of this.plugins){let y=this.runOnRoot(b);if(m(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];)b[e]=!0,this.walkSync(b);if(this.listeners.OnceExit)if(b.type==="document")for(let y of b.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,b)}return this.result}then(b,y){return process.env.NODE_ENV!=="production"&&("from"in this.opts||c("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(b,y)}toString(){return this.css}visitSync(b,y){for(let[v,x]of b){this.result.lastPlugin=v;let I;try{I=x(y,this.helpers)}catch(R){throw this.handleError(R,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(m(I))throw this.getAsyncError()}}visitTick(b){let y=b[b.length-1],{node:v,visitors:x}=y;if(v.type!=="root"&&v.type!=="document"&&!v.parent){b.pop();return}if(x.length>0&&y.visitorIndex<x.length){let[R,A]=x[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===x.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=R;try{return A(v.toProxy(),this.helpers)}catch(O){throw this.handleError(O,v)}}if(y.iterator!==0){let R=y.iterator,A;for(;A=v.nodes[v.indexes[R]];)if(v.indexes[R]+=1,!A[e]){A[e]=!0,b.push(g(A));return}y.iterator=0,delete v.indexes[R]}let I=y.events;for(;y.eventIndex<I.length;){let R=I[y.eventIndex];if(y.eventIndex+=1,R===l){v.nodes&&v.nodes.length&&(v[e]=!0,y.iterator=v.getIterator());return}else if(this.listeners[R]){y.visitors=this.listeners[R];return}}b.pop()}walkSync(b){b[e]=!0;let y=f(b);for(let v of y)if(v===l)b.nodes&&b.each(x=>{x[e]||this.walkSync(x)});else{let x=this.listeners[v];if(x&&this.visitSync(x,b.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 S.registerPostcss=E=>{w=E},Nr=S,S.default=S,d.registerLazyResult(S),o.registerLazyResult(S),Nr}var Ar,Vs;function Ul(){if(Vs)return Ar;Vs=1;let e=Ji(),t=kt(),r=Ki(),s=kn(),n=An();class o{constructor(p,a,d){a=a.toString(),this.stringified=!1,this._processor=p,this._css=a,this._opts=d,this._map=void 0;let i,h=t;this.result=new n(this._processor,i,this._opts),this.result.css=a;let u=this;Object.defineProperty(this.result,"root",{get(){return u.root}});let l=new e(h,i,this._opts,a);if(l.isMap()){let[m,f]=l.generate();m&&(this.result.css=m),f&&(this.result.map=f)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(p){return this.async().catch(p)}finally(p){return this.async().then(p,p)}sync(){if(this.error)throw this.error;return this.result}then(p,a){return process.env.NODE_ENV!=="production"&&("from"in this._opts||r("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(p,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 p,a=s;try{p=a(this._css,this._opts)}catch(d){this.error=d}if(this.error)throw this.error;return this._root=p,p}get[Symbol.toStringTag](){return"NoWorkResult"}}return Ar=o,o.default=o,Ar}var Tr,Hs;function Bl(){if(Hs)return Tr;Hs=1;let e=Ul(),t=eo(),r=Nn(),s=it();class n{constructor(c=[]){this.version="8.4.38",this.plugins=this.normalize(c)}normalize(c){let p=[];for(let a of c)if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),typeof a=="object"&&Array.isArray(a.plugins))p=p.concat(a.plugins);else if(typeof a=="object"&&a.postcssPlugin)p.push(a);else if(typeof a=="function")p.push(a);else if(typeof a=="object"&&(a.parse||a.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(a+" is not a PostCSS plugin");return p}process(c,p={}){return!this.plugins.length&&!p.parser&&!p.stringifier&&!p.syntax?new e(this,c,p):new t(this,c,p)}use(c){return this.plugins=this.plugins.concat(this.normalize([c])),this}}return Tr=n,n.default=n,s.registerProcessor(n),r.registerProcessor(n),Tr}var Dr,Gs;function zl(){if(Gs)return Dr;Gs=1;let e=Lt(),t=Xi(),r=Ft(),s=Tn(),n=Pt(),o=it(),c=Dn();function p(a,d){if(Array.isArray(a))return a.map(u=>p(u));let{inputs:i,...h}=a;if(i){d=[];for(let u of i){let l={...u,__proto__:n.prototype};l.map&&(l.map={...l.map,__proto__:t.prototype}),d.push(l)}}if(h.nodes&&(h.nodes=a.nodes.map(u=>p(u,d))),h.source){let{inputId:u,...l}=h.source;h.source=l,u!=null&&(h.source.input=d[u])}if(h.type==="root")return new o(h);if(h.type==="decl")return new e(h);if(h.type==="rule")return new c(h);if(h.type==="comment")return new r(h);if(h.type==="atrule")return new s(h);throw new Error("Unknown node type: "+a.type)}return Dr=p,p.default=p,Dr}var kr,Ys;function $l(){if(Ys)return kr;Ys=1;let e=In(),t=Lt(),r=eo(),s=_e(),n=Bl(),o=kt(),c=zl(),p=Nn(),a=Zi(),d=Ft(),i=Tn(),h=An(),u=Pt(),l=kn(),m=Qi(),f=Dn(),g=it(),C=_t();function w(...S){return S.length===1&&Array.isArray(S[0])&&(S=S[0]),new n(S)}return w.plugin=function(E,b){let y=!1;function v(...I){console&&console.warn&&!y&&(y=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
27
+ You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),a}return p.root}return Dr=s,s.default=s,e.registerParse(s),Dr}var Tr,Gs;function no(){if(Gs)return Tr;Gs=1;let{isClean:e,my:t}=Dn(),r=Qi(),s=kt(),n=_e(),o=Tn(),c=eo(),p=kn(),a=Pn(),d=it(),i={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},u={Once:!0,postcssPlugin:!0,prepare:!0},l=0;function m(E){return typeof E=="object"&&typeof E.then=="function"}function f(E){let b=!1,y=i[E.type];return E.type==="decl"?b=E.prop.toLowerCase():E.type==="atrule"&&(b=E.name.toLowerCase()),b&&E.append?[y,y+"-"+b,l,y+"Exit",y+"Exit-"+b]:b?[y,y+"-"+b,y+"Exit",y+"Exit-"+b]:E.append?[y,l,y+"Exit"]:[y,y+"Exit"]}function g(E){let b;return E.type==="document"?b=["Document",l,"DocumentExit"]:E.type==="root"?b=["Root",l,"RootExit"]:b=f(E),{eventIndex:0,events:b,iterator:0,node:E,visitorIndex:0,visitors:[]}}function C(E){return E[e]=!1,E.nodes&&E.nodes.forEach(b=>C(b)),E}let w={};class S{constructor(b,y,v){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 S||y instanceof p)x=C(y.root),y.map&&(typeof v.map=="undefined"&&(v.map={}),v.map.inline||(v.map.inline=!1),v.map.prev=y.map);else{let I=a;v.syntax&&(I=v.syntax.parse),v.parser&&(I=v.parser),I.parse&&(I=I.parse);try{x=I(y,v)}catch(R){this.processed=!0,this.error=R}x&&!x[t]&&n.rebuild(x)}this.result=new p(b,x,v),this.helpers={...w,postcss:w,result:this.result},this.plugins=this.processor.plugins.map(I=>typeof I=="object"&&I.prepare?{...I,...I.prepare(this.result)}:I)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(b){return this.async().catch(b)}finally(b){return this.async().then(b,b)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(b,y){let v=this.result.lastPlugin;try{if(y&&y.addToError(b),this.error=b,b.name==="CssSyntaxError"&&!b.plugin)b.plugin=v.postcssPlugin,b.setMessage();else if(v.postcssVersion&&process.env.NODE_ENV!=="production"){let x=v.postcssPlugin,I=v.postcssVersion,R=this.result.processor.version,A=I.split("."),O=R.split(".");(A[0]!==O[0]||parseInt(A[1])>parseInt(O[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+R+", but "+x+" uses "+I+". Perhaps this is the source of the error below.")}}catch(x){console&&console.error&&console.error(x)}return b}prepareVisitors(){this.listeners={};let b=(y,v,x)=>{this.listeners[v]||(this.listeners[v]=[]),this.listeners[v].push([y,x])};for(let y of this.plugins)if(typeof y=="object")for(let v in y){if(!h[v]&&/^[A-Z]/.test(v))throw new Error(`Unknown event ${v} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!u[v])if(typeof y[v]=="object")for(let x in y[v])x==="*"?b(y,v,y[v][x]):b(y,v+"-"+x.toLowerCase(),y[v][x]);else typeof y[v]=="function"&&b(y,v,y[v])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let b=0;b<this.plugins.length;b++){let y=this.plugins[b],v=this.runOnRoot(y);if(m(v))try{await v}catch(x){throw this.handleError(x)}}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];){b[e]=!0;let y=[g(b)];for(;y.length>0;){let v=this.visitTick(y);if(m(v))try{await v}catch(x){let I=y[y.length-1].node;throw this.handleError(x,I)}}}if(this.listeners.OnceExit)for(let[y,v]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(b.type==="document"){let x=b.nodes.map(I=>v(I,this.helpers));await Promise.all(x)}else await v(b,this.helpers)}catch(x){throw this.handleError(x)}}}return this.processed=!0,this.stringify()}runOnRoot(b){this.result.lastPlugin=b;try{if(typeof b=="object"&&b.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(v=>b.Once(v,this.helpers));return m(y[0])?Promise.all(y):y}return b.Once(this.result.root,this.helpers)}else if(typeof b=="function")return b(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 b=this.result.opts,y=s;b.syntax&&(y=b.syntax.stringify),b.stringifier&&(y=b.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 b of this.plugins){let y=this.runOnRoot(b);if(m(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];)b[e]=!0,this.walkSync(b);if(this.listeners.OnceExit)if(b.type==="document")for(let y of b.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,b)}return this.result}then(b,y){return process.env.NODE_ENV!=="production"&&("from"in this.opts||c("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(b,y)}toString(){return this.css}visitSync(b,y){for(let[v,x]of b){this.result.lastPlugin=v;let I;try{I=x(y,this.helpers)}catch(R){throw this.handleError(R,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(m(I))throw this.getAsyncError()}}visitTick(b){let y=b[b.length-1],{node:v,visitors:x}=y;if(v.type!=="root"&&v.type!=="document"&&!v.parent){b.pop();return}if(x.length>0&&y.visitorIndex<x.length){let[R,A]=x[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===x.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=R;try{return A(v.toProxy(),this.helpers)}catch(O){throw this.handleError(O,v)}}if(y.iterator!==0){let R=y.iterator,A;for(;A=v.nodes[v.indexes[R]];)if(v.indexes[R]+=1,!A[e]){A[e]=!0,b.push(g(A));return}y.iterator=0,delete v.indexes[R]}let I=y.events;for(;y.eventIndex<I.length;){let R=I[y.eventIndex];if(y.eventIndex+=1,R===l){v.nodes&&v.nodes.length&&(v[e]=!0,y.iterator=v.getIterator());return}else if(this.listeners[R]){y.visitors=this.listeners[R];return}}b.pop()}walkSync(b){b[e]=!0;let y=f(b);for(let v of y)if(v===l)b.nodes&&b.each(x=>{x[e]||this.walkSync(x)});else{let x=this.listeners[v];if(x&&this.visitSync(x,b.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 S.registerPostcss=E=>{w=E},Tr=S,S.default=S,d.registerLazyResult(S),o.registerLazyResult(S),Tr}var kr,Ys;function Wl(){if(Ys)return kr;Ys=1;let e=Qi(),t=kt(),r=eo(),s=Pn(),n=kn();class o{constructor(p,a,d){a=a.toString(),this.stringified=!1,this._processor=p,this._css=a,this._opts=d,this._map=void 0;let i,h=t;this.result=new n(this._processor,i,this._opts),this.result.css=a;let u=this;Object.defineProperty(this.result,"root",{get(){return u.root}});let l=new e(h,i,this._opts,a);if(l.isMap()){let[m,f]=l.generate();m&&(this.result.css=m),f&&(this.result.map=f)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(p){return this.async().catch(p)}finally(p){return this.async().then(p,p)}sync(){if(this.error)throw this.error;return this.result}then(p,a){return process.env.NODE_ENV!=="production"&&("from"in this._opts||r("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(p,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 p,a=s;try{p=a(this._css,this._opts)}catch(d){this.error=d}if(this.error)throw this.error;return this._root=p,p}get[Symbol.toStringTag](){return"NoWorkResult"}}return kr=o,o.default=o,kr}var _r,Xs;function ql(){if(Xs)return _r;Xs=1;let e=Wl(),t=no(),r=Tn(),s=it();class n{constructor(c=[]){this.version="8.4.38",this.plugins=this.normalize(c)}normalize(c){let p=[];for(let a of c)if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),typeof a=="object"&&Array.isArray(a.plugins))p=p.concat(a.plugins);else if(typeof a=="object"&&a.postcssPlugin)p.push(a);else if(typeof a=="function")p.push(a);else if(typeof a=="object"&&(a.parse||a.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(a+" is not a PostCSS plugin");return p}process(c,p={}){return!this.plugins.length&&!p.parser&&!p.stringifier&&!p.syntax?new e(this,c,p):new t(this,c,p)}use(c){return this.plugins=this.plugins.concat(this.normalize([c])),this}}return _r=n,n.default=n,s.registerProcessor(n),r.registerProcessor(n),_r}var Lr,Js;function jl(){if(Js)return Lr;Js=1;let e=Lt(),t=Zi(),r=Ft(),s=_n(),n=Pt(),o=it(),c=Ln();function p(a,d){if(Array.isArray(a))return a.map(u=>p(u));let{inputs:i,...h}=a;if(i){d=[];for(let u of i){let l={...u,__proto__:n.prototype};l.map&&(l.map={...l.map,__proto__:t.prototype}),d.push(l)}}if(h.nodes&&(h.nodes=a.nodes.map(u=>p(u,d))),h.source){let{inputId:u,...l}=h.source;h.source=l,u!=null&&(h.source.input=d[u])}if(h.type==="root")return new o(h);if(h.type==="decl")return new e(h);if(h.type==="rule")return new c(h);if(h.type==="comment")return new r(h);if(h.type==="atrule")return new s(h);throw new Error("Unknown node type: "+a.type)}return Lr=p,p.default=p,Lr}var Pr,Ks;function Vl(){if(Ks)return Pr;Ks=1;let e=An(),t=Lt(),r=no(),s=_e(),n=ql(),o=kt(),c=jl(),p=Tn(),a=to(),d=Ft(),i=_n(),h=kn(),u=Pt(),l=Pn(),m=ro(),f=Ln(),g=it(),C=_t();function w(...S){return S.length===1&&Array.isArray(S[0])&&(S=S[0]),new n(S)}return w.plugin=function(E,b){let y=!1;function v(...I){console&&console.warn&&!y&&(y=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
28
28
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(E+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
29
- https://www.w3ctech.com/topic/2226`));let R=b(...I);return R.postcssPlugin=E,R.postcssVersion=new n().version,R}let x;return Object.defineProperty(v,"postcss",{get(){return x||(x=v()),x}}),v.process=function(I,R,A){return w([v(A)]).process(I,R)},v},w.stringify=o,w.parse=l,w.fromJSON=c,w.list=m,w.comment=S=>new d(S),w.atRule=S=>new i(S),w.decl=S=>new t(S),w.rule=S=>new f(S),w.root=S=>new g(S),w.document=S=>new p(S),w.CssSyntaxError=e,w.Declaration=t,w.Container=s,w.Processor=n,w.Document=p,w.Comment=d,w.Warning=a,w.AtRule=i,w.Result=h,w.Input=u,w.Rule=f,w.Root=g,w.Node=C,r.registerPostcss(w),kr=w,w.default=w,kr}var Wl=$l(),Z=Al(Wl);Z.stringify;Z.fromJSON;Z.plugin;Z.parse;Z.list;Z.document;Z.comment;Z.atRule;Z.rule;Z.decl;Z.root;Z.CssSyntaxError;Z.Declaration;Z.Container;Z.Processor;Z.Document;Z.Comment;Z.Warning;Z.AtRule;Z.Result;Z.Input;Z.Rule;Z.Root;Z.Node;var ql=Object.defineProperty,jl=(e,t,r)=>t in e?ql(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,pe=(e,t,r)=>jl(e,typeof t!="symbol"?t+"":t,r);Date.now().toString();function Vl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Hl(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function s(){return this instanceof s?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(s){var n=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(r,s,n.get?n:{enumerable:!0,get:function(){return e[s]}})}),r}var vt={exports:{}},Xs;function Gl(){if(Xs)return vt.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 vt.exports=t(),vt.exports.createColors=t,vt.exports}var Yl={},Xl=Object.freeze(Object.defineProperty({__proto__:null,default:Yl},Symbol.toStringTag,{value:"Module"})),ve=Hl(Xl),_r,Js;function _n(){if(Js)return _r;Js=1;let e=Gl(),t=ve;class r extends Error{constructor(n,o,c,p,a,d){super(n),this.name="CssSyntaxError",this.reason=n,a&&(this.file=a),p&&(this.source=p),d&&(this.plugin=d),typeof o!="undefined"&&typeof c!="undefined"&&(typeof o=="number"?(this.line=o,this.column=c):(this.line=o.line,this.column=o.column,this.endLine=c.line,this.endColumn=c.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!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(n){if(!this.source)return"";let o=this.source;n==null&&(n=e.isColorSupported),t&&n&&(o=t(o));let c=o.split(/\r?\n/),p=Math.max(this.line-3,0),a=Math.min(this.line+2,c.length),d=String(a).length,i,h;if(n){let{bold:u,gray:l,red:m}=e.createColors(!0);i=f=>u(m(f)),h=f=>l(f)}else i=h=u=>u;return c.slice(p,a).map((u,l)=>{let m=p+1+l,f=" "+(" "+m).slice(-d)+" | ";if(m===this.line){let g=h(f.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+h(f)+u+`
29
+ https://www.w3ctech.com/topic/2226`));let R=b(...I);return R.postcssPlugin=E,R.postcssVersion=new n().version,R}let x;return Object.defineProperty(v,"postcss",{get(){return x||(x=v()),x}}),v.process=function(I,R,A){return w([v(A)]).process(I,R)},v},w.stringify=o,w.parse=l,w.fromJSON=c,w.list=m,w.comment=S=>new d(S),w.atRule=S=>new i(S),w.decl=S=>new t(S),w.rule=S=>new f(S),w.root=S=>new g(S),w.document=S=>new p(S),w.CssSyntaxError=e,w.Declaration=t,w.Container=s,w.Processor=n,w.Document=p,w.Comment=d,w.Warning=a,w.AtRule=i,w.Result=h,w.Input=u,w.Rule=f,w.Root=g,w.Node=C,r.registerPostcss(w),Pr=w,w.default=w,Pr}var Hl=Vl(),Z=_l(Hl);Z.stringify;Z.fromJSON;Z.plugin;Z.parse;Z.list;Z.document;Z.comment;Z.atRule;Z.rule;Z.decl;Z.root;Z.CssSyntaxError;Z.Declaration;Z.Container;Z.Processor;Z.Document;Z.Comment;Z.Warning;Z.AtRule;Z.Result;Z.Input;Z.Rule;Z.Root;Z.Node;var Gl=Object.defineProperty,Yl=(e,t,r)=>t in e?Gl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,pe=(e,t,r)=>Yl(e,typeof t!="symbol"?t+"":t,r);Date.now().toString();function Xl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Jl(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function s(){return this instanceof s?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(s){var n=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(r,s,n.get?n:{enumerable:!0,get:function(){return e[s]}})}),r}var vt={exports:{}},Zs;function Kl(){if(Zs)return vt.exports;Zs=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 vt.exports=t(),vt.exports.createColors=t,vt.exports}var Zl={},Ql=Object.freeze(Object.defineProperty({__proto__:null,default:Zl},Symbol.toStringTag,{value:"Module"})),ve=Jl(Ql),Fr,Qs;function Fn(){if(Qs)return Fr;Qs=1;let e=Kl(),t=ve;class r extends Error{constructor(n,o,c,p,a,d){super(n),this.name="CssSyntaxError",this.reason=n,a&&(this.file=a),p&&(this.source=p),d&&(this.plugin=d),typeof o!="undefined"&&typeof c!="undefined"&&(typeof o=="number"?(this.line=o,this.column=c):(this.line=o.line,this.column=o.column,this.endLine=c.line,this.endColumn=c.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!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(n){if(!this.source)return"";let o=this.source;n==null&&(n=e.isColorSupported),t&&n&&(o=t(o));let c=o.split(/\r?\n/),p=Math.max(this.line-3,0),a=Math.min(this.line+2,c.length),d=String(a).length,i,h;if(n){let{bold:u,gray:l,red:m}=e.createColors(!0);i=f=>u(m(f)),h=f=>l(f)}else i=h=u=>u;return c.slice(p,a).map((u,l)=>{let m=p+1+l,f=" "+(" "+m).slice(-d)+" | ";if(m===this.line){let g=h(f.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+h(f)+u+`
30
30
  `+g+i("^")}return" "+h(f)+u}).join(`
31
31
  `)}toString(){let n=this.showSourceCode();return n&&(n=`
32
32
 
33
33
  `+n+`
34
- `),this.name+": "+this.message+n}}return _r=r,r.default=r,_r}var wt={},Ks;function Ln(){return Ks||(Ks=1,wt.isClean=Symbol("isClean"),wt.my=Symbol("my")),wt}var Lr,Zs;function to(){if(Zs)return Lr;Zs=1;let e={after:`
34
+ `),this.name+": "+this.message+n}}return Fr=r,r.default=r,Fr}var wt={},ei;function Un(){return ei||(ei=1,wt.isClean=Symbol("isClean"),wt.my=Symbol("my")),wt}var Ur,ti;function so(){if(ti)return Ur;ti=1;let e={after:`
35
35
  `,beforeClose:`
36
36
  `,beforeComment:`
37
37
  `,beforeDecl:`
@@ -42,21 +42,21 @@ https://www.w3ctech.com/topic/2226`));let R=b(...I);return R.postcssPlugin=E,R.p
42
42
  `)&&(c=c.replace(/[^\n]+$/,"")),!1}),typeof c=="undefined"?c=this.raw(o,null,"beforeDecl"):c&&(c=c.replace(/\S/g,"")),c}rawBeforeDecl(n,o){let c;return n.walkDecls(p=>{if(typeof p.raws.before!="undefined")return c=p.raws.before,c.includes(`
43
43
  `)&&(c=c.replace(/[^\n]+$/,"")),!1}),typeof c=="undefined"?c=this.raw(o,null,"beforeRule"):c&&(c=c.replace(/\S/g,"")),c}rawBeforeOpen(n){let o;return n.walk(c=>{if(c.type!=="decl"&&(o=c.raws.between,typeof o!="undefined"))return!1}),o}rawBeforeRule(n){let o;return n.walk(c=>{if(c.nodes&&(c.parent!==n||n.first!==c)&&typeof c.raws.before!="undefined")return o=c.raws.before,o.includes(`
44
44
  `)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawColon(n){let o;return n.walkDecls(c=>{if(typeof c.raws.between!="undefined")return o=c.raws.between.replace(/[^\s:]/g,""),!1}),o}rawEmptyBody(n){let o;return n.walk(c=>{if(c.nodes&&c.nodes.length===0&&(o=c.raws.after,typeof o!="undefined"))return!1}),o}rawIndent(n){if(n.raws.indent)return n.raws.indent;let o;return n.walk(c=>{let p=c.parent;if(p&&p!==n&&p.parent&&p.parent===n&&typeof c.raws.before!="undefined"){let a=c.raws.before.split(`
45
- `);return o=a[a.length-1],o=o.replace(/\S/g,""),!1}}),o}rawSemicolon(n){let o;return n.walk(c=>{if(c.nodes&&c.nodes.length&&c.last.type==="decl"&&(o=c.raws.semicolon,typeof o!="undefined"))return!1}),o}rawValue(n,o){let c=n[o],p=n.raws[o];return p&&p.value===c?p.raw:c}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,o){if(!this[n.type])throw new Error("Unknown AST node type "+n.type+". Maybe you need to change PostCSS stringifier.");this[n.type](n,o)}}return Lr=r,r.default=r,Lr}var Pr,Qs;function Ut(){if(Qs)return Pr;Qs=1;let e=to();function t(r,s){new e(s).stringify(r)}return Pr=t,t.default=t,Pr}var Fr,ei;function Bt(){if(ei)return Fr;ei=1;let{isClean:e,my:t}=Ln(),r=_n(),s=to(),n=Ut();function o(p,a){let d=new p.constructor;for(let i in p){if(!Object.prototype.hasOwnProperty.call(p,i)||i==="proxyCache")continue;let h=p[i],u=typeof h;i==="parent"&&u==="object"?a&&(d[i]=a):i==="source"?d[i]=h:Array.isArray(h)?d[i]=h.map(l=>o(l,d)):(u==="object"&&h!==null&&(h=o(h)),d[i]=h)}return d}class c{constructor(a={}){this.raws={},this[e]=!1,this[t]=!0;for(let d in a)if(d==="nodes"){this.nodes=[];for(let i of a[d])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[d]=a[d]}addToError(a){if(a.postcssNode=this,a.stack&&this.source&&/\n\s{4}at /.test(a.stack)){let d=this.source;a.stack=a.stack.replace(/\n\s{4}at /,`$&${d.input.from}:${d.start.line}:${d.start.column}$&`)}return a}after(a){return this.parent.insertAfter(this,a),this}assign(a={}){for(let d in a)this[d]=a[d];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 d=o(this);for(let i in a)d[i]=a[i];return d}cloneAfter(a={}){let d=this.clone(a);return this.parent.insertAfter(this,d),d}cloneBefore(a={}){let d=this.clone(a);return this.parent.insertBefore(this,d),d}error(a,d={}){if(this.source){let{end:i,start:h}=this.rangeBy(d);return this.source.input.error(a,{column:h.column,line:h.line},{column:i.column,line:i.line},d)}return new r(a)}getProxyProcessor(){return{get(a,d){return d==="proxyOf"?a:d==="root"?()=>a.root().toProxy():a[d]},set(a,d,i){return a[d]===i||(a[d]=i,(d==="prop"||d==="value"||d==="name"||d==="params"||d==="important"||d==="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,d){let i=this.source.start;if(a.index)i=this.positionInside(a.index,d);else if(a.word){d=this.toString();let h=d.indexOf(a.word);h!==-1&&(i=this.positionInside(h,d))}return i}positionInside(a,d){let i=d||this.toString(),h=this.source.start.column,u=this.source.start.line;for(let l=0;l<a;l++)i[l]===`
46
- `?(h=1,u+=1):h+=1;return{column:h,line:u}}prev(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a-1]}rangeBy(a){let d={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:d.column+1,line:d.line};if(a.word){let h=this.toString(),u=h.indexOf(a.word);u!==-1&&(d=this.positionInside(u,h),i=this.positionInside(u+a.word.length,h))}else a.start?d={column:a.start.column,line:a.start.line}:a.index&&(d=this.positionInside(a.index)),a.end?i={column:a.end.column,line:a.end.line}:typeof a.endIndex=="number"?i=this.positionInside(a.endIndex):a.index&&(i=this.positionInside(a.index+1));return(i.line<d.line||i.line===d.line&&i.column<=d.column)&&(i={column:d.column+1,line:d.line}),{end:i,start:d}}raw(a,d){return new s().raw(this,a,d)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...a){if(this.parent){let d=this,i=!1;for(let h of a)h===this?i=!0:i?(this.parent.insertAfter(d,h),d=h):this.parent.insertBefore(d,h);i||this.remove()}return this}root(){let a=this;for(;a.parent&&a.parent.type!=="document";)a=a.parent;return a}toJSON(a,d){let i={},h=d==null;d=d||new Map;let u=0;for(let l in this){if(!Object.prototype.hasOwnProperty.call(this,l)||l==="parent"||l==="proxyCache")continue;let m=this[l];if(Array.isArray(m))i[l]=m.map(f=>typeof f=="object"&&f.toJSON?f.toJSON(null,d):f);else if(typeof m=="object"&&m.toJSON)i[l]=m.toJSON(null,d);else if(l==="source"){let f=d.get(m.input);f==null&&(f=u,d.set(m.input,u),u++),i[l]={end:m.end,inputId:f,start:m.start}}else i[l]=m}return h&&(i.inputs=[...d.keys()].map(l=>l.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(a=n){a.stringify&&(a=a.stringify);let d="";return a(this,i=>{d+=i}),d}warn(a,d,i){let h={node:this};for(let u in i)h[u]=i[u];return a.warn(d,h)}get proxyOf(){return this}}return Fr=c,c.default=c,Fr}var Ur,ti;function zt(){if(ti)return Ur;ti=1;let e=Bt();class t extends e{constructor(s){s&&typeof s.value!="undefined"&&typeof s.value!="string"&&(s={...s,value:String(s.value)}),super(s),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Ur=t,t.default=t,Ur}var Br,ri;function Jl(){if(ri)return Br;ri=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Br={nanoid:(s=21)=>{let n="",o=s;for(;o--;)n+=e[Math.random()*64|0];return n},customAlphabet:(s,n=21)=>(o=n)=>{let c="",p=o;for(;p--;)c+=s[Math.random()*s.length|0];return c}},Br}var zr,ni;function ro(){if(ni)return zr;ni=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ve,{existsSync:r,readFileSync:s}=ve,{dirname:n,join:o}=ve;function c(a){return Buffer?Buffer.from(a,"base64").toString():window.atob(a)}class p{constructor(d,i){if(i.map===!1)return;this.loadAnnotation(d),this.inline=this.startWith(this.annotation,"data:");let h=i.map?i.map.prev:void 0,u=this.loadMap(i.from,h);!this.mapFile&&i.from&&(this.mapFile=i.from),this.mapFile&&(this.root=n(this.mapFile)),u&&(this.text=u)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(d){let i=/^data:application\/json;charset=utf-?8;base64,/,h=/^data:application\/json;base64,/,u=/^data:application\/json;charset=utf-?8,/,l=/^data:application\/json,/;if(u.test(d)||l.test(d))return decodeURIComponent(d.substr(RegExp.lastMatch.length));if(i.test(d)||h.test(d))return c(d.substr(RegExp.lastMatch.length));let m=d.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(d){return d.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(d){return typeof d!="object"?!1:typeof d.mappings=="string"||typeof d._mappings=="string"||Array.isArray(d.sections)}loadAnnotation(d){let i=d.match(/\/\*\s*# sourceMappingURL=/gm);if(!i)return;let h=d.lastIndexOf(i.pop()),u=d.indexOf("*/",h);h>-1&&u>-1&&(this.annotation=this.getAnnotationURL(d.substring(h,u)))}loadFile(d){if(this.root=n(d),r(d))return this.mapFile=d,s(d,"utf-8").toString().trim()}loadMap(d,i){if(i===!1)return!1;if(i){if(typeof i=="string")return i;if(typeof i=="function"){let h=i(d);if(h){let u=this.loadFile(h);if(!u)throw new Error("Unable to load previous source map: "+h.toString());return u}}else{if(i instanceof e)return t.fromSourceMap(i).toString();if(i instanceof t)return i.toString();if(this.isMap(i))return JSON.stringify(i);throw new Error("Unsupported previous source map format: "+i.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let h=this.annotation;return d&&(h=o(n(d),h)),this.loadFile(h)}}}startWith(d,i){return d?d.substr(0,i.length)===i:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return zr=p,p.default=p,zr}var $r,si;function $t(){if(si)return $r;si=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ve,{fileURLToPath:r,pathToFileURL:s}=ve,{isAbsolute:n,resolve:o}=ve,{nanoid:c}=Jl(),p=ve,a=_n(),d=ro(),i=Symbol("fromOffsetCache"),h=!!(e&&t),u=!!(o&&n);class l{constructor(f,g={}){if(f===null||typeof f=="undefined"||typeof f=="object"&&!f.toString)throw new Error(`PostCSS received ${f} instead of CSS string`);if(this.css=f.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!u||/^\w+:\/\//.test(g.from)||n(g.from)?this.file=g.from:this.file=o(g.from)),u&&h){let C=new d(this.css,g);if(C.text){this.map=C;let w=C.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+c(6)+">"),this.map&&(this.map.file=this.from)}error(f,g,C,w={}){let S,E,b;if(g&&typeof g=="object"){let v=g,x=C;if(typeof v.offset=="number"){let I=this.fromOffset(v.offset);g=I.line,C=I.col}else g=v.line,C=v.column;if(typeof x.offset=="number"){let I=this.fromOffset(x.offset);E=I.line,b=I.col}else E=x.line,b=x.column}else if(!C){let v=this.fromOffset(g);g=v.line,C=v.col}let y=this.origin(g,C,E,b);return y?S=new a(f,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,w.plugin):S=new a(f,E===void 0?g:{column:C,line:g},E===void 0?C:{column:b,line:E},this.css,this.file,w.plugin),S.input={column:C,endColumn:b,endLine:E,line:g,source:this.css},this.file&&(s&&(S.input.url=s(this.file).toString()),S.input.file=this.file),S}fromOffset(f){let g,C;if(this[i])C=this[i];else{let S=this.css.split(`
47
- `);C=new Array(S.length);let E=0;for(let b=0,y=S.length;b<y;b++)C[b]=E,E+=S[b].length+1;this[i]=C}g=C[C.length-1];let w=0;if(f>=g)w=C.length-1;else{let S=C.length-2,E;for(;w<S;)if(E=w+(S-w>>1),f<C[E])S=E-1;else if(f>=C[E+1])w=E+1;else{w=E;break}}return{col:f-C[w]+1,line:w+1}}mapResolve(f){return/^\w+:\/\//.test(f)?f:o(this.map.consumer().sourceRoot||this.map.root||".",f)}origin(f,g,C,w){if(!this.map)return!1;let S=this.map.consumer(),E=S.originalPositionFor({column:g,line:f});if(!E.source)return!1;let b;typeof C=="number"&&(b=S.originalPositionFor({column:w,line:C}));let y;n(E.source)?y=s(E.source):y=new URL(E.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let v={column:E.column,endColumn:b&&b.column,endLine:b&&b.line,line:E.line,url:y.toString()};if(y.protocol==="file:")if(r)v.file=r(y);else throw new Error("file: protocol is not available in this PostCSS build");let x=S.sourceContentFor(E.source);return x&&(v.source=x),v}toJSON(){let f={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(f[g]=this[g]);return this.map&&(f.map={...this.map},f.map.consumerCache&&(f.map.consumerCache=void 0)),f}get from(){return this.file||this.id}}return $r=l,l.default=l,p&&p.registerInput&&p.registerInput(l),$r}var Wr,ii;function no(){if(ii)return Wr;ii=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ve,{dirname:r,relative:s,resolve:n,sep:o}=ve,{pathToFileURL:c}=ve,p=$t(),a=!!(e&&t),d=!!(r&&n&&s&&o);class i{constructor(u,l,m,f){this.stringify=u,this.mapOpts=m.map||{},this.root=l,this.opts=m,this.css=f,this.originalCSS=f,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let u;this.isInline()?u="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?u=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?u=this.mapOpts.annotation(this.opts.to,this.root):u=this.outputFile()+".map";let l=`
45
+ `);return o=a[a.length-1],o=o.replace(/\S/g,""),!1}}),o}rawSemicolon(n){let o;return n.walk(c=>{if(c.nodes&&c.nodes.length&&c.last.type==="decl"&&(o=c.raws.semicolon,typeof o!="undefined"))return!1}),o}rawValue(n,o){let c=n[o],p=n.raws[o];return p&&p.value===c?p.raw:c}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,o){if(!this[n.type])throw new Error("Unknown AST node type "+n.type+". Maybe you need to change PostCSS stringifier.");this[n.type](n,o)}}return Ur=r,r.default=r,Ur}var Br,ri;function Ut(){if(ri)return Br;ri=1;let e=so();function t(r,s){new e(s).stringify(r)}return Br=t,t.default=t,Br}var zr,ni;function Bt(){if(ni)return zr;ni=1;let{isClean:e,my:t}=Un(),r=Fn(),s=so(),n=Ut();function o(p,a){let d=new p.constructor;for(let i in p){if(!Object.prototype.hasOwnProperty.call(p,i)||i==="proxyCache")continue;let h=p[i],u=typeof h;i==="parent"&&u==="object"?a&&(d[i]=a):i==="source"?d[i]=h:Array.isArray(h)?d[i]=h.map(l=>o(l,d)):(u==="object"&&h!==null&&(h=o(h)),d[i]=h)}return d}class c{constructor(a={}){this.raws={},this[e]=!1,this[t]=!0;for(let d in a)if(d==="nodes"){this.nodes=[];for(let i of a[d])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[d]=a[d]}addToError(a){if(a.postcssNode=this,a.stack&&this.source&&/\n\s{4}at /.test(a.stack)){let d=this.source;a.stack=a.stack.replace(/\n\s{4}at /,`$&${d.input.from}:${d.start.line}:${d.start.column}$&`)}return a}after(a){return this.parent.insertAfter(this,a),this}assign(a={}){for(let d in a)this[d]=a[d];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 d=o(this);for(let i in a)d[i]=a[i];return d}cloneAfter(a={}){let d=this.clone(a);return this.parent.insertAfter(this,d),d}cloneBefore(a={}){let d=this.clone(a);return this.parent.insertBefore(this,d),d}error(a,d={}){if(this.source){let{end:i,start:h}=this.rangeBy(d);return this.source.input.error(a,{column:h.column,line:h.line},{column:i.column,line:i.line},d)}return new r(a)}getProxyProcessor(){return{get(a,d){return d==="proxyOf"?a:d==="root"?()=>a.root().toProxy():a[d]},set(a,d,i){return a[d]===i||(a[d]=i,(d==="prop"||d==="value"||d==="name"||d==="params"||d==="important"||d==="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,d){let i=this.source.start;if(a.index)i=this.positionInside(a.index,d);else if(a.word){d=this.toString();let h=d.indexOf(a.word);h!==-1&&(i=this.positionInside(h,d))}return i}positionInside(a,d){let i=d||this.toString(),h=this.source.start.column,u=this.source.start.line;for(let l=0;l<a;l++)i[l]===`
46
+ `?(h=1,u+=1):h+=1;return{column:h,line:u}}prev(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a-1]}rangeBy(a){let d={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:d.column+1,line:d.line};if(a.word){let h=this.toString(),u=h.indexOf(a.word);u!==-1&&(d=this.positionInside(u,h),i=this.positionInside(u+a.word.length,h))}else a.start?d={column:a.start.column,line:a.start.line}:a.index&&(d=this.positionInside(a.index)),a.end?i={column:a.end.column,line:a.end.line}:typeof a.endIndex=="number"?i=this.positionInside(a.endIndex):a.index&&(i=this.positionInside(a.index+1));return(i.line<d.line||i.line===d.line&&i.column<=d.column)&&(i={column:d.column+1,line:d.line}),{end:i,start:d}}raw(a,d){return new s().raw(this,a,d)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...a){if(this.parent){let d=this,i=!1;for(let h of a)h===this?i=!0:i?(this.parent.insertAfter(d,h),d=h):this.parent.insertBefore(d,h);i||this.remove()}return this}root(){let a=this;for(;a.parent&&a.parent.type!=="document";)a=a.parent;return a}toJSON(a,d){let i={},h=d==null;d=d||new Map;let u=0;for(let l in this){if(!Object.prototype.hasOwnProperty.call(this,l)||l==="parent"||l==="proxyCache")continue;let m=this[l];if(Array.isArray(m))i[l]=m.map(f=>typeof f=="object"&&f.toJSON?f.toJSON(null,d):f);else if(typeof m=="object"&&m.toJSON)i[l]=m.toJSON(null,d);else if(l==="source"){let f=d.get(m.input);f==null&&(f=u,d.set(m.input,u),u++),i[l]={end:m.end,inputId:f,start:m.start}}else i[l]=m}return h&&(i.inputs=[...d.keys()].map(l=>l.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(a=n){a.stringify&&(a=a.stringify);let d="";return a(this,i=>{d+=i}),d}warn(a,d,i){let h={node:this};for(let u in i)h[u]=i[u];return a.warn(d,h)}get proxyOf(){return this}}return zr=c,c.default=c,zr}var $r,si;function zt(){if(si)return $r;si=1;let e=Bt();class t extends e{constructor(s){s&&typeof s.value!="undefined"&&typeof s.value!="string"&&(s={...s,value:String(s.value)}),super(s),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return $r=t,t.default=t,$r}var Wr,ii;function eu(){if(ii)return Wr;ii=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Wr={nanoid:(s=21)=>{let n="",o=s;for(;o--;)n+=e[Math.random()*64|0];return n},customAlphabet:(s,n=21)=>(o=n)=>{let c="",p=o;for(;p--;)c+=s[Math.random()*s.length|0];return c}},Wr}var qr,oi;function io(){if(oi)return qr;oi=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ve,{existsSync:r,readFileSync:s}=ve,{dirname:n,join:o}=ve;function c(a){return Buffer?Buffer.from(a,"base64").toString():window.atob(a)}class p{constructor(d,i){if(i.map===!1)return;this.loadAnnotation(d),this.inline=this.startWith(this.annotation,"data:");let h=i.map?i.map.prev:void 0,u=this.loadMap(i.from,h);!this.mapFile&&i.from&&(this.mapFile=i.from),this.mapFile&&(this.root=n(this.mapFile)),u&&(this.text=u)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(d){let i=/^data:application\/json;charset=utf-?8;base64,/,h=/^data:application\/json;base64,/,u=/^data:application\/json;charset=utf-?8,/,l=/^data:application\/json,/;if(u.test(d)||l.test(d))return decodeURIComponent(d.substr(RegExp.lastMatch.length));if(i.test(d)||h.test(d))return c(d.substr(RegExp.lastMatch.length));let m=d.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(d){return d.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(d){return typeof d!="object"?!1:typeof d.mappings=="string"||typeof d._mappings=="string"||Array.isArray(d.sections)}loadAnnotation(d){let i=d.match(/\/\*\s*# sourceMappingURL=/gm);if(!i)return;let h=d.lastIndexOf(i.pop()),u=d.indexOf("*/",h);h>-1&&u>-1&&(this.annotation=this.getAnnotationURL(d.substring(h,u)))}loadFile(d){if(this.root=n(d),r(d))return this.mapFile=d,s(d,"utf-8").toString().trim()}loadMap(d,i){if(i===!1)return!1;if(i){if(typeof i=="string")return i;if(typeof i=="function"){let h=i(d);if(h){let u=this.loadFile(h);if(!u)throw new Error("Unable to load previous source map: "+h.toString());return u}}else{if(i instanceof e)return t.fromSourceMap(i).toString();if(i instanceof t)return i.toString();if(this.isMap(i))return JSON.stringify(i);throw new Error("Unsupported previous source map format: "+i.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let h=this.annotation;return d&&(h=o(n(d),h)),this.loadFile(h)}}}startWith(d,i){return d?d.substr(0,i.length)===i:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return qr=p,p.default=p,qr}var jr,ai;function $t(){if(ai)return jr;ai=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ve,{fileURLToPath:r,pathToFileURL:s}=ve,{isAbsolute:n,resolve:o}=ve,{nanoid:c}=eu(),p=ve,a=Fn(),d=io(),i=Symbol("fromOffsetCache"),h=!!(e&&t),u=!!(o&&n);class l{constructor(f,g={}){if(f===null||typeof f=="undefined"||typeof f=="object"&&!f.toString)throw new Error(`PostCSS received ${f} instead of CSS string`);if(this.css=f.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!u||/^\w+:\/\//.test(g.from)||n(g.from)?this.file=g.from:this.file=o(g.from)),u&&h){let C=new d(this.css,g);if(C.text){this.map=C;let w=C.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+c(6)+">"),this.map&&(this.map.file=this.from)}error(f,g,C,w={}){let S,E,b;if(g&&typeof g=="object"){let v=g,x=C;if(typeof v.offset=="number"){let I=this.fromOffset(v.offset);g=I.line,C=I.col}else g=v.line,C=v.column;if(typeof x.offset=="number"){let I=this.fromOffset(x.offset);E=I.line,b=I.col}else E=x.line,b=x.column}else if(!C){let v=this.fromOffset(g);g=v.line,C=v.col}let y=this.origin(g,C,E,b);return y?S=new a(f,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,w.plugin):S=new a(f,E===void 0?g:{column:C,line:g},E===void 0?C:{column:b,line:E},this.css,this.file,w.plugin),S.input={column:C,endColumn:b,endLine:E,line:g,source:this.css},this.file&&(s&&(S.input.url=s(this.file).toString()),S.input.file=this.file),S}fromOffset(f){let g,C;if(this[i])C=this[i];else{let S=this.css.split(`
47
+ `);C=new Array(S.length);let E=0;for(let b=0,y=S.length;b<y;b++)C[b]=E,E+=S[b].length+1;this[i]=C}g=C[C.length-1];let w=0;if(f>=g)w=C.length-1;else{let S=C.length-2,E;for(;w<S;)if(E=w+(S-w>>1),f<C[E])S=E-1;else if(f>=C[E+1])w=E+1;else{w=E;break}}return{col:f-C[w]+1,line:w+1}}mapResolve(f){return/^\w+:\/\//.test(f)?f:o(this.map.consumer().sourceRoot||this.map.root||".",f)}origin(f,g,C,w){if(!this.map)return!1;let S=this.map.consumer(),E=S.originalPositionFor({column:g,line:f});if(!E.source)return!1;let b;typeof C=="number"&&(b=S.originalPositionFor({column:w,line:C}));let y;n(E.source)?y=s(E.source):y=new URL(E.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let v={column:E.column,endColumn:b&&b.column,endLine:b&&b.line,line:E.line,url:y.toString()};if(y.protocol==="file:")if(r)v.file=r(y);else throw new Error("file: protocol is not available in this PostCSS build");let x=S.sourceContentFor(E.source);return x&&(v.source=x),v}toJSON(){let f={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(f[g]=this[g]);return this.map&&(f.map={...this.map},f.map.consumerCache&&(f.map.consumerCache=void 0)),f}get from(){return this.file||this.id}}return jr=l,l.default=l,p&&p.registerInput&&p.registerInput(l),jr}var Vr,li;function oo(){if(li)return Vr;li=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ve,{dirname:r,relative:s,resolve:n,sep:o}=ve,{pathToFileURL:c}=ve,p=$t(),a=!!(e&&t),d=!!(r&&n&&s&&o);class i{constructor(u,l,m,f){this.stringify=u,this.mapOpts=m.map||{},this.root=l,this.opts=m,this.css=f,this.originalCSS=f,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let u;this.isInline()?u="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?u=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?u=this.mapOpts.annotation(this.opts.to,this.root):u=this.outputFile()+".map";let l=`
48
48
  `;this.css.includes(`\r
49
49
  `)&&(l=`\r
50
50
  `),this.css+=l+"/*# sourceMappingURL="+u+" */"}applyPrevMaps(){for(let u of this.previous()){let l=this.toUrl(this.path(u.file)),m=u.root||r(u.file),f;this.mapOpts.sourcesContent===!1?(f=new e(u.text),f.sourcesContent&&(f.sourcesContent=null)):f=u.consumer(),this.map.applySourceMap(f,l,this.toUrl(this.path(m)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let u;for(let l=this.root.nodes.length-1;l>=0;l--)u=this.root.nodes[l],u.type==="comment"&&u.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(l)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),d&&a&&this.isMap())return this.generateMap();{let u="";return this.stringify(this.root,l=>{u+=l}),[u]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let u=this.previous()[0].consumer();u.file=this.outputFile(),this.map=t.fromSourceMap(u,{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 u=1,l=1,m="<no source>",f={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,C;this.stringify(this.root,(w,S,E)=>{if(this.css+=w,S&&E!=="end"&&(f.generated.line=u,f.generated.column=l-1,S.source&&S.source.start?(f.source=this.sourcePath(S),f.original.line=S.source.start.line,f.original.column=S.source.start.column-1,this.map.addMapping(f)):(f.source=m,f.original.line=1,f.original.column=0,this.map.addMapping(f))),g=w.match(/\n/g),g?(u+=g.length,C=w.lastIndexOf(`
51
- `),l=w.length-C):l+=w.length,S&&E!=="start"){let b=S.parent||{raws:{}};(!(S.type==="decl"||S.type==="atrule"&&!S.nodes)||S!==b.last||b.raws.semicolon)&&(S.source&&S.source.end?(f.source=this.sourcePath(S),f.original.line=S.source.end.line,f.original.column=S.source.end.column-1,f.generated.line=u,f.generated.column=l-2,this.map.addMapping(f)):(f.source=m,f.original.line=1,f.original.column=0,f.generated.line=u,f.generated.column=l-1,this.map.addMapping(f)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(u=>u.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let u=this.mapOpts.annotation;return typeof u!="undefined"&&u!==!0?!1:this.previous().length?this.previous().some(l=>l.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(u=>u.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(u){if(this.mapOpts.absolute||u.charCodeAt(0)===60||/^\w+:\/\//.test(u))return u;let l=this.memoizedPaths.get(u);if(l)return l;let m=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=r(n(m,this.mapOpts.annotation)));let f=s(m,u);return this.memoizedPaths.set(u,f),f}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(u=>{if(u.source&&u.source.input.map){let l=u.source.input.map;this.previousMaps.includes(l)||this.previousMaps.push(l)}});else{let u=new p(this.originalCSS,this.opts);u.map&&this.previousMaps.push(u.map)}return this.previousMaps}setSourcesContent(){let u={};if(this.root)this.root.walk(l=>{if(l.source){let m=l.source.input.from;if(m&&!u[m]){u[m]=!0;let f=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(f,l.source.input.css)}}});else if(this.css){let l=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(l,this.css)}}sourcePath(u){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(u.source.input.from):this.toUrl(this.path(u.source.input.from))}toBase64(u){return Buffer?Buffer.from(u).toString("base64"):window.btoa(unescape(encodeURIComponent(u)))}toFileUrl(u){let l=this.memoizedFileURLs.get(u);if(l)return l;if(c){let m=c(u).toString();return this.memoizedFileURLs.set(u,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(u){let l=this.memoizedURLs.get(u);if(l)return l;o==="\\"&&(u=u.replace(/\\/g,"/"));let m=encodeURI(u).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(u,m),m}}return Wr=i,Wr}var qr,oi;function Wt(){if(oi)return qr;oi=1;let e=Bt();class t extends e{constructor(s){super(s),this.type="comment"}}return qr=t,t.default=t,qr}var jr,ai;function Le(){if(ai)return jr;ai=1;let{isClean:e,my:t}=Ln(),r=zt(),s=Wt(),n=Bt(),o,c,p,a;function d(u){return u.map(l=>(l.nodes&&(l.nodes=d(l.nodes)),delete l.source,l))}function i(u){if(u[e]=!1,u.proxyOf.nodes)for(let l of u.proxyOf.nodes)i(l)}class h extends n{append(...l){for(let m of l){let f=this.normalize(m,this.last);for(let g of f)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(l){if(super.cleanRaws(l),this.nodes)for(let m of this.nodes)m.cleanRaws(l)}each(l){if(!this.proxyOf.nodes)return;let m=this.getIterator(),f,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(f=this.indexes[m],g=l(this.proxyOf.nodes[f],f),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(l){return this.nodes.every(l)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let l=this.lastEach;return this.indexes[l]=0,l}getProxyProcessor(){return{get(l,m){return m==="proxyOf"?l:l[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...f)=>l[m](...f.map(g=>typeof g=="function"?(C,w)=>g(C.toProxy(),w):g)):m==="every"||m==="some"?f=>l[m]((g,...C)=>f(g.toProxy(),...C)):m==="root"?()=>l.root().toProxy():m==="nodes"?l.nodes.map(f=>f.toProxy()):m==="first"||m==="last"?l[m].toProxy():l[m]:l[m]},set(l,m,f){return l[m]===f||(l[m]=f,(m==="name"||m==="params"||m==="selector")&&l.markDirty()),!0}}}index(l){return typeof l=="number"?l:(l.proxyOf&&(l=l.proxyOf),this.proxyOf.nodes.indexOf(l))}insertAfter(l,m){let f=this.index(l),g=this.normalize(m,this.proxyOf.nodes[f]).reverse();f=this.index(l);for(let w of g)this.proxyOf.nodes.splice(f+1,0,w);let C;for(let w in this.indexes)C=this.indexes[w],f<C&&(this.indexes[w]=C+g.length);return this.markDirty(),this}insertBefore(l,m){let f=this.index(l),g=f===0?"prepend":!1,C=this.normalize(m,this.proxyOf.nodes[f],g).reverse();f=this.index(l);for(let S of C)this.proxyOf.nodes.splice(f,0,S);let w;for(let S in this.indexes)w=this.indexes[S],f<=w&&(this.indexes[S]=w+C.length);return this.markDirty(),this}normalize(l,m){if(typeof l=="string")l=d(o(l).nodes);else if(typeof l=="undefined")l=[];else if(Array.isArray(l)){l=l.slice(0);for(let g of l)g.parent&&g.parent.removeChild(g,"ignore")}else if(l.type==="root"&&this.type!=="document"){l=l.nodes.slice(0);for(let g of l)g.parent&&g.parent.removeChild(g,"ignore")}else if(l.type)l=[l];else if(l.prop){if(typeof l.value=="undefined")throw new Error("Value field is missed in node creation");typeof l.value!="string"&&(l.value=String(l.value)),l=[new r(l)]}else if(l.selector)l=[new c(l)];else if(l.name)l=[new p(l)];else if(l.text)l=[new s(l)];else throw new Error("Unknown node type in node creation");return l.map(g=>(g[t]||h.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&i(g),typeof g.raws.before=="undefined"&&m&&typeof m.raws.before!="undefined"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...l){l=l.reverse();for(let m of l){let f=this.normalize(m,this.first,"prepend").reverse();for(let g of f)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+f.length}return this.markDirty(),this}push(l){return l.parent=this,this.proxyOf.nodes.push(l),this}removeAll(){for(let l of this.proxyOf.nodes)l.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(l){l=this.index(l),this.proxyOf.nodes[l].parent=void 0,this.proxyOf.nodes.splice(l,1);let m;for(let f in this.indexes)m=this.indexes[f],m>=l&&(this.indexes[f]=m-1);return this.markDirty(),this}replaceValues(l,m,f){return f||(f=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(l,f))}),this.markDirty(),this}some(l){return this.nodes.some(l)}walk(l){return this.each((m,f)=>{let g;try{g=l(m,f)}catch(C){throw m.addToError(C)}return g!==!1&&m.walk&&(g=m.walk(l)),g})}walkAtRules(l,m){return m?l instanceof RegExp?this.walk((f,g)=>{if(f.type==="atrule"&&l.test(f.name))return m(f,g)}):this.walk((f,g)=>{if(f.type==="atrule"&&f.name===l)return m(f,g)}):(m=l,this.walk((f,g)=>{if(f.type==="atrule")return m(f,g)}))}walkComments(l){return this.walk((m,f)=>{if(m.type==="comment")return l(m,f)})}walkDecls(l,m){return m?l instanceof RegExp?this.walk((f,g)=>{if(f.type==="decl"&&l.test(f.prop))return m(f,g)}):this.walk((f,g)=>{if(f.type==="decl"&&f.prop===l)return m(f,g)}):(m=l,this.walk((f,g)=>{if(f.type==="decl")return m(f,g)}))}walkRules(l,m){return m?l instanceof RegExp?this.walk((f,g)=>{if(f.type==="rule"&&l.test(f.selector))return m(f,g)}):this.walk((f,g)=>{if(f.type==="rule"&&f.selector===l)return m(f,g)}):(m=l,this.walk((f,g)=>{if(f.type==="rule")return m(f,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=u=>{o=u},h.registerRule=u=>{c=u},h.registerAtRule=u=>{p=u},h.registerRoot=u=>{a=u},jr=h,h.default=h,h.rebuild=u=>{u.type==="atrule"?Object.setPrototypeOf(u,p.prototype):u.type==="rule"?Object.setPrototypeOf(u,c.prototype):u.type==="decl"?Object.setPrototypeOf(u,r.prototype):u.type==="comment"?Object.setPrototypeOf(u,s.prototype):u.type==="root"&&Object.setPrototypeOf(u,a.prototype),u[t]=!0,u.nodes&&u.nodes.forEach(l=>{h.rebuild(l)})},jr}var Vr,li;function Pn(){if(li)return Vr;li=1;let e=Le(),t,r;class s extends e{constructor(o){super({type:"document",...o}),this.nodes||(this.nodes=[])}toResult(o={}){return new t(new r,this,o).stringify()}}return s.registerLazyResult=n=>{t=n},s.registerProcessor=n=>{r=n},Vr=s,s.default=s,Vr}var Hr,ui;function so(){if(ui)return Hr;ui=1;let e={};return Hr=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},Hr}var Gr,ci;function io(){if(ci)return Gr;ci=1;class e{constructor(r,s={}){if(this.type="warning",this.text=r,s.node&&s.node.source){let n=s.node.rangeBy(s);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in s)this[n]=s[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 Gr=e,e.default=e,Gr}var Yr,fi;function Fn(){if(fi)return Yr;fi=1;let e=io();class t{constructor(s,n,o){this.processor=s,this.messages=[],this.root=n,this.opts=o,this.css=void 0,this.map=void 0}toString(){return this.css}warn(s,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let o=new e(s,n);return this.messages.push(o),o}warnings(){return this.messages.filter(s=>s.type==="warning")}get content(){return this.css}}return Yr=t,t.default=t,Yr}var Xr,hi;function Kl(){if(hi)return Xr;hi=1;let e=39,t=34,r=92,s=47,n=10,o=32,c=12,p=9,a=13,d=91,i=93,h=40,u=41,l=123,m=125,f=59,g=42,C=58,w=64,S=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,b=/.[\r\n"'(/\\]/,y=/[\da-f]/i;return Xr=function(x,I={}){let R=x.css.valueOf(),A=I.ignoreErrors,O,M,P,U,k,D,_,Y,H,F,ne=R.length,N=0,K=[],z=[];function ie(){return N}function se(L){throw x.error("Unclosed "+L,N)}function ae(){return z.length===0&&N>=ne}function Ce(L){if(z.length)return z.pop();if(N>=ne)return;let ee=L?L.ignoreUnclosed:!1;switch(O=R.charCodeAt(N),O){case n:case o:case p:case a:case c:{M=N;do M+=1,O=R.charCodeAt(M);while(O===o||O===n||O===p||O===a||O===c);F=["space",R.slice(N,M)],N=M-1;break}case d:case i:case l:case m:case C:case f:case u:{let j=String.fromCharCode(O);F=[j,j,N];break}case h:{if(Y=K.length?K.pop()[1]:"",H=R.charCodeAt(N+1),Y==="url"&&H!==e&&H!==t&&H!==o&&H!==n&&H!==p&&H!==c&&H!==a){M=N;do{if(D=!1,M=R.indexOf(")",M+1),M===-1)if(A||ee){M=N;break}else se("bracket");for(_=M;R.charCodeAt(_-1)===r;)_-=1,D=!D}while(D);F=["brackets",R.slice(N,M+1),N,M],N=M}else M=R.indexOf(")",N+1),U=R.slice(N,M+1),M===-1||b.test(U)?F=["(","(",N]:(F=["brackets",U,N,M],N=M);break}case e:case t:{P=O===e?"'":'"',M=N;do{if(D=!1,M=R.indexOf(P,M+1),M===-1)if(A||ee){M=N+1;break}else se("string");for(_=M;R.charCodeAt(_-1)===r;)_-=1,D=!D}while(D);F=["string",R.slice(N,M+1),N,M],N=M;break}case w:{S.lastIndex=N+1,S.test(R),S.lastIndex===0?M=R.length-1:M=S.lastIndex-2,F=["at-word",R.slice(N,M+1),N,M],N=M;break}case r:{for(M=N,k=!0;R.charCodeAt(M+1)===r;)M+=1,k=!k;if(O=R.charCodeAt(M+1),k&&O!==s&&O!==o&&O!==n&&O!==p&&O!==a&&O!==c&&(M+=1,y.test(R.charAt(M)))){for(;y.test(R.charAt(M+1));)M+=1;R.charCodeAt(M+1)===o&&(M+=1)}F=["word",R.slice(N,M+1),N,M],N=M;break}default:{O===s&&R.charCodeAt(N+1)===g?(M=R.indexOf("*/",N+2)+1,M===0&&(A||ee?M=R.length:se("comment")),F=["comment",R.slice(N,M+1),N,M],N=M):(E.lastIndex=N+1,E.test(R),E.lastIndex===0?M=R.length-1:M=E.lastIndex-2,F=["word",R.slice(N,M+1),N,M],K.push(F),N=M);break}}return N++,F}function me(L){z.push(L)}return{back:me,endOfFile:ae,nextToken:Ce,position:ie}},Xr}var Jr,di;function Un(){if(di)return Jr;di=1;let e=Le();class t extends e{constructor(s){super(s),this.type="atrule"}append(...s){return this.proxyOf.nodes||(this.nodes=[]),super.append(...s)}prepend(...s){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...s)}}return Jr=t,t.default=t,e.registerAtRule(t),Jr}var Kr,pi;function ot(){if(pi)return Kr;pi=1;let e=Le(),t,r;class s extends e{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[])}normalize(o,c,p){let a=super.normalize(o);if(c){if(p==="prepend")this.nodes.length>1?c.raws.before=this.nodes[1].raws.before:delete c.raws.before;else if(this.first!==c)for(let d of a)d.raws.before=c.raws.before}return a}removeChild(o,c){let p=this.index(o);return!c&&p===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[p].raws.before),super.removeChild(o)}toResult(o={}){return new t(new r,this,o).stringify()}}return s.registerLazyResult=n=>{t=n},s.registerProcessor=n=>{r=n},Kr=s,s.default=s,e.registerRoot(s),Kr}var Zr,mi;function oo(){if(mi)return Zr;mi=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
52
- `," "];return e.split(t,r)},split(t,r,s){let n=[],o="",c=!1,p=0,a=!1,d="",i=!1;for(let h of t)i?i=!1:h==="\\"?i=!0:a?h===d&&(a=!1):h==='"'||h==="'"?(a=!0,d=h):h==="("?p+=1:h===")"?p>0&&(p-=1):p===0&&r.includes(h)&&(c=!0),c?(o!==""&&n.push(o.trim()),o="",c=!1):o+=h;return(s||o!=="")&&n.push(o.trim()),n}};return Zr=e,e.default=e,Zr}var Qr,gi;function Bn(){if(gi)return Qr;gi=1;let e=Le(),t=oo();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 o=this.selector?this.selector.match(/,\s*/):null,c=o?o[0]:","+this.raw("between","beforeOpen");this.selector=n.join(c)}}return Qr=r,r.default=r,e.registerRule(r),Qr}var en,yi;function Zl(){if(yi)return en;yi=1;let e=zt(),t=Kl(),r=Wt(),s=Un(),n=ot(),o=Bn(),c={empty:!0,space:!0};function p(d){for(let i=d.length-1;i>=0;i--){let h=d[i],u=h[3]||h[2];if(u)return u}}class a{constructor(i){this.input=i,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}atrule(i){let h=new s;h.name=i[1].slice(1),h.name===""&&this.unnamedAtrule(h,i),this.init(h,i[2]);let u,l,m,f=!1,g=!1,C=[],w=[];for(;!this.tokenizer.endOfFile();){if(i=this.tokenizer.nextToken(),u=i[0],u==="("||u==="["?w.push(u==="("?")":"]"):u==="{"&&w.length>0?w.push("}"):u===w[w.length-1]&&w.pop(),w.length===0)if(u===";"){h.source.end=this.getPosition(i[2]),h.source.end.offset++,this.semicolon=!0;break}else if(u==="{"){g=!0;break}else if(u==="}"){if(C.length>0){for(m=C.length-1,l=C[m];l&&l[0]==="space";)l=C[--m];l&&(h.source.end=this.getPosition(l[3]||l[2]),h.source.end.offset++)}this.end(i);break}else C.push(i);else C.push(i);if(this.tokenizer.endOfFile()){f=!0;break}}h.raws.between=this.spacesAndCommentsFromEnd(C),C.length?(h.raws.afterName=this.spacesAndCommentsFromStart(C),this.raw(h,"params",C),f&&(i=C[C.length-1],h.source.end=this.getPosition(i[3]||i[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(i){let h=this.colon(i);if(h===!1)return;let u=0,l;for(let m=h-1;m>=0&&(l=i[m],!(l[0]!=="space"&&(u+=1,u===2)));m--);throw this.input.error("Missed semicolon",l[0]==="word"?l[3]+1:l[2])}colon(i){let h=0,u,l,m;for(let[f,g]of i.entries()){if(u=g,l=u[0],l==="("&&(h+=1),l===")"&&(h-=1),h===0&&l===":")if(!m)this.doubleColon(u);else{if(m[0]==="word"&&m[1]==="progid")continue;return f}m=u}return!1}comment(i){let h=new r;this.init(h,i[2]),h.source.end=this.getPosition(i[3]||i[2]),h.source.end.offset++;let u=i[1].slice(2,-2);if(/^\s*$/.test(u))h.text="",h.raws.left=u,h.raws.right="";else{let l=u.match(/^(\s*)([^]*\S)(\s*)$/);h.text=l[2],h.raws.left=l[1],h.raws.right=l[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(i,h){let u=new e;this.init(u,i[0][2]);let l=i[i.length-1];for(l[0]===";"&&(this.semicolon=!0,i.pop()),u.source.end=this.getPosition(l[3]||l[2]||p(i)),u.source.end.offset++;i[0][0]!=="word";)i.length===1&&this.unknownWord(i),u.raws.before+=i.shift()[1];for(u.source.start=this.getPosition(i[0][2]),u.prop="";i.length;){let w=i[0][0];if(w===":"||w==="space"||w==="comment")break;u.prop+=i.shift()[1]}u.raws.between="";let m;for(;i.length;)if(m=i.shift(),m[0]===":"){u.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),u.raws.between+=m[1];(u.prop[0]==="_"||u.prop[0]==="*")&&(u.raws.before+=u.prop[0],u.prop=u.prop.slice(1));let f=[],g;for(;i.length&&(g=i[0][0],!(g!=="space"&&g!=="comment"));)f.push(i.shift());this.precheckMissedSemicolon(i);for(let w=i.length-1;w>=0;w--){if(m=i[w],m[1].toLowerCase()==="!important"){u.important=!0;let S=this.stringFrom(i,w);S=this.spacesFromEnd(i)+S,S!==" !important"&&(u.raws.important=S);break}else if(m[1].toLowerCase()==="important"){let S=i.slice(0),E="";for(let b=w;b>0;b--){let y=S[b][0];if(E.trim().indexOf("!")===0&&y!=="space")break;E=S.pop()[1]+E}E.trim().indexOf("!")===0&&(u.important=!0,u.raws.important=E,i=S)}if(m[0]!=="space"&&m[0]!=="comment")break}i.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(u.raws.between+=f.map(w=>w[1]).join(""),f=[]),this.raw(u,"value",f.concat(i),h),u.value.includes(":")&&!h&&this.checkMissedSemicolon(i)}doubleColon(i){throw this.input.error("Double colon",{offset:i[2]},{offset:i[2]+i[1].length})}emptyRule(i){let h=new o;this.init(h,i[2]),h.selector="",h.raws.between="",this.current=h}end(i){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(i[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(i)}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(i){if(this.spaces+=i[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(i){let h=this.input.fromOffset(i);return{column:h.col,line:h.line,offset:i}}init(i,h){this.current.push(i),i.source={input:this.input,start:this.getPosition(h)},i.raws.before=this.spaces,this.spaces="",i.type!=="comment"&&(this.semicolon=!1)}other(i){let h=!1,u=null,l=!1,m=null,f=[],g=i[1].startsWith("--"),C=[],w=i;for(;w;){if(u=w[0],C.push(w),u==="("||u==="[")m||(m=w),f.push(u==="("?")":"]");else if(g&&l&&u==="{")m||(m=w),f.push("}");else if(f.length===0)if(u===";")if(l){this.decl(C,g);return}else break;else if(u==="{"){this.rule(C);return}else if(u==="}"){this.tokenizer.back(C.pop()),h=!0;break}else u===":"&&(l=!0);else u===f[f.length-1]&&(f.pop(),f.length===0&&(m=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(h=!0),f.length>0&&this.unclosedBracket(m),h&&l){if(!g)for(;C.length&&(w=C[C.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(C.pop());this.decl(C,g)}else this.unknownWord(C)}parse(){let i;for(;!this.tokenizer.endOfFile();)switch(i=this.tokenizer.nextToken(),i[0]){case"space":this.spaces+=i[1];break;case";":this.freeSemicolon(i);break;case"}":this.end(i);break;case"comment":this.comment(i);break;case"at-word":this.atrule(i);break;case"{":this.emptyRule(i);break;default:this.other(i);break}this.endFile()}precheckMissedSemicolon(){}raw(i,h,u,l){let m,f,g=u.length,C="",w=!0,S,E;for(let b=0;b<g;b+=1)m=u[b],f=m[0],f==="space"&&b===g-1&&!l?w=!1:f==="comment"?(E=u[b-1]?u[b-1][0]:"empty",S=u[b+1]?u[b+1][0]:"empty",!c[E]&&!c[S]?C.slice(-1)===","?w=!1:C+=m[1]:w=!1):C+=m[1];if(!w){let b=u.reduce((y,v)=>y+v[1],"");i.raws[h]={raw:b,value:C}}i[h]=C}rule(i){i.pop();let h=new o;this.init(h,i[0][2]),h.raws.between=this.spacesAndCommentsFromEnd(i),this.raw(h,"selector",i),this.current=h}spacesAndCommentsFromEnd(i){let h,u="";for(;i.length&&(h=i[i.length-1][0],!(h!=="space"&&h!=="comment"));)u=i.pop()[1]+u;return u}spacesAndCommentsFromStart(i){let h,u="";for(;i.length&&(h=i[0][0],!(h!=="space"&&h!=="comment"));)u+=i.shift()[1];return u}spacesFromEnd(i){let h,u="";for(;i.length&&(h=i[i.length-1][0],h==="space");)u=i.pop()[1]+u;return u}stringFrom(i,h){let u="";for(let l=h;l<i.length;l++)u+=i[l][1];return i.splice(h,i.length-h),u}unclosedBlock(){let i=this.current.source.start;throw this.input.error("Unclosed block",i.line,i.column)}unclosedBracket(i){throw this.input.error("Unclosed bracket",{offset:i[2]},{offset:i[2]+1})}unexpectedClose(i){throw this.input.error("Unexpected }",{offset:i[2]},{offset:i[2]+1})}unknownWord(i){throw this.input.error("Unknown word",{offset:i[0][2]},{offset:i[0][2]+i[0][1].length})}unnamedAtrule(i,h){throw this.input.error("At-rule without name",{offset:h[2]},{offset:h[2]+h[1].length})}}return en=a,en}var tn,vi;function zn(){if(vi)return tn;vi=1;let e=Le(),t=Zl(),r=$t();function s(n,o){let c=new r(n,o),p=new t(c);try{p.parse()}catch(a){throw process.env.NODE_ENV!=="production"&&a.name==="CssSyntaxError"&&o&&o.from&&(/\.scss$/i.test(o.from)?a.message+=`
51
+ `),l=w.length-C):l+=w.length,S&&E!=="start"){let b=S.parent||{raws:{}};(!(S.type==="decl"||S.type==="atrule"&&!S.nodes)||S!==b.last||b.raws.semicolon)&&(S.source&&S.source.end?(f.source=this.sourcePath(S),f.original.line=S.source.end.line,f.original.column=S.source.end.column-1,f.generated.line=u,f.generated.column=l-2,this.map.addMapping(f)):(f.source=m,f.original.line=1,f.original.column=0,f.generated.line=u,f.generated.column=l-1,this.map.addMapping(f)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(u=>u.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let u=this.mapOpts.annotation;return typeof u!="undefined"&&u!==!0?!1:this.previous().length?this.previous().some(l=>l.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(u=>u.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(u){if(this.mapOpts.absolute||u.charCodeAt(0)===60||/^\w+:\/\//.test(u))return u;let l=this.memoizedPaths.get(u);if(l)return l;let m=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(m=r(n(m,this.mapOpts.annotation)));let f=s(m,u);return this.memoizedPaths.set(u,f),f}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(u=>{if(u.source&&u.source.input.map){let l=u.source.input.map;this.previousMaps.includes(l)||this.previousMaps.push(l)}});else{let u=new p(this.originalCSS,this.opts);u.map&&this.previousMaps.push(u.map)}return this.previousMaps}setSourcesContent(){let u={};if(this.root)this.root.walk(l=>{if(l.source){let m=l.source.input.from;if(m&&!u[m]){u[m]=!0;let f=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(f,l.source.input.css)}}});else if(this.css){let l=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(l,this.css)}}sourcePath(u){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(u.source.input.from):this.toUrl(this.path(u.source.input.from))}toBase64(u){return Buffer?Buffer.from(u).toString("base64"):window.btoa(unescape(encodeURIComponent(u)))}toFileUrl(u){let l=this.memoizedFileURLs.get(u);if(l)return l;if(c){let m=c(u).toString();return this.memoizedFileURLs.set(u,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(u){let l=this.memoizedURLs.get(u);if(l)return l;o==="\\"&&(u=u.replace(/\\/g,"/"));let m=encodeURI(u).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(u,m),m}}return Vr=i,Vr}var Hr,ui;function Wt(){if(ui)return Hr;ui=1;let e=Bt();class t extends e{constructor(s){super(s),this.type="comment"}}return Hr=t,t.default=t,Hr}var Gr,ci;function Le(){if(ci)return Gr;ci=1;let{isClean:e,my:t}=Un(),r=zt(),s=Wt(),n=Bt(),o,c,p,a;function d(u){return u.map(l=>(l.nodes&&(l.nodes=d(l.nodes)),delete l.source,l))}function i(u){if(u[e]=!1,u.proxyOf.nodes)for(let l of u.proxyOf.nodes)i(l)}class h extends n{append(...l){for(let m of l){let f=this.normalize(m,this.last);for(let g of f)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(l){if(super.cleanRaws(l),this.nodes)for(let m of this.nodes)m.cleanRaws(l)}each(l){if(!this.proxyOf.nodes)return;let m=this.getIterator(),f,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(f=this.indexes[m],g=l(this.proxyOf.nodes[f],f),g!==!1);)this.indexes[m]+=1;return delete this.indexes[m],g}every(l){return this.nodes.every(l)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let l=this.lastEach;return this.indexes[l]=0,l}getProxyProcessor(){return{get(l,m){return m==="proxyOf"?l:l[m]?m==="each"||typeof m=="string"&&m.startsWith("walk")?(...f)=>l[m](...f.map(g=>typeof g=="function"?(C,w)=>g(C.toProxy(),w):g)):m==="every"||m==="some"?f=>l[m]((g,...C)=>f(g.toProxy(),...C)):m==="root"?()=>l.root().toProxy():m==="nodes"?l.nodes.map(f=>f.toProxy()):m==="first"||m==="last"?l[m].toProxy():l[m]:l[m]},set(l,m,f){return l[m]===f||(l[m]=f,(m==="name"||m==="params"||m==="selector")&&l.markDirty()),!0}}}index(l){return typeof l=="number"?l:(l.proxyOf&&(l=l.proxyOf),this.proxyOf.nodes.indexOf(l))}insertAfter(l,m){let f=this.index(l),g=this.normalize(m,this.proxyOf.nodes[f]).reverse();f=this.index(l);for(let w of g)this.proxyOf.nodes.splice(f+1,0,w);let C;for(let w in this.indexes)C=this.indexes[w],f<C&&(this.indexes[w]=C+g.length);return this.markDirty(),this}insertBefore(l,m){let f=this.index(l),g=f===0?"prepend":!1,C=this.normalize(m,this.proxyOf.nodes[f],g).reverse();f=this.index(l);for(let S of C)this.proxyOf.nodes.splice(f,0,S);let w;for(let S in this.indexes)w=this.indexes[S],f<=w&&(this.indexes[S]=w+C.length);return this.markDirty(),this}normalize(l,m){if(typeof l=="string")l=d(o(l).nodes);else if(typeof l=="undefined")l=[];else if(Array.isArray(l)){l=l.slice(0);for(let g of l)g.parent&&g.parent.removeChild(g,"ignore")}else if(l.type==="root"&&this.type!=="document"){l=l.nodes.slice(0);for(let g of l)g.parent&&g.parent.removeChild(g,"ignore")}else if(l.type)l=[l];else if(l.prop){if(typeof l.value=="undefined")throw new Error("Value field is missed in node creation");typeof l.value!="string"&&(l.value=String(l.value)),l=[new r(l)]}else if(l.selector)l=[new c(l)];else if(l.name)l=[new p(l)];else if(l.text)l=[new s(l)];else throw new Error("Unknown node type in node creation");return l.map(g=>(g[t]||h.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&i(g),typeof g.raws.before=="undefined"&&m&&typeof m.raws.before!="undefined"&&(g.raws.before=m.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...l){l=l.reverse();for(let m of l){let f=this.normalize(m,this.first,"prepend").reverse();for(let g of f)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+f.length}return this.markDirty(),this}push(l){return l.parent=this,this.proxyOf.nodes.push(l),this}removeAll(){for(let l of this.proxyOf.nodes)l.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(l){l=this.index(l),this.proxyOf.nodes[l].parent=void 0,this.proxyOf.nodes.splice(l,1);let m;for(let f in this.indexes)m=this.indexes[f],m>=l&&(this.indexes[f]=m-1);return this.markDirty(),this}replaceValues(l,m,f){return f||(f=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(l,f))}),this.markDirty(),this}some(l){return this.nodes.some(l)}walk(l){return this.each((m,f)=>{let g;try{g=l(m,f)}catch(C){throw m.addToError(C)}return g!==!1&&m.walk&&(g=m.walk(l)),g})}walkAtRules(l,m){return m?l instanceof RegExp?this.walk((f,g)=>{if(f.type==="atrule"&&l.test(f.name))return m(f,g)}):this.walk((f,g)=>{if(f.type==="atrule"&&f.name===l)return m(f,g)}):(m=l,this.walk((f,g)=>{if(f.type==="atrule")return m(f,g)}))}walkComments(l){return this.walk((m,f)=>{if(m.type==="comment")return l(m,f)})}walkDecls(l,m){return m?l instanceof RegExp?this.walk((f,g)=>{if(f.type==="decl"&&l.test(f.prop))return m(f,g)}):this.walk((f,g)=>{if(f.type==="decl"&&f.prop===l)return m(f,g)}):(m=l,this.walk((f,g)=>{if(f.type==="decl")return m(f,g)}))}walkRules(l,m){return m?l instanceof RegExp?this.walk((f,g)=>{if(f.type==="rule"&&l.test(f.selector))return m(f,g)}):this.walk((f,g)=>{if(f.type==="rule"&&f.selector===l)return m(f,g)}):(m=l,this.walk((f,g)=>{if(f.type==="rule")return m(f,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=u=>{o=u},h.registerRule=u=>{c=u},h.registerAtRule=u=>{p=u},h.registerRoot=u=>{a=u},Gr=h,h.default=h,h.rebuild=u=>{u.type==="atrule"?Object.setPrototypeOf(u,p.prototype):u.type==="rule"?Object.setPrototypeOf(u,c.prototype):u.type==="decl"?Object.setPrototypeOf(u,r.prototype):u.type==="comment"?Object.setPrototypeOf(u,s.prototype):u.type==="root"&&Object.setPrototypeOf(u,a.prototype),u[t]=!0,u.nodes&&u.nodes.forEach(l=>{h.rebuild(l)})},Gr}var Yr,fi;function Bn(){if(fi)return Yr;fi=1;let e=Le(),t,r;class s extends e{constructor(o){super({type:"document",...o}),this.nodes||(this.nodes=[])}toResult(o={}){return new t(new r,this,o).stringify()}}return s.registerLazyResult=n=>{t=n},s.registerProcessor=n=>{r=n},Yr=s,s.default=s,Yr}var Xr,hi;function ao(){if(hi)return Xr;hi=1;let e={};return Xr=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},Xr}var Jr,di;function lo(){if(di)return Jr;di=1;class e{constructor(r,s={}){if(this.type="warning",this.text=r,s.node&&s.node.source){let n=s.node.rangeBy(s);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in s)this[n]=s[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 Jr=e,e.default=e,Jr}var Kr,pi;function zn(){if(pi)return Kr;pi=1;let e=lo();class t{constructor(s,n,o){this.processor=s,this.messages=[],this.root=n,this.opts=o,this.css=void 0,this.map=void 0}toString(){return this.css}warn(s,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let o=new e(s,n);return this.messages.push(o),o}warnings(){return this.messages.filter(s=>s.type==="warning")}get content(){return this.css}}return Kr=t,t.default=t,Kr}var Zr,mi;function tu(){if(mi)return Zr;mi=1;let e=39,t=34,r=92,s=47,n=10,o=32,c=12,p=9,a=13,d=91,i=93,h=40,u=41,l=123,m=125,f=59,g=42,C=58,w=64,S=/[\t\n\f\r "#'()/;[\\\]{}]/g,E=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,b=/.[\r\n"'(/\\]/,y=/[\da-f]/i;return Zr=function(x,I={}){let R=x.css.valueOf(),A=I.ignoreErrors,O,M,P,U,k,T,_,Y,H,F,ne=R.length,N=0,K=[],z=[];function ie(){return N}function se(L){throw x.error("Unclosed "+L,N)}function ae(){return z.length===0&&N>=ne}function Ce(L){if(z.length)return z.pop();if(N>=ne)return;let ee=L?L.ignoreUnclosed:!1;switch(O=R.charCodeAt(N),O){case n:case o:case p:case a:case c:{M=N;do M+=1,O=R.charCodeAt(M);while(O===o||O===n||O===p||O===a||O===c);F=["space",R.slice(N,M)],N=M-1;break}case d:case i:case l:case m:case C:case f:case u:{let j=String.fromCharCode(O);F=[j,j,N];break}case h:{if(Y=K.length?K.pop()[1]:"",H=R.charCodeAt(N+1),Y==="url"&&H!==e&&H!==t&&H!==o&&H!==n&&H!==p&&H!==c&&H!==a){M=N;do{if(T=!1,M=R.indexOf(")",M+1),M===-1)if(A||ee){M=N;break}else se("bracket");for(_=M;R.charCodeAt(_-1)===r;)_-=1,T=!T}while(T);F=["brackets",R.slice(N,M+1),N,M],N=M}else M=R.indexOf(")",N+1),U=R.slice(N,M+1),M===-1||b.test(U)?F=["(","(",N]:(F=["brackets",U,N,M],N=M);break}case e:case t:{P=O===e?"'":'"',M=N;do{if(T=!1,M=R.indexOf(P,M+1),M===-1)if(A||ee){M=N+1;break}else se("string");for(_=M;R.charCodeAt(_-1)===r;)_-=1,T=!T}while(T);F=["string",R.slice(N,M+1),N,M],N=M;break}case w:{S.lastIndex=N+1,S.test(R),S.lastIndex===0?M=R.length-1:M=S.lastIndex-2,F=["at-word",R.slice(N,M+1),N,M],N=M;break}case r:{for(M=N,k=!0;R.charCodeAt(M+1)===r;)M+=1,k=!k;if(O=R.charCodeAt(M+1),k&&O!==s&&O!==o&&O!==n&&O!==p&&O!==a&&O!==c&&(M+=1,y.test(R.charAt(M)))){for(;y.test(R.charAt(M+1));)M+=1;R.charCodeAt(M+1)===o&&(M+=1)}F=["word",R.slice(N,M+1),N,M],N=M;break}default:{O===s&&R.charCodeAt(N+1)===g?(M=R.indexOf("*/",N+2)+1,M===0&&(A||ee?M=R.length:se("comment")),F=["comment",R.slice(N,M+1),N,M],N=M):(E.lastIndex=N+1,E.test(R),E.lastIndex===0?M=R.length-1:M=E.lastIndex-2,F=["word",R.slice(N,M+1),N,M],K.push(F),N=M);break}}return N++,F}function me(L){z.push(L)}return{back:me,endOfFile:ae,nextToken:Ce,position:ie}},Zr}var Qr,gi;function $n(){if(gi)return Qr;gi=1;let e=Le();class t extends e{constructor(s){super(s),this.type="atrule"}append(...s){return this.proxyOf.nodes||(this.nodes=[]),super.append(...s)}prepend(...s){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...s)}}return Qr=t,t.default=t,e.registerAtRule(t),Qr}var en,yi;function ot(){if(yi)return en;yi=1;let e=Le(),t,r;class s extends e{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[])}normalize(o,c,p){let a=super.normalize(o);if(c){if(p==="prepend")this.nodes.length>1?c.raws.before=this.nodes[1].raws.before:delete c.raws.before;else if(this.first!==c)for(let d of a)d.raws.before=c.raws.before}return a}removeChild(o,c){let p=this.index(o);return!c&&p===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[p].raws.before),super.removeChild(o)}toResult(o={}){return new t(new r,this,o).stringify()}}return s.registerLazyResult=n=>{t=n},s.registerProcessor=n=>{r=n},en=s,s.default=s,e.registerRoot(s),en}var tn,vi;function uo(){if(vi)return tn;vi=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
52
+ `," "];return e.split(t,r)},split(t,r,s){let n=[],o="",c=!1,p=0,a=!1,d="",i=!1;for(let h of t)i?i=!1:h==="\\"?i=!0:a?h===d&&(a=!1):h==='"'||h==="'"?(a=!0,d=h):h==="("?p+=1:h===")"?p>0&&(p-=1):p===0&&r.includes(h)&&(c=!0),c?(o!==""&&n.push(o.trim()),o="",c=!1):o+=h;return(s||o!=="")&&n.push(o.trim()),n}};return tn=e,e.default=e,tn}var rn,wi;function Wn(){if(wi)return rn;wi=1;let e=Le(),t=uo();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 o=this.selector?this.selector.match(/,\s*/):null,c=o?o[0]:","+this.raw("between","beforeOpen");this.selector=n.join(c)}}return rn=r,r.default=r,e.registerRule(r),rn}var nn,bi;function ru(){if(bi)return nn;bi=1;let e=zt(),t=tu(),r=Wt(),s=$n(),n=ot(),o=Wn(),c={empty:!0,space:!0};function p(d){for(let i=d.length-1;i>=0;i--){let h=d[i],u=h[3]||h[2];if(u)return u}}class a{constructor(i){this.input=i,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}atrule(i){let h=new s;h.name=i[1].slice(1),h.name===""&&this.unnamedAtrule(h,i),this.init(h,i[2]);let u,l,m,f=!1,g=!1,C=[],w=[];for(;!this.tokenizer.endOfFile();){if(i=this.tokenizer.nextToken(),u=i[0],u==="("||u==="["?w.push(u==="("?")":"]"):u==="{"&&w.length>0?w.push("}"):u===w[w.length-1]&&w.pop(),w.length===0)if(u===";"){h.source.end=this.getPosition(i[2]),h.source.end.offset++,this.semicolon=!0;break}else if(u==="{"){g=!0;break}else if(u==="}"){if(C.length>0){for(m=C.length-1,l=C[m];l&&l[0]==="space";)l=C[--m];l&&(h.source.end=this.getPosition(l[3]||l[2]),h.source.end.offset++)}this.end(i);break}else C.push(i);else C.push(i);if(this.tokenizer.endOfFile()){f=!0;break}}h.raws.between=this.spacesAndCommentsFromEnd(C),C.length?(h.raws.afterName=this.spacesAndCommentsFromStart(C),this.raw(h,"params",C),f&&(i=C[C.length-1],h.source.end=this.getPosition(i[3]||i[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(i){let h=this.colon(i);if(h===!1)return;let u=0,l;for(let m=h-1;m>=0&&(l=i[m],!(l[0]!=="space"&&(u+=1,u===2)));m--);throw this.input.error("Missed semicolon",l[0]==="word"?l[3]+1:l[2])}colon(i){let h=0,u,l,m;for(let[f,g]of i.entries()){if(u=g,l=u[0],l==="("&&(h+=1),l===")"&&(h-=1),h===0&&l===":")if(!m)this.doubleColon(u);else{if(m[0]==="word"&&m[1]==="progid")continue;return f}m=u}return!1}comment(i){let h=new r;this.init(h,i[2]),h.source.end=this.getPosition(i[3]||i[2]),h.source.end.offset++;let u=i[1].slice(2,-2);if(/^\s*$/.test(u))h.text="",h.raws.left=u,h.raws.right="";else{let l=u.match(/^(\s*)([^]*\S)(\s*)$/);h.text=l[2],h.raws.left=l[1],h.raws.right=l[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(i,h){let u=new e;this.init(u,i[0][2]);let l=i[i.length-1];for(l[0]===";"&&(this.semicolon=!0,i.pop()),u.source.end=this.getPosition(l[3]||l[2]||p(i)),u.source.end.offset++;i[0][0]!=="word";)i.length===1&&this.unknownWord(i),u.raws.before+=i.shift()[1];for(u.source.start=this.getPosition(i[0][2]),u.prop="";i.length;){let w=i[0][0];if(w===":"||w==="space"||w==="comment")break;u.prop+=i.shift()[1]}u.raws.between="";let m;for(;i.length;)if(m=i.shift(),m[0]===":"){u.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),u.raws.between+=m[1];(u.prop[0]==="_"||u.prop[0]==="*")&&(u.raws.before+=u.prop[0],u.prop=u.prop.slice(1));let f=[],g;for(;i.length&&(g=i[0][0],!(g!=="space"&&g!=="comment"));)f.push(i.shift());this.precheckMissedSemicolon(i);for(let w=i.length-1;w>=0;w--){if(m=i[w],m[1].toLowerCase()==="!important"){u.important=!0;let S=this.stringFrom(i,w);S=this.spacesFromEnd(i)+S,S!==" !important"&&(u.raws.important=S);break}else if(m[1].toLowerCase()==="important"){let S=i.slice(0),E="";for(let b=w;b>0;b--){let y=S[b][0];if(E.trim().indexOf("!")===0&&y!=="space")break;E=S.pop()[1]+E}E.trim().indexOf("!")===0&&(u.important=!0,u.raws.important=E,i=S)}if(m[0]!=="space"&&m[0]!=="comment")break}i.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(u.raws.between+=f.map(w=>w[1]).join(""),f=[]),this.raw(u,"value",f.concat(i),h),u.value.includes(":")&&!h&&this.checkMissedSemicolon(i)}doubleColon(i){throw this.input.error("Double colon",{offset:i[2]},{offset:i[2]+i[1].length})}emptyRule(i){let h=new o;this.init(h,i[2]),h.selector="",h.raws.between="",this.current=h}end(i){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(i[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(i)}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(i){if(this.spaces+=i[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(i){let h=this.input.fromOffset(i);return{column:h.col,line:h.line,offset:i}}init(i,h){this.current.push(i),i.source={input:this.input,start:this.getPosition(h)},i.raws.before=this.spaces,this.spaces="",i.type!=="comment"&&(this.semicolon=!1)}other(i){let h=!1,u=null,l=!1,m=null,f=[],g=i[1].startsWith("--"),C=[],w=i;for(;w;){if(u=w[0],C.push(w),u==="("||u==="[")m||(m=w),f.push(u==="("?")":"]");else if(g&&l&&u==="{")m||(m=w),f.push("}");else if(f.length===0)if(u===";")if(l){this.decl(C,g);return}else break;else if(u==="{"){this.rule(C);return}else if(u==="}"){this.tokenizer.back(C.pop()),h=!0;break}else u===":"&&(l=!0);else u===f[f.length-1]&&(f.pop(),f.length===0&&(m=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(h=!0),f.length>0&&this.unclosedBracket(m),h&&l){if(!g)for(;C.length&&(w=C[C.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(C.pop());this.decl(C,g)}else this.unknownWord(C)}parse(){let i;for(;!this.tokenizer.endOfFile();)switch(i=this.tokenizer.nextToken(),i[0]){case"space":this.spaces+=i[1];break;case";":this.freeSemicolon(i);break;case"}":this.end(i);break;case"comment":this.comment(i);break;case"at-word":this.atrule(i);break;case"{":this.emptyRule(i);break;default:this.other(i);break}this.endFile()}precheckMissedSemicolon(){}raw(i,h,u,l){let m,f,g=u.length,C="",w=!0,S,E;for(let b=0;b<g;b+=1)m=u[b],f=m[0],f==="space"&&b===g-1&&!l?w=!1:f==="comment"?(E=u[b-1]?u[b-1][0]:"empty",S=u[b+1]?u[b+1][0]:"empty",!c[E]&&!c[S]?C.slice(-1)===","?w=!1:C+=m[1]:w=!1):C+=m[1];if(!w){let b=u.reduce((y,v)=>y+v[1],"");i.raws[h]={raw:b,value:C}}i[h]=C}rule(i){i.pop();let h=new o;this.init(h,i[0][2]),h.raws.between=this.spacesAndCommentsFromEnd(i),this.raw(h,"selector",i),this.current=h}spacesAndCommentsFromEnd(i){let h,u="";for(;i.length&&(h=i[i.length-1][0],!(h!=="space"&&h!=="comment"));)u=i.pop()[1]+u;return u}spacesAndCommentsFromStart(i){let h,u="";for(;i.length&&(h=i[0][0],!(h!=="space"&&h!=="comment"));)u+=i.shift()[1];return u}spacesFromEnd(i){let h,u="";for(;i.length&&(h=i[i.length-1][0],h==="space");)u=i.pop()[1]+u;return u}stringFrom(i,h){let u="";for(let l=h;l<i.length;l++)u+=i[l][1];return i.splice(h,i.length-h),u}unclosedBlock(){let i=this.current.source.start;throw this.input.error("Unclosed block",i.line,i.column)}unclosedBracket(i){throw this.input.error("Unclosed bracket",{offset:i[2]},{offset:i[2]+1})}unexpectedClose(i){throw this.input.error("Unexpected }",{offset:i[2]},{offset:i[2]+1})}unknownWord(i){throw this.input.error("Unknown word",{offset:i[0][2]},{offset:i[0][2]+i[0][1].length})}unnamedAtrule(i,h){throw this.input.error("At-rule without name",{offset:h[2]},{offset:h[2]+h[1].length})}}return nn=a,nn}var sn,Si;function qn(){if(Si)return sn;Si=1;let e=Le(),t=ru(),r=$t();function s(n,o){let c=new r(n,o),p=new t(c);try{p.parse()}catch(a){throw process.env.NODE_ENV!=="production"&&a.name==="CssSyntaxError"&&o&&o.from&&(/\.scss$/i.test(o.from)?a.message+=`
53
53
  You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(o.from)?a.message+=`
54
54
  You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(o.from)&&(a.message+=`
55
- You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),a}return p.root}return tn=s,s.default=s,e.registerParse(s),tn}var rn,wi;function ao(){if(wi)return rn;wi=1;let{isClean:e,my:t}=Ln(),r=no(),s=Ut(),n=Le(),o=Pn(),c=so(),p=Fn(),a=zn(),d=ot(),i={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},u={Once:!0,postcssPlugin:!0,prepare:!0},l=0;function m(E){return typeof E=="object"&&typeof E.then=="function"}function f(E){let b=!1,y=i[E.type];return E.type==="decl"?b=E.prop.toLowerCase():E.type==="atrule"&&(b=E.name.toLowerCase()),b&&E.append?[y,y+"-"+b,l,y+"Exit",y+"Exit-"+b]:b?[y,y+"-"+b,y+"Exit",y+"Exit-"+b]:E.append?[y,l,y+"Exit"]:[y,y+"Exit"]}function g(E){let b;return E.type==="document"?b=["Document",l,"DocumentExit"]:E.type==="root"?b=["Root",l,"RootExit"]:b=f(E),{eventIndex:0,events:b,iterator:0,node:E,visitorIndex:0,visitors:[]}}function C(E){return E[e]=!1,E.nodes&&E.nodes.forEach(b=>C(b)),E}let w={};class S{constructor(b,y,v){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 S||y instanceof p)x=C(y.root),y.map&&(typeof v.map=="undefined"&&(v.map={}),v.map.inline||(v.map.inline=!1),v.map.prev=y.map);else{let I=a;v.syntax&&(I=v.syntax.parse),v.parser&&(I=v.parser),I.parse&&(I=I.parse);try{x=I(y,v)}catch(R){this.processed=!0,this.error=R}x&&!x[t]&&n.rebuild(x)}this.result=new p(b,x,v),this.helpers={...w,postcss:w,result:this.result},this.plugins=this.processor.plugins.map(I=>typeof I=="object"&&I.prepare?{...I,...I.prepare(this.result)}:I)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(b){return this.async().catch(b)}finally(b){return this.async().then(b,b)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(b,y){let v=this.result.lastPlugin;try{if(y&&y.addToError(b),this.error=b,b.name==="CssSyntaxError"&&!b.plugin)b.plugin=v.postcssPlugin,b.setMessage();else if(v.postcssVersion&&process.env.NODE_ENV!=="production"){let x=v.postcssPlugin,I=v.postcssVersion,R=this.result.processor.version,A=I.split("."),O=R.split(".");(A[0]!==O[0]||parseInt(A[1])>parseInt(O[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+R+", but "+x+" uses "+I+". Perhaps this is the source of the error below.")}}catch(x){console&&console.error&&console.error(x)}return b}prepareVisitors(){this.listeners={};let b=(y,v,x)=>{this.listeners[v]||(this.listeners[v]=[]),this.listeners[v].push([y,x])};for(let y of this.plugins)if(typeof y=="object")for(let v in y){if(!h[v]&&/^[A-Z]/.test(v))throw new Error(`Unknown event ${v} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!u[v])if(typeof y[v]=="object")for(let x in y[v])x==="*"?b(y,v,y[v][x]):b(y,v+"-"+x.toLowerCase(),y[v][x]);else typeof y[v]=="function"&&b(y,v,y[v])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let b=0;b<this.plugins.length;b++){let y=this.plugins[b],v=this.runOnRoot(y);if(m(v))try{await v}catch(x){throw this.handleError(x)}}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];){b[e]=!0;let y=[g(b)];for(;y.length>0;){let v=this.visitTick(y);if(m(v))try{await v}catch(x){let I=y[y.length-1].node;throw this.handleError(x,I)}}}if(this.listeners.OnceExit)for(let[y,v]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(b.type==="document"){let x=b.nodes.map(I=>v(I,this.helpers));await Promise.all(x)}else await v(b,this.helpers)}catch(x){throw this.handleError(x)}}}return this.processed=!0,this.stringify()}runOnRoot(b){this.result.lastPlugin=b;try{if(typeof b=="object"&&b.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(v=>b.Once(v,this.helpers));return m(y[0])?Promise.all(y):y}return b.Once(this.result.root,this.helpers)}else if(typeof b=="function")return b(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 b=this.result.opts,y=s;b.syntax&&(y=b.syntax.stringify),b.stringifier&&(y=b.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 b of this.plugins){let y=this.runOnRoot(b);if(m(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];)b[e]=!0,this.walkSync(b);if(this.listeners.OnceExit)if(b.type==="document")for(let y of b.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,b)}return this.result}then(b,y){return process.env.NODE_ENV!=="production"&&("from"in this.opts||c("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(b,y)}toString(){return this.css}visitSync(b,y){for(let[v,x]of b){this.result.lastPlugin=v;let I;try{I=x(y,this.helpers)}catch(R){throw this.handleError(R,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(m(I))throw this.getAsyncError()}}visitTick(b){let y=b[b.length-1],{node:v,visitors:x}=y;if(v.type!=="root"&&v.type!=="document"&&!v.parent){b.pop();return}if(x.length>0&&y.visitorIndex<x.length){let[R,A]=x[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===x.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=R;try{return A(v.toProxy(),this.helpers)}catch(O){throw this.handleError(O,v)}}if(y.iterator!==0){let R=y.iterator,A;for(;A=v.nodes[v.indexes[R]];)if(v.indexes[R]+=1,!A[e]){A[e]=!0,b.push(g(A));return}y.iterator=0,delete v.indexes[R]}let I=y.events;for(;y.eventIndex<I.length;){let R=I[y.eventIndex];if(y.eventIndex+=1,R===l){v.nodes&&v.nodes.length&&(v[e]=!0,y.iterator=v.getIterator());return}else if(this.listeners[R]){y.visitors=this.listeners[R];return}}b.pop()}walkSync(b){b[e]=!0;let y=f(b);for(let v of y)if(v===l)b.nodes&&b.each(x=>{x[e]||this.walkSync(x)});else{let x=this.listeners[v];if(x&&this.visitSync(x,b.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 S.registerPostcss=E=>{w=E},rn=S,S.default=S,d.registerLazyResult(S),o.registerLazyResult(S),rn}var nn,bi;function Ql(){if(bi)return nn;bi=1;let e=no(),t=Ut(),r=so(),s=zn(),n=Fn();class o{constructor(p,a,d){a=a.toString(),this.stringified=!1,this._processor=p,this._css=a,this._opts=d,this._map=void 0;let i,h=t;this.result=new n(this._processor,i,this._opts),this.result.css=a;let u=this;Object.defineProperty(this.result,"root",{get(){return u.root}});let l=new e(h,i,this._opts,a);if(l.isMap()){let[m,f]=l.generate();m&&(this.result.css=m),f&&(this.result.map=f)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(p){return this.async().catch(p)}finally(p){return this.async().then(p,p)}sync(){if(this.error)throw this.error;return this.result}then(p,a){return process.env.NODE_ENV!=="production"&&("from"in this._opts||r("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(p,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 p,a=s;try{p=a(this._css,this._opts)}catch(d){this.error=d}if(this.error)throw this.error;return this._root=p,p}get[Symbol.toStringTag](){return"NoWorkResult"}}return nn=o,o.default=o,nn}var sn,Si;function eu(){if(Si)return sn;Si=1;let e=Ql(),t=ao(),r=Pn(),s=ot();class n{constructor(c=[]){this.version="8.4.38",this.plugins=this.normalize(c)}normalize(c){let p=[];for(let a of c)if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),typeof a=="object"&&Array.isArray(a.plugins))p=p.concat(a.plugins);else if(typeof a=="object"&&a.postcssPlugin)p.push(a);else if(typeof a=="function")p.push(a);else if(typeof a=="object"&&(a.parse||a.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(a+" is not a PostCSS plugin");return p}process(c,p={}){return!this.plugins.length&&!p.parser&&!p.stringifier&&!p.syntax?new e(this,c,p):new t(this,c,p)}use(c){return this.plugins=this.plugins.concat(this.normalize([c])),this}}return sn=n,n.default=n,s.registerProcessor(n),r.registerProcessor(n),sn}var on,Ci;function tu(){if(Ci)return on;Ci=1;let e=zt(),t=ro(),r=Wt(),s=Un(),n=$t(),o=ot(),c=Bn();function p(a,d){if(Array.isArray(a))return a.map(u=>p(u));let{inputs:i,...h}=a;if(i){d=[];for(let u of i){let l={...u,__proto__:n.prototype};l.map&&(l.map={...l.map,__proto__:t.prototype}),d.push(l)}}if(h.nodes&&(h.nodes=a.nodes.map(u=>p(u,d))),h.source){let{inputId:u,...l}=h.source;h.source=l,u!=null&&(h.source.input=d[u])}if(h.type==="root")return new o(h);if(h.type==="decl")return new e(h);if(h.type==="rule")return new c(h);if(h.type==="comment")return new r(h);if(h.type==="atrule")return new s(h);throw new Error("Unknown node type: "+a.type)}return on=p,p.default=p,on}var an,xi;function ru(){if(xi)return an;xi=1;let e=_n(),t=zt(),r=ao(),s=Le(),n=eu(),o=Ut(),c=tu(),p=Pn(),a=io(),d=Wt(),i=Un(),h=Fn(),u=$t(),l=zn(),m=oo(),f=Bn(),g=ot(),C=Bt();function w(...S){return S.length===1&&Array.isArray(S[0])&&(S=S[0]),new n(S)}return w.plugin=function(E,b){let y=!1;function v(...I){console&&console.warn&&!y&&(y=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
55
+ You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),a}return p.root}return sn=s,s.default=s,e.registerParse(s),sn}var on,Ci;function co(){if(Ci)return on;Ci=1;let{isClean:e,my:t}=Un(),r=oo(),s=Ut(),n=Le(),o=Bn(),c=ao(),p=zn(),a=qn(),d=ot(),i={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},u={Once:!0,postcssPlugin:!0,prepare:!0},l=0;function m(E){return typeof E=="object"&&typeof E.then=="function"}function f(E){let b=!1,y=i[E.type];return E.type==="decl"?b=E.prop.toLowerCase():E.type==="atrule"&&(b=E.name.toLowerCase()),b&&E.append?[y,y+"-"+b,l,y+"Exit",y+"Exit-"+b]:b?[y,y+"-"+b,y+"Exit",y+"Exit-"+b]:E.append?[y,l,y+"Exit"]:[y,y+"Exit"]}function g(E){let b;return E.type==="document"?b=["Document",l,"DocumentExit"]:E.type==="root"?b=["Root",l,"RootExit"]:b=f(E),{eventIndex:0,events:b,iterator:0,node:E,visitorIndex:0,visitors:[]}}function C(E){return E[e]=!1,E.nodes&&E.nodes.forEach(b=>C(b)),E}let w={};class S{constructor(b,y,v){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 S||y instanceof p)x=C(y.root),y.map&&(typeof v.map=="undefined"&&(v.map={}),v.map.inline||(v.map.inline=!1),v.map.prev=y.map);else{let I=a;v.syntax&&(I=v.syntax.parse),v.parser&&(I=v.parser),I.parse&&(I=I.parse);try{x=I(y,v)}catch(R){this.processed=!0,this.error=R}x&&!x[t]&&n.rebuild(x)}this.result=new p(b,x,v),this.helpers={...w,postcss:w,result:this.result},this.plugins=this.processor.plugins.map(I=>typeof I=="object"&&I.prepare?{...I,...I.prepare(this.result)}:I)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(b){return this.async().catch(b)}finally(b){return this.async().then(b,b)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(b,y){let v=this.result.lastPlugin;try{if(y&&y.addToError(b),this.error=b,b.name==="CssSyntaxError"&&!b.plugin)b.plugin=v.postcssPlugin,b.setMessage();else if(v.postcssVersion&&process.env.NODE_ENV!=="production"){let x=v.postcssPlugin,I=v.postcssVersion,R=this.result.processor.version,A=I.split("."),O=R.split(".");(A[0]!==O[0]||parseInt(A[1])>parseInt(O[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+R+", but "+x+" uses "+I+". Perhaps this is the source of the error below.")}}catch(x){console&&console.error&&console.error(x)}return b}prepareVisitors(){this.listeners={};let b=(y,v,x)=>{this.listeners[v]||(this.listeners[v]=[]),this.listeners[v].push([y,x])};for(let y of this.plugins)if(typeof y=="object")for(let v in y){if(!h[v]&&/^[A-Z]/.test(v))throw new Error(`Unknown event ${v} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!u[v])if(typeof y[v]=="object")for(let x in y[v])x==="*"?b(y,v,y[v][x]):b(y,v+"-"+x.toLowerCase(),y[v][x]);else typeof y[v]=="function"&&b(y,v,y[v])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let b=0;b<this.plugins.length;b++){let y=this.plugins[b],v=this.runOnRoot(y);if(m(v))try{await v}catch(x){throw this.handleError(x)}}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];){b[e]=!0;let y=[g(b)];for(;y.length>0;){let v=this.visitTick(y);if(m(v))try{await v}catch(x){let I=y[y.length-1].node;throw this.handleError(x,I)}}}if(this.listeners.OnceExit)for(let[y,v]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(b.type==="document"){let x=b.nodes.map(I=>v(I,this.helpers));await Promise.all(x)}else await v(b,this.helpers)}catch(x){throw this.handleError(x)}}}return this.processed=!0,this.stringify()}runOnRoot(b){this.result.lastPlugin=b;try{if(typeof b=="object"&&b.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(v=>b.Once(v,this.helpers));return m(y[0])?Promise.all(y):y}return b.Once(this.result.root,this.helpers)}else if(typeof b=="function")return b(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 b=this.result.opts,y=s;b.syntax&&(y=b.syntax.stringify),b.stringifier&&(y=b.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 b of this.plugins){let y=this.runOnRoot(b);if(m(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];)b[e]=!0,this.walkSync(b);if(this.listeners.OnceExit)if(b.type==="document")for(let y of b.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,b)}return this.result}then(b,y){return process.env.NODE_ENV!=="production"&&("from"in this.opts||c("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(b,y)}toString(){return this.css}visitSync(b,y){for(let[v,x]of b){this.result.lastPlugin=v;let I;try{I=x(y,this.helpers)}catch(R){throw this.handleError(R,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(m(I))throw this.getAsyncError()}}visitTick(b){let y=b[b.length-1],{node:v,visitors:x}=y;if(v.type!=="root"&&v.type!=="document"&&!v.parent){b.pop();return}if(x.length>0&&y.visitorIndex<x.length){let[R,A]=x[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===x.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=R;try{return A(v.toProxy(),this.helpers)}catch(O){throw this.handleError(O,v)}}if(y.iterator!==0){let R=y.iterator,A;for(;A=v.nodes[v.indexes[R]];)if(v.indexes[R]+=1,!A[e]){A[e]=!0,b.push(g(A));return}y.iterator=0,delete v.indexes[R]}let I=y.events;for(;y.eventIndex<I.length;){let R=I[y.eventIndex];if(y.eventIndex+=1,R===l){v.nodes&&v.nodes.length&&(v[e]=!0,y.iterator=v.getIterator());return}else if(this.listeners[R]){y.visitors=this.listeners[R];return}}b.pop()}walkSync(b){b[e]=!0;let y=f(b);for(let v of y)if(v===l)b.nodes&&b.each(x=>{x[e]||this.walkSync(x)});else{let x=this.listeners[v];if(x&&this.visitSync(x,b.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 S.registerPostcss=E=>{w=E},on=S,S.default=S,d.registerLazyResult(S),o.registerLazyResult(S),on}var an,xi;function nu(){if(xi)return an;xi=1;let e=oo(),t=Ut(),r=ao(),s=qn(),n=zn();class o{constructor(p,a,d){a=a.toString(),this.stringified=!1,this._processor=p,this._css=a,this._opts=d,this._map=void 0;let i,h=t;this.result=new n(this._processor,i,this._opts),this.result.css=a;let u=this;Object.defineProperty(this.result,"root",{get(){return u.root}});let l=new e(h,i,this._opts,a);if(l.isMap()){let[m,f]=l.generate();m&&(this.result.css=m),f&&(this.result.map=f)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(p){return this.async().catch(p)}finally(p){return this.async().then(p,p)}sync(){if(this.error)throw this.error;return this.result}then(p,a){return process.env.NODE_ENV!=="production"&&("from"in this._opts||r("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(p,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 p,a=s;try{p=a(this._css,this._opts)}catch(d){this.error=d}if(this.error)throw this.error;return this._root=p,p}get[Symbol.toStringTag](){return"NoWorkResult"}}return an=o,o.default=o,an}var ln,Ei;function su(){if(Ei)return ln;Ei=1;let e=nu(),t=co(),r=Bn(),s=ot();class n{constructor(c=[]){this.version="8.4.38",this.plugins=this.normalize(c)}normalize(c){let p=[];for(let a of c)if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),typeof a=="object"&&Array.isArray(a.plugins))p=p.concat(a.plugins);else if(typeof a=="object"&&a.postcssPlugin)p.push(a);else if(typeof a=="function")p.push(a);else if(typeof a=="object"&&(a.parse||a.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(a+" is not a PostCSS plugin");return p}process(c,p={}){return!this.plugins.length&&!p.parser&&!p.stringifier&&!p.syntax?new e(this,c,p):new t(this,c,p)}use(c){return this.plugins=this.plugins.concat(this.normalize([c])),this}}return ln=n,n.default=n,s.registerProcessor(n),r.registerProcessor(n),ln}var un,Mi;function iu(){if(Mi)return un;Mi=1;let e=zt(),t=io(),r=Wt(),s=$n(),n=$t(),o=ot(),c=Wn();function p(a,d){if(Array.isArray(a))return a.map(u=>p(u));let{inputs:i,...h}=a;if(i){d=[];for(let u of i){let l={...u,__proto__:n.prototype};l.map&&(l.map={...l.map,__proto__:t.prototype}),d.push(l)}}if(h.nodes&&(h.nodes=a.nodes.map(u=>p(u,d))),h.source){let{inputId:u,...l}=h.source;h.source=l,u!=null&&(h.source.input=d[u])}if(h.type==="root")return new o(h);if(h.type==="decl")return new e(h);if(h.type==="rule")return new c(h);if(h.type==="comment")return new r(h);if(h.type==="atrule")return new s(h);throw new Error("Unknown node type: "+a.type)}return un=p,p.default=p,un}var cn,Ri;function ou(){if(Ri)return cn;Ri=1;let e=Fn(),t=zt(),r=co(),s=Le(),n=su(),o=Ut(),c=iu(),p=Bn(),a=lo(),d=Wt(),i=$n(),h=zn(),u=$t(),l=qn(),m=uo(),f=Wn(),g=ot(),C=Bt();function w(...S){return S.length===1&&Array.isArray(S[0])&&(S=S[0]),new n(S)}return w.plugin=function(E,b){let y=!1;function v(...I){console&&console.warn&&!y&&(y=!0,console.warn(E+`: postcss.plugin was deprecated. Migration guide:
56
56
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(E+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
57
- https://www.w3ctech.com/topic/2226`));let R=b(...I);return R.postcssPlugin=E,R.postcssVersion=new n().version,R}let x;return Object.defineProperty(v,"postcss",{get(){return x||(x=v()),x}}),v.process=function(I,R,A){return w([v(A)]).process(I,R)},v},w.stringify=o,w.parse=l,w.fromJSON=c,w.list=m,w.comment=S=>new d(S),w.atRule=S=>new i(S),w.decl=S=>new t(S),w.rule=S=>new f(S),w.root=S=>new g(S),w.document=S=>new p(S),w.CssSyntaxError=e,w.Declaration=t,w.Container=s,w.Processor=n,w.Document=p,w.Comment=d,w.Warning=a,w.AtRule=i,w.Result=h,w.Input=u,w.Rule=f,w.Root=g,w.Node=C,r.registerPostcss(w),an=w,w.default=w,an}var nu=ru(),Q=Vl(nu);Q.stringify;Q.fromJSON;Q.plugin;Q.parse;Q.list;Q.document;Q.comment;Q.atRule;Q.rule;Q.decl;Q.root;Q.CssSyntaxError;Q.Declaration;Q.Container;Q.Processor;Q.Document;Q.Comment;Q.Warning;Q.AtRule;Q.Result;Q.Input;Q.Rule;Q.Root;Q.Node;var dn=class e{constructor(...t){pe(this,"parentElement",null),pe(this,"parentNode",null),pe(this,"ownerDocument"),pe(this,"firstChild",null),pe(this,"lastChild",null),pe(this,"previousSibling",null),pe(this,"nextSibling",null),pe(this,"ELEMENT_NODE",1),pe(this,"TEXT_NODE",3),pe(this,"nodeType"),pe(this,"nodeName"),pe(this,"RRNodeType")}get childNodes(){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 Ei={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Mi={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},bt={},lo={},su=()=>!!globalThis.Zone;function $n(e){if(bt[e])return bt[e];let t=globalThis[e],r=t.prototype,s=e in Ei?Ei[e]:void 0,n=!!(s&&s.every(p=>{var a,d;return!!((d=(a=Object.getOwnPropertyDescriptor(r,p))==null?void 0:a.get)!=null&&d.toString().includes("[native code]"))})),o=e in Mi?Mi[e]:void 0,c=!!(o&&o.every(p=>{var a;return typeof r[p]=="function"&&((a=r[p])==null?void 0:a.toString().includes("[native code]"))}));if(n&&c&&!su())return bt[e]=t.prototype,t.prototype;try{let p=document.createElement("iframe");p.style.display="none",document.body.appendChild(p);let a=p.contentWindow;if(!a)return t.prototype;let d=a[e].prototype;if(!d)return p.remove(),r;let i=navigator.userAgent;return i.includes("Safari")&&!i.includes("Chrome")?(p.classList.add("rr-block"),p.setAttribute("__rrwebUntaintedMutationObserver",""),lo[e]=()=>p.remove()):p.remove(),bt[e]=d}catch(p){return r}}var ln={};function Ie(e,t,r){var s;let n=`${e}.${String(r)}`;if(ln[n])return ln[n].call(t);let o=$n(e),c=(s=Object.getOwnPropertyDescriptor(o,r))==null?void 0:s.get;return c?(ln[n]=c,c.call(t)):t[r]}var un={};function uo(e,t,r){let s=`${e}.${String(r)}`;if(un[s])return un[s].bind(t);let o=$n(e)[r];return typeof o!="function"?t[r]:(un[s]=o,o.bind(t))}function iu(e){return Ie("Node",e,"ownerDocument")}function ou(e){return Ie("Node",e,"childNodes")}function au(e){return Ie("Node",e,"parentNode")}function lu(e){return Ie("Node",e,"parentElement")}function uu(e){return Ie("Node",e,"textContent")}function cu(e,t){return uo("Node",e,"contains")(t)}function fu(e){return uo("Node",e,"getRootNode")()}function hu(e){return!e||!("host"in e)?null:Ie("ShadowRoot",e,"host")}function du(e){return e.styleSheets}function pu(e){return!e||!("shadowRoot"in e)?null:Ie("Element",e,"shadowRoot")}function mu(e,t){return Ie("Element",e,"querySelector")(t)}function gu(e,t){return Ie("Element",e,"querySelectorAll")(t)}function co(){var e;return[$n("MutationObserver").constructor,(e=lo.MutationObserver)!=null?e:(()=>{})]}var nt=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(nt=()=>new Date().getTime());function Pe(e,t,r){try{if(!(t in e))return()=>{};let s=e[t],n=r(s);return typeof n=="function"&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:s}})),e[t]=n,()=>{e[t]=s}}catch(s){return()=>{}}}var B={ownerDocument:iu,childNodes:ou,parentNode:au,parentElement:lu,textContent:uu,contains:cu,getRootNode:fu,host:hu,styleSheets:du,shadowRoot:pu,querySelector:mu,querySelectorAll:gu,nowTimestamp:nt,mutationObserverCtor:co,patch:Pe};function le(e,t,r=document){let s={capture:!0,passive:!0};return r.addEventListener(e,t,s),()=>r.removeEventListener(e,t,s)}var ze=`Please stop import mirror directly. Instead of that,\r
57
+ https://www.w3ctech.com/topic/2226`));let R=b(...I);return R.postcssPlugin=E,R.postcssVersion=new n().version,R}let x;return Object.defineProperty(v,"postcss",{get(){return x||(x=v()),x}}),v.process=function(I,R,A){return w([v(A)]).process(I,R)},v},w.stringify=o,w.parse=l,w.fromJSON=c,w.list=m,w.comment=S=>new d(S),w.atRule=S=>new i(S),w.decl=S=>new t(S),w.rule=S=>new f(S),w.root=S=>new g(S),w.document=S=>new p(S),w.CssSyntaxError=e,w.Declaration=t,w.Container=s,w.Processor=n,w.Document=p,w.Comment=d,w.Warning=a,w.AtRule=i,w.Result=h,w.Input=u,w.Rule=f,w.Root=g,w.Node=C,r.registerPostcss(w),cn=w,w.default=w,cn}var au=ou(),Q=Xl(au);Q.stringify;Q.fromJSON;Q.plugin;Q.parse;Q.list;Q.document;Q.comment;Q.atRule;Q.rule;Q.decl;Q.root;Q.CssSyntaxError;Q.Declaration;Q.Container;Q.Processor;Q.Document;Q.Comment;Q.Warning;Q.AtRule;Q.Result;Q.Input;Q.Rule;Q.Root;Q.Node;var gn=class e{constructor(...t){pe(this,"parentElement",null),pe(this,"parentNode",null),pe(this,"ownerDocument"),pe(this,"firstChild",null),pe(this,"lastChild",null),pe(this,"previousSibling",null),pe(this,"nextSibling",null),pe(this,"ELEMENT_NODE",1),pe(this,"TEXT_NODE",3),pe(this,"nodeType"),pe(this,"nodeName"),pe(this,"RRNodeType")}get childNodes(){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 Ii={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Oi={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},bt={},fo={},lu=()=>!!globalThis.Zone;function jn(e){if(bt[e])return bt[e];let t=globalThis[e],r=t.prototype,s=e in Ii?Ii[e]:void 0,n=!!(s&&s.every(p=>{var a,d;return!!((d=(a=Object.getOwnPropertyDescriptor(r,p))==null?void 0:a.get)!=null&&d.toString().includes("[native code]"))})),o=e in Oi?Oi[e]:void 0,c=!!(o&&o.every(p=>{var a;return typeof r[p]=="function"&&((a=r[p])==null?void 0:a.toString().includes("[native code]"))}));if(n&&c&&!lu())return bt[e]=t.prototype,t.prototype;try{let p=document.createElement("iframe");p.style.display="none",document.body.appendChild(p);let a=p.contentWindow;if(!a)return t.prototype;let d=a[e].prototype;if(!d)return p.remove(),r;let i=navigator.userAgent;return i.includes("Safari")&&!i.includes("Chrome")?(p.classList.add("rr-block"),p.setAttribute("__rrwebUntaintedMutationObserver",""),fo[e]=()=>p.remove()):p.remove(),bt[e]=d}catch(p){return r}}var fn={};function Ie(e,t,r){var s;let n=`${e}.${String(r)}`;if(fn[n])return fn[n].call(t);let o=jn(e),c=(s=Object.getOwnPropertyDescriptor(o,r))==null?void 0:s.get;return c?(fn[n]=c,c.call(t)):t[r]}var hn={};function ho(e,t,r){let s=`${e}.${String(r)}`;if(hn[s])return hn[s].bind(t);let o=jn(e)[r];return typeof o!="function"?t[r]:(hn[s]=o,o.bind(t))}function uu(e){return Ie("Node",e,"ownerDocument")}function cu(e){return Ie("Node",e,"childNodes")}function fu(e){return Ie("Node",e,"parentNode")}function hu(e){return Ie("Node",e,"parentElement")}function du(e){return Ie("Node",e,"textContent")}function pu(e,t){return ho("Node",e,"contains")(t)}function mu(e){return ho("Node",e,"getRootNode")()}function gu(e){return!e||!("host"in e)?null:Ie("ShadowRoot",e,"host")}function yu(e){return e.styleSheets}function vu(e){return!e||!("shadowRoot"in e)?null:Ie("Element",e,"shadowRoot")}function wu(e,t){return Ie("Element",e,"querySelector")(t)}function bu(e,t){return Ie("Element",e,"querySelectorAll")(t)}function po(){var e;return[jn("MutationObserver").constructor,(e=fo.MutationObserver)!=null?e:(()=>{})]}var nt=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(nt=()=>new Date().getTime());function Pe(e,t,r){try{if(!(t in e))return()=>{};let s=e[t],n=r(s);return typeof n=="function"&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:s}})),e[t]=n,()=>{e[t]=s}}catch(s){return()=>{}}}var B={ownerDocument:uu,childNodes:cu,parentNode:fu,parentElement:hu,textContent:du,contains:pu,getRootNode:mu,host:gu,styleSheets:yu,shadowRoot:vu,querySelector:wu,querySelectorAll:bu,nowTimestamp:nt,mutationObserverCtor:po,patch:Pe};function le(e,t,r=document){let s={capture:!0,passive:!0};return r.addEventListener(e,t,s),()=>r.removeEventListener(e,t,s)}var ze=`Please stop import mirror directly. Instead of that,\r
58
58
  now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
59
- or you can use record.mirror to access the mirror instance during recording.`,Ri={map:{},getId(){return console.error(ze),-1},getNode(){return console.error(ze),null},removeNodeFromMap(){console.error(ze)},has(){return console.error(ze),!1},reset(){console.error(ze)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(Ri=new Proxy(Ri,{get(e,t,r){return t==="map"&&console.error(ze),Reflect.get(e,t,r)}}));function st(e,t,r={}){let s=null,n=0;return function(...o){let c=Date.now();!n&&r.leading===!1&&(n=c);let p=t-(c-n),a=this;p<=0||p>t?(s&&(clearTimeout(s),s=null),n=c,e.apply(a,o)):!s&&r.trailing!==!1&&(s=setTimeout(()=>{n=r.leading===!1?0:Date.now(),s=null,e.apply(a,o)},p))}}function qt(e,t,r,s,n=window){let o=n.Object.getOwnPropertyDescriptor(e,t);return n.Object.defineProperty(e,t,s?r:{set(c){setTimeout(()=>{r.set.call(this,c)},0),o&&o.set&&o.set.call(this,c)}}),()=>qt(e,t,o||{},!0)}function fo(e){var t,r,s,n;let o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:o.documentElement.scrollLeft||(o==null?void 0:o.body)&&((t=B.parentElement(o.body))==null?void 0:t.scrollLeft)||((r=o==null?void 0:o.body)==null?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:(o==null?void 0:o.documentElement.scrollTop)||(o==null?void 0:o.body)&&((s=B.parentElement(o.body))==null?void 0:s.scrollTop)||((n=o==null?void 0:o.body)==null?void 0:n.scrollTop)||0}}function ho(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function po(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function mo(e){return e?e.nodeType===e.ELEMENT_NODE?e:B.parentElement(e):null}function ue(e,t,r,s){if(!e)return!1;let n=mo(e);if(!n)return!1;try{if(typeof t=="string"){if(n.classList.contains(t)||s&&n.closest("."+t)!==null)return!0}else if(Nt(n,t,s))return!0}catch(o){}return!!(r&&(n.matches(r)||s&&n.closest(r)!==null))}function yu(e,t){return t.getId(e)!==-1}function cn(e,t,r){return e.tagName==="TITLE"&&r.headTitleMutations?!0:t.getId(e)===rt}function go(e,t){if(Qe(e))return!1;let r=t.getId(e);if(!t.has(r))return!0;let s=B.parentNode(e);return s&&s.nodeType===e.DOCUMENT_NODE?!1:s?go(s,t):!0}function pn(e){return!!e.changedTouches}function vu(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 yo(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function vo(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function mn(e){return e?e instanceof dn&&"shadowRoot"in e?!!e.shadowRoot:!!B.shadowRoot(e):!1}var gn=class{constructor(){T(this,"id",1),T(this,"styleIDMap",new WeakMap),T(this,"idStyleMap",new Map)}getId(t){var r;return(r=this.styleIDMap.get(t))!=null?r:-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let s;return r===void 0?s=this.id++:s=r,this.styleIDMap.set(t,s),this.idStyleMap.set(s,t),s}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 wo(e){var t;let r=null;return"getRootNode"in e&&((t=B.getRootNode(e))==null?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&B.host(B.getRootNode(e))&&(r=B.host(B.getRootNode(e))),r}function wu(e){let t=e,r;for(;r=wo(t);)t=r;return t}function bu(e){let t=B.ownerDocument(e);if(!t)return!1;let r=wu(e);return B.contains(t,r)}function bo(e){let t=B.ownerDocument(e);return t?B.contains(t,e)||bu(e):!1}var q=(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))(q||{}),$=(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))($||{}),fe=(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))(fe||{}),Me=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Me||{}),Ve=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Ve||{}),$e=(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))($e||{});var So=(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))(So||{});function Ii(e){return"__ln"in e}var yn=class{constructor(){T(this,"length",0),T(this,"head",null),T(this,"tail",null)}get(t){if(t>=this.length)throw new Error("Position outside of list range");let r=this.head;for(let s=0;s<t;s++)r=(r==null?void 0:r.next)||null;return r}addNode(t){let r={value:t,previous:null,next:null};if(t.__ln=r,t.previousSibling&&Ii(t.previousSibling)){let s=t.previousSibling.__ln.next;r.next=s,r.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=r,s&&(s.previous=r)}else if(t.nextSibling&&Ii(t.nextSibling)&&t.nextSibling.__ln.previous){let s=t.nextSibling.__ln.previous;r.previous=s,r.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=r,s&&(s.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++}removeNode(t){let r=t.__ln;this.head&&(r.previous?(r.previous.next=r.next,r.next?r.next.previous=r.previous:this.tail=r.previous):(this.head=r.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}},Oi=(e,t)=>`${e}@${t}`,vn=class{constructor(){T(this,"frozen",!1),T(this,"locked",!1),T(this,"texts",[]),T(this,"attributes",[]),T(this,"attributeMap",new WeakMap),T(this,"removes",[]),T(this,"mapRemoves",[]),T(this,"movedMap",{}),T(this,"addedSet",new Set),T(this,"movedSet",new Set),T(this,"droppedSet",new Set),T(this,"removesSubTreeCache",new Set),T(this,"mutationCb"),T(this,"blockClass"),T(this,"blockSelector"),T(this,"maskTextClass"),T(this,"maskTextSelector"),T(this,"inlineStylesheet"),T(this,"maskInputOptions"),T(this,"maskTextFn"),T(this,"maskInputFn"),T(this,"keepIframeSrcFn"),T(this,"recordCanvas"),T(this,"inlineImages"),T(this,"slimDOMOptions"),T(this,"dataURLOptions"),T(this,"doc"),T(this,"mirror"),T(this,"iframeManager"),T(this,"stylesheetManager"),T(this,"shadowDomManager"),T(this,"canvasManager"),T(this,"processedNodeManager"),T(this,"unattachedDoc"),T(this,"processMutations",t=>{t.forEach(this.processMutation),this.emit()}),T(this,"emit",()=>{if(this.frozen||this.locked)return;let t=[],r=new Set,s=new yn,n=a=>{let d=a,i=rt;for(;i===rt;)d=d&&d.nextSibling,i=d&&this.mirror.getId(d);return i},o=a=>{let d=B.parentNode(a);if(!d||!bo(a))return;let i=!1;if(a.nodeType===Node.TEXT_NODE){let m=d.tagName;if(m==="TEXTAREA")return;m==="STYLE"&&this.addedSet.has(d)&&(i=!0)}let h=Qe(d)?this.mirror.getId(wo(a)):this.mirror.getId(d),u=n(a);if(h===-1||u===-1)return s.addNode(a);let l=qe(a,{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:m=>{yo(m,this.mirror)&&this.iframeManager.addIframe(m),vo(m,this.mirror)&&this.stylesheetManager.trackLinkElement(m),mn(a)&&this.shadowDomManager.addShadowRoot(B.shadowRoot(a),this.doc)},onIframeLoad:(m,f)=>{this.iframeManager.attachIframe(m,f),this.shadowDomManager.observeAttachShadow(m)},onStylesheetLoad:(m,f)=>{this.stylesheetManager.attachLinkElement(m,f)},cssCaptured:i});l&&(t.push({parentId:h,nextId:u,node:l}),r.add(l.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let a of this.movedSet)Ni(this.removesSubTreeCache,a,this.mirror)&&!this.movedSet.has(B.parentNode(a))||o(a);for(let a of this.addedSet)!Ai(this.droppedSet,a)&&!Ni(this.removesSubTreeCache,a,this.mirror)||Ai(this.movedSet,a)?o(a):this.droppedSet.add(a);let c=null;for(;s.length;){let a=null;if(c){let d=this.mirror.getId(B.parentNode(c.value)),i=n(c.value);d!==-1&&i!==-1&&(a=c)}if(!a){let d=s.tail;for(;d;){let i=d;if(d=d.previous,i){let h=this.mirror.getId(B.parentNode(i.value));if(n(i.value)===-1)continue;if(h!==-1){a=i;break}else{let l=i.value,m=B.parentNode(l);if(m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let f=B.host(m);if(this.mirror.getId(f)!==-1){a=i;break}}}}}}if(!a){for(;s.head;)s.removeNode(s.head.value);break}c=a.previous,s.removeNode(a.value),o(a.value)}let p={texts:this.texts.map(a=>{let d=a.node,i=B.parentNode(d);return i&&i.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(i),{id:this.mirror.getId(d),value:a.value}}).filter(a=>!r.has(a.id)).filter(a=>this.mirror.has(a.id)),attributes:this.attributes.map(a=>{let{attributes:d}=a;if(typeof d.style=="string"){let i=JSON.stringify(a.styleDiff),h=JSON.stringify(a._unchangedStyles);i.length<d.style.length&&(i+h).split("var(").length===d.style.split("var(").length&&(d.style=a.styleDiff)}return{id:this.mirror.getId(a.node),attributes:d}}).filter(a=>!r.has(a.id)).filter(a=>this.mirror.has(a.id)),removes:this.removes,adds:t};!p.texts.length&&!p.attributes.length&&!p.removes.length&&!p.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(p))}),T(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 s=Array.from(B.childNodes(t),n=>B.textContent(n)||"").join("");r.attributes.value=Rt({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:It(t),value:s,maskInputFn:this.maskInputFn})}),T(this,"processMutation",t=>{if(!cn(t.target,this.mirror,this.slimDOMOptions))switch(t.type){case"characterData":{let r=B.textContent(t.target);!ue(t.target,this.blockClass,this.blockSelector,!1)&&r!==t.oldValue&&this.texts.push({value:Hi(t.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,mo(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{let r=t.target,s=t.attributeName,n=t.target.getAttribute(s);if(s==="value"){let c=It(r);n=Rt({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:c,value:n,maskInputFn:this.maskInputFn})}if(ue(t.target,this.blockClass,this.blockSelector,!1)||n===t.oldValue)return;let o=this.attributeMap.get(t.target);if(r.tagName==="IFRAME"&&s==="src"&&!this.keepIframeSrcFn(n))if(!r.contentDocument)s="rr_src";else return;if(o||(o={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(t.target,o)),s==="type"&&r.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!Vi(r.tagName,s))if(o.attributes[s]=ji(this.doc,ke(r.tagName),ke(s),n),s==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(p){this.unattachedDoc=this.doc}let c=this.unattachedDoc.createElement("span");t.oldValue&&c.setAttribute("style",t.oldValue);for(let p of Array.from(r.style)){let a=r.style.getPropertyValue(p),d=r.style.getPropertyPriority(p);a!==c.style.getPropertyValue(p)||d!==c.style.getPropertyPriority(p)?d===""?o.styleDiff[p]=a:o.styleDiff[p]=[a,d]:o._unchangedStyles[p]=[a,d]}for(let p of Array.from(c.style))r.style.getPropertyValue(p)===""&&(o.styleDiff[p]=!1)}else s==="open"&&r.tagName==="DIALOG"&&(r.matches("dialog:modal")?o.attributes.rr_open_mode="modal":o.attributes.rr_open_mode="non-modal");break}case"childList":{if(ue(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 s=this.mirror.getId(r),n=Qe(t.target)?this.mirror.getId(B.host(t.target)):this.mirror.getId(t.target);ue(t.target,this.blockClass,this.blockSelector,!1)||cn(r,this.mirror,this.slimDOMOptions)||!yu(r,this.mirror)||(this.addedSet.has(r)?(wn(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&s===-1||go(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[Oi(s,n)]?wn(this.movedSet,r):(this.removes.push({parentId:n,id:s,isShadow:Qe(t.target)&&et(t.target)?!0:void 0}),Su(r,this.removesSubTreeCache))),this.mapRemoves.push(r))});break}}}),T(this,"genAdds",(t,r)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(cn(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let s=null;r&&this.mirror.hasNode(r)&&(s=this.mirror.getId(r)),s&&s!==-1&&(this.movedMap[Oi(this.mirror.getId(t),s)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);ue(t,this.blockClass,this.blockSelector,!1)||(B.childNodes(t).forEach(s=>this.genAdds(s)),mn(t)&&B.childNodes(B.shadowRoot(t)).forEach(s=>{this.processedNodeManager.add(s,this),this.genAdds(s,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 wn(e,t){e.delete(t),B.childNodes(t).forEach(r=>wn(e,r))}function Su(e,t){let r=[e];for(;r.length;){let s=r.pop();t.has(s)||(t.add(s),B.childNodes(s).forEach(n=>r.push(n)))}}function Ni(e,t,r){return e.size===0?!1:Cu(e,t)}function Cu(e,t,r){let s=B.parentNode(t);return s?e.has(s):!1}function Ai(e,t){return e.size===0?!1:Co(e,t)}function Co(e,t){let r=B.parentNode(t);return r?e.has(r)?!0:Co(e,r):!1}var tt;function xu(e){tt=e}function Eu(){tt=void 0}var W=e=>tt?(...r)=>{try{return e(...r)}catch(s){if(tt&&tt(s)===!0)return;throw s}}:e,De=[];function at(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(t){}return e&&e.target}function xo(e,t){let r=new vn;De.push(r),r.init(e);let[s,n]=co(),o=new s(W(r.processMutations.bind(r)));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),[o,n]}function Mu({mousemoveCb:e,sampling:t,doc:r,mirror:s}){if(t.mousemove===!1)return()=>{};let n=typeof t.mousemove=="number"?t.mousemove:50,o=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500,c=[],p,a=st(W(h=>{let u=Date.now()-p;e(c.map(l=>(l.timeOffset-=u,l)),h),c=[],p=null}),o),d=W(st(W(h=>{let u=at(h),{clientX:l,clientY:m}=pn(h)?h.changedTouches[0]:h;p||(p=nt()),c.push({x:l,y:m,id:s.getId(u),timeOffset:nt()-p}),a(typeof DragEvent!="undefined"&&h instanceof DragEvent?$.Drag:h instanceof MouseEvent?$.MouseMove:$.TouchMove)}),n,{trailing:!1})),i=[le("mousemove",d,r),le("touchmove",d,r),le("drag",d,r)];return W(()=>{i.forEach(h=>h())})}function Ru({mouseInteractionCb:e,doc:t,mirror:r,blockClass:s,blockSelector:n,sampling:o}){if(o.mouseInteraction===!1)return()=>{};let c=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,p=[],a=null,d=i=>h=>{let u=at(h);if(ue(u,s,n,!0))return;let l=null,m=i;if("pointerType"in h){switch(h.pointerType){case"mouse":l=Me.Mouse;break;case"touch":l=Me.Touch;break;case"pen":l=Me.Pen;break}l===Me.Touch?fe[i]===fe.MouseDown?m="TouchStart":fe[i]===fe.MouseUp&&(m="TouchEnd"):Me.Pen}else pn(h)&&(l=Me.Touch);l!==null?(a=l,(m.startsWith("Touch")&&l===Me.Touch||m.startsWith("Mouse")&&l===Me.Mouse)&&(l=null)):fe[i]===fe.Click&&(l=a,a=null);let f=pn(h)?h.changedTouches[0]:h;if(!f)return;let g=r.getId(u),{clientX:C,clientY:w}=f;W(e)({type:fe[m],id:g,x:C,y:w,...l!==null&&{pointerType:l}})};return Object.keys(fe).filter(i=>Number.isNaN(Number(i))&&!i.endsWith("_Departed")&&c[i]!==!1).forEach(i=>{let h=ke(i),u=d(i);if(window.PointerEvent)switch(fe[i]){case fe.MouseDown:case fe.MouseUp:h=h.replace("mouse","pointer");break;case fe.TouchStart:case fe.TouchEnd:return}p.push(le(h,u,t))}),W(()=>{p.forEach(i=>i())})}function Eo({scrollCb:e,doc:t,mirror:r,blockClass:s,blockSelector:n,sampling:o}){let c=W(st(W(p=>{let a=at(p);if(!a||ue(a,s,n,!0))return;let d=r.getId(a);if(a===t&&t.defaultView){let i=fo(t.defaultView);e({id:d,x:i.left,y:i.top})}else e({id:d,x:a.scrollLeft,y:a.scrollTop})}),o.scroll||100));return le("scroll",c,t)}function Iu({viewportResizeCb:e},{win:t}){let r=-1,s=-1,n=W(st(W(()=>{let o=ho(),c=po();(r!==o||s!==c)&&(e({width:Number(c),height:Number(o)}),r=o,s=c)}),200));return le("resize",n,t)}var Ou=["INPUT","TEXTAREA","SELECT"],Ti=new WeakMap;function Nu({inputCb:e,doc:t,mirror:r,blockClass:s,blockSelector:n,ignoreClass:o,ignoreSelector:c,maskInputOptions:p,maskInputFn:a,sampling:d,userTriggeredOnInput:i}){function h(w){let S=at(w),E=w.isTrusted,b=S&&S.tagName;if(S&&b==="OPTION"&&(S=B.parentElement(S)),!S||!b||Ou.indexOf(b)<0||ue(S,s,n,!0)||S.classList.contains(o)||c&&S.matches(c))return;let y=S.value,v=!1,x=It(S)||"";x==="radio"||x==="checkbox"?v=S.checked:(p[b.toLowerCase()]||p[x])&&(y=Rt({element:S,maskInputOptions:p,tagName:b,type:x,value:y,maskInputFn:a})),u(S,i?{text:y,isChecked:v,userTriggered:E}:{text:y,isChecked:v});let I=S.name;x==="radio"&&I&&v&&t.querySelectorAll(`input[type="radio"][name="${I}"]`).forEach(R=>{if(R!==S){let A=R.value;u(R,i?{text:A,isChecked:!v,userTriggered:!1}:{text:A,isChecked:!v})}})}function u(w,S){let E=Ti.get(w);if(!E||E.text!==S.text||E.isChecked!==S.isChecked){Ti.set(w,S);let b=r.getId(w);W(e)({...S,id:b})}}let m=(d.input==="last"?["change"]:["input","change"]).map(w=>le(w,W(h),t)),f=t.defaultView;if(!f)return()=>{m.forEach(w=>w())};let g=f.Object.getOwnPropertyDescriptor(f.HTMLInputElement.prototype,"value"),C=[[f.HTMLInputElement.prototype,"value"],[f.HTMLInputElement.prototype,"checked"],[f.HTMLSelectElement.prototype,"value"],[f.HTMLTextAreaElement.prototype,"value"],[f.HTMLSelectElement.prototype,"selectedIndex"],[f.HTMLOptionElement.prototype,"selected"]];return g&&g.set&&m.push(...C.map(w=>qt(w[0],w[1],{set(){W(h)({target:this,isTrusted:!1})}},!1,f))),W(()=>{m.forEach(w=>w())})}function At(e){let t=[];function r(s,n){if(St("CSSGroupingRule")&&s.parentRule instanceof CSSGroupingRule||St("CSSMediaRule")&&s.parentRule instanceof CSSMediaRule||St("CSSSupportsRule")&&s.parentRule instanceof CSSSupportsRule||St("CSSConditionRule")&&s.parentRule instanceof CSSConditionRule){let c=Array.from(s.parentRule.cssRules).indexOf(s);return n.unshift(c),r(s.parentRule,n)}else if(s.parentStyleSheet){let c=Array.from(s.parentStyleSheet.cssRules).indexOf(s);n.unshift(c)}return n}return r(e,t)}function Ne(e,t,r){let s,n;return e?(e.ownerNode?s=t.getId(e.ownerNode):n=r.getId(e),{styleId:n,id:s}):{}}function Au({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:s}){if(!s.CSSStyleSheet||!s.CSSStyleSheet.prototype)return()=>{};let n=s.CSSStyleSheet.prototype.insertRule;s.CSSStyleSheet.prototype.insertRule=new Proxy(n,{apply:W((i,h,u)=>{let[l,m]=u,{id:f,styleId:g}=Ne(h,t,r.styleMirror);return(f&&f!==-1||g&&g!==-1)&&e({id:f,styleId:g,adds:[{rule:l,index:m}]}),i.apply(h,u)})}),s.CSSStyleSheet.prototype.addRule=function(i,h,u=this.cssRules.length){let l=`${i} { ${h} }`;return s.CSSStyleSheet.prototype.insertRule.apply(this,[l,u])};let o=s.CSSStyleSheet.prototype.deleteRule;s.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:W((i,h,u)=>{let[l]=u,{id:m,styleId:f}=Ne(h,t,r.styleMirror);return(m&&m!==-1||f&&f!==-1)&&e({id:m,styleId:f,removes:[{index:l}]}),i.apply(h,u)})}),s.CSSStyleSheet.prototype.removeRule=function(i){return s.CSSStyleSheet.prototype.deleteRule.apply(this,[i])};let c;s.CSSStyleSheet.prototype.replace&&(c=s.CSSStyleSheet.prototype.replace,s.CSSStyleSheet.prototype.replace=new Proxy(c,{apply:W((i,h,u)=>{let[l]=u,{id:m,styleId:f}=Ne(h,t,r.styleMirror);return(m&&m!==-1||f&&f!==-1)&&e({id:m,styleId:f,replace:l}),i.apply(h,u)})}));let p;s.CSSStyleSheet.prototype.replaceSync&&(p=s.CSSStyleSheet.prototype.replaceSync,s.CSSStyleSheet.prototype.replaceSync=new Proxy(p,{apply:W((i,h,u)=>{let[l]=u,{id:m,styleId:f}=Ne(h,t,r.styleMirror);return(m&&m!==-1||f&&f!==-1)&&e({id:m,styleId:f,replaceSync:l}),i.apply(h,u)})}));let a={};Ct("CSSGroupingRule")?a.CSSGroupingRule=s.CSSGroupingRule:(Ct("CSSMediaRule")&&(a.CSSMediaRule=s.CSSMediaRule),Ct("CSSConditionRule")&&(a.CSSConditionRule=s.CSSConditionRule),Ct("CSSSupportsRule")&&(a.CSSSupportsRule=s.CSSSupportsRule));let d={};return Object.entries(a).forEach(([i,h])=>{d[i]={insertRule:h.prototype.insertRule,deleteRule:h.prototype.deleteRule},h.prototype.insertRule=new Proxy(d[i].insertRule,{apply:W((u,l,m)=>{let[f,g]=m,{id:C,styleId:w}=Ne(l.parentStyleSheet,t,r.styleMirror);return(C&&C!==-1||w&&w!==-1)&&e({id:C,styleId:w,adds:[{rule:f,index:[...At(l),g||0]}]}),u.apply(l,m)})}),h.prototype.deleteRule=new Proxy(d[i].deleteRule,{apply:W((u,l,m)=>{let[f]=m,{id:g,styleId:C}=Ne(l.parentStyleSheet,t,r.styleMirror);return(g&&g!==-1||C&&C!==-1)&&e({id:g,styleId:C,removes:[{index:[...At(l),f]}]}),u.apply(l,m)})})}),W(()=>{s.CSSStyleSheet.prototype.insertRule=n,s.CSSStyleSheet.prototype.deleteRule=o,c&&(s.CSSStyleSheet.prototype.replace=c),p&&(s.CSSStyleSheet.prototype.replaceSync=p),Object.entries(a).forEach(([i,h])=>{h.prototype.insertRule=d[i].insertRule,h.prototype.deleteRule=d[i].deleteRule})})}function Mo({mirror:e,stylesheetManager:t},r){var s,n,o;let c=null;r.nodeName==="#document"?c=e.getId(r):c=e.getId(B.host(r));let p=r.nodeName==="#document"?(s=r.defaultView)==null?void 0:s.Document:(o=(n=r.ownerDocument)==null?void 0:n.defaultView)==null?void 0:o.ShadowRoot,a=p!=null&&p.prototype?Object.getOwnPropertyDescriptor(p==null?void 0:p.prototype,"adoptedStyleSheets"):void 0;return c===null||c===-1||!p||!a?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){var d;return(d=a.get)==null?void 0:d.call(this)},set(d){var i;let h=(i=a.set)==null?void 0:i.call(this,d);if(c!==null&&c!==-1)try{t.adoptStyleSheets(d,c)}catch(u){}return h}}),W(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function Tu({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:s},{win:n}){let o=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:W((p,a,d)=>{var i;let[h,u,l]=d;if(r.has(h))return o.apply(a,[h,u,l]);let{id:m,styleId:f}=Ne((i=a.parentRule)==null?void 0:i.parentStyleSheet,t,s.styleMirror);return(m&&m!==-1||f&&f!==-1)&&e({id:m,styleId:f,set:{property:h,value:u,priority:l},index:At(a.parentRule)}),p.apply(a,d)})});let c=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:W((p,a,d)=>{var i;let[h]=d;if(r.has(h))return c.apply(a,[h]);let{id:u,styleId:l}=Ne((i=a.parentRule)==null?void 0:i.parentStyleSheet,t,s.styleMirror);return(u&&u!==-1||l&&l!==-1)&&e({id:u,styleId:l,remove:{property:h},index:At(a.parentRule)}),p.apply(a,d)})}),W(()=>{n.CSSStyleDeclaration.prototype.setProperty=o,n.CSSStyleDeclaration.prototype.removeProperty=c})}function Du({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:s,sampling:n,doc:o}){let c=W(a=>st(W(d=>{let i=at(d);if(!i||ue(i,t,r,!0))return;let{currentTime:h,volume:u,muted:l,playbackRate:m,loop:f}=i;e({type:a,id:s.getId(i),currentTime:h,volume:u,muted:l,playbackRate:m,loop:f})}),n.media||500)),p=[le("play",c($e.Play),o),le("pause",c($e.Pause),o),le("seeked",c($e.Seeked),o),le("volumechange",c($e.VolumeChange),o),le("ratechange",c($e.RateChange),o)];return W(()=>{p.forEach(a=>a())})}function ku({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let s=[],n=new WeakMap,o=r.FontFace;r.FontFace=function(a,d,i){let h=new o(a,d,i);return n.set(h,{family:a,buffer:typeof d!="string",descriptors:i,fontSource:typeof d=="string"?d:JSON.stringify(Array.from(new Uint8Array(d)))}),h};let c=Pe(t.fonts,"add",function(p){return function(a){return setTimeout(W(()=>{let d=n.get(a);d&&(e(d),n.delete(a))}),0),p.apply(this,[a])}});return s.push(()=>{r.FontFace=o}),s.push(c),W(()=>{s.forEach(p=>p())})}function _u(e){let{doc:t,mirror:r,blockClass:s,blockSelector:n,selectionCb:o}=e,c=!0,p=W(()=>{let a=t.getSelection();if(!a||c&&(a!=null&&a.isCollapsed))return;c=a.isCollapsed||!1;let d=[],i=a.rangeCount||0;for(let h=0;h<i;h++){let u=a.getRangeAt(h),{startContainer:l,startOffset:m,endContainer:f,endOffset:g}=u;ue(l,s,n,!0)||ue(f,s,n,!0)||d.push({start:r.getId(l),startOffset:m,end:r.getId(f),endOffset:g})}o({ranges:d})});return p(),le("selectionchange",p)}function Lu({doc:e,customElementCb:t}){let r=e.defaultView;return!r||!r.customElements?()=>{}:Pe(r.customElements,"define",function(n){return function(o,c,p){try{t({define:{name:o}})}catch(a){console.warn(`Custom element callback failed for ${o}`)}return n.apply(this,[o,c,p])}})}function Pu(e,t){let{mutationCb:r,mousemoveCb:s,mouseInteractionCb:n,scrollCb:o,viewportResizeCb:c,inputCb:p,mediaInteractionCb:a,styleSheetRuleCb:d,styleDeclarationCb:i,canvasMutationCb:h,fontCb:u,selectionCb:l,customElementCb:m}=e;e.mutationCb=(...f)=>{t.mutation&&t.mutation(...f),r(...f)},e.mousemoveCb=(...f)=>{t.mousemove&&t.mousemove(...f),s(...f)},e.mouseInteractionCb=(...f)=>{t.mouseInteraction&&t.mouseInteraction(...f),n(...f)},e.scrollCb=(...f)=>{t.scroll&&t.scroll(...f),o(...f)},e.viewportResizeCb=(...f)=>{t.viewportResize&&t.viewportResize(...f),c(...f)},e.inputCb=(...f)=>{t.input&&t.input(...f),p(...f)},e.mediaInteractionCb=(...f)=>{t.mediaInteaction&&t.mediaInteaction(...f),a(...f)},e.styleSheetRuleCb=(...f)=>{t.styleSheetRule&&t.styleSheetRule(...f),d(...f)},e.styleDeclarationCb=(...f)=>{t.styleDeclaration&&t.styleDeclaration(...f),i(...f)},e.canvasMutationCb=(...f)=>{t.canvasMutation&&t.canvasMutation(...f),h(...f)},e.fontCb=(...f)=>{t.font&&t.font(...f),u(...f)},e.selectionCb=(...f)=>{t.selection&&t.selection(...f),l(...f)},e.customElementCb=(...f)=>{t.customElement&&t.customElement(...f),m(...f)}}function Fu(e,t={}){let r=e.doc.defaultView;if(!r)return()=>{};Pu(e,t);let s,n=()=>{};e.recordDOM&&([s,n]=xo(e,e.doc));let o=Mu(e),c=Ru(e),p=Eo(e),a=Iu(e,{win:r}),d=Nu(e),i=Du(e),h=()=>{},u=()=>{},l=()=>{},m=()=>{};e.recordDOM&&(h=Au(e,{win:r}),u=Mo(e,e.doc),l=Tu(e,{win:r}),e.collectFonts&&(m=ku(e)));let f=_u(e),g=Lu(e),C=[];for(let w of e.plugins)C.push(w.observer(w.callback,r,w.options));return W(()=>{De.forEach(w=>w.reset()),s==null||s.disconnect(),n(),o(),c(),p(),a(),d(),i(),h(),u(),l(),m(),f(),g(),C.forEach(w=>w())})}function St(e){return typeof window[e]!="undefined"}function Ct(e){return!!(typeof window[e]!="undefined"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var Tt=class{constructor(t){T(this,"iframeIdToRemoteIdMap",new WeakMap),T(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=t}getId(t,r,s,n){let o=s||this.getIdToRemoteIdMap(t),c=n||this.getRemoteIdToIdMap(t),p=o.get(r);return p||(p=this.generateIdFn(),o.set(r,p),c.set(p,r)),p}getIds(t,r){let s=this.getIdToRemoteIdMap(t),n=this.getRemoteIdToIdMap(t);return r.map(o=>this.getId(t,o,s,n))}getRemoteId(t,r,s){let n=s||this.getRemoteIdToIdMap(t);if(typeof r!="number")return r;let o=n.get(r);return o||-1}getRemoteIds(t,r){let s=this.getRemoteIdToIdMap(t);return r.map(n=>this.getRemoteId(t,n,s))}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}},bn=class{constructor(t){T(this,"iframes",new WeakMap),T(this,"crossOriginIframeMap",new WeakMap),T(this,"crossOriginIframeMirror",new Tt(qi)),T(this,"crossOriginIframeStyleMirror"),T(this,"crossOriginIframeRootIdMap",new WeakMap),T(this,"mirror"),T(this,"mutationCb"),T(this,"wrappedEmit"),T(this,"loadListener"),T(this,"stylesheetManager"),T(this,"recordCrossOriginIframes"),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Tt(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 s,n;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((s=t.contentWindow)==null||s.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 o=this.transformCrossOriginEvent(n,r.data.event);o&&this.wrappedEmit(o,r.data.isCheckout)}transformCrossOriginEvent(t,r){var s;switch(r.type){case q.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:q.IncrementalSnapshot,data:{source:$.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case q.Meta:case q.Load:case q.DomContentLoaded:return!1;case q.Plugin:return r;case q.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case q.IncrementalSnapshot:switch(r.data.source){case $.Mutation:return r.data.adds.forEach(n=>{this.replaceIds(n,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(n.node,t);let o=this.crossOriginIframeRootIdMap.get(t);o&&this.patchRootIdOnNode(n.node,o)}),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 $.Drag:case $.TouchMove:case $.MouseMove:return r.data.positions.forEach(n=>{this.replaceIds(n,t,["id"])}),r;case $.ViewportResize:return!1;case $.MediaInteraction:case $.MouseInteraction:case $.Scroll:case $.CanvasMutation:case $.Input:return this.replaceIds(r.data,t,["id"]),r;case $.StyleSheetRule:case $.StyleDeclaration:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleId"]),r;case $.Font:return r;case $.Selection:return r.data.ranges.forEach(n=>{this.replaceIds(n,t,["start","end"])}),r;case $.AdoptedStyleSheet:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleIds"]),(s=r.data.styles)==null||s.forEach(n=>{this.replaceStyleIds(n,t,["styleId"])}),r}}return!1}replace(t,r,s,n){for(let o of n)!Array.isArray(r[o])&&typeof r[o]!="number"||(Array.isArray(r[o])?r[o]=t.getIds(s,r[o]):r[o]=t.getId(s,r[o]));return r}replaceIds(t,r,s){return this.replace(this.crossOriginIframeMirror,t,r,s)}replaceStyleIds(t,r,s){return this.replace(this.crossOriginIframeStyleMirror,t,r,s)}replaceIdOnNode(t,r){this.replaceIds(t,r,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(s=>{this.replaceIdOnNode(s,r)})}patchRootIdOnNode(t,r){t.type!==So.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(s=>{this.patchRootIdOnNode(s,r)})}},Sn=class{constructor(t){T(this,"shadowDoms",new WeakSet),T(this,"mutationCb"),T(this,"scrollCb"),T(this,"bypassOptions"),T(this,"mirror"),T(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(!et(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);let[s]=xo({...this.bypassOptions,doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>s.disconnect()),this.restoreHandlers.push(Eo({...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(B.host(t))),this.restoreHandlers.push(Mo({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 s=this;this.restoreHandlers.push(Pe(t.prototype,"attachShadow",function(n){return function(o){let c=n.call(this,o),p=B.shadowRoot(this);return p&&bo(this)&&s.addShadowRoot(p,r),c}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch(r){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}},je="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Uu=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(Ze=0;Ze<je.length;Ze++)Uu[je.charCodeAt(Ze)]=Ze;var Ze,Bu=function(e){var t=new Uint8Array(e),r,s=t.length,n="";for(r=0;r<s;r+=3)n+=je[t[r]>>2],n+=je[(t[r]&3)<<4|t[r+1]>>4],n+=je[(t[r+1]&15)<<2|t[r+2]>>6],n+=je[t[r+2]&63];return s%3===2?n=n.substring(0,n.length-1)+"=":s%3===1&&(n=n.substring(0,n.length-2)+"=="),n};var Di=new Map;function zu(e,t){let r=Di.get(e);return r||(r=new Map,Di.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}var Ro=(e,t,r)=>{if(!e||!(Oo(e,t)||typeof e=="object"))return;let s=e.constructor.name,n=zu(r,s),o=n.indexOf(e);return o===-1&&(o=n.length,n.push(e)),o};function xt(e,t,r){if(e instanceof Array)return e.map(s=>xt(s,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 s=e.constructor.name,n=Bu(e);return{rr_type:s,base64:n}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[xt(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){let s=e.constructor.name,{src:n}=e;return{rr_type:s,src:n}}else if(e instanceof HTMLCanvasElement){let s="HTMLImageElement",n=e.toDataURL();return{rr_type:s,src:n}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[xt(e.data,t,r),e.width,e.height]};if(Oo(e,t)||typeof e=="object"){let s=e.constructor.name,n=Ro(e,t,r);return{rr_type:s,index:n}}}}return e}var Io=(e,t,r)=>e.map(s=>xt(s,t,r)),Oo=(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 $u(e,t,r,s){let n=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(let c of o)try{if(typeof t.CanvasRenderingContext2D.prototype[c]!="function")continue;let p=Pe(t.CanvasRenderingContext2D.prototype,c,function(a){return function(...d){return ue(this.canvas,r,s,!0)||setTimeout(()=>{let i=Io(d,t,this);e(this.canvas,{type:Ve["2D"],property:c,args:i})},0),a.apply(this,d)}});n.push(p)}catch(p){let a=qt(t.CanvasRenderingContext2D.prototype,c,{set(d){e(this.canvas,{type:Ve["2D"],property:c,args:[d],setter:!0})}});n.push(a)}return()=>{n.forEach(c=>c())}}function Wu(e){return e==="experimental-webgl"?"webgl":e}function ki(e,t,r,s){let n=[];try{let o=Pe(e.HTMLCanvasElement.prototype,"getContext",function(c){return function(p,...a){if(!ue(this,t,r,!0)){let d=Wu(p);if("__context"in this||(this.__context=d),s&&["webgl","webgl2"].includes(d))if(a[0]&&typeof a[0]=="object"){let i=a[0];i.preserveDrawingBuffer||(i.preserveDrawingBuffer=!0)}else a.splice(0,1,{preserveDrawingBuffer:!0})}return c.apply(this,[p,...a])}});n.push(o)}catch(o){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{n.forEach(o=>o())}}function _i(e,t,r,s,n,o){let c=[],p=Object.getOwnPropertyNames(e);for(let a of p)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))try{if(typeof e[a]!="function")continue;let d=Pe(e,a,function(i){return function(...h){let u=i.apply(this,h);if(Ro(u,o,this),"tagName"in this.canvas&&!ue(this.canvas,s,n,!0)){let l=Io(h,o,this),m={type:t,property:a,args:l};r(this.canvas,m)}return u}});c.push(d)}catch(d){let i=qt(e,a,{set(h){r(this.canvas,{type:t,property:a,args:[h],setter:!0})}});c.push(i)}return c}function qu(e,t,r,s){let n=[];return typeof t.WebGLRenderingContext!="undefined"&&n.push(..._i(t.WebGLRenderingContext.prototype,Ve.WebGL,e,r,s,t)),typeof t.WebGL2RenderingContext!="undefined"&&n.push(..._i(t.WebGL2RenderingContext.prototype,Ve.WebGL2,e,r,s,t)),()=>{n.forEach(o=>o())}}var No=`(function() {
59
+ or you can use record.mirror to access the mirror instance during recording.`,Ni={map:{},getId(){return console.error(ze),-1},getNode(){return console.error(ze),null},removeNodeFromMap(){console.error(ze)},has(){return console.error(ze),!1},reset(){console.error(ze)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(Ni=new Proxy(Ni,{get(e,t,r){return t==="map"&&console.error(ze),Reflect.get(e,t,r)}}));function st(e,t,r={}){let s=null,n=0;return function(...o){let c=Date.now();!n&&r.leading===!1&&(n=c);let p=t-(c-n),a=this;p<=0||p>t?(s&&(clearTimeout(s),s=null),n=c,e.apply(a,o)):!s&&r.trailing!==!1&&(s=setTimeout(()=>{n=r.leading===!1?0:Date.now(),s=null,e.apply(a,o)},p))}}function qt(e,t,r,s,n=window){let o=n.Object.getOwnPropertyDescriptor(e,t);return n.Object.defineProperty(e,t,s?r:{set(c){setTimeout(()=>{r.set.call(this,c)},0),o&&o.set&&o.set.call(this,c)}}),()=>qt(e,t,o||{},!0)}function mo(e){var t,r,s,n;let o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:o.documentElement.scrollLeft||(o==null?void 0:o.body)&&((t=B.parentElement(o.body))==null?void 0:t.scrollLeft)||((r=o==null?void 0:o.body)==null?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:(o==null?void 0:o.documentElement.scrollTop)||(o==null?void 0:o.body)&&((s=B.parentElement(o.body))==null?void 0:s.scrollTop)||((n=o==null?void 0:o.body)==null?void 0:n.scrollTop)||0}}function go(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function yo(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function vo(e){return e?e.nodeType===e.ELEMENT_NODE?e:B.parentElement(e):null}function ue(e,t,r,s){if(!e)return!1;let n=vo(e);if(!n)return!1;try{if(typeof t=="string"){if(n.classList.contains(t)||s&&n.closest("."+t)!==null)return!0}else if(Nt(n,t,s))return!0}catch(o){}return!!(r&&(n.matches(r)||s&&n.closest(r)!==null))}function Su(e,t){return t.getId(e)!==-1}function dn(e,t,r){return e.tagName==="TITLE"&&r.headTitleMutations?!0:t.getId(e)===rt}function wo(e,t){if(Qe(e))return!1;let r=t.getId(e);if(!t.has(r))return!0;let s=B.parentNode(e);return s&&s.nodeType===e.DOCUMENT_NODE?!1:s?wo(s,t):!0}function yn(e){return!!e.changedTouches}function Cu(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 bo(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function So(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function vn(e){return e?e instanceof gn&&"shadowRoot"in e?!!e.shadowRoot:!!B.shadowRoot(e):!1}var wn=class{constructor(){D(this,"id",1),D(this,"styleIDMap",new WeakMap),D(this,"idStyleMap",new Map)}getId(t){var r;return(r=this.styleIDMap.get(t))!=null?r:-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let s;return r===void 0?s=this.id++:s=r,this.styleIDMap.set(t,s),this.idStyleMap.set(s,t),s}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 Co(e){var t;let r=null;return"getRootNode"in e&&((t=B.getRootNode(e))==null?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&B.host(B.getRootNode(e))&&(r=B.host(B.getRootNode(e))),r}function xu(e){let t=e,r;for(;r=Co(t);)t=r;return t}function Eu(e){let t=B.ownerDocument(e);if(!t)return!1;let r=xu(e);return B.contains(t,r)}function xo(e){let t=B.ownerDocument(e);return t?B.contains(t,e)||Eu(e):!1}var q=(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))(q||{}),$=(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))($||{}),fe=(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))(fe||{}),Me=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Me||{}),Ve=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Ve||{}),$e=(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))($e||{});var Eo=(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))(Eo||{});function Ai(e){return"__ln"in e}var bn=class{constructor(){D(this,"length",0),D(this,"head",null),D(this,"tail",null)}get(t){if(t>=this.length)throw new Error("Position outside of list range");let r=this.head;for(let s=0;s<t;s++)r=(r==null?void 0:r.next)||null;return r}addNode(t){let r={value:t,previous:null,next:null};if(t.__ln=r,t.previousSibling&&Ai(t.previousSibling)){let s=t.previousSibling.__ln.next;r.next=s,r.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=r,s&&(s.previous=r)}else if(t.nextSibling&&Ai(t.nextSibling)&&t.nextSibling.__ln.previous){let s=t.nextSibling.__ln.previous;r.previous=s,r.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=r,s&&(s.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++}removeNode(t){let r=t.__ln;this.head&&(r.previous?(r.previous.next=r.next,r.next?r.next.previous=r.previous:this.tail=r.previous):(this.head=r.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}},Di=(e,t)=>`${e}@${t}`,Sn=class{constructor(){D(this,"frozen",!1),D(this,"locked",!1),D(this,"texts",[]),D(this,"attributes",[]),D(this,"attributeMap",new WeakMap),D(this,"removes",[]),D(this,"mapRemoves",[]),D(this,"movedMap",{}),D(this,"addedSet",new Set),D(this,"movedSet",new Set),D(this,"droppedSet",new Set),D(this,"removesSubTreeCache",new Set),D(this,"mutationCb"),D(this,"blockClass"),D(this,"blockSelector"),D(this,"maskTextClass"),D(this,"maskTextSelector"),D(this,"inlineStylesheet"),D(this,"maskInputOptions"),D(this,"maskTextFn"),D(this,"maskInputFn"),D(this,"keepIframeSrcFn"),D(this,"recordCanvas"),D(this,"inlineImages"),D(this,"slimDOMOptions"),D(this,"dataURLOptions"),D(this,"doc"),D(this,"mirror"),D(this,"iframeManager"),D(this,"stylesheetManager"),D(this,"shadowDomManager"),D(this,"canvasManager"),D(this,"processedNodeManager"),D(this,"unattachedDoc"),D(this,"processMutations",t=>{t.forEach(this.processMutation),this.emit()}),D(this,"emit",()=>{if(this.frozen||this.locked)return;let t=[],r=new Set,s=new bn,n=a=>{let d=a,i=rt;for(;i===rt;)d=d&&d.nextSibling,i=d&&this.mirror.getId(d);return i},o=a=>{let d=B.parentNode(a);if(!d||!xo(a))return;let i=!1;if(a.nodeType===Node.TEXT_NODE){let m=d.tagName;if(m==="TEXTAREA")return;m==="STYLE"&&this.addedSet.has(d)&&(i=!0)}let h=Qe(d)?this.mirror.getId(Co(a)):this.mirror.getId(d),u=n(a);if(h===-1||u===-1)return s.addNode(a);let l=qe(a,{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:m=>{bo(m,this.mirror)&&this.iframeManager.addIframe(m),So(m,this.mirror)&&this.stylesheetManager.trackLinkElement(m),vn(a)&&this.shadowDomManager.addShadowRoot(B.shadowRoot(a),this.doc)},onIframeLoad:(m,f)=>{this.iframeManager.attachIframe(m,f),this.shadowDomManager.observeAttachShadow(m)},onStylesheetLoad:(m,f)=>{this.stylesheetManager.attachLinkElement(m,f)},cssCaptured:i});l&&(t.push({parentId:h,nextId:u,node:l}),r.add(l.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let a of this.movedSet)Ti(this.removesSubTreeCache,a,this.mirror)&&!this.movedSet.has(B.parentNode(a))||o(a);for(let a of this.addedSet)!ki(this.droppedSet,a)&&!Ti(this.removesSubTreeCache,a,this.mirror)||ki(this.movedSet,a)?o(a):this.droppedSet.add(a);let c=null;for(;s.length;){let a=null;if(c){let d=this.mirror.getId(B.parentNode(c.value)),i=n(c.value);d!==-1&&i!==-1&&(a=c)}if(!a){let d=s.tail;for(;d;){let i=d;if(d=d.previous,i){let h=this.mirror.getId(B.parentNode(i.value));if(n(i.value)===-1)continue;if(h!==-1){a=i;break}else{let l=i.value,m=B.parentNode(l);if(m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let f=B.host(m);if(this.mirror.getId(f)!==-1){a=i;break}}}}}}if(!a){for(;s.head;)s.removeNode(s.head.value);break}c=a.previous,s.removeNode(a.value),o(a.value)}let p={texts:this.texts.map(a=>{let d=a.node,i=B.parentNode(d);return i&&i.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(i),{id:this.mirror.getId(d),value:a.value}}).filter(a=>!r.has(a.id)).filter(a=>this.mirror.has(a.id)),attributes:this.attributes.map(a=>{let{attributes:d}=a;if(typeof d.style=="string"){let i=JSON.stringify(a.styleDiff),h=JSON.stringify(a._unchangedStyles);i.length<d.style.length&&(i+h).split("var(").length===d.style.split("var(").length&&(d.style=a.styleDiff)}return{id:this.mirror.getId(a.node),attributes:d}}).filter(a=>!r.has(a.id)).filter(a=>this.mirror.has(a.id)),removes:this.removes,adds:t};!p.texts.length&&!p.attributes.length&&!p.removes.length&&!p.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(p))}),D(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 s=Array.from(B.childNodes(t),n=>B.textContent(n)||"").join("");r.attributes.value=Rt({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:It(t),value:s,maskInputFn:this.maskInputFn})}),D(this,"processMutation",t=>{if(!dn(t.target,this.mirror,this.slimDOMOptions))switch(t.type){case"characterData":{let r=B.textContent(t.target);!ue(t.target,this.blockClass,this.blockSelector,!1)&&r!==t.oldValue&&this.texts.push({value:Xi(t.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,vo(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{let r=t.target,s=t.attributeName,n=t.target.getAttribute(s);if(s==="value"){let c=It(r);n=Rt({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:c,value:n,maskInputFn:this.maskInputFn})}if(ue(t.target,this.blockClass,this.blockSelector,!1)||n===t.oldValue)return;let o=this.attributeMap.get(t.target);if(r.tagName==="IFRAME"&&s==="src"&&!this.keepIframeSrcFn(n))if(!r.contentDocument)s="rr_src";else return;if(o||(o={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(t.target,o)),s==="type"&&r.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!Yi(r.tagName,s))if(o.attributes[s]=Gi(this.doc,ke(r.tagName),ke(s),n),s==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(p){this.unattachedDoc=this.doc}let c=this.unattachedDoc.createElement("span");t.oldValue&&c.setAttribute("style",t.oldValue);for(let p of Array.from(r.style)){let a=r.style.getPropertyValue(p),d=r.style.getPropertyPriority(p);a!==c.style.getPropertyValue(p)||d!==c.style.getPropertyPriority(p)?d===""?o.styleDiff[p]=a:o.styleDiff[p]=[a,d]:o._unchangedStyles[p]=[a,d]}for(let p of Array.from(c.style))r.style.getPropertyValue(p)===""&&(o.styleDiff[p]=!1)}else s==="open"&&r.tagName==="DIALOG"&&(r.matches("dialog:modal")?o.attributes.rr_open_mode="modal":o.attributes.rr_open_mode="non-modal");break}case"childList":{if(ue(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 s=this.mirror.getId(r),n=Qe(t.target)?this.mirror.getId(B.host(t.target)):this.mirror.getId(t.target);ue(t.target,this.blockClass,this.blockSelector,!1)||dn(r,this.mirror,this.slimDOMOptions)||!Su(r,this.mirror)||(this.addedSet.has(r)?(Cn(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&s===-1||wo(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[Di(s,n)]?Cn(this.movedSet,r):(this.removes.push({parentId:n,id:s,isShadow:Qe(t.target)&&et(t.target)?!0:void 0}),Mu(r,this.removesSubTreeCache))),this.mapRemoves.push(r))});break}}}),D(this,"genAdds",(t,r)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(dn(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let s=null;r&&this.mirror.hasNode(r)&&(s=this.mirror.getId(r)),s&&s!==-1&&(this.movedMap[Di(this.mirror.getId(t),s)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);ue(t,this.blockClass,this.blockSelector,!1)||(B.childNodes(t).forEach(s=>this.genAdds(s)),vn(t)&&B.childNodes(B.shadowRoot(t)).forEach(s=>{this.processedNodeManager.add(s,this),this.genAdds(s,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 Cn(e,t){e.delete(t),B.childNodes(t).forEach(r=>Cn(e,r))}function Mu(e,t){let r=[e];for(;r.length;){let s=r.pop();t.has(s)||(t.add(s),B.childNodes(s).forEach(n=>r.push(n)))}}function Ti(e,t,r){return e.size===0?!1:Ru(e,t)}function Ru(e,t,r){let s=B.parentNode(t);return s?e.has(s):!1}function ki(e,t){return e.size===0?!1:Mo(e,t)}function Mo(e,t){let r=B.parentNode(t);return r?e.has(r)?!0:Mo(e,r):!1}var tt;function Iu(e){tt=e}function Ou(){tt=void 0}var W=e=>tt?(...r)=>{try{return e(...r)}catch(s){if(tt&&tt(s)===!0)return;throw s}}:e,Te=[];function at(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(t){}return e&&e.target}function Ro(e,t){let r=new Sn;Te.push(r),r.init(e);let[s,n]=po(),o=new s(W(r.processMutations.bind(r)));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),[o,n]}function Nu({mousemoveCb:e,sampling:t,doc:r,mirror:s}){if(t.mousemove===!1)return()=>{};let n=typeof t.mousemove=="number"?t.mousemove:50,o=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500,c=[],p,a=st(W(h=>{let u=Date.now()-p;e(c.map(l=>(l.timeOffset-=u,l)),h),c=[],p=null}),o),d=W(st(W(h=>{let u=at(h),{clientX:l,clientY:m}=yn(h)?h.changedTouches[0]:h;p||(p=nt()),c.push({x:l,y:m,id:s.getId(u),timeOffset:nt()-p}),a(typeof DragEvent!="undefined"&&h instanceof DragEvent?$.Drag:h instanceof MouseEvent?$.MouseMove:$.TouchMove)}),n,{trailing:!1})),i=[le("mousemove",d,r),le("touchmove",d,r),le("drag",d,r)];return W(()=>{i.forEach(h=>h())})}function Au({mouseInteractionCb:e,doc:t,mirror:r,blockClass:s,blockSelector:n,sampling:o}){if(o.mouseInteraction===!1)return()=>{};let c=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,p=[],a=null,d=i=>h=>{let u=at(h);if(ue(u,s,n,!0))return;let l=null,m=i;if("pointerType"in h){switch(h.pointerType){case"mouse":l=Me.Mouse;break;case"touch":l=Me.Touch;break;case"pen":l=Me.Pen;break}l===Me.Touch?fe[i]===fe.MouseDown?m="TouchStart":fe[i]===fe.MouseUp&&(m="TouchEnd"):Me.Pen}else yn(h)&&(l=Me.Touch);l!==null?(a=l,(m.startsWith("Touch")&&l===Me.Touch||m.startsWith("Mouse")&&l===Me.Mouse)&&(l=null)):fe[i]===fe.Click&&(l=a,a=null);let f=yn(h)?h.changedTouches[0]:h;if(!f)return;let g=r.getId(u),{clientX:C,clientY:w}=f;W(e)({type:fe[m],id:g,x:C,y:w,...l!==null&&{pointerType:l}})};return Object.keys(fe).filter(i=>Number.isNaN(Number(i))&&!i.endsWith("_Departed")&&c[i]!==!1).forEach(i=>{let h=ke(i),u=d(i);if(window.PointerEvent)switch(fe[i]){case fe.MouseDown:case fe.MouseUp:h=h.replace("mouse","pointer");break;case fe.TouchStart:case fe.TouchEnd:return}p.push(le(h,u,t))}),W(()=>{p.forEach(i=>i())})}function Io({scrollCb:e,doc:t,mirror:r,blockClass:s,blockSelector:n,sampling:o}){let c=W(st(W(p=>{let a=at(p);if(!a||ue(a,s,n,!0))return;let d=r.getId(a);if(a===t&&t.defaultView){let i=mo(t.defaultView);e({id:d,x:i.left,y:i.top})}else e({id:d,x:a.scrollLeft,y:a.scrollTop})}),o.scroll||100));return le("scroll",c,t)}function Du({viewportResizeCb:e},{win:t}){let r=-1,s=-1,n=W(st(W(()=>{let o=go(),c=yo();(r!==o||s!==c)&&(e({width:Number(c),height:Number(o)}),r=o,s=c)}),200));return le("resize",n,t)}var Tu=["INPUT","TEXTAREA","SELECT"],_i=new WeakMap;function ku({inputCb:e,doc:t,mirror:r,blockClass:s,blockSelector:n,ignoreClass:o,ignoreSelector:c,maskInputOptions:p,maskInputFn:a,sampling:d,userTriggeredOnInput:i}){function h(w){let S=at(w),E=w.isTrusted,b=S&&S.tagName;if(S&&b==="OPTION"&&(S=B.parentElement(S)),!S||!b||Tu.indexOf(b)<0||ue(S,s,n,!0)||S.classList.contains(o)||c&&S.matches(c))return;let y=S.value,v=!1,x=It(S)||"";x==="radio"||x==="checkbox"?v=S.checked:(p[b.toLowerCase()]||p[x])&&(y=Rt({element:S,maskInputOptions:p,tagName:b,type:x,value:y,maskInputFn:a})),u(S,i?{text:y,isChecked:v,userTriggered:E}:{text:y,isChecked:v});let I=S.name;x==="radio"&&I&&v&&t.querySelectorAll(`input[type="radio"][name="${I}"]`).forEach(R=>{if(R!==S){let A=R.value;u(R,i?{text:A,isChecked:!v,userTriggered:!1}:{text:A,isChecked:!v})}})}function u(w,S){let E=_i.get(w);if(!E||E.text!==S.text||E.isChecked!==S.isChecked){_i.set(w,S);let b=r.getId(w);W(e)({...S,id:b})}}let m=(d.input==="last"?["change"]:["input","change"]).map(w=>le(w,W(h),t)),f=t.defaultView;if(!f)return()=>{m.forEach(w=>w())};let g=f.Object.getOwnPropertyDescriptor(f.HTMLInputElement.prototype,"value"),C=[[f.HTMLInputElement.prototype,"value"],[f.HTMLInputElement.prototype,"checked"],[f.HTMLSelectElement.prototype,"value"],[f.HTMLTextAreaElement.prototype,"value"],[f.HTMLSelectElement.prototype,"selectedIndex"],[f.HTMLOptionElement.prototype,"selected"]];return g&&g.set&&m.push(...C.map(w=>qt(w[0],w[1],{set(){W(h)({target:this,isTrusted:!1})}},!1,f))),W(()=>{m.forEach(w=>w())})}function At(e){let t=[];function r(s,n){if(St("CSSGroupingRule")&&s.parentRule instanceof CSSGroupingRule||St("CSSMediaRule")&&s.parentRule instanceof CSSMediaRule||St("CSSSupportsRule")&&s.parentRule instanceof CSSSupportsRule||St("CSSConditionRule")&&s.parentRule instanceof CSSConditionRule){let c=Array.from(s.parentRule.cssRules).indexOf(s);return n.unshift(c),r(s.parentRule,n)}else if(s.parentStyleSheet){let c=Array.from(s.parentStyleSheet.cssRules).indexOf(s);n.unshift(c)}return n}return r(e,t)}function Ne(e,t,r){let s,n;return e?(e.ownerNode?s=t.getId(e.ownerNode):n=r.getId(e),{styleId:n,id:s}):{}}function _u({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:s}){if(!s.CSSStyleSheet||!s.CSSStyleSheet.prototype)return()=>{};let n=s.CSSStyleSheet.prototype.insertRule;s.CSSStyleSheet.prototype.insertRule=new Proxy(n,{apply:W((i,h,u)=>{let[l,m]=u,{id:f,styleId:g}=Ne(h,t,r.styleMirror);return(f&&f!==-1||g&&g!==-1)&&e({id:f,styleId:g,adds:[{rule:l,index:m}]}),i.apply(h,u)})}),s.CSSStyleSheet.prototype.addRule=function(i,h,u=this.cssRules.length){let l=`${i} { ${h} }`;return s.CSSStyleSheet.prototype.insertRule.apply(this,[l,u])};let o=s.CSSStyleSheet.prototype.deleteRule;s.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:W((i,h,u)=>{let[l]=u,{id:m,styleId:f}=Ne(h,t,r.styleMirror);return(m&&m!==-1||f&&f!==-1)&&e({id:m,styleId:f,removes:[{index:l}]}),i.apply(h,u)})}),s.CSSStyleSheet.prototype.removeRule=function(i){return s.CSSStyleSheet.prototype.deleteRule.apply(this,[i])};let c;s.CSSStyleSheet.prototype.replace&&(c=s.CSSStyleSheet.prototype.replace,s.CSSStyleSheet.prototype.replace=new Proxy(c,{apply:W((i,h,u)=>{let[l]=u,{id:m,styleId:f}=Ne(h,t,r.styleMirror);return(m&&m!==-1||f&&f!==-1)&&e({id:m,styleId:f,replace:l}),i.apply(h,u)})}));let p;s.CSSStyleSheet.prototype.replaceSync&&(p=s.CSSStyleSheet.prototype.replaceSync,s.CSSStyleSheet.prototype.replaceSync=new Proxy(p,{apply:W((i,h,u)=>{let[l]=u,{id:m,styleId:f}=Ne(h,t,r.styleMirror);return(m&&m!==-1||f&&f!==-1)&&e({id:m,styleId:f,replaceSync:l}),i.apply(h,u)})}));let a={};Ct("CSSGroupingRule")?a.CSSGroupingRule=s.CSSGroupingRule:(Ct("CSSMediaRule")&&(a.CSSMediaRule=s.CSSMediaRule),Ct("CSSConditionRule")&&(a.CSSConditionRule=s.CSSConditionRule),Ct("CSSSupportsRule")&&(a.CSSSupportsRule=s.CSSSupportsRule));let d={};return Object.entries(a).forEach(([i,h])=>{d[i]={insertRule:h.prototype.insertRule,deleteRule:h.prototype.deleteRule},h.prototype.insertRule=new Proxy(d[i].insertRule,{apply:W((u,l,m)=>{let[f,g]=m,{id:C,styleId:w}=Ne(l.parentStyleSheet,t,r.styleMirror);return(C&&C!==-1||w&&w!==-1)&&e({id:C,styleId:w,adds:[{rule:f,index:[...At(l),g||0]}]}),u.apply(l,m)})}),h.prototype.deleteRule=new Proxy(d[i].deleteRule,{apply:W((u,l,m)=>{let[f]=m,{id:g,styleId:C}=Ne(l.parentStyleSheet,t,r.styleMirror);return(g&&g!==-1||C&&C!==-1)&&e({id:g,styleId:C,removes:[{index:[...At(l),f]}]}),u.apply(l,m)})})}),W(()=>{s.CSSStyleSheet.prototype.insertRule=n,s.CSSStyleSheet.prototype.deleteRule=o,c&&(s.CSSStyleSheet.prototype.replace=c),p&&(s.CSSStyleSheet.prototype.replaceSync=p),Object.entries(a).forEach(([i,h])=>{h.prototype.insertRule=d[i].insertRule,h.prototype.deleteRule=d[i].deleteRule})})}function Oo({mirror:e,stylesheetManager:t},r){var s,n,o;let c=null;r.nodeName==="#document"?c=e.getId(r):c=e.getId(B.host(r));let p=r.nodeName==="#document"?(s=r.defaultView)==null?void 0:s.Document:(o=(n=r.ownerDocument)==null?void 0:n.defaultView)==null?void 0:o.ShadowRoot,a=p!=null&&p.prototype?Object.getOwnPropertyDescriptor(p==null?void 0:p.prototype,"adoptedStyleSheets"):void 0;return c===null||c===-1||!p||!a?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){var d;return(d=a.get)==null?void 0:d.call(this)},set(d){var i;let h=(i=a.set)==null?void 0:i.call(this,d);if(c!==null&&c!==-1)try{t.adoptStyleSheets(d,c)}catch(u){}return h}}),W(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function Lu({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:s},{win:n}){let o=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:W((p,a,d)=>{var i;let[h,u,l]=d;if(r.has(h))return o.apply(a,[h,u,l]);let{id:m,styleId:f}=Ne((i=a.parentRule)==null?void 0:i.parentStyleSheet,t,s.styleMirror);return(m&&m!==-1||f&&f!==-1)&&e({id:m,styleId:f,set:{property:h,value:u,priority:l},index:At(a.parentRule)}),p.apply(a,d)})});let c=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:W((p,a,d)=>{var i;let[h]=d;if(r.has(h))return c.apply(a,[h]);let{id:u,styleId:l}=Ne((i=a.parentRule)==null?void 0:i.parentStyleSheet,t,s.styleMirror);return(u&&u!==-1||l&&l!==-1)&&e({id:u,styleId:l,remove:{property:h},index:At(a.parentRule)}),p.apply(a,d)})}),W(()=>{n.CSSStyleDeclaration.prototype.setProperty=o,n.CSSStyleDeclaration.prototype.removeProperty=c})}function Pu({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:s,sampling:n,doc:o}){let c=W(a=>st(W(d=>{let i=at(d);if(!i||ue(i,t,r,!0))return;let{currentTime:h,volume:u,muted:l,playbackRate:m,loop:f}=i;e({type:a,id:s.getId(i),currentTime:h,volume:u,muted:l,playbackRate:m,loop:f})}),n.media||500)),p=[le("play",c($e.Play),o),le("pause",c($e.Pause),o),le("seeked",c($e.Seeked),o),le("volumechange",c($e.VolumeChange),o),le("ratechange",c($e.RateChange),o)];return W(()=>{p.forEach(a=>a())})}function Fu({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let s=[],n=new WeakMap,o=r.FontFace;r.FontFace=function(a,d,i){let h=new o(a,d,i);return n.set(h,{family:a,buffer:typeof d!="string",descriptors:i,fontSource:typeof d=="string"?d:JSON.stringify(Array.from(new Uint8Array(d)))}),h};let c=Pe(t.fonts,"add",function(p){return function(a){return setTimeout(W(()=>{let d=n.get(a);d&&(e(d),n.delete(a))}),0),p.apply(this,[a])}});return s.push(()=>{r.FontFace=o}),s.push(c),W(()=>{s.forEach(p=>p())})}function Uu(e){let{doc:t,mirror:r,blockClass:s,blockSelector:n,selectionCb:o}=e,c=!0,p=W(()=>{let a=t.getSelection();if(!a||c&&(a!=null&&a.isCollapsed))return;c=a.isCollapsed||!1;let d=[],i=a.rangeCount||0;for(let h=0;h<i;h++){let u=a.getRangeAt(h),{startContainer:l,startOffset:m,endContainer:f,endOffset:g}=u;ue(l,s,n,!0)||ue(f,s,n,!0)||d.push({start:r.getId(l),startOffset:m,end:r.getId(f),endOffset:g})}o({ranges:d})});return p(),le("selectionchange",p)}function Bu({doc:e,customElementCb:t}){let r=e.defaultView;return!r||!r.customElements?()=>{}:Pe(r.customElements,"define",function(n){return function(o,c,p){try{t({define:{name:o}})}catch(a){console.warn(`Custom element callback failed for ${o}`)}return n.apply(this,[o,c,p])}})}function zu(e,t){let{mutationCb:r,mousemoveCb:s,mouseInteractionCb:n,scrollCb:o,viewportResizeCb:c,inputCb:p,mediaInteractionCb:a,styleSheetRuleCb:d,styleDeclarationCb:i,canvasMutationCb:h,fontCb:u,selectionCb:l,customElementCb:m}=e;e.mutationCb=(...f)=>{t.mutation&&t.mutation(...f),r(...f)},e.mousemoveCb=(...f)=>{t.mousemove&&t.mousemove(...f),s(...f)},e.mouseInteractionCb=(...f)=>{t.mouseInteraction&&t.mouseInteraction(...f),n(...f)},e.scrollCb=(...f)=>{t.scroll&&t.scroll(...f),o(...f)},e.viewportResizeCb=(...f)=>{t.viewportResize&&t.viewportResize(...f),c(...f)},e.inputCb=(...f)=>{t.input&&t.input(...f),p(...f)},e.mediaInteractionCb=(...f)=>{t.mediaInteaction&&t.mediaInteaction(...f),a(...f)},e.styleSheetRuleCb=(...f)=>{t.styleSheetRule&&t.styleSheetRule(...f),d(...f)},e.styleDeclarationCb=(...f)=>{t.styleDeclaration&&t.styleDeclaration(...f),i(...f)},e.canvasMutationCb=(...f)=>{t.canvasMutation&&t.canvasMutation(...f),h(...f)},e.fontCb=(...f)=>{t.font&&t.font(...f),u(...f)},e.selectionCb=(...f)=>{t.selection&&t.selection(...f),l(...f)},e.customElementCb=(...f)=>{t.customElement&&t.customElement(...f),m(...f)}}function $u(e,t={}){let r=e.doc.defaultView;if(!r)return()=>{};zu(e,t);let s,n=()=>{};e.recordDOM&&([s,n]=Ro(e,e.doc));let o=Nu(e),c=Au(e),p=Io(e),a=Du(e,{win:r}),d=ku(e),i=Pu(e),h=()=>{},u=()=>{},l=()=>{},m=()=>{};e.recordDOM&&(h=_u(e,{win:r}),u=Oo(e,e.doc),l=Lu(e,{win:r}),e.collectFonts&&(m=Fu(e)));let f=Uu(e),g=Bu(e),C=[];for(let w of e.plugins)C.push(w.observer(w.callback,r,w.options));return W(()=>{Te.forEach(w=>w.reset()),s==null||s.disconnect(),n(),o(),c(),p(),a(),d(),i(),h(),u(),l(),m(),f(),g(),C.forEach(w=>w())})}function St(e){return typeof window[e]!="undefined"}function Ct(e){return!!(typeof window[e]!="undefined"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var Dt=class{constructor(t){D(this,"iframeIdToRemoteIdMap",new WeakMap),D(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=t}getId(t,r,s,n){let o=s||this.getIdToRemoteIdMap(t),c=n||this.getRemoteIdToIdMap(t),p=o.get(r);return p||(p=this.generateIdFn(),o.set(r,p),c.set(p,r)),p}getIds(t,r){let s=this.getIdToRemoteIdMap(t),n=this.getRemoteIdToIdMap(t);return r.map(o=>this.getId(t,o,s,n))}getRemoteId(t,r,s){let n=s||this.getRemoteIdToIdMap(t);if(typeof r!="number")return r;let o=n.get(r);return o||-1}getRemoteIds(t,r){let s=this.getRemoteIdToIdMap(t);return r.map(n=>this.getRemoteId(t,n,s))}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}},xn=class{constructor(t){D(this,"iframes",new WeakMap),D(this,"crossOriginIframeMap",new WeakMap),D(this,"crossOriginIframeMirror",new Dt(Hi)),D(this,"crossOriginIframeStyleMirror"),D(this,"crossOriginIframeRootIdMap",new WeakMap),D(this,"mirror"),D(this,"mutationCb"),D(this,"wrappedEmit"),D(this,"loadListener"),D(this,"stylesheetManager"),D(this,"recordCrossOriginIframes"),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Dt(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 s,n;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((s=t.contentWindow)==null||s.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 o=this.transformCrossOriginEvent(n,r.data.event);o&&this.wrappedEmit(o,r.data.isCheckout)}transformCrossOriginEvent(t,r){var s;switch(r.type){case q.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:q.IncrementalSnapshot,data:{source:$.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case q.Meta:case q.Load:case q.DomContentLoaded:return!1;case q.Plugin:return r;case q.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case q.IncrementalSnapshot:switch(r.data.source){case $.Mutation:return r.data.adds.forEach(n=>{this.replaceIds(n,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(n.node,t);let o=this.crossOriginIframeRootIdMap.get(t);o&&this.patchRootIdOnNode(n.node,o)}),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 $.Drag:case $.TouchMove:case $.MouseMove:return r.data.positions.forEach(n=>{this.replaceIds(n,t,["id"])}),r;case $.ViewportResize:return!1;case $.MediaInteraction:case $.MouseInteraction:case $.Scroll:case $.CanvasMutation:case $.Input:return this.replaceIds(r.data,t,["id"]),r;case $.StyleSheetRule:case $.StyleDeclaration:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleId"]),r;case $.Font:return r;case $.Selection:return r.data.ranges.forEach(n=>{this.replaceIds(n,t,["start","end"])}),r;case $.AdoptedStyleSheet:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleIds"]),(s=r.data.styles)==null||s.forEach(n=>{this.replaceStyleIds(n,t,["styleId"])}),r}}return!1}replace(t,r,s,n){for(let o of n)!Array.isArray(r[o])&&typeof r[o]!="number"||(Array.isArray(r[o])?r[o]=t.getIds(s,r[o]):r[o]=t.getId(s,r[o]));return r}replaceIds(t,r,s){return this.replace(this.crossOriginIframeMirror,t,r,s)}replaceStyleIds(t,r,s){return this.replace(this.crossOriginIframeStyleMirror,t,r,s)}replaceIdOnNode(t,r){this.replaceIds(t,r,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(s=>{this.replaceIdOnNode(s,r)})}patchRootIdOnNode(t,r){t.type!==Eo.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(s=>{this.patchRootIdOnNode(s,r)})}},En=class{constructor(t){D(this,"shadowDoms",new WeakSet),D(this,"mutationCb"),D(this,"scrollCb"),D(this,"bypassOptions"),D(this,"mirror"),D(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(!et(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);let[s]=Ro({...this.bypassOptions,doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>s.disconnect()),this.restoreHandlers.push(Io({...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(B.host(t))),this.restoreHandlers.push(Oo({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 s=this;this.restoreHandlers.push(Pe(t.prototype,"attachShadow",function(n){return function(o){let c=n.call(this,o),p=B.shadowRoot(this);return p&&xo(this)&&s.addShadowRoot(p,r),c}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch(r){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}},je="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Wu=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(Ze=0;Ze<je.length;Ze++)Wu[je.charCodeAt(Ze)]=Ze;var Ze,qu=function(e){var t=new Uint8Array(e),r,s=t.length,n="";for(r=0;r<s;r+=3)n+=je[t[r]>>2],n+=je[(t[r]&3)<<4|t[r+1]>>4],n+=je[(t[r+1]&15)<<2|t[r+2]>>6],n+=je[t[r+2]&63];return s%3===2?n=n.substring(0,n.length-1)+"=":s%3===1&&(n=n.substring(0,n.length-2)+"=="),n};var Li=new Map;function ju(e,t){let r=Li.get(e);return r||(r=new Map,Li.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}var No=(e,t,r)=>{if(!e||!(Do(e,t)||typeof e=="object"))return;let s=e.constructor.name,n=ju(r,s),o=n.indexOf(e);return o===-1&&(o=n.length,n.push(e)),o};function xt(e,t,r){if(e instanceof Array)return e.map(s=>xt(s,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 s=e.constructor.name,n=qu(e);return{rr_type:s,base64:n}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[xt(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){let s=e.constructor.name,{src:n}=e;return{rr_type:s,src:n}}else if(e instanceof HTMLCanvasElement){let s="HTMLImageElement",n=e.toDataURL();return{rr_type:s,src:n}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[xt(e.data,t,r),e.width,e.height]};if(Do(e,t)||typeof e=="object"){let s=e.constructor.name,n=No(e,t,r);return{rr_type:s,index:n}}}}return e}var Ao=(e,t,r)=>e.map(s=>xt(s,t,r)),Do=(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 Vu(e,t,r,s){let n=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(let c of o)try{if(typeof t.CanvasRenderingContext2D.prototype[c]!="function")continue;let p=Pe(t.CanvasRenderingContext2D.prototype,c,function(a){return function(...d){return ue(this.canvas,r,s,!0)||setTimeout(()=>{let i=Ao(d,t,this);e(this.canvas,{type:Ve["2D"],property:c,args:i})},0),a.apply(this,d)}});n.push(p)}catch(p){let a=qt(t.CanvasRenderingContext2D.prototype,c,{set(d){e(this.canvas,{type:Ve["2D"],property:c,args:[d],setter:!0})}});n.push(a)}return()=>{n.forEach(c=>c())}}function Hu(e){return e==="experimental-webgl"?"webgl":e}function Pi(e,t,r,s){let n=[];try{let o=Pe(e.HTMLCanvasElement.prototype,"getContext",function(c){return function(p,...a){if(!ue(this,t,r,!0)){let d=Hu(p);if("__context"in this||(this.__context=d),s&&["webgl","webgl2"].includes(d))if(a[0]&&typeof a[0]=="object"){let i=a[0];i.preserveDrawingBuffer||(i.preserveDrawingBuffer=!0)}else a.splice(0,1,{preserveDrawingBuffer:!0})}return c.apply(this,[p,...a])}});n.push(o)}catch(o){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{n.forEach(o=>o())}}function Fi(e,t,r,s,n,o){let c=[],p=Object.getOwnPropertyNames(e);for(let a of p)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))try{if(typeof e[a]!="function")continue;let d=Pe(e,a,function(i){return function(...h){let u=i.apply(this,h);if(No(u,o,this),"tagName"in this.canvas&&!ue(this.canvas,s,n,!0)){let l=Ao(h,o,this),m={type:t,property:a,args:l};r(this.canvas,m)}return u}});c.push(d)}catch(d){let i=qt(e,a,{set(h){r(this.canvas,{type:t,property:a,args:[h],setter:!0})}});c.push(i)}return c}function Gu(e,t,r,s){let n=[];return typeof t.WebGLRenderingContext!="undefined"&&n.push(...Fi(t.WebGLRenderingContext.prototype,Ve.WebGL,e,r,s,t)),typeof t.WebGL2RenderingContext!="undefined"&&n.push(...Fi(t.WebGL2RenderingContext.prototype,Ve.WebGL2,e,r,s,t)),()=>{n.forEach(o=>o())}}var To=`(function() {
60
60
  "use strict";
61
61
  var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
62
62
  var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
@@ -131,7 +131,7 @@ or you can use record.mirror to access the mirror instance during recording.`,Ri
131
131
  };
132
132
  })();
133
133
  //# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
134
- `,Li=typeof self!="undefined"&&self.Blob&&new Blob([No],{type:"text/javascript;charset=utf-8"});function ju(e){let t;try{if(t=Li&&(self.URL||self.webkitURL).createObjectURL(Li),!t)throw"";let r=new Worker(t,{name:e==null?void 0:e.name});return r.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),r}catch(r){return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(No),{name:e==null?void 0:e.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}var Cn=class{constructor(t){T(this,"pendingCanvasMutations",new Map),T(this,"rafStamps",{latestId:0,invokeId:null}),T(this,"mirror"),T(this,"mutationCb"),T(this,"resetObservers"),T(this,"frozen",!1),T(this,"locked",!1),T(this,"processMutation",(a,d)=>{(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(d)});let{sampling:r="all",win:s,blockClass:n,blockSelector:o,recordCanvas:c,dataURLOptions:p}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,c&&r==="all"&&this.initCanvasMutationObserver(s,n,o),c&&typeof r=="number"&&this.initCanvasFPSObserver(r,s,n,o,{dataURLOptions:p})}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,s,n,o){let c=ki(r,s,n,!0),p=new Map,a=new ju;a.onmessage=m=>{let{id:f}=m.data;if(p.set(f,!1),!("base64"in m.data))return;let{base64:g,type:C,width:w,height:S}=m.data;this.mutationCb({id:f,type:Ve["2D"],commands:[{property:"clearRect",args:[0,0,w,S]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:g}],type:C}]},0,0]}]})};let d=1e3/t,i=0,h,u=()=>{let m=[];return r.document.querySelectorAll("canvas").forEach(f=>{ue(f,s,n,!0)||m.push(f)}),m},l=m=>{if(i&&m-i<d){h=requestAnimationFrame(l);return}i=m,u().forEach(async f=>{var g;let C=this.mirror.getId(f);if(p.get(C)||f.width===0||f.height===0)return;if(p.set(C,!0),["webgl","webgl2"].includes(f.__context)){let S=f.getContext(f.__context);((g=S==null?void 0:S.getContextAttributes())==null?void 0:g.preserveDrawingBuffer)===!1&&S.clear(S.COLOR_BUFFER_BIT)}let w=await createImageBitmap(f);a.postMessage({id:C,bitmap:w,width:f.width,height:f.height,dataURLOptions:o.dataURLOptions},[w])}),h=requestAnimationFrame(l)};h=requestAnimationFrame(l),this.resetObservers=()=>{c(),cancelAnimationFrame(h)}}initCanvasMutationObserver(t,r,s){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let n=ki(t,r,s,!1),o=$u(this.processMutation.bind(this),t,r,s),c=qu(this.processMutation.bind(this),t,r,s);this.resetObservers=()=>{n(),o(),c()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let t=r=>{this.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,r)=>{let s=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,s)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,r){if(this.frozen||this.locked)return;let s=this.pendingCanvasMutations.get(t);if(!s||r===-1)return;let n=s.map(c=>{let{type:p,...a}=c;return a}),{type:o}=s[0];this.mutationCb({id:r,type:o,commands:n}),this.pendingCanvasMutations.delete(t)}},xn=class{constructor(t){T(this,"trackedLinkElements",new WeakSet),T(this,"mutationCb"),T(this,"adoptedStyleSheetCb"),T(this,"styleMirror",new gn),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 s={id:r,styleIds:[]},n=[];for(let o of t){let c;this.styleMirror.has(o)?c=this.styleMirror.getId(o):(c=this.styleMirror.add(o),n.push({styleId:c,rules:Array.from(o.rules||CSSRule,(p,a)=>({rule:$i(p,o.href),index:a}))})),s.styleIds.push(c)}n.length>0&&(s.styles=n),this.adoptedStyleSheetCb(s)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}},En=class{constructor(){T(this,"nodeMap",new WeakMap),T(this,"active",!1)}inOtherBuffer(t,r){let s=this.nodeMap.get(t);return s&&Array.from(s).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(){}},te,Et,fn,Dt=!1;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=((ds=e.contentWindow)==null?void 0:ds.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}var ge=sl();function Oe(e={}){let{emit:t,checkoutEveryNms:r,checkoutEveryNth:s,blockClass:n="rr-block",blockSelector:o=null,ignoreClass:c="rr-ignore",ignoreSelector:p=null,maskTextClass:a="rr-mask",maskTextSelector:d=null,inlineStylesheet:i=!0,maskAllInputs:h,maskInputOptions:u,slimDOMOptions:l,maskInputFn:m,maskTextFn:f,hooks:g,packFn:C,sampling:w={},dataURLOptions:S={},mousemoveWait:E,recordDOM:b=!0,recordCanvas:y=!1,recordCrossOriginIframes:v=!1,recordAfter:x=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:I=!1,collectFonts:R=!1,inlineImages:A=!1,plugins:O,keepIframeSrcFn:M=()=>!1,ignoreCSSAttributes:P=new Set([]),errorHandler:U}=e;xu(U);let k=v?window.parent===window:!0,D=!1;if(!k)try{window.parent.document&&(D=!1)}catch(L){D=!0}if(k&&!t)throw new Error("emit function is required");if(!k&&!D)return()=>{};E!==void 0&&w.mousemove===void 0&&(w.mousemove=E),ge.reset();let _=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}:u!==void 0?u:{password:!0},Y=Gi(l);vu();let H,F=0,ne=L=>{for(let ee of O||[])ee.eventProcessor&&(L=ee.eventProcessor(L));return C&&!D&&(L=C(L)),L};te=(L,ee)=>{var j;let X=L;if(X.timestamp=nt(),(j=De[0])!=null&&j.isFrozen()&&X.type!==q.FullSnapshot&&!(X.type===q.IncrementalSnapshot&&X.data.source===$.Mutation)&&De.forEach(he=>he.unfreeze()),k)t==null||t(ne(X),ee);else if(D){let he={type:"rrweb",event:ne(X),origin:window.location.origin,isCheckout:ee};window.parent.postMessage(he,"*")}if(X.type===q.FullSnapshot)H=X,F=0;else if(X.type===q.IncrementalSnapshot){if(X.data.source===$.Mutation&&X.data.isAttachIframe)return;F++;let he=s&&F>=s,G=r&&X.timestamp-H.timestamp>r;(he||G)&&Et(!0)}};let N=L=>{te({type:q.IncrementalSnapshot,data:{source:$.Mutation,...L}})},K=L=>te({type:q.IncrementalSnapshot,data:{source:$.Scroll,...L}}),z=L=>te({type:q.IncrementalSnapshot,data:{source:$.CanvasMutation,...L}}),ie=L=>te({type:q.IncrementalSnapshot,data:{source:$.AdoptedStyleSheet,...L}}),se=new xn({mutationCb:N,adoptedStyleSheetCb:ie}),ae=new bn({mirror:ge,mutationCb:N,stylesheetManager:se,recordCrossOriginIframes:v,wrappedEmit:te});for(let L of O||[])L.getMirror&&L.getMirror({nodeMirror:ge,crossOriginIframeMirror:ae.crossOriginIframeMirror,crossOriginIframeStyleMirror:ae.crossOriginIframeStyleMirror});let Ce=new En;fn=new Cn({recordCanvas:y,mutationCb:z,win:window,blockClass:n,blockSelector:o,mirror:ge,sampling:w.canvas,dataURLOptions:S});let me=new Sn({mutationCb:N,scrollCb:K,bypassOptions:{blockClass:n,blockSelector:o,maskTextClass:a,maskTextSelector:d,inlineStylesheet:i,maskInputOptions:_,dataURLOptions:S,maskTextFn:f,maskInputFn:m,recordCanvas:y,inlineImages:A,sampling:w,slimDOMOptions:Y,iframeManager:ae,stylesheetManager:se,canvasManager:fn,keepIframeSrcFn:M,processedNodeManager:Ce},mirror:ge});Et=(L=!1)=>{if(!b)return;te({type:q.Meta,data:{href:window.location.href,width:po(),height:ho()}},L),se.reset(),me.init(),De.forEach(j=>j.lock());let ee=Ol(document,{mirror:ge,blockClass:n,blockSelector:o,maskTextClass:a,maskTextSelector:d,inlineStylesheet:i,maskAllInputs:_,maskTextFn:f,maskInputFn:m,slimDOM:Y,dataURLOptions:S,recordCanvas:y,inlineImages:A,onSerialize:j=>{yo(j,ge)&&ae.addIframe(j),vo(j,ge)&&se.trackLinkElement(j),mn(j)&&me.addShadowRoot(B.shadowRoot(j),document)},onIframeLoad:(j,X)=>{ae.attachIframe(j,X),me.observeAttachShadow(j)},onStylesheetLoad:(j,X)=>{se.attachLinkElement(j,X)},keepIframeSrcFn:M});if(!ee)return console.warn("Failed to snapshot the document");te({type:q.FullSnapshot,data:{node:ee,initialOffset:fo(window)}},L),De.forEach(j=>j.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&se.adoptStyleSheets(document.adoptedStyleSheets,ge.getId(document))};try{let L=[],ee=X=>{var he;return W(Fu)({mutationCb:N,mousemoveCb:(G,Jt)=>te({type:q.IncrementalSnapshot,data:{source:Jt,positions:G}}),mouseInteractionCb:G=>te({type:q.IncrementalSnapshot,data:{source:$.MouseInteraction,...G}}),scrollCb:K,viewportResizeCb:G=>te({type:q.IncrementalSnapshot,data:{source:$.ViewportResize,...G}}),inputCb:G=>te({type:q.IncrementalSnapshot,data:{source:$.Input,...G}}),mediaInteractionCb:G=>te({type:q.IncrementalSnapshot,data:{source:$.MediaInteraction,...G}}),styleSheetRuleCb:G=>te({type:q.IncrementalSnapshot,data:{source:$.StyleSheetRule,...G}}),styleDeclarationCb:G=>te({type:q.IncrementalSnapshot,data:{source:$.StyleDeclaration,...G}}),canvasMutationCb:z,fontCb:G=>te({type:q.IncrementalSnapshot,data:{source:$.Font,...G}}),selectionCb:G=>{te({type:q.IncrementalSnapshot,data:{source:$.Selection,...G}})},customElementCb:G=>{te({type:q.IncrementalSnapshot,data:{source:$.CustomElement,...G}})},blockClass:n,ignoreClass:c,ignoreSelector:p,maskTextClass:a,maskTextSelector:d,maskInputOptions:_,inlineStylesheet:i,sampling:w,recordDOM:b,recordCanvas:y,inlineImages:A,userTriggeredOnInput:I,collectFonts:R,doc:X,maskInputFn:m,maskTextFn:f,keepIframeSrcFn:M,blockSelector:o,slimDOMOptions:Y,dataURLOptions:S,mirror:ge,iframeManager:ae,stylesheetManager:se,shadowDomManager:me,processedNodeManager:Ce,canvasManager:fn,ignoreCSSAttributes:P,plugins:((he=O==null?void 0:O.filter(G=>G.observer))==null?void 0:he.map(G=>({observer:G.observer,options:G.options,callback:Jt=>te({type:q.Plugin,data:{plugin:G.name,payload:Jt}})})))||[]},g)};ae.addLoadListener(X=>{try{L.push(ee(X.contentDocument))}catch(he){console.warn(he)}});let j=()=>{Et(),L.push(ee(document)),Dt=!0};return["interactive","complete"].includes(document.readyState)?j():(L.push(le("DOMContentLoaded",()=>{te({type:q.DomContentLoaded,data:{}}),x==="DOMContentLoaded"&&j()})),L.push(le("load",()=>{te({type:q.Load,data:{}}),x==="load"&&j()},window))),()=>{L.forEach(X=>{try{X()}catch(he){String(he).toLowerCase().includes("cross-origin")||console.warn(he)}}),Ce.destroy(),Dt=!1,Eu()}}catch(L){console.warn(L)}}Oe.addCustomEvent=(e,t)=>{if(!Dt)throw new Error("please add custom event after start recording");te({type:q.Custom,data:{tag:e,payload:t}})};Oe.freezePage=()=>{De.forEach(e=>e.freeze())};Oe.takeFullSnapshot=e=>{if(!Dt)throw new Error("please take full snapshot after start recording");Et(e)};Oe.mirror=ge;var Pi;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Pi||(Pi={}));var Sc=5*1e3;var{addCustomEvent:Cc}=Oe,{freezePage:xc}=Oe,{takeFullSnapshot:Ec}=Oe;function Ao(e,t={}){var s;let r=Oe({emit(n){e({type:"replay",ts:Date.now(),data:n})},maskAllInputs:(s=t.maskAllInputs)!=null?s:!0,maskTextSelector:t.maskTextSelector,blockSelector:t.blockSelector,sampling:{mousemove:50,scroll:150,input:"last"},checkoutEveryNms:3e4});return()=>r==null?void 0:r()}function To(e){let t=s=>{var n,o,c,p;e({type:"error",ts:Date.now(),source:"error",name:(o=(n=s.error)==null?void 0:n.name)!=null?o:"Error",message:(c=s.message)!=null?c:String(s.error),stack:(p=s.error)==null?void 0:p.stack})},r=s=>{var o,c;let n=s.reason;e({type:"error",ts:Date.now(),source:"unhandledrejection",name:(o=n==null?void 0:n.name)!=null?o:"UnhandledRejection",message:(c=n==null?void 0:n.message)!=null?c:String(n),stack:n==null?void 0:n.stack})};return addEventListener("error",t),addEventListener("unhandledrejection",r),()=>{removeEventListener("error",t),removeEventListener("unhandledrejection",r)}}var Do=512e3;function ko(e,t={}){var b;let r=(b=t.ignoreUrls)!=null?b:[],s=t.captureBodies!==!1,{maskUrl:n,maskHeaders:o,maskBody:c,truncate:p,isMaskedKey:a}=Ue(t),d=y=>typeof y=="string"&&r.some(v=>typeof v=="string"?y.includes(v):v.test(y)),i=y=>{let v={};if(!y)return v;if(typeof Headers!="undefined"&&y instanceof Headers)y.forEach((x,I)=>v[I]=x);else if(Array.isArray(y))for(let x of y)x&&x.length>=2&&(v[String(x[0])]=String(x[1]));else if(typeof y=="object")for(let[x,I]of Object.entries(y))v[x]=String(I);return v},h=y=>!!y&&/(json|text|xml|javascript|x-www-form-urlencoded|html)/i.test(y),u=y=>!!y&&/event-stream/i.test(y),l=y=>{let v={};if(!y)return v;for(let x of y.trim().split(/[\r\n]+/)){let I=x.indexOf(":");I>0&&(v[x.slice(0,I).trim()]=x.slice(I+1).trim())}return v},m=y=>{let v=[];return y.forEach((x,I)=>{typeof x=="string"?v.push(`${I}=${a(I)?Ke:x}`):v.push(`${I}=[file ${x.name||"blob"} ${x.size}B]`)}),v.join("&")},f=(y,v)=>{var I;let x=v==null?void 0:v.body;if(typeof x=="string")return{text:x,size:x.length};if(typeof URLSearchParams!="undefined"&&x instanceof URLSearchParams){let R=x.toString();return{text:R,size:R.length}}if(typeof FormData!="undefined"&&x instanceof FormData){let R=m(x);return{text:R,size:R.length,premasked:!0}}if(typeof Blob!="undefined"&&x instanceof Blob)return{size:x.size};if(typeof ArrayBuffer!="undefined"){if(x instanceof ArrayBuffer)return{size:x.byteLength};if(ArrayBuffer.isView(x))return{size:x.byteLength}}if(x==null&&typeof Request!="undefined"&&y instanceof Request){let R=y.method.toUpperCase();if(R!=="GET"&&R!=="HEAD"&&!y.bodyUsed){let A=(I=y.headers.get("content-type"))!=null?I:void 0;try{if(A&&/multipart\/form-data/i.test(A))return{textPromise:y.clone().formData().then(m).catch(()=>{}),premasked:!0};if(h(A))return{textPromise:y.clone().text().catch(()=>{})}}catch(O){}}}return{}},g=async y=>{let v=y.body;if(!v||typeof v.getReader!="function"){let O=await y.text();return{text:O,bytes:O.length,complete:!0}}let x=v.getReader(),I=new TextDecoder,R="",A=0;for(;;){let{done:O,value:M}=await x.read();if(O)return{text:R+I.decode(),bytes:A,complete:!0};if(A+=M.byteLength,R+=I.decode(M,{stream:!0}),A>=Do)return x.cancel().catch(()=>{}),{text:R,bytes:A,complete:!1}}},C=window.fetch;window.fetch=async function(...y){var O,M,P,U,k;let v=Date.now(),x=y[0],I=typeof x=="string"?x:x instanceof URL?x.href:x instanceof Request?x.url:String(x),R=((M=(O=y[1])==null?void 0:O.method)!=null?M:x instanceof Request?x.method:"GET").toUpperCase(),A={};if(s&&!d(I))try{A=f(x,y[1])}catch(D){A={}}try{let D=await C.apply(this,y);try{if(!d(I)){let _={type:"network",ts:v,method:R,url:n(I),status:D.status,durationMs:Date.now()-v,initiator:"fetch"};if(!s)e(_);else{let Y=(U=(P=y[1])==null?void 0:P.headers)!=null?U:x instanceof Request?x.headers:void 0;_.reqHeaders=o(i(Y)),_.resHeaders=o(i(D.headers));let H=(k=D.headers.get("content-type"))!=null?k:void 0;H&&(_.contentType=H);let F=Number(D.headers.get("content-length"));Number.isFinite(F)&&(_.resSize=F);let ne=null;h(H)&&!u(H)&&!(Number.isFinite(F)&&F>Do)&&(ne=g(D.clone())),(async()=>{var N,K;try{let z=(N=A.text)!=null?N:A.textPromise?await A.textPromise:void 0;if(z?(_.reqBody=A.premasked?p(z):c(z),_.reqSize=(K=A.size)!=null?K:z.length):A.size!=null&&(_.reqSize=A.size),ne){let ie=await ne;ie.text&&(_.resBody=c(ie.text)),Number.isFinite(F)||(_.resSize=ie.bytes)}}catch(z){}e(_)})()}}}catch(_){}return D}catch(D){try{d(I)||e({type:"network",ts:v,method:R,url:n(I),status:0,durationMs:Date.now()-v,initiator:"fetch"})}catch(_){}throw D}};let w=XMLHttpRequest.prototype.open,S=XMLHttpRequest.prototype.send,E=XMLHttpRequest.prototype.setRequestHeader;return XMLHttpRequest.prototype.open=function(y,v,...x){return this.__iris={method:String(y).toUpperCase(),url:String(v),start:0,reqHeaders:{},reqBody:void 0,reqSize:void 0,premasked:!1},w.apply(this,[y,v,...x])},XMLHttpRequest.prototype.setRequestHeader=function(y,v){let x=this.__iris;return x&&(x.reqHeaders[y]=v),E.apply(this,[y,v])},XMLHttpRequest.prototype.send=function(...y){let v=this.__iris;if(v){v.start=Date.now();let x=y[0];typeof x=="string"?(v.reqBody=x,v.reqSize=x.length):typeof URLSearchParams!="undefined"&&x instanceof URLSearchParams?(v.reqBody=x.toString(),v.reqSize=v.reqBody.length):typeof FormData!="undefined"&&x instanceof FormData?(v.reqBody=m(x),v.reqSize=v.reqBody.length,v.premasked=!0):typeof Blob!="undefined"&&x instanceof Blob?v.reqSize=x.size:(typeof ArrayBuffer!="undefined"&&x instanceof ArrayBuffer||typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView(x))&&(v.reqSize=x.byteLength),this.addEventListener("loadend",()=>{var I;try{if(d(v.url))return;let R={type:"network",ts:v.start,method:v.method,url:n(v.url),status:this.status,durationMs:Date.now()-v.start,initiator:"xhr"};if(s){R.reqHeaders=o(v.reqHeaders),R.resHeaders=o(l(this.getAllResponseHeaders()));let A=(I=this.getResponseHeader("content-type"))!=null?I:void 0;A&&(R.contentType=A),v.reqBody!=null&&(R.reqBody=v.premasked?p(v.reqBody):c(v.reqBody)),v.reqSize!=null&&(R.reqSize=v.reqSize);let O=this.responseType;if(O===""||O==="text")try{let M=this.responseText;M&&(R.resBody=c(M),R.resSize=M.length)}catch(M){}else if(O==="json")try{let M=this.response;if(M!=null){let P=JSON.stringify(M);R.resBody=c(P),R.resSize=P.length}}catch(M){}else if(O==="arraybuffer"){let M=this.response;M&&(R.resSize=M.byteLength)}else if(O==="blob"){let M=this.response;M&&(R.resSize=M.size)}}e(R)}catch(R){}})}return S.apply(this,y)},()=>{window.fetch=C,XMLHttpRequest.prototype.open=w,XMLHttpRequest.prototype.send=S,XMLHttpRequest.prototype.setRequestHeader=E}}var Vu=200,Hu=2e3,_o=0;function Lo(e,t={},r=!1){var S,E,b,y;let s=Ue(t),n=(S=t.wsMaxFrames)!=null?S:Vu,o=(E=t.wsMaxFrameChars)!=null?E:Hu,c=new Set((b=t.wsFrameTypes)!=null?b:["text","binary"]),p=(y=t.ignoreUrls)!=null?y:[],a=v=>{let x=v.trim();if(!x.startsWith("{")&&!x.startsWith("["))return!1;try{return JSON.parse(x),!0}catch(I){return!1}},d=v=>typeof v=="string"?c.has("text")?!0:c.has("json")?a(v):!1:c.has("binary"),i=v=>typeof v=="string"&&p.some(x=>typeof x=="string"?v.includes(x):x.test(v)),h=v=>{try{e(v)}catch(x){}},u=(...v)=>{r&&console.debug("[iris]",...v)},l=v=>{if(typeof v=="string")return{data:s.maskBody(v,o),size:v.length};if(typeof Blob!="undefined"&&v instanceof Blob)return{binary:!0,size:v.size};if(typeof ArrayBuffer!="undefined"){if(v instanceof ArrayBuffer)return{binary:!0,size:v.byteLength};if(ArrayBuffer.isView(v))return{binary:!0,size:v.byteLength}}return{}},m=window.WebSocket,f=!1,g;if(typeof m=="function"){f=!0;class v extends m{constructor(R,A){super(R,A);try{let O=typeof R=="string"?R:String(R);if(i(O))return;let M=`ws${++_o}`,P={sent:0,recv:0,dropped:0};this.__iris={connId:M,budget:P},h({type:"ws",ts:Date.now(),connId:M,op:"open",transport:"websocket",url:s.maskUrl(O)}),this.addEventListener("message",U=>{if(d(U.data)){if(P.recv>=n){P.dropped++;return}P.recv++,h({type:"ws",ts:Date.now(),connId:M,op:"message",transport:"websocket",...l(U.data)})}}),this.addEventListener("close",U=>{h({type:"ws",ts:Date.now(),connId:M,op:"close",transport:"websocket",code:U.code,reason:U.reason||void 0,dropped:P.dropped||void 0}),u(`ws ${M} closed (${U.code}) \u2014 frames \u2191${P.sent} \u2193${P.recv}, dropped ${P.dropped}`)}),this.addEventListener("error",()=>{h({type:"ws",ts:Date.now(),connId:M,op:"error",transport:"websocket"})})}catch(O){}}}g=m.prototype.send;let x=g;m.prototype.send=function(I){try{let R=this.__iris;R&&d(I)&&(R.budget.sent>=n?R.budget.dropped++:(R.budget.sent++,h({type:"ws",ts:Date.now(),connId:R.connId,op:"send",transport:"websocket",...l(I)})))}catch(R){}return x.call(this,I)},window.WebSocket=v}let C=window.EventSource,w=!1;if(typeof C=="function"){w=!0;class v extends C{constructor(I,R){super(I,R);try{let A=typeof I=="string"?I:String(I);if(i(A))return;let O=`es${++_o}`,M={recv:0,dropped:0},P=(k,D)=>{if(d(k.data)){if(M.recv>=n){M.dropped++;return}M.recv++,h({type:"ws",ts:Date.now(),connId:O,op:"message",transport:"eventsource",...D?{event:D}:{},...l(k.data)})}};this.__iris={record:P,mirrored:new Set},h({type:"ws",ts:Date.now(),connId:O,op:"open",transport:"eventsource",url:s.maskUrl(A)}),super.addEventListener("message",k=>P(k)),super.addEventListener("error",()=>{h({type:"ws",ts:Date.now(),connId:O,op:"error",transport:"eventsource"})});let U=this.close.bind(this);this.close=()=>{try{h({type:"ws",ts:Date.now(),connId:O,op:"close",transport:"eventsource",dropped:M.dropped||void 0}),u(`es ${O} closed \u2014 frames \u2193${M.recv}, dropped ${M.dropped}`)}catch(k){}U()}}catch(A){}}addEventListener(I,R,A){try{let O=this.__iris;O&&I!=="message"&&I!=="error"&&I!=="open"&&!O.mirrored.has(I)&&(O.mirrored.add(I),super.addEventListener(I,(M=>O.record(M,I))))}catch(O){}super.addEventListener(I,R,A)}}window.EventSource=v}return()=>{f&&(window.WebSocket=m,g&&(m.prototype.send=g)),w&&(window.EventSource=C)}}var Po=["log","info","warn","error","debug"],Gu=e=>typeof e[0]=="string"&&e[0].startsWith("[iris]");function Fo(e,t={}){let r=t.captureIrisLogs===!0,s={};for(let n of Po)s[n]=console[n].bind(console),console[n]=(...o)=>{try{(r||!Gu(o))&&e({type:"console",ts:Date.now(),level:n,args:o.map(Yu)})}catch(c){}s[n](...o)};return()=>{for(let n of Po)s[n]&&(console[n]=s[n])}}function Yu(e){if(typeof e=="string")return e;try{return JSON.stringify(e)}catch(t){return String(e)}}var jn;var Vo=-1,Ge=function(e){addEventListener("pageshow",(function(t){t.persisted&&(Vo=t.timeStamp,e(t))}),!0)},Vn=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},Gt=function(){var e=Vn();return e&&e.activationStart||0},be=function(e,t){var r=Vn(),s="navigate";return Vo>=0?s="back-forward-cache":r&&(document.prerendering||Gt()>0?s="prerender":document.wasDiscarded?s="restore":r.type&&(s=r.type.replace(/_/g,"-"))),{name:e,value:t===void 0?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:s}},lt=function(e,t,r){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var s=new PerformanceObserver((function(n){Promise.resolve().then((function(){t(n.getEntries())}))}));return s.observe(Object.assign({type:e,buffered:!0},r||{})),s}}catch(n){}},Se=function(e,t,r,s){var n,o;return function(c){t.value>=0&&(c||s)&&((o=t.value-(n||0))||n===void 0)&&(n=t.value,t.delta=o,t.rating=(function(p,a){return p>a[1]?"poor":p>a[0]?"needs-improvement":"good"})(t.value,r),e(t))}},Hn=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},Yt=function(e){document.addEventListener("visibilitychange",(function(){document.visibilityState==="hidden"&&e()}))},Gn=function(e){var t=!1;return function(){t||(e(),t=!0)}},He=-1,Uo=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},Ht=function(e){document.visibilityState==="hidden"&&He>-1&&(He=e.type==="visibilitychange"?e.timeStamp:0,Xu())},Bo=function(){addEventListener("visibilitychange",Ht,!0),addEventListener("prerenderingchange",Ht,!0)},Xu=function(){removeEventListener("visibilitychange",Ht,!0),removeEventListener("prerenderingchange",Ht,!0)},Ho=function(){return He<0&&(He=Uo(),Bo(),Ge((function(){setTimeout((function(){He=Uo(),Bo()}),0)}))),{get firstHiddenTime(){return He}}},Xt=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},zo=[1800,3e3],Yn=function(e,t){t=t||{},Xt((function(){var r,s=Ho(),n=be("FCP"),o=lt("paint",(function(c){c.forEach((function(p){p.name==="first-contentful-paint"&&(o.disconnect(),p.startTime<s.firstHiddenTime&&(n.value=Math.max(p.startTime-Gt(),0),n.entries.push(p),r(!0)))}))}));o&&(r=Se(e,n,zo,t.reportAllChanges),Ge((function(c){n=be("FCP"),r=Se(e,n,zo,t.reportAllChanges),Hn((function(){n.value=performance.now()-c.timeStamp,r(!0)}))})))}))},$o=[.1,.25],Go=function(e,t){t=t||{},Yn(Gn((function(){var r,s=be("CLS",0),n=0,o=[],c=function(a){a.forEach((function(d){if(!d.hadRecentInput){var i=o[0],h=o[o.length-1];n&&d.startTime-h.startTime<1e3&&d.startTime-i.startTime<5e3?(n+=d.value,o.push(d)):(n=d.value,o=[d])}})),n>s.value&&(s.value=n,s.entries=o,r())},p=lt("layout-shift",c);p&&(r=Se(e,s,$o,t.reportAllChanges),Yt((function(){c(p.takeRecords()),r(!0)})),Ge((function(){n=0,s=be("CLS",0),r=Se(e,s,$o,t.reportAllChanges),Hn((function(){return r()}))})),setTimeout(r,0))})))},Yo=0,Wn=1/0,jt=0,Ju=function(e){e.forEach((function(t){t.interactionId&&(Wn=Math.min(Wn,t.interactionId),jt=Math.max(jt,t.interactionId),Yo=jt?(jt-Wn)/7+1:0)}))},Xo=function(){return jn?Yo:performance.interactionCount||0},Ku=function(){"interactionCount"in performance||jn||(jn=lt("event",Ju,{type:"event",buffered:!0,durationThreshold:0}))},we=[],Vt=new Map,Jo=0,Zu=function(){var e=Math.min(we.length-1,Math.floor((Xo()-Jo)/50));return we[e]},Qu=[],ec=function(e){if(Qu.forEach((function(n){return n(e)})),e.interactionId||e.entryType==="first-input"){var t=we[we.length-1],r=Vt.get(e.interactionId);if(r||we.length<10||e.duration>t.latency){if(r)e.duration>r.latency?(r.entries=[e],r.latency=e.duration):e.duration===r.latency&&e.startTime===r.entries[0].startTime&&r.entries.push(e);else{var s={id:e.interactionId,latency:e.duration,entries:[e]};Vt.set(s.id,s),we.push(s)}we.sort((function(n,o){return o.latency-n.latency})),we.length>10&&we.splice(10).forEach((function(n){return Vt.delete(n.id)}))}}},Ko=function(e){var t=self.requestIdleCallback||self.setTimeout,r=-1;return e=Gn(e),document.visibilityState==="hidden"?e():(r=t(e),Yt(e)),r},Wo=[200,500],Zo=function(e,t){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(t=t||{},Xt((function(){var r;Ku();var s,n=be("INP"),o=function(p){Ko((function(){p.forEach(ec);var a=Zu();a&&a.latency!==n.value&&(n.value=a.latency,n.entries=a.entries,s())}))},c=lt("event",o,{durationThreshold:(r=t.durationThreshold)!==null&&r!==void 0?r:40});s=Se(e,n,Wo,t.reportAllChanges),c&&(c.observe({type:"first-input",buffered:!0}),Yt((function(){o(c.takeRecords()),s(!0)})),Ge((function(){Jo=Xo(),we.length=0,Vt.clear(),n=be("INP"),s=Se(e,n,Wo,t.reportAllChanges)})))})))},qo=[2500,4e3],qn={},Qo=function(e,t){t=t||{},Xt((function(){var r,s=Ho(),n=be("LCP"),o=function(a){t.reportAllChanges||(a=a.slice(-1)),a.forEach((function(d){d.startTime<s.firstHiddenTime&&(n.value=Math.max(d.startTime-Gt(),0),n.entries=[d],r())}))},c=lt("largest-contentful-paint",o);if(c){r=Se(e,n,qo,t.reportAllChanges);var p=Gn((function(){qn[n.id]||(o(c.takeRecords()),c.disconnect(),qn[n.id]=!0,r(!0))}));["keydown","click"].forEach((function(a){addEventListener(a,(function(){return Ko(p)}),{once:!0,capture:!0})})),Yt(p),Ge((function(a){n=be("LCP"),r=Se(e,n,qo,t.reportAllChanges),Hn((function(){n.value=performance.now()-a.timeStamp,qn[n.id]=!0,r(!0)}))}))}}))},jo=[800,1800],tc=function e(t){document.prerendering?Xt((function(){return e(t)})):document.readyState!=="complete"?addEventListener("load",(function(){return e(t)}),!0):setTimeout(t,0)},ea=function(e,t){t=t||{};var r=be("TTFB"),s=Se(e,r,jo,t.reportAllChanges);tc((function(){var n=Vn();n&&(r.value=Math.max(n.responseStart-Gt(),0),r.entries=[n],s(!0),Ge((function(){r=be("TTFB",0),(s=Se(e,r,jo,t.reportAllChanges))(!0)})))}))};function ta(e){let t=r=>s=>{e({type:"vital",ts:Date.now(),metric:r,value:s.value,rating:s.rating})};Qo(t("LCP")),Go(t("CLS")),Zo(t("INP")),Yn(t("FCP")),ea(t("TTFB"))}function ra(e){let t=location.href,r=()=>{try{let o=location.href;if(o===t)return;let c=t;t=o,e({type:"navigation",ts:Date.now(),from:c,to:o})}catch(o){}},s=history.pushState,n=history.replaceState;return history.pushState=function(...o){let c=s.apply(this,o);return r(),c},history.replaceState=function(...o){let c=n.apply(this,o);return r(),c},addEventListener("popstate",r),addEventListener("hashchange",r),()=>{history.pushState=s,history.replaceState=n,removeEventListener("popstate",r),removeEventListener("hashchange",r)}}function na(e,t={}){var g,C,w,S,E;let r=(g=t.rageThreshold)!=null?g:3,s=(C=t.rageWindowMs)!=null?C:1e3,n=(w=t.rageRadiusPx)!=null?w:30,o=(S=t.deadWindowMs)!=null?S:2500,c=(E=t.errorWindowMs)!=null?E:2500,p=0,a=0,d=0,i=[],h=()=>{p=Date.now()},u=new MutationObserver(h);u.observe(document,{subtree:!0,childList:!0,attributes:!0,characterData:!0}),addEventListener("scroll",h,!0);let l=()=>{a=Date.now()};addEventListener("error",l,!0),addEventListener("unhandledrejection",l,!0);let m=(b,y,v,x,I,R)=>{e({type:"click",ts:y,kind:b,selector:rc(v),text:nc(v),x,y:I,...R?{count:R}:{}})},f=b=>{try{let y=Date.now(),v=b.clientX,x=b.clientY,I=b.target;for(;i.length&&y-i[0].t>s;)i.shift();let R=i.filter(P=>Math.hypot(P.x-v,P.y-x)<=n).length;if(i.push({x:v,y:x,t:y}),R+1>=r&&(d=y,m("rage",y,I,v,x,R+1),i.length=0),R>0)return;let A=a;if(setTimeout(()=>{a>A&&m("error",y,I,v,x)},c),!sc(I))return;let O=p,M=location.href;setTimeout(()=>{let P=p>O||location.href!==M,U=a>A;!P&&!U&&d<y&&m("dead",y,I,v,x)},o)}catch(y){}};return addEventListener("click",f,!0),()=>{u.disconnect(),removeEventListener("scroll",h,!0),removeEventListener("error",l,!0),removeEventListener("unhandledrejection",l,!0),removeEventListener("click",f,!0)}}function rc(e){var s;if(!e||!e.tagName)return"unknown";let t=e.tagName.toLowerCase();e.id&&(t+=`#${e.id}`);let r=((s=e.getAttribute("class"))!=null?s:"").trim().split(/\s+/).filter(Boolean)[0];return r&&(t+=`.${r}`),t}function nc(e){var t;if(e)try{if(e.closest(".twc-mask, .twc-block"))return;let r=e.getAttribute("aria-label"),s=((t=r!=null?r:e.textContent)!=null?t:"").replace(/\s+/g," ").trim();return s?s.length>50?`${s.slice(0,50)}\u2026`:s:void 0}catch(r){return}}function sc(e){if(!e||e.closest("input, textarea, select, label"))return!1;if(e.closest('a, button, [role="button"], [onclick]'))return!0;try{return getComputedStyle(e).cursor==="pointer"}catch(t){return!1}}function ic(e){var c,p;let t=Jn(e.release,(c=e.user)!=null?c:e.userId),r=new dt({endpoint:e.endpoint,projectKey:e.projectKey,meta:t,debug:e.debug}),s=r.push.bind(r),n=[],o=e.track===!1?()=>{}:hs(s,typeof e.network=="object"?e.network:{},typeof e.track=="object"?e.track:{});if(e.replay!==!1&&n.push(Ao(s,{maskAllInputs:(p=e.maskAllInputs)!=null?p:!0,maskTextSelector:e.maskTextSelector,blockSelector:e.blockSelector})),e.errors!==!1&&n.push(To(s)),e.console!==!1&&n.push(Fo(s,typeof e.console=="object"?e.console:{})),e.navigation!==!1&&n.push(ra(s)),e.frustration!==!1&&n.push(na(s)),e.vitals!==!1&&ta(s),e.network!==!1){let a={ignoreUrls:[`${e.endpoint}/v1/ingest`],...typeof e.network=="object"?e.network:{}};n.push(ko(s,a)),a.captureWebSockets!==!1&&n.push(Lo(s,a,e.debug))}return e.debug&&console.debug("[iris] recording",t.sessionId,"\u2192",e.endpoint),{sessionId:t.sessionId,identify:a=>r.identify(a),track:o,flush:()=>r.flush(!1),stop:()=>{n.forEach(a=>a()),r.stop()}}}return fa(oc);})();
134
+ `,Ui=typeof self!="undefined"&&self.Blob&&new Blob([To],{type:"text/javascript;charset=utf-8"});function Yu(e){let t;try{if(t=Ui&&(self.URL||self.webkitURL).createObjectURL(Ui),!t)throw"";let r=new Worker(t,{name:e==null?void 0:e.name});return r.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),r}catch(r){return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(To),{name:e==null?void 0:e.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}var Mn=class{constructor(t){D(this,"pendingCanvasMutations",new Map),D(this,"rafStamps",{latestId:0,invokeId:null}),D(this,"mirror"),D(this,"mutationCb"),D(this,"resetObservers"),D(this,"frozen",!1),D(this,"locked",!1),D(this,"processMutation",(a,d)=>{(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(d)});let{sampling:r="all",win:s,blockClass:n,blockSelector:o,recordCanvas:c,dataURLOptions:p}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,c&&r==="all"&&this.initCanvasMutationObserver(s,n,o),c&&typeof r=="number"&&this.initCanvasFPSObserver(r,s,n,o,{dataURLOptions:p})}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,s,n,o){let c=Pi(r,s,n,!0),p=new Map,a=new Yu;a.onmessage=m=>{let{id:f}=m.data;if(p.set(f,!1),!("base64"in m.data))return;let{base64:g,type:C,width:w,height:S}=m.data;this.mutationCb({id:f,type:Ve["2D"],commands:[{property:"clearRect",args:[0,0,w,S]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:g}],type:C}]},0,0]}]})};let d=1e3/t,i=0,h,u=()=>{let m=[];return r.document.querySelectorAll("canvas").forEach(f=>{ue(f,s,n,!0)||m.push(f)}),m},l=m=>{if(i&&m-i<d){h=requestAnimationFrame(l);return}i=m,u().forEach(async f=>{var g;let C=this.mirror.getId(f);if(p.get(C)||f.width===0||f.height===0)return;if(p.set(C,!0),["webgl","webgl2"].includes(f.__context)){let S=f.getContext(f.__context);((g=S==null?void 0:S.getContextAttributes())==null?void 0:g.preserveDrawingBuffer)===!1&&S.clear(S.COLOR_BUFFER_BIT)}let w=await createImageBitmap(f);a.postMessage({id:C,bitmap:w,width:f.width,height:f.height,dataURLOptions:o.dataURLOptions},[w])}),h=requestAnimationFrame(l)};h=requestAnimationFrame(l),this.resetObservers=()=>{c(),cancelAnimationFrame(h)}}initCanvasMutationObserver(t,r,s){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let n=Pi(t,r,s,!1),o=Vu(this.processMutation.bind(this),t,r,s),c=Gu(this.processMutation.bind(this),t,r,s);this.resetObservers=()=>{n(),o(),c()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let t=r=>{this.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,r)=>{let s=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,s)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,r){if(this.frozen||this.locked)return;let s=this.pendingCanvasMutations.get(t);if(!s||r===-1)return;let n=s.map(c=>{let{type:p,...a}=c;return a}),{type:o}=s[0];this.mutationCb({id:r,type:o,commands:n}),this.pendingCanvasMutations.delete(t)}},Rn=class{constructor(t){D(this,"trackedLinkElements",new WeakSet),D(this,"mutationCb"),D(this,"adoptedStyleSheetCb"),D(this,"styleMirror",new wn),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 s={id:r,styleIds:[]},n=[];for(let o of t){let c;this.styleMirror.has(o)?c=this.styleMirror.getId(o):(c=this.styleMirror.add(o),n.push({styleId:c,rules:Array.from(o.rules||CSSRule,(p,a)=>({rule:ji(p,o.href),index:a}))})),s.styleIds.push(c)}n.length>0&&(s.styles=n),this.adoptedStyleSheetCb(s)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}},In=class{constructor(){D(this,"nodeMap",new WeakMap),D(this,"active",!1)}inOtherBuffer(t,r){let s=this.nodeMap.get(t);return s&&Array.from(s).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(){}},te,Et,pn,Tt=!1;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=((gs=e.contentWindow)==null?void 0:gs.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}var ge=ll();function Oe(e={}){let{emit:t,checkoutEveryNms:r,checkoutEveryNth:s,blockClass:n="rr-block",blockSelector:o=null,ignoreClass:c="rr-ignore",ignoreSelector:p=null,maskTextClass:a="rr-mask",maskTextSelector:d=null,inlineStylesheet:i=!0,maskAllInputs:h,maskInputOptions:u,slimDOMOptions:l,maskInputFn:m,maskTextFn:f,hooks:g,packFn:C,sampling:w={},dataURLOptions:S={},mousemoveWait:E,recordDOM:b=!0,recordCanvas:y=!1,recordCrossOriginIframes:v=!1,recordAfter:x=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:I=!1,collectFonts:R=!1,inlineImages:A=!1,plugins:O,keepIframeSrcFn:M=()=>!1,ignoreCSSAttributes:P=new Set([]),errorHandler:U}=e;Iu(U);let k=v?window.parent===window:!0,T=!1;if(!k)try{window.parent.document&&(T=!1)}catch(L){T=!0}if(k&&!t)throw new Error("emit function is required");if(!k&&!T)return()=>{};E!==void 0&&w.mousemove===void 0&&(w.mousemove=E),ge.reset();let _=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}:u!==void 0?u:{password:!0},Y=Ji(l);Cu();let H,F=0,ne=L=>{for(let ee of O||[])ee.eventProcessor&&(L=ee.eventProcessor(L));return C&&!T&&(L=C(L)),L};te=(L,ee)=>{var j;let X=L;if(X.timestamp=nt(),(j=Te[0])!=null&&j.isFrozen()&&X.type!==q.FullSnapshot&&!(X.type===q.IncrementalSnapshot&&X.data.source===$.Mutation)&&Te.forEach(he=>he.unfreeze()),k)t==null||t(ne(X),ee);else if(T){let he={type:"rrweb",event:ne(X),origin:window.location.origin,isCheckout:ee};window.parent.postMessage(he,"*")}if(X.type===q.FullSnapshot)H=X,F=0;else if(X.type===q.IncrementalSnapshot){if(X.data.source===$.Mutation&&X.data.isAttachIframe)return;F++;let he=s&&F>=s,G=r&&X.timestamp-H.timestamp>r;(he||G)&&Et(!0)}};let N=L=>{te({type:q.IncrementalSnapshot,data:{source:$.Mutation,...L}})},K=L=>te({type:q.IncrementalSnapshot,data:{source:$.Scroll,...L}}),z=L=>te({type:q.IncrementalSnapshot,data:{source:$.CanvasMutation,...L}}),ie=L=>te({type:q.IncrementalSnapshot,data:{source:$.AdoptedStyleSheet,...L}}),se=new Rn({mutationCb:N,adoptedStyleSheetCb:ie}),ae=new xn({mirror:ge,mutationCb:N,stylesheetManager:se,recordCrossOriginIframes:v,wrappedEmit:te});for(let L of O||[])L.getMirror&&L.getMirror({nodeMirror:ge,crossOriginIframeMirror:ae.crossOriginIframeMirror,crossOriginIframeStyleMirror:ae.crossOriginIframeStyleMirror});let Ce=new In;pn=new Mn({recordCanvas:y,mutationCb:z,win:window,blockClass:n,blockSelector:o,mirror:ge,sampling:w.canvas,dataURLOptions:S});let me=new En({mutationCb:N,scrollCb:K,bypassOptions:{blockClass:n,blockSelector:o,maskTextClass:a,maskTextSelector:d,inlineStylesheet:i,maskInputOptions:_,dataURLOptions:S,maskTextFn:f,maskInputFn:m,recordCanvas:y,inlineImages:A,sampling:w,slimDOMOptions:Y,iframeManager:ae,stylesheetManager:se,canvasManager:pn,keepIframeSrcFn:M,processedNodeManager:Ce},mirror:ge});Et=(L=!1)=>{if(!b)return;te({type:q.Meta,data:{href:window.location.href,width:yo(),height:go()}},L),se.reset(),me.init(),Te.forEach(j=>j.lock());let ee=Tl(document,{mirror:ge,blockClass:n,blockSelector:o,maskTextClass:a,maskTextSelector:d,inlineStylesheet:i,maskAllInputs:_,maskTextFn:f,maskInputFn:m,slimDOM:Y,dataURLOptions:S,recordCanvas:y,inlineImages:A,onSerialize:j=>{bo(j,ge)&&ae.addIframe(j),So(j,ge)&&se.trackLinkElement(j),vn(j)&&me.addShadowRoot(B.shadowRoot(j),document)},onIframeLoad:(j,X)=>{ae.attachIframe(j,X),me.observeAttachShadow(j)},onStylesheetLoad:(j,X)=>{se.attachLinkElement(j,X)},keepIframeSrcFn:M});if(!ee)return console.warn("Failed to snapshot the document");te({type:q.FullSnapshot,data:{node:ee,initialOffset:mo(window)}},L),Te.forEach(j=>j.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&se.adoptStyleSheets(document.adoptedStyleSheets,ge.getId(document))};try{let L=[],ee=X=>{var he;return W($u)({mutationCb:N,mousemoveCb:(G,Jt)=>te({type:q.IncrementalSnapshot,data:{source:Jt,positions:G}}),mouseInteractionCb:G=>te({type:q.IncrementalSnapshot,data:{source:$.MouseInteraction,...G}}),scrollCb:K,viewportResizeCb:G=>te({type:q.IncrementalSnapshot,data:{source:$.ViewportResize,...G}}),inputCb:G=>te({type:q.IncrementalSnapshot,data:{source:$.Input,...G}}),mediaInteractionCb:G=>te({type:q.IncrementalSnapshot,data:{source:$.MediaInteraction,...G}}),styleSheetRuleCb:G=>te({type:q.IncrementalSnapshot,data:{source:$.StyleSheetRule,...G}}),styleDeclarationCb:G=>te({type:q.IncrementalSnapshot,data:{source:$.StyleDeclaration,...G}}),canvasMutationCb:z,fontCb:G=>te({type:q.IncrementalSnapshot,data:{source:$.Font,...G}}),selectionCb:G=>{te({type:q.IncrementalSnapshot,data:{source:$.Selection,...G}})},customElementCb:G=>{te({type:q.IncrementalSnapshot,data:{source:$.CustomElement,...G}})},blockClass:n,ignoreClass:c,ignoreSelector:p,maskTextClass:a,maskTextSelector:d,maskInputOptions:_,inlineStylesheet:i,sampling:w,recordDOM:b,recordCanvas:y,inlineImages:A,userTriggeredOnInput:I,collectFonts:R,doc:X,maskInputFn:m,maskTextFn:f,keepIframeSrcFn:M,blockSelector:o,slimDOMOptions:Y,dataURLOptions:S,mirror:ge,iframeManager:ae,stylesheetManager:se,shadowDomManager:me,processedNodeManager:Ce,canvasManager:pn,ignoreCSSAttributes:P,plugins:((he=O==null?void 0:O.filter(G=>G.observer))==null?void 0:he.map(G=>({observer:G.observer,options:G.options,callback:Jt=>te({type:q.Plugin,data:{plugin:G.name,payload:Jt}})})))||[]},g)};ae.addLoadListener(X=>{try{L.push(ee(X.contentDocument))}catch(he){console.warn(he)}});let j=()=>{Et(),L.push(ee(document)),Tt=!0};return["interactive","complete"].includes(document.readyState)?j():(L.push(le("DOMContentLoaded",()=>{te({type:q.DomContentLoaded,data:{}}),x==="DOMContentLoaded"&&j()})),L.push(le("load",()=>{te({type:q.Load,data:{}}),x==="load"&&j()},window))),()=>{L.forEach(X=>{try{X()}catch(he){String(he).toLowerCase().includes("cross-origin")||console.warn(he)}}),Ce.destroy(),Tt=!1,Ou()}}catch(L){console.warn(L)}}Oe.addCustomEvent=(e,t)=>{if(!Tt)throw new Error("please add custom event after start recording");te({type:q.Custom,data:{tag:e,payload:t}})};Oe.freezePage=()=>{Te.forEach(e=>e.freeze())};Oe.takeFullSnapshot=e=>{if(!Tt)throw new Error("please take full snapshot after start recording");Et(e)};Oe.mirror=ge;var Bi;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Bi||(Bi={}));var Mc=5*1e3;var{addCustomEvent:Rc}=Oe,{freezePage:Ic}=Oe,{takeFullSnapshot:Oc}=Oe;function ko(e,t={}){var s;let r=Oe({emit(n){e({type:"replay",ts:Date.now(),data:n})},maskAllInputs:(s=t.maskAllInputs)!=null?s:!0,maskTextSelector:t.maskTextSelector,blockSelector:t.blockSelector,sampling:{mousemove:50,scroll:150,input:"last"},checkoutEveryNms:3e4});return()=>r==null?void 0:r()}function _o(e){let t=s=>{var n,o,c,p;e({type:"error",ts:Date.now(),source:"error",name:(o=(n=s.error)==null?void 0:n.name)!=null?o:"Error",message:(c=s.message)!=null?c:String(s.error),stack:(p=s.error)==null?void 0:p.stack})},r=s=>{var o,c;let n=s.reason;e({type:"error",ts:Date.now(),source:"unhandledrejection",name:(o=n==null?void 0:n.name)!=null?o:"UnhandledRejection",message:(c=n==null?void 0:n.message)!=null?c:String(n),stack:n==null?void 0:n.stack})};return addEventListener("error",t),addEventListener("unhandledrejection",r),()=>{removeEventListener("error",t),removeEventListener("unhandledrejection",r)}}var Lo=512e3;function Po(e,t={}){var b;let r=(b=t.ignoreUrls)!=null?b:[],s=t.captureBodies!==!1,{maskUrl:n,maskHeaders:o,maskBody:c,truncate:p,isMaskedKey:a}=Ue(t),d=y=>typeof y=="string"&&r.some(v=>typeof v=="string"?y.includes(v):v.test(y)),i=y=>{let v={};if(!y)return v;if(typeof Headers!="undefined"&&y instanceof Headers)y.forEach((x,I)=>v[I]=x);else if(Array.isArray(y))for(let x of y)x&&x.length>=2&&(v[String(x[0])]=String(x[1]));else if(typeof y=="object")for(let[x,I]of Object.entries(y))v[x]=String(I);return v},h=y=>!!y&&/(json|text|xml|javascript|x-www-form-urlencoded|html)/i.test(y),u=y=>!!y&&/event-stream/i.test(y),l=y=>{let v={};if(!y)return v;for(let x of y.trim().split(/[\r\n]+/)){let I=x.indexOf(":");I>0&&(v[x.slice(0,I).trim()]=x.slice(I+1).trim())}return v},m=y=>{let v=[];return y.forEach((x,I)=>{typeof x=="string"?v.push(`${I}=${a(I)?Ke:x}`):v.push(`${I}=[file ${x.name||"blob"} ${x.size}B]`)}),v.join("&")},f=(y,v)=>{var I;let x=v==null?void 0:v.body;if(typeof x=="string")return{text:x,size:x.length};if(typeof URLSearchParams!="undefined"&&x instanceof URLSearchParams){let R=x.toString();return{text:R,size:R.length}}if(typeof FormData!="undefined"&&x instanceof FormData){let R=m(x);return{text:R,size:R.length,premasked:!0}}if(typeof Blob!="undefined"&&x instanceof Blob)return{size:x.size};if(typeof ArrayBuffer!="undefined"){if(x instanceof ArrayBuffer)return{size:x.byteLength};if(ArrayBuffer.isView(x))return{size:x.byteLength}}if(x==null&&typeof Request!="undefined"&&y instanceof Request){let R=y.method.toUpperCase();if(R!=="GET"&&R!=="HEAD"&&!y.bodyUsed){let A=(I=y.headers.get("content-type"))!=null?I:void 0;try{if(A&&/multipart\/form-data/i.test(A))return{textPromise:y.clone().formData().then(m).catch(()=>{}),premasked:!0};if(h(A))return{textPromise:y.clone().text().catch(()=>{})}}catch(O){}}}return{}},g=async y=>{let v=y.body;if(!v||typeof v.getReader!="function"){let O=await y.text();return{text:O,bytes:O.length,complete:!0}}let x=v.getReader(),I=new TextDecoder,R="",A=0;for(;;){let{done:O,value:M}=await x.read();if(O)return{text:R+I.decode(),bytes:A,complete:!0};if(A+=M.byteLength,R+=I.decode(M,{stream:!0}),A>=Lo)return x.cancel().catch(()=>{}),{text:R,bytes:A,complete:!1}}},C=window.fetch;window.fetch=async function(...y){var O,M,P,U,k;let v=Date.now(),x=y[0],I=typeof x=="string"?x:x instanceof URL?x.href:x instanceof Request?x.url:String(x),R=((M=(O=y[1])==null?void 0:O.method)!=null?M:x instanceof Request?x.method:"GET").toUpperCase(),A={};if(s&&!d(I))try{A=f(x,y[1])}catch(T){A={}}try{let T=await C.apply(this,y);try{if(!d(I)){let _={type:"network",ts:v,method:R,url:n(I),status:T.status,durationMs:Date.now()-v,initiator:"fetch"};if(!s)e(_);else{let Y=(U=(P=y[1])==null?void 0:P.headers)!=null?U:x instanceof Request?x.headers:void 0;_.reqHeaders=o(i(Y)),_.resHeaders=o(i(T.headers));let H=(k=T.headers.get("content-type"))!=null?k:void 0;H&&(_.contentType=H);let F=Number(T.headers.get("content-length"));Number.isFinite(F)&&(_.resSize=F);let ne=null;h(H)&&!u(H)&&!(Number.isFinite(F)&&F>Lo)&&(ne=g(T.clone())),(async()=>{var N,K;try{let z=(N=A.text)!=null?N:A.textPromise?await A.textPromise:void 0;if(z?(_.reqBody=A.premasked?p(z):c(z),_.reqSize=(K=A.size)!=null?K:z.length):A.size!=null&&(_.reqSize=A.size),ne){let ie=await ne;ie.text&&(_.resBody=c(ie.text)),Number.isFinite(F)||(_.resSize=ie.bytes)}}catch(z){}e(_)})()}}}catch(_){}return T}catch(T){try{d(I)||e({type:"network",ts:v,method:R,url:n(I),status:0,durationMs:Date.now()-v,initiator:"fetch"})}catch(_){}throw T}};let w=XMLHttpRequest.prototype.open,S=XMLHttpRequest.prototype.send,E=XMLHttpRequest.prototype.setRequestHeader;return XMLHttpRequest.prototype.open=function(y,v,...x){return this.__iris={method:String(y).toUpperCase(),url:String(v),start:0,reqHeaders:{},reqBody:void 0,reqSize:void 0,premasked:!1},w.apply(this,[y,v,...x])},XMLHttpRequest.prototype.setRequestHeader=function(y,v){let x=this.__iris;return x&&(x.reqHeaders[y]=v),E.apply(this,[y,v])},XMLHttpRequest.prototype.send=function(...y){let v=this.__iris;if(v){v.start=Date.now();let x=y[0];typeof x=="string"?(v.reqBody=x,v.reqSize=x.length):typeof URLSearchParams!="undefined"&&x instanceof URLSearchParams?(v.reqBody=x.toString(),v.reqSize=v.reqBody.length):typeof FormData!="undefined"&&x instanceof FormData?(v.reqBody=m(x),v.reqSize=v.reqBody.length,v.premasked=!0):typeof Blob!="undefined"&&x instanceof Blob?v.reqSize=x.size:(typeof ArrayBuffer!="undefined"&&x instanceof ArrayBuffer||typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView(x))&&(v.reqSize=x.byteLength),this.addEventListener("loadend",()=>{var I;try{if(d(v.url))return;let R={type:"network",ts:v.start,method:v.method,url:n(v.url),status:this.status,durationMs:Date.now()-v.start,initiator:"xhr"};if(s){R.reqHeaders=o(v.reqHeaders),R.resHeaders=o(l(this.getAllResponseHeaders()));let A=(I=this.getResponseHeader("content-type"))!=null?I:void 0;A&&(R.contentType=A),v.reqBody!=null&&(R.reqBody=v.premasked?p(v.reqBody):c(v.reqBody)),v.reqSize!=null&&(R.reqSize=v.reqSize);let O=this.responseType;if(O===""||O==="text")try{let M=this.responseText;M&&(R.resBody=c(M),R.resSize=M.length)}catch(M){}else if(O==="json")try{let M=this.response;if(M!=null){let P=JSON.stringify(M);R.resBody=c(P),R.resSize=P.length}}catch(M){}else if(O==="arraybuffer"){let M=this.response;M&&(R.resSize=M.byteLength)}else if(O==="blob"){let M=this.response;M&&(R.resSize=M.size)}}e(R)}catch(R){}})}return S.apply(this,y)},()=>{window.fetch=C,XMLHttpRequest.prototype.open=w,XMLHttpRequest.prototype.send=S,XMLHttpRequest.prototype.setRequestHeader=E}}var Xu=200,Ju=2e3,Fo=0;function Uo(e,t={},r=!1){var S,E,b,y;let s=Ue(t),n=(S=t.wsMaxFrames)!=null?S:Xu,o=(E=t.wsMaxFrameChars)!=null?E:Ju,c=new Set((b=t.wsFrameTypes)!=null?b:["text","binary"]),p=(y=t.ignoreUrls)!=null?y:[],a=v=>{let x=v.trim();if(!x.startsWith("{")&&!x.startsWith("["))return!1;try{return JSON.parse(x),!0}catch(I){return!1}},d=v=>typeof v=="string"?c.has("text")?!0:c.has("json")?a(v):!1:c.has("binary"),i=v=>typeof v=="string"&&p.some(x=>typeof x=="string"?v.includes(x):x.test(v)),h=v=>{try{e(v)}catch(x){}},u=(...v)=>{r&&console.debug("[iris]",...v)},l=v=>{if(typeof v=="string")return{data:s.maskBody(v,o),size:v.length};if(typeof Blob!="undefined"&&v instanceof Blob)return{binary:!0,size:v.size};if(typeof ArrayBuffer!="undefined"){if(v instanceof ArrayBuffer)return{binary:!0,size:v.byteLength};if(ArrayBuffer.isView(v))return{binary:!0,size:v.byteLength}}return{}},m=window.WebSocket,f=!1,g;if(typeof m=="function"){f=!0;class v extends m{constructor(R,A){super(R,A);try{let O=typeof R=="string"?R:String(R);if(i(O))return;let M=`ws${++Fo}`,P={sent:0,recv:0,dropped:0};this.__iris={connId:M,budget:P},h({type:"ws",ts:Date.now(),connId:M,op:"open",transport:"websocket",url:s.maskUrl(O)}),this.addEventListener("message",U=>{if(d(U.data)){if(P.recv>=n){P.dropped++;return}P.recv++,h({type:"ws",ts:Date.now(),connId:M,op:"message",transport:"websocket",...l(U.data)})}}),this.addEventListener("close",U=>{h({type:"ws",ts:Date.now(),connId:M,op:"close",transport:"websocket",code:U.code,reason:U.reason||void 0,dropped:P.dropped||void 0}),u(`ws ${M} closed (${U.code}) \u2014 frames \u2191${P.sent} \u2193${P.recv}, dropped ${P.dropped}`)}),this.addEventListener("error",()=>{h({type:"ws",ts:Date.now(),connId:M,op:"error",transport:"websocket"})})}catch(O){}}}g=m.prototype.send;let x=g;m.prototype.send=function(I){try{let R=this.__iris;R&&d(I)&&(R.budget.sent>=n?R.budget.dropped++:(R.budget.sent++,h({type:"ws",ts:Date.now(),connId:R.connId,op:"send",transport:"websocket",...l(I)})))}catch(R){}return x.call(this,I)},window.WebSocket=v}let C=window.EventSource,w=!1;if(typeof C=="function"){w=!0;class v extends C{constructor(I,R){super(I,R);try{let A=typeof I=="string"?I:String(I);if(i(A))return;let O=`es${++Fo}`,M={recv:0,dropped:0},P=(k,T)=>{if(d(k.data)){if(M.recv>=n){M.dropped++;return}M.recv++,h({type:"ws",ts:Date.now(),connId:O,op:"message",transport:"eventsource",...T?{event:T}:{},...l(k.data)})}};this.__iris={record:P,mirrored:new Set},h({type:"ws",ts:Date.now(),connId:O,op:"open",transport:"eventsource",url:s.maskUrl(A)}),super.addEventListener("message",k=>P(k)),super.addEventListener("error",()=>{h({type:"ws",ts:Date.now(),connId:O,op:"error",transport:"eventsource"})});let U=this.close.bind(this);this.close=()=>{try{h({type:"ws",ts:Date.now(),connId:O,op:"close",transport:"eventsource",dropped:M.dropped||void 0}),u(`es ${O} closed \u2014 frames \u2193${M.recv}, dropped ${M.dropped}`)}catch(k){}U()}}catch(A){}}addEventListener(I,R,A){try{let O=this.__iris;O&&I!=="message"&&I!=="error"&&I!=="open"&&!O.mirrored.has(I)&&(O.mirrored.add(I),super.addEventListener(I,(M=>O.record(M,I))))}catch(O){}super.addEventListener(I,R,A)}}window.EventSource=v}return()=>{f&&(window.WebSocket=m,g&&(m.prototype.send=g)),w&&(window.EventSource=C)}}var Bo=["log","info","warn","error","debug"],Ku=e=>typeof e[0]=="string"&&e[0].startsWith("[iris]");function zo(e,t={}){let r=t.captureIrisLogs===!0,s={};for(let n of Bo)s[n]=console[n].bind(console),console[n]=(...o)=>{try{(r||!Ku(o))&&e({type:"console",ts:Date.now(),level:n,args:o.map(Zu)})}catch(c){}s[n](...o)};return()=>{for(let n of Bo)s[n]&&(console[n]=s[n])}}function Zu(e){if(typeof e=="string")return e;try{return JSON.stringify(e)}catch(t){return String(e)}}var Gn;var Yo=-1,Ge=function(e){addEventListener("pageshow",(function(t){t.persisted&&(Yo=t.timeStamp,e(t))}),!0)},Yn=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},Gt=function(){var e=Yn();return e&&e.activationStart||0},be=function(e,t){var r=Yn(),s="navigate";return Yo>=0?s="back-forward-cache":r&&(document.prerendering||Gt()>0?s="prerender":document.wasDiscarded?s="restore":r.type&&(s=r.type.replace(/_/g,"-"))),{name:e,value:t===void 0?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:s}},lt=function(e,t,r){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var s=new PerformanceObserver((function(n){Promise.resolve().then((function(){t(n.getEntries())}))}));return s.observe(Object.assign({type:e,buffered:!0},r||{})),s}}catch(n){}},Se=function(e,t,r,s){var n,o;return function(c){t.value>=0&&(c||s)&&((o=t.value-(n||0))||n===void 0)&&(n=t.value,t.delta=o,t.rating=(function(p,a){return p>a[1]?"poor":p>a[0]?"needs-improvement":"good"})(t.value,r),e(t))}},Xn=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},Yt=function(e){document.addEventListener("visibilitychange",(function(){document.visibilityState==="hidden"&&e()}))},Jn=function(e){var t=!1;return function(){t||(e(),t=!0)}},He=-1,$o=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},Ht=function(e){document.visibilityState==="hidden"&&He>-1&&(He=e.type==="visibilitychange"?e.timeStamp:0,Qu())},Wo=function(){addEventListener("visibilitychange",Ht,!0),addEventListener("prerenderingchange",Ht,!0)},Qu=function(){removeEventListener("visibilitychange",Ht,!0),removeEventListener("prerenderingchange",Ht,!0)},Xo=function(){return He<0&&(He=$o(),Wo(),Ge((function(){setTimeout((function(){He=$o(),Wo()}),0)}))),{get firstHiddenTime(){return He}}},Xt=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},qo=[1800,3e3],Kn=function(e,t){t=t||{},Xt((function(){var r,s=Xo(),n=be("FCP"),o=lt("paint",(function(c){c.forEach((function(p){p.name==="first-contentful-paint"&&(o.disconnect(),p.startTime<s.firstHiddenTime&&(n.value=Math.max(p.startTime-Gt(),0),n.entries.push(p),r(!0)))}))}));o&&(r=Se(e,n,qo,t.reportAllChanges),Ge((function(c){n=be("FCP"),r=Se(e,n,qo,t.reportAllChanges),Xn((function(){n.value=performance.now()-c.timeStamp,r(!0)}))})))}))},jo=[.1,.25],Jo=function(e,t){t=t||{},Kn(Jn((function(){var r,s=be("CLS",0),n=0,o=[],c=function(a){a.forEach((function(d){if(!d.hadRecentInput){var i=o[0],h=o[o.length-1];n&&d.startTime-h.startTime<1e3&&d.startTime-i.startTime<5e3?(n+=d.value,o.push(d)):(n=d.value,o=[d])}})),n>s.value&&(s.value=n,s.entries=o,r())},p=lt("layout-shift",c);p&&(r=Se(e,s,jo,t.reportAllChanges),Yt((function(){c(p.takeRecords()),r(!0)})),Ge((function(){n=0,s=be("CLS",0),r=Se(e,s,jo,t.reportAllChanges),Xn((function(){return r()}))})),setTimeout(r,0))})))},Ko=0,Vn=1/0,jt=0,ec=function(e){e.forEach((function(t){t.interactionId&&(Vn=Math.min(Vn,t.interactionId),jt=Math.max(jt,t.interactionId),Ko=jt?(jt-Vn)/7+1:0)}))},Zo=function(){return Gn?Ko:performance.interactionCount||0},tc=function(){"interactionCount"in performance||Gn||(Gn=lt("event",ec,{type:"event",buffered:!0,durationThreshold:0}))},we=[],Vt=new Map,Qo=0,rc=function(){var e=Math.min(we.length-1,Math.floor((Zo()-Qo)/50));return we[e]},nc=[],sc=function(e){if(nc.forEach((function(n){return n(e)})),e.interactionId||e.entryType==="first-input"){var t=we[we.length-1],r=Vt.get(e.interactionId);if(r||we.length<10||e.duration>t.latency){if(r)e.duration>r.latency?(r.entries=[e],r.latency=e.duration):e.duration===r.latency&&e.startTime===r.entries[0].startTime&&r.entries.push(e);else{var s={id:e.interactionId,latency:e.duration,entries:[e]};Vt.set(s.id,s),we.push(s)}we.sort((function(n,o){return o.latency-n.latency})),we.length>10&&we.splice(10).forEach((function(n){return Vt.delete(n.id)}))}}},ea=function(e){var t=self.requestIdleCallback||self.setTimeout,r=-1;return e=Jn(e),document.visibilityState==="hidden"?e():(r=t(e),Yt(e)),r},Vo=[200,500],ta=function(e,t){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(t=t||{},Xt((function(){var r;tc();var s,n=be("INP"),o=function(p){ea((function(){p.forEach(sc);var a=rc();a&&a.latency!==n.value&&(n.value=a.latency,n.entries=a.entries,s())}))},c=lt("event",o,{durationThreshold:(r=t.durationThreshold)!==null&&r!==void 0?r:40});s=Se(e,n,Vo,t.reportAllChanges),c&&(c.observe({type:"first-input",buffered:!0}),Yt((function(){o(c.takeRecords()),s(!0)})),Ge((function(){Qo=Zo(),we.length=0,Vt.clear(),n=be("INP"),s=Se(e,n,Vo,t.reportAllChanges)})))})))},Ho=[2500,4e3],Hn={},ra=function(e,t){t=t||{},Xt((function(){var r,s=Xo(),n=be("LCP"),o=function(a){t.reportAllChanges||(a=a.slice(-1)),a.forEach((function(d){d.startTime<s.firstHiddenTime&&(n.value=Math.max(d.startTime-Gt(),0),n.entries=[d],r())}))},c=lt("largest-contentful-paint",o);if(c){r=Se(e,n,Ho,t.reportAllChanges);var p=Jn((function(){Hn[n.id]||(o(c.takeRecords()),c.disconnect(),Hn[n.id]=!0,r(!0))}));["keydown","click"].forEach((function(a){addEventListener(a,(function(){return ea(p)}),{once:!0,capture:!0})})),Yt(p),Ge((function(a){n=be("LCP"),r=Se(e,n,Ho,t.reportAllChanges),Xn((function(){n.value=performance.now()-a.timeStamp,Hn[n.id]=!0,r(!0)}))}))}}))},Go=[800,1800],ic=function e(t){document.prerendering?Xt((function(){return e(t)})):document.readyState!=="complete"?addEventListener("load",(function(){return e(t)}),!0):setTimeout(t,0)},na=function(e,t){t=t||{};var r=be("TTFB"),s=Se(e,r,Go,t.reportAllChanges);ic((function(){var n=Yn();n&&(r.value=Math.max(n.responseStart-Gt(),0),r.entries=[n],s(!0),Ge((function(){r=be("TTFB",0),(s=Se(e,r,Go,t.reportAllChanges))(!0)})))}))};function sa(e){let t=r=>s=>{e({type:"vital",ts:Date.now(),metric:r,value:s.value,rating:s.rating})};ra(t("LCP")),Jo(t("CLS")),ta(t("INP")),Kn(t("FCP")),na(t("TTFB"))}function ia(e){let t=location.href,r=()=>{try{let o=location.href;if(o===t)return;let c=t;t=o,e({type:"navigation",ts:Date.now(),from:c,to:o})}catch(o){}},s=history.pushState,n=history.replaceState;return history.pushState=function(...o){let c=s.apply(this,o);return r(),c},history.replaceState=function(...o){let c=n.apply(this,o);return r(),c},addEventListener("popstate",r),addEventListener("hashchange",r),()=>{history.pushState=s,history.replaceState=n,removeEventListener("popstate",r),removeEventListener("hashchange",r)}}function oa(e,t={}){var g,C,w,S,E;let r=(g=t.rageThreshold)!=null?g:3,s=(C=t.rageWindowMs)!=null?C:1e3,n=(w=t.rageRadiusPx)!=null?w:30,o=(S=t.deadWindowMs)!=null?S:2500,c=(E=t.errorWindowMs)!=null?E:2500,p=0,a=0,d=0,i=[],h=()=>{p=Date.now()},u=new MutationObserver(h);u.observe(document,{subtree:!0,childList:!0,attributes:!0,characterData:!0}),addEventListener("scroll",h,!0);let l=()=>{a=Date.now()};addEventListener("error",l,!0),addEventListener("unhandledrejection",l,!0);let m=(b,y,v,x,I,R)=>{e({type:"click",ts:y,kind:b,selector:oc(v),text:ac(v),x,y:I,...R?{count:R}:{}})},f=b=>{try{let y=Date.now(),v=b.clientX,x=b.clientY,I=b.target;for(;i.length&&y-i[0].t>s;)i.shift();let R=i.filter(P=>Math.hypot(P.x-v,P.y-x)<=n).length;if(i.push({x:v,y:x,t:y}),R+1>=r&&(d=y,m("rage",y,I,v,x,R+1),i.length=0),R>0)return;let A=a;if(setTimeout(()=>{a>A&&m("error",y,I,v,x)},c),!lc(I))return;let O=p,M=location.href;setTimeout(()=>{let P=p>O||location.href!==M,U=a>A;!P&&!U&&d<y&&m("dead",y,I,v,x)},o)}catch(y){}};return addEventListener("click",f,!0),()=>{u.disconnect(),removeEventListener("scroll",h,!0),removeEventListener("error",l,!0),removeEventListener("unhandledrejection",l,!0),removeEventListener("click",f,!0)}}function oc(e){var s;if(!e||!e.tagName)return"unknown";let t=e.tagName.toLowerCase();e.id&&(t+=`#${e.id}`);let r=((s=e.getAttribute("class"))!=null?s:"").trim().split(/\s+/).filter(Boolean)[0];return r&&(t+=`.${r}`),t}function ac(e){var t;if(e)try{if(e.closest(".twc-mask, .twc-block"))return;let r=e.getAttribute("aria-label"),s=((t=r!=null?r:e.textContent)!=null?t:"").replace(/\s+/g," ").trim();return s?s.length>50?`${s.slice(0,50)}\u2026`:s:void 0}catch(r){return}}function lc(e){if(!e||e.closest("input, textarea, select, label"))return!1;if(e.closest('a, button, [role="button"], [onclick]'))return!0;try{return getComputedStyle(e).cursor==="pointer"}catch(t){return!1}}function uc(e){var c,p;let t=Qn(e.release,(c=e.user)!=null?c:e.userId,e.sessionId),r=new dt({endpoint:e.endpoint,projectKey:e.projectKey,meta:t,debug:e.debug}),s=r.push.bind(r),n=[],o=e.track===!1?()=>{}:ms(s,typeof e.network=="object"?e.network:{},typeof e.track=="object"?e.track:{});if(e.replay!==!1&&n.push(ko(s,{maskAllInputs:(p=e.maskAllInputs)!=null?p:!0,maskTextSelector:e.maskTextSelector,blockSelector:e.blockSelector})),e.errors!==!1&&n.push(_o(s)),e.console!==!1&&n.push(zo(s,typeof e.console=="object"?e.console:{})),e.navigation!==!1&&n.push(ia(s)),e.frustration!==!1&&n.push(oa(s)),e.vitals!==!1&&sa(s),e.network!==!1){let a={ignoreUrls:[`${e.endpoint}/v1/ingest`],...typeof e.network=="object"?e.network:{}};n.push(Po(s,a)),a.captureWebSockets!==!1&&n.push(Uo(s,a,e.debug))}return e.debug&&console.debug("[iris] recording",t.sessionId,"\u2192",e.endpoint),{sessionId:t.sessionId,identify:a=>r.identify(a),track:o,flush:()=>r.flush(!1),stop:()=>{n.forEach(a=>a()),r.stop()}}}return pa(cc);})();
135
135
  /*! Bundled license information:
136
136
 
137
137
  rrweb/dist/rrweb.js: