altair-static 4.2.0 → 4.4.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/build/dist/873.js CHANGED
@@ -1 +1 @@
1
- (self.webpackChunkaltair_app=self.webpackChunkaltair_app||[]).push([[873],{6873:(O,l,r)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.WebsocketSubscriptionProvider=void 0;const o=r(71251),C=r(27148),k=r(52999);l.WebsocketSubscriptionProvider=class extends o.SubscriptionProvider{createClient(){var u;this.client=new C.SubscriptionClient(this.subscriptionUrl,{reconnect:!0,connectionParams:this.connectionParams,connectionCallback:null==(u=this.extraOptions)?void 0:u.onConnected})}execute(u){if(this.createClient(),!this.client)throw new Error("Could not create subscription client!");return new k.Observable(c=>this.client.request({query:u.query,variables:u.variables,operationName:u.operationName}).subscribe({next:(...f)=>c.next(...f),error:(...f)=>c.error(...f),complete:()=>c.complete()}))}close(){var u,c;null==(u=this.client)||u.unsubscribeAll(),null==(c=this.client)||c.close(),this.client=void 0}}},26214:O=>{function l(r){this.ms=(r=r||{}).min||100,this.max=r.max||1e4,this.factor=r.factor||2,this.jitter=r.jitter>0&&r.jitter<=1?r.jitter:0,this.attempts=0}O.exports=l,l.prototype.duration=function(){var r=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var o=Math.random(),C=Math.floor(o*this.jitter*r);r=0==(1&Math.floor(10*o))?r-C:r+C}return 0|Math.min(r,this.max)},l.prototype.reset=function(){this.attempts=0},l.prototype.setMin=function(r){this.ms=r},l.prototype.setMax=function(r){this.max=r},l.prototype.setJitter=function(r){this.jitter=r}},35769:O=>{"use strict";var l=Object.prototype.hasOwnProperty,r="~";function o(){}function C(u,c,f){this.fn=u,this.context=c,this.once=f||!1}function k(u,c,f,d,I){if("function"!=typeof f)throw new TypeError("The listener must be a function");var g=new C(f,d||u,I),y=r?r+c:c;return u._events[y]?u._events[y].fn?u._events[y]=[u._events[y],g]:u._events[y].push(g):(u._events[y]=g,u._eventsCount++),u}function E(u,c){0==--u._eventsCount?u._events=new o:delete u._events[c]}function _(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(r=!1)),_.prototype.eventNames=function(){var f,d,c=[];if(0===this._eventsCount)return c;for(d in f=this._events)l.call(f,d)&&c.push(r?d.slice(1):d);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(f)):c},_.prototype.listeners=function(c){var d=this._events[r?r+c:c];if(!d)return[];if(d.fn)return[d.fn];for(var I=0,g=d.length,y=new Array(g);I<g;I++)y[I]=d[I].fn;return y},_.prototype.listenerCount=function(c){var d=this._events[r?r+c:c];return d?d.fn?1:d.length:0},_.prototype.emit=function(c,f,d,I,g,y){var S=r?r+c:c;if(!this._events[S])return!1;var b,T,p=this._events[S],M=arguments.length;if(p.fn){switch(p.once&&this.removeListener(c,p.fn,void 0,!0),M){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,f),!0;case 3:return p.fn.call(p.context,f,d),!0;case 4:return p.fn.call(p.context,f,d,I),!0;case 5:return p.fn.call(p.context,f,d,I,g),!0;case 6:return p.fn.call(p.context,f,d,I,g,y),!0}for(T=1,b=new Array(M-1);T<M;T++)b[T-1]=arguments[T];p.fn.apply(p.context,b)}else{var e,a=p.length;for(T=0;T<a;T++)switch(p[T].once&&this.removeListener(c,p[T].fn,void 0,!0),M){case 1:p[T].fn.call(p[T].context);break;case 2:p[T].fn.call(p[T].context,f);break;case 3:p[T].fn.call(p[T].context,f,d);break;case 4:p[T].fn.call(p[T].context,f,d,I);break;default:if(!b)for(e=1,b=new Array(M-1);e<M;e++)b[e-1]=arguments[e];p[T].fn.apply(p[T].context,b)}}return!0},_.prototype.on=function(c,f,d){return k(this,c,f,d,!1)},_.prototype.once=function(c,f,d){return k(this,c,f,d,!0)},_.prototype.removeListener=function(c,f,d,I){var g=r?r+c:c;if(!this._events[g])return this;if(!f)return E(this,g),this;var y=this._events[g];if(y.fn)y.fn===f&&(!I||y.once)&&(!d||y.context===d)&&E(this,g);else{for(var S=0,p=[],M=y.length;S<M;S++)(y[S].fn!==f||I&&!y[S].once||d&&y[S].context!==d)&&p.push(y[S]);p.length?this._events[g]=1===p.length?p[0]:p:E(this,g)}return this},_.prototype.removeAllListeners=function(c){var f;return c?this._events[f=r?r+c:c]&&E(this,f):(this._events=new o,this._eventsCount=0),this},_.prototype.off=_.prototype.removeListener,_.prototype.addListener=_.prototype.on,_.prefixed=r,_.EventEmitter=_,O.exports=_},27148:function(O,l,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(a){for(var e,t=1,n=arguments.length;t<n;t++)for(var s in e=arguments[t])Object.prototype.hasOwnProperty.call(e,s)&&(a[s]=e[s]);return a}).apply(this,arguments)},C=this&&this.__awaiter||function(a,e,t,n){return new(t||(t=Promise))(function(i,v){function w(m){try{h(n.next(m))}catch(R){v(R)}}function N(m){try{h(n.throw(m))}catch(R){v(R)}}function h(m){m.done?i(m.value):function(i){return i instanceof t?i:new t(function(v){v(i)})}(m.value).then(w,N)}h((n=n.apply(a,e||[])).next())})},k=this&&this.__generator||function(a,e){var n,s,i,v,t={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return v={next:w(0),throw:w(1),return:w(2)},"function"==typeof Symbol&&(v[Symbol.iterator]=function(){return this}),v;function w(h){return function(m){return function(h){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,s&&(i=2&h[0]?s.return:h[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,h[1])).done)return i;switch(s=0,i&&(h=[2&h[0],i.value]),h[0]){case 0:case 1:i=h;break;case 4:return t.label++,{value:h[1],done:!1};case 5:t.label++,s=h[1],h=[0];continue;case 7:h=t.ops.pop(),t.trys.pop();continue;default:if(!(i=(i=t.trys).length>0&&i[i.length-1])&&(6===h[0]||2===h[0])){t=0;continue}if(3===h[0]&&(!i||h[1]>i[0]&&h[1]<i[3])){t.label=h[1];break}if(6===h[0]&&t.label<i[1]){t.label=i[1],i=h;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(h);break}i[2]&&t.ops.pop(),t.trys.pop();continue}h=e.call(a,t)}catch(m){h=[6,m],s=0}finally{n=i=0}if(5&h[0])throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}([h,m])}}},E=this&&this.__spreadArrays||function(){for(var a=0,e=0,t=arguments.length;e<t;e++)a+=arguments[e].length;var n=Array(a),s=0;for(e=0;e<t;e++)for(var i=arguments[e],v=0,w=i.length;v<w;v++,s++)n[s]=i[v];return n};Object.defineProperty(l,"__esModule",{value:!0}),l.SubscriptionClient=void 0;var _="undefined"!=typeof global?global:"undefined"!=typeof window?window:{},u=_.WebSocket||_.MozWebSocket,c=r(26214),f=r(35769),d=r(94505),I=r(59185),g=r(71352),y=r(69251),S=r(23850),p=r(2745),M=r(17387),b=r(55906),T=function(){function a(e,t,n,s){var i=t||{},v=i.connectionCallback,w=void 0===v?void 0:v,N=i.connectionParams,h=void 0===N?{}:N,m=i.minTimeout,R=void 0===m?M.MIN_WS_TIMEOUT:m,A=i.timeout,j=void 0===A?M.WS_TIMEOUT:A,P=i.reconnect,U=void 0!==P&&P,L=i.reconnectionAttempts,W=void 0===L?1/0:L,G=i.lazy,B=void 0!==G&&G,x=i.inactivityTimeout,K=void 0===x?0:x,Q=i.wsOptionArguments,D=void 0===Q?[]:Q;if(this.wsImpl=n||u,!this.wsImpl)throw new Error("Unable to find native implementation, or alternative implementation for WebSocket!");this.wsProtocols=s||p.GRAPHQL_WS,this.connectionCallback=w,this.url=e,this.operations={},this.nextOperationId=0,this.minWsTimeout=R,this.wsTimeout=j,this.unsentMessagesQueue=[],this.reconnect=U,this.reconnecting=!1,this.reconnectionAttempts=W,this.lazy=!!B,this.inactivityTimeout=K,this.closedByUser=!1,this.backoff=new c({jitter:.5}),this.eventEmitter=new f.EventEmitter,this.middlewares=[],this.client=null,this.maxConnectTimeGenerator=this.createMaxConnectTimeGenerator(),this.connectionParams=this.getConnectionParams(h),this.wsOptionArguments=D,this.lazy||this.connect()}return Object.defineProperty(a.prototype,"status",{get:function(){return null===this.client?this.wsImpl.CLOSED:this.client.readyState},enumerable:!1,configurable:!0}),a.prototype.close=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),this.clearInactivityTimeout(),null!==this.client&&(this.closedByUser=t,e&&(this.clearCheckConnectionInterval(),this.clearMaxConnectTimeout(),this.clearTryReconnectTimeout(),this.unsubscribeAll(),this.sendMessage(void 0,b.default.GQL_CONNECTION_TERMINATE,null)),this.client.close(),this.client.onopen=null,this.client.onclose=null,this.client.onerror=null,this.client.onmessage=null,this.client=null,this.eventEmitter.emit("disconnected"),e||this.tryReconnect())},a.prototype.request=function(e){var t,v,n=this.getObserver.bind(this),s=this.executeOperation.bind(this),i=this.unsubscribe.bind(this);return this.clearInactivityTimeout(),(t={})[S.default]=function(){return this},t.subscribe=function(w,N,h){var m=n(w,N,h);return v=s(e,function(R,A){null===R&&null===A?m.complete&&m.complete():R?m.error&&m.error(R[0]):m.next&&m.next(A)}),{unsubscribe:function(){v&&(i(v),v=null)}}},t},a.prototype.on=function(e,t,n){var s=this.eventEmitter.on(e,t,n);return function(){s.off(e,t,n)}},a.prototype.onConnected=function(e,t){return this.on("connected",e,t)},a.prototype.onConnecting=function(e,t){return this.on("connecting",e,t)},a.prototype.onDisconnected=function(e,t){return this.on("disconnected",e,t)},a.prototype.onReconnected=function(e,t){return this.on("reconnected",e,t)},a.prototype.onReconnecting=function(e,t){return this.on("reconnecting",e,t)},a.prototype.onError=function(e,t){return this.on("error",e,t)},a.prototype.unsubscribeAll=function(){var e=this;Object.keys(this.operations).forEach(function(t){e.unsubscribe(t)})},a.prototype.applyMiddlewares=function(e){var t=this;return new Promise(function(n,s){var v,w,N;v=E(t.middlewares),w=t,(N=function(h){if(h)s(h);else if(v.length>0){var m=v.shift();m&&m.applyMiddleware.apply(w,[e,N])}else n(e)})()})},a.prototype.use=function(e){var t=this;return e.map(function(n){if("function"!=typeof n.applyMiddleware)throw new Error("Middleware must implement the applyMiddleware function.");t.middlewares.push(n)}),this},a.prototype.getConnectionParams=function(e){return function(){return new Promise(function(t,n){if("function"==typeof e)try{return t(e.call(null))}catch(s){return n(s)}t(e)})}},a.prototype.executeOperation=function(e,t){var n=this;null===this.client&&this.connect();var s=this.generateOperationId();return this.operations[s]={options:e,handler:t},this.applyMiddlewares(e).then(function(i){n.checkOperationOptions(i,t),n.operations[s]&&(n.operations[s]={options:i,handler:t},n.sendMessage(s,b.default.GQL_START,i))}).catch(function(i){n.unsubscribe(s),t(n.formatErrors(i))}),s},a.prototype.getObserver=function(e,t,n){return"function"==typeof e?{next:function(s){return e(s)},error:function(s){return t&&t(s)},complete:function(){return n&&n()}}:e},a.prototype.createMaxConnectTimeGenerator=function(){return new c({min:this.minWsTimeout,max:this.wsTimeout,factor:1.2})},a.prototype.clearCheckConnectionInterval=function(){this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnectionIntervalId=null)},a.prototype.clearMaxConnectTimeout=function(){this.maxConnectTimeoutId&&(clearTimeout(this.maxConnectTimeoutId),this.maxConnectTimeoutId=null)},a.prototype.clearTryReconnectTimeout=function(){this.tryReconnectTimeoutId&&(clearTimeout(this.tryReconnectTimeoutId),this.tryReconnectTimeoutId=null)},a.prototype.clearInactivityTimeout=function(){this.inactivityTimeoutId&&(clearTimeout(this.inactivityTimeoutId),this.inactivityTimeoutId=null)},a.prototype.setInactivityTimeout=function(){var e=this;this.inactivityTimeout>0&&0===Object.keys(this.operations).length&&(this.inactivityTimeoutId=setTimeout(function(){0===Object.keys(e.operations).length&&e.close()},this.inactivityTimeout))},a.prototype.checkOperationOptions=function(e,t){var n=e.query,s=e.variables,i=e.operationName;if(!n)throw new Error("Must provide a query.");if(!t)throw new Error("Must provide an handler.");if(!d.default(n)&&!y.getOperationAST(n,i)||i&&!d.default(i)||s&&!I.default(s))throw new Error("Incorrect option types. query must be a string or a document,`operationName` must be a string, and `variables` must be an object.")},a.prototype.buildMessage=function(e,t,n){return{id:e,type:t,payload:n&&n.query?o(o({},n),{query:"string"==typeof n.query?n.query:g.print(n.query)}):n}},a.prototype.formatErrors=function(e){return Array.isArray(e)?e:e&&e.errors?this.formatErrors(e.errors):e&&e.message?[e]:[{name:"FormatedError",message:"Unknown error",originalError:e}]},a.prototype.sendMessage=function(e,t,n){this.sendMessageRaw(this.buildMessage(e,t,n))},a.prototype.sendMessageRaw=function(e){switch(this.status){case this.wsImpl.OPEN:var t=JSON.stringify(e);try{JSON.parse(t)}catch(n){this.eventEmitter.emit("error",new Error("Message must be JSON-serializable. Got: "+e))}this.client.send(t);break;case this.wsImpl.CONNECTING:this.unsentMessagesQueue.push(e);break;default:this.reconnecting||this.eventEmitter.emit("error",new Error("A message was not sent because socket is not connected, is closing or is already closed. Message was: "+JSON.stringify(e)))}},a.prototype.generateOperationId=function(){return String(++this.nextOperationId)},a.prototype.tryReconnect=function(){var e=this;if(this.reconnect&&!(this.backoff.attempts>=this.reconnectionAttempts)){this.reconnecting||(Object.keys(this.operations).forEach(function(n){e.unsentMessagesQueue.push(e.buildMessage(n,b.default.GQL_START,e.operations[n].options))}),this.reconnecting=!0),this.clearTryReconnectTimeout();var t=this.backoff.duration();this.tryReconnectTimeoutId=setTimeout(function(){e.connect()},t)}},a.prototype.flushUnsentMessagesQueue=function(){var e=this;this.unsentMessagesQueue.forEach(function(t){e.sendMessageRaw(t)}),this.unsentMessagesQueue=[]},a.prototype.checkConnection=function(){this.wasKeepAliveReceived?this.wasKeepAliveReceived=!1:this.reconnecting||this.close(!1,!0)},a.prototype.checkMaxConnectTimeout=function(){var e=this;this.clearMaxConnectTimeout(),this.maxConnectTimeoutId=setTimeout(function(){e.status!==e.wsImpl.OPEN&&(e.reconnecting=!0,e.close(!1,!0))},this.maxConnectTimeGenerator.duration())},a.prototype.connect=function(){var e,t=this;this.client=new((e=this.wsImpl).bind.apply(e,E([void 0,this.url,this.wsProtocols],this.wsOptionArguments))),this.checkMaxConnectTimeout(),this.client.onopen=function(){return C(t,void 0,void 0,function(){var n,s;return k(this,function(i){switch(i.label){case 0:if(this.status!==this.wsImpl.OPEN)return[3,4];this.clearMaxConnectTimeout(),this.closedByUser=!1,this.eventEmitter.emit(this.reconnecting?"reconnecting":"connecting"),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.connectionParams()];case 2:return n=i.sent(),this.sendMessage(void 0,b.default.GQL_CONNECTION_INIT,n),this.flushUnsentMessagesQueue(),[3,4];case 3:return s=i.sent(),this.sendMessage(void 0,b.default.GQL_CONNECTION_ERROR,s),this.flushUnsentMessagesQueue(),[3,4];case 4:return[2]}})})},this.client.onclose=function(){t.closedByUser||t.close(!1,!1)},this.client.onerror=function(n){t.eventEmitter.emit("error",n)},this.client.onmessage=function(n){t.processReceivedData(n.data)}},a.prototype.processReceivedData=function(e){var t,n;try{n=(t=JSON.parse(e)).id}catch(w){throw new Error("Message must be JSON-parseable. Got: "+e)}if(-1===[b.default.GQL_DATA,b.default.GQL_COMPLETE,b.default.GQL_ERROR].indexOf(t.type)||this.operations[n])switch(t.type){case b.default.GQL_CONNECTION_ERROR:this.connectionCallback&&this.connectionCallback(t.payload);break;case b.default.GQL_CONNECTION_ACK:this.eventEmitter.emit(this.reconnecting?"reconnected":"connected",t.payload),this.reconnecting=!1,this.backoff.reset(),this.maxConnectTimeGenerator.reset(),this.connectionCallback&&this.connectionCallback();break;case b.default.GQL_COMPLETE:var s=this.operations[n].handler;delete this.operations[n],s.call(this,null,null);break;case b.default.GQL_ERROR:this.operations[n].handler(this.formatErrors(t.payload),null),delete this.operations[n];break;case b.default.GQL_DATA:var i=t.payload.errors?o(o({},t.payload),{errors:this.formatErrors(t.payload.errors)}):t.payload;this.operations[n].handler(null,i);break;case b.default.GQL_CONNECTION_KEEP_ALIVE:var v=void 0===this.wasKeepAliveReceived;this.wasKeepAliveReceived=!0,v&&this.checkConnection(),this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnection()),this.checkConnectionIntervalId=setInterval(this.checkConnection.bind(this),this.wsTimeout);break;default:throw new Error("Invalid message type!")}else this.unsubscribe(n)},a.prototype.unsubscribe=function(e){this.operations[e]&&(delete this.operations[e],this.setInactivityTimeout(),this.sendMessage(e,b.default.GQL_STOP,void 0))},a}();l.SubscriptionClient=T},17387:(O,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.WS_TIMEOUT=l.MIN_WS_TIMEOUT=void 0,l.MIN_WS_TIMEOUT=1e3,l.WS_TIMEOUT=3e4},55906:(O,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0});var r=function(){function o(){throw new Error("Static Class")}return o.GQL_CONNECTION_INIT="connection_init",o.GQL_CONNECTION_ACK="connection_ack",o.GQL_CONNECTION_ERROR="connection_error",o.GQL_CONNECTION_KEEP_ALIVE="ka",o.GQL_CONNECTION_TERMINATE="connection_terminate",o.GQL_START="start",o.GQL_DATA="data",o.GQL_ERROR="error",o.GQL_COMPLETE="complete",o.GQL_STOP="stop",o.SUBSCRIPTION_START="subscription_start",o.SUBSCRIPTION_DATA="subscription_data",o.SUBSCRIPTION_SUCCESS="subscription_success",o.SUBSCRIPTION_FAIL="subscription_fail",o.SUBSCRIPTION_END="subscription_end",o.INIT="init",o.INIT_SUCCESS="init_success",o.INIT_FAIL="init_fail",o.KEEP_ALIVE="keepalive",o}();l.default=r},2745:(O,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.GRAPHQL_SUBSCRIPTIONS=l.GRAPHQL_WS=void 0,l.GRAPHQL_WS="graphql-ws",l.GRAPHQL_SUBSCRIPTIONS="graphql-subscriptions"},59185:(O,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(o){return null!==o&&"object"==typeof o}},94505:(O,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(o){return"string"==typeof o}},23850:(O,l,r)=>{"use strict";var u,c;r.r(l),r.d(l,{default:()=>E}),O=r.hmd(O);const E=("function"==typeof(c=("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:O).Symbol)?c.observable?u=c.observable:(u=c("observable"),c.observable=u):u="@@observable",u)}}]);
1
+ (self.webpackChunkaltair_app=self.webpackChunkaltair_app||[]).push([[873],{6873:(C,l,r)=>{"use strict";r.r(l),r.d(l,{WebsocketSubscriptionProvider:()=>y});var a=r(71251),O=r(27148),w=r(82475);class y extends a.q{createClient(){var s;this.client=new O.SubscriptionClient(this.subscriptionUrl,{reconnect:!0,connectionParams:this.connectionParams,connectionCallback:null==(s=this.extraOptions)?void 0:s.onConnected})}execute(s){if(this.createClient(),!this.client)throw new Error("Could not create subscription client!");return new w.y(u=>this.client.request({query:s.query,variables:s.variables,operationName:s.operationName}).subscribe({next:(...f)=>u.next(...f),error:(...f)=>u.error(...f),complete:()=>u.complete()}))}close(){var s,u;null==(s=this.client)||s.unsubscribeAll(),null==(u=this.client)||u.close(),this.client=void 0}}},26214:C=>{function l(r){this.ms=(r=r||{}).min||100,this.max=r.max||1e4,this.factor=r.factor||2,this.jitter=r.jitter>0&&r.jitter<=1?r.jitter:0,this.attempts=0}C.exports=l,l.prototype.duration=function(){var r=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var a=Math.random(),O=Math.floor(a*this.jitter*r);r=0==(1&Math.floor(10*a))?r-O:r+O}return 0|Math.min(r,this.max)},l.prototype.reset=function(){this.attempts=0},l.prototype.setMin=function(r){this.ms=r},l.prototype.setMax=function(r){this.max=r},l.prototype.setJitter=function(r){this.jitter=r}},35769:C=>{"use strict";var l=Object.prototype.hasOwnProperty,r="~";function a(){}function O(d,s,u){this.fn=d,this.context=s,this.once=u||!1}function A(d,s,u,f,g){if("function"!=typeof u)throw new TypeError("The listener must be a function");var I=new O(u,f||d,g),b=r?r+s:s;return d._events[b]?d._events[b].fn?d._events[b]=[d._events[b],I]:d._events[b].push(I):(d._events[b]=I,d._eventsCount++),d}function w(d,s){0==--d._eventsCount?d._events=new a:delete d._events[s]}function y(){this._events=new a,this._eventsCount=0}Object.create&&(a.prototype=Object.create(null),(new a).__proto__||(r=!1)),y.prototype.eventNames=function(){var u,f,s=[];if(0===this._eventsCount)return s;for(f in u=this._events)l.call(u,f)&&s.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(u)):s},y.prototype.listeners=function(s){var f=this._events[r?r+s:s];if(!f)return[];if(f.fn)return[f.fn];for(var g=0,I=f.length,b=new Array(I);g<I;g++)b[g]=f[g].fn;return b},y.prototype.listenerCount=function(s){var f=this._events[r?r+s:s];return f?f.fn?1:f.length:0},y.prototype.emit=function(s,u,f,g,I,b){var M=r?r+s:s;if(!this._events[M])return!1;var _,T,p=this._events[M],S=arguments.length;if(p.fn){switch(p.once&&this.removeListener(s,p.fn,void 0,!0),S){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,u),!0;case 3:return p.fn.call(p.context,u,f),!0;case 4:return p.fn.call(p.context,u,f,g),!0;case 5:return p.fn.call(p.context,u,f,g,I),!0;case 6:return p.fn.call(p.context,u,f,g,I,b),!0}for(T=1,_=new Array(S-1);T<S;T++)_[T-1]=arguments[T];p.fn.apply(p.context,_)}else{var t,c=p.length;for(T=0;T<c;T++)switch(p[T].once&&this.removeListener(s,p[T].fn,void 0,!0),S){case 1:p[T].fn.call(p[T].context);break;case 2:p[T].fn.call(p[T].context,u);break;case 3:p[T].fn.call(p[T].context,u,f);break;case 4:p[T].fn.call(p[T].context,u,f,g);break;default:if(!_)for(t=1,_=new Array(S-1);t<S;t++)_[t-1]=arguments[t];p[T].fn.apply(p[T].context,_)}}return!0},y.prototype.on=function(s,u,f){return A(this,s,u,f,!1)},y.prototype.once=function(s,u,f){return A(this,s,u,f,!0)},y.prototype.removeListener=function(s,u,f,g){var I=r?r+s:s;if(!this._events[I])return this;if(!u)return w(this,I),this;var b=this._events[I];if(b.fn)b.fn===u&&(!g||b.once)&&(!f||b.context===f)&&w(this,I);else{for(var M=0,p=[],S=b.length;M<S;M++)(b[M].fn!==u||g&&!b[M].once||f&&b[M].context!==f)&&p.push(b[M]);p.length?this._events[I]=1===p.length?p[0]:p:w(this,I)}return this},y.prototype.removeAllListeners=function(s){var u;return s?this._events[u=r?r+s:s]&&w(this,u):(this._events=new a,this._eventsCount=0),this},y.prototype.off=y.prototype.removeListener,y.prototype.addListener=y.prototype.on,y.prefixed=r,y.EventEmitter=y,C.exports=y},27148:function(C,l,r){"use strict";var a=this&&this.__assign||function(){return(a=Object.assign||function(c){for(var t,e=1,n=arguments.length;e<n;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(c[o]=t[o]);return c}).apply(this,arguments)},O=this&&this.__awaiter||function(c,t,e,n){return new(e||(e=Promise))(function(i,v){function E(m){try{h(n.next(m))}catch(R){v(R)}}function N(m){try{h(n.throw(m))}catch(R){v(R)}}function h(m){m.done?i(m.value):function(i){return i instanceof e?i:new e(function(v){v(i)})}(m.value).then(E,N)}h((n=n.apply(c,t||[])).next())})},A=this&&this.__generator||function(c,t){var n,o,i,v,e={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return v={next:E(0),throw:E(1),return:E(2)},"function"==typeof Symbol&&(v[Symbol.iterator]=function(){return this}),v;function E(h){return function(m){return function(h){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,o&&(i=2&h[0]?o.return:h[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,h[1])).done)return i;switch(o=0,i&&(h=[2&h[0],i.value]),h[0]){case 0:case 1:i=h;break;case 4:return e.label++,{value:h[1],done:!1};case 5:e.label++,o=h[1],h=[0];continue;case 7:h=e.ops.pop(),e.trys.pop();continue;default:if(!(i=(i=e.trys).length>0&&i[i.length-1])&&(6===h[0]||2===h[0])){e=0;continue}if(3===h[0]&&(!i||h[1]>i[0]&&h[1]<i[3])){e.label=h[1];break}if(6===h[0]&&e.label<i[1]){e.label=i[1],i=h;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(h);break}i[2]&&e.ops.pop(),e.trys.pop();continue}h=t.call(c,e)}catch(m){h=[6,m],o=0}finally{n=i=0}if(5&h[0])throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}([h,m])}}},w=this&&this.__spreadArrays||function(){for(var c=0,t=0,e=arguments.length;t<e;t++)c+=arguments[t].length;var n=Array(c),o=0;for(t=0;t<e;t++)for(var i=arguments[t],v=0,E=i.length;v<E;v++,o++)n[o]=i[v];return n};Object.defineProperty(l,"__esModule",{value:!0}),l.SubscriptionClient=void 0;var y="undefined"!=typeof global?global:"undefined"!=typeof window?window:{},d=y.WebSocket||y.MozWebSocket,s=r(26214),u=r(35769),f=r(94505),g=r(59185),I=r(71352),b=r(69251),M=r(23850),p=r(2745),S=r(17387),_=r(55906),T=function(){function c(t,e,n,o){var i=e||{},v=i.connectionCallback,E=void 0===v?void 0:v,N=i.connectionParams,h=void 0===N?{}:N,m=i.minTimeout,R=void 0===m?S.MIN_WS_TIMEOUT:m,P=i.timeout,U=void 0===P?S.WS_TIMEOUT:P,L=i.reconnect,j=void 0!==L&&L,k=i.reconnectionAttempts,W=void 0===k?1/0:k,x=i.lazy,B=void 0!==x&&x,G=i.inactivityTimeout,D=void 0===G?0:G,Q=i.wsOptionArguments,K=void 0===Q?[]:Q;if(this.wsImpl=n||d,!this.wsImpl)throw new Error("Unable to find native implementation, or alternative implementation for WebSocket!");this.wsProtocols=o||p.GRAPHQL_WS,this.connectionCallback=E,this.url=t,this.operations={},this.nextOperationId=0,this.minWsTimeout=R,this.wsTimeout=U,this.unsentMessagesQueue=[],this.reconnect=j,this.reconnecting=!1,this.reconnectionAttempts=W,this.lazy=!!B,this.inactivityTimeout=D,this.closedByUser=!1,this.backoff=new s({jitter:.5}),this.eventEmitter=new u.EventEmitter,this.middlewares=[],this.client=null,this.maxConnectTimeGenerator=this.createMaxConnectTimeGenerator(),this.connectionParams=this.getConnectionParams(h),this.wsOptionArguments=K,this.lazy||this.connect()}return Object.defineProperty(c.prototype,"status",{get:function(){return null===this.client?this.wsImpl.CLOSED:this.client.readyState},enumerable:!1,configurable:!0}),c.prototype.close=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=!0),this.clearInactivityTimeout(),null!==this.client&&(this.closedByUser=e,t&&(this.clearCheckConnectionInterval(),this.clearMaxConnectTimeout(),this.clearTryReconnectTimeout(),this.unsubscribeAll(),this.sendMessage(void 0,_.default.GQL_CONNECTION_TERMINATE,null)),this.client.close(),this.client.onopen=null,this.client.onclose=null,this.client.onerror=null,this.client.onmessage=null,this.client=null,this.eventEmitter.emit("disconnected"),t||this.tryReconnect())},c.prototype.request=function(t){var e,v,n=this.getObserver.bind(this),o=this.executeOperation.bind(this),i=this.unsubscribe.bind(this);return this.clearInactivityTimeout(),(e={})[M.default]=function(){return this},e.subscribe=function(E,N,h){var m=n(E,N,h);return v=o(t,function(R,P){null===R&&null===P?m.complete&&m.complete():R?m.error&&m.error(R[0]):m.next&&m.next(P)}),{unsubscribe:function(){v&&(i(v),v=null)}}},e},c.prototype.on=function(t,e,n){var o=this.eventEmitter.on(t,e,n);return function(){o.off(t,e,n)}},c.prototype.onConnected=function(t,e){return this.on("connected",t,e)},c.prototype.onConnecting=function(t,e){return this.on("connecting",t,e)},c.prototype.onDisconnected=function(t,e){return this.on("disconnected",t,e)},c.prototype.onReconnected=function(t,e){return this.on("reconnected",t,e)},c.prototype.onReconnecting=function(t,e){return this.on("reconnecting",t,e)},c.prototype.onError=function(t,e){return this.on("error",t,e)},c.prototype.unsubscribeAll=function(){var t=this;Object.keys(this.operations).forEach(function(e){t.unsubscribe(e)})},c.prototype.applyMiddlewares=function(t){var e=this;return new Promise(function(n,o){var v,E,N;v=w(e.middlewares),E=e,(N=function(h){if(h)o(h);else if(v.length>0){var m=v.shift();m&&m.applyMiddleware.apply(E,[t,N])}else n(t)})()})},c.prototype.use=function(t){var e=this;return t.map(function(n){if("function"!=typeof n.applyMiddleware)throw new Error("Middleware must implement the applyMiddleware function.");e.middlewares.push(n)}),this},c.prototype.getConnectionParams=function(t){return function(){return new Promise(function(e,n){if("function"==typeof t)try{return e(t.call(null))}catch(o){return n(o)}e(t)})}},c.prototype.executeOperation=function(t,e){var n=this;null===this.client&&this.connect();var o=this.generateOperationId();return this.operations[o]={options:t,handler:e},this.applyMiddlewares(t).then(function(i){n.checkOperationOptions(i,e),n.operations[o]&&(n.operations[o]={options:i,handler:e},n.sendMessage(o,_.default.GQL_START,i))}).catch(function(i){n.unsubscribe(o),e(n.formatErrors(i))}),o},c.prototype.getObserver=function(t,e,n){return"function"==typeof t?{next:function(o){return t(o)},error:function(o){return e&&e(o)},complete:function(){return n&&n()}}:t},c.prototype.createMaxConnectTimeGenerator=function(){return new s({min:this.minWsTimeout,max:this.wsTimeout,factor:1.2})},c.prototype.clearCheckConnectionInterval=function(){this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnectionIntervalId=null)},c.prototype.clearMaxConnectTimeout=function(){this.maxConnectTimeoutId&&(clearTimeout(this.maxConnectTimeoutId),this.maxConnectTimeoutId=null)},c.prototype.clearTryReconnectTimeout=function(){this.tryReconnectTimeoutId&&(clearTimeout(this.tryReconnectTimeoutId),this.tryReconnectTimeoutId=null)},c.prototype.clearInactivityTimeout=function(){this.inactivityTimeoutId&&(clearTimeout(this.inactivityTimeoutId),this.inactivityTimeoutId=null)},c.prototype.setInactivityTimeout=function(){var t=this;this.inactivityTimeout>0&&0===Object.keys(this.operations).length&&(this.inactivityTimeoutId=setTimeout(function(){0===Object.keys(t.operations).length&&t.close()},this.inactivityTimeout))},c.prototype.checkOperationOptions=function(t,e){var n=t.query,o=t.variables,i=t.operationName;if(!n)throw new Error("Must provide a query.");if(!e)throw new Error("Must provide an handler.");if(!f.default(n)&&!b.getOperationAST(n,i)||i&&!f.default(i)||o&&!g.default(o))throw new Error("Incorrect option types. query must be a string or a document,`operationName` must be a string, and `variables` must be an object.")},c.prototype.buildMessage=function(t,e,n){return{id:t,type:e,payload:n&&n.query?a(a({},n),{query:"string"==typeof n.query?n.query:I.print(n.query)}):n}},c.prototype.formatErrors=function(t){return Array.isArray(t)?t:t&&t.errors?this.formatErrors(t.errors):t&&t.message?[t]:[{name:"FormatedError",message:"Unknown error",originalError:t}]},c.prototype.sendMessage=function(t,e,n){this.sendMessageRaw(this.buildMessage(t,e,n))},c.prototype.sendMessageRaw=function(t){switch(this.status){case this.wsImpl.OPEN:var e=JSON.stringify(t);try{JSON.parse(e)}catch(n){this.eventEmitter.emit("error",new Error("Message must be JSON-serializable. Got: "+t))}this.client.send(e);break;case this.wsImpl.CONNECTING:this.unsentMessagesQueue.push(t);break;default:this.reconnecting||this.eventEmitter.emit("error",new Error("A message was not sent because socket is not connected, is closing or is already closed. Message was: "+JSON.stringify(t)))}},c.prototype.generateOperationId=function(){return String(++this.nextOperationId)},c.prototype.tryReconnect=function(){var t=this;if(this.reconnect&&!(this.backoff.attempts>=this.reconnectionAttempts)){this.reconnecting||(Object.keys(this.operations).forEach(function(n){t.unsentMessagesQueue.push(t.buildMessage(n,_.default.GQL_START,t.operations[n].options))}),this.reconnecting=!0),this.clearTryReconnectTimeout();var e=this.backoff.duration();this.tryReconnectTimeoutId=setTimeout(function(){t.connect()},e)}},c.prototype.flushUnsentMessagesQueue=function(){var t=this;this.unsentMessagesQueue.forEach(function(e){t.sendMessageRaw(e)}),this.unsentMessagesQueue=[]},c.prototype.checkConnection=function(){this.wasKeepAliveReceived?this.wasKeepAliveReceived=!1:this.reconnecting||this.close(!1,!0)},c.prototype.checkMaxConnectTimeout=function(){var t=this;this.clearMaxConnectTimeout(),this.maxConnectTimeoutId=setTimeout(function(){t.status!==t.wsImpl.OPEN&&(t.reconnecting=!0,t.close(!1,!0))},this.maxConnectTimeGenerator.duration())},c.prototype.connect=function(){var t,e=this;this.client=new((t=this.wsImpl).bind.apply(t,w([void 0,this.url,this.wsProtocols],this.wsOptionArguments))),this.checkMaxConnectTimeout(),this.client.onopen=function(){return O(e,void 0,void 0,function(){var n,o;return A(this,function(i){switch(i.label){case 0:if(this.status!==this.wsImpl.OPEN)return[3,4];this.clearMaxConnectTimeout(),this.closedByUser=!1,this.eventEmitter.emit(this.reconnecting?"reconnecting":"connecting"),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.connectionParams()];case 2:return n=i.sent(),this.sendMessage(void 0,_.default.GQL_CONNECTION_INIT,n),this.flushUnsentMessagesQueue(),[3,4];case 3:return o=i.sent(),this.sendMessage(void 0,_.default.GQL_CONNECTION_ERROR,o),this.flushUnsentMessagesQueue(),[3,4];case 4:return[2]}})})},this.client.onclose=function(){e.closedByUser||e.close(!1,!1)},this.client.onerror=function(n){e.eventEmitter.emit("error",n)},this.client.onmessage=function(n){e.processReceivedData(n.data)}},c.prototype.processReceivedData=function(t){var e,n;try{n=(e=JSON.parse(t)).id}catch(E){throw new Error("Message must be JSON-parseable. Got: "+t)}if(-1===[_.default.GQL_DATA,_.default.GQL_COMPLETE,_.default.GQL_ERROR].indexOf(e.type)||this.operations[n])switch(e.type){case _.default.GQL_CONNECTION_ERROR:this.connectionCallback&&this.connectionCallback(e.payload);break;case _.default.GQL_CONNECTION_ACK:this.eventEmitter.emit(this.reconnecting?"reconnected":"connected",e.payload),this.reconnecting=!1,this.backoff.reset(),this.maxConnectTimeGenerator.reset(),this.connectionCallback&&this.connectionCallback();break;case _.default.GQL_COMPLETE:var o=this.operations[n].handler;delete this.operations[n],o.call(this,null,null);break;case _.default.GQL_ERROR:this.operations[n].handler(this.formatErrors(e.payload),null),delete this.operations[n];break;case _.default.GQL_DATA:var i=e.payload.errors?a(a({},e.payload),{errors:this.formatErrors(e.payload.errors)}):e.payload;this.operations[n].handler(null,i);break;case _.default.GQL_CONNECTION_KEEP_ALIVE:var v=void 0===this.wasKeepAliveReceived;this.wasKeepAliveReceived=!0,v&&this.checkConnection(),this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnection()),this.checkConnectionIntervalId=setInterval(this.checkConnection.bind(this),this.wsTimeout);break;default:throw new Error("Invalid message type!")}else this.unsubscribe(n)},c.prototype.unsubscribe=function(t){this.operations[t]&&(delete this.operations[t],this.setInactivityTimeout(),this.sendMessage(t,_.default.GQL_STOP,void 0))},c}();l.SubscriptionClient=T},17387:(C,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.WS_TIMEOUT=l.MIN_WS_TIMEOUT=void 0,l.MIN_WS_TIMEOUT=1e3,l.WS_TIMEOUT=3e4},55906:(C,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0});var r=function(){function a(){throw new Error("Static Class")}return a.GQL_CONNECTION_INIT="connection_init",a.GQL_CONNECTION_ACK="connection_ack",a.GQL_CONNECTION_ERROR="connection_error",a.GQL_CONNECTION_KEEP_ALIVE="ka",a.GQL_CONNECTION_TERMINATE="connection_terminate",a.GQL_START="start",a.GQL_DATA="data",a.GQL_ERROR="error",a.GQL_COMPLETE="complete",a.GQL_STOP="stop",a.SUBSCRIPTION_START="subscription_start",a.SUBSCRIPTION_DATA="subscription_data",a.SUBSCRIPTION_SUCCESS="subscription_success",a.SUBSCRIPTION_FAIL="subscription_fail",a.SUBSCRIPTION_END="subscription_end",a.INIT="init",a.INIT_SUCCESS="init_success",a.INIT_FAIL="init_fail",a.KEEP_ALIVE="keepalive",a}();l.default=r},2745:(C,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.GRAPHQL_SUBSCRIPTIONS=l.GRAPHQL_WS=void 0,l.GRAPHQL_WS="graphql-ws",l.GRAPHQL_SUBSCRIPTIONS="graphql-subscriptions"},59185:(C,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(a){return null!==a&&"object"==typeof a}},94505:(C,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(a){return"string"==typeof a}},23850:(C,l,r)=>{"use strict";var d,s;r.r(l),r.d(l,{default:()=>w}),C=r.hmd(C);const w=("function"==typeof(s=("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:C).Symbol)?s.observable?d=s.observable:(d=s("observable"),s.observable=d):d="@@observable",d)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkaltair_app=self.webpackChunkaltair_app||[]).push([[929],{71251:(L,T,j)=>{j.d(T,{q:()=>v});class v{constructor(g,H,F){this.subscriptionUrl=g,this.connectionParams=H,this.extraOptions=F}}},82475:(L,T,j)=>{j.d(T,{y:()=>rt});var v=function(t,r){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o])})(t,r)};function x(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}v(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}function S(t){var r="function"==typeof Symbol&&Symbol.iterator,n=r&&t[r],e=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(t,r){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,u,e=n.call(t),i=[];try{for(;(void 0===r||r-- >0)&&!(o=e.next()).done;)i.push(o.value)}catch(c){u={error:c}}finally{try{o&&!o.done&&(n=e.return)&&n.call(e)}finally{if(u)throw u.error}}return i}function w(t,r){for(var n=0,e=r.length,o=t.length;n<e;n++,o++)t[o]=r[n];return t}function y(t){return"function"==typeof t}var t,n,A=(t=function(t){return function(n){t(this),this.message=n?n.length+" errors occurred during unsubscription:\n"+n.map(function(e,o){return o+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=n}},(n=t(function(e){Error.call(e),e.stack=(new Error).stack})).prototype=Object.create(Error.prototype),n.prototype.constructor=n,n);function C(t,r){if(t){var n=t.indexOf(r);0<=n&&t.splice(n,1)}}var I=function(){function t(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._teardowns=null}return t.prototype.unsubscribe=function(){var r,n,e,o,i;if(!this.closed){this.closed=!0;var u=this._parentage;if(u)if(this._parentage=null,Array.isArray(u))try{for(var c=S(u),f=c.next();!f.done;f=c.next())f.value.remove(this)}catch(h){r={error:h}}finally{try{f&&!f.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}else u.remove(this);var l=this.initialTeardown;if(y(l))try{l()}catch(h){i=h instanceof A?h.errors:[h]}var d=this._teardowns;if(d){this._teardowns=null;try{for(var s=S(d),p=s.next();!p.done;p=s.next()){var m=p.value;try{Y(m)}catch(h){i=null!=i?i:[],h instanceof A?i=w(w([],_(i)),_(h.errors)):i.push(h)}}}catch(h){e={error:h}}finally{try{p&&!p.done&&(o=s.return)&&o.call(s)}finally{if(e)throw e.error}}}if(i)throw new A(i)}},t.prototype.add=function(r){var n;if(r&&r!==this)if(this.closed)Y(r);else{if(r instanceof t){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._teardowns=null!==(n=this._teardowns)&&void 0!==n?n:[]).push(r)}},t.prototype._hasParent=function(r){var n=this._parentage;return n===r||Array.isArray(n)&&n.includes(r)},t.prototype._addParent=function(r){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(r),n):n?[n,r]:r},t.prototype._removeParent=function(r){var n=this._parentage;n===r?this._parentage=null:Array.isArray(n)&&C(n,r)},t.prototype.remove=function(r){var n=this._teardowns;n&&C(n,r),r instanceof t&&r._removeParent(this)},t.EMPTY=((r=new t).closed=!0,r),t;var r}();function N(t){return t instanceof I||t&&"closed"in t&&y(t.remove)&&y(t.add)&&y(t.unsubscribe)}function Y(t){y(t)?t():t.unsubscribe()}var P={setTimeout:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=P.delegate;return((null==n?void 0:n.setTimeout)||setTimeout).apply(void 0,w([],_(t)))},clearTimeout:function(t){var r=P.delegate;return((null==r?void 0:r.clearTimeout)||clearTimeout)(t)},delegate:void 0};function K(t){P.setTimeout(function(){throw t})}function O(){}var Q=R("C",void 0,void 0);function R(t,r,n){return{kind:t,value:r,error:n}}var B=function(t){function r(n){var e=t.call(this)||this;return e.isStopped=!1,n?(e.destination=n,N(n)&&n.add(e)):e.destination=Z,e}return x(r,t),r.create=function(n,e,o){return new G(n,e,o)},r.prototype.next=function(n){this.isStopped?U(function(t){return R("N",t,void 0)}(n),this):this._next(n)},r.prototype.error=function(n){this.isStopped?U(function(t){return R("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))},r.prototype.complete=function(){this.isStopped?U(Q,this):(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(n){this.destination.next(n)},r.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(I),G=function(t){function r(n,e,o){var u,i=t.call(this)||this;if(y(n))u=n;else if(n){var c;e=n.error,o=n.complete,c=n,u=null==(u=n.next)?void 0:u.bind(c),e=null==e?void 0:e.bind(c),o=null==o?void 0:o.bind(c)}return i.destination={next:u?D(u,i):O,error:D(null!=e?e:q,i),complete:o?D(o,i):O},i}return x(r,t),r}(B);function D(t,r){return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];try{t.apply(void 0,w([],_(n)))}catch(o){K(o)}}}function q(t){throw t}function U(t,r){var n=null;n&&P.setTimeout(function(){return n(t,r)})}var Z={closed:!0,next:O,error:q,complete:O},$="function"==typeof Symbol&&Symbol.observable||"@@observable";function tt(t){return t}function V(t){return 0===t.length?tt:1===t.length?t[0]:function(n){return t.reduce(function(e,o){return o(e)},n)}}var rt=function(){function t(r){r&&(this._subscribe=r)}return t.prototype.lift=function(r){var n=new t;return n.source=this,n.operator=r,n},t.prototype.subscribe=function(r,n,e){var o=function(t){return t&&t instanceof B||function(t){return t&&y(t.next)&&y(t.error)&&y(t.complete)}(t)&&N(t)}(r)?r:new G(r,n,e),u=this.operator,c=this.source;return o.add(u?u.call(o,c):c?this._subscribe(o):this._trySubscribe(o)),o},t.prototype._deprecatedSyncErrorSubscribe=function(r){var n=r;n._syncErrorHack_isSubscribing=!0;var e=this.operator;if(e)r.add(e.call(r,this.source));else try{r.add(this._subscribe(r))}catch(i){n.__syncError=i}for(var o=n;o;){if("__syncError"in o)try{throw o.__syncError}finally{r.unsubscribe()}o=o.destination}n._syncErrorHack_isSubscribing=!1},t.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(n){r.error(n)}},t.prototype.forEach=function(r,n){var e=this;return new(n=k(n))(function(o,i){var u;u=e.subscribe(function(c){try{r(c)}catch(f){i(f),null==u||u.unsubscribe()}},i,o)})},t.prototype._subscribe=function(r){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(r)},t.prototype[$]=function(){return this},t.prototype.pipe=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length?V(r)(this):this},t.prototype.toPromise=function(r){var n=this;return new(r=k(r))(function(e,o){var i;n.subscribe(function(u){return i=u},function(u){return o(u)},function(){return e(i)})})},t.create=function(r){return new t(r)},t}();function k(t){var r;return null!==(r=null!=t?t:undefined)&&void 0!==r?r:Promise}}}]);
@@ -128,6 +128,7 @@
128
128
  "COLLECTIONS_QUERY_MENU_DELETE": "Delete",
