@autoafleveren/ui 1.0.11 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/icons.cjs +1 -1
- package/dist/icons.js +1 -1
- package/dist/types/composables/useEcho/index.d.ts +21 -0
- package/dist/ui.cjs +21 -21
- package/dist/ui.js +1074 -1041
- package/package.json +1 -1
package/dist/icons.cjs
CHANGED
|
@@ -566,7 +566,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
566
566
|
* Copyright 2020, Pusher
|
|
567
567
|
* Released under the MIT licence.
|
|
568
568
|
*/var y3;function zu(){return y3||(y3=1,function(t,n){(function(a,o){t.exports=o()})(window,function(){return function(r){var a={};function o(i){if(a[i])return a[i].exports;var s=a[i]={i,l:!1,exports:{}};return r[i].call(s.exports,s,s.exports,o),s.l=!0,s.exports}return o.m=r,o.c=a,o.d=function(i,s,h){o.o(i,s)||Object.defineProperty(i,s,{enumerable:!0,get:h})},o.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},o.t=function(i,s){if(s&1&&(i=o(i)),s&8||s&4&&typeof i=="object"&&i&&i.__esModule)return i;var h=Object.create(null);if(o.r(h),Object.defineProperty(h,"default",{enumerable:!0,value:i}),s&2&&typeof i!="string")for(var d in i)o.d(h,d,(function(w){return i[w]}).bind(null,d));return h},o.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(s,"a",s),s},o.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},o.p="",o(o.s=2)}([function(r,a,o){var i=this&&this.__extends||function(){var b=function(_,C){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,y){V.__proto__=y}||function(V,y){for(var B in y)y.hasOwnProperty(B)&&(V[B]=y[B])},b(_,C)};return function(_,C){b(_,C);function V(){this.constructor=_}_.prototype=C===null?Object.create(C):(V.prototype=C.prototype,new V)}}();Object.defineProperty(a,"__esModule",{value:!0});var s=256,h=function(){function b(_){_===void 0&&(_="="),this._paddingCharacter=_}return b.prototype.encodedLength=function(_){return this._paddingCharacter?(_+2)/3*4|0:(_*8+5)/6|0},b.prototype.encode=function(_){for(var C="",V=0;V<_.length-2;V+=3){var y=_[V]<<16|_[V+1]<<8|_[V+2];C+=this._encodeByte(y>>>3*6&63),C+=this._encodeByte(y>>>2*6&63),C+=this._encodeByte(y>>>1*6&63),C+=this._encodeByte(y>>>0*6&63)}var B=_.length-V;if(B>0){var y=_[V]<<16|(B===2?_[V+1]<<8:0);C+=this._encodeByte(y>>>3*6&63),C+=this._encodeByte(y>>>2*6&63),B===2?C+=this._encodeByte(y>>>1*6&63):C+=this._paddingCharacter||"",C+=this._paddingCharacter||""}return C},b.prototype.maxDecodedLength=function(_){return this._paddingCharacter?_/4*3|0:(_*6+7)/8|0},b.prototype.decodedLength=function(_){return this.maxDecodedLength(_.length-this._getPaddingLength(_))},b.prototype.decode=function(_){if(_.length===0)return new Uint8Array(0);for(var C=this._getPaddingLength(_),V=_.length-C,y=new Uint8Array(this.maxDecodedLength(V)),B=0,z=0,L=0,E=0,O=0,T=0,D=0;z<V-4;z+=4)E=this._decodeChar(_.charCodeAt(z+0)),O=this._decodeChar(_.charCodeAt(z+1)),T=this._decodeChar(_.charCodeAt(z+2)),D=this._decodeChar(_.charCodeAt(z+3)),y[B++]=E<<2|O>>>4,y[B++]=O<<4|T>>>2,y[B++]=T<<6|D,L|=E&s,L|=O&s,L|=T&s,L|=D&s;if(z<V-1&&(E=this._decodeChar(_.charCodeAt(z)),O=this._decodeChar(_.charCodeAt(z+1)),y[B++]=E<<2|O>>>4,L|=E&s,L|=O&s),z<V-2&&(T=this._decodeChar(_.charCodeAt(z+2)),y[B++]=O<<4|T>>>2,L|=T&s),z<V-3&&(D=this._decodeChar(_.charCodeAt(z+3)),y[B++]=T<<6|D,L|=D&s),L!==0)throw new Error("Base64Coder: incorrect characters for decoding");return y},b.prototype._encodeByte=function(_){var C=_;return C+=65,C+=25-_>>>8&6,C+=51-_>>>8&-75,C+=61-_>>>8&-15,C+=62-_>>>8&3,String.fromCharCode(C)},b.prototype._decodeChar=function(_){var C=s;return C+=(42-_&_-44)>>>8&-256+_-43+62,C+=(46-_&_-48)>>>8&-256+_-47+63,C+=(47-_&_-58)>>>8&-256+_-48+52,C+=(64-_&_-91)>>>8&-256+_-65+0,C+=(96-_&_-123)>>>8&-256+_-97+26,C},b.prototype._getPaddingLength=function(_){var C=0;if(this._paddingCharacter){for(var V=_.length-1;V>=0&&_[V]===this._paddingCharacter;V--)C++;if(_.length<4||C>2)throw new Error("Base64Coder: incorrect padding")}return C},b}();a.Coder=h;var d=new h;function w(b){return d.encode(b)}a.encode=w;function p(b){return d.decode(b)}a.decode=p;var g=function(b){i(_,b);function _(){return b!==null&&b.apply(this,arguments)||this}return _.prototype._encodeByte=function(C){var V=C;return V+=65,V+=25-C>>>8&6,V+=51-C>>>8&-75,V+=61-C>>>8&-13,V+=62-C>>>8&49,String.fromCharCode(V)},_.prototype._decodeChar=function(C){var V=s;return V+=(44-C&C-46)>>>8&-256+C-45+62,V+=(94-C&C-96)>>>8&-256+C-95+63,V+=(47-C&C-58)>>>8&-256+C-48+52,V+=(64-C&C-91)>>>8&-256+C-65+0,V+=(96-C&C-123)>>>8&-256+C-97+26,V},_}(h);a.URLSafeCoder=g;var v=new g;function x(b){return v.encode(b)}a.encodeURLSafe=x;function H(b){return v.decode(b)}a.decodeURLSafe=H,a.encodedLength=function(b){return d.encodedLength(b)},a.maxDecodedLength=function(b){return d.maxDecodedLength(b)},a.decodedLength=function(b){return d.decodedLength(b)}},function(r,a,o){Object.defineProperty(a,"__esModule",{value:!0});var i="utf8: invalid string",s="utf8: invalid source encoding";function h(p){for(var g=new Uint8Array(d(p)),v=0,x=0;x<p.length;x++){var H=p.charCodeAt(x);H<128?g[v++]=H:H<2048?(g[v++]=192|H>>6,g[v++]=128|H&63):H<55296?(g[v++]=224|H>>12,g[v++]=128|H>>6&63,g[v++]=128|H&63):(x++,H=(H&1023)<<10,H|=p.charCodeAt(x)&1023,H+=65536,g[v++]=240|H>>18,g[v++]=128|H>>12&63,g[v++]=128|H>>6&63,g[v++]=128|H&63)}return g}a.encode=h;function d(p){for(var g=0,v=0;v<p.length;v++){var x=p.charCodeAt(v);if(x<128)g+=1;else if(x<2048)g+=2;else if(x<55296)g+=3;else if(x<=57343){if(v>=p.length-1)throw new Error(i);v++,g+=4}else throw new Error(i)}return g}a.encodedLength=d;function w(p){for(var g=[],v=0;v<p.length;v++){var x=p[v];if(x&128){var H=void 0;if(x<224){if(v>=p.length)throw new Error(s);var b=p[++v];if((b&192)!==128)throw new Error(s);x=(x&31)<<6|b&63,H=128}else if(x<240){if(v>=p.length-1)throw new Error(s);var b=p[++v],_=p[++v];if((b&192)!==128||(_&192)!==128)throw new Error(s);x=(x&15)<<12|(b&63)<<6|_&63,H=2048}else if(x<248){if(v>=p.length-2)throw new Error(s);var b=p[++v],_=p[++v],C=p[++v];if((b&192)!==128||(_&192)!==128||(C&192)!==128)throw new Error(s);x=(x&15)<<18|(b&63)<<12|(_&63)<<6|C&63,H=65536}else throw new Error(s);if(x<H||x>=55296&&x<=57343)throw new Error(s);if(x>=65536){if(x>1114111)throw new Error(s);x-=65536,g.push(String.fromCharCode(55296|x>>10)),x=56320|x&1023}}g.push(String.fromCharCode(x))}return g.join("")}a.decode=w},function(r,a,o){r.exports=o(3).default},function(r,a,o){o.r(a);class i{constructor(l,c){this.lastId=0,this.prefix=l,this.name=c}create(l){this.lastId++;var c=this.lastId,m=this.prefix+c,M=this.name+"["+c+"]",G=!1,he=function(){G||(l.apply(null,arguments),G=!0)};return this[c]=he,{number:c,id:m,name:M,callback:he}}remove(l){delete this[l.number]}}var s=new i("_pusher_script_","Pusher.ScriptReceivers"),h={VERSION:"8.4.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:""},d=h;class w{constructor(l){this.options=l,this.receivers=l.receivers||s,this.loading={}}load(l,c,m){var M=this;if(M.loading[l]&&M.loading[l].length>0)M.loading[l].push(m);else{M.loading[l]=[m];var G=Ne.createScriptRequest(M.getPath(l,c)),he=M.receivers.create(function(Ce){if(M.receivers.remove(he),M.loading[l]){var Ee=M.loading[l];delete M.loading[l];for(var Le=function(tt){tt||G.cleanup()},Ie=0;Ie<Ee.length;Ie++)Ee[Ie](Ce,Le)}});G.send(he)}}getRoot(l){var c,m=Ne.getDocument().location.protocol;return l&&l.useTLS||m==="https:"?c=this.options.cdn_https:c=this.options.cdn_http,c.replace(/\/*$/,"")+"/"+this.options.version}getPath(l,c){return this.getRoot(c)+"/"+l+this.options.suffix+".js"}}var p=new i("_pusher_dependencies","Pusher.DependenciesReceivers"),g=new w({cdn_http:d.cdn_http,cdn_https:d.cdn_https,version:d.VERSION,suffix:d.dependency_suffix,receivers:p});const v={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 H={buildLogSuffix:function(u){const l="See:",c=v.urls[u];if(!c)return"";let m;return c.fullUrl?m=c.fullUrl:c.path&&(m=v.baseUrl+c.path),m?`${l} ${m}`:""}},b;(function(u){u.UserAuthentication="user-authentication",u.ChannelAuthorization="channel-authorization"})(b||(b={}));class _ extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class C extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class V extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class y extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class B extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class z extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class L extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class E extends Error{constructor(l){super(l),Object.setPrototypeOf(this,new.target.prototype)}}class O extends Error{constructor(l,c){super(c),this.status=l,Object.setPrototypeOf(this,new.target.prototype)}}var D=function(u,l,c,m,M){const G=Ne.createXHR();G.open("POST",c.endpoint,!0),G.setRequestHeader("Content-Type","application/x-www-form-urlencoded");for(var he in c.headers)G.setRequestHeader(he,c.headers[he]);if(c.headersProvider!=null){let Ce=c.headersProvider();for(var he in Ce)G.setRequestHeader(he,Ce[he])}return G.onreadystatechange=function(){if(G.readyState===4)if(G.status===200){let Ce,Ee=!1;try{Ce=JSON.parse(G.responseText),Ee=!0}catch{M(new O(200,`JSON returned from ${m.toString()} endpoint was invalid, yet status code was 200. Data was: ${G.responseText}`),null)}Ee&&M(null,Ce)}else{let Ce="";switch(m){case b.UserAuthentication:Ce=H.buildLogSuffix("authenticationEndpoint");break;case b.ChannelAuthorization:Ce=`Clients must be authorized to join private or presence channels. ${H.buildLogSuffix("authorizationEndpoint")}`;break}M(new O(G.status,`Unable to retrieve auth string from ${m.toString()} endpoint - received status: ${G.status} from ${c.endpoint}. ${Ce}`),null)}},G.send(l),G};function de(u){return X(Z(u))}var pe=String.fromCharCode,ne="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",A=function(u){var l=u.charCodeAt(0);return l<128?u:l<2048?pe(192|l>>>6)+pe(128|l&63):pe(224|l>>>12&15)+pe(128|l>>>6&63)+pe(128|l&63)},Z=function(u){return u.replace(/[^\x00-\x7F]/g,A)},N=function(u){var l=[0,2,1][u.length%3],c=u.charCodeAt(0)<<16|(u.length>1?u.charCodeAt(1):0)<<8|(u.length>2?u.charCodeAt(2):0),m=[ne.charAt(c>>>18),ne.charAt(c>>>12&63),l>=2?"=":ne.charAt(c>>>6&63),l>=1?"=":ne.charAt(c&63)];return m.join("")},X=window.btoa||function(u){return u.replace(/[\s\S]{1,3}/g,N)};class ie{constructor(l,c,m,M){this.clear=c,this.timer=l(()=>{this.timer&&(this.timer=M(this.timer))},m)}isRunning(){return this.timer!==null}ensureAborted(){this.timer&&(this.clear(this.timer),this.timer=null)}}var W=ie;function te(u){window.clearTimeout(u)}function R(u){window.clearInterval(u)}class q extends W{constructor(l,c){super(setTimeout,te,l,function(m){return c(),null})}}class P extends W{constructor(l,c){super(setInterval,R,l,function(m){return c(),m})}}var $={now(){return Date.now?Date.now():new Date().valueOf()},defer(u){return new q(0,u)},method(u,...l){var c=Array.prototype.slice.call(arguments,1);return function(m){return m[u].apply(m,c.concat(arguments))}}},j=$;function Q(u,...l){for(var c=0;c<l.length;c++){var m=l[c];for(var M in m)m[M]&&m[M].constructor&&m[M].constructor===Object?u[M]=Q(u[M]||{},m[M]):u[M]=m[M]}return u}function f(){for(var u=["Pusher"],l=0;l<arguments.length;l++)typeof arguments[l]=="string"?u.push(arguments[l]):u.push(ge(arguments[l]));return u.join(" : ")}function U(u,l){var c=Array.prototype.indexOf;if(u===null)return-1;if(c&&u.indexOf===c)return u.indexOf(l);for(var m=0,M=u.length;m<M;m++)if(u[m]===l)return m;return-1}function re(u,l){for(var c in u)Object.prototype.hasOwnProperty.call(u,c)&&l(u[c],c,u)}function Pe(u){var l=[];return re(u,function(c,m){l.push(m)}),l}function F(u){var l=[];return re(u,function(c){l.push(c)}),l}function be(u,l,c){for(var m=0;m<u.length;m++)l.call(c||window,u[m],m,u)}function K(u,l){for(var c=[],m=0;m<u.length;m++)c.push(l(u[m],m,u,c));return c}function ue(u,l){var c={};return re(u,function(m,M){c[M]=l(m)}),c}function k(u,l){l=l||function(M){return!!M};for(var c=[],m=0;m<u.length;m++)l(u[m],m,u,c)&&c.push(u[m]);return c}function se(u,l){var c={};return re(u,function(m,M){(l&&l(m,M,u,c)||m)&&(c[M]=m)}),c}function fe(u){var l=[];return re(u,function(c,m){l.push([m,c])}),l}function ce(u,l){for(var c=0;c<u.length;c++)if(l(u[c],c,u))return!0;return!1}function Ae(u,l){for(var c=0;c<u.length;c++)if(!l(u[c],c,u))return!1;return!0}function _e(u){return ue(u,function(l){return typeof l=="object"&&(l=ge(l)),encodeURIComponent(de(l.toString()))})}function I(u){var l=se(u,function(m){return m!==void 0}),c=K(fe(_e(l)),j.method("join","=")).join("&");return c}function ee(u){var l=[],c=[];return function m(M,G){var he,Ce,Ee;switch(typeof M){case"object":if(!M)return null;for(he=0;he<l.length;he+=1)if(l[he]===M)return{$ref:c[he]};if(l.push(M),c.push(G),Object.prototype.toString.apply(M)==="[object Array]")for(Ee=[],he=0;he<M.length;he+=1)Ee[he]=m(M[he],G+"["+he+"]");else{Ee={};for(Ce in M)Object.prototype.hasOwnProperty.call(M,Ce)&&(Ee[Ce]=m(M[Ce],G+"["+JSON.stringify(Ce)+"]"))}return Ee;case"number":case"string":case"boolean":return M}}(u,"$")}function ge(u){try{return JSON.stringify(u)}catch{return JSON.stringify(ee(u))}}class Fe{constructor(){this.globalLog=l=>{window.console&&window.console.log&&window.console.log(l)}}debug(...l){this.log(this.globalLog,l)}warn(...l){this.log(this.globalLogWarn,l)}error(...l){this.log(this.globalLogError,l)}globalLogWarn(l){window.console&&window.console.warn?window.console.warn(l):this.globalLog(l)}globalLogError(l){window.console&&window.console.error?window.console.error(l):this.globalLogWarn(l)}log(l,...c){var m=f.apply(this,arguments);yn.log?yn.log(m):yn.logToConsole&&l.bind(this)(m)}}var Be=new Fe,ke=function(u,l,c,m,M){(c.headers!==void 0||c.headersProvider!=null)&&Be.warn(`To send headers with the ${m.toString()} request, you must use AJAX, rather than JSONP.`);var G=u.nextAuthCallbackID.toString();u.nextAuthCallbackID++;var he=u.getDocument(),Ce=he.createElement("script");u.auth_callbacks[G]=function(Ie){M(null,Ie)};var Ee="Pusher.auth_callbacks['"+G+"']";Ce.src=c.endpoint+"?callback="+encodeURIComponent(Ee)+"&"+l;var Le=he.getElementsByTagName("head")[0]||he.documentElement;Le.insertBefore(Ce,Le.firstChild)},vt=ke;class Ue{constructor(l){this.src=l}send(l){var c=this,m="Error loading "+c.src;c.script=document.createElement("script"),c.script.id=l.id,c.script.src=c.src,c.script.type="text/javascript",c.script.charset="UTF-8",c.script.addEventListener?(c.script.onerror=function(){l.callback(m)},c.script.onload=function(){l.callback(null)}):c.script.onreadystatechange=function(){(c.script.readyState==="loaded"||c.script.readyState==="complete")&&l.callback(null)},c.script.async===void 0&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(c.errorScript=document.createElement("script"),c.errorScript.id=l.id+"_error",c.errorScript.text=l.name+"('"+m+"');",c.script.async=c.errorScript.async=!1):c.script.async=!0;var M=document.getElementsByTagName("head")[0];M.insertBefore(c.script,M.firstChild),c.errorScript&&M.insertBefore(c.errorScript,c.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 bt{constructor(l,c){this.url=l,this.data=c}send(l){if(!this.request){var c=I(this.data),m=this.url+"/"+l.number+"?"+c;this.request=Ne.createScriptRequest(m),this.request.send(l)}}cleanup(){this.request&&this.request.cleanup()}}var M1=function(u,l){return function(c,m){var M="http"+(l?"s":"")+"://",G=M+(u.host||u.options.host)+u.options.path,he=Ne.createJSONPRequest(G,c),Ce=Ne.ScriptReceivers.create(function(Ee,Le){s.remove(Ce),he.cleanup(),Le&&Le.host&&(u.host=Le.host),m&&m(Ee,Le)});he.send(Ce)}},o1={name:"jsonp",getAgent:M1},ht=o1;function yt(u,l,c){var m=u+(l.useTLS?"s":""),M=l.useTLS?l.hostTLS:l.hostNonTLS;return m+"://"+M+c}function Vt(u,l){var c="/app/"+u,m="?protocol="+d.PROTOCOL+"&client=js&version="+d.VERSION+(l?"&"+l:"");return c+m}var Bt={getInitial:function(u,l){var c=(l.httpPath||"")+Vt(u,"flash=false");return yt("ws",l,c)}},Et={getInitial:function(u,l){var c=(l.httpPath||"/pusher")+Vt(u);return yt("http",l,c)}},At={getInitial:function(u,l){return yt("http",l,l.httpPath||"/pusher")},getPath:function(u,l){return Vt(u)}};class S{constructor(){this._callbacks={}}get(l){return this._callbacks[ae(l)]}add(l,c,m){var M=ae(l);this._callbacks[M]=this._callbacks[M]||[],this._callbacks[M].push({fn:c,context:m})}remove(l,c,m){if(!l&&!c&&!m){this._callbacks={};return}var M=l?[ae(l)]:Pe(this._callbacks);c||m?this.removeCallback(M,c,m):this.removeAllCallbacks(M)}removeCallback(l,c,m){be(l,function(M){this._callbacks[M]=k(this._callbacks[M]||[],function(G){return c&&c!==G.fn||m&&m!==G.context}),this._callbacks[M].length===0&&delete this._callbacks[M]},this)}removeAllCallbacks(l){be(l,function(c){delete this._callbacks[c]},this)}}function ae(u){return"_"+u}class we{constructor(l){this.callbacks=new S,this.global_callbacks=[],this.failThrough=l}bind(l,c,m){return this.callbacks.add(l,c,m),this}bind_global(l){return this.global_callbacks.push(l),this}unbind(l,c,m){return this.callbacks.remove(l,c,m),this}unbind_global(l){return l?(this.global_callbacks=k(this.global_callbacks||[],c=>c!==l),this):(this.global_callbacks=[],this)}unbind_all(){return this.unbind(),this.unbind_global(),this}emit(l,c,m){for(var M=0;M<this.global_callbacks.length;M++)this.global_callbacks[M](l,c);var G=this.callbacks.get(l),he=[];if(m?he.push(c,m):c&&he.push(c),G&&G.length>0)for(var M=0;M<G.length;M++)G[M].fn.apply(G[M].context||window,he);else this.failThrough&&this.failThrough(l,c);return this}}class Y extends we{constructor(l,c,m,M,G){super(),this.initialize=Ne.transportConnectionInitializer,this.hooks=l,this.name=c,this.priority=m,this.key=M,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 l=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(l,this.options)}catch(c){return j.defer(()=>{this.onError(c),this.changeState("closed")}),!1}return this.bindListeners(),Be.debug("Connecting",{transport:this.name,url:l}),this.changeState("connecting"),!0}close(){return this.socket?(this.socket.close(),!0):!1}send(l){return this.state==="open"?(j.defer(()=>{this.socket&&this.socket.send(l)}),!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(l){this.emit("error",{type:"WebSocketError",error:l}),this.timeline.error(this.buildTimelineMessage({error:l.toString()}))}onClose(l){l?this.changeState("closed",{code:l.code,reason:l.reason,wasClean:l.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0}onMessage(l){this.emit("message",l)}onActivity(){this.emit("activity")}bindListeners(){this.socket.onopen=()=>{this.onOpen()},this.socket.onerror=l=>{this.onError(l)},this.socket.onclose=l=>{this.onClose(l)},this.socket.onmessage=l=>{this.onMessage(l)},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(l,c){this.state=l,this.timeline.info(this.buildTimelineMessage({state:l,params:c})),this.emit(l,c)}buildTimelineMessage(l){return Q({cid:this.id},l)}}class oe{constructor(l){this.hooks=l}isSupported(l){return this.hooks.isSupported(l)}createConnection(l,c,m,M){return new Y(this.hooks,l,c,m,M)}}var me=new oe({urls:Bt,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return!!Ne.getWebSocketAPI()},isSupported:function(){return!!Ne.getWebSocketAPI()},getSocket:function(u){return Ne.createWebSocket(u)}}),nt={urls:Et,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},lt=Q({getSocket:function(u){return Ne.HTTPFactory.createStreamingSocket(u)}},nt),_t=Q({getSocket:function(u){return Ne.HTTPFactory.createPollingSocket(u)}},nt),Nt={isSupported:function(){return Ne.isXHRSupported()}},wt=new oe(Q({},lt,Nt)),l1=new oe(Q({},_t,Nt)),t2={ws:me,xhr_streaming:wt,xhr_polling:l1},x1=t2,fn=new oe({file:"sockjs",urls:At,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return window.SockJS!==void 0},getSocket:function(u,l){return new window.SockJS(u,null,{js_path:g.getPath("sockjs",{useTLS:l.useTLS}),ignore_null_origin:l.ignoreNullOrigin})},beforeOpen:function(u,l){u.send(JSON.stringify({path:l}))}}),E2={isSupported:function(u){var l=Ne.isXDRSupported(u.useTLS);return l}},A2=new oe(Q({},lt,E2)),Me=new oe(Q({},_t,E2));x1.xdr_streaming=A2,x1.xdr_polling=Me,x1.sockjs=fn;var gt=x1;class ye extends we{constructor(){super();var l=this;window.addEventListener!==void 0&&(window.addEventListener("online",function(){l.emit("online")},!1),window.addEventListener("offline",function(){l.emit("offline")},!1))}isOnline(){return window.navigator.onLine===void 0?!0:window.navigator.onLine}}var rt=new ye;class Ye{constructor(l,c,m){this.manager=l,this.transport=c,this.minPingDelay=m.minPingDelay,this.maxPingDelay=m.maxPingDelay,this.pingDelay=void 0}createConnection(l,c,m,M){M=Q({},M,{activityTimeout:this.pingDelay});var G=this.transport.createConnection(l,c,m,M),he=null,Ce=function(){G.unbind("open",Ce),G.bind("closed",Ee),he=j.now()},Ee=Le=>{if(G.unbind("closed",Ee),Le.code===1002||Le.code===1003)this.manager.reportDeath();else if(!Le.wasClean&&he){var Ie=j.now()-he;Ie<2*this.maxPingDelay&&(this.manager.reportDeath(),this.pingDelay=Math.max(Ie/2,this.minPingDelay))}};return G.bind("open",Ce),G}isSupported(l){return this.manager.isAlive()&&this.transport.isSupported(l)}}const N2={decodeMessage:function(u){try{var l=JSON.parse(u.data),c=l.data;if(typeof c=="string")try{c=JSON.parse(l.data)}catch{}var m={event:l.event,channel:l.channel,data:c};return l.user_id&&(m.user_id=l.user_id),m}catch(M){throw{type:"MessageParseError",error:M,data:u.data}}},encodeMessage:function(u){return JSON.stringify(u)},processHandshake:function(u){var l=N2.decodeMessage(u);if(l.event==="pusher:connection_established"){if(!l.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:l.data.socket_id,activityTimeout:l.data.activity_timeout*1e3}}else{if(l.event==="pusher:error")return{action:this.getCloseAction(l.data),error:this.getCloseError(l.data)};throw"Invalid handshake"}},getCloseAction:function(u){return u.code<4e3?u.code>=1002&&u.code<=1004?"backoff":null:u.code===4e3?"tls_only":u.code<4100?"refused":u.code<4200?"backoff":u.code<4300?"retry":"refused"},getCloseError:function(u){return u.code!==1e3&&u.code!==1001?{type:"PusherError",data:{code:u.code,message:u.reason||u.message}}:null}};var Ot=N2;class t5 extends we{constructor(l,c){super(),this.id=l,this.transport=c,this.activityTimeout=c.activityTimeout,this.bindListeners()}handlesActivityChecks(){return this.transport.handlesActivityChecks()}send(l){return this.transport.send(l)}send_event(l,c,m){var M={event:l,data:c};return m&&(M.channel=m),Be.debug("Event sent",M),this.send(Ot.encodeMessage(M))}ping(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}close(){this.transport.close()}bindListeners(){var l={message:m=>{var M;try{M=Ot.decodeMessage(m)}catch(G){this.emit("error",{type:"MessageParseError",error:G,data:m.data})}if(M!==void 0){switch(Be.debug("Event recd",M),M.event){case"pusher:error":this.emit("error",{type:"PusherError",data:M.data});break;case"pusher:ping":this.emit("ping");break;case"pusher:pong":this.emit("pong");break}this.emit("message",M)}},activity:()=>{this.emit("activity")},error:m=>{this.emit("error",m)},closed:m=>{c(),m&&m.code&&this.handleCloseEvent(m),this.transport=null,this.emit("closed")}},c=()=>{re(l,(m,M)=>{this.transport.unbind(M,m)})};re(l,(m,M)=>{this.transport.bind(M,m)})}handleCloseEvent(l){var c=Ot.getCloseAction(l),m=Ot.getCloseError(l);m&&this.emit("error",m),c&&this.emit(c,{action:c,error:m})}}class n5{constructor(l,c){this.transport=l,this.callback=c,this.bindListeners()}close(){this.unbindListeners(),this.transport.close()}bindListeners(){this.onMessage=l=>{this.unbindListeners();var c;try{c=Ot.processHandshake(l)}catch(m){this.finish("error",{error:m}),this.transport.close();return}c.action==="connected"?this.finish("connected",{connection:new t5(c.id,this.transport),activityTimeout:c.activityTimeout}):(this.finish(c.action,{error:c.error}),this.transport.close())},this.onClosed=l=>{this.unbindListeners();var c=Ot.getCloseAction(l)||"backoff",m=Ot.getCloseError(l);this.finish(c,{error:m})},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(l,c){this.callback(Q({transport:this.transport,action:l},c))}}class r5{constructor(l,c){this.timeline=l,this.options=c||{}}send(l,c){this.timeline.isEmpty()||this.timeline.send(Ne.TimelineTransport.getAgent(this,l),c)}}class pn extends we{constructor(l,c){super(function(m,M){Be.debug("No callbacks on "+l+" for "+m)}),this.name=l,this.pusher=c,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}authorize(l,c){return c(null,{auth:""})}trigger(l,c){if(l.indexOf("client-")!==0)throw new _("Event '"+l+"' does not start with 'client-'");if(!this.subscribed){var m=H.buildLogSuffix("triggeringClientEvents");Be.warn(`Client event triggered before channel 'subscription_succeeded' event . ${m}`)}return this.pusher.send_event(l,c,this.name)}disconnect(){this.subscribed=!1,this.subscriptionPending=!1}handleEvent(l){var c=l.event,m=l.data;if(c==="pusher_internal:subscription_succeeded")this.handleSubscriptionSucceededEvent(l);else if(c==="pusher_internal:subscription_count")this.handleSubscriptionCountEvent(l);else if(c.indexOf("pusher_internal:")!==0){var M={};this.emit(c,m,M)}}handleSubscriptionSucceededEvent(l){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",l.data)}handleSubscriptionCountEvent(l){l.data.subscription_count&&(this.subscriptionCount=l.data.subscription_count),this.emit("pusher:subscription_count",l.data)}subscribe(){this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(l,c)=>{l?(this.subscriptionPending=!1,Be.error(l.toString()),this.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:l.message},l instanceof O?{status:l.status}:{}))):this.pusher.send_event("pusher:subscribe",{auth:c.auth,channel_data:c.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 mn extends pn{authorize(l,c){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:l},c)}}class a5{constructor(){this.reset()}get(l){return Object.prototype.hasOwnProperty.call(this.members,l)?{id:l,info:this.members[l]}:null}each(l){re(this.members,(c,m)=>{l(this.get(m))})}setMyID(l){this.myID=l}onSubscription(l){this.members=l.presence.hash,this.count=l.presence.count,this.me=this.get(this.myID)}addMember(l){return this.get(l.user_id)===null&&this.count++,this.members[l.user_id]=l.user_info,this.get(l.user_id)}removeMember(l){var c=this.get(l.user_id);return c&&(delete this.members[l.user_id],this.count--),c}reset(){this.members={},this.count=0,this.myID=null,this.me=null}}var o5=function(u,l,c,m){function M(G){return G instanceof c?G:new c(function(he){he(G)})}return new(c||(c=Promise))(function(G,he){function Ce(Ie){try{Le(m.next(Ie))}catch(tt){he(tt)}}function Ee(Ie){try{Le(m.throw(Ie))}catch(tt){he(tt)}}function Le(Ie){Ie.done?G(Ie.value):M(Ie.value).then(Ce,Ee)}Le((m=m.apply(u,l||[])).next())})};class l5 extends mn{constructor(l,c){super(l,c),this.members=new a5}authorize(l,c){super.authorize(l,(m,M)=>o5(this,void 0,void 0,function*(){if(!m)if(M=M,M.channel_data!=null){var G=JSON.parse(M.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 he=H.buildLogSuffix("authorizationEndpoint");Be.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${he}, or the user should be signed in.`),c("Invalid auth response");return}c(m,M)}))}handleEvent(l){var c=l.event;if(c.indexOf("pusher_internal:")===0)this.handleInternalEvent(l);else{var m=l.data,M={};l.user_id&&(M.user_id=l.user_id),this.emit(c,m,M)}}handleInternalEvent(l){var c=l.event,m=l.data;switch(c){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(l);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(l);break;case"pusher_internal:member_added":var M=this.members.addMember(m);this.emit("pusher:member_added",M);break;case"pusher_internal:member_removed":var G=this.members.removeMember(m);G&&this.emit("pusher:member_removed",G);break}}handleSubscriptionSucceededEvent(l){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(l.data),this.emit("pusher:subscription_succeeded",this.members))}disconnect(){this.members.reset(),super.disconnect()}}var i5=o(1),vn=o(0);class s5 extends mn{constructor(l,c,m){super(l,c),this.key=null,this.nacl=m}authorize(l,c){super.authorize(l,(m,M)=>{if(m){c(m,M);return}let G=M.shared_secret;if(!G){c(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`),null);return}this.key=Object(vn.decode)(G),delete M.shared_secret,c(null,M)})}trigger(l,c){throw new z("Client events are not currently supported for encrypted channels")}handleEvent(l){var c=l.event,m=l.data;if(c.indexOf("pusher_internal:")===0||c.indexOf("pusher:")===0){super.handleEvent(l);return}this.handleEncryptedEvent(c,m)}handleEncryptedEvent(l,c){if(!this.key){Be.debug("Received encrypted event before key has been retrieved from the authEndpoint");return}if(!c.ciphertext||!c.nonce){Be.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+c);return}let m=Object(vn.decode)(c.ciphertext);if(m.length<this.nacl.secretbox.overheadLength){Be.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${m.length}`);return}let M=Object(vn.decode)(c.nonce);if(M.length<this.nacl.secretbox.nonceLength){Be.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${M.length}`);return}let G=this.nacl.secretbox.open(m,M,this.key);if(G===null){Be.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,(he,Ce)=>{if(he){Be.error(`Failed to make a request to the authEndpoint: ${Ce}. Unable to fetch new key, so dropping encrypted event`);return}if(G=this.nacl.secretbox.open(m,M,this.key),G===null){Be.error("Failed to decrypt event with new key. Dropping encrypted event");return}this.emit(l,this.getDataToEmit(G))});return}this.emit(l,this.getDataToEmit(G))}getDataToEmit(l){let c=Object(i5.decode)(l);try{return JSON.parse(c)}catch{return c}}}class c5 extends we{constructor(l,c){super(),this.state="initialized",this.connection=null,this.key=l,this.options=c,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 m=Ne.getNetwork();m.bind("online",()=>{this.timeline.info({netinfo:"online"}),(this.state==="connecting"||this.state==="unavailable")&&this.retryIn(0)}),m.bind("offline",()=>{this.timeline.info({netinfo:"offline"}),this.connection&&this.sendActivityCheck()}),this.updateStrategy()}connect(){if(!(this.connection||this.runner)){if(!this.strategy.isSupported()){this.updateState("failed");return}this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()}}send(l){return this.connection?this.connection.send(l):!1}send_event(l,c,m){return this.connection?this.connection.send_event(l,c,m):!1}disconnect(){this.disconnectInternally(),this.updateState("disconnected")}isUsingTLS(){return this.usingTLS}startConnecting(){var l=(c,m)=>{c?this.runner=this.strategy.connect(0,l):m.action==="error"?(this.emit("error",{type:"HandshakeError",error:m.error}),this.timeline.error({handshakeError:m.error})):(this.abortConnecting(),this.handshakeCallbacks[m.action](m))};this.runner=this.strategy.connect(0,l)}abortConnecting(){this.runner&&(this.runner.abort(),this.runner=null)}disconnectInternally(){if(this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection){var l=this.abandonConnection();l.close()}}updateStrategy(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})}retryIn(l){this.timeline.info({action:"retry",delay:l}),l>0&&this.emit("connecting_in",Math.round(l/1e3)),this.retryTimer=new q(l||0,()=>{this.disconnectInternally(),this.connect()})}clearRetryTimer(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)}setUnavailableTimer(){this.unavailableTimer=new q(this.options.unavailableTimeout,()=>{this.updateState("unavailable")})}clearUnavailableTimer(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()}sendActivityCheck(){this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new q(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 q(this.activityTimeout,()=>{this.sendActivityCheck()}))}stopActivityCheck(){this.activityTimer&&this.activityTimer.ensureAborted()}buildConnectionCallbacks(l){return Q({},l,{message:c=>{this.resetActivityCheck(),this.emit("message",c)},ping:()=>{this.send_event("pusher:pong",{})},activity:()=>{this.resetActivityCheck()},error:c=>{this.emit("error",c)},closed:()=>{this.abandonConnection(),this.shouldRetry()&&this.retryIn(1e3)}})}buildHandshakeCallbacks(l){return Q({},l,{connected:c=>{this.activityTimeout=Math.min(this.options.activityTimeout,c.activityTimeout,c.connection.activityTimeout||1/0),this.clearUnavailableTimer(),this.setConnection(c.connection),this.socket_id=this.connection.id,this.updateState("connected",{socket_id:this.socket_id})}})}buildErrorCallbacks(){let l=c=>m=>{m.error&&this.emit("error",{type:"WebSocketError",error:m.error}),c(m)};return{tls_only:l(()=>{this.usingTLS=!0,this.updateStrategy(),this.retryIn(0)}),refused:l(()=>{this.disconnect()}),backoff:l(()=>{this.retryIn(1e3)}),retry:l(()=>{this.retryIn(0)})}}setConnection(l){this.connection=l;for(var c in this.connectionCallbacks)this.connection.bind(c,this.connectionCallbacks[c]);this.resetActivityCheck()}abandonConnection(){if(this.connection){this.stopActivityCheck();for(var l in this.connectionCallbacks)this.connection.unbind(l,this.connectionCallbacks[l]);var c=this.connection;return this.connection=null,c}}updateState(l,c){var m=this.state;if(this.state=l,m!==l){var M=l;M==="connected"&&(M+=" with new socket ID "+c.socket_id),Be.debug("State changed",m+" -> "+M),this.timeline.info({state:l,params:c}),this.emit("state_change",{previous:m,current:l}),this.emit(l,c)}}shouldRetry(){return this.state==="connecting"||this.state==="connected"}}class u5{constructor(){this.channels={}}add(l,c){return this.channels[l]||(this.channels[l]=d5(l,c)),this.channels[l]}all(){return F(this.channels)}find(l){return this.channels[l]}remove(l){var c=this.channels[l];return delete this.channels[l],c}disconnect(){re(this.channels,function(l){l.disconnect()})}}function d5(u,l){if(u.indexOf("private-encrypted-")===0){if(l.config.nacl)return Xt.createEncryptedChannel(u,l,l.config.nacl);let c="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",m=H.buildLogSuffix("encryptedChannelSupport");throw new z(`${c}. ${m}`)}else{if(u.indexOf("private-")===0)return Xt.createPrivateChannel(u,l);if(u.indexOf("presence-")===0)return Xt.createPresenceChannel(u,l);if(u.indexOf("#")===0)throw new C('Cannot create a channel with name "'+u+'".');return Xt.createChannel(u,l)}}var h5={createChannels(){return new u5},createConnectionManager(u,l){return new c5(u,l)},createChannel(u,l){return new pn(u,l)},createPrivateChannel(u,l){return new mn(u,l)},createPresenceChannel(u,l){return new l5(u,l)},createEncryptedChannel(u,l,c){return new s5(u,l,c)},createTimelineSender(u,l){return new r5(u,l)},createHandshake(u,l){return new n5(u,l)},createAssistantToTheTransportManager(u,l,c){return new Ye(u,l,c)}},Xt=h5;class na{constructor(l){this.options=l||{},this.livesLeft=this.options.lives||1/0}getAssistant(l){return Xt.createAssistantToTheTransportManager(this,l,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}isAlive(){return this.livesLeft>0}reportDeath(){this.livesLeft-=1}}class b1{constructor(l,c){this.strategies=l,this.loop=!!c.loop,this.failFast=!!c.failFast,this.timeout=c.timeout,this.timeoutLimit=c.timeoutLimit}isSupported(){return ce(this.strategies,j.method("isSupported"))}connect(l,c){var m=this.strategies,M=0,G=this.timeout,he=null,Ce=(Ee,Le)=>{Le?c(null,Le):(M=M+1,this.loop&&(M=M%m.length),M<m.length?(G&&(G=G*2,this.timeoutLimit&&(G=Math.min(G,this.timeoutLimit))),he=this.tryStrategy(m[M],l,{timeout:G,failFast:this.failFast},Ce)):c(!0))};return he=this.tryStrategy(m[M],l,{timeout:G,failFast:this.failFast},Ce),{abort:function(){he.abort()},forceMinPriority:function(Ee){l=Ee,he&&he.forceMinPriority(Ee)}}}tryStrategy(l,c,m,M){var G=null,he=null;return m.timeout>0&&(G=new q(m.timeout,function(){he.abort(),M(!0)})),he=l.connect(c,function(Ce,Ee){Ce&&G&&G.isRunning()&&!m.failFast||(G&&G.ensureAborted(),M(Ce,Ee))}),{abort:function(){G&&G.ensureAborted(),he.abort()},forceMinPriority:function(Ce){he.forceMinPriority(Ce)}}}}class wn{constructor(l){this.strategies=l}isSupported(){return ce(this.strategies,j.method("isSupported"))}connect(l,c){return f5(this.strategies,l,function(m,M){return function(G,he){if(M[m].error=G,G){p5(M)&&c(!0);return}be(M,function(Ce){Ce.forceMinPriority(he.transport.priority)}),c(null,he)}})}}function f5(u,l,c){var m=K(u,function(M,G,he,Ce){return M.connect(l,c(G,Ce))});return{abort:function(){be(m,m5)},forceMinPriority:function(M){be(m,function(G){G.forceMinPriority(M)})}}}function p5(u){return Ae(u,function(l){return!!l.error})}function m5(u){!u.error&&!u.aborted&&(u.abort(),u.aborted=!0)}class v5{constructor(l,c,m){this.strategy=l,this.transports=c,this.ttl=m.ttl||1800*1e3,this.usingTLS=m.useTLS,this.timeline=m.timeline}isSupported(){return this.strategy.isSupported()}connect(l,c){var m=this.usingTLS,M=w5(m),G=M&&M.cacheSkipCount?M.cacheSkipCount:0,he=[this.strategy];if(M&&M.timestamp+this.ttl>=j.now()){var Ce=this.transports[M.transport];Ce&&(["ws","wss"].includes(M.transport)||G>3?(this.timeline.info({cached:!0,transport:M.transport,latency:M.latency}),he.push(new b1([Ce],{timeout:M.latency*2+1e3,failFast:!0}))):G++)}var Ee=j.now(),Le=he.pop().connect(l,function Ie(tt,L2){tt?(ra(m),he.length>0?(Ee=j.now(),Le=he.pop().connect(l,Ie)):c(tt)):(g5(m,L2.transport.name,j.now()-Ee,G),c(null,L2))});return{abort:function(){Le.abort()},forceMinPriority:function(Ie){l=Ie,Le&&Le.forceMinPriority(Ie)}}}}function gn(u){return"pusherTransport"+(u?"TLS":"NonTLS")}function w5(u){var l=Ne.getLocalStorage();if(l)try{var c=l[gn(u)];if(c)return JSON.parse(c)}catch{ra(u)}return null}function g5(u,l,c,m){var M=Ne.getLocalStorage();if(M)try{M[gn(u)]=ge({timestamp:j.now(),transport:l,latency:c,cacheSkipCount:m})}catch{}}function ra(u){var l=Ne.getLocalStorage();if(l)try{delete l[gn(u)]}catch{}}class Z2{constructor(l,{delay:c}){this.strategy=l,this.options={delay:c}}isSupported(){return this.strategy.isSupported()}connect(l,c){var m=this.strategy,M,G=new q(this.options.delay,function(){M=m.connect(l,c)});return{abort:function(){G.ensureAborted(),M&&M.abort()},forceMinPriority:function(he){l=he,M&&M.forceMinPriority(he)}}}}class n2{constructor(l,c,m){this.test=l,this.trueBranch=c,this.falseBranch=m}isSupported(){var l=this.test()?this.trueBranch:this.falseBranch;return l.isSupported()}connect(l,c){var m=this.test()?this.trueBranch:this.falseBranch;return m.connect(l,c)}}class C5{constructor(l){this.strategy=l}isSupported(){return this.strategy.isSupported()}connect(l,c){var m=this.strategy.connect(l,function(M,G){G&&m.abort(),c(M,G)});return m}}function r2(u){return function(){return u.isSupported()}}var k5=function(u,l,c){var m={};function M(pa,C4,k4,y4,V4){var ma=c(u,pa,C4,k4,y4,V4);return m[pa]=ma,ma}var G=Object.assign({},l,{hostNonTLS:u.wsHost+":"+u.wsPort,hostTLS:u.wsHost+":"+u.wssPort,httpPath:u.wsPath}),he=Object.assign({},G,{useTLS:!0}),Ce=Object.assign({},l,{hostNonTLS:u.httpHost+":"+u.httpPort,hostTLS:u.httpHost+":"+u.httpsPort,httpPath:u.httpPath}),Ee={loop:!0,timeout:15e3,timeoutLimit:6e4},Le=new na({minPingDelay:1e4,maxPingDelay:u.activityTimeout}),Ie=new na({lives:2,minPingDelay:1e4,maxPingDelay:u.activityTimeout}),tt=M("ws","ws",3,G,Le),L2=M("wss","ws",3,he,Le),p4=M("sockjs","sockjs",1,Ce),sa=M("xhr_streaming","xhr_streaming",1,Ce,Ie),m4=M("xdr_streaming","xdr_streaming",1,Ce,Ie),ca=M("xhr_polling","xhr_polling",1,Ce),v4=M("xdr_polling","xdr_polling",1,Ce),ua=new b1([tt],Ee),w4=new b1([L2],Ee),g4=new b1([p4],Ee),da=new b1([new n2(r2(sa),sa,m4)],Ee),ha=new b1([new n2(r2(ca),ca,v4)],Ee),fa=new b1([new n2(r2(da),new wn([da,new Z2(ha,{delay:4e3})]),ha)],Ee),Vn=new n2(r2(fa),fa,g4),Mn;return l.useTLS?Mn=new wn([ua,new Z2(Vn,{delay:2e3})]):Mn=new wn([ua,new Z2(w4,{delay:2e3}),new Z2(Vn,{delay:5e3})]),new v5(new C5(new n2(r2(tt),Mn,Vn)),m,{ttl:18e5,timeline:l.timeline,useTLS:l.useTLS})},y5=k5,V5=function(){var u=this;u.timeline.info(u.buildTimelineMessage({transport:u.name+(u.options.useTLS?"s":"")})),u.hooks.isInitialized()?u.changeState("initialized"):u.hooks.file?(u.changeState("initializing"),g.load(u.hooks.file,{useTLS:u.options.useTLS},function(l,c){u.hooks.isInitialized()?(u.changeState("initialized"),c(!0)):(l&&u.onError(l),u.onClose(),c(!1))})):u.onClose()},M5={getRequest:function(u){var l=new window.XDomainRequest;return l.ontimeout=function(){u.emit("error",new V),u.close()},l.onerror=function(c){u.emit("error",c),u.close()},l.onprogress=function(){l.responseText&&l.responseText.length>0&&u.onChunk(200,l.responseText)},l.onload=function(){l.responseText&&l.responseText.length>0&&u.onChunk(200,l.responseText),u.emit("finished",200),u.close()},l},abortRequest:function(u){u.ontimeout=u.onerror=u.onprogress=u.onload=null,u.abort()}},x5=M5;const b5=256*1024;class _5 extends we{constructor(l,c,m){super(),this.hooks=l,this.method=c,this.url=m}start(l){this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=()=>{this.close()},Ne.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(l)}close(){this.unloader&&(Ne.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)}onChunk(l,c){for(;;){var m=this.advanceBuffer(c);if(m)this.emit("chunk",{status:l,data:m});else break}this.isBufferTooLong(c)&&this.emit("buffer_too_long")}advanceBuffer(l){var c=l.slice(this.position),m=c.indexOf(`
|
|
569
|
-
`);return m!==-1?(this.position+=m+1,c.slice(0,m)):null}isBufferTooLong(l){return this.position===l.length&&l.length>b5}}var Cn;(function(u){u[u.CONNECTING=0]="CONNECTING",u[u.OPEN=1]="OPEN",u[u.CLOSED=3]="CLOSED"})(Cn||(Cn={}));var _1=Cn,H5=1;class B5{constructor(l,c){this.hooks=l,this.session=oa(1e3)+"/"+Z5(8),this.location=E5(c),this.readyState=_1.CONNECTING,this.openStream()}send(l){return this.sendRaw(JSON.stringify([l]))}ping(){this.hooks.sendHeartbeat(this)}close(l,c){this.onClose(l,c,!0)}sendRaw(l){if(this.readyState===_1.OPEN)try{return Ne.createSocketRequest("POST",aa(A5(this.location,this.session))).start(l),!0}catch{return!1}else return!1}reconnect(){this.closeStream(),this.openStream()}onClose(l,c,m){this.closeStream(),this.readyState=_1.CLOSED,this.onclose&&this.onclose({code:l,reason:c,wasClean:m})}onChunk(l){if(l.status===200){this.readyState===_1.OPEN&&this.onActivity();var c,m=l.data.slice(0,1);switch(m){case"o":c=JSON.parse(l.data.slice(1)||"{}"),this.onOpen(c);break;case"a":c=JSON.parse(l.data.slice(1)||"[]");for(var M=0;M<c.length;M++)this.onEvent(c[M]);break;case"m":c=JSON.parse(l.data.slice(1)||"null"),this.onEvent(c);break;case"h":this.hooks.onHeartbeat(this);break;case"c":c=JSON.parse(l.data.slice(1)||"[]"),this.onClose(c[0],c[1],!0);break}}}onOpen(l){this.readyState===_1.CONNECTING?(l&&l.hostname&&(this.location.base=N5(this.location.base,l.hostname)),this.readyState=_1.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(l){this.readyState===_1.OPEN&&this.onmessage&&this.onmessage({data:l})}onActivity(){this.onactivity&&this.onactivity()}onError(l){this.onerror&&this.onerror(l)}openStream(){this.stream=Ne.createSocketRequest("POST",aa(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",l=>{this.onChunk(l)}),this.stream.bind("finished",l=>{this.hooks.onFinished(this,l)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch(l){j.defer(()=>{this.onError(l),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}}function E5(u){var l=/([^\?]*)\/*(\??.*)/.exec(u);return{base:l[1],queryString:l[2]}}function A5(u,l){return u.base+"/"+l+"/xhr_send"}function aa(u){var l=u.indexOf("?")===-1?"?":"&";return u+l+"t="+ +new Date+"&n="+H5++}function N5(u,l){var c=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(u);return c[1]+l+c[3]}function oa(u){return Ne.randomInt(u)}function Z5(u){for(var l=[],c=0;c<u;c++)l.push(oa(32).toString(32));return l.join("")}var S5=B5,L5={getReceiveURL:function(u,l){return u.base+"/"+l+"/xhr_streaming"+u.queryString},onHeartbeat:function(u){u.sendRaw("[]")},sendHeartbeat:function(u){u.sendRaw("[]")},onFinished:function(u,l){u.onClose(1006,"Connection interrupted ("+l+")",!1)}},P5=L5,T5={getReceiveURL:function(u,l){return u.base+"/"+l+"/xhr"+u.queryString},onHeartbeat:function(){},sendHeartbeat:function(u){u.sendRaw("[]")},onFinished:function(u,l){l===200?u.reconnect():u.onClose(1006,"Connection interrupted ("+l+")",!1)}},I5=T5,D5={getRequest:function(u){var l=Ne.getXHRAPI(),c=new l;return c.onreadystatechange=c.onprogress=function(){switch(c.readyState){case 3:c.responseText&&c.responseText.length>0&&u.onChunk(c.status,c.responseText);break;case 4:c.responseText&&c.responseText.length>0&&u.onChunk(c.status,c.responseText),u.emit("finished",c.status),u.close();break}},c},abortRequest:function(u){u.onreadystatechange=null,u.abort()}},$5=D5,O5={createStreamingSocket(u){return this.createSocket(P5,u)},createPollingSocket(u){return this.createSocket(I5,u)},createSocket(u,l){return new S5(u,l)},createXHR(u,l){return this.createRequest($5,u,l)},createRequest(u,l,c){return new _5(u,l,c)}},la=O5;la.createXDR=function(u,l){return this.createRequest(x5,u,l)};var z5=la,R5={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:s,DependenciesReceivers:p,getDefaultStrategy:y5,Transports:gt,transportConnectionInitializer:V5,HTTPFactory:z5,TimelineTransport:ht,getXHRAPI(){return window.XMLHttpRequest},getWebSocketAPI(){return window.WebSocket||window.MozWebSocket},setup(u){window.Pusher=u;var l=()=>{this.onDocumentBody(u.ready)};window.JSON?l():g.load("json2",{},l)},getDocument(){return document},getProtocol(){return this.getDocument().location.protocol},getAuthorizers(){return{ajax:D,jsonp:vt}},onDocumentBody(u){document.body?u():setTimeout(()=>{this.onDocumentBody(u)},0)},createJSONPRequest(u,l){return new bt(u,l)},createScriptRequest(u){return new Ue(u)},getLocalStorage(){try{return window.localStorage}catch{return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){var u=this.getXHRAPI();return new u},createMicrosoftXHR(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork(){return rt},createWebSocket(u){var l=this.getWebSocketAPI();return new l(u)},createSocketRequest(u,l){if(this.isXHRSupported())return this.HTTPFactory.createXHR(u,l);if(this.isXDRSupported(l.indexOf("https:")===0))return this.HTTPFactory.createXDR(u,l);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var u=this.getXHRAPI();return!!u&&new u().withCredentials!==void 0},isXDRSupported(u){var l=u?"https:":"http:",c=this.getProtocol();return!!window.XDomainRequest&&c===l},addUnloadListener(u){window.addEventListener!==void 0?window.addEventListener("unload",u,!1):window.attachEvent!==void 0&&window.attachEvent("onunload",u)},removeUnloadListener(u){window.addEventListener!==void 0?window.removeEventListener("unload",u,!1):window.detachEvent!==void 0&&window.detachEvent("onunload",u)},randomInt(u){return Math.floor(function(){return(window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)}()*u)}},Ne=R5,kn;(function(u){u[u.ERROR=3]="ERROR",u[u.INFO=6]="INFO",u[u.DEBUG=7]="DEBUG"})(kn||(kn={}));var S2=kn;class j5{constructor(l,c,m){this.key=l,this.session=c,this.events=[],this.options=m||{},this.sent=0,this.uniqueID=0}log(l,c){l<=this.options.level&&(this.events.push(Q({},c,{timestamp:j.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}error(l){this.log(S2.ERROR,l)}info(l){this.log(S2.INFO,l)}debug(l){this.log(S2.DEBUG,l)}isEmpty(){return this.events.length===0}send(l,c){var m=Q({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=[],l(m,(M,G)=>{M||this.sent++,c&&c(M,G)}),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}class F5{constructor(l,c,m,M){this.name=l,this.priority=c,this.transport=m,this.options=M||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(l,c){if(this.isSupported()){if(this.priority<l)return ia(new y,c)}else return ia(new E,c);var m=!1,M=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),G=null,he=function(){M.unbind("initialized",he),M.connect()},Ce=function(){G=Xt.createHandshake(M,function(tt){m=!0,Ie(),c(null,tt)})},Ee=function(tt){Ie(),c(tt)},Le=function(){Ie();var tt;tt=ge(M),c(new B(tt))},Ie=function(){M.unbind("initialized",he),M.unbind("open",Ce),M.unbind("error",Ee),M.unbind("closed",Le)};return M.bind("initialized",he),M.bind("open",Ce),M.bind("error",Ee),M.bind("closed",Le),M.initialize(),{abort:()=>{m||(Ie(),G?G.close():M.close())},forceMinPriority:tt=>{m||this.priority<tt&&(G?G.close():M.close())}}}}function ia(u,l){return j.defer(function(){l(u)}),{abort:function(){},forceMinPriority:function(){}}}const{Transports:U5}=Ne;var Y5=function(u,l,c,m,M,G){var he=U5[c];if(!he)throw new L(c);var Ce=(!u.enabledTransports||U(u.enabledTransports,l)!==-1)&&(!u.disabledTransports||U(u.disabledTransports,l)===-1),Ee;return Ce?(M=Object.assign({ignoreNullOrigin:u.ignoreNullOrigin},M),Ee=new F5(l,m,G?G.getAssistant(he):he,M)):Ee=W5,Ee},W5={isSupported:function(){return!1},connect:function(u,l){var c=j.defer(function(){l(new E)});return{abort:function(){c.ensureAborted()},forceMinPriority:function(){}}}};function q5(u){if(u==null)throw"You must pass an options object";if(u.cluster==null)throw"Options object must provide a cluster";"disableStats"in u&&Be.warn("The disableStats option is deprecated in favor of enableStats")}const X5=(u,l)=>{var c="socket_id="+encodeURIComponent(u.socketId);for(var m in l.params)c+="&"+encodeURIComponent(m)+"="+encodeURIComponent(l.params[m]);if(l.paramsProvider!=null){let M=l.paramsProvider();for(var m in M)c+="&"+encodeURIComponent(m)+"="+encodeURIComponent(M[m])}return c};var G5=u=>{if(typeof Ne.getAuthorizers()[u.transport]>"u")throw`'${u.transport}' is not a recognized auth transport`;return(l,c)=>{const m=X5(l,u);Ne.getAuthorizers()[u.transport](Ne,m,u,b.UserAuthentication,c)}};const K5=(u,l)=>{var c="socket_id="+encodeURIComponent(u.socketId);c+="&channel_name="+encodeURIComponent(u.channelName);for(var m in l.params)c+="&"+encodeURIComponent(m)+"="+encodeURIComponent(l.params[m]);if(l.paramsProvider!=null){let M=l.paramsProvider();for(var m in M)c+="&"+encodeURIComponent(m)+"="+encodeURIComponent(M[m])}return c};var Q5=u=>{if(typeof Ne.getAuthorizers()[u.transport]>"u")throw`'${u.transport}' is not a recognized auth transport`;return(l,c)=>{const m=K5(l,u);Ne.getAuthorizers()[u.transport](Ne,m,u,b.ChannelAuthorization,c)}};const J5=(u,l,c)=>{const m={authTransport:l.transport,authEndpoint:l.endpoint,auth:{params:l.params,headers:l.headers}};return(M,G)=>{const he=u.channel(M.channelName);c(he,m).authorize(M.socketId,G)}};function e4(u,l){let c={activityTimeout:u.activityTimeout||d.activityTimeout,cluster:u.cluster,httpPath:u.httpPath||d.httpPath,httpPort:u.httpPort||d.httpPort,httpsPort:u.httpsPort||d.httpsPort,pongTimeout:u.pongTimeout||d.pongTimeout,statsHost:u.statsHost||d.stats_host,unavailableTimeout:u.unavailableTimeout||d.unavailableTimeout,wsPath:u.wsPath||d.wsPath,wsPort:u.wsPort||d.wsPort,wssPort:u.wssPort||d.wssPort,enableStats:o4(u),httpHost:t4(u),useTLS:a4(u),wsHost:n4(u),userAuthenticator:l4(u),channelAuthorizer:s4(u,l)};return"disabledTransports"in u&&(c.disabledTransports=u.disabledTransports),"enabledTransports"in u&&(c.enabledTransports=u.enabledTransports),"ignoreNullOrigin"in u&&(c.ignoreNullOrigin=u.ignoreNullOrigin),"timelineParams"in u&&(c.timelineParams=u.timelineParams),"nacl"in u&&(c.nacl=u.nacl),c}function t4(u){return u.httpHost?u.httpHost:u.cluster?`sockjs-${u.cluster}.pusher.com`:d.httpHost}function n4(u){return u.wsHost?u.wsHost:r4(u.cluster)}function r4(u){return`ws-${u}.pusher.com`}function a4(u){return Ne.getProtocol()==="https:"?!0:u.forceTLS!==!1}function o4(u){return"enableStats"in u?u.enableStats:"disableStats"in u?!u.disableStats:!1}function l4(u){const l=Object.assign(Object.assign({},d.userAuthentication),u.userAuthentication);return"customHandler"in l&&l.customHandler!=null?l.customHandler:G5(l)}function i4(u,l){let c;return"channelAuthorization"in u?c=Object.assign(Object.assign({},d.channelAuthorization),u.channelAuthorization):(c={transport:u.authTransport||d.authTransport,endpoint:u.authEndpoint||d.authEndpoint},"auth"in u&&("params"in u.auth&&(c.params=u.auth.params),"headers"in u.auth&&(c.headers=u.auth.headers)),"authorizer"in u&&(c.customHandler=J5(l,c,u.authorizer))),c}function s4(u,l){const c=i4(u,l);return"customHandler"in c&&c.customHandler!=null?c.customHandler:Q5(c)}class c4 extends we{constructor(l){super(function(c,m){Be.debug(`No callbacks on watchlist events for ${c}`)}),this.pusher=l,this.bindWatchlistInternalEvent()}handleEvent(l){l.data.events.forEach(c=>{this.emit(c.name,c)})}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",l=>{var c=l.event;c==="pusher_internal:watchlist_events"&&this.handleEvent(l)})}}function u4(){let u,l;return{promise:new Promise((m,M)=>{u=m,l=M}),resolve:u,reject:l}}var d4=u4;class h4 extends we{constructor(l){super(function(c,m){Be.debug("No callbacks on user for "+c)}),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(c,m)=>{if(c){Be.warn(`Error during signin: ${c}`),this._cleanup();return}this.pusher.send_event("pusher:signin",{auth:m.auth,user_data:m.user_data})},this.pusher=l,this.pusher.connection.bind("state_change",({previous:c,current:m})=>{c!=="connected"&&m==="connected"&&this._signin(),c==="connected"&&m!=="connected"&&(this._cleanup(),this._newSigninPromiseIfNeeded())}),this.watchlist=new c4(l),this.pusher.connection.bind("message",c=>{var m=c.event;m==="pusher:signin_success"&&this._onSigninSuccess(c.data),this.serverToUserChannel&&this.serverToUserChannel.name===c.channel&&this.serverToUserChannel.handleEvent(c)})}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(l){try{this.user_data=JSON.parse(l.user_data)}catch{Be.error(`Failed parsing user data after signin: ${l.user_data}`),this._cleanup();return}if(typeof this.user_data.id!="string"||this.user_data.id===""){Be.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),this._cleanup();return}this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){const l=c=>{c.subscriptionPending&&c.subscriptionCancelled?c.reinstateSubscription():!c.subscriptionPending&&this.pusher.connection.state==="connected"&&c.subscribe()};this.serverToUserChannel=new pn(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global((c,m)=>{c.indexOf("pusher_internal:")===0||c.indexOf("pusher:")===0||this.emit(c,m)}),l(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:l,resolve:c}=d4();l.done=!1;const m=()=>{l.done=!0};l.then(m).catch(m),this.signinDonePromise=l,this._signinDoneResolve=c}}class it{static ready(){it.isReady=!0;for(var l=0,c=it.instances.length;l<c;l++)it.instances[l].connect()}static getClientFeatures(){return Pe(se({ws:Ne.Transports.ws},function(l){return l.isSupported({})}))}constructor(l,c){f4(l),q5(c),this.key=l,this.config=e4(c,this),this.channels=Xt.createChannels(),this.global_emitter=new we,this.sessionID=Ne.randomInt(1e9),this.timeline=new j5(this.key,this.sessionID,{cluster:this.config.cluster,features:it.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:S2.INFO,version:d.VERSION}),this.config.enableStats&&(this.timelineSender=Xt.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+Ne.TimelineTransport.name}));var m=M=>Ne.getDefaultStrategy(this.config,M,Y5);this.connection=Xt.createConnectionManager(this.key,{getStrategy:m,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",M=>{var G=M.event,he=G.indexOf("pusher_internal:")===0;if(M.channel){var Ce=this.channel(M.channel);Ce&&Ce.handleEvent(M)}he||this.global_emitter.emit(M.event,M.data)}),this.connection.bind("connecting",()=>{this.channels.disconnect()}),this.connection.bind("disconnected",()=>{this.channels.disconnect()}),this.connection.bind("error",M=>{Be.warn(M)}),it.instances.push(this),this.timeline.info({instances:it.instances.length}),this.user=new h4(this),it.isReady&&this.connect()}channel(l){return this.channels.find(l)}allChannels(){return this.channels.all()}connect(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var l=this.connection.isUsingTLS(),c=this.timelineSender;this.timelineSenderTimer=new P(6e4,function(){c.send(l)})}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}bind(l,c,m){return this.global_emitter.bind(l,c,m),this}unbind(l,c,m){return this.global_emitter.unbind(l,c,m),this}bind_global(l){return this.global_emitter.bind_global(l),this}unbind_global(l){return this.global_emitter.unbind_global(l),this}unbind_all(l){return this.global_emitter.unbind_all(),this}subscribeAll(){var l;for(l in this.channels.channels)this.channels.channels.hasOwnProperty(l)&&this.subscribe(l)}subscribe(l){var c=this.channels.add(l,this);return c.subscriptionPending&&c.subscriptionCancelled?c.reinstateSubscription():!c.subscriptionPending&&this.connection.state==="connected"&&c.subscribe(),c}unsubscribe(l){var c=this.channels.find(l);c&&c.subscriptionPending?c.cancelSubscription():(c=this.channels.remove(l),c&&c.subscribed&&c.unsubscribe())}send_event(l,c,m){return this.connection.send_event(l,c,m)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}it.instances=[],it.isReady=!1,it.logToConsole=!1,it.Runtime=Ne,it.ScriptReceivers=Ne.ScriptReceivers,it.DependenciesReceivers=Ne.DependenciesReceivers,it.auth_callbacks=Ne.auth_callbacks;var yn=a.default=it;function f4(u){if(u==null)throw"You must pass your app key when you instantiate Pusher."}Ne.setup(it)}])})}(Fn)),Fn.exports}zu();e.ref([]);e.ref([]),e.ref([]),e.ref();const Ru={width:"224",height:"377",viewBox:"0 0 224 377",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ju=["fill"],Fu=["fill"],Uu=["fill"],Yu=["fill"],Wu=["fill"],qu=["fill"],Xu=["fill"],Gu=["fill"],Ku=["fill"],Qu=e.defineComponent({__name:"HeroGirlIcon",props:{primaryColor:{},secondaryColor:{}},setup(t){const n=t,{colors:r}=C2(),a=e.computed(()=>n.primaryColor??r.primaryColor.value),o=e.computed(()=>n.secondaryColor??r.primaryColorActive.value);return(i,s)=>(e.openBlock(),e.createElementBlock("svg",Ru,[e.createElementVNode("path",{fill:o.value,d:`M68.8749 328.38C72.723 330.19 80.9125 335.257 83.6113 337.77C97.8265 324.35 108.84 309.191 108.84
|
|
569
|
+
`);return m!==-1?(this.position+=m+1,c.slice(0,m)):null}isBufferTooLong(l){return this.position===l.length&&l.length>b5}}var Cn;(function(u){u[u.CONNECTING=0]="CONNECTING",u[u.OPEN=1]="OPEN",u[u.CLOSED=3]="CLOSED"})(Cn||(Cn={}));var _1=Cn,H5=1;class B5{constructor(l,c){this.hooks=l,this.session=oa(1e3)+"/"+Z5(8),this.location=E5(c),this.readyState=_1.CONNECTING,this.openStream()}send(l){return this.sendRaw(JSON.stringify([l]))}ping(){this.hooks.sendHeartbeat(this)}close(l,c){this.onClose(l,c,!0)}sendRaw(l){if(this.readyState===_1.OPEN)try{return Ne.createSocketRequest("POST",aa(A5(this.location,this.session))).start(l),!0}catch{return!1}else return!1}reconnect(){this.closeStream(),this.openStream()}onClose(l,c,m){this.closeStream(),this.readyState=_1.CLOSED,this.onclose&&this.onclose({code:l,reason:c,wasClean:m})}onChunk(l){if(l.status===200){this.readyState===_1.OPEN&&this.onActivity();var c,m=l.data.slice(0,1);switch(m){case"o":c=JSON.parse(l.data.slice(1)||"{}"),this.onOpen(c);break;case"a":c=JSON.parse(l.data.slice(1)||"[]");for(var M=0;M<c.length;M++)this.onEvent(c[M]);break;case"m":c=JSON.parse(l.data.slice(1)||"null"),this.onEvent(c);break;case"h":this.hooks.onHeartbeat(this);break;case"c":c=JSON.parse(l.data.slice(1)||"[]"),this.onClose(c[0],c[1],!0);break}}}onOpen(l){this.readyState===_1.CONNECTING?(l&&l.hostname&&(this.location.base=N5(this.location.base,l.hostname)),this.readyState=_1.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(l){this.readyState===_1.OPEN&&this.onmessage&&this.onmessage({data:l})}onActivity(){this.onactivity&&this.onactivity()}onError(l){this.onerror&&this.onerror(l)}openStream(){this.stream=Ne.createSocketRequest("POST",aa(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",l=>{this.onChunk(l)}),this.stream.bind("finished",l=>{this.hooks.onFinished(this,l)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch(l){j.defer(()=>{this.onError(l),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}}function E5(u){var l=/([^\?]*)\/*(\??.*)/.exec(u);return{base:l[1],queryString:l[2]}}function A5(u,l){return u.base+"/"+l+"/xhr_send"}function aa(u){var l=u.indexOf("?")===-1?"?":"&";return u+l+"t="+ +new Date+"&n="+H5++}function N5(u,l){var c=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(u);return c[1]+l+c[3]}function oa(u){return Ne.randomInt(u)}function Z5(u){for(var l=[],c=0;c<u;c++)l.push(oa(32).toString(32));return l.join("")}var S5=B5,L5={getReceiveURL:function(u,l){return u.base+"/"+l+"/xhr_streaming"+u.queryString},onHeartbeat:function(u){u.sendRaw("[]")},sendHeartbeat:function(u){u.sendRaw("[]")},onFinished:function(u,l){u.onClose(1006,"Connection interrupted ("+l+")",!1)}},P5=L5,T5={getReceiveURL:function(u,l){return u.base+"/"+l+"/xhr"+u.queryString},onHeartbeat:function(){},sendHeartbeat:function(u){u.sendRaw("[]")},onFinished:function(u,l){l===200?u.reconnect():u.onClose(1006,"Connection interrupted ("+l+")",!1)}},I5=T5,D5={getRequest:function(u){var l=Ne.getXHRAPI(),c=new l;return c.onreadystatechange=c.onprogress=function(){switch(c.readyState){case 3:c.responseText&&c.responseText.length>0&&u.onChunk(c.status,c.responseText);break;case 4:c.responseText&&c.responseText.length>0&&u.onChunk(c.status,c.responseText),u.emit("finished",c.status),u.close();break}},c},abortRequest:function(u){u.onreadystatechange=null,u.abort()}},$5=D5,O5={createStreamingSocket(u){return this.createSocket(P5,u)},createPollingSocket(u){return this.createSocket(I5,u)},createSocket(u,l){return new S5(u,l)},createXHR(u,l){return this.createRequest($5,u,l)},createRequest(u,l,c){return new _5(u,l,c)}},la=O5;la.createXDR=function(u,l){return this.createRequest(x5,u,l)};var z5=la,R5={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:s,DependenciesReceivers:p,getDefaultStrategy:y5,Transports:gt,transportConnectionInitializer:V5,HTTPFactory:z5,TimelineTransport:ht,getXHRAPI(){return window.XMLHttpRequest},getWebSocketAPI(){return window.WebSocket||window.MozWebSocket},setup(u){window.Pusher=u;var l=()=>{this.onDocumentBody(u.ready)};window.JSON?l():g.load("json2",{},l)},getDocument(){return document},getProtocol(){return this.getDocument().location.protocol},getAuthorizers(){return{ajax:D,jsonp:vt}},onDocumentBody(u){document.body?u():setTimeout(()=>{this.onDocumentBody(u)},0)},createJSONPRequest(u,l){return new bt(u,l)},createScriptRequest(u){return new Ue(u)},getLocalStorage(){try{return window.localStorage}catch{return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){var u=this.getXHRAPI();return new u},createMicrosoftXHR(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork(){return rt},createWebSocket(u){var l=this.getWebSocketAPI();return new l(u)},createSocketRequest(u,l){if(this.isXHRSupported())return this.HTTPFactory.createXHR(u,l);if(this.isXDRSupported(l.indexOf("https:")===0))return this.HTTPFactory.createXDR(u,l);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var u=this.getXHRAPI();return!!u&&new u().withCredentials!==void 0},isXDRSupported(u){var l=u?"https:":"http:",c=this.getProtocol();return!!window.XDomainRequest&&c===l},addUnloadListener(u){window.addEventListener!==void 0?window.addEventListener("unload",u,!1):window.attachEvent!==void 0&&window.attachEvent("onunload",u)},removeUnloadListener(u){window.addEventListener!==void 0?window.removeEventListener("unload",u,!1):window.detachEvent!==void 0&&window.detachEvent("onunload",u)},randomInt(u){return Math.floor(function(){return(window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)}()*u)}},Ne=R5,kn;(function(u){u[u.ERROR=3]="ERROR",u[u.INFO=6]="INFO",u[u.DEBUG=7]="DEBUG"})(kn||(kn={}));var S2=kn;class j5{constructor(l,c,m){this.key=l,this.session=c,this.events=[],this.options=m||{},this.sent=0,this.uniqueID=0}log(l,c){l<=this.options.level&&(this.events.push(Q({},c,{timestamp:j.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}error(l){this.log(S2.ERROR,l)}info(l){this.log(S2.INFO,l)}debug(l){this.log(S2.DEBUG,l)}isEmpty(){return this.events.length===0}send(l,c){var m=Q({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=[],l(m,(M,G)=>{M||this.sent++,c&&c(M,G)}),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}class F5{constructor(l,c,m,M){this.name=l,this.priority=c,this.transport=m,this.options=M||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(l,c){if(this.isSupported()){if(this.priority<l)return ia(new y,c)}else return ia(new E,c);var m=!1,M=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),G=null,he=function(){M.unbind("initialized",he),M.connect()},Ce=function(){G=Xt.createHandshake(M,function(tt){m=!0,Ie(),c(null,tt)})},Ee=function(tt){Ie(),c(tt)},Le=function(){Ie();var tt;tt=ge(M),c(new B(tt))},Ie=function(){M.unbind("initialized",he),M.unbind("open",Ce),M.unbind("error",Ee),M.unbind("closed",Le)};return M.bind("initialized",he),M.bind("open",Ce),M.bind("error",Ee),M.bind("closed",Le),M.initialize(),{abort:()=>{m||(Ie(),G?G.close():M.close())},forceMinPriority:tt=>{m||this.priority<tt&&(G?G.close():M.close())}}}}function ia(u,l){return j.defer(function(){l(u)}),{abort:function(){},forceMinPriority:function(){}}}const{Transports:U5}=Ne;var Y5=function(u,l,c,m,M,G){var he=U5[c];if(!he)throw new L(c);var Ce=(!u.enabledTransports||U(u.enabledTransports,l)!==-1)&&(!u.disabledTransports||U(u.disabledTransports,l)===-1),Ee;return Ce?(M=Object.assign({ignoreNullOrigin:u.ignoreNullOrigin},M),Ee=new F5(l,m,G?G.getAssistant(he):he,M)):Ee=W5,Ee},W5={isSupported:function(){return!1},connect:function(u,l){var c=j.defer(function(){l(new E)});return{abort:function(){c.ensureAborted()},forceMinPriority:function(){}}}};function q5(u){if(u==null)throw"You must pass an options object";if(u.cluster==null)throw"Options object must provide a cluster";"disableStats"in u&&Be.warn("The disableStats option is deprecated in favor of enableStats")}const X5=(u,l)=>{var c="socket_id="+encodeURIComponent(u.socketId);for(var m in l.params)c+="&"+encodeURIComponent(m)+"="+encodeURIComponent(l.params[m]);if(l.paramsProvider!=null){let M=l.paramsProvider();for(var m in M)c+="&"+encodeURIComponent(m)+"="+encodeURIComponent(M[m])}return c};var G5=u=>{if(typeof Ne.getAuthorizers()[u.transport]>"u")throw`'${u.transport}' is not a recognized auth transport`;return(l,c)=>{const m=X5(l,u);Ne.getAuthorizers()[u.transport](Ne,m,u,b.UserAuthentication,c)}};const K5=(u,l)=>{var c="socket_id="+encodeURIComponent(u.socketId);c+="&channel_name="+encodeURIComponent(u.channelName);for(var m in l.params)c+="&"+encodeURIComponent(m)+"="+encodeURIComponent(l.params[m]);if(l.paramsProvider!=null){let M=l.paramsProvider();for(var m in M)c+="&"+encodeURIComponent(m)+"="+encodeURIComponent(M[m])}return c};var Q5=u=>{if(typeof Ne.getAuthorizers()[u.transport]>"u")throw`'${u.transport}' is not a recognized auth transport`;return(l,c)=>{const m=K5(l,u);Ne.getAuthorizers()[u.transport](Ne,m,u,b.ChannelAuthorization,c)}};const J5=(u,l,c)=>{const m={authTransport:l.transport,authEndpoint:l.endpoint,auth:{params:l.params,headers:l.headers}};return(M,G)=>{const he=u.channel(M.channelName);c(he,m).authorize(M.socketId,G)}};function e4(u,l){let c={activityTimeout:u.activityTimeout||d.activityTimeout,cluster:u.cluster,httpPath:u.httpPath||d.httpPath,httpPort:u.httpPort||d.httpPort,httpsPort:u.httpsPort||d.httpsPort,pongTimeout:u.pongTimeout||d.pongTimeout,statsHost:u.statsHost||d.stats_host,unavailableTimeout:u.unavailableTimeout||d.unavailableTimeout,wsPath:u.wsPath||d.wsPath,wsPort:u.wsPort||d.wsPort,wssPort:u.wssPort||d.wssPort,enableStats:o4(u),httpHost:t4(u),useTLS:a4(u),wsHost:n4(u),userAuthenticator:l4(u),channelAuthorizer:s4(u,l)};return"disabledTransports"in u&&(c.disabledTransports=u.disabledTransports),"enabledTransports"in u&&(c.enabledTransports=u.enabledTransports),"ignoreNullOrigin"in u&&(c.ignoreNullOrigin=u.ignoreNullOrigin),"timelineParams"in u&&(c.timelineParams=u.timelineParams),"nacl"in u&&(c.nacl=u.nacl),c}function t4(u){return u.httpHost?u.httpHost:u.cluster?`sockjs-${u.cluster}.pusher.com`:d.httpHost}function n4(u){return u.wsHost?u.wsHost:r4(u.cluster)}function r4(u){return`ws-${u}.pusher.com`}function a4(u){return Ne.getProtocol()==="https:"?!0:u.forceTLS!==!1}function o4(u){return"enableStats"in u?u.enableStats:"disableStats"in u?!u.disableStats:!1}function l4(u){const l=Object.assign(Object.assign({},d.userAuthentication),u.userAuthentication);return"customHandler"in l&&l.customHandler!=null?l.customHandler:G5(l)}function i4(u,l){let c;return"channelAuthorization"in u?c=Object.assign(Object.assign({},d.channelAuthorization),u.channelAuthorization):(c={transport:u.authTransport||d.authTransport,endpoint:u.authEndpoint||d.authEndpoint},"auth"in u&&("params"in u.auth&&(c.params=u.auth.params),"headers"in u.auth&&(c.headers=u.auth.headers)),"authorizer"in u&&(c.customHandler=J5(l,c,u.authorizer))),c}function s4(u,l){const c=i4(u,l);return"customHandler"in c&&c.customHandler!=null?c.customHandler:Q5(c)}class c4 extends we{constructor(l){super(function(c,m){Be.debug(`No callbacks on watchlist events for ${c}`)}),this.pusher=l,this.bindWatchlistInternalEvent()}handleEvent(l){l.data.events.forEach(c=>{this.emit(c.name,c)})}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",l=>{var c=l.event;c==="pusher_internal:watchlist_events"&&this.handleEvent(l)})}}function u4(){let u,l;return{promise:new Promise((m,M)=>{u=m,l=M}),resolve:u,reject:l}}var d4=u4;class h4 extends we{constructor(l){super(function(c,m){Be.debug("No callbacks on user for "+c)}),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(c,m)=>{if(c){Be.warn(`Error during signin: ${c}`),this._cleanup();return}this.pusher.send_event("pusher:signin",{auth:m.auth,user_data:m.user_data})},this.pusher=l,this.pusher.connection.bind("state_change",({previous:c,current:m})=>{c!=="connected"&&m==="connected"&&this._signin(),c==="connected"&&m!=="connected"&&(this._cleanup(),this._newSigninPromiseIfNeeded())}),this.watchlist=new c4(l),this.pusher.connection.bind("message",c=>{var m=c.event;m==="pusher:signin_success"&&this._onSigninSuccess(c.data),this.serverToUserChannel&&this.serverToUserChannel.name===c.channel&&this.serverToUserChannel.handleEvent(c)})}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(l){try{this.user_data=JSON.parse(l.user_data)}catch{Be.error(`Failed parsing user data after signin: ${l.user_data}`),this._cleanup();return}if(typeof this.user_data.id!="string"||this.user_data.id===""){Be.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),this._cleanup();return}this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){const l=c=>{c.subscriptionPending&&c.subscriptionCancelled?c.reinstateSubscription():!c.subscriptionPending&&this.pusher.connection.state==="connected"&&c.subscribe()};this.serverToUserChannel=new pn(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global((c,m)=>{c.indexOf("pusher_internal:")===0||c.indexOf("pusher:")===0||this.emit(c,m)}),l(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:l,resolve:c}=d4();l.done=!1;const m=()=>{l.done=!0};l.then(m).catch(m),this.signinDonePromise=l,this._signinDoneResolve=c}}class it{static ready(){it.isReady=!0;for(var l=0,c=it.instances.length;l<c;l++)it.instances[l].connect()}static getClientFeatures(){return Pe(se({ws:Ne.Transports.ws},function(l){return l.isSupported({})}))}constructor(l,c){f4(l),q5(c),this.key=l,this.config=e4(c,this),this.channels=Xt.createChannels(),this.global_emitter=new we,this.sessionID=Ne.randomInt(1e9),this.timeline=new j5(this.key,this.sessionID,{cluster:this.config.cluster,features:it.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:S2.INFO,version:d.VERSION}),this.config.enableStats&&(this.timelineSender=Xt.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+Ne.TimelineTransport.name}));var m=M=>Ne.getDefaultStrategy(this.config,M,Y5);this.connection=Xt.createConnectionManager(this.key,{getStrategy:m,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",M=>{var G=M.event,he=G.indexOf("pusher_internal:")===0;if(M.channel){var Ce=this.channel(M.channel);Ce&&Ce.handleEvent(M)}he||this.global_emitter.emit(M.event,M.data)}),this.connection.bind("connecting",()=>{this.channels.disconnect()}),this.connection.bind("disconnected",()=>{this.channels.disconnect()}),this.connection.bind("error",M=>{Be.warn(M)}),it.instances.push(this),this.timeline.info({instances:it.instances.length}),this.user=new h4(this),it.isReady&&this.connect()}channel(l){return this.channels.find(l)}allChannels(){return this.channels.all()}connect(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var l=this.connection.isUsingTLS(),c=this.timelineSender;this.timelineSenderTimer=new P(6e4,function(){c.send(l)})}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}bind(l,c,m){return this.global_emitter.bind(l,c,m),this}unbind(l,c,m){return this.global_emitter.unbind(l,c,m),this}bind_global(l){return this.global_emitter.bind_global(l),this}unbind_global(l){return this.global_emitter.unbind_global(l),this}unbind_all(l){return this.global_emitter.unbind_all(),this}subscribeAll(){var l;for(l in this.channels.channels)this.channels.channels.hasOwnProperty(l)&&this.subscribe(l)}subscribe(l){var c=this.channels.add(l,this);return c.subscriptionPending&&c.subscriptionCancelled?c.reinstateSubscription():!c.subscriptionPending&&this.connection.state==="connected"&&c.subscribe(),c}unsubscribe(l){var c=this.channels.find(l);c&&c.subscriptionPending?c.cancelSubscription():(c=this.channels.remove(l),c&&c.subscribed&&c.unsubscribe())}send_event(l,c,m){return this.connection.send_event(l,c,m)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}it.instances=[],it.isReady=!1,it.logToConsole=!1,it.Runtime=Ne,it.ScriptReceivers=Ne.ScriptReceivers,it.DependenciesReceivers=Ne.DependenciesReceivers,it.auth_callbacks=Ne.auth_callbacks;var yn=a.default=it;function f4(u){if(u==null)throw"You must pass your app key when you instantiate Pusher."}Ne.setup(it)}])})}(Fn)),Fn.exports}zu();e.ref([]),e.ref([]);e.ref([]),e.ref([]),e.ref();const Ru={width:"224",height:"377",viewBox:"0 0 224 377",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ju=["fill"],Fu=["fill"],Uu=["fill"],Yu=["fill"],Wu=["fill"],qu=["fill"],Xu=["fill"],Gu=["fill"],Ku=["fill"],Qu=e.defineComponent({__name:"HeroGirlIcon",props:{primaryColor:{},secondaryColor:{}},setup(t){const n=t,{colors:r}=C2(),a=e.computed(()=>n.primaryColor??r.primaryColor.value),o=e.computed(()=>n.secondaryColor??r.primaryColorActive.value);return(i,s)=>(e.openBlock(),e.createElementBlock("svg",Ru,[e.createElementVNode("path",{fill:o.value,d:`M68.8749 328.38C72.723 330.19 80.9125 335.257 83.6113 337.77C97.8265 324.35 108.84 309.191 108.84
|
|
570
570
|
309.191L111.739 177.741C103.755 218.297 89.5533 293.528 68.8749 328.38Z`},null,8,ju),s[0]||(s[0]=e.createElementVNode("path",{d:`M59.4618 340.771L70.0941 348.965C70.6665 348.565 71.2295 348.17 71.7832 347.756C68.661 346.076
|
|
571
571
|
63.3471 342.13 60.6669 339.58C60.2668 339.994 59.8713 340.394 59.4618 340.776V340.771Z`,fill:"white"},null,-1)),e.createElementVNode("path",{fill:o.value,d:`M60.6632 339.576C63.3434 342.13 68.6572 346.071 71.7794 347.751C72.8264 348.323 73.6221 348.635 73.9943
|
|
572
572
|
348.556C75.9393 348.123 84.622 340.795 84.4917 338.924C84.4731 338.673 84.152 338.277 83.6076 337.765C80.9088
|
package/dist/icons.js
CHANGED
|
@@ -16417,7 +16417,7 @@ function Nd() {
|
|
|
16417
16417
|
}(P3)), P3.exports;
|
|
16418
16418
|
}
|
|
16419
16419
|
Nd();
|
|
16420
|
-
ne([]);
|
|
16420
|
+
ne([]), ne([]);
|
|
16421
16421
|
ne([]), ne([]), ne();
|
|
16422
16422
|
const Rd = {
|
|
16423
16423
|
width: "224",
|
|
@@ -4,11 +4,21 @@ interface Listener {
|
|
|
4
4
|
name: string;
|
|
5
5
|
isListening: boolean;
|
|
6
6
|
}
|
|
7
|
+
interface Caster {
|
|
8
|
+
here: (callback: CallableFunction) => this;
|
|
9
|
+
joining: (callback: CallableFunction) => this;
|
|
10
|
+
whisper: (eventName: string, data: Record<any, any>) => this;
|
|
11
|
+
leaving: (callback: CallableFunction) => this;
|
|
12
|
+
}
|
|
7
13
|
export declare function getOrCreateListener(listerName?: string): Listener;
|
|
8
14
|
export declare function registerEcho(key: string, authorizer: (channel: Channel) => Authorizer): void;
|
|
9
15
|
export declare function useEcho(listenerName?: string | null): {
|
|
10
16
|
on: (channel: string, event: string, handler: (data: any) => unknown, privateChannel?: boolean) => void;
|
|
11
17
|
off: (channel: string, event: string) => void;
|
|
18
|
+
join: (channel: string) => Caster;
|
|
19
|
+
leave: (channel: string) => void;
|
|
20
|
+
whisper: <T = unknown>(event: string, data: T, channel?: string) => void;
|
|
21
|
+
listen: <T = unknown>(event: string, callback: (data: T) => void, channel?: string) => void;
|
|
12
22
|
listener: Listener;
|
|
13
23
|
state: {
|
|
14
24
|
listeners: import("vue").Ref<{
|
|
@@ -22,6 +32,17 @@ export declare function useEcho(listenerName?: string | null): {
|
|
|
22
32
|
key: string | null;
|
|
23
33
|
authorizer: ((channel: Channel) => Authorizer) | null;
|
|
24
34
|
emitter: import("mitt").Emitter<Record<import("mitt").EventType, unknown>>;
|
|
35
|
+
casters: import("vue").Ref<{
|
|
36
|
+
here: (callback: CallableFunction) => Caster;
|
|
37
|
+
joining: (callback: CallableFunction) => Caster;
|
|
38
|
+
whisper: (eventName: string, data: Record<any, any>) => Caster;
|
|
39
|
+
leaving: (callback: CallableFunction) => Caster;
|
|
40
|
+
}[], Caster[] | {
|
|
41
|
+
here: (callback: CallableFunction) => Caster;
|
|
42
|
+
joining: (callback: CallableFunction) => Caster;
|
|
43
|
+
whisper: (eventName: string, data: Record<any, any>) => Caster;
|
|
44
|
+
leaving: (callback: CallableFunction) => Caster;
|
|
45
|
+
}[]>;
|
|
25
46
|
};
|
|
26
47
|
};
|
|
27
48
|
export {};
|