UNPKG

@zoom/meetingsdk

Version:
1 lines 2.96 MB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).ReactWidgets=t(e.React,e.ReactDOM)}(this,function(e,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var r=o(e),i=n(e),a=n(t),s=o(t);function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var p,h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function _(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var m=a.default;function g(e){return g="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},g(e)}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=g(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==g(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function w(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. "}p=m.createRoot,m.hydrateRoot;var y="function"==typeof Symbol&&Symbol.observable||"@@observable",S=function(){return Math.random().toString(36).substring(7).split("").join(".")},C={INIT:"@@redux/INIT"+S(),REPLACE:"@@redux/REPLACE"+S(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+S()}};function x(e,t,n){var o;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(w(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(w(1));return n(x)(e,t)}if("function"!=typeof e)throw new Error(w(2));var r=e,i=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function d(){if(l)throw new Error(w(3));return i}function u(e){if("function"!=typeof e)throw new Error(w(4));if(l)throw new Error(w(5));var t=!0;return c(),s.push(e),function(){if(t){if(l)throw new Error(w(6));t=!1,c();var n=s.indexOf(e);s.splice(n,1),a=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(w(7));if(void 0===e.type)throw new Error(w(8));if(l)throw new Error(w(9));try{l=!0,i=r(i,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++)(0,t[n])();return e}return p({type:C.INIT}),(o={dispatch:p,subscribe:u,getState:d,replaceReducer:function(e){if("function"!=typeof e)throw new Error(w(10));r=e,p({type:C.REPLACE})}})[y]=function(){var e,t=u;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(w(11));function n(){e.next&&e.next(d())}return n(),{unsubscribe:t(n)}}})[y]=function(){return this},e},o}function k(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];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 E=function(e,t){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},E(e,t)};function A(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}E(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var I=function(){return I=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},I.apply(this,arguments)};function T(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function R(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function O(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a}function P(e,t){for(var n=0,o=t.length,r=e.length;n<o;n++,r++)e[r]=t[n];return e}function M(e){return this instanceof M?(this.v=e,this):new M(e)}function j(e){return"function"==typeof e}function D(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 N=D(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 L(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var z=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,n,o,r;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var a=R(i),s=a.next();!s.done;s=a.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else i.remove(this);var l=this.initialTeardown;if(j(l))try{l()}catch(e){r=e instanceof N?e.errors:[e]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var d=R(c),u=d.next();!u.done;u=d.next()){var p=u.value;try{B(p)}catch(e){r=null!=r?r:[],e instanceof N?r=P(P([],O(r)),O(e.errors)):r.push(e)}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(o=d.return)&&o.call(d)}finally{if(n)throw n.error}}}if(r)throw new N(r)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)B(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).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)&&L(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&L(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),V=z.EMPTY;function U(e){return e instanceof z||e&&"closed"in e&&j(e.remove)&&j(e.add)&&j(e.unsubscribe)}function B(e){j(e)?e():e.unsubscribe()}var H=void 0;function F(e){!function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];setTimeout.apply(void 0,P([e,t],O(n)))}(function(){throw e})}function q(){}function W(e){e()}var $=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,U(t)&&t.add(n)):n.destination=Z,n}return A(t,e),t.create=function(e,t,n){return new K(e,t,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(z),G=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){Q(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){Q(e)}else Q(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){Q(e)}},e}(),K=function(e){function t(t,n,o){var r,i=e.call(this)||this;return r=j(t)||!t?{next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=o?o:void 0}:t,i.destination=new G(r),i}return A(t,e),t}($);function Q(e){F(e)}var Z={closed:!0,next:q,error:function(e){throw e},complete:q},J="function"==typeof Symbol&&Symbol.observable||"@@observable";function Y(e){return e}function X(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ee(e)}function ee(e){return 0===e.length?Y:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}var te=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var o,r=this,i=(o=e)&&o instanceof $||function(e){return e&&j(e.next)&&j(e.error)&&j(e.complete)}(o)&&U(o)?e:new K(e,t,n);return W(function(){var e=r,t=e.operator,n=e.source;i.add(t?t.call(i,n):n?r._subscribe(i):r._trySubscribe(i))}),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=ne(t))(function(t,o){var r=new K({next:function(t){try{e(t)}catch(e){o(e),r.unsubscribe()}},error:o,complete:t});n.subscribe(r)})},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[J]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ee(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=ne(e))(function(e,n){var o;t.subscribe(function(e){return o=e},function(e){return n(e)},function(){return e(o)})})},e.create=function(t){return new e(t)},e}();function ne(e){var t;return null!==(t=null!=e?e:H)&&void 0!==t?t:Promise}function oe(e){return function(t){if(function(e){return j(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 re(e,t,n,o,r){return new ae(e,t,n,o,r)}var ie,ae=function(e){function t(t,n,o,r,i,a){var s=e.call(this,t)||this;return s.onFinalize=i,s.shouldUnsubscribe=a,s._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=r?function(e){try{r(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=o?function(){try{o()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return A(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}($),se=D(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),le=function(e){function t(){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 A(t,e),t.prototype.lift=function(e){var t=new ce(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new se},t.prototype.next=function(e){var t=this;W(function(){var n,o;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var r=R(t.currentObservers),i=r.next();!i.done;i=r.next())i.value.next(e)}catch(e){n={error:e}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var t=this;W(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;W(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,o=n.hasError,r=n.isStopped,i=n.observers;return o||r?V:(this.currentObservers=null,i.push(e),new z(function(){t.currentObservers=null,L(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,o=t.thrownError,r=t.isStopped;n?e.error(o):r&&e.complete()},t.prototype.asObservable=function(){var e=new te;return e.source=this,e},t.create=function(e,t){return new ce(e,t)},t}(te),ce=function(e){function t(t,n){var o=e.call(this)||this;return o.destination=t,o.source=n,o}return A(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.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)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:V},t}(le),de=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return A(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){var e=this,t=e.hasError,n=e.thrownError,o=e._value;if(t)throw n;return this._throwIfClosed(),o},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(le),ue=function(){return Date.now()},pe=function(e){function t(t,n){return e.call(this)||this}return A(t,e),t.prototype.schedule=function(e,t){return this},t}(z),he=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.scheduler=t,o.work=n,o.pending=!1,o}return A(t,e),t.prototype.schedule=function(e,t){var n;if(void 0===t&&(t=0),this.closed)return this;this.state=e;var o=this.id,r=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(r,o,t)),this.pending=!0,this.delay=t,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];return setInterval.apply(void 0,P([e,t],O(n)))}(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return t;null!=t&&function(e){clearInterval(e)}(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n,o=!1;try{this.work(e)}catch(e){o=!0,n=e||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),n},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,n=this.scheduler,o=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,L(o,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(pe),_e=1,me={};function ge(e){return e in me&&(delete me[e],!0)}var fe=function(e){var t=_e++;return me[t]=!0,ie||(ie=Promise.resolve()),ie.then(function(){return ge(t)&&e()}),t},ve=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return fe.apply(void 0,P([],O(e)))},be=function(e){return function(e){ge(e)}(e)},we=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.scheduler=t,o.work=n,o}return A(t,e),t.prototype.requestAsyncId=function(t,n,o){return void 0===o&&(o=0),null!==o&&o>0?e.prototype.requestAsyncId.call(this,t,n,o):(t.actions.push(this),t._scheduled||(t._scheduled=ve(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,n,o){var r;if(void 0===o&&(o=0),null!=o?o>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,o);var i=t.actions;null!=n&&(null===(r=i[i.length-1])||void 0===r?void 0:r.id)!==n&&(be(n),t._scheduled===n&&(t._scheduled=void 0))},t}(he),ye=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=ue,e}(),Se=function(e){function t(t,n){void 0===n&&(n=ye.now);var o=e.call(this,t,n)||this;return o.actions=[],o._active=!1,o}return A(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var n;this._active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(ye),Ce=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return A(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var n,o=this.actions;e=e||o.shift();do{if(n=e.execute(e.state,e.delay))break}while((e=o[0])&&e.id===t&&o.shift());if(this._active=!1,n){for(;(e=o[0])&&e.id===t&&o.shift();)e.unsubscribe();throw n}},t}(Se))(we),xe=new Se(he),ke=xe,Ee=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.scheduler=t,o.work=n,o}return A(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,o){return void 0===o&&(o=0),null!=o&&o>0||null==o&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,o):(t.flush(this),0)},t}(he),Ae=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return A(t,e),t}(Se))(Ee),Ie=new te(function(e){return e.complete()});function Te(e){return e&&j(e.schedule)}function Re(e){return e[e.length-1]}function Oe(e){return j(Re(e))?e.pop():void 0}function Pe(e){return Te(Re(e))?e.pop():void 0}var Me=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function je(e){return j(null==e?void 0:e.then)}function De(e){return j(e[J])}function Ne(e){return Symbol.asyncIterator&&j(null==e?void 0:e[Symbol.asyncIterator])}function Le(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 ze="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function Ve(e){return j(null==e?void 0:e[ze])}function Ue(e){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),i=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(e){r[e]&&(o[e]=function(t){return new Promise(function(n,o){i.push([e,t,n,o])>1||s(e,t)})})}function s(e,t){try{!function(e){e.value instanceof M?Promise.resolve(e.value.v).then(l,c):d(i[0][2],e)}(r[e](t))}catch(e){d(i[0][3],e)}}function l(e){s("next",e)}function c(e){s("throw",e)}function d(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}(this,arguments,function(){var t,n,o;return T(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,M(t.read())];case 3:return n=r.sent(),o=n.value,n.done?[4,M(void 0)]:[3,5];case 4:return[2,r.sent()];case 5:return[4,M(o)];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 Be(e){return j(null==e?void 0:e.getReader)}function He(e){if(e instanceof te)return e;if(null!=e){if(De(e))return r=e,new te(function(e){var t=r[J]();if(j(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")});if(Me(e))return o=e,new te(function(e){for(var t=0;t<o.length&&!e.closed;t++)e.next(o[t]);e.complete()});if(je(e))return n=e,new te(function(e){n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,F)});if(Ne(e))return Fe(e);if(Ve(e))return t=e,new te(function(e){var n,o;try{for(var r=R(t),i=r.next();!i.done;i=r.next()){var a=i.value;if(e.next(a),e.closed)return}}catch(e){n={error:e}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}e.complete()});if(Be(e))return Fe(Ue(e))}var t,n,o,r;throw Le(e)}function Fe(e){return new te(function(t){(function(e,t){var n,o,r,i;return function(e,t,n,o){return new(n||(n=Promise))(function(t,r){function i(e){try{s(o.next(e))}catch(e){r(e)}}function a(e){try{s(o.throw(e))}catch(e){r(e)}}function s(e){var o;e.done?t(e.value):(o=e.value,o instanceof n?o:new n(function(e){e(o)})).then(i,a)}s((o=o.apply(e,[])).next())})}(this,0,void 0,function(){var a,s;return T(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),n=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=R(e),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(n){t[n]=e[n]&&function(t){return new Promise(function(o,r){!function(e,t,n,o){Promise.resolve(o).then(function(t){e({value:t,done:n})},t)}(o,r,(t=e[n](t)).done,t.value)})}}}(e),l.label=1;case 1:return[4,n.next()];case 2:if((o=l.sent()).done)return[3,4];if(a=o.value,t.next(a),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=l.sent(),r={error:s},[3,11];case 6:return l.trys.push([6,,9,10]),o&&!o.done&&(i=n.return)?[4,i.call(n)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(r)throw r.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}function qe(e,t,n,o,r){void 0===o&&(o=0),void 0===r&&(r=!1);var i=t.schedule(function(){n(),r?e.add(this.schedule(null,o)):this.unsubscribe()},o);if(e.add(i),!r)return i}function We(e,t){return void 0===t&&(t=0),oe(function(n,o){n.subscribe(re(o,function(n){return qe(o,e,function(){return o.next(n)},t)},function(){return qe(o,e,function(){return o.complete()},t)},function(n){return qe(o,e,function(){return o.error(n)},t)}))})}function $e(e,t){return void 0===t&&(t=0),oe(function(n,o){o.add(e.schedule(function(){return n.subscribe(o)},t))})}function Ge(e,t){if(!e)throw new Error("Iterable cannot be null");return new te(function(n){qe(n,t,function(){var o=e[Symbol.asyncIterator]();qe(n,t,function(){o.next().then(function(e){e.done?n.complete():n.next(e.value)})},0,!0)})})}function Ke(e,t){return t?function(e,t){if(null!=e){if(De(e))return function(e,t){return He(e).pipe($e(t),We(t))}(e,t);if(Me(e))return function(e,t){return new te(function(n){var o=0;return t.schedule(function(){o===e.length?n.complete():(n.next(e[o++]),n.closed||this.schedule())})})}(e,t);if(je(e))return function(e,t){return He(e).pipe($e(t),We(t))}(e,t);if(Ne(e))return Ge(e,t);if(Ve(e))return function(e,t){return new te(function(n){var o;return qe(n,t,function(){o=e[ze](),qe(n,t,function(){var e,t,r;try{t=(e=o.next()).value,r=e.done}catch(e){return void n.error(e)}r?n.complete():n.next(t)},0,!0)}),function(){return j(null==o?void 0:o.return)&&o.return()}})}(e,t);if(Be(e))return function(e,t){return Ge(Ue(e),t)}(e,t)}throw Le(e)}(e,t):He(e)}function Qe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ke(e,Pe(e))}function Ze(e,t){var n=j(e)?e:function(){return e};return new te(function(e){return e.error(n())})}var Je=D(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function Ye(e,t){return new Promise(function(t,n){var o,r=!1;e.subscribe({next:function(e){o=e,r=!0},error:n,complete:function(){r?t(o):n(new Je)}})})}function Xe(e,t){return new Promise(function(t,n){var o=new K({next:function(e){t(e),o.unsubscribe()},error:n,complete:function(){n(new Je)}});e.subscribe(o)})}function et(e){return e instanceof Date&&!isNaN(e)}var tt=D(function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}});function nt(e,t){var n=et(e)?{first:e}:"number"==typeof e?{each:e}:e,o=n.first,r=n.each,i=n.with,a=void 0===i?ot:i,s=n.scheduler,l=void 0===s?xe:s,c=n.meta,d=void 0===c?null:c;if(null==o&&null==r)throw new TypeError("No timeout provided.");return oe(function(e,t){var n,i,s=null,c=0,u=function(e){i=qe(t,l,function(){try{n.unsubscribe(),He(a({meta:d,lastValue:s,seen:c})).subscribe(t)}catch(e){t.error(e)}},e)};n=e.subscribe(re(t,function(e){null==i||i.unsubscribe(),c++,t.next(s=e),r>0&&u(r)},void 0,void 0,function(){(null==i?void 0:i.closed)||null==i||i.unsubscribe(),s=null})),!c&&u(null!=o?"number"==typeof o?o:+o-l.now():r)})}function ot(e){throw new tt(e)}function rt(e,t){return oe(function(n,o){var r=0;n.subscribe(re(o,function(n){o.next(e.call(t,n,r++))}))})}var it=Array.isArray;function at(e){return rt(function(t){return function(e,t){return it(t)?e.apply(void 0,P([],O(t))):e(t)}(e,t)})}var st=Array.isArray,lt=Object.getPrototypeOf,ct=Object.prototype,dt=Object.keys;function ut(e,t,n,o,r,i,a,s){var l=[],c=0,d=0,u=!1,p=function(){!u||l.length||c||t.complete()},h=function(e){return c<o?_(e):l.push(e)},_=function(e){i&&t.next(e),c++;var r=!1;He(n(e,d++)).subscribe(re(t,function(e){i?h(e):t.next(e)},function(){r=!0},void 0,function(){if(r)try{for(c--;l.length&&c<o;)void 0,e=l.shift(),a||_(e);p()}catch(e){t.error(e)}var e}))};return e.subscribe(re(t,h,function(){u=!0,p()})),function(){}}function pt(e,t,n){return void 0===n&&(n=1/0),j(t)?pt(function(n,o){return rt(function(e,r){return t(n,e,o,r)})(He(e(n,o)))},n):("number"==typeof t&&(n=t),oe(function(t,o){return ut(t,o,e,n)}))}function ht(e){return void 0===e&&(e=1/0),pt(Y,e)}function _t(){return ht(1)}function mt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return _t()(Ke(e,Pe(e)))}function gt(e){return new te(function(t){He(e()).subscribe(t)})}function ft(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Oe(e),o=function(e){if(1===e.length){var t=e[0];if(st(t))return{args:t,keys:null};if((o=t)&&"object"==typeof o&&lt(o)===ct){var n=dt(t);return{args:n.map(function(e){return t[e]}),keys:n}}}var o;return{args:e,keys:null}}(e),r=o.args,i=o.keys,a=new te(function(e){var t=r.length;if(t)for(var n=new Array(t),o=t,a=t,s=function(t){var s=!1;He(r[t]).subscribe(re(e,function(e){s||(s=!0,a--),n[t]=e},function(){return o--},void 0,function(){o&&s||(a||e.next(i?function(e,t){return e.reduce(function(e,n,o){return e[n]=t[o],e},{})}(i,n):n),e.complete())}))},l=0;l<t;l++)s(l);else e.complete()});return n?a.pipe(at(n)):a}var vt=["addListener","removeListener"],bt=["addEventListener","removeEventListener"],wt=["on","off"];function yt(e,t,n,o){if(j(n)&&(o=n,n=void 0),o)return yt(e,t,n).pipe(at(o));var r=O(function(e){return j(e.addEventListener)&&j(e.removeEventListener)}(e)?bt.map(function(o){return function(r){return e[o](t,r,n)}}):function(e){return j(e.addListener)&&j(e.removeListener)}(e)?vt.map(St(e,t)):function(e){return j(e.on)&&j(e.off)}(e)?wt.map(St(e,t)):[],2),i=r[0],a=r[1];if(!i&&Me(e))return pt(function(e){return yt(e,t,n)})(He(e));if(!i)throw new TypeError("Invalid event target");return new te(function(e){var t=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.next(1<t.length?t:t[0])};return i(t),function(){return a(t)}})}function St(e,t){return function(n){return function(o){return e[n](t,o)}}}function Ct(e,t,n){return n?Ct(e,t).pipe(at(n)):new te(function(n){var o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.next(1===e.length?e[0]:e)},r=e(o);return j(t)?function(){return t(o,r)}:void 0})}function xt(e,t,n){void 0===e&&(e=0),void 0===n&&(n=ke);var o=-1;return null!=t&&(Te(t)?n=t:o=t),new te(function(t){var r=et(e)?+e-n.now():e;r<0&&(r=0);var i=0;return n.schedule(function(){t.closed||(t.next(i++),0<=o?this.schedule(void 0,o):t.complete())},r)})}function kt(e,t){return void 0===e&&(e=0),void 0===t&&(t=xe),e<0&&(e=0),xt(e,e,t)}function Et(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Pe(e),o=function(e){return"number"==typeof Re(e)?e.pop():1/0}(e),r=e;return r.length?1===r.length?He(r[0]):ht(o)(Ke(r,n)):Ie}var At=new te(q),It=Array.isArray;function Tt(e,t){return function(n,o){return!e.call(t,n,o)}}function Rt(e,t){return oe(function(n,o){var r=0;n.subscribe(re(o,function(n){return e.call(t,n,r++)&&o.next(n)}))})}function Ot(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return 1===(t=1===(e=t).length&&It(e[0])?e[0]:e).length?He(t[0]):new te(function(e){return function(t){for(var n=[],o=function(o){n.push(He(e[o]).subscribe(re(t,function(e){if(n){for(var r=0;r<n.length;r++)r!==o&&n[r].unsubscribe();n=null}t.next(e)})))},r=0;n&&!t.closed&&r<e.length;r++)o(r)}}(t))}function Pt(e){return oe(function(t,n){var o,r=null,i=!1;r=t.subscribe(re(n,void 0,void 0,function(a){o=He(e(a,Pt(e)(t))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function Mt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Pe(e);return oe(function(t,o){_t()(Ke(P([t],O(e)),n)).subscribe(o)})}function jt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Mt.apply(void 0,P([],O(e)))}function Dt(e,t){return void 0===t&&(t=xe),oe(function(n,o){var r=null,i=null,a=null,s=function(){if(r){r.unsubscribe(),r=null;var e=i;i=null,o.next(e)}};function l(){var n=a+e,i=t.now();if(i<n)return r=this.schedule(void 0,n-i),void o.add(r);s()}n.subscribe(re(o,function(n){i=n,a=t.now(),r||(r=t.schedule(l,e),o.add(r))},function(){s(),o.complete()},void 0,function(){i=r=null}))})}function Nt(e){return e<=0?function(){return Ie}:oe(function(t,n){var o=0;t.subscribe(re(n,function(t){++o<=e&&(n.next(t),e<=o&&n.complete())}))})}function Lt(){return oe(function(e,t){e.subscribe(re(t,q))})}function zt(e){return rt(function(){return e})}function Vt(e,t){return pt(function(t,n){return He(e(t,n)).pipe(Nt(1),zt(t))})}function Ut(e,t){void 0===t&&(t=xe);var n=xt(e,t);return Vt(function(){return n})}function Bt(e,t,n){return void 0===n&&(n=1/0),j(t)?pt(function(){return e},t,n):pt(function(){return e},n)}function Ht(e,t){return oe(function(e,t,n){return function(o,r){var i=n,a=t,s=0;o.subscribe(re(r,function(t){var n=s++;a=i?e(a,t,n):(i=!0,t),r.next(a)},undefined))}}(e,t,arguments.length>=2))}function Ft(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Pe(e);return oe(function(t,o){(n?mt(e,t,n):mt(e,t)).subscribe(o)})}function qt(e,t){return oe(function(n,o){var r=null,i=0,a=!1,s=function(){return a&&!r&&o.complete()};n.subscribe(re(o,function(n){null==r||r.unsubscribe();var a=0,l=i++;He(e(n,l)).subscribe(r=re(o,function(e){return o.next(t?t(n,e,l,a++):e)},function(){r=null,s()}))},function(){a=!0,s()}))})}function Wt(e){return oe(function(t,n){He(e).subscribe(re(n,function(){return n.complete()},q)),!n.closed&&t.subscribe(n)})}function $t(e,t){return void 0===t&&(t=!1),oe(function(n,o){var r=0;n.subscribe(re(o,function(n){var i=e(n,r++);(i||t)&&o.next(n),!i&&o.complete()}))})}function Gt(e,t,n){var o=j(e)||t||n?{next:e,error:t,complete:n}:e;return o?oe(function(e,t){var n;null===(n=o.subscribe)||void 0===n||n.call(o);var r=!0;e.subscribe(re(t,function(e){var n;null===(n=o.next)||void 0===n||n.call(o,e),t.next(e)},function(){var e;r=!1,null===(e=o.complete)||void 0===e||e.call(o),t.complete()},function(e){var n;r=!1,null===(n=o.error)||void 0===n||n.call(o,e),t.error(e)},function(){var e,t;r&&(null===(e=o.unsubscribe)||void 0===e||e.call(o)),null===(t=o.finalize)||void 0===t||t.call(o)}))}):Y}function Kt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Oe(e);return oe(function(t,o){for(var r=e.length,i=new Array(r),a=e.map(function(){return!1}),s=!1,l=function(t){He(e[t]).subscribe(re(o,function(e){i[t]=e,s||a[t]||(a[t]=!0,(s=a.every(Y))&&(a=null))},q))},c=0;c<r;c++)l(c);t.subscribe(re(o,function(e){if(s){var t=P([e],O(i));o.next(n?n.apply(void 0,P([],O(t))):t)}}))})}var Qt=function(e){function t(t,n){var o=e.call(this,function(e){var t=o.__notifier.subscribe(e);return t&&!t.closed&&e.next(o.value),t})||this;return o.__notifier=new le,o.value=n,t.subscribe(function(e){e!==o.value&&(o.value=e,o.__notifier.next(e))}),o}return A(t,e),t}(te),Zt=function(e,t){return e===t||"function"==typeof t&&e===t.toString()};function Jt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length;return Rt(1===n?function(t){return Zt(t.type,e[0])}:function(t){for(var o=0;o<n;o++)if(Zt(t.type,e[o]))return!0;return!1})}var Yt="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 Xt(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function en(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":Yt(global))&&global?global:"undefined"!=typeof window?window:{}).DeepDiff,Xt(function e(t,n,o){e.super_.call(this,"E",t),Object.defineProperty(this,"lhs",{value:n,enumerable:!0}),Object.defineProperty(this,"rhs",{value:o,enumerable:!0})},en),Xt(function e(t,n){e.super_.call(this,"N",t),Object.defineProperty(this,"rhs",{value:n,enumerable:!0})},en),Xt(function e(t,n){e.super_.call(this,"D",t),Object.defineProperty(this,"lhs",{value:n,enumerable:!0})},en),Xt(function e(t,n,o){e.super_.call(this,"A",t),Object.defineProperty(this,"index",{value:n,enumerable:!0}),Object.defineProperty(this,"item",{value:o,enumerable:!0})},en);var tn,nn,on="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function rn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var an=(nn||(nn=1,tn=function(e,t,n,o,r,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,r,i,a,s],d=0;(l=new Error(t.replace(/%s/g,function(){return c[d++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}),tn),sn=rn(an),ln=function(e){return"function"==typeof e},cn=function(e){return e.toString()},dn=function(e){return"string"==typeof e},un="||",pn=function(e){return e},hn=function(e){return null===e};function _n(e,t,n){void 0===t&&(t=pn),sn(ln(t)||hn(t),"Expected payloadCreator to be a function, undefined or null");var o=hn(t)||t===pn?pn:function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return e instanceof Error?e:t.apply(void 0,[e].concat(o))},r=ln(n),i=e.toString(),a=function(){var t=o.apply(void 0,arguments),i={type:e};return t instanceof Error&&(i.error=!0),void 0!==t&&(i.payload=t),r&&(i.meta=n.apply(void 0,arguments)),i};return a.toString=function(){return i},a}var mn,gn,fn,vn,bn,wn,yn=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},Sn=function(e){return Array.isArray(e)},Cn=function(e){return null==e};var xn=rn(function(){if(wn)return bn;wn=1;var e=function(){if(vn)return fn;vn=1;var e=function(){if(gn)return mn;gn=1,mn=function(i){return e.test(i)?i.toLowerCase():t.test(i)?(function(e){return e.replace(o,function(e,t){return t?" "+t:""})}(i)||i).toLowerCase():n.test(i)?function(e){return e.replace(r,function(e,t,n){return t+" "+n.toLowerCase().split("").join(" ")})}(i).toLowerCase():i.toLowerCase()};var e=/\s/,t=/(_|-|\.|:)/,n=/([a-z][A-Z]|[A-Z][a-z])/,o=/[\W_]+(.|$)/g,r=/(.)([A-Z]+)/g;return mn}();return fn=function(t){return e(t).replace(/[\W_]+(.|$)/g,function(e,t){return t?" "+t:""}).trim()}}();return bn=function(t){return e(t).replace(/\s(\w)/g,function(e,t){return t.toUpperCase()})}}()),kn=function(e){return-1===e.indexOf("/")?xn(e):e.split("/").map(xn).join("/")},En=function(e,t){return e.reduce(function(e,n){return t(e,n)},{})},An=function(e){return"undefined"!=typeof Map&&e instanceof Map};function In(e){if(An(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 Tn(e,t){return An(t)?t.get(e):t[e]}var Rn=function(e){return function t(n,o,r,i){var a=void 0===o?{}:o,s=a.namespace,l=void 0===s?"/":s,c=a.prefix;return void 0===r&&(r={}),void 0===i&&(i=""),In(n).forEach(function(o){var a=function(e){return i||!c||c&&new RegExp("^"+c+l).test(e)?e:""+c+l+e}(function(e){var t;if(!i)return e;var n=e.toString().split(un),o=i.split(un);return(t=[]).concat.apply(t,o.map(function(e){return n.map(function(t){return""+e+l+t})})).join(un)}(o)),s=Tn(o,n);e(s)?t(s,{namespace:l,prefix:c},r,a):r[a]=s}),r}},On=Rn(yn);function Pn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){Mn(e,t,n[t])})}return e}function Mn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r,i=yn((r=n)[r.length-1])?n.pop():{};return sn(n.every(dn)&&(dn(e)||yn(e)),"Expected optional object followed by string action types"),dn(e)?Nn([e].concat(n),i):Pn({},function(e,t){return function(e,t){var n=void 0===t?{}:t,o=n.namespace,r=void 0===o?"/":o,i=n.prefix;function a(t,n,o){var r=kn(o.shift());0===o.length?n[r]=e[t]:(n[r]||(n[r]={}),a(t,n[r],o))}var s={};return Object.getOwnPropertyNames(e).forEach(function(e){var t=i?e.replace(""+i+r,""):e;return a(e,s,t.split(r))}),s}(Dn(On(e,t)),t)}(e,i),Nn(n,i))}function Dn(e,t){var n=void 0===t?{}:t,o=n.prefix,r=n.namespace,i=void 0===r?"/":r;return En(Object.keys(e),function(t,n){var r,a=e[n];sn(function(e){if(ln(e)||Cn(e))return!0;if(Sn(e)){var t=e[0],n=void 0===t?pn:t,o=e[1];return ln(n)&&ln(o)}return!1}(a),"Expected function, undefined, null, or array with payload and meta functions for "+n);var s=o?""+o+i+n:n,l=Sn(a)?_n.apply(void 0,[s].concat(a)):_n(s,a);return Pn({},t,((r={})[n]=l,r))})}function Nn(e,t){var n=Dn(En(e,function(e,t){var n;return Pn({},e,((n={})[t]=pn,n))}),t);return En(Object.keys(n),function(e,t){var o;return Pn({},e,((o={})[kn(t)]=n[t],o))})}var Ln=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var o="function"!=typeof t[t.length-1]&&t.pop(),r=t;if(void 0===o)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 n=arguments.length,i=Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];var s=void 0===e,l=void 0===t;return s&&l&&o?o:r.reduce(function(e,n){return n.apply(void 0,[e,t].concat(i))},s&&!l&&o?o:e)}},zn=Rn(function(e){return(yn(e)||An(e))&&!function(e){var t=In(e),n=t.every(function(e){return"next"===e||"throw"===e});return t.length&&t.length<=2&&n}(e)});function Vn(e,t,n){void 0===n&&(n={}),sn(yn(e)||An(e),"Expected handlers to be a plain object.");var o=zn(e,n),r=In(o).map(function(e){return function(e,t,n){void 0===t&&(t=pn);var o=cn(e).split(un);sn(!(void 0===n),"defaultState for reducer handling "+o.join(", ")+" should be defined"),sn(ln(t)||yn(t),"Expected reducer to be a function or object with next and throw reducers");var r=ln(t)?[t,t]:[t.next,t.throw].map(function(e){return Cn(e)?pn:e}),i=r[0],a=r[1];return function(e,t){void 0===e&&(e=n);var r=t.type;return r&&-1!==o.indexOf(cn(r))?(!0===t.error?a:i)(e,t):e}}(e,Tn(e,o),t)}),i=Ln.apply(void 0,r.concat([t]));return function(e,n){return void 0===e&&(e=t),i(e,n)}}const Un=_n("CONNECT_ZOOM_SOCKET"),Bn=_n("CONNECT_XMPP_SOCKET"),Hn=_n("CLOSE_ZOOM_SOCKET"),Fn=_n("CLOSE_XMPP_SOCKET"),qn=_n("RECEIVE_MESSAGE_FROM_ZOOM_SOCKET"),Wn=_n("RECEIVE_SHARING_PAYLOAD_FROM_ZOOM_SOCKET"),$n=_n("RECEIVE_MESSAGE_FROM_XMPP_SOCKET"),Gn=_n("CONNECT_MAIN_SESSION_SOCKET"),Kn=_n("CLOSE_MAIN_SESSION_SOCKET"),Qn=_n("RECEIVE_MESSAGE_FROM_MAIN_SESSION_SOCKET"),{setZoomSocketStatus:Zn,setRwgServersList:Jn,setRwgRetryCount:Yn,setXmppSocketStatus:Xn,setMainSessionSocketStatus:eo,resetSocket:to}=jn("SET_ZOOM_SOCKET_STATUS","SET_RWG_SERVERS_LIST","SET_RWG_RETRY_COUNT","SET_XMPP_SOCKET_STATUS","SET_MAIN_SESSION_SOCKET_STATUS","RESET_SOCKET"),no=_n("CONNECT_TO_MEDIA_STREAM"),oo=_n("RECEIVE_PAYLOAD_FROM_MEDIA_SDK"),{setAudioEncodeStatus:ro,setAudioDecodeStatus:io,setVideoEncodeStatus:ao,setVideoDecodeStatus:so,setSharingEncodeStatus:lo,setSharingDecodeStatus:co,setMediaConstraints:uo,setMediaEncryptKey:po,setIsEnableDecoderInWorklet:ho,setPatchedMediaSdkStatus:_o,setMediaAssetsPath:mo,setIsMediaAgentInitialized:go,resetMedia:fo}=jn("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 vo(e,t,...n){return e(Qe(...n||[]),t,null)}function bo(...e){const t=(...t)=>Et(...e.map(e=>{const n=e(...t);if(!n)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 n.pipe(Pt((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 wo(...e){return bo(...e.flatMap(e=>Object.values(e)))}function yo(e,t){return e.pipe(Jt(`${qn}`),Rt(e=>e.payload.evt===t))}function So(e,t){return e.pipe(Jt(`${Qn}`),Rt(e=>e.payload.evt===t))}function Co(e,t){return e.pipe(Jt(`${$n}`),Rt(e=>e.payload.evt===t))}function xo(e,t){return e.pipe(Jt(`${qn}`,`${Qn}`),Rt(e=>e.payload.evt===t))}function ko(e,t){return e.pipe(Jt(`${oo}`),Rt(e=>Array.isArray(t)?t.indexOf(e.payload.type)>-1:e.payload.type===t))}function Eo(e,t){return e.pipe(Jt(`${no}`),Rt(()=>{const{media:{assetsPath:e,mediaConstraints:n}}=t.value;return void 0!==e&&void 0!==n}),qt(()=>{const{media:{isMediaAgentInitialized:n}}=t.value;return n?Ke([0]):e.pipe(Jt(`${go}`),Rt(e=>!!e.payload),Nt(1))}))}function Ao(e,t,n){const o=document.createElement("script");o.type="text/javascript",o.readyState?o.onreadystatechange=()=>{"loaded"!==o.readyState&&"complete"!==o.readyState||(o.onreadystatechange=null,t())}:(o.onload=()=>{t()},o.onerror=()=>{n()}),o.src=e,window.crossOriginIsolated&&(o.crossOrigin="anonymous"),"function"==typeof document.body.append?document.getElementsByTagName("head")[0].append(o):document.getElementsByTagName("head")[0].appendChild(o)}function Io(e,t){let n=e;/^https?:\/\//.test(n)||(n=`https://${e}`);try{const e=new URL(n);if(!t)return e.href;if(t.hostname)return e.hostname;if(t.path)return e.pathname}catch(e){return""}return""}function To(e){if(e){var t;const n=document.getElementById(e);null==n||null===(t=n.parentNode)||void 0===t||t.removeChild(n)}}function Ro(e,t){if(!e||"string"==typeof e)return!1;if(e.ownerDocument===window.document)return e instanceof t;{var n;const o=null===(n=e.ownerDocument)||void 0===n?void 0:n.defaultView;let r;return!!o&&("HTMLVideoElement"===t.name?r=o.HTMLVideoElement:"HTMLCanvasElement"===t.name?r=o.HTMLCanvasElement:"HTMLElement"===t.name&&(r=o.HTMLElement),!!r&&e instanceof r||e instanceof t)}}function Oo(e){return Ro(e,HTMLVideoElement)}function Po(e){return Ro(e,HTMLCanvasElement)}function Mo(e,t){return Array.from(document.getElementsByTagName(t)).some(t=>t.contains(e))}function jo(e,t,n){const o=e.parentElement;if(!o)return null;const r=document.createElement("canvas");r.id=t,null==o||o.appendChild(r);let i=null;function a(){n&&n()}return"undefined"!=typeof ResizeObserver?(i=new ResizeObserver(a),i.observe(e),o&&i.observe(o)):window.addEventListener("resize",a),a(),r._overlayCleanup=function(){i?(i.unobserve(e),o&&i.unobserve(o),i.disconnect(),i=null):window.removeEventListener("resize",a),"function"==typeof r.remove?r.remove():o&&o.removeChild(r)},r}function Do(e){var t,n,o,r,i;const a=e.getBoundingClientRect(),s=e.width,l=e.height,c=getComputedStyle(e),d=parseFloat(c.borderTopWidth)||0,u=parseFloat(c.borderLeftWidth)||0,p=parseFloat(c.borderRightWidth)||0,h=parseFloat(c.borderBottomWidth)||0,_=Math.max(s/(a.width-u-p),l/(a.height-d-h)),m={width:s/_,height:l/_},g=null==e||null===(t=e.parentElement)||void 0===t?void 0:t.getBoundingClientRect(),f=(null!==(n=null==a?void 0:a.top)&&void 0!==n?n:0)-(null!==(o=null==g?void 0:g.top)&&void 0!==o?o:0),v=(null!==(r=null==a?void 0:a.left)&&void 0!==r?r:0)-(null!==(i=null==g?void 0:g.left)&&void 0!==i?i:0);return{size:m,position:{top:`${f+((a.height-d-h-m.height)/2+d)}px`,left:`${v+((a.width-u-p-m.width)/2+u)}px`}}}let No="zoom.us",Lo="applications.zoom.us";const zo="4.0.0",Vo=`https://dmogdx0jrul3u.cloudfront.net/${zo}/lib/av`,Uo=`https://source.zoom.us/${zo}/lib/av`,Bo=`https://jssdk.zoomus.cn/${zo}/lib/av`,Ho=()=>No,Fo=()=>`https://${Lo}/sdkhelper/auth?sdkToken=`,qo="function"==typeof Buffer,Wo="function"==typeof TextDecoder?new TextDecoder:void 0,$o="function"==typeof TextEncoder?new TextEncoder:void 0,Go=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZