PageSourceSearch

https://www.civicinnovation.ai/_nuxt/BSQO6PYm.js

js civicinnovation.ai collected 2026-10-05 11:57:51 UTC 61,600 bytes, 2 lines download raw bytes

1import{t as Yn}from"./DS2seoW7.js";var Zn=Yn(((he,Se)=>{(function(te,N){typeof he=="object"&&typeof Se=="object"?Se.exports=N():typeof define=="function"&&define.amd?define([],N):typeof he=="object"?he.Pusher=N():te.Pusher=N()})(self,()=>(()=>{var Ce={594(O,_){"use strict";var v=this&&this.__extends||(function(){var f=function(a,c){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,w){d.__proto__=w}||function(d,w){for(var x in w)w.hasOwnProperty(x)&&(d[x]=w[x])},f(a,c)};return function(a,c){f(a,c);function d(){this.constructor=a}a.prototype=c===null?Object.create(c):(d.prototype=c.prototype,new d)}})();Object.defineProperty(_,"__esModule",{value:!0});var b=256,C=(function(){function f(a){a===void 0&&(a="="),this._paddingCharacter=a}return f.prototype.encodedLength=function(a){return this._paddingCharacter?(a+2)/3*4|0:(a*8+5)/6|0},f.prototype.encode=function(a){for(var c="",d=0;d<a.length-2;d+=3){var w=a[d]<<16|a[d+1]<<8|a[d+2];c+=this._encodeByte(w>>>18&63),c+=this._encodeByte(w>>>12&63),c+=this._encodeByte(w>>>6&63),c+=this._encodeByte(w>>>0&63)}var x=a.length-d;if(x>0){var w=a[d]<<16|(x===2?a[d+1]<<8:0);c+=this._encodeByte(w>>>18&63),c+=this._encodeByte(w>>>12&63),x===2?c+=this._encodeByte(w>>>6&63):c+=this._paddingCharacter||"",c+=this._paddingCharacter||""}return c},f.prototype.maxDecodedLength=function(a){return this._paddingCharacter?a/4*3|0:(a*6+7)/8|0},f.prototype.decodedLength=function(a){return this.maxDecodedLength(a.length-this._getPaddingLength(a))},f.prototype.decode=function(a){if(a.length===0)return new Uint8Array(0);for(var c=this._getPaddingLength(a),d=a.length-c,w=new Uint8Array(this.maxDecodedLength(d)),x=0,L=0,U=0,H=0,I=0,z=0,X=0;L<d-4;L+=4)H=this._decodeChar(a.charCodeAt(L+0)),I=this._decodeChar(a.charCodeAt(L+1)),z=this._decodeChar(a.charCodeAt(L+2)),X=this._decodeChar(a.charCodeAt(L+3)),w[x++]=H<<2|I>>>4,w[x++]=I<<4|z>>>2,w[x++]=z<<6|X,U|=H&b,U|=I&b,U|=z&b,U|=X&b;if(L<d-1&&(H=this._decodeChar(a.charCodeAt(L)),I=this._decodeChar(a.charCodeAt(L+1)),w[x++]=H<<2|I>>>4,U|=H&b,U|=I&b),L<d-2&&(z=this._decodeChar(a.charCodeAt(L+2)),w[x++]=I<<4|z>>>2,U|=z&b),L<d-3&&(X=this._decodeChar(a.charCodeAt(L+3)),w[x++]=z<<6|X,U|=X&b),U!==0)throw new Error("Base64Coder: incorrect characters for decoding");return w},f.prototype._encodeByte=function(a){var c=a;return c+=65,c+=25-a>>>8&6,c+=51-a>>>8&-75,c+=61-a>>>8&-15,c+=62-a>>>8&3,String.fromCharCode(c)},f.prototype._decodeChar=function(a){var c=b;return c+=(42-a&a-44)>>>8&-b+a-43+62,c+=(46-a&a-48)>>>8&-b+a-47+63,c+=(47-a&a-58)>>>8&-b+a-48+52,c+=(64-a&a-91)>>>8&-b+a-65+0,c+=(96-a&a-123)>>>8&-b+a-97+26,c},f.prototype._getPaddingLength=function(a){var c=0;if(this._paddingCharacter){for(var d=a.length-1;d>=0&&a[d]===this._paddingCharacter;d--)c++;if(a.length<4||c>2)throw new Error("Base64Coder: incorrect padding")}return c},f})();_.Coder=C;var p=new C;function P(f){return p.encode(f)}_.encode=P;function y(f){return p.decode(f)}_.decode=y;var j=(function(f){v(a,f);function a(){return f!==null&&f.apply(this,arguments)||this}return a.prototype._encodeByte=function(c){var d=c;return d+=65,d+=25-c>>>8&6,d+=51-c>>>8&-75,d+=61-c>>>8&-13,d+=62-c>>>8&49,String.fromCharCode(d)},a.prototype._decodeChar=function(c){var d=b;return d+=(44-c&c-46)>>>8&-b+c-45+62,d+=(94-c&c-96)>>>8&-b+c-95+63,d+=(47-c&c-58)>>>8&-b+c-48+52,d+=(64-c&c-91)>>>8&-b+c-65+0,d+=(96-c&c-123)>>>8&-b+c-97+26,d},a})(C);_.URLSafeCoder=j;var E=new j;function F(f){return E.encode(f)}_.encodeURLSafe=F;function D(f){return E.decode(f)}_.decodeURLSafe=D,_.encodedLength=function(f){return p.encodedLength(f)},_.maxDecodedLength=function(f){return p.maxDecodedLength(f)},_.decodedLength=function(f){return p.decodedLength(f)}},978(O,_){"use strict";var v="utf8: invalid source encoding";function b(C){for(var p=[],P=0;P<C.length;P++){var y=C[P];if(y&128){var j=void 0;if(y<224){if(P>=C.length)throw new Error(v);var E=C[++P];if((E&192)!==128)throw new Error(v);y=(y&31)<<6|E&63,j=128}else if(y<240){if(P>=C.length-1)throw new Error(v);var E=C[++P],F=C[++P];if((E&192)!==128||(F&192)!==128)throw new Error(v);y=(y&15)<<12|(E&63)<<6|F&63,j=2048}else if(y<248){if(P>=C.length-2)throw new Error(v);var E=C[++P],F=C[++P],D=C[++P];if((E&192)!==128||(F&192)!==128||(D&192)!==128)throw new Error(v);y=(y&15)<<18|(E&63)<<12|(F&63)<<6|D&63,j=65536}else throw new Error(v);
1if(y<j||y>=55296&&y<=57343)throw new Error(v);if(y>=65536){if(y>1114111)throw new Error(v);y-=65536,p.push(String.fromCharCode(55296|y>>10)),y=56320|y&1023}}p.push(String.fromCharCode(y))}return p.join("")}_.D4=b},721(O,_,v){O.exports=v(207).default},207(O,_,v){"use strict";v.d(_,{default:()=>ae});class b{constructor(e,t){this.lastId=0,this.prefix=e,this.name=t}create(e){this.lastId++;var t=this.lastId,r=this.prefix+t,i=this.name+"["+t+"]",s=!1,o=function(){s||(e.apply(null,arguments),s=!0)};return this[t]=o,{number:t,id:r,name:i,callback:o}}remove(e){delete this[e.number]}}var C=new b("_pusher_script_","Pusher.ScriptReceivers");const p={VERSION:"8.6.0",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:""};class P{constructor(e){this.options=e,this.receivers=e.receivers||C,this.loading={}}load(e,t,r){var i=this;if(i.loading[e]&&i.loading[e].length>0)i.loading[e].push(r);else{i.loading[e]=[r];var s=l.createScriptRequest(i.getPath(e,t)),o=i.receivers.create(function(h){if(i.receivers.remove(o),i.loading[e]){var u=i.loading[e];delete i.loading[e];for(var m=function(T){T||s.cleanup()},g=0;g<u.length;g++)u[g](h,m)}});s.send(o)}}getRoot(e){var t,r=l.getDocument().location.protocol;return e&&e.useTLS||r==="https:"?t=this.options.cdn_https:t=this.options.cdn_http,t.replace(/\/*$/,"")+"/"+this.options.version}getPath(e,t){return this.getRoot(t)+"/"+e+this.options.suffix+".js"}}var y=new b("_pusher_dependencies","Pusher.DependenciesReceivers"),j=new P({cdn_http:p.cdn_http,cdn_https:p.cdn_https,version:p.VERSION,suffix:p.dependency_suffix,receivers:y});const E={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"}}},D={buildLogSuffix:function(n){const e="See:",t=E.urls[n];if(!t)return"";let r;return t.fullUrl?r=t.fullUrl:t.path&&(r=E.baseUrl+t.path),r?`${e} ${r}`:""}};var f;(function(n){n.UserAuthentication="user-authentication",n.ChannelAuthorization="channel-authorization"})(f||(f={}));class a 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 d 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 L extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class U extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}
1class H extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class I extends Error{constructor(e,t){super(t),this.status=e,Object.setPrototypeOf(this,new.target.prototype)}}const X=function(n,e,t,r,i){const s=l.createXHR();s.open("POST",t.endpoint,!0),s.setRequestHeader("Content-Type","application/x-www-form-urlencoded");for(var o in t.headers)s.setRequestHeader(o,t.headers[o]);if(t.headersProvider!=null){let h=t.headersProvider();for(var o in h)s.setRequestHeader(o,h[o])}return s.onreadystatechange=function(){if(s.readyState===4)if(s.status===200){let h,u=!1;try{h=JSON.parse(s.responseText),u=!0}catch{i(new I(200,`JSON returned from ${r.toString()} endpoint was invalid, yet status code was 200. Data was: ${s.responseText}`),null)}u&&i(null,h)}else{let h="";switch(r){case f.UserAuthentication:h=D.buildLogSuffix("authenticationEndpoint");break;case f.ChannelAuthorization:h=`Clients must be authorized to join private or presence channels. ${D.buildLogSuffix("authorizationEndpoint")}`}i(new I(s.status,`Unable to retrieve auth string from ${r.toString()} endpoint - received status: ${s.status} from ${t.endpoint}. ${h}`),null)}},s.send(e),s};function Ze(n){return st(rt(n))}for(var K=String.fromCharCode,V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",et={},ne=0,tt=V.length;ne<tt;ne++)et[V.charAt(ne)]=ne;var nt=function(n){var e=n.charCodeAt(0);return e<128?n:e<2048?K(192|e>>>6)+K(128|e&63):K(224|e>>>12&15)+K(128|e>>>6&63)+K(128|e&63)},rt=function(n){return n.replace(/[^\x00-\x7F]/g,nt)},it=function(n){var e=[0,2,1][n.length%3],t=n.charCodeAt(0)<<16|(n.length>1?n.charCodeAt(1):0)<<8|(n.length>2?n.charCodeAt(2):0);return[V.charAt(t>>>18),V.charAt(t>>>12&63),e>=2?"=":V.charAt(t>>>6&63),e>=1?"=":V.charAt(t&63)].join("")},st=typeof window<"u"&&window.btoa||function(n){return n.replace(/[\s\S]{1,3}/g,it)};
1class ot{constructor(e,t,r,i){this.clear=t,this.timer=e(()=>{this.timer&&(this.timer=i(this.timer))},r)}isRunning(){return this.timer!==null}ensureAborted(){this.timer&&(this.clear(this.timer),this.timer=null)}}const Te=ot;function at(n){window.clearTimeout(n)}function ct(n){window.clearInterval(n)}class J extends Te{constructor(e,t){super(setTimeout,at,e,function(r){return t(),null})}}class ht extends Te{constructor(e,t){super(setInterval,ct,e,function(r){return t(),r})}}const A={now(){return Date.now?Date.now():new Date().valueOf()},defer(n){return new J(0,n)},method(n,...e){var t=Array.prototype.slice.call(arguments,1);return function(r){return r[n].apply(r,t.concat(arguments))}}};function R(n,...e){for(var t=0;t<e.length;t++){var r=e[t];for(var i in r)i==="__proto__"||i==="constructor"||i==="prototype"||(r[i]&&r[i].constructor&&r[i].constructor===Object?n[i]=R(n[i]||{},r[i]):n[i]=r[i])}return n}function ut(){for(var n=["Pusher"],e=0;e<arguments.length;e++)typeof arguments[e]=="string"?n.push(arguments[e]):n.push(re(arguments[e]));return n.join(" : ")}function ke(n,e){var t=Array.prototype.indexOf;if(n===null)return-1;if(t&&n.indexOf===t)return n.indexOf(e);for(var r=0,i=n.length;r<i;r++)if(n[r]===e)return r;return-1}function M(n,e){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&e(n[t],t,n)}function Pe(n){var e=[];return M(n,function(t,r){e.push(r)}),e}function lt(n){var e=[];return M(n,function(t){e.push(t)}),e}function Y(n,e,t){for(var r=0;r<n.length;r++)e.call(t||window,n[r],r,n)}function xe(n,e){for(var t=[],r=0;r<n.length;r++)t.push(e(n[r],r,n,t));return t}function dt(n,e){var t={};return M(n,function(r,i){t[i]=e(r)}),t}function Le(n,e){e=e||function(i){return!!i};for(var t=[],r=0;r<n.length;r++)e(n[r],r,n,t)&&t.push(n[r]);return t}function Ae(n,e){var t={};return M(n,function(r,i){(e&&e(r,i,n,t)||r)&&(t[i]=r)}),t}function ft(n){var e=[];return M(n,function(t,r){e.push([r,t])}),e}function Ee(n,e){for(var t=0;t<n.length;t++)if(e(n[t],t,n))return!0;return!1}function pt(n,e){for(var t=0;t<n.length;t++)if(!e(n[t],t,n))return!1;return!0}function gt(n){return dt(n,function(e){return e===null?"":(typeof e=="object"&&(e=re(e)),encodeURIComponent(Ze(e.toString())))})}function vt(n){return xe(ft(gt(Ae(n,function(e){return e!==void 0}))),A.method("join","=")).join("&")}function mt(n){var e=[],t=[];return(function r(i,s){var o,h,u;switch(typeof i){case"object":if(!i)return null;for(o=0;o<e.length;o+=1)if(e[o]===i)return{$ref:t[o]};if(e.push(i),t.push(s),Object.prototype.toString.apply(i)==="[object Array]")for(u=[],o=0;o<i.length;o+=1)u[o]=r(i[o],s+"["+o+"]");else{u={};for(h in i)Object.prototype.hasOwnProperty.call(i,h)&&(u[h]=r(i[h],s+"["+JSON.stringify(h)+"]"))}return u;case"number":case"string":case"boolean":return i}})(n,"$")}function re(n){try{return JSON.stringify(n)}catch{return JSON.stringify(mt(n))}}class bt{constructor(){this.globalLog=e=>{window.console&&window.console.log&&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&&window.console.warn?window.console.warn(e):this.globalLog(e)}globalLogError(e){window.console&&window.console.error?window.console.error(e):this.globalLogWarn(e)}log(e,...t){var r=ut.apply(this,arguments);ae.log?ae.log(r):ae.logToConsole&&e.bind(this)(r)}}const S=new bt;var yt=function(n,e,t,r,i){(t.headers!==void 0||t.headersProvider!=null)&&S.warn(`To send headers with the ${r.toString()} request, you must use AJAX, rather than JSONP.`);var s=n.nextAuthCallbackID.toString();n.nextAuthCallbackID++;var o=n.getDocument(),h=o.createElement("script");n.auth_callbacks[s]=function(g){i(null,g)};var u="Pusher.auth_callbacks['"+s+"']";h.src=t.endpoint+"?callback="+encodeURIComponent(u)+"&"+e;var m=o.getElementsByTagName("head")[0]||o.documentElement;m.insertBefore(h,m.firstChild)};const _t=yt;class wt{constructor(e){this.src=e}send(e){var t=this,r="Error loading "+t.src;t.script=document.createElement("script"),t.script.id=e.id,t.script.src=t.src,t.script.type="text/javascript",t.script.charset="UTF-8",t.script.addEventListener?(t.script.onerror=function(){e.callback(r)},t.script.onload=function(){e.callback(null)}):t.script.onreadystatechange=function(){(t.script.readyState==="loaded"||t.script.readyState==="complete")&&e.callback(null)},t.script.async===void 0&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(t.errorScript=document.createElement("script"),t.errorScript.id=e.id+"_error",t.errorScript.text=e.name+"('"+r+"');",t.script.async=t.errorScript.async=!1):t.script.async=!0;var i=document.getElementsByTagName("head")[0];i.insertBefore(t.script,i.firstChild),t.errorScript&&i.insertBefore(t.errorScript,t.script.nextSibling)}cleanup(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null}}class St{constructor(e,t){this.url=e,this.data=t}send(e){if(!this.request){var t=vt(this.data),r=this.url+"/"+e.number+"?"+t;this.request=l.createScriptRequest(r),this.request.send(e)}}cleanup(){this.request&&this.request.cleanup()}}var Ct=function(n,e){return function(t,r){var i="http"+(e?"s":"")+"://"+(n.host||n.options.host)+n.options.path,s=l.createJSONPRequest(i,t),o=l.ScriptReceivers.create(function(h,u){C.remove(o),s.cleanup(),u&&u.host&&(n.host=u.host),r&&r(h,u)});s.send(o)}};const Tt={name:"jsonp",getAgent:Ct};function ue(n,e,t){var r=n+(e.useTLS?"s":""),i=e.useTLS?e.hostTLS:e.hostNonTLS;return r+"://"+i+t}function le(n,e){return"/app/"+n+("?protocol="+p.PROTOCOL+"&client=js&ver
1sion="+p.VERSION+(e?"&"+e:""))}var kt={getInitial:function(n,e){return ue("ws",e,(e.httpPath||"")+le(n,"flash=false"))}},Pt={getInitial:function(n,e){return ue("http",e,(e.httpPath||"/pusher")+le(n))}},xt={getInitial:function(n,e){return ue("http",e,e.httpPath||"/pusher")},getPath:function(n,e){return le(n)}};class Lt{constructor(){this._callbacks={}}get(e){return this._callbacks[de(e)]}add(e,t,r){var i=de(e);this._callbacks[i]=this._callbacks[i]||[],this._callbacks[i].push({fn:t,context:r})}remove(e,t,r){if(!e&&!t&&!r){this._callbacks={};return}var i=e?[de(e)]:Pe(this._callbacks);t||r?this.removeCallback(i,t,r):this.removeAllCallbacks(i)}removeCallback(e,t,r){Y(e,function(i){this._callbacks[i]=Le(this._callbacks[i]||[],function(s){return t&&t!==s.fn||r&&r!==s.context}),this._callbacks[i].length===0&&delete this._callbacks[i]},this)}removeAllCallbacks(e){Y(e,function(t){delete this._callbacks[t]},this)}}function de(n){return"_"+n}class q{constructor(e){this.callbacks=new Lt,this.global_callbacks=[],this.failThrough=e}bind(e,t,r){return this.callbacks.add(e,t,r),this}bind_global(e){return this.global_callbacks.push(e),this}unbind(e,t,r){return this.callbacks.remove(e,t,r),this}unbind_global(e){return e?(this.global_callbacks=Le(this.global_callbacks||[],t=>t!==e),this):(this.global_callbacks=[],this)}unbind_all(){return this.unbind(),this.unbind_global(),this}emit(e,t,r){for(var i=0;i<this.global_callbacks.length;i++)this.global_callbacks[i](e,t);var s=this.callbacks.get(e),o=[];if(r?o.push(t,r):t&&o.push(t),s&&s.length>0)for(var i=0;i<s.length;i++)s[i].fn.apply(s[i].context||window,o);else this.failThrough&&this.failThrough(e,t);return this}}class At extends q{constructor(e,t,r,i,s){super(),this.initialize=l.transportConnectionInitializer,this.hooks=e,this.name=t,this.priority=r,this.key=i,this.options=s,this.state="new",this.timeline=s.timeline,this.activityTimeout=s.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(t){return A.defer(()=>{this.onError(t),this.changeState("closed")}),!1}return this.bindListeners(),S.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"?(A.defer(()=>{this.socket&&this.socket.send(e)}),!0):!1}ping(){this.state==="open"&&this.supportsPing()&&this.socket.ping()}onOpen(){this.hooks.beforeOpen&&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=()=>{this.onOpen()},this.socket.onerror=e=>{this.onError(e)},this.socket.onclose=e=>{this.onClose(e)},this.socket.onmessage=e=>{this.onMessage(e)},this.supportsPing()&&(this.socket.onactivity=()=>{this.onActivity()})}unbindListeners(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))}changeState(e,t){this.state=e,this.timeline.info(this.buildTimelineMessage({state:e,params:t})),this.emit(e,t)}buildTimelineMessage(e){return R({cid:this.id},e)}}class Q{constructor(e){this.hooks=e}isSupported(e){return this.hooks.isSupported(e)}createConnection(e,t,r,i){return new At(this.hooks,e,t,r,i)}}var Et=new Q({urls:kt,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return!!l.getWebSocketAPI()},isSupported:function(){return!!l.getWebSocketAPI()},getSocket:function(n){return l.createWebSocket(n)}}),Re={urls:Pt,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},Oe=R({getSocket:function(n){return l.HTTPFactory.createStreamingSocket(n)}},Re),Ie=R({getSocket:function(n){return l.HTTPFactory.createPollingSocket(n)}},Re),Ne={isSupported:function(){return l.isXHRSupported()}};const ie={ws:Et,xhr_streaming:new Q(R({},Oe,Ne)),xhr_polling:new Q(R({},Ie,Ne))};var Rt=new Q({file:"sockjs",urls:xt,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return window.SockJS!==void 0},getSocket:function(n,e){return new window.SockJS(n,null,{js_path:j.getPath("sockjs",{useTLS:e.useTLS}),ignore_null_origin:e.ignoreNullOrigin})},beforeOpen:function(n,e){n.send(JSON.stringify({path:e}))}}),je={isSupported:function(n){return l.isXDRSupported(n.useTLS)}},Ot=new Q(R({},Oe,je)),It=new Q(R({},Ie,je));ie.xdr_streaming=Ot,ie.xdr_polling=It,ie.sockjs=Rt;const Nt=ie;class jt extends q{constructor(){super();var e=this;typeof window<"u"&&window.addEventListener!==void 0&&(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 Ut=new jt;class Dt{constructor(e,t,r){this.manager=e,this.transport=t,this.minPingDelay=r.minPingDelay,this.maxPingDelay=r.maxPingDelay,this.pingDelay=void 0}createConnection(e,t,r,i){i=R({},i,{activityTimeout:this.pingDelay});var s=this.transport.createConnection(e,t,r,i),o=null,h=function(){s.unbind("open",h),s.bind("closed",u),o=A.now()},u=m=>{if(s.unbind("closed",u),m.code===1002||m.code===1003)this.manager.reportDeath();else if(!m.wasClean&&o){var g=A.now()-o;g<2*this.maxPingDelay&&(this.manager.reportDeath(),this.pingDelay=Math.max(g/2,this.minPingDelay))}};return s.bind("open",h),s}isSupported(e){return this.manager.isAlive()&&this.transport.isSupported(e)}}const Ue={decodeMessage:function(n){try{var e=JSON.parse(n.data),t=e.data;if(typeof t=="string")try{t=JSON.parse(e.data)}catch{}var r={event:e.event,channel:e.channel,data:t};return e.user_id&&(r.user_id=e.user_id),r}catch(i){throw{type:"MessageParseError",error:i,data:n.data}}},encodeMessage:function(n){return JSON.stringify(n)},processHandshake:function(n){var e=Ue.decodeMessage(n);if(e.event==="pusher:connection_established"){if(!e.data.activity_timeout)throw"No activity timeout specified in handshake";
1return{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(n){return n.code<4e3?n.code>=1002&&n.code<=1004?"backoff":null:n.code===4e3?"tls_only":n.code<4100?"refused":n.code<4200?"backoff":n.code<4300?"retry":"refused"},getCloseError:function(n){return n.code!==1e3&&n.code!==1001?{type:"PusherError",data:{code:n.code,message:n.reason||n.message}}:null}},$=Ue;class Ht extends q{constructor(e,t){super(),this.id=e,this.transport=t,this.activityTimeout=t.activityTimeout,this.bindListeners()}handlesActivityChecks(){return this.transport.handlesActivityChecks()}send(e){return this.transport.send(e)}send_event(e,t,r){var i={event:e,data:t};return r&&(i.channel=r),S.debug("Event sent",i),this.send($.encodeMessage(i))}ping(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}close(){this.transport.close()}bindListeners(){var e={message:r=>{var i;try{i=$.decodeMessage(r)}catch(s){this.emit("error",{type:"MessageParseError",error:s,data:r.data})}if(i!==void 0){switch(S.debug("Event recd",i),i.event){case"pusher:error":this.emit
1("error",{type:"PusherError",data:i.data});break;case"pusher:ping":this.emit("ping");break;case"pusher:pong":this.emit("pong")}this.emit("message",i)}},activity:()=>{this.emit("activity")},error:r=>{this.emit("error",r)},closed:r=>{t(),r&&r.code&&this.handleCloseEvent(r),this.transport=null,this.emit("closed")}},t=()=>{M(e,(r,i)=>{this.transport.unbind(i,r)})};M(e,(r,i)=>{this.transport.bind(i,r)})}handleCloseEvent(e){var t=$.getCloseAction(e),r=$.getCloseError(e);r&&this.emit("error",r),t&&this.emit(t,{action:t,error:r})}}class zt{constructor(e,t){this.transport=e,this.callback=t,this.bindListeners()}close(){this.unbindListeners(),this.transport.close()}bindListeners(){this.onMessage=e=>{this.unbindListeners();var t;try{t=$.processHandshake(e)}catch(r){this.finish("error",{error:r}),this.transport.close();return}t.action==="connected"?this.finish("connected",{connection:new Ht(t.id,this.transport),activityTimeout:t.activityTimeout}):(this.finish(t.action,{error:t.error}),this.transport.close())},this.onClosed=e=>{this.unbindListeners();var t=$.getCloseAction(e)||"backoff",r=$.getCloseError(e);this.finish(t,{error:r})},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,t){this.callback(R({transport:this.transport,action:e},t))}}class Mt{constructor(e,t){this.timeline=e,this.options=t||{}}send(e,t){this.timeline.isEmpty()||this.timeline.send(l.TimelineTransport.getAgent(this,e),t)}}class fe extends q{constructor(e,t){super(function(r,i){S.debug("No callbacks on "+e+" for "+r)}),this.name=e,this.pusher=t,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}authorize(e,t){return t(null,{auth:""})}trigger(e,t){if(e.indexOf("client-")!==0)throw new a("Event '"+e+"' does not start with 'client-'");if(!this.subscribed){var r=D.buildLogSuffix("triggeringClientEvents");S.warn(`Client event triggered before channel 'subscription_succeeded' event . ${r}`)}return this.pusher.send_event(e,t,this.name)}disconnect(){this.subscribed=!1,this.subscriptionPending=!1}handleEvent(e){var t=e.event,r=e.data;t==="pusher_internal:subscription_succeeded"?this.handleSubscriptionSucceededEvent(e):t==="pusher_internal:subscription_count"?this.handleSubscriptionCountEvent(e):t.indexOf("pusher_internal:")!==0&&this.emit(t,r,{})}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&&(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,t)=>{e?(this.subscriptionPending=!1,S.error(e.toString()),this.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:e.message},e instanceof I?{status:e.status}:{}))):this.pusher.send_event("pusher:subscribe",{auth:t.auth,channel_data:t.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 pe extends fe{authorize(e,t){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:e},t)}}class qt{constructor(){this.reset()}get(e){return Object.prototype.hasOwnProperty.call(this.members,e)?{id:e,info:this.members[e]}:null}each(e){M(this.members,(t,r)=>{e(this.get(r))})}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&&this.count++,this.members[e.user_id]=e.user_info,this.get(e.user_id)}removeMember(e){var t=this.get(e.user_id);return t&&(delete this.members[e.user_id],this.count--),t}reset(){this.members={},this.count=0,this.myID=null,this.me=null}}var Bt=function(n,e,t,r){function i(s){return s instanceof t?s:new t(function(o){o(s)})}return new(t||(t=Promise))(function(s,o){function h(g){try{m(r.next(g))}catch(T){o(T)}}function u(g){try{m(r.throw(g))}catch(T){o(T)}}function m(g){g.done?s(g.value):i(g.value).then(h,u)}m((r=r.apply(n,e||[])).next())})};class Ft extends pe{constructor(e,t){super(e,t),this.members=new qt}authorize(e,t){super.authorize(e,(r,i)=>Bt(this,void 0,void 0,function*(){if(!r)if(i=i,i.channel_data!=null){var s=JSON.parse(i.channel_data);
1this.members.setMyID(s.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 o=D.buildLogSuffix("authorizationEndpoint");S.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${o}, or the user should be signed in.`),t("Invalid auth response");return}t(r,i)}))}handleEvent(e){var t=e.event;if(t.indexOf("pusher_internal:")===0)this.handleInternalEvent(e);else{var r=e.data,i={};e.user_id&&(i.user_id=e.user_id),this.emit(t,r,i)}}handleInternalEvent(e){var t=e.event,r=e.data;switch(t){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(e);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(e);break;case"pusher_internal:member_added":var i=this.members.addMember(r);this.emit("pusher:member_added",i);break;case"pusher_internal:member_removed":var s=this.members.removeMember(r);s&&this.emit("pusher:member_removed",s)}}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 Xt=v(978),ge=v(594);class Jt extends pe{constructor(e,t,r){super(e,t),this.key=null,this.nacl=r}authorize(e,t){super.authorize(e,(r,i)=>{if(r){t(r,i);return}let s=i.shared_secret;if(!s){t(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`),null);return}this.key=(0,ge.decode)(s),delete i.shared_secret,t(null,i)})}trigger(e,t){throw new L("Client events are not currently supported for encrypted channels")}handleEvent(e){var t=e.event,r=e.data;if(t.indexOf("pusher_internal:")===0||t.indexOf("pusher:")===0){super.handleEvent(e);return}this.handleEncryptedEvent(t,r)}handleEncryptedEvent(e,t){if(!this.key){S.debug("Received encrypted event before key has been retrieved from the authEndpoint");return}if(!t.ciphertext||!t.nonce){S.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+t);return}let r=(0,ge.decode)(t.ciphertext);if(r.length<this.nacl.secretbox.overheadLength){S.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${r.length}`);return}let i=(0,ge.decode)(t.nonce);if(i.length<this.nacl.secretbox.nonceLength){S.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${i.length}`);return}let s=this.nacl.secretbox.open(r,i,this.key);if(s===null){S.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,(o,h)=>{if(o){S.error(`Failed to make a request to the authEndpoint: ${h}. Unable to fetch new key, so dropping encrypted event`);return}if(s=this.nacl.secretbox.open(r,i,this.key),s===null){S.error("Failed to decrypt event with new key. Dropping encrypted event");return}this.emit(e,this.getDataToEmit(s))});return}this.emit(e,this.getDataToEmit(s))}getDataToEmit(e){let t=(0,Xt.D4)(e);try{return JSON.parse(t)}catch{return t}}}class $t extends q{constructor(e,t){super(),this.state="initialized",this.connection=null,this.key=e,this.options=t,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 r=l.getNetwork();r.bind("online",()=>{this.timeline.info({netinfo:"online"}),(this.state==="connecting"||this.state==="unavailable")&&this.retryIn(0)}),r.bind("offline",()=>{this.timeline.info({netinfo:"offline"}),this.connection&&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,t,r){return this.connection?this.connection.send_event(e,t,r):!1}disconnect(){this.disconnectInternally(),this.updateState("disconnected")}isUsingTLS(){return this.usingTLS}startConnecting(){var e=(t,r)=>{t?this.runner=this.strategy.connect(0,e):r.action==="error"?(this.emit
1("error",{type:"HandshakeError",error:r.error}),this.timeline.error({handshakeError:r.error})):(this.abortConnecting(),this.handshakeCallbacks[r.action](r))};this.runner=this.strategy.connect(0,e)}abortConnecting(){this.runner&&(this.runner.abort(),this.runner=null)}disconnectInternally(){this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection&&this.abandonConnection().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>0&&this.emit("connecting_in",Math.round(e/1e3)),this.retryTimer=new J(e||0,()=>{this.disconnectInternally(),this.connect()})}clearRetryTimer(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)}setUnavailableTimer(){this.unavailableTimer=new J(this.options.unavailableTimeout,()=>{this.updateState("unavailable")})}clearUnavailableTimer(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()}sendActivityCheck(){this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new J(this.options.pongTimeout,()=>{this.timeline.error({pong_timed_out:this.options.pongTimeout}),this.retryIn(0)})}resetActivityCheck(){this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new J(this.activityTimeout,()=>{this.sendActivityCheck()}))}stopActivityCheck(){this.activityTimer&&this.activityTimer.ensureAborted()}buildConnectionCallbacks(e){return R({},e,{message:t=>{this.resetActivityCheck(),this.emit("message",t)},ping:()=>{this.send_event("pusher:pong",{})},activity:()=>{this.resetActivityCheck()},error:t=>{this.emit("error",t)},closed:()=>{this.abandonConnection(),this.shouldRetry()&&this.retryIn(1e3)}})}buildHandshakeCallbacks(e){return R({},e,{connected:t=>{this.activityTimeout=Math.min(this.options.activityTimeout,t.activityTimeout,t.connection.activityTimeout||1/0),this.clearUnavailableTimer(),this.setConnection(t.connection),this.socket_id=this.connection.id,this.updateState("connected",{socket_id:this.socket_id})}})}buildErrorCallbacks(){let e=t=>r=>{r.error&&this.emit("error",{type:"WebSocketError",error:r.error}),t(r)};return{tls_only:e(()=>{this.usingTLS=!0,this.updateStrategy(),this.retryIn(0)}),refused:e(()=>{this.disconnect()}),backoff:e(()=>{this.retryIn(1e3)}),retry:e(()=>{this.retryIn(0)})}}setConnection(e){this.connection=e;for(var t in this.connectionCallbacks)this.connection.bind(t,this.connectionCallbacks[t]);this.resetActivityCheck()}abandonConnection(){if(this.connection){this.stopActivityCheck();for(var e in this.connectionCallbacks)this.connection.unbind(e,this.connectionCallbacks[e]);var t=this.connection;return this.connection=null,t}}updateState(e,t){var r=this.state;if(this.state=e,r!==e){var i=e;i==="connected"&&(i+=" with new socket ID "+t.socket_id),S.debug("State changed",r+" -> "+i),this.timeline.info({state:e,params:t}),this.emit("state_change",{previous:r,current:e}),this.emit(e,t)}}shouldRetry(){return this.state==="connecting"||this.state==="connected"}}class Wt{constructor(){this.channels={}}add(e,t){return this.channels[e]||(this.channels[e]=Gt(e,t)),this.channels[e]}all(){return lt(this.channels)}find(e){return this.channels[e]}remove(e){var t=this.channels[e];return delete this.channels[e],t}disconnect(){M(this.channels,function(e){e.disconnect()})}}function Gt(n,e){if(n.indexOf("private-encrypted-")===0){if(e.config.nacl)return B.createEncryptedChannel(n,e,e.config.nacl);let t="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",r=D.buildLogSuffix("encryptedChannelSupport");throw new L(`${t}. ${r}`)}else{if(n.indexOf("private-")===0)return B.createPrivateChannel(n,e);if(n.indexOf("presence-")===0)return B.createPresenceChannel(n,e);if(n.indexOf("#")===0)throw new c('Cannot create a channel with name "'+n+'".');return B.createChannel(n,e)}}const B={createChannels(){return new Wt},createConnectionManager(n,e){return new $t(n,e)},createChannel(n,e){return new fe(n,e)},createPrivateChannel(n,e){return new pe(n,e)},createPresenceChannel(n,e){return new Ft(n,e)}
1,createEncryptedChannel(n,e,t){return new Jt(n,e,t)},createTimelineSender(n,e){return new Mt(n,e)},createHandshake(n,e){return new zt(n,e)},createAssistantToTheTransportManager(n,e,t){return new Dt(n,e,t)}};class De{constructor(e){this.options=e||{},this.livesLeft=this.options.lives||1/0}getAssistant(e){return B.createAssistantToTheTransportManager(this,e,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}isAlive(){return this.livesLeft>0}reportDeath(){this.livesLeft-=1}}class W{constructor(e,t){this.strategies=e,this.loop=!!t.loop,this.failFast=!!t.failFast,this.timeout=t.timeout,this.timeoutLimit=t.timeoutLimit}isSupported(){return Ee(this.strategies,A.method("isSupported"))}connect(e,t){var r=this.strategies,i=0,s=this.timeout,o=null,h=(u,m)=>{m?t(null,m):(i=i+1,this.loop&&(i=i%r.length),i<r.length?(s&&(s=s*2,this.timeoutLimit&&(s=Math.min(s,this.timeoutLimit))),o=this.tryStrategy(r[i],e,{timeout:s,failFast:this.failFast},h)):t(!0))};return o=this.tryStrategy(r[i],e,{timeout:s,failFast:this.failFast},h),{abort:function(){o.abort()},forceMinPriority:function(u){e=u,o&&o.forceMinPriority(u)}}}tryStrategy(e,t,r,i){var s=null,o=null;return r.timeout>0&&(s=new J(r.timeout,function(){o.abort(),i(!0)})),o=e.connect(t,function(h,u){h&&s&&s.isRunning()&&!r.failFast||(s&&s.ensureAborted(),i(h,u))}),{abort:function(){s&&s.ensureAborted(),o.abort()},forceMinPriority:function(h){o.forceMinPriority(h)}}}}class ve{constructor(e){this.strategies=e}isSupported(){return Ee(this.strategies,A.method("isSupported"))}connect(e,t){return Vt(this.strategies,e,function(r,i){return function(s,o){if(i[r].error=s,s){Qt(i)&&t(!0);return}Y(i,function(h){h.forceMinPriority(o.transport.priority)}),t(null,o)}})}}function Vt(n,e,t){var r=xe(n,function(i,s,o,h){return i.connect(e,t(s,h))});return{abort:function(){Y(r,Kt)},forceMinPriority:function(i){Y(r,function(s){s.forceMinPriority(i)})}}}function Qt(n){return pt(n,function(e){return!!e.error})}function Kt(n){!n.error&&!n.aborted&&(n.abort(),n.aborted=!0)}class Yt{constructor(e,t,r){this.strategy=e,this.transports=t,this.ttl=r.ttl||18e5,this.usingTLS=r.useTLS,this.timeline=r.timeline}isSupported(){return this.strategy.isSupported()}connect(e,t){var r=this.usingTLS,i=Zt(r),s=i&&i.cacheSkipCount?i.cacheSkipCount:0,o=[this.strategy];if(i&&i.timestamp+this.ttl>=A.now()){var h=this.transports[i.transport];h&&(["ws","wss"].includes(i.transport)||s>3?(this.timeline.info({cached:!0,transport:i.transport,latency:i.latency}),o.push(new W([h],{timeout:i.latency*2+1e3,failFast:!0}))):s++)}var u=A.now(),m=o.pop().connect(e,function g(T,ce){T?(He(r),o.length>0?(u=A.now(),m=o.pop().connect(e,g)):t(T)):(en(r,ce.transport.name,A.now()-u,s),t(null,ce))});return{abort:function(){m.abort()},forceMinPriority:function(g){e=g,m&&m.forceMinPriority(g)}}}}function me(n){return"pusherTransport"+(n?"TLS":"NonTLS")}function Zt(n){var e=l.getLocalStorage();if(e)try{var t=e[me(n)];if(t)return JSON.parse(t)}catch{He(n)}return null}function en(n,e,t,r){var i=l.getLocalStorage();if(i)try{i[me(n)]=re({timestamp:A.now(),transport:e,latency:t,cacheSkipCount:r})}catch{}}function He(n){var e=l.getLocalStorage();if(e)try{delete e[me(n)]}catch{}}class se{constructor(e,{delay:t}){this.strategy=e,this.options={delay:t}}isSupported(){return this.strategy.isSupported()}connect(e,t){var r=this.strategy,i,s=new J(this.options.delay,function(){i=r.connect(e,t)});return{abort:function(){s.ensureAborted(),i&&i.abort()},forceMinPriority:function(o){e=o,i&&i.forceMinPriority(o)}}}}class Z{constructor(e,t,r){this.test=e,this.trueBranch=t,this.falseBranch=r}isSupported(){return(this.test()?this.trueBranch:this.falseBranch).isSupported()}connect(e,t){return(this.test()?this.trueBranch:this.falseBranch).connect(e,t)}}class tn{constructor(e){this.strategy=e}isSupported(){return this.strategy.isSupported()}connect(e,t){var r=this.strategy.connect(e,function(i,s){s&&r.abort(),t(i,s)});return r}}function ee(n){return function(){return n.isSupported()}}var nn=function(n,e,t){var r={};function i(Ke,Gn,Vn,Qn,Kn){var Ye=t(n,Ke,Gn,Vn,Qn,Kn);return r[Ke]=Ye,Ye}var s=Object.assign({},e,{hostNonTLS:n.wsHost+":"+n.wsPort,hostTLS:n.wsHost+":"+n.wssPort,httpPath:n.wsPath}),o=Object.assign({},s,{useTLS:!0}),h=Object.assign({},e,{hostNonTLS:n.httpHost+":"+n.httpPort,hostTLS:n.httpHost+":"+n.httpsPort,httpPath:n.httpPath}),u={loop:!0,timeout:15e3,timeoutLimit:6e4},m=new De({minPingDelay:1e4,maxPingDelay:n.activityTimeout}),g=new De({lives:2,minPingDelay:1e4,maxPingDelay:n.activityTimeout}),T=i("ws","ws",3,s,m),ce=i("wss","ws",3,o,m),Fn=i("sockjs","sockjs",1,h),Je=i("xhr_streaming","xhr_streaming",1,h,g),Xn=i("xdr_streaming","xdr_streaming",1,h,g),$e=i("xhr_polling","xhr_polling",1,h),Jn=i("xdr_polling","xdr_polling",1,h),We=new W([T],u),$n=new W([ce],u),Wn=new W([Fn],u),Ge=new W([new Z(ee(Je),Je,Xn)],u),Ve=new W([new Z(ee($e),$e,Jn)],u),Qe=new W([new Z(ee(Ge),new ve([Ge,new se(Ve,{delay:4e3})]),Ve)],u),_e=new Z(ee(Qe),Qe,Wn),we;return e.useTLS?we=new ve([We,new se(_e,{delay:2e3})]):we=new ve([We,new se($n,{delay:2e3}),new se(_e,{delay:5e3})]),new Yt(new tn(new Z(ee(T),we,_e)),r,{ttl:18e5,timeline:e.timeline,useTLS:e.useTLS})};const rn=nn;function sn(){var n=this;n.timeline.info(n.buildTimelineMessage({transport:n.name+(n.options.useTLS?"s":"")})),n.hooks.isInitialized()?n.changeState("initialized"):n.hooks.file?(n.changeState("initializing"),j.load(n.hooks.file,{useTLS:n.options.useTLS},function(e,t){n.hooks.isInitialized()?(n.changeState("initialized"),t(!0)):(e&&n.onError(e),n.onClose(),t(!1))})):n.onClose()}const on={getRequest:function(n){var e=new window.XDomainRequest;return e.ontimeout=function(){n.emit("error",new d),n.close()},e.onerror=function(t){n.emit("error",t),n.close()}
1,e.onprogress=function(){e.responseText&&e.responseText.length>0&&n.onChunk(200,e.responseText)},e.onload=function(){e.responseText&&e.responseText.length>0&&n.onChunk(200,e.responseText),n.emit("finished",200),n.close()},e},abortRequest:function(n){n.ontimeout=n.onerror=n.onprogress=n.onload=null,n.abort()}},an=262144;class cn extends q{constructor(e,t,r){super(),this.hooks=e,this.method=t,this.url=r}start(e){this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=()=>{this.close()},l.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(e)}close(){this.unloader&&(l.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)}onChunk(e,t){for(;;){var r=this.advanceBuffer(t);if(r)this.emit("chunk",{status:e,data:r});else break}this.isBufferTooLong(t)&&this.emit("buffer_too_long")}advanceBuffer(e){var t=e.slice(this.position),r=t.indexOf(`
2`);return r!==-1?(this.position+=r+1,t.slice(0,r)):null}isBufferTooLong(e){return this.position===e.length&&e.length>an}}var be;(function(n){n[n.CONNECTING=0]="CONNECTING",n[n.OPEN=1]="OPEN",n[n.CLOSED=3]="CLOSED"})(be||(be={}));const G=be;var hn=1;class un{constructor(e,t){this.hooks=e,this.session=Me(1e3)+"/"+pn(8),this.location=ln(t),this.readyState=G.CONNECTING,this.openStream()}send(e){return this.sendRaw(JSON.stringify([e]))}ping(){this.hooks.sendHeartbeat(this)}close(e,t){this.onClose(e,t,!0)}sendRaw(e){if(this.readyState===G.OPEN)try{return l.createSocketRequest("POST",ze(dn(this.location,this.session))).start(e),!0}catch{return!1}else return!1}reconnect(){this.closeStream(),this.openStream()}onClose(e,t,r){this.closeStream(),this.readyState=G.CLOSED,this.onclose&&this.onclose({code:e,reason:t,wasClean:r})}onChunk(e){if(e.status===200){this.readyState===G.OPEN&&this.onActivity();var t;switch(e.data.slice(0,1)){case"o":t=JSON.parse(e.data.slice(1)||"{}"),this.onOpen(t);break;case"a":t=JSON.parse(e.data.slice(1)||"[]");for(var r=0;r<t.length;r++)this.onEvent(t[r]);break;case"m":t=JSON.parse(e.data.slice(1)||"null"),this.onEvent(t);break;case"h":this.hooks.onHeartbeat(this);break;case"c":t=JSON.parse(e.data.slice(1)||"[]"),this.onClose(t[0],t[1],!0)}}}onOpen(e){this.readyState===G.CONNECTING?(e&&e.hostname&&(this.location.base=fn(this.location.base,e.hostname)),this.readyState=G.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(e){this.readyState===G.OPEN&&this.onmessage&&this.onmessage({data:e})}onActivity(){this.onactivity&&this.onactivity()}onError(e){this.onerror&&this.onerror(e)}openStream(){this.stream=l.createSocketRequest("POST",ze(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",e=>{this.onChunk(e)}),this.stream.bind("finished",e=>{this.hooks.onFinished(this,e)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch(e){A.defer(()=>{this.onError(e),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}}function ln(n){var e=/([^\?]*)\/*(\??.*)/.exec(n);return{base:e[1],queryString:e[2]}}function dn(n,e){return n.base+"/"+e+"/xhr_send"}function ze(n){return n+(n.indexOf("?")===-1?"?":"&")+"t="+ +new Date+"&n="+hn++}function fn(n,e){var t=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(n);return t[1]+e+t[3]}function Me(n){return l.randomInt(n)}function pn(n){for(var e=[],t=0;t<n;t++)e.push(Me(32).toString(32));return e.join("")}const gn=un,vn={getReceiveURL:function(n,e){return n.base+"/"+e+"/xhr_streaming"+n.queryString},onHeartbeat:function(n){n.sendRaw("[]")},sendHeartbeat:function(n){n.sendRaw("[]")},onFinished:function(n,e){n.onClose(1006,"Connection interrupted ("+e+")",!1)}},mn={getReceiveURL:function(n,e){return n.base+"/"+e+"/xhr"+n.queryString},onHeartbeat:function(){},sendHeartbeat:function(n){n.sendRaw("[]")},onFinished:function(n,e){e===200?n.reconnect():n.onClose(1006,"Connection interrupted ("+e+")",!1)}},bn={getRequest:function(n){var e=new(l.getXHRAPI());return e.onreadystatechange=e.onprogress=function(){switch(e.readyState){case 3:e.responseText&&e.responseText.length>0&&n.onChunk(e.status,e.responseText);break;case 4:e.responseText&&e.responseText.length>0&&n.onChunk(e.status,e.responseText),n.emit("finished",e.status),n.close()}},e},abortRequest:function(n){n.onreadystatechange=null,n.abort()}},qe={createStreamingSocket(n){return this.createSocket(vn,n)},createPollingSocket(n){return this.createSocket(mn,n)},createSocket(n,e){return new gn(n,e)},createXHR(n,e){return this.createRequest(bn,n,e)},createRequest(n,e,t){return new cn(n,e,t)}};qe.createXDR=function(n,e){return this.createRequest(on,n,e)};const l={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:C,DependenciesReceivers:y,getDefaultStrategy:rn,Transports:Nt,transportConnectionInitializer:sn,HTTPFactory:qe,TimelineTransport:Tt,getXHRAPI(){return window.XMLHttpRequest},getWebSocketAPI(){return window.WebSocket||window.MozWebSocket},setup(n){if(typeof window<"u"){window.Pusher=n;var e=()=>{this.onDocumentBody(n.ready)};window.JSON?e():j.load("json2",{},e)}},getDocument(){return document},getProtocol(){return this.getDocument().location.protocol},getAuthorizers(){return{ajax:X,jsonp:_t}},onDocumentBody(n){document.body?n():setTimeout(()=>{this.onDocumentBody(n)},0)},createJSONPRequest(n,e){return new St(n,e)},createScriptRequest(n){return new wt(n)},getLocalStorage(){try{return window.localStorage}catch{return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){return new(this.getXHRAPI())},createMicrosoftXHR(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork(){return Ut},createWebSocket(n){return new(this.getWebSocketAPI())(n)}
2,createSocketRequest(n,e){if(this.isXHRSupported())return this.HTTPFactory.createXHR(n,e);if(this.isXDRSupported(e.indexOf("https:")===0))return this.HTTPFactory.createXDR(n,e);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var n=this.getXHRAPI();return!!n&&new n().withCredentials!==void 0},isXDRSupported(n){var e=n?"https:":"http:",t=this.getProtocol();return!!window.XDomainRequest&&t===e},addUnloadListener(n){window.addEventListener!==void 0?window.addEventListener("pagehide",n,!1):window.attachEvent!==void 0&&window.attachEvent("onunload",n)},removeUnloadListener(n){window.addEventListener!==void 0?window.removeEventListener("pagehide",n,!1):window.detachEvent!==void 0&&window.detachEvent("onunload",n)},randomInt(n){const e=window.crypto||window.msCrypto,t=Math.floor(Math.pow(2,32)/n)*n;let r;do r=e.getRandomValues(new Uint32Array(1))[0];while(r>=t);return r%n}};var ye;(function(n){n[n.ERROR=3]="ERROR",n[n.INFO=6]="INFO",n[n.DEBUG=7]="DEBUG"})(ye||(ye={}));const oe=ye;class yn{constructor(e,t,r){this.key=e,this.session=t,this.events=[],this.options=r||{},this.sent=0,this.uniqueID=0}log(e,t){e<=this.options.level&&(this.events.push(R({},t,{timestamp:A.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}error(e){this.log(oe.ERROR,e)}info(e){this.log(oe.INFO,e)}debug(e){this.log(oe.DEBUG,e)}isEmpty(){return this.events.length===0}send(e,t){var r=R({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(r,(i,s)=>{i||this.sent++,t&&t(i,s)}),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}
2class _n{constructor(e,t,r,i){this.name=e,this.priority=t,this.transport=r,this.options=i||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(e,t){if(this.isSupported()){if(this.priority<e)return Be(new w,t)}else return Be(new H,t);var r=!1,i=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),s=null,o=function(){i.unbind("initialized",o),i.connect()},h=function(){s=B.createHandshake(i,function(T){r=!0,g(),t(null,T)})},u=function(T){g(),t(T)},m=function(){g();var T=re(i);t(new x(T))},g=function(){i.unbind("initialized",o),i.unbind("open",h),i.unbind("error",u),i.unbind("closed",m)};return i.bind("initialized",o),i.bind("open",h),i.bind("error",u),i.bind("closed",m),i.initialize(),{abort:()=>{r||(g(),s?s.close():i.close())},forceMinPriority:T=>{r||this.priority<T&&(s?s.close():i.close())}}}}function Be(n,e){return A.defer(function(){e(n)}),{abort:function(){},forceMinPriority:function(){}}}const{Transports:wn}=l;var Sn=function(n,e,t,r,i,s){var o=wn[t];if(!o)throw new U(t);var h=(!n.enabledTransports||ke(n.enabledTransports,e)!==-1)&&(!n.disabledTransports||ke(n.disabledTransports,e)===-1),u;return h?(i=Object.assign({ignoreNullOrigin:n.ignoreNullOrigin},i),u=new _n(e,r,s?s.getAssistant(o):o,i)):u=Cn,u},Cn={isSupported:function(){return!1},connect:function(n,e){var t=A.defer(function(){e(new H)});return{abort:function(){t.ensureAborted()},forceMinPriority:function(){}}}};function Tn(n){if(n==null)throw"You must pass an options object";if(n.cluster==null)throw"Options object must provide a cluster";"disableStats"in n&&S.warn("The disableStats option is deprecated in favor of enableStats")}const kn=(n,e)=>{var t="socket_id="+encodeURIComponent(n.socketId);for(var r in e.params)t+="&"+encodeURIComponent(r)+"="+encodeURIComponent(e.params[r]);if(e.paramsProvider!=null){let i=e.paramsProvider();for(var r in i)t+="&"+encodeURIComponent(r)+"="+encodeURIComponent(i[r])}return t},Pn=n=>{if(typeof l.getAuthorizers()[n.transport]>"u")throw`'${n.transport}' is not a recognized auth transport`;return(e,t)=>{const r=kn(e,n);l.getAuthorizers()[n.transport](l,r,n,f.UserAuthentication,t)}},xn=(n,e)=>{var t="socket_id="+encodeURIComponent(n.socketId);t+="&channel_name="+encodeURIComponent(n.channelName);for(var r in e.params)t+="&"+encodeURIComponent(r)+"="+encodeURIComponent(e.params[r]);if(e.paramsProvider!=null){let i=e.paramsProvider();for(var r in i)t+="&"+encodeURIComponent(r)+"="+encodeURIComponent(i[r])}return t},Ln=n=>{if(typeof l.getAuthorizers()[n.transport]>"u")throw`'${n.transport}' is not a recognized auth transport`;return(e,t)=>{const r=xn(e,n);l.getAuthorizers()[n.transport](l,r,n,f.ChannelAuthorization,t)}},An=(n,e,t)=>{const r={authTransport:e.transport,authEndpoint:e.endpoint,auth:{params:e.params,headers:e.headers}};return(i,s)=>{t(n.channel(i.channelName),r).authorize(i.socketId,s)}};function Fe(n,e){let t={activityTimeout:n.activityTimeout||p.activityTimeout,cluster:n.cluster,httpPath:n.httpPath||p.httpPath,httpPort:n.httpPort||p.httpPort,httpsPort:n.httpsPort||p.httpsPort,pongTimeout:n.pongTimeout||p.pongTimeout,statsHost:n.statsHost||p.stats_host,unavailableTimeout:n.unavailableTimeout||p.unavailableTimeout,wsPath:n.wsPath||p.wsPath,wsPort:n.wsPort||p.wsPort,wssPort:n.wssPort||p.wssPort,enableStats:Nn(n),httpHost:En(n),useTLS:In(n),wsHost:Rn(n),userAuthenticator:jn(n),channelAuthorizer:Dn(n,e)};return"disabledTransports"in n&&(t.disabledTransports=n.disabledTransports),"enabledTransports"in n&&(t.enabledTransports=n.enabledTransports),"ignoreNullOrigin"in n&&(t.ignoreNullOrigin=n.ignoreNullOrigin),"timelineParams"in n&&(t.timelineParams=n.timelineParams),"nacl"in n&&(t.nacl=n.nacl),t}function En(n){return n.httpHost?n.httpHost:n.cluster?`sockjs-${n.cluster}.pusher.com`:p.httpHost}function Rn(n){return n.wsHost?n.wsHost:On(n.cluster)}function On(n){return`ws-${n}.pusher.com`}function In(n){return l.getProtocol()==="https:"?!0:n.forceTLS!==!1}function Nn(n){return"enableStats"in n?n.enableStats:"disableStats"in n?!n.disableStats:!1}const Xe=n=>"customHandler"in n&&n.customHandler!=null;function jn(n){const e=Object.assign(Object.assign({},p.userAuthentication),n.userAuthentication);return Xe(e)?e.customHandler:Pn(e)}function Un(n,e){let t;return"channelAuthorization"in n?t=Object.assign(Object.assign({},p.channelAuthorization),n.channelAuthorization):(t={transport:n.authTransport||p.authTransport,endpoint:n.authEndpoint||p.authEndpoint},"auth"in n&&("params"in n.auth&&(t.params=n.auth.params),"headers"in n.auth&&(t.headers=n.auth.headers)),"authorizer"in n&&(t.customHandler=An(e,t,n.authorizer))),t}function Dn(n,e){const t=Un(n,e);return Xe(t)?t.customHandler:Ln(t)}class Hn extends q{constructor(e){super(function(t,r){S.debug(`No callbacks on watchlist events for ${t}`)}),this.pusher=e,this.bindWatchlistInternalEvent()}
2handleEvent(e){e.data.events.forEach(t=>{this.emit(t.name,t)})}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",e=>{e.event==="pusher_internal:watchlist_events"&&this.handleEvent(e)})}}function zn(){let n,e;return{promise:new Promise((t,r)=>{n=t,e=r}),resolve:n,reject:e}}const Mn=zn;class qn extends q{constructor(e){super(function(t,r){S.debug("No callbacks on user for "+t)}),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(t,r)=>{if(t){S.warn(`Error during signin: ${t}`),this.emit("pusher:signin_error",Object.assign({},{type:"AuthError",error:t.message},t instanceof I?{status:t.status}:{})),this._cleanup();return}this.pusher.send_event("pusher:signin",{auth:r.auth,user_data:r.user_data})},this.pusher=e,this.pusher.connection.bind("state_change",({previous:t,current:r})=>{t!=="connected"&&r==="connected"&&this._signin(),t==="connected"&&r!=="connected"&&(this._cleanup(),this._newSigninPromiseIfNeeded())}),this.watchlist=new Hn(e),this.pusher.connection.bind("message",t=>{t.event==="pusher:signin_success"&&this._onSigninSuccess(t.data),this.serverToUserChannel&&this.serverToUserChannel.name===t.channel&&this.serverToUserChannel.handleEvent(t)})}signin(){this.signin_requested||(this.signin_requested=!0,this._signin())}_signin(){this.signin_requested&&(this._newSigninPromiseIfNeeded(),this.pusher.connection.state==="connected"&&this.pusher.config.userAuthenticator({socketId:this.pusher.connection.socket_id},this._onAuthorize))}_onSigninSuccess(e){try{this.user_data=JSON.parse(e.user_data)}catch{S.error(`Failed parsing user data after signin: ${e.user_data}`),this._cleanup();return}if(typeof this.user_data.id!="string"||this.user_data.id===""){S.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),this._cleanup();return}this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){const e=t=>{t.subscriptionPending&&t.subscriptionCancelled?t.reinstateSubscription():!t.subscriptionPending&&this.pusher.connection.state==="connected"&&t.subscribe()};this.serverToUserChannel=new fe(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global((t,r)=>{t.indexOf("pusher_internal:")===0||t.indexOf("pusher:")===0||this.emit(t,r)}),e(this.serverToUserChannel)}_cleanup(){this.user_data=null,this.serverToUserChannel&&(this.serverToUserChannel.unbind_all(),this.serverToUserChannel.disconnect(),this.serverToUserChannel=null),this.signin_requested&&this._signinDoneResolve()}_newSigninPromiseIfNeeded(){if(!this.signin_requested||this.signinDonePromise&&!this.signinDonePromise.done)return;const{promise:e,resolve:t,reject:r}=Mn();e.done=!1;const i=()=>{e.done=!0};e.then(i).catch(i),this.signinDonePromise=e,this._signinDoneResolve=t}}class k{static ready(){k.isReady=!0;for(var e=0,t=k.instances.length;e<t;e++)k.instances[e].connect()}static getClientFeatures(){return Pe(Ae({ws:l.Transports.ws},function(e){return e.isSupported({})}))}constructor(e,t){Bn(e),Tn(t),this.key=e,this.options=t,this.config=Fe(this.options,this),this.channels=B.createChannels(),this.global_emitter=new q,this.sessionID=l.randomInt(1e9),this.timeline=new yn(this.key,this.sessionID,{cluster:this.config.cluster,features:k.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:oe.INFO,version:p.VERSION}),this.config.enableStats&&(this.timelineSender=B.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+l.TimelineTransport.name}));var r=i=>l.getDefaultStrategy(this.config,i,Sn);this.connection=B.createConnectionManager(this.key,{getStrategy:r,timeline:this.timeline,activityTimeout:this.config.activityTimeout,pongTimeout:this.config.pongTimeout,unavailableTimeout:this.config.unavailableTimeout,useTLS:!!this.config.useTLS}),this.connection.bind("connected",()=>{this.subscribeAll(),this.timelineSender&&this.timelineSender.send(this.connection.isUsingTLS())}),this.connection.bind("message",i=>{var s=i.event.indexOf("pusher_internal:")===0;if(i.channel){var o=this.channel(i.channel);o&&o.handleEvent(i)}s||this.global_emitter.emit(i.event,i.data)}),this.connection.bind("connecting",()=>{this.channels.disconnect()}),this.connection.bind("disconnected",()=>{this.channels.disconnect()}),this.connection.bind("error",i=>{S.warn(i)}),k.instances.push(this),this.timeline.info({instances:k.instances.length}),this.user=new qn(this),k.isReady&&this.connect()}switchCluster(e){const{appKey:t,cluster:r}=e;this.key=t,this.options=Object.assign(Object.assign({},this.options),{cluster:r}),this.config=Fe(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&&!this.timelineSenderTimer){var e=this.connection.isUsingTLS(),t=this.timelineSender;this.timelineSenderTimer=new ht(6e4,function(){t.send(e)})}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}bind(e,t,r){return this.global_emitter.bind(e,t,r),this}unbind(e,t,r){return this.global_emitter.unbind(e,t,r),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;
2for(e in this.channels.channels)this.channels.channels.hasOwnProperty(e)&&this.subscribe(e)}subscribe(e){var t=this.channels.add(e,this);return t.subscriptionPending&&t.subscriptionCancelled?t.reinstateSubscription():!t.subscriptionPending&&this.connection.state==="connected"&&t.subscribe(),t}unsubscribe(e){var t=this.channels.find(e);t&&t.subscriptionPending?t.cancelSubscription():(t=this.channels.remove(e),t&&t.subscribed&&t.unsubscribe())}send_event(e,t,r){return this.connection.send_event(e,t,r)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}k.instances=[],k.isReady=!1,k.logToConsole=!1,k.Runtime=l,k.ScriptReceivers=l.ScriptReceivers,k.DependenciesReceivers=l.DependenciesReceivers,k.auth_callbacks=l.auth_callbacks;const ae=k;function Bn(n){if(n==null)throw"You must pass your app key when you instantiate Pusher."}l.setup(k)}},te={};function N(O){var _=te[O];if(_!==void 0)return _.exports;var v=te[O]={exports:{}};return Ce[O].call(v.exports,v,v.exports,N),v.exports}return N.d=(O,_)=>{for(var v in _)N.o(_,v)&&!N.o(O,v)&&Object.defineProperty(O,v,{enumerable:!0,get:_[v]})},N.o=(O,_)=>Object.prototype.hasOwnProperty.call(O,_),N(721)})())})),rr=Zn();export{rr as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.