UNPKG

@zoom/videosdk

Version:
1 lines 782 kB
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};function t(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}var o=function(){return o=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function r(e,t){var o,r,i,n,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function a(n){return function(a){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,r&&(i=2&n[0]?r.return:n[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,n[1])).done)return i;switch(r=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return s.label++,{value:n[1],done:!1};case 5:s.label++,r=n[1],n=[0];continue;case 7:n=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){s=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){s.label=n[1];break}if(6===n[0]&&s.label<i[1]){s.label=i[1],i=n;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(n);break}i[2]&&s.ops.pop(),s.trys.pop();continue}n=t.call(e,s)}catch(e){n=[6,e],r=0}finally{o=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}}function i(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],r=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function n(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s}function s(e,t){for(var o=0,r=t.length,i=e.length;o<r;o++,i++)e[i]=t[o];return e}function a(e){return this instanceof a?(this.v=e,this):new a(e)}function d(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,o=e[Symbol.asyncIterator];return o?o.call(e):(e=i(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(t){return new Promise((function(r,i){!function(e,t,o,r){Promise.resolve(r).then((function(t){e({value:t,done:o})}),t)}(r,i,(t=e[o](t)).done,t.value)}))}}}function u(e){return"function"==typeof e}function c(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var l=c((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function p(e,t){if(e){var o=e.indexOf(t);0<=o&&e.splice(o,1)}}var h=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,o,r,a;if(!this.closed){this.closed=!0;var d=this._parentage;if(d)if(this._parentage=null,Array.isArray(d))try{for(var c=i(d),p=c.next();!p.done;p=c.next())p.value.remove(this)}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}else d.remove(this);var h=this.initialTeardown;if(u(h))try{h()}catch(e){a=e instanceof l?e.errors:[e]}var m=this._finalizers;if(m){this._finalizers=null;try{for(var g=i(m),S=g.next();!S.done;S=g.next()){var f=S.value;try{v(f)}catch(e){a=null!=a?a:[],e instanceof l?a=s(s([],n(a)),n(e.errors)):a.push(e)}}}catch(e){o={error:e}}finally{try{S&&!S.done&&(r=g.return)&&r.call(g)}finally{if(o)throw o.error}}}if(a)throw new l(a)}},e.prototype.add=function(t){var o;if(t&&t!==this)if(this.closed)v(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(o=this._finalizers)&&void 0!==o?o:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&p(t,e)},e.prototype.remove=function(t){var o=this._finalizers;o&&p(o,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),m=h.EMPTY;function g(e){return e instanceof h||e&&"closed"in e&&u(e.remove)&&u(e.add)&&u(e.unsubscribe)}function v(e){u(e)?e():e.unsubscribe()}var S=void 0;function f(e){!function(e,t){for(var o=[],r=2;r<arguments.length;r++)o[r-2]=arguments[r];setTimeout.apply(void 0,s([e,t],n(o)))}((function(){throw e}))}function y(){}function E(e){e()}var I=function(e){function o(t){var o=e.call(this)||this;return o.isStopped=!1,t?(o.destination=t,g(t)&&t.add(o)):o.destination=_,o}return t(o,e),o.create=function(e,t,o){return new C(e,t,o)},o.prototype.next=function(e){this.isStopped||this._next(e)},o.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},o.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},o.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},o.prototype._next=function(e){this.destination.next(e)},o.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},o.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},o}(h),A=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){b(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){b(e)}else b(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){b(e)}},e}(),C=function(e){function o(t,o,r){var i,n=e.call(this)||this;return i=u(t)||!t?{next:null!=t?t:void 0,error:null!=o?o:void 0,complete:null!=r?r:void 0}:t,n.destination=new A(i),n}return t(o,e),o}(I);function b(e){f(e)}var _={closed:!0,next:y,error:function(e){throw e},complete:y},R="function"==typeof Symbol&&Symbol.observable||"@@observable";function T(e){return e}function O(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return D(e)}function D(e){return 0===e.length?T:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var w=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var o=new e;return o.source=this,o.operator=t,o},e.prototype.subscribe=function(e,t,o){var r,i=this,n=(r=e)&&r instanceof I||function(e){return e&&u(e.next)&&u(e.error)&&u(e.complete)}(r)&&g(r)?e:new C(e,t,o);return E((function(){var e=i,t=e.operator,o=e.source;n.add(t?t.call(n,o):o?i._subscribe(n):i._trySubscribe(n))})),n},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var o=this;return new(t=M(t))((function(t,r){var i=new C({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});o.subscribe(i)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[R]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return D(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=M(e))((function(e,o){var r;t.subscribe((function(e){return r=e}),(function(e){return o(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function M(e){var t;return null!==(t=null!=e?e:S)&&void 0!==t?t:Promise}function N(e){return function(t){if(function(e){return u(null==e?void 0:e.lift)}(t))return t.lift((function(t){try{return e(t,this)}catch(e){this.error(e)}}));throw new TypeError("Unable to lift unknown Observable type")}}function P(e,t,o,r,i){return new k(e,t,o,r,i)}var L,k=function(e){function o(t,o,r,i,n,s){var a=e.call(this,t)||this;return a.onFinalize=n,a.shouldUnsubscribe=s,a._next=o?function(e){try{o(e)}catch(e){t.error(e)}}:e.prototype._next,a._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,a}return t(o,e),o.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var o=this.closed;e.prototype.unsubscribe.call(this),!o&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},o}(I),V=c((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),U=function(e){function o(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return t(o,e),o.prototype.lift=function(e){var t=new j(this,this);return t.operator=e,t},o.prototype._throwIfClosed=function(){if(this.closed)throw new V},o.prototype.next=function(e){var t=this;E((function(){var o,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var n=i(t.currentObservers),s=n.next();!s.done;s=n.next())s.value.next(e)}catch(e){o={error:e}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}}}))},o.prototype.error=function(e){var t=this;E((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var o=t.observers;o.length;)o.shift().error(e)}}))},o.prototype.complete=function(){var e=this;E((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},o.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(o.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),o.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},o.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},o.prototype._innerSubscribe=function(e){var t=this,o=this,r=o.hasError,i=o.isStopped,n=o.observers;return r||i?m:(this.currentObservers=null,n.push(e),new h((function(){t.currentObservers=null,p(n,e)})))},o.prototype._checkFinalizedStatuses=function(e){var t=this,o=t.hasError,r=t.thrownError,i=t.isStopped;o?e.error(r):i&&e.complete()},o.prototype.asObservable=function(){var e=new w;return e.source=this,e},o.create=function(e,t){return new j(e,t)},o}(w),j=function(e){function o(t,o){var r=e.call(this)||this;return r.destination=t,r.source=o,r}return t(o,e),o.prototype.next=function(e){var t,o;null===(o=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===o||o.call(t,e)},o.prototype.error=function(e){var t,o;null===(o=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===o||o.call(t,e)},o.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},o.prototype._subscribe=function(e){var t,o;return null!==(o=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==o?o:m},o}(U),B=function(e){function o(t){var o=e.call(this)||this;return o._value=t,o}return t(o,e),Object.defineProperty(o.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),o.prototype._subscribe=function(t){var o=e.prototype._subscribe.call(this,t);return!o.closed&&t.next(this._value),o},o.prototype.getValue=function(){var e=this,t=e.hasError,o=e.thrownError,r=e._value;if(t)throw o;return this._throwIfClosed(),r},o.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},o}(U),H=function(){return Date.now()},x=function(e){function o(t,o){return e.call(this)||this}return t(o,e),o.prototype.schedule=function(e,t){return this},o}(h),F=function(e){function o(t,o){var r=e.call(this,t,o)||this;return r.scheduler=t,r.work=o,r.pending=!1,r}return t(o,e),o.prototype.schedule=function(e,t){var o;if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r=this.id,i=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(i,r,t)),this.pending=!0,this.delay=t,this.id=null!==(o=this.id)&&void 0!==o?o:this.requestAsyncId(i,this.id,t),this},o.prototype.requestAsyncId=function(e,t,o){return void 0===o&&(o=0),function(e,t){for(var o=[],r=2;r<arguments.length;r++)o[r-2]=arguments[r];return setInterval.apply(void 0,s([e,t],n(o)))}(e.flush.bind(e,this),o)},o.prototype.recycleAsyncId=function(e,t,o){if(void 0===o&&(o=0),null!=o&&this.delay===o&&!1===this.pending)return t;null!=t&&function(e){clearInterval(e)}(t)},o.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(e,t);if(o)return o;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},o.prototype._execute=function(e,t){var o,r=!1;try{this.work(e)}catch(e){r=!0,o=e||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o},o.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,o=this.scheduler,r=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,p(r,this),null!=t&&(this.id=this.recycleAsyncId(o,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},o}(x),$=1,G={};function W(e){return e in G&&(delete G[e],!0)}var K=function(e){var t=$++;return G[t]=!0,L||(L=Promise.resolve()),L.then((function(){return W(t)&&e()})),t},z=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return K.apply(void 0,s([],n(e)))},q=function(e){return function(e){W(e)}(e)},J=function(e){function o(t,o){var r=e.call(this,t,o)||this;return r.scheduler=t,r.work=o,r}return t(o,e),o.prototype.requestAsyncId=function(t,o,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,o,r):(t.actions.push(this),t._scheduled||(t._scheduled=z(t.flush.bind(t,void 0))))},o.prototype.recycleAsyncId=function(t,o,r){var i;if(void 0===r&&(r=0),null!=r?r>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,o,r);var n=t.actions;null!=o&&(null===(i=n[n.length-1])||void 0===i?void 0:i.id)!==o&&(q(o),t._scheduled===o&&(t._scheduled=void 0))},o}(F),Q=function(){function e(t,o){void 0===o&&(o=e.now),this.schedulerActionCtor=t,this.now=o}return e.prototype.schedule=function(e,t,o){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(o,t)},e.now=H,e}(),Y=function(e){function o(t,o){void 0===o&&(o=Q.now);var r=e.call(this,t,o)||this;return r.actions=[],r._active=!1,r}return t(o,e),o.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var o;this._active=!0;do{if(o=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,o){for(;e=t.shift();)e.unsubscribe();throw o}}},o}(Q),Z=new(function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return t(o,e),o.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var o,r=this.actions;e=e||r.shift();do{if(o=e.execute(e.state,e.delay))break}while((e=r[0])&&e.id===t&&r.shift());if(this._active=!1,o){for(;(e=r[0])&&e.id===t&&r.shift();)e.unsubscribe();throw o}},o}(Y))(J),X=new Y(F),ee=X,te=function(e){function o(t,o){var r=e.call(this,t,o)||this;return r.scheduler=t,r.work=o,r}return t(o,e),o.prototype.schedule=function(t,o){return void 0===o&&(o=0),o>0?e.prototype.schedule.call(this,t,o):(this.delay=o,this.state=t,this.scheduler.flush(this),this)},o.prototype.execute=function(t,o){return o>0||this.closed?e.prototype.execute.call(this,t,o):this._execute(t,o)},o.prototype.requestAsyncId=function(t,o,r){return void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,o,r):(t.flush(this),0)},o}(F),oe=new(function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return t(o,e),o}(Y))(te),re=new w((function(e){return e.complete()}));function ie(e){return e&&u(e.schedule)}function ne(e){return e[e.length-1]}function se(e){return u(ne(e))?e.pop():void 0}function ae(e){return ie(ne(e))?e.pop():void 0}var de=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function ue(e){return u(null==e?void 0:e.then)}function ce(e){return u(e[R])}function le(e){return Symbol.asyncIterator&&u(null==e?void 0:e[Symbol.asyncIterator])}function pe(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var he="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function me(e){return u(null==e?void 0:e[he])}function ge(e){return function(e,t,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=o.apply(e,t||[]),n=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(o,r){n.push([e,t,o,r])>1||d(e,t)}))})}function d(e,t){try{!function(e){e.value instanceof a?Promise.resolve(e.value.v).then(u,c):l(n[0][2],e)}(i[e](t))}catch(e){l(n[0][3],e)}}function u(e){d("next",e)}function c(e){d("throw",e)}function l(e,t){e(t),n.shift(),n.length&&d(n[0][0],n[0][1])}}(this,arguments,(function(){var t,o,i;return r(this,(function(r){switch(r.label){case 0:t=e.getReader(),r.label=1;case 1:r.trys.push([1,,9,10]),r.label=2;case 2:return[4,a(t.read())];case 3:return o=r.sent(),i=o.value,o.done?[4,a(void 0)]:[3,5];case 4:return[2,r.sent()];case 5:return[4,a(i)];case 6:return[4,r.sent()];case 7:return r.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))}function ve(e){return u(null==e?void 0:e.getReader)}function Se(e){if(e instanceof w)return e;if(null!=e){if(ce(e))return n=e,new w((function(e){var t=n[R]();if(u(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if(de(e))return r=e,new w((function(e){for(var t=0;t<r.length&&!e.closed;t++)e.next(r[t]);e.complete()}));if(ue(e))return o=e,new w((function(e){o.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,f)}));if(le(e))return fe(e);if(me(e))return t=e,new w((function(e){var o,r;try{for(var n=i(t),s=n.next();!s.done;s=n.next()){var a=s.value;if(e.next(a),e.closed)return}}catch(e){o={error:e}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}e.complete()}));if(ve(e))return fe(ge(e))}var t,o,r,n;throw pe(e)}function fe(e){return new w((function(t){(function(e,t){var o,i,n,s;return function(e,t,o,r){return new(o||(o=Promise))((function(t,i){function n(e){try{a(r.next(e))}catch(e){i(e)}}function s(e){try{a(r.throw(e))}catch(e){i(e)}}function a(e){var r;e.done?t(e.value):(r=e.value,r instanceof o?r:new o((function(e){e(r)}))).then(n,s)}a((r=r.apply(e,[])).next())}))}(this,0,void 0,(function(){var a,u;return r(this,(function(r){switch(r.label){case 0:r.trys.push([0,5,6,11]),o=d(e),r.label=1;case 1:return[4,o.next()];case 2:if((i=r.sent()).done)return[3,4];if(a=i.value,t.next(a),t.closed)return[2];r.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return u=r.sent(),n={error:u},[3,11];case 6:return r.trys.push([6,,9,10]),i&&!i.done&&(s=o.return)?[4,s.call(o)]:[3,8];case 7:r.sent(),r.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}}))}))})(e,t).catch((function(e){return t.error(e)}))}))}function ye(e,t,o,r,i){void 0===r&&(r=0),void 0===i&&(i=!1);var n=t.schedule((function(){o(),i?e.add(this.schedule(null,r)):this.unsubscribe()}),r);if(e.add(n),!i)return n}function Ee(e,t){return void 0===t&&(t=0),N((function(o,r){o.subscribe(P(r,(function(o){return ye(r,e,(function(){return r.next(o)}),t)}),(function(){return ye(r,e,(function(){return r.complete()}),t)}),(function(o){return ye(r,e,(function(){return r.error(o)}),t)})))}))}function Ie(e,t){return void 0===t&&(t=0),N((function(o,r){r.add(e.schedule((function(){return o.subscribe(r)}),t))}))}function Ae(e,t){if(!e)throw new Error("Iterable cannot be null");return new w((function(o){ye(o,t,(function(){var r=e[Symbol.asyncIterator]();ye(o,t,(function(){r.next().then((function(e){e.done?o.complete():o.next(e.value)}))}),0,!0)}))}))}function Ce(e,t){return t?function(e,t){if(null!=e){if(ce(e))return function(e,t){return Se(e).pipe(Ie(t),Ee(t))}(e,t);if(de(e))return function(e,t){return new w((function(o){var r=0;return t.schedule((function(){r===e.length?o.complete():(o.next(e[r++]),o.closed||this.schedule())}))}))}(e,t);if(ue(e))return function(e,t){return Se(e).pipe(Ie(t),Ee(t))}(e,t);if(le(e))return Ae(e,t);if(me(e))return function(e,t){return new w((function(o){var r;return ye(o,t,(function(){r=e[he](),ye(o,t,(function(){var e,t,i;try{t=(e=r.next()).value,i=e.done}catch(e){return void o.error(e)}i?o.complete():o.next(t)}),0,!0)})),function(){return u(null==r?void 0:r.return)&&r.return()}}))}(e,t);if(ve(e))return function(e,t){return Ae(ge(e),t)}(e,t)}throw pe(e)}(e,t):Se(e)}function be(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ce(e,ae(e))}function _e(e,t){var o=u(e)?e:function(){return e};return new w((function(e){return e.error(o())}))}var Re=c((function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}}));function Te(e,t){return new Promise((function(t,o){var r=new C({next:function(e){t(e),r.unsubscribe()},error:o,complete:function(){o(new Re)}});e.subscribe(r)}))}function Oe(e){return e instanceof Date&&!isNaN(e)}var De=c((function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}}));function we(e,t){var o=Oe(e)?{first:e}:"number"==typeof e?{each:e}:e,r=o.first,i=o.each,n=o.with,s=void 0===n?Me:n,a=o.scheduler,d=void 0===a?X:a,u=o.meta,c=void 0===u?null:u;if(null==r&&null==i)throw new TypeError("No timeout provided.");return N((function(e,t){var o,n,a=null,u=0,l=function(e){n=ye(t,d,(function(){try{o.unsubscribe(),Se(s({meta:c,lastValue:a,seen:u})).subscribe(t)}catch(e){t.error(e)}}),e)};o=e.subscribe(P(t,(function(e){null==n||n.unsubscribe(),u++,t.next(a=e),i>0&&l(i)}),void 0,void 0,(function(){(null==n?void 0:n.closed)||null==n||n.unsubscribe(),a=null}))),!u&&l(null!=r?"number"==typeof r?r:+r-d.now():i)}))}function Me(e){throw new De(e)}function Ne(e,t){return N((function(o,r){var i=0;o.subscribe(P(r,(function(o){r.next(e.call(t,o,i++))})))}))}var Pe=Array.isArray;function Le(e){return Ne((function(t){return function(e,t){return Pe(t)?e.apply(void 0,s([],n(t))):e(t)}(e,t)}))}var ke=Array.isArray,Ve=Object.getPrototypeOf,Ue=Object.prototype,je=Object.keys;function Be(e,t,o){return void 0===o&&(o=1/0),u(t)?Be((function(o,r){return Ne((function(e,i){return t(o,e,r,i)}))(Se(e(o,r)))}),o):("number"==typeof t&&(o=t),N((function(t,r){return function(e,t,o,r){var i=[],n=0,s=0,a=!1,d=function(){!a||i.length||n||t.complete()},u=function(e){n++;var a=!1;Se(o(e,s++)).subscribe(P(t,(function(e){t.next(e)}),(function(){a=!0}),void 0,(function(){if(a)try{for(n--;i.length&&n<r;)void 0,e=i.shift(),u(e);d()}catch(e){t.error(e)}var e})))};return e.subscribe(P(t,(function(e){return n<r?u(e):i.push(e)}),(function(){a=!0,d()}))),function(){}}(t,r,e,o)})))}function He(e){return void 0===e&&(e=1/0),Be(T,e)}function xe(){return He(1)}function Fe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return xe()(Ce(e,ae(e)))}function $e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=se(e),r=function(e){if(1===e.length){var t=e[0];if(ke(t))return{args:t,keys:null};if((r=t)&&"object"==typeof r&&Ve(r)===Ue){var o=je(t);return{args:o.map((function(e){return t[e]})),keys:o}}}var r;return{args:e,keys:null}}(e),i=r.args,n=r.keys,s=new w((function(e){var t=i.length;if(t)for(var o=new Array(t),r=t,s=t,a=function(t){var a=!1;Se(i[t]).subscribe(P(e,(function(e){a||(a=!0,s--),o[t]=e}),(function(){return r--}),void 0,(function(){r&&a||(s||e.next(n?function(e,t){return e.reduce((function(e,o,r){return e[o]=t[r],e}),{})}(n,o):o),e.complete())})))},d=0;d<t;d++)a(d);else e.complete()}));return o?s.pipe(Le(o)):s}var Ge=["addListener","removeListener"],We=["addEventListener","removeEventListener"],Ke=["on","off"];function ze(e,t,o,r){if(u(o)&&(r=o,o=void 0),r)return ze(e,t,o).pipe(Le(r));var i=n(function(e){return u(e.addEventListener)&&u(e.removeEventListener)}(e)?We.map((function(r){return function(i){return e[r](t,i,o)}})):function(e){return u(e.addListener)&&u(e.removeListener)}(e)?Ge.map(qe(e,t)):function(e){return u(e.on)&&u(e.off)}(e)?Ke.map(qe(e,t)):[],2),s=i[0],a=i[1];if(!s&&de(e))return Be((function(e){return ze(e,t,o)}))(Se(e));if(!s)throw new TypeError("Invalid event target");return new w((function(e){var t=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return e.next(1<t.length?t:t[0])};return s(t),function(){return a(t)}}))}function qe(e,t){return function(o){return function(r){return e[o](t,r)}}}function Je(e,t,o){return o?Je(e,t).pipe(Le(o)):new w((function(o){var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.next(1===e.length?e[0]:e)},i=e(r);return u(t)?function(){return t(r,i)}:void 0}))}function Qe(e,t,o){void 0===e&&(e=0),void 0===o&&(o=ee);var r=-1;return null!=t&&(ie(t)?o=t:r=t),new w((function(t){var i=Oe(e)?+e-o.now():e;i<0&&(i=0);var n=0;return o.schedule((function(){t.closed||(t.next(n++),0<=r?this.schedule(void 0,r):t.complete())}),i)}))}function Ye(e,t){return void 0===e&&(e=0),void 0===t&&(t=X),e<0&&(e=0),Qe(e,e,t)}function Ze(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=ae(e),r=function(e){return"number"==typeof ne(e)?e.pop():1/0}(e),i=e;return i.length?1===i.length?Se(i[0]):He(r)(Ce(i,o)):re}var Xe=new w(y),et=Array.isArray;function tt(e,t){return function(o,r){return!e.call(t,o,r)}}function ot(e,t){return N((function(o,r){var i=0;o.subscribe(P(r,(function(o){return e.call(t,o,i++)&&r.next(o)})))}))}function rt(){for(var e,t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===(t=1===(e=t).length&&et(e[0])?e[0]:e).length?Se(t[0]):new w(function(e){return function(t){for(var o=[],r=function(r){o.push(Se(e[r]).subscribe(P(t,(function(e){if(o){for(var i=0;i<o.length;i++)i!==r&&o[i].unsubscribe();o=null}t.next(e)}))))},i=0;o&&!t.closed&&i<e.length;i++)r(i)}}(t))}function it(e){return N((function(t,o){var r,i=null,n=!1;i=t.subscribe(P(o,void 0,void 0,(function(s){r=Se(e(s,it(e)(t))),i?(i.unsubscribe(),i=null,r.subscribe(o)):n=!0}))),n&&(i.unsubscribe(),i=null,r.subscribe(o))}))}function nt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=ae(e);return N((function(t,r){xe()(Ce(s([t],n(e)),o)).subscribe(r)}))}function st(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return nt.apply(void 0,s([],n(e)))}function at(e){return e<=0?function(){return re}:N((function(t,o){var r=0;t.subscribe(P(o,(function(t){++r<=e&&(o.next(t),e<=r&&o.complete())})))}))}function dt(){return N((function(e,t){e.subscribe(P(t,y))}))}function ut(e){return Ne((function(){return e}))}function ct(e,t){void 0===t&&(t=X);var o,r=Qe(e,t);return o=function(){return r},Be((function(e,t){return Se(o()).pipe(at(1),ut(e))}))}function lt(e,t,o){return void 0===o&&(o=1/0),u(t)?Be((function(){return e}),t,o):Be((function(){return e}),o)}function pt(e,t){return N(function(e,t,o){return function(r,i){var n=o,s=t,a=0;r.subscribe(P(i,(function(t){var o=a++;s=n?e(s,t,o):(n=!0,t),i.next(s)}),undefined))}}(e,t,arguments.length>=2))}function ht(e){return N((function(t,o){var r=!1,i=0;t.subscribe(P(o,(function(t){return(r||(r=!e(t,i++)))&&o.next(t)})))}))}function mt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=ae(e);return N((function(t,r){(o?Fe(e,t,o):Fe(e,t)).subscribe(r)}))}function gt(e,t){return N((function(o,r){var i=null,n=0,s=!1,a=function(){return s&&!i&&r.complete()};o.subscribe(P(r,(function(o){null==i||i.unsubscribe();var s=0,d=n++;Se(e(o,d)).subscribe(i=P(r,(function(e){return r.next(t?t(o,e,d,s++):e)}),(function(){i=null,a()})))}),(function(){s=!0,a()})))}))}function vt(e){return N((function(t,o){Se(e).subscribe(P(o,(function(){return o.complete()}),y)),!o.closed&&t.subscribe(o)}))}function St(e,t){return void 0===t&&(t=!1),N((function(o,r){var i=0;o.subscribe(P(r,(function(o){var n=e(o,i++);(n||t)&&r.next(o),!n&&r.complete()})))}))}function ft(e,t,o){var r=u(e)||t||o?{next:e,error:t,complete:o}:e;return r?N((function(e,t){var o;null===(o=r.subscribe)||void 0===o||o.call(r);var i=!0;e.subscribe(P(t,(function(e){var o;null===(o=r.next)||void 0===o||o.call(r,e),t.next(e)}),(function(){var e;i=!1,null===(e=r.complete)||void 0===e||e.call(r),t.complete()}),(function(e){var o;i=!1,null===(o=r.error)||void 0===o||o.call(r,e),t.error(e)}),(function(){var e,t;i&&(null===(e=r.unsubscribe)||void 0===e||e.call(r)),null===(t=r.finalize)||void 0===t||t.call(r)})))})):T}function yt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=se(e);return N((function(t,r){for(var i=e.length,a=new Array(i),d=e.map((function(){return!1})),u=!1,c=function(t){Se(e[t]).subscribe(P(r,(function(e){a[t]=e,u||d[t]||(d[t]=!0,(u=d.every(T))&&(d=null))}),y))},l=0;l<i;l++)c(l);t.subscribe(P(r,(function(e){if(u){var t=s([e],n(a));r.next(o?o.apply(void 0,s([],n(t))):t)}})))}))}function Et(e){return Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Et(e)}function It(e,t,o){return(t=function(e){var t=function(e,t){if("object"!=Et(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,t);if("object"!=Et(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Et(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function At(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function Ct(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?At(Object(o),!0).forEach((function(t){It(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):At(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function bt(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var _t="function"==typeof Symbol&&Symbol.observable||"@@observable",Rt=function(){return Math.random().toString(36).substring(7).split("").join(".")},Tt={INIT:"@@redux/INIT"+Rt(),REPLACE:"@@redux/REPLACE"+Rt(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Rt()}};function Ot(e,t,o){var r;if("function"==typeof t&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(bt(0));if("function"==typeof t&&void 0===o&&(o=t,t=void 0),void 0!==o){if("function"!=typeof o)throw new Error(bt(1));return o(Ot)(e,t)}if("function"!=typeof e)throw new Error(bt(2));var i=e,n=t,s=[],a=s,d=!1;function u(){a===s&&(a=s.slice())}function c(){if(d)throw new Error(bt(3));return n}function l(e){if("function"!=typeof e)throw new Error(bt(4));if(d)throw new Error(bt(5));var t=!0;return u(),a.push(e),function(){if(t){if(d)throw new Error(bt(6));t=!1,u();var o=a.indexOf(e);a.splice(o,1),s=null}}}function p(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(bt(7));if(void 0===e.type)throw new Error(bt(8));if(d)throw new Error(bt(9));try{d=!0,n=i(n,e)}finally{d=!1}for(var t=s=a,o=0;o<t.length;o++)(0,t[o])();return e}return p({type:Tt.INIT}),(r={dispatch:p,subscribe:l,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(bt(10));i=e,p({type:Tt.REPLACE})}})[_t]=function(){var e,t=l;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(bt(11));function o(){e.next&&e.next(c())}return o(),{unsubscribe:t(o)}}})[_t]=function(){return this},e},r}function Dt(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var wt=function(e){function o(t,o){var r=e.call(this,(function(e){var t=r.__notifier.subscribe(e);return t&&!t.closed&&e.next(r.value),t}))||this;return r.__notifier=new U,r.value=o,t.subscribe((function(e){e!==r.value&&(r.value=e,r.__notifier.next(e))})),r}return t(o,e),o}(w),Mt=function(e,t){return e===t||"function"==typeof t&&e===t.toString()};function Nt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=e.length;return ot(1===o?function(t){return Mt(t.type,e[0])}:function(t){for(var r=0;r<o;r++)if(Mt(t.type,e[r]))return!0;return!1})}var Pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function Lt(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function kt(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:!0}),t&&t.length&&Object.defineProperty(this,"path",{value:t,enumerable:!0})}("object"===("undefined"==typeof global?"undefined":Pt(global))&&global?global:"undefined"!=typeof window?window:{}).DeepDiff,Lt((function e(t,o,r){e.super_.call(this,"E",t),Object.defineProperty(this,"lhs",{value:o,enumerable:!0}),Object.defineProperty(this,"rhs",{value:r,enumerable:!0})}),kt),Lt((function e(t,o){e.super_.call(this,"N",t),Object.defineProperty(this,"rhs",{value:o,enumerable:!0})}),kt),Lt((function e(t,o){e.super_.call(this,"D",t),Object.defineProperty(this,"lhs",{value:o,enumerable:!0})}),kt),Lt((function e(t,o,r){e.super_.call(this,"A",t),Object.defineProperty(this,"index",{value:o,enumerable:!0}),Object.defineProperty(this,"item",{value:r,enumerable:!0})}),kt);var Vt,Ut,jt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Bt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ht=(Ut||(Ut=1,Vt=function(e,t,o,r,i,n,s,a){if(!e){var d;if(void 0===t)d=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[o,r,i,n,s,a],c=0;(d=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw d.framesToPop=1,d}}),Vt),xt=Bt(Ht),Ft=function(e){return"function"==typeof e},$t=function(e){return e.toString()},Gt=function(e){return"string"==typeof e},Wt="||",Kt=function(e){return e},zt=function(e){return null===e};function qt(e,t,o){void 0===t&&(t=Kt),xt(Ft(t)||zt(t),"Expected payloadCreator to be a function, undefined or null");var r=zt(t)||t===Kt?Kt:function(e){for(var o=arguments.length,r=new Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];return e instanceof Error?e:t.apply(void 0,[e].concat(r))},i=Ft(o),n=e.toString(),s=function(){var t=r.apply(void 0,arguments),n={type:e};return t instanceof Error&&(n.error=!0),void 0!==t&&(n.payload=t),i&&(n.meta=o.apply(void 0,arguments)),n};return s.toString=function(){return n},s}var Jt,Qt,Yt,Zt,Xt,eo,to=function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},oo=function(e){return Array.isArray(e)},ro=function(e){return null==e};var io=Bt(function(){if(eo)return Xt;eo=1;var e=function(){if(Zt)return Yt;Zt=1;var e=function(){if(Qt)return Jt;Qt=1,Jt=function(n){return e.test(n)?n.toLowerCase():t.test(n)?(function(e){return e.replace(r,(function(e,t){return t?" "+t:""}))}(n)||n).toLowerCase():o.test(n)?function(e){return e.replace(i,(function(e,t,o){return t+" "+o.toLowerCase().split("").join(" ")}))}(n).toLowerCase():n.toLowerCase()};var e=/\s/,t=/(_|-|\.|:)/,o=/([a-z][A-Z]|[A-Z][a-z])/,r=/[\W_]+(.|$)/g,i=/(.)([A-Z]+)/g;return Jt}();return Yt=function(t){return e(t).replace(/[\W_]+(.|$)/g,(function(e,t){return t?" "+t:""})).trim()}}();return Xt=function(t){return e(t).replace(/\s(\w)/g,(function(e,t){return t.toUpperCase()}))}}()),no=function(e){return-1===e.indexOf("/")?io(e):e.split("/").map(io).join("/")},so=function(e,t){return e.reduce((function(e,o){return t(e,o)}),{})},ao=function(e){return"undefined"!=typeof Map&&e instanceof Map};function uo(e){if(ao(e))return Array.from(e.keys());if("undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys)return Reflect.ownKeys(e);var t=Object.getOwnPropertyNames(e);return"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e))),t}function co(e,t){return ao(t)?t.get(e):t[e]}var lo=function(e){return function t(o,r,i,n){var s=void 0===r?{}:r,a=s.namespace,d=void 0===a?"/":a,u=s.prefix;return void 0===i&&(i={}),void 0===n&&(n=""),uo(o).forEach((function(r){var s=function(e){return n||!u||u&&new RegExp("^"+u+d).test(e)?e:""+u+d+e}(function(e){var t;if(!n)return e;var o=e.toString().split(Wt),r=n.split(Wt);return(t=[]).concat.apply(t,r.map((function(e){return o.map((function(t){return""+e+d+t}))}))).join(Wt)}(r)),a=co(r,o);e(a)?t(a,{namespace:d,prefix:u},i,s):i[s]=a})),i}},po=lo(to);function ho(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},r=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(o).filter((function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})))),r.forEach((function(t){mo(e,t,o[t])}))}return e}function mo(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function go(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];var i,n=to((i=o)[i.length-1])?o.pop():{};return xt(o.every(Gt)&&(Gt(e)||to(e)),"Expected optional object followed by string action types"),Gt(e)?So([e].concat(o),n):ho({},function(e,t){return function(e,t){var o=void 0===t?{}:t,r=o.namespace,i=void 0===r?"/":r,n=o.prefix;function s(t,o,r){var i=no(r.shift());0===r.length?o[i]=e[t]:(o[i]||(o[i]={}),s(t,o[i],r))}var a={};return Object.getOwnPropertyNames(e).forEach((function(e){var t=n?e.replace(""+n+i,""):e;return s(e,a,t.split(i))})),a}(vo(po(e,t)),t)}(e,n),So(o,n))}function vo(e,t){var o=void 0===t?{}:t,r=o.prefix,i=o.namespace,n=void 0===i?"/":i;return so(Object.keys(e),(function(t,o){var i,s=e[o];xt(function(e){if(Ft(e)||ro(e))return!0;if(oo(e)){var t=e[0],o=void 0===t?Kt:t,r=e[1];return Ft(o)&&Ft(r)}return!1}(s),"Expected function, undefined, null, or array with payload and meta functions for "+o);var a=r?""+r+n+o:o,d=oo(s)?qt.apply(void 0,[a].concat(s)):qt(a,s);return ho({},t,((i={})[o]=d,i))}))}function So(e,t){var o=vo(so(e,(function(e,t){var o;return ho({},e,((o={})[t]=Kt,o))})),t);return so(Object.keys(o),(function(e,t){var r;return ho({},e,((r={})[no(t)]=o[t],r))}))}var fo=function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];var r="function"!=typeof t[t.length-1]&&t.pop(),i=t;if(void 0===r)throw new TypeError("The initial state may not be undefined. If you do not want to set a value for this reducer, you can use null instead of undefined.");return function(e,t){for(var o=arguments.length,n=Array(o>2?o-2:0),s=2;s<o;s++)n[s-2]=arguments[s];var a=void 0===e,d=void 0===t;return a&&d&&r?r:i.reduce((function(e,o){return o.apply(void 0,[e,t].concat(n))}),a&&!d&&r?r:e)}},yo=lo((function(e){return(to(e)||ao(e))&&!function(e){var t=uo(e),o=t.every((function(e){return"next"===e||"throw"===e}));return t.length&&t.length<=2&&o}(e)}));function Eo(e,t,o){void 0===o&&(o={}),xt(to(e)||ao(e),"Expected handlers to be a plain object.");var r=yo(e,o),i=uo(r).map((function(e){return function(e,t,o){void 0===t&&(t=Kt);var r=$t(e).split(Wt);xt(!(void 0===o),"defaultState for reducer handling "+r.join(", ")+" should be defined"),xt(Ft(t)||to(t),"Expected reducer to be a function or object with next and throw reducers");var i=Ft(t)?[t,t]:[t.next,t.throw].map((function(e){return ro(e)?Kt:e})),n=i[0],s=i[1];return function(e,t){void 0===e&&(e=o);var i=t.type;return i&&-1!==r.indexOf($t(i))?(!0===t.error?s:n)(e,t):e}}(e,co(e,r),t)})),n=fo.apply(void 0,i.concat([t]));return function(e,o){return void 0===e&&(e=t),n(e,o)}}const Io=qt("CONNECT_ZOOM_SOCKET"),Ao=qt("CONNECT_XMPP_SOCKET"),Co=qt("CLOSE_ZOOM_SOCKET"),bo=qt("CLOSE_XMPP_SOCKET"),_o=qt("RECEIVE_MESSAGE_FROM_ZOOM_SOCKET"),Ro=qt("RECEIVE_SHARING_PAYLOAD_FROM_ZOOM_SOCKET"),To=qt("RECEIVE_MESSAGE_FROM_XMPP_SOCKET"),Oo=qt("CONNECT_MAIN_SESSION_SOCKET"),Do=qt("CLOSE_MAIN_SESSION_SOCKET"),wo=qt("RECEIVE_MESSAGE_FROM_MAIN_SESSION_SOCKET"),{setZoomSocketStatus:Mo,setRwgServersList:No,setRwgRetryCount:Po,setXmppSocketStatus:Lo,setMainSessionSocketStatus:ko,resetSocket:Vo}=go("SET_ZOOM_SOCKET_STATUS","SET_RWG_SERVERS_LIST","SET_RWG_RETRY_COUNT","SET_XMPP_SOCKET_STATUS","SET_MAIN_SESSION_SOCKET_STATUS","RESET_SOCKET"),Uo=qt("CONNECT_TO_MEDIA_STREAM"),jo=qt("RECEIVE_PAYLOAD_FROM_MEDIA_SDK"),{setAudioEncodeStatus:Bo,setAudioDecodeStatus:Ho,setVideoEncodeStatus:xo,setVideoDecodeStatus:Fo,setSharingEncodeStatus:$o,setSharingDecodeStatus:Go,setMediaConstraints:Wo,setMediaEncryptKey:Ko,setIsEnableDecoderInWorklet:zo,setPatchedMediaSdkStatus:qo,setMediaAssetsPath:Jo,setIsMediaAgentInitialized:Qo,resetMedia:Yo}=go("SET_AUDIO_ENCODE_STATUS","SET_AUDIO_DECODE_STATUS","SET_VIDEO_ENCODE_STATUS","SET_VIDEO_DECODE_STATUS","SET_SHARING_ENCODE_STATUS","SET_SHARING_DECODE_STATUS","SET_MEDIA_CONSTRAINTS","SET_MEDIA_ENCRYPT_KEY","SET_IS_ENABLE_DECODER_IN_WORKLET","SET_PATCHED_MEDIA_SDK_STATUS","SET_MEDIA_ASSETS_PATH","SET_IS_MEDIA_AGENT_INITIALIZED","RESET_MEDIA");function Zo(e,t,...o){return e(be(...o||[]),t,null)}function Xo(...e){const t=(...t)=>Ze(...e.map((e=>{const o=e(...t);if(!o)throw new TypeError(`combineEpics: one of the provided Epics "${e.name||"<anonymous>"}" does not return a stream. Double check you're not missing a return statement!`);return o.pipe(it(((e,t)=>(setTimeout((()=>{throw e}),0),t))))})));try{Object.defineProperty(t,"name",{value:`combineEpics(${e.map((e=>e.name||"<anonymous>")).join(", ")})`})}catch(e){}return t}function er(...e){return Xo(...e.flatMap((e=>Object.values(e))))}function tr(e,t){return e.pipe(Nt(`${_o}`),ot((e=>e.payload.evt===t)))}function or(e,t){return e.pipe(Nt(`${wo}`),ot((e=>e.payload.evt===t)))}function rr(e,t){return e.pipe(Nt(`${To}`),ot((e=>e.payload.evt===t)))}function ir(e,t){return e.pipe(Nt(`${_o}`,`${wo}`),ot((e=>e.payload.evt===t)))}function nr(e,t){return e.pipe(Nt(`${jo}`),ot((e=>Array.isArray(t)?t.indexOf(e.payload.type)>-1:e.payload.type===t)))}function sr(e,t){return e.pipe(Nt(`${Uo}`),ot((()=>{const{media:{assetsPath:e,mediaConstraints:o}}=t.value;return void 0!==e&&void 0!==o})),gt((()=>{const{media:{isMediaAgentInitialized:o}}=t.value;return o?Ce([0]):e.pipe(Nt(`${Qo}`),ot((e=>!!e.payload)),at(1))})))}function ar(e,t,o){const r=document.createElement("script");r.type="text/javascript",r.readyState?r.onreadystatechange=()=>{"loaded"!==r.readyState&&"complete"!==r.readyState||(r.onreadystatechange=null,t())}:(r.onload=()=>{t()},r.onerror=()=>{o()}),r.src=e,window.crossOriginIsolated&&(r.crossOrigin="anonymous"),"function"==typeof document.body.append?document.getElementsByTagName("head")[0].append(r):document.getElementsByTagName("head")[0].appendChild(r)}function dr(e,t){let o=e;/^https?:\/\//.test(o)||(o=`https://${e}`);try{const e=new URL(o);if(!t)return e.href;if(t.hostname)return e.hostname;if(t.path)return e.pathname}catch(e){return""}return""}function ur(e){if(e){var t;const o=document.getElementById(e);null==o||null===(t=o.parentNode)||void 0===t||t.removeChild(o)}}function cr(e,t){if(!e||"string"==typeof e)return!1;if(e.ownerDocument===window.document)return e instanceof t;{var o;const r=null===(o=e.ownerDocument)||void 0===o?void 0:o.defaultView;let i;return!!r&&("HTMLVideoElement"===t.name?i=r.HTMLVideoElement:"HTMLCanvasElement"===t.name?i=r.HTMLCanvasElement:"HTMLElement"===t.name&&(i=r.HTMLElement),!!i&&e instanceof i||e instanceof t)}}function lr(e){return cr(e,HTMLVideoElement)}function pr(e){return cr(e,HTMLCanvasElement)}function hr(e,t,o){const r=e.parentElement;if(!r)return null;const i=document.createElement("canvas");i.id=t,null==r||r.appendChild(i);let n=null;function s(){o&&o()}return"undefined"!=typeof ResizeObserver?(n=new ResizeObserver(s),n.observe(e),r&&n.observe(r)):window.addEventListener("resize",s),s(),i._overlayCleanup=function(){n?(n.unobserve(e),r&&n.unobserve(r),n.disconnect(),n=null):window.removeEventListener("resize",s),"function"==typeof i.remove?i.remove():r&&r.removeChild(i)},i}function mr(e){var t,o,r,i,n;const s=e.getBoundingClientRect(),a=e.width,d=e.height,u=getComputedStyle(e),c=parseFloat(u.borderTopWidth)||0,l=parseFloat(u.borderLeftWidth)||0,p=parseFloat(u.borderRightWidth)||0,h=parseFloat(u.borderBottomWidth)||0,m=Math.max(a/(s.width-l-p),d/(s.height-c-h)),g={width:a/m,height:d/m},v=null==e||null===(t=e.parentElement)||void 0===t?void 0:t.getBoundingClientRect(),S=(null!==(o=null==s?void 0:s.top)&&void 0!==o?o:0)-(null!==(r=null==v?void 0:v.top)&&void 0!==r?r:0),f=(null!==(i=null==s?void 0:s.left)&&void 0!==i?i:0)-(null!==(n=null==v?void 0:v.left)&&void 0!==n?n:0);return{size:g,position:{top:`${S+((s.height-c-h-g.height)/2+c)}px`,left:`${f+((s.width-l-p-g.width)/2+l)}px`}}}let gr="zoom.us";const vr="3.13.0",Sr=`https://dmogdx0jrul3u.cloudfront.net/${vr}/lib/av`,fr=`https://source.zoom.us/${vr}/lib/av`,yr=`https://jssdk.zoomus.cn/${vr}/lib/av`,Er=()=>gr,Ir="function"==typeof Buffer,Ar="function"==typeof TextDecoder?new TextDecoder:void 0,Cr="function"==typeof TextEncoder?new TextEncoder:void 0,br=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),_r=(()=>{let e={};return br.forEach(((t,o)=>e[t]=o)),e})(),Rr=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Tr=String.fromCharCode.bind(String),Or="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),Dr=e=>e.replace(/=/g,"").replace(/[+\/]/g,(e=>"+"==e?"-":"_")),wr=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),Mr="function"==typeof btoa?e=>btoa(e):Ir?e=>Buffer.from(e,"binary").toString("base64"):e=>{let t,o,r,i,n="";const s=e.length%3;for(let s=0;s<e.length;){if((o=e.charCodeAt(s++))>255||(r=e.charCodeAt(s++))>255||(i=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");t=o<<16|r<<8|i,n+=br[t>>18&63]+br[t>>12&63]+br[t>>6&63]+br[63&t]}return s?n.slice(0,s-3)+"===".substring(s):n},Nr=Ir?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let o=0,r=e.length;o<r;o+=4096)t.push(Tr.apply(null,e.subarray(o,o+4096)));return Mr(t.join(""))},Pr=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?Tr(192|t>>>6)+Tr(128|63&t):Tr(224|t>>>12&15)+Tr(128|t>>>6&63)+Tr(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return Tr(240|t>>>18&7)+Tr(128|t>>>12&63)+Tr(128|t>>>6&63)+Tr(128|63&t)},Lr=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,kr=Ir?e=>Buffer.from(e,"utf8").toString("base64"):Cr?e=>Nr(Cr.encode(e)):e=>Mr((e=>e.replace(Lr,Pr))(e)),Vr=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Ur=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return Tr((t>>>10)+55296)+Tr(56320+(1023&t));case 3:return Tr((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Tr((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},jr="function"==typeof atob?e=>atob(wr(e)):Ir?e=>Buffer.from(e,"base64").toString("binary"):e=>{if(e=e.replace(/\s+/g,""),!Rr.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,o,r,i="";for(let n=0;n<e.length;)t=_r[e.charAt(n++)]<<18|_r[e.charAt(n++)]<<12|(o=_r[e.charAt(n++)])<<6|(r=_r[e.charAt(n++)]),i+=64===o?Tr(t>>16&255):64===r?Tr(t>>16&255,t>>8&255):Tr(t>>16&255,t>>8&255,255&t);return i},Br=Ir?e=>Or(Buffer.from(e,"base64")):e=>Or(jr(e).split("").map((e=>e.charCodeAt(0)))),Hr=Ir?e=>Buffer.from(e,"base64").toString("utf8"):Ar?e=>Ar.decode(Br(e)):e=>(e=>e.replace(Vr,Ur))(jr(e)),xr=(e,t=!1)=>t?Dr(kr(e)):kr(e),Fr=e=>Hr((e=>wr(e.replace(/[-_]/g,(e=>"-"==e?"+":"/"))))(e)),$r=(e,t=!1)=>t?Dr(Nr(e)):Nr(e);function Gr(e){return xr(e,!0)}function Wr(e){return Fr(e)}function Kr(e){return xr(e,!1)}const zr={"-":"+",_:"/",".":"="};function qr(e){const t=e.replace(/[-_.]/g,(e=>zr[e]));return Uint8Array.from(window.atob(t),(e=>e.charCodeAt(0)))}const Jr=e=>{const t=e.charCodeAt(0);return t<=parseInt("0x7F",16)?1:t<=parseInt("0x7F