iris-recorder 0.4.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +21 -1
- package/dist/index.d.ts +21 -1
- package/dist/index.global.js +37 -37
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.global.js
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
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{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+=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
|
-
`+g+i("^")}return" "+h
|
|
1
|
+
"use strict";var Iris=(()=>{var ct=Object.defineProperty;var pa=Object.getOwnPropertyDescriptor;var ma=Object.getOwnPropertyNames;var ga=Object.prototype.hasOwnProperty;var ya=(e,t,r)=>t in e?ct(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var va=(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 wa=(e,t)=>{for(var r in t)ct(e,r,{get:t[r],enumerable:!0})},ba=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ma(t))!ga.call(e,n)&&n!==r&&ct(e,n,{get:()=>t[n],enumerable:!(s=pa(t,n))||s.enumerable});return e};var Sa=e=>ba(ct({},"__esModule",{value:!0}),e);var Te=(e,t,r)=>ya(e,typeof t!="symbol"?t+"":t,r);var Sc={};wa(Sc,{captureException:()=>wc,captureMessage:()=>bc,currentSessionId:()=>rr,record:()=>vc});function ft(e){let r=ts(e,1,{keys:32});return r&&Object.keys(r).length>0?r:void 0}function ts(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 u=n.slice(0,64);if(u){if(typeof o=="string")s[u]=o.slice(0,300),r.keys-=1;else if(typeof o=="number"||typeof o=="boolean")s[u]=String(o),r.keys-=1;else if(typeof o=="object"&&o!==null&&!Array.isArray(o)&&t<3){r.keys-=1;let p=ts(o,t+1,r);p&&Object.keys(p).length>0?s[u]=p:r.keys+=1}}}return s}function ht(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 er="iris.sid",Ca=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function tr(e){return typeof e=="string"&&Ca.test(e)}function rr(){try{let e=sessionStorage.getItem(er);return tr(e)?e:void 0}catch(e){return}}function Ea(e){try{if(tr(e))return sessionStorage.setItem(er,e),e;let t=rr();if(t)return t;let r=crypto.randomUUID();return sessionStorage.setItem(er,r),r}catch(t){return tr(e)?e:crypto.randomUUID()}}function rs(e,t,r){let s=ft(typeof t=="string"?{id:t}:t);return{sessionId:Ea(r),user:s,userId:s?ht(s):void 0,release:e,startedAt:Date.now(),url:location.href,userAgent:navigator.userAgent}}var ls=va("module"),xa=(0,ls.createRequire)("/"),Ue,Ma,Ra;try{Ue=xa("worker_threads"),Ma=Ue.Worker,Ra=Ue.isMarkedAsUntransferable}catch(e){}var ce=Uint8Array,de=Uint16Array,lr=Int32Array,ur=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]),cr=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]),ns=new ce([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),us=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 lr(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}},Ue=us(ur,2),Ia=Ue.b,sr=Ue.r;Ia[28]=258,sr[258]=28;var cs=us(cr,0),Rc=cs.b,ss=cs.r,ir=new de(32768);for(V=0;V<32768;++V)Ee=(V&43690)>>1|(V&21845)<<1,Ee=(Ee&52428)>>2|(Ee&13107)<<2,Ee=(Ee&61680)>>4|(Ee&3855)<<4,ir[V]=((Ee&65280)>>8|(Ee&255)<<8)>>1;var Ee,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 u=new de(t);for(n=1;n<t;++n)u[n]=u[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 f=n<<4|e[n],i=t-e[n],d=u[e[n]-1]++<<i,c=d|(1<<i)-1;d<=c;++d)p[ir[d]>>a]=f}else for(p=new de(s),n=0;n<s;++n)e[n]&&(p[n]=ir[u[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,dt=new ce(32);for(V=0;V<32;++V)dt[V]=5;var V,Oa=Je(De,9,0);var Na=Je(dt,5,0);var fs=function(e){return(e+7)/8|0},hs=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 xe=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},nr=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:ps,l:0};if(n==1){var u=new ce(r[0].s+1);return u[r[0].s]=1,{t:u,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],f=0,i=1,d=2;for(r[0]={s:-1,f:p.f+a.f,l:p,r:a};i!=n-1;)p=r[r[f].f<r[d].f?f++:d++],a=r[f!=i&&r[f].f<r[d].f?f++:d++],r[i++]={s:-1,f:p.f+a.f,l:p,r:a};for(var c=o[0].s,s=1;s<n;++s)o[s].s>c&&(c=o[s].s);var l=new de(c+1),m=or(r[i-1],l,0);if(m>t){var s=0,h=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)h+=C-(1<<m-l[w]),l[w]=t;else break}for(h>>=g;h>0;){var S=o[s].s;l[S]<t?h-=1<<t-l[S]++-1:++s}for(;s>=0&&h;--s){var x=o[s].s;l[x]==t&&(--l[x],++h)}m=t}return{t:new ce(l),l:m}},or=function(e,t,r){return e.s==-1?Math.max(or(e.l,t,r+1),or(e.r,t,r+1)):t[e.s]=r},is=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new de(++t),s=0,n=e[0],o=1,u=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)u(32754);o>2&&(u(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(u(n),--o;o>6;o-=6)u(8304);o>2&&(u(o-3<<5|8208),o=0)}for(;o--;)u(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},ds=function(e,t,r){var s=r.length,n=fs(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},os=function(e,t,r,s,n,o,u,p,a,f,i){xe(t,i++,r),++n[256];for(var d=nr(n,15),c=d.t,l=d.l,m=nr(o,15),h=m.t,g=m.l,C=is(c),w=C.c,S=C.n,x=is(h),b=x.c,y=x.n,v=new de(19),E=0;E<w.length;++E)++v[w[E]&31];for(var E=0;E<b.length;++E)++v[b[E]&31];for(var I=nr(v,7),R=I.t,A=I.l,O=19;O>4&&!R[ns[O-1]];--O);var M=f+5<<3,P=Xe(n,De)+Xe(o,dt)+u,U=Xe(n,c)+Xe(o,h)+u+14+3*O+Xe(v,R)+2*v[16]+3*v[17]+7*v[18];if(a>=0&&M<=P&&M<=U)return ds(t,i,e.subarray(a,a+f));var k,D,_,Y;if(xe(t,i,1+(U<P)),i+=2,U<P){k=Je(c,l,0),D=c,_=Je(h,g,0),Y=h;var H=Je(R,A,0);xe(t,i,S-257),xe(t,i+5,y-1),xe(t,i+10,O-4),i+=14;for(var E=0;E<O;++E)xe(t,i+3*E,R[ns[E]]);i+=3*O;for(var F=[w,b],ne=0;ne<2;++ne)for(var N=F[ne],E=0;E<N.length;++E){var K=N[E]&31;xe(t,i,H[K]),i+=R[K],K>15&&(xe(t,i,N[E]>>5&127),i+=N[E]>>12)}}else k=Oa,D=De,_=Na,Y=dt;for(var E=0;E<p;++E){var z=s[E];if(z>255){var K=z>>18&31;Ye(t,i,k[K+257]),i+=D[K+257],K>7&&(xe(t,i,z>>23&31),i+=ur[K]);var ie=z&31;Ye(t,i,_[ie]),i+=Y[ie],ie>3&&(Ye(t,i,z>>5&8191),i+=cr[ie])}else Ye(t,i,k[z]),i+=D[z]}return Ye(t,i,k[256]),i+D[256]},Aa=new lr([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),ps=new ce(0),Ta=function(e,t,r,s,n,o){var u=o.z||e.length,p=new ce(s+u+5*(1+Math.ceil(u/7e3))+n),a=p.subarray(s,p.length-n),f=o.l,i=(o.r||0)&7;if(t){i&&(a[0]=o.r>>3);for(var d=Aa[t-1],c=d>>13,l=d&8191,m=(1<<r)-1,h=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},x=new lr(25e3),b=new de(288),y=new de(32),v=0,E=0,I=o.i||0,R=0,A=o.w||0,O=0;I+2<u;++I){var M=S(I),P=I&32767,U=g[M];if(h[P]=U,g[M]=P,A<=I){var k=u-I;if((v>7e3||R>24576)&&(k>423||!f)){i=os(e,a,0,x,b,y,E,R,O,I-O,i),R=v=E=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(c,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=h[ae],me=ae-Ce&32767;me>se&&(se=me,U=ae)}}}P=U,U=h[P],F+=P-U&32767}if(Y){x[R++]=268435456|sr[_]<<18|ss[Y];var L=sr[_]&31,ee=ss[Y]&31;E+=ur[L]+cr[ee],++b[257+L],++y[ee],A=I+_,++v}else x[R++]=e[I],++b[e[I]]}}for(I=Math.max(I,A);I<u;++I)x[R++]=e[I],++b[e[I]];i=os(e,a,f,x,b,y,E,R,O,I-O,i),f||(o.r=i&7|a[i/8|0]<<3,i-=7,o.h=g,o.p=h,o.i=I,o.w=A)}else{for(var I=o.w||0;I<u+f;I+=65535){var j=I+65535;j>=u&&(a[i/8|0]=f,j=u),i=ds(a,i+1,e.subarray(I,j))}o.i=u}return hs(p,0,s+fs(i)+n)},Da=(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})(),ka=function(){var e=-1;return{p:function(t){for(var r=e,s=0;s<t.length;++s)r=Da[r&255^t[s]]^r>>>8;e=r},d:function(){return~e}}};var _a=function(e,t,r,s,n){if(!n&&(n={l:1},t.dictionary)){var o=t.dictionary.subarray(-32768),u=new ce(o.length+e.length);u.set(o),u.set(e,o.length),e=u,n.w=o.length}return Ta(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 ar=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},La=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&&ar(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 Pa=function(e){return 10+(e.filename?e.filename.length+1:0)};function ms(e,t){t||(t={});var r=ka(),s=e.length;r.p(e);var n=_a(e,t,Pa(t),8),o=n.length;return La(n,t),ar(n,o-8,r.d()),ar(n,o-4,s),n}var as=typeof TextEncoder!="undefined"&&new TextEncoder,Fa=typeof TextDecoder!="undefined"&&new TextDecoder,Ua=0;try{Fa.decode(ps,{stream:!0}),Ua=1}catch(e){}function gs(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(as)return as.encode(e);for(var n=e.length,o=new ce(e.length+(e.length>>1)),u=0,p=function(i){o[u++]=i},s=0;s<n;++s){if(u+5>o.length){var a=new ce(u+8+(n-s<<1));a.set(o),o=a}var f=e.charCodeAt(s);f<128||t?p(f):f<2048?(p(192|f>>6),p(128|f&63)):f>55295&&f<57344?(f=65536+(f&1047552)|e.charCodeAt(++s)&1023,p(240|f>>18),p(128|f>>12&63),p(128|f>>6&63),p(128|f&63)):(p(224|f>>12),p(128|f>>6&63),p(128|f&63))}return hs(o,0,u)}var pt=class{constructor(t){Te(this,"opts",t);Te(this,"queue",[]);Te(this,"bytes",0);Te(this,"timer");Te(this,"flushBytes");Te(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+=ys(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=ms(gs(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 u=!1;try{let p=`${o}?k=${encodeURIComponent(this.opts.projectKey)}`;u=navigator.sendBeacon(p,new Blob([n],{type:"text/plain"}))}catch(p){u=!1}u||(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(u=>{this.log(`ingest responded ${u.status}`),u.ok||this.requeue(r)}).catch(u=>{this.log("ingest request failed",u),this.requeue(r)})}identify(t){var s;let r=ft(typeof t=="string"?{id:t}:t);r&&(this.opts.meta.user=r,this.opts.meta.userId=ht(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+=ys(n);s>this.maxBytes||(this.queue=r,this.bytes=s)}stop(){this.timer&&clearInterval(this.timer),this.flush(!0)}};function ys(e){return JSON.stringify(e).length}var Ba=["authorization","cookie","set-cookie","proxy-authorization","x-api-key","x-auth-token","x-csrf-token","x-xsrf-token"],za=/pass(word|wd)?|secret|token|api[-_]?key|auth|credential|session|cvv|card[-_]?(number|num)?|ssn|pin/i;var $a="[redacted]",Ke="[masked]";function Ne(e={}){var l,m,h,g;let t=new Set([...Ba,...((l=e.redactHeaders)!=null?l:[]).map(C=>C.toLowerCase())]),r=(m=e.maskKeys)!=null?m:za,s=new Set(((h=e.maskExtraKeys)!=null?h:[]).map(C=>C.toLowerCase())),n=C=>r.test(C)||s.has(C.toLowerCase()),o=(g=e.maxBodyChars)!=null?g:1e4,u=()=>typeof location!="undefined"?location.href:void 0,p=C=>{try{let w=new URL(C,u()),S=!1;for(let x of[...w.searchParams.keys()])n(x)&&(w.searchParams.set(x,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},f=C=>{if(Array.isArray(C))return C.map(f);if(C&&typeof C=="object"){let w={};for(let[S,x]of Object.entries(C))w[S]=n(S)?Ke:f(x);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),x;try{x=JSON.stringify(f(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);x=y.toString()}catch(y){x=S}else x=S}return i(x,w)},maskObject:C=>f(C),truncate:i,isMaskedKey:n,maxBodyChars:o}}var Wa=500,qa=8e3,ja=120;function vs(e,t={},r={}){var a,f;let s=Ne(t),n=(a=r.maxEvents)!=null?a:Wa,o=(f=r.maxPropsChars)!=null?f:qa,u=0,p=!1;return(i,d)=>{try{let c=typeof i=="string"?i.trim().slice(0,ja):"";if(!c)return;if(u>=n){p||(p=!0,console.warn(`[iris] track() budget exhausted (${n} events) \u2014 further events are dropped`));return}u++;let l={type:"custom",ts:Date.now(),name:c};if(d!=null&&typeof d=="object"){let m=null,h=1/0;try{m=s.maskObject(d),h=JSON.stringify(m).length}catch(g){m=null}l.props=m!=null&&h<=o?m:{"[iris]":`props dropped (${Number.isFinite(h)?`${h} chars > ${o}`:"not serializable"})`}}e(l)}catch(c){}}}var ws=100,bs=8e3,Va=2e3,Ss=new WeakSet;function mt(e){return e===null||typeof e!="object"?!0:Ss.has(e)?!1:(Ss.add(e),!0)}var gt={captureException:()=>{},captureMessage:()=>{}};function Cs(e,t={}){let r=Ne(t),s=0,n=!1,o=(u,p)=>{if(s>=ws){n||(n=!0,console.warn(`[iris] capture budget exhausted (${ws} errors) \u2014 further captures are dropped`));return}s++;let a={type:"error",ts:Date.now(),source:"manual",name:u.name,message:u.message.slice(0,Va),...u.stack?{stack:u.stack}:{}};if(p!=null&&typeof p=="object"){let f=null,i=1/0;try{f=r.maskObject(p),i=JSON.stringify(f).length}catch(d){f=null}a.context=f!=null&&i<=bs?f:{"[iris]":`context dropped (${Number.isFinite(i)?`${i} chars > ${bs}`:"not serializable"})`}}e(a)};return{captureException(u,p){try{if(!mt(u))return;o(Ha(u),p)}catch(a){}},captureMessage(u,p){try{o({name:"Message",message:String(u)},p)}catch(a){}}}}function Ha(e){var r;if(e&&typeof e=="object"&&typeof e.message=="string"){let s=e;return{name:typeof s.name=="string"&&s.name?s.name:"Error",message:s.message,...typeof s.stack=="string"?{stack:s.stack}:{}}}if(typeof e=="string")return{name:"Error",message:e};let t;try{t=(r=JSON.stringify(e))!=null?r:String(e)}catch(s){t=String(e)}return{name:"Error",message:t}}var Ga=Object.defineProperty,Ya=(e,t,r)=>t in e?Ga(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T=(e,t,r)=>Ya(e,typeof t!="symbol"?t+"":t,r),Es,Xa=Object.defineProperty,Ja=(e,t,r)=>t in e?Xa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xs=(e,t,r)=>Ja(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:[]},Rs={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},yt={},Gi={},Ka=()=>!!globalThis.Zone;function Tn(e){if(yt[e])return yt[e];let t=globalThis[e],r=t.prototype,s=e in Ms?Ms[e]:void 0,n=!!(s&&s.every(p=>{var a,f;return!!((f=(a=Object.getOwnPropertyDescriptor(r,p))==null?void 0:a.get)!=null&&f.toString().includes("[native code]"))})),o=e in Rs?Rs[e]:void 0,u=!!(o&&o.every(p=>{var a;return typeof r[p]=="function"&&((a=r[p])==null?void 0:a.toString().includes("[native code]"))}));if(n&&u&&!Ka())return yt[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 f=a[e].prototype;if(!f)return p.remove(),r;let i=navigator.userAgent;return i.includes("Safari")&&!i.includes("Chrome")?(p.classList.add("rr-block"),p.setAttribute("__rrwebUntaintedMutationObserver",""),Gi[e]=()=>p.remove()):p.remove(),yt[e]=f}catch(p){return r}}var fr={};function Re(e,t,r){var s;let n=`${e}.${String(r)}`;if(fr[n])return fr[n].call(t);let o=Tn(e),u=(s=Object.getOwnPropertyDescriptor(o,r))==null?void 0:s.get;return u?(fr[n]=u,u.call(t)):t[r]}var hr={};function Yi(e,t,r){let s=`${e}.${String(r)}`;if(hr[s])return hr[s].bind(t);let o=Tn(e)[r];return typeof o!="function"?t[r]:(hr[s]=o,o.bind(t))}function Za(e){return Re("Node",e,"ownerDocument")}function Qa(e){return Re("Node",e,"childNodes")}function el(e){return Re("Node",e,"parentNode")}function tl(e){return Re("Node",e,"parentElement")}function rl(e){return Re("Node",e,"textContent")}function nl(e,t){return Yi("Node",e,"contains")(t)}function sl(e){return Yi("Node",e,"getRootNode")()}function il(e){return!e||!("host"in e)?null:Re("ShadowRoot",e,"host")}function ol(e){return e.styleSheets}function al(e){return!e||!("shadowRoot"in e)?null:Re("Element",e,"shadowRoot")}function ll(e,t){return Re("Element",e,"querySelector")(t)}function ul(e,t){return Re("Element",e,"querySelectorAll")(t)}function cl(){var e;return[Tn("MutationObserver").constructor,(e=Gi.MutationObserver)!=null?e:(()=>{})]}var Xi=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Xi=()=>new Date().getTime());function fl(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:Za,childNodes:Qa,parentNode:el,parentElement:tl,textContent:rl,contains:nl,getRootNode:sl,host:il,styleSheets:ol,shadowRoot:al,querySelector:ll,querySelectorAll:ul,nowTimestamp:Xi,mutationObserverCtor:cl,patch:fl};function Ji(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 hl(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 dl(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 vn(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=>Ki(n,r)).join("");return hl(s)}catch(t){return null}}function Ki(e,t){if(ml(e)){let r;try{r=vn(e.styleSheet)||dl(e)}catch(s){r=e.cssText}return e.styleSheet.href?Tt(r,e.styleSheet.href):r}else{let r=e.cssText;return gl(e)&&e.selectorText.includes(":")&&(r=pl(r)),t?Tt(r,t):r}}function pl(e){let t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function ml(e){return"styleSheet"in e}function gl(e){return"selectorText"in e}var Ot=class{constructor(){xs(this,"idNodeMap",new Map),xs(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 yl(){return new Ot}function Nt({element:e,maskInputOptions:t,tagName:r,type:s,value:n,maskInputFn:o}){let u=n||"",p=s&&_e(s);return(t[r.toLowerCase()]||p&&t[p])&&(o?u=o(u,e):u="*".repeat(u.length)),u}function _e(e){return e.toLowerCase()}var Is="__rrweb_original__";function vl(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,u=Is in o?o[Is]:o;if(new Uint32Array(u.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 At(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?_e(t):null}function Zi(e,t){var o;let r;try{r=new URL(e,t!=null?t:window.location.href)}catch(u){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 wl(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var bl=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Sl=/^(?:[a-z+]+:)?\/\//i,Cl=/^www\..*/i,El=/^(data:)([^,]*),(.*)/i;function Tt(e,t){return(e||"").replace(bl,(r,s,n,o,u,p)=>{let a=n||u||p,f=s||o||"";if(!a)return r;if(Sl.test(a)||Cl.test(a))return`url(${f}${a}${f})`;if(El.test(a))return`url(${f}${a}${f})`;if(a[0]==="/")return`url(${f}${wl(t)+a}${f})`;let i=t.split("/"),d=a.split("/");i.pop();for(let c of d)c!=="."&&(c===".."?i.pop():i.push(c));return`url(${f}${i.join("/")}${f})`})}function vt(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function xl(e,t,r=!1){let s=Array.from(t.childNodes),n=[],o=0;if(s.length>1&&e&&typeof e=="string"){let u=vt(e,r),p=u.length/e.length;for(let a=1;a<s.length;a++)if(s[a].textContent&&typeof s[a].textContent=="string"){let f=vt(s[a].textContent,r),i=100,d=3;for(;d<f.length&&(f[d].match(/[a-zA-Z0-9]/)||f.indexOf(f.substring(0,d),1)!==-1);d++);for(;d<f.length;d++){let c=f.substring(0,d),l=u.split(c),m=-1;if(l.length===2)m=l[0].length;else if(l.length>2&&l[0]===""&&s[a-1].textContent!=="")m=u.indexOf(c,1);else if(l.length===1){if(c=c.substring(0,c.length-1),l=u.split(c),l.length<=1)return n.push(e),n;d=i+1}else d===f.length-1&&(m=u.indexOf(c));if(l.length>=2&&d>i){let h=s[a-1].textContent;if(h&&typeof h=="string"){let g=vt(h).length;m=u.indexOf(c,g)}m===-1&&(m=l[0].length)}if(m!==-1){let h=Math.floor(m/p);for(;h>0&&h<e.length;){if(o+=1,o>50*s.length)return n.push(e),n;let g=vt(e.substring(0,h),r);if(g.length===m){n.push(e.substring(0,h)),e=e.substring(h),u=u.substring(m);break}else g.length<m?h+=Math.max(1,Math.floor((m-g.length)/p)):h-=Math.max(1,Math.floor((g.length-m)*p))}break}}}}return n.push(e),n}function Ml(e,t){return xl(e,t).join("/* rr_split */")}var Rl=1,Il=new RegExp("[^a-z0-9-_:]"),rt=-2;function Qi(){return Rl++}function Ol(e){if(e instanceof HTMLFormElement)return"form";let t=_e(e.tagName);return Il.test(t)?"div":t}var Be,Os,Nl=/^[^ \t\n\r\u000c]+/,Al=/^[, \t\n\r\u000c]+/;function Tl(e,t){if(t.trim()==="")return t;let r=0;function s(o){let u,p=o.exec(t.substring(r));return p?(u=p[0],r+=u.length,u):""}let n=[];for(;s(Al),!(r>=t.length);){let o=s(Nl);if(o.slice(-1)===",")o=We(e,o.substring(0,o.length-1)),n.push(o);else{let u="";o=We(e,o);let p=!1;for(;;){let a=t.charAt(r);if(a===""){n.push((o+u).trim());break}else if(p)a===")"&&(p=!1);else if(a===","){r+=1,n.push((o+u).trim());break}else a==="("&&(p=!0);u+=a,r+=1}}}return n.join(", ")}var Ns=new WeakMap;function We(e,t){return!t||t.trim()===""?t:Dn(e,t)}function Dl(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Dn(e,t){let r=Ns.get(e);if(r||(r=e.createElement("a"),Ns.set(e,r)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return r.setAttribute("href",t),r.href}function eo(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"?Tl(e,s):r==="style"?Tt(s,Dn(e)):t==="object"&&r==="data"?We(e,s):s)}function to(e,t,r){return["video","audio"].includes(e)&&t==="autoplay"}function kl(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 Dt(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r?Dt(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?Dt(oe.parentNode(e),t,r):!1}function ro(e,t,r,s){let n;if(Ji(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(Dt(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 _l(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 u="about:blank";if(s.location.href!==u||e.src===u||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Ll(e,t,r){let s=!1,n;try{n=e.sheet}catch(u){return}if(n)return;let o=setTimeout(()=>{s||(t(),s=!0)},r);e.addEventListener("load",()=>{clearTimeout(o),s=!0,t()})}function Pl(e,t){let{doc:r,mirror:s,blockClass:n,blockSelector:o,needsMask:u,inlineStylesheet:p,maskInputOptions:a={},maskTextFn:f,maskInputFn:i,dataURLOptions:d={},inlineImages:c,recordCanvas:l,keepIframeSrcFn:m,newlyAddedElement:h=!1,cssCaptured:g=!1}=t,C=Fl(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 Bl(e,{doc:r,blockClass:n,blockSelector:o,inlineStylesheet:p,maskInputOptions:a,maskInputFn:i,dataURLOptions:d,inlineImages:c,recordCanvas:l,keepIframeSrcFn:m,newlyAddedElement:h,rootId:C});case e.TEXT_NODE:return Ul(e,{doc:r,needsMask:u,maskTextFn:f,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 Fl(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return r===1?void 0:r}function Ul(e,t){let{needsMask:r,maskTextFn:s,rootId:n,cssCaptured:o}=t,u=oe.parentNode(e),p=u&&u.tagName,a="",f=p==="STYLE"?!0:void 0,i=p==="SCRIPT"?!0:void 0;return i?a="SCRIPT_PLACEHOLDER":o||(a=oe.textContent(e),f&&a&&(a=Tt(a,Dn(t.doc)))),!f&&!i&&a&&r&&(a=s?s(a,oe.parentElement(e)):a.replace(/[\S]/g,"*")),{type:re.Text,textContent:a||"",rootId:n}}function Bl(e,t){let{doc:r,blockClass:s,blockSelector:n,inlineStylesheet:o,maskInputOptions:u={},maskInputFn:p,dataURLOptions:a={},inlineImages:f,recordCanvas:i,keepIframeSrcFn:d,newlyAddedElement:c=!1,rootId:l}=t,m=kl(e,s,n),h=Ol(e),g={},C=e.attributes.length;for(let S=0;S<C;S++){let x=e.attributes[S];to(h,x.name,x.value)||(g[x.name]=eo(r,h,_e(x.name),x.value))}if(h==="link"&&o){let S=Array.from(r.styleSheets).find(b=>b.href===e.href),x=null;S&&(x=vn(S)),x&&(delete g.rel,delete g.href,g._cssText=x)}if(h==="style"&&e.sheet){let S=vn(e.sheet);S&&(e.childNodes.length>1&&(S=Ml(S,e)),g._cssText=S)}if(["input","textarea","select"].includes(h)){let S=e.value,x=e.checked;g.type!=="radio"&&g.type!=="checkbox"&&g.type!=="submit"&&g.type!=="button"&&S?g.value=Nt({element:e,type:At(e),tagName:h,value:S,maskInputOptions:u,maskInputFn:p}):x&&(g.checked=x)}if(h==="option"&&(e.selected&&!u.select?g.selected=!0:delete g.selected),h==="dialog"&&e.open&&(g.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),h==="canvas"&&i){if(e.__context==="2d")vl(e)||(g.rr_dataURL=e.toDataURL(a.type,a.quality));else if(!("__context"in e)){let S=e.toDataURL(a.type,a.quality),x=r.createElement("canvas");x.width=e.width,x.height=e.height;let b=x.toDataURL(a.type,a.quality);S!==b&&(g.rr_dataURL=S)}}if(h==="img"&&f){Be||(Be=r.createElement("canvas"),Os=Be.getContext("2d"));let S=e,x=S.currentSrc||S.getAttribute("src")||"<unknown-src>",b=S.crossOrigin,y=()=>{S.removeEventListener("load",y);try{Be.width=S.naturalWidth,Be.height=S.naturalHeight,Os.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=${x}! 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(h)){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(c||(e.scrollLeft&&(g.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(g.rr_scrollTop=e.scrollTop)),m){let{width:S,height:x}=e.getBoundingClientRect();g={class:g.class,rr_width:`${S}px`,rr_height:`${x}px`}}h==="iframe"&&!d(g.src)&&(e.contentDocument||(g.rr_src=g.src),delete g.src);let w;try{customElements.get(h)&&(w=!0)}catch(S){}return{type:re.Element,tagName:h,attributes:g,childNodes:[],isSVG:Dl(e)||void 0,needBlock:m,rootId:l,isCustom:w}}function J(e){return e==null?"":e.toLowerCase()}function no(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 zl(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"&&Zi(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:u,maskTextSelector:p,skipChild:a=!1,inlineStylesheet:f=!0,maskInputOptions:i={},maskTextFn:d,maskInputFn:c,slimDOMOptions:l,dataURLOptions:m={},inlineImages:h=!1,recordCanvas:g=!1,onSerialize:C,onIframeLoad:w,iframeLoadTimeout:S=5e3,onStylesheetLoad:x,stylesheetLoadTimeout:b=5e3,keepIframeSrcFn:y=()=>!1,newlyAddedElement:v=!1,cssCaptured:E=!1}=t,{needsMask:I}=t,{preserveWhiteSpace:R=!0}=t;I||(I=ro(e,u,p,I===void 0));let A=Pl(e,{doc:r,mirror:s,blockClass:n,blockSelector:o,needsMask:I,inlineStylesheet:f,maskInputOptions:i,maskTextFn:d,maskInputFn:c,dataURLOptions:m,inlineImages:h,recordCanvas:g,keepIframeSrcFn:y,newlyAddedElement:v,cssCaptured:E});if(!A)return console.warn(e,"not serialized"),null;let O;s.hasNode(e)?O=s.getId(e):zl(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:u,maskTextSelector:p,skipChild:a,inlineStylesheet:f,maskInputOptions:i,maskTextFn:d,maskInputFn:c,slimDOMOptions:l,dataURLOptions:m,inlineImages:h,recordCanvas:g,preserveWhiteSpace:R,onSerialize:C,onIframeLoad:w,iframeLoadTimeout:S,onStylesheetLoad:x,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(Ji(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"&&_l(e,()=>{let k=e.contentDocument;if(k&&w){let D=qe(k,{doc:k,mirror:s,blockClass:n,blockSelector:o,needsMask:I,maskTextClass:u,maskTextSelector:p,skipChild:!1,inlineStylesheet:f,maskInputOptions:i,maskTextFn:d,maskInputFn:c,slimDOMOptions:l,dataURLOptions:m,inlineImages:h,recordCanvas:g,preserveWhiteSpace:R,onSerialize:C,onIframeLoad:w,iframeLoadTimeout:S,onStylesheetLoad:x,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"&&Zi(M.attributes.href)==="css")&&Ll(e,()=>{if(x){let k=qe(e,{doc:r,mirror:s,blockClass:n,blockSelector:o,needsMask:I,maskTextClass:u,maskTextSelector:p,skipChild:!1,inlineStylesheet:f,maskInputOptions:i,maskTextFn:d,maskInputFn:c,slimDOMOptions:l,dataURLOptions:m,inlineImages:h,recordCanvas:g,preserveWhiteSpace:R,onSerialize:C,onIframeLoad:w,iframeLoadTimeout:S,onStylesheetLoad:x,stylesheetLoadTimeout:b,keepIframeSrcFn:y});k&&x(e,k)}},b),M}function $l(e,t){let{mirror:r=new Ot,blockClass:s="rr-block",blockSelector:n=null,maskTextClass:o="rr-mask",maskTextSelector:u=null,inlineStylesheet:p=!0,inlineImages:a=!1,recordCanvas:f=!1,maskAllInputs:i=!1,maskTextFn:d,maskInputFn:c,slimDOM:l=!1,dataURLOptions:m,preserveWhiteSpace:h,onSerialize:g,onIframeLoad:C,iframeLoadTimeout:w,onStylesheetLoad:S,stylesheetLoadTimeout:x,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=no(l);return qe(e,{doc:e,mirror:r,blockClass:s,blockSelector:n,maskTextClass:o,maskTextSelector:u,skipChild:!1,inlineStylesheet:p,maskInputOptions:y,maskTextFn:d,maskInputFn:c,slimDOMOptions:v,dataURLOptions:m,inlineImages:a,recordCanvas:f,preserveWhiteSpace:h,onSerialize:g,onIframeLoad:C,iframeLoadTimeout:w,onStylesheetLoad:S,stylesheetLoadTimeout:x,keepIframeSrcFn:b,newlyAddedElement:!1})}var Wl=/(max|min)-device-(width|height)/,Fc=new RegExp(Wl.source,"g");function ql(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 wt={exports:{}},As;function Vl(){if(As)return wt.exports;As=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 wt.exports=t(),wt.exports.createColors=t,wt.exports}var Hl={},Gl=Object.freeze(Object.defineProperty({__proto__:null,default:Hl},Symbol.toStringTag,{value:"Module"})),ye=jl(Gl),dr,Ts;function kn(){if(Ts)return dr;Ts=1;let e=Vl(),t=ye;class r extends Error{constructor(n,o,u,p,a,f){super(n),this.name="CssSyntaxError",this.reason=n,a&&(this.file=a),p&&(this.source=p),f&&(this.plugin=f),typeof o!="undefined"&&typeof u!="undefined"&&(typeof o=="number"?(this.line=o,this.column=u):(this.line=o.line,this.column=o.column,this.endLine=u.line,this.endColumn=u.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="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 u=o.split(/\r?\n/),p=Math.max(this.line-3,0),a=Math.min(this.line+2,u.length),f=String(a).length,i,d;if(n){let{bold:c,gray:l,red:m}=e.createColors(!0);i=h=>c(m(h)),d=h=>l(h)}else i=d=c=>c;return u.slice(p,a).map((c,l)=>{let m=p+1+l,h=" "+(" "+m).slice(-f)+" | ";if(m===this.line){let g=d(h.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+d(h)+c+`
|
|
2
|
+
`+g+i("^")}return" "+d(h)+c}).join(`
|
|
3
3
|
`)}toString(){let n=this.showSourceCode();return n&&(n=`
|
|
4
4
|
|
|
5
5
|
`+n+`
|
|
6
|
-
`),this.name+": "+this.message+n}}return
|
|
6
|
+
`),this.name+": "+this.message+n}}return dr=r,r.default=r,dr}var bt={},Ds;function _n(){return Ds||(Ds=1,bt.isClean=Symbol("isClean"),bt.my=Symbol("my")),bt}var pr,ks;function so(){if(ks)return pr;ks=1;let e={after:`
|
|
7
7
|
`,beforeClose:`
|
|
8
8
|
`,beforeComment:`
|
|
9
9
|
`,beforeDecl:`
|
|
10
10
|
`,beforeOpen:" ",beforeRule:`
|
|
11
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(s){return s[0].toUpperCase()+s.slice(1)}class r{constructor(n){this.builder=n}atrule(n,o){let
|
|
12
|
-
`)){let
|
|
13
|
-
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawBeforeComment(n,o){let
|
|
14
|
-
`)&&(
|
|
15
|
-
`)&&(
|
|
16
|
-
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawColon(n){let o;return n.walkDecls(
|
|
17
|
-
`);return o=a[a.length-1],o=o.replace(/\S/g,""),!1}}),o}rawSemicolon(n){let o;return n.walk(
|
|
18
|
-
`?(
|
|
19
|
-
`);C=new Array(S.length);let
|
|
11
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(s){return s[0].toUpperCase()+s.slice(1)}class r{constructor(n){this.builder=n}atrule(n,o){let u="@"+n.name,p=n.params?this.rawValue(n,"params"):"";if(typeof n.raws.afterName!="undefined"?u+=n.raws.afterName:p&&(u+=" "),n.nodes)this.block(n,u+p);else{let a=(n.raws.between||"")+(o?";":"");this.builder(u+p+a,n)}}beforeAfter(n,o){let u;n.type==="decl"?u=this.raw(n,null,"beforeDecl"):n.type==="comment"?u=this.raw(n,null,"beforeComment"):o==="before"?u=this.raw(n,null,"beforeRule"):u=this.raw(n,null,"beforeClose");let p=n.parent,a=0;for(;p&&p.type!=="root";)a+=1,p=p.parent;if(u.includes(`
|
|
12
|
+
`)){let f=this.raw(n,null,"indent");if(f.length)for(let i=0;i<a;i++)u+=f}return u}block(n,o){let u=this.raw(n,"between","beforeOpen");this.builder(o+u+"{",n,"start");let p;n.nodes&&n.nodes.length?(this.body(n),p=this.raw(n,"after")):p=this.raw(n,"after","emptyBody"),p&&this.builder(p),this.builder("}",n,"end")}body(n){let o=n.nodes.length-1;for(;o>0&&n.nodes[o].type==="comment";)o-=1;let u=this.raw(n,"semicolon");for(let p=0;p<n.nodes.length;p++){let a=n.nodes[p],f=this.raw(a,"before");f&&this.builder(f),this.stringify(a,o!==p||u)}}comment(n){let o=this.raw(n,"left","commentLeft"),u=this.raw(n,"right","commentRight");this.builder("/*"+o+n.text+u+"*/",n)}decl(n,o){let u=this.raw(n,"between","colon"),p=n.prop+u+this.rawValue(n,"value");n.important&&(p+=n.raws.important||" !important"),o&&(p+=";"),this.builder(p,n)}document(n){this.body(n)}raw(n,o,u){let p;if(u||(u=o),o&&(p=n.raws[o],typeof p!="undefined"))return p;let a=n.parent;if(u==="before"&&(!a||a.type==="root"&&a.first===n||a&&a.type==="document"))return"";if(!a)return e[u];let f=n.root();if(f.rawCache||(f.rawCache={}),typeof f.rawCache[u]!="undefined")return f.rawCache[u];if(u==="before"||u==="after")return this.beforeAfter(n,u);{let i="raw"+t(u);this[i]?p=this[i](f,n):f.walk(d=>{if(p=d.raws[o],typeof p!="undefined")return!1})}return typeof p=="undefined"&&(p=e[u]),f.rawCache[u]=p,p}rawBeforeClose(n){let o;return n.walk(u=>{if(u.nodes&&u.nodes.length>0&&typeof u.raws.after!="undefined")return o=u.raws.after,o.includes(`
|
|
13
|
+
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawBeforeComment(n,o){let u;return n.walkComments(p=>{if(typeof p.raws.before!="undefined")return u=p.raws.before,u.includes(`
|
|
14
|
+
`)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u=="undefined"?u=this.raw(o,null,"beforeDecl"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeDecl(n,o){let u;return n.walkDecls(p=>{if(typeof p.raws.before!="undefined")return u=p.raws.before,u.includes(`
|
|
15
|
+
`)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u=="undefined"?u=this.raw(o,null,"beforeRule"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeOpen(n){let o;return n.walk(u=>{if(u.type!=="decl"&&(o=u.raws.between,typeof o!="undefined"))return!1}),o}rawBeforeRule(n){let o;return n.walk(u=>{if(u.nodes&&(u.parent!==n||n.first!==u)&&typeof u.raws.before!="undefined")return o=u.raws.before,o.includes(`
|
|
16
|
+
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawColon(n){let o;return n.walkDecls(u=>{if(typeof u.raws.between!="undefined")return o=u.raws.between.replace(/[^\s:]/g,""),!1}),o}rawEmptyBody(n){let o;return n.walk(u=>{if(u.nodes&&u.nodes.length===0&&(o=u.raws.after,typeof o!="undefined"))return!1}),o}rawIndent(n){if(n.raws.indent)return n.raws.indent;let o;return n.walk(u=>{let p=u.parent;if(p&&p!==n&&p.parent&&p.parent===n&&typeof u.raws.before!="undefined"){let a=u.raws.before.split(`
|
|
17
|
+
`);return o=a[a.length-1],o=o.replace(/\S/g,""),!1}}),o}rawSemicolon(n){let o;return n.walk(u=>{if(u.nodes&&u.nodes.length&&u.last.type==="decl"&&(o=u.raws.semicolon,typeof o!="undefined"))return!1}),o}rawValue(n,o){let u=n[o],p=n.raws[o];return p&&p.value===u?p.raw:u}root(n){this.body(n),n.raws.after&&this.builder(n.raws.after)}rule(n){this.block(n,this.rawValue(n,"selector")),n.raws.ownSemicolon&&this.builder(n.raws.ownSemicolon,n,"end")}stringify(n,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 pr=r,r.default=r,pr}var mr,_s;function Pt(){if(_s)return mr;_s=1;let e=so();function t(r,s){new e(s).stringify(r)}return mr=t,t.default=t,mr}var gr,Ls;function Ft(){if(Ls)return gr;Ls=1;let{isClean:e,my:t}=_n(),r=kn(),s=so(),n=Pt();function o(p,a){let f=new p.constructor;for(let i in p){if(!Object.prototype.hasOwnProperty.call(p,i)||i==="proxyCache")continue;let d=p[i],c=typeof d;i==="parent"&&c==="object"?a&&(f[i]=a):i==="source"?f[i]=d:Array.isArray(d)?f[i]=d.map(l=>o(l,f)):(c==="object"&&d!==null&&(d=o(d)),f[i]=d)}return f}class u{constructor(a={}){this.raws={},this[e]=!1,this[t]=!0;for(let f in a)if(f==="nodes"){this.nodes=[];for(let i of a[f])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[f]=a[f]}addToError(a){if(a.postcssNode=this,a.stack&&this.source&&/\n\s{4}at /.test(a.stack)){let f=this.source;a.stack=a.stack.replace(/\n\s{4}at /,`$&${f.input.from}:${f.start.line}:${f.start.column}$&`)}return a}after(a){return this.parent.insertAfter(this,a),this}assign(a={}){for(let f in a)this[f]=a[f];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 f=o(this);for(let i in a)f[i]=a[i];return f}cloneAfter(a={}){let f=this.clone(a);return this.parent.insertAfter(this,f),f}cloneBefore(a={}){let f=this.clone(a);return this.parent.insertBefore(this,f),f}error(a,f={}){if(this.source){let{end:i,start:d}=this.rangeBy(f);return this.source.input.error(a,{column:d.column,line:d.line},{column:i.column,line:i.line},f)}return new r(a)}getProxyProcessor(){return{get(a,f){return f==="proxyOf"?a:f==="root"?()=>a.root().toProxy():a[f]},set(a,f,i){return a[f]===i||(a[f]=i,(f==="prop"||f==="value"||f==="name"||f==="params"||f==="important"||f==="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,f){let i=this.source.start;if(a.index)i=this.positionInside(a.index,f);else if(a.word){f=this.toString();let d=f.indexOf(a.word);d!==-1&&(i=this.positionInside(d,f))}return i}positionInside(a,f){let i=f||this.toString(),d=this.source.start.column,c=this.source.start.line;for(let l=0;l<a;l++)i[l]===`
|
|
18
|
+
`?(d=1,c+=1):d+=1;return{column:d,line:c}}prev(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a-1]}rangeBy(a){let f={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:f.column+1,line:f.line};if(a.word){let d=this.toString(),c=d.indexOf(a.word);c!==-1&&(f=this.positionInside(c,d),i=this.positionInside(c+a.word.length,d))}else a.start?f={column:a.start.column,line:a.start.line}:a.index&&(f=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<f.line||i.line===f.line&&i.column<=f.column)&&(i={column:f.column+1,line:f.line}),{end:i,start:f}}raw(a,f){return new s().raw(this,a,f)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...a){if(this.parent){let f=this,i=!1;for(let d of a)d===this?i=!0:i?(this.parent.insertAfter(f,d),f=d):this.parent.insertBefore(f,d);i||this.remove()}return this}root(){let a=this;for(;a.parent&&a.parent.type!=="document";)a=a.parent;return a}toJSON(a,f){let i={},d=f==null;f=f||new Map;let c=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(h=>typeof h=="object"&&h.toJSON?h.toJSON(null,f):h);else if(typeof m=="object"&&m.toJSON)i[l]=m.toJSON(null,f);else if(l==="source"){let h=f.get(m.input);h==null&&(h=c,f.set(m.input,c),c++),i[l]={end:m.end,inputId:h,start:m.start}}else i[l]=m}return d&&(i.inputs=[...f.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 f="";return a(this,i=>{f+=i}),f}warn(a,f,i){let d={node:this};for(let c in i)d[c]=i[c];return a.warn(f,d)}get proxyOf(){return this}}return gr=u,u.default=u,gr}var yr,Ps;function Ut(){if(Ps)return yr;Ps=1;let e=Ft();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 yr=t,t.default=t,yr}var vr,Fs;function Yl(){if(Fs)return vr;Fs=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return vr={nanoid:(s=21)=>{let n="",o=s;for(;o--;)n+=e[Math.random()*64|0];return n},customAlphabet:(s,n=21)=>(o=n)=>{let u="",p=o;for(;p--;)u+=s[Math.random()*s.length|0];return u}},vr}var wr,Us;function io(){if(Us)return wr;Us=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ye,{existsSync:r,readFileSync:s}=ye,{dirname:n,join:o}=ye;function u(a){return Buffer?Buffer.from(a,"base64").toString():window.atob(a)}class p{constructor(f,i){if(i.map===!1)return;this.loadAnnotation(f),this.inline=this.startWith(this.annotation,"data:");let d=i.map?i.map.prev:void 0,c=this.loadMap(i.from,d);!this.mapFile&&i.from&&(this.mapFile=i.from),this.mapFile&&(this.root=n(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(f){let i=/^data:application\/json;charset=utf-?8;base64,/,d=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,l=/^data:application\/json,/;if(c.test(f)||l.test(f))return decodeURIComponent(f.substr(RegExp.lastMatch.length));if(i.test(f)||d.test(f))return u(f.substr(RegExp.lastMatch.length));let m=f.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(f){return f.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(f){return typeof f!="object"?!1:typeof f.mappings=="string"||typeof f._mappings=="string"||Array.isArray(f.sections)}loadAnnotation(f){let i=f.match(/\/\*\s*# sourceMappingURL=/gm);if(!i)return;let d=f.lastIndexOf(i.pop()),c=f.indexOf("*/",d);d>-1&&c>-1&&(this.annotation=this.getAnnotationURL(f.substring(d,c)))}loadFile(f){if(this.root=n(f),r(f))return this.mapFile=f,s(f,"utf-8").toString().trim()}loadMap(f,i){if(i===!1)return!1;if(i){if(typeof i=="string")return i;if(typeof i=="function"){let d=i(f);if(d){let c=this.loadFile(d);if(!c)throw new Error("Unable to load previous source map: "+d.toString());return c}}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 d=this.annotation;return f&&(d=o(n(f),d)),this.loadFile(d)}}}startWith(f,i){return f?f.substr(0,i.length)===i:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return wr=p,p.default=p,wr}var br,Bs;function Bt(){if(Bs)return br;Bs=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ye,{fileURLToPath:r,pathToFileURL:s}=ye,{isAbsolute:n,resolve:o}=ye,{nanoid:u}=Yl(),p=ye,a=kn(),f=io(),i=Symbol("fromOffsetCache"),d=!!(e&&t),c=!!(o&&n);class l{constructor(h,g={}){if(h===null||typeof h=="undefined"||typeof h=="object"&&!h.toString)throw new Error(`PostCSS received ${h} instead of CSS string`);if(this.css=h.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!c||/^\w+:\/\//.test(g.from)||n(g.from)?this.file=g.from:this.file=o(g.from)),c&&d){let C=new f(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 "+u(6)+">"),this.map&&(this.map.file=this.from)}error(h,g,C,w={}){let S,x,b;if(g&&typeof g=="object"){let v=g,E=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 E.offset=="number"){let I=this.fromOffset(E.offset);x=I.line,b=I.col}else x=E.line,b=E.column}else if(!C){let v=this.fromOffset(g);g=v.line,C=v.col}let y=this.origin(g,C,x,b);return y?S=new a(h,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(h,x===void 0?g:{column:C,line:g},x===void 0?C:{column:b,line:x},this.css,this.file,w.plugin),S.input={column:C,endColumn:b,endLine:x,line:g,source:this.css},this.file&&(s&&(S.input.url=s(this.file).toString()),S.input.file=this.file),S}fromOffset(h){let g,C;if(this[i])C=this[i];else{let S=this.css.split(`
|
|
19
|
+
`);C=new Array(S.length);let x=0;for(let b=0,y=S.length;b<y;b++)C[b]=x,x+=S[b].length+1;this[i]=C}g=C[C.length-1];let w=0;if(h>=g)w=C.length-1;else{let S=C.length-2,x;for(;w<S;)if(x=w+(S-w>>1),h<C[x])S=x-1;else if(h>=C[x+1])w=x+1;else{w=x;break}}return{col:h-C[w]+1,line:w+1}}mapResolve(h){return/^\w+:\/\//.test(h)?h:o(this.map.consumer().sourceRoot||this.map.root||".",h)}origin(h,g,C,w){if(!this.map)return!1;let S=this.map.consumer(),x=S.originalPositionFor({column:g,line:h});if(!x.source)return!1;let b;typeof C=="number"&&(b=S.originalPositionFor({column:w,line:C}));let y;n(x.source)?y=s(x.source):y=new URL(x.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let v={column:x.column,endColumn:b&&b.column,endLine:b&&b.line,line:x.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 E=S.sourceContentFor(x.source);return E&&(v.source=E),v}toJSON(){let h={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(h[g]=this[g]);return this.map&&(h.map={...this.map},h.map.consumerCache&&(h.map.consumerCache=void 0)),h}get from(){return this.file||this.id}}return br=l,l.default=l,p&&p.registerInput&&p.registerInput(l),br}var Sr,zs;function oo(){if(zs)return Sr;zs=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ye,{dirname:r,relative:s,resolve:n,sep:o}=ye,{pathToFileURL:u}=ye,p=Bt(),a=!!(e&&t),f=!!(r&&n&&s&&o);class i{constructor(c,l,m,h){this.stringify=c,this.mapOpts=m.map||{},this.root=l,this.opts=m,this.css=h,this.originalCSS=h,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let c;this.isInline()?c="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?c=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?c=this.mapOpts.annotation(this.opts.to,this.root):c=this.outputFile()+".map";let l=`
|
|
20
20
|
`;this.css.includes(`\r
|
|
21
21
|
`)&&(l=`\r
|
|
22
|
-
`),this.css+=l+"/*# sourceMappingURL="+
|
|
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="",
|
|
22
|
+
`),this.css+=l+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let l=this.toUrl(this.path(c.file)),m=c.root||r(c.file),h;this.mapOpts.sourcesContent===!1?(h=new e(c.text),h.sourcesContent&&(h.sourcesContent=null)):h=c.consumer(),this.map.applySourceMap(h,l,this.toUrl(this.path(m)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let l=this.root.nodes.length-1;l>=0;l--)c=this.root.nodes[l],c.type==="comment"&&c.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(l)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),f&&a&&this.isMap())return this.generateMap();{let c="";return this.stringify(this.root,l=>{c+=l}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=t.fromSourceMap(c,{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 c=1,l=1,m="<no source>",h={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,C;this.stringify(this.root,(w,S,x)=>{if(this.css+=w,S&&x!=="end"&&(h.generated.line=c,h.generated.column=l-1,S.source&&S.source.start?(h.source=this.sourcePath(S),h.original.line=S.source.start.line,h.original.column=S.source.start.column-1,this.map.addMapping(h)):(h.source=m,h.original.line=1,h.original.column=0,this.map.addMapping(h))),g=w.match(/\n/g),g?(c+=g.length,C=w.lastIndexOf(`
|
|
23
|
+
`),l=w.length-C):l+=w.length,S&&x!=="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?(h.source=this.sourcePath(S),h.original.line=S.source.end.line,h.original.column=S.source.end.column-1,h.generated.line=c,h.generated.column=l-2,this.map.addMapping(h)):(h.source=m,h.original.line=1,h.original.column=0,h.generated.line=c,h.generated.column=l-1,this.map.addMapping(h)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c!="undefined"&&c!==!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(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let l=this.memoizedPaths.get(c);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 h=s(m,c);return this.memoizedPaths.set(c,h),h}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let l=c.source.input.map;this.previousMaps.includes(l)||this.previousMaps.push(l)}});else{let c=new p(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(l=>{if(l.source){let m=l.source.input.from;if(m&&!c[m]){c[m]=!0;let h=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(h,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(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let l=this.memoizedFileURLs.get(c);if(l)return l;if(u){let m=u(c).toString();return this.memoizedFileURLs.set(c,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let l=this.memoizedURLs.get(c);if(l)return l;o==="\\"&&(c=c.replace(/\\/g,"/"));let m=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,m),m}}return Sr=i,Sr}var Cr,$s;function zt(){if($s)return Cr;$s=1;let e=Ft();class t extends e{constructor(s){super(s),this.type="comment"}}return Cr=t,t.default=t,Cr}var Er,Ws;function Le(){if(Ws)return Er;Ws=1;let{isClean:e,my:t}=_n(),r=Ut(),s=zt(),n=Ft(),o,u,p,a;function f(c){return c.map(l=>(l.nodes&&(l.nodes=f(l.nodes)),delete l.source,l))}function i(c){if(c[e]=!1,c.proxyOf.nodes)for(let l of c.proxyOf.nodes)i(l)}class d extends n{append(...l){for(let m of l){let h=this.normalize(m,this.last);for(let g of h)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(),h,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(h=this.indexes[m],g=l(this.proxyOf.nodes[h],h),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")?(...h)=>l[m](...h.map(g=>typeof g=="function"?(C,w)=>g(C.toProxy(),w):g)):m==="every"||m==="some"?h=>l[m]((g,...C)=>h(g.toProxy(),...C)):m==="root"?()=>l.root().toProxy():m==="nodes"?l.nodes.map(h=>h.toProxy()):m==="first"||m==="last"?l[m].toProxy():l[m]:l[m]},set(l,m,h){return l[m]===h||(l[m]=h,(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 h=this.index(l),g=this.normalize(m,this.proxyOf.nodes[h]).reverse();h=this.index(l);for(let w of g)this.proxyOf.nodes.splice(h+1,0,w);let C;for(let w in this.indexes)C=this.indexes[w],h<C&&(this.indexes[w]=C+g.length);return this.markDirty(),this}insertBefore(l,m){let h=this.index(l),g=h===0?"prepend":!1,C=this.normalize(m,this.proxyOf.nodes[h],g).reverse();h=this.index(l);for(let S of C)this.proxyOf.nodes.splice(h,0,S);let w;for(let S in this.indexes)w=this.indexes[S],h<=w&&(this.indexes[S]=w+C.length);return this.markDirty(),this}normalize(l,m){if(typeof l=="string")l=f(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 u(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]||d.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 h=this.normalize(m,this.first,"prepend").reverse();for(let g of h)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+h.length}return this.markDirty(),this}push(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 h in this.indexes)m=this.indexes[h],m>=l&&(this.indexes[h]=m-1);return this.markDirty(),this}replaceValues(l,m,h){return h||(h=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(l,h))}),this.markDirty(),this}some(l){return this.nodes.some(l)}walk(l){return this.each((m,h)=>{let g;try{g=l(m,h)}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((h,g)=>{if(h.type==="atrule"&&l.test(h.name))return m(h,g)}):this.walk((h,g)=>{if(h.type==="atrule"&&h.name===l)return m(h,g)}):(m=l,this.walk((h,g)=>{if(h.type==="atrule")return m(h,g)}))}walkComments(l){return this.walk((m,h)=>{if(m.type==="comment")return l(m,h)})}walkDecls(l,m){return m?l instanceof RegExp?this.walk((h,g)=>{if(h.type==="decl"&&l.test(h.prop))return m(h,g)}):this.walk((h,g)=>{if(h.type==="decl"&&h.prop===l)return m(h,g)}):(m=l,this.walk((h,g)=>{if(h.type==="decl")return m(h,g)}))}walkRules(l,m){return m?l instanceof RegExp?this.walk((h,g)=>{if(h.type==="rule"&&l.test(h.selector))return m(h,g)}):this.walk((h,g)=>{if(h.type==="rule"&&h.selector===l)return m(h,g)}):(m=l,this.walk((h,g)=>{if(h.type==="rule")return m(h,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return d.registerParse=c=>{o=c},d.registerRule=c=>{u=c},d.registerAtRule=c=>{p=c},d.registerRoot=c=>{a=c},Er=d,d.default=d,d.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,p.prototype):c.type==="rule"?Object.setPrototypeOf(c,u.prototype):c.type==="decl"?Object.setPrototypeOf(c,r.prototype):c.type==="comment"?Object.setPrototypeOf(c,s.prototype):c.type==="root"&&Object.setPrototypeOf(c,a.prototype),c[t]=!0,c.nodes&&c.nodes.forEach(l=>{d.rebuild(l)})},Er}var xr,qs;function Ln(){if(qs)return xr;qs=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},xr=s,s.default=s,xr}var Mr,js;function ao(){if(js)return Mr;js=1;let e={};return Mr=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},Mr}var Rr,Vs;function lo(){if(Vs)return Rr;Vs=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 Rr=e,e.default=e,Rr}var Ir,Hs;function Pn(){if(Hs)return Ir;Hs=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 Ir=t,t.default=t,Ir}var Or,Gs;function Xl(){if(Gs)return Or;Gs=1;let e=39,t=34,r=92,s=47,n=10,o=32,u=12,p=9,a=13,f=91,i=93,d=40,c=41,l=123,m=125,h=59,g=42,C=58,w=64,S=/[\t\n\f\r "#'()/;[\\\]{}]/g,x=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,b=/.[\r\n"'(/\\]/,y=/[\da-f]/i;return Or=function(E,I={}){let R=E.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 E.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 u:{M=N;do M+=1,O=R.charCodeAt(M);while(O===o||O===n||O===p||O===a||O===u);F=["space",R.slice(N,M)],N=M-1;break}case f:case i:case l:case m:case C:case h:case c:{let j=String.fromCharCode(O);F=[j,j,N];break}case d:{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!==u&&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!==u&&(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):(x.lastIndex=N+1,x.test(R),x.lastIndex===0?M=R.length-1:M=x.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}},Or}var Nr,Ys;function Fn(){if(Ys)return Nr;Ys=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 Nr=t,t.default=t,e.registerAtRule(t),Nr}var Ar,Xs;function it(){if(Xs)return Ar;Xs=1;let e=Le(),t,r;class s extends e{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[])}normalize(o,u,p){let a=super.normalize(o);if(u){if(p==="prepend")this.nodes.length>1?u.raws.before=this.nodes[1].raws.before:delete u.raws.before;else if(this.first!==u)for(let f of a)f.raws.before=u.raws.before}return a}removeChild(o,u){let p=this.index(o);return!u&&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},Ar=s,s.default=s,e.registerRoot(s),Ar}var Tr,Js;function uo(){if(Js)return Tr;Js=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="",u=!1,p=0,a=!1,f="",i=!1;for(let d of t)i?i=!1:d==="\\"?i=!0:a?d===f&&(a=!1):d==='"'||d==="'"?(a=!0,f=d):d==="("?p+=1:d===")"?p>0&&(p-=1):p===0&&r.includes(d)&&(u=!0),u?(o!==""&&n.push(o.trim()),o="",u=!1):o+=d;return(s||o!=="")&&n.push(o.trim()),n}};return Tr=e,e.default=e,Tr}var Dr,Ks;function Un(){if(Ks)return Dr;Ks=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,u=o?o[0]:","+this.raw("between","beforeOpen");this.selector=n.join(u)}}return Dr=r,r.default=r,e.registerRule(r),Dr}var kr,Zs;function Jl(){if(Zs)return kr;Zs=1;let e=Ut(),t=Xl(),r=zt(),s=Fn(),n=it(),o=Un(),u={empty:!0,space:!0};function p(f){for(let i=f.length-1;i>=0;i--){let d=f[i],c=d[3]||d[2];if(c)return c}}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 d=new s;d.name=i[1].slice(1),d.name===""&&this.unnamedAtrule(d,i),this.init(d,i[2]);let c,l,m,h=!1,g=!1,C=[],w=[];for(;!this.tokenizer.endOfFile();){if(i=this.tokenizer.nextToken(),c=i[0],c==="("||c==="["?w.push(c==="("?")":"]"):c==="{"&&w.length>0?w.push("}"):c===w[w.length-1]&&w.pop(),w.length===0)if(c===";"){d.source.end=this.getPosition(i[2]),d.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){g=!0;break}else if(c==="}"){if(C.length>0){for(m=C.length-1,l=C[m];l&&l[0]==="space";)l=C[--m];l&&(d.source.end=this.getPosition(l[3]||l[2]),d.source.end.offset++)}this.end(i);break}else C.push(i);else C.push(i);if(this.tokenizer.endOfFile()){h=!0;break}}d.raws.between=this.spacesAndCommentsFromEnd(C),C.length?(d.raws.afterName=this.spacesAndCommentsFromStart(C),this.raw(d,"params",C),h&&(i=C[C.length-1],d.source.end=this.getPosition(i[3]||i[2]),d.source.end.offset++,this.spaces=d.raws.between,d.raws.between="")):(d.raws.afterName="",d.params=""),g&&(d.nodes=[],this.current=d)}checkMissedSemicolon(i){let d=this.colon(i);if(d===!1)return;let c=0,l;for(let m=d-1;m>=0&&(l=i[m],!(l[0]!=="space"&&(c+=1,c===2)));m--);throw this.input.error("Missed semicolon",l[0]==="word"?l[3]+1:l[2])}colon(i){let d=0,c,l,m;for(let[h,g]of i.entries()){if(c=g,l=c[0],l==="("&&(d+=1),l===")"&&(d-=1),d===0&&l===":")if(!m)this.doubleColon(c);else{if(m[0]==="word"&&m[1]==="progid")continue;return h}m=c}return!1}comment(i){let d=new r;this.init(d,i[2]),d.source.end=this.getPosition(i[3]||i[2]),d.source.end.offset++;let c=i[1].slice(2,-2);if(/^\s*$/.test(c))d.text="",d.raws.left=c,d.raws.right="";else{let l=c.match(/^(\s*)([^]*\S)(\s*)$/);d.text=l[2],d.raws.left=l[1],d.raws.right=l[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(i,d){let c=new e;this.init(c,i[0][2]);let l=i[i.length-1];for(l[0]===";"&&(this.semicolon=!0,i.pop()),c.source.end=this.getPosition(l[3]||l[2]||p(i)),c.source.end.offset++;i[0][0]!=="word";)i.length===1&&this.unknownWord(i),c.raws.before+=i.shift()[1];for(c.source.start=this.getPosition(i[0][2]),c.prop="";i.length;){let w=i[0][0];if(w===":"||w==="space"||w==="comment")break;c.prop+=i.shift()[1]}c.raws.between="";let m;for(;i.length;)if(m=i.shift(),m[0]===":"){c.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),c.raws.between+=m[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let h=[],g;for(;i.length&&(g=i[0][0],!(g!=="space"&&g!=="comment"));)h.push(i.shift());this.precheckMissedSemicolon(i);for(let w=i.length-1;w>=0;w--){if(m=i[w],m[1].toLowerCase()==="!important"){c.important=!0;let S=this.stringFrom(i,w);S=this.spacesFromEnd(i)+S,S!==" !important"&&(c.raws.important=S);break}else if(m[1].toLowerCase()==="important"){let S=i.slice(0),x="";for(let b=w;b>0;b--){let y=S[b][0];if(x.trim().indexOf("!")===0&&y!=="space")break;x=S.pop()[1]+x}x.trim().indexOf("!")===0&&(c.important=!0,c.raws.important=x,i=S)}if(m[0]!=="space"&&m[0]!=="comment")break}i.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(c.raws.between+=h.map(w=>w[1]).join(""),h=[]),this.raw(c,"value",h.concat(i),d),c.value.includes(":")&&!d&&this.checkMissedSemicolon(i)}doubleColon(i){throw this.input.error("Double colon",{offset:i[2]},{offset:i[2]+i[1].length})}emptyRule(i){let d=new o;this.init(d,i[2]),d.selector="",d.raws.between="",this.current=d}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 d=this.current.nodes[this.current.nodes.length-1];d&&d.type==="rule"&&!d.raws.ownSemicolon&&(d.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(i){let d=this.input.fromOffset(i);return{column:d.col,line:d.line,offset:i}}init(i,d){this.current.push(i),i.source={input:this.input,start:this.getPosition(d)},i.raws.before=this.spaces,this.spaces="",i.type!=="comment"&&(this.semicolon=!1)}other(i){let d=!1,c=null,l=!1,m=null,h=[],g=i[1].startsWith("--"),C=[],w=i;for(;w;){if(c=w[0],C.push(w),c==="("||c==="[")m||(m=w),h.push(c==="("?")":"]");else if(g&&l&&c==="{")m||(m=w),h.push("}");else if(h.length===0)if(c===";")if(l){this.decl(C,g);return}else break;else if(c==="{"){this.rule(C);return}else if(c==="}"){this.tokenizer.back(C.pop()),d=!0;break}else c===":"&&(l=!0);else c===h[h.length-1]&&(h.pop(),h.length===0&&(m=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(d=!0),h.length>0&&this.unclosedBracket(m),d&&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,d,c,l){let m,h,g=c.length,C="",w=!0,S,x;for(let b=0;b<g;b+=1)m=c[b],h=m[0],h==="space"&&b===g-1&&!l?w=!1:h==="comment"?(x=c[b-1]?c[b-1][0]:"empty",S=c[b+1]?c[b+1][0]:"empty",!u[x]&&!u[S]?C.slice(-1)===","?w=!1:C+=m[1]:w=!1):C+=m[1];if(!w){let b=c.reduce((y,v)=>y+v[1],"");i.raws[d]={raw:b,value:C}}i[d]=C}rule(i){i.pop();let d=new o;this.init(d,i[0][2]),d.raws.between=this.spacesAndCommentsFromEnd(i),this.raw(d,"selector",i),this.current=d}spacesAndCommentsFromEnd(i){let d,c="";for(;i.length&&(d=i[i.length-1][0],!(d!=="space"&&d!=="comment"));)c=i.pop()[1]+c;return c}spacesAndCommentsFromStart(i){let d,c="";for(;i.length&&(d=i[0][0],!(d!=="space"&&d!=="comment"));)c+=i.shift()[1];return c}spacesFromEnd(i){let d,c="";for(;i.length&&(d=i[i.length-1][0],d==="space");)c=i.pop()[1]+c;return c}stringFrom(i,d){let c="";for(let l=d;l<i.length;l++)c+=i[l][1];return i.splice(d,i.length-d),c}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,d){throw this.input.error("At-rule without name",{offset:d[2]},{offset:d[2]+d[1].length})}}return kr=a,kr}var _r,Qs;function Bn(){if(Qs)return _r;Qs=1;let e=Le(),t=Jl(),r=Bt();function s(n,o){let u=new r(n,o),p=new t(u);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 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
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(
|
|
29
|
-
https://www.w3ctech.com/topic/2226`));let R=b(...I);return R.postcssPlugin=
|
|
30
|
-
`+g+i("^")}return" "+h
|
|
27
|
+
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),a}return p.root}return _r=s,s.default=s,e.registerParse(s),_r}var Lr,ei;function co(){if(ei)return Lr;ei=1;let{isClean:e,my:t}=_n(),r=oo(),s=Pt(),n=Le(),o=Ln(),u=ao(),p=Pn(),a=Bn(),f=it(),i={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},d={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},c={Once:!0,postcssPlugin:!0,prepare:!0},l=0;function m(x){return typeof x=="object"&&typeof x.then=="function"}function h(x){let b=!1,y=i[x.type];return x.type==="decl"?b=x.prop.toLowerCase():x.type==="atrule"&&(b=x.name.toLowerCase()),b&&x.append?[y,y+"-"+b,l,y+"Exit",y+"Exit-"+b]:b?[y,y+"-"+b,y+"Exit",y+"Exit-"+b]:x.append?[y,l,y+"Exit"]:[y,y+"Exit"]}function g(x){let b;return x.type==="document"?b=["Document",l,"DocumentExit"]:x.type==="root"?b=["Root",l,"RootExit"]:b=h(x),{eventIndex:0,events:b,iterator:0,node:x,visitorIndex:0,visitors:[]}}function C(x){return x[e]=!1,x.nodes&&x.nodes.forEach(b=>C(b)),x}let w={};class S{constructor(b,y,v){this.stringified=!1,this.processed=!1;let E;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))E=C(y);else if(y instanceof S||y instanceof p)E=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{E=I(y,v)}catch(R){this.processed=!0,this.error=R}E&&!E[t]&&n.rebuild(E)}this.result=new p(b,E,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 E=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 "+E+" uses "+I+". Perhaps this is the source of the error below.")}}catch(E){console&&console.error&&console.error(E)}return b}prepareVisitors(){this.listeners={};let b=(y,v,E)=>{this.listeners[v]||(this.listeners[v]=[]),this.listeners[v].push([y,E])};for(let y of this.plugins)if(typeof y=="object")for(let v in y){if(!d[v]&&/^[A-Z]/.test(v))throw new Error(`Unknown event ${v} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[v])if(typeof y[v]=="object")for(let E in y[v])E==="*"?b(y,v,y[v][E]):b(y,v+"-"+E.toLowerCase(),y[v][E]);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(E){throw this.handleError(E)}}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(E){let I=y[y.length-1].node;throw this.handleError(E,I)}}}if(this.listeners.OnceExit)for(let[y,v]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(b.type==="document"){let E=b.nodes.map(I=>v(I,this.helpers));await Promise.all(E)}else await v(b,this.helpers)}catch(E){throw this.handleError(E)}}}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 E=new r(y,this.result.root,this.result.opts).generate();return this.result.css=E[0],this.result.map=E[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||u("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,E]of b){this.result.lastPlugin=v;let I;try{I=E(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:E}=y;if(v.type!=="root"&&v.type!=="document"&&!v.parent){b.pop();return}if(E.length>0&&y.visitorIndex<E.length){let[R,A]=E[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===E.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=h(b);for(let v of y)if(v===l)b.nodes&&b.each(E=>{E[e]||this.walkSync(E)});else{let E=this.listeners[v];if(E&&this.visitSync(E,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=x=>{w=x},Lr=S,S.default=S,f.registerLazyResult(S),o.registerLazyResult(S),Lr}var Pr,ti;function Kl(){if(ti)return Pr;ti=1;let e=oo(),t=Pt(),r=ao(),s=Bn(),n=Pn();class o{constructor(p,a,f){a=a.toString(),this.stringified=!1,this._processor=p,this._css=a,this._opts=f,this._map=void 0;let i,d=t;this.result=new n(this._processor,i,this._opts),this.result.css=a;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let l=new e(d,i,this._opts,a);if(l.isMap()){let[m,h]=l.generate();m&&(this.result.css=m),h&&(this.result.map=h)}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(f){this.error=f}if(this.error)throw this.error;return this._root=p,p}get[Symbol.toStringTag](){return"NoWorkResult"}}return Pr=o,o.default=o,Pr}var Fr,ri;function Zl(){if(ri)return Fr;ri=1;let e=Kl(),t=co(),r=Ln(),s=it();class n{constructor(u=[]){this.version="8.4.38",this.plugins=this.normalize(u)}normalize(u){let p=[];for(let a of u)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(u,p={}){return!this.plugins.length&&!p.parser&&!p.stringifier&&!p.syntax?new e(this,u,p):new t(this,u,p)}use(u){return this.plugins=this.plugins.concat(this.normalize([u])),this}}return Fr=n,n.default=n,s.registerProcessor(n),r.registerProcessor(n),Fr}var Ur,ni;function Ql(){if(ni)return Ur;ni=1;let e=Ut(),t=io(),r=zt(),s=Fn(),n=Bt(),o=it(),u=Un();function p(a,f){if(Array.isArray(a))return a.map(c=>p(c));let{inputs:i,...d}=a;if(i){f=[];for(let c of i){let l={...c,__proto__:n.prototype};l.map&&(l.map={...l.map,__proto__:t.prototype}),f.push(l)}}if(d.nodes&&(d.nodes=a.nodes.map(c=>p(c,f))),d.source){let{inputId:c,...l}=d.source;d.source=l,c!=null&&(d.source.input=f[c])}if(d.type==="root")return new o(d);if(d.type==="decl")return new e(d);if(d.type==="rule")return new u(d);if(d.type==="comment")return new r(d);if(d.type==="atrule")return new s(d);throw new Error("Unknown node type: "+a.type)}return Ur=p,p.default=p,Ur}var Br,si;function eu(){if(si)return Br;si=1;let e=kn(),t=Ut(),r=co(),s=Le(),n=Zl(),o=Pt(),u=Ql(),p=Ln(),a=lo(),f=zt(),i=Fn(),d=Pn(),c=Bt(),l=Bn(),m=uo(),h=Un(),g=it(),C=Ft();function w(...S){return S.length===1&&Array.isArray(S[0])&&(S=S[0]),new n(S)}return w.plugin=function(x,b){let y=!1;function v(...I){console&&console.warn&&!y&&(y=!0,console.warn(x+`: postcss.plugin was deprecated. Migration guide:
|
|
28
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(x+`: \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=x,R.postcssVersion=new n().version,R}let E;return Object.defineProperty(v,"postcss",{get(){return E||(E=v()),E}}),v.process=function(I,R,A){return w([v(A)]).process(I,R)},v},w.stringify=o,w.parse=l,w.fromJSON=u,w.list=m,w.comment=S=>new f(S),w.atRule=S=>new i(S),w.decl=S=>new t(S),w.rule=S=>new h(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=f,w.Warning=a,w.AtRule=i,w.Result=d,w.Input=c,w.Rule=h,w.Root=g,w.Node=C,r.registerPostcss(w),Br=w,w.default=w,Br}var tu=eu(),Z=ql(tu);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 ru=Object.defineProperty,nu=(e,t,r)=>t in e?ru(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,pe=(e,t,r)=>nu(e,typeof t!="symbol"?t+"":t,r);Date.now().toString();function su(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function iu(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 St={exports:{}},ii;function ou(){if(ii)return St.exports;ii=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 St.exports=t(),St.exports.createColors=t,St.exports}var au={},lu=Object.freeze(Object.defineProperty({__proto__:null,default:au},Symbol.toStringTag,{value:"Module"})),ve=iu(lu),zr,oi;function zn(){if(oi)return zr;oi=1;let e=ou(),t=ve;class r extends Error{constructor(n,o,u,p,a,f){super(n),this.name="CssSyntaxError",this.reason=n,a&&(this.file=a),p&&(this.source=p),f&&(this.plugin=f),typeof o!="undefined"&&typeof u!="undefined"&&(typeof o=="number"?(this.line=o,this.column=u):(this.line=o.line,this.column=o.column,this.endLine=u.line,this.endColumn=u.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="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 u=o.split(/\r?\n/),p=Math.max(this.line-3,0),a=Math.min(this.line+2,u.length),f=String(a).length,i,d;if(n){let{bold:c,gray:l,red:m}=e.createColors(!0);i=h=>c(m(h)),d=h=>l(h)}else i=d=c=>c;return u.slice(p,a).map((c,l)=>{let m=p+1+l,h=" "+(" "+m).slice(-f)+" | ";if(m===this.line){let g=d(h.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+d(h)+c+`
|
|
30
|
+
`+g+i("^")}return" "+d(h)+c}).join(`
|
|
31
31
|
`)}toString(){let n=this.showSourceCode();return n&&(n=`
|
|
32
32
|
|
|
33
33
|
`+n+`
|
|
34
|
-
`),this.name+": "+this.message+n}}return
|
|
34
|
+
`),this.name+": "+this.message+n}}return zr=r,r.default=r,zr}var Ct={},ai;function $n(){return ai||(ai=1,Ct.isClean=Symbol("isClean"),Ct.my=Symbol("my")),Ct}var $r,li;function fo(){if(li)return $r;li=1;let e={after:`
|
|
35
35
|
`,beforeClose:`
|
|
36
36
|
`,beforeComment:`
|
|
37
37
|
`,beforeDecl:`
|
|
38
38
|
`,beforeOpen:" ",beforeRule:`
|
|
39
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(s){return s[0].toUpperCase()+s.slice(1)}class r{constructor(n){this.builder=n}atrule(n,o){let
|
|
40
|
-
`)){let
|
|
41
|
-
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawBeforeComment(n,o){let
|
|
42
|
-
`)&&(
|
|
43
|
-
`)&&(
|
|
44
|
-
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawColon(n){let o;return n.walkDecls(
|
|
45
|
-
`);return o=a[a.length-1],o=o.replace(/\S/g,""),!1}}),o}rawSemicolon(n){let o;return n.walk(
|
|
46
|
-
`?(
|
|
47
|
-
`);C=new Array(S.length);let
|
|
39
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(s){return s[0].toUpperCase()+s.slice(1)}class r{constructor(n){this.builder=n}atrule(n,o){let u="@"+n.name,p=n.params?this.rawValue(n,"params"):"";if(typeof n.raws.afterName!="undefined"?u+=n.raws.afterName:p&&(u+=" "),n.nodes)this.block(n,u+p);else{let a=(n.raws.between||"")+(o?";":"");this.builder(u+p+a,n)}}beforeAfter(n,o){let u;n.type==="decl"?u=this.raw(n,null,"beforeDecl"):n.type==="comment"?u=this.raw(n,null,"beforeComment"):o==="before"?u=this.raw(n,null,"beforeRule"):u=this.raw(n,null,"beforeClose");let p=n.parent,a=0;for(;p&&p.type!=="root";)a+=1,p=p.parent;if(u.includes(`
|
|
40
|
+
`)){let f=this.raw(n,null,"indent");if(f.length)for(let i=0;i<a;i++)u+=f}return u}block(n,o){let u=this.raw(n,"between","beforeOpen");this.builder(o+u+"{",n,"start");let p;n.nodes&&n.nodes.length?(this.body(n),p=this.raw(n,"after")):p=this.raw(n,"after","emptyBody"),p&&this.builder(p),this.builder("}",n,"end")}body(n){let o=n.nodes.length-1;for(;o>0&&n.nodes[o].type==="comment";)o-=1;let u=this.raw(n,"semicolon");for(let p=0;p<n.nodes.length;p++){let a=n.nodes[p],f=this.raw(a,"before");f&&this.builder(f),this.stringify(a,o!==p||u)}}comment(n){let o=this.raw(n,"left","commentLeft"),u=this.raw(n,"right","commentRight");this.builder("/*"+o+n.text+u+"*/",n)}decl(n,o){let u=this.raw(n,"between","colon"),p=n.prop+u+this.rawValue(n,"value");n.important&&(p+=n.raws.important||" !important"),o&&(p+=";"),this.builder(p,n)}document(n){this.body(n)}raw(n,o,u){let p;if(u||(u=o),o&&(p=n.raws[o],typeof p!="undefined"))return p;let a=n.parent;if(u==="before"&&(!a||a.type==="root"&&a.first===n||a&&a.type==="document"))return"";if(!a)return e[u];let f=n.root();if(f.rawCache||(f.rawCache={}),typeof f.rawCache[u]!="undefined")return f.rawCache[u];if(u==="before"||u==="after")return this.beforeAfter(n,u);{let i="raw"+t(u);this[i]?p=this[i](f,n):f.walk(d=>{if(p=d.raws[o],typeof p!="undefined")return!1})}return typeof p=="undefined"&&(p=e[u]),f.rawCache[u]=p,p}rawBeforeClose(n){let o;return n.walk(u=>{if(u.nodes&&u.nodes.length>0&&typeof u.raws.after!="undefined")return o=u.raws.after,o.includes(`
|
|
41
|
+
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawBeforeComment(n,o){let u;return n.walkComments(p=>{if(typeof p.raws.before!="undefined")return u=p.raws.before,u.includes(`
|
|
42
|
+
`)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u=="undefined"?u=this.raw(o,null,"beforeDecl"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeDecl(n,o){let u;return n.walkDecls(p=>{if(typeof p.raws.before!="undefined")return u=p.raws.before,u.includes(`
|
|
43
|
+
`)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u=="undefined"?u=this.raw(o,null,"beforeRule"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeOpen(n){let o;return n.walk(u=>{if(u.type!=="decl"&&(o=u.raws.between,typeof o!="undefined"))return!1}),o}rawBeforeRule(n){let o;return n.walk(u=>{if(u.nodes&&(u.parent!==n||n.first!==u)&&typeof u.raws.before!="undefined")return o=u.raws.before,o.includes(`
|
|
44
|
+
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawColon(n){let o;return n.walkDecls(u=>{if(typeof u.raws.between!="undefined")return o=u.raws.between.replace(/[^\s:]/g,""),!1}),o}rawEmptyBody(n){let o;return n.walk(u=>{if(u.nodes&&u.nodes.length===0&&(o=u.raws.after,typeof o!="undefined"))return!1}),o}rawIndent(n){if(n.raws.indent)return n.raws.indent;let o;return n.walk(u=>{let p=u.parent;if(p&&p!==n&&p.parent&&p.parent===n&&typeof u.raws.before!="undefined"){let a=u.raws.before.split(`
|
|
45
|
+
`);return o=a[a.length-1],o=o.replace(/\S/g,""),!1}}),o}rawSemicolon(n){let o;return n.walk(u=>{if(u.nodes&&u.nodes.length&&u.last.type==="decl"&&(o=u.raws.semicolon,typeof o!="undefined"))return!1}),o}rawValue(n,o){let u=n[o],p=n.raws[o];return p&&p.value===u?p.raw:u}root(n){this.body(n),n.raws.after&&this.builder(n.raws.after)}rule(n){this.block(n,this.rawValue(n,"selector")),n.raws.ownSemicolon&&this.builder(n.raws.ownSemicolon,n,"end")}stringify(n,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 $r=r,r.default=r,$r}var Wr,ui;function $t(){if(ui)return Wr;ui=1;let e=fo();function t(r,s){new e(s).stringify(r)}return Wr=t,t.default=t,Wr}var qr,ci;function Wt(){if(ci)return qr;ci=1;let{isClean:e,my:t}=$n(),r=zn(),s=fo(),n=$t();function o(p,a){let f=new p.constructor;for(let i in p){if(!Object.prototype.hasOwnProperty.call(p,i)||i==="proxyCache")continue;let d=p[i],c=typeof d;i==="parent"&&c==="object"?a&&(f[i]=a):i==="source"?f[i]=d:Array.isArray(d)?f[i]=d.map(l=>o(l,f)):(c==="object"&&d!==null&&(d=o(d)),f[i]=d)}return f}class u{constructor(a={}){this.raws={},this[e]=!1,this[t]=!0;for(let f in a)if(f==="nodes"){this.nodes=[];for(let i of a[f])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[f]=a[f]}addToError(a){if(a.postcssNode=this,a.stack&&this.source&&/\n\s{4}at /.test(a.stack)){let f=this.source;a.stack=a.stack.replace(/\n\s{4}at /,`$&${f.input.from}:${f.start.line}:${f.start.column}$&`)}return a}after(a){return this.parent.insertAfter(this,a),this}assign(a={}){for(let f in a)this[f]=a[f];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 f=o(this);for(let i in a)f[i]=a[i];return f}cloneAfter(a={}){let f=this.clone(a);return this.parent.insertAfter(this,f),f}cloneBefore(a={}){let f=this.clone(a);return this.parent.insertBefore(this,f),f}error(a,f={}){if(this.source){let{end:i,start:d}=this.rangeBy(f);return this.source.input.error(a,{column:d.column,line:d.line},{column:i.column,line:i.line},f)}return new r(a)}getProxyProcessor(){return{get(a,f){return f==="proxyOf"?a:f==="root"?()=>a.root().toProxy():a[f]},set(a,f,i){return a[f]===i||(a[f]=i,(f==="prop"||f==="value"||f==="name"||f==="params"||f==="important"||f==="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,f){let i=this.source.start;if(a.index)i=this.positionInside(a.index,f);else if(a.word){f=this.toString();let d=f.indexOf(a.word);d!==-1&&(i=this.positionInside(d,f))}return i}positionInside(a,f){let i=f||this.toString(),d=this.source.start.column,c=this.source.start.line;for(let l=0;l<a;l++)i[l]===`
|
|
46
|
+
`?(d=1,c+=1):d+=1;return{column:d,line:c}}prev(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a-1]}rangeBy(a){let f={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:f.column+1,line:f.line};if(a.word){let d=this.toString(),c=d.indexOf(a.word);c!==-1&&(f=this.positionInside(c,d),i=this.positionInside(c+a.word.length,d))}else a.start?f={column:a.start.column,line:a.start.line}:a.index&&(f=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<f.line||i.line===f.line&&i.column<=f.column)&&(i={column:f.column+1,line:f.line}),{end:i,start:f}}raw(a,f){return new s().raw(this,a,f)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...a){if(this.parent){let f=this,i=!1;for(let d of a)d===this?i=!0:i?(this.parent.insertAfter(f,d),f=d):this.parent.insertBefore(f,d);i||this.remove()}return this}root(){let a=this;for(;a.parent&&a.parent.type!=="document";)a=a.parent;return a}toJSON(a,f){let i={},d=f==null;f=f||new Map;let c=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(h=>typeof h=="object"&&h.toJSON?h.toJSON(null,f):h);else if(typeof m=="object"&&m.toJSON)i[l]=m.toJSON(null,f);else if(l==="source"){let h=f.get(m.input);h==null&&(h=c,f.set(m.input,c),c++),i[l]={end:m.end,inputId:h,start:m.start}}else i[l]=m}return d&&(i.inputs=[...f.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 f="";return a(this,i=>{f+=i}),f}warn(a,f,i){let d={node:this};for(let c in i)d[c]=i[c];return a.warn(f,d)}get proxyOf(){return this}}return qr=u,u.default=u,qr}var jr,fi;function qt(){if(fi)return jr;fi=1;let e=Wt();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 jr=t,t.default=t,jr}var Vr,hi;function uu(){if(hi)return Vr;hi=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Vr={nanoid:(s=21)=>{let n="",o=s;for(;o--;)n+=e[Math.random()*64|0];return n},customAlphabet:(s,n=21)=>(o=n)=>{let u="",p=o;for(;p--;)u+=s[Math.random()*s.length|0];return u}},Vr}var Hr,di;function ho(){if(di)return Hr;di=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ve,{existsSync:r,readFileSync:s}=ve,{dirname:n,join:o}=ve;function u(a){return Buffer?Buffer.from(a,"base64").toString():window.atob(a)}class p{constructor(f,i){if(i.map===!1)return;this.loadAnnotation(f),this.inline=this.startWith(this.annotation,"data:");let d=i.map?i.map.prev:void 0,c=this.loadMap(i.from,d);!this.mapFile&&i.from&&(this.mapFile=i.from),this.mapFile&&(this.root=n(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(f){let i=/^data:application\/json;charset=utf-?8;base64,/,d=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,l=/^data:application\/json,/;if(c.test(f)||l.test(f))return decodeURIComponent(f.substr(RegExp.lastMatch.length));if(i.test(f)||d.test(f))return u(f.substr(RegExp.lastMatch.length));let m=f.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(f){return f.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(f){return typeof f!="object"?!1:typeof f.mappings=="string"||typeof f._mappings=="string"||Array.isArray(f.sections)}loadAnnotation(f){let i=f.match(/\/\*\s*# sourceMappingURL=/gm);if(!i)return;let d=f.lastIndexOf(i.pop()),c=f.indexOf("*/",d);d>-1&&c>-1&&(this.annotation=this.getAnnotationURL(f.substring(d,c)))}loadFile(f){if(this.root=n(f),r(f))return this.mapFile=f,s(f,"utf-8").toString().trim()}loadMap(f,i){if(i===!1)return!1;if(i){if(typeof i=="string")return i;if(typeof i=="function"){let d=i(f);if(d){let c=this.loadFile(d);if(!c)throw new Error("Unable to load previous source map: "+d.toString());return c}}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 d=this.annotation;return f&&(d=o(n(f),d)),this.loadFile(d)}}}startWith(f,i){return f?f.substr(0,i.length)===i:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Hr=p,p.default=p,Hr}var Gr,pi;function jt(){if(pi)return Gr;pi=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ve,{fileURLToPath:r,pathToFileURL:s}=ve,{isAbsolute:n,resolve:o}=ve,{nanoid:u}=uu(),p=ve,a=zn(),f=ho(),i=Symbol("fromOffsetCache"),d=!!(e&&t),c=!!(o&&n);class l{constructor(h,g={}){if(h===null||typeof h=="undefined"||typeof h=="object"&&!h.toString)throw new Error(`PostCSS received ${h} instead of CSS string`);if(this.css=h.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!c||/^\w+:\/\//.test(g.from)||n(g.from)?this.file=g.from:this.file=o(g.from)),c&&d){let C=new f(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 "+u(6)+">"),this.map&&(this.map.file=this.from)}error(h,g,C,w={}){let S,x,b;if(g&&typeof g=="object"){let v=g,E=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 E.offset=="number"){let I=this.fromOffset(E.offset);x=I.line,b=I.col}else x=E.line,b=E.column}else if(!C){let v=this.fromOffset(g);g=v.line,C=v.col}let y=this.origin(g,C,x,b);return y?S=new a(h,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(h,x===void 0?g:{column:C,line:g},x===void 0?C:{column:b,line:x},this.css,this.file,w.plugin),S.input={column:C,endColumn:b,endLine:x,line:g,source:this.css},this.file&&(s&&(S.input.url=s(this.file).toString()),S.input.file=this.file),S}fromOffset(h){let g,C;if(this[i])C=this[i];else{let S=this.css.split(`
|
|
47
|
+
`);C=new Array(S.length);let x=0;for(let b=0,y=S.length;b<y;b++)C[b]=x,x+=S[b].length+1;this[i]=C}g=C[C.length-1];let w=0;if(h>=g)w=C.length-1;else{let S=C.length-2,x;for(;w<S;)if(x=w+(S-w>>1),h<C[x])S=x-1;else if(h>=C[x+1])w=x+1;else{w=x;break}}return{col:h-C[w]+1,line:w+1}}mapResolve(h){return/^\w+:\/\//.test(h)?h:o(this.map.consumer().sourceRoot||this.map.root||".",h)}origin(h,g,C,w){if(!this.map)return!1;let S=this.map.consumer(),x=S.originalPositionFor({column:g,line:h});if(!x.source)return!1;let b;typeof C=="number"&&(b=S.originalPositionFor({column:w,line:C}));let y;n(x.source)?y=s(x.source):y=new URL(x.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let v={column:x.column,endColumn:b&&b.column,endLine:b&&b.line,line:x.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 E=S.sourceContentFor(x.source);return E&&(v.source=E),v}toJSON(){let h={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(h[g]=this[g]);return this.map&&(h.map={...this.map},h.map.consumerCache&&(h.map.consumerCache=void 0)),h}get from(){return this.file||this.id}}return Gr=l,l.default=l,p&&p.registerInput&&p.registerInput(l),Gr}var Yr,mi;function po(){if(mi)return Yr;mi=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ve,{dirname:r,relative:s,resolve:n,sep:o}=ve,{pathToFileURL:u}=ve,p=jt(),a=!!(e&&t),f=!!(r&&n&&s&&o);class i{constructor(c,l,m,h){this.stringify=c,this.mapOpts=m.map||{},this.root=l,this.opts=m,this.css=h,this.originalCSS=h,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let c;this.isInline()?c="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?c=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?c=this.mapOpts.annotation(this.opts.to,this.root):c=this.outputFile()+".map";let l=`
|
|
48
48
|
`;this.css.includes(`\r
|
|
49
49
|
`)&&(l=`\r
|
|
50
|
-
`),this.css+=l+"/*# sourceMappingURL="+
|
|
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="",
|
|
50
|
+
`),this.css+=l+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let l=this.toUrl(this.path(c.file)),m=c.root||r(c.file),h;this.mapOpts.sourcesContent===!1?(h=new e(c.text),h.sourcesContent&&(h.sourcesContent=null)):h=c.consumer(),this.map.applySourceMap(h,l,this.toUrl(this.path(m)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let l=this.root.nodes.length-1;l>=0;l--)c=this.root.nodes[l],c.type==="comment"&&c.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(l)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),f&&a&&this.isMap())return this.generateMap();{let c="";return this.stringify(this.root,l=>{c+=l}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=t.fromSourceMap(c,{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 c=1,l=1,m="<no source>",h={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,C;this.stringify(this.root,(w,S,x)=>{if(this.css+=w,S&&x!=="end"&&(h.generated.line=c,h.generated.column=l-1,S.source&&S.source.start?(h.source=this.sourcePath(S),h.original.line=S.source.start.line,h.original.column=S.source.start.column-1,this.map.addMapping(h)):(h.source=m,h.original.line=1,h.original.column=0,this.map.addMapping(h))),g=w.match(/\n/g),g?(c+=g.length,C=w.lastIndexOf(`
|
|
51
|
+
`),l=w.length-C):l+=w.length,S&&x!=="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?(h.source=this.sourcePath(S),h.original.line=S.source.end.line,h.original.column=S.source.end.column-1,h.generated.line=c,h.generated.column=l-2,this.map.addMapping(h)):(h.source=m,h.original.line=1,h.original.column=0,h.generated.line=c,h.generated.column=l-1,this.map.addMapping(h)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c!="undefined"&&c!==!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(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let l=this.memoizedPaths.get(c);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 h=s(m,c);return this.memoizedPaths.set(c,h),h}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let l=c.source.input.map;this.previousMaps.includes(l)||this.previousMaps.push(l)}});else{let c=new p(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(l=>{if(l.source){let m=l.source.input.from;if(m&&!c[m]){c[m]=!0;let h=this.usesFileUrls?this.toFileUrl(m):this.toUrl(this.path(m));this.map.setSourceContent(h,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(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let l=this.memoizedFileURLs.get(c);if(l)return l;if(u){let m=u(c).toString();return this.memoizedFileURLs.set(c,m),m}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let l=this.memoizedURLs.get(c);if(l)return l;o==="\\"&&(c=c.replace(/\\/g,"/"));let m=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,m),m}}return Yr=i,Yr}var Xr,gi;function Vt(){if(gi)return Xr;gi=1;let e=Wt();class t extends e{constructor(s){super(s),this.type="comment"}}return Xr=t,t.default=t,Xr}var Jr,yi;function Pe(){if(yi)return Jr;yi=1;let{isClean:e,my:t}=$n(),r=qt(),s=Vt(),n=Wt(),o,u,p,a;function f(c){return c.map(l=>(l.nodes&&(l.nodes=f(l.nodes)),delete l.source,l))}function i(c){if(c[e]=!1,c.proxyOf.nodes)for(let l of c.proxyOf.nodes)i(l)}class d extends n{append(...l){for(let m of l){let h=this.normalize(m,this.last);for(let g of h)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(),h,g;for(;this.indexes[m]<this.proxyOf.nodes.length&&(h=this.indexes[m],g=l(this.proxyOf.nodes[h],h),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")?(...h)=>l[m](...h.map(g=>typeof g=="function"?(C,w)=>g(C.toProxy(),w):g)):m==="every"||m==="some"?h=>l[m]((g,...C)=>h(g.toProxy(),...C)):m==="root"?()=>l.root().toProxy():m==="nodes"?l.nodes.map(h=>h.toProxy()):m==="first"||m==="last"?l[m].toProxy():l[m]:l[m]},set(l,m,h){return l[m]===h||(l[m]=h,(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 h=this.index(l),g=this.normalize(m,this.proxyOf.nodes[h]).reverse();h=this.index(l);for(let w of g)this.proxyOf.nodes.splice(h+1,0,w);let C;for(let w in this.indexes)C=this.indexes[w],h<C&&(this.indexes[w]=C+g.length);return this.markDirty(),this}insertBefore(l,m){let h=this.index(l),g=h===0?"prepend":!1,C=this.normalize(m,this.proxyOf.nodes[h],g).reverse();h=this.index(l);for(let S of C)this.proxyOf.nodes.splice(h,0,S);let w;for(let S in this.indexes)w=this.indexes[S],h<=w&&(this.indexes[S]=w+C.length);return this.markDirty(),this}normalize(l,m){if(typeof l=="string")l=f(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 u(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]||d.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 h=this.normalize(m,this.first,"prepend").reverse();for(let g of h)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+h.length}return this.markDirty(),this}push(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 h in this.indexes)m=this.indexes[h],m>=l&&(this.indexes[h]=m-1);return this.markDirty(),this}replaceValues(l,m,h){return h||(h=m,m={}),this.walkDecls(g=>{m.props&&!m.props.includes(g.prop)||m.fast&&!g.value.includes(m.fast)||(g.value=g.value.replace(l,h))}),this.markDirty(),this}some(l){return this.nodes.some(l)}walk(l){return this.each((m,h)=>{let g;try{g=l(m,h)}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((h,g)=>{if(h.type==="atrule"&&l.test(h.name))return m(h,g)}):this.walk((h,g)=>{if(h.type==="atrule"&&h.name===l)return m(h,g)}):(m=l,this.walk((h,g)=>{if(h.type==="atrule")return m(h,g)}))}walkComments(l){return this.walk((m,h)=>{if(m.type==="comment")return l(m,h)})}walkDecls(l,m){return m?l instanceof RegExp?this.walk((h,g)=>{if(h.type==="decl"&&l.test(h.prop))return m(h,g)}):this.walk((h,g)=>{if(h.type==="decl"&&h.prop===l)return m(h,g)}):(m=l,this.walk((h,g)=>{if(h.type==="decl")return m(h,g)}))}walkRules(l,m){return m?l instanceof RegExp?this.walk((h,g)=>{if(h.type==="rule"&&l.test(h.selector))return m(h,g)}):this.walk((h,g)=>{if(h.type==="rule"&&h.selector===l)return m(h,g)}):(m=l,this.walk((h,g)=>{if(h.type==="rule")return m(h,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return d.registerParse=c=>{o=c},d.registerRule=c=>{u=c},d.registerAtRule=c=>{p=c},d.registerRoot=c=>{a=c},Jr=d,d.default=d,d.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,p.prototype):c.type==="rule"?Object.setPrototypeOf(c,u.prototype):c.type==="decl"?Object.setPrototypeOf(c,r.prototype):c.type==="comment"?Object.setPrototypeOf(c,s.prototype):c.type==="root"&&Object.setPrototypeOf(c,a.prototype),c[t]=!0,c.nodes&&c.nodes.forEach(l=>{d.rebuild(l)})},Jr}var Kr,vi;function Wn(){if(vi)return Kr;vi=1;let e=Pe(),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},Kr=s,s.default=s,Kr}var Zr,wi;function mo(){if(wi)return Zr;wi=1;let e={};return Zr=function(r){e[r]||(e[r]=!0,typeof console!="undefined"&&console.warn&&console.warn(r))},Zr}var Qr,bi;function go(){if(bi)return Qr;bi=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 Qr=e,e.default=e,Qr}var en,Si;function qn(){if(Si)return en;Si=1;let e=go();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 en=t,t.default=t,en}var tn,Ci;function cu(){if(Ci)return tn;Ci=1;let e=39,t=34,r=92,s=47,n=10,o=32,u=12,p=9,a=13,f=91,i=93,d=40,c=41,l=123,m=125,h=59,g=42,C=58,w=64,S=/[\t\n\f\r "#'()/;[\\\]{}]/g,x=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,b=/.[\r\n"'(/\\]/,y=/[\da-f]/i;return tn=function(E,I={}){let R=E.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 E.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 u:{M=N;do M+=1,O=R.charCodeAt(M);while(O===o||O===n||O===p||O===a||O===u);F=["space",R.slice(N,M)],N=M-1;break}case f:case i:case l:case m:case C:case h:case c:{let j=String.fromCharCode(O);F=[j,j,N];break}case d:{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!==u&&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!==u&&(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):(x.lastIndex=N+1,x.test(R),x.lastIndex===0?M=R.length-1:M=x.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}},tn}var rn,Ei;function jn(){if(Ei)return rn;Ei=1;let e=Pe();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 rn=t,t.default=t,e.registerAtRule(t),rn}var nn,xi;function ot(){if(xi)return nn;xi=1;let e=Pe(),t,r;class s extends e{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[])}normalize(o,u,p){let a=super.normalize(o);if(u){if(p==="prepend")this.nodes.length>1?u.raws.before=this.nodes[1].raws.before:delete u.raws.before;else if(this.first!==u)for(let f of a)f.raws.before=u.raws.before}return a}removeChild(o,u){let p=this.index(o);return!u&&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},nn=s,s.default=s,e.registerRoot(s),nn}var sn,Mi;function yo(){if(Mi)return sn;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="",u=!1,p=0,a=!1,f="",i=!1;for(let d of t)i?i=!1:d==="\\"?i=!0:a?d===f&&(a=!1):d==='"'||d==="'"?(a=!0,f=d):d==="("?p+=1:d===")"?p>0&&(p-=1):p===0&&r.includes(d)&&(u=!0),u?(o!==""&&n.push(o.trim()),o="",u=!1):o+=d;return(s||o!=="")&&n.push(o.trim()),n}};return sn=e,e.default=e,sn}var on,Ri;function Vn(){if(Ri)return on;Ri=1;let e=Pe(),t=yo();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,u=o?o[0]:","+this.raw("between","beforeOpen");this.selector=n.join(u)}}return on=r,r.default=r,e.registerRule(r),on}var an,Ii;function fu(){if(Ii)return an;Ii=1;let e=qt(),t=cu(),r=Vt(),s=jn(),n=ot(),o=Vn(),u={empty:!0,space:!0};function p(f){for(let i=f.length-1;i>=0;i--){let d=f[i],c=d[3]||d[2];if(c)return c}}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 d=new s;d.name=i[1].slice(1),d.name===""&&this.unnamedAtrule(d,i),this.init(d,i[2]);let c,l,m,h=!1,g=!1,C=[],w=[];for(;!this.tokenizer.endOfFile();){if(i=this.tokenizer.nextToken(),c=i[0],c==="("||c==="["?w.push(c==="("?")":"]"):c==="{"&&w.length>0?w.push("}"):c===w[w.length-1]&&w.pop(),w.length===0)if(c===";"){d.source.end=this.getPosition(i[2]),d.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){g=!0;break}else if(c==="}"){if(C.length>0){for(m=C.length-1,l=C[m];l&&l[0]==="space";)l=C[--m];l&&(d.source.end=this.getPosition(l[3]||l[2]),d.source.end.offset++)}this.end(i);break}else C.push(i);else C.push(i);if(this.tokenizer.endOfFile()){h=!0;break}}d.raws.between=this.spacesAndCommentsFromEnd(C),C.length?(d.raws.afterName=this.spacesAndCommentsFromStart(C),this.raw(d,"params",C),h&&(i=C[C.length-1],d.source.end=this.getPosition(i[3]||i[2]),d.source.end.offset++,this.spaces=d.raws.between,d.raws.between="")):(d.raws.afterName="",d.params=""),g&&(d.nodes=[],this.current=d)}checkMissedSemicolon(i){let d=this.colon(i);if(d===!1)return;let c=0,l;for(let m=d-1;m>=0&&(l=i[m],!(l[0]!=="space"&&(c+=1,c===2)));m--);throw this.input.error("Missed semicolon",l[0]==="word"?l[3]+1:l[2])}colon(i){let d=0,c,l,m;for(let[h,g]of i.entries()){if(c=g,l=c[0],l==="("&&(d+=1),l===")"&&(d-=1),d===0&&l===":")if(!m)this.doubleColon(c);else{if(m[0]==="word"&&m[1]==="progid")continue;return h}m=c}return!1}comment(i){let d=new r;this.init(d,i[2]),d.source.end=this.getPosition(i[3]||i[2]),d.source.end.offset++;let c=i[1].slice(2,-2);if(/^\s*$/.test(c))d.text="",d.raws.left=c,d.raws.right="";else{let l=c.match(/^(\s*)([^]*\S)(\s*)$/);d.text=l[2],d.raws.left=l[1],d.raws.right=l[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(i,d){let c=new e;this.init(c,i[0][2]);let l=i[i.length-1];for(l[0]===";"&&(this.semicolon=!0,i.pop()),c.source.end=this.getPosition(l[3]||l[2]||p(i)),c.source.end.offset++;i[0][0]!=="word";)i.length===1&&this.unknownWord(i),c.raws.before+=i.shift()[1];for(c.source.start=this.getPosition(i[0][2]),c.prop="";i.length;){let w=i[0][0];if(w===":"||w==="space"||w==="comment")break;c.prop+=i.shift()[1]}c.raws.between="";let m;for(;i.length;)if(m=i.shift(),m[0]===":"){c.raws.between+=m[1];break}else m[0]==="word"&&/\w/.test(m[1])&&this.unknownWord([m]),c.raws.between+=m[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let h=[],g;for(;i.length&&(g=i[0][0],!(g!=="space"&&g!=="comment"));)h.push(i.shift());this.precheckMissedSemicolon(i);for(let w=i.length-1;w>=0;w--){if(m=i[w],m[1].toLowerCase()==="!important"){c.important=!0;let S=this.stringFrom(i,w);S=this.spacesFromEnd(i)+S,S!==" !important"&&(c.raws.important=S);break}else if(m[1].toLowerCase()==="important"){let S=i.slice(0),x="";for(let b=w;b>0;b--){let y=S[b][0];if(x.trim().indexOf("!")===0&&y!=="space")break;x=S.pop()[1]+x}x.trim().indexOf("!")===0&&(c.important=!0,c.raws.important=x,i=S)}if(m[0]!=="space"&&m[0]!=="comment")break}i.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(c.raws.between+=h.map(w=>w[1]).join(""),h=[]),this.raw(c,"value",h.concat(i),d),c.value.includes(":")&&!d&&this.checkMissedSemicolon(i)}doubleColon(i){throw this.input.error("Double colon",{offset:i[2]},{offset:i[2]+i[1].length})}emptyRule(i){let d=new o;this.init(d,i[2]),d.selector="",d.raws.between="",this.current=d}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 d=this.current.nodes[this.current.nodes.length-1];d&&d.type==="rule"&&!d.raws.ownSemicolon&&(d.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(i){let d=this.input.fromOffset(i);return{column:d.col,line:d.line,offset:i}}init(i,d){this.current.push(i),i.source={input:this.input,start:this.getPosition(d)},i.raws.before=this.spaces,this.spaces="",i.type!=="comment"&&(this.semicolon=!1)}other(i){let d=!1,c=null,l=!1,m=null,h=[],g=i[1].startsWith("--"),C=[],w=i;for(;w;){if(c=w[0],C.push(w),c==="("||c==="[")m||(m=w),h.push(c==="("?")":"]");else if(g&&l&&c==="{")m||(m=w),h.push("}");else if(h.length===0)if(c===";")if(l){this.decl(C,g);return}else break;else if(c==="{"){this.rule(C);return}else if(c==="}"){this.tokenizer.back(C.pop()),d=!0;break}else c===":"&&(l=!0);else c===h[h.length-1]&&(h.pop(),h.length===0&&(m=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(d=!0),h.length>0&&this.unclosedBracket(m),d&&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,d,c,l){let m,h,g=c.length,C="",w=!0,S,x;for(let b=0;b<g;b+=1)m=c[b],h=m[0],h==="space"&&b===g-1&&!l?w=!1:h==="comment"?(x=c[b-1]?c[b-1][0]:"empty",S=c[b+1]?c[b+1][0]:"empty",!u[x]&&!u[S]?C.slice(-1)===","?w=!1:C+=m[1]:w=!1):C+=m[1];if(!w){let b=c.reduce((y,v)=>y+v[1],"");i.raws[d]={raw:b,value:C}}i[d]=C}rule(i){i.pop();let d=new o;this.init(d,i[0][2]),d.raws.between=this.spacesAndCommentsFromEnd(i),this.raw(d,"selector",i),this.current=d}spacesAndCommentsFromEnd(i){let d,c="";for(;i.length&&(d=i[i.length-1][0],!(d!=="space"&&d!=="comment"));)c=i.pop()[1]+c;return c}spacesAndCommentsFromStart(i){let d,c="";for(;i.length&&(d=i[0][0],!(d!=="space"&&d!=="comment"));)c+=i.shift()[1];return c}spacesFromEnd(i){let d,c="";for(;i.length&&(d=i[i.length-1][0],d==="space");)c=i.pop()[1]+c;return c}stringFrom(i,d){let c="";for(let l=d;l<i.length;l++)c+=i[l][1];return i.splice(d,i.length-d),c}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,d){throw this.input.error("At-rule without name",{offset:d[2]},{offset:d[2]+d[1].length})}}return an=a,an}var ln,Oi;function Hn(){if(Oi)return ln;Oi=1;let e=Pe(),t=fu(),r=jt();function s(n,o){let u=new r(n,o),p=new t(u);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 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
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(
|
|
57
|
-
https://www.w3ctech.com/topic/2226`));let R=b(...I);return R.postcssPlugin=
|
|
55
|
+
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),a}return p.root}return ln=s,s.default=s,e.registerParse(s),ln}var un,Ni;function vo(){if(Ni)return un;Ni=1;let{isClean:e,my:t}=$n(),r=po(),s=$t(),n=Pe(),o=Wn(),u=mo(),p=qn(),a=Hn(),f=ot(),i={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},d={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},c={Once:!0,postcssPlugin:!0,prepare:!0},l=0;function m(x){return typeof x=="object"&&typeof x.then=="function"}function h(x){let b=!1,y=i[x.type];return x.type==="decl"?b=x.prop.toLowerCase():x.type==="atrule"&&(b=x.name.toLowerCase()),b&&x.append?[y,y+"-"+b,l,y+"Exit",y+"Exit-"+b]:b?[y,y+"-"+b,y+"Exit",y+"Exit-"+b]:x.append?[y,l,y+"Exit"]:[y,y+"Exit"]}function g(x){let b;return x.type==="document"?b=["Document",l,"DocumentExit"]:x.type==="root"?b=["Root",l,"RootExit"]:b=h(x),{eventIndex:0,events:b,iterator:0,node:x,visitorIndex:0,visitors:[]}}function C(x){return x[e]=!1,x.nodes&&x.nodes.forEach(b=>C(b)),x}let w={};class S{constructor(b,y,v){this.stringified=!1,this.processed=!1;let E;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))E=C(y);else if(y instanceof S||y instanceof p)E=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{E=I(y,v)}catch(R){this.processed=!0,this.error=R}E&&!E[t]&&n.rebuild(E)}this.result=new p(b,E,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 E=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 "+E+" uses "+I+". Perhaps this is the source of the error below.")}}catch(E){console&&console.error&&console.error(E)}return b}prepareVisitors(){this.listeners={};let b=(y,v,E)=>{this.listeners[v]||(this.listeners[v]=[]),this.listeners[v].push([y,E])};for(let y of this.plugins)if(typeof y=="object")for(let v in y){if(!d[v]&&/^[A-Z]/.test(v))throw new Error(`Unknown event ${v} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[v])if(typeof y[v]=="object")for(let E in y[v])E==="*"?b(y,v,y[v][E]):b(y,v+"-"+E.toLowerCase(),y[v][E]);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(E){throw this.handleError(E)}}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(E){let I=y[y.length-1].node;throw this.handleError(E,I)}}}if(this.listeners.OnceExit)for(let[y,v]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(b.type==="document"){let E=b.nodes.map(I=>v(I,this.helpers));await Promise.all(E)}else await v(b,this.helpers)}catch(E){throw this.handleError(E)}}}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 E=new r(y,this.result.root,this.result.opts).generate();return this.result.css=E[0],this.result.map=E[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||u("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,E]of b){this.result.lastPlugin=v;let I;try{I=E(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:E}=y;if(v.type!=="root"&&v.type!=="document"&&!v.parent){b.pop();return}if(E.length>0&&y.visitorIndex<E.length){let[R,A]=E[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===E.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=h(b);for(let v of y)if(v===l)b.nodes&&b.each(E=>{E[e]||this.walkSync(E)});else{let E=this.listeners[v];if(E&&this.visitSync(E,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=x=>{w=x},un=S,S.default=S,f.registerLazyResult(S),o.registerLazyResult(S),un}var cn,Ai;function hu(){if(Ai)return cn;Ai=1;let e=po(),t=$t(),r=mo(),s=Hn(),n=qn();class o{constructor(p,a,f){a=a.toString(),this.stringified=!1,this._processor=p,this._css=a,this._opts=f,this._map=void 0;let i,d=t;this.result=new n(this._processor,i,this._opts),this.result.css=a;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let l=new e(d,i,this._opts,a);if(l.isMap()){let[m,h]=l.generate();m&&(this.result.css=m),h&&(this.result.map=h)}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(f){this.error=f}if(this.error)throw this.error;return this._root=p,p}get[Symbol.toStringTag](){return"NoWorkResult"}}return cn=o,o.default=o,cn}var fn,Ti;function du(){if(Ti)return fn;Ti=1;let e=hu(),t=vo(),r=Wn(),s=ot();class n{constructor(u=[]){this.version="8.4.38",this.plugins=this.normalize(u)}normalize(u){let p=[];for(let a of u)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(u,p={}){return!this.plugins.length&&!p.parser&&!p.stringifier&&!p.syntax?new e(this,u,p):new t(this,u,p)}use(u){return this.plugins=this.plugins.concat(this.normalize([u])),this}}return fn=n,n.default=n,s.registerProcessor(n),r.registerProcessor(n),fn}var hn,Di;function pu(){if(Di)return hn;Di=1;let e=qt(),t=ho(),r=Vt(),s=jn(),n=jt(),o=ot(),u=Vn();function p(a,f){if(Array.isArray(a))return a.map(c=>p(c));let{inputs:i,...d}=a;if(i){f=[];for(let c of i){let l={...c,__proto__:n.prototype};l.map&&(l.map={...l.map,__proto__:t.prototype}),f.push(l)}}if(d.nodes&&(d.nodes=a.nodes.map(c=>p(c,f))),d.source){let{inputId:c,...l}=d.source;d.source=l,c!=null&&(d.source.input=f[c])}if(d.type==="root")return new o(d);if(d.type==="decl")return new e(d);if(d.type==="rule")return new u(d);if(d.type==="comment")return new r(d);if(d.type==="atrule")return new s(d);throw new Error("Unknown node type: "+a.type)}return hn=p,p.default=p,hn}var dn,ki;function mu(){if(ki)return dn;ki=1;let e=zn(),t=qt(),r=vo(),s=Pe(),n=du(),o=$t(),u=pu(),p=Wn(),a=go(),f=Vt(),i=jn(),d=qn(),c=jt(),l=Hn(),m=yo(),h=Vn(),g=ot(),C=Wt();function w(...S){return S.length===1&&Array.isArray(S[0])&&(S=S[0]),new n(S)}return w.plugin=function(x,b){let y=!1;function v(...I){console&&console.warn&&!y&&(y=!0,console.warn(x+`: postcss.plugin was deprecated. Migration guide:
|
|
56
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(x+`: \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=x,R.postcssVersion=new n().version,R}let E;return Object.defineProperty(v,"postcss",{get(){return E||(E=v()),E}}),v.process=function(I,R,A){return w([v(A)]).process(I,R)},v},w.stringify=o,w.parse=l,w.fromJSON=u,w.list=m,w.comment=S=>new f(S),w.atRule=S=>new i(S),w.decl=S=>new t(S),w.rule=S=>new h(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=f,w.Warning=a,w.AtRule=i,w.Result=d,w.Input=c,w.Rule=h,w.Root=g,w.Node=C,r.registerPostcss(w),dn=w,w.default=w,dn}var gu=mu(),Q=su(gu);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 wn=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 _i={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Li={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Et={},wo={},yu=()=>!!globalThis.Zone;function Gn(e){if(Et[e])return Et[e];let t=globalThis[e],r=t.prototype,s=e in _i?_i[e]:void 0,n=!!(s&&s.every(p=>{var a,f;return!!((f=(a=Object.getOwnPropertyDescriptor(r,p))==null?void 0:a.get)!=null&&f.toString().includes("[native code]"))})),o=e in Li?Li[e]:void 0,u=!!(o&&o.every(p=>{var a;return typeof r[p]=="function"&&((a=r[p])==null?void 0:a.toString().includes("[native code]"))}));if(n&&u&&!yu())return Et[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 f=a[e].prototype;if(!f)return p.remove(),r;let i=navigator.userAgent;return i.includes("Safari")&&!i.includes("Chrome")?(p.classList.add("rr-block"),p.setAttribute("__rrwebUntaintedMutationObserver",""),wo[e]=()=>p.remove()):p.remove(),Et[e]=f}catch(p){return r}}var pn={};function Ie(e,t,r){var s;let n=`${e}.${String(r)}`;if(pn[n])return pn[n].call(t);let o=Gn(e),u=(s=Object.getOwnPropertyDescriptor(o,r))==null?void 0:s.get;return u?(pn[n]=u,u.call(t)):t[r]}var mn={};function bo(e,t,r){let s=`${e}.${String(r)}`;if(mn[s])return mn[s].bind(t);let o=Gn(e)[r];return typeof o!="function"?t[r]:(mn[s]=o,o.bind(t))}function vu(e){return Ie("Node",e,"ownerDocument")}function wu(e){return Ie("Node",e,"childNodes")}function bu(e){return Ie("Node",e,"parentNode")}function Su(e){return Ie("Node",e,"parentElement")}function Cu(e){return Ie("Node",e,"textContent")}function Eu(e,t){return bo("Node",e,"contains")(t)}function xu(e){return bo("Node",e,"getRootNode")()}function Mu(e){return!e||!("host"in e)?null:Ie("ShadowRoot",e,"host")}function Ru(e){return e.styleSheets}function Iu(e){return!e||!("shadowRoot"in e)?null:Ie("Element",e,"shadowRoot")}function Ou(e,t){return Ie("Element",e,"querySelector")(t)}function Nu(e,t){return Ie("Element",e,"querySelectorAll")(t)}function So(){var e;return[Gn("MutationObserver").constructor,(e=wo.MutationObserver)!=null?e:(()=>{})]}var nt=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(nt=()=>new Date().getTime());function Fe(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:vu,childNodes:wu,parentNode:bu,parentElement:Su,textContent:Cu,contains:Eu,getRootNode:xu,host:Mu,styleSheets:Ru,shadowRoot:Iu,querySelector:Ou,querySelectorAll:Nu,nowTimestamp:nt,mutationObserverCtor:So,patch:Fe};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.`,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() {
|
|
59
|
+
or you can use record.mirror to access the mirror instance during recording.`,Pi={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&&(Pi=new Proxy(Pi,{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 u=Date.now();!n&&r.leading===!1&&(n=u);let p=t-(u-n),a=this;p<=0||p>t?(s&&(clearTimeout(s),s=null),n=u,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 Ht(e,t,r,s,n=window){let o=n.Object.getOwnPropertyDescriptor(e,t);return n.Object.defineProperty(e,t,s?r:{set(u){setTimeout(()=>{r.set.call(this,u)},0),o&&o.set&&o.set.call(this,u)}}),()=>Ht(e,t,o||{},!0)}function Co(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 Eo(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function xo(){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(Dt(n,t,s))return!0}catch(o){}return!!(r&&(n.matches(r)||s&&n.closest(r)!==null))}function Au(e,t){return t.getId(e)!==-1}function gn(e,t,r){return e.tagName==="TITLE"&&r.headTitleMutations?!0:t.getId(e)===rt}function Ro(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?Ro(s,t):!0}function bn(e){return!!e.changedTouches}function Tu(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 Io(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Oo(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Sn(e){return e?e instanceof wn&&"shadowRoot"in e?!!e.shadowRoot:!!B.shadowRoot(e):!1}var Cn=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 No(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 Du(e){let t=e,r;for(;r=No(t);)t=r;return t}function ku(e){let t=B.ownerDocument(e);if(!t)return!1;let r=Du(e);return B.contains(t,r)}function Ao(e){let t=B.ownerDocument(e);return t?B.contains(t,e)||ku(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 To=(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))(To||{});function Fi(e){return"__ln"in e}var En=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&&Fi(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&&Fi(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--)}},Ui=(e,t)=>`${e}@${t}`,xn=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 En,n=a=>{let f=a,i=rt;for(;i===rt;)f=f&&f.nextSibling,i=f&&this.mirror.getId(f);return i},o=a=>{let f=B.parentNode(a);if(!f||!Ao(a))return;let i=!1;if(a.nodeType===Node.TEXT_NODE){let m=f.tagName;if(m==="TEXTAREA")return;m==="STYLE"&&this.addedSet.has(f)&&(i=!0)}let d=Qe(f)?this.mirror.getId(No(a)):this.mirror.getId(f),c=n(a);if(d===-1||c===-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=>{Io(m,this.mirror)&&this.iframeManager.addIframe(m),Oo(m,this.mirror)&&this.stylesheetManager.trackLinkElement(m),Sn(a)&&this.shadowDomManager.addShadowRoot(B.shadowRoot(a),this.doc)},onIframeLoad:(m,h)=>{this.iframeManager.attachIframe(m,h),this.shadowDomManager.observeAttachShadow(m)},onStylesheetLoad:(m,h)=>{this.stylesheetManager.attachLinkElement(m,h)},cssCaptured:i});l&&(t.push({parentId:d,nextId:c,node:l}),r.add(l.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let a of this.movedSet)Bi(this.removesSubTreeCache,a,this.mirror)&&!this.movedSet.has(B.parentNode(a))||o(a);for(let a of this.addedSet)!zi(this.droppedSet,a)&&!Bi(this.removesSubTreeCache,a,this.mirror)||zi(this.movedSet,a)?o(a):this.droppedSet.add(a);let u=null;for(;s.length;){let a=null;if(u){let f=this.mirror.getId(B.parentNode(u.value)),i=n(u.value);f!==-1&&i!==-1&&(a=u)}if(!a){let f=s.tail;for(;f;){let i=f;if(f=f.previous,i){let d=this.mirror.getId(B.parentNode(i.value));if(n(i.value)===-1)continue;if(d!==-1){a=i;break}else{let l=i.value,m=B.parentNode(l);if(m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let h=B.host(m);if(this.mirror.getId(h)!==-1){a=i;break}}}}}}if(!a){for(;s.head;)s.removeNode(s.head.value);break}u=a.previous,s.removeNode(a.value),o(a.value)}let p={texts:this.texts.map(a=>{let f=a.node,i=B.parentNode(f);return i&&i.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(i),{id:this.mirror.getId(f),value:a.value}}).filter(a=>!r.has(a.id)).filter(a=>this.mirror.has(a.id)),attributes:this.attributes.map(a=>{let{attributes:f}=a;if(typeof f.style=="string"){let i=JSON.stringify(a.styleDiff),d=JSON.stringify(a._unchangedStyles);i.length<f.style.length&&(i+d).split("var(").length===f.style.split("var(").length&&(f.style=a.styleDiff)}return{id:this.mirror.getId(a.node),attributes:f}}).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=Nt({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:At(t),value:s,maskInputFn:this.maskInputFn})}),T(this,"processMutation",t=>{if(!gn(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:ro(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 u=At(r);n=Nt({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:u,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"),!to(r.tagName,s))if(o.attributes[s]=eo(this.doc,_e(r.tagName),_e(s),n),s==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(p){this.unattachedDoc=this.doc}let u=this.unattachedDoc.createElement("span");t.oldValue&&u.setAttribute("style",t.oldValue);for(let p of Array.from(r.style)){let a=r.style.getPropertyValue(p),f=r.style.getPropertyPriority(p);a!==u.style.getPropertyValue(p)||f!==u.style.getPropertyPriority(p)?f===""?o.styleDiff[p]=a:o.styleDiff[p]=[a,f]:o._unchangedStyles[p]=[a,f]}for(let p of Array.from(u.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)||gn(r,this.mirror,this.slimDOMOptions)||!Au(r,this.mirror)||(this.addedSet.has(r)?(Mn(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&s===-1||Ro(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[Ui(s,n)]?Mn(this.movedSet,r):(this.removes.push({parentId:n,id:s,isShadow:Qe(t.target)&&et(t.target)?!0:void 0}),_u(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(gn(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[Ui(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)),Sn(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 Mn(e,t){e.delete(t),B.childNodes(t).forEach(r=>Mn(e,r))}function _u(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 Bi(e,t,r){return e.size===0?!1:Lu(e,t)}function Lu(e,t,r){let s=B.parentNode(t);return s?e.has(s):!1}function zi(e,t){return e.size===0?!1:Do(e,t)}function Do(e,t){let r=B.parentNode(t);return r?e.has(r)?!0:Do(e,r):!1}var tt;function Pu(e){tt=e}function Fu(){tt=void 0}var W=e=>tt?(...r)=>{try{return e(...r)}catch(s){if(tt&&tt(s)===!0)return;throw s}}:e,ke=[];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 ko(e,t){let r=new xn;ke.push(r),r.init(e);let[s,n]=So(),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 Uu({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,u=[],p,a=st(W(d=>{let c=Date.now()-p;e(u.map(l=>(l.timeOffset-=c,l)),d),u=[],p=null}),o),f=W(st(W(d=>{let c=at(d),{clientX:l,clientY:m}=bn(d)?d.changedTouches[0]:d;p||(p=nt()),u.push({x:l,y:m,id:s.getId(c),timeOffset:nt()-p}),a(typeof DragEvent!="undefined"&&d instanceof DragEvent?$.Drag:d instanceof MouseEvent?$.MouseMove:$.TouchMove)}),n,{trailing:!1})),i=[le("mousemove",f,r),le("touchmove",f,r),le("drag",f,r)];return W(()=>{i.forEach(d=>d())})}function Bu({mouseInteractionCb:e,doc:t,mirror:r,blockClass:s,blockSelector:n,sampling:o}){if(o.mouseInteraction===!1)return()=>{};let u=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,p=[],a=null,f=i=>d=>{let c=at(d);if(ue(c,s,n,!0))return;let l=null,m=i;if("pointerType"in d){switch(d.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 bn(d)&&(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 h=bn(d)?d.changedTouches[0]:d;if(!h)return;let g=r.getId(c),{clientX:C,clientY:w}=h;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")&&u[i]!==!1).forEach(i=>{let d=_e(i),c=f(i);if(window.PointerEvent)switch(fe[i]){case fe.MouseDown:case fe.MouseUp:d=d.replace("mouse","pointer");break;case fe.TouchStart:case fe.TouchEnd:return}p.push(le(d,c,t))}),W(()=>{p.forEach(i=>i())})}function _o({scrollCb:e,doc:t,mirror:r,blockClass:s,blockSelector:n,sampling:o}){let u=W(st(W(p=>{let a=at(p);if(!a||ue(a,s,n,!0))return;let f=r.getId(a);if(a===t&&t.defaultView){let i=Co(t.defaultView);e({id:f,x:i.left,y:i.top})}else e({id:f,x:a.scrollLeft,y:a.scrollTop})}),o.scroll||100));return le("scroll",u,t)}function zu({viewportResizeCb:e},{win:t}){let r=-1,s=-1,n=W(st(W(()=>{let o=Eo(),u=xo();(r!==o||s!==u)&&(e({width:Number(u),height:Number(o)}),r=o,s=u)}),200));return le("resize",n,t)}var $u=["INPUT","TEXTAREA","SELECT"],$i=new WeakMap;function Wu({inputCb:e,doc:t,mirror:r,blockClass:s,blockSelector:n,ignoreClass:o,ignoreSelector:u,maskInputOptions:p,maskInputFn:a,sampling:f,userTriggeredOnInput:i}){function d(w){let S=at(w),x=w.isTrusted,b=S&&S.tagName;if(S&&b==="OPTION"&&(S=B.parentElement(S)),!S||!b||$u.indexOf(b)<0||ue(S,s,n,!0)||S.classList.contains(o)||u&&S.matches(u))return;let y=S.value,v=!1,E=At(S)||"";E==="radio"||E==="checkbox"?v=S.checked:(p[b.toLowerCase()]||p[E])&&(y=Nt({element:S,maskInputOptions:p,tagName:b,type:E,value:y,maskInputFn:a})),c(S,i?{text:y,isChecked:v,userTriggered:x}:{text:y,isChecked:v});let I=S.name;E==="radio"&&I&&v&&t.querySelectorAll(`input[type="radio"][name="${I}"]`).forEach(R=>{if(R!==S){let A=R.value;c(R,i?{text:A,isChecked:!v,userTriggered:!1}:{text:A,isChecked:!v})}})}function c(w,S){let x=$i.get(w);if(!x||x.text!==S.text||x.isChecked!==S.isChecked){$i.set(w,S);let b=r.getId(w);W(e)({...S,id:b})}}let m=(f.input==="last"?["change"]:["input","change"]).map(w=>le(w,W(d),t)),h=t.defaultView;if(!h)return()=>{m.forEach(w=>w())};let g=h.Object.getOwnPropertyDescriptor(h.HTMLInputElement.prototype,"value"),C=[[h.HTMLInputElement.prototype,"value"],[h.HTMLInputElement.prototype,"checked"],[h.HTMLSelectElement.prototype,"value"],[h.HTMLTextAreaElement.prototype,"value"],[h.HTMLSelectElement.prototype,"selectedIndex"],[h.HTMLOptionElement.prototype,"selected"]];return g&&g.set&&m.push(...C.map(w=>Ht(w[0],w[1],{set(){W(d)({target:this,isTrusted:!1})}},!1,h))),W(()=>{m.forEach(w=>w())})}function kt(e){let t=[];function r(s,n){if(xt("CSSGroupingRule")&&s.parentRule instanceof CSSGroupingRule||xt("CSSMediaRule")&&s.parentRule instanceof CSSMediaRule||xt("CSSSupportsRule")&&s.parentRule instanceof CSSSupportsRule||xt("CSSConditionRule")&&s.parentRule instanceof CSSConditionRule){let u=Array.from(s.parentRule.cssRules).indexOf(s);return n.unshift(u),r(s.parentRule,n)}else if(s.parentStyleSheet){let u=Array.from(s.parentStyleSheet.cssRules).indexOf(s);n.unshift(u)}return n}return r(e,t)}function Ae(e,t,r){let s,n;return e?(e.ownerNode?s=t.getId(e.ownerNode):n=r.getId(e),{styleId:n,id:s}):{}}function qu({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,d,c)=>{let[l,m]=c,{id:h,styleId:g}=Ae(d,t,r.styleMirror);return(h&&h!==-1||g&&g!==-1)&&e({id:h,styleId:g,adds:[{rule:l,index:m}]}),i.apply(d,c)})}),s.CSSStyleSheet.prototype.addRule=function(i,d,c=this.cssRules.length){let l=`${i} { ${d} }`;return s.CSSStyleSheet.prototype.insertRule.apply(this,[l,c])};let o=s.CSSStyleSheet.prototype.deleteRule;s.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:W((i,d,c)=>{let[l]=c,{id:m,styleId:h}=Ae(d,t,r.styleMirror);return(m&&m!==-1||h&&h!==-1)&&e({id:m,styleId:h,removes:[{index:l}]}),i.apply(d,c)})}),s.CSSStyleSheet.prototype.removeRule=function(i){return s.CSSStyleSheet.prototype.deleteRule.apply(this,[i])};let u;s.CSSStyleSheet.prototype.replace&&(u=s.CSSStyleSheet.prototype.replace,s.CSSStyleSheet.prototype.replace=new Proxy(u,{apply:W((i,d,c)=>{let[l]=c,{id:m,styleId:h}=Ae(d,t,r.styleMirror);return(m&&m!==-1||h&&h!==-1)&&e({id:m,styleId:h,replace:l}),i.apply(d,c)})}));let p;s.CSSStyleSheet.prototype.replaceSync&&(p=s.CSSStyleSheet.prototype.replaceSync,s.CSSStyleSheet.prototype.replaceSync=new Proxy(p,{apply:W((i,d,c)=>{let[l]=c,{id:m,styleId:h}=Ae(d,t,r.styleMirror);return(m&&m!==-1||h&&h!==-1)&&e({id:m,styleId:h,replaceSync:l}),i.apply(d,c)})}));let a={};Mt("CSSGroupingRule")?a.CSSGroupingRule=s.CSSGroupingRule:(Mt("CSSMediaRule")&&(a.CSSMediaRule=s.CSSMediaRule),Mt("CSSConditionRule")&&(a.CSSConditionRule=s.CSSConditionRule),Mt("CSSSupportsRule")&&(a.CSSSupportsRule=s.CSSSupportsRule));let f={};return Object.entries(a).forEach(([i,d])=>{f[i]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(f[i].insertRule,{apply:W((c,l,m)=>{let[h,g]=m,{id:C,styleId:w}=Ae(l.parentStyleSheet,t,r.styleMirror);return(C&&C!==-1||w&&w!==-1)&&e({id:C,styleId:w,adds:[{rule:h,index:[...kt(l),g||0]}]}),c.apply(l,m)})}),d.prototype.deleteRule=new Proxy(f[i].deleteRule,{apply:W((c,l,m)=>{let[h]=m,{id:g,styleId:C}=Ae(l.parentStyleSheet,t,r.styleMirror);return(g&&g!==-1||C&&C!==-1)&&e({id:g,styleId:C,removes:[{index:[...kt(l),h]}]}),c.apply(l,m)})})}),W(()=>{s.CSSStyleSheet.prototype.insertRule=n,s.CSSStyleSheet.prototype.deleteRule=o,u&&(s.CSSStyleSheet.prototype.replace=u),p&&(s.CSSStyleSheet.prototype.replaceSync=p),Object.entries(a).forEach(([i,d])=>{d.prototype.insertRule=f[i].insertRule,d.prototype.deleteRule=f[i].deleteRule})})}function Lo({mirror:e,stylesheetManager:t},r){var s,n,o;let u=null;r.nodeName==="#document"?u=e.getId(r):u=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 u===null||u===-1||!p||!a?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){var f;return(f=a.get)==null?void 0:f.call(this)},set(f){var i;let d=(i=a.set)==null?void 0:i.call(this,f);if(u!==null&&u!==-1)try{t.adoptStyleSheets(f,u)}catch(c){}return d}}),W(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function ju({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,f)=>{var i;let[d,c,l]=f;if(r.has(d))return o.apply(a,[d,c,l]);let{id:m,styleId:h}=Ae((i=a.parentRule)==null?void 0:i.parentStyleSheet,t,s.styleMirror);return(m&&m!==-1||h&&h!==-1)&&e({id:m,styleId:h,set:{property:d,value:c,priority:l},index:kt(a.parentRule)}),p.apply(a,f)})});let u=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:W((p,a,f)=>{var i;let[d]=f;if(r.has(d))return u.apply(a,[d]);let{id:c,styleId:l}=Ae((i=a.parentRule)==null?void 0:i.parentStyleSheet,t,s.styleMirror);return(c&&c!==-1||l&&l!==-1)&&e({id:c,styleId:l,remove:{property:d},index:kt(a.parentRule)}),p.apply(a,f)})}),W(()=>{n.CSSStyleDeclaration.prototype.setProperty=o,n.CSSStyleDeclaration.prototype.removeProperty=u})}function Vu({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:s,sampling:n,doc:o}){let u=W(a=>st(W(f=>{let i=at(f);if(!i||ue(i,t,r,!0))return;let{currentTime:d,volume:c,muted:l,playbackRate:m,loop:h}=i;e({type:a,id:s.getId(i),currentTime:d,volume:c,muted:l,playbackRate:m,loop:h})}),n.media||500)),p=[le("play",u($e.Play),o),le("pause",u($e.Pause),o),le("seeked",u($e.Seeked),o),le("volumechange",u($e.VolumeChange),o),le("ratechange",u($e.RateChange),o)];return W(()=>{p.forEach(a=>a())})}function Hu({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let s=[],n=new WeakMap,o=r.FontFace;r.FontFace=function(a,f,i){let d=new o(a,f,i);return n.set(d,{family:a,buffer:typeof f!="string",descriptors:i,fontSource:typeof f=="string"?f:JSON.stringify(Array.from(new Uint8Array(f)))}),d};let u=Fe(t.fonts,"add",function(p){return function(a){return setTimeout(W(()=>{let f=n.get(a);f&&(e(f),n.delete(a))}),0),p.apply(this,[a])}});return s.push(()=>{r.FontFace=o}),s.push(u),W(()=>{s.forEach(p=>p())})}function Gu(e){let{doc:t,mirror:r,blockClass:s,blockSelector:n,selectionCb:o}=e,u=!0,p=W(()=>{let a=t.getSelection();if(!a||u&&(a!=null&&a.isCollapsed))return;u=a.isCollapsed||!1;let f=[],i=a.rangeCount||0;for(let d=0;d<i;d++){let c=a.getRangeAt(d),{startContainer:l,startOffset:m,endContainer:h,endOffset:g}=c;ue(l,s,n,!0)||ue(h,s,n,!0)||f.push({start:r.getId(l),startOffset:m,end:r.getId(h),endOffset:g})}o({ranges:f})});return p(),le("selectionchange",p)}function Yu({doc:e,customElementCb:t}){let r=e.defaultView;return!r||!r.customElements?()=>{}:Fe(r.customElements,"define",function(n){return function(o,u,p){try{t({define:{name:o}})}catch(a){console.warn(`Custom element callback failed for ${o}`)}return n.apply(this,[o,u,p])}})}function Xu(e,t){let{mutationCb:r,mousemoveCb:s,mouseInteractionCb:n,scrollCb:o,viewportResizeCb:u,inputCb:p,mediaInteractionCb:a,styleSheetRuleCb:f,styleDeclarationCb:i,canvasMutationCb:d,fontCb:c,selectionCb:l,customElementCb:m}=e;e.mutationCb=(...h)=>{t.mutation&&t.mutation(...h),r(...h)},e.mousemoveCb=(...h)=>{t.mousemove&&t.mousemove(...h),s(...h)},e.mouseInteractionCb=(...h)=>{t.mouseInteraction&&t.mouseInteraction(...h),n(...h)},e.scrollCb=(...h)=>{t.scroll&&t.scroll(...h),o(...h)},e.viewportResizeCb=(...h)=>{t.viewportResize&&t.viewportResize(...h),u(...h)},e.inputCb=(...h)=>{t.input&&t.input(...h),p(...h)},e.mediaInteractionCb=(...h)=>{t.mediaInteaction&&t.mediaInteaction(...h),a(...h)},e.styleSheetRuleCb=(...h)=>{t.styleSheetRule&&t.styleSheetRule(...h),f(...h)},e.styleDeclarationCb=(...h)=>{t.styleDeclaration&&t.styleDeclaration(...h),i(...h)},e.canvasMutationCb=(...h)=>{t.canvasMutation&&t.canvasMutation(...h),d(...h)},e.fontCb=(...h)=>{t.font&&t.font(...h),c(...h)},e.selectionCb=(...h)=>{t.selection&&t.selection(...h),l(...h)},e.customElementCb=(...h)=>{t.customElement&&t.customElement(...h),m(...h)}}function Ju(e,t={}){let r=e.doc.defaultView;if(!r)return()=>{};Xu(e,t);let s,n=()=>{};e.recordDOM&&([s,n]=ko(e,e.doc));let o=Uu(e),u=Bu(e),p=_o(e),a=zu(e,{win:r}),f=Wu(e),i=Vu(e),d=()=>{},c=()=>{},l=()=>{},m=()=>{};e.recordDOM&&(d=qu(e,{win:r}),c=Lo(e,e.doc),l=ju(e,{win:r}),e.collectFonts&&(m=Hu(e)));let h=Gu(e),g=Yu(e),C=[];for(let w of e.plugins)C.push(w.observer(w.callback,r,w.options));return W(()=>{ke.forEach(w=>w.reset()),s==null||s.disconnect(),n(),o(),u(),p(),a(),f(),i(),d(),c(),l(),m(),h(),g(),C.forEach(w=>w())})}function xt(e){return typeof window[e]!="undefined"}function Mt(e){return!!(typeof window[e]!="undefined"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var _t=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),u=n||this.getRemoteIdToIdMap(t),p=o.get(r);return p||(p=this.generateIdFn(),o.set(r,p),u.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}},Rn=class{constructor(t){T(this,"iframes",new WeakMap),T(this,"crossOriginIframeMap",new WeakMap),T(this,"crossOriginIframeMirror",new _t(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 _t(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!==To.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(s=>{this.patchRootIdOnNode(s,r)})}},In=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]=ko({...this.bypassOptions,doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>s.disconnect()),this.restoreHandlers.push(_o({...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(Lo({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(Fe(t.prototype,"attachShadow",function(n){return function(o){let u=n.call(this,o),p=B.shadowRoot(this);return p&&Ao(this)&&s.addShadowRoot(p,r),u}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch(r){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}},je="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ku=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(Ze=0;Ze<je.length;Ze++)Ku[je.charCodeAt(Ze)]=Ze;var Ze,Zu=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 Wi=new Map;function Qu(e,t){let r=Wi.get(e);return r||(r=new Map,Wi.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}var Po=(e,t,r)=>{if(!e||!(Uo(e,t)||typeof e=="object"))return;let s=e.constructor.name,n=Qu(r,s),o=n.indexOf(e);return o===-1&&(o=n.length,n.push(e)),o};function Rt(e,t,r){if(e instanceof Array)return e.map(s=>Rt(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=Zu(e);return{rr_type:s,base64:n}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Rt(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:[Rt(e.data,t,r),e.width,e.height]};if(Uo(e,t)||typeof e=="object"){let s=e.constructor.name,n=Po(e,t,r);return{rr_type:s,index:n}}}}return e}var Fo=(e,t,r)=>e.map(s=>Rt(s,t,r)),Uo=(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 ec(e,t,r,s){let n=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(let u of o)try{if(typeof t.CanvasRenderingContext2D.prototype[u]!="function")continue;let p=Fe(t.CanvasRenderingContext2D.prototype,u,function(a){return function(...f){return ue(this.canvas,r,s,!0)||setTimeout(()=>{let i=Fo(f,t,this);e(this.canvas,{type:Ve["2D"],property:u,args:i})},0),a.apply(this,f)}});n.push(p)}catch(p){let a=Ht(t.CanvasRenderingContext2D.prototype,u,{set(f){e(this.canvas,{type:Ve["2D"],property:u,args:[f],setter:!0})}});n.push(a)}return()=>{n.forEach(u=>u())}}function tc(e){return e==="experimental-webgl"?"webgl":e}function qi(e,t,r,s){let n=[];try{let o=Fe(e.HTMLCanvasElement.prototype,"getContext",function(u){return function(p,...a){if(!ue(this,t,r,!0)){let f=tc(p);if("__context"in this||(this.__context=f),s&&["webgl","webgl2"].includes(f))if(a[0]&&typeof a[0]=="object"){let i=a[0];i.preserveDrawingBuffer||(i.preserveDrawingBuffer=!0)}else a.splice(0,1,{preserveDrawingBuffer:!0})}return u.apply(this,[p,...a])}});n.push(o)}catch(o){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{n.forEach(o=>o())}}function ji(e,t,r,s,n,o){let u=[],p=Object.getOwnPropertyNames(e);for(let a of p)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))try{if(typeof e[a]!="function")continue;let f=Fe(e,a,function(i){return function(...d){let c=i.apply(this,d);if(Po(c,o,this),"tagName"in this.canvas&&!ue(this.canvas,s,n,!0)){let l=Fo(d,o,this),m={type:t,property:a,args:l};r(this.canvas,m)}return c}});u.push(f)}catch(f){let i=Ht(e,a,{set(d){r(this.canvas,{type:t,property:a,args:[d],setter:!0})}});u.push(i)}return u}function rc(e,t,r,s){let n=[];return typeof t.WebGLRenderingContext!="undefined"&&n.push(...ji(t.WebGLRenderingContext.prototype,Ve.WebGL,e,r,s,t)),typeof t.WebGL2RenderingContext!="undefined"&&n.push(...ji(t.WebGL2RenderingContext.prototype,Ve.WebGL2,e,r,s,t)),()=>{n.forEach(o=>o())}}var Bo=`(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.`,Ni
|
|
|
131
131
|
};
|
|
132
132
|
})();
|
|
133
133
|
//# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
|
|
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);})();
|
|
134
|
+
`,Vi=typeof self!="undefined"&&self.Blob&&new Blob([Bo],{type:"text/javascript;charset=utf-8"});function nc(e){let t;try{if(t=Vi&&(self.URL||self.webkitURL).createObjectURL(Vi),!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(Bo),{name:e==null?void 0:e.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}var On=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,f)=>{(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(f)});let{sampling:r="all",win:s,blockClass:n,blockSelector:o,recordCanvas:u,dataURLOptions:p}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,u&&r==="all"&&this.initCanvasMutationObserver(s,n,o),u&&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 u=qi(r,s,n,!0),p=new Map,a=new nc;a.onmessage=m=>{let{id:h}=m.data;if(p.set(h,!1),!("base64"in m.data))return;let{base64:g,type:C,width:w,height:S}=m.data;this.mutationCb({id:h,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 f=1e3/t,i=0,d,c=()=>{let m=[];return r.document.querySelectorAll("canvas").forEach(h=>{ue(h,s,n,!0)||m.push(h)}),m},l=m=>{if(i&&m-i<f){d=requestAnimationFrame(l);return}i=m,c().forEach(async h=>{var g;let C=this.mirror.getId(h);if(p.get(C)||h.width===0||h.height===0)return;if(p.set(C,!0),["webgl","webgl2"].includes(h.__context)){let S=h.getContext(h.__context);((g=S==null?void 0:S.getContextAttributes())==null?void 0:g.preserveDrawingBuffer)===!1&&S.clear(S.COLOR_BUFFER_BIT)}let w=await createImageBitmap(h);a.postMessage({id:C,bitmap:w,width:h.width,height:h.height,dataURLOptions:o.dataURLOptions},[w])}),d=requestAnimationFrame(l)};d=requestAnimationFrame(l),this.resetObservers=()=>{u(),cancelAnimationFrame(d)}}initCanvasMutationObserver(t,r,s){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let n=qi(t,r,s,!1),o=ec(this.processMutation.bind(this),t,r,s),u=rc(this.processMutation.bind(this),t,r,s);this.resetObservers=()=>{n(),o(),u()}}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(u=>{let{type:p,...a}=u;return a}),{type:o}=s[0];this.mutationCb({id:r,type:o,commands:n}),this.pendingCanvasMutations.delete(t)}},Nn=class{constructor(t){T(this,"trackedLinkElements",new WeakSet),T(this,"mutationCb"),T(this,"adoptedStyleSheetCb"),T(this,"styleMirror",new Cn),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 u;this.styleMirror.has(o)?u=this.styleMirror.getId(o):(u=this.styleMirror.add(o),n.push({styleId:u,rules:Array.from(o.rules||CSSRule,(p,a)=>({rule:Ki(p,o.href),index:a}))})),s.styleIds.push(u)}n.length>0&&(s.styles=n),this.adoptedStyleSheetCb(s)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}},An=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,It,yn,Lt=!1;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=((Es=e.contentWindow)==null?void 0:Es.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}var ge=yl();function Oe(e={}){let{emit:t,checkoutEveryNms:r,checkoutEveryNth:s,blockClass:n="rr-block",blockSelector:o=null,ignoreClass:u="rr-ignore",ignoreSelector:p=null,maskTextClass:a="rr-mask",maskTextSelector:f=null,inlineStylesheet:i=!0,maskAllInputs:d,maskInputOptions:c,slimDOMOptions:l,maskInputFn:m,maskTextFn:h,hooks:g,packFn:C,sampling:w={},dataURLOptions:S={},mousemoveWait:x,recordDOM:b=!0,recordCanvas:y=!1,recordCrossOriginIframes:v=!1,recordAfter:E=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;Pu(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()=>{};x!==void 0&&w.mousemove===void 0&&(w.mousemove=x),ge.reset();let _=d===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:c!==void 0?c:{password:!0},Y=no(l);Tu();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=ke[0])!=null&&j.isFrozen()&&X.type!==q.FullSnapshot&&!(X.type===q.IncrementalSnapshot&&X.data.source===$.Mutation)&&ke.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)&&It(!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 Nn({mutationCb:N,adoptedStyleSheetCb:ie}),ae=new Rn({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 An;yn=new On({recordCanvas:y,mutationCb:z,win:window,blockClass:n,blockSelector:o,mirror:ge,sampling:w.canvas,dataURLOptions:S});let me=new In({mutationCb:N,scrollCb:K,bypassOptions:{blockClass:n,blockSelector:o,maskTextClass:a,maskTextSelector:f,inlineStylesheet:i,maskInputOptions:_,dataURLOptions:S,maskTextFn:h,maskInputFn:m,recordCanvas:y,inlineImages:A,sampling:w,slimDOMOptions:Y,iframeManager:ae,stylesheetManager:se,canvasManager:yn,keepIframeSrcFn:M,processedNodeManager:Ce},mirror:ge});It=(L=!1)=>{if(!b)return;te({type:q.Meta,data:{href:window.location.href,width:xo(),height:Eo()}},L),se.reset(),me.init(),ke.forEach(j=>j.lock());let ee=$l(document,{mirror:ge,blockClass:n,blockSelector:o,maskTextClass:a,maskTextSelector:f,inlineStylesheet:i,maskAllInputs:_,maskTextFn:h,maskInputFn:m,slimDOM:Y,dataURLOptions:S,recordCanvas:y,inlineImages:A,onSerialize:j=>{Io(j,ge)&&ae.addIframe(j),Oo(j,ge)&&se.trackLinkElement(j),Sn(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:Co(window)}},L),ke.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(Ju)({mutationCb:N,mousemoveCb:(G,Qt)=>te({type:q.IncrementalSnapshot,data:{source:Qt,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:u,ignoreSelector:p,maskTextClass:a,maskTextSelector:f,maskInputOptions:_,inlineStylesheet:i,sampling:w,recordDOM:b,recordCanvas:y,inlineImages:A,userTriggeredOnInput:I,collectFonts:R,doc:X,maskInputFn:m,maskTextFn:h,keepIframeSrcFn:M,blockSelector:o,slimDOMOptions:Y,dataURLOptions:S,mirror:ge,iframeManager:ae,stylesheetManager:se,shadowDomManager:me,processedNodeManager:Ce,canvasManager:yn,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:Qt=>te({type:q.Plugin,data:{plugin:G.name,payload:Qt}})})))||[]},g)};ae.addLoadListener(X=>{try{L.push(ee(X.contentDocument))}catch(he){console.warn(he)}});let j=()=>{It(),L.push(ee(document)),Lt=!0};return["interactive","complete"].includes(document.readyState)?j():(L.push(le("DOMContentLoaded",()=>{te({type:q.DomContentLoaded,data:{}}),E==="DOMContentLoaded"&&j()})),L.push(le("load",()=>{te({type:q.Load,data:{}}),E==="load"&&j()},window))),()=>{L.forEach(X=>{try{X()}catch(he){String(he).toLowerCase().includes("cross-origin")||console.warn(he)}}),Ce.destroy(),Lt=!1,Fu()}}catch(L){console.warn(L)}}Oe.addCustomEvent=(e,t)=>{if(!Lt)throw new Error("please add custom event after start recording");te({type:q.Custom,data:{tag:e,payload:t}})};Oe.freezePage=()=>{ke.forEach(e=>e.freeze())};Oe.takeFullSnapshot=e=>{if(!Lt)throw new Error("please take full snapshot after start recording");It(e)};Oe.mirror=ge;var Hi;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Hi||(Hi={}));var Uc=5*1e3;var{addCustomEvent:Bc}=Oe,{freezePage:zc}=Oe,{takeFullSnapshot:$c}=Oe;function zo(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,u,p;mt(s.error)&&e({type:"error",ts:Date.now(),source:"error",name:(o=(n=s.error)==null?void 0:n.name)!=null?o:"Error",message:(u=s.message)!=null?u:String(s.error),stack:(p=s.error)==null?void 0:p.stack})},r=s=>{var o,u;let n=s.reason;mt(n)&&e({type:"error",ts:Date.now(),source:"unhandledrejection",name:(o=n==null?void 0:n.name)!=null?o:"UnhandledRejection",message:(u=n==null?void 0:n.message)!=null?u:String(n),stack:n==null?void 0:n.stack})};return addEventListener("error",t),addEventListener("unhandledrejection",r),()=>{removeEventListener("error",t),removeEventListener("unhandledrejection",r)}}var Wo=512e3;function qo(e,t={}){var b;let r=(b=t.ignoreUrls)!=null?b:[],s=t.captureBodies!==!1,{maskUrl:n,maskHeaders:o,maskBody:u,truncate:p,isMaskedKey:a}=Ne(t),f=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((E,I)=>v[I]=E);else if(Array.isArray(y))for(let E of y)E&&E.length>=2&&(v[String(E[0])]=String(E[1]));else if(typeof y=="object")for(let[E,I]of Object.entries(y))v[E]=String(I);return v},d=y=>!!y&&/(json|text|xml|javascript|x-www-form-urlencoded|html)/i.test(y),c=y=>!!y&&/event-stream/i.test(y),l=y=>{let v={};if(!y)return v;for(let E of y.trim().split(/[\r\n]+/)){let I=E.indexOf(":");I>0&&(v[E.slice(0,I).trim()]=E.slice(I+1).trim())}return v},m=y=>{let v=[];return y.forEach((E,I)=>{typeof E=="string"?v.push(`${I}=${a(I)?Ke:E}`):v.push(`${I}=[file ${E.name||"blob"} ${E.size}B]`)}),v.join("&")},h=(y,v)=>{var I;let E=v==null?void 0:v.body;if(typeof E=="string")return{text:E,size:E.length};if(typeof URLSearchParams!="undefined"&&E instanceof URLSearchParams){let R=E.toString();return{text:R,size:R.length}}if(typeof FormData!="undefined"&&E instanceof FormData){let R=m(E);return{text:R,size:R.length,premasked:!0}}if(typeof Blob!="undefined"&&E instanceof Blob)return{size:E.size};if(typeof ArrayBuffer!="undefined"){if(E instanceof ArrayBuffer)return{size:E.byteLength};if(ArrayBuffer.isView(E))return{size:E.byteLength}}if(E==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(d(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 E=v.getReader(),I=new TextDecoder,R="",A=0;for(;;){let{done:O,value:M}=await E.read();if(O)return{text:R+I.decode(),bytes:A,complete:!0};if(A+=M.byteLength,R+=I.decode(M,{stream:!0}),A>=Wo)return E.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(),E=y[0],I=typeof E=="string"?E:E instanceof URL?E.href:E instanceof Request?E.url:String(E),R=((M=(O=y[1])==null?void 0:O.method)!=null?M:E instanceof Request?E.method:"GET").toUpperCase(),A={};if(s&&!f(I))try{A=h(E,y[1])}catch(D){A={}}try{let D=await C.apply(this,y);try{if(!f(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:E instanceof Request?E.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;d(H)&&!c(H)&&!(Number.isFinite(F)&&F>Wo)&&(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):u(z),_.reqSize=(K=A.size)!=null?K:z.length):A.size!=null&&(_.reqSize=A.size),ne){let ie=await ne;ie.text&&(_.resBody=u(ie.text)),Number.isFinite(F)||(_.resSize=ie.bytes)}}catch(z){}e(_)})()}}}catch(_){}return D}catch(D){try{f(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,x=XMLHttpRequest.prototype.setRequestHeader;return XMLHttpRequest.prototype.open=function(y,v,...E){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,...E])},XMLHttpRequest.prototype.setRequestHeader=function(y,v){let E=this.__iris;return E&&(E.reqHeaders[y]=v),x.apply(this,[y,v])},XMLHttpRequest.prototype.send=function(...y){let v=this.__iris;if(v){v.start=Date.now();let E=y[0];typeof E=="string"?(v.reqBody=E,v.reqSize=E.length):typeof URLSearchParams!="undefined"&&E instanceof URLSearchParams?(v.reqBody=E.toString(),v.reqSize=v.reqBody.length):typeof FormData!="undefined"&&E instanceof FormData?(v.reqBody=m(E),v.reqSize=v.reqBody.length,v.premasked=!0):typeof Blob!="undefined"&&E instanceof Blob?v.reqSize=E.size:(typeof ArrayBuffer!="undefined"&&E instanceof ArrayBuffer||typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView(E))&&(v.reqSize=E.byteLength),this.addEventListener("loadend",()=>{var I;try{if(f(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):u(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=u(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=u(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=x}}var sc=200,ic=2e3,jo=0;function Vo(e,t={},r=!1){var S,x,b,y;let s=Ne(t),n=(S=t.wsMaxFrames)!=null?S:sc,o=(x=t.wsMaxFrameChars)!=null?x:ic,u=new Set((b=t.wsFrameTypes)!=null?b:["text","binary"]),p=(y=t.ignoreUrls)!=null?y:[],a=v=>{let E=v.trim();if(!E.startsWith("{")&&!E.startsWith("["))return!1;try{return JSON.parse(E),!0}catch(I){return!1}},f=v=>typeof v=="string"?u.has("text")?!0:u.has("json")?a(v):!1:u.has("binary"),i=v=>typeof v=="string"&&p.some(E=>typeof E=="string"?v.includes(E):E.test(v)),d=v=>{try{e(v)}catch(E){}},c=(...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,h=!1,g;if(typeof m=="function"){h=!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${++jo}`,P={sent:0,recv:0,dropped:0};this.__iris={connId:M,budget:P},d({type:"ws",ts:Date.now(),connId:M,op:"open",transport:"websocket",url:s.maskUrl(O)}),this.addEventListener("message",U=>{if(f(U.data)){if(P.recv>=n){P.dropped++;return}P.recv++,d({type:"ws",ts:Date.now(),connId:M,op:"message",transport:"websocket",...l(U.data)})}}),this.addEventListener("close",U=>{d({type:"ws",ts:Date.now(),connId:M,op:"close",transport:"websocket",code:U.code,reason:U.reason||void 0,dropped:P.dropped||void 0}),c(`ws ${M} closed (${U.code}) \u2014 frames \u2191${P.sent} \u2193${P.recv}, dropped ${P.dropped}`)}),this.addEventListener("error",()=>{d({type:"ws",ts:Date.now(),connId:M,op:"error",transport:"websocket"})})}catch(O){}}}g=m.prototype.send;let E=g;m.prototype.send=function(I){try{let R=this.__iris;R&&f(I)&&(R.budget.sent>=n?R.budget.dropped++:(R.budget.sent++,d({type:"ws",ts:Date.now(),connId:R.connId,op:"send",transport:"websocket",...l(I)})))}catch(R){}return E.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${++jo}`,M={recv:0,dropped:0},P=(k,D)=>{if(f(k.data)){if(M.recv>=n){M.dropped++;return}M.recv++,d({type:"ws",ts:Date.now(),connId:O,op:"message",transport:"eventsource",...D?{event:D}:{},...l(k.data)})}};this.__iris={record:P,mirrored:new Set},d({type:"ws",ts:Date.now(),connId:O,op:"open",transport:"eventsource",url:s.maskUrl(A)}),super.addEventListener("message",k=>P(k)),super.addEventListener("error",()=>{d({type:"ws",ts:Date.now(),connId:O,op:"error",transport:"eventsource"})});let U=this.close.bind(this);this.close=()=>{try{d({type:"ws",ts:Date.now(),connId:O,op:"close",transport:"eventsource",dropped:M.dropped||void 0}),c(`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()=>{h&&(window.WebSocket=m,g&&(m.prototype.send=g)),w&&(window.EventSource=C)}}var Ho=["log","info","warn","error","debug"],oc=e=>typeof e[0]=="string"&&e[0].startsWith("[iris]");function Go(e,t={}){let r=t.captureIrisLogs===!0,s={};for(let n of Ho)s[n]=console[n].bind(console),console[n]=(...o)=>{try{(r||!oc(o))&&e({type:"console",ts:Date.now(),level:n,args:o.map(ac)})}catch(u){}s[n](...o)};return()=>{for(let n of Ho)s[n]&&(console[n]=s[n])}}function ac(e){if(typeof e=="string")return e;try{return JSON.stringify(e)}catch(t){return String(e)}}var Jn;var ta=-1,Ge=function(e){addEventListener("pageshow",(function(t){t.persisted&&(ta=t.timeStamp,e(t))}),!0)},Kn=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},Jt=function(){var e=Kn();return e&&e.activationStart||0},be=function(e,t){var r=Kn(),s="navigate";return ta>=0?s="back-forward-cache":r&&(document.prerendering||Jt()>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(u){t.value>=0&&(u||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))}},Zn=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},Kt=function(e){document.addEventListener("visibilitychange",(function(){document.visibilityState==="hidden"&&e()}))},Qn=function(e){var t=!1;return function(){t||(e(),t=!0)}},He=-1,Yo=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},Xt=function(e){document.visibilityState==="hidden"&&He>-1&&(He=e.type==="visibilitychange"?e.timeStamp:0,lc())},Xo=function(){addEventListener("visibilitychange",Xt,!0),addEventListener("prerenderingchange",Xt,!0)},lc=function(){removeEventListener("visibilitychange",Xt,!0),removeEventListener("prerenderingchange",Xt,!0)},ra=function(){return He<0&&(He=Yo(),Xo(),Ge((function(){setTimeout((function(){He=Yo(),Xo()}),0)}))),{get firstHiddenTime(){return He}}},Zt=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},Jo=[1800,3e3],es=function(e,t){t=t||{},Zt((function(){var r,s=ra(),n=be("FCP"),o=lt("paint",(function(u){u.forEach((function(p){p.name==="first-contentful-paint"&&(o.disconnect(),p.startTime<s.firstHiddenTime&&(n.value=Math.max(p.startTime-Jt(),0),n.entries.push(p),r(!0)))}))}));o&&(r=Se(e,n,Jo,t.reportAllChanges),Ge((function(u){n=be("FCP"),r=Se(e,n,Jo,t.reportAllChanges),Zn((function(){n.value=performance.now()-u.timeStamp,r(!0)}))})))}))},Ko=[.1,.25],na=function(e,t){t=t||{},es(Qn((function(){var r,s=be("CLS",0),n=0,o=[],u=function(a){a.forEach((function(f){if(!f.hadRecentInput){var i=o[0],d=o[o.length-1];n&&f.startTime-d.startTime<1e3&&f.startTime-i.startTime<5e3?(n+=f.value,o.push(f)):(n=f.value,o=[f])}})),n>s.value&&(s.value=n,s.entries=o,r())},p=lt("layout-shift",u);p&&(r=Se(e,s,Ko,t.reportAllChanges),Kt((function(){u(p.takeRecords()),r(!0)})),Ge((function(){n=0,s=be("CLS",0),r=Se(e,s,Ko,t.reportAllChanges),Zn((function(){return r()}))})),setTimeout(r,0))})))},sa=0,Yn=1/0,Gt=0,uc=function(e){e.forEach((function(t){t.interactionId&&(Yn=Math.min(Yn,t.interactionId),Gt=Math.max(Gt,t.interactionId),sa=Gt?(Gt-Yn)/7+1:0)}))},ia=function(){return Jn?sa:performance.interactionCount||0},cc=function(){"interactionCount"in performance||Jn||(Jn=lt("event",uc,{type:"event",buffered:!0,durationThreshold:0}))},we=[],Yt=new Map,oa=0,fc=function(){var e=Math.min(we.length-1,Math.floor((ia()-oa)/50));return we[e]},hc=[],dc=function(e){if(hc.forEach((function(n){return n(e)})),e.interactionId||e.entryType==="first-input"){var t=we[we.length-1],r=Yt.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]};Yt.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 Yt.delete(n.id)}))}}},aa=function(e){var t=self.requestIdleCallback||self.setTimeout,r=-1;return e=Qn(e),document.visibilityState==="hidden"?e():(r=t(e),Kt(e)),r},Zo=[200,500],la=function(e,t){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(t=t||{},Zt((function(){var r;cc();var s,n=be("INP"),o=function(p){aa((function(){p.forEach(dc);var a=fc();a&&a.latency!==n.value&&(n.value=a.latency,n.entries=a.entries,s())}))},u=lt("event",o,{durationThreshold:(r=t.durationThreshold)!==null&&r!==void 0?r:40});s=Se(e,n,Zo,t.reportAllChanges),u&&(u.observe({type:"first-input",buffered:!0}),Kt((function(){o(u.takeRecords()),s(!0)})),Ge((function(){oa=ia(),we.length=0,Yt.clear(),n=be("INP"),s=Se(e,n,Zo,t.reportAllChanges)})))})))},Qo=[2500,4e3],Xn={},ua=function(e,t){t=t||{},Zt((function(){var r,s=ra(),n=be("LCP"),o=function(a){t.reportAllChanges||(a=a.slice(-1)),a.forEach((function(f){f.startTime<s.firstHiddenTime&&(n.value=Math.max(f.startTime-Jt(),0),n.entries=[f],r())}))},u=lt("largest-contentful-paint",o);if(u){r=Se(e,n,Qo,t.reportAllChanges);var p=Qn((function(){Xn[n.id]||(o(u.takeRecords()),u.disconnect(),Xn[n.id]=!0,r(!0))}));["keydown","click"].forEach((function(a){addEventListener(a,(function(){return aa(p)}),{once:!0,capture:!0})})),Kt(p),Ge((function(a){n=be("LCP"),r=Se(e,n,Qo,t.reportAllChanges),Zn((function(){n.value=performance.now()-a.timeStamp,Xn[n.id]=!0,r(!0)}))}))}}))},ea=[800,1800],pc=function e(t){document.prerendering?Zt((function(){return e(t)})):document.readyState!=="complete"?addEventListener("load",(function(){return e(t)}),!0):setTimeout(t,0)},ca=function(e,t){t=t||{};var r=be("TTFB"),s=Se(e,r,ea,t.reportAllChanges);pc((function(){var n=Kn();n&&(r.value=Math.max(n.responseStart-Jt(),0),r.entries=[n],s(!0),Ge((function(){r=be("TTFB",0),(s=Se(e,r,ea,t.reportAllChanges))(!0)})))}))};function fa(e){let t=r=>s=>{e({type:"vital",ts:Date.now(),metric:r,value:s.value,rating:s.rating})};ua(t("LCP")),na(t("CLS")),la(t("INP")),es(t("FCP")),ca(t("TTFB"))}function ha(e){let t=location.href,r=()=>{try{let o=location.href;if(o===t)return;let u=t;t=o,e({type:"navigation",ts:Date.now(),from:u,to:o})}catch(o){}},s=history.pushState,n=history.replaceState;return history.pushState=function(...o){let u=s.apply(this,o);return r(),u},history.replaceState=function(...o){let u=n.apply(this,o);return r(),u},addEventListener("popstate",r),addEventListener("hashchange",r),()=>{history.pushState=s,history.replaceState=n,removeEventListener("popstate",r),removeEventListener("hashchange",r)}}function da(e,t={}){var g,C,w,S,x;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,u=(x=t.errorWindowMs)!=null?x:2500,p=0,a=0,f=0,i=[],d=()=>{p=Date.now()},c=new MutationObserver(d);c.observe(document,{subtree:!0,childList:!0,attributes:!0,characterData:!0}),addEventListener("scroll",d,!0);let l=()=>{a=Date.now()};addEventListener("error",l,!0),addEventListener("unhandledrejection",l,!0);let m=(b,y,v,E,I,R)=>{e({type:"click",ts:y,kind:b,selector:mc(v),text:gc(v),x:E,y:I,...R?{count:R}:{}})},h=b=>{try{let y=Date.now(),v=b.clientX,E=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-E)<=n).length;if(i.push({x:v,y:E,t:y}),R+1>=r&&(f=y,m("rage",y,I,v,E,R+1),i.length=0),R>0)return;let A=a;if(setTimeout(()=>{a>A&&m("error",y,I,v,E)},u),!yc(I))return;let O=p,M=location.href;setTimeout(()=>{let P=p>O||location.href!==M,U=a>A;!P&&!U&&f<y&&m("dead",y,I,v,E)},o)}catch(y){}};return addEventListener("click",h,!0),()=>{c.disconnect(),removeEventListener("scroll",d,!0),removeEventListener("error",l,!0),removeEventListener("unhandledrejection",l,!0),removeEventListener("click",h,!0)}}function mc(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 gc(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 yc(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}}var ut=gt;function vc(e){var p,a;let t=rs(e.release,(p=e.user)!=null?p:e.userId,e.sessionId),r=new pt({endpoint:e.endpoint,projectKey:e.projectKey,meta:t,debug:e.debug}),s=r.push.bind(r),n=[],o=e.track===!1?()=>{}:vs(s,typeof e.network=="object"?e.network:{},typeof e.track=="object"?e.track:{}),u=e.errors===!1?gt:Cs(s,typeof e.network=="object"?e.network:{});if(ut=u,e.replay!==!1&&n.push(zo(s,{maskAllInputs:(a=e.maskAllInputs)!=null?a:!0,maskTextSelector:e.maskTextSelector,blockSelector:e.blockSelector})),e.errors!==!1&&n.push($o(s)),e.console!==!1&&n.push(Go(s,typeof e.console=="object"?e.console:{})),e.navigation!==!1&&n.push(ha(s)),e.frustration!==!1&&n.push(da(s)),e.vitals!==!1&&fa(s),e.network!==!1){let f={ignoreUrls:[`${e.endpoint}/v1/ingest`],...typeof e.network=="object"?e.network:{}};n.push(qo(s,f)),f.captureWebSockets!==!1&&n.push(Vo(s,f,e.debug))}return e.debug&&console.debug("[iris] recording",t.sessionId,"\u2192",e.endpoint),{sessionId:t.sessionId,identify:f=>r.identify(f),track:o,captureException:u.captureException,captureMessage:u.captureMessage,flush:()=>r.flush(!1),stop:()=>{ut===u&&(ut=gt),n.forEach(f=>f()),r.stop()}}}var wc=(e,t)=>ut.captureException(e,t),bc=(e,t)=>ut.captureMessage(e,t);return Sa(Sc);})();
|
|
135
135
|
/*! Bundled license information:
|
|
136
136
|
|
|
137
137
|
rrweb/dist/rrweb.js:
|