"use strict";(()=>{var Ka=Object.create;var sr=Object.defineProperty;var za=Object.getOwnPropertyDescriptor;var Ya=Object.getOwnPropertyNames;var Ja=Object.getPrototypeOf,Xa=Object.prototype.hasOwnProperty;var d=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Za=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ya(t))!Xa.call(e,i)&&i!==n&&sr(e,i,{get:()=>t[i],enumerable:!(r=za(t,i))||r.enumerable});return e};var Q=(e,t,n)=>(n=e!=null?Ka(Ja(e)):{},Za(t||!e||!e.__esModule?sr(n,"default",{value:e,enumerable:!0}):n,e));var S=d((Ef,or)=>{var ec=or.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=ec)});var M=d((If,ar)=>{var tc=ar.exports={version:"2.6.12"};typeof __e=="number"&&(__e=tc)});var K=d((bf,cr)=>{cr.exports=function(e){return typeof e=="object"?e!==null:typeof e=="function"}});var U=d((xf,lr)=>{var nc=K();lr.exports=function(e){if(!nc(e))throw TypeError(e+" is not an object!");return e}});var We=d((_f,ur)=>{ur.exports=function(e){try{return!!e()}catch{return!0}}});var z=d((Sf,dr)=>{dr.exports=!We()(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})});var Ge=d((Lf,pr)=>{var fr=K(),Ot=S().document,rc=fr(Ot)&&fr(Ot.createElement);pr.exports=function(e){return rc?Ot.createElement(e):{}}});var yr=d((Cf,mr)=>{mr.exports=!z()&&!We()(function(){return Object.defineProperty(Ge()("div"),"a",{get:function(){return 7}}).a!=7})});var vr=d((Rf,hr)=>{var $e=K();hr.exports=function(e,t){if(!$e(e))return e;var n,r;if(t&&typeof(n=e.toString)=="function"&&!$e(r=n.call(e))||typeof(n=e.valueOf)=="function"&&!$e(r=n.call(e))||!t&&typeof(n=e.toString)=="function"&&!$e(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}});var Ae=d(Ar=>{var gr=U(),ic=yr(),sc=vr(),oc=Object.defineProperty;Ar.f=z()?Object.defineProperty:function(t,n,r){if(gr(t),n=sc(n,!0),gr(r),ic)try{return oc(t,n,r)}catch{}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}});var Mt=d((Of,Tr)=>{Tr.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var Y=d((Mf,Er)=>{var ac=Ae(),cc=Mt();Er.exports=z()?function(e,t,n){return ac.f(e,t,cc(1,n))}:function(e,t,n){return e[t]=n,e}});var Te=d((Df,Ir)=>{var lc={}.hasOwnProperty;Ir.exports=function(e,t){return lc.call(e,t)}});var Qe=d((Pf,br)=>{var uc=0,dc=Math.random();br.exports=function(e){return"Symbol(".concat(e===void 0?"":e,")_",(++uc+dc).toString(36))}});var Ke=d((qf,xr)=>{xr.exports=!1});var ze=d((kf,Cr)=>{var fc=M(),_r=S(),Sr="__core-js_shared__",Lr=_r[Sr]||(_r[Sr]={});(Cr.exports=function(e,t){return Lr[e]||(Lr[e]=t!==void 0?t:{})})("versions",[]).push({version:fc.version,mode:Ke()?"pure":"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})});var wr=d((jf,Rr)=>{Rr.exports=ze()("native-function-to-string",Function.toString)});var ie=d((Hf,Dr)=>{var pc=S(),Ye=Y(),Or=Te(),Dt=Qe()("src"),Pt=wr(),Mr="toString",mc=(""+Pt).split(Mr);M().inspectSource=function(e){return Pt.call(e)};(Dr.exports=function(e,t,n,r){var i=typeof n=="function";i&&(Or(n,"name")||Ye(n,"name",t)),e[t]!==n&&(i&&(Or(n,Dt)||Ye(n,Dt,e[t]?""+e[t]:mc.join(String(t)))),e===pc?e[t]=n:r?e[t]?e[t]=n:Ye(e,t,n):(delete e[t],Ye(e,t,n)))})(Function.prototype,Mr,function(){return typeof this=="function"&&this[Dt]||Pt.call(this)})});var Ee=d((Nf,Pr)=>{Pr.exports=function(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e}});var Ie=d((Ff,qr)=>{var yc=Ee();qr.exports=function(e,t,n){if(yc(e),t===void 0)return e;switch(n){case 1:return function(r){return e.call(t,r)};case 2:return function(r,i){return e.call(t,r,i)};case 3:return function(r,i,s){return e.call(t,r,i,s)}}return function(){return e.apply(t,arguments)}}});var V=d((Uf,jr)=>{var se=S(),Je=M(),hc=Y(),vc=ie(),kr=Ie(),qt="prototype",_=function(e,t,n){var r=e&_.F,i=e&_.G,s=e&_.S,c=e&_.P,a=e&_.B,l=i?se:s?se[t]||(se[t]={}):(se[t]||{})[qt],u=i?Je:Je[t]||(Je[t]={}),p=u[qt]||(u[qt]={}),f,m,g,j;i&&(n=t);for(f in n)m=!r&&l&&l[f]!==void 0,g=(m?l:n)[f],j=a&&m?kr(g,se):c&&typeof g=="function"?kr(Function.call,g):g,l&&vc(l,f,g,e&_.U),u[f]!=g&&hc(u,f,j),c&&p[f]!=g&&(p[f]=g)};se.core=Je;_.F=1;_.G=2;_.S=4;_.P=8;_.B=16;_.W=32;_.U=64;_.R=128;jr.exports=_});var oe=d((Vf,Hr)=>{var gc={}.toString;Hr.exports=function(e){return gc.call(e).slice(8,-1)}});var kt=d((Bf,Nr)=>{var Ac=oe();Nr.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return Ac(e)=="String"?e.split(""):Object(e)}});var be=d((Wf,Fr)=>{Fr.exports=function(e){if(e==null)throw TypeError("Can't call method on  "+e);return e}});var Xe=d((Gf,Ur)=>{var Tc=kt(),Ec=be();Ur.exports=function(e){return Tc(Ec(e))}});var Ze=d(($f,Vr)=>{var Ic=Math.ceil,bc=Math.floor;Vr.exports=function(e){return isNaN(e=+e)?0:(e>0?bc:Ic)(e)}});var jt=d((Qf,Br)=>{var xc=Ze(),_c=Math.min;Br.exports=function(e){return e>0?_c(xc(e),9007199254740991):0}});var Gr=d((Kf,Wr)=>{var Sc=Ze(),Lc=Math.max,Cc=Math.min;Wr.exports=function(e,t){return e=Sc(e),e<0?Lc(e+t,0):Cc(e,t)}});var Ht=d((zf,$r)=>{var Rc=Xe(),wc=jt(),Oc=Gr();$r.exports=function(e){return function(t,n,r){var i=Rc(t),s=wc(i.length),c=Oc(r,s),a;if(e&&n!=n){for(;s>c;)if(a=i[c++],a!=a)return!0}else for(;s>c;c++)if((e||c in i)&&i[c]===n)return e||c||0;return!e&&-1}}});var b=d((Yf,Kr)=>{var Nt=ze()("wks"),Mc=Qe(),Ft=S().Symbol,Qr=typeof Ft=="function",Dc=Kr.exports=function(e){return Nt[e]||(Nt[e]=Qr&&Ft[e]||(Qr?Ft:Mc)("Symbol."+e))};Dc.store=Nt});var Bt=d((Jf,zr)=>{var Ut=b()("unscopables"),Vt=Array.prototype;Vt[Ut]==null&&Y()(Vt,Ut,{});zr.exports=function(e){Vt[Ut][e]=!0}});var Jr=d(()=>{"use strict";var Yr=V(),Pc=Ht()(!0);Yr(Yr.P,"Array",{includes:function(t){return Pc(this,t,arguments.length>1?arguments[1]:void 0)}});Bt()("includes")});var Zr=d((ep,Xr)=>{Jr();Xr.exports=M().Array.includes});var et=d((tp,ti)=>{var ei=ze()("keys"),qc=Qe();ti.exports=function(e){return ei[e]||(ei[e]=qc(e))}});var ii=d((np,ri)=>{var ni=Te(),kc=Xe(),jc=Ht()(!1),Hc=et()("IE_PROTO");ri.exports=function(e,t){var n=kc(e),r=0,i=[],s;for(s in n)s!=Hc&&ni(n,s)&&i.push(s);for(;t.length>r;)ni(n,s=t[r++])&&(~jc(i,s)||i.push(s));return i}});var Wt=d((rp,si)=>{si.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")});var tt=d((ip,oi)=>{var Nc=ii(),Fc=Wt();oi.exports=Object.keys||function(t){return Nc(t,Fc)}});var ci=d(ai=>{ai.f=Object.getOwnPropertySymbols});var ui=d(li=>{li.f={}.propertyIsEnumerable});var Gt=d((ap,di)=>{var Uc=be();di.exports=function(e){return Object(Uc(e))}});var mi=d((cp,pi)=>{"use strict";var Vc=z(),fi=tt(),Bc=ci(),Wc=ui(),Gc=Gt(),$c=kt(),nt=Object.assign;pi.exports=!nt||We()(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(i){t[i]=i}),nt({},e)[n]!=7||Object.keys(nt({},t)).join("")!=r})?function(t,n){for(var r=Gc(t),i=arguments.length,s=1,c=Bc.f,a=Wc.f;i>s;)for(var l=$c(arguments[s++]),u=c?fi(l).concat(c(l)):fi(l),p=u.length,f=0,m;p>f;)m=u[f++],(!Vc||a.call(l,m))&&(r[m]=l[m]);return r}:nt});var yi=d(()=>{var $t=V();$t($t.S+$t.F,"Object",{assign:mi()})});var vi=d((dp,hi)=>{yi();hi.exports=M().Object.assign});var rt=d((fp,gi)=>{var Qt=oe(),Qc=b()("toStringTag"),Kc=Qt(function(){return arguments}())=="Arguments",zc=function(e,t){try{return e[t]}catch{}};gi.exports=function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=zc(t=Object(e),Qc))=="string"?n:Kc?Qt(t):(r=Qt(t))=="Object"&&typeof t.callee=="function"?"Arguments":r}});var Ti=d(()=>{"use strict";var Yc=rt(),Ai={};Ai[b()("toStringTag")]="z";Ai+""!="[object z]"&&ie()(Object.prototype,"toString",function(){return"[object "+Yc(this)+"]"},!0)});var Ii=d((yp,Ei)=>{var Jc=Ze(),Xc=be();Ei.exports=function(e){return function(t,n){var r=String(Xc(t)),i=Jc(n),s=r.length,c,a;return i<0||i>=s?e?"":void 0:(c=r.charCodeAt(i),c<55296||c>56319||i+1===s||(a=r.charCodeAt(i+1))<56320||a>57343?e?r.charAt(i):c:e?r.slice(i,i+2):(c-55296<<10)+(a-56320)+65536)}}});var ae=d((hp,bi)=>{bi.exports={}});var _i=d((vp,xi)=>{var Zc=Ae(),el=U(),tl=tt();xi.exports=z()?Object.defineProperties:function(t,n){el(t);for(var r=tl(n),i=r.length,s=0,c;i>s;)Zc.f(t,c=r[s++],n[c]);return t}});var Kt=d((gp,Li)=>{var Si=S().document;Li.exports=Si&&Si.documentElement});var wi=d((Ap,Ri)=>{var nl=U(),rl=_i(),Ci=Wt(),il=et()("IE_PROTO"),zt=function(){},Yt="prototype",it=function(){var e=Ge()("iframe"),t=Ci.length,n="<",r=">",i;for(e.style.display="none",Kt().appendChild(e),e.src="javascript:",i=e.contentWindow.document,i.open(),i.write(n+"script"+r+"document.F=Object"+n+"/script"+r),i.close(),it=i.F;t--;)delete it[Yt][Ci[t]];return it()};Ri.exports=Object.create||function(t,n){var r;return t!==null?(zt[Yt]=nl(t),r=new zt,zt[Yt]=null,r[il]=t):r=it(),n===void 0?r:rl(r,n)}});var st=d((Tp,Mi)=>{var sl=Ae().f,ol=Te(),Oi=b()("toStringTag");Mi.exports=function(e,t,n){e&&!ol(e=n?e:e.prototype,Oi)&&sl(e,Oi,{configurable:!0,value:t})}});var qi=d((Ep,Pi)=>{"use strict";var al=wi(),cl=Mt(),ll=st(),Di={};Y()(Di,b()("iterator"),function(){return this});Pi.exports=function(e,t,n){e.prototype=al(Di,{next:cl(1,n)}),ll(e,t+" Iterator")}});var Hi=d((Ip,ji)=>{var ul=Te(),dl=Gt(),ki=et()("IE_PROTO"),fl=Object.prototype;ji.exports=Object.getPrototypeOf||function(e){return e=dl(e),ul(e,ki)?e[ki]:typeof e.constructor=="function"&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?fl:null}});var Zt=d((bp,Wi)=>{"use strict";var Ni=Ke(),Jt=V(),pl=ie(),Fi=Y(),Ui=ae(),ml=qi(),yl=st(),hl=Hi(),xe=b()("iterator"),Xt=!([].keys&&"next"in[].keys()),vl="@@iterator",Vi="keys",ot="values",Bi=function(){return this};Wi.exports=function(e,t,n,r,i,s,c){ml(n,t,r);var a=function($){if(!Xt&&$ in f)return f[$];switch($){case Vi:return function(){return new n(this,$)};case ot:return function(){return new n(this,$)}}return function(){return new n(this,$)}},l=t+" Iterator",u=i==ot,p=!1,f=e.prototype,m=f[xe]||f[vl]||i&&f[i],g=m||a(i),j=i?u?a("entries"):g:void 0,R=t=="Array"&&f.entries||m,A,Be,re;if(R&&(re=hl(R.call(new e)),re!==Object.prototype&&re.next&&(yl(re,l,!0),!Ni&&typeof re[xe]!="function"&&Fi(re,xe,Bi))),u&&m&&m.name!==ot&&(p=!0,g=function(){return m.call(this)}),(!Ni||c)&&(Xt||p||!f[xe])&&Fi(f,xe,g),Ui[t]=g,Ui[l]=Bi,i)if(A={values:u?g:a(ot),keys:s?g:a(Vi),entries:j},c)for(Be in A)Be in f||pl(f,Be,A[Be]);else Jt(Jt.P+Jt.F*(Xt||p),t,A);return A}});var Gi=d(()=>{"use strict";var gl=Ii()(!0);Zt()(String,"String",function(e){this._t=String(e),this._i=0},function(){var e=this._t,t=this._i,n;return t>=e.length?{value:void 0,done:!0}:(n=gl(e,t),this._i+=n.length,{value:n,done:!1})})});var Qi=d((Sp,$i)=>{$i.exports=function(e,t){return{value:t,done:!!e}}});var Yi=d((Lp,zi)=>{"use strict";var en=Bt(),at=Qi(),Ki=ae(),Al=Xe();zi.exports=Zt()(Array,"Array",function(e,t){this._t=Al(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,at(1)):t=="keys"?at(0,n):t=="values"?at(0,e[n]):at(0,[n,e[n]])},"values");Ki.Arguments=Ki.Array;en("keys");en("values");en("entries")});var os=d(()=>{var Ji=Yi(),Tl=tt(),El=ie(),Il=S(),Xi=Y(),is=ae(),ss=b(),Zi=ss("iterator"),es=ss("toStringTag"),ts=is.Array,ns={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1};for(tn=Tl(ns),ct=0;ct<tn.length;ct++)if(_e=tn[ct],rs=ns[_e],nn=Il[_e],B=nn&&nn.prototype,B&&(B[Zi]||Xi(B,Zi,ts),B[es]||Xi(B,es,_e),is[_e]=ts,rs))for(Se in Ji)B[Se]||El(B,Se,Ji[Se],!0);var _e,rs,nn,B,Se,tn,ct});var cs=d((wp,as)=>{as.exports=function(e,t,n,r){if(!(e instanceof t)||r!==void 0&&r in e)throw TypeError(n+": incorrect invocation!");return e}});var ds=d((Op,us)=>{var ls=U();us.exports=function(e,t,n,r){try{return r?t(ls(n)[0],n[1]):t(n)}catch(s){var i=e.return;throw i!==void 0&&ls(i.call(e)),s}}});var ps=d((Mp,fs)=>{var bl=ae(),xl=b()("iterator"),_l=Array.prototype;fs.exports=function(e){return e!==void 0&&(bl.Array===e||_l[xl]===e)}});var ys=d((Dp,ms)=>{var Sl=rt(),Ll=b()("iterator"),Cl=ae();ms.exports=M().getIteratorMethod=function(e){if(e!=null)return e[Ll]||e["@@iterator"]||Cl[Sl(e)]}});var vs=d((lt,hs)=>{var Rl=Ie(),wl=ds(),Ol=ps(),Ml=U(),Dl=jt(),Pl=ys(),rn={},sn={},lt=hs.exports=function(e,t,n,r,i){var s=i?function(){return e}:Pl(e),c=Rl(n,r,t?2:1),a=0,l,u,p,f;if(typeof s!="function")throw TypeError(e+" is not iterable!");if(Ol(s)){for(l=Dl(e.length);l>a;a++)if(f=t?c(Ml(u=e[a])[0],u[1]):c(e[a]),f===rn||f===sn)return f}else for(p=s.call(e);!(u=p.next()).done;)if(f=wl(p,c,u.value,t),f===rn||f===sn)return f};lt.BREAK=rn;lt.RETURN=sn});var on=d((Pp,As)=>{var gs=U(),ql=Ee(),kl=b()("species");As.exports=function(e,t){var n=gs(e).constructor,r;return n===void 0||(r=gs(n)[kl])==null?t:ql(r)}});var Es=d((qp,Ts)=>{Ts.exports=function(e,t,n){var r=n===void 0;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}});var pn=d((kp,Cs)=>{var ut=Ie(),jl=Es(),Is=Kt(),bs=Ge(),H=S(),xs=H.process,dn=H.setImmediate,fn=H.clearImmediate,_s=H.MessageChannel,an=H.Dispatch,cn=0,Ce={},Ss="onreadystatechange",J,ln,un,Le=function(){var e=+this;if(Ce.hasOwnProperty(e)){var t=Ce[e];delete Ce[e],t()}},Ls=function(e){Le.call(e.data)};(!dn||!fn)&&(dn=function(t){for(var n=[],r=1;arguments.length>r;)n.push(arguments[r++]);return Ce[++cn]=function(){jl(typeof t=="function"?t:Function(t),n)},J(cn),cn},fn=function(t){delete Ce[t]},oe()(xs)=="process"?J=function(e){xs.nextTick(ut(Le,e,1))}:an&&an.now?J=function(e){an.now(ut(Le,e,1))}:_s?(ln=new _s,un=ln.port2,ln.port1.onmessage=Ls,J=ut(un.postMessage,un,1)):H.addEventListener&&typeof postMessage=="function"&&!H.importScripts?(J=function(e){H.postMessage(e+"","*")},H.addEventListener("message",Ls,!1)):Ss in bs("script")?J=function(e){Is.appendChild(bs("script"))[Ss]=function(){Is.removeChild(this),Le.call(e)}}:J=function(e){setTimeout(ut(Le,e,1),0)});Cs.exports={set:dn,clear:fn}});var Ms=d((jp,Os)=>{var X=S(),Hl=pn().set,Rs=X.MutationObserver||X.WebKitMutationObserver,yn=X.process,mn=X.Promise,ws=oe()(yn)=="process";Os.exports=function(){var e,t,n,r=function(){var a,l;for(ws&&(a=yn.domain)&&a.exit();e;){l=e.fn,e=e.next;try{l()}catch(u){throw e?n():t=void 0,u}}t=void 0,a&&a.enter()};if(ws)n=function(){yn.nextTick(r)};else if(Rs&&!(X.navigator&&X.navigator.standalone)){var i=!0,s=document.createTextNode("");new Rs(r).observe(s,{characterData:!0}),n=function(){s.data=i=!i}}else if(mn&&mn.resolve){var c=mn.resolve(void 0);n=function(){c.then(r)}}else n=function(){Hl.call(X,r)};return function(a){var l={fn:a,next:void 0};t&&(t.next=l),e||(e=l,n()),t=l}}});var dt=d((Hp,Ps)=>{"use strict";var Ds=Ee();function Nl(e){var t,n;this.promise=new e(function(r,i){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=i}),this.resolve=Ds(t),this.reject=Ds(n)}Ps.exports.f=function(e){return new Nl(e)}});var hn=d((Np,qs)=>{qs.exports=function(e){try{return{e:!1,v:e()}}catch(t){return{e:!0,v:t}}}});var Hs=d((Fp,js)=>{var Fl=S(),ks=Fl.navigator;js.exports=ks&&ks.userAgent||""});var vn=d((Up,Ns)=>{var Ul=U(),Vl=K(),Bl=dt();Ns.exports=function(e,t){if(Ul(e),Vl(t)&&t.constructor===e)return t;var n=Bl.f(e),r=n.resolve;return r(t),n.promise}});var Us=d((Vp,Fs)=>{var Wl=ie();Fs.exports=function(e,t,n){for(var r in t)Wl(e,r,t[r],n);return e}});var Ws=d((Bp,Bs)=>{"use strict";var Gl=S(),$l=Ae(),Ql=z(),Vs=b()("species");Bs.exports=function(e){var t=Gl[e];Ql&&t&&!t[Vs]&&$l.f(t,Vs,{configurable:!0,get:function(){return this}})}});var Qs=d((Wp,$s)=>{var An=b()("iterator"),Gs=!1;try{gn=[7][An](),gn.return=function(){Gs=!0},Array.from(gn,function(){throw 2})}catch{}var gn;$s.exports=function(e,t){if(!t&&!Gs)return!1;var n=!1;try{var r=[7],i=r[An]();i.next=function(){return{done:n=!0}},r[An]=function(){return i},e(r)}catch{}return n}});var so=d(()=>{"use strict";var Ks=Ke(),W=S(),ce=Ie(),Kl=rt(),C=V(),zl=K(),Yl=Ee(),Jl=cs(),zs=vs(),Xl=on(),Zs=pn().set,eo=Ms()(),to=dt(),Tn=hn(),Zl=Hs(),eu=vn(),G="Promise",no=W.TypeError,ue=W.process,Ys=ue&&ue.versions,tu=Ys&&Ys.v8||"",P=W[G],Re=Kl(ue)=="process",pt=function(){},ft,ro,Js,In,we=ro=to.f,Oe=!!function(){try{var e=P.resolve(1),t=(e.constructor={})[b()("species")]=function(n){n(pt,pt)};return(Re||typeof PromiseRejectionEvent=="function")&&e.then(pt)instanceof t&&tu.indexOf("6.6")!==0&&Zl.indexOf("Chrome/66")===-1}catch{}}(),io=function(e){var t;return zl(e)&&typeof(t=e.then)=="function"?t:!1},bn=function(e,t){if(!e._n){e._n=!0;var n=e._c;eo(function(){for(var r=e._v,i=e._s==1,s=0,c=function(a){var l=i?a.ok:a.fail,u=a.resolve,p=a.reject,f=a.domain,m,g,j;try{l?(i||(e._h==2&&ru(e),e._h=1),l===!0?m=r:(f&&f.enter(),m=l(r),f&&(f.exit(),j=!0)),m===a.promise?p(no("Promise-chain cycle")):(g=io(m))?g.call(m,u,p):u(m)):p(r)}catch(R){f&&!j&&f.exit(),p(R)}};n.length>s;)c(n[s++]);e._c=[],e._n=!1,t&&!e._h&&nu(e)})}},nu=function(e){Zs.call(W,function(){var t=e._v,n=Xs(e),r,i,s;if(n&&(r=Tn(function(){Re?ue.emit("unhandledRejection",t,e):(i=W.onunhandledrejection)?i({promise:e,reason:t}):(s=W.console)&&s.error&&s.error("Unhandled promise rejection",t)}),e._h=Re||Xs(e)?2:1),e._a=void 0,n&&r.e)throw r.v})},Xs=function(e){return e._h!==1&&(e._a||e._c).length===0},ru=function(e){Zs.call(W,function(){var t;Re?ue.emit("rejectionHandled",e):(t=W.onrejectionhandled)&&t({promise:e,reason:e._v})})},le=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),bn(t,!0))},En=function(e){var t=this,n;if(!t._d){t._d=!0,t=t._w||t;try{if(t===e)throw no("Promise can't be resolved itself");(n=io(e))?eo(function(){var r={_w:t,_d:!1};try{n.call(e,ce(En,r,1),ce(le,r,1))}catch(i){le.call(r,i)}}):(t._v=e,t._s=1,bn(t,!1))}catch(r){le.call({_w:t,_d:!1},r)}}};Oe||(P=function(t){Jl(this,P,G,"_h"),Yl(t),ft.call(this);try{t(ce(En,this,1),ce(le,this,1))}catch(n){le.call(this,n)}},ft=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},ft.prototype=Us()(P.prototype,{then:function(t,n){var r=we(Xl(this,P));return r.ok=typeof t=="function"?t:!0,r.fail=typeof n=="function"&&n,r.domain=Re?ue.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&bn(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),Js=function(){var e=new ft;this.promise=e,this.resolve=ce(En,e,1),this.reject=ce(le,e,1)},to.f=we=function(e){return e===P||e===In?new Js(e):ro(e)});C(C.G+C.W+C.F*!Oe,{Promise:P});st()(P,G);Ws()(G);In=M()[G];C(C.S+C.F*!Oe,G,{reject:function(t){var n=we(this),r=n.reject;return r(t),n.promise}});C(C.S+C.F*(Ks||!Oe),G,{resolve:function(t){return eu(Ks&&this===In?P:this,t)}});C(C.S+C.F*!(Oe&&Qs()(function(e){P.all(e).catch(pt)})),G,{all:function(t){var n=this,r=we(n),i=r.resolve,s=r.reject,c=Tn(function(){var a=[],l=0,u=1;zs(t,!1,function(p){var f=l++,m=!1;a.push(void 0),u++,n.resolve(p).then(function(g){m||(m=!0,a[f]=g,--u||i(a))},s)}),--u||i(a)});return c.e&&s(c.v),r.promise},race:function(t){var n=this,r=we(n),i=r.reject,s=Tn(function(){zs(t,!1,function(c){n.resolve(c).then(r.resolve,i)})});return s.e&&i(s.v),r.promise}})});var ao=d(()=>{"use strict";var xn=V(),iu=M(),su=S(),ou=on(),oo=vn();xn(xn.P+xn.R,"Promise",{finally:function(e){var t=ou(this,iu.Promise||su.Promise),n=typeof e=="function";return this.then(n?function(r){return oo(t,e()).then(function(){return r})}:e,n?function(r){return oo(t,e()).then(function(){throw r})}:e)}})});var lo=d(()=>{"use strict";var co=V(),au=dt(),cu=hn();co(co.S,"Promise",{try:function(e){var t=au.f(this),n=cu(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})});var fo=d((Jp,uo)=>{Ti();Gi();os();so();ao();lo();uo.exports=M().Promise});var mo=d((Xp,po)=>{var lu=K(),uu=oe(),du=b()("match");po.exports=function(e){var t;return lu(e)&&((t=e[du])!==void 0?!!t:uu(e)=="RegExp")}});var ho=d((Zp,yo)=>{var fu=mo(),pu=be();yo.exports=function(e,t,n){if(fu(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(pu(e))}});var go=d((em,vo)=>{var mu=b()("match");vo.exports=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[mu]=!1,!"/./"[e](t)}catch{}}return!0}});var To=d(()=>{"use strict";var _n=V(),yu=ho(),Ao="includes";_n(_n.P+_n.F*go()(Ao),"String",{includes:function(t){return!!~yu(this,t,Ao).indexOf(t,arguments.length>1?arguments[1]:void 0)}})});var Io=d((rm,Eo)=>{To();Eo.exports=M().String.includes});var Aa=d(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});var md=function(){function e(){var t=this;this.locked=new Map,this.addToLocked=function(n,r){var i=t.locked.get(n);i===void 0?r===void 0?t.locked.set(n,[]):t.locked.set(n,[r]):r!==void 0&&(i.unshift(r),t.locked.set(n,i))},this.isLocked=function(n){return t.locked.has(n)},this.lock=function(n){return new Promise(function(r,i){t.isLocked(n)?t.addToLocked(n,r):(t.addToLocked(n),r())})},this.unlock=function(n){var r=t.locked.get(n);if(r===void 0||r.length===0){t.locked.delete(n);return}var i=r.pop();t.locked.set(n,r),i!==void 0&&setTimeout(i,0)}}return e.getInstance=function(){return e.instance===void 0&&(e.instance=new e),e.instance},e}();function yd(){return md.getInstance()}Fn.default=yd});var Wn=d(ne=>{"use strict";var pe=ne&&ne.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,s){function c(u){try{l(r.next(u))}catch(p){s(p)}}function a(u){try{l(r.throw(u))}catch(p){s(p)}}function l(u){u.done?i(u.value):new n(function(p){p(u.value)}).then(c,a)}l((r=r.apply(e,t||[])).next())})},me=ne&&ne.__generator||function(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,c;return c={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function a(u){return function(p){return l([u,p])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(s=u[0]&2?i.return:u[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,u[1])).done)return s;switch(i=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){n.label=u[1];break}if(u[0]===6&&n.label<s[1]){n.label=s[1],s=u;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(u);break}s[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(p){u=[6,p],i=0}finally{r=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}};Object.defineProperty(ne,"__esModule",{value:!0});var ye=Aa(),Un="browser-tabs-lock-key";function Vn(e){return new Promise(function(t){return setTimeout(t,e)})}function Bn(e){for(var t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",n="",r=0;r<e;r++){var i=Math.floor(Math.random()*t.length);n+=t[i]}return n}function hd(){return Date.now().toString()+Bn(15)}var vd=function(){function e(){this.acquiredIatSet=new Set,this.id=hd(),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),e.waiters===void 0&&(e.waiters=[])}return e.prototype.acquireLock=function(t,n){return n===void 0&&(n=5e3),pe(this,void 0,void 0,function(){var r,i,s,c,a,l,u;return me(this,function(p){switch(p.label){case 0:r=Date.now()+Bn(4),i=Date.now()+n,s=Un+"-"+t,c=window.localStorage,p.label=1;case 1:return Date.now()<i?[4,Vn(30)]:[3,8];case 2:return p.sent(),a=c.getItem(s),a!==null?[3,5]:(l=this.id+"-"+t+"-"+r,[4,Vn(Math.floor(Math.random()*25))]);case 3:return p.sent(),c.setItem(s,JSON.stringify({id:this.id,iat:r,timeoutKey:l,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,Vn(30)];case 4:return p.sent(),u=c.getItem(s),u!==null&&(u=JSON.parse(u),u.id===this.id&&u.iat===r)?(this.acquiredIatSet.add(r),this.refreshLockWhileAcquired(s,r),[2,!0]):[3,7];case 5:return e.lockCorrector(),[4,this.waitForSomethingToChange(i)];case 6:p.sent(),p.label=7;case 7:return r=Date.now()+Bn(4),[3,1];case 8:return[2,!1]}})})},e.prototype.refreshLockWhileAcquired=function(t,n){return pe(this,void 0,void 0,function(){var r=this;return me(this,function(i){return setTimeout(function(){return pe(r,void 0,void 0,function(){var s,c;return me(this,function(a){switch(a.label){case 0:return[4,ye.default().lock(n)];case 1:if(a.sent(),!this.acquiredIatSet.has(n))return ye.default().unlock(n),[2];if(s=window.localStorage,c=s.getItem(t),c!==null)c=JSON.parse(c),c.timeRefreshed=Date.now(),s.setItem(t,JSON.stringify(c)),ye.default().unlock(n);else return ye.default().unlock(n),[2];return this.refreshLockWhileAcquired(t,n),[2]}})})},1e3),[2]})})},e.prototype.waitForSomethingToChange=function(t){return pe(this,void 0,void 0,function(){return me(this,function(n){switch(n.label){case 0:return[4,new Promise(function(r){var i=!1,s=Date.now(),c=50,a=!1;function l(){if(a||(window.removeEventListener("storage",l),e.removeFromWaiting(l),clearTimeout(u),a=!0),!i){i=!0;var p=c-(Date.now()-s);p>0?setTimeout(r,p):r()}}window.addEventListener("storage",l),e.addToWaiting(l);var u=setTimeout(l,Math.max(0,t-Date.now()))})];case 1:return n.sent(),[2]}})})},e.addToWaiting=function(t){this.removeFromWaiting(t),e.waiters!==void 0&&e.waiters.push(t)},e.removeFromWaiting=function(t){e.waiters!==void 0&&(e.waiters=e.waiters.filter(function(n){return n!==t}))},e.notifyWaiters=function(){if(e.waiters!==void 0){var t=e.waiters.slice();t.forEach(function(n){return n()})}},e.prototype.releaseLock=function(t){return pe(this,void 0,void 0,function(){return me(this,function(n){switch(n.label){case 0:return[4,this.releaseLock__private__(t)];case 1:return[2,n.sent()]}})})},e.prototype.releaseLock__private__=function(t){return pe(this,void 0,void 0,function(){var n,r,i;return me(this,function(s){switch(s.label){case 0:return n=window.localStorage,r=Un+"-"+t,i=n.getItem(r),i===null?[2]:(i=JSON.parse(i),i.id!==this.id?[3,2]:[4,ye.default().lock(i.iat)]);case 1:s.sent(),this.acquiredIatSet.delete(i.iat),n.removeItem(r),ye.default().unlock(i.iat),e.notifyWaiters(),s.label=2;case 2:return[2]}})})},e.lockCorrector=function(){for(var t=Date.now()-5e3,n=window.localStorage,r=Object.keys(n),i=!1,s=0;s<r.length;s++){var c=r[s];if(c.includes(Un)){var a=n.getItem(c);a!==null&&(a=JSON.parse(a),(a.timeRefreshed===void 0&&a.timeAcquired<t||a.timeRefreshed!==void 0&&a.timeRefreshed<t)&&(n.removeItem(c),i=!0))}}i&&e.notifyWaiters()},e.waiters=void 0,e}();ne.default=vd});var Lt=d((Uh,wa)=>{wa.exports=Ra;function Ra(e,t){if(!e)throw new Error(t||"Assertion failed")}Ra.equal=function(t,n,r){if(t!=n)throw new Error(r||"Assertion failed: "+t+" != "+n)}});var Oa=d((Vh,Xn)=>{typeof Object.create=="function"?Xn.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Xn.exports=function(t,n){if(n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}}});var Ct=d(h=>{"use strict";var Td=Lt(),Ed=Oa();h.inherits=Ed;function Id(e,t){return(e.charCodeAt(t)&64512)!==55296||t<0||t+1>=e.length?!1:(e.charCodeAt(t+1)&64512)===56320}function bd(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if(typeof e=="string")if(t){if(t==="hex")for(e=e.replace(/[^a-z0-9]+/ig,""),e.length%2!==0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var s=e.charCodeAt(i);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=s&63|128):Id(e,i)?(s=65536+((s&1023)<<10)+(e.charCodeAt(++i)&1023),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=s&63|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=s&63|128)}else for(i=0;i<e.length;i++)n[i]=e[i]|0;return n}h.toArray=bd;function xd(e){for(var t="",n=0;n<e.length;n++)t+=Da(e[n].toString(16));return t}h.toHex=xd;function Ma(e){var t=e>>>24|e>>>8&65280|e<<8&16711680|(e&255)<<24;return t>>>0}h.htonl=Ma;function _d(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];t==="little"&&(i=Ma(i)),n+=Pa(i.toString(16))}return n}h.toHex32=_d;function Da(e){return e.length===1?"0"+e:e}h.zero2=Da;function Pa(e){return e.length===7?"0"+e:e.length===6?"00"+e:e.length===5?"000"+e:e.length===4?"0000"+e:e.length===3?"00000"+e:e.length===2?"000000"+e:e.length===1?"0000000"+e:e}h.zero8=Pa;function Sd(e,t,n,r){var i=n-t;Td(i%4===0);for(var s=new Array(i/4),c=0,a=t;c<s.length;c++,a+=4){var l;r==="big"?l=e[a]<<24|e[a+1]<<16|e[a+2]<<8|e[a+3]:l=e[a+3]<<24|e[a+2]<<16|e[a+1]<<8|e[a],s[c]=l>>>0}return s}h.join32=Sd;function Ld(e,t){for(var n=new Array(e.length*4),r=0,i=0;r<e.length;r++,i+=4){var s=e[r];t==="big"?(n[i]=s>>>24,n[i+1]=s>>>16&255,n[i+2]=s>>>8&255,n[i+3]=s&255):(n[i+3]=s>>>24,n[i+2]=s>>>16&255,n[i+1]=s>>>8&255,n[i]=s&255)}return n}h.split32=Ld;function Cd(e,t){return e>>>t|e<<32-t}h.rotr32=Cd;function Rd(e,t){return e<<t|e>>>32-t}h.rotl32=Rd;function wd(e,t){return e+t>>>0}h.sum32=wd;function Od(e,t,n){return e+t+n>>>0}h.sum32_3=Od;function Md(e,t,n,r){return e+t+n+r>>>0}h.sum32_4=Md;function Dd(e,t,n,r,i){return e+t+n+r+i>>>0}h.sum32_5=Dd;function Pd(e,t,n,r){var i=e[t],s=e[t+1],c=r+s>>>0,a=(c<r?1:0)+n+i;e[t]=a>>>0,e[t+1]=c}h.sum64=Pd;function qd(e,t,n,r){var i=t+r>>>0,s=(i<t?1:0)+e+n;return s>>>0}h.sum64_hi=qd;function kd(e,t,n,r){var i=t+r;return i>>>0}h.sum64_lo=kd;function jd(e,t,n,r,i,s,c,a){var l=0,u=t;u=u+r>>>0,l+=u<t?1:0,u=u+s>>>0,l+=u<s?1:0,u=u+a>>>0,l+=u<a?1:0;var p=e+n+i+c+l;return p>>>0}h.sum64_4_hi=jd;function Hd(e,t,n,r,i,s,c,a){var l=t+r+s+a;return l>>>0}h.sum64_4_lo=Hd;function Nd(e,t,n,r,i,s,c,a,l,u){var p=0,f=t;f=f+r>>>0,p+=f<t?1:0,f=f+s>>>0,p+=f<s?1:0,f=f+a>>>0,p+=f<a?1:0,f=f+u>>>0,p+=f<u?1:0;var m=e+n+i+c+l+p;return m>>>0}h.sum64_5_hi=Nd;function Fd(e,t,n,r,i,s,c,a,l,u){var p=t+r+s+a+u;return p>>>0}h.sum64_5_lo=Fd;function Ud(e,t,n){var r=t<<32-n|e>>>n;return r>>>0}h.rotr64_hi=Ud;function Vd(e,t,n){var r=e<<32-n|t>>>n;return r>>>0}h.rotr64_lo=Vd;function Bd(e,t,n){return e>>>n}h.shr64_hi=Bd;function Wd(e,t,n){var r=e<<32-n|t>>>n;return r>>>0}h.shr64_lo=Wd});var ja=d(ka=>{"use strict";var qa=Ct(),Gd=Lt();function Rt(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}ka.BlockHash=Rt;Rt.prototype.update=function(t,n){if(t=qa.toArray(t,n),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){t=this.pending;var r=t.length%this._delta8;this.pending=t.slice(t.length-r,t.length),this.pending.length===0&&(this.pending=null),t=qa.join32(t,0,t.length-r,this.endian);for(var i=0;i<t.length;i+=this._delta32)this._update(t,i,i+this._delta32)}return this};Rt.prototype.digest=function(t){return this.update(this._pad()),Gd(this.pending===null),this._digest(t)};Rt.prototype._pad=function(){var t=this.pendingTotal,n=this._delta8,r=n-(t+this.padLength)%n,i=new Array(r+this.padLength);i[0]=128;for(var s=1;s<r;s++)i[s]=0;if(t<<=3,this.endian==="big"){for(var c=8;c<this.padLength;c++)i[s++]=0;i[s++]=0,i[s++]=0,i[s++]=0,i[s++]=0,i[s++]=t>>>24&255,i[s++]=t>>>16&255,i[s++]=t>>>8&255,i[s++]=t&255}else for(i[s++]=t&255,i[s++]=t>>>8&255,i[s++]=t>>>16&255,i[s++]=t>>>24&255,i[s++]=0,i[s++]=0,i[s++]=0,i[s++]=0,c=8;c<this.padLength;c++)i[s++]=0;return i}});var Ua=d(F=>{"use strict";var $d=Ct(),q=$d.rotr32;function Qd(e,t,n,r){if(e===0)return Ha(t,n,r);if(e===1||e===3)return Fa(t,n,r);if(e===2)return Na(t,n,r)}F.ft_1=Qd;function Ha(e,t,n){return e&t^~e&n}F.ch32=Ha;function Na(e,t,n){return e&t^e&n^t&n}F.maj32=Na;function Fa(e,t,n){return e^t^n}F.p32=Fa;function Kd(e){return q(e,2)^q(e,13)^q(e,22)}F.s0_256=Kd;function zd(e){return q(e,6)^q(e,11)^q(e,25)}F.s1_256=zd;function Yd(e){return q(e,7)^q(e,18)^e>>>3}F.g0_256=Yd;function Jd(e){return q(e,17)^q(e,19)^e>>>10}F.g1_256=Jd});var Wa=d(($h,Ba)=>{"use strict";var he=Ct(),Xd=ja(),ve=Ua(),Zd=Lt(),D=he.sum32,ef=he.sum32_4,tf=he.sum32_5,nf=ve.ch32,rf=ve.maj32,sf=ve.s0_256,of=ve.s1_256,af=ve.g0_256,cf=ve.g1_256,Va=Xd.BlockHash,lf=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function k(){if(!(this instanceof k))return new k;Va.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=lf,this.W=new Array(64)}he.inherits(k,Va);Ba.exports=k;k.blockSize=512;k.outSize=256;k.hmacStrength=192;k.padLength=64;k.prototype._update=function(t,n){for(var r=this.W,i=0;i<16;i++)r[i]=t[n+i];for(;i<r.length;i++)r[i]=ef(cf(r[i-2]),r[i-7],af(r[i-15]),r[i-16]);var s=this.h[0],c=this.h[1],a=this.h[2],l=this.h[3],u=this.h[4],p=this.h[5],f=this.h[6],m=this.h[7];for(Zd(this.k.length===r.length),i=0;i<r.length;i++){var g=tf(m,of(u),nf(u,p,f),this.k[i],r[i]),j=D(sf(s),rf(s,c,a));m=f,f=p,p=u,u=D(l,g),l=a,a=c,c=s,s=D(g,j)}this.h[0]=D(this.h[0],s),this.h[1]=D(this.h[1],c),this.h[2]=D(this.h[2],a),this.h[3]=D(this.h[3],l),this.h[4]=D(this.h[4],u),this.h[5]=D(this.h[5],p),this.h[6]=D(this.h[6],f),this.h[7]=D(this.h[7],m)};k.prototype._digest=function(t){return t==="hex"?he.toHex32(this.h,"big"):he.split32(this.h,"big")}});var gv=Q(Zr()),Av=Q(vi()),Tv=Q(fo()),Ev=Q(Io());var mt,hu=new Uint8Array(16);function Sn(){if(!mt&&(mt=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!mt))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return mt(hu)}var I=[];for(let e=0;e<256;++e)I.push((e+256).toString(16).slice(1));function bo(e,t=0){return(I[e[t+0]]+I[e[t+1]]+I[e[t+2]]+I[e[t+3]]+"-"+I[e[t+4]]+I[e[t+5]]+"-"+I[e[t+6]]+I[e[t+7]]+"-"+I[e[t+8]]+I[e[t+9]]+"-"+I[e[t+10]]+I[e[t+11]]+I[e[t+12]]+I[e[t+13]]+I[e[t+14]]+I[e[t+15]]).toLowerCase()}var vu=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ln={randomUUID:vu};function gu(e,t,n){if(Ln.randomUUID&&!t&&!e)return Ln.randomUUID();e=e||{};let r=e.random||(e.rng||Sn)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return bo(r)}var Me=gu;function xo(e=new Date){return new Date(e.getTime()-e.getTimezoneOffset()*60*1e3)}function _o(e=new Date){let t=e.getTimezoneOffset()/60,n=t>0?"-":"+",r=Math.abs(t%1),i=`${n}${("00"+Math.abs(~~t)).slice(-2)}`;return r?`${i}:${60*r}`:`${i}:00`}function De(e,t){return(document.querySelector(e)||{})[t]||""}function Au(e){return Object.assign(e.context,{canonicalUrl:De("link[rel=canonical]","href"),contentLanguageId:De("html","lang"),description:De('meta[name="description"]',"content"),keywords:De('meta[name="keywords"]',"content"),languageId:navigator.language,referrer:document.referrer,timezoneOffset:_o(),title:De("title","textContent"),url:location.href,userAgent:navigator.userAgent}),e}var So=Au;var Tu=[/^og:.*/,/^music:/,/^video:/,/^article:/,/^book:/,/^profile:/,/^fb:/];function Eu(e){let t=!1;if(e&&e.getAttribute){let n=e.getAttribute("property");n&&(t=Tu.some(r=>n.match(r)))}return t}function Iu(e){let r=[].slice.call(document.querySelectorAll("meta")).filter(Eu).reduce((i,s)=>Object.assign(i,{[s.getAttribute("property")]:s.getAttribute("content")}),{});return Object.assign(e.context,r),e}var Lo=Iu;function bu(e){let t=window.devicePixelRatio||1,n=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,r=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;return Object.assign(e.context,{devicePixelRatio:t,screenHeight:n,screenWidth:r}),e}var Co=bu;var Cn=[So,Lo,Co];var o;(a=>{let e;(A=>(A.Blog="Blog",A.Custom="Custom",A.CustomEvent="CustomEvent",A.Document="Document",A.Form="Form",A.ObjectEntry="ObjectEntry",A.Page="Page",A.WebContent="WebContent"))(e=a.ApplicationId||(a.ApplicationId={}));let t;(y=>(y.AssetClicked="assetClicked",y.AssetDepthReached="assetDepthReached",y.AssetDownloaded="assetDownloaded",y.AssetSubmitted="assetSubmitted",y.AssetViewed="assetViewed",y.BlogClicked="blogClicked",y.BlogDepthReached="blogDepthReached",y.BlogImpressionMade="blogImpressionMade",y.BlogViewed="blogViewed",y.DocumentDownloaded="documentDownloaded",y.DocumentImpressionMade="documentImpressionMade",y.DocumentPreviewed="documentPreviewed",y.FieldBlurred="fieldBlurred",y.FieldFocused="fieldFocused",y.FormSubmitted="formSubmitted",y.FormViewed="formViewed",y.ObjectEntryDownloaded="objectEntryDownloaded",y.ObjectEntryImpressionMade="objectEntryImpressionMade",y.ObjectEntryViewed="objectEntryViewed",y.PageDepthReached="pageDepthReached",y.PageLoaded="pageLoaded",y.PageRead="pageRead",y.PageUnloaded="pageUnloaded",y.PageViewed="pageViewed",y.TabBlurred="tabBlurred",y.TabFocused="tabFocused",y.WebContentClicked="webContentClicked",y.WebContentImpressionMade="webContentImpressionMade",y.WebContentViewed="webContentViewed"))(t=a.EventId||(a.EventId={}));let n;(f=>(f.View="view",f.Impression="impression",f.Download="download"))(n=a.ElementAction||(a.ElementAction={}));let r;(A=>(A.Blog="blog",A.BlogsEntry="com.liferay.blogs.model.BlogsEntry",A.Custom="custom",A.Document="document",A.FileEntry="com.liferay.portal.kernel.repository.model.FileEntry",A.JournalArticle="com.liferay.journal.model.JournalArticle",A.ObjectEntry="object-entry",A.WebContent="web-content"))(r=a.ElementType||(a.ElementType={}));let i;(L=>(L.AnalyticsAssetMimeType="analyticsAssetMimeType",L.AnalyticsAssetAction="analyticsAssetAction",L.AnalyticsAssetCategories="analyticsAssetCategories",L.AnalyticsAssetCategory="analyticsAssetCategory",L.AnalyticsAssetId="analyticsAssetId",L.AnalyticsAssetSubtype="analyticsAssetSubtype",L.AnalyticsAssetTags="analyticsAssetTags",L.AnalyticsAssetTitle="analyticsAssetTitle",L.AnalyticsAssetType="analyticsAssetType",L.AnalyticsAssetVersion="analyticsAssetVersion",L.AnalyticsExternalReferenceCode="analyticsExternalReferenceCode",L.AnalyticsObjectDefinitionName="analyticsObjectDefinitionName",L.AnalyticsWebContentResourcePk="analyticsWebContentResourcePk"))(i=a.DataSetList||(a.DataSetList={}));let s;(R=>(R.ChannelId="ac_client_channel_id",R.Contexts="ac_client_context",R.DisableTracking="ac_client_disable_tracking",R.Identity="ac_client_identity",R.PrevEmailAddressHash="ac_client_previous_email_address_hash",R.StorageVersion="ac_client_storage_version",R.UserId="ac_client_user_id"))(s=a.Keys||(a.Keys={}));let c;(f=>(f.Events="ac_client_batch",f.IdentityMessage="ac_message_queue_identity",f.Messages="ac_message_queue"))(c=a.Queues||(a.Queues={}))})(o||(o={}));function N(e,t=""){return typeof e=="object"?e.map(n=>`[data-analytics-asset-type="${n}"]${t}`).join(", "):`[data-analytics-asset-type="${e}"]${t}`}function Z(e,t){return Pe(e,N(t))}function Pe(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(e!==null&&e.nodeType===1);return null}function de({innerText:e}){let t=e.split(/\s+/).filter(Boolean);return e!==""?t.length:0}function v(e,t){let n=[o.DataSetList.AnalyticsAssetId,o.DataSetList.AnalyticsAssetTitle,o.DataSetList.AnalyticsAssetType];return!!(e&&(t||n).every(i=>i in e.dataset))}Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector);var Ro="1.3.3",yt="analyticsBatchSegmentExternalReferenceCodes";var ht="OSB-Asah-Project-ID";var qe="loadEventStartSPA",ee="navigationStartSPA",wo="pageLoadTimeSPA",vt="viewDurationSPA",Rn="p_p_id",Oo="com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet",Mo="p_l_mode",Do="com_liferay_layout_content_page_editor_web_internal_portlet_ContentPageEditorPortlet",wn="view";var Po=new Set(["ja","ko","zh"]),gt=75,On=.75,qo=265,ko=108e5,jo=2048,Ho=25,No=255,Fo=1024;function w(e,t){return function n(){let r=arguments;xu(n),n.id=setTimeout(()=>{e.apply(null,r)},t)}}function xu(e){clearTimeout(e.id)}var x=e=>(document.readyState==="interactive"||document.readyState==="complete"?e():document.addEventListener("DOMContentLoaded",e),()=>document.removeEventListener("DOMContentLoaded",e)),At=(e,t)=>(e.forEach(n=>document.addEventListener(n,t)),()=>{e.forEach(n=>{document.removeEventListener(n,t)})}),fe=({analytics:e,applicationId:t,eventType:n,getPayload:r,isTrackable:i,type:s})=>{let c=a=>{let l=a.target,u=Z(l,s);if(!i(u)||l.control)return;let p=l.tagName.toLowerCase(),f=u?r(u):{};Object.assign(f,{tagName:p}),p==="a"?Object.assign(f,{href:l.href,text:l.innerText}):p==="img"&&Object.assign(f,{src:l.src}),e.send(n,t,f)};return document.addEventListener("click",c),()=>document.removeEventListener("click",c)};function Uo(e,t,n,r){let i=new Date,s=i.toISOString(),c=xo(i).toISOString();return{applicationId:t,contextHash:r,eventDate:s,eventId:e,eventLocalDate:c,properties:n}}var Vo=(e,t)=>{let n=e.flatMap(({value:r})=>r.events);return t.filter(({contextHash:r,eventDate:i,eventId:s})=>!n.some(({contextHash:c,eventDate:a,eventId:l})=>r===c&&s===l&&i===a))};function _u(){return window.pageYOffset||document.documentElement.scrollTop}function Su(){let e=[document.body.clientHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight];return Math.max.apply(null,e)}function Lu(e){let t=Su(),n=_u(),r={bottom:0,height:t,top:n};if(e){let i=e.getBoundingClientRect(),{bottom:s,height:c,top:a}=i;r={bottom:s,height:c,top:a}}return r}function Tt(e){let{bottom:t,left:n,right:r,top:i}=e.getBoundingClientRect(),s=window.innerHeight||document.documentElement.clientHeight,c=window.innerWidth||document.documentElement.clientWidth,a=i<=s&&t>=0,l=n<=c&&r>=0;return a&&l}var O=class{constructor(t=4){this.steps=t,this.stepsReached=[]}dispose(){this.steps=null,this.stepsReached=null}getDepthValue(t){let{bottom:n,height:r,top:i}=Lu(t),s=window.innerHeight,c=(s-i)/r;return i<=0&&n>=0?c=s/(r+i):t||(c=(i+s)/r),c}getDepth(t){let n=this.getDepthValue(t),r=Math.round(n*100);return Math.min(Math.max(r,0),100)}onDepthReached(t,n){let r=this.getDepth(n),i=Math.floor(100/this.steps),s=Math.floor(r/i);this.stepsReached?.every(c=>c<s)&&(this.stepsReached.push(s),s>0&&t(s*i))}};function Mn({dataset:e}){let t={entryId:e.analyticsAssetId.trim()};return e.analyticsAssetCategories&&Object.assign(t,{assetCategories:e.analyticsAssetCategories.trim()}),e.analyticsAssetMimeType&&Object.assign(t,{mimeType:e.analyticsAssetMimeType.trim()}),e.analyticsAssetSubtype&&Object.assign(t,{subtype:e.analyticsAssetSubtype.trim()}),e.analyticsAssetTags&&Object.assign(t,{assetTags:e.analyticsAssetTags.trim()}),e.analyticsAssetTitle&&Object.assign(t,{title:e.analyticsAssetTitle.trim()}),e.analyticsAssetType&&Object.assign(t,{type:e.analyticsAssetType.trim()}),e.analyticsExternalReferenceCode&&Object.assign(t,{externalReferenceCode:e.analyticsExternalReferenceCode.trim()}),t}function Cu(e,t){let n=new Date().toISOString(),r=new O,i=w(()=>{t.forEach(s=>{r.onDepthReached(c=>{let a=Mn(s);Object.assign(a,{depth:c,sessionId:n}),e.send(o.EventId.BlogDepthReached,o.ApplicationId.Blog,a)},s)})},1500);return document.addEventListener("scroll",i),()=>{document.removeEventListener("scroll",i)}}function Bo(e,{eventId:t,isTrackable:n}){let r=[],i=N([o.ElementType.Blog,o.ElementType.BlogsEntry]),s=x(()=>{Array.prototype.slice.call(document.querySelectorAll(i)).filter(n).forEach(a=>{let l=Mn(a);Object.assign(l,{numberOfWords:de(a)}),r.push(a),e.send(t,o.ApplicationId.Blog,l)})}),c=Cu(e,r);return()=>{c(),s()}}function Ru(e){return fe({analytics:e,applicationId:o.ApplicationId.Blog,eventType:o.EventId.BlogClicked,getPayload:Mn,isTrackable:v,type:o.ElementType.Blog})}function wu(e){let t=Ru(e),n=Bo(e,{eventId:o.EventId.BlogImpressionMade,isTrackable:i=>v(i)&&i.dataset?.analyticsAssetAction===o.ElementAction.Impression}),r=Bo(e,{eventId:o.EventId.BlogViewed,isTrackable:i=>v(i)&&(!i.dataset?.analyticsAssetAction||i.dataset?.analyticsAssetAction===o.ElementAction.View)});return()=>{t(),n(),r()}}var Wo=wu;function ke({dataset:e}){let t={assetId:e.analyticsAssetId.trim()};return e.analyticsAssetCategory&&Object.assign(t,{category:e.analyticsAssetCategory.trim()}),e.analyticsAssetCategories&&Object.assign(t,{assetCategories:e.analyticsAssetCategories.trim()}),e.analyticsAssetMimeType&&Object.assign(t,{mimeType:e.analyticsAssetMimeType.trim()}),e.analyticsAssetTags&&Object.assign(t,{assetTags:e.analyticsAssetTags.trim()}),e.analyticsAssetTitle&&Object.assign(t,{title:e.analyticsAssetTitle.trim()}),t}function Ou(e){let t=n=>{let r=n.target,i=Pe(r,'[data-analytics-asset-action="download"]'),s=Z(r,o.ElementType.Custom);i&&v(s,[o.DataSetList.AnalyticsAssetId,o.DataSetList.AnalyticsAssetType])&&e.send(o.EventId.AssetDownloaded,o.ApplicationId.Custom,ke(s))};return document.addEventListener("click",t),()=>document.removeEventListener("click",t)}function Mu(e,t){let n=new Date().toISOString(),r=new O,i=w(()=>{t.forEach(s=>{r.onDepthReached(c=>{let a=ke(s);Object.assign(a,{depth:c,sessionId:n}),e.send(o.EventId.AssetDepthReached,o.ApplicationId.Custom,a)},s)})},1500);return document.addEventListener("scroll",i),()=>{document.removeEventListener("scroll",i)}}function Du(e){let t=n=>{let r=n.target,i=Z(r,o.ElementType.Custom),s=v(i,[o.DataSetList.AnalyticsAssetId,o.DataSetList.AnalyticsAssetType]);!s||s&&(r.tagName!=="FORM"||n.defaultPrevented)||e.send(o.EventId.AssetSubmitted,o.ApplicationId.Custom,ke(i))};return document.addEventListener("submit",t),()=>document.removeEventListener("submit",t)}function Pu(e){let t=[],n=x(()=>{Array.prototype.slice.call(document.querySelectorAll('[data-analytics-asset-type="custom"]')).filter(i=>v(i,[o.DataSetList.AnalyticsAssetId,o.DataSetList.AnalyticsAssetType])).forEach(i=>{let s=!!i.getElementsByTagName("form").length,c=ke(i);Object.assign(c,{formEnabled:s}),t.push(i),e.send(o.EventId.AssetViewed,o.ApplicationId.Custom,c)})}),r=Mu(e,t);return()=>{r(),n()}}function qu(e){return fe({analytics:e,applicationId:o.ApplicationId.Custom,eventType:o.EventId.AssetClicked,getPayload:ke,isTrackable:t=>v(t,[o.DataSetList.AnalyticsAssetId,o.DataSetList.AnalyticsAssetType]),type:o.ElementType.Custom})}function ku(e){let t=qu(e),n=Ou(e),r=Du(e),i=Pu(e);return()=>{t(),n(),r(),i()}}var Go=ku;function $o({dataset:e}){let t={fileEntryId:e.analyticsAssetId.trim()};return e.analyticsAssetCategories&&Object.assign(t,{assetCategories:e.analyticsAssetCategories.trim()}),e.analyticsAssetMimeType&&Object.assign(t,{mimeType:e.analyticsAssetMimeType.trim()}),e.analyticsAssetTags&&Object.assign(t,{assetTags:e.analyticsAssetTags.trim()}),e.analyticsAssetTitle&&Object.assign(t,{title:e.analyticsAssetTitle.trim()}),e.analyticsAssetVersion&&Object.assign(t,{fileEntryVersion:e.analyticsAssetVersion.trim()}),e.analyticsExternalReferenceCode&&Object.assign(t,{externalReferenceCode:e.analyticsExternalReferenceCode.trim()}),t}function ju(e){let t=n=>{let r=n.target,i=Pe(r,'[data-analytics-asset-action="download"]'),s=Z(r,o.ElementType.Document);i&&v(s)&&e.send(o.EventId.DocumentDownloaded,o.ApplicationId.Document,$o(s))};return document.addEventListener("click",t),()=>document.removeEventListener("click",t)}function Hu(e){let t=x(()=>{Array.prototype.slice.call(document.querySelectorAll('[data-analytics-asset-action="preview"]')).filter(n=>v(n)).forEach(n=>{let r=$o(n);e.send(o.EventId.DocumentPreviewed,o.ApplicationId.Document,r)})});return()=>t()}function Nu(e){let t=ju(e),n=Hu(e);return()=>{t(),n()}}var Qo=Nu;function Ko({dataset:e}){let t={fileEntryId:e.analyticsAssetId.trim()};return e.analyticsAssetCategories&&Object.assign(t,{assetCategories:e.analyticsAssetCategories.trim()}),e.analyticsAssetMimeType&&Object.assign(t,{mimeType:e.analyticsAssetMimeType.trim()}),e.analyticsAssetSubtype&&Object.assign(t,{subtype:e.analyticsAssetSubtype.trim()}),e.analyticsAssetTags&&Object.assign(t,{assetTags:e.analyticsAssetTags.trim()}),e.analyticsAssetTitle&&Object.assign(t,{title:e.analyticsAssetTitle.trim()}),e.analyticsAssetType&&Object.assign(t,{type:e.analyticsAssetType.trim()}),e.analyticsAssetVersion&&Object.assign(t,{fileEntryVersion:e.analyticsAssetVersion.trim()}),e.analyticsExternalReferenceCode&&Object.assign(t,{externalReferenceCode:e.analyticsExternalReferenceCode.trim()}),t}function Fu(e){let t=n=>{let r=n.target,i=r.parentElement,s=[r,i].find(c=>c?.dataset.analyticsAssetAction==="download");s&&v(s)&&e.send(o.EventId.DocumentDownloaded,o.ApplicationId.Document,Ko(s))};return document.addEventListener("click",t),()=>document.removeEventListener("click",t)}function Uu(e,{eventId:t,isTrackable:n}){let r=N(o.ElementType.FileEntry),i=x(()=>{Array.prototype.slice.call(document.querySelectorAll(r)).filter(s=>n(s)).forEach(s=>{let c=Ko(s);e.send(t,o.ApplicationId.Document,c)})});return()=>i()}function Vu(e){let t=Fu(e),n=Uu(e,{eventId:o.EventId.DocumentImpressionMade,isTrackable:r=>v(r)&&r.dataset.analyticsAssetAction===o.ElementAction.Impression||v(r)&&r.dataset.analyticsAssetAction===o.ElementAction.Download});return()=>{t(),n()}}var zo=Vu;function Yo(){if(window.URLSearchParams)return new window.URLSearchParams(location.search);let e=new Map;return(location.search.startsWith("?")?location.search.slice(1):location.search).split("&").forEach(r=>{if(!r)return;let[i,s]=r.includes("=")?r.split("=").map(decodeURIComponent):[r,""];e.set(i,s)}),{get:r=>e.get(r)}}function je(e,t,n){window.performance.measure(e,t,n);let r=window.performance.getEntriesByName(e).pop();return r&&typeof r.duration=="number"?~~r.duration:0}function Et(e){window.performance.clearMarks(e),window.performance.mark(e)}function Bu(e){let t=window.Liferay;function n(){e.send(o.EventId.PageUnloaded,o.ApplicationId.Page,{externalReferenceCode:e._getContext().layoutExternalReferenceCode,viewDuration:je(vt,ee)})}function r(){e.send(o.EventId.PageLoaded,o.ApplicationId.Page,{externalReferenceCode:e._getContext().layoutExternalReferenceCode,pageLoadTime:je(wo,qe,ee)})}function i(a){return a.get(Rn)===Oo}function s(a){return a.get(Rn)===Do}function c(a){return(a.get(Mo)||wn)===wn}if(t){let a=Yo();if(i(a)||s(a)||!c(a))return e._disposeInternal();if(t.SPA){let l=window.performance.getEntriesByName(qe);if(Et(ee),!l.length){let u=Et.bind(null,qe);Et(qe),t?.on?.("beforeNavigate",u)}document.readyState==="complete"&&r(),t?.once?.("beforeNavigate",n)}}}var Jo=Bu;function Xo(e){return e.dataset.analyticsAssetId||e.id||e.getAttribute("name")||e.action}function Zo({form:e,name:t}){return{fieldName:t,...Dn(e)}}function Dn(e){let t={formId:Xo(e).trim()};return e.dataset.analyticsAssetCategories&&Object.assign(t,{assetCategories:e.dataset.analyticsAssetCategories.trim()}),e.dataset.analyticsAssetMimeType&&Object.assign(t,{mimeType:e.dataset.analyticsAssetMimeType.trim()}),e.dataset.analyticsAssetTags&&Object.assign(t,{assetTags:e.dataset.analyticsAssetTags.trim()}),e.dataset.analyticsAssetTitle&&Object.assign(t,{title:e.dataset.analyticsAssetTitle.trim()}),e.dataset.analyticsExternalReferenceCode&&Object.assign(t,{externalReferenceCode:e.dataset.analyticsExternalReferenceCode.trim()}),t}function He(e){return v(e)&&!!Xo(e)}function Wu(e){let t=n=>{let r=n.target,{form:i}=r;if(!i||!He(i))return;let s=Zo(r),c=`${s.formId}${s.fieldName}blurred`;performance.mark(c);let a=`${s.formId}${s.fieldName}focused`;performance.measure("focusDuration",a,c);let l=performance.getEntriesByName("focusDuration").pop(),u=l&&typeof l.duration=="number"?~~l.duration:0;Object.assign(s,{focusDuration:u}),e.send(o.EventId.FieldBlurred,o.ApplicationId.Form,s),performance.clearMarks("focusDuration")};return document.addEventListener("blur",t,!0),()=>document.removeEventListener("blur",t,!0)}function Gu(e){let t=n=>{let r=n.target,{form:i}=r;if(!i||!He(i))return;let s=Zo(r),c=`${s.formId}${s.fieldName}focused`;performance.mark(c),e.send(o.EventId.FieldFocused,o.ApplicationId.Form,s)};return document.addEventListener("focus",t,!0),()=>document.removeEventListener("focus",t,!0)}function $u(e){let t=n=>{let r=n.target;!He(r)||He(r)&&n.defaultPrevented||e.send(o.EventId.FormSubmitted,o.ApplicationId.Form,Dn(r))};return document.addEventListener("submit",t,!0),()=>document.removeEventListener("submit",t,!0)}function Qu(e){return x(()=>{Array.prototype.slice.call(document.querySelectorAll("form")).filter(t=>He(t)).forEach(t=>{let n=Dn(t);e.send(o.EventId.FormViewed,o.ApplicationId.Form,n)})})}function Ku(e){let t=Wu(e),n=Gu(e),r=$u(e),i=Qu(e);return()=>{t(),n(),r(),i()}}var ea=Ku;var Pn=[o.DataSetList.AnalyticsAssetAction,o.DataSetList.AnalyticsExternalReferenceCode,o.DataSetList.AnalyticsAssetType,o.DataSetList.AnalyticsObjectDefinitionName];function na({dataset:e}){let t={externalReferenceCode:e.analyticsExternalReferenceCode.trim(),objectDefinitionName:e.analyticsObjectDefinitionName.trim()};return e.analyticsAssetCategories&&Object.assign(t,{assetCategories:e.analyticsAssetCategories.trim()}),e.analyticsAssetMimeType&&Object.assign(t,{mimeType:e.analyticsAssetMimeType.trim()}),e.analyticsAssetTags&&Object.assign(t,{assetTags:e.analyticsAssetTags.trim()}),e.analyticsAssetTitle&&Object.assign(t,{title:e.analyticsAssetTitle.trim()}),t}function zu(e){let t=n=>{let r=n.target;v(r,Pn)&&r.dataset.analyticsAssetAction==="download"&&e.send(o.EventId.ObjectEntryDownloaded,o.ApplicationId.ObjectEntry,na(r))};return document.addEventListener("click",t),()=>document.removeEventListener("click",t)}function ta(e,{eventId:t,isTrackable:n}){let r=N(o.ElementType.ObjectEntry,':not([data-analytics-asset-viewed="true"])'),i=w(()=>{Array.prototype.slice.call(document.querySelectorAll(r)).filter(n).forEach(l=>{if(Tt(l)){let u=na(l);l.dataset.analyticsAssetViewed=!0,e.send(t,o.ApplicationId.ObjectEntry,u)}})},250),s=x(i),c=At(["scroll","resize"],i);return()=>{c(),s()}}function Yu(e){let t=zu(e),n=ta(e,{eventId:o.EventId.ObjectEntryImpressionMade,isTrackable:i=>v(i,Pn)&&i.dataset?.analyticsAssetAction===o.ElementAction.Impression}),r=ta(e,{eventId:o.EventId.ObjectEntryViewed,isTrackable:i=>v(i,Pn)&&(!i.dataset?.analyticsAssetAction||i.dataset?.analyticsAssetAction===o.ElementAction.View)});return()=>{t(),n(),r()}}var ra=Yu;function ia(){let{clientHeight:e,scrollHeight:t}=document.documentElement;return e*100/t<=gt}var It=class{constructor(){this.timeReached=!1,this.depthReached=!ia()}dispose(){this.timeReached=!1,this.depthReached=!ia(),this.timeoutId&&clearTimeout(this.timeoutId)}setExpectedViewDuration(t,n){n&&!this.timeoutId&&(this.timeoutId=setTimeout(()=>this.onTimeReached(t),~~n))}onDepthReached(t){this.depthReached||(this.depthReached=!0,this.checkIsRead(t))}onTimeReached(t){this.timeReached=!0,this.checkIsRead(t)}checkIsRead(t){this.timeReached&&this.depthReached&&t()}};var sa=6e4;function Xu(){let e=document.getElementById("main-content"),t=document.querySelector("meta[name='data-analytics-readable-content']");return t&&t.getAttribute("content")==="true"&&e?e.innerText:""}function Zu(){return document.documentElement.lang}function ed(e){return e.replace(/\s+/gm,"").length/500*sa*On}function td(e){return de({innerText:e})/qo*sa*On}function nd(e){let t=Zu();return Po.has(t)?ed(e):td(e)}function rd(e){let t=new It,n=new O,r=x(()=>{let s=Xu();t.setExpectedViewDuration(()=>e.send(o.EventId.PageRead,o.ApplicationId.Page,{externalReferenceCode:e._getContext().layoutExternalReferenceCode}),nd(s))}),i=w(()=>{n.onDepthReached(s=>{s>=gt&&t.onDepthReached(()=>{e.send(o.EventId.PageRead,o.ApplicationId.Page,{externalReferenceCode:e._getContext().layoutExternalReferenceCode})})})},1500);return document.addEventListener("scroll",i),()=>{r(),document.removeEventListener("scroll",i),t.dispose(),n=new O}}var oa=rd;function id(e){let t=new O,n=w(()=>{t.onDepthReached(i=>{e.send(o.EventId.PageDepthReached,o.ApplicationId.Page,{depth:i,externalReferenceCode:e._getContext().layoutExternalReferenceCode})})},1500);document.addEventListener("scroll",n);let r=()=>{t.dispose(),t=new O};return window.addEventListener("load",r),()=>{document.removeEventListener("scroll",n),window.removeEventListener("load",r)}}var aa=id;function sd(e){let t=window.performance.timing,n=t.loadEventStart-t.navigationStart,r={externalReferenceCode:e._getContext().layoutExternalReferenceCode,pageLoadTime:n};e.send(o.EventId.PageLoaded,o.ApplicationId.Page,r)}function od(e){let n=window.performance.getEntriesByName(ee).length?ee:"navigationStart",r=je(vt,n),i={externalReferenceCode:e._getContext().layoutExternalReferenceCode,viewDuration:r};e.send(o.EventId.PageUnloaded,o.ApplicationId.Page,i)}function ad(e){let t=sd.bind(null,e);window.addEventListener("load",t);let n=od.bind(null,e);return window.addEventListener("unload",n),()=>{window.removeEventListener("load",t),window.removeEventListener("unload",n)}}var ca=ad;var ua=!0;function da(){let e,t,n=document;return typeof n.hidden<"u"?(e="hidden",t="visibilitychange"):typeof n.msHidden<"u"?(e="msHidden",t="msvisibilitychange"):typeof n.webkitHidden<"u"&&(e="webkitHidden",t="webkitvisibilitychange"),{hidden:e,visibilityChange:t}}function cd(e){let{hidden:t}=da();ua&&(document[t]?e.send(o.EventId.TabBlurred,o.ApplicationId.Page):e.send(o.EventId.TabFocused,o.ApplicationId.Page))}function ld(e){let{visibilityChange:t}=da();if(t){let n=cd.bind(null,e);return window.addEventListener("beforeunload",la),document.addEventListener(t,n),()=>{window.removeEventListener("beforeunload",la),document.removeEventListener(t,n)}}}function la(){ua=!1}var fa=ld;function ma({dataset:e}){let t={articleId:e.analyticsAssetId.trim()};return e.analyticsAssetCategories&&Object.assign(t,{assetCategories:e.analyticsAssetCategories.trim()}),e.analyticsAssetMimeType&&Object.assign(t,{mimeType:e.analyticsAssetMimeType.trim()}),e.analyticsAssetSubtype&&Object.assign(t,{subtype:e.analyticsAssetSubtype.trim()}),e.analyticsAssetTags&&Object.assign(t,{assetTags:e.analyticsAssetTags.trim()}),e.analyticsAssetTitle&&Object.assign(t,{title:e.analyticsAssetTitle.trim()}),e.analyticsAssetType&&Object.assign(t,{type:e.analyticsAssetType.trim()}),e.analyticsWebContentResourcePk&&Object.assign(t,{webContentResourcePk:e.analyticsWebContentResourcePk.trim()}),e.analyticsExternalReferenceCode&&Object.assign(t,{externalReferenceCode:e.analyticsExternalReferenceCode.trim()}),t}function ud(e){return fe({analytics:e,applicationId:o.ApplicationId.WebContent,eventType:o.EventId.WebContentClicked,getPayload:ma,isTrackable:v,type:[o.ElementType.WebContent,o.ElementType.JournalArticle]})}function pa(e,{eventId:t,isTrackable:n}){let r=N([o.ElementType.WebContent,o.ElementType.JournalArticle],':not([data-analytics-asset-viewed="true"])'),i=w(()=>{Array.prototype.slice.call(document.querySelectorAll(r)).filter(n).forEach(l=>{if(Tt(l)){let u=ma(l);Object.assign(u,{numberOfWords:de(l)}),l.dataset.analyticsAssetViewed=!0,e.send(t,o.ApplicationId.WebContent,u)}})},250),s=x(i),c=At(["scroll","resize"],i);return()=>{c(),s()}}function dd(e){let t=ud(e),n=pa(e,{eventId:o.EventId.WebContentImpressionMade,isTrackable:i=>v(i)&&i.dataset?.analyticsAssetAction===o.ElementAction.Impression}),r=pa(e,{eventId:o.EventId.WebContentViewed,isTrackable:i=>v(i)&&(!i.dataset?.analyticsAssetAction||i.dataset?.analyticsAssetAction===o.ElementAction.View)});return()=>{t(),n(),r()}}var ya=dd;var ha=[Jo,Wo,Go,Qo,zo,ea,ra,oa,aa,ca,fa,ya];function qn(e){return e<=1?1:qn(e-1)+qn(e-2)}function kn(e,t){return qn(Math.min(e,t))*1e3}var jn=class{constructor(t){this.processInterval=null;this.attemptNumber=1,this.initialFlushInterval=t.flushInterval||2e3,this.processing=!1,this.queues=[],this.flushInterval=this.initialFlushInterval,this._startsFlushLoop()}addQueue(t,n={}){this.queues.push(Object.assign(n,{instance:t,name:t.name})),this.queues.sort(this._prioritize)}removeQueue(t){this.queues=this.queues.filter(({name:n})=>t!==n)}_prioritize({priority:t=1},{priority:n=1}){return n-t}_onFlushFail(){this.flushInterval=kn(++this.attemptNumber,7),this._startsFlushLoop()}_onFlushSuccess(){this.attemptNumber=1,this.flushInterval!==this.initialFlushInterval&&(this.flushInterval=this.initialFlushInterval,this._startsFlushLoop())}flush(){this.processing||this.queues.reduce((t,{instance:n})=>t.then(()=>!n.hasItems()||!n.shouldFlush()?Promise.resolve():n.acquireLock().then(r=>{if(!r)return Promise.resolve();this.processing=!0;let i=()=>n.releaseLock().then(()=>{this.processing=!1});return Promise.allSettled(n.onFlush()).then(s=>(this._onFlushSuccess(),n.onFlushSuccess(s),i(),Promise.resolve()))})).catch(()=>(this._onFlushFail(),n.onFlushFail(),Promise.reject())),Promise.resolve()).catch(()=>{})}_startsFlushLoop(){this.processInterval&&clearInterval(this.processInterval),this.processInterval=setInterval(()=>this.flush(),this.flushInterval)}dispose(){this.processInterval&&clearInterval(this.processInterval),this.flushInterval=this.initialFlushInterval,this.queues=[]}};var va=jn;var Nn=class{constructor({endpointUrl:t,projectId:n,timeout:r}){this.projectId=n,this.timeout=r||5e3,this.url=t}_getRequestParameters(){let t={"Content-Type":"application/json"};return this.projectId&&Object.assign(t,{[ht]:this.projectId}),{cache:"default",credentials:"same-origin",headers:t,method:"POST",mode:"cors"}}_validateResponse(t){let n=t;return t.ok||(n=new Promise((r,i)=>i(t))),n}sendWithTimeout(t){return Promise.race([this.send(t),this._timeout()])}send(t){let n=this._getRequestParameters();return Object.assign(n,{body:JSON.stringify(t)}),fetch(this.url,n).then(this._validateResponse)}_timeout(){return new Promise((t,n)=>setTimeout(n,this.timeout))}};var ga=Nn;var ba=Q(Wn());var Ta=Q(Wn()),Gn=()=>{let e=window.Liferay,t=e?.Util?.LocalStorage,n=e?.Util?.Cookie?.get?.("CONSENT_TYPE_PERFORMANCE");return t&&n==="true"},E=e=>{let t=window.Liferay,n;try{let r;Gn()?r=t?.Util?.LocalStorage?.getItem(e,t?.Util?.LocalStorage?.TYPES?.PERFORMANCE):r=localStorage.getItem(e),n=JSON.parse(r)}catch{return}return n},T=(e,t)=>{let n=window.Liferay;try{Gn()?n?.Util?.LocalStorage?.setItem(e,JSON.stringify(t),n?.Util?.LocalStorage?.TYPES?.PERFORMANCE):localStorage.setItem(e,JSON.stringify(t))}catch{return}},Ea=e=>{let t=window.Liferay;try{Gn()?t?.Util?.LocalStorage?.removeItem(e,t?.Util?.LocalStorage?.TYPES?.PERFORMANCE):localStorage.removeItem(e)}catch{return}},gd=e=>Number(JSON.stringify(e).length*2/1024),Ia=(e,t)=>{let n=E(e);if(!n?.length)return Promise.resolve();let r=new Ta.default;return r.acquireLock(e).then(i=>{if(i)return gd(n)>t&&T(e,n.slice(1)),r.releaseLock(e)})};var $n=class{constructor({analyticsInstance:t,name:n}){this.maxSize=512,this.name=n,this.lock=new ba.default,this.analyticsInstance=t,E(this.name)||T(this.name,[]),this.addItem=this.addItem.bind(this)}addItem(t){this._enqueue(t),Ia(this.name,this.maxSize)}_dequeue(t){let n=this.getItems();T(this.name,n.filter(({id:r,item:i})=>i?i.id!==t:t!==r))}_enqueue(t){let n=this.getItems();n.push(t),T(this.name,n)}getItems(){return E(this.name)||[]}hasItems(){return!!this.getItems().length}acquireLock(){return this.lock.acquireLock(this.name)}releaseLock(){return this.lock.releaseLock(this.name)}reset(){T(this.name,[])}shouldFlush(){return this.analyticsInstance._isTrackingDisabled()?(this.analyticsInstance._disposeInternal(),!1):!0}onFlush(){throw Error("onFlush should be implemented on the new class")}onFlushFail(){}onFlushSuccess(){}};var bt=$n;var Qn=class extends bt{constructor({analyticsInstance:t,flushTo:n,name:r}){super({analyticsInstance:t,name:r}),this.clientAdapter=new ga({endpointUrl:n,projectId:t.config.projectId})}onFlush(){return this.getItems().map(n=>this.clientAdapter.sendWithTimeout(n).then(()=>{this._dequeue(n.id)}).catch(r=>(r.status===400&&this._dequeue(n.id),Promise.reject(r))))}};var xt=Qn;var Kn=class extends xt{constructor({analyticsInstance:t,name:n=o.Queues.Messages}){super({analyticsInstance:t,flushTo:t.config.endpointUrl,name:n})}};var xa=Kn;function _a(e){let t=[];return e.forEach((n,r)=>t.push([r,n])),t}var _t=(e=o.Keys.Contexts)=>{let t=E(e),n=new Map;return t&&t.forEach(([r,i])=>n.set(r,i)),n},Fe=(e,t=o.Keys.Contexts)=>{T(t,_a(e))};var zn=class extends bt{constructor({analyticsInstance:t,flushTo:n,name:r}){super({analyticsInstance:t,name:r}),this.analyticsInstance=t,this.flushTo=n}onFlush(){let t=this.getItems(),n=_t(),r=this._groupEventsByContextHash(t),i=this.analyticsInstance._getUserId(),s=[];return n.forEach((c,a)=>{let l=r[a];l&&s.push(this.analyticsInstance[this.flushTo].addItem(this._createMessage({context:c,events:l,userId:i})))}),s}onFlushSuccess(t){let n=this.getItems(),r=t?.filter(s=>s&&s.value&&s.value.events),i=Vo(r,n);T(this.name,i),this.analyticsInstance.resetContext(),this.reset()}_createMessage({context:t,events:n,userId:r}){let{channelId:i,...s}=t,{dataSourceId:c,identity:{emailAddressHashed:a}}=this.analyticsInstance.config;return{channelId:i,context:{...s},dataSourceId:c,emailAddressHashed:a,events:n,id:Me(),userId:r}}_groupEventsByContextHash(t){return t.reduce((n,r)=>(n[r.contextHash]?n[r.contextHash].push(r):n[r.contextHash]=[r],n),{})}};var Sa=zn;var Yn=class extends Sa{constructor({analyticsInstance:t,name:n=o.Queues.Events}){super({analyticsInstance:t,flushTo:o.Queues.Messages,name:n})}};var La=Yn;var Jn=class extends xt{constructor({analyticsInstance:t,name:n=o.Queues.IdentityMessage}){super({analyticsInstance:t,flushTo:t.config.identityEndpoint,name:n})}};var Ca=Jn;var St=class{constructor(t){this.instance=t}getBatchSegmentExternalReferenceCodes(){let t=this._getIndividualId(),n=E(yt);if(n&&n[t]){let r=new Date,i=n[t];if(r.getTime()-i.createDate<ko)return Promise.resolve(i.segmentExternalReferenceCodes)}return this._fetchSegmentExternalReferenceCodes(t,"batch-segment-external-reference-codes").then(r=>{try{let i=new Date,s=E(yt)||{};return T(yt,{...s,[t]:{createDate:i.getTime(),segmentExternalReferenceCodes:r}}),r}catch{return r}})}getRealTimeSegmentExternalReferenceCodes(){return this._fetchSegmentExternalReferenceCodes(this._getIndividualId(),"real-time-segment-external-reference-codes")}_getIndividualId(){let{config:t}=this.instance;return t.identity?.emailAddressHashed||this.instance._getUserId()}_fetchSegmentExternalReferenceCodes(t,n){let{config:r}=this.instance,i={"Content-Type":"application/json"};return r.projectId&&Object.assign(i,{[ht]:r.projectId}),fetch(`${r.faroBackendUrl}/api/1.0/segment-memberships/${t}/${n}`,{cache:"default",credentials:"same-origin",headers:i,method:"GET",mode:"cors"}).then(s=>s.json())}};var Zn=Q(Wa());function er(e){return typeof e!="object"||e===null?e:Array.isArray(e)?e.map(er).sort():Object.keys(e).sort().reduce((t,n)=>(t[n]=er(e[n]),t),{})}function uf(e){if(typeof e=="object"){let t=JSON.stringify(er(e));return(0,Zn.default)().update(t).digest("hex")}return(0,Zn.default)().update(e).digest("hex")}var Ue=uf;var tr=1,df=[[1,()=>{let e=E(o.Keys.Contexts);e&&!Array.isArray(e[0])&&Fe(new Map)}]];function ff(){let e=E(o.Keys.StorageVersion);return e?parseFloat(e):0}function pf(e=tr){return T(o.Keys.StorageVersion,e.toString())}function Ga(){let e=ff();return e===tr||(df.forEach(([t,n])=>{t>e&&n()}),pf(tr)),!0}var mf=[o.ApplicationId.Blog,o.ApplicationId.Custom,o.ApplicationId,o.ApplicationId.Form,o.ApplicationId.Page,o.ApplicationId.WebContent],wt=e=>t=>e.map(n=>{if(typeof n=="function")return n(t)}).filter(Boolean),yf=e=>{let t="";return["string","number","boolean"].includes(typeof e)||(t="Attribute must be a String, Number, or Boolean."),t},$a=e=>t=>{let n="";return String(t).length||(n=`${e} is required.`),n},hf=e=>t=>{let n="";return typeof t!="string"&&(n=`${e} must be a string.`),n},nr=(e=No)=>t=>{let n="";return String(t).length>e&&(n=`${t} exceeds maximum length of ${e}`),n},vf=(e=Ho)=>({eventId:t,eventProps:n={}})=>{let r="";return Object.keys(n).length>e&&(r=`The Event ${t} attributes list exceeds maximum length of ${e}`),r},gf=e=>e.forEach(t=>console.error(new Error(t))),Qa=({applicationId:e,eventId:t,eventProps:n})=>{let r=wt([hf("eventId"),$a("eventId"),nr()]),i=wt([vf()]),s=wt([$a("eventPropKey"),nr()]),c=[];mf.includes(e)||(c=[yf,nr(Fo)]);let a=wt(c),l=[];if(l=l.concat(r(t)),n){l=l.concat(i({eventId:t,eventProps:n}));for(let u in n)l=l.concat(s(u),a(n[u]))}return l.length?(gf(l),!1):!0};var ge=window||global,Ve=class Ve{constructor(t,n){this._disposed=!1;this._pluginDisposers=[];this.config={channelId:"",dataSourceId:"",endpointUrl:"",faroBackendUrl:"",flushInterval:0,identity:{emailAddressHashed:""},identityEndpoint:"",projectId:"",userId:""};this.middlewares=[];this.version="";if(this._isTrackingDisabled())return this;this._disposed=!1;let r=(t.endpointUrl||"").replace(/\/$/,""),i=(t.faroBackendUrl||"").replace(/\/$/,"");return this.config=Object.assign(t,{endpointUrl:r,faroBackendUrl:i,flushInterval:t.flushInterval||2e3,identityEndpoint:`${r}/identity`}),this.version=Ro,n.forEach(s=>this.registerMiddleware(s)),this._queueFlushService=new va(this.config),this._initializeEventQueue(),this._initializeEventMessageQueue(),this._initializeIdentityMessageQueue(),this.segment=new St(this),Ga(),this._pluginDisposers=ha.map(s=>s(this)),this._ensureIntegrity(),this}static create(t,n=[]){let r=new Ve(t,n),i=window.Liferay;ge.Analytics=r,ge.Analytics.create=Ve.create,ge.Analytics.dispose=Ve.dispose;let s="",c="";return i&&i.ThemeDisplay&&i.ThemeDisplay.getUserEmailAddress&&i.ThemeDisplay.getUserEmailAddress().length&&i.ThemeDisplay.getUserName&&i.ThemeDisplay.getUserName().length&&(s=i.ThemeDisplay.getUserEmailAddress(),c=i.ThemeDisplay.getUserName()),r.setIdentity({email:s,name:c}),r}static dispose(){let t=ge.Analytics;t&&!t._isTrackingDisabled()&&t._disposeInternal()}getEvents(){return this[o.Queues.Events].getItems()}getBatchSegmentExternalReferenceCodes(){return this.segment.getBatchSegmentExternalReferenceCodes()}getRealTimeSegmentExternalReferenceCodes(){return this.segment.getRealTimeSegmentExternalReferenceCodes()}registerPlugin(t){typeof t=="function"&&t(this)}registerMiddleware(t){this._isTrackingDisabled()||typeof t=="function"&&Cn.push(t)}reset(){this._isTrackingDisabled()||(this[o.Queues.Events].reset(),this.resetContext())}resetContext(){let t=this._getContext(),n=new Map;n.set(Ue(t),t),Fe(n)}track(t,n,r={}){let{assetType:i,...s}=n||{},c={applicationId:o.ApplicationId.CustomEvent,...r},a=i||c.applicationId;if(this._isTrackingDisabled()||this._disposed||!Qa({applicationId:a,eventId:t,eventProps:s}))return;let l=this._getCurrentContextHash();this[o.Queues.Events].addItem(Uo(t,a,s,l))}send(t,n,r){n&&this.track(t,r,{applicationId:n})}setIdentity(t){if(this._isTrackingDisabled())return;let n={emailAddressHashed:t.email?Ue(t.email.toLowerCase()):""};this.config.identity=n;let r=this._getUserId();return this._sendIdentity(n,r),Promise.resolve(r)}_disposeInternal(){this._disposed=!0,this._queueFlushService&&this._queueFlushService.dispose(),this._pluginDisposers.length&&this._pluginDisposers.filter(t=>typeof t=="function").forEach(t=>t())}_ensureIntegrity(){let t=E(o.Keys.UserId);t&&this._setCookie(o.Keys.UserId,t)}_getCurrentContextHash(){let t=this._getContext(),n=Ue(t),r=_t();return r.has(n)||(r.set(n,t),Fe(r)),n}_getContext(){let{context:t}=Cn.reduce((r,i)=>i(r),{context:{channelId:this.config.channelId}}),n={...t};for(let r in n)n[r]=String(n[r]).slice(0,jo);return n}_getIdentityHash(t,n,r){return Ue({dataSourceId:t,identity:n,userId:r})}_getUserId(){let t=E(o.Keys.UserId),{emailAddressHashed:n}=this.config.identity,r=E(o.Keys.PrevEmailAddressHash);return t||(t=this._generateUserId()),n&&n!==r&&(r&&(t=this._generateUserId()),T(o.Keys.PrevEmailAddressHash,n)),t}_generateUserId(){let t=Me();return T(o.Keys.UserId,t),this._setCookie(o.Keys.UserId,t),Ea(o.Keys.Identity),t}_isTrackingDisabled(){return ge[o.Keys.DisableTracking]||navigator.doNotTrack==="1"||navigator.doNotTrack==="yes"}_sendIdentity(t,n){let{dataSourceId:r}=this.config,{channelId:i}=this._getContext(),s=this._getIdentityHash(r,t,n),c=E(o.Keys.Identity),a=E(o.Keys.ChannelId);if(s!==c||i!==a){let{emailAddressHashed:l}=t;T(o.Keys.ChannelId,i),T(o.Keys.Identity,s),this[o.Queues.IdentityMessage].addItem({channelId:i,dataSourceId:r,emailAddressHashed:l,id:s,userId:n})}}_setCookie(t,n){let r=window.Liferay,i=new Date;if(i.setDate(i.getDate()+365),r?.Util?.Cookie)r.Util.Cookie.set?.(t,n,r?.Util?.Cookie?.TYPES?.PERSONALIZATION,{expires:i,secure:!0});else{let s=r?.ThemeDisplay?.getPathContext?.()||"/";document.cookie=`${t}=${n}; expires=${i.toUTCString()}; path=${s}; Secure`}}_initializeEventQueue(){let t=new La({analyticsInstance:this});this[o.Queues.Events]=t,this._queueFlushService.addQueue(t,{priority:1})}_initializeEventMessageQueue(){let t=new xa({analyticsInstance:this});this[o.Queues.Messages]=t,this._queueFlushService.addQueue(t,{priority:1})}_initializeIdentityMessageQueue(){let t=new Ca({analyticsInstance:this});this[o.Queues.IdentityMessage]=t,this._queueFlushService.addQueue(t,{priority:10})}};o.Queues.Events,o.Queues.Messages,o.Queues.IdentityMessage;var rr=Ve;ge.Analytics={create:rr.create};})();
//# sourceMappingURL=analytics-all-min.js.map
