@lastos/page-spy-plugin-rrweb
Version:
Record the DOM mutation within PageSpy.
3 lines • 261 kB
JavaScript
var RRWebPlugin=function(){"use strict";function t(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function e(e,r,n){return(r=t(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=function(t){return t&&t.Math==Math&&t},o=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r&&r)||function(){return this}()||r||Function("return this")(),s={},i=function(t){try{return!!t()}catch(t){return!0}},a=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),l=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),c=l,u=Function.prototype.call,h=c?u.bind(u):function(){return u.apply(u,arguments)},p={},f={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,m=d&&!f.call({1:2},1);p.f=m?function(t){var e=d(this,t);return!!e&&e.enumerable}:f;var g,y,v=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},w=l,b=Function.prototype,S=b.call,C=w&&b.bind.bind(S,S),I=w?C:function(t){return function(){return S.apply(t,arguments)}},x=I,k=x({}.toString),A=x("".slice),O=function(t){return A(k(t),8,-1)},R=i,E=O,M=Object,T=I("".split),L=R((function(){return!M("z").propertyIsEnumerable(0)}))?function(t){return"String"==E(t)?T(t,""):M(t)}:M,N=function(t){return null==t},P=N,D=TypeError,F=function(t){if(P(t))throw D("Can't call method on "+t);return t},U=L,_=F,B=function(t){return U(_(t))},j="object"==typeof document&&document.all,z={all:j,IS_HTMLDDA:void 0===j&&void 0!==j},W=z.all,V=z.IS_HTMLDDA?function(t){return"function"==typeof t||t===W}:function(t){return"function"==typeof t},G=V,Y=z.all,H=z.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:G(t)||t===Y}:function(t){return"object"==typeof t?null!==t:G(t)},Z=o,J=V,X=function(t,e){return arguments.length<2?(r=Z[t],J(r)?r:void 0):Z[t]&&Z[t][e];var r},K=I({}.isPrototypeOf),q="undefined"!=typeof navigator&&String(navigator.userAgent)||"",$=o,Q=q,tt=$.process,et=$.Deno,rt=tt&&tt.versions||et&&et.version,nt=rt&&rt.v8;nt&&(y=(g=nt.split("."))[0]>0&&g[0]<4?1:+(g[0]+g[1])),!y&&Q&&(!(g=Q.match(/Edge\/(\d+)/))||g[1]>=74)&&(g=Q.match(/Chrome\/(\d+)/))&&(y=+g[1]);var ot=y,st=ot,it=i,at=o.String,lt=!!Object.getOwnPropertySymbols&&!it((function(){var t=Symbol();return!at(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&st&&st<41})),ct=lt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ut=X,ht=V,pt=K,ft=Object,dt=ct?function(t){return"symbol"==typeof t}:function(t){var e=ut("Symbol");return ht(e)&&pt(e.prototype,ft(t))},mt=String,gt=function(t){try{return mt(t)}catch(t){return"Object"}},yt=V,vt=gt,wt=TypeError,bt=function(t){if(yt(t))return t;throw wt(vt(t)+" is not a function")},St=bt,Ct=N,It=function(t,e){var r=t[e];return Ct(r)?void 0:St(r)},xt=h,kt=V,At=H,Ot=TypeError,Rt={exports:{}},Et=o,Mt=Object.defineProperty,Tt=function(t,e){try{Mt(Et,t,{value:e,configurable:!0,writable:!0})}catch(r){Et[t]=e}return e},Lt=Tt,Nt="__core-js_shared__",Pt=o[Nt]||Lt(Nt,{}),Dt=Pt;(Rt.exports=function(t,e){return Dt[t]||(Dt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.30.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Ft=Rt.exports,Ut=F,_t=Object,Bt=function(t){return _t(Ut(t))},jt=Bt,zt=I({}.hasOwnProperty),Wt=Object.hasOwn||function(t,e){return zt(jt(t),e)},Vt=I,Gt=0,Yt=Math.random(),Ht=Vt(1..toString),Zt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Ht(++Gt+Yt,36)},Jt=Ft,Xt=Wt,Kt=Zt,qt=lt,$t=ct,Qt=o.Symbol,te=Jt("wks"),ee=$t?Qt.for||Qt:Qt&&Qt.withoutSetter||Kt,re=function(t){return Xt(te,t)||(te[t]=qt&&Xt(Qt,t)?Qt[t]:ee("Symbol."+t)),te[t]},ne=h,oe=H,se=dt,ie=It,ae=function(t,e){var r,n;if("string"===e&&kt(r=t.toString)&&!At(n=xt(r,t)))return n;if(kt(r=t.valueOf)&&!At(n=xt(r,t)))return n;if("string"!==e&&kt(r=t.toString)&&!At(n=xt(r,t)))return n;throw Ot("Can't convert object to primitive value")},le=TypeError,ce=re("toPrimitive"),ue=function(t,e){if(!oe(t)||se(t))return t;var r,n=ie(t,ce);if(n){if(void 0===e&&(e="default"),r=ne(n,t,e),!oe(r)||se(r))return r;throw le("Can't convert object to primitive value")}return void 0===e&&(e="number"),ae(t,e)},he=ue,pe=dt,fe=function(t){var e=he(t,"string");return pe(e)?e:e+""},de=H,me=o.document,ge=de(me)&&de(me.createElement),ye=function(t){return ge?me.createElement(t):{}},ve=ye,we=!a&&!i((function(){return 7!=Object.defineProperty(ve("div"),"a",{get:function(){return 7}}).a})),be=a,Se=h,Ce=p,Ie=v,xe=B,ke=fe,Ae=Wt,Oe=we,Re=Object.getOwnPropertyDescriptor;s.f=be?Re:function(t,e){if(t=xe(t),e=ke(e),Oe)try{return Re(t,e)}catch(t){}if(Ae(t,e))return Ie(!Se(Ce.f,t,e),t[e])};var Ee={},Me=a&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Te=H,Le=String,Ne=TypeError,Pe=function(t){if(Te(t))return t;throw Ne(Le(t)+" is not an object")},De=a,Fe=we,Ue=Me,_e=Pe,Be=fe,je=TypeError,ze=Object.defineProperty,We=Object.getOwnPropertyDescriptor,Ve="enumerable",Ge="configurable",Ye="writable";Ee.f=De?Ue?function(t,e,r){if(_e(t),e=Be(e),_e(r),"function"==typeof t&&"prototype"===e&&"value"in r&&Ye in r&&!r[Ye]){var n=We(t,e);n&&n[Ye]&&(t[e]=r.value,r={configurable:Ge in r?r[Ge]:n[Ge],enumerable:Ve in r?r[Ve]:n[Ve],writable:!1})}return ze(t,e,r)}:ze:function(t,e,r){if(_e(t),e=Be(e),_e(r),Fe)try{return ze(t,e,r)}catch(t){}if("get"in r||"set"in r)throw je("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var He=Ee,Ze=v,Je=a?function(t,e,r){return He.f(t,e,Ze(1,r))}:function(t,e,r){return t[e]=r,t},Xe={exports:{}},Ke=a,qe=Wt,$e=Function.prototype,Qe=Ke&&Object.getOwnPropertyDescriptor,tr=qe($e,"name"),er={EXISTS:tr,PROPER:tr&&"something"===function(){}.name,CONFIGURABLE:tr&&(!Ke||Ke&&Qe($e,"name").configurable)},rr=V,nr=Pt,or=I(Function.toString);rr(nr.inspectSource)||(nr.inspectSource=function(t){return or(t)});var sr,ir,ar,lr=nr.inspectSource,cr=V,ur=o.WeakMap,hr=cr(ur)&&/native code/.test(String(ur)),pr=Zt,fr=Ft("keys"),dr=function(t){return fr[t]||(fr[t]=pr(t))},mr={},gr=hr,yr=o,vr=H,wr=Je,br=Wt,Sr=Pt,Cr=dr,Ir=mr,xr="Object already initialized",kr=yr.TypeError,Ar=yr.WeakMap;if(gr||Sr.state){var Or=Sr.state||(Sr.state=new Ar);Or.get=Or.get,Or.has=Or.has,Or.set=Or.set,sr=function(t,e){if(Or.has(t))throw kr(xr);return e.facade=t,Or.set(t,e),e},ir=function(t){return Or.get(t)||{}},ar=function(t){return Or.has(t)}}else{var Rr=Cr("state");Ir[Rr]=!0,sr=function(t,e){if(br(t,Rr))throw kr(xr);return e.facade=t,wr(t,Rr,e),e},ir=function(t){return br(t,Rr)?t[Rr]:{}},ar=function(t){return br(t,Rr)}}var Er={set:sr,get:ir,has:ar,enforce:function(t){return ar(t)?ir(t):sr(t,{})},getterFor:function(t){return function(e){var r;if(!vr(e)||(r=ir(e)).type!==t)throw kr("Incompatible receiver, "+t+" required");return r}}},Mr=I,Tr=i,Lr=V,Nr=Wt,Pr=a,Dr=er.CONFIGURABLE,Fr=lr,Ur=Er.enforce,_r=Er.get,Br=String,jr=Object.defineProperty,zr=Mr("".slice),Wr=Mr("".replace),Vr=Mr([].join),Gr=Pr&&!Tr((function(){return 8!==jr((function(){}),"length",{value:8}).length})),Yr=String(String).split("String"),Hr=Xe.exports=function(t,e,r){"Symbol("===zr(Br(e),0,7)&&(e="["+Wr(Br(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!Nr(t,"name")||Dr&&t.name!==e)&&(Pr?jr(t,"name",{value:e,configurable:!0}):t.name=e),Gr&&r&&Nr(r,"arity")&&t.length!==r.arity&&jr(t,"length",{value:r.arity});try{r&&Nr(r,"constructor")&&r.constructor?Pr&&jr(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=Ur(t);return Nr(n,"source")||(n.source=Vr(Yr,"string"==typeof e?e:"")),t};Function.prototype.toString=Hr((function(){return Lr(this)&&_r(this).source||Fr(this)}),"toString");var Zr=Xe.exports,Jr=V,Xr=Ee,Kr=Zr,qr=Tt,$r=function(t,e,r,n){n||(n={});var o=n.enumerable,s=void 0!==n.name?n.name:e;if(Jr(r)&&Kr(r,s,n),n.global)o?t[e]=r:qr(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:Xr.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},Qr={},tn=Math.ceil,en=Math.floor,rn=Math.trunc||function(t){var e=+t;return(e>0?en:tn)(e)},nn=rn,on=function(t){var e=+t;return e!=e||0===e?0:nn(e)},sn=on,an=Math.max,ln=Math.min,cn=function(t,e){var r=sn(t);return r<0?an(r+e,0):ln(r,e)},un=on,hn=Math.min,pn=function(t){return t>0?hn(un(t),9007199254740991):0},fn=pn,dn=function(t){return fn(t.length)},mn=B,gn=cn,yn=dn,vn=function(t){return function(e,r,n){var o,s=mn(e),i=yn(s),a=gn(n,i);if(t&&r!=r){for(;i>a;)if((o=s[a++])!=o)return!0}else for(;i>a;a++)if((t||a in s)&&s[a]===r)return t||a||0;return!t&&-1}},wn={includes:vn(!0),indexOf:vn(!1)},bn=Wt,Sn=B,Cn=wn.indexOf,In=mr,xn=I([].push),kn=function(t,e){var r,n=Sn(t),o=0,s=[];for(r in n)!bn(In,r)&&bn(n,r)&&xn(s,r);for(;e.length>o;)bn(n,r=e[o++])&&(~Cn(s,r)||xn(s,r));return s},An=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],On=kn,Rn=An.concat("length","prototype");Qr.f=Object.getOwnPropertyNames||function(t){return On(t,Rn)};var En={};En.f=Object.getOwnPropertySymbols;var Mn=X,Tn=Qr,Ln=En,Nn=Pe,Pn=I([].concat),Dn=Mn("Reflect","ownKeys")||function(t){var e=Tn.f(Nn(t)),r=Ln.f;return r?Pn(e,r(t)):e},Fn=Wt,Un=Dn,_n=s,Bn=Ee,jn=function(t,e,r){for(var n=Un(e),o=Bn.f,s=_n.f,i=0;i<n.length;i++){var a=n[i];Fn(t,a)||r&&Fn(r,a)||o(t,a,s(e,a))}},zn=i,Wn=V,Vn=/#|\.prototype\./,Gn=function(t,e){var r=Hn[Yn(t)];return r==Jn||r!=Zn&&(Wn(e)?zn(e):!!e)},Yn=Gn.normalize=function(t){return String(t).replace(Vn,".").toLowerCase()},Hn=Gn.data={},Zn=Gn.NATIVE="N",Jn=Gn.POLYFILL="P",Xn=Gn,Kn=o,qn=s.f,$n=Je,Qn=$r,to=Tt,eo=jn,ro=Xn,no=function(t,e){var r,n,o,s,i,a=t.target,l=t.global,c=t.stat;if(r=l?Kn:c?Kn[a]||to(a,{}):(Kn[a]||{}).prototype)for(n in e){if(s=e[n],o=t.dontCallGetSet?(i=qn(r,n))&&i.value:r[n],!ro(l?n:a+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof s==typeof o)continue;eo(s,o)}(t.sham||o&&o.sham)&&$n(s,"sham",!0),Qn(r,n,s,t)}},oo=l,so=Function.prototype,io=so.apply,ao=so.call,lo="object"==typeof Reflect&&Reflect.apply||(oo?ao.bind(io):function(){return ao.apply(io,arguments)}),co=I,uo=bt,ho=function(t,e,r){try{return co(uo(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}},po=V,fo=String,mo=TypeError,go=ho,yo=Pe,vo=function(t){if("object"==typeof t||po(t))return t;throw mo("Can't set "+fo(t)+" as a prototype")},wo=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=go(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return yo(r),vo(n),e?t(r,n):r.__proto__=n,r}}():void 0),bo=Ee.f,So=V,Co=H,Io=wo,xo=function(t,e,r){var n,o;return Io&&So(n=e.constructor)&&n!==r&&Co(o=n.prototype)&&o!==r.prototype&&Io(t,o),t},ko={};ko[re("toStringTag")]="z";var Ao="[object z]"===String(ko),Oo=V,Ro=O,Eo=re("toStringTag"),Mo=Object,To="Arguments"==Ro(function(){return arguments}()),Lo=Ao?Ro:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Mo(t),Eo))?r:To?Ro(e):"Object"==(n=Ro(e))&&Oo(e.callee)?"Arguments":n},No=Lo,Po=String,Do=function(t){if("Symbol"===No(t))throw TypeError("Cannot convert a Symbol value to a string");return Po(t)},Fo=Do,Uo=function(t,e){return void 0===t?arguments.length<2?"":e:Fo(t)},_o=H,Bo=Je,jo=Error,zo=I("".replace),Wo=String(jo("zxcasd").stack),Vo=/\n\s*at [^:]*:[^\n]*/,Go=Vo.test(Wo),Yo=function(t,e){if(Go&&"string"==typeof t&&!jo.prepareStackTrace)for(;e--;)t=zo(t,Vo,"");return t},Ho=v,Zo=!i((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",Ho(1,7)),7!==t.stack)})),Jo=Je,Xo=Yo,Ko=Zo,qo=Error.captureStackTrace,$o=X,Qo=Wt,ts=Je,es=K,rs=wo,ns=jn,os=function(t,e,r){r in t||bo(t,r,{configurable:!0,get:function(){return e[r]},set:function(t){e[r]=t}})},ss=xo,is=Uo,as=function(t,e){_o(e)&&"cause"in e&&Bo(t,"cause",e.cause)},ls=function(t,e,r,n){Ko&&(qo?qo(t,e):Jo(t,"stack",Xo(r,n)))},cs=a,us=no,hs=lo,ps=function(t,e,r,n){var o="stackTraceLimit",s=n?2:1,i=t.split("."),a=i[i.length-1],l=$o.apply(null,i);if(l){var c=l.prototype;if(Qo(c,"cause")&&delete c.cause,!r)return l;var u=$o("Error"),h=e((function(t,e){var r=is(n?e:t,void 0),o=n?new l(t):new l;return void 0!==r&&ts(o,"message",r),ls(o,h,o.stack,2),this&&es(c,this)&&ss(o,this,h),arguments.length>s&&as(o,arguments[s]),o}));h.prototype=c,"Error"!==a?rs?rs(h,u):ns(h,u,{name:!0}):cs&&o in l&&(os(h,l,o),os(h,l,"prepareStackTrace")),ns(h,l);try{c.name!==a&&ts(c,"name",a),c.constructor=h}catch(t){}return h}},fs="WebAssembly",ds=o[fs],ms=7!==Error("e",{cause:7}).cause,gs=function(t,e){var r={};r[t]=ps(t,e,ms),us({global:!0,constructor:!0,arity:1,forced:ms},r)},ys=function(t,e){if(ds&&ds[t]){var r={};r[t]=ps(fs+"."+t,e,ms),us({target:fs,stat:!0,constructor:!0,arity:1,forced:ms},r)}};gs("Error",(function(t){return function(e){return hs(t,this,arguments)}})),gs("EvalError",(function(t){return function(e){return hs(t,this,arguments)}})),gs("RangeError",(function(t){return function(e){return hs(t,this,arguments)}})),gs("ReferenceError",(function(t){return function(e){return hs(t,this,arguments)}})),gs("SyntaxError",(function(t){return function(e){return hs(t,this,arguments)}})),gs("TypeError",(function(t){return function(e){return hs(t,this,arguments)}})),gs("URIError",(function(t){return function(e){return hs(t,this,arguments)}})),ys("CompileError",(function(t){return function(e){return hs(t,this,arguments)}})),ys("LinkError",(function(t){return function(e){return hs(t,this,arguments)}})),ys("RuntimeError",(function(t){return function(e){return hs(t,this,arguments)}}));var vs=O,ws=Array.isArray||function(t){return"Array"==vs(t)},bs=a,Ss=ws,Cs=TypeError,Is=Object.getOwnPropertyDescriptor,xs=bs&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}()?function(t,e){if(Ss(t)&&!Is(t,"length").writable)throw Cs("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},ks=TypeError,As=function(t){if(t>9007199254740991)throw ks("Maximum allowed index exceeded");return t},Os=Bt,Rs=dn,Es=xs,Ms=As;no({target:"Array",proto:!0,arity:1,forced:i((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=Os(this),r=Rs(e),n=arguments.length;Ms(r+n);for(var o=0;o<n;o++)e[r]=arguments[o],r++;return Es(e,r),r}});var Ts=bt,Ls=Bt,Ns=L,Ps=dn,Ds=TypeError,Fs=function(t){return function(e,r,n,o){Ts(r);var s=Ls(e),i=Ns(s),a=Ps(s),l=t?a-1:0,c=t?-1:1;if(n<2)for(;;){if(l in i){o=i[l],l+=c;break}if(l+=c,t?l<0:a<=l)throw Ds("Reduce of empty array with no initial value")}for(;t?l>=0:a>l;l+=c)l in i&&(o=r(o,i[l],l,s));return o}},Us={left:Fs(!1),right:Fs(!0)},_s=i,Bs="undefined"!=typeof process&&"process"==O(process),js=Us.left;no({target:"Array",proto:!0,forced:!Bs&&ot>79&&ot<83||!function(t,e){var r=[][t];return!!r&&_s((function(){r.call(null,e||function(){return 1},1)}))}("reduce")},{reduce:function(t){var e=arguments.length;return js(this,t,e,e>1?arguments[1]:void 0)}});var zs=gt,Ws=TypeError,Vs=Bt,Gs=dn,Ys=xs,Hs=function(t,e){if(!delete t[e])throw Ws("Cannot delete property "+zs(e)+" of "+zs(t))},Zs=As;no({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(t){return t instanceof TypeError}}()},{unshift:function(t){var e=Vs(this),r=Gs(e),n=arguments.length;if(n){Zs(r+n);for(var o=r;o--;){var s=o+n;o in e?e[s]=e[o]:Hs(e,s)}for(var i=0;i<n;i++)e[i]=arguments[i]}return Ys(e,r+n)}});var Js=Ee.f,Xs=Wt,Ks=re("toStringTag"),qs=function(t,e,r){t&&!r&&(t=t.prototype),t&&!Xs(t,Ks)&&Js(t,Ks,{configurable:!0,value:e})},$s=o,Qs=qs;no({global:!0},{Reflect:{}}),Qs($s.Reflect,"Reflect",!0);var ti=Pe,ei=i,ri=o.RegExp,ni=ei((function(){var t=ri("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),oi=ni||ei((function(){return!ri("a","y").sticky})),si={BROKEN_CARET:ni||ei((function(){var t=ri("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:oi,UNSUPPORTED_Y:ni},ii={},ai=kn,li=An,ci=Object.keys||function(t){return ai(t,li)},ui=a,hi=Me,pi=Ee,fi=Pe,di=B,mi=ci;ii.f=ui&&!hi?Object.defineProperties:function(t,e){fi(t);for(var r,n=di(e),o=mi(e),s=o.length,i=0;s>i;)pi.f(t,r=o[i++],n[r]);return t};var gi,yi=X("document","documentElement"),vi=Pe,wi=ii,bi=An,Si=mr,Ci=yi,Ii=ye,xi="prototype",ki="script",Ai=dr("IE_PROTO"),Oi=function(){},Ri=function(t){return"<"+ki+">"+t+"</"+ki+">"},Ei=function(t){t.write(Ri("")),t.close();var e=t.parentWindow.Object;return t=null,e},Mi=function(){try{gi=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;Mi="undefined"!=typeof document?document.domain&&gi?Ei(gi):(e=Ii("iframe"),r="java"+ki+":",e.style.display="none",Ci.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(Ri("document.F=Object")),t.close(),t.F):Ei(gi);for(var n=bi.length;n--;)delete Mi[xi][bi[n]];return Mi()};Si[Ai]=!0;var Ti,Li,Ni=Object.create||function(t,e){var r;return null!==t?(Oi[xi]=vi(t),r=new Oi,Oi[xi]=null,r[Ai]=t):r=Mi(),void 0===e?r:wi.f(r,e)},Pi=i,Di=o.RegExp,Fi=Pi((function(){var t=Di(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Ui=i,_i=o.RegExp,Bi=Ui((function(){var t=_i("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),ji=h,zi=I,Wi=Do,Vi=function(){var t=ti(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},Gi=si,Yi=Ni,Hi=Er.get,Zi=Fi,Ji=Bi,Xi=Ft("native-string-replace",String.prototype.replace),Ki=RegExp.prototype.exec,qi=Ki,$i=zi("".charAt),Qi=zi("".indexOf),ta=zi("".replace),ea=zi("".slice),ra=(Li=/b*/g,ji(Ki,Ti=/a/,"a"),ji(Ki,Li,"a"),0!==Ti.lastIndex||0!==Li.lastIndex),na=Gi.BROKEN_CARET,oa=void 0!==/()??/.exec("")[1];(ra||oa||na||Zi||Ji)&&(qi=function(t){var e,r,n,o,s,i,a,l=this,c=Hi(l),u=Wi(t),h=c.raw;if(h)return h.lastIndex=l.lastIndex,e=ji(qi,h,u),l.lastIndex=h.lastIndex,e;var p=c.groups,f=na&&l.sticky,d=ji(Vi,l),m=l.source,g=0,y=u;if(f&&(d=ta(d,"y",""),-1===Qi(d,"g")&&(d+="g"),y=ea(u,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==$i(u,l.lastIndex-1))&&(m="(?: "+m+")",y=" "+y,g++),r=new RegExp("^(?:"+m+")",d)),oa&&(r=new RegExp("^"+m+"$(?!\\s)",d)),ra&&(n=l.lastIndex),o=ji(Ki,f?r:l,y),f?o?(o.input=ea(o.input,g),o[0]=ea(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:ra&&o&&(l.lastIndex=l.global?o.index+o[0].length:n),oa&&o&&o.length>1&&ji(Xi,o[0],r,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(o[s]=void 0)})),o&&p)for(o.groups=i=Yi(null),s=0;s<p.length;s++)i[(a=p[s])[0]]=o[a[1]];return o});var sa=qi;no({target:"RegExp",proto:!0,forced:/./.exec!==sa},{exec:sa});var ia=O,aa=I,la=function(t){if("Function"===ia(t))return aa(t)},ca=la,ua=$r,ha=sa,pa=i,fa=re,da=Je,ma=fa("species"),ga=RegExp.prototype,ya=I,va=on,wa=Do,ba=F,Sa=ya("".charAt),Ca=ya("".charCodeAt),Ia=ya("".slice),xa=function(t){return function(e,r){var n,o,s=wa(ba(e)),i=va(r),a=s.length;return i<0||i>=a?t?"":void 0:(n=Ca(s,i))<55296||n>56319||i+1===a||(o=Ca(s,i+1))<56320||o>57343?t?Sa(s,i):n:t?Ia(s,i,i+2):o-56320+(n-55296<<10)+65536}},ka={codeAt:xa(!1),charAt:xa(!0)},Aa=ka.charAt,Oa=I,Ra=Bt,Ea=Math.floor,Ma=Oa("".charAt),Ta=Oa("".replace),La=Oa("".slice),Na=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Pa=/\$([$&'`]|\d{1,2})/g,Da=h,Fa=Pe,Ua=V,_a=O,Ba=sa,ja=TypeError,za=lo,Wa=h,Va=I,Ga=function(t,e,r,n){var o=fa(t),s=!pa((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),i=s&&!pa((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[ma]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!s||!i||r){var a=ca(/./[o]),l=e(o,""[t],(function(t,e,r,n,o){var i=ca(t),l=e.exec;return l===ha||l===ga.exec?s&&!o?{done:!0,value:a(e,r,n)}:{done:!0,value:i(r,e,n)}:{done:!1}}));ua(String.prototype,t,l[0]),ua(ga,o,l[1])}n&&da(ga[o],"sham",!0)},Ya=i,Ha=Pe,Za=V,Ja=N,Xa=on,Ka=pn,qa=Do,$a=F,Qa=function(t,e,r){return e+(r?Aa(t,e).length:1)},tl=It,el=function(t,e,r,n,o,s){var i=r+t.length,a=n.length,l=Pa;return void 0!==o&&(o=Ra(o),l=Na),Ta(s,l,(function(s,l){var c;switch(Ma(l,0)){case"$":return"$";case"&":return t;case"`":return La(e,0,r);case"'":return La(e,i);case"<":c=o[La(l,1,-1)];break;default:var u=+l;if(0===u)return s;if(u>a){var h=Ea(u/10);return 0===h?s:h<=a?void 0===n[h-1]?Ma(l,1):n[h-1]+Ma(l,1):s}c=n[u-1]}return void 0===c?"":c}))},rl=function(t,e){var r=t.exec;if(Ua(r)){var n=Da(r,t,e);return null!==n&&Fa(n),n}if("RegExp"===_a(t))return Da(Ba,t,e);throw ja("RegExp#exec called on incompatible receiver")},nl=re("replace"),ol=Math.max,sl=Math.min,il=Va([].concat),al=Va([].push),ll=Va("".indexOf),cl=Va("".slice),ul="$0"==="a".replace(/./,"$0"),hl=!!/./[nl]&&""===/./[nl]("a","$0"),pl=!Ya((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}));Ga("replace",(function(t,e,r){var n=hl?"$":"$0";return[function(t,r){var n=$a(this),o=Ja(t)?void 0:tl(t,nl);return o?Wa(o,t,n,r):Wa(e,qa(n),t,r)},function(t,o){var s=Ha(this),i=qa(t);if("string"==typeof o&&-1===ll(o,n)&&-1===ll(o,"$<")){var a=r(e,s,i,o);if(a.done)return a.value}var l=Za(o);l||(o=qa(o));var c=s.global;if(c){var u=s.unicode;s.lastIndex=0}for(var h=[];;){var p=rl(s,i);if(null===p)break;if(al(h,p),!c)break;""===qa(p[0])&&(s.lastIndex=Qa(i,Ka(s.lastIndex),u))}for(var f,d="",m=0,g=0;g<h.length;g++){for(var y=qa((p=h[g])[0]),v=ol(sl(Xa(p.index),i.length),0),w=[],b=1;b<p.length;b++)al(w,void 0===(f=p[b])?f:String(f));var S=p.groups;if(l){var C=il([y],w,v,i);void 0!==S&&al(C,S);var I=qa(za(o,void 0,C))}else I=el(y,i,v,w,S,o);v>=m&&(d+=cl(i,m,v)+I,m=v+y.length)}return d+cl(i,m)}]}),!pl||!ul||hl);var fl={exports:{}},dl=re("iterator"),ml=!1;try{var gl=0,yl={next:function(){return{done:!!gl++}},return:function(){ml=!0}};yl[dl]=function(){return this},Array.from(yl,(function(){throw 2}))}catch(t){}var vl,wl,bl,Sl="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,Cl=Zr,Il=Ee,xl=function(t,e,r){return r.get&&Cl(r.get,e,{getter:!0}),r.set&&Cl(r.set,e,{setter:!0}),Il.f(t,e,r)},kl=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Al=Wt,Ol=V,Rl=Bt,El=kl,Ml=dr("IE_PROTO"),Tl=Object,Ll=Tl.prototype,Nl=El?Tl.getPrototypeOf:function(t){var e=Rl(t);if(Al(e,Ml))return e[Ml];var r=e.constructor;return Ol(r)&&e instanceof r?r.prototype:e instanceof Tl?Ll:null},Pl=Sl,Dl=a,Fl=o,Ul=V,_l=H,Bl=Wt,jl=Lo,zl=gt,Wl=Je,Vl=$r,Gl=xl,Yl=K,Hl=Nl,Zl=wo,Jl=re,Xl=Zt,Kl=Er.enforce,ql=Er.get,$l=Fl.Int8Array,Ql=$l&&$l.prototype,tc=Fl.Uint8ClampedArray,ec=tc&&tc.prototype,rc=$l&&Hl($l),nc=Ql&&Hl(Ql),oc=Object.prototype,sc=Fl.TypeError,ic=Jl("toStringTag"),ac=Xl("TYPED_ARRAY_TAG"),lc="TypedArrayConstructor",cc=Pl&&!!Zl&&"Opera"!==jl(Fl.opera),uc=!1,hc={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},pc={BigInt64Array:8,BigUint64Array:8},fc=function(t){var e=Hl(t);if(_l(e)){var r=ql(e);return r&&Bl(r,lc)?r[lc]:fc(e)}},dc=function(t){if(!_l(t))return!1;var e=jl(t);return Bl(hc,e)||Bl(pc,e)};for(vl in hc)(bl=(wl=Fl[vl])&&wl.prototype)?Kl(bl)[lc]=wl:cc=!1;for(vl in pc)(bl=(wl=Fl[vl])&&wl.prototype)&&(Kl(bl)[lc]=wl);if((!cc||!Ul(rc)||rc===Function.prototype)&&(rc=function(){throw sc("Incorrect invocation")},cc))for(vl in hc)Fl[vl]&&Zl(Fl[vl],rc);if((!cc||!nc||nc===oc)&&(nc=rc.prototype,cc))for(vl in hc)Fl[vl]&&Zl(Fl[vl].prototype,nc);if(cc&&Hl(ec)!==nc&&Zl(ec,nc),Dl&&!Bl(nc,ic))for(vl in uc=!0,Gl(nc,ic,{configurable:!0,get:function(){return _l(this)?this[ac]:void 0}}),hc)Fl[vl]&&Wl(Fl[vl],ac,vl);var mc={NATIVE_ARRAY_BUFFER_VIEWS:cc,TYPED_ARRAY_TAG:uc&&ac,aTypedArray:function(t){if(dc(t))return t;throw sc("Target is not a typed array")},aTypedArrayConstructor:function(t){if(Ul(t)&&(!Zl||Yl(rc,t)))return t;throw sc(zl(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,e,r,n){if(Dl){if(r)for(var o in hc){var s=Fl[o];if(s&&Bl(s.prototype,t))try{delete s.prototype[t]}catch(r){try{s.prototype[t]=e}catch(t){}}}nc[t]&&!r||Vl(nc,t,r?e:cc&&Ql[t]||e,n)}},exportTypedArrayStaticMethod:function(t,e,r){var n,o;if(Dl){if(Zl){if(r)for(n in hc)if((o=Fl[n])&&Bl(o,t))try{delete o[t]}catch(t){}if(rc[t]&&!r)return;try{return Vl(rc,t,r?e:cc&&rc[t]||e)}catch(t){}}for(n in hc)!(o=Fl[n])||o[t]&&!r||Vl(o,t,e)}},getTypedArrayConstructor:fc,isView:function(t){if(!_l(t))return!1;var e=jl(t);return"DataView"===e||Bl(hc,e)||Bl(pc,e)},isTypedArray:dc,TypedArray:rc,TypedArrayPrototype:nc},gc=o,yc=i,vc=function(t,e){if(!e&&!ml)return!1;var r=!1;try{var n={};n[dl]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},wc=mc.NATIVE_ARRAY_BUFFER_VIEWS,bc=gc.ArrayBuffer,Sc=gc.Int8Array,Cc=!wc||!yc((function(){Sc(1)}))||!yc((function(){new Sc(-1)}))||!vc((function(t){new Sc,new Sc(null),new Sc(1.5),new Sc(t)}),!0)||yc((function(){return 1!==new Sc(new bc(2),1,void 0).length})),Ic=$r,xc=function(t,e,r){for(var n in e)Ic(t,n,e[n],r);return t},kc=K,Ac=TypeError,Oc=function(t,e){if(kc(e,t))return t;throw Ac("Incorrect invocation")},Rc=on,Ec=pn,Mc=RangeError,Tc=function(t){if(void 0===t)return 0;var e=Rc(t),r=Ec(e);if(e!==r)throw Mc("Wrong length or index");return r},Lc=Array,Nc=Math.abs,Pc=Math.pow,Dc=Math.floor,Fc=Math.log,Uc=Math.LN2,_c={pack:function(t,e,r){var n,o,s,i=Lc(r),a=8*r-e-1,l=(1<<a)-1,c=l>>1,u=23===e?Pc(2,-24)-Pc(2,-77):0,h=t<0||0===t&&1/t<0?1:0,p=0;for((t=Nc(t))!=t||t===1/0?(o=t!=t?1:0,n=l):(n=Dc(Fc(t)/Uc),t*(s=Pc(2,-n))<1&&(n--,s*=2),(t+=n+c>=1?u/s:u*Pc(2,1-c))*s>=2&&(n++,s/=2),n+c>=l?(o=0,n=l):n+c>=1?(o=(t*s-1)*Pc(2,e),n+=c):(o=t*Pc(2,c-1)*Pc(2,e),n=0));e>=8;)i[p++]=255&o,o/=256,e-=8;for(n=n<<e|o,a+=e;a>0;)i[p++]=255&n,n/=256,a-=8;return i[--p]|=128*h,i},unpack:function(t,e){var r,n=t.length,o=8*n-e-1,s=(1<<o)-1,i=s>>1,a=o-7,l=n-1,c=t[l--],u=127&c;for(c>>=7;a>0;)u=256*u+t[l--],a-=8;for(r=u&(1<<-a)-1,u>>=-a,a+=e;a>0;)r=256*r+t[l--],a-=8;if(0===u)u=1-i;else{if(u===s)return r?NaN:c?-1/0:1/0;r+=Pc(2,e),u-=i}return(c?-1:1)*r*Pc(2,u-e)}},Bc=Bt,jc=cn,zc=dn,Wc=function(t){for(var e=Bc(this),r=zc(e),n=arguments.length,o=jc(n>1?arguments[1]:void 0,r),s=n>2?arguments[2]:void 0,i=void 0===s?r:jc(s,r);i>o;)e[o++]=t;return e},Vc=fe,Gc=Ee,Yc=v,Hc=function(t,e,r){var n=Vc(e);n in t?Gc.f(t,n,Yc(0,r)):t[n]=r},Zc=cn,Jc=dn,Xc=Hc,Kc=Array,qc=Math.max,$c=function(t,e,r){for(var n=Jc(t),o=Zc(e,n),s=Zc(void 0===r?n:r,n),i=Kc(qc(s-o,0)),a=0;o<s;o++,a++)Xc(i,a,t[o]);return i.length=a,i},Qc=o,tu=I,eu=a,ru=Sl,nu=er,ou=Je,su=xl,iu=xc,au=i,lu=Oc,cu=on,uu=pn,hu=Tc,pu=_c,fu=Nl,du=wo,mu=Qr.f,gu=Wc,yu=$c,vu=qs,wu=Er,bu=nu.PROPER,Su=nu.CONFIGURABLE,Cu="ArrayBuffer",Iu="DataView",xu="prototype",ku="Wrong index",Au=wu.getterFor(Cu),Ou=wu.getterFor(Iu),Ru=wu.set,Eu=Qc[Cu],Mu=Eu,Tu=Mu&&Mu[xu],Lu=Qc[Iu],Nu=Lu&&Lu[xu],Pu=Object.prototype,Du=Qc.Array,Fu=Qc.RangeError,Uu=tu(gu),_u=tu([].reverse),Bu=pu.pack,ju=pu.unpack,zu=function(t){return[255&t]},Wu=function(t){return[255&t,t>>8&255]},Vu=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},Gu=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},Yu=function(t){return Bu(t,23,4)},Hu=function(t){return Bu(t,52,8)},Zu=function(t,e,r){su(t[xu],e,{configurable:!0,get:function(){return r(this)[e]}})},Ju=function(t,e,r,n){var o=hu(r),s=Ou(t);if(o+e>s.byteLength)throw Fu(ku);var i=s.bytes,a=o+s.byteOffset,l=yu(i,a,a+e);return n?l:_u(l)},Xu=function(t,e,r,n,o,s){var i=hu(r),a=Ou(t);if(i+e>a.byteLength)throw Fu(ku);for(var l=a.bytes,c=i+a.byteOffset,u=n(+o),h=0;h<e;h++)l[c+h]=u[s?h:e-h-1]};if(ru){var Ku=bu&&Eu.name!==Cu;if(au((function(){Eu(1)}))&&au((function(){new Eu(-1)}))&&!au((function(){return new Eu,new Eu(1.5),new Eu(NaN),1!=Eu.length||Ku&&!Su})))Ku&&Su&&ou(Eu,"name",Cu);else{(Mu=function(t){return lu(this,Tu),new Eu(hu(t))})[xu]=Tu;for(var qu,$u=mu(Eu),Qu=0;$u.length>Qu;)(qu=$u[Qu++])in Mu||ou(Mu,qu,Eu[qu]);Tu.constructor=Mu}du&&fu(Nu)!==Pu&&du(Nu,Pu);var th=new Lu(new Mu(2)),eh=tu(Nu.setInt8);th.setInt8(0,2147483648),th.setInt8(1,2147483649),!th.getInt8(0)&&th.getInt8(1)||iu(Nu,{setInt8:function(t,e){eh(this,t,e<<24>>24)},setUint8:function(t,e){eh(this,t,e<<24>>24)}},{unsafe:!0})}else Tu=(Mu=function(t){lu(this,Tu);var e=hu(t);Ru(this,{type:Cu,bytes:Uu(Du(e),0),byteLength:e}),eu||(this.byteLength=e,this.detached=!1)})[xu],Nu=(Lu=function(t,e,r){lu(this,Nu),lu(t,Tu);var n=Au(t),o=n.byteLength,s=cu(e);if(s<0||s>o)throw Fu("Wrong offset");if(s+(r=void 0===r?o-s:uu(r))>o)throw Fu("Wrong length");Ru(this,{type:Iu,buffer:t,byteLength:r,byteOffset:s,bytes:n.bytes}),eu||(this.buffer=t,this.byteLength=r,this.byteOffset=s)})[xu],eu&&(Zu(Mu,"byteLength",Au),Zu(Lu,"buffer",Ou),Zu(Lu,"byteLength",Ou),Zu(Lu,"byteOffset",Ou)),iu(Nu,{getInt8:function(t){return Ju(this,1,t)[0]<<24>>24},getUint8:function(t){return Ju(this,1,t)[0]},getInt16:function(t){var e=Ju(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=Ju(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return Gu(Ju(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return Gu(Ju(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return ju(Ju(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return ju(Ju(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){Xu(this,1,t,zu,e)},setUint8:function(t,e){Xu(this,1,t,zu,e)},setInt16:function(t,e){Xu(this,2,t,Wu,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){Xu(this,2,t,Wu,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){Xu(this,4,t,Vu,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){Xu(this,4,t,Vu,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){Xu(this,4,t,Yu,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){Xu(this,8,t,Hu,e,arguments.length>2?arguments[2]:void 0)}});vu(Mu,Cu),vu(Lu,Iu);var rh={ArrayBuffer:Mu,DataView:Lu},nh=H,oh=Math.floor,sh=Number.isInteger||function(t){return!nh(t)&&isFinite(t)&&oh(t)===t},ih=on,ah=RangeError,lh=function(t){var e=ih(t);if(e<0)throw ah("The argument can't be less than 0");return e},ch=RangeError,uh=function(t,e){var r=lh(t);if(r%e)throw ch("Wrong offset");return r},hh=bt,ph=l,fh=la(la.bind),dh=function(t,e){return hh(t),void 0===e?t:ph?fh(t,e):function(){return t.apply(e,arguments)}},mh=I,gh=i,yh=V,vh=Lo,wh=lr,bh=function(){},Sh=[],Ch=X("Reflect","construct"),Ih=/^\s*(?:class|function)\b/,xh=mh(Ih.exec),kh=!Ih.exec(bh),Ah=function(t){if(!yh(t))return!1;try{return Ch(bh,Sh,t),!0}catch(t){return!1}},Oh=function(t){if(!yh(t))return!1;switch(vh(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return kh||!!xh(Ih,wh(t))}catch(t){return!0}};Oh.sham=!0;var Rh=!Ch||gh((function(){var t;return Ah(Ah.call)||!Ah(Object)||!Ah((function(){t=!0}))||t}))?Oh:Ah,Eh=Rh,Mh=gt,Th=TypeError,Lh={},Nh=Lo,Ph=It,Dh=N,Fh=Lh,Uh=re("iterator"),_h=function(t){if(!Dh(t))return Ph(t,Uh)||Ph(t,"@@iterator")||Fh[Nh(t)]},Bh=h,jh=bt,zh=Pe,Wh=gt,Vh=_h,Gh=TypeError,Yh=function(t,e){var r=arguments.length<2?Vh(t):e;if(jh(r))return zh(Bh(r,t));throw Gh(Wh(t)+" is not iterable")},Hh=Lh,Zh=re("iterator"),Jh=Array.prototype,Xh=function(t){return void 0!==t&&(Hh.Array===t||Jh[Zh]===t)},Kh=Lo,qh=function(t){var e=Kh(t);return"BigInt64Array"==e||"BigUint64Array"==e},$h=ue,Qh=TypeError,tp=function(t){var e=$h(t,"number");if("number"==typeof e)throw Qh("Can't convert number to bigint");return BigInt(e)},ep=dh,rp=h,np=function(t){if(Eh(t))return t;throw Th(Mh(t)+" is not a constructor")},op=Bt,sp=dn,ip=Yh,ap=_h,lp=Xh,cp=qh,up=mc.aTypedArrayConstructor,hp=tp,pp=function(t){var e,r,n,o,s,i,a,l,c=np(this),u=op(t),h=arguments.length,p=h>1?arguments[1]:void 0,f=void 0!==p,d=ap(u);if(d&&!lp(d))for(l=(a=ip(u,d)).next,u=[];!(i=rp(l,a)).done;)u.push(i.value);for(f&&h>2&&(p=ep(p,arguments[2])),r=sp(u),n=new(up(c))(r),o=cp(n),e=0;r>e;e++)s=f?p(u[e],e):u[e],n[e]=o?hp(s):+s;return n},fp=ws,dp=Rh,mp=H,gp=re("species"),yp=Array,vp=function(t){var e;return fp(t)&&(e=t.constructor,(dp(e)&&(e===yp||fp(e.prototype))||mp(e)&&null===(e=e[gp]))&&(e=void 0)),void 0===e?yp:e},wp=dh,bp=L,Sp=Bt,Cp=dn,Ip=function(t,e){return new(vp(t))(0===e?0:e)},xp=I([].push),kp=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,s=6==t,i=7==t,a=5==t||s;return function(l,c,u,h){for(var p,f,d=Sp(l),m=bp(d),g=wp(c,u),y=Cp(m),v=0,w=h||Ip,b=e?w(l,y):r||i?w(l,0):void 0;y>v;v++)if((a||v in m)&&(f=g(p=m[v],v,d),t))if(e)b[v]=f;else if(f)switch(t){case 3:return!0;case 5:return p;case 6:return v;case 2:xp(b,p)}else switch(t){case 4:return!1;case 7:xp(b,p)}return s?-1:n||o?o:b}},Ap={forEach:kp(0),map:kp(1),filter:kp(2),some:kp(3),every:kp(4),find:kp(5),findIndex:kp(6),filterReject:kp(7)},Op=X,Rp=xl,Ep=a,Mp=re("species"),Tp=no,Lp=o,Np=h,Pp=a,Dp=Cc,Fp=mc,Up=rh,_p=Oc,Bp=v,jp=Je,zp=sh,Wp=pn,Vp=Tc,Gp=uh,Yp=fe,Hp=Wt,Zp=Lo,Jp=H,Xp=dt,Kp=Ni,qp=K,$p=wo,Qp=Qr.f,tf=pp,ef=Ap.forEach,rf=function(t){var e=Op(t);Ep&&e&&!e[Mp]&&Rp(e,Mp,{configurable:!0,get:function(){return this}})},nf=xl,of=Ee,sf=s,af=xo,lf=Er.get,cf=Er.set,uf=Er.enforce,hf=of.f,pf=sf.f,ff=Math.round,df=Lp.RangeError,mf=Up.ArrayBuffer,gf=mf.prototype,yf=Up.DataView,vf=Fp.NATIVE_ARRAY_BUFFER_VIEWS,wf=Fp.TYPED_ARRAY_TAG,bf=Fp.TypedArray,Sf=Fp.TypedArrayPrototype,Cf=Fp.aTypedArrayConstructor,If=Fp.isTypedArray,xf="BYTES_PER_ELEMENT",kf="Wrong length",Af=function(t,e){Cf(t);for(var r=0,n=e.length,o=new t(n);n>r;)o[r]=e[r++];return o},Of=function(t,e){nf(t,e,{configurable:!0,get:function(){return lf(this)[e]}})},Rf=function(t){var e;return qp(gf,t)||"ArrayBuffer"==(e=Zp(t))||"SharedArrayBuffer"==e},Ef=function(t,e){return If(t)&&!Xp(e)&&e in t&&zp(+e)&&e>=0},Mf=function(t,e){return e=Yp(e),Ef(t,e)?Bp(2,t[e]):pf(t,e)},Tf=function(t,e,r){return e=Yp(e),!(Ef(t,e)&&Jp(r)&&Hp(r,"value"))||Hp(r,"get")||Hp(r,"set")||r.configurable||Hp(r,"writable")&&!r.writable||Hp(r,"enumerable")&&!r.enumerable?hf(t,e,r):(t[e]=r.value,t)};Pp?(vf||(sf.f=Mf,of.f=Tf,Of(Sf,"buffer"),Of(Sf,"byteOffset"),Of(Sf,"byteLength"),Of(Sf,"length")),Tp({target:"Object",stat:!0,forced:!vf},{getOwnPropertyDescriptor:Mf,defineProperty:Tf}),fl.exports=function(t,e,r){var n=t.match(/\d+/)[0]/8,o=t+(r?"Clamped":"")+"Array",s="get"+t,i="set"+t,a=Lp[o],l=a,c=l&&l.prototype,u={},h=function(t,e){hf(t,e,{get:function(){return function(t,e){var r=lf(t);return r.view[s](e*n+r.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,o){var s=lf(t);r&&(o=(o=ff(o))<0?0:o>255?255:255&o),s.view[i](e*n+s.byteOffset,o,!0)}(this,e,t)},enumerable:!0})};vf?Dp&&(l=e((function(t,e,r,o){return _p(t,c),af(Jp(e)?Rf(e)?void 0!==o?new a(e,Gp(r,n),o):void 0!==r?new a(e,Gp(r,n)):new a(e):If(e)?Af(l,e):Np(tf,l,e):new a(Vp(e)),t,l)})),$p&&$p(l,bf),ef(Qp(a),(function(t){t in l||jp(l,t,a[t])})),l.prototype=c):(l=e((function(t,e,r,o){_p(t,c);var s,i,a,u=0,p=0;if(Jp(e)){if(!Rf(e))return If(e)?Af(l,e):Np(tf,l,e);s=e,p=Gp(r,n);var f=e.byteLength;if(void 0===o){if(f%n)throw df(kf);if((i=f-p)<0)throw df(kf)}else if((i=Wp(o)*n)+p>f)throw df(kf);a=i/n}else a=Vp(e),s=new mf(i=a*n);for(cf(t,{buffer:s,byteOffset:p,byteLength:i,length:a,view:new yf(s)});u<a;)h(t,u++)})),$p&&$p(l,bf),c=l.prototype=Kp(Sf)),c.constructor!==l&&jp(c,"constructor",l),uf(c).TypedArrayConstructor=l,wf&&jp(c,wf,o);var p=l!=a;u[o]=l,Tp({global:!0,constructor:!0,forced:p,sham:!vf},u),xf in l||jp(l,xf,n),xf in c||jp(c,xf,n),rf(o)}):fl.exports=function(){};var Lf=fl.exports;Lf("Float32",(function(t){return function(e,r,n){return t(this,e,r,n)}})),Lf("Float64",(function(t){return function(e,r,n){return t(this,e,r,n)}})),Lf("Int8",(function(t){return function(e,r,n){return t(this,e,r,n)}})),Lf("Int16",(function(t){return function(e,r,n){return t(this,e,r,n)}})),Lf("Int32",(function(t){return function(e,r,n){return t(this,e,r,n)}})),Lf("Uint8",(function(t){return function(e,r,n){return t(this,e,r,n)}})),Lf("Uint8",(function(t){return function(e,r,n){return t(this,e,r,n)}}),!0),Lf("Uint16",(function(t){return function(e,r,n){return t(this,e,r,n)}})),Lf("Uint32",(function(t){return function(e,r,n){return t(this,e,r,n)}}));var Nf=dn,Pf=on,Df=mc.aTypedArray;(0,mc.exportTypedArrayMethod)("at",(function(t){var e=Df(this),r=Nf(e),n=Pf(t),o=n>=0?n:r+n;return o<0||o>=r?void 0:e[o]}));var Ff=Wc,Uf=tp,_f=Lo,Bf=h,jf=i,zf=mc.aTypedArray,Wf=mc.exportTypedArrayMethod,Vf=I("".slice);Wf("fill",(function(t){var e=arguments.length;zf(this);var r="Big"===Vf(_f(this),0,3)?Uf(t):+t;return Bf(Ff,this,r,e>1?arguments[1]:void 0,e>2?arguments[2]:void 0)}),jf((function(){var t=0;return new Int8Array(2).fill({valueOf:function(){return t++}}),1!==t})));var Gf=dh,Yf=L,Hf=Bt,Zf=dn,Jf=function(t){var e=1==t;return function(r,n,o){for(var s,i=Hf(r),a=Yf(i),l=Gf(n,o),c=Zf(a);c-- >0;)if(l(s=a[c],c,i))switch(t){case 0:return s;case 1:return c}return e?-1:void 0}},Xf={findLast:Jf(0),findLastIndex:Jf(1)},Kf=Xf.findLast,qf=mc.aTypedArray;(0,mc.exportTypedArrayMethod)("findLast",(function(t){return Kf(qf(this),t,arguments.length>1?arguments[1]:void 0)}));var $f=Xf.findLastIndex,Qf=mc.aTypedArray;(0,mc.exportTypedArrayMethod)("findLastIndex",(function(t){return $f(Qf(this),t,arguments.length>1?arguments[1]:void 0)})),(0,mc.exportTypedArrayStaticMethod)("from",pp,Cc);var td=o,ed=h,rd=mc,nd=dn,od=uh,sd=Bt,id=i,ad=td.RangeError,ld=td.Int8Array,cd=ld&&ld.prototype,ud=cd&&cd.set,hd=rd.aTypedArray,pd=rd.exportTypedArrayMethod,fd=!id((function(){var t=new Uint8ClampedArray(2);return ed(ud,t,{length:1,0:3},1),3!==t[1]})),dd=fd&&rd.NATIVE_ARRAY_BUFFER_VIEWS&&id((function(){var t=new ld(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));pd("set",(function(t){hd(this);var e=od(arguments.length>1?arguments[1]:void 0,1),r=sd(t);if(fd)return ed(ud,this,r,e);var n=this.length,o=nd(r),s=0;if(o+e>n)throw ad("Wrong length");for(;s<o;)this[e+s]=r[s++]}),!fd||dd);var md=$c,gd=Math.floor,yd=function(t,e){var r=t.length,n=gd(r/2);return r<8?vd(t,e):wd(t,yd(md(t,0,n),e),yd(md(t,n),e),e)},vd=function(t,e){for(var r,n,o=t.length,s=1;s<o;){for(n=s,r=t[s];n&&e(t[n-1],r)>0;)t[n]=t[--n];n!==s++&&(t[n]=r)}return t},wd=function(t,e,r,n){for(var o=e.length,s=r.length,i=0,a=0;i<o||a<s;)t[i+a]=i<o&&a<s?n(e[i],r[a])<=0?e[i++]:r[a++]:i<o?e[i++]:r[a++];return t},bd=yd,Sd=q.match(/firefox\/(\d+)/i),Cd=!!Sd&&+Sd[1],Id=/MSIE|Trident/.test(q),xd=q.match(/AppleWebKit\/(\d+)\./),kd=!!xd&&+xd[1],Ad=la,Od=i,Rd=bt,Ed=bd,Md=Cd,Td=Id,Ld=ot,Nd=kd,Pd=mc.aTypedArray,Dd=mc.exportTypedArrayMethod,Fd=o.Uint16Array,Ud=Fd&&Ad(Fd.prototype.sort),_d=!(!Ud||Od((function(){Ud(new Fd(2),null)}))&&Od((function(){Ud(new Fd(2),{})}))),Bd=!!Ud&&!Od((function(){if(Ld)return Ld<74;if(Md)return Md<67;if(Td)return!0;if(Nd)return Nd<602;var t,e,r=new Fd(516),n=Array(516);for(t=0;t<516;t++)e=t%4,r[t]=515-t,n[t]=t-2*e+3;for(Ud(r,(function(t,e){return(t/4|0)-(e/4|0)})),t=0;t<516;t++)if(r[t]!==n[t])return!0}));Dd("sort",(function(t){return void 0!==t&&Rd(t),Bd?Ud(this,t):Ed(Pd(this),function(t){return function(e,r){return void 0!==t?+t(e,r)||0:r!=r?-1:e!=e?1:0===e&&0===r?1/e>0&&1/r<0?1:-1:e>r}}(t))}),!Bd||_d);var jd=dn,zd=function(t,e){for(var r=jd(t),n=new e(r),o=0;o<r;o++)n[o]=t[r-o-1];return n},Wd=mc.aTypedArray,Vd=mc.getTypedArrayConstructor;(0,mc.exportTypedArrayMethod)("toReversed",(function(){return zd(Wd(this),Vd(this))}));var Gd=dn,Yd=bt,Hd=function(t,e){for(var r=0,n=Gd(e),o=new t(n);n>r;)o[r]=e[r++];return o},Zd=mc.aTypedArray,Jd=mc.getTypedArrayConstructor,Xd=mc.exportTypedArrayMethod,Kd=I(mc.TypedArrayPrototype.sort);Xd("toSorted",(function(t){void 0!==t&&Yd(t);var e=Zd(this),r=Hd(Jd(e),e);return Kd(r,t)}));var qd=dn,$d=on,Qd=RangeError,tm=function(t,e,r,n){var o=qd(t),s=$d(r),i=s<0?o+s:s;if(i>=o||i<0)throw Qd("Incorrect index");for(var a=new e(o),l=0;l<o;l++)a[l]=l===i?n:t[l];return a},em=qh,rm=on,nm=tp,om=mc.aTypedArray,sm=mc.getTypedArrayConstructor,im=mc.exportTypedArrayMethod,am=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(t){return 8===t}}();im("with",{with:function(t,e){var r=om(this),n=rm(t),o=em(r)?nm(e):+e;return tm(r,sm(r),n,o)}}.with,!am);var lm=O,cm=TypeError,um=ho(ArrayBuffer.prototype,"byteLength","get")||function(t){if("ArrayBuffer"!=lm(t))throw cm("ArrayBuffer expected");return t.byteLength},hm=um,pm=I(ArrayBuffer.prototype.slice),fm=function(t){if(0!==hm(t))return!1;try{return pm(t,0,0),!1}catch(t){return!0}},dm=a,mm=xl,gm=fm,ym=ArrayBuffer.prototype;dm&&!("detached"in ym)&&mm(ym,"detached",{configurable:!0,get:function(){return gm(this)}});var vm="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,wm=!vm&&!Bs&&"object"==typeof window&&"object"==typeof document,bm=i,Sm=ot,Cm=wm,Im=vm,xm=Bs,km=o.structuredClone,Am=!!km&&!bm((function(){if(Im&&Sm>92||xm&&Sm>94||Cm&&Sm>97)return!1;var t=new ArrayBuffer(8),e=km(t,{transfer:[t]});return 0!=t.byteLength||8!=e.byteLength})),Om=o,Rm=I,Em=ho,Mm=Tc,Tm=fm,Lm=um,Nm=Am,Pm=Om.TypeError,Dm=Om.structuredClone,Fm=Om.ArrayBuffer,Um=Om.DataView,_m=Math.min,Bm=Fm.prototype,jm=Um.prototype,zm=Rm(Bm.slice),Wm=Em(Bm,"resizable","get"),Vm=Em(Bm,"maxByteLength","get"),Gm=Rm(jm.getInt8),Ym=Rm(jm.setInt8),Hm=Nm&&function(t,e,r){var n=Lm(t),o=void 0===e?n:_m(Mm(e),n),s=!Wm||!Wm(t);if(Tm(t))throw Pm("ArrayBuffer is detached");var i=Dm(t,{transfer:[t]});if(n==o&&(r||s))return i;if(!r||s)return zm(i,0,o);for(var a=new Fm(o,Vm&&{maxByteLength:Vm(i)}),l=new Um(i),c=new Um(a),u=0;u<o;u++)Ym(c,u,Gm(l,u));return a},Zm=Hm;Zm&&no({target:"ArrayBuffer",proto:!0},{transfer:function(){return Zm(this,arguments.length?arguments[0]:void 0,!0)}});var Jm=Hm;Jm&&no({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return Jm(this,arguments.length?arguments[0]:void 0,!1)}});var Xm=I,Km=Set.prototype,qm={Set:Set,add:Xm(Km.add),has:Xm(Km.has),remove:Xm(Km.delete),proto:Km},$m=qm.has,Qm=function(t){return $m(t),t},tg=h,eg=function(t,e,r){for(var n,o,s=r||t.next;!(n=tg(s,t)).done;)if(void 0!==(o=e(n.value)))return o},rg=I,ng=eg,og=qm.Set,sg=qm.proto,ig=rg(sg.forEach),ag=rg(sg.keys),lg=ag(new og).next,cg=function(t,e,r){return r?ng(ag(t),e,lg):ig(t,e)},ug=cg,hg=qm.Set,pg=qm.add,fg=function(t){var e=new hg;return ug(t,(function(t){pg(e,t)})),e},dg=ho(qm.proto,"size","get")||function(t){return t.size},mg=bt,gg=Pe,yg=h,vg=on,wg=TypeError,bg=Math.max,Sg=function(t,e,r,n){this.set=t,this.size=e,this.has=r,this.keys=n};Sg.prototype={getIterator:function(){return gg(yg(this.keys,this.set))},includes:function(t){return yg(this.has,this.set,t)}};var Cg=function(t){gg(t);var e=+t.size;if(e!=e)throw wg("Invalid size");return new Sg(t,bg(vg(e),0),mg(t.has),mg(t.keys))},Ig=Qm,xg=fg,kg=dg,Ag=Cg,Og=cg,Rg=eg,Eg=qm.has,Mg=qm.remove,Tg=X,Lg=function(t){try{return(new(Tg("Set")))[t]({size:0,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}),!0}catch(t){return!1}},Ng=function(t){var e=Ig(this),r=Ag(t),n=xg(e);return kg(e)<=r.size?Og(e,(function(t){r.includes(t)&&Mg(n,t)})):Rg(r.getIterator(),(function(t){Eg(e,t)&&Mg(n,t)})),n};no({target:"Set",proto:!0,real:!0,forced:!Lg("difference")},{difference:Ng});var Pg=Qm,Dg=dg,Fg=Cg,Ug=cg,_g=eg,Bg=qm.Set,jg=qm.add,zg=qm.has,Wg=i,Vg=function(t){var e=Pg(this),r=Fg(t),n=new Bg;return Dg(e)>r.size?_g(r.getIterator(),(function(t){zg(e,t)&&jg(n,t)})):Ug(e,(function(t){r.includes(t)&&jg(n,t)})),n};no({target:"Set",proto:!0,real:!0,forced:!Lg("intersection")||Wg((function(){return"3,2"!=Array.from(new Set([1,2,3]).intersection(new Set([3,2])))}))},{intersection:Vg});var Gg=h,Yg=Pe,Hg=It,Zg=function(t,e,r){var n,o;Yg(t);try{if(!(n=Hg(t,"return"))){if("throw"===e)throw r;return r}n=Gg(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return Yg(n),r},Jg=Qm,Xg=qm.has,Kg=dg,qg=Cg,$g=cg,Qg=eg,ty=Zg,ey=function(t){var e=Jg(this),r=qg(t);if(Kg(e)<=r.size)return!1!==$g(e,(function(t){if(r.includes(t))return!1}),!0);var n=r.getIterator();return!1!==Qg(n,(function(t){if(Xg(e,t))return ty(n,"normal",!1)}))};no({target:"Set",proto:!0,real:!0,forced:!Lg("isDisjointFrom")},{isDisjointFrom:ey});var ry=Qm,ny=dg,oy=cg,sy=Cg,iy=function(t){var e=ry(this),r=sy(t);return!(ny(e)>r.size)&&!1!==oy(e,(function(t){if(!r.includes(t))return!1}),!0)};no({target:"Set",proto:!0,real:!0,forced:!Lg("isSubsetOf")},{isSubsetOf:iy});var ay=Qm,ly=qm.has,cy=dg,uy=Cg,hy=eg,py=Zg,fy=function(t){var e=ay(this),r=uy(t);if(cy(e)<r.size)return!1;var n=r.getIterator();return!1!==hy(n,(function(t){if(!ly(e,t))return py(n,"normal",!1)}))};no({target:"Set",proto:!0,real:!0,forced:!Lg("isSupersetOf")},{isSupersetOf:fy});var dy=Qm,my=fg,gy=Cg,yy=eg,vy=qm.add,wy=qm.has,by=qm.remove,Sy=function(t){var e=dy(this),r=gy(t).getIterator(),n=my(e);return yy(r,(function(t){wy(e,t)?by(n,t):vy(n,t)})),n};no({target:"Set",proto:!0,real:!0,forced:!Lg("symmetricDifference")},{symmetricDifference:Sy});var Cy=Qm,Iy=qm.add,xy=fg,ky=Cg,Ay=eg,Oy=function(t){var e=Cy(this),r=ky(t).getIterator(),n=xy(e);return Ay(r,(function(t){Iy(n,t)})),n};no({target:"Set",proto:!0,real:!0,forced:!Lg("union")},{union:Oy});var Ry=ye("span").classList,Ey=Ry&&Ry.constructor&&Ry.constructor.prototype,My=Ey===Object.prototype?void 0:Ey,Ty=re,Ly=Ni,Ny=Ee.f,Py=Ty("unscopables"),Dy=Array.prototype;null==Dy[Py]&&Ny(Dy,Py,{configurable:!0,value:Ly(null)});var Fy,Uy,_y,By=i,jy=V,zy=H,Wy=Nl,Vy=$r,Gy=re("iterator"),Yy=!1;[].keys&&("next"in(_y=[].keys())?(Uy=Wy(Wy(_y)))!==Object.prototype&&(Fy=Uy):Yy=!0);var Hy=!zy(Fy)||By((function(){var t={};return Fy[Gy].call(t)!==t}));Hy&&(Fy={}),jy(Fy[Gy])||Vy(Fy,Gy,(function(){return this}));var Zy={IteratorPrototype:Fy,BUGGY_SAFARI_ITERATORS:Yy},Jy=Zy.IteratorPrototype,Xy=Ni,Ky=v,qy=qs,$y=Lh,Qy=function(){return this},tv=function(t,e,r,n){var o=e+" Iterator";return t.prototype=Xy(Jy,{next:Ky(+!n,r)}),qy(t,o,!1),$y[o]=Qy,t},ev=no,rv=h,nv=V,ov=tv,sv=Nl,iv=wo,av=qs,lv=Je,cv=$r,uv=Lh,hv=er.PROPER,pv=er.CONFIGURABLE,fv=Zy.IteratorPrototype,dv=Zy.BUGGY_SAFARI_ITERATORS,mv=re("iterator"),gv="keys",yv="values",vv="entries",wv=function(){return this},bv=function(t,e,r,n,o,s,i){ov(r,e,n);var a,l,c,u=function(t){if(t===o&&m)return m;if(!dv&&t in f)return f[t];switch(t){case gv:case yv:case vv:return function(){return new r(this,t)}}return function(){return new r(this)}},h=e+" Iterator",p=!1,f=t.prototype,d=f[mv]||f["@@iterator"]||o&&f[o],m=!dv&&d||u(o),g="Array"==e&&f.entries||d;if(g&&(a=sv(g.call(new t)))!==Object.prototype&&a.next&&(sv(a)!==fv&&(iv?iv(a,fv):nv(a[mv])||cv(a,mv,wv)),av(a,h,!0)),hv&&o==yv&&d&&d.name!==yv&&(pv?lv(f,"name",yv):(p=!0,m=function(){return rv(d,this)})),o)if(l={values:u(yv),keys:s?m:u(gv),entries:u(vv)},i)for(c in l)(dv||p||!(c in f))&&cv(f,c,l[c]);else ev({target:e,proto:!0,forced:dv||p},l);return f[mv]!==m&&cv(f,mv,m,{name:o}),uv[e]=m,l},Sv=function(t,e){return{value:t,done:e}},Cv=B,Iv=function(t){Dy[Py][t]=!0},xv=Lh,kv=Er,Av=Ee.f,Ov=bv,Rv=Sv,Ev=a,Mv="Array Iterator",Tv=kv.set,Lv=kv.getterFor(Mv),Nv=Ov(Array,"Array",(function(t,e){Tv(this,{type:Mv,target:Cv(t),index:0,kind:e})}),(function(){var t=Lv(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,Rv(void 0,!0)):Rv("keys"==r?n:"values"==r?e[n]:[n,e[n]],!1)}),"values"),Pv=xv.Arguments=xv.Array;if(Iv("keys"),Iv("values"),Iv("entries"),Ev&&"values"!==Pv.name)try{Av(Pv,"name",{value:"values"})}catch(t){}var Dv=o,Fv={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Uv=My,_v=Nv,Bv=Je,jv=re,zv=jv("iterator"),Wv=jv("toStringTag"),Vv=_v.values,Gv=function(t,e){if(t){if(t[zv]!==Vv)try{Bv(t,zv,Vv)}catch(e){t[zv]=Vv}if(t[Wv]||Bv(t,Wv,e),Fv[e])for(var r in _v)if(t[r]!==_v[r])try{Bv(t,r,_v[r])}catch(e){t[r]=_v[r]}}};for(var Yv in Fv)Gv(Dv[Yv]&&Dv[Yv].prototype,Yv);Gv(Uv,"DOMTokenList");var Hv=no,Zv=o,Jv=X,Xv=v,Kv=Ee.f,qv=Wt,$v=Oc,Qv=xo,tw=Uo,ew={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}},rw=Yo,nw=a,ow="DOMException",sw=Jv("Error"),iw=Jv(ow),aw=function(){$v(this,lw);var t=arguments.length,e=tw(t<1?void 0:arguments[0]),r=tw(t<2?void 0:arguments[1],"Error"),n=new iw(e,r),o=sw(e);return o.name=ow,Kv(n,"stack",Xv(1,rw(o.stack,1))),Qv(n,this,aw),n},lw=aw.prototype=iw.prototype,cw="stack"in sw(ow),uw="stack"in new iw(1,2),hw=iw&&nw&&Object.getOwnPropertyDescriptor(Zv,ow),pw=!(!hw||hw.writable&&hw.configurable),fw=cw&&!pw&&!uw;Hv({global:!0,constructor:!0,forced:fw},{DOMException:fw?aw:iw});var dw=Jv(ow),mw=dw.prototype;if(mw.constructor!==dw)for(var gw in Kv(mw,"constructor",Xv(1,dw)),ew)if(qv(ew,gw)){var yw=ew[gw],vw=yw.s;qv(dw,vw)||Kv(dw,vw,Xv(6,yw.c))}var ww=ka.charAt,bw=Do,Sw=Er,Cw=bv,Iw=Sv,xw="String Iterator",kw=Sw.set,Aw=Sw.getterFor(xw);Cw(String,"String",(function(t){kw(this,{type:xw,string:bw(t),index:0})}),(function(){var t,e=Aw(this),r=e.string,n=e.index;return n>=r.length?Iw(void 0,!0):(t=ww(r,n),e.index+=t.length,Iw(t,!1))}));var Ow=i,Rw=a,Ew=re("iterator"),Mw=!Ow((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,r="";return t.pathname="c%20d",e.forEach((function(t,n){e.delete("b"),r+=n+t})),!e.size&&!Rw||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[Ew]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),Tw=a,Lw=I,Nw=h,Pw=i,Dw=ci,Fw=En,Uw=p,_w=Bt,Bw=L,jw=Object.assign,zw=Object.defineProperty,Ww=Lw([].concat),Vw=!jw||Pw((function(){if(Tw&&1!==jw({b:1},jw(zw({},"a",{enumerable:!0,get:function(){zw(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=jw({},t)[r]||Dw(jw({},e)).join("")!=n}))?function(t,e){for(var r=_w(t),n=arguments.length,o=1,s=Fw.f,i=Uw.f;n>o;)for(var a,l=Bw(arguments[o++]),c=s?Ww(Dw(l),s(l)):Dw(l),u=c.length,h=0;u>h;)a=c[h++],Tw&&!Nw(i,l,a)||(r[a]=l[a]);return r}:jw,Gw=Pe,Yw=Zg,Hw=dh,Zw=h,Jw=Bt,Xw=function(t,e,r,n){try{return n?e(Gw(r)[0],r[1]):e(r)}catch(e){Yw(t,"throw",e)}},Kw=Xh,qw=Rh,$w=dn,Qw=Hc,tb=Yh,eb=_h,rb=Array,nb=I,ob=2147483647,sb=/[^\0-\u007E]/,ib=/[.\u3002\uFF0E\uFF61]/g,ab="Overflow: input needs wider integers to process",lb=RangeError,cb=nb(ib.exec),ub=Math.floor,hb=String.fromCharCode,pb=nb("".charCodeAt),fb=nb([].join),db=nb([].push),mb=nb("".replace),gb=nb("".split),yb=nb("".toLowerCase),vb=function(t){return t+22+75*(t<26)},wb=function(t,e,r){var n=0;for(t=r?ub(t/700):t>>1,t+=ub(t/e);t>455;)t=ub(t/35),n+=36;return ub(n+36*t/(t+38))},bb=function(t){var e=[];t=function(t){for(var e=[],r=0,n=t.length;r<n;){var o=pb(t,r++);if(o>=55296&&o<=56319&&r<n){var s=pb(t,r++);56320==(64512&s)?db(e,((1023&o)<<10)+(1023&s)+65536):(db(e,o),r--)}else db(e,o)}return e}(t);var r,n,o=t.length,s=128,i=0,a=72;for(r=0;r<t.length;r++)(n=t[r])<128&&db(e,hb(n));var l=e.length,c=l;for(l&&db(e,"-");c<o;){var u=ob;for(r=0;r<t.length;r++)(n=t[r])>=s&&n<u&&(u=n);var h=c+1;if(u-s>ub((ob-i)/h))throw lb(ab);for(i+=(u-s)*h,s=u,r=0;r<t.length;r++){if((n=t[r])<s&&++i>ob)throw lb(ab);if(n==s){for(var p=i,f=36;;){var d=f<=a?1:f>=a+26?26:f-a;if(p<d)break;var m=p-d,g=36-d;db(e,hb(vb(d+m%g))),p=ub(m/g),f+=36}db(e,hb(vb(p))),a=wb(i,h,c==l),i=0,c++}}i++,s++}return fb(e,"")},Sb=TypeError,Cb=function(t,e){if(t<e)throw Sb("Not enough arguments");return t},Ib=no,xb=o,kb=h,Ab=I,Ob=a,Rb=Mw,Eb=$r,Mb=xl,Tb=xc,Lb=qs,Nb=tv,Pb=Er,Db=Oc,Fb=V,Ub=Wt,_b=dh,Bb=Lo,jb=Pe,zb=H,Wb=Do,Vb=Ni,Gb=v,Yb=Yh,Hb=_h,Zb=Cb,Jb=bd,Xb=re("iterator"),Kb="URLSearchParams",qb=Kb+"Iterator",$b=Pb.set,Qb=Pb.getterFor(Kb),tS=Pb.getterFor(qb),eS=Object.getOwnPropertyDescriptor,rS=function(t){if(!Ob)return xb[t];var e=eS(xb,t);return e&&e.value},nS=rS("fetch"),oS=rS("Request"),sS=rS("Headers"),iS=oS&&oS.prototype,aS=sS&&sS.prototype,lS=xb.RegExp,cS=xb.TypeError,uS=xb.decodeURIComponent,hS=xb.encodeURIComponent,pS=Ab("".charAt),fS=Ab([].join),dS=Ab([].push),mS=Ab("".replace),gS=Ab([].shift),yS=Ab([].splice),vS=Ab("".split),wS=Ab("".slice),bS=/\+/g,SS=Array(4),CS=function(t){return SS[t-1]||(SS[t-1]=lS("((?:%[\\da-f]{2}){"+t+"})","gi"))},IS=function(t){try{return uS(t)}catch(e){return t}},xS=function(t){var e=mS(t,bS," "),r=4;try{return uS(e)}catch(t){for(;r;)e=mS(e,CS(r--),IS);return e}},kS=/[!'()~]|%20/g,AS={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},OS=function(t){return AS[t]},RS=function(t){return mS(hS(t),kS,OS)},ES=Nb((function(t,e){$b(this,{type:qb,iterator:Yb(Qb(t).entries),kind:e})}),"Iterator",(function(){var t=tS(this),e=t.kind,r=t.iterator.next(),n=r.value;return r.done||(r.value="keys"===e?n.key:"values"===e?n.value:[n.key,n.value]),r}),!0),MS=function(t){this.entries=[],this.url=null,void 0!==t&&(zb(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===pS(t,0)?wS(t,1):t:Wb(t)))};MS.prototype={type:Kb,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,r,n,o,s,i,a,l=Hb(t);if(l)for(r=(e=Yb(t,l)).next;!(n=kb(r,e)).done;){if(s=(o=Yb(jb(n.value))).next,(i=kb(s,o)).done||(a=kb(s,o)).done||!kb(s,o).done)throw cS("Expected sequence with length 2");dS(this.entries,{key:Wb(i.value),value:Wb(a.value)})}else for(var c in t)Ub(t,c)&&dS(this.entries,{key:c,value:Wb(t[c])})},parseQuery:function(t){if(t)for(var e,r,n=vS(t,"&"),o=0;o<n.length;)(e=n[o++]).length&&(r=vS(e,"="),dS(this.entries,{key:xS(gS(r)),value:xS(fS(r,"="))}))},serialize:function(){for(var t,e=this.entries,r=[],n=0;n<e.length;)t=e[n++],dS(r,RS(t.key)+"="+RS(t.value));return fS(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var TS=function(){Db(this,LS);var t=$b(this,new MS(arguments.length>0?arguments[0]:void 0));Ob||(this.length=t.entries.length)},LS=TS.prototype;if(Tb(LS,{append:function(t,e){Zb(arguments.length,2);var r=Qb(this);dS(r.entries,{key:Wb(t),value:Wb(e)}),Ob||this.length++,r.updateURL()},delete:function(t){Zb(arguments.length,1);for(var e=Qb(this),r=e.entries,n=Wb(t),o=0;o<r.length;)r[o].key===n?yS(r,o,1):o++;Ob||(this.length=r.length),e.updateURL()},get:function(t){Zb(arguments.length,1);for(var e=Qb(this).entries,r=Wb(t),n=0;n<e.length;n++)if(e[n].key===r)return e[n].value;return null},getAll:function(t){Zb(arguments.length,1);for(var e=Qb(this).entries,r=Wb(t),n=[],o=0;o<e.length;o++)e[o].key===r&&dS(n,e[o].value);return n},has:function(t){Zb(arguments.length,1);for(var e=Qb(this).entries,r=Wb(t),n=0;n<e.length;)if(e[n++].key===r)return!0;return!1},set:function(t,e){Zb(arguments.length,1);for(var r,n=Qb(this),o=n.entries,s=!1,i=Wb(t),a=Wb(e),l=0;l<o.length;l++)(r=o[l]).key===i&&(s?yS(o,l--,1):(s=!0,r.value=a));s||dS(o,{key:i,value:a}),Ob||(this.length=o.length),n.updateURL()},sort:function(){var t=Qb(this);Jb(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,r=Qb(this).entries,n=_b(t,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((e=r[o++]).value,e.key,this)},keys:function(){return new ES(this,"keys")},values:function(){return new ES(this,"values")},entries:function(){return new ES(this,"entries")}},{enumerable:!0}),Eb(LS,Xb,LS.entries,{name:"entries"}),Eb(LS,"toString",(function(){return Qb(this).serialize()}),{enumerable:!0}),Ob&&Mb(LS,"size",{get:function(){return Qb(this).entries.length},configurable:!0,enumerable:!0}),Lb(TS,Kb),Ib({global:!0,constructor:!0,forced:!Rb},{URLSearchParams:TS}),!Rb&&Fb(sS)){var NS=Ab(aS.has),PS=Ab(aS.set),DS=function(t){if(zb(t)){var e,r=t.body;if(Bb(r)===Kb)return e=t.headers?new sS(t.headers):new sS,NS(e,"content-type")||PS(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),Vb(t,{body:Gb(0,Wb(r)),headers:Gb(0,e)})}return t};if(Fb(nS)&&Ib({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return nS(t,arguments.length>1?DS(arguments[1]):{})}}),Fb(oS)){var FS=function(t){return Db(this,iS),new oS(t,arguments.length>1?DS(arguments[1]):{})};iS.constructor=FS,FS.prototype=iS,Ib({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:FS})}}var US,_S=no,BS=a,jS=Mw,zS=o,WS=dh,VS=I,GS=$r,YS=xl,HS=Oc,ZS=Wt,JS=Vw,XS=function(t){var e=Jw(t),r=qw(this),n=arguments.length,o=n>1?arguments[1]:void 0,s=void 0!==o;s&&(o=Hw(o,n>2?arguments[2]:void 0));var i,a,l,c,u,h,p=eb(e),f=0;if(!p||this===rb&&Kw(p))for(i=$w(e),a=r?new this(i):rb(i);i>f;f++)h=s?o(e[f],f):e[f],Qw(a,f,h);else for(u=(c=tb(e,p)).next,a=r?new this:[];!(l=Zw(u,c)).done;f++)h=s?Xw(c,o,[l.value,f],!0):l.value,Qw(a,f,h);return a.length=f,a},KS=$c,qS=ka.codeAt,$S=function(t){var e,r,n=[],o=gb(mb(yb(t),ib,"."),".");for(e=0;e<o.length;e++)r=o[e],db(n,cb(sb,r)?"xn--"+bb(r):r);return fb(n,".")},QS=Do,tC=qs,eC=Cb,rC={URLSearchParams:TS,getState:Qb},nC=Er,oC=nC.set,sC=nC.getterFor("URL"),iC=rC.URLSearchParams,aC=rC.getState,lC=zS.URL,cC=zS.TypeError,uC=zS.parseInt,hC=Math.floor,pC=Math.pow,fC=VS("".charAt),dC=VS(/./.exec),mC=VS([].join),gC=VS(1..toString),yC=VS([].pop),vC=VS([].push),wC=VS("".replace),bC=VS([].shift),SC=VS("".split),CC=VS("".slice),IC=VS("".toLowerCase),xC=VS([].unshift),kC="Invalid scheme",AC="Invalid host",OC="Invalid port",RC=/[a-z]/i,EC=/[\d+-.a-z]/i,MC=/\d/,TC=/^0x/i,LC=/^[0-7]+$/,NC=/^\d+$/,PC=/^[\da-f]+$/i,DC=/[\0\t\n\r #%/:<>?@[\\\]^|]/,FC=/[\0\t\n\r #/:<>?@[\\\]^|]/,UC=/^[\u0000-\u0020]+/,_C=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,BC=/[\t\n\r]/g,jC=function(t){var e,r,n,o;if("number"==typeof t){for(e=[],r=0;r<4;r++)xC(e,t%256),t=hC(t/256);return mC(e,".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,r=1,n=null,o=0,s=0;s<8;s++)0!==t[s]?(o>r&&(e=n,r=o),n=null,o=0):(null===n&&(n=s),++o);return o>r&&(e=n,r=o),e}(t),r=0;r<8;r++)o&&0===t[r]||(o&&(o=!1),n===r?(e+=r?":":"::",o=!0):(e+=gC(t[r],16),r<7&&(e+=":")));return"["+e+"]"}return t},zC={},WC=JS({},zC,{" ":1,'"':1,"<":1,">":1,"`":1}),VC=JS({},WC,{"#":1,"?":1,"{":1,"}":1}),GC=JS({},VC,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),YC=function(t,e){var r=qS(t,0);return r>32&&r<127&&!ZS(e,t)?t:encodeURIComponent(t)},HC={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ZC=function(t,e){var r;return 2==t.length&&dC(RC,fC(t,0))&&(":"==(r=fC(t,1))||!e&&"|"==r)},JC=function(t){var e;return t.length>1&&ZC(CC(t,0,2))&&(2==t.length||"/"===(e=fC(t,2))||"\\"===e||"?"===e||"#"===e)},XC=function(t){return"."===t||"%2e"===IC(t)},KC={},qC={},$C={},QC={},tI={},eI={},rI={},nI={},oI={},sI={},iI={},aI={},lI={},cI={},uI={},hI={},pI={},fI={},dI={},mI={},gI={},yI=function(t,e,r){var n,o,s,i=QS(t);if(e){if(o=this.parse(i))throw cC(o);this.searchParams=null}else{if(void 0!==r&&(n=new yI(r,!0)),o=this.parse(i,null,n))throw cC(o);(s=aC(new iC)).bindURL(this),this.searchParams=s}};yI.prototype={type:"URL",parse:function(t,e,r){var n,o,s,i,a,l=this,c=e||KC,u=0,h="",p=!1,f=!1,d=!1;for(t=QS(t),e||(l.scheme="",l.username="",l.password="",l.host=null,l.port=null,l.path=[],l.query=null,l.fragment=null,l.cannotBeABaseURL=!1,t=wC(t,UC,""),t=wC(t,_C,"$1")),t=wC(t,BC,""),n=XS(t);u<=n.length;){switch(o=n[u],c){case KC:if(!o||!dC(RC,o)){if(e)return kC;c=$C;continue}h+=IC(o),c=qC;break;case qC:if(o&&(dC(EC,o)||"+"==o||"-"==o||"."==o))h+=IC(o);else{if(":"!=o){if(e)return kC;h="",c=$C,u=0;continue}if(e&&(l.isSpecial()!=ZS(HC,h)||"file"==h&&(l.includesCredentials()||null!==l.port)||"file"==l.scheme&&!l.host))return;if(l.scheme=h,e)return void(l.isSpecial()&&HC[l.scheme]==l.port&&(l.port=null));h="","file"==l.scheme?c=cI:l.isSpecial()&&r&&r.scheme==l.scheme?c=QC:l.isSpecial()?c=nI:"/"==n[u+1]?(c=tI,u++):(l.cannotBeABaseURL=!0,vC(l.path,""),c=dI)}break;case $C:if(!r||r.cannotBeABaseURL&&"#"!=o)return kC;if(r.cannotBeABaseURL&&"#"==o){l.scheme=r.scheme,l.path=KS(r.path),l.query=r.query,l.fragment="",l.cannotBeABaseURL=!0,c=gI;break}c="file"==r.scheme?cI:eI;continue;case QC:if("/"!=o||"/"!=n[u+1]){c=eI;continue}c=oI,u++;break;case tI:if("/"==o){c=sI;break}c=fI;continue;case eI:if(l.scheme=r.scheme,o==US)l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=KS(r.path),l.query=r.query;else if("/"==o||"\\"==o&&l.isSpecial())c=rI;else if("?"==o)l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=KS(r.path),l.query="",c=mI;else{if("#"!=o){l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=KS(r.path),l.path.length--,c=fI;continue}l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=KS(r.path),l.query=r.query,l.fragment="",c=gI}break;case rI:if(!l.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,c=fI;continue}c=sI}else c=oI;break;case nI:if(c=oI,"/"!=o||"/"!=fC(h,u+1))continue;u++;break;case oI:if("/"!=o&&"\\"!=o){c=sI;continue}break;case sI:if("@"==o){p&&(h="%40"+h),p=!0,s=XS(h);for(var m=0;m<s.length;m++){var g=s[m];if(":"!=g||d){var y=YC(g,GC);d?l.password+=y:l.username+=y}else d=!0}h=""}else if(o==US||"/"==o||"?"==o||"#"==o||"\\"==o&&l.isSpecial()){if(p&&""==h)return"Invalid authority";u-=XS(h).length+1,h="",c=iI}else h+=o;break;case iI:case aI:if(e&&"file"==l.scheme){c=hI;continue}if(":"!=o||f){if(o==US||"/"==o||"?"==o||"#"==o||"\\"==o&&l.isSpecial()){if(l.isSpecial()&&""==h)return AC;if(e&&""==h&&(l.includesCredentials()||null!==l.port))return;if(i=l.parseHost(h))return i;if(h="",c=pI,e)return;continue}"["==o?f=!0:"]"==o&&(f=!1),h+=o}else{if(""==h)return AC;if(i=l.parseHost(h))return i;if(h="",c=lI,e==aI)return}break;case lI:if(!dC(MC,o)){if(o==US||"/"==o||"?"==o||"#"==o||"\\"==o&&l.isSpecial()||e){if(""!=h){var v=uC(h,10);if(v>65535)return OC;l.port=l.isSpecial()&&v===HC[l.scheme]?null:v,h=""}if(e)return;c=pI;continue}return OC}h+=o;break;case cI:if(l.scheme="file","/"==o||"\\"==o)c=uI;else{if(!r||"file"!=r.scheme){c=fI;continue}if(o==US)l.host=r.host,l.path=KS(r.path),l.query=r.query;else if("?"==o)l.host=r.host,l.path=KS(r.path),l.query="",c=mI;else{if("#"!=o){JC(mC(KS(n,u),""))||(l.host=r.host,l.path=KS(r.path),l.shortenPath()),c=fI;continue}l.host=r.host,l.path=KS(r.path),l.query=r.query,l.fragment="",c=gI}}break;case uI:if("/"==o||"\\"==o){c=hI;break}r&&"file"==r.scheme&&!JC(mC(KS(n,u),""))&&(ZC(r.path[0],!0)?vC(l.path,r.path[0]):l.host=r.host),c=fI;continue;case hI:if(o==US||"/"==o||"\\"==o||"?"==o||"#"==o){if(!e&&ZC(h))c=fI;else if(""==h){if(l.host="",e)return;c=pI}else{if(i=l.parseHost(h))return i;if("localhost"==l.host&&(l.host=""),e)return;h="",c=pI}continue}h+=o;break;case pI:if(l.isSpecial()){if(c=fI,"/"!=o&&"\\"!=o)continue}else if(e||"?"!=o)if(e||"#"!=o){if(o!=US&&(c=fI,"/"!=o))continue}else l.fragment="",c=gI;else l.query="",c=mI;break;case fI:if(o==US||"/"==o||"\\"==o&&l.isSpecial()||!e&&("?"==o||"#"==o)){if(".."===(a=IC(a=h))||"%2e."===a||".%2e"===a||"%2e%2e"===a?(l.shortenPath(),"/"==o||"\\"==o&&l.isSpecial()||vC(l.path,"")):XC(h)?"/"==o||"\\"==o&&l.isSpecial()||vC(l.path,""):("file"==l.scheme&&!l.path.length&&ZC(h)&&(l.host&&(l.host=""),h=fC(h,0)+":"),vC(l.path,h)),h="","file"==l.scheme&&(o==US||"?"==o||"#"==o))for(;l.path.length>1&&""===l.path[0];)bC(l.path);"?"==o?(l.query="",c=mI):"#"==o&&(l.fragment="",c=gI)}else h+=YC(o,VC);break;case dI:"?"==o?(l.query="",c=mI):"#"==o?(l.fragment="",c=gI):o!=US&&(l.path[0]+=YC(o,zC));break;case mI:e||"#"!=o?o!=US&&("'"==o&&l.isSpecial()?l.query+="%27":l.query+="#"==o?"%23":YC(o,zC)):(l.fragment="",c=gI);break;case gI:o!=US&&(l.fragment+=YC(o,WC))}u++}},parseHost:function(t){var e,r,n;if("["==fC(t,0)){if("]"!=fC(t,t.length-1))return AC;if(e=function(t){var e,r,n,o,s,i,a,l=[0,0,0,0,0,0,0,0],c=0,u=null,h=0,p=function(){return fC(t,h)};if(":"==p()){if(":"!=fC(t,1))return;h+=2,u=++c}for(;p();){if(8==c)return;if(":"!=p()){for(e=r=0;r<4&&dC(PC,p());)e=16*e+uC(p(),16),h++,r++;if("."==p()){if(0==r)return;if(h-=r,c>6)return;for(n=0;p();){if(o=null,n>0){if(!("."==p()&&n<4))return;h++}if(!dC(MC,p()))return;for(;dC(MC,p());){if(s=uC(p(),10),null===o)o=s;else{if(0==o)return;o=10*o+s}if(o>255)return;h++}l[c]=256*l[c]+o,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==p()){if(h++,!p())return}else if(p())return;l[c++]=e}else{if(null!==u)return;h++,u=++c}}if(null!==u)for(i=c-u,c=7;0!=c&&i>0;)a=l[c],l[c--]=l[u+i-1],l[u+--i]=a;else if(8!=c)return;return l}(CC(t,1,-1)),!e)return AC;this.host=e}else if(this.isSpecial()){if(t=$S(t),dC(DC,t))return AC;if(e=function(t){var e,r,n,o,s,i,a,l=SC(t,".");if(l.length&&""==l[l.length-1]&&l.length--,(e=l.length)>4)return t;for(r=[],n=0;n<e;n++){if(""==(o=l[n]))return t;if(s=10,o.length>1&&"0"==fC(o,0)&&(s=dC(TC,o)?16:8,o=CC(o,8==s?1:2)),""===o)i=0;else{if(!dC(10==s?NC:8==s?LC:PC,o))return t;i=uC(o,s)}vC(r,i)}for(n=0;n<e;n++)if(i=r[n],n==e-1){if(i>=pC(256,5-e))return null}else if(i>255)return null;for(a=yC(r),n=0;n<r.length;n++)a+=r[n]*pC(256,3-n);return a}(t),null===e)return AC;this.host=e}else{if(dC(FC,t))return AC;for(e="",r=XS(t),n=0;n<r.length;n++)e+=YC(r[n],zC);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return ZS(HC,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"==this.scheme&&1==e&&ZC(t[0],!0)||t.length--},serialize:function(){var t=this,e=t.scheme,r=t.username,n=t.password,o=t.host,s=t.port,i=t.path,a=t.query,l=t.fragment,c=e+":";return null!==o?(c+="//",t.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=jC(o),null!==s&&(c+=":"+s)):"file"==e&&(c+="//"),c+=t.cannotBeABaseURL?i[0]:i.length?"/"+mC(i,"/"):"",null!==a&&(c+="?"+a),null!==l&&(c+="#"+l),c},setHref:function(t){var e=this.parse(t);if(e)throw cC(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"==t)try{return new vI(t.path[0]).origin}catch(t){return"null"}return"file"!=t&&this.isSpecial()?t+"://"+jC(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(QS(t)+":",KC)},getUsername:function(){return this.username},setUsername:function(t){var e=XS(QS(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<e.length;r++)this.username+=YC(e[r],GC)}},getPassword:function(){return this.password},setPassword:function(t){var e=XS(QS(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<e.length;r++)this.password+=YC(e[r],GC)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?jC(t):jC(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,iI)},getHostname:function(){var t=this.host;return null===t?"":jC(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,aI)},getPort:function(){var t=this.port;return null===t?"":QS(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""==(t=QS(t))?this.port=null:this.parse(t,lI))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+mC(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,pI))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""==(t=QS(t))?this.query=null:("?"==fC(t,0)&&(t=CC(t,1)),this.query="",this.parse(t,mI)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){""!=(t=QS(t))?("#"==fC(t,0)&&(t=CC(t,1)),this.fragment="",this.parse(t,gI)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var vI=function(t){var e=HS(this,wI),r=eC(arguments.length,1)>1?arguments[1]:void 0,n=oC(e,new yI(t,!1,r));BS||(e.href=n.serialize(),e.origin=n.getOrigin(),e.protocol=n.getProtocol(),e.username=n.getUsername(),e.password=n.getPassword(),e.host=n.getHost(),e.hostname=n.getHostname(),e.port=n.getPort(),e.pathname=n.getPathname(),e.search=n.getSearch(),e.searchParams=n.getSearchParams(),e.hash=n.getHash())},wI=vI.prototype,bI=function(t,e){return{get:function(){return sC(this)[t]()},set:e&&function(t){return sC(this)[e](t)},configurable:!0,enumerable:!0}};if(BS&&(YS(wI,"href",bI("serialize","setHref")),YS(wI,"origin",bI("getOrigin")),YS(wI,"protocol",bI("getProtocol","setProtocol")),YS(wI,"username",bI("getUsername","setUsername")),YS(wI,"password",bI("getPassword","setPassword")),YS(wI,"host",bI("getHost","setHost")),YS(wI,"hostname",bI("getHostname","setHostname")),YS(wI,"port",bI("getPort","setPort")),YS(wI,"pathname",bI("getPathname","setPathname")),YS(wI,"search",bI("getSearch","setSearch")),YS(wI,"searchParams",bI("getSearchParams")),YS(wI,"hash",bI("getHash","setHash"))),GS(wI,"toJSON",(function(){return sC(this).serialize()}),{enumerable:!0}),GS(wI,"toString",(function(){return sC(this).serialize()}),{enumerable:!0}),lC){var SI=lC.createObjectURL,CI=lC.revokeObjectURL;SI&&GS(vI,"createObjectURL",WS(SI,lC)),CI&&GS(vI,"revokeObjectURL",WS(CI,lC))}tC(vI,"URL"),_S({global:!0,constructor:!0,forced:!jS,sham:!BS},{URL:vI});var II=h;no({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return II(URL.prototype.toString,this)}});var xI=a,kI=I,AI=xl,OI=URLSearchParams.prototype,RI=kI(OI.forEach);xI&&!("size"in OI)&&AI(OI,"size",{get:function(){var t=0;return RI(this,(function(){t++})),t},configurable:!0,enumerable:!0});var EI,MI=Object.defineProperty,TI=(t,e,r)=>((t,e,r)=>e in t?MI(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r)(t,"symbol"!=typeof e?e+"":e,r),LI=Object.defineProperty,NI=(t,e,r)=>((t,e,r)=>e in t?LI(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r)(t,"symbol"!=typeof e?e+"":e,r),PI=(t=>(t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t))(PI||{});const DI={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},FI={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},UI={},_I=()=>!!globalThis.Zone;function BI(t){if(UI[t])return UI[t];const e=globalThis[t],r=e.prototype,n=t in DI?DI[t]:void 0,o=Boolean(n&&n.every((t=>{var e,n;return Boolean(null==(n=null==(e=Object.getOwnPropertyDescriptor(r,t))?void 0:e.get)?void 0:n.toString().includes("[native code]"))}))),s=t in FI?FI[t]:void 0,i=Boolean(s&&s.every((t=>{var e;return"function"==typeof r[t]&&(null==(e=r[t])?void 0:e.toString().includes("[native code]"))})));if(o&&i&&!_I())return UI[t]=e.prototype,e.prototype;try{const n=document.createElement("iframe");document.body.appendChild(n);const o=n.contentWindow;if(!o)return e.prototype;const s=o[t].prototype;return document.body.removeChild(n),s?UI[t]=s:r}catch{return r}}const jI={};function zI(t,e,r){var n;const o="".concat(t,".").concat(String(r));if(jI[o])return jI[o].call(e);const s=BI(t),i=null==(n=Object.getOwnPropertyDescriptor(s,r))?void 0:n.get;return i?(jI[o]=i,i.call(e)):e[r]}const WI={};function VI(t,e,r){const n="".concat(t,".").concat(String(r));if(WI[n])return WI[n].bind(e);const o=BI(t)[r];return"function"!=typeof o?e[r]:(WI[n]=o,o.bind(e))}const GI={ownerDocument:function(t){return zI("Node",t,"ownerDocument")},childNodes:function(t){return zI("Node",t,"childNodes")},parentNode:function(t){return zI("Node",t,"parentNode")},parentElement:function(t){return zI("Node",t,"parentElement")},textContent:function(t){return zI("Node",t,"textContent")},contains:function(t,e){return VI("Node",t,"contains")(e)},getRootNode:function(t){return VI("Node",t,"getRootNode")()},host:function(t){return t&&"host"in t?zI("ShadowRoot",t,"host"):null},styleSheets:function(t){return t.styleSheets},shadowRoot:function(t){return t&&"shadowRoot"in t?zI("Element",t,"shadowRoot"):null},querySelector:function(t,e){return zI("Element",t,"querySelector")(e)},querySelectorAll:function(t,e){return zI("Element",t,"querySelectorAll")(e)},mutationObserver:function(){return BI("MutationObserver").constructor},patch:function(t,e,r){try{if(!(e in t))return()=>{};const n=t[e],o=r(n);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:n}})),t[e]=o,()=>{t[e]=n}}catch{return()=>{}}}};function YI(t){return t.nodeType===t.ELEMENT_NODE}function HI(t){const e=t&&"host"in t&&"mode"in t&&GI.host(t)||null;return Boolean(e&&"shadowRoot"in e&&GI.shadowRoot(e)===t)}function ZI(t){return"[object ShadowRoot]"===Object.prototype.toString.call(t)}function JI(t){try{const r=t.rules||t.cssRules;if(!r)return null;let n=t.href;!n&&t.ownerNode&&(n=t.ownerNode.baseURI);const o=Array.from(r,(t=>XI(t,n))).join("");return(e=o).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}catch(t){return null}var e}function XI(t,e){if(function(t){return"styleSheet"in t}(t)){let e;try{e=JI(t.styleSheet)||function(t){const{cssText:e}=t;if(e.split('"').length<3)return e;const r=["@import","url(".concat(JSON.stringify(t.href),")")];return""===t.layerName?r.push("layer"):t.layerName&&r.push("layer(".concat(t.layerName,")")),t.supportsText&&r.push("supports(".concat(t.supportsText,")")),t.media.length&&r.push(t.media.mediaText),r.join(" ")+";"}(t)}catch(r){e=t.cssText}return t.styleSheet.href?ix(e,t.styleSheet.href):e}{let r=t.cssText;return function(t){return"selectorText"in t}(t)&&t.selectorText.includes(":")&&(r=function(t){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(e,"$1\\$2")}(r)),e?ix(r,e):r}}class KI{constructor(){NI(this,"idNodeMap",new Map),NI(this,"nodeMetaMap",new WeakMap)}getId(t){var e;if(!t)return-1;const r=null==(e=this.getMeta(t))?void 0:e.id;return null!=r?r:-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){const e=this.getId(t);this.idNodeMap.delete(e),t.childNodes&&t.childNodes.forEach((t=>this.removeNodeFromMap(t)))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,e){const r=e.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,e)}replace(t,e){const r=this.getNode(t);if(r){const t=this.nodeMetaMap.get(r);t&&this.nodeMetaMap.set(e,t)}this.idNodeMap.set(t,e)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function qI(t){let{element:e,maskInputOptions:r,tagName:n,type:o,value:s,maskInputFn:i}=t,a=s||"";const l=o&&$I(o);return(r[n.toLowerCase()]||l&&r[l])&&(a=i?i(a,e):"*".repeat(a.length)),a}function $I(t){return t.toLowerCase()}const QI="__rrweb_original__";function tx(t){const e=t.type;return t.hasAttribute("data-rr-is-password")?"password":e?$I(e):null}function ex(t,e){var r;let n;try{n=new URL(t,null!=e?e:window.location.href)}catch(t){return null}const o=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!==(r=null==o?void 0:o[1])&&void 0!==r?r:null}const rx=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,nx=/^(?:[a-z+]+:)?\/\//i,ox=/^www\..*/i,sx=/^(data:)([^,]*),(.*)/i;function ix(t,e){return(t||"").replace(rx,((t,r,n,o,s,i)=>{const a=n||s||i,l=r||o||"";if(!a)return t;if(nx.test(a)||ox.test(a))return"url(".concat(l).concat(a).concat(l,")");if(sx.test(a))return"url(".concat(l).concat(a).concat(l,")");if("/"===a[0])return"url(".concat(l).concat(function(t){let e="";return e=t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0],e=e.split("?")[0],e}(e)+a).concat(l,")");const c=e.split("/"),u=a.split("/");c.pop();for(const t of u)"."!==t&&(".."===t?c.pop():c.push(t));return"url(".concat(l).concat(c.join("/")).concat(l,")")}))}function ax(t){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function lx(t,e){return function(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=Array.from(e.childNodes),o=[];let s=0;if(n.length>1&&t&&"string"==typeof t){let e=ax(t,r);const i=e.length/t.length;for(let a=1;a<n.length;a++)if(n[a].textContent&&"string"==typeof n[a].textContent){const l=ax(n[a].textContent,r),c=100;let u=3;for(;u<l.length&&(l[u].match(/[a-zA-Z0-9]/)||-1!==l.indexOf(l.substring(0,u),1));u++);for(;u<l.length;u++){let h=l.substring(0,u),p=e.split(h),f=-1;if(2===p.length)f=p[0].length;else if(p.length>2&&""===p[0]&&""!==n[a-1].textContent)f=e.indexOf(h,1);else if(1===p.length){if(h=h.substring(0,h.length-1),p=e.split(h),p.length<=1)return o.push(t),o;u=c+1}else u===l.length-1&&(f=e.indexOf(h));if(p.length>=2&&u>c){const t=n[a-1].textContent;if(t&&"string"==typeof t){const r=ax(t).length;f=e.indexOf(h,r)}-1===f&&(f=p[0].length)}if(-1!==f){let a=Math.floor(f/i);for(;a>0&&a<t.length;){if(s+=1,s>50*n.length)return o.push(t),o;const l=ax(t.substring(0,a),r);if(l.length===f){o.push(t.substring(0,a)),t=t.substring(a),e=e.substring(f);break}l.length<f?a+=Math.max(1,Math.floor((f-l.length)/i)):a-=Math.max(1,Math.floor((l.length-f)*i))}break}}}}return o.push(t),o}(t,e).join("/* rr_split */")}let cx=1;const ux=new RegExp("[^a-z0-9-_:]"),hx=-2;function px(){return cx++}let fx,dx;const mx=/^[^ \t\n\r\u000c]+/,gx=/^[, \t\n\r\u000c]+/;const yx=new WeakMap;function vx(t,e){return e&&""!==e.trim()?bx(t,e):e}function wx(t){return Boolean("svg"===t.tagName||t.ownerSVGElement)}function bx(t,e){let r=yx.get(t);if(r||(r=t.createElement("a"),yx.set(t,r)),e){if(e.startsWith("blob:")||e.startsWith("data:"))return e}else e="";return r.setAttribute("href",e),r.href}function Sx(t,e,r,n){return n?"src"===r||"href"===r&&("use"!==e||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]||"background"===r&&["table","td","th"].includes(e)?vx(t,n):"srcset"===r?function(t,e){if(""===e.trim())return e;let r=0;function n(t){let n;const o=t.exec(e.substring(r));return o?(n=o[0],r+=n.length,n):""}const o=[];for(;n(gx),!(r>=e.length);){let s=n(mx);if(","===s.slice(-1))s=vx(t,s.substring(0,s.length-1)),o.push(s);else{let n="";s=vx(t,s);let i=!1;for(;;){const t=e.charAt(r);if(""===t){o.push((s+n).trim());break}if(i)")"===t&&(i=!1);else{if(","===t){r+=1,o.push((s+n).trim());break}"("===t&&(i=!0)}n+=t,r+=1}}}return o.join(", ")}(t,n):"style"===r?ix(n,bx(t)):"object"===e&&"data"===r?vx(t,n):n:n}function Cx(t,e,r){return["video","audio"].includes(t)&&"autoplay"===e}function Ix(t,e,r){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return!!r&&Ix(GI.parentNode(t),e,r);for(let r=t.classList.length;r--;){const n=t.classList[r];if(e.test(n))return!0}return!!r&&Ix(GI.parentNode(t),e,r)}function xx(t,e,r,n){let o;if(YI(t)){if(o=t,!GI.childNodes(o).length)return!1}else{if(null===GI.parentElement(t))return!1;o=GI.parentElement(t)}try{if("string"==typeof e){if(n){if(o.closest(".".concat(e)))return!0}else if(o.classList.contains(e))return!0}else if(Ix(o,e,n))return!0;if(r)if(n){if(o.closest(r))return!0}else if(o.matches(r))return!0}catch(t){}return!1}function kx(t,e){const{doc:r,mirror:n,blockClass:o,blockSelector:s,needsMask:i,inlineStylesheet:a,maskInputOptions:l={},maskTextFn:c,maskInputFn:u,dataURLOptions:h={},inlineImages:p,recordCanvas:f,keepIframeSrcFn:d,newlyAddedElement:m=!1,cssCaptured:g=!1}=e,y=function(t,e){if(!e.hasNode(t))return;const r=e.getId(t);return 1===r?void 0:r}(r,n);switch(t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:PI.Document,childNodes:[],compatMode:t.compatMode}:{type:PI.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:PI.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:y};case t.ELEMENT_NODE:return function(t,e){const{doc:r,blockClass:n,blockSelector:o,inlineStylesheet:s,maskInputOptions:i={},maskInputFn:a,dataURLOptions:l={},inlineImages:c,recordCanvas:u,keepIframeSrcFn:h,newlyAddedElement:p=!1,rootId:f}=e,d=function(t,e,r){try{if("string"==typeof e){if(t.classList.contains(e))return!0}else for(let r=t.classList.length;r--;){const n=t.classList[r];if(e.test(n))return!0}if(r)return t.matches(r)}catch(t){}return!1}(t,n,o),m=function(t){if(t instanceof HTMLFormElement)return"form";const e=$I(t.tagName);return ux.test(e)?"div":e}(t);let g={};const y=t.attributes.length;for(let e=0;e<y;e++){const n=t.attributes[e];Cx(m,n.name,n.value)||(g[n.name]=Sx(r,m,$I(n.name),n.value))}if("link"===m&&s){const e=Array.from(r.styleSheets).find((e=>e.href===t.href));let n=null;e&&(n=JI(e)),n&&(delete g.rel,delete g.href,g._cssText=n)}if("style"===m&&t.sheet){let e=JI(t.sheet);e&&(t.childNodes.length>1&&(e=lx(e,t)),g._cssText=e)}if(["input","textarea","select"].includes(m)){const e=t.value,r=t.checked;"radio"!==g.type&&"checkbox"!==g.type&&"submit"!==g.type&&"button"!==g.type&&e?g.value=qI({element:t,type:tx(t),tagName:m,value:e,maskInputOptions:i,maskInputFn:a}):r&&(g.checked=r)}"option"===m&&(t.selected&&!i.select?g.selected=!0:delete g.selected);"dialog"===m&&t.open&&(g.rr_open_mode=t.matches("dialog:modal")?"modal":"non-modal");if("canvas"===m&&u)if("2d"===t.__context)(function(t){const e=t.getContext("2d");if(!e)return!0;for(let r=0;r<t.width;r+=50)for(let n=0;n<t.height;n+=50){const o=e.getImageData,s=QI in o?o[QI]:o;if(new Uint32Array(s.call(e,r,n,Math.min(50,t.width-r),Math.min(50,t.height-n)).data.buffer).some((t=>0!==t)))return!1}return!0})(t)||(g.rr_dataURL=t.toDataURL(l.type,l.quality));else if(!("__context"in t)){const e=t.toDataURL(l.type,l.quality),n=r.createElement("canvas");n.width=t.width,n.height=t.height;e!==n.toDataURL(l.type,l.quality)&&(g.rr_dataURL=e)}if("img"===m&&c){fx||(fx=r.createElement("canvas"),dx=fx.getContext("2d"));const e=t,n=e.currentSrc||e.getAttribute("src")||"<unknown-src>",o=e.crossOrigin,s=()=>{e.removeEventListener("load",s);try{fx.width=e.naturalWidth,fx.height=e.naturalHeight,dx.drawImage(e,0,0),g.rr_dataURL=fx.toDataURL(l.type,l.quality)}catch(t){if("anonymous"!==e.crossOrigin)return e.crossOrigin="anonymous",void(e.complete&&0!==e.naturalWidth?s():e.addEventListener("load",s));console.warn("Cannot inline img src=".concat(n,"! Error: ").concat(t))}"anonymous"===e.crossOrigin&&(o?g.crossOrigin=o:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?s():e.addEventListener("load",s)}if(["audio","video"].includes(m)){const e=g;e.rr_mediaState=t.paused?"paused":"played",e.rr_mediaCurrentTime=t.currentTime,e.rr_mediaPlaybackRate=t.playbackRate,e.rr_mediaMuted=t.muted,e.rr_mediaLoop=t.loop,e.rr_mediaVolume=t.volume}p||(t.scrollLeft&&(g.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(g.rr_scrollTop=t.scrollTop));if(d){const{width:e,height:r}=t.getBoundingClientRect();g={class:g.class,rr_width:"".concat(e,"px"),rr_height:"".concat(r,"px")}}"iframe"!==m||h(g.src)||(t.contentDocument||(g.rr_src=g.src),delete g.src);let v;try{customElements.get(m)&&(v=!0)}catch(t){}return{type:PI.Element,tagName:m,attributes:g,childNodes:[],isSVG:wx(t)||void 0,needBlock:d,rootId:f,isCustom:v}}(t,{doc:r,blockClass:o,blockSelector:s,inlineStylesheet:a,maskInputOptions:l,maskInputFn:u,dataURLOptions:h,inlineImages:p,recordCanvas:f,keepIframeSrcFn:d,newlyAddedElement:m,rootId:y});case t.TEXT_NODE:return function(t,e){const{needsMask:r,maskTextFn:n,rootId:o,cssCaptured:s}=e,i=GI.parentNode(t),a=i&&i.tagName;let l="";const c="STYLE"===a||void 0,u="SCRIPT"===a||void 0;u?l="SCRIPT_PLACEHOLDER":s||(l=GI.textContent(t),c&&l&&(l=ix(l,bx(e.doc))));!c&&!u&&l&&r&&(l=n?n(l,GI.parentElement(t)):l.replace(/[\S]/g,"*"));return{type:PI.Text,textContent:l||"",rootId:o}}(t,{doc:r,needsMask:i,maskTextFn:c,rootId:y,cssCaptured:g});case t.CDATA_SECTION_NODE:return{type:PI.CDATA,textContent:"",rootId:y};case t.COMMENT_NODE:return{type:PI.Comment,textContent:GI.textContent(t)||"",rootId:y};default:return!1}}function Ax(t){return null==t?"":t.toLowerCase()}function Ox(t){return!0===t||"all"===t?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===t,headMetaDescKeywords:"all"===t,headTitleMutations:"all"===t}:t||{}}function Rx(t,e){const{doc:r,mirror:n,blockClass:o,blockSelector:s,maskTextClass:i,maskTextSelector:a,skipChild:l=!1,inlineStylesheet:c=!0,maskInputOptions:u={},maskTextFn:h,maskInputFn:p,slimDOMOptions:f,dataURLOptions:d={},inlineImages:m=!1,recordCanvas:g=!1,onSerialize:y,onIframeLoad:v,iframeLoadTimeout:w=5e3,onStylesheetLoad:b,stylesheetLoadTimeout:S=5e3,keepIframeSrcFn:C=(()=>!1),newlyAddedElement:I=!1,cssCaptured:x=!1}=e;let{needsMask:k}=e,{preserveWhiteSpace:A=!0}=e;if(!k){k=xx(t,i,a,void 0===k)}const O=kx(t,{doc:r,mirror:n,blockClass:o,blockSelector:s,needsMask:k,inlineStylesheet:c,maskInputOptions:u,maskTextFn:h,maskInputFn:p,dataURLOptions:d,inlineImages:m,recordCanvas:g,keepIframeSrcFn:C,newlyAddedElement:I,cssCaptured:x});if(!O)return console.warn(t,"not serialized"),null;let R;R=n.hasNode(t)?n.getId(t):function(t,e){if(e.comment&&t.type===PI.Comment)return!0;if(t.type===PI.Element){if(e.script&&("script"===t.tagName||"link"===t.tagName&&("preload"===t.attributes.rel&&"script"===t.attributes.as||"modulepreload"===t.attributes.rel)||"link"===t.tagName&&"prefetch"===t.attributes.rel&&"string"==typeof t.attributes.href&&"js"===ex(t.attributes.href)))return!0;if(e.headFavicon&&("link"===t.tagName&&"shortcut icon"===t.attributes.rel||"meta"===t.tagName&&(Ax(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Ax(t.attributes.name)||"icon"===Ax(t.attributes.rel)||"apple-touch-icon"===Ax(t.attributes.rel)||"shortcut icon"===Ax(t.attributes.rel))))return!0;if("meta"===t.tagName){if(e.headMetaDescKeywords&&Ax(t.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(Ax(t.attributes.property).match(/^(og|twitter|fb):/)||Ax(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===Ax(t.attributes.name)))return!0;if(e.headMetaRobots&&("robots"===Ax(t.attributes.name)||"googlebot"===Ax(t.attributes.name)||"bingbot"===Ax(t.attributes.name)))return!0;if(e.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;if(e.headMetaAuthorship&&("author"===Ax(t.attributes.name)||"generator"===Ax(t.attributes.name)||"framework"===Ax(t.attributes.name)||"publisher"===Ax(t.attributes.name)||"progid"===Ax(t.attributes.name)||Ax(t.attributes.property).match(/^article:/)||Ax(t.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&("google-site-verification"===Ax(t.attributes.name)||"yandex-verification"===Ax(t.attributes.name)||"csrf-token"===Ax(t.attributes.name)||"p:domain_verify"===Ax(t.attributes.name)||"verify-v1"===Ax(t.attributes.name)||"verification"===Ax(t.attributes.name)||"shopify-checkout-api-token"===Ax(t.attributes.name)))return!0}}return!1}(O,f)||!A&&O.type===PI.Text&&!O.textContent.replace(/^\s+|\s+$/gm,"").length?hx:px();const E=Object.assign(O,{id:R});if(n.add(t,E),R===hx)return null;y&&y(t);let M=!l;if(E.type===PI.Element){M=M&&!E.needBlock,delete E.needBlock;const e=GI.shadowRoot(t);e&&ZI(e)&&(E.isShadowHost=!0)}if((E.type===PI.Document||E.type===PI.Element)&&M){f.headWhitespace&&E.type===PI.Element&&"head"===E.tagName&&(A=!1);const e={doc:r,mirror:n,blockClass:o,blockSelector:s,needsMask:k,maskTextClass:i,maskTextSelector:a,skipChild:l,inlineStylesheet:c,maskInputOptions:u,maskTextFn:h,maskInputFn:p,slimDOMOptions:f,dataURLOptions:d,inlineImages:m,recordCanvas:g,preserveWhiteSpace:A,onSerialize:y,onIframeLoad:v,iframeLoadTimeout:w,onStylesheetLoad:b,stylesheetLoadTimeout:S,keepIframeSrcFn:C,cssCaptured:!1};if(E.type===PI.Element&&"textarea"===E.tagName&&void 0!==E.attributes.value);else{E.type===PI.Element&&void 0!==E.attributes._cssText&&"string"==typeof E.attributes._cssText&&(e.cssCaptured=!0);for(const r of Array.from(GI.childNodes(t))){const t=Rx(r,e);t&&E.childNodes.push(t)}}let I=null;if(YI(t)&&(I=GI.shadowRoot(t)))for(const t of Array.from(GI.childNodes(I))){const r=Rx(t,e);r&&(ZI(I)&&(r.isShadow=!0),E.childNodes.push(r))}}const T=GI.parentNode(t);return T&&HI(T)&&ZI(T)&&(E.isShadow=!0),E.type===PI.Element&&"iframe"===E.tagName&&function(t,e,r){const n=t.contentWindow;if(!n)return;let o,s=!1;try{o=n.document.readyState}catch(t){return}if("complete"!==o){const n=setTimeout((()=>{s||(e(),s=!0)}),r);return void t.addEventListener("load",(()=>{clearTimeout(n),s=!0,e()}))}const i="about:blank";if(n.location.href!==i||t.src===i||""===t.src)return setTimeout(e,0),t.addEventListener("load",e);t.addEventListener("load",e)}(t,(()=>{const e=t.contentDocument;if(e&&v){const r=Rx(e,{doc:e,mirror:n,blockClass:o,blockSelector:s,needsMask:k,maskTextClass:i,maskTextSelector:a,skipChild:!1,inlineStylesheet:c,maskInputOptions:u,maskTextFn:h,maskInputFn:p,slimDOMOptions:f,dataURLOptions:d,inlineImages:m,recordCanvas:g,preserveWhiteSpace:A,onSerialize:y,onIframeLoad:v,iframeLoadTimeout:w,onStylesheetLoad:b,stylesheetLoadTimeout:S,keepIframeSrcFn:C});r&&v(t,r)}}),w),E.type===PI.Element&&"link"===E.tagName&&"string"==typeof E.attributes.rel&&("stylesheet"===E.attributes.rel||"preload"===E.attributes.rel&&"string"==typeof E.attributes.href&&"css"===ex(E.attributes.href))&&function(t,e,r){let n,o=!1;try{n=t.sheet}catch(t){return}if(n)return;const s=setTimeout((()=>{o||(e(),o=!0)}),r);t.addEventListener("load",(()=>{clearTimeout(s),o=!0,e()}))}(t,(()=>{if(b){const e=Rx(t,{doc:r,mirror:n,blockClass:o,blockSelector:s,needsMask:k,maskTextClass:i,maskTextSelector:a,skipChild:!1,inlineStylesheet:c,maskInputOptions:u,maskTextFn:h,maskInputFn:p,slimDOMOptions:f,dataURLOptions:d,inlineImages:m,recordCanvas:g,preserveWhiteSpace:A,onSerialize:y,onIframeLoad:v,iframeLoadTimeout:w,onStylesheetLoad:b,stylesheetLoadTimeout:S,keepIframeSrcFn:C});e&&b(t,e)}}),S),E}function Ex(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Mx(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var r=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:function(){return t[e]}})})),r}var Tx={exports:{}},Lx=String,Nx=function(){return{isColorSupported:!1,reset:Lx,bold:Lx,dim:Lx,italic:Lx,underline:Lx,inverse:Lx,hidden:Lx,strikethrough:Lx,black:Lx,red:Lx,green:Lx,yellow:Lx,blue:Lx,magenta:Lx,cyan:Lx,white:Lx,gray:Lx,bgBlack:Lx,bgRed:Lx,bgGreen:Lx,bgYellow:Lx,bgBlue:Lx,bgMagenta:Lx,bgCyan:Lx,bgWhite:Lx}};Tx.exports=Nx(),Tx.exports.createColors=Nx;var Px=Tx.exports;const Dx=Mx(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));let Fx=Px,Ux=Dx,_x=class t extends Error{constructor(e,r,n,o,s,i){super(e),this.name="CssSyntaxError",this.reason=e,s&&(this.file=s),o&&(this.source=o),i&&(this.plugin=i),void 0!==r&&void 0!==n&&("number"==typeof r?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,t)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let e=this.source;null==t&&(t=Fx.isColorSupported),Ux&&t&&(e=Ux(e));let r,n,o=e.split(/\r?\n/),s=Math.max(this.line-3,0),i=Math.min(this.line+2,o.length),a=String(i).length;if(t){let{bold:t,gray:e,red:o}=Fx.createColors(!0);r=e=>t(o(e)),n=t=>e(t)}else r=n=t=>t;return o.slice(s,i).map(((t,e)=>{let o=s+1+e,i=" "+(" "+o).slice(-a)+" | ";if(o===this.line){let e=n(i.replace(/\d/g," "))+t.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+n(i)+t+"\n "+e+r("^")}return" "+n(i)+t})).join("\n")}toString(){let t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t}};var Bx=_x;_x.default=_x;var jx={};jx.isClean=Symbol("isClean"),jx.my=Symbol("my");const zx={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};let Wx=class{constructor(t){this.builder=t}atrule(t,e){let r="@"+t.name,n=t.params?this.rawValue(t,"params"):"";if(void 0!==t.raws.afterName?r+=t.raws.afterName:n&&(r+=" "),t.nodes)this.block(t,r+n);else{let o=(t.raws.between||"")+(e?";":"");this.builder(r+n+o,t)}}beforeAfter(t,e){let r;r="decl"===t.type?this.raw(t,null,"beforeDecl"):"comment"===t.type?this.raw(t,null,"beforeComment"):"before"===e?this.raw(t,null,"beforeRule"):this.raw(t,null,"beforeClose");let n=t.parent,o=0;for(;n&&"root"!==n.type;)o+=1,n=n.parent;if(r.includes("\n")){let e=this.raw(t,null,"indent");if(e.length)for(let t=0;t<o;t++)r+=e}return r}block(t,e){let r,n=this.raw(t,"between","beforeOpen");this.builder(e+n+"{",t,"start"),t.nodes&&t.nodes.length?(this.body(t),r=this.raw(t,"after")):r=this.raw(t,"after","emptyBody"),r&&this.builder(r),this.builder("}",t,"end")}body(t){let e=t.nodes.length-1;for(;e>0&&"comment"===t.nodes[e].type;)e-=1;let r=this.raw(t,"semicolon");for(let n=0;n<t.nodes.length;n++){let o=t.nodes[n],s=this.raw(o,"before");s&&this.builder(s),this.stringify(o,e!==n||r)}}comment(t){let e=this.raw(t,"left","commentLeft"),r=this.raw(t,"right","commentRight");this.builder("/*"+e+t.text+r+"*/",t)}decl(t,e){let r=this.raw(t,"between","colon"),n=t.prop+r+this.rawValue(t,"value");t.important&&(n+=t.raws.important||" !important"),e&&(n+=";"),this.builder(n,t)}document(t){this.body(t)}raw(t,e,r){let n;if(r||(r=e),e&&(n=t.raws[e],void 0!==n))return n;let o=t.parent;if("before"===r){if(!o||"root"===o.type&&o.first===t)return"";if(o&&"document"===o.type)return""}if(!o)return zx[r];let s=t.root();if(s.rawCache||(s.rawCache={}),void 0!==s.rawCache[r])return s.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(t,r);{let o="raw"+((i=r)[0].toUpperCase()+i.slice(1));this[o]?n=this[o](s,t):s.walk((t=>{if(n=t.raws[e],void 0!==n)return!1}))}var i;return void 0===n&&(n=zx[r]),s.rawCache[r]=n,n}rawBeforeClose(t){let e;return t.walk((t=>{if(t.nodes&&t.nodes.length>0&&void 0!==t.raws.after)return e=t.raws.after,e.includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1})),e&&(e=e.replace(/\S/g,"")),e}rawBeforeComment(t,e){let r;return t.walkComments((t=>{if(void 0!==t.raws.before)return r=t.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(e,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(t,e){let r;return t.walkDecls((t=>{if(void 0!==t.raws.before)return r=t.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(e,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(t){let e;return t.walk((t=>{if("decl"!==t.type&&(e=t.raws.between,void 0!==e))return!1})),e}rawBeforeRule(t){let e;return t.walk((r=>{if(r.nodes&&(r.parent!==t||t.first!==r)&&void 0!==r.raws.before)return e=r.raws.before,e.includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1})),e&&(e=e.replace(/\S/g,"")),e}rawColon(t){let e;return t.walkDecls((t=>{if(void 0!==t.raws.between)return e=t.raws.between.replace(/[^\s:]/g,""),!1})),e}rawEmptyBody(t){let e;return t.walk((t=>{if(t.nodes&&0===t.nodes.length&&(e=t.raws.after,void 0!==e))return!1})),e}rawIndent(t){if(t.raws.indent)return t.raws.indent;let e;return t.walk((r=>{let n=r.parent;if(n&&n!==t&&n.parent&&n.parent===t&&void 0!==r.raws.before){let t=r.raws.before.split("\n");return e=t[t.length-1],e=e.replace(/\S/g,""),!1}})),e}rawSemicolon(t){let e;return t.walk((t=>{if(t.nodes&&t.nodes.length&&"decl"===t.last.type&&(e=t.raws.semicolon,void 0!==e))return!1})),e}rawValue(t,e){let r=t[e],n=t.raws[e];return n&&n.value===r?n.raw:r}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,e){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,e)}};var Vx=Wx;Wx.default=Wx;let Gx=Vx;function Yx(t,e){new Gx(e).stringify(t)}var Hx=Yx;Yx.default=Yx;let{isClean:Zx,my:Jx}=jx,Xx=Bx,Kx=Vx,qx=Hx;function $x(t,e){let r=new t.constructor;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;if("proxyCache"===n)continue;let o=t[n],s=typeof o;"parent"===n&&"object"===s?e&&(r[n]=e):"source"===n?r[n]=o:Array.isArray(o)?r[n]=o.map((t=>$x(t,r))):("object"===s&&null!==o&&(o=$x(o)),r[n]=o)}return r}let Qx=class{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.raws={},this[Zx]=!1,this[Jx]=!0;for(let e in t)if("nodes"===e){this.nodes=[];for(let r of t[e])"function"==typeof r.clone?this.append(r.clone()):this.append(r)}else this[e]=t[e]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let e=this.source;t.stack=t.stack.replace(/\n\s{4}at /,"$&".concat(e.input.from,":").concat(e.start.line,":").concat(e.start.column,"$&"))}return t}after(t){return this.parent.insertAfter(this,t),this}assign(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(let e in t)this[e]=t[e];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=$x(this);for(let r in t)e[r]=t[r];return e}cloneAfter(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.clone(t);return this.parent.insertAfter(this,e),e}cloneBefore(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.clone(t);return this.parent.insertBefore(this,e),e}error(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.source){let{end:r,start:n}=this.rangeBy(e);return this.source.input.error(t,{column:n.column,line:n.line},{column:r.column,line:r.line},e)}return new Xx(t)}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:"root"===e?()=>t.root().toProxy():t[e],set:(t,e,r)=>(t[e]===r||(t[e]=r,"prop"!==e&&"value"!==e&&"name"!==e&&"params"!==e&&"important"!==e&&"text"!==e||t.markDirty()),!0)}}markDirty(){if(this[Zx]){this[Zx]=!1;let t=this;for(;t=t.parent;)t[Zx]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t,e){let r=this.source.start;if(t.index)r=this.positionInside(t.index,e);else if(t.word){let n=(e=this.toString()).indexOf(t.word);-1!==n&&(r=this.positionInside(n,e))}return r}positionInside(t,e){let r=e||this.toString(),n=this.source.start.column,o=this.source.start.line;for(let e=0;e<t;e++)"\n"===r[e]?(n=1,o+=1):n+=1;return{column:n,line:o}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t){let e={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:e.column+1,line:e.line};if(t.word){let n=this.toString(),o=n.indexOf(t.word);-1!==o&&(e=this.positionInside(o,n),r=this.positionInside(o+t.word.length,n))}else t.start?e={column:t.start.column,line:t.start.line}:t.index&&(e=this.positionInside(t.index)),t.end?r={column:t.end.column,line:t.end.line}:"number"==typeof t.endIndex?r=this.positionInside(t.endIndex):t.index&&(r=this.positionInside(t.index+1));return(r.line<e.line||r.line===e.line&&r.column<=e.column)&&(r={column:e.column+1,line:e.line}),{end:r,start:e}}raw(t,e){return(new Kx).raw(this,t,e)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(){if(this.parent){let n=this,o=!1;for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(let t of e)t===this?o=!0:o?(this.parent.insertAfter(n,t),n=t):this.parent.insertBefore(n,t);o||this.remove()}return this}root(){let t=this;for(;t.parent&&"document"!==t.parent.type;)t=t.parent;return t}toJSON(t,e){let r={},n=null==e;e=e||new Map;let o=0;for(let t in this){if(!Object.prototype.hasOwnProperty.call(this,t))continue;if("parent"===t||"proxyCache"===t)continue;let n=this[t];if(Array.isArray(n))r[t]=n.map((t=>"object"==typeof t&&t.toJSON?t.toJSON(null,e):t));else if("object"==typeof n&&n.toJSON)r[t]=n.toJSON(null,e);else if("source"===t){let s=e.get(n.input);null==s&&(s=o,e.set(n.input,o),o++),r[t]={end:n.end,inputId:s,start:n.start}}else r[t]=n}return n&&(r.inputs=[...e.keys()].map((t=>t.toJSON()))),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qx;t.stringify&&(t=t.stringify);let e="";return t(this,(t=>{e+=t})),e}warn(t,e,r){let n={node:this};for(let t in r)n[t]=r[t];return t.warn(e,n)}get proxyOf(){return this}};var tk=Qx;Qx.default=Qx;let ek=tk,rk=class extends ek{constructor(t){t&&void 0!==t.value&&"string"!=typeof t.value&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}};var nk=rk;rk.default=rk;var ok={nanoid:function(){let t="",e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:21;return function(){let r="",n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e;for(;n--;)r+=t[Math.random()*t.length|0];return r}}};let{SourceMapConsumer:sk,SourceMapGenerator:ik}=Dx,{existsSync:ak,readFileSync:lk}=Dx,{dirname:ck,join:uk}=Dx;let hk=class{constructor(t,e){if(!1===e.map)return;this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let r=e.map?e.map.prev:void 0,n=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=ck(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new sk(this.text)),this.consumerCache}decodeInline(t){if(/^data:application\/json;charset=utf-?8,/.test(t)||/^data:application\/json,/.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(t)||/^data:application\/json;base64,/.test(t))return e=t.substr(RegExp.lastMatch.length),Buffer?Buffer.from(e,"base64").toString():window.atob(e);var e;let r=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return"object"==typeof t&&("string"==typeof t.mappings||"string"==typeof t._mappings||Array.isArray(t.sections))}loadAnnotation(t){let e=t.match(/\/\*\s*# sourceMappingURL=/gm);if(!e)return;let r=t.lastIndexOf(e.pop()),n=t.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(t.substring(r,n)))}loadFile(t){if(this.root=ck(t),ak(t))return this.mapFile=t,lk(t,"utf-8").toString().trim()}loadMap(t,e){if(!1===e)return!1;if(e){if("string"==typeof e)return e;if("function"!=typeof e){if(e instanceof sk)return ik.fromSourceMap(e).toString();if(e instanceof ik)return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+e.toString())}{let r=e(t);if(r){let t=this.loadFile(r);if(!t)throw new Error("Unable to load previous source map: "+r.toString());return t}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let e=this.annotation;return t&&(e=uk(ck(t),e)),this.loadFile(e)}}}startWith(t,e){return!!t&&t.substr(0,e.length)===e}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var pk=hk;hk.default=hk;let{SourceMapConsumer:fk,SourceMapGenerator:dk}=Dx,{fileURLToPath:mk,pathToFileURL:gk}=Dx,{isAbsolute:yk,resolve:vk}=Dx,{nanoid:wk}=ok,bk=Dx,Sk=Bx,Ck=pk,Ik=Symbol("fromOffsetCache"),xk=Boolean(fk&&dk),kk=Boolean(vk&&yk),Ak=class{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||"object"==typeof t&&!t.toString)throw new Error("PostCSS received ".concat(t," instead of CSS string"));if(this.css=t.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!kk||/^\w+:\/\//.test(e.from)||yk(e.from)?this.file=e.from:this.file=vk(e.from)),kk&&xk){let t=new Ck(this.css,e);if(t.text){this.map=t;let e=t.consumer().file;!this.file&&e&&(this.file=this.mapResolve(e))}}this.file||(this.id="<input css "+wk(6)+">"),this.map&&(this.map.file=this.from)}error(t,e,r){let n,o,s,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(e&&"object"==typeof e){let t=e,n=r;if("number"==typeof t.offset){let n=this.fromOffset(t.offset);e=n.line,r=n.col}else e=t.line,r=t.column;if("number"==typeof n.offset){let t=this.fromOffset(n.offset);o=t.line,s=t.col}else o=n.line,s=n.column}else if(!r){let t=this.fromOffset(e);e=t.line,r=t.col}let a=this.origin(e,r,o,s);return n=a?new Sk(t,void 0===a.endLine?a.line:{column:a.column,line:a.line},void 0===a.endLine?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,i.plugin):new Sk(t,void 0===o?e:{column:r,line:e},void 0===o?r:{column:s,line:o},this.css,this.file,i.plugin),n.input={column:r,endColumn:s,endLine:o,line:e,source:this.css},this.file&&(gk&&(n.input.url=gk(this.file).toString()),n.input.file=this.file),n}fromOffset(t){let e,r;if(this[Ik])r=this[Ik];else{let t=this.css.split("\n");r=new Array(t.length);let e=0;for(let n=0,o=t.length;n<o;n++)r[n]=e,e+=t[n].length+1;this[Ik]=r}e=r[r.length-1];let n=0;if(t>=e)n=r.length-1;else{let e,o=r.length-2;for(;n<o;)if(e=n+(o-n>>1),t<r[e])o=e-1;else{if(!(t>=r[e+1])){n=e;break}n=e+1}}return{col:t-r[n]+1,line:n+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:vk(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,e,r,n){if(!this.map)return!1;let o,s,i=this.map.consumer(),a=i.originalPositionFor({column:e,line:t});if(!a.source)return!1;"number"==typeof r&&(o=i.originalPositionFor({column:n,line:r})),s=yk(a.source)?gk(a.source):new URL(a.source,this.map.consumer().sourceRoot||gk(this.map.mapFile));let l={column:a.column,endColumn:o&&o.column,endLine:o&&o.line,line:a.line,url:s.toString()};if("file:"===s.protocol){if(!mk)throw new Error("file: protocol is not available in this PostCSS build");l.file=mk(s)}let c=i.sourceContentFor(a.source);return c&&(l.source=c),l}toJSON(){let t={};for(let e of["hasBOM","css","file","id"])null!=this[e]&&(t[e]=this[e]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}get from(){return this.file||this.id}};var Ok=Ak;Ak.default=Ak,bk&&bk.registerInput&&bk.registerInput(Ak);let{SourceMapConsumer:Rk,SourceMapGenerator:Ek}=Dx,{dirname:Mk,relative:Tk,resolve:Lk,sep:Nk}=Dx,{pathToFileURL:Pk}=Dx,Dk=Ok,Fk=Boolean(Rk&&Ek),Uk=Boolean(Mk&&Lk&&Tk&&Nk);var _k=class{constructor(t,e,r,n){this.stringify=t,this.mapOpts=r.map||{},this.root=e,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;t=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let e="\n";this.css.includes("\r\n")&&(e="\r\n"),this.css+=e+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let e,r=this.toUrl(this.path(t.file)),n=t.root||Mk(t.file);!1===this.mapOpts.sourcesContent?(e=new Rk(t.text),e.sourcesContent&&(e.sourcesContent=null)):e=t.consumer(),this.map.applySourceMap(e,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let t;for(let e=this.root.nodes.length-1;e>=0;e--)t=this.root.nodes[e],"comment"===t.type&&0===t.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(e)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),Uk&&Fk&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,(e=>{t+=e})),[t]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=Ek.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new Ek({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 Ek({file:this.outputFile(),ignoreInvalidMapping:!0});let t,e,r=1,n=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,((i,a,l)=>{if(this.css+=i,a&&"end"!==l&&(s.generated.line=r,s.generated.column=n-1,a.source&&a.source.start?(s.source=this.sourcePath(a),s.original.line=a.source.start.line,s.original.column=a.source.start.column-1,this.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,this.map.addMapping(s))),t=i.match(/\n/g),t?(r+=t.length,e=i.lastIndexOf("\n"),n=i.length-e):n+=i.length,a&&"start"!==l){let t=a.parent||{raws:{}};("decl"===a.type||"atrule"===a.type&&!a.nodes)&&a===t.last&&!t.raws.semicolon||(a.source&&a.source.end?(s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=r,s.generated.column=n-2,this.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=r,s.generated.column=n-1,this.map.addMapping(s)))}}))}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((t=>t.annotation)))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let t=this.mapOpts.annotation;return(void 0===t||!0===t)&&(!this.previous().length||this.previous().some((t=>t.inline)))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((t=>t.withContent()))}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute)return t;if(60===t.charCodeAt(0))return t;if(/^\w+:\/\//.test(t))return t;let e=this.memoizedPaths.get(t);if(e)return e;let r=this.opts.to?Mk(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=Mk(Lk(r,this.mapOpts.annotation)));let n=Tk(r,t);return this.memoizedPaths.set(t,n),n}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((t=>{if(t.source&&t.source.input.map){let e=t.source.input.map;this.previousMaps.includes(e)||this.previousMaps.push(e)}}));else{let t=new Dk(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk((e=>{if(e.source){let r=e.source.input.from;if(r&&!t[r]){t[r]=!0;let n=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(n,e.source.input.css)}}}));else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let e=this.memoizedFileURLs.get(t);if(e)return e;if(Pk){let e=Pk(t).toString();return this.memoizedFileURLs.set(t,e),e}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let e=this.memoizedURLs.get(t);if(e)return e;"\\"===Nk&&(t=t.replace(/\\/g,"/"));let r=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,r),r}};let Bk=tk,jk=class extends Bk{constructor(t){super(t),this.type="comment"}};var zk=jk;jk.default=jk;let Wk,Vk,Gk,Yk,{isClean:Hk,my:Zk}=jx,Jk=nk,Xk=zk,Kk=tk;function qk(t){return t.map((t=>(t.nodes&&(t.nodes=qk(t.nodes)),delete t.source,t)))}function $k(t){if(t[Hk]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)$k(e)}let Qk=class t extends Kk{append(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let e of this.nodes)e.cleanRaws(t)}each(t){if(!this.proxyOf.nodes)return;let e,r,n=this.getIterator();for(;this.indexes[n]<this.proxyOf.nodes.length&&(e=this.indexes[n],r=t(this.proxyOf.nodes[e],e),!1!==r);)this.indexes[n]+=1;return delete this.indexes[n],r}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:t[e]?"each"===e||"string"==typeof e&&e.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t[e](...n.map((t=>"function"==typeof t?(e,r)=>t(e.toProxy(),r):t)))}:"every"===e||"some"===e?r=>t[e]((function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];return r(t.toProxy(),...n)})):"root"===e?()=>t.root().toProxy():"nodes"===e?t.nodes.map((t=>t.toProxy())):"first"===e||"last"===e?t[e].toProxy():t[e]:t[e],set:(t,e,r)=>(t[e]===r||(t[e]=r,"name"!==e&&"params"!==e&&"selector"!==e||t.markDirty()),!0)}}index(t){return"number"==typeof t?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,e){let r,n=this.index(t),o=this.normalize(e,this.proxyOf.nodes[n]).reverse();n=this.index(t);for(let t of o)this.proxyOf.nodes.splice(n+1,0,t);for(let t in this.indexes)r=this.indexes[t],n<r&&(this.indexes[t]=r+o.length);return this.markDirty(),this}insertBefore(t,e){let r,n=this.index(t),o=0===n&&"prepend",s=this.normalize(e,this.proxyOf.nodes[n],o).reverse();n=this.index(t);for(let t of s)this.proxyOf.nodes.splice(n,0,t);for(let t in this.indexes)r=this.indexes[t],n<=r&&(this.indexes[t]=r+s.length);return this.markDirty(),this}normalize(e,r){if("string"==typeof e)e=qk(Wk(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new Jk(e)]}else if(e.selector)e=[new Vk(e)];else if(e.name)e=[new Gk(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new Xk(e)]}return e.map((e=>(e[Zk]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[Hk]&&$k(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e)))}prepend(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){let e;t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);for(let r in this.indexes)e=this.indexes[r],e>=t&&(this.indexes[r]=e-1);return this.markDirty(),this}replaceValues(t,e,r){return r||(r=e,e={}),this.walkDecls((n=>{e.props&&!e.props.includes(n.prop)||e.fast&&!n.value.includes(e.fast)||(n.value=n.value.replace(t,r))})),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each(((e,r)=>{let n;try{n=t(e,r)}catch(t){throw e.addToError(t)}return!1!==n&&e.walk&&(n=e.walk(t)),n}))}walkAtRules(t,e){return e?t instanceof RegExp?this.walk(((r,n)=>{if("atrule"===r.type&&t.test(r.name))return e(r,n)})):this.walk(((r,n)=>{if("atrule"===r.type&&r.name===t)return e(r,n)})):(e=t,this.walk(((t,r)=>{if("atrule"===t.type)return e(t,r)})))}walkComments(t){return this.walk(((e,r)=>{if("comment"===e.type)return t(e,r)}))}walkDecls(t,e){return e?t instanceof RegExp?this.walk(((r,n)=>{if("decl"===r.type&&t.test(r.prop))return e(r,n)})):this.walk(((r,n)=>{if("decl"===r.type&&r.prop===t)return e(r,n)})):(e=t,this.walk(((t,r)=>{if("decl"===t.type)return e(t,r)})))}walkRules(t,e){return e?t instanceof RegExp?this.walk(((r,n)=>{if("rule"===r.type&&t.test(r.selector))return e(r,n)})):this.walk(((r,n)=>{if("rule"===r.type&&r.selector===t)return e(r,n)})):(e=t,this.walk(((t,r)=>{if("rule"===t.type)return e(t,r)})))}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]}};Qk.registerParse=t=>{Wk=t},Qk.registerRule=t=>{Vk=t},Qk.registerAtRule=t=>{Gk=t},Qk.registerRoot=t=>{Yk=t};var tA=Qk;Qk.default=Qk,Qk.rebuild=t=>{"atrule"===t.type?Object.setPrototypeOf(t,Gk.prototype):"rule"===t.type?Object.setPrototypeOf(t,Vk.prototype):"decl"===t.type?Object.setPrototypeOf(t,Jk.prototype):"comment"===t.type?Object.setPrototypeOf(t,Xk.prototype):"root"===t.type&&Object.setPrototypeOf(t,Yk.prototype),t[Zk]=!0,t.nodes&&t.nodes.forEach((t=>{Qk.rebuild(t)}))};let eA,rA,nA=tA,oA=class extends nA{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new eA(new rA,this,t).stringify()}};oA.registerLazyResult=t=>{eA=t},oA.registerProcessor=t=>{rA=t};var sA=oA;oA.default=oA;let iA={};var aA=function(t){iA[t]||(iA[t]=!0,"undefined"!=typeof console&&console.warn&&console.warn(t))};let lA=class{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.type="warning",this.text=t,e.node&&e.node.source){let t=e.node.rangeBy(e);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in e)this[t]=e[t]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var cA=lA;lA.default=lA;let uA=cA,hA=class{constructor(t,e,r){this.processor=t,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(e.plugin=this.lastPlugin.postcssPlugin);let r=new uA(t,e);return this.messages.push(r),r}warnings(){return this.messages.filter((t=>"warning"===t.type))}get content(){return this.css}};var pA=hA;hA.default=hA;const fA="'".charCodeAt(0),dA='"'.charCodeAt(0),mA="\\".charCodeAt(0),gA="/".charCodeAt(0),yA="\n".charCodeAt(0),vA=" ".charCodeAt(0),wA="\f".charCodeAt(0),bA="\t".charCodeAt(0),SA="\r".charCodeAt(0),CA="[".charCodeAt(0),IA="]".charCodeAt(0),xA="(".charCodeAt(0),kA=")".charCodeAt(0),AA="{".charCodeAt(0),OA="}".charCodeAt(0),RA=";".charCodeAt(0),EA="*".charCodeAt(0),MA=":".charCodeAt(0),TA="@".charCodeAt(0),LA=/[\t\n\f\r "#'()/;[\\\]{}]/g,NA=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,PA=/.[\r\n"'(/\\]/,DA=/[\da-f]/i;let FA=tA,UA=class extends FA{constructor(t){super(t),this.type="atrule"}append(){return this.proxyOf.nodes||(this.nodes=[]),super.append(...arguments)}prepend(){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...arguments)}};var _A=UA;UA.default=UA,FA.registerAtRule(UA);let BA,jA,zA=tA,WA=class extends zA{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,e,r){let n=super.normalize(t);if(e)if("prepend"===r)this.nodes.length>1?e.raws.before=this.nodes[1].raws.before:delete e.raws.before;else if(this.first!==e)for(let t of n)t.raws.before=e.raws.before;return n}removeChild(t,e){let r=this.index(t);return!e&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(t)}toResult(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new BA(new jA,this,t).stringify()}};WA.registerLazyResult=t=>{BA=t},WA.registerProcessor=t=>{jA=t};var VA=WA;WA.default=WA,zA.registerRoot(WA);let GA={comma:t=>GA.split(t,[","],!0),space:t=>GA.split(t,[" ","\n","\t"]),split(t,e,r){let n=[],o="",s=!1,i=0,a=!1,l="",c=!1;for(let r of t)c?c=!1:"\\"===r?c=!0:a?r===l&&(a=!1):'"'===r||"'"===r?(a=!0,l=r):"("===r?i+=1:")"===r?i>0&&(i-=1):0===i&&e.includes(r)&&(s=!0),s?(""!==o&&n.push(o.trim()),o="",s=!1):o+=r;return(r||""!==o)&&n.push(o.trim()),n}};var YA=GA;GA.default=GA;let HA=tA,ZA=YA,JA=class extends HA{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return ZA.comma(this.selector)}set selectors(t){let e=this.selector?this.selector.match(/,\s*/):null,r=e?e[0]:","+this.raw("between","beforeOpen");this.selector=t.join(r)}};var XA=JA;JA.default=JA,HA.registerRule(JA);let KA=nk,qA=function(t){let e,r,n,o,s,i,a,l,c,u,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},p=t.css.valueOf(),f=h.ignoreErrors,d=p.length,m=0,g=[],y=[];function v(e){throw t.error("Unclosed "+e,m)}return{back:function(t){y.push(t)},endOfFile:function(){return 0===y.length&&m>=d},nextToken:function(t){if(y.length)return y.pop();if(m>=d)return;let h=!!t&&t.ignoreUnclosed;switch(e=p.charCodeAt(m),e){case yA:case vA:case bA:case SA:case wA:r=m;do{r+=1,e=p.charCodeAt(r)}while(e===vA||e===yA||e===bA||e===SA||e===wA);u=["space",p.slice(m,r)],m=r-1;break;case CA:case IA:case AA:case OA:case MA:case RA:case kA:{let t=String.fromCharCode(e);u=[t,t,m];break}case xA:if(l=g.length?g.pop()[1]:"",c=p.charCodeAt(m+1),"url"===l&&c!==fA&&c!==dA&&c!==vA&&c!==yA&&c!==bA&&c!==wA&&c!==SA){r=m;do{if(i=!1,r=p.indexOf(")",r+1),-1===r){if(f||h){r=m;break}v("bracket")}for(a=r;p.charCodeAt(a-1)===mA;)a-=1,i=!i}while(i);u=["brackets",p.slice(m,r+1),m,r],m=r}else r=p.indexOf(")",m+1),o=p.slice(m,r+1),-1===r||PA.test(o)?u=["(","(",m]:(u=["brackets",o,m,r],m=r);break;case fA:case dA:n=e===fA?"'":'"',r=m;do{if(i=!1,r=p.indexOf(n,r+1),-1===r){if(f||h){r=m+1;break}v("string")}for(a=r;p.charCodeAt(a-1)===mA;)a-=1,i=!i}while(i);u=["string",p.slice(m,r+1),m,r],m=r;break;case TA:LA.lastIndex=m+1,LA.test(p),r=0===LA.lastIndex?p.length-1:LA.lastIndex-2,u=["at-word",p.slice(m,r+1),m,r],m=r;break;case mA:for(r=m,s=!0;p.charCodeAt(r+1)===mA;)r+=1,s=!s;if(e=p.charCodeAt(r+1),s&&e!==gA&&e!==vA&&e!==yA&&e!==bA&&e!==SA&&e!==wA&&(r+=1,DA.test(p.charAt(r)))){for(;DA.test(p.charAt(r+1));)r+=1;p.charCodeAt(r+1)===vA&&(r+=1)}u=["word",p.slice(m,r+1),m,r],m=r;break;default:e===gA&&p.charCodeAt(m+1)===EA?(r=p.indexOf("*/",m+2)+1,0===r&&(f||h?r=p.length:v("comment")),u=["comment",p.slice(m,r+1),m,r],m=r):(NA.lastIndex=m+1,NA.test(p),r=0===NA.lastIndex?p.length-1:NA.lastIndex-2,u=["word",p.slice(m,r+1),m,r],g.push(u),m=r)}return m++,u},position:function(){return m}}},$A=zk,QA=_A,tO=VA,eO=XA;const rO={empty:!0,space:!0};var nO=class{constructor(t){this.input=t,this.root=new tO,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let e,r,n,o=new QA;o.name=t[1].slice(1),""===o.name&&this.unnamedAtrule(o,t),this.init(o,t[2]);let s=!1,i=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=(t=this.tokenizer.nextToken())[0],"("===e||"["===e?l.push("("===e?")":"]"):"{"===e&&l.length>0?l.push("}"):e===l[l.length-1]&&l.pop(),0===l.length){if(";"===e){o.source.end=this.getPosition(t[2]),o.source.end.offset++,this.semicolon=!0;break}if("{"===e){i=!0;break}if("}"===e){if(a.length>0){for(n=a.length-1,r=a[n];r&&"space"===r[0];)r=a[--n];r&&(o.source.end=this.getPosition(r[3]||r[2]),o.source.end.offset++)}this.end(t);break}a.push(t)}else a.push(t);if(this.tokenizer.endOfFile()){s=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(o.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(o,"params",a),s&&(t=a[a.length-1],o.source.end=this.getPosition(t[3]||t[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),i&&(o.nodes=[],this.current=o)}checkMissedSemicolon(t){let e=this.colon(t);if(!1===e)return;let r,n=0;for(let o=e-1;o>=0&&(r=t[o],"space"===r[0]||(n+=1,2!==n));o--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}colon(t){let e,r,n,o=0;for(let[s,i]of t.entries()){if(e=i,r=e[0],"("===r&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return s}this.doubleColon(e)}n=e}return!1}comment(t){let e=new $A;this.init(e,t[2]),e.source.end=this.getPosition(t[3]||t[2]),e.source.end.offset++;let r=t[1].slice(2,-2);if(/^\s*$/.test(r))e.text="",e.raws.left=r,e.raws.right="";else{let t=r.match(/^(\s*)([^]*\S)(\s*)$/);e.text=t[2],e.raws.left=t[1],e.raws.right=t[3]}}createTokenizer(){this.tokenizer=qA(this.input)}decl(t,e){let r=new KA;this.init(r,t[0][2]);let n,o=t[t.length-1];for(";"===o[0]&&(this.semicolon=!0,t.pop()),r.source.end=this.getPosition(o[3]||o[2]||function(t){for(let e=t.length-1;e>=0;e--){let r=t[e],n=r[3]||r[2];if(n)return n}}(t)),r.source.end.offset++;"word"!==t[0][0];)1===t.length&&this.unknownWord(t),r.raws.before+=t.shift()[1];for(r.source.start=this.getPosition(t[0][2]),r.prop="";t.length;){let e=t[0][0];if(":"===e||"space"===e||"comment"===e)break;r.prop+=t.shift()[1]}for(r.raws.between="";t.length;){if(n=t.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let s,i=[];for(;t.length&&(s=t[0][0],"space"===s||"comment"===s);)i.push(t.shift());this.precheckMissedSemicolon(t);for(let e=t.length-1;e>=0;e--){if(n=t[e],"!important"===n[1].toLowerCase()){r.important=!0;let n=this.stringFrom(t,e);n=this.spacesFromEnd(t)+n," !important"!==n&&(r.raws.important=n);break}if("important"===n[1].toLowerCase()){let n=t.slice(0),o="";for(let t=e;t>0;t--){let e=n[t][0];if(0===o.trim().indexOf("!")&&"space"!==e)break;o=n.pop()[1]+o}0===o.trim().indexOf("!")&&(r.important=!0,r.raws.important=o,t=n)}if("space"!==n[0]&&"comment"!==n[0])break}t.some((t=>"space"!==t[0]&&"comment"!==t[0]))&&(r.raws.between+=i.map((t=>t[1])).join(""),i=[]),this.raw(r,"value",i.concat(t),e),r.value.includes(":")&&!e&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let e=new eO;this.init(e,t[2]),e.selector="",e.raws.between="",this.current=e}end(t){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(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}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(t){if(this.spaces+=t[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let e=this.input.fromOffset(t);return{column:e.col,line:e.line,offset:t}}init(t,e){this.current.push(t),t.source={input:this.input,start:this.getPosition(e)},t.raws.before=this.spaces,this.spaces="","comment"!==t.type&&(this.semicolon=!1)}other(t){let e=!1,r=null,n=!1,o=null,s=[],i=t[1].startsWith("--"),a=[],l=t;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)o||(o=l),s.push("("===r?")":"]");else if(i&&n&&"{"===r)o||(o=l),s.push("}");else if(0===s.length){if(";"===r){if(n)return void this.decl(a,i);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),e=!0;break}":"===r&&(n=!0)}else r===s[s.length-1]&&(s.pop(),0===s.length&&(o=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(e=!0),s.length>0&&this.unclosedBracket(o),e&&n){if(!i)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,i)}else this.unknownWord(a)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t)}this.endFile()}precheckMissedSemicolon(){}raw(t,e,r,n){let o,s,i,a,l=r.length,c="",u=!0;for(let t=0;t<l;t+=1)o=r[t],s=o[0],"space"!==s||t!==l-1||n?"comment"===s?(a=r[t-1]?r[t-1][0]:"empty",i=r[t+1]?r[t+1][0]:"empty",rO[a]||rO[i]||","===c.slice(-1)?u=!1:c+=o[1]):c+=o[1]:u=!1;if(!u){let n=r.reduce(((t,e)=>t+e[1]),"");t.raws[e]={raw:n,value:c}}t[e]=c}rule(t){t.pop();let e=new eO;this.init(e,t[0][2]),e.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(e,"selector",t),this.current=e}spacesAndCommentsFromEnd(t){let e,r="";for(;t.length&&(e=t[t.length-1][0],"space"===e||"comment"===e);)r=t.pop()[1]+r;return r}spacesAndCommentsFromStart(t){let e,r="";for(;t.length&&(e=t[0][0],"space"===e||"comment"===e);)r+=t.shift()[1];return r}spacesFromEnd(t){let e,r="";for(;t.length&&(e=t[t.length-1][0],"space"===e);)r=t.pop()[1]+r;return r}stringFrom(t,e){let r="";for(let n=e;n<t.length;n++)r+=t[n][1];return t.splice(e,t.length-e),r}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,e){throw this.input.error("At-rule without name",{offset:e[2]},{offset:e[2]+e[1].length})}};let oO=tA,sO=nO,iO=Ok;function aO(t,e){let r=new iO(t,e),n=new sO(r);try{n.parse()}catch(t){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===t.name&&e&&e.from&&(/\.scss$/i.test(e.from)?t.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(e.from)?t.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(e.from)&&(t.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),t}return n.root}var lO=aO;aO.default=aO,oO.registerParse(aO);let{isClean:cO,my:uO}=jx,hO=_k,pO=Hx,fO=tA,dO=sA,mO=aA,gO=pA,yO=lO,vO=VA;const wO={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},bO={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},SO={Once:!0,postcssPlugin:!0,prepare:!0},CO=0;function IO(t){return"object"==typeof t&&"function"==typeof t.then}function xO(t){let e=!1,r=wO[t.type];return"decl"===t.type?e=t.prop.toLowerCase():"atrule"===t.type&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,CO,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,CO,r+"Exit"]:[r,r+"Exit"]}function kO(t){let e;return e="document"===t.type?["Document",CO,"DocumentExit"]:"root"===t.type?["Root",CO,"RootExit"]:xO(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function AO(t){return t[cO]=!1,t.nodes&&t.nodes.forEach((t=>AO(t))),t}let OO={},RO=class t{constructor(e,r,n){let o;if(this.stringified=!1,this.processed=!1,"object"!=typeof r||null===r||"root"!==r.type&&"document"!==r.type)if(r instanceof t||r instanceof gO)o=AO(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let t=yO;n.syntax&&(t=n.syntax.parse),n.parser&&(t=n.parser),t.parse&&(t=t.parse);try{o=t(r,n)}catch(t){this.processed=!0,this.error=t}o&&!o[uO]&&fO.rebuild(o)}else o=AO(r);this.result=new gO(e,o,n),this.helpers={...OO,postcss:OO,result:this.result},this.plugins=this.processor.plugins.map((t=>"object"==typeof t&&t.prepare?{...t,...t.prepare(this.result)}:t))}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,e){let r=this.result.lastPlugin;try{if(e&&e.addToError(t),this.error=t,"CssSyntaxError"!==t.name||t.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){let t=r.postcssPlugin,e=r.postcssVersion,n=this.result.processor.version,o=e.split("."),s=n.split(".");(o[0]!==s[0]||parseInt(o[1])>parseInt(s[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+n+", but "+t+" uses "+e+". Perhaps this is the source of the error below.")}}else t.plugin=r.postcssPlugin,t.setMessage()}catch(t){console&&console.error&&console.error(t)}return t}prepareVisitors(){this.listeners={};let t=(t,e,r)=>{this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push([t,r])};for(let e of this.plugins)if("object"==typeof e)for(let r in e){if(!bO[r]&&/^[A-Z]/.test(r))throw new Error("Unknown event ".concat(r," in ").concat(e.postcssPlugin,". Try to update PostCSS (").concat(this.processor.version," now)."));if(!SO[r])if("object"==typeof e[r])for(let n in e[r])t(e,"*"===n?r:r+"-"+n.toLowerCase(),e[r][n]);else"function"==typeof e[r]&&t(e,r,e[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t<this.plugins.length;t++){let e=this.plugins[t],r=this.runOnRoot(e);if(IO(r))try{await r}catch(t){throw this.handleError(t)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[cO];){t[cO]=!0;let e=[kO(t)];for(;e.length>0;){let t=this.visitTick(e);if(IO(t))try{await t}catch(t){let r=e[e.length-1].node;throw this.handleError(t,r)}}}if(this.listeners.OnceExit)for(let[e,r]of this.listeners.OnceExit){this.result.lastPlugin=e;try{if("document"===t.type){let e=t.nodes.map((t=>r(t,this.helpers)));await Promise.all(e)}else await r(t,this.helpers)}catch(t){throw this.handleError(t)}}}return this.processed=!0,this.stringify()}runOnRoot(t){this.result.lastPlugin=t;try{if("object"==typeof t&&t.Once){if("document"===this.result.root.type){let e=this.result.root.nodes.map((e=>t.Once(e,this.helpers)));return IO(e[0])?Promise.all(e):e}return t.Once(this.result.root,this.helpers)}if("function"==typeof t)return t(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,e=pO;t.syntax&&(e=t.syntax.stringify),t.stringifier&&(e=t.stringifier),e.stringify&&(e=e.stringify);let r=new hO(e,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[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 t of this.plugins){if(IO(this.runOnRoot(t)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[cO];)t[cO]=!0,this.walkSync(t);if(this.listeners.OnceExit)if("document"===t.type)for(let e of t.nodes)this.visitSync(this.listeners.OnceExit,e);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(t,e){return"production"!==process.env.NODE_ENV&&("from"in this.opts||mO("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(t,e)}toString(){return this.css}visitSync(t,e){for(let[r,n]of t){let t;this.result.lastPlugin=r;try{t=n(e,this.helpers)}catch(t){throw this.handleError(t,e.proxyOf)}if("root"!==e.type&&"document"!==e.type&&!e.parent)return!0;if(IO(t))throw this.getAsyncError()}}visitTick(t){let e=t[t.length-1],{node:r,visitors:n}=e;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void t.pop();if(n.length>0&&e.visitorIndex<n.length){let[t,o]=n[e.visitorIndex];e.visitorIndex+=1,e.visitorIndex===n.length&&(e.visitors=[],e.visitorIndex=0),this.result.lastPlugin=t;try{return o(r.toProxy(),this.helpers)}catch(t){throw this.handleError(t,r)}}if(0!==e.iterator){let n,o=e.iterator;for(;n=r.nodes[r.indexes[o]];)if(r.indexes[o]+=1,!n[cO])return n[cO]=!0,void t.push(kO(n));e.iterator=0,delete r.indexes[o]}let o=e.events;for(;e.eventIndex<o.length;){let t=o[e.eventIndex];if(e.eventIndex+=1,t===CO)return void(r.nodes&&r.nodes.length&&(r[cO]=!0,e.iterator=r.getIterator()));if(this.listeners[t])return void(e.visitors=this.listeners[t])}t.pop()}walkSync(t){t[cO]=!0;let e=xO(t);for(let r of e)if(r===CO)t.nodes&&t.each((t=>{t[cO]||this.walkSync(t)}));else{let e=this.listeners[r];if(e&&this.visitSync(e,t.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"}};RO.registerPostcss=t=>{OO=t};var EO=RO;RO.default=RO,vO.registerLazyResult(RO),dO.registerLazyResult(RO);let MO=_k,TO=Hx,LO=aA,NO=lO;const PO=pA;let DO=class{constructor(t,e,r){let n;e=e.toString(),this.stringified=!1,this._processor=t,this._css=e,this._opts=r,this._map=void 0;let o=TO;this.result=new PO(this._processor,n,this._opts),this.result.css=e;let s=this;Object.defineProperty(this.result,"root",{get:()=>s.root});let i=new MO(o,n,this._opts,e);if(i.isMap()){let[t,e]=i.generate();t&&(this.result.css=t),e&&(this.result.map=e)}else i.clearAnnotation(),this.result.css=i.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,e){return"production"!==process.env.NODE_ENV&&("from"in this._opts||LO("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(t,e)}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 t,e=NO;try{t=e(this._css,this._opts)}catch(t){this.error=t}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}};var FO=DO;DO.default=DO;let UO=FO,_O=EO,BO=sA,jO=VA,zO=class{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.version="8.4.38",this.plugins=this.normalize(t)}normalize(t){let e=[];for(let r of t)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))e=e.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)e.push(r);else if("function"==typeof r)e.push(r);else{if("object"!=typeof r||!r.parse&&!r.stringify)throw new Error(r+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)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.")}return e}process(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.plugins.length||e.parser||e.stringifier||e.syntax?new _O(this,t,e):new UO(this,t,e)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}};var WO=zO;zO.default=zO,jO.registerProcessor(zO),BO.registerProcessor(zO);let VO=nk,GO=pk,YO=zk,HO=_A,ZO=Ok,JO=VA,XO=XA;function KO(t,e){if(Array.isArray(t))return t.map((t=>KO(t)));let{inputs:r,...n}=t;if(r){e=[];for(let t of r){let r={...t,__proto__:ZO.prototype};r.map&&(r.map={...r.map,__proto__:GO.prototype}),e.push(r)}}if(n.nodes&&(n.nodes=t.nodes.map((t=>KO(t,e)))),n.source){let{inputId:t,...r}=n.source;n.source=r,null!=t&&(n.source.input=e[t])}if("root"===n.type)return new JO(n);if("decl"===n.type)return new VO(n);if("rule"===n.type)return new XO(n);if("comment"===n.type)return new YO(n);if("atrule"===n.type)return new HO(n);throw new Error("Unknown node type: "+t.type)}var qO=KO;KO.default=KO;let $O=Bx,QO=nk,tR=EO,eR=tA,rR=WO,nR=Hx,oR=qO,sR=sA,iR=cA,aR=zk,lR=_A,cR=pA,uR=Ok,hR=lO,pR=YA,fR=XA,dR=VA,mR=tk;function gR(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new rR(e)}gR.plugin=function(t,e){let r,n=!1;function o(){console&&console.warn&&!n&&(n=!0,console.warn(t+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(t+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let r=e(...arguments);return r.postcssPlugin=t,r.postcssVersion=(new rR).version,r}return Object.defineProperty(o,"postcss",{get:()=>(r||(r=o()),r)}),o.process=function(t,e,r){return gR([o(r)]).process(t,e)},o},gR.stringify=nR,gR.parse=hR,gR.fromJSON=oR,gR.list=pR,gR.comment=t=>new aR(t),gR.atRule=t=>new lR(t),gR.decl=t=>new QO(t),gR.rule=t=>new fR(t),gR.root=t=>new dR(t),gR.document=t=>new sR(t),gR.CssSyntaxError=$O,gR.Declaration=QO,gR.Container=eR,gR.Processor=rR,gR.Document=sR,gR.Comment=aR,gR.Warning=iR,gR.AtRule=lR,gR.Result=cR,gR.Input=uR,gR.Rule=fR,gR.Root=dR,gR.Node=mR,tR.registerPostcss(gR);var yR=gR;gR.default=gR;const vR=Ex(yR);vR.stringify,vR.fromJSON,vR.plugin,vR.parse,vR.list,vR.document,vR.comment,vR.atRule,vR.rule,vR.decl,vR.root,vR.CssSyntaxError,vR.Declaration,vR.Container,vR.Processor,vR.Document,vR.Comment,vR.Warning,vR.AtRule,vR.Result,vR.Input,vR.Rule,vR.Root,vR.Node;var wR=Object.defineProperty,bR=(t,e,r)=>((t,e,r)=>e in t?wR(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r)(t,"symbol"!=typeof e?e+"":e,r);function SR(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function CR(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var r=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:function(){return t[e]}})})),r}var IR={exports:{}},xR=String,kR=function(){return{isColorSupported:!1,reset:xR,bold:xR,dim:xR,italic:xR,underline:xR,inverse:xR,hidden:xR,strikethrough:xR,black:xR,red:xR,green:xR,yellow:xR,blue:xR,magenta:xR,cyan:xR,white:xR,gray:xR,bgBlack:xR,bgRed:xR,bgGreen:xR,bgYellow:xR,bgBlue:xR,bgMagenta:xR,bgCyan:xR,bgWhite:xR}};IR.exports=kR(),IR.exports.createColors=kR;var AR=IR.exports;const OR=CR(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));let RR=AR,ER=OR,MR=class t extends Error{constructor(e,r,n,o,s,i){super(e),this.name="CssSyntaxError",this.reason=e,s&&(this.file=s),o&&(this.source=o),i&&(this.plugin=i),void 0!==r&&void 0!==n&&("number"==typeof r?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,t)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let e=this.source;null==t&&(t=RR.isColorSupported),ER&&t&&(e=ER(e));let r,n,o=e.split(/\r?\n/),s=Math.max(this.line-3,0),i=Math.min(this.line+2,o.length),a=String(i).length;if(t){let{bold:t,gray:e,red:o}=RR.createColors(!0);r=e=>t(o(e)),n=t=>e(t)}else r=n=t=>t;return o.slice(s,i).map(((t,e)=>{let o=s+1+e,i=" "+(" "+o).slice(-a)+" | ";if(o===this.line){let e=n(i.replace(/\d/g," "))+t.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+n(i)+t+"\n "+e+r("^")}return" "+n(i)+t})).join("\n")}toString(){let t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t}};var TR=MR;MR.default=MR;var LR={};LR.isClean=Symbol("isClean"),LR.my=Symbol("my");const NR={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};let PR=class{constructor(t){this.builder=t}atrule(t,e){let r="@"+t.name,n=t.params?this.rawValue(t,"params"):"";if(void 0!==t.raws.afterName?r+=t.raws.afterName:n&&(r+=" "),t.nodes)this.block(t,r+n);else{let o=(t.raws.between||"")+(e?";":"");this.builder(r+n+o,t)}}beforeAfter(t,e){let r;r="decl"===t.type?this.raw(t,null,"beforeDecl"):"comment"===t.type?this.raw(t,null,"beforeComment"):"before"===e?this.raw(t,null,"beforeRule"):this.raw(t,null,"beforeClose");let n=t.parent,o=0;for(;n&&"root"!==n.type;)o+=1,n=n.parent;if(r.includes("\n")){let e=this.raw(t,null,"indent");if(e.length)for(let t=0;t<o;t++)r+=e}return r}block(t,e){let r,n=this.raw(t,"between","beforeOpen");this.builder(e+n+"{",t,"start"),t.nodes&&t.nodes.length?(this.body(t),r=this.raw(t,"after")):r=this.raw(t,"after","emptyBody"),r&&this.builder(r),this.builder("}",t,"end")}body(t){let e=t.nodes.length-1;for(;e>0&&"comment"===t.nodes[e].type;)e-=1;let r=this.raw(t,"semicolon");for(let n=0;n<t.nodes.length;n++){let o=t.nodes[n],s=this.raw(o,"before");s&&this.builder(s),this.stringify(o,e!==n||r)}}comment(t){let e=this.raw(t,"left","commentLeft"),r=this.raw(t,"right","commentRight");this.builder("/*"+e+t.text+r+"*/",t)}decl(t,e){let r=this.raw(t,"between","colon"),n=t.prop+r+this.rawValue(t,"value");t.important&&(n+=t.raws.important||" !important"),e&&(n+=";"),this.builder(n,t)}document(t){this.body(t)}raw(t,e,r){let n;if(r||(r=e),e&&(n=t.raws[e],void 0!==n))return n;let o=t.parent;if("before"===r){if(!o||"root"===o.type&&o.first===t)return"";if(o&&"document"===o.type)return""}if(!o)return NR[r];let s=t.root();if(s.rawCache||(s.rawCache={}),void 0!==s.rawCache[r])return s.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(t,r);{let o="raw"+((i=r)[0].toUpperCase()+i.slice(1));this[o]?n=this[o](s,t):s.walk((t=>{if(n=t.raws[e],void 0!==n)return!1}))}var i;return void 0===n&&(n=NR[r]),s.rawCache[r]=n,n}rawBeforeClose(t){let e;return t.walk((t=>{if(t.nodes&&t.nodes.length>0&&void 0!==t.raws.after)return e=t.raws.after,e.includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1})),e&&(e=e.replace(/\S/g,"")),e}rawBeforeComment(t,e){let r;return t.walkComments((t=>{if(void 0!==t.raws.before)return r=t.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(e,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(t,e){let r;return t.walkDecls((t=>{if(void 0!==t.raws.before)return r=t.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(e,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(t){let e;return t.walk((t=>{if("decl"!==t.type&&(e=t.raws.between,void 0!==e))return!1})),e}rawBeforeRule(t){let e;return t.walk((r=>{if(r.nodes&&(r.parent!==t||t.first!==r)&&void 0!==r.raws.before)return e=r.raws.before,e.includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1})),e&&(e=e.replace(/\S/g,"")),e}rawColon(t){let e;return t.walkDecls((t=>{if(void 0!==t.raws.between)return e=t.raws.between.replace(/[^\s:]/g,""),!1})),e}rawEmptyBody(t){let e;return t.walk((t=>{if(t.nodes&&0===t.nodes.length&&(e=t.raws.after,void 0!==e))return!1})),e}rawIndent(t){if(t.raws.indent)return t.raws.indent;let e;return t.walk((r=>{let n=r.parent;if(n&&n!==t&&n.parent&&n.parent===t&&void 0!==r.raws.before){let t=r.raws.before.split("\n");return e=t[t.length-1],e=e.replace(/\S/g,""),!1}})),e}rawSemicolon(t){let e;return t.walk((t=>{if(t.nodes&&t.nodes.length&&"decl"===t.last.type&&(e=t.raws.semicolon,void 0!==e))return!1})),e}rawValue(t,e){let r=t[e],n=t.raws[e];return n&&n.value===r?n.raw:r}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,e){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,e)}};var DR=PR;PR.default=PR;let FR=DR;function UR(t,e){new FR(e).stringify(t)}var _R=UR;UR.default=UR;let{isClean:BR,my:jR}=LR,zR=TR,WR=DR,VR=_R;function GR(t,e){let r=new t.constructor;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;if("proxyCache"===n)continue;let o=t[n],s=typeof o;"parent"===n&&"object"===s?e&&(r[n]=e):"source"===n?r[n]=o:Array.isArray(o)?r[n]=o.map((t=>GR(t,r))):("object"===s&&null!==o&&(o=GR(o)),r[n]=o)}return r}let YR=class{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.raws={},this[BR]=!1,this[jR]=!0;for(let e in t)if("nodes"===e){this.nodes=[];for(let r of t[e])"function"==typeof r.clone?this.append(r.clone()):this.append(r)}else this[e]=t[e]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let e=this.source;t.stack=t.stack.replace(/\n\s{4}at /,"$&".concat(e.input.from,":").concat(e.start.line,":").concat(e.start.column,"$&"))}return t}after(t){return this.parent.insertAfter(this,t),this}assign(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(let e in t)this[e]=t[e];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=GR(this);for(let r in t)e[r]=t[r];return e}cloneAfter(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.clone(t);return this.parent.insertAfter(this,e),e}cloneBefore(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.clone(t);return this.parent.insertBefore(this,e),e}error(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.source){let{end:r,start:n}=this.rangeBy(e);return this.source.input.error(t,{column:n.column,line:n.line},{column:r.column,line:r.line},e)}return new zR(t)}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:"root"===e?()=>t.root().toProxy():t[e],set:(t,e,r)=>(t[e]===r||(t[e]=r,"prop"!==e&&"value"!==e&&"name"!==e&&"params"!==e&&"important"!==e&&"text"!==e||t.markDirty()),!0)}}markDirty(){if(this[BR]){this[BR]=!1;let t=this;for(;t=t.parent;)t[BR]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t,e){let r=this.source.start;if(t.index)r=this.positionInside(t.index,e);else if(t.word){let n=(e=this.toString()).indexOf(t.word);-1!==n&&(r=this.positionInside(n,e))}return r}positionInside(t,e){let r=e||this.toString(),n=this.source.start.column,o=this.source.start.line;for(let e=0;e<t;e++)"\n"===r[e]?(n=1,o+=1):n+=1;return{column:n,line:o}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t){let e={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:e.column+1,line:e.line};if(t.word){let n=this.toString(),o=n.indexOf(t.word);-1!==o&&(e=this.positionInside(o,n),r=this.positionInside(o+t.word.length,n))}else t.start?e={column:t.start.column,line:t.start.line}:t.index&&(e=this.positionInside(t.index)),t.end?r={column:t.end.column,line:t.end.line}:"number"==typeof t.endIndex?r=this.positionInside(t.endIndex):t.index&&(r=this.positionInside(t.index+1));return(r.line<e.line||r.line===e.line&&r.column<=e.column)&&(r={column:e.column+1,line:e.line}),{end:r,start:e}}raw(t,e){return(new WR).raw(this,t,e)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(){if(this.parent){let n=this,o=!1;for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(let t of e)t===this?o=!0:o?(this.parent.insertAfter(n,t),n=t):this.parent.insertBefore(n,t);o||this.remove()}return this}root(){let t=this;for(;t.parent&&"document"!==t.parent.type;)t=t.parent;return t}toJSON(t,e){let r={},n=null==e;e=e||new Map;let o=0;for(let t in this){if(!Object.prototype.hasOwnProperty.call(this,t))continue;if("parent"===t||"proxyCache"===t)continue;let n=this[t];if(Array.isArray(n))r[t]=n.map((t=>"object"==typeof t&&t.toJSON?t.toJSON(null,e):t));else if("object"==typeof n&&n.toJSON)r[t]=n.toJSON(null,e);else if("source"===t){let s=e.get(n.input);null==s&&(s=o,e.set(n.input,o),o++),r[t]={end:n.end,inputId:s,start:n.start}}else r[t]=n}return n&&(r.inputs=[...e.keys()].map((t=>t.toJSON()))),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:VR;t.stringify&&(t=t.stringify);let e="";return t(this,(t=>{e+=t})),e}warn(t,e,r){let n={node:this};for(let t in r)n[t]=r[t];return t.warn(e,n)}get proxyOf(){return this}};var HR=YR;YR.default=YR;let ZR=HR,JR=class extends ZR{constructor(t){t&&void 0!==t.value&&"string"!=typeof t.value&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}};var XR=JR;JR.default=JR;var KR={nanoid:function(){let t="",e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:21;return function(){let r="",n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e;for(;n--;)r+=t[Math.random()*t.length|0];return r}}};let{SourceMapConsumer:qR,SourceMapGenerator:$R}=OR,{existsSync:QR,readFileSync:tE}=OR,{dirname:eE,join:rE}=OR;let nE=class{constructor(t,e){if(!1===e.map)return;this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let r=e.map?e.map.prev:void 0,n=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=eE(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new qR(this.text)),this.consumerCache}decodeInline(t){if(/^data:application\/json;charset=utf-?8,/.test(t)||/^data:application\/json,/.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(t)||/^data:application\/json;base64,/.test(t))return e=t.substr(RegExp.lastMatch.length),Buffer?Buffer.from(e,"base64").toString():window.atob(e);var e;let r=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return"object"==typeof t&&("string"==typeof t.mappings||"string"==typeof t._mappings||Array.isArray(t.sections))}loadAnnotation(t){let e=t.match(/\/\*\s*# sourceMappingURL=/gm);if(!e)return;let r=t.lastIndexOf(e.pop()),n=t.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(t.substring(r,n)))}loadFile(t){if(this.root=eE(t),QR(t))return this.mapFile=t,tE(t,"utf-8").toString().trim()}loadMap(t,e){if(!1===e)return!1;if(e){if("string"==typeof e)return e;if("function"!=typeof e){if(e instanceof qR)return $R.fromSourceMap(e).toString();if(e instanceof $R)return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+e.toString())}{let r=e(t);if(r){let t=this.loadFile(r);if(!t)throw new Error("Unable to load previous source map: "+r.toString());return t}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let e=this.annotation;return t&&(e=rE(eE(t),e)),this.loadFile(e)}}}startWith(t,e){return!!t&&t.substr(0,e.length)===e}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var oE=nE;nE.default=nE;let{SourceMapConsumer:sE,SourceMapGenerator:iE}=OR,{fileURLToPath:aE,pathToFileURL:lE}=OR,{isAbsolute:cE,resolve:uE}=OR,{nanoid:hE}=KR,pE=OR,fE=TR,dE=oE,mE=Symbol("fromOffsetCache"),gE=Boolean(sE&&iE),yE=Boolean(uE&&cE),vE=class{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||"object"==typeof t&&!t.toString)throw new Error("PostCSS received ".concat(t," instead of CSS string"));if(this.css=t.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!yE||/^\w+:\/\//.test(e.from)||cE(e.from)?this.file=e.from:this.file=uE(e.from)),yE&&gE){let t=new dE(this.css,e);if(t.text){this.map=t;let e=t.consumer().file;!this.file&&e&&(this.file=this.mapResolve(e))}}this.file||(this.id="<input css "+hE(6)+">"),this.map&&(this.map.file=this.from)}error(t,e,r){let n,o,s,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(e&&"object"==typeof e){let t=e,n=r;if("number"==typeof t.offset){let n=this.fromOffset(t.offset);e=n.line,r=n.col}else e=t.line,r=t.column;if("number"==typeof n.offset){let t=this.fromOffset(n.offset);o=t.line,s=t.col}else o=n.line,s=n.column}else if(!r){let t=this.fromOffset(e);e=t.line,r=t.col}let a=this.origin(e,r,o,s);return n=a?new fE(t,void 0===a.endLine?a.line:{column:a.column,line:a.line},void 0===a.endLine?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,i.plugin):new fE(t,void 0===o?e:{column:r,line:e},void 0===o?r:{column:s,line:o},this.css,this.file,i.plugin),n.input={column:r,endColumn:s,endLine:o,line:e,source:this.css},this.file&&(lE&&(n.input.url=lE(this.file).toString()),n.input.file=this.file),n}fromOffset(t){let e,r;if(this[mE])r=this[mE];else{let t=this.css.split("\n");r=new Array(t.length);let e=0;for(let n=0,o=t.length;n<o;n++)r[n]=e,e+=t[n].length+1;this[mE]=r}e=r[r.length-1];let n=0;if(t>=e)n=r.length-1;else{let e,o=r.length-2;for(;n<o;)if(e=n+(o-n>>1),t<r[e])o=e-1;else{if(!(t>=r[e+1])){n=e;break}n=e+1}}return{col:t-r[n]+1,line:n+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:uE(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,e,r,n){if(!this.map)return!1;let o,s,i=this.map.consumer(),a=i.originalPositionFor({column:e,line:t});if(!a.source)return!1;"number"==typeof r&&(o=i.originalPositionFor({column:n,line:r})),s=cE(a.source)?lE(a.source):new URL(a.source,this.map.consumer().sourceRoot||lE(this.map.mapFile));let l={column:a.column,endColumn:o&&o.column,endLine:o&&o.line,line:a.line,url:s.toString()};if("file:"===s.protocol){if(!aE)throw new Error("file: protocol is not available in this PostCSS build");l.file=aE(s)}let c=i.sourceContentFor(a.source);return c&&(l.source=c),l}toJSON(){let t={};for(let e of["hasBOM","css","file","id"])null!=this[e]&&(t[e]=this[e]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}get from(){return this.file||this.id}};var wE=vE;vE.default=vE,pE&&pE.registerInput&&pE.registerInput(vE);let{SourceMapConsumer:bE,SourceMapGenerator:SE}=OR,{dirname:CE,relative:IE,resolve:xE,sep:kE}=OR,{pathToFileURL:AE}=OR,OE=wE,RE=Boolean(bE&&SE),EE=Boolean(CE&&xE&&IE&&kE);var ME=class{constructor(t,e,r,n){this.stringify=t,this.mapOpts=r.map||{},this.root=e,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;t=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let e="\n";this.css.includes("\r\n")&&(e="\r\n"),this.css+=e+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let e,r=this.toUrl(this.path(t.file)),n=t.root||CE(t.file);!1===this.mapOpts.sourcesContent?(e=new bE(t.text),e.sourcesContent&&(e.sourcesContent=null)):e=t.consumer(),this.map.applySourceMap(e,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let t;for(let e=this.root.nodes.length-1;e>=0;e--)t=this.root.nodes[e],"comment"===t.type&&0===t.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(e)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),EE&&RE&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,(e=>{t+=e})),[t]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=SE.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new SE({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 SE({file:this.outputFile(),ignoreInvalidMapping:!0});let t,e,r=1,n=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,((i,a,l)=>{if(this.css+=i,a&&"end"!==l&&(s.generated.line=r,s.generated.column=n-1,a.source&&a.source.start?(s.source=this.sourcePath(a),s.original.line=a.source.start.line,s.original.column=a.source.start.column-1,this.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,this.map.addMapping(s))),t=i.match(/\n/g),t?(r+=t.length,e=i.lastIndexOf("\n"),n=i.length-e):n+=i.length,a&&"start"!==l){let t=a.parent||{raws:{}};("decl"===a.type||"atrule"===a.type&&!a.nodes)&&a===t.last&&!t.raws.semicolon||(a.source&&a.source.end?(s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=r,s.generated.column=n-2,this.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=r,s.generated.column=n-1,this.map.addMapping(s)))}}))}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((t=>t.annotation)))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let t=this.mapOpts.annotation;return(void 0===t||!0===t)&&(!this.previous().length||this.previous().some((t=>t.inline)))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((t=>t.withContent()))}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute)return t;if(60===t.charCodeAt(0))return t;if(/^\w+:\/\//.test(t))return t;let e=this.memoizedPaths.get(t);if(e)return e;let r=this.opts.to?CE(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=CE(xE(r,this.mapOpts.annotation)));let n=IE(r,t);return this.memoizedPaths.set(t,n),n}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((t=>{if(t.source&&t.source.input.map){let e=t.source.input.map;this.previousMaps.includes(e)||this.previousMaps.push(e)}}));else{let t=new OE(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk((e=>{if(e.source){let r=e.source.input.from;if(r&&!t[r]){t[r]=!0;let n=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(n,e.source.input.css)}}}));else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let e=this.memoizedFileURLs.get(t);if(e)return e;if(AE){let e=AE(t).toString();return this.memoizedFileURLs.set(t,e),e}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let e=this.memoizedURLs.get(t);if(e)return e;"\\"===kE&&(t=t.replace(/\\/g,"/"));let r=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,r),r}};let TE=HR,LE=class extends TE{constructor(t){super(t),this.type="comment"}};var NE=LE;LE.default=LE;let PE,DE,FE,UE,{isClean:_E,my:BE}=LR,jE=XR,zE=NE,WE=HR;function VE(t){return t.map((t=>(t.nodes&&(t.nodes=VE(t.nodes)),delete t.source,t)))}function GE(t){if(t[_E]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)GE(e)}let YE=class t extends WE{append(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let e of this.nodes)e.cleanRaws(t)}each(t){if(!this.proxyOf.nodes)return;let e,r,n=this.getIterator();for(;this.indexes[n]<this.proxyOf.nodes.length&&(e=this.indexes[n],r=t(this.proxyOf.nodes[e],e),!1!==r);)this.indexes[n]+=1;return delete this.indexes[n],r}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:t[e]?"each"===e||"string"==typeof e&&e.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t[e](...n.map((t=>"function"==typeof t?(e,r)=>t(e.toProxy(),r):t)))}:"every"===e||"some"===e?r=>t[e]((function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];return r(t.toProxy(),...n)})):"root"===e?()=>t.root().toProxy():"nodes"===e?t.nodes.map((t=>t.toProxy())):"first"===e||"last"===e?t[e].toProxy():t[e]:t[e],set:(t,e,r)=>(t[e]===r||(t[e]=r,"name"!==e&&"params"!==e&&"selector"!==e||t.markDirty()),!0)}}index(t){return"number"==typeof t?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,e){let r,n=this.index(t),o=this.normalize(e,this.proxyOf.nodes[n]).reverse();n=this.index(t);for(let t of o)this.proxyOf.nodes.splice(n+1,0,t);for(let t in this.indexes)r=this.indexes[t],n<r&&(this.indexes[t]=r+o.length);return this.markDirty(),this}insertBefore(t,e){let r,n=this.index(t),o=0===n&&"prepend",s=this.normalize(e,this.proxyOf.nodes[n],o).reverse();n=this.index(t);for(let t of s)this.proxyOf.nodes.splice(n,0,t);for(let t in this.indexes)r=this.indexes[t],n<=r&&(this.indexes[t]=r+s.length);return this.markDirty(),this}normalize(e,r){if("string"==typeof e)e=VE(PE(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new jE(e)]}else if(e.selector)e=[new DE(e)];else if(e.name)e=[new FE(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new zE(e)]}return e.map((e=>(e[BE]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[_E]&&GE(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e)))}prepend(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){let e;t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);for(let r in this.indexes)e=this.indexes[r],e>=t&&(this.indexes[r]=e-1);return this.markDirty(),this}replaceValues(t,e,r){return r||(r=e,e={}),this.walkDecls((n=>{e.props&&!e.props.includes(n.prop)||e.fast&&!n.value.includes(e.fast)||(n.value=n.value.replace(t,r))})),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each(((e,r)=>{let n;try{n=t(e,r)}catch(t){throw e.addToError(t)}return!1!==n&&e.walk&&(n=e.walk(t)),n}))}walkAtRules(t,e){return e?t instanceof RegExp?this.walk(((r,n)=>{if("atrule"===r.type&&t.test(r.name))return e(r,n)})):this.walk(((r,n)=>{if("atrule"===r.type&&r.name===t)return e(r,n)})):(e=t,this.walk(((t,r)=>{if("atrule"===t.type)return e(t,r)})))}walkComments(t){return this.walk(((e,r)=>{if("comment"===e.type)return t(e,r)}))}walkDecls(t,e){return e?t instanceof RegExp?this.walk(((r,n)=>{if("decl"===r.type&&t.test(r.prop))return e(r,n)})):this.walk(((r,n)=>{if("decl"===r.type&&r.prop===t)return e(r,n)})):(e=t,this.walk(((t,r)=>{if("decl"===t.type)return e(t,r)})))}walkRules(t,e){return e?t instanceof RegExp?this.walk(((r,n)=>{if("rule"===r.type&&t.test(r.selector))return e(r,n)})):this.walk(((r,n)=>{if("rule"===r.type&&r.selector===t)return e(r,n)})):(e=t,this.walk(((t,r)=>{if("rule"===t.type)return e(t,r)})))}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]}};YE.registerParse=t=>{PE=t},YE.registerRule=t=>{DE=t},YE.registerAtRule=t=>{FE=t},YE.registerRoot=t=>{UE=t};var HE=YE;YE.default=YE,YE.rebuild=t=>{"atrule"===t.type?Object.setPrototypeOf(t,FE.prototype):"rule"===t.type?Object.setPrototypeOf(t,DE.prototype):"decl"===t.type?Object.setPrototypeOf(t,jE.prototype):"comment"===t.type?Object.setPrototypeOf(t,zE.prototype):"root"===t.type&&Object.setPrototypeOf(t,UE.prototype),t[BE]=!0,t.nodes&&t.nodes.forEach((t=>{YE.rebuild(t)}))};let ZE,JE,XE=HE,KE=class extends XE{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new ZE(new JE,this,t).stringify()}};KE.registerLazyResult=t=>{ZE=t},KE.registerProcessor=t=>{JE=t};var qE=KE;KE.default=KE;let $E={};var QE=function(t){$E[t]||($E[t]=!0,"undefined"!=typeof console&&console.warn&&console.warn(t))};let tM=class{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.type="warning",this.text=t,e.node&&e.node.source){let t=e.node.rangeBy(e);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in e)this[t]=e[t]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var eM=tM;tM.default=tM;let rM=eM,nM=class{constructor(t,e,r){this.processor=t,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(e.plugin=this.lastPlugin.postcssPlugin);let r=new rM(t,e);return this.messages.push(r),r}warnings(){return this.messages.filter((t=>"warning"===t.type))}get content(){return this.css}};var oM=nM;nM.default=nM;const sM="'".charCodeAt(0),iM='"'.charCodeAt(0),aM="\\".charCodeAt(0),lM="/".charCodeAt(0),cM="\n".charCodeAt(0),uM=" ".charCodeAt(0),hM="\f".charCodeAt(0),pM="\t".charCodeAt(0),fM="\r".charCodeAt(0),dM="[".charCodeAt(0),mM="]".charCodeAt(0),gM="(".charCodeAt(0),yM=")".charCodeAt(0),vM="{".charCodeAt(0),wM="}".charCodeAt(0),bM=";".charCodeAt(0),SM="*".charCodeAt(0),CM=":".charCodeAt(0),IM="@".charCodeAt(0),xM=/[\t\n\f\r "#'()/;[\\\]{}]/g,kM=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,AM=/.[\r\n"'(/\\]/,OM=/[\da-f]/i;let RM=HE,EM=class extends RM{constructor(t){super(t),this.type="atrule"}append(){return this.proxyOf.nodes||(this.nodes=[]),super.append(...arguments)}prepend(){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...arguments)}};var MM=EM;EM.default=EM,RM.registerAtRule(EM);let TM,LM,NM=HE,PM=class extends NM{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,e,r){let n=super.normalize(t);if(e)if("prepend"===r)this.nodes.length>1?e.raws.before=this.nodes[1].raws.before:delete e.raws.before;else if(this.first!==e)for(let t of n)t.raws.before=e.raws.before;return n}removeChild(t,e){let r=this.index(t);return!e&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(t)}toResult(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new TM(new LM,this,t).stringify()}};PM.registerLazyResult=t=>{TM=t},PM.registerProcessor=t=>{LM=t};var DM=PM;PM.default=PM,NM.registerRoot(PM);let FM={comma:t=>FM.split(t,[","],!0),space:t=>FM.split(t,[" ","\n","\t"]),split(t,e,r){let n=[],o="",s=!1,i=0,a=!1,l="",c=!1;for(let r of t)c?c=!1:"\\"===r?c=!0:a?r===l&&(a=!1):'"'===r||"'"===r?(a=!0,l=r):"("===r?i+=1:")"===r?i>0&&(i-=1):0===i&&e.includes(r)&&(s=!0),s?(""!==o&&n.push(o.trim()),o="",s=!1):o+=r;return(r||""!==o)&&n.push(o.trim()),n}};var UM=FM;FM.default=FM;let _M=HE,BM=UM,jM=class extends _M{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return BM.comma(this.selector)}set selectors(t){let e=this.selector?this.selector.match(/,\s*/):null,r=e?e[0]:","+this.raw("between","beforeOpen");this.selector=t.join(r)}};var zM=jM;jM.default=jM,_M.registerRule(jM);let WM=XR,VM=function(t){let e,r,n,o,s,i,a,l,c,u,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},p=t.css.valueOf(),f=h.ignoreErrors,d=p.length,m=0,g=[],y=[];function v(e){throw t.error("Unclosed "+e,m)}return{back:function(t){y.push(t)},endOfFile:function(){return 0===y.length&&m>=d},nextToken:function(t){if(y.length)return y.pop();if(m>=d)return;let h=!!t&&t.ignoreUnclosed;switch(e=p.charCodeAt(m),e){case cM:case uM:case pM:case fM:case hM:r=m;do{r+=1,e=p.charCodeAt(r)}while(e===uM||e===cM||e===pM||e===fM||e===hM);u=["space",p.slice(m,r)],m=r-1;break;case dM:case mM:case vM:case wM:case CM:case bM:case yM:{let t=String.fromCharCode(e);u=[t,t,m];break}case gM:if(l=g.length?g.pop()[1]:"",c=p.charCodeAt(m+1),"url"===l&&c!==sM&&c!==iM&&c!==uM&&c!==cM&&c!==pM&&c!==hM&&c!==fM){r=m;do{if(i=!1,r=p.indexOf(")",r+1),-1===r){if(f||h){r=m;break}v("bracket")}for(a=r;p.charCodeAt(a-1)===aM;)a-=1,i=!i}while(i);u=["brackets",p.slice(m,r+1),m,r],m=r}else r=p.indexOf(")",m+1),o=p.slice(m,r+1),-1===r||AM.test(o)?u=["(","(",m]:(u=["brackets",o,m,r],m=r);break;case sM:case iM:n=e===sM?"'":'"',r=m;do{if(i=!1,r=p.indexOf(n,r+1),-1===r){if(f||h){r=m+1;break}v("string")}for(a=r;p.charCodeAt(a-1)===aM;)a-=1,i=!i}while(i);u=["string",p.slice(m,r+1),m,r],m=r;break;case IM:xM.lastIndex=m+1,xM.test(p),r=0===xM.lastIndex?p.length-1:xM.lastIndex-2,u=["at-word",p.slice(m,r+1),m,r],m=r;break;case aM:for(r=m,s=!0;p.charCodeAt(r+1)===aM;)r+=1,s=!s;if(e=p.charCodeAt(r+1),s&&e!==lM&&e!==uM&&e!==cM&&e!==pM&&e!==fM&&e!==hM&&(r+=1,OM.test(p.charAt(r)))){for(;OM.test(p.charAt(r+1));)r+=1;p.charCodeAt(r+1)===uM&&(r+=1)}u=["word",p.slice(m,r+1),m,r],m=r;break;default:e===lM&&p.charCodeAt(m+1)===SM?(r=p.indexOf("*/",m+2)+1,0===r&&(f||h?r=p.length:v("comment")),u=["comment",p.slice(m,r+1),m,r],m=r):(kM.lastIndex=m+1,kM.test(p),r=0===kM.lastIndex?p.length-1:kM.lastIndex-2,u=["word",p.slice(m,r+1),m,r],g.push(u),m=r)}return m++,u},position:function(){return m}}},GM=NE,YM=MM,HM=DM,ZM=zM;const JM={empty:!0,space:!0};var XM=class{constructor(t){this.input=t,this.root=new HM,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let e,r,n,o=new YM;o.name=t[1].slice(1),""===o.name&&this.unnamedAtrule(o,t),this.init(o,t[2]);let s=!1,i=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=(t=this.tokenizer.nextToken())[0],"("===e||"["===e?l.push("("===e?")":"]"):"{"===e&&l.length>0?l.push("}"):e===l[l.length-1]&&l.pop(),0===l.length){if(";"===e){o.source.end=this.getPosition(t[2]),o.source.end.offset++,this.semicolon=!0;break}if("{"===e){i=!0;break}if("}"===e){if(a.length>0){for(n=a.length-1,r=a[n];r&&"space"===r[0];)r=a[--n];r&&(o.source.end=this.getPosition(r[3]||r[2]),o.source.end.offset++)}this.end(t);break}a.push(t)}else a.push(t);if(this.tokenizer.endOfFile()){s=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(o.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(o,"params",a),s&&(t=a[a.length-1],o.source.end=this.getPosition(t[3]||t[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),i&&(o.nodes=[],this.current=o)}checkMissedSemicolon(t){let e=this.colon(t);if(!1===e)return;let r,n=0;for(let o=e-1;o>=0&&(r=t[o],"space"===r[0]||(n+=1,2!==n));o--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}colon(t){let e,r,n,o=0;for(let[s,i]of t.entries()){if(e=i,r=e[0],"("===r&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return s}this.doubleColon(e)}n=e}return!1}comment(t){let e=new GM;this.init(e,t[2]),e.source.end=this.getPosition(t[3]||t[2]),e.source.end.offset++;let r=t[1].slice(2,-2);if(/^\s*$/.test(r))e.text="",e.raws.left=r,e.raws.right="";else{let t=r.match(/^(\s*)([^]*\S)(\s*)$/);e.text=t[2],e.raws.left=t[1],e.raws.right=t[3]}}createTokenizer(){this.tokenizer=VM(this.input)}decl(t,e){let r=new WM;this.init(r,t[0][2]);let n,o=t[t.length-1];for(";"===o[0]&&(this.semicolon=!0,t.pop()),r.source.end=this.getPosition(o[3]||o[2]||function(t){for(let e=t.length-1;e>=0;e--){let r=t[e],n=r[3]||r[2];if(n)return n}}(t)),r.source.end.offset++;"word"!==t[0][0];)1===t.length&&this.unknownWord(t),r.raws.before+=t.shift()[1];for(r.source.start=this.getPosition(t[0][2]),r.prop="";t.length;){let e=t[0][0];if(":"===e||"space"===e||"comment"===e)break;r.prop+=t.shift()[1]}for(r.raws.between="";t.length;){if(n=t.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let s,i=[];for(;t.length&&(s=t[0][0],"space"===s||"comment"===s);)i.push(t.shift());this.precheckMissedSemicolon(t);for(let e=t.length-1;e>=0;e--){if(n=t[e],"!important"===n[1].toLowerCase()){r.important=!0;let n=this.stringFrom(t,e);n=this.spacesFromEnd(t)+n," !important"!==n&&(r.raws.important=n);break}if("important"===n[1].toLowerCase()){let n=t.slice(0),o="";for(let t=e;t>0;t--){let e=n[t][0];if(0===o.trim().indexOf("!")&&"space"!==e)break;o=n.pop()[1]+o}0===o.trim().indexOf("!")&&(r.important=!0,r.raws.important=o,t=n)}if("space"!==n[0]&&"comment"!==n[0])break}t.some((t=>"space"!==t[0]&&"comment"!==t[0]))&&(r.raws.between+=i.map((t=>t[1])).join(""),i=[]),this.raw(r,"value",i.concat(t),e),r.value.includes(":")&&!e&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let e=new ZM;this.init(e,t[2]),e.selector="",e.raws.between="",this.current=e}end(t){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(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}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(t){if(this.spaces+=t[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let e=this.input.fromOffset(t);return{column:e.col,line:e.line,offset:t}}init(t,e){this.current.push(t),t.source={input:this.input,start:this.getPosition(e)},t.raws.before=this.spaces,this.spaces="","comment"!==t.type&&(this.semicolon=!1)}other(t){let e=!1,r=null,n=!1,o=null,s=[],i=t[1].startsWith("--"),a=[],l=t;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)o||(o=l),s.push("("===r?")":"]");else if(i&&n&&"{"===r)o||(o=l),s.push("}");else if(0===s.length){if(";"===r){if(n)return void this.decl(a,i);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),e=!0;break}":"===r&&(n=!0)}else r===s[s.length-1]&&(s.pop(),0===s.length&&(o=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(e=!0),s.length>0&&this.unclosedBracket(o),e&&n){if(!i)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,i)}else this.unknownWord(a)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t)}this.endFile()}precheckMissedSemicolon(){}raw(t,e,r,n){let o,s,i,a,l=r.length,c="",u=!0;for(let t=0;t<l;t+=1)o=r[t],s=o[0],"space"!==s||t!==l-1||n?"comment"===s?(a=r[t-1]?r[t-1][0]:"empty",i=r[t+1]?r[t+1][0]:"empty",JM[a]||JM[i]||","===c.slice(-1)?u=!1:c+=o[1]):c+=o[1]:u=!1;if(!u){let n=r.reduce(((t,e)=>t+e[1]),"");t.raws[e]={raw:n,value:c}}t[e]=c}rule(t){t.pop();let e=new ZM;this.init(e,t[0][2]),e.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(e,"selector",t),this.current=e}spacesAndCommentsFromEnd(t){let e,r="";for(;t.length&&(e=t[t.length-1][0],"space"===e||"comment"===e);)r=t.pop()[1]+r;return r}spacesAndCommentsFromStart(t){let e,r="";for(;t.length&&(e=t[0][0],"space"===e||"comment"===e);)r+=t.shift()[1];return r}spacesFromEnd(t){let e,r="";for(;t.length&&(e=t[t.length-1][0],"space"===e);)r=t.pop()[1]+r;return r}stringFrom(t,e){let r="";for(let n=e;n<t.length;n++)r+=t[n][1];return t.splice(e,t.length-e),r}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,e){throw this.input.error("At-rule without name",{offset:e[2]},{offset:e[2]+e[1].length})}};let KM=HE,qM=XM,$M=wE;function QM(t,e){let r=new $M(t,e),n=new qM(r);try{n.parse()}catch(t){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===t.name&&e&&e.from&&(/\.scss$/i.test(e.from)?t.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(e.from)?t.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(e.from)&&(t.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),t}return n.root}var tT=QM;QM.default=QM,KM.registerParse(QM);let{isClean:eT,my:rT}=LR,nT=ME,oT=_R,sT=HE,iT=qE,aT=QE,lT=oM,cT=tT,uT=DM;const hT={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},pT={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},fT={Once:!0,postcssPlugin:!0,prepare:!0},dT=0;function mT(t){return"object"==typeof t&&"function"==typeof t.then}function gT(t){let e=!1,r=hT[t.type];return"decl"===t.type?e=t.prop.toLowerCase():"atrule"===t.type&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,dT,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,dT,r+"Exit"]:[r,r+"Exit"]}function yT(t){let e;return e="document"===t.type?["Document",dT,"DocumentExit"]:"root"===t.type?["Root",dT,"RootExit"]:gT(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function vT(t){return t[eT]=!1,t.nodes&&t.nodes.forEach((t=>vT(t))),t}let wT={},bT=class t{constructor(e,r,n){let o;if(this.stringified=!1,this.processed=!1,"object"!=typeof r||null===r||"root"!==r.type&&"document"!==r.type)if(r instanceof t||r instanceof lT)o=vT(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let t=cT;n.syntax&&(t=n.syntax.parse),n.parser&&(t=n.parser),t.parse&&(t=t.parse);try{o=t(r,n)}catch(t){this.processed=!0,this.error=t}o&&!o[rT]&&sT.rebuild(o)}else o=vT(r);this.result=new lT(e,o,n),this.helpers={...wT,postcss:wT,result:this.result},this.plugins=this.processor.plugins.map((t=>"object"==typeof t&&t.prepare?{...t,...t.prepare(this.result)}:t))}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,e){let r=this.result.lastPlugin;try{if(e&&e.addToError(t),this.error=t,"CssSyntaxError"!==t.name||t.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){let t=r.postcssPlugin,e=r.postcssVersion,n=this.result.processor.version,o=e.split("."),s=n.split(".");(o[0]!==s[0]||parseInt(o[1])>parseInt(s[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+n+", but "+t+" uses "+e+". Perhaps this is the source of the error below.")}}else t.plugin=r.postcssPlugin,t.setMessage()}catch(t){console&&console.error&&console.error(t)}return t}prepareVisitors(){this.listeners={};let t=(t,e,r)=>{this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push([t,r])};for(let e of this.plugins)if("object"==typeof e)for(let r in e){if(!pT[r]&&/^[A-Z]/.test(r))throw new Error("Unknown event ".concat(r," in ").concat(e.postcssPlugin,". Try to update PostCSS (").concat(this.processor.version," now)."));if(!fT[r])if("object"==typeof e[r])for(let n in e[r])t(e,"*"===n?r:r+"-"+n.toLowerCase(),e[r][n]);else"function"==typeof e[r]&&t(e,r,e[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t<this.plugins.length;t++){let e=this.plugins[t],r=this.runOnRoot(e);if(mT(r))try{await r}catch(t){throw this.handleError(t)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[eT];){t[eT]=!0;let e=[yT(t)];for(;e.length>0;){let t=this.visitTick(e);if(mT(t))try{await t}catch(t){let r=e[e.length-1].node;throw this.handleError(t,r)}}}if(this.listeners.OnceExit)for(let[e,r]of this.listeners.OnceExit){this.result.lastPlugin=e;try{if("document"===t.type){let e=t.nodes.map((t=>r(t,this.helpers)));await Promise.all(e)}else await r(t,this.helpers)}catch(t){throw this.handleError(t)}}}return this.processed=!0,this.stringify()}runOnRoot(t){this.result.lastPlugin=t;try{if("object"==typeof t&&t.Once){if("document"===this.result.root.type){let e=this.result.root.nodes.map((e=>t.Once(e,this.helpers)));return mT(e[0])?Promise.all(e):e}return t.Once(this.result.root,this.helpers)}if("function"==typeof t)return t(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,e=oT;t.syntax&&(e=t.syntax.stringify),t.stringifier&&(e=t.stringifier),e.stringify&&(e=e.stringify);let r=new nT(e,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[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 t of this.plugins){if(mT(this.runOnRoot(t)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[eT];)t[eT]=!0,this.walkSync(t);if(this.listeners.OnceExit)if("document"===t.type)for(let e of t.nodes)this.visitSync(this.listeners.OnceExit,e);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(t,e){return"production"!==process.env.NODE_ENV&&("from"in this.opts||aT("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(t,e)}toString(){return this.css}visitSync(t,e){for(let[r,n]of t){let t;this.result.lastPlugin=r;try{t=n(e,this.helpers)}catch(t){throw this.handleError(t,e.proxyOf)}if("root"!==e.type&&"document"!==e.type&&!e.parent)return!0;if(mT(t))throw this.getAsyncError()}}visitTick(t){let e=t[t.length-1],{node:r,visitors:n}=e;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void t.pop();if(n.length>0&&e.visitorIndex<n.length){let[t,o]=n[e.visitorIndex];e.visitorIndex+=1,e.visitorIndex===n.length&&(e.visitors=[],e.visitorIndex=0),this.result.lastPlugin=t;try{return o(r.toProxy(),this.helpers)}catch(t){throw this.handleError(t,r)}}if(0!==e.iterator){let n,o=e.iterator;for(;n=r.nodes[r.indexes[o]];)if(r.indexes[o]+=1,!n[eT])return n[eT]=!0,void t.push(yT(n));e.iterator=0,delete r.indexes[o]}let o=e.events;for(;e.eventIndex<o.length;){let t=o[e.eventIndex];if(e.eventIndex+=1,t===dT)return void(r.nodes&&r.nodes.length&&(r[eT]=!0,e.iterator=r.getIterator()));if(this.listeners[t])return void(e.visitors=this.listeners[t])}t.pop()}walkSync(t){t[eT]=!0;let e=gT(t);for(let r of e)if(r===dT)t.nodes&&t.each((t=>{t[eT]||this.walkSync(t)}));else{let e=this.listeners[r];if(e&&this.visitSync(e,t.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"}};bT.registerPostcss=t=>{wT=t};var ST=bT;bT.default=bT,uT.registerLazyResult(bT),iT.registerLazyResult(bT);let CT=ME,IT=_R,xT=QE,kT=tT;const AT=oM;let OT=class{constructor(t,e,r){let n;e=e.toString(),this.stringified=!1,this._processor=t,this._css=e,this._opts=r,this._map=void 0;let o=IT;this.result=new AT(this._processor,n,this._opts),this.result.css=e;let s=this;Object.defineProperty(this.result,"root",{get:()=>s.root});let i=new CT(o,n,this._opts,e);if(i.isMap()){let[t,e]=i.generate();t&&(this.result.css=t),e&&(this.result.map=e)}else i.clearAnnotation(),this.result.css=i.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,e){return"production"!==process.env.NODE_ENV&&("from"in this._opts||xT("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(t,e)}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 t,e=kT;try{t=e(this._css,this._opts)}catch(t){this.error=t}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}};var RT=OT;OT.default=OT;let ET=RT,MT=ST,TT=qE,LT=DM,NT=class{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.version="8.4.38",this.plugins=this.normalize(t)}normalize(t){let e=[];for(let r of t)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))e=e.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)e.push(r);else if("function"==typeof r)e.push(r);else{if("object"!=typeof r||!r.parse&&!r.stringify)throw new Error(r+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)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.")}return e}process(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.plugins.length||e.parser||e.stringifier||e.syntax?new MT(this,t,e):new ET(this,t,e)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}};var PT=NT;NT.default=NT,LT.registerProcessor(NT),TT.registerProcessor(NT);let DT=XR,FT=oE,UT=NE,_T=MM,BT=wE,jT=DM,zT=zM;function WT(t,e){if(Array.isArray(t))return t.map((t=>WT(t)));let{inputs:r,...n}=t;if(r){e=[];for(let t of r){let r={...t,__proto__:BT.prototype};r.map&&(r.map={...r.map,__proto__:FT.prototype}),e.push(r)}}if(n.nodes&&(n.nodes=t.nodes.map((t=>WT(t,e)))),n.source){let{inputId:t,...r}=n.source;n.source=r,null!=t&&(n.source.input=e[t])}if("root"===n.type)return new jT(n);if("decl"===n.type)return new DT(n);if("rule"===n.type)return new zT(n);if("comment"===n.type)return new UT(n);if("atrule"===n.type)return new _T(n);throw new Error("Unknown node type: "+t.type)}var VT=WT;WT.default=WT;let GT=TR,YT=XR,HT=ST,ZT=HE,JT=PT,XT=_R,KT=VT,qT=qE,$T=eM,QT=NE,tL=MM,eL=oM,rL=wE,nL=tT,oL=UM,sL=zM,iL=DM,aL=HR;function lL(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new JT(e)}lL.plugin=function(t,e){let r,n=!1;function o(){console&&console.warn&&!n&&(n=!0,console.warn(t+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(t+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let r=e(...arguments);return r.postcssPlugin=t,r.postcssVersion=(new JT).version,r}return Object.defineProperty(o,"postcss",{get:()=>(r||(r=o()),r)}),o.process=function(t,e,r){return lL([o(r)]).process(t,e)},o},lL.stringify=XT,lL.parse=nL,lL.fromJSON=KT,lL.list=oL,lL.comment=t=>new QT(t),lL.atRule=t=>new tL(t),lL.decl=t=>new YT(t),lL.rule=t=>new sL(t),lL.root=t=>new iL(t),lL.document=t=>new qT(t),lL.CssSyntaxError=GT,lL.Declaration=YT,lL.Container=ZT,lL.Processor=JT,lL.Document=qT,lL.Comment=QT,lL.Warning=$T,lL.AtRule=tL,lL.Result=eL,lL.Input=rL,lL.Rule=sL,lL.Root=iL,lL.Node=aL,HT.registerPostcss(lL);var cL=lL;lL.default=lL;const uL=SR(cL);uL.stringify,uL.fromJSON,uL.plugin,uL.parse,uL.list,uL.document,uL.comment,uL.atRule,uL.rule,uL.decl,uL.root,uL.CssSyntaxError,uL.Declaration,uL.Container,uL.Processor,uL.Document,uL.Comment,uL.Warning,uL.AtRule,uL.Result,uL.Input,uL.Rule,uL.Root,uL.Node;class hL{constructor(){bR(this,"parentElement",null),bR(this,"parentNode",null),bR(this,"ownerDocument"),bR(this,"firstChild",null),bR(this,"lastChild",null),bR(this,"previousSibling",null),bR(this,"nextSibling",null),bR(this,"ELEMENT_NODE",1),bR(this,"TEXT_NODE",3),bR(this,"nodeType"),bR(this,"nodeName"),bR(this,"RRNodeType")}get childNodes(){const t=[];let e=this.firstChild;for(;e;)t.push(e),e=e.nextSibling;return t}contains(t){if(!(t instanceof hL))return!1;if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;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,e){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"}}const pL={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},fL={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},dL={},mL=()=>!!globalThis.Zone;function gL(t){if(dL[t])return dL[t];const e=globalThis[t],r=e.prototype,n=t in pL?pL[t]:void 0,o=Boolean(n&&n.every((t=>{var e,n;return Boolean(null==(n=null==(e=Object.getOwnPropertyDescriptor(r,t))?void 0:e.get)?void 0:n.toString().includes("[native code]"))}))),s=t in fL?fL[t]:void 0,i=Boolean(s&&s.every((t=>{var e;return"function"==typeof r[t]&&(null==(e=r[t])?void 0:e.toString().includes("[native code]"))})));if(o&&i&&!mL())return dL[t]=e.prototype,e.prototype;try{const n=document.createElement("iframe");document.body.appendChild(n);const o=n.contentWindow;if(!o)return e.prototype;const s=o[t].prototype;return document.body.removeChild(n),s?dL[t]=s:r}catch{return r}}const yL={};function vL(t,e,r){var n;const o="".concat(t,".").concat(String(r));if(yL[o])return yL[o].call(e);const s=gL(t),i=null==(n=Object.getOwnPropertyDescriptor(s,r))?void 0:n.get;return i?(yL[o]=i,i.call(e)):e[r]}const wL={};function bL(t,e,r){const n="".concat(t,".").concat(String(r));if(wL[n])return wL[n].bind(e);const o=gL(t)[r];return"function"!=typeof o?e[r]:(wL[n]=o,o.bind(e))}function SL(){return gL("MutationObserver").constructor}function CL(t,e,r){try{if(!(e in t))return()=>{};const n=t[e],o=r(n);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:n}})),t[e]=o,()=>{t[e]=n}}catch{return()=>{}}}const IL={ownerDocument:function(t){return vL("Node",t,"ownerDocument")},childNodes:function(t){return vL("Node",t,"childNodes")},parentNode:function(t){return vL("Node",t,"parentNode")},parentElement:function(t){return vL("Node",t,"parentElement")},textContent:function(t){return vL("Node",t,"textContent")},contains:function(t,e){return bL("Node",t,"contains")(e)},getRootNode:function(t){return bL("Node",t,"getRootNode")()},host:function(t){return t&&"host"in t?vL("ShadowRoot",t,"host"):null},styleSheets:function(t){return t.styleSheets},shadowRoot:function(t){return t&&"shadowRoot"in t?vL("Element",t,"shadowRoot"):null},querySelector:function(t,e){return vL("Element",t,"querySelector")(e)},querySelectorAll:function(t,e){return vL("Element",t,"querySelectorAll")(e)},mutationObserver:SL,patch:CL};function xL(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;const n={capture:!0,passive:!0};return r.addEventListener(t,e,n),()=>r.removeEventListener(t,e,n)}const kL="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let AL={map:{},getId:()=>(console.error(kL),-1),getNode:()=>(console.error(kL),null),removeNodeFromMap(){console.error(kL)},has:()=>(console.error(kL),!1),reset(){console.error(kL)}};function OL(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=null,o=0;return function(){for(var s=arguments.length,i=new Array(s),a=0;a<s;a++)i[a]=arguments[a];const l=Date.now();o||!1!==r.leading||(o=l);const c=e-(l-o),u=this;c<=0||c>e?(n&&(clearTimeout(n),n=null),o=l,t.apply(u,i)):n||!1===r.trailing||(n=setTimeout((()=>{o=!1===r.leading?0:Date.now(),n=null,t.apply(u,i)}),c))}}function RL(t,e,r,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window;const s=o.Object.getOwnPropertyDescriptor(t,e);return o.Object.defineProperty(t,e,n?r:{set(t){setTimeout((()=>{r.set.call(this,t)}),0),s&&s.set&&s.set.call(this,t)}}),()=>RL(t,e,s||{},!0)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(AL=new Proxy(AL,{get:(t,e,r)=>("map"===e&&console.error(kL),Reflect.get(t,e,r))}));let EL=Date.now;function ML(t){var e,r,n,o;const s=t.document;return{left:s.scrollingElement?s.scrollingElement.scrollLeft:void 0!==t.pageXOffset?t.pageXOffset:s.documentElement.scrollLeft||(null==s?void 0:s.body)&&(null==(e=IL.parentElement(s.body))?void 0:e.scrollLeft)||(null==(r=null==s?void 0:s.body)?void 0:r.scrollLeft)||0,top:s.scrollingElement?s.scrollingElement.scrollTop:void 0!==t.pageYOffset?t.pageYOffset:(null==s?void 0:s.documentElement.scrollTop)||(null==s?void 0:s.body)&&(null==(n=IL.parentElement(s.body))?void 0:n.scrollTop)||(null==(o=null==s?void 0:s.body)?void 0:o.scrollTop)||0}}function TL(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function LL(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function NL(t){if(!t)return null;return t.nodeType===t.ELEMENT_NODE?t:IL.parentElement(t)}function PL(t,e,r,n){if(!t)return!1;const o=NL(t);if(!o)return!1;try{if("string"==typeof e){if(o.classList.contains(e))return!0;if(n&&null!==o.closest("."+e))return!0}else if(Ix(o,e,n))return!0}catch(t){}if(r){if(o.matches(r))return!0;if(n&&null!==o.closest(r))return!0}return!1}function DL(t,e,r){return!("TITLE"!==t.tagName||!r.headTitleMutations)||e.getId(t)===hx}function FL(t,e){if(HI(t))return!1;const r=e.getId(t);if(!e.has(r))return!0;const n=IL.parentNode(t);return(!n||n.nodeType!==t.DOCUMENT_NODE)&&(!n||FL(n,e))}function UL(t){return Boolean(t.changedTouches)}function _L(t,e){return Boolean("IFRAME"===t.nodeName&&e.getMeta(t))}function BL(t,e){return Boolean("LINK"===t.nodeName&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&"stylesheet"===t.getAttribute("rel")&&e.getMeta(t))}function jL(t){return!!t&&(t instanceof hL&&"shadowRoot"in t?Boolean(t.shadowRoot):Boolean(IL.shadowRoot(t)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(EL=()=>(new Date).getTime());class zL{constructor(){TI(this,"id",1),TI(this,"styleIDMap",new WeakMap),TI(this,"idStyleMap",new Map)}getId(t){var e;return null!==(e=this.styleIDMap.get(t))&&void 0!==e?e:-1}has(t){return this.styleIDMap.has(t)}add(t,e){if(this.has(t))return this.getId(t);let r;return r=void 0===e?this.id++:e,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}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 WL(t){var e;let r=null;return"getRootNode"in t&&(null==(e=IL.getRootNode(t))?void 0:e.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&IL.host(IL.getRootNode(t))&&(r=IL.host(IL.getRootNode(t))),r}function VL(t){const e=IL.ownerDocument(t);if(!e)return!1;const r=function(t){let e,r=t;for(;e=WL(r);)r=e;return r}(t);return IL.contains(e,r)}function GL(t){const e=IL.ownerDocument(t);return!!e&&(IL.contains(e,t)||VL(t))}var YL=(t=>(t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t))(YL||{}),HL=(t=>(t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t))(HL||{}),ZL=(t=>(t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel",t))(ZL||{}),JL=(t=>(t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t))(JL||{}),XL=(t=>(t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t))(XL||{}),KL=(t=>(t[t.Play=0]="Play",t[t.Pause=1]="Pause",t[t.Seeked=2]="Seeked",t[t.VolumeChange=3]="VolumeChange",t[t.RateChange=4]="RateChange",t))(KL||{}),qL=(t=>(t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t))(qL||{});function $L(t){return"__ln"in t}class QL{constructor(){TI(this,"length",0),TI(this,"head",null),TI(this,"tail",null)}get(t){if(t>=this.length)throw new Error("Position outside of list range");let e=this.head;for(let r=0;r<t;r++)e=(null==e?void 0:e.next)||null;return e}addNode(t){const e={value:t,previous:null,next:null};if(t.__ln=e,t.previousSibling&&$L(t.previousSibling)){const r=t.previousSibling.__ln.next;e.next=r,e.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=e,r&&(r.previous=e)}else if(t.nextSibling&&$L(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;e.previous=r,e.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=e,r&&(r.next=e)}else this.head&&(this.head.previous=e),e.next=this.head,this.head=e;null===e.next&&(this.tail=e),this.length++}removeNode(t){const e=t.__ln;this.head&&(e.previous?(e.previous.next=e.next,e.next?e.next.previous=e.previous:this.tail=e.previous):(this.head=e.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const tN=(t,e)=>"".concat(t,"@").concat(e);class eN{constructor(){TI(this,"frozen",!1),TI(this,"locked",!1),TI(this,"texts",[]),TI(this,"attributes",[]),TI(this,"attributeMap",new WeakMap),TI(this,"removes",[]),TI(this,"mapRemoves",[]),TI(this,"movedMap",{}),TI(this,"addedSet",new Set),TI(this,"movedSet",new Set),TI(this,"droppedSet",new Set),TI(this,"removesSubTreeCache",new Set),TI(this,"mutationCb"),TI(this,"blockClass"),TI(this,"blockSelector"),TI(this,"maskTextClass"),TI(this,"maskTextSelector"),TI(this,"inlineStylesheet"),TI(this,"maskInputOptions"),TI(this,"maskTextFn"),TI(this,"maskInputFn"),TI(this,"keepIframeSrcFn"),TI(this,"recordCanvas"),TI(this,"inlineImages"),TI(this,"slimDOMOptions"),TI(this,"dataURLOptions"),TI(this,"doc"),TI(this,"mirror"),TI(this,"iframeManager"),TI(this,"stylesheetManager"),TI(this,"shadowDomManager"),TI(this,"canvasManager"),TI(this,"processedNodeManager"),TI(this,"unattachedDoc"),TI(this,"processMutations",(t=>{t.forEach(this.processMutation),this.emit()})),TI(this,"emit",(()=>{if(this.frozen||this.locked)return;const t=[],e=new Set,r=new QL,n=t=>{let e=t,r=hx;for(;r===hx;)e=e&&e.nextSibling,r=e&&this.mirror.getId(e);return r},o=o=>{const s=IL.parentNode(o);if(!s||!GL(o))return;let i=!1;if(o.nodeType===Node.TEXT_NODE){const t=s.tagName;if("TEXTAREA"===t)return;"STYLE"===t&&this.addedSet.has(s)&&(i=!0)}const a=HI(s)?this.mirror.getId(WL(o)):this.mirror.getId(s),l=n(o);if(-1===a||-1===l)return r.addNode(o);const c=Rx(o,{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:t=>{_L(t,this.mirror)&&this.iframeManager.addIframe(t),BL(t,this.mirror)&&this.stylesheetManager.trackLinkElement(t),jL(o)&&this.shadowDomManager.addShadowRoot(IL.shadowRoot(o),this.doc)},onIframeLoad:(t,e)=>{this.iframeManager.attachIframe(t,e),this.shadowDomManager.observeAttachShadow(t)},onStylesheetLoad:(t,e)=>{this.stylesheetManager.attachLinkElement(t,e)},cssCaptured:i});c&&(t.push({parentId:a,nextId:l,node:c}),e.add(c.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const t of this.movedSet)nN(this.removesSubTreeCache,t,this.mirror)&&!this.movedSet.has(IL.parentNode(t))||o(t);for(const t of this.addedSet)oN(this.droppedSet,t)||nN(this.removesSubTreeCache,t,this.mirror)?oN(this.movedSet,t)?o(t):this.droppedSet.add(t):o(t);let s=null;for(;r.length;){let t=null;if(s){const e=this.mirror.getId(IL.parentNode(s.value)),r=n(s.value);-1!==e&&-1!==r&&(t=s)}if(!t){let e=r.tail;for(;e;){const r=e;if(e=e.previous,r){const e=this.mirror.getId(IL.parentNode(r.value));if(-1===n(r.value))continue;if(-1!==e){t=r;break}{const e=r.value,n=IL.parentNode(e);if(n&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const e=IL.host(n);if(-1!==this.mirror.getId(e)){t=r;break}}}}}}if(!t){for(;r.head;)r.removeNode(r.head.value);break}s=t.previous,r.removeNode(t.value),o(t.value)}const i={texts:this.texts.map((t=>{const e=t.node,r=IL.parentNode(e);return r&&"TEXTAREA"===r.tagName&&this.genTextAreaValueMutation(r),{id:this.mirror.getId(e),value:t.value}})).filter((t=>!e.has(t.id))).filter((t=>this.mirror.has(t.id))),attributes:this.attributes.map((t=>{const{attributes:e}=t;if("string"==typeof e.style){const r=JSON.stringify(t.styleDiff),n=JSON.stringify(t._unchangedStyles);r.length<e.style.length&&(r+n).split("var(").length===e.style.split("var(").length&&(e.style=t.styleDiff)}return{id:this.mirror.getId(t.node),attributes:e}})).filter((t=>!e.has(t.id))).filter((t=>this.mirror.has(t.id))),removes:this.removes,adds:t};(i.texts.length||i.attributes.length||i.removes.length||i.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(i))})),TI(this,"genTextAreaValueMutation",(t=>{let e=this.attributeMap.get(t);e||(e={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(e),this.attributeMap.set(t,e));const r=Array.from(IL.childNodes(t),(t=>IL.textContent(t)||"")).join("");e.attributes.value=qI({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:tx(t),value:r,maskInputFn:this.maskInputFn})})),TI(this,"processMutation",(t=>{if(!DL(t.target,this.mirror,this.slimDOMOptions))switch(t.type){case"characterData":{const e=IL.textContent(t.target);PL(t.target,this.blockClass,this.blockSelector,!1)||e===t.oldValue||this.texts.push({value:xx(t.target,this.maskTextClass,this.maskTextSelector,!0)&&e?this.maskTextFn?this.maskTextFn(e,NL(t.target)):e.replace(/[\S]/g,"*"):e,node:t.target});break}case"attributes":{const e=t.target;let r=t.attributeName,n=t.target.getAttribute(r);if("value"===r){const t=tx(e);n=qI({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:t,value:n,maskInputFn:this.maskInputFn})}if(PL(t.target,this.blockClass,this.blockSelector,!1)||n===t.oldValue)return;let o=this.attributeMap.get(t.target);if("IFRAME"===e.tagName&&"src"===r&&!this.keepIframeSrcFn(n)){if(e.contentDocument)return;r="rr_src"}if(o||(o={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(t.target,o)),"type"===r&&"INPUT"===e.tagName&&"password"===(t.oldValue||"").toLowerCase()&&e.setAttribute("data-rr-is-password","true"),!Cx(e.tagName,r))if(o.attributes[r]=Sx(this.doc,$I(e.tagName),$I(r),n),"style"===r){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){this.unattachedDoc=this.doc}const r=this.unattachedDoc.createElement("span");t.oldValue&&r.setAttribute("style",t.oldValue);for(const t of Array.from(e.style)){const n=e.style.getPropertyValue(t),s=e.style.getPropertyPriority(t);n!==r.style.getPropertyValue(t)||s!==r.style.getPropertyPriority(t)?o.styleDiff[t]=""===s?n:[n,s]:o._unchangedStyles[t]=[n,s]}for(const t of Array.from(r.style))""===e.style.getPropertyValue(t)&&(o.styleDiff[t]=!1)}else"open"===r&&"DIALOG"===e.tagName&&(e.matches("dialog:modal")?o.attributes.rr_open_mode="modal":o.attributes.rr_open_mode="non-modal");break}case"childList":if(PL(t.target,this.blockClass,this.blockSelector,!0))return;if("TEXTAREA"===t.target.tagName)return void this.genTextAreaValueMutation(t.target);t.addedNodes.forEach((e=>this.genAdds(e,t.target))),t.removedNodes.forEach((e=>{const r=this.mirror.getId(e),n=HI(t.target)?this.mirror.getId(IL.host(t.target)):this.mirror.getId(t.target);PL(t.target,this.blockClass,this.blockSelector,!1)||DL(e,this.mirror,this.slimDOMOptions)||!function(t,e){return-1!==e.getId(t)}(e,this.mirror)||(this.addedSet.has(e)?(rN(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(t.target)&&-1===r||FL(t.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[tN(r,n)]?rN(this.movedSet,e):(this.removes.push({parentId:n,id:r,isShadow:!(!HI(t.target)||!ZI(t.target))||void 0}),function(t,e){const r=[t];for(;r.length;){const t=r.pop();e.has(t)||(e.add(t),IL.childNodes(t).forEach((t=>r.push(t))))}}(e,this.removesSubTreeCache))),this.mapRemoves.push(e))}))}})),TI(this,"genAdds",((t,e)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!this.addedSet.has(t)&&!this.movedSet.has(t)){if(this.mirror.hasNode(t)){if(DL(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let r=null;e&&this.mirror.hasNode(e)&&(r=this.mirror.getId(e)),r&&-1!==r&&(this.movedMap[tN(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);PL(t,this.blockClass,this.blockSelector,!1)||(IL.childNodes(t).forEach((t=>this.genAdds(t))),jL(t)&&IL.childNodes(IL.shadowRoot(t)).forEach((e=>{this.processedNodeManager.add(e,this),this.genAdds(e,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((e=>{this[e]=t[e]}))}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 rN(t,e){t.delete(e),IL.childNodes(e).forEach((e=>rN(t,e)))}function nN(t,e,r){return 0!==t.size&&function(t,e,r){const n=IL.parentNode(e);return!!n&&t.has(n)}(t,e)}function oN(t,e){return 0!==t.size&&sN(t,e)}function sN(t,e){const r=IL.parentNode(e);return!!r&&(!!t.has(r)||sN(t,r))}let iN;const aN=t=>{if(!iN)return t;return function(){try{return t(...arguments)}catch(t){if(iN&&!0===iN(t))return;throw t}}},lN=[];function cN(t){try{if("composedPath"in t){const e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0]}catch{}return t&&t.target}function uN(t,e){const r=new eN;lN.push(r),r.init(t);const n=new(SL())(aN(r.processMutations.bind(r)));return n.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function hN(t){let{mouseInteractionCb:e,doc:r,mirror:n,blockClass:o,blockSelector:s,sampling:i}=t;if(!1===i.mouseInteraction)return()=>{};const a=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,l=[];let c=null;return Object.keys(ZL).filter((t=>Number.isNaN(Number(t))&&!t.endsWith("_Departed")&&!1!==a[t])).forEach((t=>{let i=$I(t);const a=(t=>r=>{const i=cN(r);if(PL(i,o,s,!0))return;let a=null,l=t;if("pointerType"in r){switch(r.pointerType){case"mouse":a=JL.Mouse;break;case"touch":a=JL.Touch;break;case"pen":a=JL.Pen}a===JL.Touch?ZL[t]===ZL.MouseDown?l="TouchStart":ZL[t]===ZL.MouseUp&&(l="TouchEnd"):JL.Pen}else UL(r)&&(a=JL.Touch);null!==a?(c=a,(l.startsWith("Touch")&&a===JL.Touch||l.startsWith("Mouse")&&a===JL.Mouse)&&(a=null)):ZL[t]===ZL.Click&&(a=c,c=null);const u=UL(r)?r.changedTouches[0]:r;if(!u)return;const h=n.getId(i),{clientX:p,clientY:f}=u;aN(e)({type:ZL[l],id:h,x:p,y:f,...null!==a&&{pointerType:a}})})(t);if(window.PointerEvent)switch(ZL[t]){case ZL.MouseDown:case ZL.MouseUp:i=i.replace("mouse","pointer");break;case ZL.TouchStart:case ZL.TouchEnd:return}l.push(xL(i,a,r))})),aN((()=>{l.forEach((t=>t()))}))}function pN(t){let{scrollCb:e,doc:r,mirror:n,blockClass:o,blockSelector:s,sampling:i}=t;const a=aN(OL(aN((t=>{const i=cN(t);if(!i||PL(i,o,s,!0))return;const a=n.getId(i);if(i===r&&r.defaultView){const t=ML(r.defaultView);e({id:a,x:t.left,y:t.top})}else e({id:a,x:i.scrollLeft,y:i.scrollTop})})),i.scroll||100));return xL("scroll",a,r)}const fN=["INPUT","TEXTAREA","SELECT"],dN=new WeakMap;function mN(t){return function(t,e){if(wN("CSSGroupingRule")&&t.parentRule instanceof CSSGroupingRule||wN("CSSMediaRule")&&t.parentRule instanceof CSSMediaRule||wN("CSSSupportsRule")&&t.parentRule instanceof CSSSupportsRule||wN("CSSConditionRule")&&t.parentRule instanceof CSSConditionRule){const r=Array.from(t.parentRule.cssRules).indexOf(t);e.unshift(r)}else if(t.parentStyleSheet){const r=Array.from(t.parentStyleSheet.cssRules).indexOf(t);e.unshift(r)}return e}(t,[])}function gN(t,e,r){let n,o;return t?(t.ownerNode?n=e.getId(t.ownerNode):o=r.getId(t),{styleId:o,id:n}):{}}function yN(t,e){let{mirror:r,stylesheetManager:n}=t;var o,s,i;let a=null;a="#document"===e.nodeName?r.getId(e):r.getId(IL.host(e));const l="#document"===e.nodeName?null==(o=e.defaultView)?void 0:o.Document:null==(i=null==(s=e.ownerDocument)?void 0:s.defaultView)?void 0:i.ShadowRoot,c=(null==l?void 0:l.prototype)?Object.getOwnPropertyDescriptor(null==l?void 0:l.prototype,"adoptedStyleSheets"):void 0;return null!==a&&-1!==a&&l&&c?(Object.defineProperty(e,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get(){var t;return null==(t=c.get)?void 0:t.call(this)},set(t){var e;const r=null==(e=c.set)?void 0:e.call(this,t);if(null!==a&&-1!==a)try{n.adoptStyleSheets(t,a)}catch(t){}return r}}),aN((()=>{Object.defineProperty(e,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}))):()=>{}}function vN(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=t.doc.defaultView;if(!r)return()=>{};let n;!function(t,e){const{mutationCb:r,mousemoveCb:n,mouseInteractionCb:o,scrollCb:s,viewportResizeCb:i,inputCb:a,mediaInteractionCb:l,styleSheetRuleCb:c,styleDeclarationCb:u,canvasMutationCb:h,fontCb:p,selectionCb:f,customElementCb:d}=t;t.mutationCb=function(){e.mutation&&e.mutation(...arguments),r(...arguments)},t.mousemoveCb=function(){e.mousemove&&e.mousemove(...arguments),n(...arguments)},t.mouseInteractionCb=function(){e.mouseInteraction&&e.mouseInteraction(...arguments),o(...arguments)},t.scrollCb=function(){e.scroll&&e.scroll(...arguments),s(...arguments)},t.viewportResizeCb=function(){e.viewportResize&&e.viewportResize(...arguments),i(...arguments)},t.inputCb=function(){e.input&&e.input(...arguments),a(...arguments)},t.mediaInteractionCb=function(){e.mediaInteaction&&e.mediaInteaction(...arguments),l(...arguments)},t.styleSheetRuleCb=function(){e.styleSheetRule&&e.styleSheetRule(...arguments),c(...arguments)},t.styleDeclarationCb=function(){e.styleDeclaration&&e.styleDeclaration(...arguments),u(...arguments)},t.canvasMutationCb=function(){e.canvasMutation&&e.canvasMutation(...arguments),h(...arguments)},t.fontCb=function(){e.font&&e.font(...arguments),p(...arguments)},t.selectionCb=function(){e.selection&&e.selection(...arguments),f(...arguments)},t.customElementCb=function(){e.customElement&&e.customElement(...arguments),d(...arguments)}}(t,e),t.recordDOM&&(n=uN(t,t.doc));const o=function(t){let{mousemoveCb:e,sampling:r,doc:n,mirror:o}=t;if(!1===r.mousemove)return()=>{};const s="number"==typeof r.mousemove?r.mousemove:50,i="number"==typeof r.mousemoveCallback?r.mousemoveCallback:500;let a,l=[];const c=OL(aN((t=>{const r=Date.now()-a;e(l.map((t=>(t.timeOffset-=r,t))),t),l=[],a=null})),i),u=aN(OL(aN((t=>{const e=cN(t),{clientX:r,clientY:n}=UL(t)?t.changedTouches[0]:t;a||(a=EL()),l.push({x:r,y:n,id:o.getId(e),timeOffset:EL()-a}),c("undefined"!=typeof DragEvent&&t instanceof DragEvent?HL.Drag:t instanceof MouseEvent?HL.MouseMove:HL.TouchMove)})),s,{trailing:!1})),h=[xL("mousemove",u,n),xL("touchmove",u,n),xL("drag",u,n)];return aN((()=>{h.forEach((t=>t()))}))}(t),s=hN(t),i=pN(t),a=function(t,e){let{viewportResizeCb:r}=t,{win:n}=e,o=-1,s=-1;return xL("resize",aN(OL(aN((()=>{const t=TL(),e=LL();o===t&&s===e||(r({width:Number(e),height:Number(t)}),o=t,s=e)})),200)),n)}(t,{win:r}),l=function(t){let{inputCb:e,doc:r,mirror:n,blockClass:o,blockSelector:s,ignoreClass:i,ignoreSelector:a,maskInputOptions:l,maskInputFn:c,sampling:u,userTriggeredOnInput:h}=t;function p(t){let e=cN(t);const n=t.isTrusted,u=e&&e.tagName;if(e&&"OPTION"===u&&(e=IL.parentElement(e)),!e||!u||fN.indexOf(u)<0||PL(e,o,s,!0))return;if(e.classList.contains(i)||a&&e.matches(a))return;let p=e.value,d=!1;const m=tx(e)||"";"radio"===m||"checkbox"===m?d=e.checked:(l[u.toLowerCase()]||l[m])&&(p=qI({element:e,maskInputOptions:l,tagName:u,type:m,value:p,maskInputFn:c})),f(e,h?{text:p,isChecked:d,userTriggered:n}:{text:p,isChecked:d});const g=e.name;"radio"===m&&g&&d&&r.querySelectorAll('input[type="radio"][name="'.concat(g,'"]')).forEach((t=>{if(t!==e){const e=t.value;f(t,h?{text:e,isChecked:!d,userTriggered:!1}:{text:e,isChecked:!d})}}))}function f(t,r){const o=dN.get(t);if(!o||o.text!==r.text||o.isChecked!==r.isChecked){dN.set(t,r);const o=n.getId(t);aN(e)({...r,id:o})}}const d=("last"===u.input?["change"]:["input","change"]).map((t=>xL(t,aN(p),r))),m=r.defaultView;if(!m)return()=>{d.forEach((t=>t()))};const g=m.Object.getOwnPropertyDescriptor(m.HTMLInputElement.prototype,"value"),y=[[m.HTMLInputElement.prototype,"value"],[m.HTMLInputElement.prototype,"checked"],[m.HTMLSelectElement.prototype,"value"],[m.HTMLTextAreaElement.prototype,"value"],[m.HTMLSelectElement.prototype,"selectedIndex"],[m.HTMLOptionElement.prototype,"selected"]];return g&&g.set&&d.push(...y.map((t=>RL(t[0],t[1],{set(){aN(p)({target:this,isTrusted:!1})}},!1,m)))),aN((()=>{d.forEach((t=>t()))}))}(t),c=function(t){let{mediaInteractionCb:e,blockClass:r,blockSelector:n,mirror:o,sampling:s,doc:i}=t;const a=aN((t=>OL(aN((s=>{const i=cN(s);if(!i||PL(i,r,n,!0))return;const{currentTime:a,volume:l,muted:c,playbackRate:u,loop:h}=i;e({type:t,id:o.getId(i),currentTime:a,volume:l,muted:c,playbackRate:u,loop:h})})),s.media||500))),l=[xL("play",a(KL.Play),i),xL("pause",a(KL.Pause),i),xL("seeked",a(KL.Seeked),i),xL("volumechange",a(KL.VolumeChange),i),xL("ratechange",a(KL.RateChange),i)];return aN((()=>{l.forEach((t=>t()))}))}(t);let u=()=>{},h=()=>{},p=()=>{},f=()=>{};t.recordDOM&&(u=function(t,e){let{styleSheetRuleCb:r,mirror:n,stylesheetManager:o}=t,{win:s}=e;if(!s.CSSStyleSheet||!s.CSSStyleSheet.prototype)return()=>{};const i=s.CSSStyleSheet.prototype.insertRule;s.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:aN(((t,e,s)=>{const[i,a]=s,{id:l,styleId:c}=gN(e,n,o.styleMirror);return(l&&-1!==l||c&&-1!==c)&&r({id:l,styleId:c,adds:[{rule:i,index:a}]}),t.apply(e,s)}))}),s.CSSStyleSheet.prototype.addRule=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.cssRules.length;const n="".concat(t," { ").concat(e," }");return s.CSSStyleSheet.prototype.insertRule.apply(this,[n,r])};const a=s.CSSStyleSheet.prototype.deleteRule;let l,c;s.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:aN(((t,e,s)=>{const[i]=s,{id:a,styleId:l}=gN(e,n,o.styleMirror);return(a&&-1!==a||l&&-1!==l)&&r({id:a,styleId:l,removes:[{index:i}]}),t.apply(e,s)}))}),s.CSSStyleSheet.prototype.removeRule=function(t){return s.CSSStyleSheet.prototype.deleteRule.apply(this,[t])},s.CSSStyleSheet.prototype.replace&&(l=s.CSSStyleSheet.prototype.replace,s.CSSStyleSheet.prototype.replace=new Proxy(l,{apply:aN(((t,e,s)=>{const[i]=s,{id:a,styleId:l}=gN(e,n,o.styleMirror);return(a&&-1!==a||l&&-1!==l)&&r({id:a,styleId:l,replace:i}),t.apply(e,s)}))})),s.CSSStyleSheet.prototype.replaceSync&&(c=s.CSSStyleSheet.prototype.replaceSync,s.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:aN(((t,e,s)=>{const[i]=s,{id:a,styleId:l}=gN(e,n,o.styleMirror);return(a&&-1!==a||l&&-1!==l)&&r({id:a,styleId:l,replaceSync:i}),t.apply(e,s)}))}));const u={};bN("CSSGroupingRule")?u.CSSGroupingRule=s.CSSGroupingRule:(bN("CSSMediaRule")&&(u.CSSMediaRule=s.CSSMediaRule),bN("CSSConditionRule")&&(u.CSSConditionRule=s.CSSConditionRule),bN("CSSSupportsRule")&&(u.CSSSupportsRule=s.CSSSupportsRule));const h={};return Object.entries(u).forEach((t=>{let[e,s]=t;h[e]={insertRule:s.prototype.insertRule,deleteRule:s.prototype.deleteRule},s.prototype.insertRule=new Proxy(h[e].insertRule,{apply:aN(((t,e,s)=>{const[i,a]=s,{id:l,styleId:c}=gN(e.parentStyleSheet,n,o.styleMirror);return(l&&-1!==l||c&&-1!==c)&&r({id:l,styleId:c,adds:[{rule:i,index:[...mN(e),a||0]}]}),t.apply(e,s)}))}),s.prototype.deleteRule=new Proxy(h[e].deleteRule,{apply:aN(((t,e,s)=>{const[i]=s,{id:a,styleId:l}=gN(e.parentStyleSheet,n,o.styleMirror);return(a&&-1!==a||l&&-1!==l)&&r({id:a,styleId:l,removes:[{index:[...mN(e),i]}]}),t.apply(e,s)}))})})),aN((()=>{s.CSSStyleSheet.prototype.insertRule=i,s.CSSStyleSheet.prototype.deleteRule=a,l&&(s.CSSStyleSheet.prototype.replace=l),c&&(s.CSSStyleSheet.prototype.replaceSync=c),Object.entries(u).forEach((t=>{let[e,r]=t;r.prototype.insertRule=h[e].insertRule,r.prototype.deleteRule=h[e].deleteRule}))}))}(t,{win:r}),h=yN(t,t.doc),p=function(t,e){let{styleDeclarationCb:r,mirror:n,ignoreCSSAttributes:o,stylesheetManager:s}=t,{win:i}=e;const a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:aN(((t,e,i)=>{var l;const[c,u,h]=i;if(o.has(c))return a.apply(e,[c,u,h]);const{id:p,styleId:f}=gN(null==(l=e.parentRule)?void 0:l.parentStyleSheet,n,s.styleMirror);return(p&&-1!==p||f&&-1!==f)&&r({id:p,styleId:f,set:{property:c,value:u,priority:h},index:mN(e.parentRule)}),t.apply(e,i)}))});const l=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(l,{apply:aN(((t,e,i)=>{var a;const[c]=i;if(o.has(c))return l.apply(e,[c]);const{id:u,styleId:h}=gN(null==(a=e.parentRule)?void 0:a.parentStyleSheet,n,s.styleMirror);return(u&&-1!==u||h&&-1!==h)&&r({id:u,styleId:h,remove:{property:c},index:mN(e.parentRule)}),t.apply(e,i)}))}),aN((()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=l}))}(t,{win:r}),t.collectFonts&&(f=function(t){let{fontCb:e,doc:r}=t;const n=r.defaultView;if(!n)return()=>{};const o=[],s=new WeakMap,i=n.FontFace;n.FontFace=function(t,e,r){const n=new i(t,e,r);return s.set(n,{family:t,buffer:"string"!=typeof e,descriptors:r,fontSource:"string"==typeof e?e:JSON.stringify(Array.from(new Uint8Array(e)))}),n};const a=CL(r.fonts,"add",(function(t){return function(r){return setTimeout(aN((()=>{const t=s.get(r);t&&(e(t),s.delete(r))})),0),t.apply(this,[r])}}));return o.push((()=>{n.FontFace=i})),o.push(a),aN((()=>{o.forEach((t=>t()))}))}(t)));const d=function(t){const{doc:e,mirror:r,blockClass:n,blockSelector:o,selectionCb:s}=t;let i=!0;const a=aN((()=>{const t=e.getSelection();if(!t||i&&(null==t?void 0:t.isCollapsed))return;i=t.isCollapsed||!1;const a=[],l=t.rangeCount||0;for(let e=0;e<l;e++){const s=t.getRangeAt(e),{startContainer:i,startOffset:l,endContainer:c,endOffset:u}=s;PL(i,n,o,!0)||PL(c,n,o,!0)||a.push({start:r.getId(i),startOffset:l,end:r.getId(c),endOffset:u})}s({ranges:a})}));return a(),xL("selectionchange",a)}(t),m=function(t){let{doc:e,customElementCb:r}=t;const n=e.defaultView;return n&&n.customElements?CL(n.customElements,"define",(function(t){return function(e,n,o){try{r({define:{name:e}})}catch(t){console.warn("Custom element callback failed for ".concat(e))}return t.apply(this,[e,n,o])}})):()=>{}}(t),g=[];for(const e of t.plugins)g.push(e.observer(e.callback,r,e.options));return aN((()=>{lN.forEach((t=>t.reset())),null==n||n.disconnect(),o(),s(),i(),a(),l(),c(),u(),h(),p(),f(),d(),m(),g.forEach((t=>t()))}))}function wN(t){return void 0!==window[t]}function bN(t){return Boolean(void 0!==window[t]&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}class SN{constructor(t){TI(this,"iframeIdToRemoteIdMap",new WeakMap),TI(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=t}getId(t,e,r,n){const o=r||this.getIdToRemoteIdMap(t),s=n||this.getRemoteIdToIdMap(t);let i=o.get(e);return i||(i=this.generateIdFn(),o.set(e,i),s.set(i,e)),i}getIds(t,e){const r=this.getIdToRemoteIdMap(t),n=this.getRemoteIdToIdMap(t);return e.map((e=>this.getId(t,e,r,n)))}getRemoteId(t,e,r){const n=r||this.getRemoteIdToIdMap(t);if("number"!=typeof e)return e;const o=n.get(e);return o||-1}getRemoteIds(t,e){const r=this.getRemoteIdToIdMap(t);return e.map((e=>this.getRemoteId(t,e,r)))}reset(t){if(!t)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let e=this.iframeIdToRemoteIdMap.get(t);return e||(e=new Map,this.iframeIdToRemoteIdMap.set(t,e)),e}getRemoteIdToIdMap(t){let e=this.iframeRemoteIdToIdMap.get(t);return e||(e=new Map,this.iframeRemoteIdToIdMap.set(t,e)),e}}class CN{constructor(t){TI(this,"iframes",new WeakMap),TI(this,"crossOriginIframeMap",new WeakMap),TI(this,"crossOriginIframeMirror",new SN(px)),TI(this,"crossOriginIframeStyleMirror"),TI(this,"crossOriginIframeRootIdMap",new WeakMap),TI(this,"mirror"),TI(this,"mutationCb"),TI(this,"wrappedEmit"),TI(this,"loadListener"),TI(this,"stylesheetManager"),TI(this,"recordCrossOriginIframes"),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new SN(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,e){var r,n;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:e}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&(null==(r=t.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(n=this.loadListener)||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){const e=t;if("rrweb"!==e.data.type||e.origin!==e.data.origin)return;if(!t.source)return;const r=this.crossOriginIframeMap.get(t.source);if(!r)return;const n=this.transformCrossOriginEvent(r,e.data.event);n&&this.wrappedEmit(n,e.data.isCheckout)}transformCrossOriginEvent(t,e){var r;switch(e.type){case YL.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(e.data.node,t);const r=e.data.node.id;return this.crossOriginIframeRootIdMap.set(t,r),this.patchRootIdOnNode(e.data.node,r),{timestamp:e.timestamp,type:YL.IncrementalSnapshot,data:{source:HL.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case YL.Meta:case YL.Load:case YL.DomContentLoaded:return!1;case YL.Plugin:return e;case YL.Custom:return this.replaceIds(e.data.payload,t,["id","parentId","previousId","nextId"]),e;case YL.IncrementalSnapshot:switch(e.data.source){case HL.Mutation:return e.data.adds.forEach((e=>{this.replaceIds(e,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(e.node,t);const r=this.crossOriginIframeRootIdMap.get(t);r&&this.patchRootIdOnNode(e.node,r)})),e.data.removes.forEach((e=>{this.replaceIds(e,t,["parentId","id"])})),e.data.attributes.forEach((e=>{this.replaceIds(e,t,["id"])})),e.data.texts.forEach((e=>{this.replaceIds(e,t,["id"])})),e;case HL.Drag:case HL.TouchMove:case HL.MouseMove:return e.data.positions.forEach((e=>{this.replaceIds(e,t,["id"])})),e;case HL.ViewportResize:return!1;case HL.MediaInteraction:case HL.MouseInteraction:case HL.Scroll:case HL.CanvasMutation:case HL.Input:return this.replaceIds(e.data,t,["id"]),e;case HL.StyleSheetRule:case HL.StyleDeclaration:return this.replaceIds(e.data,t,["id"]),this.replaceStyleIds(e.data,t,["styleId"]),e;case HL.Font:return e;case HL.Selection:return e.data.ranges.forEach((e=>{this.replaceIds(e,t,["start","end"])})),e;case HL.AdoptedStyleSheet:return this.replaceIds(e.data,t,["id"]),this.replaceStyleIds(e.data,t,["styleIds"]),null==(r=e.data.styles)||r.forEach((e=>{this.replaceStyleIds(e,t,["styleId"])})),e}}return!1}replace(t,e,r,n){for(const o of n)(Array.isArray(e[o])||"number"==typeof e[o])&&(Array.isArray(e[o])?e[o]=t.getIds(r,e[o]):e[o]=t.getId(r,e[o]));return e}replaceIds(t,e,r){return this.replace(this.crossOriginIframeMirror,t,e,r)}replaceStyleIds(t,e,r){return this.replace(this.crossOriginIframeStyleMirror,t,e,r)}replaceIdOnNode(t,e){this.replaceIds(t,e,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach((t=>{this.replaceIdOnNode(t,e)}))}patchRootIdOnNode(t,e){t.type===qL.Document||t.rootId||(t.rootId=e),"childNodes"in t&&t.childNodes.forEach((t=>{this.patchRootIdOnNode(t,e)}))}}class IN{constructor(t){TI(this,"shadowDoms",new WeakSet),TI(this,"mutationCb"),TI(this,"scrollCb"),TI(this,"bypassOptions"),TI(this,"mirror"),TI(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,e){if(!ZI(t))return;if(this.shadowDoms.has(t))return;this.shadowDoms.add(t);const r=uN({...this.bypassOptions,doc:e,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push((()=>r.disconnect())),this.restoreHandlers.push(pN({...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(IL.host(t))),this.restoreHandlers.push(yN({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))}),0)}observeAttachShadow(t){t.contentWindow&&t.contentDocument&&this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,e){const r=this;this.restoreHandlers.push(CL(t.prototype,"attachShadow",(function(t){return function(n){const o=t.call(this,n),s=IL.shadowRoot(this);return s&&GL(this)&&r.addShadowRoot(s,e),o}})))}reset(){this.restoreHandlers.forEach((t=>{try{t()}catch(t){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}for(var xN="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",kN="undefined"==typeof Uint8Array?[]:new Uint8Array(256),AN=0;AN<64;AN++)kN[xN.charCodeAt(AN)]=AN;const ON=new Map;const RN=(t,e,r)=>{if(!t||!TN(t,e)&&"object"!=typeof t)return;const n=function(t,e){let r=ON.get(t);return r||(r=new Map,ON.set(t,r)),r.has(e)||r.set(e,[]),r.get(e)}(r,t.constructor.name);let o=n.indexOf(t);return-1===o&&(o=n.length,n.push(t)),o};function EN(t,e,r){if(t instanceof Array)return t.map((t=>EN(t,e,r)));if(null===t)return t;if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray){return{rr_type:t.constructor.name,args:[Object.values(t)]}}if(t instanceof ArrayBuffer){return{rr_type:t.constructor.name,base64:function(t){var e,r=new Uint8Array(t),n=r.length,o="";for(e=0;e<n;e+=3)o+=xN[r[e]>>2],o+=xN[(3&r[e])<<4|r[e+1]>>4],o+=xN[(15&r[e+1])<<2|r[e+2]>>6],o+=xN[63&r[e+2]];return n%3==2?o=o.substring(0,o.length-1)+"=":n%3==1&&(o=o.substring(0,o.length-2)+"=="),o}(t)}}if(t instanceof DataView){return{rr_type:t.constructor.name,args:[EN(t.buffer,e,r),t.byteOffset,t.byteLength]}}if(t instanceof HTMLImageElement){const e=t.constructor.name,{src:r}=t;return{rr_type:e,src:r}}if(t instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:t.toDataURL()}}if(t instanceof ImageData){return{rr_type:t.constructor.name,args:[EN(t.data,e,r),t.width,t.height]}}if(TN(t,e)||"object"==typeof t){return{rr_type:t.constructor.name,index:RN(t,e,r)}}return t}const MN=(t,e,r)=>t.map((t=>EN(t,e,r))),TN=(t,e)=>{const r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((t=>"function"==typeof e[t]));return Boolean(r.find((r=>t instanceof e[r])))};function LN(t,e,r,n){const o=[];try{const s=CL(t.HTMLCanvasElement.prototype,"getContext",(function(t){return function(o){for(var s=arguments.length,i=new Array(s>1?s-1:0),a=1;a<s;a++)i[a-1]=arguments[a];if(!PL(this,e,r,!0)){const t=function(t){return"experimental-webgl"===t?"webgl":t}(o);if("__context"in this||(this.__context=t),n&&["webgl","webgl2"].includes(t))if(i[0]&&"object"==typeof i[0]){const t=i[0];t.preserveDrawingBuffer||(t.preserveDrawingBuffer=!0)}else i.splice(0,1,{preserveDrawingBuffer:!0})}return t.apply(this,[o,...i])}}));o.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{o.forEach((t=>t()))}}function NN(t,e,r,n,o,s){const i=[],a=Object.getOwnPropertyNames(t);for(const l of a)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(l))try{if("function"!=typeof t[l])continue;const a=CL(t,l,(function(t){return function(){for(var i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];const u=t.apply(this,a);if(RN(u,s,this),"tagName"in this.canvas&&!PL(this.canvas,n,o,!0)){const t=MN(a,s,this),n={type:e,property:l,args:t};r(this.canvas,n)}return u}}));i.push(a)}catch{const n=RL(t,l,{set(t){r(this.canvas,{type:e,property:l,args:[t],setter:!0})}});i.push(n)}return i}const PN="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",DN="undefined"!=typeof window&&window.Blob&&new Blob([(FN=PN,Uint8Array.from(atob(FN),(t=>t.charCodeAt(0))))],{type:"text/javascript;charset=utf-8"});var FN;function UN(t){let e;try{if(e=DN&&(window.URL||window.webkitURL).createObjectURL(DN),!e)throw"";const r=new Worker(e,{name:null==t?void 0:t.name});return r.addEventListener("error",(()=>{(window.URL||window.webkitURL).revokeObjectURL(e)})),r}catch(e){return new Worker("data:text/javascript;base64,"+PN,{name:null==t?void 0:t.name})}finally{e&&(window.URL||window.webkitURL).revokeObjectURL(e)}}class _N{constructor(t){TI(this,"pendingCanvasMutations",new Map),TI(this,"rafStamps",{latestId:0,invokeId:null}),TI(this,"mirror"),TI(this,"mutationCb"),TI(this,"resetObservers"),TI(this,"frozen",!1),TI(this,"locked",!1),TI(this,"processMutation",((t,e)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(t)||this.pendingCanvasMutations.set(t,[]),this.pendingCanvasMutations.get(t).push(e)}));const{sampling:e="all",win:r,blockClass:n,blockSelector:o,recordCanvas:s,dataURLOptions:i}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,s&&"all"===e&&this.initCanvasMutationObserver(r,n,o),s&&"number"==typeof e&&this.initCanvasFPSObserver(e,r,n,o,{dataURLOptions:i})}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,e,r,n,o){const s=LN(e,r,n,!0),i=new Map,a=new UN;a.onmessage=t=>{const{id:e}=t.data;if(i.set(e,!1),!("base64"in t.data))return;const{base64:r,type:n,width:o,height:s}=t.data;this.mutationCb({id:e,type:XL["2D"],commands:[{property:"clearRect",args:[0,0,o,s]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:n}]},0,0]}]})};const l=1e3/t;let c,u=0;const h=t=>{u&&t-u<l||(u=t,(()=>{const t=[];return e.document.querySelectorAll("canvas").forEach((e=>{PL(e,r,n,!0)||t.push(e)})),t})().forEach((async t=>{var e;const r=this.mirror.getId(t);if(i.get(r))return;if(0===t.width||0===t.height)return;if(i.set(r,!0),["webgl","webgl2"].includes(t.__context)){const r=t.getContext(t.__context);!1===(null==(e=null==r?void 0:r.getContextAttributes())?void 0:e.preserveDrawingBuffer)&&r.clear(r.COLOR_BUFFER_BIT)}const n=await createImageBitmap(t);a.postMessage({id:r,bitmap:n,width:t.width,height:t.height,dataURLOptions:o.dataURLOptions},[n])}))),c=requestAnimationFrame(h)};c=requestAnimationFrame(h),this.resetObservers=()=>{s(),cancelAnimationFrame(c)}}initCanvasMutationObserver(t,e,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const n=LN(t,e,r,!1),o=function(t,e,r,n){const o=[],s=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype);for(const i of s)try{if("function"!=typeof e.CanvasRenderingContext2D.prototype[i])continue;const s=CL(e.CanvasRenderingContext2D.prototype,i,(function(o){return function(){for(var s=arguments.length,a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];return PL(this.canvas,r,n,!0)||setTimeout((()=>{const r=MN(a,e,this);t(this.canvas,{type:XL["2D"],property:i,args:r})}),0),o.apply(this,a)}}));o.push(s)}catch{const r=RL(e.CanvasRenderingContext2D.prototype,i,{set(e){t(this.canvas,{type:XL["2D"],property:i,args:[e],setter:!0})}});o.push(r)}return()=>{o.forEach((t=>t()))}}(this.processMutation.bind(this),t,e,r),s=function(t,e,r,n){const o=[];return o.push(...NN(e.WebGLRenderingContext.prototype,XL.WebGL,t,r,n,e)),void 0!==e.WebGL2RenderingContext&&o.push(...NN(e.WebGL2RenderingContext.prototype,XL.WebGL2,t,r,n,e)),()=>{o.forEach((t=>t()))}}(this.processMutation.bind(this),t,e,r);this.resetObservers=()=>{n(),o(),s()}}startPendingCanvasMutationFlusher(){requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){const t=e=>{this.rafStamps.latestId=e,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((t,e)=>{const r=this.mirror.getId(e);this.flushPendingCanvasMutationFor(e,r)})),requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}flushPendingCanvasMutationFor(t,e){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(t);if(!r||-1===e)return;const n=r.map((t=>{const{type:e,...r}=t;return r})),{type:o}=r[0];this.mutationCb({id:e,type:o,commands:n}),this.pendingCanvasMutations.delete(t)}}class BN{constructor(t){TI(this,"trackedLinkElements",new WeakSet),TI(this,"mutationCb"),TI(this,"adoptedStyleSheetCb"),TI(this,"styleMirror",new zL),this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,e){"_cssText"in e.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:e.id,attributes:e.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,e){if(0===t.length)return;const r={id:e,styleIds:[]},n=[];for(const e of t){let t;this.styleMirror.has(e)?t=this.styleMirror.getId(e):(t=this.styleMirror.add(e),n.push({styleId:t,rules:Array.from(e.rules||CSSRule,((t,r)=>({rule:XI(t,e.href),index:r})))})),r.styleIds.push(t)}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class jN{constructor(){TI(this,"nodeMap",new WeakMap),TI(this,"active",!1)}inOtherBuffer(t,e){const r=this.nodeMap.get(t);return r&&Array.from(r).some((t=>t!==e))}add(t,e){this.active||(this.active=!0,requestAnimationFrame((()=>{this.nodeMap=new WeakMap,this.active=!1}))),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(e))}destroy(){}}let zN,WN,VN,GN=!1;try{if(2!==Array.from([1],(t=>2*t))[0]){const t=document.createElement("iframe");document.body.appendChild(t),Array.from=(null==(EI=t.contentWindow)?void 0:EI.Array.from)||Array.from,document.body.removeChild(t)}}catch(t){console.debug("Unable to override Array.from",t)}const YN=new KI;function HN(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{emit:e,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:o="rr-block",blockSelector:s=null,ignoreClass:i="rr-ignore",ignoreSelector:a=null,maskTextClass:l="rr-mask",maskTextSelector:c=null,inlineStylesheet:u=!0,maskAllInputs:h,maskInputOptions:p,slimDOMOptions:f,maskInputFn:d,maskTextFn:m,hooks:g,packFn:y,sampling:v={},dataURLOptions:w={},mousemoveWait:b,recordDOM:S=!0,recordCanvas:C=!1,recordCrossOriginIframes:I=!1,recordAfter:x=("DOMContentLoaded"===t.recordAfter?t.recordAfter:"load"),userTriggeredOnInput:k=!1,collectFonts:A=!1,inlineImages:O=!1,plugins:R,keepIframeSrcFn:E=(()=>!1),ignoreCSSAttributes:M=new Set([]),errorHandler:T}=t;iN=T;const L=!I||window.parent===window;let N=!1;if(!L)try{window.parent.document&&(N=!1)}catch(t){N=!0}if(L&&!e)throw new Error("emit function is required");if(!L&&!N)return()=>{};void 0!==b&&void 0===v.mousemove&&(v.mousemove=b),YN.reset();const P=!0===h?{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}:void 0!==p?p:{password:!0},D=Ox(f);let F;!function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach)}();let U=0;const _=t=>{for(const e of R||[])e.eventProcessor&&(t=e.eventProcessor(t));return y&&!N&&(t=y(t)),t};zN=(t,o)=>{var s;const i=t;if(i.timestamp=EL(),!(null==(s=lN[0])?void 0:s.isFrozen())||i.type===YL.FullSnapshot||i.type===YL.IncrementalSnapshot&&i.data.source===HL.Mutation||lN.forEach((t=>t.unfreeze())),L)null==e||e(_(i),o);else if(N){const t={type:"rrweb",event:_(i),origin:window.location.origin,isCheckout:o};window.parent.postMessage(t,"*")}if(i.type===YL.FullSnapshot)F=i,U=0;else if(i.type===YL.IncrementalSnapshot){if(i.data.source===HL.Mutation&&i.data.isAttachIframe)return;U++;const t=n&&U>=n,e=r&&i.timestamp-F.timestamp>r;(t||e)&&WN(!0)}};const B=t=>{zN({type:YL.IncrementalSnapshot,data:{source:HL.Mutation,...t}})},j=t=>zN({type:YL.IncrementalSnapshot,data:{source:HL.Scroll,...t}}),z=t=>zN({type:YL.IncrementalSnapshot,data:{source:HL.CanvasMutation,...t}}),W=new BN({mutationCb:B,adoptedStyleSheetCb:t=>zN({type:YL.IncrementalSnapshot,data:{source:HL.AdoptedStyleSheet,...t}})}),V=new CN({mirror:YN,mutationCb:B,stylesheetManager:W,recordCrossOriginIframes:I,wrappedEmit:zN});for(const t of R||[])t.getMirror&&t.getMirror({nodeMirror:YN,crossOriginIframeMirror:V.crossOriginIframeMirror,crossOriginIframeStyleMirror:V.crossOriginIframeStyleMirror});const G=new jN;VN=new _N({recordCanvas:C,mutationCb:z,win:window,blockClass:o,blockSelector:s,mirror:YN,sampling:v.canvas,dataURLOptions:w});const Y=new IN({mutationCb:B,scrollCb:j,bypassOptions:{blockClass:o,blockSelector:s,maskTextClass:l,maskTextSelector:c,inlineStylesheet:u,maskInputOptions:P,dataURLOptions:w,maskTextFn:m,maskInputFn:d,recordCanvas:C,inlineImages:O,sampling:v,slimDOMOptions:D,iframeManager:V,stylesheetManager:W,canvasManager:VN,keepIframeSrcFn:E,processedNodeManager:G},mirror:YN});WN=function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!S)return;zN({type:YL.Meta,data:{href:window.location.href,width:LL(),height:TL()}},t),W.reset(),Y.init(),lN.forEach((t=>t.lock()));const e=function(t,e){const{mirror:r=new KI,blockClass:n="rr-block",blockSelector:o=null,maskTextClass:s="rr-mask",maskTextSelector:i=null,inlineStylesheet:a=!0,inlineImages:l=!1,recordCanvas:c=!1,maskAllInputs:u=!1,maskTextFn:h,maskInputFn:p,slimDOM:f=!1,dataURLOptions:d,preserveWhiteSpace:m,onSerialize:g,onIframeLoad:y,iframeLoadTimeout:v,onStylesheetLoad:w,stylesheetLoadTimeout:b,keepIframeSrcFn:S=(()=>!1)}=e||{};return Rx(t,{doc:t,mirror:r,blockClass:n,blockSelector:o,maskTextClass:s,maskTextSelector:i,skipChild:!1,inlineStylesheet:a,maskInputOptions:!0===u?{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}:!1===u?{password:!0}:u,maskTextFn:h,maskInputFn:p,slimDOMOptions:Ox(f),dataURLOptions:d,inlineImages:l,recordCanvas:c,preserveWhiteSpace:m,onSerialize:g,onIframeLoad:y,iframeLoadTimeout:v,onStylesheetLoad:w,stylesheetLoadTimeout:b,keepIframeSrcFn:S,newlyAddedElement:!1})}(document,{mirror:YN,blockClass:o,blockSelector:s,maskTextClass:l,maskTextSelector:c,inlineStylesheet:u,maskAllInputs:P,maskTextFn:m,maskInputFn:d,slimDOM:D,dataURLOptions:w,recordCanvas:C,inlineImages:O,onSerialize:t=>{_L(t,YN)&&V.addIframe(t),BL(t,YN)&&W.trackLinkElement(t),jL(t)&&Y.addShadowRoot(IL.shadowRoot(t),document)},onIframeLoad:(t,e)=>{V.attachIframe(t,e),Y.observeAttachShadow(t)},onStylesheetLoad:(t,e)=>{W.attachLinkElement(t,e)},keepIframeSrcFn:E});if(!e)return console.warn("Failed to snapshot the document");zN({type:YL.FullSnapshot,data:{node:e,initialOffset:ML(window)}},t),lN.forEach((t=>t.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&W.adoptStyleSheets(document.adoptedStyleSheets,YN.getId(document))};try{const t=[],e=t=>{var e;return aN(vN)({mutationCb:B,mousemoveCb:(t,e)=>zN({type:YL.IncrementalSnapshot,data:{source:e,positions:t}}),mouseInteractionCb:t=>zN({type:YL.IncrementalSnapshot,data:{source:HL.MouseInteraction,...t}}),scrollCb:j,viewportResizeCb:t=>zN({type:YL.IncrementalSnapshot,data:{source:HL.ViewportResize,...t}}),inputCb:t=>zN({type:YL.IncrementalSnapshot,data:{source:HL.Input,...t}}),mediaInteractionCb:t=>zN({type:YL.IncrementalSnapshot,data:{source:HL.MediaInteraction,...t}}),styleSheetRuleCb:t=>zN({type:YL.IncrementalSnapshot,data:{source:HL.StyleSheetRule,...t}}),styleDeclarationCb:t=>zN({type:YL.IncrementalSnapshot,data:{source:HL.StyleDeclaration,...t}}),canvasMutationCb:z,fontCb:t=>zN({type:YL.IncrementalSnapshot,data:{source:HL.Font,...t}}),selectionCb:t=>{zN({type:YL.IncrementalSnapshot,data:{source:HL.Selection,...t}})},customElementCb:t=>{zN({type:YL.IncrementalSnapshot,data:{source:HL.CustomElement,...t}})},blockClass:o,ignoreClass:i,ignoreSelector:a,maskTextClass:l,maskTextSelector:c,maskInputOptions:P,inlineStylesheet:u,sampling:v,recordDOM:S,recordCanvas:C,inlineImages:O,userTriggeredOnInput:k,collectFonts:A,doc:t,maskInputFn:d,maskTextFn:m,keepIframeSrcFn:E,blockSelector:s,slimDOMOptions:D,dataURLOptions:w,mirror:YN,iframeManager:V,stylesheetManager:W,shadowDomManager:Y,processedNodeManager:G,canvasManager:VN,ignoreCSSAttributes:M,plugins:(null==(e=null==R?void 0:R.filter((t=>t.observer)))?void 0:e.map((t=>({observer:t.observer,options:t.options,callback:e=>zN({type:YL.Plugin,data:{plugin:t.name,payload:e}})}))))||[]},g)};V.addLoadListener((r=>{try{t.push(e(r.contentDocument))}catch(t){console.warn(t)}}));const r=()=>{WN(),t.push(e(document)),GN=!0};return["interactive","complete"].includes(document.readyState)?r():(t.push(xL("DOMContentLoaded",(()=>{zN({type:YL.DomContentLoaded,data:{}}),"DOMContentLoaded"===x&&r()}))),t.push(xL("load",(()=>{zN({type:YL.Load,data:{}}),"load"===x&&r()}),window))),()=>{t.forEach((t=>{try{t()}catch(t){String(t).toLowerCase().includes("cross-origin")||console.warn(t)}})),G.destroy(),GN=!1,iN=void 0}}catch(t){console.warn(t)}}var ZN,JN;HN.addCustomEvent=(t,e)=>{if(!GN)throw new Error("please add custom event after start recording");zN({type:YL.Custom,data:{tag:t,payload:e}})},HN.freezePage=()=>{lN.forEach((t=>t.freeze()))},HN.takeFullSnapshot=t=>{if(!GN)throw new Error("please take full snapshot after start recording");WN(t)},HN.mirror=YN,(JN=ZN||(ZN={}))[JN.NotStarted=0]="NotStarted",JN[JN.Running=1]="Running",JN[JN.Stopped=2]="Stopped";const XN={...console},KN=["log","info","error","warn","debug"].reduce(((t,e)=>(t[e]=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];console[e]("[PageSpy] [".concat(e.toLocaleUpperCase(),"] "),...r)},t.unproxy[e]=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];XN[e]("[PageSpy] [".concat(e.toLocaleUpperCase(),"] "),...r)},t)),{unproxy:{}});class qN{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e(this,"name","RRWebPlugin"),e(this,"stopListener",null),this.options=t}onInit(t){let{socketStore:e}=t;if("object"!=typeof window||"object"!=typeof document||"[object HTMLDocument]"!==Object.prototype.toString.call(document))return void KN.warn("".concat(this.name," can only used in browser environment"));if(!MutationObserver)return void KN.warn("".concat(this.name," built on the MutationObserver API and it's not detected in the current browser"));if(qN.hasInited)return;qN.hasInited=!0;const{allowOnline:r=!1,...n}=this.options,o=HN({...n,emit(t){const r=function(t,e){return{role:"client",type:t,data:{...(!(arguments.length>2&&void 0!==arguments[2])||arguments[2])&&{id:Math.random().toString(36).slice(2)},...e}}}("rrweb-event",t);e.dispatchEvent("public-data",r)}});e.addListener("harbor-clear",(()=>{HN.takeFullSnapshot()})),o&&(this.stopListener=o)}onReset(){var t;null===(t=this.stopListener)||void 0===t||t.call(this),qN.hasInited=!1}}return e(qN,"hasInited",!1),qN}();
//# sourceMappingURL=index.min.js.map