129
129
  "COLLECTIONS_MENU_DELETE": "Delete",
130
130
  "COLLECTIONS_MENU_EDIT": "Edit",
131
+ "COLLECTIONS_MENU_SYNC": "Sync to remote",
131
132
  "COLLECTIONS_MENU_EXPORT": "Export",
132
133
  "COLLECTIONS_IMPORT_TEXT": "Import",
133
134
  "COLLECTION_UPDATE_WINDOW_IN_COLLECTION": "Update window in collection",
@@ -138,6 +139,7 @@
138
139
  "COLLECTIONS_SORT_BY_OLDEST": "Oldest",
139
140
  "COLLECTIONS_DEPRECATED_QUERY_WARNING": "This query is old and not compatible. Please delete and create it again to prevent data loss.",
140
141
  "COLLECTION_OPEN_QUERY_TOOLTIP": "From a collection",
142
+ "COLLECTION_SYNC_TEXT": "Refresh",
141
143
 
142
144
  "EDIT_COLLECTION_TITLE_TEXT": "Edit Collection",
143
145
  "EDIT_COLLECTION_TITLE_SUBTEXT": "Update your collection details",
@@ -177,5 +179,9 @@
177
179
  "PLUGIN_UNIQUE_NAME_TEXT": "Unique Plugin Name",
178
180
  "PLUGIN_ADD_BUTTON": "Add to Altair",
179
181
  "PLUGIN_REMOVE_BUTTON": "Remove",
180
- "PLUGIN_CREATE_BUTTON": "Create Plugin"
182
+ "PLUGIN_CREATE_BUTTON": "Create Plugin",
183
+
184
+ "ACCOUNT_TITLE": "Account",
185
+ "LOGIN_TAB": "Login",
186
+ "REGISTER_TAB": "Register"
181
187
  }