<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">function Wr(n,t){return function(){return n.apply(t,arguments)}}const{toString:Ps}=Object.prototype,{getPrototypeOf:Kn}=Object,ln=(n=&gt;t=&gt;{const i=Ps.call(t);return n[i]||(n[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),Ae=n=&gt;(n=n.toLowerCase(),t=&gt;ln(t)===n),hn=n=&gt;t=&gt;typeof t===n,{isArray:st}=Array,Ct=hn("undefined");function Ns(n){return n!==null&amp;&amp;!Ct(n)&amp;&amp;n.constructor!==null&amp;&amp;!Ct(n.constructor)&amp;&amp;pe(n.constructor.isBuffer)&amp;&amp;n.constructor.isBuffer(n)}const $r=Ae("ArrayBuffer");function Is(n){let t;return typeof ArrayBuffer&lt;"u"&amp;&amp;ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&amp;&amp;n.buffer&amp;&amp;$r(n.buffer),t}const Ds=hn("string"),pe=hn("function"),Xr=hn("number"),fn=n=&gt;n!==null&amp;&amp;typeof n=="object",Ms=n=&gt;n===!0||n===!1,tn=n=&gt;{if(ln(n)!=="object")return!1;const t=Kn(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&amp;&amp;!(Symbol.toStringTag in n)&amp;&amp;!(Symbol.iterator in n)},Us=Ae("Date"),Fs=Ae("File"),js=Ae("Blob"),Hs=Ae("FileList"),Bs=n=&gt;fn(n)&amp;&amp;pe(n.pipe),qs=n=&gt;{let t;return n&amp;&amp;(typeof FormData=="function"&amp;&amp;n instanceof FormData||pe(n.append)&amp;&amp;((t=ln(n))==="formdata"||t==="object"&amp;&amp;pe(n.toString)&amp;&amp;n.toString()==="[object FormData]"))},zs=Ae("URLSearchParams"),[Ws,$s,Xs,Gs]=["ReadableStream","Request","Response","Headers"].map(Ae),Js=n=&gt;n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function At(n,t,{allOwnKeys:i=!1}={}){if(n===null||typeof n&gt;"u")return;let s,a;if(typeof n!="object"&amp;&amp;(n=[n]),st(n))for(s=0,a=n.length;s&lt;a;s++)t.call(null,n[s],s,n);else{const u=i?Object.getOwnPropertyNames(n):Object.keys(n),l=u.length;let m;for(s=0;s&lt;l;s++)m=u[s],t.call(null,n[m],m,n)}}function Gr(n,t){t=t.toLowerCase();const i=Object.keys(n);let s=i.length,a;for(;s-- &gt;0;)if(a=i[s],t===a.toLowerCase())return a;return null}const Je=typeof globalThis&lt;"u"?globalThis:typeof self&lt;"u"?self:typeof window&lt;"u"?window:global,Jr=n=&gt;!Ct(n)&amp;&amp;n!==Je;function Bn(){const{caseless:n}=Jr(this)&amp;&amp;this||{},t={},i=(s,a)=&gt;{const u=n&amp;&amp;Gr(t,a)||a;tn(t[u])&amp;&amp;tn(s)?t[u]=Bn(t[u],s):tn(s)?t[u]=Bn({},s):st(s)?t[u]=s.slice():t[u]=s};for(let s=0,a=arguments.length;s&lt;a;s++)arguments[s]&amp;&amp;At(arguments[s],i);return t}const Vs=(n,t,i,{allOwnKeys:s}={})=&gt;(At(t,(a,u)=&gt;{i&amp;&amp;pe(a)?n[u]=Wr(a,i):n[u]=a},{allOwnKeys:s}),n),Ys=n=&gt;(n.charCodeAt(0)===65279&amp;&amp;(n=n.slice(1)),n),Ks=(n,t,i,s)=&gt;{n.prototype=Object.create(t.prototype,s),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:t.prototype}),i&amp;&amp;Object.assign(n.prototype,i)},Qs=(n,t,i,s)=&gt;{let a,u,l;const m={};if(t=t||{},n==null)return t;do{for(a=Object.getOwnPropertyNames(n),u=a.length;u-- &gt;0;)l=a[u],(!s||s(l,n,t))&amp;&amp;!m[l]&amp;&amp;(t[l]=n[l],m[l]=!0);n=i!==!1&amp;&amp;Kn(n)}while(n&amp;&amp;(!i||i(n,t))&amp;&amp;n!==Object.prototype);return t},Zs=(n,t,i)=&gt;{n=String(n),(i===void 0||i&gt;n.length)&amp;&amp;(i=n.length),i-=t.length;const s=n.indexOf(t,i);return s!==-1&amp;&amp;s===i},eo=n=&gt;{if(!n)return null;if(st(n))return n;let t=n.length;if(!Xr(t))return null;const i=new Array(t);for(;t-- &gt;0;)i[t]=n[t];return i},to=(n=&gt;t=&gt;n&amp;&amp;t instanceof n)(typeof Uint8Array&lt;"u"&amp;&amp;Kn(Uint8Array)),no=(n,t)=&gt;{const s=(n&amp;&amp;n[Symbol.iterator]).call(n);let a;for(;(a=s.next())&amp;&amp;!a.done;){const u=a.value;t.call(n,u[0],u[1])}},ro=(n,t)=&gt;{let i;const s=[];for(;(i=n.exec(t))!==null;)s.push(i);return s},so=Ae("HTMLFormElement"),oo=n=&gt;n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,s,a){return s.toUpperCase()+a}),_r=(({hasOwnProperty:n})=&gt;(t,i)=&gt;n.call(t,i))(Object.prototype),ao=Ae("RegExp"),Vr=(n,t)=&gt;{const i=Object.getOwnPropertyDescriptors(n),s={};At(i,(a,u)=&gt;{let l;(l=t(a,u,n))!==!1&amp;&amp;(s[u]=l||a)}),Object.defineProperties(n,s)},co=n=&gt;{Vr(n,(t,i)=&gt;{if(pe(n)&amp;&amp;["arguments","caller","callee"].indexOf(i)!==-1)return!1;const s=n[i];if(pe(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=&gt;{throw Error("Can not rewrite read-only method '"+i+"'")})}})},uo=(n,t)=&gt;{const i={},s=a=&gt;{a.forEach(u=&gt;{i[u]=!0})};return st(n)?s(n):s(String(n).split(t)),i},lo=()=&gt;{},ho=(n,t)=&gt;n!=null&amp;&amp;Number.isFinite(n=+n)?n:t,Pn="abcdefghijklmnopqrstuvwxyz",wr="0123456789",Yr={DIGIT:wr,ALPHA:Pn,ALPHA_DIGIT:Pn+Pn.toUpperCase()+wr},fo=(n=16,t=Yr.ALPHA_DIGIT)=&gt;{let i="";const{length:s}=t;for(;n--;)i+=t[Math.random()*s|0];return i};function po(n){return!!(n&amp;&amp;pe(n.append)&amp;&amp;n[Symbol.toStringTag]==="FormData"&amp;&amp;n[Symbol.iterator])}const mo=n=&gt;{const t=new Array(10),i=(s,a)=&gt;{if(fn(s)){if(t.indexOf(s)&gt;=0)return;if(!("toJSON"in s)){t[a]=s;const u=st(s)?[]:{};return At(s,(l,m)=&gt;{const y=i(l,a+1);!Ct(y)&amp;&amp;(u[m]=y)}),t[a]=void 0,u}}return s};return i(n,0)},go=Ae("AsyncFunction"),yo=n=&gt;n&amp;&amp;(fn(n)||pe(n))&amp;&amp;pe(n.then)&amp;&amp;pe(n.catch),Kr=((n,t)=&gt;n?setImmediate:t?((i,s)=&gt;(Je.addEventListener("message",({source:a,data:u})=&gt;{a===Je&amp;&amp;u===i&amp;&amp;s.length&amp;&amp;s.shift()()},!1),a=&gt;{s.push(a),Je.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=&gt;setTimeout(i))(typeof setImmediate=="function",pe(Je.postMessage)),vo=typeof queueMicrotask&lt;"u"?queueMicrotask.bind(Je):typeof process&lt;"u"&amp;&amp;process.nextTick||Kr,p={isArray:st,isArrayBuffer:$r,isBuffer:Ns,isFormData:qs,isArrayBufferView:Is,isString:Ds,isNumber:Xr,isBoolean:Ms,isObject:fn,isPlainObject:tn,isReadableStream:Ws,isRequest:$s,isResponse:Xs,isHeaders:Gs,isUndefined:Ct,isDate:Us,isFile:Fs,isBlob:js,isRegExp:ao,isFunction:pe,isStream:Bs,isURLSearchParams:zs,isTypedArray:to,isFileList:Hs,forEach:At,merge:Bn,extend:Vs,trim:Js,stripBOM:Ys,inherits:Ks,toFlatObject:Qs,kindOf:ln,kindOfTest:Ae,endsWith:Zs,toArray:eo,forEachEntry:no,matchAll:ro,isHTMLForm:so,hasOwnProperty:_r,hasOwnProp:_r,reduceDescriptors:Vr,freezeMethods:co,toObjectSet:uo,toCamelCase:oo,noop:lo,toFiniteNumber:ho,findKey:Gr,global:Je,isContextDefined:Jr,ALPHABET:Yr,generateString:fo,isSpecCompliantForm:po,toJSONObject:mo,isAsyncFn:go,isThenable:yo,setImmediate:Kr,asap:vo};function M(n,t,i,s,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",t&amp;&amp;(this.code=t),i&amp;&amp;(this.config=i),s&amp;&amp;(this.request=s),a&amp;&amp;(this.response=a)}p.inherits(M,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:p.toJSONObject(this.config),code:this.code,status:this.response&amp;&amp;this.response.status?this.response.status:null}}});const Qr=M.prototype,Zr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=&gt;{Zr[n]={value:n}});Object.defineProperties(M,Zr);Object.defineProperty(Qr,"isAxiosError",{value:!0});M.from=(n,t,i,s,a,u)=&gt;{const l=Object.create(Qr);return p.toFlatObject(n,l,function(y){return y!==Error.prototype},m=&gt;m!=="isAxiosError"),M.call(l,n.message,t,i,s,a),l.cause=n,l.name=n.name,u&amp;&amp;Object.assign(l,u),l};const bo=null;function qn(n){return p.isPlainObject(n)||p.isArray(n)}function ei(n){return p.endsWith(n,"[]")?n.slice(0,-2):n}function Sr(n,t,i){return n?n.concat(t).map(function(a,u){return a=ei(a),!i&amp;&amp;u?"["+a+"]":a}).join(i?".":""):t}function _o(n){return p.isArray(n)&amp;&amp;!n.some(qn)}const wo=p.toFlatObject(p,{},null,function(t){return/^is[A-Z]/.test(t)});function dn(n,t,i){if(!p.isObject(n))throw new TypeError("target must be an object");t=t||new FormData,i=p.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(T,d){return!p.isUndefined(d[T])});const s=i.metaTokens,a=i.visitor||v,u=i.dots,l=i.indexes,y=(i.Blob||typeof Blob&lt;"u"&amp;&amp;Blob)&amp;&amp;p.isSpecCompliantForm(t);if(!p.isFunction(a))throw new TypeError("visitor must be a function");function b(w){if(w===null)return"";if(p.isDate(w))return w.toISOString();if(!y&amp;&amp;p.isBlob(w))throw new M("Blob is not supported. Use a Buffer instead.");return p.isArrayBuffer(w)||p.isTypedArray(w)?y&amp;&amp;typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function v(w,T,d){let C=w;if(w&amp;&amp;!d&amp;&amp;typeof w=="object"){if(p.endsWith(T,"{}"))T=s?T:T.slice(0,-2),w=JSON.stringify(w);else if(p.isArray(w)&amp;&amp;_o(w)||(p.isFileList(w)||p.endsWith(T,"[]"))&amp;&amp;(C=p.toArray(w)))return T=ei(T),C.forEach(function(k,N){!(p.isUndefined(k)||k===null)&amp;&amp;t.append(l===!0?Sr([T],N,u):l===null?T:T+"[]",b(k))}),!1}return qn(w)?!0:(t.append(Sr(d,T,u),b(w)),!1)}const S=[],L=Object.assign(wo,{defaultVisitor:v,convertValue:b,isVisitable:qn});function R(w,T){if(!p.isUndefined(w)){if(S.indexOf(w)!==-1)throw Error("Circular reference detected in "+T.join("."));S.push(w),p.forEach(w,function(C,P){(!(p.isUndefined(C)||C===null)&amp;&amp;a.call(t,C,p.isString(P)?P.trim():P,T,L))===!0&amp;&amp;R(C,T?T.concat(P):[P])}),S.pop()}}if(!p.isObject(n))throw new TypeError("data must be an object");return R(n),t}function Tr(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Qn(n,t){this._pairs=[],n&amp;&amp;dn(n,this,t)}const ti=Qn.prototype;ti.append=function(t,i){this._pairs.push([t,i])};ti.toString=function(t){const i=t?function(s){return t.call(this,s,Tr)}:Tr;return this._pairs.map(function(a){return i(a[0])+"="+i(a[1])},"").join("&amp;")};function So(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ni(n,t,i){if(!t)return n;const s=i&amp;&amp;i.encode||So,a=i&amp;&amp;i.serialize;let u;if(a?u=a(t,i):u=p.isURLSearchParams(t)?t.toString():new Qn(t,i).toString(s),u){const l=n.indexOf("#");l!==-1&amp;&amp;(n=n.slice(0,l)),n+=(n.indexOf("?")===-1?"?":"&amp;")+u}return n}class Er{constructor(){this.handlers=[]}use(t,i,s){return this.handlers.push({fulfilled:t,rejected:i,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&amp;&amp;(this.handlers[t]=null)}clear(){this.handlers&amp;&amp;(this.handlers=[])}forEach(t){p.forEach(this.handlers,function(s){s!==null&amp;&amp;t(s)})}}const ri={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},To=typeof URLSearchParams&lt;"u"?URLSearchParams:Qn,Eo=typeof FormData&lt;"u"?FormData:null,Co=typeof Blob&lt;"u"?Blob:null,ko={isBrowser:!0,classes:{URLSearchParams:To,FormData:Eo,Blob:Co},protocols:["http","https","file","blob","url","data"]},Zn=typeof window&lt;"u"&amp;&amp;typeof document&lt;"u",Ao=(n=&gt;Zn&amp;&amp;["ReactNative","NativeScript","NS"].indexOf(n)&lt;0)(typeof navigator&lt;"u"&amp;&amp;navigator.product),Ro=typeof WorkerGlobalScope&lt;"u"&amp;&amp;self instanceof WorkerGlobalScope&amp;&amp;typeof self.importScripts=="function",Oo=Zn&amp;&amp;window.location.href||"http://localhost",xo=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Zn,hasStandardBrowserEnv:Ao,hasStandardBrowserWebWorkerEnv:Ro,origin:Oo},Symbol.toStringTag,{value:"Module"})),ke={...xo,...ko};function Lo(n,t){return dn(n,new ke.classes.URLSearchParams,Object.assign({visitor:function(i,s,a,u){return ke.isNode&amp;&amp;p.isBuffer(i)?(this.append(s,i.toString("base64")),!1):u.defaultVisitor.apply(this,arguments)}},t))}function Po(n){return p.matchAll(/\w+|\[(\w*)]/g,n).map(t=&gt;t[0]==="[]"?"":t[1]||t[0])}function No(n){const t={},i=Object.keys(n);let s;const a=i.length;let u;for(s=0;s&lt;a;s++)u=i[s],t[u]=n[u];return t}function ii(n){function t(i,s,a,u){let l=i[u++];if(l==="__proto__")return!0;const m=Number.isFinite(+l),y=u&gt;=i.length;return l=!l&amp;&amp;p.isArray(a)?a.length:l,y?(p.hasOwnProp(a,l)?a[l]=[a[l],s]:a[l]=s,!m):((!a[l]||!p.isObject(a[l]))&amp;&amp;(a[l]=[]),t(i,s,a[l],u)&amp;&amp;p.isArray(a[l])&amp;&amp;(a[l]=No(a[l])),!m)}if(p.isFormData(n)&amp;&amp;p.isFunction(n.entries)){const i={};return p.forEachEntry(n,(s,a)=&gt;{t(Po(s),a,i,0)}),i}return null}function Io(n,t,i){if(p.isString(n))try{return(t||JSON.parse)(n),p.trim(n)}catch(s){if(s.name!=="SyntaxError")throw s}return(i||JSON.stringify)(n)}const Rt={transitional:ri,adapter:["xhr","http","fetch"],transformRequest:[function(t,i){const s=i.getContentType()||"",a=s.indexOf("application/json")&gt;-1,u=p.isObject(t);if(u&amp;&amp;p.isHTMLForm(t)&amp;&amp;(t=new FormData(t)),p.isFormData(t))return a?JSON.stringify(ii(t)):t;if(p.isArrayBuffer(t)||p.isBuffer(t)||p.isStream(t)||p.isFile(t)||p.isBlob(t)||p.isReadableStream(t))return t;if(p.isArrayBufferView(t))return t.buffer;if(p.isURLSearchParams(t))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let m;if(u){if(s.indexOf("application/x-www-form-urlencoded")&gt;-1)return Lo(t,this.formSerializer).toString();if((m=p.isFileList(t))||s.indexOf("multipart/form-data")&gt;-1){const y=this.env&amp;&amp;this.env.FormData;return dn(m?{"files[]":t}:t,y&amp;&amp;new y,this.formSerializer)}}return u||a?(i.setContentType("application/json",!1),Io(t)):t}],transformResponse:[function(t){const i=this.transitional||Rt.transitional,s=i&amp;&amp;i.forcedJSONParsing,a=this.responseType==="json";if(p.isResponse(t)||p.isReadableStream(t))return t;if(t&amp;&amp;p.isString(t)&amp;&amp;(s&amp;&amp;!this.responseType||a)){const l=!(i&amp;&amp;i.silentJSONParsing)&amp;&amp;a;try{return JSON.parse(t)}catch(m){if(l)throw m.name==="SyntaxError"?M.from(m,M.ERR_BAD_RESPONSE,this,null,this.response):m}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ke.classes.FormData,Blob:ke.classes.Blob},validateStatus:function(t){return t&gt;=200&amp;&amp;t&lt;300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};p.forEach(["delete","get","head","post","put","patch"],n=&gt;{Rt.headers[n]={}});const Do=p.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Mo=n=&gt;{const t={};let i,s,a;return n&amp;&amp;n.split(`
`).forEach(function(l){a=l.indexOf(":"),i=l.substring(0,a).trim().toLowerCase(),s=l.substring(a+1).trim(),!(!i||t[i]&amp;&amp;Do[i])&amp;&amp;(i==="set-cookie"?t[i]?t[i].push(s):t[i]=[s]:t[i]=t[i]?t[i]+", "+s:s)}),t},Cr=Symbol("internals");function bt(n){return n&amp;&amp;String(n).trim().toLowerCase()}function nn(n){return n===!1||n==null?n:p.isArray(n)?n.map(nn):String(n)}function Uo(n){const t=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=i.exec(n);)t[s[1]]=s[2];return t}const Fo=n=&gt;/^[-_a-zA-Z0-9^`|~,!#$%&amp;'*+.]+$/.test(n.trim());function Nn(n,t,i,s,a){if(p.isFunction(s))return s.call(this,t,i);if(a&amp;&amp;(t=i),!!p.isString(t)){if(p.isString(s))return t.indexOf(s)!==-1;if(p.isRegExp(s))return s.test(t)}}function jo(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,i,s)=&gt;i.toUpperCase()+s)}function Ho(n,t){const i=p.toCamelCase(" "+t);["get","set","has"].forEach(s=&gt;{Object.defineProperty(n,s+i,{value:function(a,u,l){return this[s].call(this,t,a,u,l)},configurable:!0})})}class ue{constructor(t){t&amp;&amp;this.set(t)}set(t,i,s){const a=this;function u(m,y,b){const v=bt(y);if(!v)throw new Error("header name must be a non-empty string");const S=p.findKey(a,v);(!S||a[S]===void 0||b===!0||b===void 0&amp;&amp;a[S]!==!1)&amp;&amp;(a[S||y]=nn(m))}const l=(m,y)=&gt;p.forEach(m,(b,v)=&gt;u(b,v,y));if(p.isPlainObject(t)||t instanceof this.constructor)l(t,i);else if(p.isString(t)&amp;&amp;(t=t.trim())&amp;&amp;!Fo(t))l(Mo(t),i);else if(p.isHeaders(t))for(const[m,y]of t.entries())u(y,m,s);else t!=null&amp;&amp;u(i,t,s);return this}get(t,i){if(t=bt(t),t){const s=p.findKey(this,t);if(s){const a=this[s];if(!i)return a;if(i===!0)return Uo(a);if(p.isFunction(i))return i.call(this,a,s);if(p.isRegExp(i))return i.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,i){if(t=bt(t),t){const s=p.findKey(this,t);return!!(s&amp;&amp;this[s]!==void 0&amp;&amp;(!i||Nn(this,this[s],s,i)))}return!1}delete(t,i){const s=this;let a=!1;function u(l){if(l=bt(l),l){const m=p.findKey(s,l);m&amp;&amp;(!i||Nn(s,s[m],m,i))&amp;&amp;(delete s[m],a=!0)}}return p.isArray(t)?t.forEach(u):u(t),a}clear(t){const i=Object.keys(this);let s=i.length,a=!1;for(;s--;){const u=i[s];(!t||Nn(this,this[u],u,t,!0))&amp;&amp;(delete this[u],a=!0)}return a}normalize(t){const i=this,s={};return p.forEach(this,(a,u)=&gt;{const l=p.findKey(s,u);if(l){i[l]=nn(a),delete i[u];return}const m=t?jo(u):String(u).trim();m!==u&amp;&amp;delete i[u],i[m]=nn(a),s[m]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const i=Object.create(null);return p.forEach(this,(s,a)=&gt;{s!=null&amp;&amp;s!==!1&amp;&amp;(i[a]=t&amp;&amp;p.isArray(s)?s.join(", "):s)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,i])=&gt;t+": "+i).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...i){const s=new this(t);return i.forEach(a=&gt;s.set(a)),s}static accessor(t){const s=(this[Cr]=this[Cr]={accessors:{}}).accessors,a=this.prototype;function u(l){const m=bt(l);s[m]||(Ho(a,l),s[m]=!0)}return p.isArray(t)?t.forEach(u):u(t),this}}ue.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);p.reduceDescriptors(ue.prototype,({value:n},t)=&gt;{let i=t[0].toUpperCase()+t.slice(1);return{get:()=&gt;n,set(s){this[i]=s}}});p.freezeMethods(ue);function In(n,t){const i=this||Rt,s=t||i,a=ue.from(s.headers);let u=s.data;return p.forEach(n,function(m){u=m.call(i,u,a.normalize(),t?t.status:void 0)}),a.normalize(),u}function si(n){return!!(n&amp;&amp;n.__CANCEL__)}function ot(n,t,i){M.call(this,n??"canceled",M.ERR_CANCELED,t,i),this.name="CanceledError"}p.inherits(ot,M,{__CANCEL__:!0});function oi(n,t,i){const s=i.config.validateStatus;!i.status||!s||s(i.status)?n(i):t(new M("Request failed with status code "+i.status,[M.ERR_BAD_REQUEST,M.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function Bo(n){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return t&amp;&amp;t[1]||""}function qo(n,t){n=n||10;const i=new Array(n),s=new Array(n);let a=0,u=0,l;return t=t!==void 0?t:1e3,function(y){const b=Date.now(),v=s[u];l||(l=b),i[a]=y,s[a]=b;let S=u,L=0;for(;S!==a;)L+=i[S++],S=S%n;if(a=(a+1)%n,a===u&amp;&amp;(u=(u+1)%n),b-l&lt;t)return;const R=v&amp;&amp;b-v;return R?Math.round(L*1e3/R):void 0}}function zo(n,t){let i=0,s=1e3/t,a,u;const l=(b,v=Date.now())=&gt;{i=v,a=null,u&amp;&amp;(clearTimeout(u),u=null),n.apply(null,b)};return[(...b)=&gt;{const v=Date.now(),S=v-i;S&gt;=s?l(b,v):(a=b,u||(u=setTimeout(()=&gt;{u=null,l(a)},s-S)))},()=&gt;a&amp;&amp;l(a)]}const sn=(n,t,i=3)=&gt;{let s=0;const a=qo(50,250);return zo(u=&gt;{const l=u.loaded,m=u.lengthComputable?u.total:void 0,y=l-s,b=a(y),v=l&lt;=m;s=l;const S={loaded:l,total:m,progress:m?l/m:void 0,bytes:y,rate:b||void 0,estimated:b&amp;&amp;m&amp;&amp;v?(m-l)/b:void 0,event:u,lengthComputable:m!=null,[t?"download":"upload"]:!0};n(S)},i)},kr=(n,t)=&gt;{const i=n!=null;return[s=&gt;t[0]({lengthComputable:i,total:n,loaded:s}),t[1]]},Ar=n=&gt;(...t)=&gt;p.asap(()=&gt;n(...t)),Wo=ke.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");let s;function a(u){let l=u;return t&amp;&amp;(i.setAttribute("href",l),l=i.href),i.setAttribute("href",l),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:i.pathname.charAt(0)==="/"?i.pathname:"/"+i.pathname}}return s=a(window.location.href),function(l){const m=p.isString(l)?a(l):l;return m.protocol===s.protocol&amp;&amp;m.host===s.host}}():function(){return function(){return!0}}(),$o=ke.hasStandardBrowserEnv?{write(n,t,i,s,a,u){const l=[n+"="+encodeURIComponent(t)];p.isNumber(i)&amp;&amp;l.push("expires="+new Date(i).toGMTString()),p.isString(s)&amp;&amp;l.push("path="+s),p.isString(a)&amp;&amp;l.push("domain="+a),u===!0&amp;&amp;l.push("secure"),document.cookie=l.join("; ")},read(n){const t=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Xo(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function Go(n,t){return t?n.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):n}function ai(n,t){return n&amp;&amp;!Xo(t)?Go(n,t):t}const Rr=n=&gt;n instanceof ue?{...n}:n;function Ye(n,t){t=t||{};const i={};function s(b,v,S){return p.isPlainObject(b)&amp;&amp;p.isPlainObject(v)?p.merge.call({caseless:S},b,v):p.isPlainObject(v)?p.merge({},v):p.isArray(v)?v.slice():v}function a(b,v,S){if(p.isUndefined(v)){if(!p.isUndefined(b))return s(void 0,b,S)}else return s(b,v,S)}function u(b,v){if(!p.isUndefined(v))return s(void 0,v)}function l(b,v){if(p.isUndefined(v)){if(!p.isUndefined(b))return s(void 0,b)}else return s(void 0,v)}function m(b,v,S){if(S in t)return s(b,v);if(S in n)return s(void 0,b)}const y={url:u,method:u,data:u,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:m,headers:(b,v)=&gt;a(Rr(b),Rr(v),!0)};return p.forEach(Object.keys(Object.assign({},n,t)),function(v){const S=y[v]||a,L=S(n[v],t[v],v);p.isUndefined(L)&amp;&amp;S!==m||(i[v]=L)}),i}const ci=n=&gt;{const t=Ye({},n);let{data:i,withXSRFToken:s,xsrfHeaderName:a,xsrfCookieName:u,headers:l,auth:m}=t;t.headers=l=ue.from(l),t.url=ni(ai(t.baseURL,t.url),n.params,n.paramsSerializer),m&amp;&amp;l.set("Authorization","Basic "+btoa((m.username||"")+":"+(m.password?unescape(encodeURIComponent(m.password)):"")));let y;if(p.isFormData(i)){if(ke.hasStandardBrowserEnv||ke.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((y=l.getContentType())!==!1){const[b,...v]=y?y.split(";").map(S=&gt;S.trim()).filter(Boolean):[];l.setContentType([b||"multipart/form-data",...v].join("; "))}}if(ke.hasStandardBrowserEnv&amp;&amp;(s&amp;&amp;p.isFunction(s)&amp;&amp;(s=s(t)),s||s!==!1&amp;&amp;Wo(t.url))){const b=a&amp;&amp;u&amp;&amp;$o.read(u);b&amp;&amp;l.set(a,b)}return t},Jo=typeof XMLHttpRequest&lt;"u",Vo=Jo&amp;&amp;function(n){return new Promise(function(i,s){const a=ci(n);let u=a.data;const l=ue.from(a.headers).normalize();let{responseType:m,onUploadProgress:y,onDownloadProgress:b}=a,v,S,L,R,w;function T(){R&amp;&amp;R(),w&amp;&amp;w(),a.cancelToken&amp;&amp;a.cancelToken.unsubscribe(v),a.signal&amp;&amp;a.signal.removeEventListener("abort",v)}let d=new XMLHttpRequest;d.open(a.method.toUpperCase(),a.url,!0),d.timeout=a.timeout;function C(){if(!d)return;const k=ue.from("getAllResponseHeaders"in d&amp;&amp;d.getAllResponseHeaders()),H={data:!m||m==="text"||m==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:k,config:n,request:d};oi(function(X){i(X),T()},function(X){s(X),T()},H),d=null}"onloadend"in d?d.onloadend=C:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&amp;&amp;!(d.responseURL&amp;&amp;d.responseURL.indexOf("file:")===0)||setTimeout(C)},d.onabort=function(){d&amp;&amp;(s(new M("Request aborted",M.ECONNABORTED,n,d)),d=null)},d.onerror=function(){s(new M("Network Error",M.ERR_NETWORK,n,d)),d=null},d.ontimeout=function(){let N=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const H=a.transitional||ri;a.timeoutErrorMessage&amp;&amp;(N=a.timeoutErrorMessage),s(new M(N,H.clarifyTimeoutError?M.ETIMEDOUT:M.ECONNABORTED,n,d)),d=null},u===void 0&amp;&amp;l.setContentType(null),"setRequestHeader"in d&amp;&amp;p.forEach(l.toJSON(),function(N,H){d.setRequestHeader(H,N)}),p.isUndefined(a.withCredentials)||(d.withCredentials=!!a.withCredentials),m&amp;&amp;m!=="json"&amp;&amp;(d.responseType=a.responseType),b&amp;&amp;([L,w]=sn(b,!0),d.addEventListener("progress",L)),y&amp;&amp;d.upload&amp;&amp;([S,R]=sn(y),d.upload.addEventListener("progress",S),d.upload.addEventListener("loadend",R)),(a.cancelToken||a.signal)&amp;&amp;(v=k=&gt;{d&amp;&amp;(s(!k||k.type?new ot(null,n,d):k),d.abort(),d=null)},a.cancelToken&amp;&amp;a.cancelToken.subscribe(v),a.signal&amp;&amp;(a.signal.aborted?v():a.signal.addEventListener("abort",v)));const P=Bo(a.url);if(P&amp;&amp;ke.protocols.indexOf(P)===-1){s(new M("Unsupported protocol "+P+":",M.ERR_BAD_REQUEST,n));return}d.send(u||null)})},Yo=(n,t)=&gt;{let i=new AbortController,s;const a=function(y){if(!s){s=!0,l();const b=y instanceof Error?y:this.reason;i.abort(b instanceof M?b:new ot(b instanceof Error?b.message:b))}};let u=t&amp;&amp;setTimeout(()=&gt;{a(new M(`timeout ${t} of ms exceeded`,M.ETIMEDOUT))},t);const l=()=&gt;{n&amp;&amp;(u&amp;&amp;clearTimeout(u),u=null,n.forEach(y=&gt;{y&amp;&amp;(y.removeEventListener?y.removeEventListener("abort",a):y.unsubscribe(a))}),n=null)};n.forEach(y=&gt;y&amp;&amp;y.addEventListener&amp;&amp;y.addEventListener("abort",a));const{signal:m}=i;return m.unsubscribe=l,[m,()=&gt;{u&amp;&amp;clearTimeout(u),u=null}]},Ko=function*(n,t){let i=n.byteLength;if(!t||i&lt;t){yield n;return}let s=0,a;for(;s&lt;i;)a=s+t,yield n.slice(s,a),s=a},Qo=async function*(n,t,i){for await(const s of n)yield*Ko(ArrayBuffer.isView(s)?s:await i(String(s)),t)},Or=(n,t,i,s,a)=&gt;{const u=Qo(n,t,a);let l=0,m,y=b=&gt;{m||(m=!0,s&amp;&amp;s(b))};return new ReadableStream({async pull(b){try{const{done:v,value:S}=await u.next();if(v){y(),b.close();return}let L=S.byteLength;if(i){let R=l+=L;i(R)}b.enqueue(new Uint8Array(S))}catch(v){throw y(v),v}},cancel(b){return y(b),u.return()}},{highWaterMark:2})},pn=typeof fetch=="function"&amp;&amp;typeof Request=="function"&amp;&amp;typeof Response=="function",ui=pn&amp;&amp;typeof ReadableStream=="function",zn=pn&amp;&amp;(typeof TextEncoder=="function"?(n=&gt;t=&gt;n.encode(t))(new TextEncoder):async n=&gt;new Uint8Array(await new Response(n).arrayBuffer())),li=(n,...t)=&gt;{try{return!!n(...t)}catch{return!1}},Zo=ui&amp;&amp;li(()=&gt;{let n=!1;const t=new Request(ke.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&amp;&amp;!t}),xr=64*1024,Wn=ui&amp;&amp;li(()=&gt;p.isReadableStream(new Response("").body)),on={stream:Wn&amp;&amp;(n=&gt;n.body)};pn&amp;&amp;(n=&gt;{["text","arrayBuffer","blob","formData","stream"].forEach(t=&gt;{!on[t]&amp;&amp;(on[t]=p.isFunction(n[t])?i=&gt;i[t]():(i,s)=&gt;{throw new M(`Response type '${t}' is not supported`,M.ERR_NOT_SUPPORT,s)})})})(new Response);const ea=async n=&gt;{if(n==null)return 0;if(p.isBlob(n))return n.size;if(p.isSpecCompliantForm(n))return(await new Request(n).arrayBuffer()).byteLength;if(p.isArrayBufferView(n)||p.isArrayBuffer(n))return n.byteLength;if(p.isURLSearchParams(n)&amp;&amp;(n=n+""),p.isString(n))return(await zn(n)).byteLength},ta=async(n,t)=&gt;{const i=p.toFiniteNumber(n.getContentLength());return i??ea(t)},na=pn&amp;&amp;(async n=&gt;{let{url:t,method:i,data:s,signal:a,cancelToken:u,timeout:l,onDownloadProgress:m,onUploadProgress:y,responseType:b,headers:v,withCredentials:S="same-origin",fetchOptions:L}=ci(n);b=b?(b+"").toLowerCase():"text";let[R,w]=a||u||l?Yo([a,u],l):[],T,d;const C=()=&gt;{!T&amp;&amp;setTimeout(()=&gt;{R&amp;&amp;R.unsubscribe()}),T=!0};let P;try{if(y&amp;&amp;Zo&amp;&amp;i!=="get"&amp;&amp;i!=="head"&amp;&amp;(P=await ta(v,s))!==0){let W=new Request(t,{method:"POST",body:s,duplex:"half"}),X;if(p.isFormData(s)&amp;&amp;(X=W.headers.get("content-type"))&amp;&amp;v.setContentType(X),W.body){const[Z,se]=kr(P,sn(Ar(y)));s=Or(W.body,xr,Z,se,zn)}}p.isString(S)||(S=S?"include":"omit"),d=new Request(t,{...L,signal:R,method:i.toUpperCase(),headers:v.normalize().toJSON(),body:s,duplex:"half",credentials:S});let k=await fetch(d);const N=Wn&amp;&amp;(b==="stream"||b==="response");if(Wn&amp;&amp;(m||N)){const W={};["status","statusText","headers"].forEach(le=&gt;{W[le]=k[le]});const X=p.toFiniteNumber(k.headers.get("content-length")),[Z,se]=m&amp;&amp;kr(X,sn(Ar(m),!0))||[];k=new Response(Or(k.body,xr,Z,()=&gt;{se&amp;&amp;se(),N&amp;&amp;C()},zn),W)}b=b||"text";let H=await on[p.findKey(on,b)||"text"](k,n);return!N&amp;&amp;C(),w&amp;&amp;w(),await new Promise((W,X)=&gt;{oi(W,X,{data:H,headers:ue.from(k.headers),status:k.status,statusText:k.statusText,config:n,request:d})})}catch(k){throw C(),k&amp;&amp;k.name==="TypeError"&amp;&amp;/fetch/i.test(k.message)?Object.assign(new M("Network Error",M.ERR_NETWORK,n,d),{cause:k.cause||k}):M.from(k,k&amp;&amp;k.code,n,d)}}),$n={http:bo,xhr:Vo,fetch:na};p.forEach($n,(n,t)=&gt;{if(n){try{Object.defineProperty(n,"name",{value:t})}catch{}Object.defineProperty(n,"adapterName",{value:t})}});const Lr=n=&gt;`- ${n}`,ra=n=&gt;p.isFunction(n)||n===null||n===!1,hi={getAdapter:n=&gt;{n=p.isArray(n)?n:[n];const{length:t}=n;let i,s;const a={};for(let u=0;u&lt;t;u++){i=n[u];let l;if(s=i,!ra(i)&amp;&amp;(s=$n[(l=String(i)).toLowerCase()],s===void 0))throw new M(`Unknown adapter '${l}'`);if(s)break;a[l||"#"+u]=s}if(!s){const u=Object.entries(a).map(([m,y])=&gt;`adapter ${m} `+(y===!1?"is not supported by the environment":"is not available in the build"));let l=t?u.length&gt;1?`since :
`+u.map(Lr).join(`
`):" "+Lr(u[0]):"as no adapter specified";throw new M("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return s},adapters:$n};function Dn(n){if(n.cancelToken&amp;&amp;n.cancelToken.throwIfRequested(),n.signal&amp;&amp;n.signal.aborted)throw new ot(null,n)}function Pr(n){return Dn(n),n.headers=ue.from(n.headers),n.data=In.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&amp;&amp;n.headers.setContentType("application/x-www-form-urlencoded",!1),hi.getAdapter(n.adapter||Rt.adapter)(n).then(function(s){return Dn(n),s.data=In.call(n,n.transformResponse,s),s.headers=ue.from(s.headers),s},function(s){return si(s)||(Dn(n),s&amp;&amp;s.response&amp;&amp;(s.response.data=In.call(n,n.transformResponse,s.response),s.response.headers=ue.from(s.response.headers))),Promise.reject(s)})}const fi="1.7.4",er={};["object","boolean","number","function","string","symbol"].forEach((n,t)=&gt;{er[n]=function(s){return typeof s===n||"a"+(t&lt;1?"n ":" ")+n}});const Nr={};er.transitional=function(t,i,s){function a(u,l){return"[Axios v"+fi+"] Transitional option '"+u+"'"+l+(s?". "+s:"")}return(u,l,m)=&gt;{if(t===!1)throw new M(a(l," has been removed"+(i?" in "+i:"")),M.ERR_DEPRECATED);return i&amp;&amp;!Nr[l]&amp;&amp;(Nr[l]=!0,console.warn(a(l," has been deprecated since v"+i+" and will be removed in the near future"))),t?t(u,l,m):!0}};function ia(n,t,i){if(typeof n!="object")throw new M("options must be an object",M.ERR_BAD_OPTION_VALUE);const s=Object.keys(n);let a=s.length;for(;a-- &gt;0;){const u=s[a],l=t[u];if(l){const m=n[u],y=m===void 0||l(m,u,n);if(y!==!0)throw new M("option "+u+" must be "+y,M.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new M("Unknown option "+u,M.ERR_BAD_OPTION)}}const Xn={assertOptions:ia,validators:er},He=Xn.validators;class Ve{constructor(t){this.defaults=t,this.interceptors={request:new Er,response:new Er}}async request(t,i){try{return await this._request(t,i)}catch(s){if(s instanceof Error){let a;Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error;const u=a.stack?a.stack.replace(/^.+\n/,""):"";try{s.stack?u&amp;&amp;!String(s.stack).endsWith(u.replace(/^.+\n.+\n/,""))&amp;&amp;(s.stack+=`
`+u):s.stack=u}catch{}}throw s}}_request(t,i){typeof t=="string"?(i=i||{},i.url=t):i=t||{},i=Ye(this.defaults,i);const{transitional:s,paramsSerializer:a,headers:u}=i;s!==void 0&amp;&amp;Xn.assertOptions(s,{silentJSONParsing:He.transitional(He.boolean),forcedJSONParsing:He.transitional(He.boolean),clarifyTimeoutError:He.transitional(He.boolean)},!1),a!=null&amp;&amp;(p.isFunction(a)?i.paramsSerializer={serialize:a}:Xn.assertOptions(a,{encode:He.function,serialize:He.function},!0)),i.method=(i.method||this.defaults.method||"get").toLowerCase();let l=u&amp;&amp;p.merge(u.common,u[i.method]);u&amp;&amp;p.forEach(["delete","get","head","post","put","patch","common"],w=&gt;{delete u[w]}),i.headers=ue.concat(l,u);const m=[];let y=!0;this.interceptors.request.forEach(function(T){typeof T.runWhen=="function"&amp;&amp;T.runWhen(i)===!1||(y=y&amp;&amp;T.synchronous,m.unshift(T.fulfilled,T.rejected))});const b=[];this.interceptors.response.forEach(function(T){b.push(T.fulfilled,T.rejected)});let v,S=0,L;if(!y){const w=[Pr.bind(this),void 0];for(w.unshift.apply(w,m),w.push.apply(w,b),L=w.length,v=Promise.resolve(i);S&lt;L;)v=v.then(w[S++],w[S++]);return v}L=m.length;let R=i;for(S=0;S&lt;L;){const w=m[S++],T=m[S++];try{R=w(R)}catch(d){T.call(this,d);break}}try{v=Pr.call(this,R)}catch(w){return Promise.reject(w)}for(S=0,L=b.length;S&lt;L;)v=v.then(b[S++],b[S++]);return v}getUri(t){t=Ye(this.defaults,t);const i=ai(t.baseURL,t.url);return ni(i,t.params,t.paramsSerializer)}}p.forEach(["delete","get","head","options"],function(t){Ve.prototype[t]=function(i,s){return this.request(Ye(s||{},{method:t,url:i,data:(s||{}).data}))}});p.forEach(["post","put","patch"],function(t){function i(s){return function(u,l,m){return this.request(Ye(m||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:u,data:l}))}}Ve.prototype[t]=i(),Ve.prototype[t+"Form"]=i(!0)});class tr{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(u){i=u});const s=this;this.promise.then(a=&gt;{if(!s._listeners)return;let u=s._listeners.length;for(;u-- &gt;0;)s._listeners[u](a);s._listeners=null}),this.promise.then=a=&gt;{let u;const l=new Promise(m=&gt;{s.subscribe(m),u=m}).then(a);return l.cancel=function(){s.unsubscribe(u)},l},t(function(u,l,m){s.reason||(s.reason=new ot(u,l,m),i(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const i=this._listeners.indexOf(t);i!==-1&amp;&amp;this._listeners.splice(i,1)}static source(){let t;return{token:new tr(function(a){t=a}),cancel:t}}}function sa(n){return function(i){return n.apply(null,i)}}function oa(n){return p.isObject(n)&amp;&amp;n.isAxiosError===!0}const Gn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Gn).forEach(([n,t])=&gt;{Gn[t]=n});function di(n){const t=new Ve(n),i=Wr(Ve.prototype.request,t);return p.extend(i,Ve.prototype,t,{allOwnKeys:!0}),p.extend(i,t,null,{allOwnKeys:!0}),i.create=function(a){return di(Ye(n,a))},i}const Q=di(Rt);Q.Axios=Ve;Q.CanceledError=ot;Q.CancelToken=tr;Q.isCancel=si;Q.VERSION=fi;Q.toFormData=dn;Q.AxiosError=M;Q.Cancel=Q.CanceledError;Q.all=function(t){return Promise.all(t)};Q.spread=sa;Q.isAxiosError=oa;Q.mergeConfig=Ye;Q.AxiosHeaders=ue;Q.formToJSON=n=&gt;ii(p.isHTMLForm(n)?new FormData(n):n);Q.getAdapter=hi.getAdapter;Q.HttpStatusCode=Gn;Q.default=Q;function an(n){"@babel/helpers - typeof";return an=typeof Symbol=="function"&amp;&amp;typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&amp;&amp;typeof Symbol=="function"&amp;&amp;t.constructor===Symbol&amp;&amp;t!==Symbol.prototype?"symbol":typeof t},an(n)}function re(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function aa(n,t){for(var i=0;i&lt;t.length;i++){var s=t[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&amp;&amp;(s.writable=!0),Object.defineProperty(n,s.key,s)}}function ie(n,t,i){return t&amp;&amp;aa(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function kt(){return kt=Object.assign||function(n){for(var t=1;t&lt;arguments.length;t++){var i=arguments[t];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&amp;&amp;(n[s]=i[s])}return n},kt.apply(this,arguments)}function ge(n,t){if(typeof t!="function"&amp;&amp;t!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&amp;&amp;t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&amp;&amp;Jn(n,t)}function cn(n){return cn=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},cn(n)}function Jn(n,t){return Jn=Object.setPrototypeOf||function(s,a){return s.__proto__=a,s},Jn(n,t)}function ca(){if(typeof Reflect&gt;"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ua(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function la(n,t){if(t&amp;&amp;(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ua(n)}function ye(n){var t=ca();return function(){var s=cn(n),a;if(t){var u=cn(this).constructor;a=Reflect.construct(s,arguments,u)}else a=s.apply(this,arguments);return la(this,a)}}var nr=function(){function n(){re(this,n)}return ie(n,[{key:"listenForWhisper",value:function(i,s){return this.listen(".client-"+i,s)}},{key:"notification",value:function(i){return this.listen(".Illuminate\\Notifications\\Events\\BroadcastNotificationCreated",i)}},{key:"stopListeningForWhisper",value:function(i,s){return this.stopListening(".client-"+i,s)}}]),n}(),pi=function(){function n(t){re(this,n),this.namespace=t}return ie(n,[{key:"format",value:function(i){return[".","\\"].includes(i.charAt(0))?i.substring(1):(this.namespace&amp;&amp;(i=this.namespace+"."+i),i.replace(/\./g,"\\"))}},{key:"setNamespace",value:function(i){this.namespace=i}}]),n}(),mn=function(n){ge(i,n);var t=ye(i);function i(s,a,u){var l;return re(this,i),l=t.call(this),l.name=a,l.pusher=s,l.options=u,l.eventFormatter=new pi(l.options.namespace),l.subscribe(),l}return ie(i,[{key:"subscribe",value:function(){this.subscription=this.pusher.subscribe(this.name)}},{key:"unsubscribe",value:function(){this.pusher.unsubscribe(this.name)}},{key:"listen",value:function(a,u){return this.on(this.eventFormatter.format(a),u),this}},{key:"listenToAll",value:function(a){var u=this;return this.subscription.bind_global(function(l,m){if(!l.startsWith("pusher:")){var y=u.options.namespace.replace(/\./g,"\\"),b=l.startsWith(y)?l.substring(y.length+1):"."+l;a(b,m)}}),this}},{key:"stopListening",value:function(a,u){return u?this.subscription.unbind(this.eventFormatter.format(a),u):this.subscription.unbind(this.eventFormatter.format(a)),this}},{key:"stopListeningToAll",value:function(a){return a?this.subscription.unbind_global(a):this.subscription.unbind_global(),this}},{key:"subscribed",value:function(a){return this.on("pusher:subscription_succeeded",function(){a()}),this}},{key:"error",value:function(a){return this.on("pusher:subscription_error",function(u){a(u)}),this}},{key:"on",value:function(a,u){return this.subscription.bind(a,u),this}}]),i}(nr),ha=function(n){ge(i,n);var t=ye(i);function i(){return re(this,i),t.apply(this,arguments)}return ie(i,[{key:"whisper",value:function(a,u){return this.pusher.channels.channels[this.name].trigger("client-".concat(a),u),this}}]),i}(mn),fa=function(n){ge(i,n);var t=ye(i);function i(){return re(this,i),t.apply(this,arguments)}return ie(i,[{key:"whisper",value:function(a,u){return this.pusher.channels.channels[this.name].trigger("client-".concat(a),u),this}}]),i}(mn),da=function(n){ge(i,n);var t=ye(i);function i(){return re(this,i),t.apply(this,arguments)}return ie(i,[{key:"here",value:function(a){return this.on("pusher:subscription_succeeded",function(u){a(Object.keys(u.members).map(function(l){return u.members[l]}))}),this}},{key:"joining",value:function(a){return this.on("pusher:member_added",function(u){a(u.info)}),this}},{key:"whisper",value:function(a,u){return this.pusher.channels.channels[this.name].trigger("client-".concat(a),u),this}},{key:"leaving",value:function(a){return this.on("pusher:member_removed",function(u){a(u.info)}),this}}]),i}(mn),mi=function(n){ge(i,n);var t=ye(i);function i(s,a,u){var l;return re(this,i),l=t.call(this),l.events={},l.listeners={},l.name=a,l.socket=s,l.options=u,l.eventFormatter=new pi(l.options.namespace),l.subscribe(),l}return ie(i,[{key:"subscribe",value:function(){this.socket.emit("subscribe",{channel:this.name,auth:this.options.auth||{}})}},{key:"unsubscribe",value:function(){this.unbind(),this.socket.emit("unsubscribe",{channel:this.name,auth:this.options.auth||{}})}},{key:"listen",value:function(a,u){return this.on(this.eventFormatter.format(a),u),this}},{key:"stopListening",value:function(a,u){return this.unbindEvent(this.eventFormatter.format(a),u),this}},{key:"subscribed",value:function(a){return this.on("connect",function(u){a(u)}),this}},{key:"error",value:function(a){return this}},{key:"on",value:function(a,u){var l=this;return this.listeners[a]=this.listeners[a]||[],this.events[a]||(this.events[a]=function(m,y){l.name===m&amp;&amp;l.listeners[a]&amp;&amp;l.listeners[a].forEach(function(b){return b(y)})},this.socket.on(a,this.events[a])),this.listeners[a].push(u),this}},{key:"unbind",value:function(){var a=this;Object.keys(this.events).forEach(function(u){a.unbindEvent(u)})}},{key:"unbindEvent",value:function(a,u){this.listeners[a]=this.listeners[a]||[],u&amp;&amp;(this.listeners[a]=this.listeners[a].filter(function(l){return l!==u})),(!u||this.listeners[a].length===0)&amp;&amp;(this.events[a]&amp;&amp;(this.socket.removeListener(a,this.events[a]),delete this.events[a]),delete this.listeners[a])}}]),i}(nr),gi=function(n){ge(i,n);var t=ye(i);function i(){return re(this,i),t.apply(this,arguments)}return ie(i,[{key:"whisper",value:function(a,u){return this.socket.emit("client event",{channel:this.name,event:"client-".concat(a),data:u}),this}}]),i}(mi),pa=function(n){ge(i,n);var t=ye(i);function i(){return re(this,i),t.apply(this,arguments)}return ie(i,[{key:"here",value:function(a){return this.on("presence:subscribed",function(u){a(u.map(function(l){return l.user_info}))}),this}},{key:"joining",value:function(a){return this.on("presence:joining",function(u){return a(u.user_info)}),this}},{key:"whisper",value:function(a,u){return this.socket.emit("client event",{channel:this.name,event:"client-".concat(a),data:u}),this}},{key:"leaving",value:function(a){return this.on("presence:leaving",function(u){return a(u.user_info)}),this}}]),i}(gi),un=function(n){ge(i,n);var t=ye(i);function i(){return re(this,i),t.apply(this,arguments)}return ie(i,[{key:"subscribe",value:function(){}},{key:"unsubscribe",value:function(){}},{key:"listen",value:function(a,u){return this}},{key:"listenToAll",value:function(a){return this}},{key:"stopListening",value:function(a,u){return this}},{key:"subscribed",value:function(a){return this}},{key:"error",value:function(a){return this}},{key:"on",value:function(a,u){return this}}]),i}(nr),Ir=function(n){ge(i,n);var t=ye(i);function i(){return re(this,i),t.apply(this,arguments)}return ie(i,[{key:"whisper",value:function(a,u){return this}}]),i}(un),ma=function(n){ge(i,n);var t=ye(i);function i(){return re(this,i),t.apply(this,arguments)}return ie(i,[{key:"here",value:function(a){return this}},{key:"joining",value:function(a){return this}},{key:"whisper",value:function(a,u){return this}},{key:"leaving",value:function(a){return this}}]),i}(un),rr=function(){function n(t){re(this,n),this._defaultOptions={auth:{headers:{}},authEndpoint:"/broadcasting/auth",userAuthentication:{endpoint:"/broadcasting/user-auth",headers:{}},broadcaster:"pusher",csrfToken:null,bearerToken:null,host:null,key:null,namespace:"App.Events"},this.setOptions(t),this.connect()}return ie(n,[{key:"setOptions",value:function(i){this.options=kt(this._defaultOptions,i);var s=this.csrfToken();return s&amp;&amp;(this.options.auth.headers["X-CSRF-TOKEN"]=s,this.options.userAuthentication.headers["X-CSRF-TOKEN"]=s),s=this.options.bearerToken,s&amp;&amp;(this.options.auth.headers.Authorization="Bearer "+s,this.options.userAuthentication.headers.Authorization="Bearer "+s),i}},{key:"csrfToken",value:function(){var i;return typeof window&lt;"u"&amp;&amp;window.Laravel&amp;&amp;window.Laravel.csrfToken?window.Laravel.csrfToken:this.options.csrfToken?this.options.csrfToken:typeof document&lt;"u"&amp;&amp;typeof document.querySelector=="function"&amp;&amp;(i=document.querySelector('meta[name="csrf-token"]'))?i.getAttribute("content"):null}}]),n}(),Dr=function(n){ge(i,n);var t=ye(i);function i(){var s;return re(this,i),s=t.apply(this,arguments),s.channels={},s}return ie(i,[{key:"connect",value:function(){typeof this.options.client&lt;"u"?this.pusher=this.options.client:this.options.Pusher?this.pusher=new this.options.Pusher(this.options.key,this.options):this.pusher=new Pusher(this.options.key,this.options)}},{key:"signin",value:function(){this.pusher.signin()}},{key:"listen",value:function(a,u,l){return this.channel(a).listen(u,l)}},{key:"channel",value:function(a){return this.channels[a]||(this.channels[a]=new mn(this.pusher,a,this.options)),this.channels[a]}},{key:"privateChannel",value:function(a){return this.channels["private-"+a]||(this.channels["private-"+a]=new ha(this.pusher,"private-"+a,this.options)),this.channels["private-"+a]}},{key:"encryptedPrivateChannel",value:function(a){return this.channels["private-encrypted-"+a]||(this.channels["private-encrypted-"+a]=new fa(this.pusher,"private-encrypted-"+a,this.options)),this.channels["private-encrypted-"+a]}},{key:"presenceChannel",value:function(a){return this.channels["presence-"+a]||(this.channels["presence-"+a]=new da(this.pusher,"presence-"+a,this.options)),this.channels["presence-"+a]}},{key:"leave",value:function(a){var u=this,l=[a,"private-"+a,"private-encrypted-"+a,"presence-"+a];l.forEach(function(m,y){u.leaveChannel(m)})}},{key:"leaveChannel",value:function(a){this.channels[a]&amp;&amp;(this.channels[a].unsubscribe(),delete this.channels[a])}},{key:"socketId",value:function(){return this.pusher.connection.socket_id}},{key:"disconnect",value:function(){this.pusher.disconnect()}}]),i}(rr),ga=function(n){ge(i,n);var t=ye(i);function i(){var s;return re(this,i),s=t.apply(this,arguments),s.channels={},s}return ie(i,[{key:"connect",value:function(){var a=this,u=this.getSocketIO();return this.socket=u(this.options.host,this.options),this.socket.on("reconnect",function(){Object.values(a.channels).forEach(function(l){l.subscribe()})}),this.socket}},{key:"getSocketIO",value:function(){if(typeof this.options.client&lt;"u")return this.options.client;if(typeof io&lt;"u")return io;throw new Error("Socket.io client not found. Should be globally available or passed via options.client")}},{key:"listen",value:function(a,u,l){return this.channel(a).listen(u,l)}},{key:"channel",value:function(a){return this.channels[a]||(this.channels[a]=new mi(this.socket,a,this.options)),this.channels[a]}},{key:"privateChannel",value:function(a){return this.channels["private-"+a]||(this.channels["private-"+a]=new gi(this.socket,"private-"+a,this.options)),this.channels["private-"+a]}},{key:"presenceChannel",value:function(a){return this.channels["presence-"+a]||(this.channels["presence-"+a]=new pa(this.socket,"presence-"+a,this.options)),this.channels["presence-"+a]}},{key:"leave",value:function(a){var u=this,l=[a,"private-"+a,"presence-"+a];l.forEach(function(m){u.leaveChannel(m)})}},{key:"leaveChannel",value:function(a){this.channels[a]&amp;&amp;(this.channels[a].unsubscribe(),delete this.channels[a])}},{key:"socketId",value:function(){return this.socket.id}},{key:"disconnect",value:function(){this.socket.disconnect()}}]),i}(rr),ya=function(n){ge(i,n);var t=ye(i);function i(){var s;return re(this,i),s=t.apply(this,arguments),s.channels={},s}return ie(i,[{key:"connect",value:function(){}},{key:"listen",value:function(a,u,l){return new un}},{key:"channel",value:function(a){return new un}},{key:"privateChannel",value:function(a){return new Ir}},{key:"encryptedPrivateChannel",value:function(a){return new Ir}},{key:"presenceChannel",value:function(a){return new ma}},{key:"leave",value:function(a){}},{key:"leaveChannel",value:function(a){}},{key:"socketId",value:function(){return"fake-socket-id"}},{key:"disconnect",value:function(){}}]),i}(rr),va=function(){function n(t){re(this,n),this.options=t,this.connect(),this.options.withoutInterceptors||this.registerInterceptors()}return ie(n,[{key:"channel",value:function(i){return this.connector.channel(i)}},{key:"connect",value:function(){if(this.options.broadcaster=="reverb")this.connector=new Dr(kt(kt({},this.options),{cluster:""}));else if(this.options.broadcaster=="pusher")this.connector=new Dr(this.options);else if(this.options.broadcaster=="socket.io")this.connector=new ga(this.options);else if(this.options.broadcaster=="null")this.connector=new ya(this.options);else if(typeof this.options.broadcaster=="function")this.connector=new this.options.broadcaster(this.options);else throw new Error("Broadcaster ".concat(an(this.options.broadcaster)," ").concat(this.options.broadcaster," is not supported."))}},{key:"disconnect",value:function(){this.connector.disconnect()}},{key:"join",value:function(i){return this.connector.presenceChannel(i)}},{key:"leave",value:function(i){this.connector.leave(i)}},{key:"leaveChannel",value:function(i){this.connector.leaveChannel(i)}},{key:"leaveAllChannels",value:function(){for(var i in this.connector.channels)this.leaveChannel(i)}},{key:"listen",value:function(i,s,a){return this.connector.listen(i,s,a)}},{key:"private",value:function(i){return this.connector.privateChannel(i)}},{key:"encryptedPrivate",value:function(i){return this.connector.encryptedPrivateChannel(i)}},{key:"socketId",value:function(){return this.connector.socketId()}},{key:"registerInterceptors",value:function(){typeof Vue=="function"&amp;&amp;Vue.http&amp;&amp;this.registerVueRequestInterceptor(),typeof axios=="function"&amp;&amp;this.registerAxiosRequestInterceptor(),typeof jQuery=="function"&amp;&amp;this.registerjQueryAjaxSetup(),(typeof Turbo&gt;"u"?"undefined":an(Turbo))==="object"&amp;&amp;this.registerTurboRequestInterceptor()}},{key:"registerVueRequestInterceptor",value:function(){var i=this;Vue.http.interceptors.push(function(s,a){i.socketId()&amp;&amp;s.headers.set("X-Socket-ID",i.socketId()),a()})}},{key:"registerAxiosRequestInterceptor",value:function(){var i=this;axios.interceptors.request.use(function(s){return i.socketId()&amp;&amp;(s.headers["X-Socket-Id"]=i.socketId()),s})}},{key:"registerjQueryAjaxSetup",value:function(){var i=this;typeof jQuery.ajax&lt;"u"&amp;&amp;jQuery.ajaxPrefilter(function(s,a,u){i.socketId()&amp;&amp;u.setRequestHeader("X-Socket-Id",i.socketId())})}},{key:"registerTurboRequestInterceptor",value:function(){var i=this;document.addEventListener("turbo:before-fetch-request",function(s){s.detail.fetchOptions.headers["X-Socket-Id"]=i.socketId()})}}]),n}();function ba(n){return n&amp;&amp;n.__esModule&amp;&amp;Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var yi={exports:{}};/*!
 * Pusher JavaScript Library v8.4.0-rc2
 * https://pusher.com/
 *
 * Copyright 2020, Pusher
 * Released under the MIT licence.
 */(function(n,t){(function(s,a){n.exports=a()})(window,function(){return function(i){var s={};function a(u){if(s[u])return s[u].exports;var l=s[u]={i:u,l:!1,exports:{}};return i[u].call(l.exports,l,l.exports,a),l.l=!0,l.exports}return a.m=i,a.c=s,a.d=function(u,l,m){a.o(u,l)||Object.defineProperty(u,l,{enumerable:!0,get:m})},a.r=function(u){typeof Symbol&lt;"u"&amp;&amp;Symbol.toStringTag&amp;&amp;Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})},a.t=function(u,l){if(l&amp;1&amp;&amp;(u=a(u)),l&amp;8||l&amp;4&amp;&amp;typeof u=="object"&amp;&amp;u&amp;&amp;u.__esModule)return u;var m=Object.create(null);if(a.r(m),Object.defineProperty(m,"default",{enumerable:!0,value:u}),l&amp;2&amp;&amp;typeof u!="string")for(var y in u)a.d(m,y,(function(b){return u[b]}).bind(null,y));return m},a.n=function(u){var l=u&amp;&amp;u.__esModule?function(){return u.default}:function(){return u};return a.d(l,"a",l),l},a.o=function(u,l){return Object.prototype.hasOwnProperty.call(u,l)},a.p="",a(a.s=2)}([function(i,s,a){var u=this&amp;&amp;this.__extends||function(){var T=function(d,C){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(P,k){P.__proto__=k}||function(P,k){for(var N in k)k.hasOwnProperty(N)&amp;&amp;(P[N]=k[N])},T(d,C)};return function(d,C){T(d,C);function P(){this.constructor=d}d.prototype=C===null?Object.create(C):(P.prototype=C.prototype,new P)}}();Object.defineProperty(s,"__esModule",{value:!0});var l=256,m=function(){function T(d){d===void 0&amp;&amp;(d="="),this._paddingCharacter=d}return T.prototype.encodedLength=function(d){return this._paddingCharacter?(d+2)/3*4|0:(d*8+5)/6|0},T.prototype.encode=function(d){for(var C="",P=0;P&lt;d.length-2;P+=3){var k=d[P]&lt;&lt;16|d[P+1]&lt;&lt;8|d[P+2];C+=this._encodeByte(k&gt;&gt;&gt;3*6&amp;63),C+=this._encodeByte(k&gt;&gt;&gt;2*6&amp;63),C+=this._encodeByte(k&gt;&gt;&gt;1*6&amp;63),C+=this._encodeByte(k&gt;&gt;&gt;0*6&amp;63)}var N=d.length-P;if(N&gt;0){var k=d[P]&lt;&lt;16|(N===2?d[P+1]&lt;&lt;8:0);C+=this._encodeByte(k&gt;&gt;&gt;3*6&amp;63),C+=this._encodeByte(k&gt;&gt;&gt;2*6&amp;63),N===2?C+=this._encodeByte(k&gt;&gt;&gt;1*6&amp;63):C+=this._paddingCharacter||"",C+=this._paddingCharacter||""}return C},T.prototype.maxDecodedLength=function(d){return this._paddingCharacter?d/4*3|0:(d*6+7)/8|0},T.prototype.decodedLength=function(d){return this.maxDecodedLength(d.length-this._getPaddingLength(d))},T.prototype.decode=function(d){if(d.length===0)return new Uint8Array(0);for(var C=this._getPaddingLength(d),P=d.length-C,k=new Uint8Array(this.maxDecodedLength(P)),N=0,H=0,W=0,X=0,Z=0,se=0,le=0;H&lt;P-4;H+=4)X=this._decodeChar(d.charCodeAt(H+0)),Z=this._decodeChar(d.charCodeAt(H+1)),se=this._decodeChar(d.charCodeAt(H+2)),le=this._decodeChar(d.charCodeAt(H+3)),k[N++]=X&lt;&lt;2|Z&gt;&gt;&gt;4,k[N++]=Z&lt;&lt;4|se&gt;&gt;&gt;2,k[N++]=se&lt;&lt;6|le,W|=X&amp;l,W|=Z&amp;l,W|=se&amp;l,W|=le&amp;l;if(H&lt;P-1&amp;&amp;(X=this._decodeChar(d.charCodeAt(H)),Z=this._decodeChar(d.charCodeAt(H+1)),k[N++]=X&lt;&lt;2|Z&gt;&gt;&gt;4,W|=X&amp;l,W|=Z&amp;l),H&lt;P-2&amp;&amp;(se=this._decodeChar(d.charCodeAt(H+2)),k[N++]=Z&lt;&lt;4|se&gt;&gt;&gt;2,W|=se&amp;l),H&lt;P-3&amp;&amp;(le=this._decodeChar(d.charCodeAt(H+3)),k[N++]=se&lt;&lt;6|le,W|=le&amp;l),W!==0)throw new Error("Base64Coder: incorrect characters for decoding");return k},T.prototype._encodeByte=function(d){var C=d;return C+=65,C+=25-d&gt;&gt;&gt;8&amp;6,C+=51-d&gt;&gt;&gt;8&amp;-75,C+=61-d&gt;&gt;&gt;8&amp;-15,C+=62-d&gt;&gt;&gt;8&amp;3,String.fromCharCode(C)},T.prototype._decodeChar=function(d){var C=l;return C+=(42-d&amp;d-44)&gt;&gt;&gt;8&amp;-l+d-43+62,C+=(46-d&amp;d-48)&gt;&gt;&gt;8&amp;-l+d-47+63,C+=(47-d&amp;d-58)&gt;&gt;&gt;8&amp;-l+d-48+52,C+=(64-d&amp;d-91)&gt;&gt;&gt;8&amp;-l+d-65+0,C+=(96-d&amp;d-123)&gt;&gt;&gt;8&amp;-l+d-97+26,C},T.prototype._getPaddingLength=function(d){var C=0;if(this._paddingCharacter){for(var P=d.length-1;P&gt;=0&amp;&amp;d[P]===this._paddingCharacter;P--)C++;if(d.length&lt;4||C&gt;2)throw new Error("Base64Coder: incorrect padding")}return C},T}();s.Coder=m;var y=new m;function b(T){return y.encode(T)}s.encode=b;function v(T){return y.decode(T)}s.decode=v;var S=function(T){u(d,T);function d(){return T!==null&amp;&amp;T.apply(this,arguments)||this}return d.prototype._encodeByte=function(C){var P=C;return P+=65,P+=25-C&gt;&gt;&gt;8&amp;6,P+=51-C&gt;&gt;&gt;8&amp;-75,P+=61-C&gt;&gt;&gt;8&amp;-13,P+=62-C&gt;&gt;&gt;8&amp;49,String.fromCharCode(P)},d.prototype._decodeChar=function(C){var P=l;return P+=(44-C&amp;C-46)&gt;&gt;&gt;8&amp;-l+C-45+62,P+=(94-C&amp;C-96)&gt;&gt;&gt;8&amp;-l+C-95+63,P+=(47-C&amp;C-58)&gt;&gt;&gt;8&amp;-l+C-48+52,P+=(64-C&amp;C-91)&gt;&gt;&gt;8&amp;-l+C-65+0,P+=(96-C&amp;C-123)&gt;&gt;&gt;8&amp;-l+C-97+26,P},d}(m);s.URLSafeCoder=S;var L=new S;function R(T){return L.encode(T)}s.encodeURLSafe=R;function w(T){return L.decode(T)}s.decodeURLSafe=w,s.encodedLength=function(T){return y.encodedLength(T)},s.maxDecodedLength=function(T){return y.maxDecodedLength(T)},s.decodedLength=function(T){return y.decodedLength(T)}},function(i,s,a){Object.defineProperty(s,"__esModule",{value:!0});var u="utf8: invalid string",l="utf8: invalid source encoding";function m(v){for(var S=new Uint8Array(y(v)),L=0,R=0;R&lt;v.length;R++){var w=v.charCodeAt(R);w&lt;128?S[L++]=w:w&lt;2048?(S[L++]=192|w&gt;&gt;6,S[L++]=128|w&amp;63):w&lt;55296?(S[L++]=224|w&gt;&gt;12,S[L++]=128|w&gt;&gt;6&amp;63,S[L++]=128|w&amp;63):(R++,w=(w&amp;1023)&lt;&lt;10,w|=v.charCodeAt(R)&amp;1023,w+=65536,S[L++]=240|w&gt;&gt;18,S[L++]=128|w&gt;&gt;12&amp;63,S[L++]=128|w&gt;&gt;6&amp;63,S[L++]=128|w&amp;63)}return S}s.encode=m;function y(v){for(var S=0,L=0;L&lt;v.length;L++){var R=v.charCodeAt(L);if(R&lt;128)S+=1;else if(R&lt;2048)S+=2;else if(R&lt;55296)S+=3;else if(R&lt;=57343){if(L&gt;=v.length-1)throw new Error(u);L++,S+=4}else throw new Error(u)}return S}s.encodedLength=y;function b(v){for(var S=[],L=0;L&lt;v.length;L++){var R=v[L];if(R&amp;128){var w=void 0;if(R&lt;224){if(L&gt;=v.length)throw new Error(l);var T=v[++L];if((T&amp;192)!==128)throw new Error(l);R=(R&amp;31)&lt;&lt;6|T&amp;63,w=128}else if(R&lt;240){if(L&gt;=v.length-1)throw new Error(l);var T=v[++L],d=v[++L];if((T&amp;192)!==128||(d&amp;192)!==128)throw new Error(l);R=(R&amp;15)&lt;&lt;12|(T&amp;63)&lt;&lt;6|d&amp;63,w=2048}else if(R&lt;248){if(L&gt;=v.length-2)throw new Error(l);var T=v[++L],d=v[++L],C=v[++L];if((T&amp;192)!==128||(d&amp;192)!==128||(C&amp;192)!==128)throw new Error(l);R=(R&amp;15)&lt;&lt;18|(T&amp;63)&lt;&lt;12|(d&amp;63)&lt;&lt;6|C&amp;63,w=65536}else throw new Error(l);if(R&lt;w||R&gt;=55296&amp;&amp;R&lt;=57343)throw new Error(l);if(R&gt;=65536){if(R&gt;1114111)throw new Error(l);R-=65536,S.push(String.fromCharCode(55296|R&gt;&gt;10)),R=56320|R&amp;1023}}S.push(String.fromCharCode(R))}return S.join("")}s.decode=b},function(i,s,a){i.exports=a(3).default},function(i,s,a){a.r(s);class u{constructor(e,r){this.lastId=0,this.prefix=e,this.name=r}create(e){this.lastId++;var r=this.lastId,c=this.prefix+r,h=this.name+"["+r+"]",g=!1,E=function(){g||(e.apply(null,arguments),g=!0)};return this[r]=E,{number:r,id:c,name:h,callback:E}}remove(e){delete this[e.number]}}var l=new u("_pusher_script_","Pusher.ScriptReceivers"),m={VERSION:"8.4.0-rc2",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,userAuthentication:{endpoint:"/pusher/user-auth",transport:"ajax"},channelAuthorization:{endpoint:"/pusher/auth",transport:"ajax"},cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""},y=m;class b{constructor(e){this.options=e,this.receivers=e.receivers||l,this.loading={}}load(e,r,c){var h=this;if(h.loading[e]&amp;&amp;h.loading[e].length&gt;0)h.loading[e].push(c);else{h.loading[e]=[c];var g=D.createScriptRequest(h.getPath(e,r)),E=h.receivers.create(function(x){if(h.receivers.remove(E),h.loading[e]){var I=h.loading[e];delete h.loading[e];for(var j=function(K){K||g.cleanup()},q=0;q&lt;I.length;q++)I[q](x,j)}});g.send(E)}}getRoot(e){var r,c=D.getDocument().location.protocol;return e&amp;&amp;e.useTLS||c==="https:"?r=this.options.cdn_https:r=this.options.cdn_http,r.replace(/\/*$/,"")+"/"+this.options.version}getPath(e,r){return this.getRoot(r)+"/"+e+this.options.suffix+".js"}}var v=new u("_pusher_dependencies","Pusher.DependenciesReceivers"),S=new b({cdn_http:y.cdn_http,cdn_https:y.cdn_https,version:y.VERSION,suffix:y.dependency_suffix,receivers:v});const L={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/channels/server_api/authenticating_users"},authorizationEndpoint:{path:"/docs/channels/server_api/authorizing-users/"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"},encryptedChannelSupport:{fullUrl:"https://github.com/pusher/pusher-js/tree/cc491015371a4bde5743d1c87a0fbac0feb53195#encrypted-channel-support"}}};var w={buildLogSuffix:function(o){const e="See:",r=L.urls[o];if(!r)return"";let c;return r.fullUrl?c=r.fullUrl:r.path&amp;&amp;(c=L.baseUrl+r.path),c?`${e} ${c}`:""}},T;(function(o){o.UserAuthentication="user-authentication",o.ChannelAuthorization="channel-authorization"})(T||(T={}));class d extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class C extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class P extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class k extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class N extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class H extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class W extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class X extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class Z extends Error{constructor(e,r){super(r),this.status=e,Object.setPrototypeOf(this,new.target.prototype)}}var le=function(o,e,r,c,h){const g=D.createXHR();g.open("POST",r.endpoint,!0),g.setRequestHeader("Content-Type","application/x-www-form-urlencoded");for(var E in r.headers)g.setRequestHeader(E,r.headers[E]);if(r.headersProvider!=null){let x=r.headersProvider();for(var E in x)g.setRequestHeader(E,x[E])}return g.onreadystatechange=function(){if(g.readyState===4)if(g.status===200){let x,I=!1;try{x=JSON.parse(g.responseText),I=!0}catch{h(new Z(200,`JSON returned from ${c.toString()} endpoint was invalid, yet status code was 200. Data was: ${g.responseText}`),null)}I&amp;&amp;h(null,x)}else{let x="";switch(c){case T.UserAuthentication:x=w.buildLogSuffix("authenticationEndpoint");break;case T.ChannelAuthorization:x=`Clients must be authorized to join private or presence channels. ${w.buildLogSuffix("authorizationEndpoint")}`;break}h(new Z(g.status,`Unable to retrieve auth string from ${c.toString()} endpoint - received status: ${g.status} from ${r.endpoint}. ${x}`),null)}},g.send(e),g};function ve(o){return vn(gn(o))}var xe=String.fromCharCode,Ne="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",at=function(o){var e=o.charCodeAt(0);return e&lt;128?o:e&lt;2048?xe(192|e&gt;&gt;&gt;6)+xe(128|e&amp;63):xe(224|e&gt;&gt;&gt;12&amp;15)+xe(128|e&gt;&gt;&gt;6&amp;63)+xe(128|e&amp;63)},gn=function(o){return o.replace(/[^\x00-\x7F]/g,at)},yn=function(o){var e=[0,2,1][o.length%3],r=o.charCodeAt(0)&lt;&lt;16|(o.length&gt;1?o.charCodeAt(1):0)&lt;&lt;8|(o.length&gt;2?o.charCodeAt(2):0),c=[Ne.charAt(r&gt;&gt;&gt;18),Ne.charAt(r&gt;&gt;&gt;12&amp;63),e&gt;=2?"=":Ne.charAt(r&gt;&gt;&gt;6&amp;63),e&gt;=1?"=":Ne.charAt(r&amp;63)];return c.join("")},vn=window.btoa||function(o){return o.replace(/[\s\S]{1,3}/g,yn)};class Ot{constructor(e,r,c,h){this.clear=r,this.timer=e(()=&gt;{this.timer&amp;&amp;(this.timer=h(this.timer))},c)}isRunning(){return this.timer!==null}ensureAborted(){this.timer&amp;&amp;(this.clear(this.timer),this.timer=null)}}var xt=Ot;function Lt(o){window.clearTimeout(o)}function J(o){window.clearInterval(o)}class Re extends xt{constructor(e,r){super(setTimeout,Lt,e,function(c){return r(),null})}}class V extends xt{constructor(e,r){super(setInterval,J,e,function(c){return r(),c})}}var Pt={now(){return Date.now?Date.now():new Date().valueOf()},defer(o){return new Re(0,o)},method(o,...e){var r=Array.prototype.slice.call(arguments,1);return function(c){return c[o].apply(c,r.concat(arguments))}}},U=Pt;function Y(o,...e){for(var r=0;r&lt;e.length;r++){var c=e[r];for(var h in c)c[h]&amp;&amp;c[h].constructor&amp;&amp;c[h].constructor===Object?o[h]=Y(o[h]||{},c[h]):o[h]=c[h]}return o}function ct(){for(var o=["Pusher"],e=0;e&lt;arguments.length;e++)typeof arguments[e]=="string"?o.push(arguments[e]):o.push(De(arguments[e]));return o.join(" : ")}function ut(o,e){var r=Array.prototype.indexOf;if(o===null)return-1;if(r&amp;&amp;o.indexOf===r)return o.indexOf(e);for(var c=0,h=o.length;c&lt;h;c++)if(o[c]===e)return c;return-1}function he(o,e){for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&amp;&amp;e(o[r],r,o)}function lt(o){var e=[];return he(o,function(r,c){e.push(c)}),e}function Nt(o){var e=[];return he(o,function(r){e.push(r)}),e}function be(o,e,r){for(var c=0;c&lt;o.length;c++)e.call(r||window,o[c],c,o)}function Ke(o,e){for(var r=[],c=0;c&lt;o.length;c++)r.push(e(o[c],c,o,r));return r}function Le(o,e){var r={};return he(o,function(c,h){r[h]=e(c)}),r}function Qe(o,e){e=e||function(h){return!!h};for(var r=[],c=0;c&lt;o.length;c++)e(o[c],c,o,r)&amp;&amp;r.push(o[c]);return r}function Ze(o,e){var r={};return he(o,function(c,h){(e&amp;&amp;e(c,h,o,r)||c)&amp;&amp;(r[h]=c)}),r}function Ie(o){var e=[];return he(o,function(r,c){e.push([c,r])}),e}function Be(o,e){for(var r=0;r&lt;o.length;r++)if(e(o[r],r,o))return!0;return!1}function et(o,e){for(var r=0;r&lt;o.length;r++)if(!e(o[r],r,o))return!1;return!0}function It(o){return Le(o,function(e){return typeof e=="object"&amp;&amp;(e=De(e)),encodeURIComponent(ve(e.toString()))})}function Dt(o){var e=Ze(o,function(c){return c!==void 0}),r=Ke(Ie(It(e)),U.method("join","=")).join("&amp;");return r}function bn(o){var e=[],r=[];return function c(h,g){var E,x,I;switch(typeof h){case"object":if(!h)return null;for(E=0;E&lt;e.length;E+=1)if(e[E]===h)return{$ref:r[E]};if(e.push(h),r.push(g),Object.prototype.toString.apply(h)==="[object Array]")for(I=[],E=0;E&lt;h.length;E+=1)I[E]=c(h[E],g+"["+E+"]");else{I={};for(x in h)Object.prototype.hasOwnProperty.call(h,x)&amp;&amp;(I[x]=c(h[x],g+"["+JSON.stringify(x)+"]"))}return I;case"number":case"string":case"boolean":return h}}(o,"$")}function De(o){try{return JSON.stringify(o)}catch{return JSON.stringify(bn(o))}}class qe{constructor(){this.globalLog=e=&gt;{window.console&amp;&amp;window.console.log&amp;&amp;window.console.log(e)}}debug(...e){this.log(this.globalLog,e)}warn(...e){this.log(this.globalLogWarn,e)}error(...e){this.log(this.globalLogError,e)}globalLogWarn(e){window.console&amp;&amp;window.console.warn?window.console.warn(e):this.globalLog(e)}globalLogError(e){window.console&amp;&amp;window.console.error?window.console.error(e):this.globalLogWarn(e)}log(e,...r){var c=ct.apply(this,arguments);On.log?On.log(c):On.logToConsole&amp;&amp;e.bind(this)(c)}}var B=new qe,Me=function(o,e,r,c,h){(r.headers!==void 0||r.headersProvider!=null)&amp;&amp;B.warn(`To send headers with the ${c.toString()} request, you must use AJAX, rather than JSONP.`);var g=o.nextAuthCallbackID.toString();o.nextAuthCallbackID++;var E=o.getDocument(),x=E.createElement("script");o.auth_callbacks[g]=function(q){h(null,q)};var I="Pusher.auth_callbacks['"+g+"']";x.src=r.endpoint+"?callback="+encodeURIComponent(I)+"&amp;"+e;var j=E.getElementsByTagName("head")[0]||E.documentElement;j.insertBefore(x,j.firstChild)},Mt=Me;class Ut{constructor(e){this.src=e}send(e){var r=this,c="Error loading "+r.src;r.script=document.createElement("script"),r.script.id=e.id,r.script.src=r.src,r.script.type="text/javascript",r.script.charset="UTF-8",r.script.addEventListener?(r.script.onerror=function(){e.callback(c)},r.script.onload=function(){e.callback(null)}):r.script.onreadystatechange=function(){(r.script.readyState==="loaded"||r.script.readyState==="complete")&amp;&amp;e.callback(null)},r.script.async===void 0&amp;&amp;document.attachEvent&amp;&amp;/opera/i.test(navigator.userAgent)?(r.errorScript=document.createElement("script"),r.errorScript.id=e.id+"_error",r.errorScript.text=e.name+"('"+c+"');",r.script.async=r.errorScript.async=!1):r.script.async=!0;var h=document.getElementsByTagName("head")[0];h.insertBefore(r.script,h.firstChild),r.errorScript&amp;&amp;h.insertBefore(r.errorScript,r.script.nextSibling)}cleanup(){this.script&amp;&amp;(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&amp;&amp;this.script.parentNode&amp;&amp;this.script.parentNode.removeChild(this.script),this.errorScript&amp;&amp;this.errorScript.parentNode&amp;&amp;this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null}}class Ft{constructor(e,r){this.url=e,this.data=r}send(e){if(!this.request){var r=Dt(this.data),c=this.url+"/"+e.number+"?"+r;this.request=D.createScriptRequest(c),this.request.send(e)}}cleanup(){this.request&amp;&amp;this.request.cleanup()}}var ht=function(o,e){return function(r,c){var h="http"+(e?"s":"")+"://",g=h+(o.host||o.options.host)+o.options.path,E=D.createJSONPRequest(g,r),x=D.ScriptReceivers.create(function(I,j){l.remove(x),E.cleanup(),j&amp;&amp;j.host&amp;&amp;(o.host=j.host),c&amp;&amp;c(I,j)});E.send(x)}},jt={name:"jsonp",getAgent:ht},tt=jt;function Ue(o,e,r){var c=o+(e.useTLS?"s":""),h=e.useTLS?e.hostTLS:e.hostNonTLS;return c+"://"+h+r}function fe(o,e){var r="/app/"+o,c="?protocol="+y.PROTOCOL+"&amp;client=js&amp;version="+y.VERSION+(e?"&amp;"+e:"");return r+c}var Fe={getInitial:function(o,e){var r=(e.httpPath||"")+fe(o,"flash=false");return Ue("ws",e,r)}},ft={getInitial:function(o,e){var r=(e.httpPath||"/pusher")+fe(o);return Ue("http",e,r)}},dt={getInitial:function(o,e){return Ue("http",e,e.httpPath||"/pusher")},getPath:function(o,e){return fe(o)}};class _n{constructor(){this._callbacks={}}get(e){return this._callbacks[Pe(e)]}add(e,r,c){var h=Pe(e);this._callbacks[h]=this._callbacks[h]||[],this._callbacks[h].push({fn:r,context:c})}remove(e,r,c){if(!e&amp;&amp;!r&amp;&amp;!c){this._callbacks={};return}var h=e?[Pe(e)]:lt(this._callbacks);r||c?this.removeCallback(h,r,c):this.removeAllCallbacks(h)}removeCallback(e,r,c){be(e,function(h){this._callbacks[h]=Qe(this._callbacks[h]||[],function(g){return r&amp;&amp;r!==g.fn||c&amp;&amp;c!==g.context}),this._callbacks[h].length===0&amp;&amp;delete this._callbacks[h]},this)}removeAllCallbacks(e){be(e,function(r){delete this._callbacks[r]},this)}}function Pe(o){return"_"+o}class Te{constructor(e){this.callbacks=new _n,this.global_callbacks=[],this.failThrough=e}bind(e,r,c){return this.callbacks.add(e,r,c),this}bind_global(e){return this.global_callbacks.push(e),this}unbind(e,r,c){return this.callbacks.remove(e,r,c),this}unbind_global(e){return e?(this.global_callbacks=Qe(this.global_callbacks||[],r=&gt;r!==e),this):(this.global_callbacks=[],this)}unbind_all(){return this.unbind(),this.unbind_global(),this}emit(e,r,c){for(var h=0;h&lt;this.global_callbacks.length;h++)this.global_callbacks[h](e,r);var g=this.callbacks.get(e),E=[];if(c?E.push(r,c):r&amp;&amp;E.push(r),g&amp;&amp;g.length&gt;0)for(var h=0;h&lt;g.length;h++)g[h].fn.apply(g[h].context||window,E);else this.failThrough&amp;&amp;this.failThrough(e,r);return this}}class wn extends Te{constructor(e,r,c,h,g){super(),this.initialize=D.transportConnectionInitializer,this.hooks=e,this.name=r,this.priority=c,this.key=h,this.options=g,this.state="new",this.timeline=g.timeline,this.activityTimeout=g.activityTimeout,this.id=this.timeline.generateUniqueID()}handlesActivityChecks(){return!!this.hooks.handlesActivityChecks}supportsPing(){return!!this.hooks.supportsPing}connect(){if(this.socket||this.state!=="initialized")return!1;var e=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(e,this.options)}catch(r){return U.defer(()=&gt;{this.onError(r),this.changeState("closed")}),!1}return this.bindListeners(),B.debug("Connecting",{transport:this.name,url:e}),this.changeState("connecting"),!0}close(){return this.socket?(this.socket.close(),!0):!1}send(e){return this.state==="open"?(U.defer(()=&gt;{this.socket&amp;&amp;this.socket.send(e)}),!0):!1}ping(){this.state==="open"&amp;&amp;this.supportsPing()&amp;&amp;this.socket.ping()}onOpen(){this.hooks.beforeOpen&amp;&amp;this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0}onError(e){this.emit("error",{type:"WebSocketError",error:e}),this.timeline.error(this.buildTimelineMessage({error:e.toString()}))}onClose(e){e?this.changeState("closed",{code:e.code,reason:e.reason,wasClean:e.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0}onMessage(e){this.emit("message",e)}onActivity(){this.emit("activity")}bindListeners(){this.socket.onopen=()=&gt;{this.onOpen()},this.socket.onerror=e=&gt;{this.onError(e)},this.socket.onclose=e=&gt;{this.onClose(e)},this.socket.onmessage=e=&gt;{this.onMessage(e)},this.supportsPing()&amp;&amp;(this.socket.onactivity=()=&gt;{this.onActivity()})}unbindListeners(){this.socket&amp;&amp;(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&amp;&amp;(this.socket.onactivity=void 0))}changeState(e,r){this.state=e,this.timeline.info(this.buildTimelineMessage({state:e,params:r})),this.emit(e,r)}buildTimelineMessage(e){return Y({cid:this.id},e)}}class ${constructor(e){this.hooks=e}isSupported(e){return this.hooks.isSupported(e)}createConnection(e,r,c,h){return new wn(this.hooks,e,r,c,h)}}var je=new $({urls:Fe,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return!!D.getWebSocketAPI()},isSupported:function(){return!!D.getWebSocketAPI()},getSocket:function(o){return D.createWebSocket(o)}}),Ht={urls:ft,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},pt=Y({getSocket:function(o){return D.HTTPFactory.createStreamingSocket(o)}},Ht),nt=Y({getSocket:function(o){return D.HTTPFactory.createPollingSocket(o)}},Ht),mt={isSupported:function(){return D.isXHRSupported()}},Bt=new $(Y({},pt,mt)),Sn=new $(Y({},nt,mt)),qt={ws:je,xhr_streaming:Bt,xhr_polling:Sn},ze=qt,Tn=new $({file:"sockjs",urls:dt,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return window.SockJS!==void 0},getSocket:function(o,e){return new window.SockJS(o,null,{js_path:S.getPath("sockjs",{useTLS:e.useTLS}),ignore_null_origin:e.ignoreNullOrigin})},beforeOpen:function(o,e){o.send(JSON.stringify({path:e}))}}),de={isSupported:function(o){var e=D.isXDRSupported(o.useTLS);return e}},rt=new $(Y({},pt,de)),zt=new $(Y({},nt,de));ze.xdr_streaming=rt,ze.xdr_polling=zt,ze.sockjs=Tn;var Wt=ze;class $t extends Te{constructor(){super();var e=this;window.addEventListener!==void 0&amp;&amp;(window.addEventListener("online",function(){e.emit("online")},!1),window.addEventListener("offline",function(){e.emit("offline")},!1))}isOnline(){return window.navigator.onLine===void 0?!0:window.navigator.onLine}}var Xt=new $t;class Ee{constructor(e,r,c){this.manager=e,this.transport=r,this.minPingDelay=c.minPingDelay,this.maxPingDelay=c.maxPingDelay,this.pingDelay=void 0}createConnection(e,r,c,h){h=Y({},h,{activityTimeout:this.pingDelay});var g=this.transport.createConnection(e,r,c,h),E=null,x=function(){g.unbind("open",x),g.bind("closed",I),E=U.now()},I=j=&gt;{if(g.unbind("closed",I),j.code===1002||j.code===1003)this.manager.reportDeath();else if(!j.wasClean&amp;&amp;E){var q=U.now()-E;q&lt;2*this.maxPingDelay&amp;&amp;(this.manager.reportDeath(),this.pingDelay=Math.max(q/2,this.minPingDelay))}};return g.bind("open",x),g}isSupported(e){return this.manager.isAlive()&amp;&amp;this.transport.isSupported(e)}}const gt={decodeMessage:function(o){try{var e=JSON.parse(o.data),r=e.data;if(typeof r=="string")try{r=JSON.parse(e.data)}catch{}var c={event:e.event,channel:e.channel,data:r};return e.user_id&amp;&amp;(c.user_id=e.user_id),c}catch(h){throw{type:"MessageParseError",error:h,data:o.data}}},encodeMessage:function(o){return JSON.stringify(o)},processHandshake:function(o){var e=gt.decodeMessage(o);if(e.event==="pusher:connection_established"){if(!e.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:e.data.socket_id,activityTimeout:e.data.activity_timeout*1e3}}else{if(e.event==="pusher:error")return{action:this.getCloseAction(e.data),error:this.getCloseError(e.data)};throw"Invalid handshake"}},getCloseAction:function(o){return o.code&lt;4e3?o.code&gt;=1002&amp;&amp;o.code&lt;=1004?"backoff":null:o.code===4e3?"tls_only":o.code&lt;4100?"refused":o.code&lt;4200?"backoff":o.code&lt;4300?"retry":"refused"},getCloseError:function(o){return o.code!==1e3&amp;&amp;o.code!==1001?{type:"PusherError",data:{code:o.code,message:o.reason||o.message}}:null}};var Oe=gt;class Gt extends Te{constructor(e,r){super(),this.id=e,this.transport=r,this.activityTimeout=r.activityTimeout,this.bindListeners()}handlesActivityChecks(){return this.transport.handlesActivityChecks()}send(e){return this.transport.send(e)}send_event(e,r,c){var h={event:e,data:r};return c&amp;&amp;(h.channel=c),B.debug("Event sent",h),this.send(Oe.encodeMessage(h))}ping(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}close(){this.transport.close()}bindListeners(){var e={message:c=&gt;{var h;try{h=Oe.decodeMessage(c)}catch(g){this.emit("error",{type:"MessageParseError",error:g,data:c.data})}if(h!==void 0){switch(B.debug("Event recd",h),h.event){case"pusher:error":this.emit("error",{type:"PusherError",data:h.data});break;case"pusher:ping":this.emit("ping");break;case"pusher:pong":this.emit("pong");break}this.emit("message",h)}},activity:()=&gt;{this.emit("activity")},error:c=&gt;{this.emit("error",c)},closed:c=&gt;{r(),c&amp;&amp;c.code&amp;&amp;this.handleCloseEvent(c),this.transport=null,this.emit("closed")}},r=()=&gt;{he(e,(c,h)=&gt;{this.transport.unbind(h,c)})};he(e,(c,h)=&gt;{this.transport.bind(h,c)})}handleCloseEvent(e){var r=Oe.getCloseAction(e),c=Oe.getCloseError(e);c&amp;&amp;this.emit("error",c),r&amp;&amp;this.emit(r,{action:r,error:c})}}class Jt{constructor(e,r){this.transport=e,this.callback=r,this.bindListeners()}close(){this.unbindListeners(),this.transport.close()}bindListeners(){this.onMessage=e=&gt;{this.unbindListeners();var r;try{r=Oe.processHandshake(e)}catch(c){this.finish("error",{error:c}),this.transport.close();return}r.action==="connected"?this.finish("connected",{connection:new Gt(r.id,this.transport),activityTimeout:r.activityTimeout}):(this.finish(r.action,{error:r.error}),this.transport.close())},this.onClosed=e=&gt;{this.unbindListeners();var r=Oe.getCloseAction(e)||"backoff",c=Oe.getCloseError(e);this.finish(r,{error:c})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)}unbindListeners(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)}finish(e,r){this.callback(Y({transport:this.transport,action:e},r))}}class En{constructor(e,r){this.timeline=e,this.options=r||{}}send(e,r){this.timeline.isEmpty()||this.timeline.send(D.TimelineTransport.getAgent(this,e),r)}}class O extends Te{constructor(e,r){super(function(c,h){B.debug("No callbacks on "+e+" for "+c)}),this.name=e,this.pusher=r,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}authorize(e,r){return r(null,{auth:""})}trigger(e,r){if(e.indexOf("client-")!==0)throw new d("Event '"+e+"' does not start with 'client-'");if(!this.subscribed){var c=w.buildLogSuffix("triggeringClientEvents");B.warn(`Client event triggered before channel 'subscription_succeeded' event . ${c}`)}return this.pusher.send_event(e,r,this.name)}disconnect(){this.subscribed=!1,this.subscriptionPending=!1}handleEvent(e){var r=e.event,c=e.data;if(r==="pusher_internal:subscription_succeeded")this.handleSubscriptionSucceededEvent(e);else if(r==="pusher_internal:subscription_count")this.handleSubscriptionCountEvent(e);else if(r.indexOf("pusher_internal:")!==0){var h={};this.emit(r,c,h)}}handleSubscriptionSucceededEvent(e){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",e.data)}handleSubscriptionCountEvent(e){e.data.subscription_count&amp;&amp;(this.subscriptionCount=e.data.subscription_count),this.emit("pusher:subscription_count",e.data)}subscribe(){this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(e,r)=&gt;{e?(this.subscriptionPending=!1,B.error(e.toString()),this.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:e.message},e instanceof Z?{status:e.status}:{}))):this.pusher.send_event("pusher:subscribe",{auth:r.auth,channel_data:r.channel_data,channel:this.name})}))}unsubscribe(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})}cancelSubscription(){this.subscriptionCancelled=!0}reinstateSubscription(){this.subscriptionCancelled=!1}}class f extends O{authorize(e,r){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:e},r)}}class _{constructor(){this.reset()}get(e){return Object.prototype.hasOwnProperty.call(this.members,e)?{id:e,info:this.members[e]}:null}each(e){he(this.members,(r,c)=&gt;{e(this.get(c))})}setMyID(e){this.myID=e}onSubscription(e){this.members=e.presence.hash,this.count=e.presence.count,this.me=this.get(this.myID)}addMember(e){return this.get(e.user_id)===null&amp;&amp;this.count++,this.members[e.user_id]=e.user_info,this.get(e.user_id)}removeMember(e){var r=this.get(e.user_id);return r&amp;&amp;(delete this.members[e.user_id],this.count--),r}reset(){this.members={},this.count=0,this.myID=null,this.me=null}}var A=function(o,e,r,c){function h(g){return g instanceof r?g:new r(function(E){E(g)})}return new(r||(r=Promise))(function(g,E){function x(q){try{j(c.next(q))}catch(K){E(K)}}function I(q){try{j(c.throw(q))}catch(K){E(K)}}function j(q){q.done?g(q.value):h(q.value).then(x,I)}j((c=c.apply(o,e||[])).next())})};class z extends f{constructor(e,r){super(e,r),this.members=new _}authorize(e,r){super.authorize(e,(c,h)=&gt;A(this,void 0,void 0,function*(){if(!c)if(h=h,h.channel_data!=null){var g=JSON.parse(h.channel_data);this.members.setMyID(g.user_id)}else if(yield this.pusher.user.signinDonePromise,this.pusher.user.user_data!=null)this.members.setMyID(this.pusher.user.user_data.id);else{let E=w.buildLogSuffix("authorizationEndpoint");B.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${E}, or the user should be signed in.`),r("Invalid auth response");return}r(c,h)}))}handleEvent(e){var r=e.event;if(r.indexOf("pusher_internal:")===0)this.handleInternalEvent(e);else{var c=e.data,h={};e.user_id&amp;&amp;(h.user_id=e.user_id),this.emit(r,c,h)}}handleInternalEvent(e){var r=e.event,c=e.data;switch(r){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(e);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(e);break;case"pusher_internal:member_added":var h=this.members.addMember(c);this.emit("pusher:member_added",h);break;case"pusher_internal:member_removed":var g=this.members.removeMember(c);g&amp;&amp;this.emit("pusher:member_removed",g);break}}handleSubscriptionSucceededEvent(e){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(e.data),this.emit("pusher:subscription_succeeded",this.members))}disconnect(){this.members.reset(),super.disconnect()}}var ee=a(1),G=a(0);class oe extends f{constructor(e,r,c){super(e,r),this.key=null,this.nacl=c}authorize(e,r){super.authorize(e,(c,h)=&gt;{if(c){r(c,h);return}let g=h.shared_secret;if(!g){r(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`),null);return}this.key=Object(G.decode)(g),delete h.shared_secret,r(null,h)})}trigger(e,r){throw new H("Client events are not currently supported for encrypted channels")}handleEvent(e){var r=e.event,c=e.data;if(r.indexOf("pusher_internal:")===0||r.indexOf("pusher:")===0){super.handleEvent(e);return}this.handleEncryptedEvent(r,c)}handleEncryptedEvent(e,r){if(!this.key){B.debug("Received encrypted event before key has been retrieved from the authEndpoint");return}if(!r.ciphertext||!r.nonce){B.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+r);return}let c=Object(G.decode)(r.ciphertext);if(c.length&lt;this.nacl.secretbox.overheadLength){B.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${c.length}`);return}let h=Object(G.decode)(r.nonce);if(h.length&lt;this.nacl.secretbox.nonceLength){B.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${h.length}`);return}let g=this.nacl.secretbox.open(c,h,this.key);if(g===null){B.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),this.authorize(this.pusher.connection.socket_id,(E,x)=&gt;{if(E){B.error(`Failed to make a request to the authEndpoint: ${x}. Unable to fetch new key, so dropping encrypted event`);return}if(g=this.nacl.secretbox.open(c,h,this.key),g===null){B.error("Failed to decrypt event with new key. Dropping encrypted event");return}this.emit(e,this.getDataToEmit(g))});return}this.emit(e,this.getDataToEmit(g))}getDataToEmit(e){let r=Object(ee.decode)(e);try{return JSON.parse(r)}catch{return r}}}class _e extends Te{constructor(e,r){super(),this.state="initialized",this.connection=null,this.key=e,this.options=r,this.timeline=this.options.timeline,this.usingTLS=this.options.useTLS,this.errorCallbacks=this.buildErrorCallbacks(),this.connectionCallbacks=this.buildConnectionCallbacks(this.errorCallbacks),this.handshakeCallbacks=this.buildHandshakeCallbacks(this.errorCallbacks);var c=D.getNetwork();c.bind("online",()=&gt;{this.timeline.info({netinfo:"online"}),(this.state==="connecting"||this.state==="unavailable")&amp;&amp;this.retryIn(0)}),c.bind("offline",()=&gt;{this.timeline.info({netinfo:"offline"}),this.connection&amp;&amp;this.sendActivityCheck()}),this.updateStrategy()}switchCluster(e){this.key=e,this.updateStrategy(),this.retryIn(0)}connect(){if(!(this.connection||this.runner)){if(!this.strategy.isSupported()){this.updateState("failed");return}this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()}}send(e){return this.connection?this.connection.send(e):!1}send_event(e,r,c){return this.connection?this.connection.send_event(e,r,c):!1}disconnect(){this.disconnectInternally(),this.updateState("disconnected")}isUsingTLS(){return this.usingTLS}startConnecting(){var e=(r,c)=&gt;{r?this.runner=this.strategy.connect(0,e):c.action==="error"?(this.emit("error",{type:"HandshakeError",error:c.error}),this.timeline.error({handshakeError:c.error})):(this.abortConnecting(),this.handshakeCallbacks[c.action](c))};this.runner=this.strategy.connect(0,e)}abortConnecting(){this.runner&amp;&amp;(this.runner.abort(),this.runner=null)}disconnectInternally(){if(this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection){var e=this.abandonConnection();e.close()}}updateStrategy(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})}retryIn(e){this.timeline.info({action:"retry",delay:e}),e&gt;0&amp;&amp;this.emit("connecting_in",Math.round(e/1e3)),this.retryTimer=new Re(e||0,()=&gt;{this.disconnectInternally(),this.connect()})}clearRetryTimer(){this.retryTimer&amp;&amp;(this.retryTimer.ensureAborted(),this.retryTimer=null)}setUnavailableTimer(){this.unavailableTimer=new Re(this.options.unavailableTimeout,()=&gt;{this.updateState("unavailable")})}clearUnavailableTimer(){this.unavailableTimer&amp;&amp;this.unavailableTimer.ensureAborted()}sendActivityCheck(){this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new Re(this.options.pongTimeout,()=&gt;{this.timeline.error({pong_timed_out:this.options.pongTimeout}),this.retryIn(0)})}resetActivityCheck(){this.stopActivityCheck(),this.connection&amp;&amp;!this.connection.handlesActivityChecks()&amp;&amp;(this.activityTimer=new Re(this.activityTimeout,()=&gt;{this.sendActivityCheck()}))}stopActivityCheck(){this.activityTimer&amp;&amp;this.activityTimer.ensureAborted()}buildConnectionCallbacks(e){return Y({},e,{message:r=&gt;{this.resetActivityCheck(),this.emit("message",r)},ping:()=&gt;{this.send_event("pusher:pong",{})},activity:()=&gt;{this.resetActivityCheck()},error:r=&gt;{this.emit("error",r)},closed:()=&gt;{this.abandonConnection(),this.shouldRetry()&amp;&amp;this.retryIn(1e3)}})}buildHandshakeCallbacks(e){return Y({},e,{connected:r=&gt;{this.activityTimeout=Math.min(this.options.activityTimeout,r.activityTimeout,r.connection.activityTimeout||1/0),this.clearUnavailableTimer(),this.setConnection(r.connection),this.socket_id=this.connection.id,this.updateState("connected",{socket_id:this.socket_id})}})}buildErrorCallbacks(){let e=r=&gt;c=&gt;{c.error&amp;&amp;this.emit("error",{type:"WebSocketError",error:c.error}),r(c)};return{tls_only:e(()=&gt;{this.usingTLS=!0,this.updateStrategy(),this.retryIn(0)}),refused:e(()=&gt;{this.disconnect()}),backoff:e(()=&gt;{this.retryIn(1e3)}),retry:e(()=&gt;{this.retryIn(0)})}}setConnection(e){this.connection=e;for(var r in this.connectionCallbacks)this.connection.bind(r,this.connectionCallbacks[r]);this.resetActivityCheck()}abandonConnection(){if(this.connection){this.stopActivityCheck();for(var e in this.connectionCallbacks)this.connection.unbind(e,this.connectionCallbacks[e]);var r=this.connection;return this.connection=null,r}}updateState(e,r){var c=this.state;if(this.state=e,c!==e){var h=e;h==="connected"&amp;&amp;(h+=" with new socket ID "+r.socket_id),B.debug("State changed",c+" -&gt; "+h),this.timeline.info({state:e,params:r}),this.emit("state_change",{previous:c,current:e}),this.emit(e,r)}}shouldRetry(){return this.state==="connecting"||this.state==="connected"}}class We{constructor(){this.channels={}}add(e,r){return this.channels[e]||(this.channels[e]=te(e,r)),this.channels[e]}all(){return Nt(this.channels)}find(e){return this.channels[e]}remove(e){var r=this.channels[e];return delete this.channels[e],r}disconnect(){he(this.channels,function(e){e.disconnect()})}}function te(o,e){if(o.indexOf("private-encrypted-")===0){if(e.config.nacl)return we.createEncryptedChannel(o,e,e.config.nacl);let r="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",c=w.buildLogSuffix("encryptedChannelSupport");throw new H(`${r}. ${c}`)}else{if(o.indexOf("private-")===0)return we.createPrivateChannel(o,e);if(o.indexOf("presence-")===0)return we.createPresenceChannel(o,e);if(o.indexOf("#")===0)throw new C('Cannot create a channel with name "'+o+'".');return we.createChannel(o,e)}}var Vt={createChannels(){return new We},createConnectionManager(o,e){return new _e(o,e)},createChannel(o,e){return new O(o,e)},createPrivateChannel(o,e){return new f(o,e)},createPresenceChannel(o,e){return new z(o,e)},createEncryptedChannel(o,e,r){return new oe(o,e,r)},createTimelineSender(o,e){return new En(o,e)},createHandshake(o,e){return new Jt(o,e)},createAssistantToTheTransportManager(o,e,r){return new Ee(o,e,r)}},we=Vt;class ir{constructor(e){this.options=e||{},this.livesLeft=this.options.lives||1/0}getAssistant(e){return we.createAssistantToTheTransportManager(this,e,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}isAlive(){return this.livesLeft&gt;0}reportDeath(){this.livesLeft-=1}}class $e{constructor(e,r){this.strategies=e,this.loop=!!r.loop,this.failFast=!!r.failFast,this.timeout=r.timeout,this.timeoutLimit=r.timeoutLimit}isSupported(){return Be(this.strategies,U.method("isSupported"))}connect(e,r){var c=this.strategies,h=0,g=this.timeout,E=null,x=(I,j)=&gt;{j?r(null,j):(h=h+1,this.loop&amp;&amp;(h=h%c.length),h&lt;c.length?(g&amp;&amp;(g=g*2,this.timeoutLimit&amp;&amp;(g=Math.min(g,this.timeoutLimit))),E=this.tryStrategy(c[h],e,{timeout:g,failFast:this.failFast},x)):r(!0))};return E=this.tryStrategy(c[h],e,{timeout:g,failFast:this.failFast},x),{abort:function(){E.abort()},forceMinPriority:function(I){e=I,E&amp;&amp;E.forceMinPriority(I)}}}tryStrategy(e,r,c,h){var g=null,E=null;return c.timeout&gt;0&amp;&amp;(g=new Re(c.timeout,function(){E.abort(),h(!0)})),E=e.connect(r,function(x,I){x&amp;&amp;g&amp;&amp;g.isRunning()&amp;&amp;!c.failFast||(g&amp;&amp;g.ensureAborted(),h(x,I))}),{abort:function(){g&amp;&amp;g.ensureAborted(),E.abort()},forceMinPriority:function(x){E.forceMinPriority(x)}}}}class Cn{constructor(e){this.strategies=e}isSupported(){return Be(this.strategies,U.method("isSupported"))}connect(e,r){return Ti(this.strategies,e,function(c,h){return function(g,E){if(h[c].error=g,g){Ei(h)&amp;&amp;r(!0);return}be(h,function(x){x.forceMinPriority(E.transport.priority)}),r(null,E)}})}}function Ti(o,e,r){var c=Ke(o,function(h,g,E,x){return h.connect(e,r(g,x))});return{abort:function(){be(c,Ci)},forceMinPriority:function(h){be(c,function(g){g.forceMinPriority(h)})}}}function Ei(o){return et(o,function(e){return!!e.error})}function Ci(o){!o.error&amp;&amp;!o.aborted&amp;&amp;(o.abort(),o.aborted=!0)}class ki{constructor(e,r,c){this.strategy=e,this.transports=r,this.ttl=c.ttl||1800*1e3,this.usingTLS=c.useTLS,this.timeline=c.timeline}isSupported(){return this.strategy.isSupported()}connect(e,r){var c=this.usingTLS,h=Ai(c),g=h&amp;&amp;h.cacheSkipCount?h.cacheSkipCount:0,E=[this.strategy];if(h&amp;&amp;h.timestamp+this.ttl&gt;=U.now()){var x=this.transports[h.transport];x&amp;&amp;(["ws","wss"].includes(h.transport)||g&gt;3?(this.timeline.info({cached:!0,transport:h.transport,latency:h.latency}),E.push(new $e([x],{timeout:h.latency*2+1e3,failFast:!0}))):g++)}var I=U.now(),j=E.pop().connect(e,function q(K,Qt){K?(sr(c),E.length&gt;0?(I=U.now(),j=E.pop().connect(e,q)):r(K)):(Ri(c,Qt.transport.name,U.now()-I,g),r(null,Qt))});return{abort:function(){j.abort()},forceMinPriority:function(q){e=q,j&amp;&amp;j.forceMinPriority(q)}}}}function kn(o){return"pusherTransport"+(o?"TLS":"NonTLS")}function Ai(o){var e=D.getLocalStorage();if(e)try{var r=e[kn(o)];if(r)return JSON.parse(r)}catch{sr(o)}return null}function Ri(o,e,r,c){var h=D.getLocalStorage();if(h)try{h[kn(o)]=De({timestamp:U.now(),transport:e,latency:r,cacheSkipCount:c})}catch{}}function sr(o){var e=D.getLocalStorage();if(e)try{delete e[kn(o)]}catch{}}class Yt{constructor(e,{delay:r}){this.strategy=e,this.options={delay:r}}isSupported(){return this.strategy.isSupported()}connect(e,r){var c=this.strategy,h,g=new Re(this.options.delay,function(){h=c.connect(e,r)});return{abort:function(){g.ensureAborted(),h&amp;&amp;h.abort()},forceMinPriority:function(E){e=E,h&amp;&amp;h.forceMinPriority(E)}}}}class yt{constructor(e,r,c){this.test=e,this.trueBranch=r,this.falseBranch=c}isSupported(){var e=this.test()?this.trueBranch:this.falseBranch;return e.isSupported()}connect(e,r){var c=this.test()?this.trueBranch:this.falseBranch;return c.connect(e,r)}}class Oi{constructor(e){this.strategy=e}isSupported(){return this.strategy.isSupported()}connect(e,r){var c=this.strategy.connect(e,function(h,g){g&amp;&amp;c.abort(),r(h,g)});return c}}function vt(o){return function(){return o.isSupported()}}var xi=function(o,e,r){var c={};function h(vr,Rs,Os,xs,Ls){var br=r(o,vr,Rs,Os,xs,Ls);return c[vr]=br,br}var g=Object.assign({},e,{hostNonTLS:o.wsHost+":"+o.wsPort,hostTLS:o.wsHost+":"+o.wssPort,httpPath:o.wsPath}),E=Object.assign({},g,{useTLS:!0}),x=Object.assign({},e,{hostNonTLS:o.httpHost+":"+o.httpPort,hostTLS:o.httpHost+":"+o.httpsPort,httpPath:o.httpPath}),I={loop:!0,timeout:15e3,timeoutLimit:6e4},j=new ir({minPingDelay:1e4,maxPingDelay:o.activityTimeout}),q=new ir({lives:2,minPingDelay:1e4,maxPingDelay:o.activityTimeout}),K=h("ws","ws",3,g,j),Qt=h("wss","ws",3,E,j),Ts=h("sockjs","sockjs",1,x),fr=h("xhr_streaming","xhr_streaming",1,x,q),Es=h("xdr_streaming","xdr_streaming",1,x,q),dr=h("xhr_polling","xhr_polling",1,x),Cs=h("xdr_polling","xdr_polling",1,x),pr=new $e([K],I),ks=new $e([Qt],I),As=new $e([Ts],I),mr=new $e([new yt(vt(fr),fr,Es)],I),gr=new $e([new yt(vt(dr),dr,Cs)],I),yr=new $e([new yt(vt(mr),new Cn([mr,new Yt(gr,{delay:4e3})]),gr)],I),xn=new yt(vt(yr),yr,As),Ln;return e.useTLS?Ln=new Cn([pr,new Yt(xn,{delay:2e3})]):Ln=new Cn([pr,new Yt(ks,{delay:2e3}),new Yt(xn,{delay:5e3})]),new ki(new Oi(new yt(vt(K),Ln,xn)),c,{ttl:18e5,timeline:e.timeline,useTLS:e.useTLS})},Li=xi,Pi=function(){var o=this;o.timeline.info(o.buildTimelineMessage({transport:o.name+(o.options.useTLS?"s":"")})),o.hooks.isInitialized()?o.changeState("initialized"):o.hooks.file?(o.changeState("initializing"),S.load(o.hooks.file,{useTLS:o.options.useTLS},function(e,r){o.hooks.isInitialized()?(o.changeState("initialized"),r(!0)):(e&amp;&amp;o.onError(e),o.onClose(),r(!1))})):o.onClose()},Ni={getRequest:function(o){var e=new window.XDomainRequest;return e.ontimeout=function(){o.emit("error",new P),o.close()},e.onerror=function(r){o.emit("error",r),o.close()},e.onprogress=function(){e.responseText&amp;&amp;e.responseText.length&gt;0&amp;&amp;o.onChunk(200,e.responseText)},e.onload=function(){e.responseText&amp;&amp;e.responseText.length&gt;0&amp;&amp;o.onChunk(200,e.responseText),o.emit("finished",200),o.close()},e},abortRequest:function(o){o.ontimeout=o.onerror=o.onprogress=o.onload=null,o.abort()}},Ii=Ni;const Di=256*1024;class Mi extends Te{constructor(e,r,c){super(),this.hooks=e,this.method=r,this.url=c}start(e){this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=()=&gt;{this.close()},D.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&amp;&amp;this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(e)}close(){this.unloader&amp;&amp;(D.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&amp;&amp;(this.hooks.abortRequest(this.xhr),this.xhr=null)}onChunk(e,r){for(;;){var c=this.advanceBuffer(r);if(c)this.emit("chunk",{status:e,data:c});else break}this.isBufferTooLong(r)&amp;&amp;this.emit("buffer_too_long")}advanceBuffer(e){var r=e.slice(this.position),c=r.indexOf(`
`);return c!==-1?(this.position+=c+1,r.slice(0,c)):null}isBufferTooLong(e){return this.position===e.length&amp;&amp;e.length&gt;Di}}var An;(function(o){o[o.CONNECTING=0]="CONNECTING",o[o.OPEN=1]="OPEN",o[o.CLOSED=3]="CLOSED"})(An||(An={}));var Xe=An,Ui=1;class Fi{constructor(e,r){this.hooks=e,this.session=ar(1e3)+"/"+qi(8),this.location=ji(r),this.readyState=Xe.CONNECTING,this.openStream()}send(e){return this.sendRaw(JSON.stringify([e]))}ping(){this.hooks.sendHeartbeat(this)}close(e,r){this.onClose(e,r,!0)}sendRaw(e){if(this.readyState===Xe.OPEN)try{return D.createSocketRequest("POST",or(Hi(this.location,this.session))).start(e),!0}catch{return!1}else return!1}reconnect(){this.closeStream(),this.openStream()}onClose(e,r,c){this.closeStream(),this.readyState=Xe.CLOSED,this.onclose&amp;&amp;this.onclose({code:e,reason:r,wasClean:c})}onChunk(e){if(e.status===200){this.readyState===Xe.OPEN&amp;&amp;this.onActivity();var r,c=e.data.slice(0,1);switch(c){case"o":r=JSON.parse(e.data.slice(1)||"{}"),this.onOpen(r);break;case"a":r=JSON.parse(e.data.slice(1)||"[]");for(var h=0;h&lt;r.length;h++)this.onEvent(r[h]);break;case"m":r=JSON.parse(e.data.slice(1)||"null"),this.onEvent(r);break;case"h":this.hooks.onHeartbeat(this);break;case"c":r=JSON.parse(e.data.slice(1)||"[]"),this.onClose(r[0],r[1],!0);break}}}onOpen(e){this.readyState===Xe.CONNECTING?(e&amp;&amp;e.hostname&amp;&amp;(this.location.base=Bi(this.location.base,e.hostname)),this.readyState=Xe.OPEN,this.onopen&amp;&amp;this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(e){this.readyState===Xe.OPEN&amp;&amp;this.onmessage&amp;&amp;this.onmessage({data:e})}onActivity(){this.onactivity&amp;&amp;this.onactivity()}onError(e){this.onerror&amp;&amp;this.onerror(e)}openStream(){this.stream=D.createSocketRequest("POST",or(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",e=&gt;{this.onChunk(e)}),this.stream.bind("finished",e=&gt;{this.hooks.onFinished(this,e)}),this.stream.bind("buffer_too_long",()=&gt;{this.reconnect()});try{this.stream.start()}catch(e){U.defer(()=&gt;{this.onError(e),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&amp;&amp;(this.stream.unbind_all(),this.stream.close(),this.stream=null)}}function ji(o){var e=/([^\?]*)\/*(\??.*)/.exec(o);return{base:e[1],queryString:e[2]}}function Hi(o,e){return o.base+"/"+e+"/xhr_send"}function or(o){var e=o.indexOf("?")===-1?"?":"&amp;";return o+e+"t="+ +new Date+"&amp;n="+Ui++}function Bi(o,e){var r=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(o);return r[1]+e+r[3]}function ar(o){return D.randomInt(o)}function qi(o){for(var e=[],r=0;r&lt;o;r++)e.push(ar(32).toString(32));return e.join("")}var zi=Fi,Wi={getReceiveURL:function(o,e){return o.base+"/"+e+"/xhr_streaming"+o.queryString},onHeartbeat:function(o){o.sendRaw("[]")},sendHeartbeat:function(o){o.sendRaw("[]")},onFinished:function(o,e){o.onClose(1006,"Connection interrupted ("+e+")",!1)}},$i=Wi,Xi={getReceiveURL:function(o,e){return o.base+"/"+e+"/xhr"+o.queryString},onHeartbeat:function(){},sendHeartbeat:function(o){o.sendRaw("[]")},onFinished:function(o,e){e===200?o.reconnect():o.onClose(1006,"Connection interrupted ("+e+")",!1)}},Gi=Xi,Ji={getRequest:function(o){var e=D.getXHRAPI(),r=new e;return r.onreadystatechange=r.onprogress=function(){switch(r.readyState){case 3:r.responseText&amp;&amp;r.responseText.length&gt;0&amp;&amp;o.onChunk(r.status,r.responseText);break;case 4:r.responseText&amp;&amp;r.responseText.length&gt;0&amp;&amp;o.onChunk(r.status,r.responseText),o.emit("finished",r.status),o.close();break}},r},abortRequest:function(o){o.onreadystatechange=null,o.abort()}},Vi=Ji,Yi={createStreamingSocket(o){return this.createSocket($i,o)},createPollingSocket(o){return this.createSocket(Gi,o)},createSocket(o,e){return new zi(o,e)},createXHR(o,e){return this.createRequest(Vi,o,e)},createRequest(o,e,r){return new Mi(o,e,r)}},cr=Yi;cr.createXDR=function(o,e){return this.createRequest(Ii,o,e)};var Ki=cr,Qi={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:l,DependenciesReceivers:v,getDefaultStrategy:Li,Transports:Wt,transportConnectionInitializer:Pi,HTTPFactory:Ki,TimelineTransport:tt,getXHRAPI(){return window.XMLHttpRequest},getWebSocketAPI(){return window.WebSocket||window.MozWebSocket},setup(o){window.Pusher=o;var e=()=&gt;{this.onDocumentBody(o.ready)};window.JSON?e():S.load("json2",{},e)},getDocument(){return document},getProtocol(){return this.getDocument().location.protocol},getAuthorizers(){return{ajax:le,jsonp:Mt}},onDocumentBody(o){document.body?o():setTimeout(()=&gt;{this.onDocumentBody(o)},0)},createJSONPRequest(o,e){return new Ft(o,e)},createScriptRequest(o){return new Ut(o)},getLocalStorage(){try{return window.localStorage}catch{return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){var o=this.getXHRAPI();return new o},createMicrosoftXHR(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork(){return Xt},createWebSocket(o){var e=this.getWebSocketAPI();return new e(o)},createSocketRequest(o,e){if(this.isXHRSupported())return this.HTTPFactory.createXHR(o,e);if(this.isXDRSupported(e.indexOf("https:")===0))return this.HTTPFactory.createXDR(o,e);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var o=this.getXHRAPI();return!!o&amp;&amp;new o().withCredentials!==void 0},isXDRSupported(o){var e=o?"https:":"http:",r=this.getProtocol();return!!window.XDomainRequest&amp;&amp;r===e},addUnloadListener(o){window.addEventListener!==void 0?window.addEventListener("unload",o,!1):window.attachEvent!==void 0&amp;&amp;window.attachEvent("onunload",o)},removeUnloadListener(o){window.addEventListener!==void 0?window.removeEventListener("unload",o,!1):window.detachEvent!==void 0&amp;&amp;window.detachEvent("onunload",o)},randomInt(o){return Math.floor(function(){return(window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)}()*o)}},D=Qi,Rn;(function(o){o[o.ERROR=3]="ERROR",o[o.INFO=6]="INFO",o[o.DEBUG=7]="DEBUG"})(Rn||(Rn={}));var Kt=Rn;class Zi{constructor(e,r,c){this.key=e,this.session=r,this.events=[],this.options=c||{},this.sent=0,this.uniqueID=0}log(e,r){e&lt;=this.options.level&amp;&amp;(this.events.push(Y({},r,{timestamp:U.now()})),this.options.limit&amp;&amp;this.events.length&gt;this.options.limit&amp;&amp;this.events.shift())}error(e){this.log(Kt.ERROR,e)}info(e){this.log(Kt.INFO,e)}debug(e){this.log(Kt.DEBUG,e)}isEmpty(){return this.events.length===0}send(e,r){var c=Y({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],e(c,(h,g)=&gt;{h||this.sent++,r&amp;&amp;r(h,g)}),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}class es{constructor(e,r,c,h){this.name=e,this.priority=r,this.transport=c,this.options=h||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(e,r){if(this.isSupported()){if(this.priority&lt;e)return ur(new k,r)}else return ur(new X,r);var c=!1,h=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),g=null,E=function(){h.unbind("initialized",E),h.connect()},x=function(){g=we.createHandshake(h,function(K){c=!0,q(),r(null,K)})},I=function(K){q(),r(K)},j=function(){q();var K;K=De(h),r(new N(K))},q=function(){h.unbind("initialized",E),h.unbind("open",x),h.unbind("error",I),h.unbind("closed",j)};return h.bind("initialized",E),h.bind("open",x),h.bind("error",I),h.bind("closed",j),h.initialize(),{abort:()=&gt;{c||(q(),g?g.close():h.close())},forceMinPriority:K=&gt;{c||this.priority&lt;K&amp;&amp;(g?g.close():h.close())}}}}function ur(o,e){return U.defer(function(){e(o)}),{abort:function(){},forceMinPriority:function(){}}}const{Transports:ts}=D;var ns=function(o,e,r,c,h,g){var E=ts[r];if(!E)throw new W(r);var x=(!o.enabledTransports||ut(o.enabledTransports,e)!==-1)&amp;&amp;(!o.disabledTransports||ut(o.disabledTransports,e)===-1),I;return x?(h=Object.assign({ignoreNullOrigin:o.ignoreNullOrigin},h),I=new es(e,c,g?g.getAssistant(E):E,h)):I=rs,I},rs={isSupported:function(){return!1},connect:function(o,e){var r=U.defer(function(){e(new X)});return{abort:function(){r.ensureAborted()},forceMinPriority:function(){}}}};function is(o){if(o==null)throw"You must pass an options object";if(o.cluster==null)throw"Options object must provide a cluster";"disableStats"in o&amp;&amp;B.warn("The disableStats option is deprecated in favor of enableStats")}const ss=(o,e)=&gt;{var r="socket_id="+encodeURIComponent(o.socketId);for(var c in e.params)r+="&amp;"+encodeURIComponent(c)+"="+encodeURIComponent(e.params[c]);if(e.paramsProvider!=null){let h=e.paramsProvider();for(var c in h)r+="&amp;"+encodeURIComponent(c)+"="+encodeURIComponent(h[c])}return r};var os=o=&gt;{if(typeof D.getAuthorizers()[o.transport]&gt;"u")throw`'${o.transport}' is not a recognized auth transport`;return(e,r)=&gt;{const c=ss(e,o);D.getAuthorizers()[o.transport](D,c,o,T.UserAuthentication,r)}};const as=(o,e)=&gt;{var r="socket_id="+encodeURIComponent(o.socketId);r+="&amp;channel_name="+encodeURIComponent(o.channelName);for(var c in e.params)r+="&amp;"+encodeURIComponent(c)+"="+encodeURIComponent(e.params[c]);if(e.paramsProvider!=null){let h=e.paramsProvider();for(var c in h)r+="&amp;"+encodeURIComponent(c)+"="+encodeURIComponent(h[c])}return r};var cs=o=&gt;{if(typeof D.getAuthorizers()[o.transport]&gt;"u")throw`'${o.transport}' is not a recognized auth transport`;return(e,r)=&gt;{const c=as(e,o);D.getAuthorizers()[o.transport](D,c,o,T.ChannelAuthorization,r)}};const us=(o,e,r)=&gt;{const c={authTransport:e.transport,authEndpoint:e.endpoint,auth:{params:e.params,headers:e.headers}};return(h,g)=&gt;{const E=o.channel(h.channelName);r(E,c).authorize(h.socketId,g)}};function lr(o,e){let r={activityTimeout:o.activityTimeout||y.activityTimeout,cluster:o.cluster,httpPath:o.httpPath||y.httpPath,httpPort:o.httpPort||y.httpPort,httpsPort:o.httpsPort||y.httpsPort,pongTimeout:o.pongTimeout||y.pongTimeout,statsHost:o.statsHost||y.stats_host,unavailableTimeout:o.unavailableTimeout||y.unavailableTimeout,wsPath:o.wsPath||y.wsPath,wsPort:o.wsPort||y.wsPort,wssPort:o.wssPort||y.wssPort,enableStats:ps(o),httpHost:ls(o),useTLS:ds(o),wsHost:hs(o),userAuthenticator:ms(o),channelAuthorizer:ys(o,e)};return"disabledTransports"in o&amp;&amp;(r.disabledTransports=o.disabledTransports),"enabledTransports"in o&amp;&amp;(r.enabledTransports=o.enabledTransports),"ignoreNullOrigin"in o&amp;&amp;(r.ignoreNullOrigin=o.ignoreNullOrigin),"timelineParams"in o&amp;&amp;(r.timelineParams=o.timelineParams),"nacl"in o&amp;&amp;(r.nacl=o.nacl),r}function ls(o){return o.httpHost?o.httpHost:o.cluster?`sockjs-${o.cluster}.pusher.com`:y.httpHost}function hs(o){return o.wsHost?o.wsHost:fs(o.cluster)}function fs(o){return`ws-${o}.pusher.com`}function ds(o){return D.getProtocol()==="https:"?!0:o.forceTLS!==!1}function ps(o){return"enableStats"in o?o.enableStats:"disableStats"in o?!o.disableStats:!1}const hr=o=&gt;"customHandler"in o&amp;&amp;o.customHandler!=null;function ms(o){const e=Object.assign(Object.assign({},y.userAuthentication),o.userAuthentication);return hr(e)?e.customHandler:os(e)}function gs(o,e){let r;if("channelAuthorization"in o)r=Object.assign(Object.assign({},y.channelAuthorization),o.channelAuthorization);else if(r={transport:o.authTransport||y.authTransport,endpoint:o.authEndpoint||y.authEndpoint},"auth"in o&amp;&amp;("params"in o.auth&amp;&amp;(r.params=o.auth.params),"headers"in o.auth&amp;&amp;(r.headers=o.auth.headers)),"authorizer"in o)return{customHandler:us(e,r,o.authorizer)};return r}function ys(o,e){const r=gs(o,e);return hr(r)?r.customHandler:cs(r)}class vs extends Te{constructor(e){super(function(r,c){B.debug(`No callbacks on watchlist events for ${r}`)}),this.pusher=e,this.bindWatchlistInternalEvent()}handleEvent(e){e.data.events.forEach(r=&gt;{this.emit(r.name,r)})}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",e=&gt;{var r=e.event;r==="pusher_internal:watchlist_events"&amp;&amp;this.handleEvent(e)})}}function bs(){let o,e;return{promise:new Promise((c,h)=&gt;{o=c,e=h}),resolve:o,reject:e}}var _s=bs;class ws extends Te{constructor(e){super(function(r,c){B.debug("No callbacks on user for "+r)}),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(r,c)=&gt;{if(r){B.warn(`Error during signin: ${r}`),this._cleanup();return}this.pusher.send_event("pusher:signin",{auth:c.auth,user_data:c.user_data})},this.pusher=e,this.pusher.connection.bind("state_change",({previous:r,current:c})=&gt;{r!=="connected"&amp;&amp;c==="connected"&amp;&amp;this._signin(),r==="connected"&amp;&amp;c!=="connected"&amp;&amp;(this._cleanup(),this._newSigninPromiseIfNeeded())}),this.watchlist=new vs(e),this.pusher.connection.bind("message",r=&gt;{var c=r.event;c==="pusher:signin_success"&amp;&amp;this._onSigninSuccess(r.data),this.serverToUserChannel&amp;&amp;this.serverToUserChannel.name===r.channel&amp;&amp;this.serverToUserChannel.handleEvent(r)})}signin(){this.signin_requested||(this.signin_requested=!0,this._signin())}_signin(){this.signin_requested&amp;&amp;(this._newSigninPromiseIfNeeded(),this.pusher.connection.state==="connected"&amp;&amp;this.pusher.config.userAuthenticator({socketId:this.pusher.connection.socket_id},this._onAuthorize))}_onSigninSuccess(e){try{this.user_data=JSON.parse(e.user_data)}catch{B.error(`Failed parsing user data after signin: ${e.user_data}`),this._cleanup();return}if(typeof this.user_data.id!="string"||this.user_data.id===""){B.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),this._cleanup();return}this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){const e=r=&gt;{r.subscriptionPending&amp;&amp;r.subscriptionCancelled?r.reinstateSubscription():!r.subscriptionPending&amp;&amp;this.pusher.connection.state==="connected"&amp;&amp;r.subscribe()};this.serverToUserChannel=new O(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global((r,c)=&gt;{r.indexOf("pusher_internal:")===0||r.indexOf("pusher:")===0||this.emit(r,c)}),e(this.serverToUserChannel)}_cleanup(){this.user_data=null,this.serverToUserChannel&amp;&amp;(this.serverToUserChannel.unbind_all(),this.serverToUserChannel.disconnect(),this.serverToUserChannel=null),this.signin_requested&amp;&amp;this._signinDoneResolve()}_newSigninPromiseIfNeeded(){if(!this.signin_requested||this.signinDonePromise&amp;&amp;!this.signinDonePromise.done)return;const{promise:e,resolve:r,reject:c}=_s();e.done=!1;const h=()=&gt;{e.done=!0};e.then(h).catch(h),this.signinDonePromise=e,this._signinDoneResolve=r}}class ne{static ready(){ne.isReady=!0;for(var e=0,r=ne.instances.length;e&lt;r;e++)ne.instances[e].connect()}static getClientFeatures(){return lt(Ze({ws:D.Transports.ws},function(e){return e.isSupported({})}))}constructor(e,r){Ss(e),is(r),this.key=e,this.options=r,this.config=lr(this.options,this),this.channels=we.createChannels(),this.global_emitter=new Te,this.sessionID=D.randomInt(1e9),this.timeline=new Zi(this.key,this.sessionID,{cluster:this.config.cluster,features:ne.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:Kt.INFO,version:y.VERSION}),this.config.enableStats&amp;&amp;(this.timelineSender=we.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+D.TimelineTransport.name}));var c=h=&gt;D.getDefaultStrategy(this.config,h,ns);this.connection=we.createConnectionManager(this.key,{getStrategy:c,timeline:this.timeline,activityTimeout:this.config.activityTimeout,pongTimeout:this.config.pongTimeout,unavailableTimeout:this.config.unavailableTimeout,useTLS:!!this.config.useTLS}),this.connection.bind("connected",()=&gt;{this.subscribeAll(),this.timelineSender&amp;&amp;this.timelineSender.send(this.connection.isUsingTLS())}),this.connection.bind("message",h=&gt;{var g=h.event,E=g.indexOf("pusher_internal:")===0;if(h.channel){var x=this.channel(h.channel);x&amp;&amp;x.handleEvent(h)}E||this.global_emitter.emit(h.event,h.data)}),this.connection.bind("connecting",()=&gt;{this.channels.disconnect()}),this.connection.bind("disconnected",()=&gt;{this.channels.disconnect()}),this.connection.bind("error",h=&gt;{B.warn(h)}),ne.instances.push(this),this.timeline.info({instances:ne.instances.length}),this.user=new ws(this),ne.isReady&amp;&amp;this.connect()}switchCluster(e){const{appKey:r,cluster:c}=e;this.key=r,this.options=Object.assign(Object.assign({},this.options),{cluster:c}),this.config=lr(this.options,this),this.connection.switchCluster(this.key)}channel(e){return this.channels.find(e)}allChannels(){return this.channels.all()}connect(){if(this.connection.connect(),this.timelineSender&amp;&amp;!this.timelineSenderTimer){var e=this.connection.isUsingTLS(),r=this.timelineSender;this.timelineSenderTimer=new V(6e4,function(){r.send(e)})}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&amp;&amp;(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}bind(e,r,c){return this.global_emitter.bind(e,r,c),this}unbind(e,r,c){return this.global_emitter.unbind(e,r,c),this}bind_global(e){return this.global_emitter.bind_global(e),this}unbind_global(e){return this.global_emitter.unbind_global(e),this}unbind_all(e){return this.global_emitter.unbind_all(),this}subscribeAll(){var e;for(e in this.channels.channels)this.channels.channels.hasOwnProperty(e)&amp;&amp;this.subscribe(e)}subscribe(e){var r=this.channels.add(e,this);return r.subscriptionPending&amp;&amp;r.subscriptionCancelled?r.reinstateSubscription():!r.subscriptionPending&amp;&amp;this.connection.state==="connected"&amp;&amp;r.subscribe(),r}unsubscribe(e){var r=this.channels.find(e);r&amp;&amp;r.subscriptionPending?r.cancelSubscription():(r=this.channels.remove(e),r&amp;&amp;r.subscribed&amp;&amp;r.unsubscribe())}send_event(e,r,c){return this.connection.send_event(e,r,c)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}ne.instances=[],ne.isReady=!1,ne.logToConsole=!1,ne.Runtime=D,ne.ScriptReceivers=D.ScriptReceivers,ne.DependenciesReceivers=D.DependenciesReceivers,ne.auth_callbacks=D.auth_callbacks;var On=s.default=ne;function Ss(o){if(o==null)throw"You must pass your app key when you instantiate Pusher."}D.setup(ne)}])})})(yi);var _a=yi.exports;const wa=ba(_a);window.axios=Q;window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";window.Pusher=wa;window.Echo=new va({broadcaster:"pusher",key:"2c678d457799f8dc77a0",cluster:"us2",wsHost:"ws-us2.pusher.com",wsPort:"443",wssPort:"443",forceTLS:!0,enabledTransports:["ws","wss"]});/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:vi,setPrototypeOf:Mr,isFrozen:Sa,getPrototypeOf:Ta,getOwnPropertyDescriptor:Ea}=Object;let{freeze:ce,seal:Se,create:bi}=Object,{apply:Vn,construct:Yn}=typeof Reflect&lt;"u"&amp;&amp;Reflect;ce||(ce=function(t){return t});Se||(Se=function(t){return t});Vn||(Vn=function(t,i,s){return t.apply(i,s)});Yn||(Yn=function(t,i){return new t(...i)});const Zt=me(Array.prototype.forEach),Ur=me(Array.prototype.pop),_t=me(Array.prototype.push),rn=me(String.prototype.toLowerCase),Mn=me(String.prototype.toString),Fr=me(String.prototype.match),wt=me(String.prototype.replace),Ca=me(String.prototype.indexOf),ka=me(String.prototype.trim),Ce=me(Object.prototype.hasOwnProperty),ae=me(RegExp.prototype.test),St=Aa(TypeError);function me(n){return function(t){for(var i=arguments.length,s=new Array(i&gt;1?i-1:0),a=1;a&lt;i;a++)s[a-1]=arguments[a];return Vn(n,t,s)}}function Aa(n){return function(){for(var t=arguments.length,i=new Array(t),s=0;s&lt;t;s++)i[s]=arguments[s];return Yn(n,i)}}function F(n,t){let i=arguments.length&gt;2&amp;&amp;arguments[2]!==void 0?arguments[2]:rn;Mr&amp;&amp;Mr(n,null);let s=t.length;for(;s--;){let a=t[s];if(typeof a=="string"){const u=i(a);u!==a&amp;&amp;(Sa(t)||(t[s]=u),a=u)}n[a]=!0}return n}function Ra(n){for(let t=0;t&lt;n.length;t++)Ce(n,t)||(n[t]=null);return n}function Ge(n){const t=bi(null);for(const[i,s]of vi(n))Ce(n,i)&amp;&amp;(Array.isArray(s)?t[i]=Ra(s):s&amp;&amp;typeof s=="object"&amp;&amp;s.constructor===Object?t[i]=Ge(s):t[i]=s);return t}function Tt(n,t){for(;n!==null;){const s=Ea(n,t);if(s){if(s.get)return me(s.get);if(typeof s.value=="function")return me(s.value)}n=Ta(n)}function i(){return null}return i}const jr=ce(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Un=ce(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Fn=ce(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Oa=ce(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),jn=ce(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),xa=ce(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Hr=ce(["#text"]),Br=ce(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Hn=ce(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),qr=ce(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),en=ce(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),La=Se(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Pa=Se(/&lt;%[\w\W]*|[\w\W]*%&gt;/gm),Na=Se(/\${[\w\W]*}/gm),Ia=Se(/^data-[\-\w.\u00B7-\uFFFF]/),Da=Se(/^aria-[\-\w]+$/),_i=Se(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ma=Se(/^(?:\w+script|data):/i),Ua=Se(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),wi=Se(/^html$/i),Fa=Se(/^[a-z][.\w]*(-[.\w]+)+$/i);var zr=Object.freeze({__proto__:null,MUSTACHE_EXPR:La,ERB_EXPR:Pa,TMPLIT_EXPR:Na,DATA_ATTR:Ia,ARIA_ATTR:Da,IS_ALLOWED_URI:_i,IS_SCRIPT_OR_DATA:Ma,ATTR_WHITESPACE:Ua,DOCTYPE_NAME:wi,CUSTOM_ELEMENT:Fa});const Et={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ja=function(){return typeof window&gt;"u"?null:window},Ha=function(t,i){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let s=null;const a="data-tt-policy-suffix";i&amp;&amp;i.hasAttribute(a)&amp;&amp;(s=i.getAttribute(a));const u="dompurify"+(s?"#"+s:"");try{return t.createPolicy(u,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+u+" could not be created."),null}};function Si(){let n=arguments.length&gt;0&amp;&amp;arguments[0]!==void 0?arguments[0]:ja();const t=O=&gt;Si(O);if(t.version="3.1.6",t.removed=[],!n||!n.document||n.document.nodeType!==Et.document)return t.isSupported=!1,t;let{document:i}=n;const s=i,a=s.currentScript,{DocumentFragment:u,HTMLTemplateElement:l,Node:m,Element:y,NodeFilter:b,NamedNodeMap:v=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:S,DOMParser:L,trustedTypes:R}=n,w=y.prototype,T=Tt(w,"cloneNode"),d=Tt(w,"remove"),C=Tt(w,"nextSibling"),P=Tt(w,"childNodes"),k=Tt(w,"parentNode");if(typeof l=="function"){const O=i.createElement("template");O.content&amp;&amp;O.content.ownerDocument&amp;&amp;(i=O.content.ownerDocument)}let N,H="";const{implementation:W,createNodeIterator:X,createDocumentFragment:Z,getElementsByTagName:se}=i,{importNode:le}=s;let ve={};t.isSupported=typeof vi=="function"&amp;&amp;typeof k=="function"&amp;&amp;W&amp;&amp;W.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:xe,ERB_EXPR:Ne,TMPLIT_EXPR:at,DATA_ATTR:gn,ARIA_ATTR:yn,IS_SCRIPT_OR_DATA:vn,ATTR_WHITESPACE:Ot,CUSTOM_ELEMENT:xt}=zr;let{IS_ALLOWED_URI:Lt}=zr,J=null;const Re=F({},[...jr,...Un,...Fn,...jn,...Hr]);let V=null;const Pt=F({},[...Br,...Hn,...qr,...en]);let U=Object.seal(bi(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Y=null,ct=null,ut=!0,he=!0,lt=!1,Nt=!0,be=!1,Ke=!0,Le=!1,Qe=!1,Ze=!1,Ie=!1,Be=!1,et=!1,It=!0,Dt=!1;const bn="user-content-";let De=!0,qe=!1,B={},Me=null;const Mt=F({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ut=null;const Ft=F({},["audio","video","img","source","image","track"]);let ht=null;const jt=F({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tt="http://www.w3.org/1998/Math/MathML",Ue="http://www.w3.org/2000/svg",fe="http://www.w3.org/1999/xhtml";let Fe=fe,ft=!1,dt=null;const _n=F({},[tt,Ue,fe],Mn);let Pe=null;const Te=["application/xhtml+xml","text/html"],wn="text/html";let $=null,je=null;const Ht=i.createElement("form"),pt=function(f){return f instanceof RegExp||f instanceof Function},nt=function(){let f=arguments.length&gt;0&amp;&amp;arguments[0]!==void 0?arguments[0]:{};if(!(je&amp;&amp;je===f)){if((!f||typeof f!="object")&amp;&amp;(f={}),f=Ge(f),Pe=Te.indexOf(f.PARSER_MEDIA_TYPE)===-1?wn:f.PARSER_MEDIA_TYPE,$=Pe==="application/xhtml+xml"?Mn:rn,J=Ce(f,"ALLOWED_TAGS")?F({},f.ALLOWED_TAGS,$):Re,V=Ce(f,"ALLOWED_ATTR")?F({},f.ALLOWED_ATTR,$):Pt,dt=Ce(f,"ALLOWED_NAMESPACES")?F({},f.ALLOWED_NAMESPACES,Mn):_n,ht=Ce(f,"ADD_URI_SAFE_ATTR")?F(Ge(jt),f.ADD_URI_SAFE_ATTR,$):jt,Ut=Ce(f,"ADD_DATA_URI_TAGS")?F(Ge(Ft),f.ADD_DATA_URI_TAGS,$):Ft,Me=Ce(f,"FORBID_CONTENTS")?F({},f.FORBID_CONTENTS,$):Mt,Y=Ce(f,"FORBID_TAGS")?F({},f.FORBID_TAGS,$):{},ct=Ce(f,"FORBID_ATTR")?F({},f.FORBID_ATTR,$):{},B=Ce(f,"USE_PROFILES")?f.USE_PROFILES:!1,ut=f.ALLOW_ARIA_ATTR!==!1,he=f.ALLOW_DATA_ATTR!==!1,lt=f.ALLOW_UNKNOWN_PROTOCOLS||!1,Nt=f.ALLOW_SELF_CLOSE_IN_ATTR!==!1,be=f.SAFE_FOR_TEMPLATES||!1,Ke=f.SAFE_FOR_XML!==!1,Le=f.WHOLE_DOCUMENT||!1,Ie=f.RETURN_DOM||!1,Be=f.RETURN_DOM_FRAGMENT||!1,et=f.RETURN_TRUSTED_TYPE||!1,Ze=f.FORCE_BODY||!1,It=f.SANITIZE_DOM!==!1,Dt=f.SANITIZE_NAMED_PROPS||!1,De=f.KEEP_CONTENT!==!1,qe=f.IN_PLACE||!1,Lt=f.ALLOWED_URI_REGEXP||_i,Fe=f.NAMESPACE||fe,U=f.CUSTOM_ELEMENT_HANDLING||{},f.CUSTOM_ELEMENT_HANDLING&amp;&amp;pt(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&amp;&amp;(U.tagNameCheck=f.CUSTOM_ELEMENT_HANDLING.tagNameCheck),f.CUSTOM_ELEMENT_HANDLING&amp;&amp;pt(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&amp;&amp;(U.attributeNameCheck=f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),f.CUSTOM_ELEMENT_HANDLING&amp;&amp;typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&amp;&amp;(U.allowCustomizedBuiltInElements=f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),be&amp;&amp;(he=!1),Be&amp;&amp;(Ie=!0),B&amp;&amp;(J=F({},Hr),V=[],B.html===!0&amp;&amp;(F(J,jr),F(V,Br)),B.svg===!0&amp;&amp;(F(J,Un),F(V,Hn),F(V,en)),B.svgFilters===!0&amp;&amp;(F(J,Fn),F(V,Hn),F(V,en)),B.mathMl===!0&amp;&amp;(F(J,jn),F(V,qr),F(V,en))),f.ADD_TAGS&amp;&amp;(J===Re&amp;&amp;(J=Ge(J)),F(J,f.ADD_TAGS,$)),f.ADD_ATTR&amp;&amp;(V===Pt&amp;&amp;(V=Ge(V)),F(V,f.ADD_ATTR,$)),f.ADD_URI_SAFE_ATTR&amp;&amp;F(ht,f.ADD_URI_SAFE_ATTR,$),f.FORBID_CONTENTS&amp;&amp;(Me===Mt&amp;&amp;(Me=Ge(Me)),F(Me,f.FORBID_CONTENTS,$)),De&amp;&amp;(J["#text"]=!0),Le&amp;&amp;F(J,["html","head","body"]),J.table&amp;&amp;(F(J,["tbody"]),delete Y.tbody),f.TRUSTED_TYPES_POLICY){if(typeof f.TRUSTED_TYPES_POLICY.createHTML!="function")throw St('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof f.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw St('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');N=f.TRUSTED_TYPES_POLICY,H=N.createHTML("")}else N===void 0&amp;&amp;(N=Ha(R,a)),N!==null&amp;&amp;typeof H=="string"&amp;&amp;(H=N.createHTML(""));ce&amp;&amp;ce(f),je=f}},mt=F({},["mi","mo","mn","ms","mtext"]),Bt=F({},["foreignobject","annotation-xml"]),Sn=F({},["title","style","font","a","script"]),qt=F({},[...Un,...Fn,...Oa]),ze=F({},[...jn,...xa]),Tn=function(f){let _=k(f);(!_||!_.tagName)&amp;&amp;(_={namespaceURI:Fe,tagName:"template"});const A=rn(f.tagName),z=rn(_.tagName);return dt[f.namespaceURI]?f.namespaceURI===Ue?_.namespaceURI===fe?A==="svg":_.namespaceURI===tt?A==="svg"&amp;&amp;(z==="annotation-xml"||mt[z]):!!qt[A]:f.namespaceURI===tt?_.namespaceURI===fe?A==="math":_.namespaceURI===Ue?A==="math"&amp;&amp;Bt[z]:!!ze[A]:f.namespaceURI===fe?_.namespaceURI===Ue&amp;&amp;!Bt[z]||_.namespaceURI===tt&amp;&amp;!mt[z]?!1:!ze[A]&amp;&amp;(Sn[A]||!qt[A]):!!(Pe==="application/xhtml+xml"&amp;&amp;dt[f.namespaceURI]):!1},de=function(f){_t(t.removed,{element:f});try{k(f).removeChild(f)}catch{d(f)}},rt=function(f,_){try{_t(t.removed,{attribute:_.getAttributeNode(f),from:_})}catch{_t(t.removed,{attribute:null,from:_})}if(_.removeAttribute(f),f==="is"&amp;&amp;!V[f])if(Ie||Be)try{de(_)}catch{}else try{_.setAttribute(f,"")}catch{}},zt=function(f){let _=null,A=null;if(Ze)f="&lt;remove&gt;&lt;/remove&gt;"+f;else{const G=Fr(f,/^[\r\n\t ]+/);A=G&amp;&amp;G[0]}Pe==="application/xhtml+xml"&amp;&amp;Fe===fe&amp;&amp;(f='&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;'+f+"&lt;/body&gt;&lt;/html&gt;");const z=N?N.createHTML(f):f;if(Fe===fe)try{_=new L().parseFromString(z,Pe)}catch{}if(!_||!_.documentElement){_=W.createDocument(Fe,"template",null);try{_.documentElement.innerHTML=ft?H:z}catch{}}const ee=_.body||_.documentElement;return f&amp;&amp;A&amp;&amp;ee.insertBefore(i.createTextNode(A),ee.childNodes[0]||null),Fe===fe?se.call(_,Le?"html":"body")[0]:Le?_.documentElement:ee},Wt=function(f){return X.call(f.ownerDocument||f,f,b.SHOW_ELEMENT|b.SHOW_COMMENT|b.SHOW_TEXT|b.SHOW_PROCESSING_INSTRUCTION|b.SHOW_CDATA_SECTION,null)},$t=function(f){return f instanceof S&amp;&amp;(typeof f.nodeName!="string"||typeof f.textContent!="string"||typeof f.removeChild!="function"||!(f.attributes instanceof v)||typeof f.removeAttribute!="function"||typeof f.setAttribute!="function"||typeof f.namespaceURI!="string"||typeof f.insertBefore!="function"||typeof f.hasChildNodes!="function")},Xt=function(f){return typeof m=="function"&amp;&amp;f instanceof m},Ee=function(f,_,A){ve[f]&amp;&amp;Zt(ve[f],z=&gt;{z.call(t,_,A,je)})},gt=function(f){let _=null;if(Ee("beforeSanitizeElements",f,null),$t(f))return de(f),!0;const A=$(f.nodeName);if(Ee("uponSanitizeElement",f,{tagName:A,allowedTags:J}),f.hasChildNodes()&amp;&amp;!Xt(f.firstElementChild)&amp;&amp;ae(/&lt;[/\w]/g,f.innerHTML)&amp;&amp;ae(/&lt;[/\w]/g,f.textContent)||f.nodeType===Et.progressingInstruction||Ke&amp;&amp;f.nodeType===Et.comment&amp;&amp;ae(/&lt;[/\w]/g,f.data))return de(f),!0;if(!J[A]||Y[A]){if(!Y[A]&amp;&amp;Gt(A)&amp;&amp;(U.tagNameCheck instanceof RegExp&amp;&amp;ae(U.tagNameCheck,A)||U.tagNameCheck instanceof Function&amp;&amp;U.tagNameCheck(A)))return!1;if(De&amp;&amp;!Me[A]){const z=k(f)||f.parentNode,ee=P(f)||f.childNodes;if(ee&amp;&amp;z){const G=ee.length;for(let oe=G-1;oe&gt;=0;--oe){const _e=T(ee[oe],!0);_e.__removalCount=(f.__removalCount||0)+1,z.insertBefore(_e,C(f))}}}return de(f),!0}return f instanceof y&amp;&amp;!Tn(f)||(A==="noscript"||A==="noembed"||A==="noframes")&amp;&amp;ae(/&lt;\/no(script|embed|frames)/i,f.innerHTML)?(de(f),!0):(be&amp;&amp;f.nodeType===Et.text&amp;&amp;(_=f.textContent,Zt([xe,Ne,at],z=&gt;{_=wt(_,z," ")}),f.textContent!==_&amp;&amp;(_t(t.removed,{element:f.cloneNode()}),f.textContent=_)),Ee("afterSanitizeElements",f,null),!1)},Oe=function(f,_,A){if(It&amp;&amp;(_==="id"||_==="name")&amp;&amp;(A in i||A in Ht))return!1;if(!(he&amp;&amp;!ct[_]&amp;&amp;ae(gn,_))){if(!(ut&amp;&amp;ae(yn,_))){if(!V[_]||ct[_]){if(!(Gt(f)&amp;&amp;(U.tagNameCheck instanceof RegExp&amp;&amp;ae(U.tagNameCheck,f)||U.tagNameCheck instanceof Function&amp;&amp;U.tagNameCheck(f))&amp;&amp;(U.attributeNameCheck instanceof RegExp&amp;&amp;ae(U.attributeNameCheck,_)||U.attributeNameCheck instanceof Function&amp;&amp;U.attributeNameCheck(_))||_==="is"&amp;&amp;U.allowCustomizedBuiltInElements&amp;&amp;(U.tagNameCheck instanceof RegExp&amp;&amp;ae(U.tagNameCheck,A)||U.tagNameCheck instanceof Function&amp;&amp;U.tagNameCheck(A))))return!1}else if(!ht[_]){if(!ae(Lt,wt(A,Ot,""))){if(!((_==="src"||_==="xlink:href"||_==="href")&amp;&amp;f!=="script"&amp;&amp;Ca(A,"data:")===0&amp;&amp;Ut[f])){if(!(lt&amp;&amp;!ae(vn,wt(A,Ot,"")))){if(A)return!1}}}}}}return!0},Gt=function(f){return f!=="annotation-xml"&amp;&amp;Fr(f,xt)},Jt=function(f){Ee("beforeSanitizeAttributes",f,null);const{attributes:_}=f;if(!_)return;const A={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V};let z=_.length;for(;z--;){const ee=_[z],{name:G,namespaceURI:oe,value:_e}=ee,We=$(G);let te=G==="value"?_e:ka(_e);if(A.attrName=We,A.attrValue=te,A.keepAttr=!0,A.forceKeepAttr=void 0,Ee("uponSanitizeAttribute",f,A),te=A.attrValue,Ke&amp;&amp;ae(/((--!?|])&gt;)|&lt;\/(style|title)/i,te)){rt(G,f);continue}if(A.forceKeepAttr||(rt(G,f),!A.keepAttr))continue;if(!Nt&amp;&amp;ae(/\/&gt;/i,te)){rt(G,f);continue}be&amp;&amp;Zt([xe,Ne,at],we=&gt;{te=wt(te,we," ")});const Vt=$(f.nodeName);if(Oe(Vt,We,te)){if(Dt&amp;&amp;(We==="id"||We==="name")&amp;&amp;(rt(G,f),te=bn+te),N&amp;&amp;typeof R=="object"&amp;&amp;typeof R.getAttributeType=="function"&amp;&amp;!oe)switch(R.getAttributeType(Vt,We)){case"TrustedHTML":{te=N.createHTML(te);break}case"TrustedScriptURL":{te=N.createScriptURL(te);break}}try{oe?f.setAttributeNS(oe,G,te):f.setAttribute(G,te),$t(f)?de(f):Ur(t.removed)}catch{}}}Ee("afterSanitizeAttributes",f,null)},En=function O(f){let _=null;const A=Wt(f);for(Ee("beforeSanitizeShadowDOM",f,null);_=A.nextNode();)Ee("uponSanitizeShadowNode",_,null),!gt(_)&amp;&amp;(_.content instanceof u&amp;&amp;O(_.content),Jt(_));Ee("afterSanitizeShadowDOM",f,null)};return t.sanitize=function(O){let f=arguments.length&gt;1&amp;&amp;arguments[1]!==void 0?arguments[1]:{},_=null,A=null,z=null,ee=null;if(ft=!O,ft&amp;&amp;(O="&lt;!--&gt;"),typeof O!="string"&amp;&amp;!Xt(O))if(typeof O.toString=="function"){if(O=O.toString(),typeof O!="string")throw St("dirty is not a string, aborting")}else throw St("toString is not a function");if(!t.isSupported)return O;if(Qe||nt(f),t.removed=[],typeof O=="string"&amp;&amp;(qe=!1),qe){if(O.nodeName){const _e=$(O.nodeName);if(!J[_e]||Y[_e])throw St("root node is forbidden and cannot be sanitized in-place")}}else if(O instanceof m)_=zt("&lt;!----&gt;"),A=_.ownerDocument.importNode(O,!0),A.nodeType===Et.element&amp;&amp;A.nodeName==="BODY"||A.nodeName==="HTML"?_=A:_.appendChild(A);else{if(!Ie&amp;&amp;!be&amp;&amp;!Le&amp;&amp;O.indexOf("&lt;")===-1)return N&amp;&amp;et?N.createHTML(O):O;if(_=zt(O),!_)return Ie?null:et?H:""}_&amp;&amp;Ze&amp;&amp;de(_.firstChild);const G=Wt(qe?O:_);for(;z=G.nextNode();)gt(z)||(z.content instanceof u&amp;&amp;En(z.content),Jt(z));if(qe)return O;if(Ie){if(Be)for(ee=Z.call(_.ownerDocument);_.firstChild;)ee.appendChild(_.firstChild);else ee=_;return(V.shadowroot||V.shadowrootmode)&amp;&amp;(ee=le.call(s,ee,!0)),ee}let oe=Le?_.outerHTML:_.innerHTML;return Le&amp;&amp;J["!doctype"]&amp;&amp;_.ownerDocument&amp;&amp;_.ownerDocument.doctype&amp;&amp;_.ownerDocument.doctype.name&amp;&amp;ae(wi,_.ownerDocument.doctype.name)&amp;&amp;(oe="&lt;!DOCTYPE "+_.ownerDocument.doctype.name+`&gt;
`+oe),be&amp;&amp;Zt([xe,Ne,at],_e=&gt;{oe=wt(oe,_e," ")}),N&amp;&amp;et?N.createHTML(oe):oe},t.setConfig=function(){let O=arguments.length&gt;0&amp;&amp;arguments[0]!==void 0?arguments[0]:{};nt(O),Qe=!0},t.clearConfig=function(){je=null,Qe=!1},t.isValidAttribute=function(O,f,_){je||nt({});const A=$(O),z=$(f);return Oe(A,z,_)},t.addHook=function(O,f){typeof f=="function"&amp;&amp;(ve[O]=ve[O]||[],_t(ve[O],f))},t.removeHook=function(O){if(ve[O])return Ur(ve[O])},t.removeHooks=function(O){ve[O]&amp;&amp;(ve[O]=[])},t.removeAllHooks=function(){ve={}},t}var it=Si();class Ba{constructor(){this.injectHTML(),this.headerSearchIcon=document.querySelector(".header-search-icon"),this.overlay=document.querySelector(".search-overlay"),this.closeIcon=document.querySelector(".close-live-search"),this.inputField=document.querySelector("#live-search-field"),this.resultsArea=document.querySelector(".live-search-results"),this.loaderIcon=document.querySelector(".circle-loader"),this.typingWaitTimer,this.previousValue="",this.events()}events(){this.inputField.addEventListener("keyup",()=&gt;this.keyPressHandler()),this.closeIcon.addEventListener("click",()=&gt;this.closeOverlay()),this.headerSearchIcon.addEventListener("click",t=&gt;{t.preventDefault(),this.openOverlay()}),document.addEventListener("keydown",t=&gt;{t.key.toUpperCase()=="S"&amp;&amp;!this.overlay.classList.contains("search-overlay--visible")&amp;&amp;document.activeElement.nodeName!="INPUT"&amp;&amp;document.activeElement.nodeName!="TEXTAREA"&amp;&amp;this.openOverlay(),t.key=="Escape"&amp;&amp;this.overlay.classList.contains("search-overlay--visible")&amp;&amp;this.closeOverlay()})}keyPressHandler(){let t=this.inputField.value;t==""&amp;&amp;(clearTimeout(this.typingWaitTimer),this.hideLoaderIcon(),this.hideResultsArea()),t!=""&amp;&amp;t!=this.previousValue&amp;&amp;(clearTimeout(this.typingWaitTimer),this.showLoaderIcon(),this.hideResultsArea(),this.typingWaitTimer=setTimeout(()=&gt;this.sendRequest(),750)),this.previousValue=t}async sendRequest(){const t=await axios(`/search/${this.inputField.value}`);this.renderResultsHTML(t.data)}renderResultsHTML(t){t.length?this.resultsArea.innerHTML=it.sanitize(`&lt;div class="list-group shadow-sm"&gt;
      &lt;div class="list-group-item active"&gt;&lt;strong&gt;Search Results&lt;/strong&gt; (${t.length&gt;1?`${t.length} items found`:"1 item found"})&lt;/div&gt;
      ${t.map(i=&gt;{let s=new Date(i.created_at);return`&lt;a href="/post/${i.id}" class="list-group-item list-group-item-action"&gt;
        &lt;img class="avatar-tiny" src="${i.user.avatar}"&gt; &lt;strong&gt;${i.title}&lt;/strong&gt;
        &lt;span class="text-muted small"&gt;by ${i.user.username} on ${s.getMonth()+1}/${s.getDate()}/${s.getFullYear()}&lt;/span&gt;
      &lt;/a&gt;`}).join("")}
    &lt;/div&gt;`):this.resultsArea.innerHTML='&lt;p class="alert alert-danger text-center shadow-sm"&gt;Sorry, we could not find any results for that search.&lt;/p&gt;',this.hideLoaderIcon(),this.showResultsArea()}showLoaderIcon(){this.loaderIcon.classList.add("circle-loader--visible")}hideLoaderIcon(){this.loaderIcon.classList.remove("circle-loader--visible")}showResultsArea(){this.resultsArea.classList.add("live-search-results--visible")}hideResultsArea(){this.resultsArea.classList.remove("live-search-results--visible")}openOverlay(){this.overlay.classList.add("search-overlay--visible"),setTimeout(()=&gt;this.inputField.focus(),50)}closeOverlay(){this.overlay.classList.remove("search-overlay--visible")}injectHTML(){document.body.insertAdjacentHTML("beforeend",`&lt;div class="search-overlay"&gt;
    &lt;div class="search-overlay-top shadow-sm"&gt;
      &lt;div class="container container--narrow"&gt;
        &lt;label for="live-search-field" class="search-overlay-icon"&gt;&lt;i class="fas fa-search"&gt;&lt;/i&gt;&lt;/label&gt;
        &lt;input autocomplete="off" type="text" id="live-search-field" class="live-search-field" placeholder="What are you interested in?"&gt;
        &lt;span class="close-live-search"&gt;&lt;i class="fas fa-times-circle"&gt;&lt;/i&gt;&lt;/span&gt;
      &lt;/div&gt;
    &lt;/div&gt;

    &lt;div class="search-overlay-bottom"&gt;
      &lt;div class="container container--narrow py-3"&gt;
        &lt;div class="circle-loader"&gt;&lt;/div&gt;
        &lt;div class="live-search-results"&gt;&lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;`)}}class qa{constructor(){this.openedYet=!1,this.chatWrapper=document.querySelector("#chat-wrapper"),this.avatar=document.querySelector("#chat-wrapper").dataset.avatar,this.openIcon=document.querySelector(".header-chat-icon"),this.injectHTML(),this.chatLog=document.querySelector("#chat"),this.chatField=document.querySelector("#chatField"),this.chatForm=document.querySelector("#chatForm"),this.closeIcon=document.querySelector(".chat-title-bar-close"),this.events()}events(){this.chatForm.addEventListener("submit",t=&gt;{t.preventDefault(),this.sendMessageToServer()}),this.openIcon.addEventListener("click",()=&gt;this.showChat()),this.closeIcon.addEventListener("click",()=&gt;this.hideChat())}sendMessageToServer(){const t=document.createElement("div");t.innerHTML=it.sanitize(this.chatField.value),axios.post("/send-chat-message",{textvalue:this.chatField.value}),this.chatLog.insertAdjacentHTML("beforeend",it.sanitize(`
    &lt;div class="chat-self"&gt;
        &lt;div class="chat-message"&gt;
          &lt;div class="chat-message-inner"&gt;
            ${t.textContent}
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;img class="chat-avatar avatar-tiny" src="${this.avatar}"&gt;
      &lt;/div&gt;
    `)),this.chatLog.scrollTop=this.chatLog.scrollHeight,this.chatField.value="",this.chatField.focus()}hideChat(){this.chatWrapper.classList.remove("chat--visible")}showChat(){this.openedYet||this.openConnection(),this.openedYet=!0,this.chatWrapper.classList.add("chat--visible"),this.chatField.focus()}openConnection(){Echo.private("chatchannel").listen("ChatMessage",t=&gt;{this.displayMessageFromServer(t.chat)})}displayMessageFromServer(t){this.chatLog.insertAdjacentHTML("beforeend",it.sanitize(`
    &lt;div class="chat-other"&gt;
        &lt;a href="/profile/${t.username}"&gt;&lt;img class="avatar-tiny" src="${t.avatar}"&gt;&lt;/a&gt;
        &lt;div class="chat-message"&gt;&lt;div class="chat-message-inner"&gt;
          &lt;a href="/profile/${t.username}"&gt;&lt;strong&gt;${t.username}:&lt;/strong&gt;&lt;/a&gt;
          ${t.textvalue}
        &lt;/div&gt;&lt;/div&gt;
      &lt;/div&gt;
    `)),this.chatLog.scrollTop=this.chatLog.scrollHeight}injectHTML(){this.chatWrapper.classList.add("chat-wrapper--ready"),this.chatWrapper.innerHTML=`
    &lt;div class="chat-title-bar"&gt;Chat &lt;span class="chat-title-bar-close"&gt;&lt;i class="fas fa-times-circle"&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
    &lt;div id="chat" class="chat-log"&gt;&lt;/div&gt;
    
    &lt;form id="chatForm" class="chat-form border-top"&gt;
      &lt;input type="text" class="chat-field" id="chatField" placeholder="Type a message…" autocomplete="off"&gt;
    &lt;/form&gt;
    `}}class za{constructor(){this.links=document.querySelectorAll(".profile-nav a"),this.contentArea=document.querySelector(".profile-slot-content"),this.events()}events(){addEventListener("popstate",()=&gt;{this.handleChange()}),this.links.forEach(t=&gt;{t.addEventListener("click",i=&gt;this.handleLinkClick(i))})}handleChange(){this.links.forEach(t=&gt;t.classList.remove("active")),this.links.forEach(async t=&gt;{if(t.getAttribute("href")==window.location.pathname){const i=await axios.get(t.href+"/raw");this.contentArea.innerHTML=it.sanitize(i.data.theHTML),document.title=i.data.docTitle+" | Witta",t.classList.add("active")}})}async handleLinkClick(t){this.links.forEach(s=&gt;s.classList.remove("active")),t.target.classList.add("active"),t.preventDefault();const i=await axios.get(t.target.href+"/raw");this.contentArea.innerHTML=it.sanitize(i.data.theHTML),document.title=i.data.docTitle+" | Witta",history.pushState({},"",t.target.href)}}document.querySelector(".header-search-icon")&amp;&amp;new Ba;document.querySelector(".header-chat-icon")&amp;&amp;new qa;document.querySelector(".profile-nav")&amp;&amp;new za;
</pre></body></html>