botframework-directlinejs 0.15.6 → 0.15.7-master.13f7a42

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.
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see directline.js.LICENSE.txt */
2
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.DirectLine=e():t.DirectLine=e()}(self,(function(){return function(){var t={2258:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=function(){var t={};return t.promise=new Promise((function(e,r){t.reject=r,t.resolve=e})),t}},842:function(t,e,r){"use strict";var n=r(4994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=[];return t.forEach((function(t){for(var r=(0,o.default)(t),n=r.extname,i=r.name,s=0,a=t;e.includes(a);)a=[i,"(".concat(++s,")")].filter((function(t){return t})).join(" ")+n;e.push(a)})),e};var o=n(r(4227))},3822:function(t,e,r){"use strict";var n=r(4994),o=r(3738);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DirectLineStreaming",{enumerable:!0,get:function(){return y.DirectLineStreaming}}),e.DirectLine=e.ConnectionStatus=void 0;var i=n(r(1847)),s=n(r(7383)),a=n(r(4579)),u=n(r(3693));r(6378),r(8318);var c=r(3114),f=r(9707),l=r(1518),h=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==o(t)&&"function"!=typeof t)return{default:t};var r=v(e);if(r&&r.has(t))return r.get(t);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var a=i?Object.getOwnPropertyDescriptor(t,s):null;a&&(a.get||a.set)?Object.defineProperty(n,s,a):n[s]=t[s]}return n.default=t,r&&r.set(t,n),n}(r(6765));r(3690),r(3071),r(2166),r(7917),r(3576),r(1239),r(4359),r(2639),r(4983),r(731),r(1734),r(4166),r(4553),r(7033),r(5313),r(5103),r(3783),r(8540);var p,d=n(r(842)),y=r(5592),b=["contentUrl"];function v(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(v=function(t){return t?r:e})(t)}function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function m(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?g(Object(r),!0).forEach((function(e){(0,u.default)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}e.ConnectionStatus=p,function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Connecting=1]="Connecting",t[t.Online=2]="Online",t[t.ExpiredToken=3]="ExpiredToken",t[t.FailedToConnect=4]="FailedToConnect",t[t.Ended=5]="Ended"}(p||(e.ConnectionStatus=p={}));var w=function(t,e){var r=function(){throw new Error("not implemented")};return Object.assign((function(r){return t(r).catch((function(t){if(429===t.status){var r=t.xhr.getResponseHeader("Retry-After"),n=Number(r);if(!isNaN(n))return f.Observable.timer(n,e).flatMap((function(r){return f.Observable.throw(t,e)}))}return f.Observable.throw(t,e)}))}),{get:function(t,e){return r()},post:function(t,e,n){return r()},put:function(t,e,n){return r()},patch:function(t,e,n){return r()},delete:function(t,e){return r()},getJSON:function(t,e){return r()}})},_=new Error("expired token"),S=new Error("conversation ended"),x=new Error("failed to connect"),O=function(t){for(var e,r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];"undefined"!=typeof window&&window.botchatDebug&&t&&(e=console).log.apply(e,[t].concat(n))},E=function(){function t(e){var r,n;(0,s.default)(this,t),(0,u.default)(this,"connectionStatus$",new c.BehaviorSubject(p.Uninitialized)),(0,u.default)(this,"domain","https://directline.botframework.com/v3/directline"),(0,u.default)(this,"watermark",""),(0,u.default)(this,"_botAgent",""),(0,u.default)(this,"timeout",2e4),(0,u.default)(this,"pollingInterval",1e3),this.secret=e.secret,this.token=e.secret||e.token,this.webSocket=(void 0===e.webSocket||e.webSocket)&&"undefined"!=typeof WebSocket&&void 0!==WebSocket,e.conversationStartProperties&&e.conversationStartProperties.locale&&("[object String]"===Object.prototype.toString.call(e.conversationStartProperties.locale)?this.localeOnStartConversation=e.conversationStartProperties.locale:console.warn("DirectLineJS: conversationStartProperties.locale was ignored: the locale name may be a BCP 47 language tag")),e.domain&&(this.domain=e.domain),e.conversationId&&(this.conversationId=e.conversationId),e.watermark&&(this.watermark=e.watermark),e.streamUrl&&(e.token&&e.conversationId?this.streamUrl=e.streamUrl:console.warn("DirectLineJS: streamUrl was ignored: you need to provide a token and a conversationid")),void 0!==e.timeout&&(this.timeout=e.timeout),this.retries=9e5/this.timeout,this._botAgent=this.getBotAgent(e.botAgent),this.services={scheduler:n=(r=e).scheduler||l.async,ajax:w(r.ajax||f.Observable.ajax,n),WebSocket:r.WebSocket||WebSocket,random:r.random||Math.random};var o=~~e.pollingInterval;o<200?void 0!==e.pollingInterval&&console.warn("DirectLineJS: provided pollingInterval (".concat(e.pollingInterval,") is under lower bound (200ms), using default of 1000ms")):this.pollingInterval=o,this.expiredTokenExhaustion=this.setConnectionStatusFallback(p.ExpiredToken,p.FailedToConnect,5),this.activity$=(this.webSocket?this.webSocketActivity$():this.pollingGetActivity$()).share()}return(0,a.default)(t,[{key:"checkConnection",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=this.connectionStatus$.flatMap((function(e){return e===p.Uninitialized?(t.connectionStatus$.next(p.Connecting),t.token&&t.streamUrl?(t.connectionStatus$.next(p.Online),f.Observable.of(e,t.services.scheduler)):t.startConversation().do((function(e){t.conversationId=e.conversationId,t.token=t.secret||e.token,t.streamUrl=e.streamUrl,t.referenceGrammarId=e.referenceGrammarId,t.secret||t.refreshTokenLoop(),t.connectionStatus$.next(p.Online)}),(function(e){t.connectionStatus$.next(p.FailedToConnect)})).map((function(t){return e}))):f.Observable.of(e,t.services.scheduler)})).filter((function(t){return t!=p.Uninitialized&&t!=p.Connecting})).flatMap((function(e){switch(e){case p.Ended:return f.Observable.throw(S,t.services.scheduler);case p.FailedToConnect:return f.Observable.throw(x,t.services.scheduler);case p.ExpiredToken:default:return f.Observable.of(e,t.services.scheduler)}}));return e?r.take(1):r}},{key:"setConnectionStatusFallback",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;r--;var n=0,o=null;return function(i){return i===t&&o===i&&n>=r?(n=0,e):(n++,o=i,i)}}},{key:"expiredToken",value:function(){var t=this.connectionStatus$.getValue();t!=p.Ended&&t!=p.FailedToConnect&&this.connectionStatus$.next(p.ExpiredToken);var e=this.expiredTokenExhaustion(this.connectionStatus$.getValue());this.connectionStatus$.next(e)}},{key:"startConversation",value:function(){var t=this,e=this.conversationId?"".concat(this.domain,"/conversations/").concat(this.conversationId,"?watermark=").concat(this.watermark):"".concat(this.domain,"/conversations"),r=this.conversationId?"GET":"POST",n=this.conversationId?void 0:{user:{id:this.userIdOnStartConversation},locale:this.localeOnStartConversation};return this.services.ajax({method:r,url:e,body:n,timeout:this.timeout,headers:m({Accept:"application/json","Content-Type":"application/json"},this.commonHeaders())}).map((function(t){return t.response})).retryWhen((function(e){return e.mergeMap((function(e){return e.status>=400&&e.status<600?f.Observable.throw(e,t.services.scheduler):f.Observable.of(e,t.services.scheduler)})).delay(t.timeout,t.services.scheduler).take(t.retries)}))}},{key:"refreshTokenLoop",value:function(){var t=this;this.tokenRefreshSubscription=f.Observable.interval(9e5,this.services.scheduler).flatMap((function(e){return t.refreshToken()})).subscribe((function(e){O("refreshing token",e,"at",new Date),t.token=e}))}},{key:"refreshToken",value:function(){var t=this;return this.checkConnection(!0).flatMap((function(e){return t.services.ajax({method:"POST",url:"".concat(t.domain,"/tokens/refresh"),timeout:t.timeout,headers:m({},t.commonHeaders())}).map((function(t){return t.response.token})).retryWhen((function(e){return e.mergeMap((function(e){return 403===e.status?(t.expiredToken(),f.Observable.throw(e,t.services.scheduler)):404===e.status?f.Observable.throw(e,t.services.scheduler):f.Observable.of(e,t.services.scheduler)})).delay(t.timeout,t.services.scheduler).take(t.retries)}))}))}},{key:"reconnect",value:function(t){this.token=t.token,this.streamUrl=t.streamUrl,this.connectionStatus$.getValue()===p.ExpiredToken&&this.connectionStatus$.next(p.Online)}},{key:"end",value:function(){this.tokenRefreshSubscription&&this.tokenRefreshSubscription.unsubscribe();try{this.connectionStatus$.next(p.Ended)}catch(t){if(t===S)return;throw t}}},{key:"getSessionId",value:function(){var t=this;return O("getSessionId"),this.checkConnection(!0).flatMap((function(e){return t.services.ajax({method:"GET",url:"".concat(t.domain,"/session/getsessionid"),withCredentials:!0,timeout:t.timeout,headers:m({"Content-Type":"application/json"},t.commonHeaders())}).map((function(t){return t&&t.response&&t.response.sessionId?(O("getSessionId response: "+t.response.sessionId),t.response.sessionId):""})).catch((function(e){return O("getSessionId error: "+e.status),f.Observable.of("",t.services.scheduler)}))})).catch((function(e){return t.catchExpiredToken(e)}))}},{key:"postActivity",value:function(t){var e=this;return this.userIdOnStartConversation&&t.from&&t.from.id!==this.userIdOnStartConversation&&(console.warn("DirectLineJS: Activity.from.id does not match with user id, ignoring activity.from.id"),t.from.id=this.userIdOnStartConversation),"message"===t.type&&t.attachments&&t.attachments.length>0?this.postMessageWithAttachments(t):(O("postActivity",t),this.checkConnection(!0).flatMap((function(r){return e.services.ajax({method:"POST",url:"".concat(e.domain,"/conversations/").concat(e.conversationId,"/activities"),body:t,timeout:e.timeout,headers:m({"Content-Type":"application/json"},e.commonHeaders())}).map((function(t){return t.response.id})).catch((function(t){return e.catchPostError(t)}))})).catch((function(t){return e.catchExpiredToken(t)})))}},{key:"postMessageWithAttachments",value:function(t){var e,r=this,n=t.attachments,o=(0,d.default)(n.map((function(t){return t.name||"blob"}))),s=n.map((function(t,e){return m(m({},t),{},{name:o[e]})}));return this.checkConnection(!0).flatMap((function(n){return(e=new FormData).append("activity",new Blob([JSON.stringify(m(m({},t),{},{attachments:s.map((function(t){return t.contentUrl,m({},(0,i.default)(t,b))}))}))],{type:"application/vnd.microsoft.activity"})),f.Observable.from(s,r.services.scheduler).flatMap((function(t){return r.services.ajax({method:"GET",url:t.contentUrl,responseType:"arraybuffer"}).do((function(r){return e.append("file",new Blob([r.response],{type:t.contentType}),t.name)}))})).count()})).flatMap((function(n){return r.services.ajax({method:"POST",url:"".concat(r.domain,"/conversations/").concat(r.conversationId,"/upload?userId=").concat(t.from.id),body:e,timeout:r.timeout,headers:m({},r.commonHeaders())}).map((function(t){return t.response.id})).catch((function(t){return r.catchPostError(t)}))})).catch((function(t){return r.catchPostError(t)}))}},{key:"catchPostError",value:function(t){if(403===t.status)this.expiredToken();else if(t.status>=400&&t.status<500)return f.Observable.throw(t,this.services.scheduler);return f.Observable.of("retry",this.services.scheduler)}},{key:"catchExpiredToken",value:function(t){return t===_?f.Observable.of("retry",this.services.scheduler):f.Observable.throw(t,this.services.scheduler)}},{key:"pollingGetActivity$",value:function(){var t=this,e=f.Observable.create((function(e){var r=new c.BehaviorSubject({});r.subscribe((function(){if(t.connectionStatus$.getValue()===p.Online){var n=Date.now();t.services.ajax({headers:m({Accept:"application/json"},t.commonHeaders()),method:"GET",url:"".concat(t.domain,"/conversations/").concat(t.conversationId,"/activities?watermark=").concat(t.watermark),timeout:t.timeout}).subscribe((function(o){e.next(o),setTimeout((function(){return r.next(null)}),Math.max(0,t.pollingInterval-Date.now()+n))}),(function(n){switch(n.status){case 403:t.connectionStatus$.next(p.ExpiredToken),setTimeout((function(){return r.next(null)}),t.pollingInterval);break;case 404:t.connectionStatus$.next(p.Ended);break;default:e.error(n)}}))}}))}));return this.checkConnection().flatMap((function(r){return e.catch((function(){return f.Observable.empty()})).map((function(t){return t.response})).flatMap((function(e){return t.observableFromActivityGroup(e)}))}))}},{key:"observableFromActivityGroup",value:function(t){return t.watermark&&(this.watermark=t.watermark),f.Observable.from(t.activities,this.services.scheduler)}},{key:"webSocketActivity$",value:function(){var t=this;return this.checkConnection().flatMap((function(e){return t.observableWebSocket().retryWhen((function(e){return e.delay(t.getRetryDelay(),t.services.scheduler).mergeMap((function(e){return t.reconnectToConversation()}))}))})).flatMap((function(e){return t.observableFromActivityGroup(e)}))}},{key:"getRetryDelay",value:function(){return Math.floor(3e3+12e3*this.services.random())}},{key:"observableWebSocket",value:function(){var t=this;return f.Observable.create((function(e){O("creating WebSocket",t.streamUrl);var r,n,o=new t.services.WebSocket(t.streamUrl);return o.onopen=function(e){O("WebSocket open",e),r=f.Observable.interval(t.timeout,t.services.scheduler).subscribe((function(t){try{o.send("")}catch(t){O("Ping error",t)}}))},o.onclose=function(t){O("WebSocket close",t),r&&r.unsubscribe(),n||e.error(t),n=!0},o.onerror=function(t){O("WebSocket error",t),r&&r.unsubscribe(),n||e.error(t),n=!0},o.onmessage=function(t){return t.data&&e.next(JSON.parse(t.data))},function(){0!==o.readyState&&1!==o.readyState||o.close()}}))}},{key:"reconnectToConversation",value:function(){var t=this;return this.checkConnection(!0).flatMap((function(e){return t.services.ajax({method:"GET",url:"".concat(t.domain,"/conversations/").concat(t.conversationId,"?watermark=").concat(t.watermark),timeout:t.timeout,headers:m({Accept:"application/json"},t.commonHeaders())}).do((function(e){t.secret||(t.token=e.response.token),t.streamUrl=e.response.streamUrl})).map((function(t){return null})).retryWhen((function(e){return e.mergeMap((function(e){if(403===e.status)t.expiredToken();else if(404===e.status)return f.Observable.throw(S,t.services.scheduler);return f.Observable.of(e,t.services.scheduler)})).delay(t.timeout,t.services.scheduler).take(t.retries)}))}))}},{key:"commonHeaders",value:function(){return{Authorization:"Bearer ".concat(this.token),"x-ms-bot-agent":this._botAgent}}},{key:"getBotAgent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e="directlinejs";return t&&(e+="; ".concat(t)),"".concat("DirectLine/3.0"," (").concat(e," ").concat("0.15.6",")")}},{key:"setUserId",value:function(t){if(this.connectionStatus$.getValue()===p.Online)throw new Error("DirectLineJS: It is connected, we cannot set user id.");return this.parseToken(this.token)?console.warn("DirectLineJS: user id is already set in token, will ignore this user id."):/^dl_/.test(t)?console.warn('DirectLineJS: user id prefixed with "dl_" is reserved and must be embedded into the Direct Line token to prevent forgery.'):void(this.userIdOnStartConversation=t)}},{key:"parseToken",value:function(t){try{return(0,h.default)(t).user}catch(t){if(t instanceof h.InvalidTokenError)return}}}]),t}();e.DirectLine=E},5592:function(t,e,r){"use strict";var n=r(4994),o=r(3738);Object.defineProperty(e,"__esModule",{value:!0}),e.DirectLineStreaming=void 0;var i=n(r(1847)),s=n(r(4756)),a=n(r(2591)),u=n(r(2808)),c=n(r(1132)),f=n(r(9293)),l=n(r(7383)),h=n(r(4579)),p=n(r(3693)),d=r(3114),y=r(1545),b=r(9707),v=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==o(t)&&"function"!=typeof t)return{default:t};var r=x(e);if(r&&r.has(t))return r.get(t);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var a=i?Object.getOwnPropertyDescriptor(t,s):null;a&&(a.get||a.set)?Object.defineProperty(n,s,a):n[s]=t[s]}return n.default=t,r&&r.set(t,n),n}(r(8296)),g=n(r(2258)),m=n(r(4945)),w=r(3822),_=n(r(3266)),S=["attachments"];function x(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(x=function(t){return t?r:e})(t)}var O=function(){function t(e,r,n){(0,l.default)(this,t),(0,p.default)(this,"activityQueue",[]),this.subscriber=e,this.connectionStatus$=r,this.shouldQueue=n}var e;return(0,h.default)(t,[{key:"setSubscriber",value:function(t){this.subscriber=t}},{key:"processRequest",value:(e=(0,f.default)(s.default.mark((function t(e,r){var n,o,i,a,u,f,l,h,p;return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=(0,c.default)(e.streams),o=n.shift(),t.next=4,o.readAsString();case 4:if(i=t.sent,1===(a=JSON.parse(i)).activities.length){t.next=9;break}return this.subscriber.error(new Error("there should be exactly one activity")),t.abrupt("return",v.StreamingResponse.create(500));case 9:if(u=a.activities[0],!(n.length>0)){t.next=21;break}f=(0,c.default)(u.attachments);case 12:if(!(l=n.shift())){t.next=20;break}return t.next=15,l.readAsString();case 15:h=t.sent,p="data:text/plain;base64,"+h,f.push({contentType:l.contentType,contentUrl:p}),t.next=12;break;case 20:u.attachments=f;case 21:return this.shouldQueue()?this.activityQueue.push(u):this.subscriber.next(u),t.abrupt("return",v.StreamingResponse.create(200));case 23:case"end":return t.stop()}}),t,this)}))),function(t,r){return e.apply(this,arguments)})},{key:"flush",value:function(){var t=this;this.connectionStatus$.subscribe((function(){})),this.activityQueue.forEach((function(e){return t.subscriber.next(e)})),this.activityQueue=[]}},{key:"end",value:function(){this.subscriber.complete()}}]),t}(),E=new WeakMap,j=function(){function t(e){var r=this;(0,l.default)(this,t),(0,p.default)(this,"connectionStatus$",new d.BehaviorSubject(w.ConnectionStatus.Uninitialized)),(0,p.default)(this,"_botAgent",""),E.set(this,{writable:!0,value:void 0});var n=null==e?void 0:e.networkInformation;void 0===n||"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener&&"string"==typeof n.type?(0,u.default)(this,E,n):console.warn('botframework-directlinejs: "networkInformation" option specified must be a `NetworkInformation`-like instance extending `EventTarget` interface with a `type` property returning a string.'),this.token=e.token,this.refreshToken().catch((function(){r.connectionStatus$.next(w.ConnectionStatus.ExpiredToken)})),this.domain=e.domain,e.conversationId&&(this.conversationId=e.conversationId),this._botAgent=this.getBotAgent(e.botAgent),this.queueActivities=!0,this.activity$=b.Observable.create(function(){var t=(0,f.default)(s.default.mark((function t(e){return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r.activitySubscriber=e,r.theStreamHandler=new O(e,r.connectionStatus$,(function(){return r.queueActivities})),r.connectDeferred.resolve();case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).share(),this.connectWithRetryAsync()}var e,r,n,o;return(0,h.default)(t,[{key:"reconnect",value:function(t){var e=t.conversationId,r=t.token;if(this.connectionStatus$.getValue()===w.ConnectionStatus.Ended)throw new Error("Connection has ended.");this.conversationId=e,this.token=r,this.connectDeferred.resolve()}},{key:"end",value:function(){this.activitySubscriber.complete(),this.connectionStatus$.next(w.ConnectionStatus.Ended),this.connectionStatus$.complete(),this.streamConnection.disconnect()}},{key:"commonHeaders",value:function(){return{Authorization:"Bearer ".concat(this.token),"x-ms-bot-agent":this._botAgent}}},{key:"getBotAgent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e="directlineStreaming";return t&&(e+="; ".concat(t)),"".concat("DirectLine/3.0"," (").concat(e,")")}},{key:"refreshToken",value:(o=(0,f.default)(s.default.mark((function t(){var e,r,n,o;return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=4,this.waitUntilOnline();case 4:e=0;case 5:if(!(e<3)){t.next=30;break}return e++,t.next=9,new Promise((function(t){return setTimeout(t,9e5)}));case 9:return t.prev=9,t.next=12,(0,m.default)("".concat(this.domain,"/tokens/refresh"),{method:"POST",headers:this.commonHeaders()});case 12:if(!(r=t.sent).ok){t.next=22;break}return e=0,t.next=17,r.json();case 17:n=t.sent,o=n.token,this.token=o,t.next=23;break;case 22:403===r.status||403===r.status?(console.error("Fatal error while refreshing the token: ".concat(r.status," ").concat(r.statusText)),this.streamConnection.disconnect()):console.warn("Refresh attempt #".concat(e," failed: ").concat(r.status," ").concat(r.statusText));case 23:t.next=28;break;case 25:t.prev=25,t.t0=t.catch(9),console.warn("Refresh attempt #".concat(e," threw an exception: ").concat(t.t0));case 28:t.next=5;break;case 30:console.error("Retries exhausted"),this.streamConnection.disconnect();case 32:case"end":return t.stop()}}),t,this,[[9,25]])}))),function(){return o.apply(this,arguments)})},{key:"postActivity",value:function(t){var e=this;if(this.connectionStatus$.value===w.ConnectionStatus.Ended||this.connectionStatus$.value===w.ConnectionStatus.FailedToConnect)return b.Observable.throw(new Error("Connection is closed"));if("message"===t.type&&t.attachments&&t.attachments.length>0)return this.postMessageWithAttachments(t);var r=b.Observable.create(function(){var r=(0,f.default)(s.default.mark((function r(n){var o,i,a,u,c,f;return s.default.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(o=v.StreamingRequest.create("POST","/v3/directline/conversations/"+e.conversationId+"/activities")).setBody(JSON.stringify(t)),r.prev=2,r.next=5,e.streamConnection.send(o);case 5:if(200===(i=r.sent).statusCode){r.next=8;break}throw new Error("PostActivity returned "+i.statusCode);case 8:if(1===(a=i.streams.length)){r.next=11;break}throw new Error("Expected one stream but got "+a);case 11:return r.next=13,i.streams[0].readAsString();case 13:return u=r.sent,c=JSON.parse(u),f=c.Id,n.next(f),r.abrupt("return",n.complete());case 19:return r.prev=19,r.t0=r.catch(2),console.warn(r.t0),e.streamConnection.disconnect(),r.abrupt("return",n.error(r.t0));case 24:case"end":return r.stop()}}),r,null,[[2,19]])})));return function(t){return r.apply(this,arguments)}}());return r}},{key:"postMessageWithAttachments",value:function(t){var e=this,r=t.attachments,n=(0,i.default)(t,S);return b.Observable.create((function(t){var o=[];(0,f.default)(s.default.mark((function i(){var a,u,c,l,h,p;return s.default.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,Promise.all(r.map(function(){var t=(0,f.default)(s.default.mark((function t(e){var r,n;return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e,t.next=3,(0,m.default)(r.contentUrl);case 3:if(!(n=t.sent).ok){t.next=12;break}return t.next=7,n.arrayBuffer();case 7:return t.t0=t.sent,t.t1=r,t.abrupt("return",{arrayBuffer:t.t0,media:t.t1});case 12:throw new Error("...");case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 3:return i.sent.forEach((function(t){var e=t.arrayBuffer,r=t.media,n=y.Buffer.from(e),i=new v.SubscribableStream;i.write(n);var s=new v.HttpContent({type:r.contentType,contentLength:n.length},i);o.push(s)})),a="/v3/directline/conversations/".concat(e.conversationId,"/users/").concat(n.from.id,"/upload"),u=v.StreamingRequest.create("PUT",a),(c=new v.SubscribableStream).write(JSON.stringify(n),"utf-8"),u.addStream(new v.HttpContent({type:"application/vnd.microsoft.activity",contentLength:c.length},c)),o.forEach((function(t){return u.addStream(t)})),i.next=13,e.streamConnection.send(u);case 13:if(!(l=i.sent).streams||1===l.streams.length){i.next=18;break}t.error(new Error("Invalid stream count ".concat(l.streams.length))),i.next=24;break;case 18:return i.next=20,l.streams[0].readAsJson();case 20:h=i.sent,p=h.Id,t.next(p),t.complete();case 24:i.next=29;break;case 26:i.prev=26,i.t0=i.catch(0),t.error(i.t0);case 29:case"end":return i.stop()}}),i,null,[[0,26]])})))()}))}},{key:"waitUntilOnline",value:(n=(0,f.default)(s.default.mark((function t(){var e=this;return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,r){e.connectionStatus$.subscribe((function(e){if(e===w.ConnectionStatus.Online)return t()}),(function(t){return r(t)}))})));case 1:case"end":return t.stop()}}),t)}))),function(){return n.apply(this,arguments)})},{key:"connectAsync",value:(r=(0,f.default)(s.default.mark((function t(){var e,r,n,o,i,u=this;return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((e=new RegExp("^http(s?)")).test(this.domain)){t.next=3;break}throw"Domain must begin with http or https";case 3:return r={token:this.token},this.conversationId&&(r.conversationId=this.conversationId),n=new AbortController,o=new URLSearchParams(r).toString(),i="".concat(this.domain.replace(e,"ws$1"),"/conversations/connect?").concat(o),t.abrupt("return",new Promise(function(){var t=(0,f.default)(s.default.mark((function t(e,r){var o,c,f,l;return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,u.streamConnection=new _.default({disconnectionHandler:e,networkInformation:(0,a.default)(u,E),requestHandler:{processRequest:function(t){if(n.signal.aborted)throw new Error("Cannot process streaming request, `streamingConnection` should be disconnected.");return u.theStreamHandler.processRequest(t)}},url:i}),u.queueActivities=!0,t.next=5,u.streamConnection.connect();case 5:return o=v.StreamingRequest.create("POST","/v3/directline/conversations"),t.next=8,u.streamConnection.send(o);case 8:if(200===(c=t.sent).statusCode){t.next=11;break}throw new Error("Connection response code "+c.statusCode);case 11:if(1===c.streams.length){t.next=13;break}throw new Error("Expected 1 stream but got "+c.streams.length);case 13:return t.next=15,c.streams[0].readAsString();case 15:return f=t.sent,l=JSON.parse(f),u.conversationId=l.conversationId,u.connectionStatus$.next(w.ConnectionStatus.Online),t.next=21,u.waitUntilOnline();case 21:u.theStreamHandler.flush(),u.queueActivities=!1,t.next=28;break;case 25:t.prev=25,t.t0=t.catch(0),r(t.t0);case 28:case"end":return t.stop()}}),t,null,[[0,25]])})));return function(e,r){return t.apply(this,arguments)}}()).finally((function(){return n.abort()})));case 9:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"connectWithRetryAsync",value:(e=(0,f.default)(s.default.mark((function t(){var e,r,n=this;return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(this.connectDeferred=(0,g.default)()).promise;case 2:e=3,this.connectionStatus$.next(w.ConnectionStatus.Connecting);case 4:if(!(e>0)){t.next=27;break}return e--,r=Date.now(),t.prev=7,t.next=10,this.connectAsync();case 10:t.next=15;break;case 12:t.prev=12,t.t0=t.catch(7),console.error(t.t0);case 15:if(this.connectionStatus$.getValue()!==w.ConnectionStatus.Ended){t.next=17;break}return t.abrupt("return");case 17:if(this.connectionStatus$.getValue()!==w.ConnectionStatus.Connecting&&this.connectionStatus$.next(w.ConnectionStatus.Connecting),!(6e4<Date.now()-r)){t.next=22;break}e=3,t.next=25;break;case 22:if(!(e>0)){t.next=25;break}return t.next=25,new Promise((function(t){return setTimeout(t,n.getRetryDelay())}));case 25:t.next=4;break;case 27:this.connectionStatus$.next(w.ConnectionStatus.FailedToConnect);case 28:t.next=0;break;case 30:case"end":return t.stop()}}),t,this,[[7,12]])}))),function(){return e.apply(this,arguments)})},{key:"getRetryDelay",value:function(){return Math.floor(3e3+12e3*Math.random())}}]),t}();e.DirectLineStreaming=j},4227:function(t,e,r){"use strict";var n=r(4994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if(t){if(~t.indexOf(".")){var e=t.split(".").reverse(),r=(0,o.default)(e);return{extname:"."+r[0],name:r.slice(1).reverse().join(".")}}return{extname:"",name:t}}return{extname:"",name:""}};var o=n(r(8053))},3266:function(t,e,r){"use strict";var n=r(4994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(r(7383)),i=n(r(4579)),s=n(r(2475)),a=n(r(2395)),u=n(r(9511)),c=n(r(8452)),f=n(r(3072)),l=n(r(2591)),h=n(r(2808)),p=r(8296);var d=new WeakMap,y=new WeakMap,b=new WeakMap,v=new WeakMap,g=function(t){(0,u.default)(p,t);var e,r,n=(e=p,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=(0,f.default)(e);if(r){var o=(0,f.default)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,c.default)(this,t)});function p(t){var e,r=t.disconnectionHandler,i=t.networkInformation,a=t.requestHandler,u=t.url;return(0,o.default)(this,p),e=n.call(this,{disconnectionHandler:r,requestHandler:a,url:u}),d.set((0,s.default)(e),{writable:!0,value:!1}),y.set((0,s.default)(e),{writable:!0,value:function(){return(0,l.default)((0,s.default)(e),b)===(0,l.default)((0,s.default)(e),v).type||e.disconnect()}}),b.set((0,s.default)(e),{writable:!0,value:void 0}),v.set((0,s.default)(e),{writable:!0,value:void 0}),(0,h.default)((0,s.default)(e),v,i),e}return(0,i.default)(p,[{key:"connect",value:function(){if((0,l.default)(this,d))return console.warn("botframework-directlinejs: connect() can only be called once."),Promise.resolve();if((0,h.default)(this,d,!0),(0,l.default)(this,v)){var t=(0,l.default)(this,v).type;if((0,h.default)(this,b,t),"none"===t)return console.warn("botframework-directlinejs: Failed to connect while offline."),Promise.reject(new Error("botframework-directlinejs: Failed to connect while offline."));(0,l.default)(this,v).addEventListener("change",(0,l.default)(this,y))}return(0,a.default)((0,f.default)(p.prototype),"connect",this).call(this)}},{key:"disconnect",value:function(){var t;null===(t=(0,l.default)(this,v))||void 0===t||t.removeEventListener("change",(0,l.default)(this,y)),(0,a.default)((0,f.default)(p.prototype),"disconnect",this).call(this)}}]),p}(p.WebSocketClient);e.default=g},8296:function(t,e,r){"use strict";var n,o,i,s,a=r(4994)(r(3738));s=function(){return function t(e,r,n){function o(s,a){if(!r[s]){if(!e[s]){if(i)return i(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var c=r[s]={exports:{}};e[s][0].call(c.exports,(function(t){return o(e[s][1][t]||t)}),c,c.exports,t,e,r,n)}return r[s].exports}for(var i=void 0,s=0;s<n.length;s++)o(n[s]);return o}({1:[function(t,e,r){var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.PayloadAssembler=void 0;var i=t("../subscribableStream"),s=t("../payloads"),a=t("../contentStream"),u=function(){function t(t,e){if(this.streamManager=t,this._byteOrderMark=65279,this._utf="utf8",e.header?(this.id=e.header.id,this.payloadType=e.header.payloadType,this.contentLength=e.header.payloadLength,this.end=e.header.end):this.id=e.id,!this.id)throw Error("An ID must be supplied when creating an assembler.");this._onCompleted=e.onCompleted}return t.prototype.getPayloadStream=function(){return this.stream||(this.stream=this.createPayloadStream()),this.stream},t.prototype.onReceive=function(t,e,r){this.end=t.end,t.payloadType===s.PayloadTypes.response||t.payloadType===s.PayloadTypes.request?this.process(e).then().catch():t.end&&e.end()},t.prototype.close=function(){this.streamManager.closeStream(this.id)},t.prototype.createPayloadStream=function(){return new i.SubscribableStream},t.prototype.payloadFromJson=function(t){return JSON.parse(t.charCodeAt(0)===this._byteOrderMark?t.slice(1):t)},t.prototype.stripBOM=function(t){return t.charCodeAt(0)===this._byteOrderMark?t.slice(1):t},t.prototype.process=function(t){return n(this,void 0,void 0,(function(){var e,r;return o(this,(function(n){switch(n.label){case 0:return(e=t.read(t.length))?(r=e.toString(this._utf),this.payloadType!==s.PayloadTypes.request?[3,2]:[4,this.processRequest(r)]):[2];case 1:return n.sent(),[3,4];case 2:return this.payloadType!==s.PayloadTypes.response?[3,4]:[4,this.processResponse(r)];case 3:n.sent(),n.label=4;case 4:return[2]}}))}))},t.prototype.processResponse=function(t){return n(this,void 0,void 0,(function(){var e,r;return o(this,(function(n){switch(n.label){case 0:return e=this.payloadFromJson(this.stripBOM(t)),r={streams:[],statusCode:e.statusCode},[4,this.processStreams(e,r)];case 1:return n.sent(),[2]}}))}))},t.prototype.processRequest=function(t){return n(this,void 0,void 0,(function(){var e,r;return o(this,(function(n){switch(n.label){case 0:return e=this.payloadFromJson(t),r={streams:[],path:e.path,verb:e.verb},[4,this.processStreams(e,r)];case 1:return n.sent(),[2]}}))}))},t.prototype.processStreams=function(t,e){var r;return n(this,void 0,void 0,(function(){var n=this;return o(this,(function(o){switch(o.label){case 0:return null===(r=t.streams)||void 0===r||r.forEach((function(t){var r,o=null!==(r=t.type)&&void 0!==r?r:t.contentType,i=n.streamManager.getPayloadAssembler(t.id);i.payloadType=o,i.contentLength=t.length,e.streams.push(new a.ContentStream(t.id,i))})),[4,this._onCompleted(this.id,e)];case 1:return o.sent(),[2]}}))}))},t}();r.PayloadAssembler=u},{"../contentStream":2,"../payloads":16,"../subscribableStream":27}],2:[function(t,e,r){var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.ContentStream=void 0;var i=function(){function t(t,e){if(!e)throw Error("Null Argument Exception");this.id=t,this.assembler=e}return Object.defineProperty(t.prototype,"contentType",{get:function(){return this.assembler.payloadType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this.assembler.contentLength},enumerable:!1,configurable:!0}),t.prototype.getStream=function(){return this.stream||(this.stream=this.assembler.getPayloadStream()),this.stream},t.prototype.cancel=function(){this.assembler.close()},t.prototype.readAsString=function(){return n(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.readAll()];case 1:return[2,(t.sent().bufferArray||[]).map((function(t){return t.toString("utf8")})).join("")]}}))}))},t.prototype.readAsJson=function(){return n(this,void 0,void 0,(function(){var t;return o(this,(function(e){switch(e.label){case 0:return[4,this.readAsString()];case 1:return t=e.sent(),[2,JSON.parse(t)]}}))}))},t.prototype.readAll=function(){return n(this,void 0,void 0,(function(){var t,e,r,n,i,s=this;return o(this,(function(o){switch(o.label){case 0:for(t=[],e=0,r=this.getStream();e<r.length;)n=r.read(r.length),t.push(n),e+=n.length;return e<this.length?(i=new Promise((function(n){var o;r.subscribe((o=s,function(r){t.push(r),(e+=r.length)===o.length&&n(!0)}))})),[4,i]):[3,2];case 1:o.sent(),o.label=2;case 2:return[2,{bufferArray:t,size:e}]}}))}))},t}();r.ContentStream=i},{}],3:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.CancelDisassembler=void 0;var n=function(){function t(t,e,r){this.sender=t,this.id=e,this.payloadType=r}return t.prototype.disassemble=function(){var t={payloadType:this.payloadType,payloadLength:0,id:this.id,end:!0};this.sender.sendPayload(t)},t}();r.CancelDisassembler=n},{}],4:[function(t,e,r){var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.HttpContentStreamDisassembler=void 0;var a=t("./payloadDisassembler"),u=t("../payloads"),c=function(t){function e(e,r){var n=t.call(this,e,r.id)||this;return n.payloadType=u.PayloadTypes.stream,n.contentStream=r,n}return o(e,t),e.prototype.getStream=function(){return i(this,void 0,void 0,(function(){var t;return s(this,(function(e){return[2,{stream:t=this.contentStream.content.getStream(),streamLength:t.length}]}))}))},e}(a.PayloadDisassembler);r.HttpContentStreamDisassembler=c},{"../payloads":16,"./payloadDisassembler":5}],5:[function(t,e,r){var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.PayloadDisassembler=void 0;var i=t("../subscribableStream"),s=function(){function t(t,e){this.sender=t,this.id=e}return t.serialize=function(t){var e=new i.SubscribableStream;return e.write(JSON.stringify(t)),e.end(),{stream:e,streamLength:e.length}},t.prototype.disassemble=function(){return n(this,void 0,void 0,(function(){var t,e,r;return o(this,(function(n){switch(n.label){case 0:return[4,this.getStream()];case 1:return t=n.sent(),e=t.stream,r=t.streamLength,this.stream=e,this.streamLength=r,[2,this.send()]}}))}))},t.prototype.send=function(){return n(this,void 0,void 0,(function(){var t;return o(this,(function(e){return t={payloadType:this.payloadType,payloadLength:this.streamLength,id:this.id,end:!0},this.sender.sendPayload(t,this.stream),[2]}))}))},t}();r.PayloadDisassembler=s},{"../subscribableStream":27}],6:[function(t,e,r){var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.RequestDisassembler=void 0;var a=t("../payloads/payloadTypes"),u=t("./payloadDisassembler"),c=function(t){function e(e,r,n){var o=t.call(this,e,r)||this;return o.request=n,o.payloadType=a.PayloadTypes.request,o}return o(e,t),e.prototype.getStream=function(){var t,e,r,n;return i(this,void 0,void 0,(function(){var o;return s(this,(function(i){return o={verb:null===(t=this.request)||void 0===t?void 0:t.verb,path:null===(e=this.request)||void 0===e?void 0:e.path,streams:[]},null===(n=null===(r=this.request)||void 0===r?void 0:r.streams)||void 0===n||n.forEach((function(t){o.streams.push(t.description)})),[2,u.PayloadDisassembler.serialize(o)]}))}))},e}(u.PayloadDisassembler);r.RequestDisassembler=c},{"../payloads/payloadTypes":19,"./payloadDisassembler":5}],7:[function(t,e,r){var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.ResponseDisassembler=void 0;var a=t("../payloads/payloadTypes"),u=t("./payloadDisassembler"),c=function(t){function e(e,r,n){var o=t.call(this,e,r)||this;return o.payloadType=a.PayloadTypes.response,o.response=n,o}return o(e,t),e.prototype.getStream=function(){var t;return i(this,void 0,void 0,(function(){var e;return s(this,(function(r){return e={statusCode:this.response.statusCode,streams:[]},null===(t=this.response.streams)||void 0===t||t.forEach((function(t){var r=t.description;e.streams.push({id:r.id,contentType:r.type,length:r.length})})),[2,u.PayloadDisassembler.serialize(e)]}))}))},e}(u.PayloadDisassembler);r.ResponseDisassembler=c},{"../payloads/payloadTypes":19,"./payloadDisassembler":5}],8:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.HttpContent=r.HttpContentStream=void 0;var n=t("./utilities/protocol-base");r.HttpContentStream=function(t){var e,r,o,i,s,a;this.content=t,this.id=(0,n.generateGuid)(),this.description={id:this.id,type:null!==(o=null===(r=null===(e=this.content)||void 0===e?void 0:e.headers)||void 0===r?void 0:r.type)&&void 0!==o?o:"unknown",length:null!==(a=null===(s=null===(i=this.content)||void 0===i?void 0:i.headers)||void 0===s?void 0:s.contentLength)&&void 0!==a?a:0}};var o=function(){function t(t,e){this.headers=t,this.stream=e}return t.prototype.getStream=function(){return this.stream},t}();r.HttpContent=o},{"./utilities/protocol-base":28}],9:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.WebSocketClient=r.BrowserWebSocket=r.SubscribableStream=r.StreamingResponse=r.StreamingRequest=r.RequestHandler=r.HttpContent=r.ContentStream=void 0;var n=t("./contentStream");Object.defineProperty(r,"ContentStream",{enumerable:!0,get:function(){return n.ContentStream}});var o=t("./httpContentStream");Object.defineProperty(r,"HttpContent",{enumerable:!0,get:function(){return o.HttpContent}});var i=t("./requestHandler");Object.defineProperty(r,"RequestHandler",{enumerable:!0,get:function(){return i.RequestHandler}});var s=t("./streamingRequest");Object.defineProperty(r,"StreamingRequest",{enumerable:!0,get:function(){return s.StreamingRequest}});var a=t("./streamingResponse");Object.defineProperty(r,"StreamingResponse",{enumerable:!0,get:function(){return a.StreamingResponse}});var u=t("./subscribableStream");Object.defineProperty(r,"SubscribableStream",{enumerable:!0,get:function(){return u.SubscribableStream}});var c=t("./webSocket/index-browser");Object.defineProperty(r,"BrowserWebSocket",{enumerable:!0,get:function(){return c.BrowserWebSocket}}),Object.defineProperty(r,"WebSocketClient",{enumerable:!0,get:function(){return c.WebSocketClient}})},{"./contentStream":2,"./httpContentStream":8,"./requestHandler":24,"./streamingRequest":25,"./streamingResponse":26,"./subscribableStream":27,"./webSocket/index-browser":31}],10:[function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(r,"__esModule",{value:!0}),o(t("./payloadReceiver"),r),o(t("./payloadSender"),r),o(t("./transportDisconnectedEvent"),r),o(t("./transportDisconnectedEventHandler"),r)},{"./payloadReceiver":11,"./payloadSender":12,"./transportDisconnectedEvent":13,"./transportDisconnectedEventHandler":14}],11:[function(t,e,r){var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.PayloadReceiver=void 0;var i=t("../payloads/payloadTypes"),s=t("../payloads/headerSerializer"),a=t("../payloads/payloadConstants"),u=t("./transportDisconnectedEvent"),c=function(){function t(){}return Object.defineProperty(t.prototype,"isConnected",{get:function(){return null!=this._receiver},enumerable:!1,configurable:!0}),t.prototype.connect=function(t){return this._receiver=t,this.receivePackets()},t.prototype.subscribe=function(t,e){this._getStream=t,this._receiveAction=e},t.prototype.disconnect=function(t){var e,r;if(void 0===t&&(t=u.TransportDisconnectedEvent.Empty),this.isConnected)try{this._receiver.close(),null===(e=this.disconnected)||void 0===e||e.call(this,this,t)}catch(t){null===(r=this.disconnected)||void 0===r||r.call(this,this,new u.TransportDisconnectedEvent(t.message))}finally{this._receiver=null}},t.prototype.receivePackets=function(){return n(this,void 0,void 0,(function(){var t,e,r,n,c,f,l,h,p;return o(this,(function(o){switch(o.label){case 0:if(!this.isConnected)return[3,11];o.label=1;case 1:o.trys.push([1,9,,10]),t=0,o.label=2;case 2:return t<a.PayloadConstants.MaxHeaderLength?(e=this,[4,this._receiver.receive(a.PayloadConstants.MaxHeaderLength-t)]):[3,4];case 3:return e._receiveHeaderBuffer=o.sent(),this._receiveHeaderBuffer&&(t+=this._receiveHeaderBuffer.length),[3,2];case 4:if(r=s.HeaderSerializer.deserialize(this._receiveHeaderBuffer),n=r.payloadType===i.PayloadTypes.stream,!(r.payloadLength>0))return[3,8];c=0,f=this._getStream(r),o.label=5;case 5:return c<r.payloadLength&&c<a.PayloadConstants.MaxPayloadLength?(l=Math.min(r.payloadLength-c,a.PayloadConstants.MaxPayloadLength),h=this,[4,this._receiver.receive(l)]):[3,7];case 6:return h._receivePayloadBuffer=o.sent(),c+=this._receivePayloadBuffer.byteLength,f.write(this._receivePayloadBuffer),n&&this._receiveAction(r,f,c),[3,5];case 7:n||this._receiveAction(r,f,c),o.label=8;case 8:return[3,10];case 9:return p=o.sent(),this.disconnect(new u.TransportDisconnectedEvent(p.message)),[3,10];case 10:return[3,0];case 11:return[2]}}))}))},t}();r.PayloadReceiver=c},{"../payloads/headerSerializer":15,"../payloads/payloadConstants":18,"../payloads/payloadTypes":19,"./transportDisconnectedEvent":13}],12:[function(t,e,r){(function(e){(function(){Object.defineProperty(r,"__esModule",{value:!0}),r.PayloadSender=void 0;var n=t("../payloads/headerSerializer"),o=t("../payloads/payloadConstants"),i=t("./transportDisconnectedEvent"),s=function(){function t(){}return Object.defineProperty(t.prototype,"isConnected",{get:function(){return null!=this._sender},enumerable:!1,configurable:!0}),t.prototype.connect=function(t){this._sender=t},t.prototype.sendPayload=function(t,e,r){var n={header:t,payload:e,sentCallback:r};this.writePacket(n)},t.prototype.disconnect=function(t){var e,r;if(void 0===t&&(t=i.TransportDisconnectedEvent.Empty),this.isConnected)try{this._sender.close(),null===(e=this.disconnected)||void 0===e||e.call(this,this,t)}catch(t){null===(r=this.disconnected)||void 0===r||r.call(this,this,new i.TransportDisconnectedEvent(t.message))}finally{this._sender=null}},t.prototype.writePacket=function(t){try{if(t.header.payloadLength>0&&t.payload){for(var r=t.header.payloadLength;r>0;){var s=r<=o.PayloadConstants.MaxPayloadLength?r:o.PayloadConstants.MaxPayloadLength,a=t.payload.read(s),u=t.header;u.payloadLength=s,u.end=r<=o.PayloadConstants.MaxPayloadLength;var c=e.alloc(o.PayloadConstants.MaxHeaderLength);n.HeaderSerializer.serialize(u,c),this._sender.send(c),this._sender.send(a),r-=a.length}t.sentCallback&&t.sentCallback()}}catch(t){this.disconnect(new i.TransportDisconnectedEvent(t.message))}},t}();r.PayloadSender=s}).call(this)}).call(this,t("buffer").Buffer)},{"../payloads/headerSerializer":15,"../payloads/payloadConstants":18,"./transportDisconnectedEvent":13,buffer:35}],13:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TransportDisconnectedEvent=void 0;var n=function(){function t(t){this.reason=t}return t.Empty=new t,t}();r.TransportDisconnectedEvent=n},{}],14:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0})},{}],15:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.HeaderSerializer=void 0;var n=t("./payloadConstants"),o=function(){function t(){}return t.serialize=function(t,e){e.write(t.payloadType,this.TypeOffset,1,this.Encoding),e.write(this.Delimiter,this.TypeDelimiterOffset,1,this.Encoding),e.write(this.headerLengthPadder(t.payloadLength,this.LengthLength,"0"),this.LengthOffset,this.LengthLength,this.Encoding),e.write(this.Delimiter,this.LengthDelimeterOffset,1,this.Encoding),e.write(t.id,this.IdOffset),e.write(this.Delimiter,this.IdDelimeterOffset,1,this.Encoding),e.write(t.end?this.End:this.NotEnd,this.EndOffset),e.write(this.Terminator,this.TerminatorOffset)},t.deserialize=function(t){var e=t.toString(this.Encoding),r=e.split(this.Delimiter);if(4!==r.length)throw Error("Cannot parse header, header is malformed. Header: ".concat(e));var o=r[0],i=r[1],s=r[2],a=r[3],u={end:"1\n"===a,payloadLength:Number(i),payloadType:o,id:s};if(!(u.payloadLength<=n.PayloadConstants.MaxPayloadLength&&u.payloadLength>=n.PayloadConstants.MinLength))throw Error("Header length of ".concat(u.payloadLength," is missing or malformed"));if(u.payloadType.length!==this.TypeDelimiterOffset)throw Error("Header type '".concat(u.payloadType.length,"' is missing or malformed."));if(!u.id||!u.id.match(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i)||u.id.length!==this.IdLength)throw Error("Header ID '".concat(u.id,"' is missing or malformed."));if("0\n"!==a&&"1\n"!==a)throw Error("Header End is missing or not a valid value. Header end: '".concat(a,"'"));return u},t.headerLengthPadder=function(t,e,r){var n=Array(e+1).join(r),o=t.toString();return(n+o).slice(o.length)},t.Delimiter=".",t.Terminator="\n",t.End="1",t.NotEnd="0",t.TypeOffset=0,t.TypeDelimiterOffset=1,t.LengthOffset=2,t.LengthLength=6,t.LengthDelimeterOffset=8,t.IdOffset=9,t.IdLength=36,t.IdDelimeterOffset=45,t.EndOffset=46,t.TerminatorOffset=47,t.Encoding="utf8",t}();r.HeaderSerializer=o},{"./payloadConstants":18}],16:[function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(r,"__esModule",{value:!0}),o(t("./headerSerializer"),r),o(t("./streamManager"),r),o(t("./payloadAssemblerManager"),r),o(t("./payloadTypes"),r),o(t("./requestManager"),r),o(t("./sendOperations"),r),o(t("./streamManager"),r)},{"./headerSerializer":15,"./payloadAssemblerManager":17,"./payloadTypes":19,"./requestManager":20,"./sendOperations":21,"./streamManager":22}],17:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.PayloadAssemblerManager=void 0;var n=t("../assemblers/payloadAssembler"),o=t("./payloadTypes"),i=function(){function t(t,e,r){this.streamManager=t,this.onReceiveResponse=e,this.onReceiveRequest=r,this.activeAssemblers={}}return t.prototype.getPayloadStream=function(t){if(t.payloadType===o.PayloadTypes.stream)return this.streamManager.getPayloadStream(t);if(!this.activeAssemblers[t.id]){var e=this.createPayloadAssembler(t);if(e)return this.activeAssemblers[t.id]=e,e.getPayloadStream()}},t.prototype.onReceive=function(t,e,r){t.payloadType===o.PayloadTypes.stream?this.streamManager.onReceive(t,e,r):(this.activeAssemblers&&this.activeAssemblers[t.id]&&this.activeAssemblers[t.id].onReceive(t,e,r),t.end&&delete this.activeAssemblers[t.id])},t.prototype.createPayloadAssembler=function(t){return t.payloadType===o.PayloadTypes.request?new n.PayloadAssembler(this.streamManager,{header:t,onCompleted:this.onReceiveRequest}):t.payloadType===o.PayloadTypes.response?new n.PayloadAssembler(this.streamManager,{header:t,onCompleted:this.onReceiveResponse}):void 0},t}();r.PayloadAssemblerManager=i},{"../assemblers/payloadAssembler":1,"./payloadTypes":19}],18:[function(t,e,r){var n;Object.defineProperty(r,"__esModule",{value:!0}),r.PayloadConstants=void 0,(n=r.PayloadConstants||(r.PayloadConstants={}))[n.MaxPayloadLength=4096]="MaxPayloadLength",n[n.MaxHeaderLength=48]="MaxHeaderLength",n[n.MaxLength=999999]="MaxLength",n[n.MinLength=0]="MinLength"},{}],19:[function(t,e,r){var n;Object.defineProperty(r,"__esModule",{value:!0}),r.PayloadTypes=void 0,(n=r.PayloadTypes||(r.PayloadTypes={})).request="A",n.response="B",n.stream="S",n.cancelAll="X",n.cancelStream="C"},{}],20:[function(t,e,r){var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.RequestManager=void 0;var i=function(){},s=function(){function t(){this._pendingRequests={}}return t.prototype.pendingRequestCount=function(){return Object.keys(this._pendingRequests).length},t.prototype.signalResponse=function(t,e){return n(this,void 0,void 0,(function(){var r;return o(this,(function(n){return(r=this._pendingRequests[t])?(r.resolve(e),delete this._pendingRequests[t],[2,!0]):[2,!1]}))}))},t.prototype.getResponse=function(t){var e=this._pendingRequests[t];if(e)return Promise.reject("requestId '".concat(t,"' already exists in RequestManager"));(e=new i).requestId=t;var r=new Promise((function(t,r){e.resolve=t,e.reject=r}));return this._pendingRequests[t]=e,r},t.prototype.rejectAllResponses=function(t){var e=this;Object.entries(this._pendingRequests).forEach((function(r){var n=r[0];(0,r[1].reject)(t),delete e._pendingRequests[n]}))},t}();r.RequestManager=s},{}],21:[function(t,e,r){var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.SendOperations=void 0;var i=t("../disassemblers/cancelDisassembler"),s=t("../disassemblers/httpContentStreamDisassembler"),a=t("../disassemblers/requestDisassembler"),u=t("../disassemblers/responseDisassembler"),c=t("./payloadTypes"),f=function(){function t(t){this.payloadSender=t}return t.prototype.sendRequest=function(t,e){return n(this,void 0,void 0,(function(){var r=this;return o(this,(function(i){switch(i.label){case 0:return[4,new a.RequestDisassembler(this.payloadSender,t,e).disassemble()];case 1:return i.sent(),e.streams&&e.streams.forEach((function(t){return n(r,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,new s.HttpContentStreamDisassembler(this.payloadSender,t).disassemble()];case 1:return e.sent(),[2]}}))}))})),[2]}}))}))},t.prototype.sendResponse=function(t,e){return n(this,void 0,void 0,(function(){var r=this;return o(this,(function(i){switch(i.label){case 0:return[4,new u.ResponseDisassembler(this.payloadSender,t,e).disassemble()];case 1:return i.sent(),e.streams&&e.streams.forEach((function(t){return n(r,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,new s.HttpContentStreamDisassembler(this.payloadSender,t).disassemble()];case 1:return e.sent(),[2]}}))}))})),[2]}}))}))},t.prototype.sendCancelStream=function(t){return n(this,void 0,void 0,(function(){return o(this,(function(e){return new i.CancelDisassembler(this.payloadSender,t,c.PayloadTypes.cancelStream).disassemble(),[2]}))}))},t}();r.SendOperations=f},{"../disassemblers/cancelDisassembler":3,"../disassemblers/httpContentStreamDisassembler":4,"../disassemblers/requestDisassembler":6,"../disassemblers/responseDisassembler":7,"./payloadTypes":19}],22:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.StreamManager=void 0;var n=t("../assemblers/payloadAssembler"),o=function(){function t(t){this.onCancelStream=t,this.activeAssemblers=[]}return t.prototype.getPayloadAssembler=function(t){if(this.activeAssemblers[t])return this.activeAssemblers[t];var e=new n.PayloadAssembler(this,{id:t});return this.activeAssemblers[t]=e,e},t.prototype.getPayloadStream=function(t){return this.getPayloadAssembler(t.id).getPayloadStream()},t.prototype.onReceive=function(t,e,r){this.activeAssemblers[t.id]&&this.activeAssemblers[t.id].onReceive(t,e,r)},t.prototype.closeStream=function(t){if(this.activeAssemblers[t]){var e=this.activeAssemblers[t];this.activeAssemblers.splice(this.activeAssemblers.indexOf(t),1);var r=e.getPayloadStream();(e.contentLength&&r.length<e.contentLength||!e.end)&&this.onCancelStream(e)}},t}();r.StreamManager=o},{"../assemblers/payloadAssembler":1}],23:[function(t,e,r){var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.ProtocolAdapter=void 0;var i=t("./payloads/payloadAssemblerManager"),s=t("./payloads/sendOperations"),a=t("./payloads/streamManager"),u=t("./utilities/protocol-base"),c=function(){function t(t,e,r,n){var o=this;this.requestHandler=t,this.requestManager=e,this.payloadSender=r,this.payloadReceiver=n,this.sendOperations=new s.SendOperations(this.payloadSender),this.streamManager=new a.StreamManager(this.onCancelStream),this.assemblerManager=new i.PayloadAssemblerManager(this.streamManager,(function(t,e){return o.onReceiveResponse(t,e)}),(function(t,e){return o.onReceiveRequest(t,e)})),this.payloadReceiver.subscribe((function(t){return o.assemblerManager.getPayloadStream(t)}),(function(t,e,r){return o.assemblerManager.onReceive(t,e,r)}))}return t.prototype.sendRequest=function(t){return n(this,void 0,void 0,(function(){var e,r;return o(this,(function(n){switch(n.label){case 0:return e=(0,u.generateGuid)(),r=this.requestManager.getResponse(e),[4,this.sendOperations.sendRequest(e,t)];case 1:return n.sent(),[2,r]}}))}))},t.prototype.onReceiveRequest=function(t,e){return n(this,void 0,void 0,(function(){var r;return o(this,(function(n){switch(n.label){case 0:return this.requestHandler?[4,this.requestHandler.processRequest(e)]:[3,3];case 1:return(r=n.sent())?[4,this.sendOperations.sendResponse(t,r)]:[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}}))}))},t.prototype.onReceiveResponse=function(t,e){return n(this,void 0,void 0,(function(){return o(this,(function(r){switch(r.label){case 0:return[4,this.requestManager.signalResponse(t,e)];case 1:return r.sent(),[2]}}))}))},t.prototype.onCancelStream=function(t){this.sendOperations.sendCancelStream(t.id).catch()},t}();r.ProtocolAdapter=c},{"./payloads/payloadAssemblerManager":17,"./payloads/sendOperations":21,"./payloads/streamManager":22,"./utilities/protocol-base":28}],24:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.RequestHandler=void 0;r.RequestHandler=function(){}},{}],25:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.StreamingRequest=void 0;var n=t("./httpContentStream"),o=t("./subscribableStream"),i=function(){function t(){this.streams=[]}return t.create=function(e,r,n){var o=new t;return o.verb=e,o.path=r,n&&o.setBody(n),o},t.prototype.addStream=function(t){if(!t)throw new Error("Argument Undefined Exception: content undefined.");this.streams.push(new n.HttpContentStream(t))},t.prototype.setBody=function(t){if("string"==typeof t){var e=new o.SubscribableStream;e.write(t,"utf8"),this.addStream(new n.HttpContent({type:"application/json; charset=utf-8",contentLength:e.length},e))}else"object"===(0,a.default)(t)&&this.addStream(t)},t}();r.StreamingRequest=i},{"./httpContentStream":8,"./subscribableStream":27}],26:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.StreamingResponse=void 0;var n=t("./httpContentStream"),o=t("./subscribableStream"),i=function(){function t(){this.streams=[]}return t.create=function(e,r){var n=new t;return n.statusCode=e,r&&n.addStream(r),n},t.prototype.addStream=function(t){this.streams.push(new n.HttpContentStream(t))},t.prototype.setBody=function(t){var e=new o.SubscribableStream;e.write(JSON.stringify(t),"utf8"),this.addStream(new n.HttpContent({type:"application/json; charset=utf-8",contentLength:e.length},e))},t}();r.StreamingResponse=i},{"./httpContentStream":8,"./subscribableStream":27}],27:[function(t,e,r){(function(e){(function(){var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.SubscribableStream=void 0;var i=function(t){function r(e){var r=t.call(this,e)||this;return r.length=0,r.bufferList=[],r}return o(r,t),r.prototype._write=function(t,r,n){var o=e.from(t);this.bufferList.push(o),this.length+=t.length,this._onData&&this._onData(o),n()},r.prototype._read=function(t){if(0===this.bufferList.length)this.push(null);else for(var e=0;e<t&&this.bufferList.length>0;){var r=this.bufferList[0];this.push(r),this.bufferList.splice(0,1),e+=r.length}},r.prototype.subscribe=function(t){this._onData=t},r}(t("stream").Duplex);r.SubscribableStream=i}).call(this)}).call(this,t("buffer").Buffer)},{buffer:35,stream:41}],28:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.generateGuid=void 0;var n=t("uuid");r.generateGuid=function(){return(0,n.v4)()}},{uuid:58}],29:[function(t,e,r){var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.BrowserWebSocket=void 0;var i=function(){function t(t){t&&(this.webSocket=t)}return t.prototype.connect=function(t){return n(this,void 0,void 0,(function(){var e,r;return o(this,(function(n){return this.webSocket||(this.webSocket=new WebSocket(t)),this.webSocket.onerror=function(t){r(t)},this.webSocket.onopen=function(t){e(t)},[2,new Promise((function(t,n){e=t,r=n}))]}))}))},Object.defineProperty(t.prototype,"isConnected",{get:function(){return 1===this.webSocket.readyState},enumerable:!1,configurable:!0}),t.prototype.write=function(t){this.webSocket.send(t)},t.prototype.close=function(){this.webSocket.close()},t.prototype.setOnMessageHandler=function(t){var e="buffer",r=[];this.webSocket.onmessage=function(n){var o=new FileReader,i={buffer:null};r.push(i),o.onload=function(n){var o=n.target;if(i[e]=o.result,r[0]===i)for(;0<r.length&&r[0][e];)t(r[0][e]),r.splice(0,1)},o.readAsArrayBuffer(n.data)}},t.prototype.setOnErrorHandler=function(t){this.webSocket.onerror=function(e){e&&t(e)}},t.prototype.setOnCloseHandler=function(t){this.webSocket.onclose=t},t}();r.BrowserWebSocket=i},{}],30:[function(t,e,r){var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.WebSocketClient=void 0;var i=t("./browserWebSocket"),s=t("../payloadTransport"),a=t("../protocolAdapter"),u=t("../payloads"),c=t("./webSocketTransport"),f=function(){function t(t){var e=t.url,r=t.requestHandler,n=t.disconnectionHandler,o=void 0===n?null:n;this._url=e,this._requestHandler=r,this._disconnectionHandler=o,this._requestManager=new u.RequestManager,this._sender=new s.PayloadSender,this._sender.disconnected=this.onConnectionDisconnected.bind(this),this._receiver=new s.PayloadReceiver,this._receiver.disconnected=this.onConnectionDisconnected.bind(this),this._protocolAdapter=new a.ProtocolAdapter(this._requestHandler,this._requestManager,this._sender,this._receiver)}return t.prototype.connect=function(){return n(this,void 0,void 0,(function(){var t,e;return o(this,(function(r){switch(r.label){case 0:return[4,(t=new i.BrowserWebSocket).connect(this._url)];case 1:return r.sent(),e=new c.WebSocketTransport(t),this._sender.connect(e),this._receiver.connect(e),[2]}}))}))},t.prototype.disconnect=function(){this._sender.disconnect(new s.TransportDisconnectedEvent("Disconnect was called.")),this._receiver.disconnect(new s.TransportDisconnectedEvent("Disconnect was called."))},t.prototype.send=function(t){return n(this,void 0,void 0,(function(){return o(this,(function(e){return[2,this._protocolAdapter.sendRequest(t)]}))}))},t.prototype.onConnectionDisconnected=function(t,e){if(this._requestManager.rejectAllResponses(new Error("Disconnect was called.")),null==this._disconnectionHandler)throw new Error("Unable to re-connect client to transport for url ".concat(this._url,". Sender: '").concat(JSON.stringify(t),"'. Args:' ").concat(JSON.stringify(e)));this._disconnectionHandler("Disconnected")},t}();r.WebSocketClient=f},{"../payloadTransport":10,"../payloads":16,"../protocolAdapter":23,"./browserWebSocket":29,"./webSocketTransport":32}],31:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.WebSocketTransport=r.WebSocketClient=r.BrowserWebSocket=void 0;var n=t("./browserWebSocket");Object.defineProperty(r,"BrowserWebSocket",{enumerable:!0,get:function(){return n.BrowserWebSocket}});var o=t("./browserWebSocketClient");Object.defineProperty(r,"WebSocketClient",{enumerable:!0,get:function(){return o.WebSocketClient}});var i=t("./webSocketTransport");Object.defineProperty(r,"WebSocketTransport",{enumerable:!0,get:function(){return i.WebSocketTransport}})},{"./browserWebSocket":29,"./browserWebSocketClient":30,"./webSocketTransport":32}],32:[function(t,e,r){(function(t){(function(){var e=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))},n=this&&this.__generator||function(t,e){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.WebSocketTransport=void 0;var o=function(){function r(t){var e=this;this.ws=t,this._queue=[],this._activeOffset=0,this._activeReceiveCount=0,this.ws.setOnMessageHandler((function(t){e.onReceive(t)})),this.ws.setOnErrorHandler((function(t){e.onError(t)})),this.ws.setOnCloseHandler((function(){e.onClose()}))}return r.prototype.send=function(t){var e;return(null===(e=this.ws)||void 0===e?void 0:e.isConnected)?(this.ws.write(t),t.length):0},Object.defineProperty(r.prototype,"isConnected",{get:function(){var t;return!!(null===(t=this.ws)||void 0===t?void 0:t.isConnected)},enumerable:!1,configurable:!0}),r.prototype.close=function(){var t;(null===(t=this.ws)||void 0===t?void 0:t.isConnected)&&this.ws.close()},r.prototype.receive=function(t){return e(this,void 0,void 0,(function(){var e,r=this;return n(this,(function(n){if(this._activeReceiveResolve)throw new Error("Cannot call receive more than once before it has returned.");return this._activeReceiveCount=t,e=new Promise((function(t,e){r._activeReceiveResolve=t,r._activeReceiveReject=e})),this.trySignalData(),[2,e]}))}))},r.prototype.onReceive=function(e){this._queue&&e&&e.byteLength>0&&(this._queue.push(t.from(e)),this.trySignalData())},r.prototype.onClose=function(){this._activeReceiveReject&&this._activeReceiveReject(new Error("Socket was closed.")),this._active=null,this._activeOffset=0,this._activeReceiveResolve=null,this._activeReceiveReject=null,this._activeReceiveCount=0,this.ws=null},r.prototype.onError=function(t){this._activeReceiveReject&&this._activeReceiveReject(t),this.onClose()},r.prototype.trySignalData=function(){if(this._activeReceiveResolve&&(!this._active&&this._queue.length>0&&(this._active=this._queue.shift(),this._activeOffset=0),this._active)){if(0===this._activeOffset&&this._active.length===this._activeReceiveCount){var e=this._active;this._active=null,this._activeReceiveResolve(e)}else{var r=Math.min(this._activeReceiveCount,this._active.length-this._activeOffset);e=t.alloc(r),this._active.copy(e,0,this._activeOffset,this._activeOffset+r),this._activeOffset+=r,this._activeOffset>=this._active.length&&(this._active=null,this._activeOffset=0),this._activeReceiveResolve(e)}this._activeReceiveCount=0,this._activeReceiveReject=null,this._activeReceiveResolve=null}},r}();r.WebSocketTransport=o}).call(this)}).call(this,t("buffer").Buffer)},{buffer:35}],33:[function(t,e,r){},{}],34:[function(t,e,r){r.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return 3*(r+n)/4-n},r.toByteArray=function(t){var e,r,n=u(t),s=n[0],a=n[1],c=new i(function(t,e,r){return 3*(e+r)/4-r}(0,s,a)),f=0,l=a>0?s-4:s;for(r=0;r<l;r+=4)e=o[t.charCodeAt(r)]<<18|o[t.charCodeAt(r+1)]<<12|o[t.charCodeAt(r+2)]<<6|o[t.charCodeAt(r+3)],c[f++]=e>>16&255,c[f++]=e>>8&255,c[f++]=255&e;return 2===a&&(e=o[t.charCodeAt(r)]<<2|o[t.charCodeAt(r+1)]>>4,c[f++]=255&e),1===a&&(e=o[t.charCodeAt(r)]<<10|o[t.charCodeAt(r+1)]<<4|o[t.charCodeAt(r+2)]>>2,c[f++]=e>>8&255,c[f++]=255&e),c},r.fromByteArray=function(t){for(var e,r=t.length,o=r%3,i=[],s=16383,a=0,u=r-o;a<u;a+=s)i.push(c(t,a,a+s>u?u:a+s));return 1===o?(e=t[r-1],i.push(n[e>>2]+n[e<<4&63]+"==")):2===o&&(e=(t[r-2]<<8)+t[r-1],i.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),i.join("")};for(var n=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=s[a],o[s.charCodeAt(a)]=a;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function c(t,e,r){for(var o,i,s=[],a=e;a<r;a+=3)o=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),s.push(n[(i=o)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return s.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},{}],35:[function(t,e,r){(function(e){(function(){var e=t("base64-js"),n=t("ieee754");r.Buffer=s,r.SlowBuffer=function(t){return+t!=t&&(t=0),s.alloc(+t)},r.INSPECT_MAX_BYTES=50;var o=2147483647;function i(t){if(t>o)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return e.__proto__=s.prototype,e}function s(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return f(t)}return u(t,e,r)}function u(t,e,r){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|p(t,e),n=i(r),o=n.write(t,e);return o!==r&&(n=n.slice(0,o)),n}(t,e);if(ArrayBuffer.isView(t))return l(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+(0,a.default)(t));if(q(t,ArrayBuffer)||t&&q(t.buffer,ArrayBuffer))return function(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return(n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r)).__proto__=s.prototype,n}(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return s.from(n,e,r);var o=function(t){if(s.isBuffer(t)){var e=0|h(t.length),r=i(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||F(t.length)?i(0):l(t):"Buffer"===t.type&&Array.isArray(t.data)?l(t.data):void 0}(t);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return s.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+(0,a.default)(t))}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function f(t){return c(t),i(t<0?0:0|h(t))}function l(t){for(var e=t.length<0?0:0|h(t.length),r=i(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}function h(t){if(t>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|t}function p(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||q(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+(0,a.default)(t));var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return U(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return D(t).length;default:if(o)return n?-1:U(t).length;e=(""+e).toLowerCase(),o=!0}}function d(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return P(this,e,r);case"utf8":case"utf-8":return E(this,e,r);case"ascii":return T(this,e,r);case"latin1":case"binary":return k(this,e,r);case"base64":return O(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function y(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function b(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),F(r=+r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=s.from(e,n)),s.isBuffer(e))return 0===e.length?-1:v(t,e,r,n,o);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):v(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function v(t,e,r,n,o){var i,s=1,a=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,r/=2}function c(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(o){var f=-1;for(i=r;i<a;i++)if(c(t,i)===c(e,-1===f?0:i-f)){if(-1===f&&(f=i),i-f+1===u)return f*s}else-1!==f&&(i-=i-f),f=-1}else for(r+u>a&&(r=a-u),i=r;i>=0;i--){for(var l=!0,h=0;h<u;h++)if(c(t,i+h)!==c(e,h)){l=!1;break}if(l)return i}return-1}function g(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=e.length;n>i/2&&(n=i/2);for(var s=0;s<n;++s){var a=parseInt(e.substr(2*s,2),16);if(F(a))return s;t[r+s]=a}return s}function m(t,e,r,n){return N(U(e,t.length-r),t,r,n)}function w(t,e,r,n){return N(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function _(t,e,r,n){return w(t,e,r,n)}function S(t,e,r,n){return N(D(e),t,r,n)}function x(t,e,r,n){return N(function(t,e){for(var r,n,o,i=[],s=0;s<t.length&&!((e-=2)<0);++s)n=(r=t.charCodeAt(s))>>8,o=r%256,i.push(o),i.push(n);return i}(e,t.length-r),t,r,n)}function O(t,r,n){return 0===r&&n===t.length?e.fromByteArray(t):e.fromByteArray(t.slice(r,n))}function E(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i,s,a,u,c=t[o],f=null,l=c>239?4:c>223?3:c>191?2:1;if(o+l<=r)switch(l){case 1:c<128&&(f=c);break;case 2:128==(192&(i=t[o+1]))&&(u=(31&c)<<6|63&i)>127&&(f=u);break;case 3:i=t[o+1],s=t[o+2],128==(192&i)&&128==(192&s)&&(u=(15&c)<<12|(63&i)<<6|63&s)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:i=t[o+1],s=t[o+2],a=t[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(f=u)}null===f?(f=65533,l=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),o+=l}return function(t){var e=t.length;if(e<=j)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=j));return r}(n)}r.kMaxLength=o,s.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),s.poolSize=8192,s.from=function(t,e,r){return u(t,e,r)},s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,s.alloc=function(t,e,r){return function(t,e,r){return c(t),t<=0?i(t):void 0!==e?"string"==typeof r?i(t).fill(e,r):i(t).fill(e):i(t)}(t,e,r)},s.allocUnsafe=function(t){return f(t)},s.allocUnsafeSlow=function(t){return f(t)},s.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==s.prototype},s.compare=function(t,e){if(q(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),q(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(t)||!s.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,o=0,i=Math.min(r,n);o<i;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0},s.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return s.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=s.allocUnsafe(e),o=0;for(r=0;r<t.length;++r){var i=t[r];if(q(i,Uint8Array)&&(i=s.from(i)),!s.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)y(this,e,e+1);return this},s.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},s.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},s.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?E(this,0,t):d.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(t){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===s.compare(this,t)},s.prototype.inspect=function(){var t="",e=r.INSPECT_MAX_BYTES;return t=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(t+=" ... "),"<Buffer "+t+">"},s.prototype.compare=function(t,e,r,n,o){if(q(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+(0,a.default)(t));if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(n>>>=0),u=(r>>>=0)-(e>>>=0),c=Math.min(i,u),f=this.slice(n,o),l=t.slice(e,r),h=0;h<c;++h)if(f[h]!==l[h]){i=f[h],u=l[h];break}return i<u?-1:u<i?1:0},s.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},s.prototype.indexOf=function(t,e,r){return b(this,t,e,r,!0)},s.prototype.lastIndexOf=function(t,e,r){return b(this,t,e,r,!1)},s.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return g(this,t,e,r);case"utf8":case"utf-8":return m(this,t,e,r);case"ascii":return w(this,t,e,r);case"latin1":case"binary":return _(this,t,e,r);case"base64":return S(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var j=4096;function T(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(127&t[o]);return n}function k(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function P(t,e,r){var n,o=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>o)&&(r=o);for(var i="",s=e;s<r;++s)i+=(n=t[s])<16?"0"+n.toString(16):n.toString(16);return i}function R(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function A(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function M(t,e,r,n,o,i){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function C(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function L(t,e,r,o,i){return e=+e,r>>>=0,i||C(t,0,r,4),n.write(t,e,r,o,23,4),r+4}function I(t,e,r,o,i){return e=+e,r>>>=0,i||C(t,0,r,8),n.write(t,e,r,o,52,8),r+8}s.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return n.__proto__=s.prototype,n},s.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||A(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},s.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||A(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},s.prototype.readUInt8=function(t,e){return t>>>=0,e||A(t,1,this.length),this[t]},s.prototype.readUInt16LE=function(t,e){return t>>>=0,e||A(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUInt16BE=function(t,e){return t>>>=0,e||A(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUInt32LE=function(t,e){return t>>>=0,e||A(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUInt32BE=function(t,e){return t>>>=0,e||A(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||A(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*e)),n},s.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||A(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},s.prototype.readInt8=function(t,e){return t>>>=0,e||A(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},s.prototype.readInt16LE=function(t,e){t>>>=0,e||A(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(t,e){t>>>=0,e||A(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(t,e){return t>>>=0,e||A(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return t>>>=0,e||A(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,e){return t>>>=0,e||A(t,4,this.length),n.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return t>>>=0,e||A(t,4,this.length),n.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return t>>>=0,e||A(t,8,this.length),n.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return t>>>=0,e||A(t,8,this.length),n.read(this,t,!1,52,8)},s.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||M(this,t,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},s.prototype.writeUIntBE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||M(this,t,e,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+r},s.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,1,255,0),this[e]=255&t,e+1},s.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},s.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var o=Math.pow(2,8*r-1);M(this,t,e,r,o-1,-o)}var i=0,s=1,a=0;for(this[e]=255&t;++i<r&&(s*=256);)t<0&&0===a&&0!==this[e+i-1]&&(a=1),this[e+i]=(t/s|0)-a&255;return e+r},s.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var o=Math.pow(2,8*r-1);M(this,t,e,r,o-1,-o)}var i=r-1,s=1,a=0;for(this[e+i]=255&t;--i>=0&&(s*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/s|0)-a&255;return e+r},s.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},s.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeFloatLE=function(t,e,r){return L(this,t,e,!0,r)},s.prototype.writeFloatBE=function(t,e,r){return L(this,t,e,!1,r)},s.prototype.writeDoubleLE=function(t,e,r){return I(this,t,e,!0,r)},s.prototype.writeDoubleBE=function(t,e,r){return I(this,t,e,!1,r)},s.prototype.copy=function(t,e,r,n){if(!s.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var o=n-r;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,n);else if(this===t&&r<e&&e<n)for(var i=o-1;i>=0;--i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return o},s.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){var o=t.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(t=o)}}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var i;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var a=s.isBuffer(t)?t:s.from(t,n),u=a.length;if(0===u)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=a[i%u]}return this};var B=/[^+/0-9A-Za-z-_]/g;function U(t,e){var r;e=e||1/0;for(var n=t.length,o=null,i=[],s=0;s<n;++s){if((r=t.charCodeAt(s))>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(s+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function D(t){return e.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(B,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function N(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function q(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function F(t){return t!=t}}).call(this)}).call(this,t("buffer").Buffer)},{"base64-js":34,buffer:35,ieee754:37}],36:[function(t,e,r){var n,o="object"===("undefined"==typeof Reflect?"undefined":(0,a.default)(Reflect))?Reflect:null,i=o&&"function"==typeof o.apply?o.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};n=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var s=Number.isNaN||function(t){return t!=t};function u(){u.init.call(this)}e.exports=u,e.exports.once=function(t,e){return new Promise((function(r,n){function o(){void 0!==i&&t.removeListener("error",i),r([].slice.call(arguments))}var i;"error"!==e&&(i=function(r){t.removeListener(e,o),n(r)},t.once("error",i)),t.once(e,o)}))},u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var c=10;function f(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+(0,a.default)(t))}function l(t){return void 0===t._maxListeners?u.defaultMaxListeners:t._maxListeners}function h(t,e,r,n){var o,i,s,a;if(f(r),void 0===(i=t._events)?(i=t._events=Object.create(null),t._eventsCount=0):(void 0!==i.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),i=t._events),s=i[e]),void 0===s)s=i[e]=r,++t._eventsCount;else if("function"==typeof s?s=i[e]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(o=l(t))>0&&s.length>o&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=s.length,a=u,console&&console.warn&&console.warn(a)}return t}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},o=p.bind(n);return o.listener=r,n.wrapFn=o,o}function y(t,e,r){var n=t._events;if(void 0===n)return[];var o=n[e];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(o):v(o,o.length)}function b(t){var e=this._events;if(void 0!==e){var r=e[t];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function v(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}Object.defineProperty(u,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(t){if("number"!=typeof t||t<0||s(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");c=t}}),u.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},u.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||s(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},u.prototype.getMaxListeners=function(){return l(this)},u.prototype.emit=function(t){for(var e=[],r=1;r<arguments.length;r++)e.push(arguments[r]);var n="error"===t,o=this._events;if(void 0!==o)n=n&&void 0===o.error;else if(!n)return!1;if(n){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=o[t];if(void 0===u)return!1;if("function"==typeof u)i(u,this,e);else{var c=u.length,f=v(u,c);for(r=0;r<c;++r)i(f[r],this,e)}return!0},u.prototype.addListener=function(t,e){return h(this,t,e,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(t,e){return h(this,t,e,!0)},u.prototype.once=function(t,e){return f(e),this.on(t,d(this,t,e)),this},u.prototype.prependOnceListener=function(t,e){return f(e),this.prependListener(t,d(this,t,e)),this},u.prototype.removeListener=function(t,e){var r,n,o,i,s;if(f(e),void 0===(n=this._events))return this;if(void 0===(r=n[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===e||r[i].listener===e){s=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(r,o),1===r.length&&(n[t]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",t,s||e)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(t){var e,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var o,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},u.prototype.listeners=function(t){return y(this,t,!0)},u.prototype.rawListeners=function(t){return y(this,t,!1)},u.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):b.call(t,e)},u.prototype.listenerCount=b,u.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},{}],37:[function(t,e,r){r.read=function(t,e,r,n,o){var i,s,a=8*o-n-1,u=(1<<a)-1,c=u>>1,f=-7,l=r?o-1:0,h=r?-1:1,p=t[e+l];for(l+=h,i=p&(1<<-f)-1,p>>=-f,f+=a;f>0;i=256*i+t[e+l],l+=h,f-=8);for(s=i&(1<<-f)-1,i>>=-f,f+=n;f>0;s=256*s+t[e+l],l+=h,f-=8);if(0===i)i=1-c;else{if(i===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),i-=c}return(p?-1:1)*s*Math.pow(2,i-n)},r.write=function(t,e,r,n,o,i){var s,a,u,c=8*i-o-1,f=(1<<c)-1,l=f>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,d=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=f):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+l>=1?h/u:h*Math.pow(2,1-l))*u>=2&&(s++,u/=2),s+l>=f?(a=0,s=f):s+l>=1?(a=(e*u-1)*Math.pow(2,o),s+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,o),s=0));o>=8;t[r+p]=255&a,p+=d,a/=256,o-=8);for(s=s<<o|a,c+=o;c>0;t[r+p]=255&s,p+=d,s/=256,c-=8);t[r+p-d]|=128*y}},{}],38:[function(t,e,r){"function"==typeof Object.create?e.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},{}],39:[function(t,e,r){var n,o,i=e.exports={};function s(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(t){if(n===setTimeout)return setTimeout(t,0);if((n===s||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:s}catch(t){n=s}try{o="function"==typeof clearTimeout?clearTimeout:a}catch(t){o=a}}();var c,f=[],l=!1,h=-1;function p(){l&&c&&(l=!1,c.length?f=c.concat(f):h=-1,f.length&&d())}function d(){if(!l){var t=u(p);l=!0;for(var e=f.length;e;){for(c=f,f=[];++h<e;)c&&c[h].run();h=-1,e=f.length}c=null,l=!1,function(t){if(o===clearTimeout)return clearTimeout(t);if((o===a||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(t);try{return o(t)}catch(e){try{return o.call(null,t)}catch(e){return o.call(this,t)}}}(t)}}function y(t,e){this.fun=t,this.array=e}function b(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];f.push(new y(t,e)),1!==f.length||l||u(d)},y.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=b,i.addListener=b,i.once=b,i.off=b,i.removeListener=b,i.removeAllListeners=b,i.emit=b,i.prependListener=b,i.prependOnceListener=b,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],40:[function(t,e,r){var n=t("buffer"),o=n.Buffer;function i(t,e){for(var r in t)e[r]=t[r]}function s(t,e,r){return o(t,e,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=n:(i(n,r),r.Buffer=s),s.prototype=Object.create(o.prototype),i(o,s),s.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return o(t,e,r)},s.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=o(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},s.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},{buffer:35}],41:[function(t,e,r){e.exports=o;var n=t("events").EventEmitter;function o(){n.call(this)}t("inherits")(o,n),o.Readable=t("readable-stream/lib/_stream_readable.js"),o.Writable=t("readable-stream/lib/_stream_writable.js"),o.Duplex=t("readable-stream/lib/_stream_duplex.js"),o.Transform=t("readable-stream/lib/_stream_transform.js"),o.PassThrough=t("readable-stream/lib/_stream_passthrough.js"),o.finished=t("readable-stream/lib/internal/streams/end-of-stream.js"),o.pipeline=t("readable-stream/lib/internal/streams/pipeline.js"),o.Stream=o,o.prototype.pipe=function(t,e){var r=this;function o(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",o),t.on("drain",i),t._isStdio||e&&!1===e.end||(r.on("end",a),r.on("close",u));var s=!1;function a(){s||(s=!0,t.end())}function u(){s||(s=!0,"function"==typeof t.destroy&&t.destroy())}function c(t){if(f(),0===n.listenerCount(this,"error"))throw t}function f(){r.removeListener("data",o),t.removeListener("drain",i),r.removeListener("end",a),r.removeListener("close",u),r.removeListener("error",c),t.removeListener("error",c),r.removeListener("end",f),r.removeListener("close",f),t.removeListener("close",f)}return r.on("error",c),t.on("error",c),r.on("end",f),r.on("close",f),t.on("close",f),t.emit("pipe",r),t}},{events:36,inherits:38,"readable-stream/lib/_stream_duplex.js":43,"readable-stream/lib/_stream_passthrough.js":44,"readable-stream/lib/_stream_readable.js":45,"readable-stream/lib/_stream_transform.js":46,"readable-stream/lib/_stream_writable.js":47,"readable-stream/lib/internal/streams/end-of-stream.js":51,"readable-stream/lib/internal/streams/pipeline.js":53}],42:[function(t,e,r){var n={};function o(t,e,r){r||(r=Error);var o=function(t){var r,n;function o(r,n,o){return t.call(this,function(t,r,n){return"string"==typeof e?e:e(t,r,n)}(r,n,o))||this}return n=t,(r=o).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,o}(r);o.prototype.name=r.name,o.prototype.code=t,n[t]=o}function i(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}o("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(t,e,r){var n,o,s,u,c;if("string"==typeof e&&(o="not ",e.substr(0,4)===o)?(n="must not be",e=e.replace(/^not /,"")):n="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-9,r)===e}(t," argument"))s="The ".concat(t," ").concat(n," ").concat(i(e,"type"));else{var f=("number"!=typeof c&&(c=0),c+1>(u=t).length||-1===u.indexOf(".",c)?"argument":"property");s='The "'.concat(t,'" ').concat(f," ").concat(n," ").concat(i(e,"type"))}return s+". Received type ".concat((0,a.default)(r))}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=n},{}],43:[function(t,e,r){(function(r){(function(){var n=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};e.exports=c;var o=t("./_stream_readable"),i=t("./_stream_writable");t("inherits")(c,o);for(var s=n(i.prototype),a=0;a<s.length;a++){var u=s[a];c.prototype[u]||(c.prototype[u]=i.prototype[u])}function c(t){if(!(this instanceof c))return new c(t);o.call(this,t),i.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||r.nextTick(l,this)}function l(t){t.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})}).call(this)}).call(this,t("_process"))},{"./_stream_readable":45,"./_stream_writable":47,_process:39,inherits:38}],44:[function(t,e,r){e.exports=o;var n=t("./_stream_transform");function o(t){if(!(this instanceof o))return new o(t);n.call(this,t)}t("inherits")(o,n),o.prototype._transform=function(t,e,r){r(null,t)}},{"./_stream_transform":46,inherits:38}],45:[function(t,e,n){(function(r,n){(function(){var o;e.exports=E,E.ReadableState=O,t("events").EventEmitter;var i,s=function(t,e){return t.listeners(e).length},a=t("./internal/streams/stream"),u=t("buffer").Buffer,c=n.Uint8Array||function(){},f=t("util");i=f&&f.debuglog?f.debuglog("stream"):function(){};var l,h,p,d=t("./internal/streams/buffer_list"),y=t("./internal/streams/destroy"),b=t("./internal/streams/state").getHighWaterMark,v=t("../errors").codes,g=v.ERR_INVALID_ARG_TYPE,m=v.ERR_STREAM_PUSH_AFTER_EOF,w=v.ERR_METHOD_NOT_IMPLEMENTED,_=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;t("inherits")(E,a);var S=y.errorOrDestroy,x=["error","close","destroy","pause","resume"];function O(e,r,n){o=o||t("./_stream_duplex"),e=e||{},"boolean"!=typeof n&&(n=r instanceof o),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=b(this,e,"readableHighWaterMark",n),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(l||(l=t("string_decoder/").StringDecoder),this.decoder=new l(e.encoding),this.encoding=e.encoding)}function E(e){if(o=o||t("./_stream_duplex"),!(this instanceof E))return new E(e);var r=this instanceof o;this._readableState=new O(e,this,r),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),a.call(this)}function j(t,e,r,n,o){i("readableAddChunk",e);var s,a=t._readableState;if(null===e)a.reading=!1,function(t,e){if(i("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?R(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,A(t)))}}(t,a);else if(o||(s=function(t,e){var r,n;return n=e,u.isBuffer(n)||n instanceof c||"string"==typeof e||void 0===e||t.objectMode||(r=new g("chunk",["string","Buffer","Uint8Array"],e)),r}(a,e)),s)S(t,s);else if(a.objectMode||e&&e.length>0)if("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===u.prototype||(e=function(t){return u.from(t)}(e)),n)a.endEmitted?S(t,new _):T(t,a,e,!0);else if(a.ended)S(t,new m);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||0!==e.length?T(t,a,e,!1):M(t,a)):T(t,a,e,!1)}else n||(a.reading=!1,M(t,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function T(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&R(t)),M(t,e)}Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),E.prototype.destroy=y.destroy,E.prototype._undestroy=y.undestroy,E.prototype._destroy=function(t,e){e(t)},E.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=u.from(t,e),e=""),r=!0),j(this,t,e,!1,r)},E.prototype.unshift=function(t){return j(this,t,null,!0,!1)},E.prototype.isPaused=function(){return!1===this._readableState.flowing},E.prototype.setEncoding=function(e){l||(l=t("string_decoder/").StringDecoder);var r=new l(e);this._readableState.decoder=r,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,o="";null!==n;)o+=r.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==o&&this._readableState.buffer.push(o),this._readableState.length=o.length,this};var k=1073741824;function P(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=k?t=k:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function R(t){var e=t._readableState;i("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(i("emitReadable",e.flowing),e.emittedReadable=!0,r.nextTick(A,t))}function A(t){var e=t._readableState;i("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,U(t)}function M(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(C,t,e))}function C(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var r=e.length;if(i("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function L(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function I(t){i("readable nexttick read 0"),t.read(0)}function B(t,e){i("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),U(t),e.flowing&&!e.reading&&t.read(0)}function U(t){var e=t._readableState;for(i("flow",e.flowing);e.flowing&&null!==t.read(););}function D(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function N(t){var e=t._readableState;i("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,r.nextTick(q,e,t))}function q(t,e){if(i("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function F(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}E.prototype.read=function(t){i("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return i("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?N(this):R(this),null;if(0===(t=P(t,e))&&e.ended)return 0===e.length&&N(this),null;var n,o=e.needReadable;return i("need readable",o),(0===e.length||e.length-t<e.highWaterMark)&&i("length less than watermark",o=!0),e.ended||e.reading?i("reading or ended",o=!1):o&&(i("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=P(r,e))),null===(n=t>0?D(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&N(this)),null!==n&&this.emit("data",n),n},E.prototype._read=function(t){S(this,new w("_read()"))},E.prototype.pipe=function(t,e){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,i("pipe count=%d opts=%j",o.pipesCount,e);var a=e&&!1===e.end||t===r.stdout||t===r.stderr?y:u;function u(){i("onend"),t.end()}o.endEmitted?r.nextTick(a):n.once("end",a),t.on("unpipe",(function e(r,s){i("onunpipe"),r===n&&s&&!1===s.hasUnpiped&&(s.hasUnpiped=!0,i("cleanup"),t.removeListener("close",p),t.removeListener("finish",d),t.removeListener("drain",c),t.removeListener("error",h),t.removeListener("unpipe",e),n.removeListener("end",u),n.removeListener("end",y),n.removeListener("data",l),f=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||c())}));var c=function(t){return function(){var e=t._readableState;i("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,"data")&&(e.flowing=!0,U(t))}}(n);t.on("drain",c);var f=!1;function l(e){i("ondata");var r=t.write(e);i("dest.write",r),!1===r&&((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==F(o.pipes,t))&&!f&&(i("false write response, pause",o.awaitDrain),o.awaitDrain++),n.pause())}function h(e){i("onerror",e),y(),t.removeListener("error",h),0===s(t,"error")&&S(t,e)}function p(){t.removeListener("finish",d),y()}function d(){i("onfinish"),t.removeListener("close",p),y()}function y(){i("unpipe"),n.unpipe(t)}return n.on("data",l),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",h),t.once("close",p),t.once("finish",d),t.emit("pipe",n),o.flowing||(i("pipe resume"),n.resume()),t},E.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,o=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i<o;i++)n[i].emit("unpipe",this,{hasUnpiped:!1});return this}var s=F(e.pipes,t);return-1===s||(e.pipes.splice(s,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},E.prototype.on=function(t,e){var n=a.prototype.on.call(this,t,e),o=this._readableState;return"data"===t?(o.readableListening=this.listenerCount("readable")>0,!1!==o.flowing&&this.resume()):"readable"===t&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,i("on readable",o.length,o.reading),o.length?R(this):o.reading||r.nextTick(I,this))),n},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(t,e){var n=a.prototype.removeListener.call(this,t,e);return"readable"===t&&r.nextTick(L,this),n},E.prototype.removeAllListeners=function(t){var e=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||r.nextTick(L,this),e},E.prototype.resume=function(){var t=this._readableState;return t.flowing||(i("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,r.nextTick(B,t,e))}(this,t)),t.paused=!1,this},E.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var o in t.on("end",(function(){if(i("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(o){i("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o||(r.objectMode||o&&o.length)&&(e.push(o)||(n=!0,t.pause()))})),t)void 0===this[o]&&"function"==typeof t[o]&&(this[o]=function(e){return function(){return t[e].apply(t,arguments)}}(o));for(var s=0;s<x.length;s++)t.on(x[s],this.emit.bind(this,x[s]));return this._read=function(e){i("wrapped _read",e),n&&(n=!1,t.resume())},this},"function"==typeof Symbol&&(E.prototype[Symbol.asyncIterator]=function(){return void 0===h&&(h=t("./internal/streams/async_iterator")),h(this)}),Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(E.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(E.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),E._fromList=D,Object.defineProperty(E.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(E.from=function(e,r){return void 0===p&&(p=t("./internal/streams/from")),p(E,e,r)})}).call(this)}).call(this,t("_process"),void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":42,"./_stream_duplex":43,"./internal/streams/async_iterator":48,"./internal/streams/buffer_list":49,"./internal/streams/destroy":50,"./internal/streams/from":52,"./internal/streams/state":54,"./internal/streams/stream":55,_process:39,buffer:35,events:36,inherits:38,"string_decoder/":56,util:33}],46:[function(t,e,r){e.exports=f;var n=t("../errors").codes,o=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,u=t("./_stream_duplex");function c(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new i);r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function f(t){if(!(this instanceof f))return new f(t);u.call(this,t),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",l)}function l(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush((function(e,r){h(t,e,r)}))}function h(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new a;if(t._transformState.transforming)throw new s;return t.push(null)}t("inherits")(f,u),f.prototype.push=function(t,e){return this._transformState.needTransform=!1,u.prototype.push.call(this,t,e)},f.prototype._transform=function(t,e,r){r(new o("_transform()"))},f.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var o=this._readableState;(n.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},f.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},f.prototype._destroy=function(t,e){u.prototype._destroy.call(this,t,(function(t){e(t)}))}},{"../errors":42,"./_stream_duplex":43,inherits:38}],47:[function(t,e,n){(function(r,n){(function(){function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e){var r=t.entry;for(t.entry=null;r;){var n=r.callback;e.pendingcb--,n(undefined),r=r.next}e.corkedRequestsFree.next=t}(e,t)}}var i;e.exports=E,E.WritableState=O;var s,a={deprecate:t("util-deprecate")},u=t("./internal/streams/stream"),c=t("buffer").Buffer,f=n.Uint8Array||function(){},l=t("./internal/streams/destroy"),h=t("./internal/streams/state").getHighWaterMark,p=t("../errors").codes,d=p.ERR_INVALID_ARG_TYPE,y=p.ERR_METHOD_NOT_IMPLEMENTED,b=p.ERR_MULTIPLE_CALLBACK,v=p.ERR_STREAM_CANNOT_PIPE,g=p.ERR_STREAM_DESTROYED,m=p.ERR_STREAM_NULL_VALUES,w=p.ERR_STREAM_WRITE_AFTER_END,_=p.ERR_UNKNOWN_ENCODING,S=l.errorOrDestroy;function x(){}function O(e,n,s){i=i||t("./_stream_duplex"),e=e||{},"boolean"!=typeof s&&(s=n instanceof i),this.objectMode=!!e.objectMode,s&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=h(this,e,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,o=n.sync,i=n.writecb;if("function"!=typeof i)throw new b;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,o,i){--e.pendingcb,n?(r.nextTick(i,o),r.nextTick(A,t,e),t._writableState.errorEmitted=!0,S(t,o)):(i(o),t._writableState.errorEmitted=!0,S(t,o),A(t,e))}(t,n,o,e,i);else{var s=P(n)||t.destroyed;s||n.corked||n.bufferProcessing||!n.bufferedRequest||k(t,n),o?r.nextTick(T,t,n,s,i):T(t,n,s,i)}}(n,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function E(e){var r=this instanceof(i=i||t("./_stream_duplex"));if(!r&&!s.call(E,this))return new E(e);this._writableState=new O(e,this,r),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function j(t,e,r,n,o,i,s){e.writelen=n,e.writecb=s,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new g("write")):r?t._writev(o,e.onwrite):t._write(o,i,e.onwrite),e.sync=!1}function T(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),A(t,e)}function k(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),s=e.corkedRequestsFree;s.entry=r;for(var a=0,u=!0;r;)i[a]=r,r.isBuf||(u=!1),r=r.next,a+=1;i.allBuffers=u,j(t,e,!0,e.length,i,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,f=r.encoding,l=r.callback;if(j(t,e,!1,e.objectMode?1:c.length,c,f,l),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function P(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function R(t,e){t._final((function(r){e.pendingcb--,r&&S(t,r),e.prefinished=!0,t.emit("prefinish"),A(t,e)}))}function A(t,e){var n=P(e);if(n&&(function(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,r.nextTick(R,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var o=t._readableState;(!o||o.autoDestroy&&o.endEmitted)&&t.destroy()}return n}t("inherits")(E,u),O.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(O.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(t){return!!s.call(this,t)||this===E&&t&&t._writableState instanceof O}})):s=function(t){return t instanceof this},E.prototype.pipe=function(){S(this,new v)},E.prototype.write=function(t,e,n){var o,i=this._writableState,s=!1,a=!i.objectMode&&(o=t,c.isBuffer(o)||o instanceof f);return a&&!c.isBuffer(t)&&(t=function(t){return c.from(t)}(t)),"function"==typeof e&&(n=e,e=null),a?e="buffer":e||(e=i.defaultEncoding),"function"!=typeof n&&(n=x),i.ending?function(t,e){var n=new w;S(t,n),r.nextTick(e,n)}(this,n):(a||function(t,e,n,o){var i;return null===n?i=new m:"string"==typeof n||e.objectMode||(i=new d("chunk",["string","Buffer"],n)),!i||(S(t,i),r.nextTick(o,i),!1)}(this,i,t,n))&&(i.pendingcb++,s=function(t,e,r,n,o,i){if(!r){var s=function(t,e,r){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=c.from(e,r)),e}(e,n,o);n!==s&&(r=!0,o="buffer",n=s)}var a=e.objectMode?1:n.length;e.length+=a;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var f=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:o,isBuf:r,callback:i,next:null},f?f.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else j(t,e,!1,a,n,o,i);return u}(this,i,a,t,e,n)),s},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||k(this,t))},E.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new _(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(t,e,r){r(new y("_write()"))},E.prototype._writev=null,E.prototype.end=function(t,e,n){var o=this._writableState;return"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),o.corked&&(o.corked=1,this.uncork()),o.ending||function(t,e,n){e.ending=!0,A(t,e),n&&(e.finished?r.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}(this,o,n),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),E.prototype.destroy=l.destroy,E.prototype._undestroy=l.undestroy,E.prototype._destroy=function(t,e){e(t)}}).call(this)}).call(this,t("_process"),void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":42,"./_stream_duplex":43,"./internal/streams/destroy":50,"./internal/streams/state":54,"./internal/streams/stream":55,_process:39,buffer:35,inherits:38,"util-deprecate":57}],48:[function(t,e,r){(function(r){(function(){var n;function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i=t("./end-of-stream"),s=Symbol("lastResolve"),a=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),f=Symbol("lastPromise"),l=Symbol("handlePromise"),h=Symbol("stream");function p(t,e){return{value:t,done:e}}function d(t){var e=t[s];if(null!==e){var r=t[h].read();null!==r&&(t[f]=null,t[s]=null,t[a]=null,e(p(r,!1)))}}function y(t){r.nextTick(d,t)}var b=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((o(n={get stream(){return this[h]},next:function(){var t=this,e=this[u];if(null!==e)return Promise.reject(e);if(this[c])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise((function(e,n){r.nextTick((function(){t[u]?n(t[u]):e(p(void 0,!0))}))}));var n,o=this[f];if(o)n=new Promise(function(t,e){return function(r,n){t.then((function(){e[c]?r(p(void 0,!0)):e[l](r,n)}),n)}}(o,this));else{var i=this[h].read();if(null!==i)return Promise.resolve(p(i,!1));n=new Promise(this[l])}return this[f]=n,n}},Symbol.asyncIterator,(function(){return this})),o(n,"return",(function(){var t=this;return new Promise((function(e,r){t[h].destroy(null,(function(t){t?r(t):e(p(void 0,!0))}))}))})),n),b);e.exports=function(t){var e,r=Object.create(v,(o(e={},h,{value:t,writable:!0}),o(e,s,{value:null,writable:!0}),o(e,a,{value:null,writable:!0}),o(e,u,{value:null,writable:!0}),o(e,c,{value:t._readableState.endEmitted,writable:!0}),o(e,l,{value:function(t,e){var n=r[h].read();n?(r[f]=null,r[s]=null,r[a]=null,t(p(n,!1))):(r[s]=t,r[a]=e)},writable:!0}),e));return r[f]=null,i(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[a];return null!==e&&(r[f]=null,r[s]=null,r[a]=null,e(t)),void(r[u]=t)}var n=r[s];null!==n&&(r[f]=null,r[s]=null,r[a]=null,n(p(void 0,!0))),r[c]=!0})),t.on("readable",y.bind(null,r)),r}}).call(this)}).call(this,t("_process"))},{"./end-of-stream":51,_process:39}],49:[function(t,e,r){function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var s=t("buffer").Buffer,a=t("util").inspect,u=a&&a.custom||"inspect";e.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}var e,r;return e=t,r=[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return s.alloc(0);for(var e,r,n,o=s.allocUnsafe(t>>>0),i=this.head,a=0;i;)e=i.data,r=o,n=a,s.prototype.copy.call(e,r,n),a+=i.data.length,i=i.next;return o}},{key:"consume",value:function(t,e){var r;return t<this.head.data.length?(r=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):r=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,r=1,n=e.data;for(t-=n.length;e=e.next;){var o=e.data,i=t>o.length?o.length:t;if(i===o.length?n+=o:n+=o.slice(0,t),0==(t-=i)){i===o.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=o.slice(i));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(t){var e=s.allocUnsafe(t),r=this.head,n=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var o=r.data,i=t>o.length?o.length:t;if(o.copy(e,e.length-t,0,i),0==(t-=i)){i===o.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(i));break}++n}return this.length-=n,e}},{key:u,value:function(t,e){return a(this,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){o(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},e,{depth:0,customInspect:!1}))}}],r&&i(e.prototype,r),t}()},{buffer:35,util:33}],50:[function(t,e,r){(function(t){(function(){function r(t,e){o(t,e),n(t)}function n(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function o(t,e){t.emit("error",e)}e.exports={destroy:function(e,i){var s=this,a=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return a||u?(i?i(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(o,this,e)):t.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!i&&e?s._writableState?s._writableState.errorEmitted?t.nextTick(n,s):(s._writableState.errorEmitted=!0,t.nextTick(r,s,e)):t.nextTick(r,s,e):i?(t.nextTick(n,s),i(e)):t.nextTick(n,s)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}}}).call(this)}).call(this,t("_process"))},{_process:39}],51:[function(t,e,r){var n=t("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function o(){}e.exports=function t(e,r,i){if("function"==typeof r)return t(e,null,r);r||(r={}),i=function(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];t.apply(this,n)}}}(i||o);var s=r.readable||!1!==r.readable&&e.readable,a=r.writable||!1!==r.writable&&e.writable,u=function(){e.writable||f()},c=e._writableState&&e._writableState.finished,f=function(){a=!1,c=!0,s||i.call(e)},l=e._readableState&&e._readableState.endEmitted,h=function(){s=!1,l=!0,a||i.call(e)},p=function(t){i.call(e,t)},d=function(){var t;return s&&!l?(e._readableState&&e._readableState.ended||(t=new n),i.call(e,t)):a&&!c?(e._writableState&&e._writableState.ended||(t=new n),i.call(e,t)):void 0},y=function(){e.req.on("finish",f)};return function(t){return t.setHeader&&"function"==typeof t.abort}(e)?(e.on("complete",f),e.on("abort",d),e.req?y():e.on("request",y)):a&&!e._writableState&&(e.on("end",u),e.on("close",u)),e.on("end",h),e.on("finish",f),!1!==r.error&&e.on("error",p),e.on("close",d),function(){e.removeListener("complete",f),e.removeListener("abort",d),e.removeListener("request",y),e.req&&e.req.removeListener("finish",f),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",f),e.removeListener("end",h),e.removeListener("error",p),e.removeListener("close",d)}}},{"../../../errors":42}],52:[function(t,e,r){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],53:[function(t,e,r){var n,o=t("../../../errors").codes,i=o.ERR_MISSING_ARGS,s=o.ERR_STREAM_DESTROYED;function a(t){if(t)throw t}function u(t){t()}function c(t,e){return t.pipe(e)}e.exports=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];var f,l=function(t){return t.length?"function"!=typeof t[t.length-1]?a:t.pop():a}(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new i("streams");var h=r.map((function(e,o){var i=o<r.length-1;return function(e,r,o,i){i=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(i);var a=!1;e.on("close",(function(){a=!0})),void 0===n&&(n=t("./end-of-stream")),n(e,{readable:r,writable:o},(function(t){if(t)return i(t);a=!0,i()}));var u=!1;return function(t){if(!a&&!u)return u=!0,function(t){return t.setHeader&&"function"==typeof t.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void i(t||new s("pipe"))}}(e,i,o>0,(function(t){f||(f=t),t&&h.forEach(u),i||(h.forEach(u),l(f))}))}));return r.reduce(c)}},{"../../../errors":42,"./end-of-stream":51}],54:[function(t,e,r){var n=t("../../../errors").codes.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(t,e,r,o){var i=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,o,r);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new n(o?r:"highWaterMark",i);return Math.floor(i)}return t.objectMode?16:16384}}},{"../../../errors":42}],55:[function(t,e,r){e.exports=t("events").EventEmitter},{events:36}],56:[function(t,e,r){var n=t("safe-buffer").Buffer,o=n.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===o||!o(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=u,this.end=c,e=4;break;case"utf8":this.fillLast=a,e=4;break;case"base64":this.text=f,this.end=l,e=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function s(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e=this.lastTotal-this.lastNeed,r=function(t,e){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function c(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function f(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function l(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function h(t){return t.toString(this.encoding)}function p(t){return t&&t.length?this.write(t):""}r.StringDecoder=i,i.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},i.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},i.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var o=s(e[n]);return o>=0?(o>0&&(t.lastNeed=o-1),o):--n<r||-2===o?0:(o=s(e[n]))>=0?(o>0&&(t.lastNeed=o-2),o):--n<r||-2===o?0:(o=s(e[n]))>=0?(o>0&&(2===o?o=0:t.lastNeed=o-3),o):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},i.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},{"safe-buffer":40}],57:[function(t,e,n){(function(t){(function(){function r(e){try{if(!t.localStorage)return!1}catch(t){return!1}var r=t.localStorage[e];return null!=r&&"true"===String(r).toLowerCase()}e.exports=function(t,e){if(r("noDeprecation"))return t;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(e);r("traceDeprecation")?console.trace(e):console.warn(e),n=!0}return t.apply(this,arguments)}}}).call(this)}).call(this,void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],58:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"v1",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(r,"v3",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(r,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(r,"v5",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(r,"NIL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(r,"version",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(r,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(r,"parse",{enumerable:!0,get:function(){return l.default}});var n=h(t("./v1.js")),o=h(t("./v3.js")),i=h(t("./v4.js")),s=h(t("./v5.js")),a=h(t("./nil.js")),u=h(t("./version.js")),c=h(t("./validate.js")),f=h(t("./stringify.js")),l=h(t("./parse.js"));function h(t){return t&&t.__esModule?t:{default:t}}},{"./nil.js":60,"./parse.js":61,"./stringify.js":65,"./v1.js":66,"./v3.js":67,"./v4.js":69,"./v5.js":70,"./validate.js":71,"./version.js":72}],59:[function(t,e,r){function n(t){return 14+(t+64>>>9<<4)+1}function o(t,e){var r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r}function i(t,e,r,n,i,s){return o((a=o(o(e,t),o(n,s)))<<(u=i)|a>>>32-u,r);var a,u}function s(t,e,r,n,o,s,a){return i(e&r|~e&n,t,e,o,s,a)}function a(t,e,r,n,o,s,a){return i(e&n|r&~n,t,e,o,s,a)}function u(t,e,r,n,o,s,a){return i(e^r^n,t,e,o,s,a)}function c(t,e,r,n,o,s,a){return i(r^(e|~n),t,e,o,s,a)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;r.default=function(t){if("string"==typeof t){var e=unescape(encodeURIComponent(t));t=new Uint8Array(e.length);for(var r=0;r<e.length;++r)t[r]=e.charCodeAt(r)}return function(t){for(var e=[],r=32*t.length,n="0123456789abcdef",o=0;o<r;o+=8){var i=t[o>>5]>>>o%32&255,s=parseInt(n.charAt(i>>>4&15)+n.charAt(15&i),16);e.push(s)}return e}(function(t,e){t[e>>5]|=128<<e%32,t[n(e)-1]=e;for(var r=1732584193,i=-271733879,f=-1732584194,l=271733878,h=0;h<t.length;h+=16){var p=r,d=i,y=f,b=l;r=s(r,i,f,l,t[h],7,-680876936),l=s(l,r,i,f,t[h+1],12,-389564586),f=s(f,l,r,i,t[h+2],17,606105819),i=s(i,f,l,r,t[h+3],22,-1044525330),r=s(r,i,f,l,t[h+4],7,-176418897),l=s(l,r,i,f,t[h+5],12,1200080426),f=s(f,l,r,i,t[h+6],17,-1473231341),i=s(i,f,l,r,t[h+7],22,-45705983),r=s(r,i,f,l,t[h+8],7,1770035416),l=s(l,r,i,f,t[h+9],12,-1958414417),f=s(f,l,r,i,t[h+10],17,-42063),i=s(i,f,l,r,t[h+11],22,-1990404162),r=s(r,i,f,l,t[h+12],7,1804603682),l=s(l,r,i,f,t[h+13],12,-40341101),f=s(f,l,r,i,t[h+14],17,-1502002290),r=a(r,i=s(i,f,l,r,t[h+15],22,1236535329),f,l,t[h+1],5,-165796510),l=a(l,r,i,f,t[h+6],9,-1069501632),f=a(f,l,r,i,t[h+11],14,643717713),i=a(i,f,l,r,t[h],20,-373897302),r=a(r,i,f,l,t[h+5],5,-701558691),l=a(l,r,i,f,t[h+10],9,38016083),f=a(f,l,r,i,t[h+15],14,-660478335),i=a(i,f,l,r,t[h+4],20,-405537848),r=a(r,i,f,l,t[h+9],5,568446438),l=a(l,r,i,f,t[h+14],9,-1019803690),f=a(f,l,r,i,t[h+3],14,-187363961),i=a(i,f,l,r,t[h+8],20,1163531501),r=a(r,i,f,l,t[h+13],5,-1444681467),l=a(l,r,i,f,t[h+2],9,-51403784),f=a(f,l,r,i,t[h+7],14,1735328473),r=u(r,i=a(i,f,l,r,t[h+12],20,-1926607734),f,l,t[h+5],4,-378558),l=u(l,r,i,f,t[h+8],11,-2022574463),f=u(f,l,r,i,t[h+11],16,1839030562),i=u(i,f,l,r,t[h+14],23,-35309556),r=u(r,i,f,l,t[h+1],4,-1530992060),l=u(l,r,i,f,t[h+4],11,1272893353),f=u(f,l,r,i,t[h+7],16,-155497632),i=u(i,f,l,r,t[h+10],23,-1094730640),r=u(r,i,f,l,t[h+13],4,681279174),l=u(l,r,i,f,t[h],11,-358537222),f=u(f,l,r,i,t[h+3],16,-722521979),i=u(i,f,l,r,t[h+6],23,76029189),r=u(r,i,f,l,t[h+9],4,-640364487),l=u(l,r,i,f,t[h+12],11,-421815835),f=u(f,l,r,i,t[h+15],16,530742520),r=c(r,i=u(i,f,l,r,t[h+2],23,-995338651),f,l,t[h],6,-198630844),l=c(l,r,i,f,t[h+7],10,1126891415),f=c(f,l,r,i,t[h+14],15,-1416354905),i=c(i,f,l,r,t[h+5],21,-57434055),r=c(r,i,f,l,t[h+12],6,1700485571),l=c(l,r,i,f,t[h+3],10,-1894986606),f=c(f,l,r,i,t[h+10],15,-1051523),i=c(i,f,l,r,t[h+1],21,-2054922799),r=c(r,i,f,l,t[h+8],6,1873313359),l=c(l,r,i,f,t[h+15],10,-30611744),f=c(f,l,r,i,t[h+6],15,-1560198380),i=c(i,f,l,r,t[h+13],21,1309151649),r=c(r,i,f,l,t[h+4],6,-145523070),l=c(l,r,i,f,t[h+11],10,-1120210379),f=c(f,l,r,i,t[h+2],15,718787259),i=c(i,f,l,r,t[h+9],21,-343485551),r=o(r,p),i=o(i,d),f=o(f,y),l=o(l,b)}return[r,i,f,l]}(function(t){if(0===t.length)return[];for(var e=8*t.length,r=new Uint32Array(n(e)),o=0;o<e;o+=8)r[o>>5]|=(255&t[o/8])<<o%32;return r}(t),8*t.length))}},{}],60:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default="00000000-0000-0000-0000-000000000000"},{}],61:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("./validate.js"))&&n.__esModule?n:{default:n};r.default=function(t){if(!(0,o.default)(t))throw TypeError("Invalid UUID");var e,r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=255&e,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=255&e,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=255&e,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=255&e,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=255&e,r}},{"./validate.js":71}],62:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},{}],63:[function(t,e,r){var n;Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(o)};var o=new Uint8Array(16)},{}],64:[function(t,e,r){function n(t,e,r,n){switch(t){case 0:return e&r^~e&n;case 1:case 3:return e^r^n;case 2:return e&r^e&n^r&n}}function o(t,e){return t<<e|t>>>32-e}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;r.default=function(t){var e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){var i=unescape(encodeURIComponent(t));t=[];for(var s=0;s<i.length;++s)t.push(i.charCodeAt(s))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);for(var a=t.length/4+2,u=Math.ceil(a/16),c=new Array(u),f=0;f<u;++f){for(var l=new Uint32Array(16),h=0;h<16;++h)l[h]=t[64*f+4*h]<<24|t[64*f+4*h+1]<<16|t[64*f+4*h+2]<<8|t[64*f+4*h+3];c[f]=l}c[u-1][14]=8*(t.length-1)/Math.pow(2,32),c[u-1][14]=Math.floor(c[u-1][14]),c[u-1][15]=8*(t.length-1)&4294967295;for(var p=0;p<u;++p){for(var d=new Uint32Array(80),y=0;y<16;++y)d[y]=c[p][y];for(var b=16;b<80;++b)d[b]=o(d[b-3]^d[b-8]^d[b-14]^d[b-16],1);for(var v=r[0],g=r[1],m=r[2],w=r[3],_=r[4],S=0;S<80;++S){var x=Math.floor(S/20),O=o(v,5)+n(x,g,m,w)+_+e[x]+d[S]>>>0;_=w,w=m,m=o(g,30)>>>0,g=v,v=O}r[0]=r[0]+v>>>0,r[1]=r[1]+g>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+w>>>0,r[4]=r[4]+_>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}},{}],65:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;for(var n,o=(n=t("./validate.js"))&&n.__esModule?n:{default:n},i=[],s=0;s<256;++s)i.push((s+256).toString(16).substr(1));r.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(i[t[e+0]]+i[t[e+1]]+i[t[e+2]]+i[t[e+3]]+"-"+i[t[e+4]]+i[t[e+5]]+"-"+i[t[e+6]]+i[t[e+7]]+"-"+i[t[e+8]]+i[t[e+9]]+"-"+i[t[e+10]]+i[t[e+11]]+i[t[e+12]]+i[t[e+13]]+i[t[e+14]]+i[t[e+15]]).toLowerCase();if(!(0,o.default)(r))throw TypeError("Stringified UUID is invalid");return r}},{"./validate.js":71}],66:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o,i=a(t("./rng.js")),s=a(t("./stringify.js"));function a(t){return t&&t.__esModule?t:{default:t}}var u=0,c=0;r.default=function(t,e,r){var a=e&&r||0,f=e||new Array(16),l=(t=t||{}).node||n,h=void 0!==t.clockseq?t.clockseq:o;if(null==l||null==h){var p=t.random||(t.rng||i.default)();null==l&&(l=n=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==h&&(h=o=16383&(p[6]<<8|p[7]))}var d=void 0!==t.msecs?t.msecs:Date.now(),y=void 0!==t.nsecs?t.nsecs:c+1,b=d-u+(y-c)/1e4;if(b<0&&void 0===t.clockseq&&(h=h+1&16383),(b<0||d>u)&&void 0===t.nsecs&&(y=0),y>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=d,c=y,o=h;var v=(1e4*(268435455&(d+=122192928e5))+y)%4294967296;f[a++]=v>>>24&255,f[a++]=v>>>16&255,f[a++]=v>>>8&255,f[a++]=255&v;var g=d/4294967296*1e4&268435455;f[a++]=g>>>8&255,f[a++]=255&g,f[a++]=g>>>24&15|16,f[a++]=g>>>16&255,f[a++]=h>>>8|128,f[a++]=255&h;for(var m=0;m<6;++m)f[a+m]=l[m];return e||(0,s.default)(f)}},{"./rng.js":63,"./stringify.js":65}],67:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=i(t("./v35.js")),o=i(t("./md5.js"));function i(t){return t&&t.__esModule?t:{default:t}}var s=(0,n.default)("v3",48,o.default);r.default=s},{"./md5.js":59,"./v35.js":68}],68:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(t,e,r){function i(t,i,s,a){if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r));return e}(t)),"string"==typeof i&&(i=(0,o.default)(i)),16!==i.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var u=new Uint8Array(16+t.length);if(u.set(i),u.set(t,i.length),(u=r(u))[6]=15&u[6]|e,u[8]=63&u[8]|128,s){a=a||0;for(var c=0;c<16;++c)s[a+c]=u[c];return s}return(0,n.default)(u)}try{i.name=t}catch(t){}return i.DNS=s,i.URL=a,i},r.URL=r.DNS=void 0;var n=i(t("./stringify.js")),o=i(t("./parse.js"));function i(t){return t&&t.__esModule?t:{default:t}}var s="6ba7b810-9dad-11d1-80b4-00c04fd430c8";r.DNS=s;var a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";r.URL=a},{"./parse.js":61,"./stringify.js":65}],69:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=i(t("./rng.js")),o=i(t("./stringify.js"));function i(t){return t&&t.__esModule?t:{default:t}}r.default=function(t,e,r){var i=(t=t||{}).random||(t.rng||n.default)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e){r=r||0;for(var s=0;s<16;++s)e[r+s]=i[s];return e}return(0,o.default)(i)}},{"./rng.js":63,"./stringify.js":65}],70:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=i(t("./v35.js")),o=i(t("./sha1.js"));function i(t){return t&&t.__esModule?t:{default:t}}var s=(0,n.default)("v5",80,o.default);r.default=s},{"./sha1.js":64,"./v35.js":68}],71:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("./regex.js"))&&n.__esModule?n:{default:n};r.default=function(t){return"string"==typeof t&&o.default.test(t)}},{"./regex.js":62}],72:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("./validate.js"))&&n.__esModule?n:{default:n};r.default=function(t){if(!(0,o.default)(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)}},{"./validate.js":71}]},{},[9])(9)},"object"===(0,a.default)(e)?t.exports=s():(o=[],void 0===(i="function"==typeof(n=s)?n.apply(e,o):n)||(t.exports=i))},1545:function(t,e,r){"use strict";var n=r(4994),o=n(r(7383)),i=n(r(4579)),s=n(r(2475)),a=n(r(9511)),u=n(r(8452)),c=n(r(3072)),f=n(r(3738));var l=r(7526),h=r(251),p="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=b,e.SlowBuffer=function(t){return+t!=t&&(t=0),b.alloc(+t)},e.INSPECT_MAX_BYTES=50;var d=2147483647;function y(t){if(t>d)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,b.prototype),e}function b(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return m(t)}return v(t,e,r)}function v(t,e,r){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!b.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|x(t,e),n=y(r),o=n.write(t,e);return o!==r&&(n=n.slice(0,o)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(nt(t,Uint8Array)){var e=new Uint8Array(t);return _(e.buffer,e.byteOffset,e.byteLength)}return w(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+(0,f.default)(t));if(nt(t,ArrayBuffer)||t&&nt(t.buffer,ArrayBuffer))return _(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(nt(t,SharedArrayBuffer)||t&&nt(t.buffer,SharedArrayBuffer)))return _(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return b.from(n,e,r);var o=function(t){if(b.isBuffer(t)){var e=0|S(t.length),r=y(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||ot(t.length)?y(0):w(t):"Buffer"===t.type&&Array.isArray(t.data)?w(t.data):void 0}(t);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return b.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+(0,f.default)(t))}function g(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function m(t){return g(t),y(t<0?0:0|S(t))}function w(t){for(var e=t.length<0?0:0|S(t.length),r=y(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}function _(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),Object.setPrototypeOf(n,b.prototype),n}function S(t){if(t>=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return 0|t}function x(t,e){if(b.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||nt(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+(0,f.default)(t));var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return tt(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return et(t).length;default:if(o)return n?-1:tt(t).length;e=(""+e).toLowerCase(),o=!0}}function O(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return D(this,e,r);case"utf8":case"utf-8":return L(this,e,r);case"ascii":return B(this,e,r);case"latin1":case"binary":return U(this,e,r);case"base64":return C(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function E(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function j(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),ot(r=+r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=b.from(e,n)),b.isBuffer(e))return 0===e.length?-1:T(t,e,r,n,o);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):T(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function T(t,e,r,n,o){var i,s=1,a=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,r/=2}function c(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(o){var f=-1;for(i=r;i<a;i++)if(c(t,i)===c(e,-1===f?0:i-f)){if(-1===f&&(f=i),i-f+1===u)return f*s}else-1!==f&&(i-=i-f),f=-1}else for(r+u>a&&(r=a-u),i=r;i>=0;i--){for(var l=!0,h=0;h<u;h++)if(c(t,i+h)!==c(e,h)){l=!1;break}if(l)return i}return-1}function k(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i,s=e.length;for(n>s/2&&(n=s/2),i=0;i<n;++i){var a=parseInt(e.substr(2*i,2),16);if(ot(a))return i;t[r+i]=a}return i}function P(t,e,r,n){return rt(tt(e,t.length-r),t,r,n)}function R(t,e,r,n){return rt(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function A(t,e,r,n){return rt(et(e),t,r,n)}function M(t,e,r,n){return rt(function(t,e){for(var r,n,o,i=[],s=0;s<t.length&&!((e-=2)<0);++s)n=(r=t.charCodeAt(s))>>8,o=r%256,i.push(o),i.push(n);return i}(e,t.length-r),t,r,n)}function C(t,e,r){return 0===e&&r===t.length?l.fromByteArray(t):l.fromByteArray(t.slice(e,r))}function L(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i=t[o],s=null,a=i>239?4:i>223?3:i>191?2:1;if(o+a<=r){var u=void 0,c=void 0,f=void 0,l=void 0;switch(a){case 1:i<128&&(s=i);break;case 2:128==(192&(u=t[o+1]))&&(l=(31&i)<<6|63&u)>127&&(s=l);break;case 3:u=t[o+1],c=t[o+2],128==(192&u)&&128==(192&c)&&(l=(15&i)<<12|(63&u)<<6|63&c)>2047&&(l<55296||l>57343)&&(s=l);break;case 4:u=t[o+1],c=t[o+2],f=t[o+3],128==(192&u)&&128==(192&c)&&128==(192&f)&&(l=(15&i)<<18|(63&u)<<12|(63&c)<<6|63&f)>65535&&l<1114112&&(s=l)}}null===s?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|1023&s),n.push(s),o+=a}return function(t){var e=t.length;if(e<=I)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=I));return r}(n)}e.kMaxLength=d,b.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),b.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(b.prototype,"parent",{enumerable:!0,get:function(){if(b.isBuffer(this))return this.buffer}}),Object.defineProperty(b.prototype,"offset",{enumerable:!0,get:function(){if(b.isBuffer(this))return this.byteOffset}}),b.poolSize=8192,b.from=function(t,e,r){return v(t,e,r)},Object.setPrototypeOf(b.prototype,Uint8Array.prototype),Object.setPrototypeOf(b,Uint8Array),b.alloc=function(t,e,r){return function(t,e,r){return g(t),t<=0?y(t):void 0!==e?"string"==typeof r?y(t).fill(e,r):y(t).fill(e):y(t)}(t,e,r)},b.allocUnsafe=function(t){return m(t)},b.allocUnsafeSlow=function(t){return m(t)},b.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==b.prototype},b.compare=function(t,e){if(nt(t,Uint8Array)&&(t=b.from(t,t.offset,t.byteLength)),nt(e,Uint8Array)&&(e=b.from(e,e.offset,e.byteLength)),!b.isBuffer(t)||!b.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,o=0,i=Math.min(r,n);o<i;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0},b.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},b.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return b.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=b.allocUnsafe(e),o=0;for(r=0;r<t.length;++r){var i=t[r];if(nt(i,Uint8Array))o+i.length>n.length?(b.isBuffer(i)||(i=b.from(i)),i.copy(n,o)):Uint8Array.prototype.set.call(n,i,o);else{if(!b.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,o)}o+=i.length}return n},b.byteLength=x,b.prototype._isBuffer=!0,b.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)E(this,e,e+1);return this},b.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)E(this,e,e+3),E(this,e+1,e+2);return this},b.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)E(this,e,e+7),E(this,e+1,e+6),E(this,e+2,e+5),E(this,e+3,e+4);return this},b.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?L(this,0,t):O.apply(this,arguments)},b.prototype.toLocaleString=b.prototype.toString,b.prototype.equals=function(t){if(!b.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===b.compare(this,t)},b.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},p&&(b.prototype[p]=b.prototype.inspect),b.prototype.compare=function(t,e,r,n,o){if(nt(t,Uint8Array)&&(t=b.from(t,t.offset,t.byteLength)),!b.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+(0,f.default)(t));if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(n>>>=0),s=(r>>>=0)-(e>>>=0),a=Math.min(i,s),u=this.slice(n,o),c=t.slice(e,r),l=0;l<a;++l)if(u[l]!==c[l]){i=u[l],s=c[l];break}return i<s?-1:s<i?1:0},b.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},b.prototype.indexOf=function(t,e,r){return j(this,t,e,r,!0)},b.prototype.lastIndexOf=function(t,e,r){return j(this,t,e,r,!1)},b.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return k(this,t,e,r);case"utf8":case"utf-8":return P(this,t,e,r);case"ascii":case"latin1":case"binary":return R(this,t,e,r);case"base64":return A(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},b.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function B(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(127&t[o]);return n}function U(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function D(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=it[t[i]];return o}function N(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length-1;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function q(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function F(t,e,r,n,o,i){if(!b.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function H(t,e,r,n,o){X(e,n,o,t,r,7);var i=Number(e&BigInt(4294967295));t[r++]=i,i>>=8,t[r++]=i,i>>=8,t[r++]=i,i>>=8,t[r++]=i;var s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s,r}function W(t,e,r,n,o){X(e,n,o,t,r,7);var i=Number(e&BigInt(4294967295));t[r+7]=i,i>>=8,t[r+6]=i,i>>=8,t[r+5]=i,i>>=8,t[r+4]=i;var s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=s,s>>=8,t[r+2]=s,s>>=8,t[r+1]=s,s>>=8,t[r]=s,r+8}function G(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function V(t,e,r,n,o){return e=+e,r>>>=0,o||G(t,0,r,4),h.write(t,e,r,n,23,4),r+4}function z(t,e,r,n,o){return e=+e,r>>>=0,o||G(t,0,r,8),h.write(t,e,r,n,52,8),r+8}b.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return Object.setPrototypeOf(n,b.prototype),n},b.prototype.readUintLE=b.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||q(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},b.prototype.readUintBE=b.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||q(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},b.prototype.readUint8=b.prototype.readUInt8=function(t,e){return t>>>=0,e||q(t,1,this.length),this[t]},b.prototype.readUint16LE=b.prototype.readUInt16LE=function(t,e){return t>>>=0,e||q(t,2,this.length),this[t]|this[t+1]<<8},b.prototype.readUint16BE=b.prototype.readUInt16BE=function(t,e){return t>>>=0,e||q(t,2,this.length),this[t]<<8|this[t+1]},b.prototype.readUint32LE=b.prototype.readUInt32LE=function(t,e){return t>>>=0,e||q(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},b.prototype.readUint32BE=b.prototype.readUInt32BE=function(t,e){return t>>>=0,e||q(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},b.prototype.readBigUInt64LE=st((function(t){K(t>>>=0,"offset");var e=this[t],r=this[t+7];void 0!==e&&void 0!==r||Q(t,this.length-8);var n=e+this[++t]*Math.pow(2,8)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,24),o=this[++t]+this[++t]*Math.pow(2,8)+this[++t]*Math.pow(2,16)+r*Math.pow(2,24);return BigInt(n)+(BigInt(o)<<BigInt(32))})),b.prototype.readBigUInt64BE=st((function(t){K(t>>>=0,"offset");var e=this[t],r=this[t+7];void 0!==e&&void 0!==r||Q(t,this.length-8);var n=e*Math.pow(2,24)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,8)+this[++t],o=this[++t]*Math.pow(2,24)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,8)+r;return(BigInt(n)<<BigInt(32))+BigInt(o)})),b.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||q(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*e)),n},b.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||q(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},b.prototype.readInt8=function(t,e){return t>>>=0,e||q(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},b.prototype.readInt16LE=function(t,e){t>>>=0,e||q(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},b.prototype.readInt16BE=function(t,e){t>>>=0,e||q(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},b.prototype.readInt32LE=function(t,e){return t>>>=0,e||q(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},b.prototype.readInt32BE=function(t,e){return t>>>=0,e||q(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},b.prototype.readBigInt64LE=st((function(t){K(t>>>=0,"offset");var e=this[t],r=this[t+7];void 0!==e&&void 0!==r||Q(t,this.length-8);var n=this[t+4]+this[t+5]*Math.pow(2,8)+this[t+6]*Math.pow(2,16)+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(e+this[++t]*Math.pow(2,8)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,24))})),b.prototype.readBigInt64BE=st((function(t){K(t>>>=0,"offset");var e=this[t],r=this[t+7];void 0!==e&&void 0!==r||Q(t,this.length-8);var n=(e<<24)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,8)+this[++t];return(BigInt(n)<<BigInt(32))+BigInt(this[++t]*Math.pow(2,24)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,8)+r)})),b.prototype.readFloatLE=function(t,e){return t>>>=0,e||q(t,4,this.length),h.read(this,t,!0,23,4)},b.prototype.readFloatBE=function(t,e){return t>>>=0,e||q(t,4,this.length),h.read(this,t,!1,23,4)},b.prototype.readDoubleLE=function(t,e){return t>>>=0,e||q(t,8,this.length),h.read(this,t,!0,52,8)},b.prototype.readDoubleBE=function(t,e){return t>>>=0,e||q(t,8,this.length),h.read(this,t,!1,52,8)},b.prototype.writeUintLE=b.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||F(this,t,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},b.prototype.writeUintBE=b.prototype.writeUIntBE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||F(this,t,e,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+r},b.prototype.writeUint8=b.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,1,255,0),this[e]=255&t,e+1},b.prototype.writeUint16LE=b.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},b.prototype.writeUint16BE=b.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},b.prototype.writeUint32LE=b.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},b.prototype.writeUint32BE=b.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},b.prototype.writeBigUInt64LE=st((function(t){return H(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),b.prototype.writeBigUInt64BE=st((function(t){return W(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),b.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var o=Math.pow(2,8*r-1);F(this,t,e,r,o-1,-o)}var i=0,s=1,a=0;for(this[e]=255&t;++i<r&&(s*=256);)t<0&&0===a&&0!==this[e+i-1]&&(a=1),this[e+i]=(t/s|0)-a&255;return e+r},b.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var o=Math.pow(2,8*r-1);F(this,t,e,r,o-1,-o)}var i=r-1,s=1,a=0;for(this[e+i]=255&t;--i>=0&&(s*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/s|0)-a&255;return e+r},b.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},b.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},b.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},b.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},b.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},b.prototype.writeBigInt64LE=st((function(t){return H(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),b.prototype.writeBigInt64BE=st((function(t){return W(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),b.prototype.writeFloatLE=function(t,e,r){return V(this,t,e,!0,r)},b.prototype.writeFloatBE=function(t,e,r){return V(this,t,e,!1,r)},b.prototype.writeDoubleLE=function(t,e,r){return z(this,t,e,!0,r)},b.prototype.writeDoubleBE=function(t,e,r){return z(this,t,e,!1,r)},b.prototype.copy=function(t,e,r,n){if(!b.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var o=n-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,n):Uint8Array.prototype.set.call(t,this.subarray(r,n),e),o},b.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!b.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){var o=t.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(t=o)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var i;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var s=b.isBuffer(t)?t:b.from(t,n),a=s.length;if(0===a)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=s[i%a]}return this};var $={};function Y(t,e,r){$[t]=function(r){(0,a.default)(h,r);var n,f,l=(n=h,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=(0,c.default)(n);if(f){var r=(0,c.default)(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return(0,u.default)(this,t)});function h(){var r;return(0,o.default)(this,h),r=l.call(this),Object.defineProperty((0,s.default)(r),"message",{value:e.apply((0,s.default)(r),arguments),writable:!0,configurable:!0}),r.name="".concat(r.name," [").concat(t,"]"),r.stack,delete r.name,r}return(0,i.default)(h,[{key:"code",get:function(){return t},set:function(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(t,"]: ").concat(this.message)}}]),h}(r)}function J(t){for(var e="",r=t.length,n="-"===t[0]?1:0;r>=n+4;r-=3)e="_".concat(t.slice(r-3,r)).concat(e);return"".concat(t.slice(0,r)).concat(e)}function X(t,e,r,n,o,i){if(t>r||t<e){var s,a="bigint"==typeof e?"n":"";throw s=i>3?0===e||e===BigInt(0)?">= 0".concat(a," and < 2").concat(a," ** ").concat(8*(i+1)).concat(a):">= -(2".concat(a," ** ").concat(8*(i+1)-1).concat(a,") and < 2 ** ")+"".concat(8*(i+1)-1).concat(a):">= ".concat(e).concat(a," and <= ").concat(r).concat(a),new $.ERR_OUT_OF_RANGE("value",s,t)}!function(t,e,r){K(e,"offset"),void 0!==t[e]&&void 0!==t[e+r]||Q(e,t.length-(r+1))}(n,o,i)}function K(t,e){if("number"!=typeof t)throw new $.ERR_INVALID_ARG_TYPE(e,"number",t)}function Q(t,e,r){if(Math.floor(t)!==t)throw K(t,r),new $.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new $.ERR_BUFFER_OUT_OF_BOUNDS;throw new $.ERR_OUT_OF_RANGE(r||"offset",">= ".concat(r?1:0," and <= ").concat(e),t)}Y("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?"".concat(t," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),Y("ERR_INVALID_ARG_TYPE",(function(t,e){return'The "'.concat(t,'" argument must be of type number. Received type ').concat((0,f.default)(e))}),TypeError),Y("ERR_OUT_OF_RANGE",(function(t,e,r){var n='The value of "'.concat(t,'" is out of range.'),o=r;return Number.isInteger(r)&&Math.abs(r)>Math.pow(2,32)?o=J(String(r)):"bigint"==typeof r&&(o=String(r),(r>Math.pow(BigInt(2),BigInt(32))||r<-Math.pow(BigInt(2),BigInt(32)))&&(o=J(o)),o+="n"),n+" It must be ".concat(e,". Received ").concat(o)}),RangeError);var Z=/[^+/0-9A-Za-z-_]/g;function tt(t,e){var r;e=e||1/0;for(var n=t.length,o=null,i=[],s=0;s<n;++s){if((r=t.charCodeAt(s))>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(s+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function et(t){return l.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(Z,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function rt(t,e,r,n){var o;for(o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function nt(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function ot(t){return t!=t}var it=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=16*r,o=0;o<16;++o)e[n+o]=t[r]+t[o];return e}();function st(t){return"undefined"==typeof BigInt?at:t}function at(){throw new Error("BigInt not supported")}},7526:function(t,e){"use strict";e.byteLength=function(t){var e=a(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,i=a(t),s=i[0],u=i[1],c=new o(function(t,e,r){return 3*(e+r)/4-r}(0,s,u)),f=0,l=u>0?s-4:s;for(r=0;r<l;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],c[f++]=e>>16&255,c[f++]=e>>8&255,c[f++]=255&e;return 2===u&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,c[f++]=255&e),1===u&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,c[f++]=e>>8&255,c[f++]=255&e),c},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,i=[],s=16383,a=0,c=n-o;a<c;a+=s)i.push(u(t,a,a+s>c?c:a+s));return 1===o?(e=t[n-1],i.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],i.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)r[s]=i[s],n[i.charCodeAt(s)]=s;function a(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function u(t,e,n){for(var o,i,s=[],a=e;a<n;a+=3)o=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),s.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return s.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},7357:function(t,e,r){r(624),r(5086),r(9193),r(5880),r(5773),r(3396),r(9979),r(4602);var n=r(9720);t.exports=n.Promise},6378:function(t,e,r){var n=r(7357);r(5149),r(1037),r(4175),r(1084),t.exports=n},9085:function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},7473:function(t,e,r){var n=r(5335);t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},298:function(t,e,r){var n=r(1602),o=r(3105),i=r(3610),s=n("unscopables"),a=Array.prototype;null==a[s]&&i.f(a,s,{configurable:!0,value:o(null)}),t.exports=function(t){a[s][t]=!0}},5190:function(t){t.exports=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t}},3938:function(t,e,r){var n=r(5335);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},8186:function(t,e,r){var n=r(5476),o=r(3747),i=r(6539),s=function(t){return function(e,r,s){var a,u=n(e),c=o(u.length),f=i(s,c);if(t&&r!=r){for(;c>f;)if((a=u[f++])!=a)return!0}else for(;c>f;f++)if((t||f in u)&&u[f]===r)return t||f||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},7499:function(t,e,r){var n=r(1602)("iterator"),o=!1;try{var i=0,s={next:function(){return{done:!!i++}},return:function(){o=!0}};s[n]=function(){return this},Array.from(s,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},t(i)}catch(t){}return r}},8569:function(t){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},3062:function(t,e,r){var n=r(3129),o=r(8569),i=r(1602)("toStringTag"),s="Arguments"==o(function(){return arguments}());t.exports=n?o:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?r:s?o(e):"Object"==(n=o(e))&&"function"==typeof e.callee?"Arguments":n}},4361:function(t,e,r){var n=r(1883),o=r(5816),i=r(7632),s=r(3610);t.exports=function(t,e){for(var r=o(e),a=s.f,u=i.f,c=0;c<r.length;c++){var f=r[c];n(t,f)||a(t,f,u(e,f))}}},7168:function(t,e,r){var n=r(2074);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},2147:function(t,e,r){"use strict";var n=r(9306).IteratorPrototype,o=r(3105),i=r(6843),s=r(5282),a=r(2228),u=function(){return this};t.exports=function(t,e,r){var c=e+" Iterator";return t.prototype=o(n,{next:i(1,r)}),s(t,c,!1,!0),a[c]=u,t}},7712:function(t,e,r){var n=r(5077),o=r(3610),i=r(6843);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},6843:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},5723:function(t,e,r){"use strict";var n=r(1605),o=r(2147),i=r(7970),s=r(9686),a=r(5282),u=r(7712),c=r(7485),f=r(1602),l=r(6926),h=r(2228),p=r(9306),d=p.IteratorPrototype,y=p.BUGGY_SAFARI_ITERATORS,b=f("iterator"),v="keys",g="values",m="entries",w=function(){return this};t.exports=function(t,e,r,f,p,_,S){o(r,e,f);var x,O,E,j=function(t){if(t===p&&A)return A;if(!y&&t in P)return P[t];switch(t){case v:case g:case m:return function(){return new r(this,t)}}return function(){return new r(this)}},T=e+" Iterator",k=!1,P=t.prototype,R=P[b]||P["@@iterator"]||p&&P[p],A=!y&&R||j(p),M="Array"==e&&P.entries||R;if(M&&(x=i(M.call(new t)),d!==Object.prototype&&x.next&&(l||i(x)===d||(s?s(x,d):"function"!=typeof x[b]&&u(x,b,w)),a(x,T,!0,!0),l&&(h[T]=w))),p==g&&R&&R.name!==g&&(k=!0,A=function(){return R.call(this)}),l&&!S||P[b]===A||u(P,b,A),h[e]=A,p)if(O={values:j(g),keys:_?A:j(v),entries:j(m)},S)for(E in O)(y||k||!(E in P))&&c(P,E,O[E]);else n({target:e,proto:!0,forced:y||k},O);return O}},5077:function(t,e,r){var n=r(2074);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},3262:function(t,e,r){var n=r(200),o=r(5335),i=n.document,s=o(i)&&o(i.createElement);t.exports=function(t){return s?i.createElement(t):{}}},5549:function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8523:function(t){t.exports="object"==typeof window},2050:function(t,e,r){var n=r(7061);t.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(n)},5223:function(t,e,r){var n=r(8569),o=r(200);t.exports="process"==n(o.process)},4318:function(t,e,r){var n=r(7061);t.exports=/web0s(?!.*chrome)/i.test(n)},7061:function(t,e,r){var n=r(6492);t.exports=n("navigator","userAgent")||""},6845:function(t,e,r){var n,o,i=r(200),s=r(7061),a=i.process,u=a&&a.versions,c=u&&u.v8;c?o=(n=c.split("."))[0]<4?1:n[0]+n[1]:s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(o=n[1]),t.exports=o&&+o},290:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1605:function(t,e,r){var n=r(200),o=r(7632).f,i=r(7712),s=r(7485),a=r(5975),u=r(4361),c=r(4977);t.exports=function(t,e){var r,f,l,h,p,d=t.target,y=t.global,b=t.stat;if(r=y?n:b?n[d]||a(d,{}):(n[d]||{}).prototype)for(f in e){if(h=e[f],l=t.noTargetGet?(p=o(r,f))&&p.value:r[f],!c(y?f:d+(b?".":"#")+f,t.forced)&&void 0!==l){if(typeof h==typeof l)continue;u(h,l)}(t.sham||l&&l.sham)&&i(h,"sham",!0),s(r,f,h,t)}}},2074:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},6885:function(t,e,r){var n=r(9085);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},6492:function(t,e,r){var n=r(9720),o=r(200),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(n[t])||i(o[t]):n[t]&&n[t][e]||o[t]&&o[t][e]}},1898:function(t,e,r){var n=r(3062),o=r(2228),i=r(1602)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[n(t)]}},200:function(t,e,r){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()},1883:function(t,e,r){var n=r(2612),o={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return o.call(n(t),e)}},7708:function(t){t.exports={}},9778:function(t,e,r){var n=r(200);t.exports=function(t,e){var r=n.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}},8890:function(t,e,r){var n=r(6492);t.exports=n("document","documentElement")},7694:function(t,e,r){var n=r(5077),o=r(2074),i=r(3262);t.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8664:function(t,e,r){var n=r(2074),o=r(8569),i="".split;t.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},9965:function(t,e,r){var n=r(9310),o=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(t){return o.call(t)}),t.exports=n.inspectSource},9206:function(t,e,r){var n,o,i,s=r(2886),a=r(200),u=r(5335),c=r(7712),f=r(1883),l=r(9310),h=r(5904),p=r(7708),d="Object already initialized",y=a.WeakMap;if(s||l.state){var b=l.state||(l.state=new y),v=b.get,g=b.has,m=b.set;n=function(t,e){if(g.call(b,t))throw new TypeError(d);return e.facade=t,m.call(b,t,e),e},o=function(t){return v.call(b,t)||{}},i=function(t){return g.call(b,t)}}else{var w=h("state");p[w]=!0,n=function(t,e){if(f(t,w))throw new TypeError(d);return e.facade=t,c(t,w,e),e},o=function(t){return f(t,w)?t[w]:{}},i=function(t){return f(t,w)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!u(e)||(r=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}}},9034:function(t,e,r){var n=r(1602),o=r(2228),i=n("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||s[i]===t)}},4977:function(t,e,r){var n=r(2074),o=/#|\.prototype\./,i=function(t,e){var r=a[s(t)];return r==c||r!=u&&("function"==typeof e?n(e):!!e)},s=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},a=i.data={},u=i.NATIVE="N",c=i.POLYFILL="P";t.exports=i},5335:function(t){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},6926:function(t){t.exports=!1},2929:function(t,e,r){var n=r(3938),o=r(9034),i=r(3747),s=r(6885),a=r(1898),u=r(9868),c=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,r){var f,l,h,p,d,y,b,v=r&&r.that,g=!(!r||!r.AS_ENTRIES),m=!(!r||!r.IS_ITERATOR),w=!(!r||!r.INTERRUPTED),_=s(e,v,1+g+w),S=function(t){return f&&u(f),new c(!0,t)},x=function(t){return g?(n(t),w?_(t[0],t[1],S):_(t[0],t[1])):w?_(t,S):_(t)};if(m)f=t;else{if("function"!=typeof(l=a(t)))throw TypeError("Target is not iterable");if(o(l)){for(h=0,p=i(t.length);p>h;h++)if((d=x(t[h]))&&d instanceof c)return d;return new c(!1)}f=l.call(t)}for(y=f.next;!(b=y.call(f)).done;){try{d=x(b.value)}catch(t){throw u(f),t}if("object"==typeof d&&d&&d instanceof c)return d}return new c(!1)}},9868:function(t,e,r){var n=r(3938);t.exports=function(t){var e=t.return;if(void 0!==e)return n(e.call(t)).value}},9306:function(t,e,r){"use strict";var n,o,i,s=r(2074),a=r(7970),u=r(7712),c=r(1883),f=r(1602),l=r(6926),h=f("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(n=o):p=!0);var d=null==n||s((function(){var t={};return n[h].call(t)!==t}));d&&(n={}),l&&!d||c(n,h)||u(n,h,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:p}},2228:function(t){t.exports={}},7462:function(t,e,r){var n,o,i,s,a,u,c,f,l=r(200),h=r(7632).f,p=r(4922).set,d=r(2050),y=r(4318),b=r(5223),v=l.MutationObserver||l.WebKitMutationObserver,g=l.document,m=l.process,w=l.Promise,_=h(l,"queueMicrotask"),S=_&&_.value;S||(n=function(){var t,e;for(b&&(t=m.domain)&&t.exit();o;){e=o.fn,o=o.next;try{e()}catch(t){throw o?s():i=void 0,t}}i=void 0,t&&t.enter()},d||b||y||!v||!g?w&&w.resolve?((c=w.resolve(void 0)).constructor=w,f=c.then,s=function(){f.call(c,n)}):s=b?function(){m.nextTick(n)}:function(){p.call(l,n)}:(a=!0,u=g.createTextNode(""),new v(n).observe(u,{characterData:!0}),s=function(){u.data=a=!a})),t.exports=S||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,s()),i=e}},3737:function(t,e,r){var n=r(200);t.exports=n.Promise},1849:function(t,e,r){var n=r(6845),o=r(2074);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},2886:function(t,e,r){var n=r(200),o=r(9965),i=n.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},9836:function(t,e,r){"use strict";var n=r(9085),o=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=n(e),this.reject=n(r)};t.exports.f=function(t){return new o(t)}},3105:function(t,e,r){var n,o=r(3938),i=r(5318),s=r(290),a=r(7708),u=r(8890),c=r(3262),f=r(5904),l="prototype",h="script",p=f("IE_PROTO"),d=function(){},y=function(t){return"<"+h+">"+t+"</"+h+">"},b=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e,r;b=n?function(t){t.write(y("")),t.close();var e=t.parentWindow.Object;return t=null,e}(n):(e=c("iframe"),r="java"+h+":",e.style.display="none",u.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(y("document.F=Object")),t.close(),t.F);for(var o=s.length;o--;)delete b[l][s[o]];return b()};a[p]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(d[l]=o(t),r=new d,d[l]=null,r[p]=t):r=b(),void 0===e?r:i(r,e)}},5318:function(t,e,r){var n=r(5077),o=r(3610),i=r(3938),s=r(1641);t.exports=n?Object.defineProperties:function(t,e){i(t);for(var r,n=s(e),a=n.length,u=0;a>u;)o.f(t,r=n[u++],e[r]);return t}},3610:function(t,e,r){var n=r(5077),o=r(7694),i=r(3938),s=r(874),a=Object.defineProperty;e.f=n?a:function(t,e,r){if(i(t),e=s(e,!0),i(r),o)try{return a(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},7632:function(t,e,r){var n=r(5077),o=r(9304),i=r(6843),s=r(5476),a=r(874),u=r(1883),c=r(7694),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=s(t),e=a(e,!0),c)try{return f(t,e)}catch(t){}if(u(t,e))return i(!o.f.call(t,e),t[e])}},4789:function(t,e,r){var n=r(6347),o=r(290).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},8916:function(t,e){e.f=Object.getOwnPropertySymbols},7970:function(t,e,r){var n=r(1883),o=r(2612),i=r(5904),s=r(7168),a=i("IE_PROTO"),u=Object.prototype;t.exports=s?Object.getPrototypeOf:function(t){return t=o(t),n(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},6347:function(t,e,r){var n=r(1883),o=r(5476),i=r(8186).indexOf,s=r(7708);t.exports=function(t,e){var r,a=o(t),u=0,c=[];for(r in a)!n(s,r)&&n(a,r)&&c.push(r);for(;e.length>u;)n(a,r=e[u++])&&(~i(c,r)||c.push(r));return c}},1641:function(t,e,r){var n=r(6347),o=r(290);t.exports=Object.keys||function(t){return n(t,o)}},9304:function(t,e){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);e.f=o?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},9686:function(t,e,r){var n=r(3938),o=r(7473);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,i){return n(r),o(i),e?t.call(r,i):r.__proto__=i,r}}():void 0)},4972:function(t,e,r){"use strict";var n=r(3129),o=r(3062);t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},5816:function(t,e,r){var n=r(6492),o=r(4789),i=r(8916),s=r(3938);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(s(t)),r=i.f;return r?e.concat(r(t)):e}},9720:function(t,e,r){var n=r(200);t.exports=n},242:function(t){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},9803:function(t,e,r){var n=r(3938),o=r(5335),i=r(9836);t.exports=function(t,e){if(n(t),o(e)&&e.constructor===t)return e;var r=i.f(t);return(0,r.resolve)(e),r.promise}},3075:function(t,e,r){var n=r(7485);t.exports=function(t,e,r){for(var o in e)n(t,o,e[o],r);return t}},7485:function(t,e,r){var n=r(200),o=r(7712),i=r(1883),s=r(5975),a=r(9965),u=r(9206),c=u.get,f=u.enforce,l=String(String).split("String");(t.exports=function(t,e,r,a){var u,c=!!a&&!!a.unsafe,h=!!a&&!!a.enumerable,p=!!a&&!!a.noTargetGet;"function"==typeof r&&("string"!=typeof e||i(r,"name")||o(r,"name",e),(u=f(r)).source||(u.source=l.join("string"==typeof e?e:""))),t!==n?(c?!p&&t[e]&&(h=!0):delete t[e],h?t[e]=r:o(t,e,r)):h?t[e]=r:s(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||a(this)}))},1229:function(t){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},5975:function(t,e,r){var n=r(200),o=r(7712);t.exports=function(t,e){try{o(n,t,e)}catch(r){n[t]=e}return e}},3524:function(t,e,r){"use strict";var n=r(6492),o=r(3610),i=r(1602),s=r(5077),a=i("species");t.exports=function(t){var e=n(t),r=o.f;s&&e&&!e[a]&&r(e,a,{configurable:!0,get:function(){return this}})}},5282:function(t,e,r){var n=r(3610).f,o=r(1883),i=r(1602)("toStringTag");t.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,i)&&n(t,i,{configurable:!0,value:e})}},5904:function(t,e,r){var n=r(2),o=r(665),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},9310:function(t,e,r){var n=r(200),o=r(5975),i="__core-js_shared__",s=n[i]||o(i,{});t.exports=s},2:function(t,e,r){var n=r(6926),o=r(9310);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.15.2",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},3444:function(t,e,r){var n=r(3938),o=r(9085),i=r(1602)("species");t.exports=function(t,e){var r,s=n(t).constructor;return void 0===s||null==(r=n(s)[i])?e:o(r)}},7804:function(t,e,r){var n=r(7317),o=r(1229),i=function(t){return function(e,r){var i,s,a=String(o(e)),u=n(r),c=a.length;return u<0||u>=c?t?"":void 0:(i=a.charCodeAt(u))<55296||i>56319||u+1===c||(s=a.charCodeAt(u+1))<56320||s>57343?t?a.charAt(u):i:t?a.slice(u,u+2):s-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},4922:function(t,e,r){var n,o,i,s=r(200),a=r(2074),u=r(6885),c=r(8890),f=r(3262),l=r(2050),h=r(5223),p=s.location,d=s.setImmediate,y=s.clearImmediate,b=s.process,v=s.MessageChannel,g=s.Dispatch,m=0,w={},_="onreadystatechange",S=function(t){if(w.hasOwnProperty(t)){var e=w[t];delete w[t],e()}},x=function(t){return function(){S(t)}},O=function(t){S(t.data)},E=function(t){s.postMessage(t+"",p.protocol+"//"+p.host)};d&&y||(d=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return w[++m]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},n(m),m},y=function(t){delete w[t]},h?n=function(t){b.nextTick(x(t))}:g&&g.now?n=function(t){g.now(x(t))}:v&&!l?(i=(o=new v).port2,o.port1.onmessage=O,n=u(i.postMessage,i,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts&&p&&"file:"!==p.protocol&&!a(E)?(n=E,s.addEventListener("message",O,!1)):n=_ in f("script")?function(t){c.appendChild(f("script"))[_]=function(){c.removeChild(this),S(t)}}:function(t){setTimeout(x(t),0)}),t.exports={set:d,clear:y}},6539:function(t,e,r){var n=r(7317),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},5476:function(t,e,r){var n=r(8664),o=r(1229);t.exports=function(t){return n(o(t))}},7317:function(t){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},3747:function(t,e,r){var n=r(7317),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},2612:function(t,e,r){var n=r(1229);t.exports=function(t){return Object(n(t))}},874:function(t,e,r){var n=r(5335);t.exports=function(t,e){if(!n(t))return t;var r,o;if(e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if(!e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},3129:function(t,e,r){var n={};n[r(1602)("toStringTag")]="z",t.exports="[object z]"===String(n)},665:function(t){var e=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+r).toString(36)}},5225:function(t,e,r){var n=r(1849);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1602:function(t,e,r){var n=r(200),o=r(2),i=r(1883),s=r(665),a=r(1849),u=r(5225),c=o("wks"),f=n.Symbol,l=u?f:f&&f.withoutSetter||s;t.exports=function(t){return i(c,t)&&(a||"string"==typeof c[t])||(a&&i(f,t)?c[t]=f[t]:c[t]=l("Symbol."+t)),c[t]}},624:function(t,e,r){"use strict";var n=r(1605),o=r(7970),i=r(9686),s=r(3105),a=r(7712),u=r(6843),c=r(2929),f=function(t,e){var r=this;if(!(r instanceof f))return new f(t,e);i&&(r=i(new Error(void 0),o(r))),void 0!==e&&a(r,"message",String(e));var n=[];return c(t,n.push,{that:n}),a(r,"errors",n),r};f.prototype=s(Error.prototype,{constructor:u(5,f),message:u(5,""),name:u(5,"AggregateError")}),n({global:!0},{AggregateError:f})},8665:function(t,e,r){"use strict";var n=r(5476),o=r(298),i=r(2228),s=r(9206),a=r(5723),u="Array Iterator",c=s.set,f=s.getterFor(u);t.exports=a(Array,"Array",(function(t,e){c(this,{type:u,target:n(t),index:0,kind:e})}),(function(){var t=f(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},5086:function(t,e,r){var n=r(3129),o=r(7485),i=r(4972);n||o(Object.prototype,"toString",i,{unsafe:!0})},5880:function(t,e,r){"use strict";var n=r(1605),o=r(9085),i=r(9836),s=r(242),a=r(2929);n({target:"Promise",stat:!0},{allSettled:function(t){var e=this,r=i.f(e),n=r.resolve,u=r.reject,c=s((function(){var r=o(e.resolve),i=[],s=0,u=1;a(t,(function(t){var o=s++,a=!1;i.push(void 0),u++,r.call(e,t).then((function(t){a||(a=!0,i[o]={status:"fulfilled",value:t},--u||n(i))}),(function(t){a||(a=!0,i[o]={status:"rejected",reason:t},--u||n(i))}))})),--u||n(i)}));return c.error&&u(c.value),r.promise}})},5773:function(t,e,r){"use strict";var n=r(1605),o=r(9085),i=r(6492),s=r(9836),a=r(242),u=r(2929),c="No one promise resolved";n({target:"Promise",stat:!0},{any:function(t){var e=this,r=s.f(e),n=r.resolve,f=r.reject,l=a((function(){var r=o(e.resolve),s=[],a=0,l=1,h=!1;u(t,(function(t){var o=a++,u=!1;s.push(void 0),l++,r.call(e,t).then((function(t){u||h||(h=!0,n(t))}),(function(t){u||h||(u=!0,s[o]=t,--l||f(new(i("AggregateError"))(s,c)))}))})),--l||f(new(i("AggregateError"))(s,c))}));return l.error&&f(l.value),r.promise}})},3396:function(t,e,r){"use strict";var n=r(1605),o=r(6926),i=r(3737),s=r(2074),a=r(6492),u=r(3444),c=r(9803),f=r(7485);if(n({target:"Promise",proto:!0,real:!0,forced:!!i&&s((function(){i.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=u(this,a("Promise")),r="function"==typeof t;return this.then(r?function(r){return c(e,t()).then((function(){return r}))}:t,r?function(r){return c(e,t()).then((function(){throw r}))}:t)}}),!o&&"function"==typeof i){var l=a("Promise").prototype.finally;i.prototype.finally!==l&&f(i.prototype,"finally",l,{unsafe:!0})}},9193:function(t,e,r){"use strict";var n,o,i,s,a=r(1605),u=r(6926),c=r(200),f=r(6492),l=r(3737),h=r(7485),p=r(3075),d=r(9686),y=r(5282),b=r(3524),v=r(5335),g=r(9085),m=r(5190),w=r(9965),_=r(2929),S=r(7499),x=r(3444),O=r(4922).set,E=r(7462),j=r(9803),T=r(9778),k=r(9836),P=r(242),R=r(9206),A=r(4977),M=r(1602),C=r(8523),L=r(5223),I=r(6845),B=M("species"),U="Promise",D=R.get,N=R.set,q=R.getterFor(U),F=l&&l.prototype,H=l,W=F,G=c.TypeError,V=c.document,z=c.process,$=k.f,Y=$,J=!!(V&&V.createEvent&&c.dispatchEvent),X="function"==typeof PromiseRejectionEvent,K="unhandledrejection",Q=!1,Z=A(U,(function(){var t=w(H),e=t!==String(H);if(!e&&66===I)return!0;if(u&&!W.finally)return!0;if(I>=51&&/native code/.test(t))return!1;var r=new H((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};return(r.constructor={})[B]=n,!(Q=r.then((function(){}))instanceof n)||!e&&C&&!X})),tt=Z||!S((function(t){H.all(t).catch((function(){}))})),et=function(t){var e;return!(!v(t)||"function"!=typeof(e=t.then))&&e},rt=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;E((function(){for(var n=t.value,o=1==t.state,i=0;r.length>i;){var s,a,u,c=r[i++],f=o?c.ok:c.fail,l=c.resolve,h=c.reject,p=c.domain;try{f?(o||(2===t.rejection&&st(t),t.rejection=1),!0===f?s=n:(p&&p.enter(),s=f(n),p&&(p.exit(),u=!0)),s===c.promise?h(G("Promise-chain cycle")):(a=et(s))?a.call(s,l,h):l(s)):h(n)}catch(t){p&&!u&&p.exit(),h(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&ot(t)}))}},nt=function(t,e,r){var n,o;J?((n=V.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),c.dispatchEvent(n)):n={promise:e,reason:r},!X&&(o=c["on"+t])?o(n):t===K&&T("Unhandled promise rejection",r)},ot=function(t){O.call(c,(function(){var e,r=t.facade,n=t.value;if(it(t)&&(e=P((function(){L?z.emit("unhandledRejection",n,r):nt(K,r,n)})),t.rejection=L||it(t)?2:1,e.error))throw e.value}))},it=function(t){return 1!==t.rejection&&!t.parent},st=function(t){O.call(c,(function(){var e=t.facade;L?z.emit("rejectionHandled",e):nt("rejectionhandled",e,t.value)}))},at=function(t,e,r){return function(n){t(e,n,r)}},ut=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,rt(t,!0))},ct=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw G("Promise can't be resolved itself");var n=et(e);n?E((function(){var r={done:!1};try{n.call(e,at(ct,r,t),at(ut,r,t))}catch(e){ut(r,e,t)}})):(t.value=e,t.state=1,rt(t,!1))}catch(e){ut({done:!1},e,t)}}};if(Z&&(W=(H=function(t){m(this,H,U),g(t),n.call(this);var e=D(this);try{t(at(ct,e),at(ut,e))}catch(t){ut(e,t)}}).prototype,(n=function(t){N(this,{type:U,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p(W,{then:function(t,e){var r=q(this),n=$(x(this,H));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=L?z.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&rt(r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new n,e=D(t);this.promise=t,this.resolve=at(ct,e),this.reject=at(ut,e)},k.f=$=function(t){return t===H||t===i?new o(t):Y(t)},!u&&"function"==typeof l&&F!==Object.prototype)){s=F.then,Q||(h(F,"then",(function(t,e){var r=this;return new H((function(t,e){s.call(r,t,e)})).then(t,e)}),{unsafe:!0}),h(F,"catch",W.catch,{unsafe:!0}));try{delete F.constructor}catch(t){}d&&d(F,W)}a({global:!0,wrap:!0,forced:Z},{Promise:H}),y(H,U,!1,!0),b(U),i=f(U),a({target:U,stat:!0,forced:Z},{reject:function(t){var e=$(this);return e.reject.call(void 0,t),e.promise}}),a({target:U,stat:!0,forced:u||Z},{resolve:function(t){return j(u&&this===i?H:this,t)}}),a({target:U,stat:!0,forced:tt},{all:function(t){var e=this,r=$(e),n=r.resolve,o=r.reject,i=P((function(){var r=g(e.resolve),i=[],s=0,a=1;_(t,(function(t){var u=s++,c=!1;i.push(void 0),a++,r.call(e,t).then((function(t){c||(c=!0,i[u]=t,--a||n(i))}),o)})),--a||n(i)}));return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=$(e),n=r.reject,o=P((function(){var o=g(e.resolve);_(t,(function(t){o.call(e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}})},9979:function(t,e,r){"use strict";var n=r(7804).charAt,o=r(9206),i=r(5723),s="String Iterator",a=o.set,u=o.getterFor(s);i(String,"String",(function(t){a(this,{type:s,string:String(t),index:0})}),(function(){var t,e=u(this),r=e.string,o=e.index;return o>=r.length?{value:void 0,done:!0}:(t=n(r,o),e.index+=t.length,{value:t,done:!1})}))},5149:function(t,e,r){r(624)},1037:function(t,e,r){r(5880)},1084:function(t,e,r){r(5773)},4175:function(t,e,r){"use strict";var n=r(1605),o=r(9836),i=r(242);n({target:"Promise",stat:!0},{try:function(t){var e=o.f(this),r=i(t);return(r.error?e.reject:e.resolve)(r.value),e.promise}})},4602:function(t,e,r){var n=r(200),o=r(5549),i=r(8665),s=r(7712),a=r(1602),u=a("iterator"),c=a("toStringTag"),f=i.values;for(var l in o){var h=n[l],p=h&&h.prototype;if(p){if(p[u]!==f)try{s(p,u,f)}catch(t){p[u]=f}if(p[c]||s(p,c,l),o[l])for(var d in i)if(p[d]!==i[d])try{s(p,d,i[d])}catch(t){p[d]=i[d]}}}},4945:function(t,e){var r="undefined"!=typeof self?self:this,n=function(){function t(){this.fetch=!1,this.DOMException=r.DOMException}return t.prototype=r,new t}();!function(t){!function(e){var r="URLSearchParams"in t,n="Symbol"in t&&"iterator"in Symbol,o="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),i="FormData"in t,s="ArrayBuffer"in t;if(s)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(t){return t&&a.indexOf(Object.prototype.toString.call(t))>-1};function c(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function f(t){return"string"!=typeof t&&(t=String(t)),t}function l(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n&&(e[Symbol.iterator]=function(){return e}),e}function h(t){this.map={},t instanceof h?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function p(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function d(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function y(t){var e=new FileReader,r=d(e);return e.readAsArrayBuffer(t),r}function b(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:r&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():s&&o&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=b(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(t)||u(t))?this._bodyArrayBuffer=b(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var t=p(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(y)}),this.text=function(){var t,e,r,n=p(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,r=d(e=new FileReader),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(t,e){t=c(t),e=f(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},h.prototype.delete=function(t){delete this.map[c(t)]},h.prototype.get=function(t){return t=c(t),this.has(t)?this.map[t]:null},h.prototype.has=function(t){return this.map.hasOwnProperty(c(t))},h.prototype.set=function(t,e){this.map[c(t)]=f(e)},h.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},h.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),l(t)},h.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),l(t)},h.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),l(t)},n&&(h.prototype[Symbol.iterator]=h.prototype.entries);var g=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function m(t,e){var r,n,o=(e=e||{}).body;if(t instanceof m){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new h(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new h(e.headers)),this.method=(n=(r=e.method||this.method||"GET").toUpperCase(),g.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function w(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}})),e}function _(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new h(e.headers),this.url=e.url||"",this._initBody(t)}m.prototype.clone=function(){return new m(this,{body:this._bodyInit})},v.call(m.prototype),v.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},_.error=function(){var t=new _(null,{status:0,statusText:""});return t.type="error",t};var S=[301,302,303,307,308];_.redirect=function(t,e){if(-1===S.indexOf(e))throw new RangeError("Invalid status code");return new _(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function x(t,r){return new Promise((function(n,i){var s=new m(t,r);if(s.signal&&s.signal.aborted)return i(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function u(){a.abort()}a.onload=function(){var t,e,r={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new h,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();e.append(n,o)}})),e)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;n(new _(o,r))},a.onerror=function(){i(new TypeError("Network request failed"))},a.ontimeout=function(){i(new TypeError("Network request failed"))},a.onabort=function(){i(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&o&&(a.responseType="blob"),s.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),s.signal&&(s.signal.addEventListener("abort",u),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",u)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}x.polyfill=!0,t.fetch||(t.fetch=x,t.Headers=h,t.Request=m,t.Response=_),e.Headers=h,e.Request=m,e.Response=_,e.fetch=x,Object.defineProperty(e,"__esModule",{value:!0})}({})}(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var o=n;(e=o.fetch).default=o.fetch,e.fetch=o.fetch,e.Headers=o.Headers,e.Request=o.Request,e.Response=o.Response,t.exports=e},251:function(t,e){e.read=function(t,e,r,n,o){var i,s,a=8*o-n-1,u=(1<<a)-1,c=u>>1,f=-7,l=r?o-1:0,h=r?-1:1,p=t[e+l];for(l+=h,i=p&(1<<-f)-1,p>>=-f,f+=a;f>0;i=256*i+t[e+l],l+=h,f-=8);for(s=i&(1<<-f)-1,i>>=-f,f+=n;f>0;s=256*s+t[e+l],l+=h,f-=8);if(0===i)i=1-c;else{if(i===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),i-=c}return(p?-1:1)*s*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var s,a,u,c=8*i-o-1,f=(1<<c)-1,l=f>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,d=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=f):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+l>=1?h/u:h*Math.pow(2,1-l))*u>=2&&(s++,u/=2),s+l>=f?(a=0,s=f):s+l>=1?(a=(e*u-1)*Math.pow(2,o),s+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,o),s=0));o>=8;t[r+p]=255&a,p+=d,a/=256,o-=8);for(s=s<<o|a,c+=o;c>0;t[r+p]=255&s,p+=d,s/=256,c-=8);t[r+p-d]|=128*y}},6765:function(t,e,r){"use strict";function n(t){this.message=t}r.r(e),r.d(e,{InvalidTokenError:function(){return s}}),n.prototype=new Error,n.prototype.name="InvalidCharacterError";var o="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var e=String(t).replace(/=+$/,"");if(e.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,o,i=0,s=0,a="";o=e.charAt(s++);~o&&(r=i%4?64*r+o:o,i++%4)?a+=String.fromCharCode(255&r>>(-2*i&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return a};function i(t){var e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(o(t).replace(/(.)/g,(function(t,e){var r=e.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(e)}catch(t){return o(e)}}function s(t){this.message=t}s.prototype=new Error,s.prototype.name="InvalidTokenError",e.default=function(t,e){if("string"!=typeof t)throw new s("Invalid token specified");var r=!0===(e=e||{}).header?0:1;try{return JSON.parse(i(t.split(".")[r]))}catch(t){throw new s("Invalid token specified: "+t.message)}}},3114:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(1920),i=r(703),s=function(t){function e(e){t.call(this),this._value=e}return n(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var r=t.prototype._subscribe.call(this,e);return r&&!r.closed&&e.next(this._value),r},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.ObjectUnsubscribedError;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(o.Subject);e.BehaviorSubject=s},3246:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(e,r,n){t.call(this),this.parent=e,this.outerValue=r,this.outerIndex=n,this.index=0}return n(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(r(1308).Subscriber);e.InnerSubscriber=o},8037:function(t,e,r){"use strict";var n=r(9707),o=function(){function t(t,e,r){this.kind=t,this.value=e,this.error=r,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,r){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return r&&r()}},t.prototype.accept=function(t,e,r){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,r)},t.prototype.toObservable=function(){switch(this.kind){case"N":return n.Observable.of(this.value);case"E":return n.Observable.throw(this.error);case"C":return n.Observable.empty()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();e.Notification=o},9707:function(t,e,r){"use strict";var n=r(2901),o=r(5518),i=r(9404),s=r(4053),a=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n=this.operator,i=o.toSubscriber(t,e,r);if(n?n.call(i,this.source):i.add(this.source||!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var r=this;if(e||(n.root.Rx&&n.root.Rx.config&&n.root.Rx.config.Promise?e=n.root.Rx.config.Promise:n.root.Promise&&(e=n.root.Promise)),!e)throw new Error("no Promise impl found");return new e((function(e,n){var o;o=r.subscribe((function(e){if(o)try{t(e)}catch(t){n(t),o.unsubscribe()}else t(e)}),n,e)}))},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[i.observable]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return 0===t.length?this:s.pipeFromArray(t)(this)},t.prototype.toPromise=function(t){var e=this;if(t||(n.root.Rx&&n.root.Rx.config&&n.root.Rx.config.Promise?t=n.root.Rx.config.Promise:n.root.Promise&&(t=n.root.Promise)),!t)throw new Error("no Promise impl found");return new t((function(t,r){var n;e.subscribe((function(t){return n=t}),(function(t){return r(t)}),(function(){return t(n)}))}))},t.create=function(e){return new t(e)},t}();e.Observable=a},5432:function(t,e){"use strict";e.empty={closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}}},7737:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(){t.apply(this,arguments)}return n(e,t),e.prototype.notifyNext=function(t,e,r,n,o){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(r(1308).Subscriber);e.OuterSubscriber=o},3857:function(t,e){"use strict";var r=function(){function t(e,r){void 0===r&&(r=t.now),this.SchedulerAction=e,this.now=r}return t.prototype.schedule=function(t,e,r){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(r,e)},t.now=Date.now?Date.now:function(){return+new Date},t}();e.Scheduler=r},1920:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(9707),i=r(1308),s=r(8303),a=r(703),u=r(4169),c=r(4429),f=function(t){function e(e){t.call(this,e),this.destination=e}return n(e,t),e}(i.Subscriber);e.SubjectSubscriber=f;var l=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return n(e,t),e.prototype[c.rxSubscriber]=function(){return new f(this)},e.prototype.lift=function(t){var e=new h(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,r=e.length,n=e.slice(),o=0;o<r;o++)n[o].next(t)},e.prototype.error=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,r=e.length,n=e.slice(),o=0;o<r;o++)n[o].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new a.ObjectUnsubscribedError;this.isStopped=!0;for(var t=this.observers,e=t.length,r=t.slice(),n=0;n<e;n++)r[n].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;return this.hasError?(t.error(this.thrownError),s.Subscription.EMPTY):this.isStopped?(t.complete(),s.Subscription.EMPTY):(this.observers.push(t),new u.SubjectSubscription(this,t))},e.prototype.asObservable=function(){var t=new o.Observable;return t.source=this,t},e.create=function(t,e){return new h(t,e)},e}(o.Observable);e.Subject=l;var h=function(t){function e(e,r){t.call(this),this.destination=e,this.source=r}return n(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):s.Subscription.EMPTY},e}(l);e.AnonymousSubject=h},4169:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(e,r){t.call(this),this.subject=e,this.subscriber=r,this.closed=!1}return n(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var r=e.indexOf(this.subscriber);-1!==r&&e.splice(r,1)}}},e}(r(8303).Subscription);e.SubjectSubscription=o},1308:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(2497),i=r(8303),s=r(5432),a=r(4429),u=function(t){function e(e,r,n){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.empty;break;case 1:if(!e){this.destination=s.empty;break}if("object"==typeof e){if(f(e)){var o=e[a.rxSubscriber]();this.syncErrorThrowable=o.syncErrorThrowable,this.destination=o,o.add(this)}else this.syncErrorThrowable=!0,this.destination=new c(this,e);break}default:this.syncErrorThrowable=!0,this.destination=new c(this,e,r,n)}}return n(e,t),e.prototype[a.rxSubscriber]=function(){return this},e.create=function(t,r,n){var o=new e(t,r,n);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this},e}(i.Subscription);e.Subscriber=u;var c=function(t){function e(e,r,n,i){var a;t.call(this),this._parentSubscriber=e;var u=this;o.isFunction(r)?a=r:r&&(a=r.next,n=r.error,i=r.complete,r!==s.empty&&(u=Object.create(r),o.isFunction(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this))),this._context=u,this._next=a,this._error=n,this._complete=i}return n(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var r=function(){return t._complete.call(t._context)};e.syncErrorThrowable?(this.__tryOrSetError(e,r),this.unsubscribe()):(this.__tryOrUnsub(r),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t}},e.prototype.__tryOrSetError=function(t,e,r){try{e.call(this._context,r)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(u);function f(t){return t instanceof u||"syncErrorThrowable"in t&&t[a.rxSubscriber]}},8303:function(t,e,r){"use strict";var n=r(2208),o=r(9690),i=r(2497),s=r(4181),a=r(7036),u=r(6229),c=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var r=this,c=r._parent,l=r._parents,h=r._unsubscribe,p=r._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var d=-1,y=l?l.length:0;c;)c.remove(this),c=++d<y&&l[d]||null;if(i.isFunction(h)&&s.tryCatch(h).call(this)===a.errorObject&&(e=!0,t=t||(a.errorObject.e instanceof u.UnsubscriptionError?f(a.errorObject.e.errors):[a.errorObject.e])),n.isArray(p))for(d=-1,y=p.length;++d<y;){var b=p[d];if(o.isObject(b)&&s.tryCatch(b.unsubscribe).call(b)===a.errorObject){e=!0,t=t||[];var v=a.errorObject.e;v instanceof u.UnsubscriptionError?t=t.concat(f(v.errors)):t.push(v)}}if(e)throw new u.UnsubscriptionError(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var r=e;switch(typeof e){case"function":r=new t(e);case"object":if(r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if("function"!=typeof r._addParent){var n=r;(r=new t)._subscriptions=[n]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(r),r._addParent(this),r},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}},t.prototype._addParent=function(t){var e=this._parent,r=this._parents;e&&e!==t?r?-1===r.indexOf(t)&&r.push(t):this._parents=[t]:this._parent=t},t.EMPTY=((e=new t).closed=!0,e),t}();function f(t){return t.reduce((function(t,e){return t.concat(e instanceof u.UnsubscriptionError?e.errors:e)}),[])}e.Subscription=c},4553:function(t,e,r){"use strict";var n=r(9707),o=r(5885);n.Observable.ajax=o.ajax},7033:function(t,e,r){"use strict";var n=r(9707),o=r(8557);n.Observable.empty=o.empty},5313:function(t,e,r){"use strict";var n=r(9707),o=r(8858);n.Observable.from=o.from},5103:function(t,e,r){"use strict";var n=r(9707),o=r(1531);n.Observable.interval=o.interval},3783:function(t,e,r){"use strict";var n=r(9707),o=r(8104);n.Observable.of=o.of},8540:function(t,e,r){"use strict";var n=r(9707),o=r(8867);n.Observable.throw=o._throw},3690:function(t,e,r){"use strict";var n=r(9707),o=r(7046);n.Observable.prototype.catch=o._catch,n.Observable.prototype._catch=o._catch},3071:function(t,e,r){"use strict";var n=r(9707),o=r(3123);n.Observable.prototype.combineLatest=o.combineLatest},4983:function(t,e,r){"use strict";var n=r(9707),o=r(4891);n.Observable.prototype.concatMap=o.concatMap},2166:function(t,e,r){"use strict";var n=r(9707),o=r(970);n.Observable.prototype.count=o.count},7917:function(t,e,r){"use strict";var n=r(9707),o=r(4950);n.Observable.prototype.delay=o.delay},3576:function(t,e,r){"use strict";var n=r(9707),o=r(9028);n.Observable.prototype.do=o._do,n.Observable.prototype._do=o._do},1239:function(t,e,r){"use strict";var n=r(9707),o=r(8371);n.Observable.prototype.filter=o.filter},4359:function(t,e,r){"use strict";var n=r(9707),o=r(947);n.Observable.prototype.map=o.map},2639:function(t,e,r){"use strict";var n=r(9707),o=r(8387);n.Observable.prototype.mergeMap=o.mergeMap,n.Observable.prototype.flatMap=o.mergeMap},731:function(t,e,r){"use strict";var n=r(9707),o=r(7015);n.Observable.prototype.retryWhen=o.retryWhen},1734:function(t,e,r){"use strict";var n=r(9707),o=r(8706);n.Observable.prototype.share=o.share},4166:function(t,e,r){"use strict";var n=r(9707),o=r(9618);n.Observable.prototype.take=o.take},3603:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(9707),i=r(3171),s=r(1248),a=function(t){function e(e,r){t.call(this),this.arrayLike=e,this.scheduler=r,r||1!==e.length||(this._isScalar=!0,this.value=e[0])}return n(e,t),e.create=function(t,r){var n=t.length;return 0===n?new s.EmptyObservable:1===n?new i.ScalarObservable(t[0],r):new e(t,r)},e.dispatch=function(t){var e=t.arrayLike,r=t.index,n=t.length,o=t.subscriber;o.closed||(r>=n?o.complete():(o.next(e[r]),t.index=r+1,this.schedule(t)))},e.prototype._subscribe=function(t){var r=this.arrayLike,n=this.scheduler,o=r.length;if(n)return n.schedule(e.dispatch,0,{arrayLike:r,index:0,length:o,subscriber:t});for(var i=0;i<o&&!t.closed;i++)t.next(r[i]);t.complete()},e}(o.Observable);e.ArrayLikeObservable=a},6840:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(9707),i=r(3171),s=r(1248),a=r(7452),u=function(t){function e(e,r){t.call(this),this.array=e,this.scheduler=r,r||1!==e.length||(this._isScalar=!0,this.value=e[0])}return n(e,t),e.create=function(t,r){return new e(t,r)},e.of=function(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];var n=t[t.length-1];a.isScheduler(n)?t.pop():n=null;var o=t.length;return o>1?new e(t,n):1===o?new i.ScalarObservable(t[0],n):new s.EmptyObservable(n)},e.dispatch=function(t){var e=t.array,r=t.index,n=t.count,o=t.subscriber;r>=n?o.complete():(o.next(e[r]),o.closed||(t.index=r+1,this.schedule(t)))},e.prototype._subscribe=function(t){var r=this.array,n=r.length,o=this.scheduler;if(o)return o.schedule(e.dispatch,0,{array:r,index:0,count:n,subscriber:t});for(var i=0;i<n&&!t.closed;i++)t.next(r[i]);t.complete()},e}(o.Observable);e.ArrayObservable=u},8495:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(1920),i=r(9707),s=r(1308),a=r(8303),u=r(1152),c=function(t){function e(e,r){t.call(this),this.source=e,this.subjectFactory=r,this._refCount=0,this._isComplete=!1}return n(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new a.Subscription).add(this.source.subscribe(new l(this.getSubject(),this))),t.closed?(this._connection=null,t=a.Subscription.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return u.refCount()(this)},e}(i.Observable);e.ConnectableObservable=c;var f=c.prototype;e.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:f._subscribe},_isComplete:{value:f._isComplete,writable:!0},getSubject:{value:f.getSubject},connect:{value:f.connect},refCount:{value:f.refCount}};var l=function(t){function e(e,r){t.call(this,e),this.connectable=r}return n(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(o.SubjectSubscriber);!function(t){function e(e,r){t.call(this,e),this.connectable=r}n(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var r=this.connection,n=t._connection;this.connection=null,!n||r&&n!==r||n.unsubscribe()}}else this.connection=null}}(s.Subscriber)},1248:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(e){t.call(this),this.scheduler=e}return n(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){t.subscriber.complete()},e.prototype._subscribe=function(t){var r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{subscriber:t});t.complete()},e}(r(9707).Observable);e.EmptyObservable=o},4631:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(e,r){t.call(this),this.error=e,this.scheduler=r}return n(e,t),e.create=function(t,r){return new e(t,r)},e.dispatch=function(t){var e=t.error;t.subscriber.error(e)},e.prototype._subscribe=function(t){var r=this.error,n=this.scheduler;if(t.syncErrorThrowable=!0,n)return n.schedule(e.dispatch,0,{error:r,subscriber:t});t.error(r)},e}(r(9707).Observable);e.ErrorObservable=o},7691:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(2208),i=r(8871),s=r(456),a=r(3172),u=r(6529),c=r(6840),f=r(3603),l=r(3763),h=r(9707),p=r(8767),d=r(9404),y=function(t){function e(e,r){t.call(this,null),this.ish=e,this.scheduler=r}return n(e,t),e.create=function(t,r){if(null!=t){if("function"==typeof t[d.observable])return t instanceof h.Observable&&!r?t:new e(t,r);if(o.isArray(t))return new c.ArrayObservable(t,r);if(s.isPromise(t))return new a.PromiseObservable(t,r);if("function"==typeof t[l.iterator]||"string"==typeof t)return new u.IteratorObservable(t,r);if(i.isArrayLike(t))return new f.ArrayLikeObservable(t,r)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")},e.prototype._subscribe=function(t){var e=this.ish,r=this.scheduler;return null==r?e[d.observable]().subscribe(t):e[d.observable]().subscribe(new p.ObserveOnSubscriber(t,r,0))},e}(h.Observable);e.FromObservable=y},502:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(8454),i=r(9707),s=r(1518),a=function(t){function e(e,r){void 0===e&&(e=0),void 0===r&&(r=s.async),t.call(this),this.period=e,this.scheduler=r,(!o.isNumeric(e)||e<0)&&(this.period=0),r&&"function"==typeof r.schedule||(this.scheduler=s.async)}return n(e,t),e.create=function(t,r){return void 0===t&&(t=0),void 0===r&&(r=s.async),new e(t,r)},e.dispatch=function(t){var e=t.index,r=t.subscriber,n=t.period;r.next(e),r.closed||(t.index+=1,this.schedule(t,n))},e.prototype._subscribe=function(t){var r=this.period,n=this.scheduler;t.add(n.schedule(e.dispatch,r,{index:0,subscriber:t,period:r}))},e}(i.Observable);e.IntervalObservable=a},6529:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(2901),i=r(9707),s=r(3763),a=function(t){function e(e,r){if(t.call(this),this.scheduler=r,null==e)throw new Error("iterator cannot be null.");this.iterator=function(t){var e=t[s.iterator];if(!e&&"string"==typeof t)return new u(t);if(!e&&void 0!==t.length)return new c(t);if(!e)throw new TypeError("object is not iterable");return t[s.iterator]()}(e)}return n(e,t),e.create=function(t,r){return new e(t,r)},e.dispatch=function(t){var e=t.index,r=t.hasError,n=t.iterator,o=t.subscriber;if(r)o.error(t.error);else{var i=n.next();i.done?o.complete():(o.next(i.value),t.index=e+1,o.closed?"function"==typeof n.return&&n.return():this.schedule(t))}},e.prototype._subscribe=function(t){var r=this.iterator,n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{index:0,iterator:r,subscriber:t});for(;;){var o=r.next();if(o.done){t.complete();break}if(t.next(o.value),t.closed){"function"==typeof r.return&&r.return();break}}},e}(i.Observable);e.IteratorObservable=a;var u=function(){function t(t,e,r){void 0===e&&(e=0),void 0===r&&(r=t.length),this.str=t,this.idx=e,this.len=r}return t.prototype[s.iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}},t}(),c=function(){function t(t,e,r){void 0===e&&(e=0),void 0===r&&(r=function(t){var e,r=+t.length;return isNaN(r)?0:0!==r&&("number"==typeof(e=r)&&o.root.isFinite(e))?(r=function(t){var e=+t;return 0===e||isNaN(e)?e:e<0?-1:1}(r)*Math.floor(Math.abs(r)),r<=0?0:r>f?f:r):r}(t)),this.arr=t,this.idx=e,this.len=r}return t.prototype[s.iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}},t}(),f=Math.pow(2,53)-1},3172:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(2901),i=function(t){function e(e,r){t.call(this),this.promise=e,this.scheduler=r}return n(e,t),e.create=function(t,r){return new e(t,r)},e.prototype._subscribe=function(t){var e=this,r=this.promise,n=this.scheduler;if(null==n)this._isScalar?t.closed||(t.next(this.value),t.complete()):r.then((function(r){e.value=r,e._isScalar=!0,t.closed||(t.next(r),t.complete())}),(function(e){t.closed||t.error(e)})).then(null,(function(t){o.root.setTimeout((function(){throw t}))}));else if(this._isScalar){if(!t.closed)return n.schedule(s,0,{value:this.value,subscriber:t})}else r.then((function(r){e.value=r,e._isScalar=!0,t.closed||t.add(n.schedule(s,0,{value:r,subscriber:t}))}),(function(e){t.closed||t.add(n.schedule(a,0,{err:e,subscriber:t}))})).then(null,(function(t){o.root.setTimeout((function(){throw t}))}))},e}(r(9707).Observable);function s(t){var e=t.value,r=t.subscriber;r.closed||(r.next(e),r.complete())}function a(t){var e=t.err,r=t.subscriber;r.closed||r.error(e)}e.PromiseObservable=i},3171:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(e,r){t.call(this),this.value=e,this.scheduler=r,this._isScalar=!0,r&&(this._isScalar=!1)}return n(e,t),e.create=function(t,r){return new e(t,r)},e.dispatch=function(t){var e=t.done,r=t.value,n=t.subscriber;e?n.complete():(n.next(r),n.closed||(t.done=!0,this.schedule(t)))},e.prototype._subscribe=function(t){var r=this.value,n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{done:!1,value:r,subscriber:t});t.next(r),t.closed||t.complete()},e}(r(9707).Observable);e.ScalarObservable=o},6144:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(2901),i=r(4181),s=r(7036),a=r(9707),u=r(1308),c=r(720);function f(){if(o.root.XMLHttpRequest)return new o.root.XMLHttpRequest;if(o.root.XDomainRequest)return new o.root.XDomainRequest;throw new Error("CORS is not supported by your browser")}function l(t,e){return void 0===e&&(e=null),new g({method:"GET",url:t,headers:e})}function h(t,e,r){return new g({method:"POST",url:t,body:e,headers:r})}function p(t,e){return new g({method:"DELETE",url:t,headers:e})}function d(t,e,r){return new g({method:"PUT",url:t,body:e,headers:r})}function y(t,e,r){return new g({method:"PATCH",url:t,body:e,headers:r})}e.ajaxGet=l,e.ajaxPost=h,e.ajaxDelete=p,e.ajaxPut=d,e.ajaxPatch=y;var b=c.map((function(t,e){return t.response}));function v(t,e){return b(new g({method:"GET",url:t,responseType:"json",headers:e}))}e.ajaxGetJSON=v;var g=function(t){function e(e){t.call(this);var r={async:!0,createXHR:function(){return this.crossDomain?f.call(this):function(){if(o.root.XMLHttpRequest)return new o.root.XMLHttpRequest;var t=void 0;try{for(var e=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],r=0;r<3;r++)try{if(t=e[r],new o.root.ActiveXObject(t))break}catch(t){}return new o.root.ActiveXObject(t)}catch(t){throw new Error("XMLHttpRequest is not supported by your browser")}}()},crossDomain:!1,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof e)r.url=e;else for(var n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);this.request=r}var r;return n(e,t),e.prototype._subscribe=function(t){return new m(t,this.request)},e.create=((r=function(t){return new e(t)}).get=l,r.post=h,r.delete=p,r.put=d,r.patch=y,r.getJSON=v,r),e}(a.Observable);e.AjaxObservable=g;var m=function(t){function e(e,r){t.call(this,e),this.request=r,this.done=!1;var n=r.headers=r.headers||{};r.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),"Content-Type"in n||o.root.FormData&&r.body instanceof o.root.FormData||void 0===r.body||(n["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),r.body=this.serializeBody(r.body,r.headers["Content-Type"]),this.send()}return n(e,t),e.prototype.next=function(t){this.done=!0;var e=this,r=e.xhr,n=e.request,o=e.destination,i=new w(t,r,n);o.next(i)},e.prototype.send=function(){var t=this.request,e=this.request,r=e.user,n=e.method,o=e.url,a=e.async,u=e.password,c=e.headers,f=e.body,l=t.createXHR,h=i.tryCatch(l).call(t);if(h===s.errorObject)this.error(s.errorObject.e);else{if(this.xhr=h,this.setupEvents(h,t),(r?i.tryCatch(h.open).call(h,n,o,a,r,u):i.tryCatch(h.open).call(h,n,o,a))===s.errorObject)return this.error(s.errorObject.e),null;if(a&&(h.timeout=t.timeout,h.responseType=t.responseType),"withCredentials"in h&&(h.withCredentials=!!t.withCredentials),this.setHeaders(h,c),(f?i.tryCatch(h.send).call(h,f):i.tryCatch(h.send).call(h))===s.errorObject)return this.error(s.errorObject.e),null}return h},e.prototype.serializeBody=function(t,e){if(!t||"string"==typeof t)return t;if(o.root.FormData&&t instanceof o.root.FormData)return t;if(e){var r=e.indexOf(";");-1!==r&&(e=e.substring(0,r))}switch(e){case"application/x-www-form-urlencoded":return Object.keys(t).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])})).join("&");case"application/json":return JSON.stringify(t);default:return t}},e.prototype.setHeaders=function(t,e){for(var r in e)e.hasOwnProperty(r)&&t.setRequestHeader(r,e[r])},e.prototype.setupEvents=function(t,e){var r,n,i=e.progressSubscriber;function s(t){var e=s,r=e.subscriber,n=e.progressSubscriber,o=e.request;n&&n.error(t),r.error(new x(this,o))}(t.ontimeout=s,s.request=e,s.subscriber=this,s.progressSubscriber=i,t.upload&&"withCredentials"in t)&&(i&&(r=function(t){r.progressSubscriber.next(t)},o.root.XDomainRequest?t.onprogress=r:t.upload.onprogress=r,r.progressSubscriber=i),n=function(t){var e=n,r=e.progressSubscriber,o=e.subscriber,i=e.request;r&&r.error(t),o.error(new _("ajax error",this,i))},t.onerror=n,n.request=e,n.subscriber=this,n.progressSubscriber=i);function a(t){var e=a,r=e.subscriber,n=e.progressSubscriber,o=e.request;if(4===this.readyState){var i=1223===this.status?204:this.status,s="text"===this.responseType?this.response||this.responseText:this.response;0===i&&(i=s?200:0),200<=i&&i<300?(n&&n.complete(),r.next(t),r.complete()):(n&&n.error(t),r.error(new _("ajax error "+i,this,o)))}}t.onreadystatechange=a,a.subscriber=this,a.progressSubscriber=i,a.request=e},e.prototype.unsubscribe=function(){var e=this.done,r=this.xhr;!e&&r&&4!==r.readyState&&"function"==typeof r.abort&&r.abort(),t.prototype.unsubscribe.call(this)},e}(u.Subscriber);e.AjaxSubscriber=m;var w=function(t,e,r){this.originalEvent=t,this.xhr=e,this.request=r,this.status=e.status,this.responseType=e.responseType||r.responseType,this.response=S(this.responseType,e)};e.AjaxResponse=w;var _=function(t){function e(e,r,n){t.call(this,e),this.message=e,this.xhr=r,this.request=n,this.status=r.status,this.responseType=r.responseType||n.responseType,this.response=S(this.responseType,r)}return n(e,t),e}(Error);function S(t,e){switch(t){case"json":return"response"in e?e.responseType?e.response:JSON.parse(e.response||e.responseText||"null"):JSON.parse(e.responseText||"null");case"xml":return e.responseXML;default:return"response"in e?e.response:e.responseText}}e.AjaxError=_;var x=function(t){function e(e,r){t.call(this,"ajax timeout",e,r)}return n(e,t),e}(_);e.AjaxTimeoutError=x},5885:function(t,e,r){"use strict";var n=r(6144);e.ajax=n.AjaxObservable.create},8557:function(t,e,r){"use strict";var n=r(1248);e.empty=n.EmptyObservable.create},8858:function(t,e,r){"use strict";var n=r(7691);e.from=n.FromObservable.create},1531:function(t,e,r){"use strict";var n=r(502);e.interval=n.IntervalObservable.create},8104:function(t,e,r){"use strict";var n=r(6840);e.of=n.ArrayObservable.of},8867:function(t,e,r){"use strict";var n=r(4631);e._throw=n.ErrorObservable.create},7046:function(t,e,r){"use strict";var n=r(4903);e._catch=function(t){return n.catchError(t)(this)}},3123:function(t,e,r){"use strict";var n=r(8652);e.combineLatest=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return n.combineLatest.apply(void 0,t)(this)}},4891:function(t,e,r){"use strict";var n=r(7024);e.concatMap=function(t,e){return n.concatMap(t,e)(this)}},970:function(t,e,r){"use strict";var n=r(6581);e.count=function(t){return n.count(t)(this)}},4950:function(t,e,r){"use strict";var n=r(1518),o=r(909);e.delay=function(t,e){return void 0===e&&(e=n.async),o.delay(t,e)(this)}},9028:function(t,e,r){"use strict";var n=r(4995);e._do=function(t,e,r){return n.tap(t,e,r)(this)}},8371:function(t,e,r){"use strict";var n=r(9014);e.filter=function(t,e){return n.filter(t,e)(this)}},947:function(t,e,r){"use strict";var n=r(720);e.map=function(t,e){return n.map(t,e)(this)}},8387:function(t,e,r){"use strict";var n=r(9982);e.mergeMap=function(t,e,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),n.mergeMap(t,e,r)(this)}},7015:function(t,e,r){"use strict";var n=r(1020);e.retryWhen=function(t){return n.retryWhen(t)(this)}},8706:function(t,e,r){"use strict";var n=r(5221);e.share=function(){return n.share()(this)}},9618:function(t,e,r){"use strict";var n=r(7207);e.take=function(t){return n.take(t)(this)}},4903:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(7737),i=r(8497);e.catchError=function(t){return function(e){var r=new s(t),n=e.lift(r);return r.caught=n}};var s=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.selector,this.caught))},t}(),a=function(t){function e(e,r,n){t.call(this,e),this.selector=r,this.caught=n}return n(e,t),e.prototype.error=function(e){if(!this.isStopped){var r=void 0;try{r=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle(),this.add(i.subscribeToResult(this,r))}},e}(o.OuterSubscriber)},8652:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(6840),i=r(2208),s=r(7737),a=r(8497),u={};e.combineLatest=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var r=null;return"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&i.isArray(t[0])&&(t=t[0].slice()),function(e){return e.lift.call(new o.ArrayObservable([e].concat(t)),new c(r))}};var c=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.project))},t}();e.CombineLatestOperator=c;var f=function(t){function e(e,r){t.call(this,e),this.project=r,this.active=0,this.values=[],this.observables=[]}return n(e,t),e.prototype._next=function(t){this.values.push(u),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var r=0;r<e;r++){var n=t[r];this.add(a.subscribeToResult(this,n,n,r))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,r,n,o){var i=this.values,s=i[r],a=this.toRespond?s===u?--this.toRespond:this.toRespond:0;i[r]=e,0===a&&(this.project?this._tryProject(i):this.destination.next(i.slice()))},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(s.OuterSubscriber);e.CombineLatestSubscriber=f},7024:function(t,e,r){"use strict";var n=r(9982);e.concatMap=function(t,e){return n.mergeMap(t,e,1)}},6581:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(1308);e.count=function(t){return function(e){return e.lift(new i(t,e))}};var i=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.source))},t}(),s=function(t){function e(e,r,n){t.call(this,e),this.predicate=r,this.source=n,this.count=0,this.index=0}return n(e,t),e.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},e.prototype._tryPredicate=function(t){var e;try{e=this.predicate(t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e&&this.count++},e.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},e}(o.Subscriber)},909:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(1518),i=r(8697),s=r(1308),a=r(8037);e.delay=function(t,e){void 0===e&&(e=o.async);var r=i.isDate(t)?+t-e.now():Math.abs(t);return function(t){return t.lift(new u(r,e))}};var u=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.delay,this.scheduler))},t}(),c=function(t){function e(e,r,n){t.call(this,e),this.delay=r,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}return n(e,t),e.dispatch=function(t){for(var e=t.source,r=e.queue,n=t.scheduler,o=t.destination;r.length>0&&r[0].time-n.now()<=0;)r.shift().notification.observe(o);if(r.length>0){var i=Math.max(0,r[0].time-n.now());this.schedule(t,i)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,r=new f(e.now()+this.delay,t);this.queue.push(r),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(a.Notification.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t)},e.prototype._complete=function(){this.scheduleNotification(a.Notification.createComplete())},e}(s.Subscriber),f=function(t,e){this.time=t,this.notification=e}},9014:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(1308);e.filter=function(t,e){return function(r){return r.lift(new i(t,e))}};var i=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg))},t}(),s=function(t){function e(e,r,n){t.call(this,e),this.predicate=r,this.thisArg=n,this.count=0}return n(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(o.Subscriber)},720:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(1308);e.map=function(t,e){return function(r){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new i(t,e))}};var i=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.thisArg))},t}();e.MapOperator=i;var s=function(t){function e(e,r,n){t.call(this,e),this.project=r,this.count=0,this.thisArg=n||this}return n(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(o.Subscriber)},9982:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(8497),i=r(7737);e.mergeMap=function(t,e,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),function(n){return"number"==typeof e&&(r=e,e=null),n.lift(new s(t,e,r))}};var s=function(){function t(t,e,r){void 0===r&&(r=Number.POSITIVE_INFINITY),this.project=t,this.resultSelector=e,this.concurrent=r}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.resultSelector,this.concurrent))},t}();e.MergeMapOperator=s;var a=function(t){function e(e,r,n,o){void 0===o&&(o=Number.POSITIVE_INFINITY),t.call(this,e),this.project=r,this.resultSelector=n,this.concurrent=o,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return n(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,r=this.index++;try{e=this.project(t,r)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,r)},e.prototype._innerSub=function(t,e,r){this.add(o.subscribeToResult(this,t,e,r))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,r,n,o){this.resultSelector?this._notifyResultSelector(t,e,r,n):this.destination.next(e)},e.prototype._notifyResultSelector=function(t,e,r,n){var o;try{o=this.resultSelector(t,e,r,n)}catch(t){return void this.destination.error(t)}this.destination.next(o)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(i.OuterSubscriber);e.MergeMapSubscriber=a},6040:function(t,e,r){"use strict";var n=r(8495);e.multicast=function(t,e){return function(r){var i;if(i="function"==typeof t?t:function(){return t},"function"==typeof e)return r.lift(new o(i,e));var s=Object.create(r,n.connectableObservableDescriptor);return s.source=r,s.subjectFactory=i,s}};var o=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var r=this.selector,n=this.subjectFactory(),o=r(n).subscribe(t);return o.add(e.subscribe(n)),o},t}();e.MulticastOperator=o},8767:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(1308),i=r(8037);e.observeOn=function(t,e){return void 0===e&&(e=0),function(r){return r.lift(new s(t,e))}};var s=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.scheduler,this.delay))},t}();e.ObserveOnOperator=s;var a=function(t){function e(e,r,n){void 0===n&&(n=0),t.call(this,e),this.scheduler=r,this.delay=n}return n(e,t),e.dispatch=function(t){var e=t.notification,r=t.destination;e.observe(r),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(e.dispatch,this.delay,new u(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(i.Notification.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(i.Notification.createError(t))},e.prototype._complete=function(){this.scheduleMessage(i.Notification.createComplete())},e}(o.Subscriber);e.ObserveOnSubscriber=a;var u=function(t,e){this.notification=t,this.destination=e};e.ObserveOnMessage=u},1152:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(1308);e.refCount=function(){return function(t){return t.lift(new i(t))}};var i=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var r=this.connectable;r._refCount++;var n=new s(t,r),o=e.subscribe(n);return n.closed||(n.connection=r.connect()),o},t}(),s=function(t){function e(e,r){t.call(this,e),this.connectable=r}return n(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var r=this.connection,n=t._connection;this.connection=null,!n||r&&n!==r||n.unsubscribe()}}else this.connection=null},e}(o.Subscriber)},1020:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(1920),i=r(4181),s=r(7036),a=r(7737),u=r(8497);e.retryWhen=function(t){return function(e){return e.lift(new c(t,e))}};var c=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.notifier,this.source))},t}(),f=function(t){function e(e,r,n){t.call(this,e),this.notifier=r,this.source=n}return n(e,t),e.prototype.error=function(e){if(!this.isStopped){var r=this.errors,n=this.retries,a=this.retriesSubscription;if(n)this.errors=null,this.retriesSubscription=null;else{if(r=new o.Subject,(n=i.tryCatch(this.notifier)(r))===s.errorObject)return t.prototype.error.call(this,s.errorObject.e);a=u.subscribeToResult(this,n)}this._unsubscribeAndRecycle(),this.errors=r,this.retries=n,this.retriesSubscription=a,r.next(e)}},e.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype.notifyNext=function(t,e,r,n,o){var i=this,s=i.errors,a=i.retries,u=i.retriesSubscription;this.errors=null,this.retries=null,this.retriesSubscription=null,this._unsubscribeAndRecycle(),this.errors=s,this.retries=a,this.retriesSubscription=u,this.source.subscribe(this)},e}(a.OuterSubscriber)},5221:function(t,e,r){"use strict";var n=r(6040),o=r(1152),i=r(1920);function s(){return new i.Subject}e.share=function(){return function(t){return o.refCount()(n.multicast(s)(t))}}},7207:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(1308),i=r(6280),s=r(1248);e.take=function(t){return function(e){return 0===t?new s.EmptyObservable:e.lift(new a(t))}};var a=function(){function t(t){if(this.total=t,this.total<0)throw new i.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.total))},t}(),u=function(t){function e(e,r){t.call(this,e),this.total=r,this.count=0}return n(e,t),e.prototype._next=function(t){var e=this.total,r=++this.count;r<=e&&(this.destination.next(t),r===e&&(this.destination.complete(),this.unsubscribe()))},e}(o.Subscriber)},4995:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(1308);e.tap=function(t,e,r){return function(n){return n.lift(new i(t,e,r))}};var i=function(){function t(t,e,r){this.nextOrObserver=t,this.error=e,this.complete=r}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.nextOrObserver,this.error,this.complete))},t}(),s=function(t){function e(e,r,n,i){t.call(this,e);var s=new o.Subscriber(r,n,i);s.syncErrorThrowable=!0,this.add(s),this.safeSubscriber=s}return n(e,t),e.prototype._next=function(t){var e=this.safeSubscriber;e.next(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.next(t)},e.prototype._error=function(t){var e=this.safeSubscriber;e.error(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.error(t)},e.prototype._complete=function(){var t=this.safeSubscriber;t.complete(),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.complete()},e}(o.Subscriber)},1578:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(e,r){t.call(this)}return n(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(r(8303).Subscription);e.Action=o},668:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(2901),i=function(t){function e(e,r){t.call(this,e,r),this.scheduler=e,this.pending=!1,this.work=r}return n(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t,this.pending=!0;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,e)),this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this},e.prototype.requestAsyncId=function(t,e,r){return void 0===r&&(r=0),o.root.setInterval(t.flush.bind(t,this),r)},e.prototype.recycleAsyncId=function(t,e,r){if(void 0===r&&(r=0),null!==r&&this.delay===r&&!1===this.pending)return e;o.root.clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(t,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var r=!1,n=void 0;try{this.work(t)}catch(t){r=!0,n=!!t&&t||new Error(t)}if(r)return this.unsubscribe(),n},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,r=e.actions,n=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&r.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(r(1578).Action);e.AsyncAction=i},4853:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(){t.apply(this,arguments),this.actions=[],this.active=!1,this.scheduled=void 0}return n(e,t),e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var r;this.active=!0;do{if(r=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,r){for(;t=e.shift();)t.unsubscribe();throw r}}},e}(r(3857).Scheduler);e.AsyncScheduler=o},1518:function(t,e,r){"use strict";var n=r(668),o=r(4853);e.async=new o.AsyncScheduler(n.AsyncAction)},3763:function(t,e,r){"use strict";var n=r(2901);function o(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var r=t.Set;if(r&&"function"==typeof(new r)["@@iterator"])return"@@iterator";var n=t.Map;if(n)for(var o=Object.getOwnPropertyNames(n.prototype),i=0;i<o.length;++i){var s=o[i];if("entries"!==s&&"size"!==s&&n.prototype[s]===n.prototype.entries)return s}return"@@iterator"}e.symbolIteratorPonyfill=o,e.iterator=o(n.root),e.$$iterator=e.iterator},9404:function(t,e,r){"use strict";var n=r(2901);function o(t){var e,r=t.Symbol;return"function"==typeof r?r.observable?e=r.observable:(e=r("observable"),r.observable=e):e="@@observable",e}e.getSymbolObservable=o,e.observable=o(n.root),e.$$observable=e.observable},4429:function(t,e,r){"use strict";var n=r(2901).root.Symbol;e.rxSubscriber="function"==typeof n&&"function"==typeof n.for?n.for("rxSubscriber"):"@@rxSubscriber",e.$$rxSubscriber=e.rxSubscriber},6280:function(t,e){"use strict";var r=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},n=function(t){function e(){var e=t.call(this,"argument out of range");this.name=e.name="ArgumentOutOfRangeError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);e.ArgumentOutOfRangeError=n},703:function(t,e){"use strict";var r=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},n=function(t){function e(){var e=t.call(this,"object unsubscribed");this.name=e.name="ObjectUnsubscribedError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);e.ObjectUnsubscribedError=n},6229:function(t,e){"use strict";var r=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},n=function(t){function e(e){t.call(this),this.errors=e;var r=Error.call(this,e?e.length+" errors occurred during unsubscription:\n "+e.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"");this.name=r.name="UnsubscriptionError",this.stack=r.stack,this.message=r.message}return r(e,t),e}(Error);e.UnsubscriptionError=n},7036:function(t,e){"use strict";e.errorObject={e:{}}},2208:function(t,e){"use strict";e.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},8871:function(t,e){"use strict";e.isArrayLike=function(t){return t&&"number"==typeof t.length}},8697:function(t,e){"use strict";e.isDate=function(t){return t instanceof Date&&!isNaN(+t)}},2497:function(t,e){"use strict";e.isFunction=function(t){return"function"==typeof t}},8454:function(t,e,r){"use strict";var n=r(2208);e.isNumeric=function(t){return!n.isArray(t)&&t-parseFloat(t)+1>=0}},9690:function(t,e){"use strict";e.isObject=function(t){return null!=t&&"object"==typeof t}},456:function(t,e){"use strict";e.isPromise=function(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}},7452:function(t,e){"use strict";e.isScheduler=function(t){return t&&"function"==typeof t.schedule}},893:function(t,e){"use strict";e.noop=function(){}},4053:function(t,e,r){"use strict";var n=r(893);function o(t){return t?1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}:n.noop}e.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return o(t)},e.pipeFromArray=o},2901:function(t,e,r){"use strict";var n="undefined"!=typeof window&&window,o="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i=void 0!==r.g&&r.g,s=n||i||o;e.root=s,function(){if(!s)throw new Error("RxJS could not find any global context (window, self, global)")}()},8497:function(t,e,r){"use strict";var n=r(2901),o=r(8871),i=r(456),s=r(9690),a=r(9707),u=r(3763),c=r(3246),f=r(9404);e.subscribeToResult=function(t,e,r,l){var h=new c.InnerSubscriber(t,r,l);if(h.closed)return null;if(e instanceof a.Observable)return e._isScalar?(h.next(e.value),h.complete(),null):(h.syncErrorThrowable=!0,e.subscribe(h));if(o.isArrayLike(e)){for(var p=0,d=e.length;p<d&&!h.closed;p++)h.next(e[p]);h.closed||h.complete()}else{if(i.isPromise(e))return e.then((function(t){h.closed||(h.next(t),h.complete())}),(function(t){return h.error(t)})).then(null,(function(t){n.root.setTimeout((function(){throw t}))})),h;if(e&&"function"==typeof e[u.iterator])for(var y=e[u.iterator]();;){var b=y.next();if(b.done){h.complete();break}if(h.next(b.value),h.closed)break}else if(e&&"function"==typeof e[f.observable]){var v=e[f.observable]();if("function"==typeof v.subscribe)return v.subscribe(new c.InnerSubscriber(t,r,l));h.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var g="You provided "+(s.isObject(e)?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";h.error(new TypeError(g))}}return null}},5518:function(t,e,r){"use strict";var n=r(1308),o=r(4429),i=r(5432);e.toSubscriber=function(t,e,r){if(t){if(t instanceof n.Subscriber)return t;if(t[o.rxSubscriber])return t[o.rxSubscriber]()}return t||e||r?new n.Subscriber(t,e,r):new n.Subscriber(i.empty)}},4181:function(t,e,r){"use strict";var n,o=r(7036);function i(){try{return n.apply(this,arguments)}catch(t){return o.errorObject.e=t,o.errorObject}}e.tryCatch=function(t){return n=t,i}},8318:function(t,e,r){!function(t){"use strict";var e,r=function(){try{if(t.URLSearchParams&&"bar"===new t.URLSearchParams("foo=bar").get("foo"))return t.URLSearchParams}catch(t){}return null}(),n=r&&"a=1"===new r({a:1}).toString(),o=r&&"+"===new r("s=%2B").get("s"),i="__URLSearchParams__",s=!r||((e=new r).append("s"," &"),"s=+%26"===e.toString()),a=l.prototype,u=!(!t.Symbol||!t.Symbol.iterator);if(!(r&&n&&o&&s)){var c;a.append=function(t,e){b(this[i],t,e)},a.delete=function(t){delete this[i][t]},a.get=function(t){var e=this[i];return this.has(t)?e[t][0]:null},a.getAll=function(t){var e=this[i];return this.has(t)?e[t].slice(0):[]},a.has=function(t){return g(this[i],t)},a.set=function(t,e){this[i][t]=[""+e]},a.toString=function(){var t,e,r,n,o=this[i],s=[];for(e in o)for(r=h(e),t=0,n=o[e];t<n.length;t++)s.push(r+"="+h(n[t]));return s.join("&")},o&&r&&!n&&t.Proxy?(c=new Proxy(r,{construct:function(t,e){return new t(new l(e[0]).toString())}})).toString=Function.prototype.toString.bind(l):c=l,Object.defineProperty(t,"URLSearchParams",{value:c});var f=t.URLSearchParams.prototype;f.polyfill=!0,f.forEach=f.forEach||function(t,e){var r=y(this.toString());Object.getOwnPropertyNames(r).forEach((function(n){r[n].forEach((function(r){t.call(e,r,n,this)}),this)}),this)},f.sort=f.sort||function(){var t,e,r,n=y(this.toString()),o=[];for(t in n)o.push(t);for(o.sort(),e=0;e<o.length;e++)this.delete(o[e]);for(e=0;e<o.length;e++){var i=o[e],s=n[i];for(r=0;r<s.length;r++)this.append(i,s[r])}},f.keys=f.keys||function(){var t=[];return this.forEach((function(e,r){t.push(r)})),d(t)},f.values=f.values||function(){var t=[];return this.forEach((function(e){t.push(e)})),d(t)},f.entries=f.entries||function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),d(t)},u&&(f[t.Symbol.iterator]=f[t.Symbol.iterator]||f.entries)}function l(t){((t=t||"")instanceof URLSearchParams||t instanceof l)&&(t=t.toString()),this[i]=y(t)}function h(t){var e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'\(\)~]|%20|%00/g,(function(t){return e[t]}))}function p(t){return t.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/gi,(function(t){return decodeURIComponent(t)}))}function d(e){var r={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return u&&(r[t.Symbol.iterator]=function(){return r}),r}function y(t){var e={};if("object"==typeof t)if(v(t))for(var r=0;r<t.length;r++){var n=t[r];if(!v(n)||2!==n.length)throw new TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements");b(e,n[0],n[1])}else for(var o in t)t.hasOwnProperty(o)&&b(e,o,t[o]);else{0===t.indexOf("?")&&(t=t.slice(1));for(var i=t.split("&"),s=0;s<i.length;s++){var a=i[s],u=a.indexOf("=");-1<u?b(e,p(a.slice(0,u)),p(a.slice(u+1))):a&&b(e,p(a),"")}}return e}function b(t,e,r){var n="string"==typeof r?r:null!=r&&"function"==typeof r.toString?r.toString():JSON.stringify(r);g(t,e)?t[e].push(n):t[e]=[n]}function v(t){return!!t&&"[object Array]"===Object.prototype.toString.call(t)}function g(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(void 0!==r.g?r.g:"undefined"!=typeof window?window:this)},79:function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n},t.exports.__esModule=!0,t.exports.default=t.exports},2987:function(t){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports},5901:function(t,e,r){var n=r(79);t.exports=function(t){if(Array.isArray(t))return n(t)},t.exports.__esModule=!0,t.exports.default=t.exports},1756:function(t){t.exports=function(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")},t.exports.__esModule=!0,t.exports.default=t.exports},2475:function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},9293:function(t){function e(t,e,r,n,o,i,s){try{var a=t[i](s),u=a.value}catch(t){return void r(t)}a.done?e(u):Promise.resolve(u).then(n,o)}t.exports=function(t){return function(){var r=this,n=arguments;return new Promise((function(o,i){var s=t.apply(r,n);function a(t){e(s,o,i,a,u,"next",t)}function u(t){e(s,o,i,a,u,"throw",t)}a(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},5764:function(t){t.exports=function(t,e){return e.get?e.get.call(t):e.value},t.exports.__esModule=!0,t.exports.default=t.exports},9056:function(t){t.exports=function(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}},t.exports.__esModule=!0,t.exports.default=t.exports},7383:function(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},2591:function(t,e,r){var n=r(5764),o=r(6668);t.exports=function(t,e){var r=o(e,t);return n(t,r)},t.exports.__esModule=!0,t.exports.default=t.exports},6668:function(t,e,r){var n=r(1756);t.exports=function(t,e){return t.get(n(t,e))},t.exports.__esModule=!0,t.exports.default=t.exports},2808:function(t,e,r){var n=r(9056),o=r(6668);t.exports=function(t,e,r){var i=o(e,t);return n(t,i,r),r},t.exports.__esModule=!0,t.exports.default=t.exports},4579:function(t,e,r){var n=r(7736);function o(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,n(o.key),o)}}t.exports=function(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},3693:function(t,e,r){var n=r(7736);t.exports=function(t,e,r){return(e=n(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports.default=t.exports},2395:function(t,e,r){var n=r(9552);function o(){return t.exports=o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var o=n(t,e);if(o){var i=Object.getOwnPropertyDescriptor(o,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},t.exports.__esModule=!0,t.exports.default=t.exports,o.apply(null,arguments)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},3072:function(t){function e(r){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},9511:function(t,e,r){var n=r(5636);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&n(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports},4994:function(t){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},9291:function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},7752:function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},1869:function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},1847:function(t,e,r){var n=r(4893);t.exports=function(t,e){if(null==t)return{};var r,o,i=n(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(o=0;o<s.length;o++)r=s[o],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i},t.exports.__esModule=!0,t.exports.default=t.exports},4893:function(t){t.exports=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r},t.exports.__esModule=!0,t.exports.default=t.exports},8452:function(t,e,r){var n=r(3738).default,o=r(2475);t.exports=function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return o(t)},t.exports.__esModule=!0,t.exports.default=t.exports},4633:function(t,e,r){var n=r(3738).default;function o(){"use strict";t.exports=o=function(){return r},t.exports.__esModule=!0,t.exports.default=t.exports;var e,r={},i=Object.prototype,s=i.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",f=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function h(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(e){h=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var o=e&&e.prototype instanceof w?e:w,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:P(t,r,s)}),i}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}r.wrap=p;var y="suspendedStart",b="suspendedYield",v="executing",g="completed",m={};function w(){}function _(){}function S(){}var x={};h(x,c,(function(){return this}));var O=Object.getPrototypeOf,E=O&&O(O(L([])));E&&E!==i&&s.call(E,c)&&(x=E);var j=S.prototype=w.prototype=Object.create(x);function T(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(o,i,a,u){var c=d(t[o],t,i);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&s.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var o;a(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}})}function P(t,r,n){var o=y;return function(i,s){if(o===v)throw Error("Generator is already running");if(o===g){if("throw"===i)throw s;return{value:e,done:!0}}for(n.method=i,n.arg=s;;){var a=n.delegate;if(a){var u=R(a,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var c=d(t,r,n);if("normal"===c.type){if(o=n.done?g:b,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=g,n.method="throw",n.arg=c.arg)}}}function R(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,R(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var s=i.arg;return s?s.done?(r[t.resultName]=s.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):s:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function L(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(s.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(n(t)+" is not iterable")}return _.prototype=S,a(j,"constructor",{value:S,configurable:!0}),a(S,"constructor",{value:_,configurable:!0}),_.displayName=h(S,l,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,S):(t.__proto__=S,h(t,l,"GeneratorFunction")),t.prototype=Object.create(j),t},r.awrap=function(t){return{__await:t}},T(k.prototype),h(k.prototype,f,(function(){return this})),r.AsyncIterator=k,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var s=new k(p(t,e,n,o),i);return r.isGeneratorFunction(e)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},T(j),h(j,l,"Generator"),h(j,c,(function(){return this})),h(j,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=L,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(M),!t)for(var r in this)"t"===r.charAt(0)&&s.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,o){return a.type="throw",a.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=s.call(i,"catchLoc"),c=s.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),M(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;M(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:L(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},r}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},5636:function(t){function e(r,n){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r,n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},9552:function(t,e,r){var n=r(3072);t.exports=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=n(t)););return t},t.exports.__esModule=!0,t.exports.default=t.exports},8053:function(t,e,r){var n=r(2987),o=r(9291),i=r(7122),s=r(7752);t.exports=function(t){return n(t)||o(t)||i(t)||s()},t.exports.__esModule=!0,t.exports.default=t.exports},1132:function(t,e,r){var n=r(5901),o=r(9291),i=r(7122),s=r(1869);t.exports=function(t){return n(t)||o(t)||i(t)||s()},t.exports.__esModule=!0,t.exports.default=t.exports},9045:function(t,e,r){var n=r(3738).default;t.exports=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},7736:function(t,e,r){var n=r(3738).default,o=r(9045);t.exports=function(t){var e=o(t,"string");return"symbol"==n(e)?e:e+""},t.exports.__esModule=!0,t.exports.default=t.exports},3738:function(t){function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},7122:function(t,e,r){var n=r(79);t.exports=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},4756:function(t,e,r){var n=r(4633)();t.exports=n;try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}return r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r(3822)}()}));
2
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.DirectLine=e():t.DirectLine=e()}(self,(function(){return function(){var t={2258:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=function(){var t={};return t.promise=new Promise((function(e,r){t.reject=r,t.resolve=e})),t}},842:function(t,e,r){"use strict";var n=r(4994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=[];return t.forEach((function(t){for(var r=(0,o.default)(t),n=r.extname,i=r.name,s=0,a=t;e.includes(a);)a=[i,"(".concat(++s,")")].filter((function(t){return t})).join(" ")+n;e.push(a)})),e};var o=n(r(4227))},3822:function(t,e,r){"use strict";var n=r(4994),o=r(3738);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DirectLineStreaming",{enumerable:!0,get:function(){return y.DirectLineStreaming}}),e.DirectLine=e.ConnectionStatus=void 0;var i=n(r(1847)),s=n(r(7383)),a=n(r(4579)),u=n(r(3693));r(6378),r(8318);var c=r(3114),f=r(9707),l=r(1518),h=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==o(t)&&"function"!=typeof t)return{default:t};var r=v(e);if(r&&r.has(t))return r.get(t);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var a=i?Object.getOwnPropertyDescriptor(t,s):null;a&&(a.get||a.set)?Object.defineProperty(n,s,a):n[s]=t[s]}return n.default=t,r&&r.set(t,n),n}(r(6765));r(3690),r(3071),r(2166),r(7917),r(3576),r(1239),r(4359),r(2639),r(4983),r(731),r(1734),r(4166),r(4553),r(7033),r(5313),r(5103),r(3783),r(8540);var p,d=n(r(842)),y=r(5592),b=["contentUrl"];function v(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(v=function(t){return t?r:e})(t)}function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function m(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?g(Object(r),!0).forEach((function(e){(0,u.default)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}e.ConnectionStatus=p,function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Connecting=1]="Connecting",t[t.Online=2]="Online",t[t.ExpiredToken=3]="ExpiredToken",t[t.FailedToConnect=4]="FailedToConnect",t[t.Ended=5]="Ended"}(p||(e.ConnectionStatus=p={}));var w=function(t,e){var r=function(){throw new Error("not implemented")};return Object.assign((function(r){return t(r).catch((function(t){if(429===t.status){var r=t.xhr.getResponseHeader("Retry-After"),n=Number(r);if(!isNaN(n))return f.Observable.timer(n,e).flatMap((function(r){return f.Observable.throw(t,e)}))}return f.Observable.throw(t,e)}))}),{get:function(t,e){return r()},post:function(t,e,n){return r()},put:function(t,e,n){return r()},patch:function(t,e,n){return r()},delete:function(t,e){return r()},getJSON:function(t,e){return r()}})},_=new Error("expired token"),S=new Error("conversation ended"),x=new Error("failed to connect"),O=function(t){for(var e,r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];"undefined"!=typeof window&&window.botchatDebug&&t&&(e=console).log.apply(e,[t].concat(n))},E=function(){function t(e){var r,n;(0,s.default)(this,t),(0,u.default)(this,"connectionStatus$",new c.BehaviorSubject(p.Uninitialized)),(0,u.default)(this,"domain","https://directline.botframework.com/v3/directline"),(0,u.default)(this,"watermark",""),(0,u.default)(this,"_botAgent",""),(0,u.default)(this,"timeout",2e4),(0,u.default)(this,"pollingInterval",1e3),this.secret=e.secret,this.token=e.secret||e.token,this.webSocket=(void 0===e.webSocket||e.webSocket)&&"undefined"!=typeof WebSocket&&void 0!==WebSocket,e.conversationStartProperties&&e.conversationStartProperties.locale&&("[object String]"===Object.prototype.toString.call(e.conversationStartProperties.locale)?this.localeOnStartConversation=e.conversationStartProperties.locale:console.warn("DirectLineJS: conversationStartProperties.locale was ignored: the locale name may be a BCP 47 language tag")),e.domain&&(this.domain=e.domain),e.conversationId&&(this.conversationId=e.conversationId),e.watermark&&(this.watermark=e.watermark),e.streamUrl&&(e.token&&e.conversationId?this.streamUrl=e.streamUrl:console.warn("DirectLineJS: streamUrl was ignored: you need to provide a token and a conversationid")),void 0!==e.timeout&&(this.timeout=e.timeout),this.retries=9e5/this.timeout,this._botAgent=this.getBotAgent(e.botAgent),this.services={scheduler:n=(r=e).scheduler||l.async,ajax:w(r.ajax||f.Observable.ajax,n),WebSocket:r.WebSocket||WebSocket,random:r.random||Math.random};var o=~~e.pollingInterval;o<200?void 0!==e.pollingInterval&&console.warn("DirectLineJS: provided pollingInterval (".concat(e.pollingInterval,") is under lower bound (200ms), using default of 1000ms")):this.pollingInterval=o,this.expiredTokenExhaustion=this.setConnectionStatusFallback(p.ExpiredToken,p.FailedToConnect,5),this.activity$=(this.webSocket?this.webSocketActivity$():this.pollingGetActivity$()).share()}return(0,a.default)(t,[{key:"checkConnection",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=this.connectionStatus$.flatMap((function(e){return e===p.Uninitialized?(t.connectionStatus$.next(p.Connecting),t.token&&t.streamUrl?(t.connectionStatus$.next(p.Online),f.Observable.of(e,t.services.scheduler)):t.startConversation().do((function(e){t.conversationId=e.conversationId,t.token=t.secret||e.token,t.streamUrl=e.streamUrl,t.referenceGrammarId=e.referenceGrammarId,t.secret||t.refreshTokenLoop(),t.connectionStatus$.next(p.Online)}),(function(e){t.connectionStatus$.next(p.FailedToConnect)})).map((function(t){return e}))):f.Observable.of(e,t.services.scheduler)})).filter((function(t){return t!=p.Uninitialized&&t!=p.Connecting})).flatMap((function(e){switch(e){case p.Ended:return f.Observable.throw(S,t.services.scheduler);case p.FailedToConnect:return f.Observable.throw(x,t.services.scheduler);case p.ExpiredToken:default:return f.Observable.of(e,t.services.scheduler)}}));return e?r.take(1):r}},{key:"setConnectionStatusFallback",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;r--;var n=0,o=null;return function(i){return i===t&&o===i&&n>=r?(n=0,e):(n++,o=i,i)}}},{key:"expiredToken",value:function(){var t=this.connectionStatus$.getValue();t!=p.Ended&&t!=p.FailedToConnect&&this.connectionStatus$.next(p.ExpiredToken);var e=this.expiredTokenExhaustion(this.connectionStatus$.getValue());this.connectionStatus$.next(e)}},{key:"startConversation",value:function(){var t=this,e=this.conversationId?"".concat(this.domain,"/conversations/").concat(this.conversationId,"?watermark=").concat(this.watermark):"".concat(this.domain,"/conversations"),r=this.conversationId?"GET":"POST",n=this.conversationId?void 0:{user:{id:this.userIdOnStartConversation},locale:this.localeOnStartConversation};return this.services.ajax({method:r,url:e,body:n,timeout:this.timeout,headers:m({Accept:"application/json","Content-Type":"application/json"},this.commonHeaders())}).map((function(t){return t.response})).retryWhen((function(e){return e.mergeMap((function(e){return e.status>=400&&e.status<600?f.Observable.throw(e,t.services.scheduler):f.Observable.of(e,t.services.scheduler)})).delay(t.timeout,t.services.scheduler).take(t.retries)}))}},{key:"refreshTokenLoop",value:function(){var t=this;this.tokenRefreshSubscription=f.Observable.interval(9e5,this.services.scheduler).flatMap((function(e){return t.refreshToken()})).subscribe((function(e){O("refreshing token",e,"at",new Date),t.token=e}))}},{key:"refreshToken",value:function(){var t=this;return this.checkConnection(!0).flatMap((function(e){return t.services.ajax({method:"POST",url:"".concat(t.domain,"/tokens/refresh"),timeout:t.timeout,headers:m({},t.commonHeaders())}).map((function(t){return t.response.token})).retryWhen((function(e){return e.mergeMap((function(e){return 403===e.status?(t.expiredToken(),f.Observable.throw(e,t.services.scheduler)):404===e.status?f.Observable.throw(e,t.services.scheduler):f.Observable.of(e,t.services.scheduler)})).delay(t.timeout,t.services.scheduler).take(t.retries)}))}))}},{key:"reconnect",value:function(t){this.token=t.token,this.streamUrl=t.streamUrl,this.connectionStatus$.getValue()===p.ExpiredToken&&this.connectionStatus$.next(p.Online)}},{key:"end",value:function(){this.tokenRefreshSubscription&&this.tokenRefreshSubscription.unsubscribe();try{this.connectionStatus$.next(p.Ended)}catch(t){if(t===S)return;throw t}}},{key:"getSessionId",value:function(){var t=this;return O("getSessionId"),this.checkConnection(!0).flatMap((function(e){return t.services.ajax({method:"GET",url:"".concat(t.domain,"/session/getsessionid"),withCredentials:!0,timeout:t.timeout,headers:m({"Content-Type":"application/json"},t.commonHeaders())}).map((function(t){return t&&t.response&&t.response.sessionId?(O("getSessionId response: "+t.response.sessionId),t.response.sessionId):""})).catch((function(e){return O("getSessionId error: "+e.status),f.Observable.of("",t.services.scheduler)}))})).catch((function(e){return t.catchExpiredToken(e)}))}},{key:"postActivity",value:function(t){var e=this;return this.userIdOnStartConversation&&t.from&&t.from.id!==this.userIdOnStartConversation&&(console.warn("DirectLineJS: Activity.from.id does not match with user id, ignoring activity.from.id"),t.from.id=this.userIdOnStartConversation),"message"===t.type&&t.attachments&&t.attachments.length>0?this.postMessageWithAttachments(t):(O("postActivity",t),this.checkConnection(!0).flatMap((function(r){return e.services.ajax({method:"POST",url:"".concat(e.domain,"/conversations/").concat(e.conversationId,"/activities"),body:t,timeout:e.timeout,headers:m({"Content-Type":"application/json"},e.commonHeaders())}).map((function(t){return t.response.id})).catch((function(t){return e.catchPostError(t)}))})).catch((function(t){return e.catchExpiredToken(t)})))}},{key:"postMessageWithAttachments",value:function(t){var e,r=this,n=t.attachments,o=(0,d.default)(n.map((function(t){return t.name||"blob"}))),s=n.map((function(t,e){return m(m({},t),{},{name:o[e]})}));return this.checkConnection(!0).flatMap((function(n){return(e=new FormData).append("activity",new Blob([JSON.stringify(m(m({},t),{},{attachments:s.map((function(t){return t.contentUrl,m({},(0,i.default)(t,b))}))}))],{type:"application/vnd.microsoft.activity"})),f.Observable.from(s,r.services.scheduler).flatMap((function(t){return r.services.ajax({method:"GET",url:t.contentUrl,responseType:"arraybuffer"}).do((function(r){return e.append("file",new Blob([r.response],{type:t.contentType}),t.name)}))})).count()})).flatMap((function(n){return r.services.ajax({method:"POST",url:"".concat(r.domain,"/conversations/").concat(r.conversationId,"/upload?userId=").concat(t.from.id),body:e,timeout:r.timeout,headers:m({},r.commonHeaders())}).map((function(t){return t.response.id})).catch((function(t){return r.catchPostError(t)}))})).catch((function(t){return r.catchPostError(t)}))}},{key:"catchPostError",value:function(t){if(403===t.status)this.expiredToken();else if(t.status>=400&&t.status<500)return f.Observable.throw(t,this.services.scheduler);return f.Observable.of("retry",this.services.scheduler)}},{key:"catchExpiredToken",value:function(t){return t===_?f.Observable.of("retry",this.services.scheduler):f.Observable.throw(t,this.services.scheduler)}},{key:"pollingGetActivity$",value:function(){var t=this,e=f.Observable.create((function(e){var r=new c.BehaviorSubject({});r.subscribe((function(){if(t.connectionStatus$.getValue()===p.Online){var n=Date.now();t.services.ajax({headers:m({Accept:"application/json"},t.commonHeaders()),method:"GET",url:"".concat(t.domain,"/conversations/").concat(t.conversationId,"/activities?watermark=").concat(t.watermark),timeout:t.timeout}).subscribe((function(o){e.next(o),setTimeout((function(){return r.next(null)}),Math.max(0,t.pollingInterval-Date.now()+n))}),(function(n){switch(n.status){case 403:t.connectionStatus$.next(p.ExpiredToken),setTimeout((function(){return r.next(null)}),t.pollingInterval);break;case 404:t.connectionStatus$.next(p.Ended);break;default:e.error(n)}}))}}))}));return this.checkConnection().flatMap((function(r){return e.catch((function(){return f.Observable.empty()})).map((function(t){return t.response})).flatMap((function(e){return t.observableFromActivityGroup(e)}))}))}},{key:"observableFromActivityGroup",value:function(t){return t.watermark&&(this.watermark=t.watermark),f.Observable.from(t.activities,this.services.scheduler)}},{key:"webSocketActivity$",value:function(){var t=this;return this.checkConnection().flatMap((function(e){return t.observableWebSocket().retryWhen((function(e){return e.delay(t.getRetryDelay(),t.services.scheduler).mergeMap((function(e){return t.reconnectToConversation()}))}))})).flatMap((function(e){return t.observableFromActivityGroup(e)}))}},{key:"getRetryDelay",value:function(){return Math.floor(3e3+12e3*this.services.random())}},{key:"observableWebSocket",value:function(){var t=this;return f.Observable.create((function(e){O("creating WebSocket",t.streamUrl);var r,n,o=new t.services.WebSocket(t.streamUrl);return o.onopen=function(e){O("WebSocket open",e),r=f.Observable.interval(t.timeout,t.services.scheduler).subscribe((function(t){try{o.send("")}catch(t){O("Ping error",t)}}))},o.onclose=function(t){O("WebSocket close",t),r&&r.unsubscribe(),n||e.error(t),n=!0},o.onerror=function(t){O("WebSocket error",t),r&&r.unsubscribe(),n||e.error(t),n=!0},o.onmessage=function(t){return t.data&&e.next(JSON.parse(t.data))},function(){0!==o.readyState&&1!==o.readyState||o.close()}}))}},{key:"reconnectToConversation",value:function(){var t=this;return this.checkConnection(!0).flatMap((function(e){return t.services.ajax({method:"GET",url:"".concat(t.domain,"/conversations/").concat(t.conversationId,"?watermark=").concat(t.watermark),timeout:t.timeout,headers:m({Accept:"application/json"},t.commonHeaders())}).do((function(e){t.secret||(t.token=e.response.token),t.streamUrl=e.response.streamUrl})).map((function(t){return null})).retryWhen((function(e){return e.mergeMap((function(e){if(403===e.status)t.expiredToken();else if(404===e.status)return f.Observable.throw(S,t.services.scheduler);return f.Observable.of(e,t.services.scheduler)})).delay(t.timeout,t.services.scheduler).take(t.retries)}))}))}},{key:"commonHeaders",value:function(){return{Authorization:"Bearer ".concat(this.token),"x-ms-bot-agent":this._botAgent}}},{key:"getBotAgent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e="directlinejs";return t&&(e+="; ".concat(t)),"".concat("DirectLine/3.0"," (").concat(e," ").concat("0.15.7-master.13f7a42",")")}},{key:"setUserId",value:function(t){if(this.connectionStatus$.getValue()===p.Online)throw new Error("DirectLineJS: It is connected, we cannot set user id.");return this.parseToken(this.token)?console.warn("DirectLineJS: user id is already set in token, will ignore this user id."):/^dl_/.test(t)?console.warn('DirectLineJS: user id prefixed with "dl_" is reserved and must be embedded into the Direct Line token to prevent forgery.'):void(this.userIdOnStartConversation=t)}},{key:"parseToken",value:function(t){try{return(0,h.default)(t).user}catch(t){if(t instanceof h.InvalidTokenError)return}}}]),t}();e.DirectLine=E},5592:function(t,e,r){"use strict";var n=r(4994),o=r(3738);Object.defineProperty(e,"__esModule",{value:!0}),e.DirectLineStreaming=void 0;var i=n(r(1847)),s=n(r(4756)),a=n(r(2591)),u=n(r(2808)),c=n(r(1132)),f=n(r(9293)),l=n(r(7383)),h=n(r(4579)),p=n(r(3693)),d=r(3114),y=r(1545),b=r(9707),v=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==o(t)&&"function"!=typeof t)return{default:t};var r=x(e);if(r&&r.has(t))return r.get(t);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var a=i?Object.getOwnPropertyDescriptor(t,s):null;a&&(a.get||a.set)?Object.defineProperty(n,s,a):n[s]=t[s]}return n.default=t,r&&r.set(t,n),n}(r(8296)),g=n(r(2258)),m=n(r(4945)),w=r(3822),_=n(r(3266)),S=["attachments"];function x(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(x=function(t){return t?r:e})(t)}var O=function(){function t(e,r,n){(0,l.default)(this,t),(0,p.default)(this,"activityQueue",[]),this.subscriber=e,this.connectionStatus$=r,this.shouldQueue=n}var e;return(0,h.default)(t,[{key:"setSubscriber",value:function(t){this.subscriber=t}},{key:"processRequest",value:(e=(0,f.default)(s.default.mark((function t(e,r){var n,o,i,a,u,f,l,h,p;return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=(0,c.default)(e.streams),o=n.shift(),t.next=4,o.readAsString();case 4:if(i=t.sent,1===(a=JSON.parse(i)).activities.length){t.next=9;break}return this.subscriber.error(new Error("there should be exactly one activity")),t.abrupt("return",v.StreamingResponse.create(500));case 9:if(u=a.activities[0],!(n.length>0)){t.next=21;break}f=(0,c.default)(u.attachments);case 12:if(!(l=n.shift())){t.next=20;break}return t.next=15,l.readAsString();case 15:h=t.sent,p="data:text/plain;base64,"+h,f.push({contentType:l.contentType,contentUrl:p}),t.next=12;break;case 20:u.attachments=f;case 21:return this.shouldQueue()?this.activityQueue.push(u):this.subscriber.next(u),t.abrupt("return",v.StreamingResponse.create(200));case 23:case"end":return t.stop()}}),t,this)}))),function(t,r){return e.apply(this,arguments)})},{key:"flush",value:function(){var t=this;this.connectionStatus$.subscribe((function(){})),this.activityQueue.forEach((function(e){return t.subscriber.next(e)})),this.activityQueue=[]}},{key:"end",value:function(){this.subscriber.complete()}}]),t}(),E=new WeakMap,j=function(){function t(e){var r=this;(0,l.default)(this,t),(0,p.default)(this,"connectionStatus$",new d.BehaviorSubject(w.ConnectionStatus.Uninitialized)),(0,p.default)(this,"_botAgent",""),E.set(this,{writable:!0,value:void 0});var n=null==e?void 0:e.networkInformation;void 0===n||"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener&&"string"==typeof n.type?(0,u.default)(this,E,n):console.warn('botframework-directlinejs: "networkInformation" option specified must be a `NetworkInformation`-like instance extending `EventTarget` interface with a `type` property returning a string.'),this.token=e.token,this.refreshToken().catch((function(){r.connectionStatus$.next(w.ConnectionStatus.ExpiredToken)})),this.domain=e.domain,e.conversationId&&(this.conversationId=e.conversationId),this._botAgent=this.getBotAgent(e.botAgent),this.queueActivities=!0,this.activity$=b.Observable.create(function(){var t=(0,f.default)(s.default.mark((function t(e){return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r.activitySubscriber=e,r.theStreamHandler=new O(e,r.connectionStatus$,(function(){return r.queueActivities})),r.connectDeferred.resolve();case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).share(),this.connectWithRetryAsync()}var e,r,n,o;return(0,h.default)(t,[{key:"reconnect",value:function(t){var e=t.conversationId,r=t.token;if(this.connectionStatus$.getValue()===w.ConnectionStatus.Ended)throw new Error("Connection has ended.");this.conversationId=e,this.token=r,this.connectDeferred.resolve()}},{key:"end",value:function(){this.activitySubscriber.complete(),this.connectionStatus$.next(w.ConnectionStatus.Ended),this.connectionStatus$.complete(),this.streamConnection.disconnect()}},{key:"commonHeaders",value:function(){return{Authorization:"Bearer ".concat(this.token),"x-ms-bot-agent":this._botAgent}}},{key:"getBotAgent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e="directlineStreaming";return t&&(e+="; ".concat(t)),"".concat("DirectLine/3.0"," (").concat(e,")")}},{key:"refreshToken",value:(o=(0,f.default)(s.default.mark((function t(){var e,r,n,o;return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=4,this.waitUntilOnline();case 4:e=0;case 5:if(!(e<3)){t.next=30;break}return e++,t.next=9,new Promise((function(t){return setTimeout(t,9e5)}));case 9:return t.prev=9,t.next=12,(0,m.default)("".concat(this.domain,"/tokens/refresh"),{method:"POST",headers:this.commonHeaders()});case 12:if(!(r=t.sent).ok){t.next=22;break}return e=0,t.next=17,r.json();case 17:n=t.sent,o=n.token,this.token=o,t.next=23;break;case 22:403===r.status||403===r.status?(console.error("Fatal error while refreshing the token: ".concat(r.status," ").concat(r.statusText)),this.streamConnection.disconnect()):console.warn("Refresh attempt #".concat(e," failed: ").concat(r.status," ").concat(r.statusText));case 23:t.next=28;break;case 25:t.prev=25,t.t0=t.catch(9),console.warn("Refresh attempt #".concat(e," threw an exception: ").concat(t.t0));case 28:t.next=5;break;case 30:console.error("Retries exhausted"),this.streamConnection.disconnect();case 32:case"end":return t.stop()}}),t,this,[[9,25]])}))),function(){return o.apply(this,arguments)})},{key:"postActivity",value:function(t){var e=this;if(this.connectionStatus$.value===w.ConnectionStatus.Ended||this.connectionStatus$.value===w.ConnectionStatus.FailedToConnect)return b.Observable.throw(new Error("Connection is closed"));if("message"===t.type&&t.attachments&&t.attachments.length>0)return this.postMessageWithAttachments(t);var r=b.Observable.create(function(){var r=(0,f.default)(s.default.mark((function r(n){var o,i,a,u,c,f;return s.default.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(o=v.StreamingRequest.create("POST","/v3/directline/conversations/"+e.conversationId+"/activities")).setBody(JSON.stringify(t)),r.prev=2,r.next=5,e.streamConnection.send(o);case 5:if(200===(i=r.sent).statusCode){r.next=8;break}throw new Error("PostActivity returned "+i.statusCode);case 8:if(1===(a=i.streams.length)){r.next=11;break}throw new Error("Expected one stream but got "+a);case 11:return r.next=13,i.streams[0].readAsString();case 13:return u=r.sent,c=JSON.parse(u),f=c.Id,n.next(f),r.abrupt("return",n.complete());case 19:return r.prev=19,r.t0=r.catch(2),console.warn(r.t0),e.streamConnection.disconnect(),r.abrupt("return",n.error(r.t0));case 24:case"end":return r.stop()}}),r,null,[[2,19]])})));return function(t){return r.apply(this,arguments)}}());return r}},{key:"postMessageWithAttachments",value:function(t){var e=this,r=t.attachments,n=(0,i.default)(t,S);return b.Observable.create((function(t){var o=[];(0,f.default)(s.default.mark((function i(){var a,u,c,l,h,p;return s.default.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,Promise.all(r.map(function(){var t=(0,f.default)(s.default.mark((function t(e){var r,n;return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e,t.next=3,(0,m.default)(r.contentUrl);case 3:if(!(n=t.sent).ok){t.next=12;break}return t.next=7,n.arrayBuffer();case 7:return t.t0=t.sent,t.t1=r,t.abrupt("return",{arrayBuffer:t.t0,media:t.t1});case 12:throw new Error("...");case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 3:return i.sent.forEach((function(t){var e=t.arrayBuffer,r=t.media,n=y.Buffer.from(e),i=new v.SubscribableStream;i.write(n);var s=new v.HttpContent({type:r.contentType,contentLength:n.length},i);o.push(s)})),a="/v3/directline/conversations/".concat(e.conversationId,"/users/").concat(n.from.id,"/upload"),u=v.StreamingRequest.create("PUT",a),(c=new v.SubscribableStream).write(JSON.stringify(n),"utf-8"),u.addStream(new v.HttpContent({type:"application/vnd.microsoft.activity",contentLength:c.length},c)),o.forEach((function(t){return u.addStream(t)})),i.next=13,e.streamConnection.send(u);case 13:if(!(l=i.sent).streams||1===l.streams.length){i.next=18;break}t.error(new Error("Invalid stream count ".concat(l.streams.length))),i.next=24;break;case 18:return i.next=20,l.streams[0].readAsJson();case 20:h=i.sent,p=h.Id,t.next(p),t.complete();case 24:i.next=29;break;case 26:i.prev=26,i.t0=i.catch(0),t.error(i.t0);case 29:case"end":return i.stop()}}),i,null,[[0,26]])})))()}))}},{key:"waitUntilOnline",value:(n=(0,f.default)(s.default.mark((function t(){var e=this;return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,r){e.connectionStatus$.subscribe((function(e){if(e===w.ConnectionStatus.Online)return t()}),(function(t){return r(t)}))})));case 1:case"end":return t.stop()}}),t)}))),function(){return n.apply(this,arguments)})},{key:"connectAsync",value:(r=(0,f.default)(s.default.mark((function t(){var e,r,n,o,i,u=this;return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((e=new RegExp("^http(s?)")).test(this.domain)){t.next=3;break}throw"Domain must begin with http or https";case 3:return r={token:this.token},this.conversationId&&(r.conversationId=this.conversationId),n=new AbortController,o=new URLSearchParams(r).toString(),i="".concat(this.domain.replace(e,"ws$1"),"/conversations/connect?").concat(o),t.abrupt("return",new Promise(function(){var t=(0,f.default)(s.default.mark((function t(e,r){var o,c,f,l;return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,u.streamConnection=new _.default({disconnectionHandler:e,networkInformation:(0,a.default)(u,E),requestHandler:{processRequest:function(t){if(n.signal.aborted)throw new Error("Cannot process streaming request, `streamingConnection` should be disconnected.");return u.theStreamHandler.processRequest(t)}},url:i}),u.queueActivities=!0,t.next=5,u.streamConnection.connect();case 5:return o=v.StreamingRequest.create("POST","/v3/directline/conversations"),t.next=8,u.streamConnection.send(o);case 8:if(200===(c=t.sent).statusCode){t.next=11;break}throw new Error("Connection response code "+c.statusCode);case 11:if(1===c.streams.length){t.next=13;break}throw new Error("Expected 1 stream but got "+c.streams.length);case 13:return t.next=15,c.streams[0].readAsString();case 15:return f=t.sent,l=JSON.parse(f),u.conversationId=l.conversationId,u.connectionStatus$.next(w.ConnectionStatus.Online),t.next=21,u.waitUntilOnline();case 21:u.theStreamHandler.flush(),u.queueActivities=!1,t.next=28;break;case 25:t.prev=25,t.t0=t.catch(0),r(t.t0);case 28:case"end":return t.stop()}}),t,null,[[0,25]])})));return function(e,r){return t.apply(this,arguments)}}()).finally((function(){return n.abort()})));case 9:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"connectWithRetryAsync",value:(e=(0,f.default)(s.default.mark((function t(){var e,r,n=this;return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(this.connectDeferred=(0,g.default)()).promise;case 2:e=3,this.connectionStatus$.next(w.ConnectionStatus.Connecting);case 4:if(!(e>0)){t.next=27;break}return e--,r=Date.now(),t.prev=7,t.next=10,this.connectAsync();case 10:t.next=15;break;case 12:t.prev=12,t.t0=t.catch(7),console.error(t.t0);case 15:if(this.connectionStatus$.getValue()!==w.ConnectionStatus.Ended){t.next=17;break}return t.abrupt("return");case 17:if(this.connectionStatus$.getValue()!==w.ConnectionStatus.Connecting&&this.connectionStatus$.next(w.ConnectionStatus.Connecting),!(6e4<Date.now()-r)){t.next=22;break}e=3,t.next=25;break;case 22:if(!(e>0)){t.next=25;break}return t.next=25,new Promise((function(t){return setTimeout(t,n.getRetryDelay())}));case 25:t.next=4;break;case 27:this.connectionStatus$.next(w.ConnectionStatus.FailedToConnect);case 28:t.next=0;break;case 30:case"end":return t.stop()}}),t,this,[[7,12]])}))),function(){return e.apply(this,arguments)})},{key:"getRetryDelay",value:function(){return Math.floor(3e3+12e3*Math.random())}}]),t}();e.DirectLineStreaming=j},4227:function(t,e,r){"use strict";var n=r(4994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if(t){if(~t.indexOf(".")){var e=t.split(".").reverse(),r=(0,o.default)(e);return{extname:"."+r[0],name:r.slice(1).reverse().join(".")}}return{extname:"",name:t}}return{extname:"",name:""}};var o=n(r(8053))},3266:function(t,e,r){"use strict";var n=r(4994);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(r(7383)),i=n(r(4579)),s=n(r(2475)),a=n(r(2395)),u=n(r(9511)),c=n(r(8452)),f=n(r(3072)),l=n(r(2591)),h=n(r(2808)),p=r(8296);var d=new WeakMap,y=new WeakMap,b=new WeakMap,v=new WeakMap,g=function(t){(0,u.default)(p,t);var e,r,n=(e=p,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=(0,f.default)(e);if(r){var o=(0,f.default)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,c.default)(this,t)});function p(t){var e,r=t.disconnectionHandler,i=t.networkInformation,a=t.requestHandler,u=t.url;return(0,o.default)(this,p),e=n.call(this,{disconnectionHandler:r,requestHandler:a,url:u}),d.set((0,s.default)(e),{writable:!0,value:!1}),y.set((0,s.default)(e),{writable:!0,value:function(){return(0,l.default)((0,s.default)(e),b)===(0,l.default)((0,s.default)(e),v).type||e.disconnect()}}),b.set((0,s.default)(e),{writable:!0,value:void 0}),v.set((0,s.default)(e),{writable:!0,value:void 0}),(0,h.default)((0,s.default)(e),v,i),e}return(0,i.default)(p,[{key:"connect",value:function(){if((0,l.default)(this,d))return console.warn("botframework-directlinejs: connect() can only be called once."),Promise.resolve();if((0,h.default)(this,d,!0),(0,l.default)(this,v)){var t=(0,l.default)(this,v).type;if((0,h.default)(this,b,t),"none"===t)return console.warn("botframework-directlinejs: Failed to connect while offline."),Promise.reject(new Error("botframework-directlinejs: Failed to connect while offline."));(0,l.default)(this,v).addEventListener("change",(0,l.default)(this,y))}return(0,a.default)((0,f.default)(p.prototype),"connect",this).call(this)}},{key:"disconnect",value:function(){var t;null===(t=(0,l.default)(this,v))||void 0===t||t.removeEventListener("change",(0,l.default)(this,y)),(0,a.default)((0,f.default)(p.prototype),"disconnect",this).call(this)}}]),p}(p.WebSocketClient);e.default=g},8296:function(t,e,r){"use strict";var n,o,i,s,a=r(4994)(r(3738));s=function(){return function t(e,r,n){function o(s,a){if(!r[s]){if(!e[s]){if(i)return i(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var c=r[s]={exports:{}};e[s][0].call(c.exports,(function(t){return o(e[s][1][t]||t)}),c,c.exports,t,e,r,n)}return r[s].exports}for(var i=void 0,s=0;s<n.length;s++)o(n[s]);return o}({1:[function(t,e,r){var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.PayloadAssembler=void 0;var i=t("../subscribableStream"),s=t("../payloads"),a=t("../contentStream"),u=function(){function t(t,e){if(this.streamManager=t,this._byteOrderMark=65279,this._utf="utf8",e.header?(this.id=e.header.id,this.payloadType=e.header.payloadType,this.contentLength=e.header.payloadLength,this.end=e.header.end):this.id=e.id,!this.id)throw Error("An ID must be supplied when creating an assembler.");this._onCompleted=e.onCompleted}return t.prototype.getPayloadStream=function(){return this.stream||(this.stream=this.createPayloadStream()),this.stream},t.prototype.onReceive=function(t,e,r){this.end=t.end,t.payloadType===s.PayloadTypes.response||t.payloadType===s.PayloadTypes.request?this.process(e).then().catch():t.end&&e.end()},t.prototype.close=function(){this.streamManager.closeStream(this.id)},t.prototype.createPayloadStream=function(){return new i.SubscribableStream},t.prototype.payloadFromJson=function(t){return JSON.parse(t.charCodeAt(0)===this._byteOrderMark?t.slice(1):t)},t.prototype.stripBOM=function(t){return t.charCodeAt(0)===this._byteOrderMark?t.slice(1):t},t.prototype.process=function(t){return n(this,void 0,void 0,(function(){var e,r;return o(this,(function(n){switch(n.label){case 0:return(e=t.read(t.length))?(r=e.toString(this._utf),this.payloadType!==s.PayloadTypes.request?[3,2]:[4,this.processRequest(r)]):[2];case 1:return n.sent(),[3,4];case 2:return this.payloadType!==s.PayloadTypes.response?[3,4]:[4,this.processResponse(r)];case 3:n.sent(),n.label=4;case 4:return[2]}}))}))},t.prototype.processResponse=function(t){return n(this,void 0,void 0,(function(){var e,r;return o(this,(function(n){switch(n.label){case 0:return e=this.payloadFromJson(this.stripBOM(t)),r={streams:[],statusCode:e.statusCode},[4,this.processStreams(e,r)];case 1:return n.sent(),[2]}}))}))},t.prototype.processRequest=function(t){return n(this,void 0,void 0,(function(){var e,r;return o(this,(function(n){switch(n.label){case 0:return e=this.payloadFromJson(t),r={streams:[],path:e.path,verb:e.verb},[4,this.processStreams(e,r)];case 1:return n.sent(),[2]}}))}))},t.prototype.processStreams=function(t,e){var r;return n(this,void 0,void 0,(function(){var n=this;return o(this,(function(o){switch(o.label){case 0:return null===(r=t.streams)||void 0===r||r.forEach((function(t){var r,o=null!==(r=t.type)&&void 0!==r?r:t.contentType,i=n.streamManager.getPayloadAssembler(t.id);i.payloadType=o,i.contentLength=t.length,e.streams.push(new a.ContentStream(t.id,i))})),[4,this._onCompleted(this.id,e)];case 1:return o.sent(),[2]}}))}))},t}();r.PayloadAssembler=u},{"../contentStream":2,"../payloads":16,"../subscribableStream":27}],2:[function(t,e,r){var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.ContentStream=void 0;var i=function(){function t(t,e){if(!e)throw Error("Null Argument Exception");this.id=t,this.assembler=e}return Object.defineProperty(t.prototype,"contentType",{get:function(){return this.assembler.payloadType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this.assembler.contentLength},enumerable:!1,configurable:!0}),t.prototype.getStream=function(){return this.stream||(this.stream=this.assembler.getPayloadStream()),this.stream},t.prototype.cancel=function(){this.assembler.close()},t.prototype.readAsString=function(){return n(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.readAll()];case 1:return[2,(t.sent().bufferArray||[]).map((function(t){return t.toString("utf8")})).join("")]}}))}))},t.prototype.readAsJson=function(){return n(this,void 0,void 0,(function(){var t;return o(this,(function(e){switch(e.label){case 0:return[4,this.readAsString()];case 1:return t=e.sent(),[2,JSON.parse(t)]}}))}))},t.prototype.readAll=function(){return n(this,void 0,void 0,(function(){var t,e,r,n,i,s=this;return o(this,(function(o){switch(o.label){case 0:for(t=[],e=0,r=this.getStream();e<r.length;)n=r.read(r.length),t.push(n),e+=n.length;return e<this.length?(i=new Promise((function(n){var o;r.subscribe((o=s,function(r){t.push(r),(e+=r.length)===o.length&&n(!0)}))})),[4,i]):[3,2];case 1:o.sent(),o.label=2;case 2:return[2,{bufferArray:t,size:e}]}}))}))},t}();r.ContentStream=i},{}],3:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.CancelDisassembler=void 0;var n=function(){function t(t,e,r){this.sender=t,this.id=e,this.payloadType=r}return t.prototype.disassemble=function(){var t={payloadType:this.payloadType,payloadLength:0,id:this.id,end:!0};this.sender.sendPayload(t)},t}();r.CancelDisassembler=n},{}],4:[function(t,e,r){var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.HttpContentStreamDisassembler=void 0;var a=t("./payloadDisassembler"),u=t("../payloads"),c=function(t){function e(e,r){var n=t.call(this,e,r.id)||this;return n.payloadType=u.PayloadTypes.stream,n.contentStream=r,n}return o(e,t),e.prototype.getStream=function(){return i(this,void 0,void 0,(function(){var t;return s(this,(function(e){return[2,{stream:t=this.contentStream.content.getStream(),streamLength:t.length}]}))}))},e}(a.PayloadDisassembler);r.HttpContentStreamDisassembler=c},{"../payloads":16,"./payloadDisassembler":5}],5:[function(t,e,r){var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.PayloadDisassembler=void 0;var i=t("../subscribableStream"),s=function(){function t(t,e){this.sender=t,this.id=e}return t.serialize=function(t){var e=new i.SubscribableStream;return e.write(JSON.stringify(t)),e.end(),{stream:e,streamLength:e.length}},t.prototype.disassemble=function(){return n(this,void 0,void 0,(function(){var t,e,r;return o(this,(function(n){switch(n.label){case 0:return[4,this.getStream()];case 1:return t=n.sent(),e=t.stream,r=t.streamLength,this.stream=e,this.streamLength=r,[2,this.send()]}}))}))},t.prototype.send=function(){return n(this,void 0,void 0,(function(){var t;return o(this,(function(e){return t={payloadType:this.payloadType,payloadLength:this.streamLength,id:this.id,end:!0},this.sender.sendPayload(t,this.stream),[2]}))}))},t}();r.PayloadDisassembler=s},{"../subscribableStream":27}],6:[function(t,e,r){var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.RequestDisassembler=void 0;var a=t("../payloads/payloadTypes"),u=t("./payloadDisassembler"),c=function(t){function e(e,r,n){var o=t.call(this,e,r)||this;return o.request=n,o.payloadType=a.PayloadTypes.request,o}return o(e,t),e.prototype.getStream=function(){var t,e,r,n;return i(this,void 0,void 0,(function(){var o;return s(this,(function(i){return o={verb:null===(t=this.request)||void 0===t?void 0:t.verb,path:null===(e=this.request)||void 0===e?void 0:e.path,streams:[]},null===(n=null===(r=this.request)||void 0===r?void 0:r.streams)||void 0===n||n.forEach((function(t){o.streams.push(t.description)})),[2,u.PayloadDisassembler.serialize(o)]}))}))},e}(u.PayloadDisassembler);r.RequestDisassembler=c},{"../payloads/payloadTypes":19,"./payloadDisassembler":5}],7:[function(t,e,r){var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))},s=this&&this.__generator||function(t,e){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.ResponseDisassembler=void 0;var a=t("../payloads/payloadTypes"),u=t("./payloadDisassembler"),c=function(t){function e(e,r,n){var o=t.call(this,e,r)||this;return o.payloadType=a.PayloadTypes.response,o.response=n,o}return o(e,t),e.prototype.getStream=function(){var t;return i(this,void 0,void 0,(function(){var e;return s(this,(function(r){return e={statusCode:this.response.statusCode,streams:[]},null===(t=this.response.streams)||void 0===t||t.forEach((function(t){var r=t.description;e.streams.push({id:r.id,contentType:r.type,length:r.length})})),[2,u.PayloadDisassembler.serialize(e)]}))}))},e}(u.PayloadDisassembler);r.ResponseDisassembler=c},{"../payloads/payloadTypes":19,"./payloadDisassembler":5}],8:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.HttpContent=r.HttpContentStream=void 0;var n=t("./utilities/protocol-base");r.HttpContentStream=function(t){var e,r,o,i,s,a;this.content=t,this.id=(0,n.generateGuid)(),this.description={id:this.id,type:null!==(o=null===(r=null===(e=this.content)||void 0===e?void 0:e.headers)||void 0===r?void 0:r.type)&&void 0!==o?o:"unknown",length:null!==(a=null===(s=null===(i=this.content)||void 0===i?void 0:i.headers)||void 0===s?void 0:s.contentLength)&&void 0!==a?a:0}};var o=function(){function t(t,e){this.headers=t,this.stream=e}return t.prototype.getStream=function(){return this.stream},t}();r.HttpContent=o},{"./utilities/protocol-base":28}],9:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.WebSocketClient=r.BrowserWebSocket=r.SubscribableStream=r.StreamingResponse=r.StreamingRequest=r.RequestHandler=r.HttpContent=r.ContentStream=void 0;var n=t("./contentStream");Object.defineProperty(r,"ContentStream",{enumerable:!0,get:function(){return n.ContentStream}});var o=t("./httpContentStream");Object.defineProperty(r,"HttpContent",{enumerable:!0,get:function(){return o.HttpContent}});var i=t("./requestHandler");Object.defineProperty(r,"RequestHandler",{enumerable:!0,get:function(){return i.RequestHandler}});var s=t("./streamingRequest");Object.defineProperty(r,"StreamingRequest",{enumerable:!0,get:function(){return s.StreamingRequest}});var a=t("./streamingResponse");Object.defineProperty(r,"StreamingResponse",{enumerable:!0,get:function(){return a.StreamingResponse}});var u=t("./subscribableStream");Object.defineProperty(r,"SubscribableStream",{enumerable:!0,get:function(){return u.SubscribableStream}});var c=t("./webSocket/index-browser");Object.defineProperty(r,"BrowserWebSocket",{enumerable:!0,get:function(){return c.BrowserWebSocket}}),Object.defineProperty(r,"WebSocketClient",{enumerable:!0,get:function(){return c.WebSocketClient}})},{"./contentStream":2,"./httpContentStream":8,"./requestHandler":24,"./streamingRequest":25,"./streamingResponse":26,"./subscribableStream":27,"./webSocket/index-browser":31}],10:[function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(r,"__esModule",{value:!0}),o(t("./payloadReceiver"),r),o(t("./payloadSender"),r),o(t("./transportDisconnectedEvent"),r),o(t("./transportDisconnectedEventHandler"),r)},{"./payloadReceiver":11,"./payloadSender":12,"./transportDisconnectedEvent":13,"./transportDisconnectedEventHandler":14}],11:[function(t,e,r){var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.PayloadReceiver=void 0;var i=t("../payloads/payloadTypes"),s=t("../payloads/headerSerializer"),a=t("../payloads/payloadConstants"),u=t("./transportDisconnectedEvent"),c=function(){function t(){}return Object.defineProperty(t.prototype,"isConnected",{get:function(){return null!=this._receiver},enumerable:!1,configurable:!0}),t.prototype.connect=function(t){return this._receiver=t,this.receivePackets()},t.prototype.subscribe=function(t,e){this._getStream=t,this._receiveAction=e},t.prototype.disconnect=function(t){var e,r;if(void 0===t&&(t=u.TransportDisconnectedEvent.Empty),this.isConnected)try{this._receiver.close(),null===(e=this.disconnected)||void 0===e||e.call(this,this,t)}catch(t){null===(r=this.disconnected)||void 0===r||r.call(this,this,new u.TransportDisconnectedEvent(t.message))}finally{this._receiver=null}},t.prototype.receivePackets=function(){return n(this,void 0,void 0,(function(){var t,e,r,n,c,f,l,h,p;return o(this,(function(o){switch(o.label){case 0:if(!this.isConnected)return[3,11];o.label=1;case 1:o.trys.push([1,9,,10]),t=0,o.label=2;case 2:return t<a.PayloadConstants.MaxHeaderLength?(e=this,[4,this._receiver.receive(a.PayloadConstants.MaxHeaderLength-t)]):[3,4];case 3:return e._receiveHeaderBuffer=o.sent(),this._receiveHeaderBuffer&&(t+=this._receiveHeaderBuffer.length),[3,2];case 4:if(r=s.HeaderSerializer.deserialize(this._receiveHeaderBuffer),n=r.payloadType===i.PayloadTypes.stream,!(r.payloadLength>0))return[3,8];c=0,f=this._getStream(r),o.label=5;case 5:return c<r.payloadLength&&c<a.PayloadConstants.MaxPayloadLength?(l=Math.min(r.payloadLength-c,a.PayloadConstants.MaxPayloadLength),h=this,[4,this._receiver.receive(l)]):[3,7];case 6:return h._receivePayloadBuffer=o.sent(),c+=this._receivePayloadBuffer.byteLength,f.write(this._receivePayloadBuffer),n&&this._receiveAction(r,f,c),[3,5];case 7:n||this._receiveAction(r,f,c),o.label=8;case 8:return[3,10];case 9:return p=o.sent(),this.disconnect(new u.TransportDisconnectedEvent(p.message)),[3,10];case 10:return[3,0];case 11:return[2]}}))}))},t}();r.PayloadReceiver=c},{"../payloads/headerSerializer":15,"../payloads/payloadConstants":18,"../payloads/payloadTypes":19,"./transportDisconnectedEvent":13}],12:[function(t,e,r){(function(e){(function(){Object.defineProperty(r,"__esModule",{value:!0}),r.PayloadSender=void 0;var n=t("../payloads/headerSerializer"),o=t("../payloads/payloadConstants"),i=t("./transportDisconnectedEvent"),s=function(){function t(){}return Object.defineProperty(t.prototype,"isConnected",{get:function(){return null!=this._sender},enumerable:!1,configurable:!0}),t.prototype.connect=function(t){this._sender=t},t.prototype.sendPayload=function(t,e,r){var n={header:t,payload:e,sentCallback:r};this.writePacket(n)},t.prototype.disconnect=function(t){var e,r;if(void 0===t&&(t=i.TransportDisconnectedEvent.Empty),this.isConnected)try{this._sender.close(),null===(e=this.disconnected)||void 0===e||e.call(this,this,t)}catch(t){null===(r=this.disconnected)||void 0===r||r.call(this,this,new i.TransportDisconnectedEvent(t.message))}finally{this._sender=null}},t.prototype.writePacket=function(t){try{if(t.header.payloadLength>0&&t.payload){for(var r=t.header.payloadLength;r>0;){var s=r<=o.PayloadConstants.MaxPayloadLength?r:o.PayloadConstants.MaxPayloadLength,a=t.payload.read(s),u=t.header;u.payloadLength=s,u.end=r<=o.PayloadConstants.MaxPayloadLength;var c=e.alloc(o.PayloadConstants.MaxHeaderLength);n.HeaderSerializer.serialize(u,c),this._sender.send(c),this._sender.send(a),r-=a.length}t.sentCallback&&t.sentCallback()}}catch(t){this.disconnect(new i.TransportDisconnectedEvent(t.message))}},t}();r.PayloadSender=s}).call(this)}).call(this,t("buffer").Buffer)},{"../payloads/headerSerializer":15,"../payloads/payloadConstants":18,"./transportDisconnectedEvent":13,buffer:35}],13:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TransportDisconnectedEvent=void 0;var n=function(){function t(t){this.reason=t}return t.Empty=new t,t}();r.TransportDisconnectedEvent=n},{}],14:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0})},{}],15:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.HeaderSerializer=void 0;var n=t("./payloadConstants"),o=function(){function t(){}return t.serialize=function(t,e){e.write(t.payloadType,this.TypeOffset,1,this.Encoding),e.write(this.Delimiter,this.TypeDelimiterOffset,1,this.Encoding),e.write(this.headerLengthPadder(t.payloadLength,this.LengthLength,"0"),this.LengthOffset,this.LengthLength,this.Encoding),e.write(this.Delimiter,this.LengthDelimeterOffset,1,this.Encoding),e.write(t.id,this.IdOffset),e.write(this.Delimiter,this.IdDelimeterOffset,1,this.Encoding),e.write(t.end?this.End:this.NotEnd,this.EndOffset),e.write(this.Terminator,this.TerminatorOffset)},t.deserialize=function(t){var e=t.toString(this.Encoding),r=e.split(this.Delimiter);if(4!==r.length)throw Error("Cannot parse header, header is malformed. Header: ".concat(e));var o=r[0],i=r[1],s=r[2],a=r[3],u={end:"1\n"===a,payloadLength:Number(i),payloadType:o,id:s};if(!(u.payloadLength<=n.PayloadConstants.MaxPayloadLength&&u.payloadLength>=n.PayloadConstants.MinLength))throw Error("Header length of ".concat(u.payloadLength," is missing or malformed"));if(u.payloadType.length!==this.TypeDelimiterOffset)throw Error("Header type '".concat(u.payloadType.length,"' is missing or malformed."));if(!u.id||!u.id.match(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i)||u.id.length!==this.IdLength)throw Error("Header ID '".concat(u.id,"' is missing or malformed."));if("0\n"!==a&&"1\n"!==a)throw Error("Header End is missing or not a valid value. Header end: '".concat(a,"'"));return u},t.headerLengthPadder=function(t,e,r){var n=Array(e+1).join(r),o=t.toString();return(n+o).slice(o.length)},t.Delimiter=".",t.Terminator="\n",t.End="1",t.NotEnd="0",t.TypeOffset=0,t.TypeDelimiterOffset=1,t.LengthOffset=2,t.LengthLength=6,t.LengthDelimeterOffset=8,t.IdOffset=9,t.IdLength=36,t.IdDelimeterOffset=45,t.EndOffset=46,t.TerminatorOffset=47,t.Encoding="utf8",t}();r.HeaderSerializer=o},{"./payloadConstants":18}],16:[function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(r,"__esModule",{value:!0}),o(t("./headerSerializer"),r),o(t("./streamManager"),r),o(t("./payloadAssemblerManager"),r),o(t("./payloadTypes"),r),o(t("./requestManager"),r),o(t("./sendOperations"),r),o(t("./streamManager"),r)},{"./headerSerializer":15,"./payloadAssemblerManager":17,"./payloadTypes":19,"./requestManager":20,"./sendOperations":21,"./streamManager":22}],17:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.PayloadAssemblerManager=void 0;var n=t("../assemblers/payloadAssembler"),o=t("./payloadTypes"),i=function(){function t(t,e,r){this.streamManager=t,this.onReceiveResponse=e,this.onReceiveRequest=r,this.activeAssemblers={}}return t.prototype.getPayloadStream=function(t){if(t.payloadType===o.PayloadTypes.stream)return this.streamManager.getPayloadStream(t);if(!this.activeAssemblers[t.id]){var e=this.createPayloadAssembler(t);if(e)return this.activeAssemblers[t.id]=e,e.getPayloadStream()}},t.prototype.onReceive=function(t,e,r){t.payloadType===o.PayloadTypes.stream?this.streamManager.onReceive(t,e,r):(this.activeAssemblers&&this.activeAssemblers[t.id]&&this.activeAssemblers[t.id].onReceive(t,e,r),t.end&&delete this.activeAssemblers[t.id])},t.prototype.createPayloadAssembler=function(t){return t.payloadType===o.PayloadTypes.request?new n.PayloadAssembler(this.streamManager,{header:t,onCompleted:this.onReceiveRequest}):t.payloadType===o.PayloadTypes.response?new n.PayloadAssembler(this.streamManager,{header:t,onCompleted:this.onReceiveResponse}):void 0},t}();r.PayloadAssemblerManager=i},{"../assemblers/payloadAssembler":1,"./payloadTypes":19}],18:[function(t,e,r){var n;Object.defineProperty(r,"__esModule",{value:!0}),r.PayloadConstants=void 0,(n=r.PayloadConstants||(r.PayloadConstants={}))[n.MaxPayloadLength=4096]="MaxPayloadLength",n[n.MaxHeaderLength=48]="MaxHeaderLength",n[n.MaxLength=999999]="MaxLength",n[n.MinLength=0]="MinLength"},{}],19:[function(t,e,r){var n;Object.defineProperty(r,"__esModule",{value:!0}),r.PayloadTypes=void 0,(n=r.PayloadTypes||(r.PayloadTypes={})).request="A",n.response="B",n.stream="S",n.cancelAll="X",n.cancelStream="C"},{}],20:[function(t,e,r){var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.RequestManager=void 0;var i=function(){},s=function(){function t(){this._pendingRequests={}}return t.prototype.pendingRequestCount=function(){return Object.keys(this._pendingRequests).length},t.prototype.signalResponse=function(t,e){return n(this,void 0,void 0,(function(){var r;return o(this,(function(n){return(r=this._pendingRequests[t])?(r.resolve(e),delete this._pendingRequests[t],[2,!0]):[2,!1]}))}))},t.prototype.getResponse=function(t){var e=this._pendingRequests[t];if(e)return Promise.reject("requestId '".concat(t,"' already exists in RequestManager"));(e=new i).requestId=t;var r=new Promise((function(t,r){e.resolve=t,e.reject=r}));return this._pendingRequests[t]=e,r},t.prototype.rejectAllResponses=function(t){var e=this;Object.entries(this._pendingRequests).forEach((function(r){var n=r[0];(0,r[1].reject)(t),delete e._pendingRequests[n]}))},t}();r.RequestManager=s},{}],21:[function(t,e,r){var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.SendOperations=void 0;var i=t("../disassemblers/cancelDisassembler"),s=t("../disassemblers/httpContentStreamDisassembler"),a=t("../disassemblers/requestDisassembler"),u=t("../disassemblers/responseDisassembler"),c=t("./payloadTypes"),f=function(){function t(t){this.payloadSender=t}return t.prototype.sendRequest=function(t,e){return n(this,void 0,void 0,(function(){var r=this;return o(this,(function(i){switch(i.label){case 0:return[4,new a.RequestDisassembler(this.payloadSender,t,e).disassemble()];case 1:return i.sent(),e.streams&&e.streams.forEach((function(t){return n(r,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,new s.HttpContentStreamDisassembler(this.payloadSender,t).disassemble()];case 1:return e.sent(),[2]}}))}))})),[2]}}))}))},t.prototype.sendResponse=function(t,e){return n(this,void 0,void 0,(function(){var r=this;return o(this,(function(i){switch(i.label){case 0:return[4,new u.ResponseDisassembler(this.payloadSender,t,e).disassemble()];case 1:return i.sent(),e.streams&&e.streams.forEach((function(t){return n(r,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,new s.HttpContentStreamDisassembler(this.payloadSender,t).disassemble()];case 1:return e.sent(),[2]}}))}))})),[2]}}))}))},t.prototype.sendCancelStream=function(t){return n(this,void 0,void 0,(function(){return o(this,(function(e){return new i.CancelDisassembler(this.payloadSender,t,c.PayloadTypes.cancelStream).disassemble(),[2]}))}))},t}();r.SendOperations=f},{"../disassemblers/cancelDisassembler":3,"../disassemblers/httpContentStreamDisassembler":4,"../disassemblers/requestDisassembler":6,"../disassemblers/responseDisassembler":7,"./payloadTypes":19}],22:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.StreamManager=void 0;var n=t("../assemblers/payloadAssembler"),o=function(){function t(t){this.onCancelStream=t,this.activeAssemblers=[]}return t.prototype.getPayloadAssembler=function(t){if(this.activeAssemblers[t])return this.activeAssemblers[t];var e=new n.PayloadAssembler(this,{id:t});return this.activeAssemblers[t]=e,e},t.prototype.getPayloadStream=function(t){return this.getPayloadAssembler(t.id).getPayloadStream()},t.prototype.onReceive=function(t,e,r){this.activeAssemblers[t.id]&&this.activeAssemblers[t.id].onReceive(t,e,r)},t.prototype.closeStream=function(t){if(this.activeAssemblers[t]){var e=this.activeAssemblers[t];this.activeAssemblers.splice(this.activeAssemblers.indexOf(t),1);var r=e.getPayloadStream();(e.contentLength&&r.length<e.contentLength||!e.end)&&this.onCancelStream(e)}},t}();r.StreamManager=o},{"../assemblers/payloadAssembler":1}],23:[function(t,e,r){var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.ProtocolAdapter=void 0;var i=t("./payloads/payloadAssemblerManager"),s=t("./payloads/sendOperations"),a=t("./payloads/streamManager"),u=t("./utilities/protocol-base"),c=function(){function t(t,e,r,n){var o=this;this.requestHandler=t,this.requestManager=e,this.payloadSender=r,this.payloadReceiver=n,this.sendOperations=new s.SendOperations(this.payloadSender),this.streamManager=new a.StreamManager(this.onCancelStream),this.assemblerManager=new i.PayloadAssemblerManager(this.streamManager,(function(t,e){return o.onReceiveResponse(t,e)}),(function(t,e){return o.onReceiveRequest(t,e)})),this.payloadReceiver.subscribe((function(t){return o.assemblerManager.getPayloadStream(t)}),(function(t,e,r){return o.assemblerManager.onReceive(t,e,r)}))}return t.prototype.sendRequest=function(t){return n(this,void 0,void 0,(function(){var e,r;return o(this,(function(n){switch(n.label){case 0:return e=(0,u.generateGuid)(),r=this.requestManager.getResponse(e),[4,this.sendOperations.sendRequest(e,t)];case 1:return n.sent(),[2,r]}}))}))},t.prototype.onReceiveRequest=function(t,e){return n(this,void 0,void 0,(function(){var r;return o(this,(function(n){switch(n.label){case 0:return this.requestHandler?[4,this.requestHandler.processRequest(e)]:[3,3];case 1:return(r=n.sent())?[4,this.sendOperations.sendResponse(t,r)]:[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}}))}))},t.prototype.onReceiveResponse=function(t,e){return n(this,void 0,void 0,(function(){return o(this,(function(r){switch(r.label){case 0:return[4,this.requestManager.signalResponse(t,e)];case 1:return r.sent(),[2]}}))}))},t.prototype.onCancelStream=function(t){this.sendOperations.sendCancelStream(t.id).catch()},t}();r.ProtocolAdapter=c},{"./payloads/payloadAssemblerManager":17,"./payloads/sendOperations":21,"./payloads/streamManager":22,"./utilities/protocol-base":28}],24:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.RequestHandler=void 0;r.RequestHandler=function(){}},{}],25:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.StreamingRequest=void 0;var n=t("./httpContentStream"),o=t("./subscribableStream"),i=function(){function t(){this.streams=[]}return t.create=function(e,r,n){var o=new t;return o.verb=e,o.path=r,n&&o.setBody(n),o},t.prototype.addStream=function(t){if(!t)throw new Error("Argument Undefined Exception: content undefined.");this.streams.push(new n.HttpContentStream(t))},t.prototype.setBody=function(t){if("string"==typeof t){var e=new o.SubscribableStream;e.write(t,"utf8"),this.addStream(new n.HttpContent({type:"application/json; charset=utf-8",contentLength:e.length},e))}else"object"===(0,a.default)(t)&&this.addStream(t)},t}();r.StreamingRequest=i},{"./httpContentStream":8,"./subscribableStream":27}],26:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.StreamingResponse=void 0;var n=t("./httpContentStream"),o=t("./subscribableStream"),i=function(){function t(){this.streams=[]}return t.create=function(e,r){var n=new t;return n.statusCode=e,r&&n.addStream(r),n},t.prototype.addStream=function(t){this.streams.push(new n.HttpContentStream(t))},t.prototype.setBody=function(t){var e=new o.SubscribableStream;e.write(JSON.stringify(t),"utf8"),this.addStream(new n.HttpContent({type:"application/json; charset=utf-8",contentLength:e.length},e))},t}();r.StreamingResponse=i},{"./httpContentStream":8,"./subscribableStream":27}],27:[function(t,e,r){(function(e){(function(){var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.SubscribableStream=void 0;var i=function(t){function r(e){var r=t.call(this,e)||this;return r.length=0,r.bufferList=[],r}return o(r,t),r.prototype._write=function(t,r,n){var o=e.from(t);this.bufferList.push(o),this.length+=t.length,this._onData&&this._onData(o),n()},r.prototype._read=function(t){if(0===this.bufferList.length)this.push(null);else for(var e=0;e<t&&this.bufferList.length>0;){var r=this.bufferList[0];this.push(r),this.bufferList.splice(0,1),e+=r.length}},r.prototype.subscribe=function(t){this._onData=t},r}(t("stream").Duplex);r.SubscribableStream=i}).call(this)}).call(this,t("buffer").Buffer)},{buffer:35,stream:41}],28:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.generateGuid=void 0;var n=t("uuid");r.generateGuid=function(){return(0,n.v4)()}},{uuid:58}],29:[function(t,e,r){var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.BrowserWebSocket=void 0;var i=function(){function t(t){t&&(this.webSocket=t)}return t.prototype.connect=function(t){return n(this,void 0,void 0,(function(){var e,r;return o(this,(function(n){return this.webSocket||(this.webSocket=new WebSocket(t)),this.webSocket.onerror=function(t){r(t)},this.webSocket.onopen=function(t){e(t)},[2,new Promise((function(t,n){e=t,r=n}))]}))}))},Object.defineProperty(t.prototype,"isConnected",{get:function(){return 1===this.webSocket.readyState},enumerable:!1,configurable:!0}),t.prototype.write=function(t){this.webSocket.send(t)},t.prototype.close=function(){this.webSocket.close()},t.prototype.setOnMessageHandler=function(t){var e="buffer",r=[];this.webSocket.onmessage=function(n){var o=new FileReader,i={buffer:null};r.push(i),o.onload=function(n){var o=n.target;if(i[e]=o.result,r[0]===i)for(;0<r.length&&r[0][e];)t(r[0][e]),r.splice(0,1)},o.readAsArrayBuffer(n.data)}},t.prototype.setOnErrorHandler=function(t){this.webSocket.onerror=function(e){e&&t(e)}},t.prototype.setOnCloseHandler=function(t){this.webSocket.onclose=t},t}();r.BrowserWebSocket=i},{}],30:[function(t,e,r){var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.WebSocketClient=void 0;var i=t("./browserWebSocket"),s=t("../payloadTransport"),a=t("../protocolAdapter"),u=t("../payloads"),c=t("./webSocketTransport"),f=function(){function t(t){var e=t.url,r=t.requestHandler,n=t.disconnectionHandler,o=void 0===n?null:n;this._url=e,this._requestHandler=r,this._disconnectionHandler=o,this._requestManager=new u.RequestManager,this._sender=new s.PayloadSender,this._sender.disconnected=this.onConnectionDisconnected.bind(this),this._receiver=new s.PayloadReceiver,this._receiver.disconnected=this.onConnectionDisconnected.bind(this),this._protocolAdapter=new a.ProtocolAdapter(this._requestHandler,this._requestManager,this._sender,this._receiver)}return t.prototype.connect=function(){return n(this,void 0,void 0,(function(){var t,e;return o(this,(function(r){switch(r.label){case 0:return[4,(t=new i.BrowserWebSocket).connect(this._url)];case 1:return r.sent(),e=new c.WebSocketTransport(t),this._sender.connect(e),this._receiver.connect(e),[2]}}))}))},t.prototype.disconnect=function(){this._sender.disconnect(new s.TransportDisconnectedEvent("Disconnect was called.")),this._receiver.disconnect(new s.TransportDisconnectedEvent("Disconnect was called."))},t.prototype.send=function(t){return n(this,void 0,void 0,(function(){return o(this,(function(e){return[2,this._protocolAdapter.sendRequest(t)]}))}))},t.prototype.onConnectionDisconnected=function(t,e){if(this._requestManager.rejectAllResponses(new Error("Disconnect was called.")),null==this._disconnectionHandler)throw new Error("Unable to re-connect client to transport for url ".concat(this._url,". Sender: '").concat(JSON.stringify(t),"'. Args:' ").concat(JSON.stringify(e)));this._disconnectionHandler("Disconnected")},t}();r.WebSocketClient=f},{"../payloadTransport":10,"../payloads":16,"../protocolAdapter":23,"./browserWebSocket":29,"./webSocketTransport":32}],31:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.WebSocketTransport=r.WebSocketClient=r.BrowserWebSocket=void 0;var n=t("./browserWebSocket");Object.defineProperty(r,"BrowserWebSocket",{enumerable:!0,get:function(){return n.BrowserWebSocket}});var o=t("./browserWebSocketClient");Object.defineProperty(r,"WebSocketClient",{enumerable:!0,get:function(){return o.WebSocketClient}});var i=t("./webSocketTransport");Object.defineProperty(r,"WebSocketTransport",{enumerable:!0,get:function(){return i.WebSocketTransport}})},{"./browserWebSocket":29,"./browserWebSocketClient":30,"./webSocketTransport":32}],32:[function(t,e,r){(function(t){(function(){var e=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))},n=this&&this.__generator||function(t,e){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.WebSocketTransport=void 0;var o=function(){function r(t){var e=this;this.ws=t,this._queue=[],this._activeOffset=0,this._activeReceiveCount=0,this.ws.setOnMessageHandler((function(t){e.onReceive(t)})),this.ws.setOnErrorHandler((function(t){e.onError(t)})),this.ws.setOnCloseHandler((function(){e.onClose()}))}return r.prototype.send=function(t){var e;return(null===(e=this.ws)||void 0===e?void 0:e.isConnected)?(this.ws.write(t),t.length):0},Object.defineProperty(r.prototype,"isConnected",{get:function(){var t;return!!(null===(t=this.ws)||void 0===t?void 0:t.isConnected)},enumerable:!1,configurable:!0}),r.prototype.close=function(){var t;(null===(t=this.ws)||void 0===t?void 0:t.isConnected)&&this.ws.close()},r.prototype.receive=function(t){return e(this,void 0,void 0,(function(){var e,r=this;return n(this,(function(n){if(this._activeReceiveResolve)throw new Error("Cannot call receive more than once before it has returned.");return this._activeReceiveCount=t,e=new Promise((function(t,e){r._activeReceiveResolve=t,r._activeReceiveReject=e})),this.trySignalData(),[2,e]}))}))},r.prototype.onReceive=function(e){this._queue&&e&&e.byteLength>0&&(this._queue.push(t.from(e)),this.trySignalData())},r.prototype.onClose=function(){this._activeReceiveReject&&this._activeReceiveReject(new Error("Socket was closed.")),this._active=null,this._activeOffset=0,this._activeReceiveResolve=null,this._activeReceiveReject=null,this._activeReceiveCount=0,this.ws=null},r.prototype.onError=function(t){this._activeReceiveReject&&this._activeReceiveReject(t),this.onClose()},r.prototype.trySignalData=function(){if(this._activeReceiveResolve&&(!this._active&&this._queue.length>0&&(this._active=this._queue.shift(),this._activeOffset=0),this._active)){if(0===this._activeOffset&&this._active.length===this._activeReceiveCount){var e=this._active;this._active=null,this._activeReceiveResolve(e)}else{var r=Math.min(this._activeReceiveCount,this._active.length-this._activeOffset);e=t.alloc(r),this._active.copy(e,0,this._activeOffset,this._activeOffset+r),this._activeOffset+=r,this._activeOffset>=this._active.length&&(this._active=null,this._activeOffset=0),this._activeReceiveResolve(e)}this._activeReceiveCount=0,this._activeReceiveReject=null,this._activeReceiveResolve=null}},r}();r.WebSocketTransport=o}).call(this)}).call(this,t("buffer").Buffer)},{buffer:35}],33:[function(t,e,r){},{}],34:[function(t,e,r){r.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return 3*(r+n)/4-n},r.toByteArray=function(t){var e,r,n=u(t),s=n[0],a=n[1],c=new i(function(t,e,r){return 3*(e+r)/4-r}(0,s,a)),f=0,l=a>0?s-4:s;for(r=0;r<l;r+=4)e=o[t.charCodeAt(r)]<<18|o[t.charCodeAt(r+1)]<<12|o[t.charCodeAt(r+2)]<<6|o[t.charCodeAt(r+3)],c[f++]=e>>16&255,c[f++]=e>>8&255,c[f++]=255&e;return 2===a&&(e=o[t.charCodeAt(r)]<<2|o[t.charCodeAt(r+1)]>>4,c[f++]=255&e),1===a&&(e=o[t.charCodeAt(r)]<<10|o[t.charCodeAt(r+1)]<<4|o[t.charCodeAt(r+2)]>>2,c[f++]=e>>8&255,c[f++]=255&e),c},r.fromByteArray=function(t){for(var e,r=t.length,o=r%3,i=[],s=16383,a=0,u=r-o;a<u;a+=s)i.push(c(t,a,a+s>u?u:a+s));return 1===o?(e=t[r-1],i.push(n[e>>2]+n[e<<4&63]+"==")):2===o&&(e=(t[r-2]<<8)+t[r-1],i.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),i.join("")};for(var n=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=s[a],o[s.charCodeAt(a)]=a;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function c(t,e,r){for(var o,i,s=[],a=e;a<r;a+=3)o=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),s.push(n[(i=o)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return s.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},{}],35:[function(t,e,r){(function(e){(function(){var e=t("base64-js"),n=t("ieee754");r.Buffer=s,r.SlowBuffer=function(t){return+t!=t&&(t=0),s.alloc(+t)},r.INSPECT_MAX_BYTES=50;var o=2147483647;function i(t){if(t>o)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return e.__proto__=s.prototype,e}function s(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return f(t)}return u(t,e,r)}function u(t,e,r){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|p(t,e),n=i(r),o=n.write(t,e);return o!==r&&(n=n.slice(0,o)),n}(t,e);if(ArrayBuffer.isView(t))return l(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+(0,a.default)(t));if(q(t,ArrayBuffer)||t&&q(t.buffer,ArrayBuffer))return function(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return(n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r)).__proto__=s.prototype,n}(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return s.from(n,e,r);var o=function(t){if(s.isBuffer(t)){var e=0|h(t.length),r=i(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||F(t.length)?i(0):l(t):"Buffer"===t.type&&Array.isArray(t.data)?l(t.data):void 0}(t);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return s.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+(0,a.default)(t))}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function f(t){return c(t),i(t<0?0:0|h(t))}function l(t){for(var e=t.length<0?0:0|h(t.length),r=i(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}function h(t){if(t>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|t}function p(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||q(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+(0,a.default)(t));var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return U(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return D(t).length;default:if(o)return n?-1:U(t).length;e=(""+e).toLowerCase(),o=!0}}function d(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return P(this,e,r);case"utf8":case"utf-8":return E(this,e,r);case"ascii":return T(this,e,r);case"latin1":case"binary":return k(this,e,r);case"base64":return O(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function y(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function b(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),F(r=+r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=s.from(e,n)),s.isBuffer(e))return 0===e.length?-1:v(t,e,r,n,o);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):v(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function v(t,e,r,n,o){var i,s=1,a=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,r/=2}function c(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(o){var f=-1;for(i=r;i<a;i++)if(c(t,i)===c(e,-1===f?0:i-f)){if(-1===f&&(f=i),i-f+1===u)return f*s}else-1!==f&&(i-=i-f),f=-1}else for(r+u>a&&(r=a-u),i=r;i>=0;i--){for(var l=!0,h=0;h<u;h++)if(c(t,i+h)!==c(e,h)){l=!1;break}if(l)return i}return-1}function g(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=e.length;n>i/2&&(n=i/2);for(var s=0;s<n;++s){var a=parseInt(e.substr(2*s,2),16);if(F(a))return s;t[r+s]=a}return s}function m(t,e,r,n){return N(U(e,t.length-r),t,r,n)}function w(t,e,r,n){return N(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function _(t,e,r,n){return w(t,e,r,n)}function S(t,e,r,n){return N(D(e),t,r,n)}function x(t,e,r,n){return N(function(t,e){for(var r,n,o,i=[],s=0;s<t.length&&!((e-=2)<0);++s)n=(r=t.charCodeAt(s))>>8,o=r%256,i.push(o),i.push(n);return i}(e,t.length-r),t,r,n)}function O(t,r,n){return 0===r&&n===t.length?e.fromByteArray(t):e.fromByteArray(t.slice(r,n))}function E(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i,s,a,u,c=t[o],f=null,l=c>239?4:c>223?3:c>191?2:1;if(o+l<=r)switch(l){case 1:c<128&&(f=c);break;case 2:128==(192&(i=t[o+1]))&&(u=(31&c)<<6|63&i)>127&&(f=u);break;case 3:i=t[o+1],s=t[o+2],128==(192&i)&&128==(192&s)&&(u=(15&c)<<12|(63&i)<<6|63&s)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:i=t[o+1],s=t[o+2],a=t[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(f=u)}null===f?(f=65533,l=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),o+=l}return function(t){var e=t.length;if(e<=j)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=j));return r}(n)}r.kMaxLength=o,s.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),s.poolSize=8192,s.from=function(t,e,r){return u(t,e,r)},s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,s.alloc=function(t,e,r){return function(t,e,r){return c(t),t<=0?i(t):void 0!==e?"string"==typeof r?i(t).fill(e,r):i(t).fill(e):i(t)}(t,e,r)},s.allocUnsafe=function(t){return f(t)},s.allocUnsafeSlow=function(t){return f(t)},s.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==s.prototype},s.compare=function(t,e){if(q(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),q(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(t)||!s.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,o=0,i=Math.min(r,n);o<i;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0},s.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return s.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=s.allocUnsafe(e),o=0;for(r=0;r<t.length;++r){var i=t[r];if(q(i,Uint8Array)&&(i=s.from(i)),!s.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)y(this,e,e+1);return this},s.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},s.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},s.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?E(this,0,t):d.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(t){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===s.compare(this,t)},s.prototype.inspect=function(){var t="",e=r.INSPECT_MAX_BYTES;return t=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(t+=" ... "),"<Buffer "+t+">"},s.prototype.compare=function(t,e,r,n,o){if(q(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+(0,a.default)(t));if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(n>>>=0),u=(r>>>=0)-(e>>>=0),c=Math.min(i,u),f=this.slice(n,o),l=t.slice(e,r),h=0;h<c;++h)if(f[h]!==l[h]){i=f[h],u=l[h];break}return i<u?-1:u<i?1:0},s.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},s.prototype.indexOf=function(t,e,r){return b(this,t,e,r,!0)},s.prototype.lastIndexOf=function(t,e,r){return b(this,t,e,r,!1)},s.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return g(this,t,e,r);case"utf8":case"utf-8":return m(this,t,e,r);case"ascii":return w(this,t,e,r);case"latin1":case"binary":return _(this,t,e,r);case"base64":return S(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var j=4096;function T(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(127&t[o]);return n}function k(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function P(t,e,r){var n,o=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>o)&&(r=o);for(var i="",s=e;s<r;++s)i+=(n=t[s])<16?"0"+n.toString(16):n.toString(16);return i}function R(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function A(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function M(t,e,r,n,o,i){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function C(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function L(t,e,r,o,i){return e=+e,r>>>=0,i||C(t,0,r,4),n.write(t,e,r,o,23,4),r+4}function I(t,e,r,o,i){return e=+e,r>>>=0,i||C(t,0,r,8),n.write(t,e,r,o,52,8),r+8}s.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return n.__proto__=s.prototype,n},s.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||A(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},s.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||A(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},s.prototype.readUInt8=function(t,e){return t>>>=0,e||A(t,1,this.length),this[t]},s.prototype.readUInt16LE=function(t,e){return t>>>=0,e||A(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUInt16BE=function(t,e){return t>>>=0,e||A(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUInt32LE=function(t,e){return t>>>=0,e||A(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUInt32BE=function(t,e){return t>>>=0,e||A(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||A(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*e)),n},s.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||A(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},s.prototype.readInt8=function(t,e){return t>>>=0,e||A(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},s.prototype.readInt16LE=function(t,e){t>>>=0,e||A(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(t,e){t>>>=0,e||A(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(t,e){return t>>>=0,e||A(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return t>>>=0,e||A(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,e){return t>>>=0,e||A(t,4,this.length),n.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return t>>>=0,e||A(t,4,this.length),n.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return t>>>=0,e||A(t,8,this.length),n.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return t>>>=0,e||A(t,8,this.length),n.read(this,t,!1,52,8)},s.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||M(this,t,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},s.prototype.writeUIntBE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||M(this,t,e,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+r},s.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,1,255,0),this[e]=255&t,e+1},s.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},s.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var o=Math.pow(2,8*r-1);M(this,t,e,r,o-1,-o)}var i=0,s=1,a=0;for(this[e]=255&t;++i<r&&(s*=256);)t<0&&0===a&&0!==this[e+i-1]&&(a=1),this[e+i]=(t/s|0)-a&255;return e+r},s.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var o=Math.pow(2,8*r-1);M(this,t,e,r,o-1,-o)}var i=r-1,s=1,a=0;for(this[e+i]=255&t;--i>=0&&(s*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/s|0)-a&255;return e+r},s.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},s.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeFloatLE=function(t,e,r){return L(this,t,e,!0,r)},s.prototype.writeFloatBE=function(t,e,r){return L(this,t,e,!1,r)},s.prototype.writeDoubleLE=function(t,e,r){return I(this,t,e,!0,r)},s.prototype.writeDoubleBE=function(t,e,r){return I(this,t,e,!1,r)},s.prototype.copy=function(t,e,r,n){if(!s.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var o=n-r;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,n);else if(this===t&&r<e&&e<n)for(var i=o-1;i>=0;--i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return o},s.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){var o=t.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(t=o)}}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var i;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var a=s.isBuffer(t)?t:s.from(t,n),u=a.length;if(0===u)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=a[i%u]}return this};var B=/[^+/0-9A-Za-z-_]/g;function U(t,e){var r;e=e||1/0;for(var n=t.length,o=null,i=[],s=0;s<n;++s){if((r=t.charCodeAt(s))>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(s+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function D(t){return e.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(B,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function N(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function q(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function F(t){return t!=t}}).call(this)}).call(this,t("buffer").Buffer)},{"base64-js":34,buffer:35,ieee754:37}],36:[function(t,e,r){var n,o="object"===("undefined"==typeof Reflect?"undefined":(0,a.default)(Reflect))?Reflect:null,i=o&&"function"==typeof o.apply?o.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};n=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var s=Number.isNaN||function(t){return t!=t};function u(){u.init.call(this)}e.exports=u,e.exports.once=function(t,e){return new Promise((function(r,n){function o(){void 0!==i&&t.removeListener("error",i),r([].slice.call(arguments))}var i;"error"!==e&&(i=function(r){t.removeListener(e,o),n(r)},t.once("error",i)),t.once(e,o)}))},u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var c=10;function f(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+(0,a.default)(t))}function l(t){return void 0===t._maxListeners?u.defaultMaxListeners:t._maxListeners}function h(t,e,r,n){var o,i,s,a;if(f(r),void 0===(i=t._events)?(i=t._events=Object.create(null),t._eventsCount=0):(void 0!==i.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),i=t._events),s=i[e]),void 0===s)s=i[e]=r,++t._eventsCount;else if("function"==typeof s?s=i[e]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(o=l(t))>0&&s.length>o&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=s.length,a=u,console&&console.warn&&console.warn(a)}return t}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},o=p.bind(n);return o.listener=r,n.wrapFn=o,o}function y(t,e,r){var n=t._events;if(void 0===n)return[];var o=n[e];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(o):v(o,o.length)}function b(t){var e=this._events;if(void 0!==e){var r=e[t];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function v(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}Object.defineProperty(u,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(t){if("number"!=typeof t||t<0||s(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");c=t}}),u.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},u.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||s(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},u.prototype.getMaxListeners=function(){return l(this)},u.prototype.emit=function(t){for(var e=[],r=1;r<arguments.length;r++)e.push(arguments[r]);var n="error"===t,o=this._events;if(void 0!==o)n=n&&void 0===o.error;else if(!n)return!1;if(n){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=o[t];if(void 0===u)return!1;if("function"==typeof u)i(u,this,e);else{var c=u.length,f=v(u,c);for(r=0;r<c;++r)i(f[r],this,e)}return!0},u.prototype.addListener=function(t,e){return h(this,t,e,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(t,e){return h(this,t,e,!0)},u.prototype.once=function(t,e){return f(e),this.on(t,d(this,t,e)),this},u.prototype.prependOnceListener=function(t,e){return f(e),this.prependListener(t,d(this,t,e)),this},u.prototype.removeListener=function(t,e){var r,n,o,i,s;if(f(e),void 0===(n=this._events))return this;if(void 0===(r=n[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===e||r[i].listener===e){s=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(r,o),1===r.length&&(n[t]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",t,s||e)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(t){var e,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var o,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},u.prototype.listeners=function(t){return y(this,t,!0)},u.prototype.rawListeners=function(t){return y(this,t,!1)},u.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):b.call(t,e)},u.prototype.listenerCount=b,u.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},{}],37:[function(t,e,r){r.read=function(t,e,r,n,o){var i,s,a=8*o-n-1,u=(1<<a)-1,c=u>>1,f=-7,l=r?o-1:0,h=r?-1:1,p=t[e+l];for(l+=h,i=p&(1<<-f)-1,p>>=-f,f+=a;f>0;i=256*i+t[e+l],l+=h,f-=8);for(s=i&(1<<-f)-1,i>>=-f,f+=n;f>0;s=256*s+t[e+l],l+=h,f-=8);if(0===i)i=1-c;else{if(i===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),i-=c}return(p?-1:1)*s*Math.pow(2,i-n)},r.write=function(t,e,r,n,o,i){var s,a,u,c=8*i-o-1,f=(1<<c)-1,l=f>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,d=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=f):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+l>=1?h/u:h*Math.pow(2,1-l))*u>=2&&(s++,u/=2),s+l>=f?(a=0,s=f):s+l>=1?(a=(e*u-1)*Math.pow(2,o),s+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,o),s=0));o>=8;t[r+p]=255&a,p+=d,a/=256,o-=8);for(s=s<<o|a,c+=o;c>0;t[r+p]=255&s,p+=d,s/=256,c-=8);t[r+p-d]|=128*y}},{}],38:[function(t,e,r){"function"==typeof Object.create?e.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},{}],39:[function(t,e,r){var n,o,i=e.exports={};function s(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(t){if(n===setTimeout)return setTimeout(t,0);if((n===s||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:s}catch(t){n=s}try{o="function"==typeof clearTimeout?clearTimeout:a}catch(t){o=a}}();var c,f=[],l=!1,h=-1;function p(){l&&c&&(l=!1,c.length?f=c.concat(f):h=-1,f.length&&d())}function d(){if(!l){var t=u(p);l=!0;for(var e=f.length;e;){for(c=f,f=[];++h<e;)c&&c[h].run();h=-1,e=f.length}c=null,l=!1,function(t){if(o===clearTimeout)return clearTimeout(t);if((o===a||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(t);try{return o(t)}catch(e){try{return o.call(null,t)}catch(e){return o.call(this,t)}}}(t)}}function y(t,e){this.fun=t,this.array=e}function b(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];f.push(new y(t,e)),1!==f.length||l||u(d)},y.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=b,i.addListener=b,i.once=b,i.off=b,i.removeListener=b,i.removeAllListeners=b,i.emit=b,i.prependListener=b,i.prependOnceListener=b,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],40:[function(t,e,r){var n=t("buffer"),o=n.Buffer;function i(t,e){for(var r in t)e[r]=t[r]}function s(t,e,r){return o(t,e,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=n:(i(n,r),r.Buffer=s),s.prototype=Object.create(o.prototype),i(o,s),s.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return o(t,e,r)},s.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=o(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},s.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},{buffer:35}],41:[function(t,e,r){e.exports=o;var n=t("events").EventEmitter;function o(){n.call(this)}t("inherits")(o,n),o.Readable=t("readable-stream/lib/_stream_readable.js"),o.Writable=t("readable-stream/lib/_stream_writable.js"),o.Duplex=t("readable-stream/lib/_stream_duplex.js"),o.Transform=t("readable-stream/lib/_stream_transform.js"),o.PassThrough=t("readable-stream/lib/_stream_passthrough.js"),o.finished=t("readable-stream/lib/internal/streams/end-of-stream.js"),o.pipeline=t("readable-stream/lib/internal/streams/pipeline.js"),o.Stream=o,o.prototype.pipe=function(t,e){var r=this;function o(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",o),t.on("drain",i),t._isStdio||e&&!1===e.end||(r.on("end",a),r.on("close",u));var s=!1;function a(){s||(s=!0,t.end())}function u(){s||(s=!0,"function"==typeof t.destroy&&t.destroy())}function c(t){if(f(),0===n.listenerCount(this,"error"))throw t}function f(){r.removeListener("data",o),t.removeListener("drain",i),r.removeListener("end",a),r.removeListener("close",u),r.removeListener("error",c),t.removeListener("error",c),r.removeListener("end",f),r.removeListener("close",f),t.removeListener("close",f)}return r.on("error",c),t.on("error",c),r.on("end",f),r.on("close",f),t.on("close",f),t.emit("pipe",r),t}},{events:36,inherits:38,"readable-stream/lib/_stream_duplex.js":43,"readable-stream/lib/_stream_passthrough.js":44,"readable-stream/lib/_stream_readable.js":45,"readable-stream/lib/_stream_transform.js":46,"readable-stream/lib/_stream_writable.js":47,"readable-stream/lib/internal/streams/end-of-stream.js":51,"readable-stream/lib/internal/streams/pipeline.js":53}],42:[function(t,e,r){var n={};function o(t,e,r){r||(r=Error);var o=function(t){var r,n;function o(r,n,o){return t.call(this,function(t,r,n){return"string"==typeof e?e:e(t,r,n)}(r,n,o))||this}return n=t,(r=o).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,o}(r);o.prototype.name=r.name,o.prototype.code=t,n[t]=o}function i(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}o("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(t,e,r){var n,o,s,u,c;if("string"==typeof e&&(o="not ",e.substr(0,4)===o)?(n="must not be",e=e.replace(/^not /,"")):n="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-9,r)===e}(t," argument"))s="The ".concat(t," ").concat(n," ").concat(i(e,"type"));else{var f=("number"!=typeof c&&(c=0),c+1>(u=t).length||-1===u.indexOf(".",c)?"argument":"property");s='The "'.concat(t,'" ').concat(f," ").concat(n," ").concat(i(e,"type"))}return s+". Received type ".concat((0,a.default)(r))}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=n},{}],43:[function(t,e,r){(function(r){(function(){var n=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};e.exports=c;var o=t("./_stream_readable"),i=t("./_stream_writable");t("inherits")(c,o);for(var s=n(i.prototype),a=0;a<s.length;a++){var u=s[a];c.prototype[u]||(c.prototype[u]=i.prototype[u])}function c(t){if(!(this instanceof c))return new c(t);o.call(this,t),i.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||r.nextTick(l,this)}function l(t){t.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})}).call(this)}).call(this,t("_process"))},{"./_stream_readable":45,"./_stream_writable":47,_process:39,inherits:38}],44:[function(t,e,r){e.exports=o;var n=t("./_stream_transform");function o(t){if(!(this instanceof o))return new o(t);n.call(this,t)}t("inherits")(o,n),o.prototype._transform=function(t,e,r){r(null,t)}},{"./_stream_transform":46,inherits:38}],45:[function(t,e,n){(function(r,n){(function(){var o;e.exports=E,E.ReadableState=O,t("events").EventEmitter;var i,s=function(t,e){return t.listeners(e).length},a=t("./internal/streams/stream"),u=t("buffer").Buffer,c=n.Uint8Array||function(){},f=t("util");i=f&&f.debuglog?f.debuglog("stream"):function(){};var l,h,p,d=t("./internal/streams/buffer_list"),y=t("./internal/streams/destroy"),b=t("./internal/streams/state").getHighWaterMark,v=t("../errors").codes,g=v.ERR_INVALID_ARG_TYPE,m=v.ERR_STREAM_PUSH_AFTER_EOF,w=v.ERR_METHOD_NOT_IMPLEMENTED,_=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;t("inherits")(E,a);var S=y.errorOrDestroy,x=["error","close","destroy","pause","resume"];function O(e,r,n){o=o||t("./_stream_duplex"),e=e||{},"boolean"!=typeof n&&(n=r instanceof o),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=b(this,e,"readableHighWaterMark",n),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(l||(l=t("string_decoder/").StringDecoder),this.decoder=new l(e.encoding),this.encoding=e.encoding)}function E(e){if(o=o||t("./_stream_duplex"),!(this instanceof E))return new E(e);var r=this instanceof o;this._readableState=new O(e,this,r),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),a.call(this)}function j(t,e,r,n,o){i("readableAddChunk",e);var s,a=t._readableState;if(null===e)a.reading=!1,function(t,e){if(i("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?R(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,A(t)))}}(t,a);else if(o||(s=function(t,e){var r,n;return n=e,u.isBuffer(n)||n instanceof c||"string"==typeof e||void 0===e||t.objectMode||(r=new g("chunk",["string","Buffer","Uint8Array"],e)),r}(a,e)),s)S(t,s);else if(a.objectMode||e&&e.length>0)if("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===u.prototype||(e=function(t){return u.from(t)}(e)),n)a.endEmitted?S(t,new _):T(t,a,e,!0);else if(a.ended)S(t,new m);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||0!==e.length?T(t,a,e,!1):M(t,a)):T(t,a,e,!1)}else n||(a.reading=!1,M(t,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function T(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&R(t)),M(t,e)}Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),E.prototype.destroy=y.destroy,E.prototype._undestroy=y.undestroy,E.prototype._destroy=function(t,e){e(t)},E.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=u.from(t,e),e=""),r=!0),j(this,t,e,!1,r)},E.prototype.unshift=function(t){return j(this,t,null,!0,!1)},E.prototype.isPaused=function(){return!1===this._readableState.flowing},E.prototype.setEncoding=function(e){l||(l=t("string_decoder/").StringDecoder);var r=new l(e);this._readableState.decoder=r,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,o="";null!==n;)o+=r.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==o&&this._readableState.buffer.push(o),this._readableState.length=o.length,this};var k=1073741824;function P(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=k?t=k:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function R(t){var e=t._readableState;i("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(i("emitReadable",e.flowing),e.emittedReadable=!0,r.nextTick(A,t))}function A(t){var e=t._readableState;i("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,U(t)}function M(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(C,t,e))}function C(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var r=e.length;if(i("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function L(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function I(t){i("readable nexttick read 0"),t.read(0)}function B(t,e){i("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),U(t),e.flowing&&!e.reading&&t.read(0)}function U(t){var e=t._readableState;for(i("flow",e.flowing);e.flowing&&null!==t.read(););}function D(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function N(t){var e=t._readableState;i("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,r.nextTick(q,e,t))}function q(t,e){if(i("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function F(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}E.prototype.read=function(t){i("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return i("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?N(this):R(this),null;if(0===(t=P(t,e))&&e.ended)return 0===e.length&&N(this),null;var n,o=e.needReadable;return i("need readable",o),(0===e.length||e.length-t<e.highWaterMark)&&i("length less than watermark",o=!0),e.ended||e.reading?i("reading or ended",o=!1):o&&(i("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=P(r,e))),null===(n=t>0?D(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&N(this)),null!==n&&this.emit("data",n),n},E.prototype._read=function(t){S(this,new w("_read()"))},E.prototype.pipe=function(t,e){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,i("pipe count=%d opts=%j",o.pipesCount,e);var a=e&&!1===e.end||t===r.stdout||t===r.stderr?y:u;function u(){i("onend"),t.end()}o.endEmitted?r.nextTick(a):n.once("end",a),t.on("unpipe",(function e(r,s){i("onunpipe"),r===n&&s&&!1===s.hasUnpiped&&(s.hasUnpiped=!0,i("cleanup"),t.removeListener("close",p),t.removeListener("finish",d),t.removeListener("drain",c),t.removeListener("error",h),t.removeListener("unpipe",e),n.removeListener("end",u),n.removeListener("end",y),n.removeListener("data",l),f=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||c())}));var c=function(t){return function(){var e=t._readableState;i("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,"data")&&(e.flowing=!0,U(t))}}(n);t.on("drain",c);var f=!1;function l(e){i("ondata");var r=t.write(e);i("dest.write",r),!1===r&&((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==F(o.pipes,t))&&!f&&(i("false write response, pause",o.awaitDrain),o.awaitDrain++),n.pause())}function h(e){i("onerror",e),y(),t.removeListener("error",h),0===s(t,"error")&&S(t,e)}function p(){t.removeListener("finish",d),y()}function d(){i("onfinish"),t.removeListener("close",p),y()}function y(){i("unpipe"),n.unpipe(t)}return n.on("data",l),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",h),t.once("close",p),t.once("finish",d),t.emit("pipe",n),o.flowing||(i("pipe resume"),n.resume()),t},E.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,o=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i<o;i++)n[i].emit("unpipe",this,{hasUnpiped:!1});return this}var s=F(e.pipes,t);return-1===s||(e.pipes.splice(s,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},E.prototype.on=function(t,e){var n=a.prototype.on.call(this,t,e),o=this._readableState;return"data"===t?(o.readableListening=this.listenerCount("readable")>0,!1!==o.flowing&&this.resume()):"readable"===t&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,i("on readable",o.length,o.reading),o.length?R(this):o.reading||r.nextTick(I,this))),n},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(t,e){var n=a.prototype.removeListener.call(this,t,e);return"readable"===t&&r.nextTick(L,this),n},E.prototype.removeAllListeners=function(t){var e=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||r.nextTick(L,this),e},E.prototype.resume=function(){var t=this._readableState;return t.flowing||(i("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,r.nextTick(B,t,e))}(this,t)),t.paused=!1,this},E.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var o in t.on("end",(function(){if(i("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(o){i("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o||(r.objectMode||o&&o.length)&&(e.push(o)||(n=!0,t.pause()))})),t)void 0===this[o]&&"function"==typeof t[o]&&(this[o]=function(e){return function(){return t[e].apply(t,arguments)}}(o));for(var s=0;s<x.length;s++)t.on(x[s],this.emit.bind(this,x[s]));return this._read=function(e){i("wrapped _read",e),n&&(n=!1,t.resume())},this},"function"==typeof Symbol&&(E.prototype[Symbol.asyncIterator]=function(){return void 0===h&&(h=t("./internal/streams/async_iterator")),h(this)}),Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(E.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(E.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),E._fromList=D,Object.defineProperty(E.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(E.from=function(e,r){return void 0===p&&(p=t("./internal/streams/from")),p(E,e,r)})}).call(this)}).call(this,t("_process"),void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":42,"./_stream_duplex":43,"./internal/streams/async_iterator":48,"./internal/streams/buffer_list":49,"./internal/streams/destroy":50,"./internal/streams/from":52,"./internal/streams/state":54,"./internal/streams/stream":55,_process:39,buffer:35,events:36,inherits:38,"string_decoder/":56,util:33}],46:[function(t,e,r){e.exports=f;var n=t("../errors").codes,o=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,u=t("./_stream_duplex");function c(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new i);r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function f(t){if(!(this instanceof f))return new f(t);u.call(this,t),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",l)}function l(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush((function(e,r){h(t,e,r)}))}function h(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new a;if(t._transformState.transforming)throw new s;return t.push(null)}t("inherits")(f,u),f.prototype.push=function(t,e){return this._transformState.needTransform=!1,u.prototype.push.call(this,t,e)},f.prototype._transform=function(t,e,r){r(new o("_transform()"))},f.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var o=this._readableState;(n.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},f.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},f.prototype._destroy=function(t,e){u.prototype._destroy.call(this,t,(function(t){e(t)}))}},{"../errors":42,"./_stream_duplex":43,inherits:38}],47:[function(t,e,n){(function(r,n){(function(){function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e){var r=t.entry;for(t.entry=null;r;){var n=r.callback;e.pendingcb--,n(undefined),r=r.next}e.corkedRequestsFree.next=t}(e,t)}}var i;e.exports=E,E.WritableState=O;var s,a={deprecate:t("util-deprecate")},u=t("./internal/streams/stream"),c=t("buffer").Buffer,f=n.Uint8Array||function(){},l=t("./internal/streams/destroy"),h=t("./internal/streams/state").getHighWaterMark,p=t("../errors").codes,d=p.ERR_INVALID_ARG_TYPE,y=p.ERR_METHOD_NOT_IMPLEMENTED,b=p.ERR_MULTIPLE_CALLBACK,v=p.ERR_STREAM_CANNOT_PIPE,g=p.ERR_STREAM_DESTROYED,m=p.ERR_STREAM_NULL_VALUES,w=p.ERR_STREAM_WRITE_AFTER_END,_=p.ERR_UNKNOWN_ENCODING,S=l.errorOrDestroy;function x(){}function O(e,n,s){i=i||t("./_stream_duplex"),e=e||{},"boolean"!=typeof s&&(s=n instanceof i),this.objectMode=!!e.objectMode,s&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=h(this,e,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,o=n.sync,i=n.writecb;if("function"!=typeof i)throw new b;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,o,i){--e.pendingcb,n?(r.nextTick(i,o),r.nextTick(A,t,e),t._writableState.errorEmitted=!0,S(t,o)):(i(o),t._writableState.errorEmitted=!0,S(t,o),A(t,e))}(t,n,o,e,i);else{var s=P(n)||t.destroyed;s||n.corked||n.bufferProcessing||!n.bufferedRequest||k(t,n),o?r.nextTick(T,t,n,s,i):T(t,n,s,i)}}(n,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function E(e){var r=this instanceof(i=i||t("./_stream_duplex"));if(!r&&!s.call(E,this))return new E(e);this._writableState=new O(e,this,r),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function j(t,e,r,n,o,i,s){e.writelen=n,e.writecb=s,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new g("write")):r?t._writev(o,e.onwrite):t._write(o,i,e.onwrite),e.sync=!1}function T(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),A(t,e)}function k(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),s=e.corkedRequestsFree;s.entry=r;for(var a=0,u=!0;r;)i[a]=r,r.isBuf||(u=!1),r=r.next,a+=1;i.allBuffers=u,j(t,e,!0,e.length,i,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,f=r.encoding,l=r.callback;if(j(t,e,!1,e.objectMode?1:c.length,c,f,l),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function P(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function R(t,e){t._final((function(r){e.pendingcb--,r&&S(t,r),e.prefinished=!0,t.emit("prefinish"),A(t,e)}))}function A(t,e){var n=P(e);if(n&&(function(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,r.nextTick(R,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var o=t._readableState;(!o||o.autoDestroy&&o.endEmitted)&&t.destroy()}return n}t("inherits")(E,u),O.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(O.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(t){return!!s.call(this,t)||this===E&&t&&t._writableState instanceof O}})):s=function(t){return t instanceof this},E.prototype.pipe=function(){S(this,new v)},E.prototype.write=function(t,e,n){var o,i=this._writableState,s=!1,a=!i.objectMode&&(o=t,c.isBuffer(o)||o instanceof f);return a&&!c.isBuffer(t)&&(t=function(t){return c.from(t)}(t)),"function"==typeof e&&(n=e,e=null),a?e="buffer":e||(e=i.defaultEncoding),"function"!=typeof n&&(n=x),i.ending?function(t,e){var n=new w;S(t,n),r.nextTick(e,n)}(this,n):(a||function(t,e,n,o){var i;return null===n?i=new m:"string"==typeof n||e.objectMode||(i=new d("chunk",["string","Buffer"],n)),!i||(S(t,i),r.nextTick(o,i),!1)}(this,i,t,n))&&(i.pendingcb++,s=function(t,e,r,n,o,i){if(!r){var s=function(t,e,r){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=c.from(e,r)),e}(e,n,o);n!==s&&(r=!0,o="buffer",n=s)}var a=e.objectMode?1:n.length;e.length+=a;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var f=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:o,isBuf:r,callback:i,next:null},f?f.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else j(t,e,!1,a,n,o,i);return u}(this,i,a,t,e,n)),s},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||k(this,t))},E.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new _(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(t,e,r){r(new y("_write()"))},E.prototype._writev=null,E.prototype.end=function(t,e,n){var o=this._writableState;return"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),o.corked&&(o.corked=1,this.uncork()),o.ending||function(t,e,n){e.ending=!0,A(t,e),n&&(e.finished?r.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}(this,o,n),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),E.prototype.destroy=l.destroy,E.prototype._undestroy=l.undestroy,E.prototype._destroy=function(t,e){e(t)}}).call(this)}).call(this,t("_process"),void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":42,"./_stream_duplex":43,"./internal/streams/destroy":50,"./internal/streams/state":54,"./internal/streams/stream":55,_process:39,buffer:35,inherits:38,"util-deprecate":57}],48:[function(t,e,r){(function(r){(function(){var n;function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i=t("./end-of-stream"),s=Symbol("lastResolve"),a=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),f=Symbol("lastPromise"),l=Symbol("handlePromise"),h=Symbol("stream");function p(t,e){return{value:t,done:e}}function d(t){var e=t[s];if(null!==e){var r=t[h].read();null!==r&&(t[f]=null,t[s]=null,t[a]=null,e(p(r,!1)))}}function y(t){r.nextTick(d,t)}var b=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((o(n={get stream(){return this[h]},next:function(){var t=this,e=this[u];if(null!==e)return Promise.reject(e);if(this[c])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise((function(e,n){r.nextTick((function(){t[u]?n(t[u]):e(p(void 0,!0))}))}));var n,o=this[f];if(o)n=new Promise(function(t,e){return function(r,n){t.then((function(){e[c]?r(p(void 0,!0)):e[l](r,n)}),n)}}(o,this));else{var i=this[h].read();if(null!==i)return Promise.resolve(p(i,!1));n=new Promise(this[l])}return this[f]=n,n}},Symbol.asyncIterator,(function(){return this})),o(n,"return",(function(){var t=this;return new Promise((function(e,r){t[h].destroy(null,(function(t){t?r(t):e(p(void 0,!0))}))}))})),n),b);e.exports=function(t){var e,r=Object.create(v,(o(e={},h,{value:t,writable:!0}),o(e,s,{value:null,writable:!0}),o(e,a,{value:null,writable:!0}),o(e,u,{value:null,writable:!0}),o(e,c,{value:t._readableState.endEmitted,writable:!0}),o(e,l,{value:function(t,e){var n=r[h].read();n?(r[f]=null,r[s]=null,r[a]=null,t(p(n,!1))):(r[s]=t,r[a]=e)},writable:!0}),e));return r[f]=null,i(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[a];return null!==e&&(r[f]=null,r[s]=null,r[a]=null,e(t)),void(r[u]=t)}var n=r[s];null!==n&&(r[f]=null,r[s]=null,r[a]=null,n(p(void 0,!0))),r[c]=!0})),t.on("readable",y.bind(null,r)),r}}).call(this)}).call(this,t("_process"))},{"./end-of-stream":51,_process:39}],49:[function(t,e,r){function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var s=t("buffer").Buffer,a=t("util").inspect,u=a&&a.custom||"inspect";e.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}var e,r;return e=t,r=[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return s.alloc(0);for(var e,r,n,o=s.allocUnsafe(t>>>0),i=this.head,a=0;i;)e=i.data,r=o,n=a,s.prototype.copy.call(e,r,n),a+=i.data.length,i=i.next;return o}},{key:"consume",value:function(t,e){var r;return t<this.head.data.length?(r=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):r=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,r=1,n=e.data;for(t-=n.length;e=e.next;){var o=e.data,i=t>o.length?o.length:t;if(i===o.length?n+=o:n+=o.slice(0,t),0==(t-=i)){i===o.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=o.slice(i));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(t){var e=s.allocUnsafe(t),r=this.head,n=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var o=r.data,i=t>o.length?o.length:t;if(o.copy(e,e.length-t,0,i),0==(t-=i)){i===o.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(i));break}++n}return this.length-=n,e}},{key:u,value:function(t,e){return a(this,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){o(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},e,{depth:0,customInspect:!1}))}}],r&&i(e.prototype,r),t}()},{buffer:35,util:33}],50:[function(t,e,r){(function(t){(function(){function r(t,e){o(t,e),n(t)}function n(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function o(t,e){t.emit("error",e)}e.exports={destroy:function(e,i){var s=this,a=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return a||u?(i?i(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(o,this,e)):t.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!i&&e?s._writableState?s._writableState.errorEmitted?t.nextTick(n,s):(s._writableState.errorEmitted=!0,t.nextTick(r,s,e)):t.nextTick(r,s,e):i?(t.nextTick(n,s),i(e)):t.nextTick(n,s)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}}}).call(this)}).call(this,t("_process"))},{_process:39}],51:[function(t,e,r){var n=t("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function o(){}e.exports=function t(e,r,i){if("function"==typeof r)return t(e,null,r);r||(r={}),i=function(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];t.apply(this,n)}}}(i||o);var s=r.readable||!1!==r.readable&&e.readable,a=r.writable||!1!==r.writable&&e.writable,u=function(){e.writable||f()},c=e._writableState&&e._writableState.finished,f=function(){a=!1,c=!0,s||i.call(e)},l=e._readableState&&e._readableState.endEmitted,h=function(){s=!1,l=!0,a||i.call(e)},p=function(t){i.call(e,t)},d=function(){var t;return s&&!l?(e._readableState&&e._readableState.ended||(t=new n),i.call(e,t)):a&&!c?(e._writableState&&e._writableState.ended||(t=new n),i.call(e,t)):void 0},y=function(){e.req.on("finish",f)};return function(t){return t.setHeader&&"function"==typeof t.abort}(e)?(e.on("complete",f),e.on("abort",d),e.req?y():e.on("request",y)):a&&!e._writableState&&(e.on("end",u),e.on("close",u)),e.on("end",h),e.on("finish",f),!1!==r.error&&e.on("error",p),e.on("close",d),function(){e.removeListener("complete",f),e.removeListener("abort",d),e.removeListener("request",y),e.req&&e.req.removeListener("finish",f),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",f),e.removeListener("end",h),e.removeListener("error",p),e.removeListener("close",d)}}},{"../../../errors":42}],52:[function(t,e,r){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],53:[function(t,e,r){var n,o=t("../../../errors").codes,i=o.ERR_MISSING_ARGS,s=o.ERR_STREAM_DESTROYED;function a(t){if(t)throw t}function u(t){t()}function c(t,e){return t.pipe(e)}e.exports=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];var f,l=function(t){return t.length?"function"!=typeof t[t.length-1]?a:t.pop():a}(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new i("streams");var h=r.map((function(e,o){var i=o<r.length-1;return function(e,r,o,i){i=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(i);var a=!1;e.on("close",(function(){a=!0})),void 0===n&&(n=t("./end-of-stream")),n(e,{readable:r,writable:o},(function(t){if(t)return i(t);a=!0,i()}));var u=!1;return function(t){if(!a&&!u)return u=!0,function(t){return t.setHeader&&"function"==typeof t.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void i(t||new s("pipe"))}}(e,i,o>0,(function(t){f||(f=t),t&&h.forEach(u),i||(h.forEach(u),l(f))}))}));return r.reduce(c)}},{"../../../errors":42,"./end-of-stream":51}],54:[function(t,e,r){var n=t("../../../errors").codes.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(t,e,r,o){var i=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,o,r);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new n(o?r:"highWaterMark",i);return Math.floor(i)}return t.objectMode?16:16384}}},{"../../../errors":42}],55:[function(t,e,r){e.exports=t("events").EventEmitter},{events:36}],56:[function(t,e,r){var n=t("safe-buffer").Buffer,o=n.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===o||!o(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=u,this.end=c,e=4;break;case"utf8":this.fillLast=a,e=4;break;case"base64":this.text=f,this.end=l,e=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function s(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e=this.lastTotal-this.lastNeed,r=function(t,e){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function c(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function f(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function l(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function h(t){return t.toString(this.encoding)}function p(t){return t&&t.length?this.write(t):""}r.StringDecoder=i,i.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},i.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},i.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var o=s(e[n]);return o>=0?(o>0&&(t.lastNeed=o-1),o):--n<r||-2===o?0:(o=s(e[n]))>=0?(o>0&&(t.lastNeed=o-2),o):--n<r||-2===o?0:(o=s(e[n]))>=0?(o>0&&(2===o?o=0:t.lastNeed=o-3),o):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},i.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},{"safe-buffer":40}],57:[function(t,e,n){(function(t){(function(){function r(e){try{if(!t.localStorage)return!1}catch(t){return!1}var r=t.localStorage[e];return null!=r&&"true"===String(r).toLowerCase()}e.exports=function(t,e){if(r("noDeprecation"))return t;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(e);r("traceDeprecation")?console.trace(e):console.warn(e),n=!0}return t.apply(this,arguments)}}}).call(this)}).call(this,void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],58:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"v1",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(r,"v3",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(r,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(r,"v5",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(r,"NIL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(r,"version",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(r,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(r,"parse",{enumerable:!0,get:function(){return l.default}});var n=h(t("./v1.js")),o=h(t("./v3.js")),i=h(t("./v4.js")),s=h(t("./v5.js")),a=h(t("./nil.js")),u=h(t("./version.js")),c=h(t("./validate.js")),f=h(t("./stringify.js")),l=h(t("./parse.js"));function h(t){return t&&t.__esModule?t:{default:t}}},{"./nil.js":60,"./parse.js":61,"./stringify.js":65,"./v1.js":66,"./v3.js":67,"./v4.js":69,"./v5.js":70,"./validate.js":71,"./version.js":72}],59:[function(t,e,r){function n(t){return 14+(t+64>>>9<<4)+1}function o(t,e){var r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r}function i(t,e,r,n,i,s){return o((a=o(o(e,t),o(n,s)))<<(u=i)|a>>>32-u,r);var a,u}function s(t,e,r,n,o,s,a){return i(e&r|~e&n,t,e,o,s,a)}function a(t,e,r,n,o,s,a){return i(e&n|r&~n,t,e,o,s,a)}function u(t,e,r,n,o,s,a){return i(e^r^n,t,e,o,s,a)}function c(t,e,r,n,o,s,a){return i(r^(e|~n),t,e,o,s,a)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;r.default=function(t){if("string"==typeof t){var e=unescape(encodeURIComponent(t));t=new Uint8Array(e.length);for(var r=0;r<e.length;++r)t[r]=e.charCodeAt(r)}return function(t){for(var e=[],r=32*t.length,n="0123456789abcdef",o=0;o<r;o+=8){var i=t[o>>5]>>>o%32&255,s=parseInt(n.charAt(i>>>4&15)+n.charAt(15&i),16);e.push(s)}return e}(function(t,e){t[e>>5]|=128<<e%32,t[n(e)-1]=e;for(var r=1732584193,i=-271733879,f=-1732584194,l=271733878,h=0;h<t.length;h+=16){var p=r,d=i,y=f,b=l;r=s(r,i,f,l,t[h],7,-680876936),l=s(l,r,i,f,t[h+1],12,-389564586),f=s(f,l,r,i,t[h+2],17,606105819),i=s(i,f,l,r,t[h+3],22,-1044525330),r=s(r,i,f,l,t[h+4],7,-176418897),l=s(l,r,i,f,t[h+5],12,1200080426),f=s(f,l,r,i,t[h+6],17,-1473231341),i=s(i,f,l,r,t[h+7],22,-45705983),r=s(r,i,f,l,t[h+8],7,1770035416),l=s(l,r,i,f,t[h+9],12,-1958414417),f=s(f,l,r,i,t[h+10],17,-42063),i=s(i,f,l,r,t[h+11],22,-1990404162),r=s(r,i,f,l,t[h+12],7,1804603682),l=s(l,r,i,f,t[h+13],12,-40341101),f=s(f,l,r,i,t[h+14],17,-1502002290),r=a(r,i=s(i,f,l,r,t[h+15],22,1236535329),f,l,t[h+1],5,-165796510),l=a(l,r,i,f,t[h+6],9,-1069501632),f=a(f,l,r,i,t[h+11],14,643717713),i=a(i,f,l,r,t[h],20,-373897302),r=a(r,i,f,l,t[h+5],5,-701558691),l=a(l,r,i,f,t[h+10],9,38016083),f=a(f,l,r,i,t[h+15],14,-660478335),i=a(i,f,l,r,t[h+4],20,-405537848),r=a(r,i,f,l,t[h+9],5,568446438),l=a(l,r,i,f,t[h+14],9,-1019803690),f=a(f,l,r,i,t[h+3],14,-187363961),i=a(i,f,l,r,t[h+8],20,1163531501),r=a(r,i,f,l,t[h+13],5,-1444681467),l=a(l,r,i,f,t[h+2],9,-51403784),f=a(f,l,r,i,t[h+7],14,1735328473),r=u(r,i=a(i,f,l,r,t[h+12],20,-1926607734),f,l,t[h+5],4,-378558),l=u(l,r,i,f,t[h+8],11,-2022574463),f=u(f,l,r,i,t[h+11],16,1839030562),i=u(i,f,l,r,t[h+14],23,-35309556),r=u(r,i,f,l,t[h+1],4,-1530992060),l=u(l,r,i,f,t[h+4],11,1272893353),f=u(f,l,r,i,t[h+7],16,-155497632),i=u(i,f,l,r,t[h+10],23,-1094730640),r=u(r,i,f,l,t[h+13],4,681279174),l=u(l,r,i,f,t[h],11,-358537222),f=u(f,l,r,i,t[h+3],16,-722521979),i=u(i,f,l,r,t[h+6],23,76029189),r=u(r,i,f,l,t[h+9],4,-640364487),l=u(l,r,i,f,t[h+12],11,-421815835),f=u(f,l,r,i,t[h+15],16,530742520),r=c(r,i=u(i,f,l,r,t[h+2],23,-995338651),f,l,t[h],6,-198630844),l=c(l,r,i,f,t[h+7],10,1126891415),f=c(f,l,r,i,t[h+14],15,-1416354905),i=c(i,f,l,r,t[h+5],21,-57434055),r=c(r,i,f,l,t[h+12],6,1700485571),l=c(l,r,i,f,t[h+3],10,-1894986606),f=c(f,l,r,i,t[h+10],15,-1051523),i=c(i,f,l,r,t[h+1],21,-2054922799),r=c(r,i,f,l,t[h+8],6,1873313359),l=c(l,r,i,f,t[h+15],10,-30611744),f=c(f,l,r,i,t[h+6],15,-1560198380),i=c(i,f,l,r,t[h+13],21,1309151649),r=c(r,i,f,l,t[h+4],6,-145523070),l=c(l,r,i,f,t[h+11],10,-1120210379),f=c(f,l,r,i,t[h+2],15,718787259),i=c(i,f,l,r,t[h+9],21,-343485551),r=o(r,p),i=o(i,d),f=o(f,y),l=o(l,b)}return[r,i,f,l]}(function(t){if(0===t.length)return[];for(var e=8*t.length,r=new Uint32Array(n(e)),o=0;o<e;o+=8)r[o>>5]|=(255&t[o/8])<<o%32;return r}(t),8*t.length))}},{}],60:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default="00000000-0000-0000-0000-000000000000"},{}],61:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("./validate.js"))&&n.__esModule?n:{default:n};r.default=function(t){if(!(0,o.default)(t))throw TypeError("Invalid UUID");var e,r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=255&e,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=255&e,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=255&e,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=255&e,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=255&e,r}},{"./validate.js":71}],62:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},{}],63:[function(t,e,r){var n;Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(o)};var o=new Uint8Array(16)},{}],64:[function(t,e,r){function n(t,e,r,n){switch(t){case 0:return e&r^~e&n;case 1:case 3:return e^r^n;case 2:return e&r^e&n^r&n}}function o(t,e){return t<<e|t>>>32-e}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;r.default=function(t){var e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){var i=unescape(encodeURIComponent(t));t=[];for(var s=0;s<i.length;++s)t.push(i.charCodeAt(s))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);for(var a=t.length/4+2,u=Math.ceil(a/16),c=new Array(u),f=0;f<u;++f){for(var l=new Uint32Array(16),h=0;h<16;++h)l[h]=t[64*f+4*h]<<24|t[64*f+4*h+1]<<16|t[64*f+4*h+2]<<8|t[64*f+4*h+3];c[f]=l}c[u-1][14]=8*(t.length-1)/Math.pow(2,32),c[u-1][14]=Math.floor(c[u-1][14]),c[u-1][15]=8*(t.length-1)&4294967295;for(var p=0;p<u;++p){for(var d=new Uint32Array(80),y=0;y<16;++y)d[y]=c[p][y];for(var b=16;b<80;++b)d[b]=o(d[b-3]^d[b-8]^d[b-14]^d[b-16],1);for(var v=r[0],g=r[1],m=r[2],w=r[3],_=r[4],S=0;S<80;++S){var x=Math.floor(S/20),O=o(v,5)+n(x,g,m,w)+_+e[x]+d[S]>>>0;_=w,w=m,m=o(g,30)>>>0,g=v,v=O}r[0]=r[0]+v>>>0,r[1]=r[1]+g>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+w>>>0,r[4]=r[4]+_>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}},{}],65:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;for(var n,o=(n=t("./validate.js"))&&n.__esModule?n:{default:n},i=[],s=0;s<256;++s)i.push((s+256).toString(16).substr(1));r.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(i[t[e+0]]+i[t[e+1]]+i[t[e+2]]+i[t[e+3]]+"-"+i[t[e+4]]+i[t[e+5]]+"-"+i[t[e+6]]+i[t[e+7]]+"-"+i[t[e+8]]+i[t[e+9]]+"-"+i[t[e+10]]+i[t[e+11]]+i[t[e+12]]+i[t[e+13]]+i[t[e+14]]+i[t[e+15]]).toLowerCase();if(!(0,o.default)(r))throw TypeError("Stringified UUID is invalid");return r}},{"./validate.js":71}],66:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o,i=a(t("./rng.js")),s=a(t("./stringify.js"));function a(t){return t&&t.__esModule?t:{default:t}}var u=0,c=0;r.default=function(t,e,r){var a=e&&r||0,f=e||new Array(16),l=(t=t||{}).node||n,h=void 0!==t.clockseq?t.clockseq:o;if(null==l||null==h){var p=t.random||(t.rng||i.default)();null==l&&(l=n=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==h&&(h=o=16383&(p[6]<<8|p[7]))}var d=void 0!==t.msecs?t.msecs:Date.now(),y=void 0!==t.nsecs?t.nsecs:c+1,b=d-u+(y-c)/1e4;if(b<0&&void 0===t.clockseq&&(h=h+1&16383),(b<0||d>u)&&void 0===t.nsecs&&(y=0),y>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=d,c=y,o=h;var v=(1e4*(268435455&(d+=122192928e5))+y)%4294967296;f[a++]=v>>>24&255,f[a++]=v>>>16&255,f[a++]=v>>>8&255,f[a++]=255&v;var g=d/4294967296*1e4&268435455;f[a++]=g>>>8&255,f[a++]=255&g,f[a++]=g>>>24&15|16,f[a++]=g>>>16&255,f[a++]=h>>>8|128,f[a++]=255&h;for(var m=0;m<6;++m)f[a+m]=l[m];return e||(0,s.default)(f)}},{"./rng.js":63,"./stringify.js":65}],67:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=i(t("./v35.js")),o=i(t("./md5.js"));function i(t){return t&&t.__esModule?t:{default:t}}var s=(0,n.default)("v3",48,o.default);r.default=s},{"./md5.js":59,"./v35.js":68}],68:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(t,e,r){function i(t,i,s,a){if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r));return e}(t)),"string"==typeof i&&(i=(0,o.default)(i)),16!==i.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var u=new Uint8Array(16+t.length);if(u.set(i),u.set(t,i.length),(u=r(u))[6]=15&u[6]|e,u[8]=63&u[8]|128,s){a=a||0;for(var c=0;c<16;++c)s[a+c]=u[c];return s}return(0,n.default)(u)}try{i.name=t}catch(t){}return i.DNS=s,i.URL=a,i},r.URL=r.DNS=void 0;var n=i(t("./stringify.js")),o=i(t("./parse.js"));function i(t){return t&&t.__esModule?t:{default:t}}var s="6ba7b810-9dad-11d1-80b4-00c04fd430c8";r.DNS=s;var a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";r.URL=a},{"./parse.js":61,"./stringify.js":65}],69:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=i(t("./rng.js")),o=i(t("./stringify.js"));function i(t){return t&&t.__esModule?t:{default:t}}r.default=function(t,e,r){var i=(t=t||{}).random||(t.rng||n.default)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e){r=r||0;for(var s=0;s<16;++s)e[r+s]=i[s];return e}return(0,o.default)(i)}},{"./rng.js":63,"./stringify.js":65}],70:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=i(t("./v35.js")),o=i(t("./sha1.js"));function i(t){return t&&t.__esModule?t:{default:t}}var s=(0,n.default)("v5",80,o.default);r.default=s},{"./sha1.js":64,"./v35.js":68}],71:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("./regex.js"))&&n.__esModule?n:{default:n};r.default=function(t){return"string"==typeof t&&o.default.test(t)}},{"./regex.js":62}],72:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=(n=t("./validate.js"))&&n.__esModule?n:{default:n};r.default=function(t){if(!(0,o.default)(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)}},{"./validate.js":71}]},{},[9])(9)},"object"===(0,a.default)(e)?t.exports=s():(o=[],void 0===(i="function"==typeof(n=s)?n.apply(e,o):n)||(t.exports=i))},1545:function(t,e,r){"use strict";var n=r(4994),o=n(r(7383)),i=n(r(4579)),s=n(r(2475)),a=n(r(9511)),u=n(r(8452)),c=n(r(3072)),f=n(r(3738));var l=r(7526),h=r(251),p="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=b,e.SlowBuffer=function(t){return+t!=t&&(t=0),b.alloc(+t)},e.INSPECT_MAX_BYTES=50;var d=2147483647;function y(t){if(t>d)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,b.prototype),e}function b(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return m(t)}return v(t,e,r)}function v(t,e,r){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!b.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|x(t,e),n=y(r),o=n.write(t,e);return o!==r&&(n=n.slice(0,o)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(nt(t,Uint8Array)){var e=new Uint8Array(t);return _(e.buffer,e.byteOffset,e.byteLength)}return w(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+(0,f.default)(t));if(nt(t,ArrayBuffer)||t&&nt(t.buffer,ArrayBuffer))return _(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(nt(t,SharedArrayBuffer)||t&&nt(t.buffer,SharedArrayBuffer)))return _(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return b.from(n,e,r);var o=function(t){if(b.isBuffer(t)){var e=0|S(t.length),r=y(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||ot(t.length)?y(0):w(t):"Buffer"===t.type&&Array.isArray(t.data)?w(t.data):void 0}(t);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return b.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+(0,f.default)(t))}function g(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function m(t){return g(t),y(t<0?0:0|S(t))}function w(t){for(var e=t.length<0?0:0|S(t.length),r=y(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}function _(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),Object.setPrototypeOf(n,b.prototype),n}function S(t){if(t>=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return 0|t}function x(t,e){if(b.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||nt(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+(0,f.default)(t));var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return tt(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return et(t).length;default:if(o)return n?-1:tt(t).length;e=(""+e).toLowerCase(),o=!0}}function O(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return D(this,e,r);case"utf8":case"utf-8":return L(this,e,r);case"ascii":return B(this,e,r);case"latin1":case"binary":return U(this,e,r);case"base64":return C(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function E(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function j(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),ot(r=+r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=b.from(e,n)),b.isBuffer(e))return 0===e.length?-1:T(t,e,r,n,o);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):T(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function T(t,e,r,n,o){var i,s=1,a=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,r/=2}function c(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(o){var f=-1;for(i=r;i<a;i++)if(c(t,i)===c(e,-1===f?0:i-f)){if(-1===f&&(f=i),i-f+1===u)return f*s}else-1!==f&&(i-=i-f),f=-1}else for(r+u>a&&(r=a-u),i=r;i>=0;i--){for(var l=!0,h=0;h<u;h++)if(c(t,i+h)!==c(e,h)){l=!1;break}if(l)return i}return-1}function k(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i,s=e.length;for(n>s/2&&(n=s/2),i=0;i<n;++i){var a=parseInt(e.substr(2*i,2),16);if(ot(a))return i;t[r+i]=a}return i}function P(t,e,r,n){return rt(tt(e,t.length-r),t,r,n)}function R(t,e,r,n){return rt(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function A(t,e,r,n){return rt(et(e),t,r,n)}function M(t,e,r,n){return rt(function(t,e){for(var r,n,o,i=[],s=0;s<t.length&&!((e-=2)<0);++s)n=(r=t.charCodeAt(s))>>8,o=r%256,i.push(o),i.push(n);return i}(e,t.length-r),t,r,n)}function C(t,e,r){return 0===e&&r===t.length?l.fromByteArray(t):l.fromByteArray(t.slice(e,r))}function L(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i=t[o],s=null,a=i>239?4:i>223?3:i>191?2:1;if(o+a<=r){var u=void 0,c=void 0,f=void 0,l=void 0;switch(a){case 1:i<128&&(s=i);break;case 2:128==(192&(u=t[o+1]))&&(l=(31&i)<<6|63&u)>127&&(s=l);break;case 3:u=t[o+1],c=t[o+2],128==(192&u)&&128==(192&c)&&(l=(15&i)<<12|(63&u)<<6|63&c)>2047&&(l<55296||l>57343)&&(s=l);break;case 4:u=t[o+1],c=t[o+2],f=t[o+3],128==(192&u)&&128==(192&c)&&128==(192&f)&&(l=(15&i)<<18|(63&u)<<12|(63&c)<<6|63&f)>65535&&l<1114112&&(s=l)}}null===s?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|1023&s),n.push(s),o+=a}return function(t){var e=t.length;if(e<=I)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=I));return r}(n)}e.kMaxLength=d,b.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),b.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(b.prototype,"parent",{enumerable:!0,get:function(){if(b.isBuffer(this))return this.buffer}}),Object.defineProperty(b.prototype,"offset",{enumerable:!0,get:function(){if(b.isBuffer(this))return this.byteOffset}}),b.poolSize=8192,b.from=function(t,e,r){return v(t,e,r)},Object.setPrototypeOf(b.prototype,Uint8Array.prototype),Object.setPrototypeOf(b,Uint8Array),b.alloc=function(t,e,r){return function(t,e,r){return g(t),t<=0?y(t):void 0!==e?"string"==typeof r?y(t).fill(e,r):y(t).fill(e):y(t)}(t,e,r)},b.allocUnsafe=function(t){return m(t)},b.allocUnsafeSlow=function(t){return m(t)},b.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==b.prototype},b.compare=function(t,e){if(nt(t,Uint8Array)&&(t=b.from(t,t.offset,t.byteLength)),nt(e,Uint8Array)&&(e=b.from(e,e.offset,e.byteLength)),!b.isBuffer(t)||!b.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,o=0,i=Math.min(r,n);o<i;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0},b.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},b.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return b.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=b.allocUnsafe(e),o=0;for(r=0;r<t.length;++r){var i=t[r];if(nt(i,Uint8Array))o+i.length>n.length?(b.isBuffer(i)||(i=b.from(i)),i.copy(n,o)):Uint8Array.prototype.set.call(n,i,o);else{if(!b.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,o)}o+=i.length}return n},b.byteLength=x,b.prototype._isBuffer=!0,b.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)E(this,e,e+1);return this},b.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)E(this,e,e+3),E(this,e+1,e+2);return this},b.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)E(this,e,e+7),E(this,e+1,e+6),E(this,e+2,e+5),E(this,e+3,e+4);return this},b.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?L(this,0,t):O.apply(this,arguments)},b.prototype.toLocaleString=b.prototype.toString,b.prototype.equals=function(t){if(!b.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===b.compare(this,t)},b.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},p&&(b.prototype[p]=b.prototype.inspect),b.prototype.compare=function(t,e,r,n,o){if(nt(t,Uint8Array)&&(t=b.from(t,t.offset,t.byteLength)),!b.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+(0,f.default)(t));if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(n>>>=0),s=(r>>>=0)-(e>>>=0),a=Math.min(i,s),u=this.slice(n,o),c=t.slice(e,r),l=0;l<a;++l)if(u[l]!==c[l]){i=u[l],s=c[l];break}return i<s?-1:s<i?1:0},b.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},b.prototype.indexOf=function(t,e,r){return j(this,t,e,r,!0)},b.prototype.lastIndexOf=function(t,e,r){return j(this,t,e,r,!1)},b.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return k(this,t,e,r);case"utf8":case"utf-8":return P(this,t,e,r);case"ascii":case"latin1":case"binary":return R(this,t,e,r);case"base64":return A(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},b.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function B(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(127&t[o]);return n}function U(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function D(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=it[t[i]];return o}function N(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length-1;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function q(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function F(t,e,r,n,o,i){if(!b.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function H(t,e,r,n,o){X(e,n,o,t,r,7);var i=Number(e&BigInt(4294967295));t[r++]=i,i>>=8,t[r++]=i,i>>=8,t[r++]=i,i>>=8,t[r++]=i;var s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s,r}function W(t,e,r,n,o){X(e,n,o,t,r,7);var i=Number(e&BigInt(4294967295));t[r+7]=i,i>>=8,t[r+6]=i,i>>=8,t[r+5]=i,i>>=8,t[r+4]=i;var s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=s,s>>=8,t[r+2]=s,s>>=8,t[r+1]=s,s>>=8,t[r]=s,r+8}function G(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function V(t,e,r,n,o){return e=+e,r>>>=0,o||G(t,0,r,4),h.write(t,e,r,n,23,4),r+4}function z(t,e,r,n,o){return e=+e,r>>>=0,o||G(t,0,r,8),h.write(t,e,r,n,52,8),r+8}b.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return Object.setPrototypeOf(n,b.prototype),n},b.prototype.readUintLE=b.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||q(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},b.prototype.readUintBE=b.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||q(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},b.prototype.readUint8=b.prototype.readUInt8=function(t,e){return t>>>=0,e||q(t,1,this.length),this[t]},b.prototype.readUint16LE=b.prototype.readUInt16LE=function(t,e){return t>>>=0,e||q(t,2,this.length),this[t]|this[t+1]<<8},b.prototype.readUint16BE=b.prototype.readUInt16BE=function(t,e){return t>>>=0,e||q(t,2,this.length),this[t]<<8|this[t+1]},b.prototype.readUint32LE=b.prototype.readUInt32LE=function(t,e){return t>>>=0,e||q(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},b.prototype.readUint32BE=b.prototype.readUInt32BE=function(t,e){return t>>>=0,e||q(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},b.prototype.readBigUInt64LE=st((function(t){K(t>>>=0,"offset");var e=this[t],r=this[t+7];void 0!==e&&void 0!==r||Q(t,this.length-8);var n=e+this[++t]*Math.pow(2,8)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,24),o=this[++t]+this[++t]*Math.pow(2,8)+this[++t]*Math.pow(2,16)+r*Math.pow(2,24);return BigInt(n)+(BigInt(o)<<BigInt(32))})),b.prototype.readBigUInt64BE=st((function(t){K(t>>>=0,"offset");var e=this[t],r=this[t+7];void 0!==e&&void 0!==r||Q(t,this.length-8);var n=e*Math.pow(2,24)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,8)+this[++t],o=this[++t]*Math.pow(2,24)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,8)+r;return(BigInt(n)<<BigInt(32))+BigInt(o)})),b.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||q(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*e)),n},b.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||q(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},b.prototype.readInt8=function(t,e){return t>>>=0,e||q(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},b.prototype.readInt16LE=function(t,e){t>>>=0,e||q(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},b.prototype.readInt16BE=function(t,e){t>>>=0,e||q(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},b.prototype.readInt32LE=function(t,e){return t>>>=0,e||q(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},b.prototype.readInt32BE=function(t,e){return t>>>=0,e||q(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},b.prototype.readBigInt64LE=st((function(t){K(t>>>=0,"offset");var e=this[t],r=this[t+7];void 0!==e&&void 0!==r||Q(t,this.length-8);var n=this[t+4]+this[t+5]*Math.pow(2,8)+this[t+6]*Math.pow(2,16)+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(e+this[++t]*Math.pow(2,8)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,24))})),b.prototype.readBigInt64BE=st((function(t){K(t>>>=0,"offset");var e=this[t],r=this[t+7];void 0!==e&&void 0!==r||Q(t,this.length-8);var n=(e<<24)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,8)+this[++t];return(BigInt(n)<<BigInt(32))+BigInt(this[++t]*Math.pow(2,24)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,8)+r)})),b.prototype.readFloatLE=function(t,e){return t>>>=0,e||q(t,4,this.length),h.read(this,t,!0,23,4)},b.prototype.readFloatBE=function(t,e){return t>>>=0,e||q(t,4,this.length),h.read(this,t,!1,23,4)},b.prototype.readDoubleLE=function(t,e){return t>>>=0,e||q(t,8,this.length),h.read(this,t,!0,52,8)},b.prototype.readDoubleBE=function(t,e){return t>>>=0,e||q(t,8,this.length),h.read(this,t,!1,52,8)},b.prototype.writeUintLE=b.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||F(this,t,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},b.prototype.writeUintBE=b.prototype.writeUIntBE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||F(this,t,e,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+r},b.prototype.writeUint8=b.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,1,255,0),this[e]=255&t,e+1},b.prototype.writeUint16LE=b.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},b.prototype.writeUint16BE=b.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},b.prototype.writeUint32LE=b.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},b.prototype.writeUint32BE=b.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},b.prototype.writeBigUInt64LE=st((function(t){return H(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),b.prototype.writeBigUInt64BE=st((function(t){return W(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),b.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var o=Math.pow(2,8*r-1);F(this,t,e,r,o-1,-o)}var i=0,s=1,a=0;for(this[e]=255&t;++i<r&&(s*=256);)t<0&&0===a&&0!==this[e+i-1]&&(a=1),this[e+i]=(t/s|0)-a&255;return e+r},b.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var o=Math.pow(2,8*r-1);F(this,t,e,r,o-1,-o)}var i=r-1,s=1,a=0;for(this[e+i]=255&t;--i>=0&&(s*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/s|0)-a&255;return e+r},b.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},b.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},b.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},b.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},b.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},b.prototype.writeBigInt64LE=st((function(t){return H(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),b.prototype.writeBigInt64BE=st((function(t){return W(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),b.prototype.writeFloatLE=function(t,e,r){return V(this,t,e,!0,r)},b.prototype.writeFloatBE=function(t,e,r){return V(this,t,e,!1,r)},b.prototype.writeDoubleLE=function(t,e,r){return z(this,t,e,!0,r)},b.prototype.writeDoubleBE=function(t,e,r){return z(this,t,e,!1,r)},b.prototype.copy=function(t,e,r,n){if(!b.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var o=n-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,n):Uint8Array.prototype.set.call(t,this.subarray(r,n),e),o},b.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!b.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){var o=t.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(t=o)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var i;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var s=b.isBuffer(t)?t:b.from(t,n),a=s.length;if(0===a)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=s[i%a]}return this};var $={};function Y(t,e,r){$[t]=function(r){(0,a.default)(h,r);var n,f,l=(n=h,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=(0,c.default)(n);if(f){var r=(0,c.default)(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return(0,u.default)(this,t)});function h(){var r;return(0,o.default)(this,h),r=l.call(this),Object.defineProperty((0,s.default)(r),"message",{value:e.apply((0,s.default)(r),arguments),writable:!0,configurable:!0}),r.name="".concat(r.name," [").concat(t,"]"),r.stack,delete r.name,r}return(0,i.default)(h,[{key:"code",get:function(){return t},set:function(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(t,"]: ").concat(this.message)}}]),h}(r)}function J(t){for(var e="",r=t.length,n="-"===t[0]?1:0;r>=n+4;r-=3)e="_".concat(t.slice(r-3,r)).concat(e);return"".concat(t.slice(0,r)).concat(e)}function X(t,e,r,n,o,i){if(t>r||t<e){var s,a="bigint"==typeof e?"n":"";throw s=i>3?0===e||e===BigInt(0)?">= 0".concat(a," and < 2").concat(a," ** ").concat(8*(i+1)).concat(a):">= -(2".concat(a," ** ").concat(8*(i+1)-1).concat(a,") and < 2 ** ")+"".concat(8*(i+1)-1).concat(a):">= ".concat(e).concat(a," and <= ").concat(r).concat(a),new $.ERR_OUT_OF_RANGE("value",s,t)}!function(t,e,r){K(e,"offset"),void 0!==t[e]&&void 0!==t[e+r]||Q(e,t.length-(r+1))}(n,o,i)}function K(t,e){if("number"!=typeof t)throw new $.ERR_INVALID_ARG_TYPE(e,"number",t)}function Q(t,e,r){if(Math.floor(t)!==t)throw K(t,r),new $.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new $.ERR_BUFFER_OUT_OF_BOUNDS;throw new $.ERR_OUT_OF_RANGE(r||"offset",">= ".concat(r?1:0," and <= ").concat(e),t)}Y("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?"".concat(t," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),Y("ERR_INVALID_ARG_TYPE",(function(t,e){return'The "'.concat(t,'" argument must be of type number. Received type ').concat((0,f.default)(e))}),TypeError),Y("ERR_OUT_OF_RANGE",(function(t,e,r){var n='The value of "'.concat(t,'" is out of range.'),o=r;return Number.isInteger(r)&&Math.abs(r)>Math.pow(2,32)?o=J(String(r)):"bigint"==typeof r&&(o=String(r),(r>Math.pow(BigInt(2),BigInt(32))||r<-Math.pow(BigInt(2),BigInt(32)))&&(o=J(o)),o+="n"),n+" It must be ".concat(e,". Received ").concat(o)}),RangeError);var Z=/[^+/0-9A-Za-z-_]/g;function tt(t,e){var r;e=e||1/0;for(var n=t.length,o=null,i=[],s=0;s<n;++s){if((r=t.charCodeAt(s))>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(s+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function et(t){return l.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(Z,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function rt(t,e,r,n){var o;for(o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function nt(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function ot(t){return t!=t}var it=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=16*r,o=0;o<16;++o)e[n+o]=t[r]+t[o];return e}();function st(t){return"undefined"==typeof BigInt?at:t}function at(){throw new Error("BigInt not supported")}},7526:function(t,e){"use strict";e.byteLength=function(t){var e=a(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,i=a(t),s=i[0],u=i[1],c=new o(function(t,e,r){return 3*(e+r)/4-r}(0,s,u)),f=0,l=u>0?s-4:s;for(r=0;r<l;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],c[f++]=e>>16&255,c[f++]=e>>8&255,c[f++]=255&e;return 2===u&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,c[f++]=255&e),1===u&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,c[f++]=e>>8&255,c[f++]=255&e),c},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,i=[],s=16383,a=0,c=n-o;a<c;a+=s)i.push(u(t,a,a+s>c?c:a+s));return 1===o?(e=t[n-1],i.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],i.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)r[s]=i[s],n[i.charCodeAt(s)]=s;function a(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function u(t,e,n){for(var o,i,s=[],a=e;a<n;a+=3)o=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),s.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return s.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},7357:function(t,e,r){r(624),r(5086),r(9193),r(5880),r(5773),r(3396),r(9979),r(4602);var n=r(9720);t.exports=n.Promise},6378:function(t,e,r){var n=r(7357);r(5149),r(1037),r(4175),r(1084),t.exports=n},9085:function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},7473:function(t,e,r){var n=r(5335);t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},298:function(t,e,r){var n=r(1602),o=r(3105),i=r(3610),s=n("unscopables"),a=Array.prototype;null==a[s]&&i.f(a,s,{configurable:!0,value:o(null)}),t.exports=function(t){a[s][t]=!0}},5190:function(t){t.exports=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t}},3938:function(t,e,r){var n=r(5335);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},8186:function(t,e,r){var n=r(5476),o=r(3747),i=r(6539),s=function(t){return function(e,r,s){var a,u=n(e),c=o(u.length),f=i(s,c);if(t&&r!=r){for(;c>f;)if((a=u[f++])!=a)return!0}else for(;c>f;f++)if((t||f in u)&&u[f]===r)return t||f||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},7499:function(t,e,r){var n=r(1602)("iterator"),o=!1;try{var i=0,s={next:function(){return{done:!!i++}},return:function(){o=!0}};s[n]=function(){return this},Array.from(s,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},t(i)}catch(t){}return r}},8569:function(t){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},3062:function(t,e,r){var n=r(3129),o=r(8569),i=r(1602)("toStringTag"),s="Arguments"==o(function(){return arguments}());t.exports=n?o:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?r:s?o(e):"Object"==(n=o(e))&&"function"==typeof e.callee?"Arguments":n}},4361:function(t,e,r){var n=r(1883),o=r(5816),i=r(7632),s=r(3610);t.exports=function(t,e){for(var r=o(e),a=s.f,u=i.f,c=0;c<r.length;c++){var f=r[c];n(t,f)||a(t,f,u(e,f))}}},7168:function(t,e,r){var n=r(2074);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},2147:function(t,e,r){"use strict";var n=r(9306).IteratorPrototype,o=r(3105),i=r(6843),s=r(5282),a=r(2228),u=function(){return this};t.exports=function(t,e,r){var c=e+" Iterator";return t.prototype=o(n,{next:i(1,r)}),s(t,c,!1,!0),a[c]=u,t}},7712:function(t,e,r){var n=r(5077),o=r(3610),i=r(6843);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},6843:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},5723:function(t,e,r){"use strict";var n=r(1605),o=r(2147),i=r(7970),s=r(9686),a=r(5282),u=r(7712),c=r(7485),f=r(1602),l=r(6926),h=r(2228),p=r(9306),d=p.IteratorPrototype,y=p.BUGGY_SAFARI_ITERATORS,b=f("iterator"),v="keys",g="values",m="entries",w=function(){return this};t.exports=function(t,e,r,f,p,_,S){o(r,e,f);var x,O,E,j=function(t){if(t===p&&A)return A;if(!y&&t in P)return P[t];switch(t){case v:case g:case m:return function(){return new r(this,t)}}return function(){return new r(this)}},T=e+" Iterator",k=!1,P=t.prototype,R=P[b]||P["@@iterator"]||p&&P[p],A=!y&&R||j(p),M="Array"==e&&P.entries||R;if(M&&(x=i(M.call(new t)),d!==Object.prototype&&x.next&&(l||i(x)===d||(s?s(x,d):"function"!=typeof x[b]&&u(x,b,w)),a(x,T,!0,!0),l&&(h[T]=w))),p==g&&R&&R.name!==g&&(k=!0,A=function(){return R.call(this)}),l&&!S||P[b]===A||u(P,b,A),h[e]=A,p)if(O={values:j(g),keys:_?A:j(v),entries:j(m)},S)for(E in O)(y||k||!(E in P))&&c(P,E,O[E]);else n({target:e,proto:!0,forced:y||k},O);return O}},5077:function(t,e,r){var n=r(2074);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},3262:function(t,e,r){var n=r(200),o=r(5335),i=n.document,s=o(i)&&o(i.createElement);t.exports=function(t){return s?i.createElement(t):{}}},5549:function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8523:function(t){t.exports="object"==typeof window},2050:function(t,e,r){var n=r(7061);t.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(n)},5223:function(t,e,r){var n=r(8569),o=r(200);t.exports="process"==n(o.process)},4318:function(t,e,r){var n=r(7061);t.exports=/web0s(?!.*chrome)/i.test(n)},7061:function(t,e,r){var n=r(6492);t.exports=n("navigator","userAgent")||""},6845:function(t,e,r){var n,o,i=r(200),s=r(7061),a=i.process,u=a&&a.versions,c=u&&u.v8;c?o=(n=c.split("."))[0]<4?1:n[0]+n[1]:s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(o=n[1]),t.exports=o&&+o},290:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1605:function(t,e,r){var n=r(200),o=r(7632).f,i=r(7712),s=r(7485),a=r(5975),u=r(4361),c=r(4977);t.exports=function(t,e){var r,f,l,h,p,d=t.target,y=t.global,b=t.stat;if(r=y?n:b?n[d]||a(d,{}):(n[d]||{}).prototype)for(f in e){if(h=e[f],l=t.noTargetGet?(p=o(r,f))&&p.value:r[f],!c(y?f:d+(b?".":"#")+f,t.forced)&&void 0!==l){if(typeof h==typeof l)continue;u(h,l)}(t.sham||l&&l.sham)&&i(h,"sham",!0),s(r,f,h,t)}}},2074:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},6885:function(t,e,r){var n=r(9085);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},6492:function(t,e,r){var n=r(9720),o=r(200),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(n[t])||i(o[t]):n[t]&&n[t][e]||o[t]&&o[t][e]}},1898:function(t,e,r){var n=r(3062),o=r(2228),i=r(1602)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[n(t)]}},200:function(t,e,r){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()},1883:function(t,e,r){var n=r(2612),o={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return o.call(n(t),e)}},7708:function(t){t.exports={}},9778:function(t,e,r){var n=r(200);t.exports=function(t,e){var r=n.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}},8890:function(t,e,r){var n=r(6492);t.exports=n("document","documentElement")},7694:function(t,e,r){var n=r(5077),o=r(2074),i=r(3262);t.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8664:function(t,e,r){var n=r(2074),o=r(8569),i="".split;t.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},9965:function(t,e,r){var n=r(9310),o=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(t){return o.call(t)}),t.exports=n.inspectSource},9206:function(t,e,r){var n,o,i,s=r(2886),a=r(200),u=r(5335),c=r(7712),f=r(1883),l=r(9310),h=r(5904),p=r(7708),d="Object already initialized",y=a.WeakMap;if(s||l.state){var b=l.state||(l.state=new y),v=b.get,g=b.has,m=b.set;n=function(t,e){if(g.call(b,t))throw new TypeError(d);return e.facade=t,m.call(b,t,e),e},o=function(t){return v.call(b,t)||{}},i=function(t){return g.call(b,t)}}else{var w=h("state");p[w]=!0,n=function(t,e){if(f(t,w))throw new TypeError(d);return e.facade=t,c(t,w,e),e},o=function(t){return f(t,w)?t[w]:{}},i=function(t){return f(t,w)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!u(e)||(r=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}}},9034:function(t,e,r){var n=r(1602),o=r(2228),i=n("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||s[i]===t)}},4977:function(t,e,r){var n=r(2074),o=/#|\.prototype\./,i=function(t,e){var r=a[s(t)];return r==c||r!=u&&("function"==typeof e?n(e):!!e)},s=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},a=i.data={},u=i.NATIVE="N",c=i.POLYFILL="P";t.exports=i},5335:function(t){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},6926:function(t){t.exports=!1},2929:function(t,e,r){var n=r(3938),o=r(9034),i=r(3747),s=r(6885),a=r(1898),u=r(9868),c=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,r){var f,l,h,p,d,y,b,v=r&&r.that,g=!(!r||!r.AS_ENTRIES),m=!(!r||!r.IS_ITERATOR),w=!(!r||!r.INTERRUPTED),_=s(e,v,1+g+w),S=function(t){return f&&u(f),new c(!0,t)},x=function(t){return g?(n(t),w?_(t[0],t[1],S):_(t[0],t[1])):w?_(t,S):_(t)};if(m)f=t;else{if("function"!=typeof(l=a(t)))throw TypeError("Target is not iterable");if(o(l)){for(h=0,p=i(t.length);p>h;h++)if((d=x(t[h]))&&d instanceof c)return d;return new c(!1)}f=l.call(t)}for(y=f.next;!(b=y.call(f)).done;){try{d=x(b.value)}catch(t){throw u(f),t}if("object"==typeof d&&d&&d instanceof c)return d}return new c(!1)}},9868:function(t,e,r){var n=r(3938);t.exports=function(t){var e=t.return;if(void 0!==e)return n(e.call(t)).value}},9306:function(t,e,r){"use strict";var n,o,i,s=r(2074),a=r(7970),u=r(7712),c=r(1883),f=r(1602),l=r(6926),h=f("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(n=o):p=!0);var d=null==n||s((function(){var t={};return n[h].call(t)!==t}));d&&(n={}),l&&!d||c(n,h)||u(n,h,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:p}},2228:function(t){t.exports={}},7462:function(t,e,r){var n,o,i,s,a,u,c,f,l=r(200),h=r(7632).f,p=r(4922).set,d=r(2050),y=r(4318),b=r(5223),v=l.MutationObserver||l.WebKitMutationObserver,g=l.document,m=l.process,w=l.Promise,_=h(l,"queueMicrotask"),S=_&&_.value;S||(n=function(){var t,e;for(b&&(t=m.domain)&&t.exit();o;){e=o.fn,o=o.next;try{e()}catch(t){throw o?s():i=void 0,t}}i=void 0,t&&t.enter()},d||b||y||!v||!g?w&&w.resolve?((c=w.resolve(void 0)).constructor=w,f=c.then,s=function(){f.call(c,n)}):s=b?function(){m.nextTick(n)}:function(){p.call(l,n)}:(a=!0,u=g.createTextNode(""),new v(n).observe(u,{characterData:!0}),s=function(){u.data=a=!a})),t.exports=S||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,s()),i=e}},3737:function(t,e,r){var n=r(200);t.exports=n.Promise},1849:function(t,e,r){var n=r(6845),o=r(2074);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},2886:function(t,e,r){var n=r(200),o=r(9965),i=n.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},9836:function(t,e,r){"use strict";var n=r(9085),o=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=n(e),this.reject=n(r)};t.exports.f=function(t){return new o(t)}},3105:function(t,e,r){var n,o=r(3938),i=r(5318),s=r(290),a=r(7708),u=r(8890),c=r(3262),f=r(5904),l="prototype",h="script",p=f("IE_PROTO"),d=function(){},y=function(t){return"<"+h+">"+t+"</"+h+">"},b=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e,r;b=n?function(t){t.write(y("")),t.close();var e=t.parentWindow.Object;return t=null,e}(n):(e=c("iframe"),r="java"+h+":",e.style.display="none",u.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(y("document.F=Object")),t.close(),t.F);for(var o=s.length;o--;)delete b[l][s[o]];return b()};a[p]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(d[l]=o(t),r=new d,d[l]=null,r[p]=t):r=b(),void 0===e?r:i(r,e)}},5318:function(t,e,r){var n=r(5077),o=r(3610),i=r(3938),s=r(1641);t.exports=n?Object.defineProperties:function(t,e){i(t);for(var r,n=s(e),a=n.length,u=0;a>u;)o.f(t,r=n[u++],e[r]);return t}},3610:function(t,e,r){var n=r(5077),o=r(7694),i=r(3938),s=r(874),a=Object.defineProperty;e.f=n?a:function(t,e,r){if(i(t),e=s(e,!0),i(r),o)try{return a(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},7632:function(t,e,r){var n=r(5077),o=r(9304),i=r(6843),s=r(5476),a=r(874),u=r(1883),c=r(7694),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=s(t),e=a(e,!0),c)try{return f(t,e)}catch(t){}if(u(t,e))return i(!o.f.call(t,e),t[e])}},4789:function(t,e,r){var n=r(6347),o=r(290).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},8916:function(t,e){e.f=Object.getOwnPropertySymbols},7970:function(t,e,r){var n=r(1883),o=r(2612),i=r(5904),s=r(7168),a=i("IE_PROTO"),u=Object.prototype;t.exports=s?Object.getPrototypeOf:function(t){return t=o(t),n(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},6347:function(t,e,r){var n=r(1883),o=r(5476),i=r(8186).indexOf,s=r(7708);t.exports=function(t,e){var r,a=o(t),u=0,c=[];for(r in a)!n(s,r)&&n(a,r)&&c.push(r);for(;e.length>u;)n(a,r=e[u++])&&(~i(c,r)||c.push(r));return c}},1641:function(t,e,r){var n=r(6347),o=r(290);t.exports=Object.keys||function(t){return n(t,o)}},9304:function(t,e){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);e.f=o?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},9686:function(t,e,r){var n=r(3938),o=r(7473);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,i){return n(r),o(i),e?t.call(r,i):r.__proto__=i,r}}():void 0)},4972:function(t,e,r){"use strict";var n=r(3129),o=r(3062);t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},5816:function(t,e,r){var n=r(6492),o=r(4789),i=r(8916),s=r(3938);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(s(t)),r=i.f;return r?e.concat(r(t)):e}},9720:function(t,e,r){var n=r(200);t.exports=n},242:function(t){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},9803:function(t,e,r){var n=r(3938),o=r(5335),i=r(9836);t.exports=function(t,e){if(n(t),o(e)&&e.constructor===t)return e;var r=i.f(t);return(0,r.resolve)(e),r.promise}},3075:function(t,e,r){var n=r(7485);t.exports=function(t,e,r){for(var o in e)n(t,o,e[o],r);return t}},7485:function(t,e,r){var n=r(200),o=r(7712),i=r(1883),s=r(5975),a=r(9965),u=r(9206),c=u.get,f=u.enforce,l=String(String).split("String");(t.exports=function(t,e,r,a){var u,c=!!a&&!!a.unsafe,h=!!a&&!!a.enumerable,p=!!a&&!!a.noTargetGet;"function"==typeof r&&("string"!=typeof e||i(r,"name")||o(r,"name",e),(u=f(r)).source||(u.source=l.join("string"==typeof e?e:""))),t!==n?(c?!p&&t[e]&&(h=!0):delete t[e],h?t[e]=r:o(t,e,r)):h?t[e]=r:s(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||a(this)}))},1229:function(t){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},5975:function(t,e,r){var n=r(200),o=r(7712);t.exports=function(t,e){try{o(n,t,e)}catch(r){n[t]=e}return e}},3524:function(t,e,r){"use strict";var n=r(6492),o=r(3610),i=r(1602),s=r(5077),a=i("species");t.exports=function(t){var e=n(t),r=o.f;s&&e&&!e[a]&&r(e,a,{configurable:!0,get:function(){return this}})}},5282:function(t,e,r){var n=r(3610).f,o=r(1883),i=r(1602)("toStringTag");t.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,i)&&n(t,i,{configurable:!0,value:e})}},5904:function(t,e,r){var n=r(2),o=r(665),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},9310:function(t,e,r){var n=r(200),o=r(5975),i="__core-js_shared__",s=n[i]||o(i,{});t.exports=s},2:function(t,e,r){var n=r(6926),o=r(9310);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.15.2",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},3444:function(t,e,r){var n=r(3938),o=r(9085),i=r(1602)("species");t.exports=function(t,e){var r,s=n(t).constructor;return void 0===s||null==(r=n(s)[i])?e:o(r)}},7804:function(t,e,r){var n=r(7317),o=r(1229),i=function(t){return function(e,r){var i,s,a=String(o(e)),u=n(r),c=a.length;return u<0||u>=c?t?"":void 0:(i=a.charCodeAt(u))<55296||i>56319||u+1===c||(s=a.charCodeAt(u+1))<56320||s>57343?t?a.charAt(u):i:t?a.slice(u,u+2):s-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},4922:function(t,e,r){var n,o,i,s=r(200),a=r(2074),u=r(6885),c=r(8890),f=r(3262),l=r(2050),h=r(5223),p=s.location,d=s.setImmediate,y=s.clearImmediate,b=s.process,v=s.MessageChannel,g=s.Dispatch,m=0,w={},_="onreadystatechange",S=function(t){if(w.hasOwnProperty(t)){var e=w[t];delete w[t],e()}},x=function(t){return function(){S(t)}},O=function(t){S(t.data)},E=function(t){s.postMessage(t+"",p.protocol+"//"+p.host)};d&&y||(d=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return w[++m]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},n(m),m},y=function(t){delete w[t]},h?n=function(t){b.nextTick(x(t))}:g&&g.now?n=function(t){g.now(x(t))}:v&&!l?(i=(o=new v).port2,o.port1.onmessage=O,n=u(i.postMessage,i,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts&&p&&"file:"!==p.protocol&&!a(E)?(n=E,s.addEventListener("message",O,!1)):n=_ in f("script")?function(t){c.appendChild(f("script"))[_]=function(){c.removeChild(this),S(t)}}:function(t){setTimeout(x(t),0)}),t.exports={set:d,clear:y}},6539:function(t,e,r){var n=r(7317),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},5476:function(t,e,r){var n=r(8664),o=r(1229);t.exports=function(t){return n(o(t))}},7317:function(t){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},3747:function(t,e,r){var n=r(7317),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},2612:function(t,e,r){var n=r(1229);t.exports=function(t){return Object(n(t))}},874:function(t,e,r){var n=r(5335);t.exports=function(t,e){if(!n(t))return t;var r,o;if(e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if(!e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},3129:function(t,e,r){var n={};n[r(1602)("toStringTag")]="z",t.exports="[object z]"===String(n)},665:function(t){var e=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+r).toString(36)}},5225:function(t,e,r){var n=r(1849);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1602:function(t,e,r){var n=r(200),o=r(2),i=r(1883),s=r(665),a=r(1849),u=r(5225),c=o("wks"),f=n.Symbol,l=u?f:f&&f.withoutSetter||s;t.exports=function(t){return i(c,t)&&(a||"string"==typeof c[t])||(a&&i(f,t)?c[t]=f[t]:c[t]=l("Symbol."+t)),c[t]}},624:function(t,e,r){"use strict";var n=r(1605),o=r(7970),i=r(9686),s=r(3105),a=r(7712),u=r(6843),c=r(2929),f=function(t,e){var r=this;if(!(r instanceof f))return new f(t,e);i&&(r=i(new Error(void 0),o(r))),void 0!==e&&a(r,"message",String(e));var n=[];return c(t,n.push,{that:n}),a(r,"errors",n),r};f.prototype=s(Error.prototype,{constructor:u(5,f),message:u(5,""),name:u(5,"AggregateError")}),n({global:!0},{AggregateError:f})},8665:function(t,e,r){"use strict";var n=r(5476),o=r(298),i=r(2228),s=r(9206),a=r(5723),u="Array Iterator",c=s.set,f=s.getterFor(u);t.exports=a(Array,"Array",(function(t,e){c(this,{type:u,target:n(t),index:0,kind:e})}),(function(){var t=f(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},5086:function(t,e,r){var n=r(3129),o=r(7485),i=r(4972);n||o(Object.prototype,"toString",i,{unsafe:!0})},5880:function(t,e,r){"use strict";var n=r(1605),o=r(9085),i=r(9836),s=r(242),a=r(2929);n({target:"Promise",stat:!0},{allSettled:function(t){var e=this,r=i.f(e),n=r.resolve,u=r.reject,c=s((function(){var r=o(e.resolve),i=[],s=0,u=1;a(t,(function(t){var o=s++,a=!1;i.push(void 0),u++,r.call(e,t).then((function(t){a||(a=!0,i[o]={status:"fulfilled",value:t},--u||n(i))}),(function(t){a||(a=!0,i[o]={status:"rejected",reason:t},--u||n(i))}))})),--u||n(i)}));return c.error&&u(c.value),r.promise}})},5773:function(t,e,r){"use strict";var n=r(1605),o=r(9085),i=r(6492),s=r(9836),a=r(242),u=r(2929),c="No one promise resolved";n({target:"Promise",stat:!0},{any:function(t){var e=this,r=s.f(e),n=r.resolve,f=r.reject,l=a((function(){var r=o(e.resolve),s=[],a=0,l=1,h=!1;u(t,(function(t){var o=a++,u=!1;s.push(void 0),l++,r.call(e,t).then((function(t){u||h||(h=!0,n(t))}),(function(t){u||h||(u=!0,s[o]=t,--l||f(new(i("AggregateError"))(s,c)))}))})),--l||f(new(i("AggregateError"))(s,c))}));return l.error&&f(l.value),r.promise}})},3396:function(t,e,r){"use strict";var n=r(1605),o=r(6926),i=r(3737),s=r(2074),a=r(6492),u=r(3444),c=r(9803),f=r(7485);if(n({target:"Promise",proto:!0,real:!0,forced:!!i&&s((function(){i.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=u(this,a("Promise")),r="function"==typeof t;return this.then(r?function(r){return c(e,t()).then((function(){return r}))}:t,r?function(r){return c(e,t()).then((function(){throw r}))}:t)}}),!o&&"function"==typeof i){var l=a("Promise").prototype.finally;i.prototype.finally!==l&&f(i.prototype,"finally",l,{unsafe:!0})}},9193:function(t,e,r){"use strict";var n,o,i,s,a=r(1605),u=r(6926),c=r(200),f=r(6492),l=r(3737),h=r(7485),p=r(3075),d=r(9686),y=r(5282),b=r(3524),v=r(5335),g=r(9085),m=r(5190),w=r(9965),_=r(2929),S=r(7499),x=r(3444),O=r(4922).set,E=r(7462),j=r(9803),T=r(9778),k=r(9836),P=r(242),R=r(9206),A=r(4977),M=r(1602),C=r(8523),L=r(5223),I=r(6845),B=M("species"),U="Promise",D=R.get,N=R.set,q=R.getterFor(U),F=l&&l.prototype,H=l,W=F,G=c.TypeError,V=c.document,z=c.process,$=k.f,Y=$,J=!!(V&&V.createEvent&&c.dispatchEvent),X="function"==typeof PromiseRejectionEvent,K="unhandledrejection",Q=!1,Z=A(U,(function(){var t=w(H),e=t!==String(H);if(!e&&66===I)return!0;if(u&&!W.finally)return!0;if(I>=51&&/native code/.test(t))return!1;var r=new H((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};return(r.constructor={})[B]=n,!(Q=r.then((function(){}))instanceof n)||!e&&C&&!X})),tt=Z||!S((function(t){H.all(t).catch((function(){}))})),et=function(t){var e;return!(!v(t)||"function"!=typeof(e=t.then))&&e},rt=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;E((function(){for(var n=t.value,o=1==t.state,i=0;r.length>i;){var s,a,u,c=r[i++],f=o?c.ok:c.fail,l=c.resolve,h=c.reject,p=c.domain;try{f?(o||(2===t.rejection&&st(t),t.rejection=1),!0===f?s=n:(p&&p.enter(),s=f(n),p&&(p.exit(),u=!0)),s===c.promise?h(G("Promise-chain cycle")):(a=et(s))?a.call(s,l,h):l(s)):h(n)}catch(t){p&&!u&&p.exit(),h(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&ot(t)}))}},nt=function(t,e,r){var n,o;J?((n=V.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),c.dispatchEvent(n)):n={promise:e,reason:r},!X&&(o=c["on"+t])?o(n):t===K&&T("Unhandled promise rejection",r)},ot=function(t){O.call(c,(function(){var e,r=t.facade,n=t.value;if(it(t)&&(e=P((function(){L?z.emit("unhandledRejection",n,r):nt(K,r,n)})),t.rejection=L||it(t)?2:1,e.error))throw e.value}))},it=function(t){return 1!==t.rejection&&!t.parent},st=function(t){O.call(c,(function(){var e=t.facade;L?z.emit("rejectionHandled",e):nt("rejectionhandled",e,t.value)}))},at=function(t,e,r){return function(n){t(e,n,r)}},ut=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,rt(t,!0))},ct=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw G("Promise can't be resolved itself");var n=et(e);n?E((function(){var r={done:!1};try{n.call(e,at(ct,r,t),at(ut,r,t))}catch(e){ut(r,e,t)}})):(t.value=e,t.state=1,rt(t,!1))}catch(e){ut({done:!1},e,t)}}};if(Z&&(W=(H=function(t){m(this,H,U),g(t),n.call(this);var e=D(this);try{t(at(ct,e),at(ut,e))}catch(t){ut(e,t)}}).prototype,(n=function(t){N(this,{type:U,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p(W,{then:function(t,e){var r=q(this),n=$(x(this,H));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=L?z.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&rt(r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new n,e=D(t);this.promise=t,this.resolve=at(ct,e),this.reject=at(ut,e)},k.f=$=function(t){return t===H||t===i?new o(t):Y(t)},!u&&"function"==typeof l&&F!==Object.prototype)){s=F.then,Q||(h(F,"then",(function(t,e){var r=this;return new H((function(t,e){s.call(r,t,e)})).then(t,e)}),{unsafe:!0}),h(F,"catch",W.catch,{unsafe:!0}));try{delete F.constructor}catch(t){}d&&d(F,W)}a({global:!0,wrap:!0,forced:Z},{Promise:H}),y(H,U,!1,!0),b(U),i=f(U),a({target:U,stat:!0,forced:Z},{reject:function(t){var e=$(this);return e.reject.call(void 0,t),e.promise}}),a({target:U,stat:!0,forced:u||Z},{resolve:function(t){return j(u&&this===i?H:this,t)}}),a({target:U,stat:!0,forced:tt},{all:function(t){var e=this,r=$(e),n=r.resolve,o=r.reject,i=P((function(){var r=g(e.resolve),i=[],s=0,a=1;_(t,(function(t){var u=s++,c=!1;i.push(void 0),a++,r.call(e,t).then((function(t){c||(c=!0,i[u]=t,--a||n(i))}),o)})),--a||n(i)}));return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=$(e),n=r.reject,o=P((function(){var o=g(e.resolve);_(t,(function(t){o.call(e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}})},9979:function(t,e,r){"use strict";var n=r(7804).charAt,o=r(9206),i=r(5723),s="String Iterator",a=o.set,u=o.getterFor(s);i(String,"String",(function(t){a(this,{type:s,string:String(t),index:0})}),(function(){var t,e=u(this),r=e.string,o=e.index;return o>=r.length?{value:void 0,done:!0}:(t=n(r,o),e.index+=t.length,{value:t,done:!1})}))},5149:function(t,e,r){r(624)},1037:function(t,e,r){r(5880)},1084:function(t,e,r){r(5773)},4175:function(t,e,r){"use strict";var n=r(1605),o=r(9836),i=r(242);n({target:"Promise",stat:!0},{try:function(t){var e=o.f(this),r=i(t);return(r.error?e.reject:e.resolve)(r.value),e.promise}})},4602:function(t,e,r){var n=r(200),o=r(5549),i=r(8665),s=r(7712),a=r(1602),u=a("iterator"),c=a("toStringTag"),f=i.values;for(var l in o){var h=n[l],p=h&&h.prototype;if(p){if(p[u]!==f)try{s(p,u,f)}catch(t){p[u]=f}if(p[c]||s(p,c,l),o[l])for(var d in i)if(p[d]!==i[d])try{s(p,d,i[d])}catch(t){p[d]=i[d]}}}},4945:function(t,e){var r="undefined"!=typeof self?self:this,n=function(){function t(){this.fetch=!1,this.DOMException=r.DOMException}return t.prototype=r,new t}();!function(t){!function(e){var r="URLSearchParams"in t,n="Symbol"in t&&"iterator"in Symbol,o="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),i="FormData"in t,s="ArrayBuffer"in t;if(s)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(t){return t&&a.indexOf(Object.prototype.toString.call(t))>-1};function c(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function f(t){return"string"!=typeof t&&(t=String(t)),t}function l(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n&&(e[Symbol.iterator]=function(){return e}),e}function h(t){this.map={},t instanceof h?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function p(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function d(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function y(t){var e=new FileReader,r=d(e);return e.readAsArrayBuffer(t),r}function b(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:r&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():s&&o&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=b(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(t)||u(t))?this._bodyArrayBuffer=b(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var t=p(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(y)}),this.text=function(){var t,e,r,n=p(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,r=d(e=new FileReader),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(t,e){t=c(t),e=f(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},h.prototype.delete=function(t){delete this.map[c(t)]},h.prototype.get=function(t){return t=c(t),this.has(t)?this.map[t]:null},h.prototype.has=function(t){return this.map.hasOwnProperty(c(t))},h.prototype.set=function(t,e){this.map[c(t)]=f(e)},h.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},h.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),l(t)},h.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),l(t)},h.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),l(t)},n&&(h.prototype[Symbol.iterator]=h.prototype.entries);var g=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function m(t,e){var r,n,o=(e=e||{}).body;if(t instanceof m){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new h(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new h(e.headers)),this.method=(n=(r=e.method||this.method||"GET").toUpperCase(),g.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function w(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}})),e}function _(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new h(e.headers),this.url=e.url||"",this._initBody(t)}m.prototype.clone=function(){return new m(this,{body:this._bodyInit})},v.call(m.prototype),v.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},_.error=function(){var t=new _(null,{status:0,statusText:""});return t.type="error",t};var S=[301,302,303,307,308];_.redirect=function(t,e){if(-1===S.indexOf(e))throw new RangeError("Invalid status code");return new _(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function x(t,r){return new Promise((function(n,i){var s=new m(t,r);if(s.signal&&s.signal.aborted)return i(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function u(){a.abort()}a.onload=function(){var t,e,r={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new h,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();e.append(n,o)}})),e)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;n(new _(o,r))},a.onerror=function(){i(new TypeError("Network request failed"))},a.ontimeout=function(){i(new TypeError("Network request failed"))},a.onabort=function(){i(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&o&&(a.responseType="blob"),s.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),s.signal&&(s.signal.addEventListener("abort",u),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",u)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}x.polyfill=!0,t.fetch||(t.fetch=x,t.Headers=h,t.Request=m,t.Response=_),e.Headers=h,e.Request=m,e.Response=_,e.fetch=x,Object.defineProperty(e,"__esModule",{value:!0})}({})}(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var o=n;(e=o.fetch).default=o.fetch,e.fetch=o.fetch,e.Headers=o.Headers,e.Request=o.Request,e.Response=o.Response,t.exports=e},251:function(t,e){e.read=function(t,e,r,n,o){var i,s,a=8*o-n-1,u=(1<<a)-1,c=u>>1,f=-7,l=r?o-1:0,h=r?-1:1,p=t[e+l];for(l+=h,i=p&(1<<-f)-1,p>>=-f,f+=a;f>0;i=256*i+t[e+l],l+=h,f-=8);for(s=i&(1<<-f)-1,i>>=-f,f+=n;f>0;s=256*s+t[e+l],l+=h,f-=8);if(0===i)i=1-c;else{if(i===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),i-=c}return(p?-1:1)*s*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var s,a,u,c=8*i-o-1,f=(1<<c)-1,l=f>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,d=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=f):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+l>=1?h/u:h*Math.pow(2,1-l))*u>=2&&(s++,u/=2),s+l>=f?(a=0,s=f):s+l>=1?(a=(e*u-1)*Math.pow(2,o),s+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,o),s=0));o>=8;t[r+p]=255&a,p+=d,a/=256,o-=8);for(s=s<<o|a,c+=o;c>0;t[r+p]=255&s,p+=d,s/=256,c-=8);t[r+p-d]|=128*y}},6765:function(t,e,r){"use strict";function n(t){this.message=t}r.r(e),r.d(e,{InvalidTokenError:function(){return s}}),n.prototype=new Error,n.prototype.name="InvalidCharacterError";var o="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var e=String(t).replace(/=+$/,"");if(e.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,o,i=0,s=0,a="";o=e.charAt(s++);~o&&(r=i%4?64*r+o:o,i++%4)?a+=String.fromCharCode(255&r>>(-2*i&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return a};function i(t){var e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(o(t).replace(/(.)/g,(function(t,e){var r=e.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(e)}catch(t){return o(e)}}function s(t){this.message=t}s.prototype=new Error,s.prototype.name="InvalidTokenError",e.default=function(t,e){if("string"!=typeof t)throw new s("Invalid token specified");var r=!0===(e=e||{}).header?0:1;try{return JSON.parse(i(t.split(".")[r]))}catch(t){throw new s("Invalid token specified: "+t.message)}}},3114:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(1920),i=r(703),s=function(t){function e(e){t.call(this),this._value=e}return n(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var r=t.prototype._subscribe.call(this,e);return r&&!r.closed&&e.next(this._value),r},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.ObjectUnsubscribedError;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(o.Subject);e.BehaviorSubject=s},3246:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(e,r,n){t.call(this),this.parent=e,this.outerValue=r,this.outerIndex=n,this.index=0}return n(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(r(1308).Subscriber);e.InnerSubscriber=o},8037:function(t,e,r){"use strict";var n=r(9707),o=function(){function t(t,e,r){this.kind=t,this.value=e,this.error=r,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,r){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return r&&r()}},t.prototype.accept=function(t,e,r){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,r)},t.prototype.toObservable=function(){switch(this.kind){case"N":return n.Observable.of(this.value);case"E":return n.Observable.throw(this.error);case"C":return n.Observable.empty()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();e.Notification=o},9707:function(t,e,r){"use strict";var n=r(2901),o=r(5518),i=r(9404),s=r(4053),a=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n=this.operator,i=o.toSubscriber(t,e,r);if(n?n.call(i,this.source):i.add(this.source||!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var r=this;if(e||(n.root.Rx&&n.root.Rx.config&&n.root.Rx.config.Promise?e=n.root.Rx.config.Promise:n.root.Promise&&(e=n.root.Promise)),!e)throw new Error("no Promise impl found");return new e((function(e,n){var o;o=r.subscribe((function(e){if(o)try{t(e)}catch(t){n(t),o.unsubscribe()}else t(e)}),n,e)}))},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[i.observable]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return 0===t.length?this:s.pipeFromArray(t)(this)},t.prototype.toPromise=function(t){var e=this;if(t||(n.root.Rx&&n.root.Rx.config&&n.root.Rx.config.Promise?t=n.root.Rx.config.Promise:n.root.Promise&&(t=n.root.Promise)),!t)throw new Error("no Promise impl found");return new t((function(t,r){var n;e.subscribe((function(t){return n=t}),(function(t){return r(t)}),(function(){return t(n)}))}))},t.create=function(e){return new t(e)},t}();e.Observable=a},5432:function(t,e){"use strict";e.empty={closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}}},7737:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(){t.apply(this,arguments)}return n(e,t),e.prototype.notifyNext=function(t,e,r,n,o){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(r(1308).Subscriber);e.OuterSubscriber=o},3857:function(t,e){"use strict";var r=function(){function t(e,r){void 0===r&&(r=t.now),this.SchedulerAction=e,this.now=r}return t.prototype.schedule=function(t,e,r){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(r,e)},t.now=Date.now?Date.now:function(){return+new Date},t}();e.Scheduler=r},1920:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(9707),i=r(1308),s=r(8303),a=r(703),u=r(4169),c=r(4429),f=function(t){function e(e){t.call(this,e),this.destination=e}return n(e,t),e}(i.Subscriber);e.SubjectSubscriber=f;var l=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return n(e,t),e.prototype[c.rxSubscriber]=function(){return new f(this)},e.prototype.lift=function(t){var e=new h(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,r=e.length,n=e.slice(),o=0;o<r;o++)n[o].next(t)},e.prototype.error=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,r=e.length,n=e.slice(),o=0;o<r;o++)n[o].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new a.ObjectUnsubscribedError;this.isStopped=!0;for(var t=this.observers,e=t.length,r=t.slice(),n=0;n<e;n++)r[n].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;return this.hasError?(t.error(this.thrownError),s.Subscription.EMPTY):this.isStopped?(t.complete(),s.Subscription.EMPTY):(this.observers.push(t),new u.SubjectSubscription(this,t))},e.prototype.asObservable=function(){var t=new o.Observable;return t.source=this,t},e.create=function(t,e){return new h(t,e)},e}(o.Observable);e.Subject=l;var h=function(t){function e(e,r){t.call(this),this.destination=e,this.source=r}return n(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):s.Subscription.EMPTY},e}(l);e.AnonymousSubject=h},4169:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(e,r){t.call(this),this.subject=e,this.subscriber=r,this.closed=!1}return n(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var r=e.indexOf(this.subscriber);-1!==r&&e.splice(r,1)}}},e}(r(8303).Subscription);e.SubjectSubscription=o},1308:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(2497),i=r(8303),s=r(5432),a=r(4429),u=function(t){function e(e,r,n){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.empty;break;case 1:if(!e){this.destination=s.empty;break}if("object"==typeof e){if(f(e)){var o=e[a.rxSubscriber]();this.syncErrorThrowable=o.syncErrorThrowable,this.destination=o,o.add(this)}else this.syncErrorThrowable=!0,this.destination=new c(this,e);break}default:this.syncErrorThrowable=!0,this.destination=new c(this,e,r,n)}}return n(e,t),e.prototype[a.rxSubscriber]=function(){return this},e.create=function(t,r,n){var o=new e(t,r,n);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this},e}(i.Subscription);e.Subscriber=u;var c=function(t){function e(e,r,n,i){var a;t.call(this),this._parentSubscriber=e;var u=this;o.isFunction(r)?a=r:r&&(a=r.next,n=r.error,i=r.complete,r!==s.empty&&(u=Object.create(r),o.isFunction(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this))),this._context=u,this._next=a,this._error=n,this._complete=i}return n(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var r=function(){return t._complete.call(t._context)};e.syncErrorThrowable?(this.__tryOrSetError(e,r),this.unsubscribe()):(this.__tryOrUnsub(r),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t}},e.prototype.__tryOrSetError=function(t,e,r){try{e.call(this._context,r)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(u);function f(t){return t instanceof u||"syncErrorThrowable"in t&&t[a.rxSubscriber]}},8303:function(t,e,r){"use strict";var n=r(2208),o=r(9690),i=r(2497),s=r(4181),a=r(7036),u=r(6229),c=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var r=this,c=r._parent,l=r._parents,h=r._unsubscribe,p=r._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var d=-1,y=l?l.length:0;c;)c.remove(this),c=++d<y&&l[d]||null;if(i.isFunction(h)&&s.tryCatch(h).call(this)===a.errorObject&&(e=!0,t=t||(a.errorObject.e instanceof u.UnsubscriptionError?f(a.errorObject.e.errors):[a.errorObject.e])),n.isArray(p))for(d=-1,y=p.length;++d<y;){var b=p[d];if(o.isObject(b)&&s.tryCatch(b.unsubscribe).call(b)===a.errorObject){e=!0,t=t||[];var v=a.errorObject.e;v instanceof u.UnsubscriptionError?t=t.concat(f(v.errors)):t.push(v)}}if(e)throw new u.UnsubscriptionError(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var r=e;switch(typeof e){case"function":r=new t(e);case"object":if(r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if("function"!=typeof r._addParent){var n=r;(r=new t)._subscriptions=[n]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(r),r._addParent(this),r},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}},t.prototype._addParent=function(t){var e=this._parent,r=this._parents;e&&e!==t?r?-1===r.indexOf(t)&&r.push(t):this._parents=[t]:this._parent=t},t.EMPTY=((e=new t).closed=!0,e),t}();function f(t){return t.reduce((function(t,e){return t.concat(e instanceof u.UnsubscriptionError?e.errors:e)}),[])}e.Subscription=c},4553:function(t,e,r){"use strict";var n=r(9707),o=r(5885);n.Observable.ajax=o.ajax},7033:function(t,e,r){"use strict";var n=r(9707),o=r(8557);n.Observable.empty=o.empty},5313:function(t,e,r){"use strict";var n=r(9707),o=r(8858);n.Observable.from=o.from},5103:function(t,e,r){"use strict";var n=r(9707),o=r(1531);n.Observable.interval=o.interval},3783:function(t,e,r){"use strict";var n=r(9707),o=r(8104);n.Observable.of=o.of},8540:function(t,e,r){"use strict";var n=r(9707),o=r(8867);n.Observable.throw=o._throw},3690:function(t,e,r){"use strict";var n=r(9707),o=r(7046);n.Observable.prototype.catch=o._catch,n.Observable.prototype._catch=o._catch},3071:function(t,e,r){"use strict";var n=r(9707),o=r(3123);n.Observable.prototype.combineLatest=o.combineLatest},4983:function(t,e,r){"use strict";var n=r(9707),o=r(4891);n.Observable.prototype.concatMap=o.concatMap},2166:function(t,e,r){"use strict";var n=r(9707),o=r(970);n.Observable.prototype.count=o.count},7917:function(t,e,r){"use strict";var n=r(9707),o=r(4950);n.Observable.prototype.delay=o.delay},3576:function(t,e,r){"use strict";var n=r(9707),o=r(9028);n.Observable.prototype.do=o._do,n.Observable.prototype._do=o._do},1239:function(t,e,r){"use strict";var n=r(9707),o=r(8371);n.Observable.prototype.filter=o.filter},4359:function(t,e,r){"use strict";var n=r(9707),o=r(947);n.Observable.prototype.map=o.map},2639:function(t,e,r){"use strict";var n=r(9707),o=r(8387);n.Observable.prototype.mergeMap=o.mergeMap,n.Observable.prototype.flatMap=o.mergeMap},731:function(t,e,r){"use strict";var n=r(9707),o=r(7015);n.Observable.prototype.retryWhen=o.retryWhen},1734:function(t,e,r){"use strict";var n=r(9707),o=r(8706);n.Observable.prototype.share=o.share},4166:function(t,e,r){"use strict";var n=r(9707),o=r(9618);n.Observable.prototype.take=o.take},3603:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(9707),i=r(3171),s=r(1248),a=function(t){function e(e,r){t.call(this),this.arrayLike=e,this.scheduler=r,r||1!==e.length||(this._isScalar=!0,this.value=e[0])}return n(e,t),e.create=function(t,r){var n=t.length;return 0===n?new s.EmptyObservable:1===n?new i.ScalarObservable(t[0],r):new e(t,r)},e.dispatch=function(t){var e=t.arrayLike,r=t.index,n=t.length,o=t.subscriber;o.closed||(r>=n?o.complete():(o.next(e[r]),t.index=r+1,this.schedule(t)))},e.prototype._subscribe=function(t){var r=this.arrayLike,n=this.scheduler,o=r.length;if(n)return n.schedule(e.dispatch,0,{arrayLike:r,index:0,length:o,subscriber:t});for(var i=0;i<o&&!t.closed;i++)t.next(r[i]);t.complete()},e}(o.Observable);e.ArrayLikeObservable=a},6840:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(9707),i=r(3171),s=r(1248),a=r(7452),u=function(t){function e(e,r){t.call(this),this.array=e,this.scheduler=r,r||1!==e.length||(this._isScalar=!0,this.value=e[0])}return n(e,t),e.create=function(t,r){return new e(t,r)},e.of=function(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];var n=t[t.length-1];a.isScheduler(n)?t.pop():n=null;var o=t.length;return o>1?new e(t,n):1===o?new i.ScalarObservable(t[0],n):new s.EmptyObservable(n)},e.dispatch=function(t){var e=t.array,r=t.index,n=t.count,o=t.subscriber;r>=n?o.complete():(o.next(e[r]),o.closed||(t.index=r+1,this.schedule(t)))},e.prototype._subscribe=function(t){var r=this.array,n=r.length,o=this.scheduler;if(o)return o.schedule(e.dispatch,0,{array:r,index:0,count:n,subscriber:t});for(var i=0;i<n&&!t.closed;i++)t.next(r[i]);t.complete()},e}(o.Observable);e.ArrayObservable=u},8495:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(1920),i=r(9707),s=r(1308),a=r(8303),u=r(1152),c=function(t){function e(e,r){t.call(this),this.source=e,this.subjectFactory=r,this._refCount=0,this._isComplete=!1}return n(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new a.Subscription).add(this.source.subscribe(new l(this.getSubject(),this))),t.closed?(this._connection=null,t=a.Subscription.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return u.refCount()(this)},e}(i.Observable);e.ConnectableObservable=c;var f=c.prototype;e.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:f._subscribe},_isComplete:{value:f._isComplete,writable:!0},getSubject:{value:f.getSubject},connect:{value:f.connect},refCount:{value:f.refCount}};var l=function(t){function e(e,r){t.call(this,e),this.connectable=r}return n(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(o.SubjectSubscriber);!function(t){function e(e,r){t.call(this,e),this.connectable=r}n(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var r=this.connection,n=t._connection;this.connection=null,!n||r&&n!==r||n.unsubscribe()}}else this.connection=null}}(s.Subscriber)},1248:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(e){t.call(this),this.scheduler=e}return n(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){t.subscriber.complete()},e.prototype._subscribe=function(t){var r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{subscriber:t});t.complete()},e}(r(9707).Observable);e.EmptyObservable=o},4631:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(e,r){t.call(this),this.error=e,this.scheduler=r}return n(e,t),e.create=function(t,r){return new e(t,r)},e.dispatch=function(t){var e=t.error;t.subscriber.error(e)},e.prototype._subscribe=function(t){var r=this.error,n=this.scheduler;if(t.syncErrorThrowable=!0,n)return n.schedule(e.dispatch,0,{error:r,subscriber:t});t.error(r)},e}(r(9707).Observable);e.ErrorObservable=o},7691:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(2208),i=r(8871),s=r(456),a=r(3172),u=r(6529),c=r(6840),f=r(3603),l=r(3763),h=r(9707),p=r(8767),d=r(9404),y=function(t){function e(e,r){t.call(this,null),this.ish=e,this.scheduler=r}return n(e,t),e.create=function(t,r){if(null!=t){if("function"==typeof t[d.observable])return t instanceof h.Observable&&!r?t:new e(t,r);if(o.isArray(t))return new c.ArrayObservable(t,r);if(s.isPromise(t))return new a.PromiseObservable(t,r);if("function"==typeof t[l.iterator]||"string"==typeof t)return new u.IteratorObservable(t,r);if(i.isArrayLike(t))return new f.ArrayLikeObservable(t,r)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")},e.prototype._subscribe=function(t){var e=this.ish,r=this.scheduler;return null==r?e[d.observable]().subscribe(t):e[d.observable]().subscribe(new p.ObserveOnSubscriber(t,r,0))},e}(h.Observable);e.FromObservable=y},502:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(8454),i=r(9707),s=r(1518),a=function(t){function e(e,r){void 0===e&&(e=0),void 0===r&&(r=s.async),t.call(this),this.period=e,this.scheduler=r,(!o.isNumeric(e)||e<0)&&(this.period=0),r&&"function"==typeof r.schedule||(this.scheduler=s.async)}return n(e,t),e.create=function(t,r){return void 0===t&&(t=0),void 0===r&&(r=s.async),new e(t,r)},e.dispatch=function(t){var e=t.index,r=t.subscriber,n=t.period;r.next(e),r.closed||(t.index+=1,this.schedule(t,n))},e.prototype._subscribe=function(t){var r=this.period,n=this.scheduler;t.add(n.schedule(e.dispatch,r,{index:0,subscriber:t,period:r}))},e}(i.Observable);e.IntervalObservable=a},6529:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(2901),i=r(9707),s=r(3763),a=function(t){function e(e,r){if(t.call(this),this.scheduler=r,null==e)throw new Error("iterator cannot be null.");this.iterator=function(t){var e=t[s.iterator];if(!e&&"string"==typeof t)return new u(t);if(!e&&void 0!==t.length)return new c(t);if(!e)throw new TypeError("object is not iterable");return t[s.iterator]()}(e)}return n(e,t),e.create=function(t,r){return new e(t,r)},e.dispatch=function(t){var e=t.index,r=t.hasError,n=t.iterator,o=t.subscriber;if(r)o.error(t.error);else{var i=n.next();i.done?o.complete():(o.next(i.value),t.index=e+1,o.closed?"function"==typeof n.return&&n.return():this.schedule(t))}},e.prototype._subscribe=function(t){var r=this.iterator,n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{index:0,iterator:r,subscriber:t});for(;;){var o=r.next();if(o.done){t.complete();break}if(t.next(o.value),t.closed){"function"==typeof r.return&&r.return();break}}},e}(i.Observable);e.IteratorObservable=a;var u=function(){function t(t,e,r){void 0===e&&(e=0),void 0===r&&(r=t.length),this.str=t,this.idx=e,this.len=r}return t.prototype[s.iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}},t}(),c=function(){function t(t,e,r){void 0===e&&(e=0),void 0===r&&(r=function(t){var e,r=+t.length;return isNaN(r)?0:0!==r&&("number"==typeof(e=r)&&o.root.isFinite(e))?(r=function(t){var e=+t;return 0===e||isNaN(e)?e:e<0?-1:1}(r)*Math.floor(Math.abs(r)),r<=0?0:r>f?f:r):r}(t)),this.arr=t,this.idx=e,this.len=r}return t.prototype[s.iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}},t}(),f=Math.pow(2,53)-1},3172:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(2901),i=function(t){function e(e,r){t.call(this),this.promise=e,this.scheduler=r}return n(e,t),e.create=function(t,r){return new e(t,r)},e.prototype._subscribe=function(t){var e=this,r=this.promise,n=this.scheduler;if(null==n)this._isScalar?t.closed||(t.next(this.value),t.complete()):r.then((function(r){e.value=r,e._isScalar=!0,t.closed||(t.next(r),t.complete())}),(function(e){t.closed||t.error(e)})).then(null,(function(t){o.root.setTimeout((function(){throw t}))}));else if(this._isScalar){if(!t.closed)return n.schedule(s,0,{value:this.value,subscriber:t})}else r.then((function(r){e.value=r,e._isScalar=!0,t.closed||t.add(n.schedule(s,0,{value:r,subscriber:t}))}),(function(e){t.closed||t.add(n.schedule(a,0,{err:e,subscriber:t}))})).then(null,(function(t){o.root.setTimeout((function(){throw t}))}))},e}(r(9707).Observable);function s(t){var e=t.value,r=t.subscriber;r.closed||(r.next(e),r.complete())}function a(t){var e=t.err,r=t.subscriber;r.closed||r.error(e)}e.PromiseObservable=i},3171:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(e,r){t.call(this),this.value=e,this.scheduler=r,this._isScalar=!0,r&&(this._isScalar=!1)}return n(e,t),e.create=function(t,r){return new e(t,r)},e.dispatch=function(t){var e=t.done,r=t.value,n=t.subscriber;e?n.complete():(n.next(r),n.closed||(t.done=!0,this.schedule(t)))},e.prototype._subscribe=function(t){var r=this.value,n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{done:!1,value:r,subscriber:t});t.next(r),t.closed||t.complete()},e}(r(9707).Observable);e.ScalarObservable=o},6144:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(2901),i=r(4181),s=r(7036),a=r(9707),u=r(1308),c=r(720);function f(){if(o.root.XMLHttpRequest)return new o.root.XMLHttpRequest;if(o.root.XDomainRequest)return new o.root.XDomainRequest;throw new Error("CORS is not supported by your browser")}function l(t,e){return void 0===e&&(e=null),new g({method:"GET",url:t,headers:e})}function h(t,e,r){return new g({method:"POST",url:t,body:e,headers:r})}function p(t,e){return new g({method:"DELETE",url:t,headers:e})}function d(t,e,r){return new g({method:"PUT",url:t,body:e,headers:r})}function y(t,e,r){return new g({method:"PATCH",url:t,body:e,headers:r})}e.ajaxGet=l,e.ajaxPost=h,e.ajaxDelete=p,e.ajaxPut=d,e.ajaxPatch=y;var b=c.map((function(t,e){return t.response}));function v(t,e){return b(new g({method:"GET",url:t,responseType:"json",headers:e}))}e.ajaxGetJSON=v;var g=function(t){function e(e){t.call(this);var r={async:!0,createXHR:function(){return this.crossDomain?f.call(this):function(){if(o.root.XMLHttpRequest)return new o.root.XMLHttpRequest;var t=void 0;try{for(var e=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],r=0;r<3;r++)try{if(t=e[r],new o.root.ActiveXObject(t))break}catch(t){}return new o.root.ActiveXObject(t)}catch(t){throw new Error("XMLHttpRequest is not supported by your browser")}}()},crossDomain:!1,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof e)r.url=e;else for(var n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);this.request=r}var r;return n(e,t),e.prototype._subscribe=function(t){return new m(t,this.request)},e.create=((r=function(t){return new e(t)}).get=l,r.post=h,r.delete=p,r.put=d,r.patch=y,r.getJSON=v,r),e}(a.Observable);e.AjaxObservable=g;var m=function(t){function e(e,r){t.call(this,e),this.request=r,this.done=!1;var n=r.headers=r.headers||{};r.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),"Content-Type"in n||o.root.FormData&&r.body instanceof o.root.FormData||void 0===r.body||(n["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),r.body=this.serializeBody(r.body,r.headers["Content-Type"]),this.send()}return n(e,t),e.prototype.next=function(t){this.done=!0;var e=this,r=e.xhr,n=e.request,o=e.destination,i=new w(t,r,n);o.next(i)},e.prototype.send=function(){var t=this.request,e=this.request,r=e.user,n=e.method,o=e.url,a=e.async,u=e.password,c=e.headers,f=e.body,l=t.createXHR,h=i.tryCatch(l).call(t);if(h===s.errorObject)this.error(s.errorObject.e);else{if(this.xhr=h,this.setupEvents(h,t),(r?i.tryCatch(h.open).call(h,n,o,a,r,u):i.tryCatch(h.open).call(h,n,o,a))===s.errorObject)return this.error(s.errorObject.e),null;if(a&&(h.timeout=t.timeout,h.responseType=t.responseType),"withCredentials"in h&&(h.withCredentials=!!t.withCredentials),this.setHeaders(h,c),(f?i.tryCatch(h.send).call(h,f):i.tryCatch(h.send).call(h))===s.errorObject)return this.error(s.errorObject.e),null}return h},e.prototype.serializeBody=function(t,e){if(!t||"string"==typeof t)return t;if(o.root.FormData&&t instanceof o.root.FormData)return t;if(e){var r=e.indexOf(";");-1!==r&&(e=e.substring(0,r))}switch(e){case"application/x-www-form-urlencoded":return Object.keys(t).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])})).join("&");case"application/json":return JSON.stringify(t);default:return t}},e.prototype.setHeaders=function(t,e){for(var r in e)e.hasOwnProperty(r)&&t.setRequestHeader(r,e[r])},e.prototype.setupEvents=function(t,e){var r,n,i=e.progressSubscriber;function s(t){var e=s,r=e.subscriber,n=e.progressSubscriber,o=e.request;n&&n.error(t),r.error(new x(this,o))}(t.ontimeout=s,s.request=e,s.subscriber=this,s.progressSubscriber=i,t.upload&&"withCredentials"in t)&&(i&&(r=function(t){r.progressSubscriber.next(t)},o.root.XDomainRequest?t.onprogress=r:t.upload.onprogress=r,r.progressSubscriber=i),n=function(t){var e=n,r=e.progressSubscriber,o=e.subscriber,i=e.request;r&&r.error(t),o.error(new _("ajax error",this,i))},t.onerror=n,n.request=e,n.subscriber=this,n.progressSubscriber=i);function a(t){var e=a,r=e.subscriber,n=e.progressSubscriber,o=e.request;if(4===this.readyState){var i=1223===this.status?204:this.status,s="text"===this.responseType?this.response||this.responseText:this.response;0===i&&(i=s?200:0),200<=i&&i<300?(n&&n.complete(),r.next(t),r.complete()):(n&&n.error(t),r.error(new _("ajax error "+i,this,o)))}}t.onreadystatechange=a,a.subscriber=this,a.progressSubscriber=i,a.request=e},e.prototype.unsubscribe=function(){var e=this.done,r=this.xhr;!e&&r&&4!==r.readyState&&"function"==typeof r.abort&&r.abort(),t.prototype.unsubscribe.call(this)},e}(u.Subscriber);e.AjaxSubscriber=m;var w=function(t,e,r){this.originalEvent=t,this.xhr=e,this.request=r,this.status=e.status,this.responseType=e.responseType||r.responseType,this.response=S(this.responseType,e)};e.AjaxResponse=w;var _=function(t){function e(e,r,n){t.call(this,e),this.message=e,this.xhr=r,this.request=n,this.status=r.status,this.responseType=r.responseType||n.responseType,this.response=S(this.responseType,r)}return n(e,t),e}(Error);function S(t,e){switch(t){case"json":return"response"in e?e.responseType?e.response:JSON.parse(e.response||e.responseText||"null"):JSON.parse(e.responseText||"null");case"xml":return e.responseXML;default:return"response"in e?e.response:e.responseText}}e.AjaxError=_;var x=function(t){function e(e,r){t.call(this,"ajax timeout",e,r)}return n(e,t),e}(_);e.AjaxTimeoutError=x},5885:function(t,e,r){"use strict";var n=r(6144);e.ajax=n.AjaxObservable.create},8557:function(t,e,r){"use strict";var n=r(1248);e.empty=n.EmptyObservable.create},8858:function(t,e,r){"use strict";var n=r(7691);e.from=n.FromObservable.create},1531:function(t,e,r){"use strict";var n=r(502);e.interval=n.IntervalObservable.create},8104:function(t,e,r){"use strict";var n=r(6840);e.of=n.ArrayObservable.of},8867:function(t,e,r){"use strict";var n=r(4631);e._throw=n.ErrorObservable.create},7046:function(t,e,r){"use strict";var n=r(4903);e._catch=function(t){return n.catchError(t)(this)}},3123:function(t,e,r){"use strict";var n=r(8652);e.combineLatest=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return n.combineLatest.apply(void 0,t)(this)}},4891:function(t,e,r){"use strict";var n=r(7024);e.concatMap=function(t,e){return n.concatMap(t,e)(this)}},970:function(t,e,r){"use strict";var n=r(6581);e.count=function(t){return n.count(t)(this)}},4950:function(t,e,r){"use strict";var n=r(1518),o=r(909);e.delay=function(t,e){return void 0===e&&(e=n.async),o.delay(t,e)(this)}},9028:function(t,e,r){"use strict";var n=r(4995);e._do=function(t,e,r){return n.tap(t,e,r)(this)}},8371:function(t,e,r){"use strict";var n=r(9014);e.filter=function(t,e){return n.filter(t,e)(this)}},947:function(t,e,r){"use strict";var n=r(720);e.map=function(t,e){return n.map(t,e)(this)}},8387:function(t,e,r){"use strict";var n=r(9982);e.mergeMap=function(t,e,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),n.mergeMap(t,e,r)(this)}},7015:function(t,e,r){"use strict";var n=r(1020);e.retryWhen=function(t){return n.retryWhen(t)(this)}},8706:function(t,e,r){"use strict";var n=r(5221);e.share=function(){return n.share()(this)}},9618:function(t,e,r){"use strict";var n=r(7207);e.take=function(t){return n.take(t)(this)}},4903:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(7737),i=r(8497);e.catchError=function(t){return function(e){var r=new s(t),n=e.lift(r);return r.caught=n}};var s=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.selector,this.caught))},t}(),a=function(t){function e(e,r,n){t.call(this,e),this.selector=r,this.caught=n}return n(e,t),e.prototype.error=function(e){if(!this.isStopped){var r=void 0;try{r=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle(),this.add(i.subscribeToResult(this,r))}},e}(o.OuterSubscriber)},8652:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(6840),i=r(2208),s=r(7737),a=r(8497),u={};e.combineLatest=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var r=null;return"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&i.isArray(t[0])&&(t=t[0].slice()),function(e){return e.lift.call(new o.ArrayObservable([e].concat(t)),new c(r))}};var c=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.project))},t}();e.CombineLatestOperator=c;var f=function(t){function e(e,r){t.call(this,e),this.project=r,this.active=0,this.values=[],this.observables=[]}return n(e,t),e.prototype._next=function(t){this.values.push(u),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var r=0;r<e;r++){var n=t[r];this.add(a.subscribeToResult(this,n,n,r))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,r,n,o){var i=this.values,s=i[r],a=this.toRespond?s===u?--this.toRespond:this.toRespond:0;i[r]=e,0===a&&(this.project?this._tryProject(i):this.destination.next(i.slice()))},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(s.OuterSubscriber);e.CombineLatestSubscriber=f},7024:function(t,e,r){"use strict";var n=r(9982);e.concatMap=function(t,e){return n.mergeMap(t,e,1)}},6581:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(1308);e.count=function(t){return function(e){return e.lift(new i(t,e))}};var i=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.source))},t}(),s=function(t){function e(e,r,n){t.call(this,e),this.predicate=r,this.source=n,this.count=0,this.index=0}return n(e,t),e.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},e.prototype._tryPredicate=function(t){var e;try{e=this.predicate(t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e&&this.count++},e.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},e}(o.Subscriber)},909:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(1518),i=r(8697),s=r(1308),a=r(8037);e.delay=function(t,e){void 0===e&&(e=o.async);var r=i.isDate(t)?+t-e.now():Math.abs(t);return function(t){return t.lift(new u(r,e))}};var u=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.delay,this.scheduler))},t}(),c=function(t){function e(e,r,n){t.call(this,e),this.delay=r,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}return n(e,t),e.dispatch=function(t){for(var e=t.source,r=e.queue,n=t.scheduler,o=t.destination;r.length>0&&r[0].time-n.now()<=0;)r.shift().notification.observe(o);if(r.length>0){var i=Math.max(0,r[0].time-n.now());this.schedule(t,i)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,r=new f(e.now()+this.delay,t);this.queue.push(r),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(a.Notification.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t)},e.prototype._complete=function(){this.scheduleNotification(a.Notification.createComplete())},e}(s.Subscriber),f=function(t,e){this.time=t,this.notification=e}},9014:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(1308);e.filter=function(t,e){return function(r){return r.lift(new i(t,e))}};var i=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg))},t}(),s=function(t){function e(e,r,n){t.call(this,e),this.predicate=r,this.thisArg=n,this.count=0}return n(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(o.Subscriber)},720:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(1308);e.map=function(t,e){return function(r){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new i(t,e))}};var i=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.thisArg))},t}();e.MapOperator=i;var s=function(t){function e(e,r,n){t.call(this,e),this.project=r,this.count=0,this.thisArg=n||this}return n(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(o.Subscriber)},9982:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(8497),i=r(7737);e.mergeMap=function(t,e,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),function(n){return"number"==typeof e&&(r=e,e=null),n.lift(new s(t,e,r))}};var s=function(){function t(t,e,r){void 0===r&&(r=Number.POSITIVE_INFINITY),this.project=t,this.resultSelector=e,this.concurrent=r}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.resultSelector,this.concurrent))},t}();e.MergeMapOperator=s;var a=function(t){function e(e,r,n,o){void 0===o&&(o=Number.POSITIVE_INFINITY),t.call(this,e),this.project=r,this.resultSelector=n,this.concurrent=o,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return n(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,r=this.index++;try{e=this.project(t,r)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,r)},e.prototype._innerSub=function(t,e,r){this.add(o.subscribeToResult(this,t,e,r))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,r,n,o){this.resultSelector?this._notifyResultSelector(t,e,r,n):this.destination.next(e)},e.prototype._notifyResultSelector=function(t,e,r,n){var o;try{o=this.resultSelector(t,e,r,n)}catch(t){return void this.destination.error(t)}this.destination.next(o)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(i.OuterSubscriber);e.MergeMapSubscriber=a},6040:function(t,e,r){"use strict";var n=r(8495);e.multicast=function(t,e){return function(r){var i;if(i="function"==typeof t?t:function(){return t},"function"==typeof e)return r.lift(new o(i,e));var s=Object.create(r,n.connectableObservableDescriptor);return s.source=r,s.subjectFactory=i,s}};var o=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var r=this.selector,n=this.subjectFactory(),o=r(n).subscribe(t);return o.add(e.subscribe(n)),o},t}();e.MulticastOperator=o},8767:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(1308),i=r(8037);e.observeOn=function(t,e){return void 0===e&&(e=0),function(r){return r.lift(new s(t,e))}};var s=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.scheduler,this.delay))},t}();e.ObserveOnOperator=s;var a=function(t){function e(e,r,n){void 0===n&&(n=0),t.call(this,e),this.scheduler=r,this.delay=n}return n(e,t),e.dispatch=function(t){var e=t.notification,r=t.destination;e.observe(r),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(e.dispatch,this.delay,new u(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(i.Notification.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(i.Notification.createError(t))},e.prototype._complete=function(){this.scheduleMessage(i.Notification.createComplete())},e}(o.Subscriber);e.ObserveOnSubscriber=a;var u=function(t,e){this.notification=t,this.destination=e};e.ObserveOnMessage=u},1152:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(1308);e.refCount=function(){return function(t){return t.lift(new i(t))}};var i=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var r=this.connectable;r._refCount++;var n=new s(t,r),o=e.subscribe(n);return n.closed||(n.connection=r.connect()),o},t}(),s=function(t){function e(e,r){t.call(this,e),this.connectable=r}return n(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var r=this.connection,n=t._connection;this.connection=null,!n||r&&n!==r||n.unsubscribe()}}else this.connection=null},e}(o.Subscriber)},1020:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(1920),i=r(4181),s=r(7036),a=r(7737),u=r(8497);e.retryWhen=function(t){return function(e){return e.lift(new c(t,e))}};var c=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.notifier,this.source))},t}(),f=function(t){function e(e,r,n){t.call(this,e),this.notifier=r,this.source=n}return n(e,t),e.prototype.error=function(e){if(!this.isStopped){var r=this.errors,n=this.retries,a=this.retriesSubscription;if(n)this.errors=null,this.retriesSubscription=null;else{if(r=new o.Subject,(n=i.tryCatch(this.notifier)(r))===s.errorObject)return t.prototype.error.call(this,s.errorObject.e);a=u.subscribeToResult(this,n)}this._unsubscribeAndRecycle(),this.errors=r,this.retries=n,this.retriesSubscription=a,r.next(e)}},e.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype.notifyNext=function(t,e,r,n,o){var i=this,s=i.errors,a=i.retries,u=i.retriesSubscription;this.errors=null,this.retries=null,this.retriesSubscription=null,this._unsubscribeAndRecycle(),this.errors=s,this.retries=a,this.retriesSubscription=u,this.source.subscribe(this)},e}(a.OuterSubscriber)},5221:function(t,e,r){"use strict";var n=r(6040),o=r(1152),i=r(1920);function s(){return new i.Subject}e.share=function(){return function(t){return o.refCount()(n.multicast(s)(t))}}},7207:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(1308),i=r(6280),s=r(1248);e.take=function(t){return function(e){return 0===t?new s.EmptyObservable:e.lift(new a(t))}};var a=function(){function t(t){if(this.total=t,this.total<0)throw new i.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.total))},t}(),u=function(t){function e(e,r){t.call(this,e),this.total=r,this.count=0}return n(e,t),e.prototype._next=function(t){var e=this.total,r=++this.count;r<=e&&(this.destination.next(t),r===e&&(this.destination.complete(),this.unsubscribe()))},e}(o.Subscriber)},4995:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(1308);e.tap=function(t,e,r){return function(n){return n.lift(new i(t,e,r))}};var i=function(){function t(t,e,r){this.nextOrObserver=t,this.error=e,this.complete=r}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.nextOrObserver,this.error,this.complete))},t}(),s=function(t){function e(e,r,n,i){t.call(this,e);var s=new o.Subscriber(r,n,i);s.syncErrorThrowable=!0,this.add(s),this.safeSubscriber=s}return n(e,t),e.prototype._next=function(t){var e=this.safeSubscriber;e.next(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.next(t)},e.prototype._error=function(t){var e=this.safeSubscriber;e.error(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.error(t)},e.prototype._complete=function(){var t=this.safeSubscriber;t.complete(),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.complete()},e}(o.Subscriber)},1578:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(e,r){t.call(this)}return n(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(r(8303).Subscription);e.Action=o},668:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=r(2901),i=function(t){function e(e,r){t.call(this,e,r),this.scheduler=e,this.pending=!1,this.work=r}return n(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t,this.pending=!0;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,e)),this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this},e.prototype.requestAsyncId=function(t,e,r){return void 0===r&&(r=0),o.root.setInterval(t.flush.bind(t,this),r)},e.prototype.recycleAsyncId=function(t,e,r){if(void 0===r&&(r=0),null!==r&&this.delay===r&&!1===this.pending)return e;o.root.clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(t,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var r=!1,n=void 0;try{this.work(t)}catch(t){r=!0,n=!!t&&t||new Error(t)}if(r)return this.unsubscribe(),n},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,r=e.actions,n=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&r.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(r(1578).Action);e.AsyncAction=i},4853:function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(){t.apply(this,arguments),this.actions=[],this.active=!1,this.scheduled=void 0}return n(e,t),e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var r;this.active=!0;do{if(r=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,r){for(;t=e.shift();)t.unsubscribe();throw r}}},e}(r(3857).Scheduler);e.AsyncScheduler=o},1518:function(t,e,r){"use strict";var n=r(668),o=r(4853);e.async=new o.AsyncScheduler(n.AsyncAction)},3763:function(t,e,r){"use strict";var n=r(2901);function o(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var r=t.Set;if(r&&"function"==typeof(new r)["@@iterator"])return"@@iterator";var n=t.Map;if(n)for(var o=Object.getOwnPropertyNames(n.prototype),i=0;i<o.length;++i){var s=o[i];if("entries"!==s&&"size"!==s&&n.prototype[s]===n.prototype.entries)return s}return"@@iterator"}e.symbolIteratorPonyfill=o,e.iterator=o(n.root),e.$$iterator=e.iterator},9404:function(t,e,r){"use strict";var n=r(2901);function o(t){var e,r=t.Symbol;return"function"==typeof r?r.observable?e=r.observable:(e=r("observable"),r.observable=e):e="@@observable",e}e.getSymbolObservable=o,e.observable=o(n.root),e.$$observable=e.observable},4429:function(t,e,r){"use strict";var n=r(2901).root.Symbol;e.rxSubscriber="function"==typeof n&&"function"==typeof n.for?n.for("rxSubscriber"):"@@rxSubscriber",e.$$rxSubscriber=e.rxSubscriber},6280:function(t,e){"use strict";var r=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},n=function(t){function e(){var e=t.call(this,"argument out of range");this.name=e.name="ArgumentOutOfRangeError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);e.ArgumentOutOfRangeError=n},703:function(t,e){"use strict";var r=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},n=function(t){function e(){var e=t.call(this,"object unsubscribed");this.name=e.name="ObjectUnsubscribedError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);e.ObjectUnsubscribedError=n},6229:function(t,e){"use strict";var r=this&&this.__extends||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},n=function(t){function e(e){t.call(this),this.errors=e;var r=Error.call(this,e?e.length+" errors occurred during unsubscription:\n "+e.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"");this.name=r.name="UnsubscriptionError",this.stack=r.stack,this.message=r.message}return r(e,t),e}(Error);e.UnsubscriptionError=n},7036:function(t,e){"use strict";e.errorObject={e:{}}},2208:function(t,e){"use strict";e.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},8871:function(t,e){"use strict";e.isArrayLike=function(t){return t&&"number"==typeof t.length}},8697:function(t,e){"use strict";e.isDate=function(t){return t instanceof Date&&!isNaN(+t)}},2497:function(t,e){"use strict";e.isFunction=function(t){return"function"==typeof t}},8454:function(t,e,r){"use strict";var n=r(2208);e.isNumeric=function(t){return!n.isArray(t)&&t-parseFloat(t)+1>=0}},9690:function(t,e){"use strict";e.isObject=function(t){return null!=t&&"object"==typeof t}},456:function(t,e){"use strict";e.isPromise=function(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}},7452:function(t,e){"use strict";e.isScheduler=function(t){return t&&"function"==typeof t.schedule}},893:function(t,e){"use strict";e.noop=function(){}},4053:function(t,e,r){"use strict";var n=r(893);function o(t){return t?1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}:n.noop}e.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return o(t)},e.pipeFromArray=o},2901:function(t,e,r){"use strict";var n="undefined"!=typeof window&&window,o="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i=void 0!==r.g&&r.g,s=n||i||o;e.root=s,function(){if(!s)throw new Error("RxJS could not find any global context (window, self, global)")}()},8497:function(t,e,r){"use strict";var n=r(2901),o=r(8871),i=r(456),s=r(9690),a=r(9707),u=r(3763),c=r(3246),f=r(9404);e.subscribeToResult=function(t,e,r,l){var h=new c.InnerSubscriber(t,r,l);if(h.closed)return null;if(e instanceof a.Observable)return e._isScalar?(h.next(e.value),h.complete(),null):(h.syncErrorThrowable=!0,e.subscribe(h));if(o.isArrayLike(e)){for(var p=0,d=e.length;p<d&&!h.closed;p++)h.next(e[p]);h.closed||h.complete()}else{if(i.isPromise(e))return e.then((function(t){h.closed||(h.next(t),h.complete())}),(function(t){return h.error(t)})).then(null,(function(t){n.root.setTimeout((function(){throw t}))})),h;if(e&&"function"==typeof e[u.iterator])for(var y=e[u.iterator]();;){var b=y.next();if(b.done){h.complete();break}if(h.next(b.value),h.closed)break}else if(e&&"function"==typeof e[f.observable]){var v=e[f.observable]();if("function"==typeof v.subscribe)return v.subscribe(new c.InnerSubscriber(t,r,l));h.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var g="You provided "+(s.isObject(e)?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";h.error(new TypeError(g))}}return null}},5518:function(t,e,r){"use strict";var n=r(1308),o=r(4429),i=r(5432);e.toSubscriber=function(t,e,r){if(t){if(t instanceof n.Subscriber)return t;if(t[o.rxSubscriber])return t[o.rxSubscriber]()}return t||e||r?new n.Subscriber(t,e,r):new n.Subscriber(i.empty)}},4181:function(t,e,r){"use strict";var n,o=r(7036);function i(){try{return n.apply(this,arguments)}catch(t){return o.errorObject.e=t,o.errorObject}}e.tryCatch=function(t){return n=t,i}},8318:function(t,e,r){!function(t){"use strict";var e,r=function(){try{if(t.URLSearchParams&&"bar"===new t.URLSearchParams("foo=bar").get("foo"))return t.URLSearchParams}catch(t){}return null}(),n=r&&"a=1"===new r({a:1}).toString(),o=r&&"+"===new r("s=%2B").get("s"),i="__URLSearchParams__",s=!r||((e=new r).append("s"," &"),"s=+%26"===e.toString()),a=l.prototype,u=!(!t.Symbol||!t.Symbol.iterator);if(!(r&&n&&o&&s)){var c;a.append=function(t,e){b(this[i],t,e)},a.delete=function(t){delete this[i][t]},a.get=function(t){var e=this[i];return this.has(t)?e[t][0]:null},a.getAll=function(t){var e=this[i];return this.has(t)?e[t].slice(0):[]},a.has=function(t){return g(this[i],t)},a.set=function(t,e){this[i][t]=[""+e]},a.toString=function(){var t,e,r,n,o=this[i],s=[];for(e in o)for(r=h(e),t=0,n=o[e];t<n.length;t++)s.push(r+"="+h(n[t]));return s.join("&")},o&&r&&!n&&t.Proxy?(c=new Proxy(r,{construct:function(t,e){return new t(new l(e[0]).toString())}})).toString=Function.prototype.toString.bind(l):c=l,Object.defineProperty(t,"URLSearchParams",{value:c});var f=t.URLSearchParams.prototype;f.polyfill=!0,f.forEach=f.forEach||function(t,e){var r=y(this.toString());Object.getOwnPropertyNames(r).forEach((function(n){r[n].forEach((function(r){t.call(e,r,n,this)}),this)}),this)},f.sort=f.sort||function(){var t,e,r,n=y(this.toString()),o=[];for(t in n)o.push(t);for(o.sort(),e=0;e<o.length;e++)this.delete(o[e]);for(e=0;e<o.length;e++){var i=o[e],s=n[i];for(r=0;r<s.length;r++)this.append(i,s[r])}},f.keys=f.keys||function(){var t=[];return this.forEach((function(e,r){t.push(r)})),d(t)},f.values=f.values||function(){var t=[];return this.forEach((function(e){t.push(e)})),d(t)},f.entries=f.entries||function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),d(t)},u&&(f[t.Symbol.iterator]=f[t.Symbol.iterator]||f.entries)}function l(t){((t=t||"")instanceof URLSearchParams||t instanceof l)&&(t=t.toString()),this[i]=y(t)}function h(t){var e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'\(\)~]|%20|%00/g,(function(t){return e[t]}))}function p(t){return t.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/gi,(function(t){return decodeURIComponent(t)}))}function d(e){var r={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return u&&(r[t.Symbol.iterator]=function(){return r}),r}function y(t){var e={};if("object"==typeof t)if(v(t))for(var r=0;r<t.length;r++){var n=t[r];if(!v(n)||2!==n.length)throw new TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements");b(e,n[0],n[1])}else for(var o in t)t.hasOwnProperty(o)&&b(e,o,t[o]);else{0===t.indexOf("?")&&(t=t.slice(1));for(var i=t.split("&"),s=0;s<i.length;s++){var a=i[s],u=a.indexOf("=");-1<u?b(e,p(a.slice(0,u)),p(a.slice(u+1))):a&&b(e,p(a),"")}}return e}function b(t,e,r){var n="string"==typeof r?r:null!=r&&"function"==typeof r.toString?r.toString():JSON.stringify(r);g(t,e)?t[e].push(n):t[e]=[n]}function v(t){return!!t&&"[object Array]"===Object.prototype.toString.call(t)}function g(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(void 0!==r.g?r.g:"undefined"!=typeof window?window:this)},79:function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n},t.exports.__esModule=!0,t.exports.default=t.exports},2987:function(t){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports},5901:function(t,e,r){var n=r(79);t.exports=function(t){if(Array.isArray(t))return n(t)},t.exports.__esModule=!0,t.exports.default=t.exports},1756:function(t){t.exports=function(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")},t.exports.__esModule=!0,t.exports.default=t.exports},2475:function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},9293:function(t){function e(t,e,r,n,o,i,s){try{var a=t[i](s),u=a.value}catch(t){return void r(t)}a.done?e(u):Promise.resolve(u).then(n,o)}t.exports=function(t){return function(){var r=this,n=arguments;return new Promise((function(o,i){var s=t.apply(r,n);function a(t){e(s,o,i,a,u,"next",t)}function u(t){e(s,o,i,a,u,"throw",t)}a(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},5764:function(t){t.exports=function(t,e){return e.get?e.get.call(t):e.value},t.exports.__esModule=!0,t.exports.default=t.exports},9056:function(t){t.exports=function(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}},t.exports.__esModule=!0,t.exports.default=t.exports},7383:function(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},2591:function(t,e,r){var n=r(5764),o=r(6668);t.exports=function(t,e){var r=o(e,t);return n(t,r)},t.exports.__esModule=!0,t.exports.default=t.exports},6668:function(t,e,r){var n=r(1756);t.exports=function(t,e){return t.get(n(t,e))},t.exports.__esModule=!0,t.exports.default=t.exports},2808:function(t,e,r){var n=r(9056),o=r(6668);t.exports=function(t,e,r){var i=o(e,t);return n(t,i,r),r},t.exports.__esModule=!0,t.exports.default=t.exports},4579:function(t,e,r){var n=r(7736);function o(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,n(o.key),o)}}t.exports=function(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},3693:function(t,e,r){var n=r(7736);t.exports=function(t,e,r){return(e=n(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports.default=t.exports},2395:function(t,e,r){var n=r(9552);function o(){return t.exports=o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var o=n(t,e);if(o){var i=Object.getOwnPropertyDescriptor(o,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},t.exports.__esModule=!0,t.exports.default=t.exports,o.apply(null,arguments)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},3072:function(t){function e(r){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},9511:function(t,e,r){var n=r(5636);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&n(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports},4994:function(t){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},9291:function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},7752:function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},1869:function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},1847:function(t,e,r){var n=r(4893);t.exports=function(t,e){if(null==t)return{};var r,o,i=n(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(o=0;o<s.length;o++)r=s[o],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i},t.exports.__esModule=!0,t.exports.default=t.exports},4893:function(t){t.exports=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r},t.exports.__esModule=!0,t.exports.default=t.exports},8452:function(t,e,r){var n=r(3738).default,o=r(2475);t.exports=function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return o(t)},t.exports.__esModule=!0,t.exports.default=t.exports},4633:function(t,e,r){var n=r(3738).default;function o(){"use strict";t.exports=o=function(){return r},t.exports.__esModule=!0,t.exports.default=t.exports;var e,r={},i=Object.prototype,s=i.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",f=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function h(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(e){h=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var o=e&&e.prototype instanceof w?e:w,i=Object.create(o.prototype),s=new C(n||[]);return a(i,"_invoke",{value:P(t,r,s)}),i}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}r.wrap=p;var y="suspendedStart",b="suspendedYield",v="executing",g="completed",m={};function w(){}function _(){}function S(){}var x={};h(x,c,(function(){return this}));var O=Object.getPrototypeOf,E=O&&O(O(L([])));E&&E!==i&&s.call(E,c)&&(x=E);var j=S.prototype=w.prototype=Object.create(x);function T(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(o,i,a,u){var c=d(t[o],t,i);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&s.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var o;a(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}})}function P(t,r,n){var o=y;return function(i,s){if(o===v)throw Error("Generator is already running");if(o===g){if("throw"===i)throw s;return{value:e,done:!0}}for(n.method=i,n.arg=s;;){var a=n.delegate;if(a){var u=R(a,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var c=d(t,r,n);if("normal"===c.type){if(o=n.done?g:b,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=g,n.method="throw",n.arg=c.arg)}}}function R(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,R(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var s=i.arg;return s?s.done?(r[t.resultName]=s.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):s:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function L(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(s.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(n(t)+" is not iterable")}return _.prototype=S,a(j,"constructor",{value:S,configurable:!0}),a(S,"constructor",{value:_,configurable:!0}),_.displayName=h(S,l,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,S):(t.__proto__=S,h(t,l,"GeneratorFunction")),t.prototype=Object.create(j),t},r.awrap=function(t){return{__await:t}},T(k.prototype),h(k.prototype,f,(function(){return this})),r.AsyncIterator=k,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var s=new k(p(t,e,n,o),i);return r.isGeneratorFunction(e)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},T(j),h(j,l,"Generator"),h(j,c,(function(){return this})),h(j,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=L,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(M),!t)for(var r in this)"t"===r.charAt(0)&&s.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,o){return a.type="throw",a.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=s.call(i,"catchLoc"),c=s.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),M(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;M(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:L(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},r}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},5636:function(t){function e(r,n){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r,n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},9552:function(t,e,r){var n=r(3072);t.exports=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=n(t)););return t},t.exports.__esModule=!0,t.exports.default=t.exports},8053:function(t,e,r){var n=r(2987),o=r(9291),i=r(7122),s=r(7752);t.exports=function(t){return n(t)||o(t)||i(t)||s()},t.exports.__esModule=!0,t.exports.default=t.exports},1132:function(t,e,r){var n=r(5901),o=r(9291),i=r(7122),s=r(1869);t.exports=function(t){return n(t)||o(t)||i(t)||s()},t.exports.__esModule=!0,t.exports.default=t.exports},9045:function(t,e,r){var n=r(3738).default;t.exports=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},7736:function(t,e,r){var n=r(3738).default,o=r(9045);t.exports=function(t){var e=o(t,"string");return"symbol"==n(e)?e:e+""},t.exports.__esModule=!0,t.exports.default=t.exports},3738:function(t){function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},7122:function(t,e,r){var n=r(79);t.exports=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},4756:function(t,e,r){var n=r(4633)();t.exports=n;try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}return r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r(3822)}()}));