extra-react-hooks 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es2015/index.min.mjs +2 -2
- package/dist/es2015/index.min.mjs.map +1 -1
- package/dist/es2015/index.mjs +1180 -447
- package/dist/es2015/index.mjs.map +1 -1
- package/dist/es2015/index.umd.js +1180 -447
- package/dist/es2015/index.umd.js.map +1 -1
- package/dist/es2015/index.umd.min.js +3 -3
- package/dist/es2015/index.umd.min.js.map +1 -1
- package/dist/es2018/index.min.mjs +2 -2
- package/dist/es2018/index.min.mjs.map +1 -1
- package/dist/es2018/index.mjs +1180 -447
- package/dist/es2018/index.mjs.map +1 -1
- package/dist/es2018/index.umd.js +1180 -447
- package/dist/es2018/index.umd.js.map +1 -1
- package/dist/es2018/index.umd.min.js +3 -3
- package/dist/es2018/index.umd.min.js.map +1 -1
- package/lib/es2015/use-increment.js +5 -5
- package/lib/es2015/use-increment.js.map +1 -1
- package/lib/es2015/use-state-cycle.js +5 -5
- package/lib/es2015/use-state-cycle.js.map +1 -1
- package/lib/es2015/use-step.js +21 -23
- package/lib/es2015/use-step.js.map +1 -1
- package/lib/es2015/use-toggle.js +3 -1
- package/lib/es2015/use-toggle.js.map +1 -1
- package/lib/es2018/use-increment.js +5 -5
- package/lib/es2018/use-increment.js.map +1 -1
- package/lib/es2018/use-state-cycle.js +5 -5
- package/lib/es2018/use-state-cycle.js.map +1 -1
- package/lib/es2018/use-step.js +21 -23
- package/lib/es2018/use-step.js.map +1 -1
- package/lib/es2018/use-toggle.js +3 -1
- package/lib/es2018/use-toggle.js.map +1 -1
- package/package.json +3 -2
|
@@ -6,7 +6,7 @@ var e,t,r,n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/function u(){if(r)return i;r=1;var e=a(),t=60103,n=60106;i.Fragment=60107,i.StrictMode=60108,i.Profiler=60114;var o=60109,u=60110,c=60112;i.Suspense=60113;var s=60115,l=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;t=f("react.element"),n=f("react.portal"),i.Fragment=f("react.fragment"),i.StrictMode=f("react.strict_mode"),i.Profiler=f("react.profiler"),o=f("react.provider"),u=f("react.context"),c=f("react.forward_ref"),i.Suspense=f("react.suspense"),s=f("react.memo"),l=f("react.lazy")}var p="function"==typeof Symbol&&Symbol.iterator;function d(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function y(e,t,r){this.props=e,this.context=t,this.refs=b,this.updater=r||v}function h(){}function m(e,t,r){this.props=e,this.context=t,this.refs=b,this.updater=r||v}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(d(85));this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},h.prototype=y.prototype;var g=m.prototype=new h;g.constructor=m,e(g,y.prototype),g.isPureReactComponent=!0;var
|
|
9
|
+
*/function u(){if(r)return i;r=1;var e=a(),t=60103,n=60106;i.Fragment=60107,i.StrictMode=60108,i.Profiler=60114;var o=60109,u=60110,c=60112;i.Suspense=60113;var s=60115,l=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;t=f("react.element"),n=f("react.portal"),i.Fragment=f("react.fragment"),i.StrictMode=f("react.strict_mode"),i.Profiler=f("react.profiler"),o=f("react.provider"),u=f("react.context"),c=f("react.forward_ref"),i.Suspense=f("react.suspense"),s=f("react.memo"),l=f("react.lazy")}var p="function"==typeof Symbol&&Symbol.iterator;function d(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function y(e,t,r){this.props=e,this.context=t,this.refs=b,this.updater=r||v}function h(){}function m(e,t,r){this.props=e,this.context=t,this.refs=b,this.updater=r||v}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(d(85));this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},h.prototype=y.prototype;var g=m.prototype=new h;g.constructor=m,e(g,y.prototype),g.isPureReactComponent=!0;var O={current:null},w=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function _(e,r,n){var o,i={},a=null,u=null;if(null!=r)for(o in void 0!==r.ref&&(u=r.ref),void 0!==r.key&&(a=""+r.key),r)w.call(r,o)&&!S.hasOwnProperty(o)&&(i[o]=r[o]);var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){for(var s=Array(c),l=0;l<c;l++)s[l]=arguments[l+2];i.children=s}if(e&&e.defaultProps)for(o in c=e.defaultProps)void 0===i[o]&&(i[o]=c[o]);return{$$typeof:t,type:e,key:a,ref:u,props:i,_owner:O.current}}function j(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var x=/\/+/g;function E(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function P(e,r,o,i,a){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var c=!1;if(null===e)c=!0;else switch(u){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case t:case n:c=!0}}if(c)return a=a(c=e),e=""===i?"."+E(c,0):i,Array.isArray(a)?(o="",null!=e&&(o=e.replace(x,"$&/")+"/"),P(a,r,o,"",(function(e){return e}))):null!=a&&(j(a)&&(a=function(e,r){return{$$typeof:t,type:e.type,key:r,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||c&&c.key===a.key?"":(""+a.key).replace(x,"$&/")+"/")+e)),r.push(a)),1;if(c=0,i=""===i?".":i+":",Array.isArray(e))for(var s=0;s<e.length;s++){var l=i+E(u=e[s],s);c+=P(u,r,o,l,a)}else if("function"==typeof(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e)))for(e=l.call(e),s=0;!(u=e.next()).done;)c+=P(u=u.value,r,o,l=i+E(u,s++),a);else if("object"===u)throw r=""+e,Error(d(31,"[object Object]"===r?"object with keys {"+Object.keys(e).join(", ")+"}":r));return c}function A(e,t,r){if(null==e)return e;var n=[],o=0;return P(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function T(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var I={current:null};function k(){var e=I.current;if(null===e)throw Error(d(321));return e}var C={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:O,IsSomeRendererActing:{current:!1},assign:e};return i.Children={map:A,forEach:function(e,t,r){A(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return A(e,(function(){t++})),t},toArray:function(e){return A(e,(function(e){return e}))||[]},only:function(e){if(!j(e))throw Error(d(143));return e}},i.Component=y,i.PureComponent=m,i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=C,i.cloneElement=function(r,n,o){if(null==r)throw Error(d(267,r));var i=e({},r.props),a=r.key,u=r.ref,c=r._owner;if(null!=n){if(void 0!==n.ref&&(u=n.ref,c=O.current),void 0!==n.key&&(a=""+n.key),r.type&&r.type.defaultProps)var s=r.type.defaultProps;for(l in n)w.call(n,l)&&!S.hasOwnProperty(l)&&(i[l]=void 0===n[l]&&void 0!==s?s[l]:n[l])}var l=arguments.length-2;if(1===l)i.children=o;else if(1<l){s=Array(l);for(var f=0;f<l;f++)s[f]=arguments[f+2];i.children=s}return{$$typeof:t,type:r.type,key:a,ref:u,props:i,_owner:c}},i.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:u,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},i.createElement=_,i.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},i.createRef=function(){return{current:null}},i.forwardRef=function(e){return{$$typeof:c,render:e}},i.isValidElement=j,i.lazy=function(e){return{$$typeof:l,_payload:{_status:-1,_result:e},_init:T}},i.memo=function(e,t){return{$$typeof:s,type:e,compare:void 0===t?null:t}},i.useCallback=function(e,t){return k().useCallback(e,t)},i.useContext=function(e,t){return k().useContext(e,t)},i.useDebugValue=function(){},i.useEffect=function(e,t){return k().useEffect(e,t)},i.useImperativeHandle=function(e,t,r){return k().useImperativeHandle(e,t,r)},i.useLayoutEffect=function(e,t){return k().useLayoutEffect(e,t)},i.useMemo=function(e,t){return k().useMemo(e,t)},i.useReducer=function(e,t,r){return k().useReducer(e,t,r)},i.useRef=function(e){return k().useRef(e)},i.useState=function(e){return k().useState(e)},i.version="17.0.2",i}var c,s,l,f={};
|
|
10
10
|
/** @license React v17.0.2
|
|
11
11
|
* react.development.js
|
|
12
12
|
*
|
|
@@ -14,5 +14,5 @@ var e,t,r,n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/function p(){return c||(c=1,e=f,"production"!==process.env.NODE_ENV&&function(){var t=a(),r=60103,n=60106;e.Fragment=60107,e.StrictMode=60108,e.Profiler=60114;var o=60109,i=60110,u=60112;e.Suspense=60113;var c=60120,s=60115,l=60116,f=60121,p=60122,d=60117,v=60129,b=60131;if("function"==typeof Symbol&&Symbol.for){var y=Symbol.for;r=y("react.element"),n=y("react.portal"),e.Fragment=y("react.fragment"),e.StrictMode=y("react.strict_mode"),e.Profiler=y("react.profiler"),o=y("react.provider"),i=y("react.context"),u=y("react.forward_ref"),e.Suspense=y("react.suspense"),c=y("react.suspense_list"),s=y("react.memo"),l=y("react.lazy"),f=y("react.block"),p=y("react.server.block"),d=y("react.fundamental"),y("react.scope"),y("react.opaque.id"),v=y("react.debug_trace_mode"),y("react.offscreen"),b=y("react.legacy_hidden")}var h="function"==typeof Symbol&&Symbol.iterator;function m(e){if(null===e||"object"!=typeof e)return null;var t=h&&e[h]||e["@@iterator"];return"function"==typeof t?t:null}var g={current:null},w={current:null},O={},S=null;function _(e){S=e}O.setExtraStackFrame=function(e){S=e},O.getCurrentStack=null,O.getStackAddendum=function(){var e="";S&&(e+=S);var t=O.getCurrentStack;return t&&(e+=t()||""),e};var x={ReactCurrentDispatcher:g,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:t};function j(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];A("warn",e,r)}function E(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];A("error",e,r)}function A(e,t,r){var n=x.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(t+="%s",r=r.concat([n]));var o=r.map((function(e){return""+e}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}x.ReactDebugCurrentFrame=O;var P={};function T(e,t){var r=e.constructor,n=r&&(r.displayName||r.name)||"ReactClass",o=n+"."+t;P[o]||(E("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,n),P[o]=!0)}var I={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){T(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){T(e,"replaceState")},enqueueSetState:function(e,t,r,n){T(e,"setState")}},k={};function C(e,t,r){this.props=e,this.context=t,this.refs=k,this.updater=r||I}Object.freeze(k),C.prototype.isReactComponent={},C.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},C.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var F={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},M=function(e,t){Object.defineProperty(C.prototype,e,{get:function(){j("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var R in F)F.hasOwnProperty(R)&&M(R,F[R]);function N(){}function B(e,t,r){this.props=e,this.context=t,this.refs=k,this.updater=r||I}N.prototype=C.prototype;var L=B.prototype=new N;function z(e){return e.displayName||"Context"}function U(t){if(null==t)return null;if("number"==typeof t.tag&&E("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case e.Fragment:return"Fragment";case n:return"Portal";case e.Profiler:return"Profiler";case e.StrictMode:return"StrictMode";case e.Suspense:return"Suspense";case c:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case i:return z(t)+".Consumer";case o:return z(t._context)+".Provider";case u:return d=t,v=t.render,b="ForwardRef",y=v.displayName||v.name||"",d.displayName||(""!==y?b+"("+y+")":b);case s:return U(t.type);case f:return U(t._render);case l:var r=t,a=r._payload,p=r._init;try{return U(p(a))}catch(e){return null}}var d,v,b,y;return null}L.constructor=B,t(L,C.prototype),L.isPureReactComponent=!0;var W,q,D,V=Object.prototype.hasOwnProperty,$={key:!0,ref:!0,__self:!0,__source:!0};function Y(e){if(V.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function J(e){if(V.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function H(e,t){var r=function(){W||(W=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}function K(e,t){var r=function(){q||(q=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}function G(e){if("string"==typeof e.ref&&w.current&&e.__self&&w.current.stateNode!==e.__self){var t=U(w.current.type);D[t]||(E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',t,e.ref),D[t]=!0)}}D={};var Q=function(e,t,n,o,i,a,u){var c={$$typeof:r,type:e,key:t,ref:n,props:u,_owner:a,_store:{}};return Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function X(e,t,r){var n,o={},i=null,a=null,u=null,c=null;if(null!=t)for(n in Y(t)&&(a=t.ref,G(t)),J(t)&&(i=""+t.key),u=void 0===t.__self?null:t.__self,c=void 0===t.__source?null:t.__source,t)V.call(t,n)&&!$.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(1===s)o.children=r;else if(s>1){for(var l=Array(s),f=0;f<s;f++)l[f]=arguments[f+2];Object.freeze&&Object.freeze(l),o.children=l}if(e&&e.defaultProps){var p=e.defaultProps;for(n in p)void 0===o[n]&&(o[n]=p[n])}if(i||a){var d="function"==typeof e?e.displayName||e.name||"Unknown":e;i&&H(o,d),a&&K(o,d)}return Q(e,i,a,u,c,w.current,o)}function Z(e,r,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o,i,a=t({},e.props),u=e.key,c=e.ref,s=e._self,l=e._source,f=e._owner;if(null!=r)for(o in Y(r)&&(c=r.ref,f=w.current),J(r)&&(u=""+r.key),e.type&&e.type.defaultProps&&(i=e.type.defaultProps),r)V.call(r,o)&&!$.hasOwnProperty(o)&&(void 0===r[o]&&void 0!==i?a[o]=i[o]:a[o]=r[o]);var p=arguments.length-2;if(1===p)a.children=n;else if(p>1){for(var d=Array(p),v=0;v<p;v++)d[v]=arguments[v+2];a.children=d}return Q(e.type,u,c,s,l,f,a)}function ee(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var te=!1,re=/\/+/g;function ne(e){return e.replace(re,"$&/")}function oe(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,(function(e){return n[e]}))):t.toString(36);var r,n}function ie(e,t,o,i,a){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var c,s,l,f=!1;if(null===e)f=!0;else switch(u){case"string":case"number":f=!0;break;case"object":switch(e.$$typeof){case r:case n:f=!0}}if(f){var p=e,d=a(p),v=""===i?"."+oe(p,0):i;if(Array.isArray(d)){var b="";null!=v&&(b=ne(v)+"/"),ie(d,t,b,"",(function(e){return e}))}else null!=d&&(ee(d)&&(c=d,s=o+(!d.key||p&&p.key===d.key?"":ne(""+d.key)+"/")+v,d=Q(c.type,s,c.ref,c._self,c._source,c._owner,c.props)),t.push(d));return 1}var y=0,h=""===i?".":i+":";if(Array.isArray(e))for(var g=0;g<e.length;g++)y+=ie(l=e[g],t,o,h+oe(l,g),a);else{var w=m(e);if("function"==typeof w){var O=e;w===O.entries&&(te||j("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),te=!0);for(var S,_=w.call(O),x=0;!(S=_.next()).done;)y+=ie(l=S.value,t,o,h+oe(l,x++),a)}else if("object"===u){var E=""+e;throw Error("Objects are not valid as a React child (found: "+("[object Object]"===E?"object with keys {"+Object.keys(e).join(", ")+"}":E)+"). If you meant to render a collection of children, use an array instead.")}}return y}function ae(e,t,r){if(null==e)return e;var n=[],o=0;return ie(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function ue(e){if(-1===e._status){var t=(0,e._result)(),r=e;r._status=0,r._result=t,t.then((function(t){if(0===e._status){var r=t.default;void 0===r&&E("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",t);var n=e;n._status=1,n._result=r}}),(function(t){if(0===e._status){var r=e;r._status=2,r._result=t}}))}if(1===e._status)return e._result;throw e._result}function ce(t){return"string"==typeof t||"function"==typeof t||t===e.Fragment||t===e.Profiler||t===v||t===e.StrictMode||t===e.Suspense||t===c||t===b||"object"==typeof t&&null!==t&&(t.$$typeof===l||t.$$typeof===s||t.$$typeof===o||t.$$typeof===i||t.$$typeof===u||t.$$typeof===d||t.$$typeof===f||t[0]===p)}function se(){var e=g.current;if(null===e)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");return e}var le,fe,pe,de,ve,be,ye,he=0;function me(){}me.__reactDisabledLog=!0;var ge,we=x.ReactCurrentDispatcher;function Oe(e,t,r){if(void 0===ge)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);ge=n&&n[1]||""}return"\n"+ge+e}var Se,_e=!1,xe="function"==typeof WeakMap?WeakMap:Map;function je(e,r){if(!e||_e)return"";var n,o=Se.get(e);if(void 0!==o)return o;_e=!0;var i,a=Error.prepareStackTrace;Error.prepareStackTrace=void 0,i=we.current,we.current=null,function(){if(0===he){le=console.log,fe=console.info,pe=console.warn,de=console.error,ve=console.group,be=console.groupCollapsed,ye=console.groupEnd;var e={configurable:!0,enumerable:!0,value:me,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}he++}();try{if(r){var u=function(){throw Error()};if(Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(u,[])}catch(e){n=e}Reflect.construct(e,[],u)}else{try{u.call()}catch(e){n=e}e.call(u.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var c=t.stack.split("\n"),s=n.stack.split("\n"),l=c.length-1,f=s.length-1;l>=1&&f>=0&&c[l]!==s[f];)f--;for(;l>=1&&f>=0;l--,f--)if(c[l]!==s[f]){if(1!==l||1!==f)do{if(l--,--f<0||c[l]!==s[f]){var p="\n"+c[l].replace(" at new "," at ");return"function"==typeof e&&Se.set(e,p),p}}while(l>=1&&f>=0);break}}}finally{_e=!1,we.current=i,function(){if(0==--he){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:t({},e,{value:le}),info:t({},e,{value:fe}),warn:t({},e,{value:pe}),error:t({},e,{value:de}),group:t({},e,{value:ve}),groupCollapsed:t({},e,{value:be}),groupEnd:t({},e,{value:ye})})}he<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=a}var d=e?e.displayName||e.name:"",v=d?Oe(d):"";return"function"==typeof e&&Se.set(e,v),v}function Ee(e,t,r){return je(e,!1)}function Ae(t,r,n){if(null==t)return"";if("function"==typeof t)return je(t,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(t));if("string"==typeof t)return Oe(t);switch(t){case e.Suspense:return Oe("Suspense");case c:return Oe("SuspenseList")}if("object"==typeof t)switch(t.$$typeof){case u:return Ee(t.render);case s:return Ae(t.type,r,n);case f:return Ee(t._render);case l:var o=t,i=o._payload,a=o._init;try{return Ae(a(i),r,n)}catch(e){}}return""}Se=new xe;var Pe,Te={},Ie=x.ReactDebugCurrentFrame;function ke(e){if(e){var t=e._owner,r=Ae(e.type,e._source,t?t.type:null);Ie.setExtraStackFrame(r)}else Ie.setExtraStackFrame(null)}function Ce(e){if(e){var t=e._owner;_(Ae(e.type,e._source,t?t.type:null))}else _(null)}function Fe(){if(w.current){var e=U(w.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}function Me(e){return null!=e&&void 0!==(t=e.__source)?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":"";var t}Pe=!1;var Re={};function Ne(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=function(e){var t=Fe();if(!t){var r="string"==typeof e?e:e.displayName||e.name;r&&(t="\n\nCheck the top-level render call using <"+r+">.")}return t}(t);if(!Re[r]){Re[r]=!0;var n="";e&&e._owner&&e._owner!==w.current&&(n=" It was passed a child from "+U(e._owner.type)+"."),Ce(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),Ce(null)}}}function Be(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];ee(n)&&Ne(n,t)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var o=m(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)ee(i.value)&&Ne(i.value,t)}}function Le(e){var t,r=e.type;if(null!=r&&"string"!=typeof r){if("function"==typeof r)t=r.propTypes;else{if("object"!=typeof r||r.$$typeof!==u&&r.$$typeof!==s)return;t=r.propTypes}if(t){var n=U(r);!function(e,t,r,n,o){var i=Function.call.bind(Object.prototype.hasOwnProperty);for(var a in e)if(i(e,a)){var u=void 0;try{if("function"!=typeof e[a]){var c=Error((n||"React class")+": "+r+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}u=e[a](t,a,n,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){u=e}!u||u instanceof Error||(ke(o),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",r,a,typeof u),ke(null)),u instanceof Error&&!(u.message in Te)&&(Te[u.message]=!0,ke(o),E("Failed %s type: %s",r,u.message),ke(null))}}(t,e.props,"prop",n,e)}else void 0===r.PropTypes||Pe||(Pe=!0,E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",U(r)||"Unknown"));"function"!=typeof r.getDefaultProps||r.getDefaultProps.isReactClassApproved||E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ze(e){for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if("children"!==n&&"key"!==n){Ce(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),Ce(null);break}}null!==e.ref&&(Ce(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),Ce(null))}function Ue(t,n,o){var i=ce(t);if(!i){var a="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var u,c=Me(n);a+=c||Fe(),null===t?u="null":Array.isArray(t)?u="array":void 0!==t&&t.$$typeof===r?(u="<"+(U(t.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):u=typeof t,E("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",u,a)}var s=X.apply(this,arguments);if(null==s)return s;if(i)for(var l=2;l<arguments.length;l++)Be(arguments[l],t);return t===e.Fragment?ze(s):Le(s),s}var We=!1;try{var qe=Object.freeze({});new Map([[qe,null]]),new Set([qe])}catch(e){}var De=Ue,Ve=function(e,t,r){for(var n=Z.apply(this,arguments),o=2;o<arguments.length;o++)Be(arguments[o],n.type);return Le(n),n},$e=function(e){var t=Ue.bind(null,e);return t.type=e,We||(We=!0,j("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return j("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},Ye={map:ae,forEach:function(e,t,r){ae(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return ae(e,(function(){t++})),t},toArray:function(e){return ae(e,(function(e){return e}))||[]},only:function(e){if(!ee(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};e.Children=Ye,e.Component=C,e.PureComponent=B,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=x,e.cloneElement=Ve,e.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&E("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var r={$$typeof:i,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null};r.Provider={$$typeof:o,_context:r};var n=!1,a=!1,u=!1,c={$$typeof:i,_context:r,_calculateChangedBits:r._calculateChangedBits};return Object.defineProperties(c,{Provider:{get:function(){return a||(a=!0,E("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),r.Provider},set:function(e){r.Provider=e}},_currentValue:{get:function(){return r._currentValue},set:function(e){r._currentValue=e}},_currentValue2:{get:function(){return r._currentValue2},set:function(e){r._currentValue2=e}},_threadCount:{get:function(){return r._threadCount},set:function(e){r._threadCount=e}},Consumer:{get:function(){return n||(n=!0,E("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),r.Consumer}},displayName:{get:function(){return r.displayName},set:function(e){u||(j("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),u=!0)}}}),r.Consumer=c,r._currentRenderer=null,r._currentRenderer2=null,r},e.createElement=De,e.createFactory=$e,e.createRef=function(){var e={current:null};return Object.seal(e),e},e.forwardRef=function(e){null!=e&&e.$$typeof===s?E("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?E("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&E("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||E("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,r={$$typeof:u,render:e};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(r){t=r,null==e.displayName&&(e.displayName=r)}}),r},e.isValidElement=ee,e.lazy=function(e){var t,r,n={$$typeof:l,_payload:{_status:-1,_result:e},_init:ue};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){E("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){E("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},e.memo=function(e,t){ce(e)||E("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var r,n={$$typeof:s,type:e,compare:void 0===t?null:t};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(t){r=t,null==e.displayName&&(e.displayName=t)}}),n},e.useCallback=function(e,t){return se().useCallback(e,t)},e.useContext=function(e,t){var r=se();if(void 0!==t&&E("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",t,"number"==typeof t&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://reactjs.org/link/rules-of-hooks":""),void 0!==e._context){var n=e._context;n.Consumer===e?E("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===e&&E("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return r.useContext(e,t)},e.useDebugValue=function(e,t){return se().useDebugValue(e,t)},e.useEffect=function(e,t){return se().useEffect(e,t)},e.useImperativeHandle=function(e,t,r){return se().useImperativeHandle(e,t,r)},e.useLayoutEffect=function(e,t){return se().useLayoutEffect(e,t)},e.useMemo=function(e,t){return se().useMemo(e,t)},e.useReducer=function(e,t,r){return se().useReducer(e,t,r)},e.useRef=function(e){return se().useRef(e)},e.useState=function(e){return se().useState(e)},e.version="17.0.2"}()),f;var e}function d(e){const[t,r]=o.exports.useState(e);return[t,o.exports.useCallback(((e=1)=>{r((t=>t+e))}),[]),o.exports.useCallback((()=>{r(e)}),[])]}function v(e){o.exports.useEffect(e,[])}function b(){const e=o.exports.useRef(!1);return v((()=>(e.current=!0,()=>{e.current=!1}))),()=>e.current}function y(){const e=o.exports.useRef(l.InitialValue);switch(e.current){case l.InitialValue:e.current=l.First;break;case l.First:e.current=l.NotFirst;break;case l.NotFirst:}return()=>e.current===l.First}function h(){const e=o.exports.useRef(0);return e.current++,e.current}function m(e,t){const r=y();o.exports.useEffect((()=>{if(!r())return e()}),t)}s=o,"production"===process.env.NODE_ENV?s.exports=u():s.exports=p(),function(e){e[e.InitialValue=0]="InitialValue",e[e.First=1]="First",e[e.NotFirst=2]="NotFirst"}(l||(l={}));var g={},w={};function O(e){return Array.isArray(e)}w.isntEmptyArray=w.isEmptyArray=w.isntArray=w.isArray=void 0,w.isArray=O,w.isntArray=function(e){return!O(e)},w.isEmptyArray=function(e){return 0===e.length},w.isntEmptyArray=function(e){return 0!==e.length};var S={},_={};function x(e){return null===e}_.isntNull=_.isNull=void 0,_.isNull=x,_.isntNull=function(e){return!x(e)};var j={};function E(e){return void 0===e}j.isntUndefined=j.isUndefined=void 0,j.isUndefined=E,j.isntUndefined=function(e){return!E(e)};var A={};function P(e){return"function"==typeof e}A.isntFunction=A.isFunction=void 0,A.isFunction=P,A.isntFunction=function(e){return!P(e)},S.isntAsyncIterable=S.isAsyncIterable=void 0;const T=_,I=j,k=A;function C(e){return(0,T.isntNull)(e)&&(0,I.isntUndefined)(e)&&(0,k.isFunction)(e[Symbol.asyncIterator])}S.isAsyncIterable=C,S.isntAsyncIterable=function(e){return!C(e)};var F={};function M(e){return"bigint"==typeof e}F.isntBigInt=F.isBigInt=void 0,F.isBigInt=M,F.isntBigInt=function(e){return!M(e)};var R={};function N(e){return"boolean"==typeof e}R.isntBoolean=R.isBoolean=void 0,R.isBoolean=N,R.isntBoolean=function(e){return!N(e)};var B={},L={};function z(e){return"string"==typeof e}L.isntString=L.isString=void 0,L.isString=z,L.isntString=function(e){return!z(e)},B.isntChar=B.isChar=void 0;const U=L;function W(e){return(0,U.isString)(e)&&1===e.length}B.isChar=W,B.isntChar=function(e){return!W(e)};var q={};function D(e){return e instanceof Date}q.isntDate=q.isDate=void 0,q.isDate=D,q.isntDate=function(e){return!D(e)};var V={};V.inEnum=void 0,V.inEnum=function(e,t){return Object.values(t).includes(e)};var $={};function Y(e){return e instanceof Error}$.isntError=$.isError=void 0,$.isError=Y,$.isntError=function(e){return!Y(e)};var J={};function H(e){return!e}J.isntFalsy=J.isFalsy=void 0,J.isFalsy=H,J.isntFalsy=function(e){return!H(e)};var K={};K.isntIterable=K.isIterable=void 0;const G=_,Q=j,X=A;function Z(e){return(0,G.isntNull)(e)&&(0,Q.isntUndefined)(e)&&(0,X.isFunction)(e[Symbol.iterator])}K.isIterable=Z,K.isntIterable=function(e){return!Z(e)};var ee={},te={};function re(e){return"number"==typeof e}function ne(e){return Number.isNaN(e)}te.isntNaN=te.isNaN=te.isNegativeInfinity=te.isPositiveInfinity=te.isFinite=te.isntNumber=te.isNumber=void 0,te.isNumber=re,te.isntNumber=function(e){return!re(e)},te.isFinite=function(e){return Number.isFinite(e)},te.isPositiveInfinity=function(e){return e===1/0},te.isNegativeInfinity=function(e){return e===-1/0},te.isNaN=ne,te.isntNaN=function(e){return!ne(e)};var oe={},ie="object"==typeof n&&n&&n.Object===Object&&n,ae="object"==typeof self&&self&&self.Object===Object&&self,ue=(ie||ae||Function("return this")()).Symbol,ce=ue,se=Object.prototype,le=se.hasOwnProperty,fe=se.toString,pe=ce?ce.toStringTag:void 0;var de=function(e){var t=le.call(e,pe),r=e[pe];try{e[pe]=void 0;var n=!0}catch(e){}var o=fe.call(e);return n&&(t?e[pe]=r:delete e[pe]),o},ve=Object.prototype.toString;var be=de,ye=function(e){return ve.call(e)},he=ue?ue.toStringTag:void 0;var me=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":he&&he in Object(e)?be(e):ye(e)};var ge=function(e,t){return function(r){return e(t(r))}}(Object.getPrototypeOf,Object);var we=me,Oe=ge,Se=function(e){return null!=e&&"object"==typeof e},_e=Function.prototype,xe=Object.prototype,je=_e.toString,Ee=xe.hasOwnProperty,Ae=je.call(Object);var Pe=function(e){if(!Se(e)||"[object Object]"!=we(e))return!1;var t=Oe(e);if(null===t)return!0;var r=Ee.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&je.call(r)==Ae},Te=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};oe.isntEmptyObject=oe.isEmptyObject=oe.isntPlainObject=oe.isPlainObject=oe.isntObject=oe.isObject=void 0;const Ie=Te(Pe);function ke(e){return null!==e&&"object"==typeof e}function Ce(e){return(0,Ie.default)(e)}oe.isObject=ke,oe.isntObject=function(e){return!ke(e)},oe.isPlainObject=Ce,oe.isntPlainObject=function(e){return!Ce(e)},oe.isEmptyObject=function(e){return 0===Object.keys(e).length},oe.isntEmptyObject=function(e){return 0!==Object.keys(e).length},ee.isntJsonable=ee.isJsonable=ee.isntJson=ee.isJson=void 0;const Fe=_,Me=R,Re=L,Ne=te,Be=w,Le=oe;function ze(e){return(0,Fe.isNull)(e)||(0,Me.isBoolean)(e)||(0,Re.isString)(e)||(0,Ne.isNumber)(e)||(0,Be.isArray)(e)&&e.every(ze)||(0,Le.isPlainObject)(e)&&Object.values(e).every(ze)}ee.isJson=ze,ee.isntJson=function(e){return!ze(e)},ee.isJsonable=function(e){try{return JSON.stringify(e),!0}catch(e){return!1}},ee.isntJsonable=function e(t){return!e()};var Ue={};Ue.isPromiseLike=Ue.isntPromiseLike=Ue.isntPromise=Ue.isPromise=void 0;const We=oe,qe=A;function De(e){return e instanceof Promise}function Ve(e){return(0,We.isObject)(e)&&(0,qe.isFunction)(e.then)}Ue.isPromise=De,Ue.isntPromise=function(e){return!De(e)},Ue.isntPromiseLike=function(e){return!Ve(e)},Ue.isPromiseLike=Ve;var $e,Ye,Je,He={};He.isAbsoluteURL=void 0,He.isAbsoluteURL=function(e){try{return new URL(e),!0}catch(e){return!1}},$e=g,Ye=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),(Je=n&&n.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||Ye(t,e,r)})(w,$e),Je(S,$e),Je(F,$e),Je(R,$e),Je(B,$e),Je(q,$e),Je(V,$e),Je($,$e),Je(J,$e),Je(A,$e),Je(K,$e),Je(ee,$e),Je(_,$e),Je(te,$e),Je(oe,$e),Je(Ue,$e),Je(L,$e),Je(j,$e),Je(He,$e);var Ke,Ge={},Qe={},Xe={},Ze={},et={},tt={},rt={};rt.go=void 0,rt.go=function(e){return e()},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]});(n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)})(rt,e)}(tt);var nt={chunkByAsync:void 0};const ot=g;nt.chunkByAsync=function(e,t){return(0,ot.isAsyncIterable)(e)?async function*(e){let r=[],n=0;for await(const o of e)r.push(o),await t(o,n)&&(yield r,r=[]),n++;r.length&&(yield r)}(e):async function*(e){let r=[],n=0;for(const o of e)r.push(o),await t(o,n)&&(yield r,r=[]),n++;r.length&&(yield r)}(e)};var it={};it.chunkBy=void 0,it.chunkBy=function*(e,t){let r=[],n=0;for(const o of e)r.push(o),t(o,n)&&(yield r,r=[]),n++;r.length&&(yield r)};var at,ut={};var ct={concatAsync:void 0};const st=g,lt=tt;ct.concatAsync=function(e,...t){return(0,lt.go)((async function*(){for(const r of[e,...t])if((0,st.isAsyncIterable)(r))for await(const e of r)yield e;else for(const e of r)yield e}))};var ft={concat:void 0};const pt=tt;ft.concat=function(e,...t){return(0,pt.go)((function*(){for(const r of[e,...t])yield*r}))};var dt,vt={},bt={};bt.copyIterable=bt.copyAsyncIterable=void 0,bt.copyAsyncIterable=async function*(e){for await(const t of e)yield t},bt.copyIterable=function*(e){for(const t of e)yield t};var yt,ht={};var mt,gt={};var wt={dropUntilAsync:void 0};const Ot=g;wt.dropUntilAsync=function(e,t){return(0,Ot.isAsyncIterable)(e)?async function*(e){var r;const n=e[Symbol.asyncIterator]();let o;try{let e,i=0;for(;!(({value:e,done:o}=await n.next()),o||await t(e,i++)););for(;!o;)yield e,({value:e,done:o}=await n.next())}finally{o||await(null===(r=n.return)||void 0===r?void 0:r.call(n))}}(e):async function*(e){var r;const n=e[Symbol.iterator]();let o;try{let e,i=0;for(;!(({value:e,done:o}=n.next()),o||await t(e,i++)););for(;!o;)yield e,({value:e,done:o}=n.next())}finally{o||null===(r=n.return)||void 0===r||r.call(n)}}(e)};var St={};St.dropUntil=void 0,St.dropUntil=function*(e,t){var r;const n=e[Symbol.iterator]();let o;try{let e,i=0;for(;!(({value:e,done:o}=n.next()),o||t(e,i++)););for(;!o;)yield e,({value:e,done:o}=n.next())}finally{o||null===(r=n.return)||void 0===r||r.call(n)}};var _t,xt={};var jt={filterAsync:void 0};const Et=g;jt.filterAsync=function(e,t){return(0,Et.isAsyncIterable)(e)?async function*(e){let r=0;for await(const n of e)await t(n,r)&&(yield n),r++}(e):async function*(e){let r=0;for(const n of e)await t(n,r)&&(yield n),r++}(e)};var At={};At.filter=void 0,At.filter=function*(e,t){let r=0;for(const n of e)t(n,r)&&(yield n),r++};var Pt={},Tt={},It={flattenByAsync:void 0};const kt=g;function Ct(e){return(0,kt.isIterable)(e)&&(0,kt.isntChar)(e)}var Ft,Mt;function Rt(){if(Ft)return Tt;Ft=1,Tt.flattenDeepAsync=void 0;const e=It,t=Wn();return Tt.flattenDeepAsync=function(r,n=1/0){return(0,t.assert)(n===1/0||Number.isInteger(n),"The parameter depth must be an integer"),(0,t.assert)(n>=0,"The parameter depth must be greater than or equal to 0"),(0,e.flattenByAsync)(r,((e,t)=>t<=n))},Tt}It.flattenByAsync=function(e,t){return(0,kt.isAsyncIterable)(e)?async function*(e){const n=1;for await(const o of e)Ct(o)&&await t(o,n)?yield*r(o,n+1):yield o}(e):function(e){return r(e,1)}(e);async function*r(e,n){for(const o of e)Ct(o)&&await t(o,n)?yield*r(o,n+1):yield o}};var Nt={flattenBy:void 0};const Bt=g;Nt.flattenBy=function(e,t){return function*e(r,n){for(const i of r)o=i,(0,Bt.isIterable)(o)&&(0,Bt.isntChar)(o)&&t(i,n)?yield*e(i,n+1):yield i;var o}(e,1)};var Lt,zt={};function Ut(){if(Lt)return zt;Lt=1,zt.flattenDeep=void 0;const e=Nt,t=Wn();return zt.flattenDeep=function(r,n=1/0){return(0,t.assert)(n===1/0||Number.isInteger(n),"The parameter depth must be an integer"),(0,t.assert)(n>=0,"The parameter depth must be greater than or equal to 0"),(0,e.flattenBy)(r,((e,t)=>t<=n))},zt}var Wt,qt={};var Dt={mapAsync:void 0};const Vt=g;Dt.mapAsync=function(e,t){return(0,Vt.isAsyncIterable)(e)?async function*(e){let r=0;for await(const n of e)yield await t(n,r),r++}(e):async function*(e){let r=0;for(const n of e)yield await t(n,r),r++}(e)};var $t={};$t.map=void 0,$t.map=function*(e,t){let r=0;for(const n of e)yield t(n,r),r++};var Yt,Jt={};function Ht(){if(Yt)return Jt;Yt=1,Jt.repeatAsync=void 0;const e=tt,t=Wn();return Jt.repeatAsync=function(r,n){return(0,t.assert)(n===1/0||Number.isInteger(n),"The parameter times must be an integer"),(0,t.assert)(n>=0,"The parameter times must be greater than or equal to 0"),n===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,e.go)((async function*(){const e=[];if(n>0){for await(const t of r)yield t,e.push(t);n--}for(;n>0;)yield*e,n--}))},Jt}var Kt,Gt={};function Qt(){if(Kt)return Gt;Kt=1,Gt.repeat=void 0;const e=tt,t=Wn();return Gt.repeat=function(r,n){return(0,t.assert)(n===1/0||Number.isInteger(n),"The parameter times must be an integer"),(0,t.assert)(n>=0,"The parameter times must be greater than or equal to 0"),n===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,e.go)((function*(){const e=[];if(n>0){for(const t of r)yield t,e.push(t);n--}for(;n>0;)yield*e,n--}))},Gt}var Xt,Zt={};var er,tr={};var rr={};rr.splitAsync=void 0,rr.splitAsync=async function*(e,t){let r=[];for await(const n of e)n===t?(yield r,r=[]):r.push(n);yield r};var nr={splitByAsync:void 0};const or=g;nr.splitByAsync=function(e,t){return(0,or.isAsyncIterable)(e)?async function*(e){let r=[],n=0;for await(const o of e)await t(o,n)?(yield r,r=[]):r.push(o),n++;yield r}(e):async function*(e){let r=[],n=0;for(const o of e)await t(o,n)?(yield r,r=[]):r.push(o),n++;yield r}(e)};var ir={};ir.splitBy=void 0,ir.splitBy=function*(e,t){let r=[],n=0;for(const o of e)t(o,n)?(yield r,r=[]):r.push(o),n++;yield r};var ar={};ar.split=void 0,ar.split=function*(e,t){let r=[];for(const n of e)n===t?(yield r,r=[]):r.push(n);yield r};var ur,cr={};var sr,lr={};var fr,pr={};var dr={takeUntilAsync:void 0};const vr=g;dr.takeUntilAsync=function(e,t){return(0,vr.isAsyncIterable)(e)?async function*(e){let r=0;for await(const n of e){if(await t(n,r))break;yield n,r++}}(e):async function*(e){let r=0;for(const n of e){if(await t(n,r))break;yield n,r++}}(e)};var br={};br.takeUntil=void 0,br.takeUntil=function*(e,t){let r=0;for(const n of e){if(t(n,r))break;yield n,r++}};var yr,hr={};var mr={tapAsync:void 0};const gr=g;mr.tapAsync=function(e,t){return(0,gr.isAsyncIterable)(e)?async function*(e){let r=0;for await(const n of e)await t(n,r),yield n,r++}(e):async function*(e){let r=0;for(const n of e)await t(n,r),yield n,r++}(e)};var wr={};wr.tap=void 0,wr.tap=function*(e,t){let r=0;for(const n of e)t(n,r),yield n,r++};var Or={};Or.toAsyncIterable=void 0,Or.toAsyncIterable=async function*(e){for(const t of e)yield t};var Sr={};Sr.transformAsync=void 0,Sr.transformAsync=async function*(e,t){yield*t(e)};var _r={};_r.transform=void 0,_r.transform=function*(e,t){yield*t(e)};var xr={};xr.uniqAsync=void 0,xr.uniqAsync=async function*(e){const t=new Set;for await(const r of e)t.has(r)||(yield r,t.add(r))};var jr={uniqByAsync:void 0};const Er=g;jr.uniqByAsync=function(e,t){return(0,Er.isAsyncIterable)(e)?async function*(e){const r=new Set;let n=0;for await(const o of e){const e=await t(o,n);r.has(e)||(yield o,r.add(e)),n++}}(e):async function*(e){const r=new Set;let n=0;for(const o of e){const e=await t(o,n);r.has(e)||(yield o,r.add(e)),n++}}(e)};var Ar={};Ar.uniqBy=void 0,Ar.uniqBy=function*(e,t){const r=new Set;let n=0;for(const o of e){const e=t(o,n);r.has(e)||(yield o,r.add(e)),n++}};var Pr={};Pr.uniq=void 0,Pr.uniq=function*(e){const t=new Set;for(const r of e)t.has(r)||(yield r,t.add(r))};var Tr={zipAsync:void 0};const Ir=g;var kr;!function(e){e[e.Sync=0]="Sync",e[e.Async=1]="Async"}(kr||(kr={})),Tr.zipAsync=function(e,...t){return async function*(...e){var t,r,n,o;const i=e.length,a=e.map((e=>(0,Ir.isAsyncIterable)(e)?[kr.Async,e[Symbol.asyncIterator]()]:[kr.Sync,e[Symbol.iterator]()])),u=a.map((()=>!1));try{for(;;){const e=new Array(i);for(let t=0;t<i;t++){const[r,n]=a[t];let o;if(o=r===kr.Async?await n.next():n.next(),o.done)return void(u[t]=!0);e[t]=o.value}yield e}}finally{const e=a.filter(((e,t)=>!u[t]));for(const[i,a]of e)i===kr.Async?await(null===(r=(t=a).return)||void 0===r?void 0:r.call(t)):null===(o=(n=a).return)||void 0===o||o.call(n)}}(e,...t)};var Cr,Fr={};function Mr(){return Cr||(Cr=1,function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(function(){if(Ke)return et;Ke=1,et.chunkAsync=void 0;const e=tt,t=Wn();return et.chunkAsync=function(r,n){return(0,t.assert)(Number.isInteger(n),"The parameter size must be an integer"),(0,t.assert)(n>0,"The parameter size must be greater than 0"),(0,e.go)((async function*(){let e=[];for await(const t of r)e.push(t),e.length>=n&&(yield e,e=[]);e.length&&(yield e)}))},et}(),e),r(nt,e),r(it,e),r(function(){if(at)return ut;at=1,ut.chunk=void 0;const e=tt,t=Wn();return ut.chunk=function(r,n){return(0,t.assert)(Number.isInteger(n),"The parameter size must be an integer"),(0,t.assert)(n>0,"The parameter size must be greater than 0"),(0,e.go)((function*(){let e=[];for(const t of r)e.push(t),e.length>=n&&(yield e,e=[]);e.length&&(yield e)}))},ut}(),e),r(ct,e),r(ft,e),r(function(){if(dt)return vt;dt=1,vt.dropAsync=void 0;const e=tt,t=bt,r=Wn();return vt.dropAsync=function(n,o){return(0,r.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,r.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,t.copyAsyncIterable)(n):(0,e.go)((async function*(){var e;const t=n[Symbol.asyncIterator]();let r;try{let n;for(;({value:n,done:r}=await t.next()),!(r||o<=0);)o--;for(;!r;)yield n,({value:n,done:r}=await t.next())}finally{r||await(null===(e=t.return)||void 0===e?void 0:e.call(t))}}))},vt}(),e),r(function(){if(yt)return ht;yt=1,ht.dropRightAsync=void 0;const e=tt,t=bt,r=Wn();return ht.dropRightAsync=function(n,o){return(0,r.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,r.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,t.copyAsyncIterable)(n):(0,e.go)((async function*(){const e=(await async function(e){const t=[];for await(const r of e)t.push(r);return t}(n)).slice(0,-o);for(const t of e)yield t}))},ht}(),e),r(function(){if(mt)return gt;mt=1,gt.dropRight=void 0;const e=tt,t=bt,r=Wn();return gt.dropRight=function(n,o){return(0,r.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,r.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,t.copyIterable)(n):(0,e.go)((function*(){const e=Array.from(n);yield*e.slice(0,-o)}))},gt}(),e),r(wt,e),r(St,e),r(function(){if(_t)return xt;_t=1,xt.drop=void 0;const e=tt,t=bt,r=Wn();return xt.drop=function(n,o){return(0,r.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,r.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,t.copyIterable)(n):(0,e.go)((function*(){var e;const t=n[Symbol.iterator]();let r;try{let n;for(;({value:n,done:r}=t.next()),!(r||o<=0);)o--;for(;!r;)yield n,({value:n,done:r}=t.next())}finally{r||null===(e=t.return)||void 0===e||e.call(t)}}))},xt}(),e),r(jt,e),r(At,e),r(function(){if(Mt)return Pt;Mt=1,Pt.flattenAsync=void 0;const e=Rt();return Pt.flattenAsync=function(t){return(0,e.flattenDeepAsync)(t,1)},Pt}(),e),r(It,e),r(Nt,e),r(Rt(),e),r(Ut(),e),r(function(){if(Wt)return qt;Wt=1,qt.flatten=void 0;const e=Ut();return qt.flatten=function(t){return(0,e.flattenDeep)(t,1)},qt}(),e),r(Dt,e),r($t,e),r(Ht(),e),r(Qt(),e),r(function(){if(Xt)return Zt;Xt=1,Zt.sliceAsync=void 0;const e=tt,t=Wn();return Zt.sliceAsync=function(r,n,o=1/0){return(0,t.assert)(Number.isInteger(n),"The parameter start must be an integer"),(0,t.assert)(n>=0,"The parameter start must be greater than or equal to 0"),(0,t.assert)(Number.isInteger(o),"The parameter end must be an integer"),(0,t.assert)(o>=n,"The parameter end must be greater than or equal to start"),(0,e.go)((async function*(){let e=0;for await(const t of r){if(e>=o)break;e>=n&&(yield t),e++}}))},Zt}(),e),r(function(){if(er)return tr;er=1,tr.slice=void 0;const e=tt,t=Wn();return tr.slice=function(r,n,o=1/0){return(0,t.assert)(Number.isInteger(n),"The parameter start must be an integer"),(0,t.assert)(n>=0,"The parameter start must be greater than or equal to 0"),(0,t.assert)(Number.isInteger(o),"The parameter end must be an integer"),(0,t.assert)(o>=n,"The parameter end must be greater than or equal to start"),(0,e.go)((function*(){let e=0;for(const t of r){if(e>=o)break;e>=n&&(yield t),e++}}))},tr}(),e),r(rr,e),r(nr,e),r(ir,e),r(ar,e),r(function(){if(ur)return cr;ur=1,cr.takeAsync=void 0;const e=tt,t=Wn();return cr.takeAsync=function(r,n){return(0,t.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,t.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,e.go)((async function*(){if(0!==n)for await(const e of r)if(yield e,0==--n)break}))},cr}(),e),r(function(){if(sr)return lr;sr=1,lr.takeRightAsync=void 0;const e=tt,t=Wn();return lr.takeRightAsync=function(r,n){return(0,t.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,t.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,e.go)((async function*(){var e;const t=r[Symbol.asyncIterator]();let o;try{const r=[];let i;for(;({value:i,done:o}=await t.next()),!o;)r.push(i),r.length>n&&r.shift();yield*r}finally{o||await(null===(e=t.return)||void 0===e?void 0:e.call(t))}}))},lr}(),e),r(function(){if(fr)return pr;fr=1,pr.takeRight=void 0;const e=tt,t=Wn();return pr.takeRight=function(r,n){return(0,t.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,t.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,e.go)((function*(){var e;const t=r[Symbol.iterator]();let o;try{const r=[];let i;for(;({value:i,done:o}=t.next()),!o;)r.push(i),r.length>n&&r.shift();yield*r}finally{o||null===(e=t.return)||void 0===e||e.call(t)}}))},pr}(),e),r(dr,e),r(br,e),r(function(){if(yr)return hr;yr=1,hr.take=void 0;const e=tt,t=Wn();return hr.take=function(r,n){return(0,t.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,t.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,e.go)((function*(){if(0!==n)for(const e of r)if(yield e,0==--n)break}))},hr}(),e),r(mr,e),r(wr,e),r(Or,e),r(Sr,e),r(_r,e),r(xr,e),r(jr,e),r(Ar,e),r(Pr,e),r(Tr,e),r(Fr,e)}(Ze)),Ze}Fr.zip=void 0,Fr.zip=function(e,...t){return function*(...e){const t=e.length,r=e.map((e=>e[Symbol.iterator]())),n=r.map((()=>!1));try{for(;;){const e=new Array(t);for(let o=0;o<t;o++){const{value:t,done:i}=r[o].next();if(i)return void(n[o]=!0);e[o]=t}yield e}}finally{r.filter(((e,t)=>!n[t])).forEach((e=>{var t;return null===(t=e.return)||void 0===t?void 0:t.call(e)}))}}(e,...t)};var Rr={},Nr={};Nr.consume=void 0,Nr.consume=function(e,t){return t(e)};var Br={eachAsync:void 0};const Lr=g;Br.eachAsync=function(e,t){return(0,Lr.isAsyncIterable)(e)?async function(e){let r=0;for await(const n of e)await t(n,r),r++}(e):async function(e){let r=0;for(const n of e)await t(n,r),r++}(e)};var zr={};zr.each=void 0,zr.each=function(e,t){let r=0;for(const n of e)t(n,r),r++};var Ur={everyAsync:void 0};const Wr=g;Ur.everyAsync=function(e,t){return(0,Wr.isAsyncIterable)(e)?async function(e){let r=0;for await(const n of e){if(!await t(n,r))return!1;r++}return!0}(e):async function(e){let r=0;for(const n of e){if(!await t(n,r))return!1;r++}return!0}(e)};var qr={};qr.every=void 0,qr.every=function(e,t){let r=0;for(const n of e){if(!t(n,r))return!1;r++}return!0};var Dr={findAsync:void 0};const Vr=g;Dr.findAsync=function(e,t){return(0,Vr.isAsyncIterable)(e)?async function(e){let r=0;for await(const n of e){if(await t(n,r))return n;r++}return}(e):async function(e){let r=0;for(const n of e){if(await t(n,r))return n;r++}return}(e)};var $r={};$r.find=void 0,$r.find=function(e,t){let r=0;for(const n of e){if(t(n,r))return n;r++}};var Yr={};Yr.firstAsync=void 0,Yr.firstAsync=async function(e){for await(const t of e)return t};var Jr={};Jr.first=void 0,Jr.first=function(e){for(const t of e)return t};var Hr={};Hr.includesAsync=void 0,Hr.includesAsync=async function(e,t){for await(const r of e)if(r===t)return!0;return!1};var Kr={};Kr.includes=void 0,Kr.includes=function(e,t){for(const r of e)if(r===t)return!0;return!1};var Gr={};Gr.matchAsync=void 0,Gr.matchAsync=async function(e,t){const r=t.length;let n=0;for await(const o of e)if(o===t[n]&&n++,n===r)return!0;return!1};var Qr={};Qr.match=void 0,Qr.match=function(e,t){const r=t.length;let n=0;for(const o of e)if(o===t[n]&&n++,n===r)return!0;return!1};var Xr={reduceAsync:void 0};const Zr=g;Xr.reduceAsync=function(e,t,r){return(0,Zr.isUndefined)(r)?function(e,t){return(0,Zr.isAsyncIterable)(e)?r(e):n(e);async function r(e){var r;const n=e[Symbol.asyncIterator]();let o;try{let e,a=await i(n),u=1;for(;({value:e,done:o}=await n.next()),!o;)a=await t(a,e,u++);return a}finally{o||await(null===(r=n.return)||void 0===r?void 0:r.call(n))}async function i(e){const t=await e.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}async function n(e){var r;const n=e[Symbol.iterator]();let o;try{let e,a=i(n),u=1;for(;({value:e,done:o}=n.next()),!o;)a=await t(a,e,u++);return a}finally{o||null===(r=n.return)||void 0===r||r.call(n)}function i(e){const t=e.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}}(e,t):function(e,t,r){return(0,Zr.isAsyncIterable)(e)?o(e):n(e);async function n(e){let n=r,o=0;for(const r of e)n=await t(n,r,o++);return n}async function o(e){let n=r,o=0;for await(const r of e)n=await t(n,r,o++);return n}}(e,t,r)};var en={reduce:void 0};const tn=g;en.reduce=function(e,t,r){return(0,tn.isUndefined)(r)?function(e,t){var r;const n=e[Symbol.iterator]();let o;try{let e,a=i(n),u=1;for(;({value:e,done:o}=n.next()),!o;)a=t(a,e,u++);return a}finally{o||null===(r=n.return)||void 0===r||r.call(n)}function i(e){const t=e.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}(e,t):function(e,t,r){let n=r,o=0;for(const r of e)n=t(n,r,o++);return n}(e,t,r)};var rn={someAsync:void 0};const nn=g;rn.someAsync=function(e,t){return(0,nn.isAsyncIterable)(e)?async function(e){let r=0;for await(const n of e){if(await t(n,r))return!0;r++}return!1}(e):async function(e){let r=0;for(const n of e){if(await t(n,r))return!0;r++}return!1}(e)};var on={};on.some=void 0,on.some=function(e,t){let r=0;for(const n of e){if(t(n,r))return!0;r++}return!1};var an={};an.lastAsync=void 0,an.lastAsync=async function(e){var t;const r=e[Symbol.asyncIterator]();let n;try{let e,o;for(;({value:e,done:n}=await r.next()),!n;)o=e;return o}finally{n||await(null===(t=r.return)||void 0===t?void 0:t.call(r))}};var un={};un.last=void 0,un.last=function(e){var t;const r=e[Symbol.iterator]();let n;try{let e,o;for(;({value:e,done:n}=r.next()),!n;)o=e;return o}finally{n||null===(t=r.return)||void 0===t||t.call(r)}};var cn={toArrayAsync:void 0};const sn=Nr;cn.toArrayAsync=function(e){return(0,sn.consume)(e,(async e=>{const t=[];for await(const r of e)t.push(r);return t}))};var ln={toArray:void 0};const fn=Nr;ln.toArray=function(e){return(0,fn.consume)(e,(e=>Array.from(e)))};var pn={toSetAsync:void 0};const dn=Nr;pn.toSetAsync=function(e){return(0,dn.consume)(e,(async e=>{const t=new Set;for await(const r of e)t.add(r);return t}))};var vn={toSet:void 0};const bn=Nr;vn.toSet=function(e){return(0,bn.consume)(e,(e=>new Set(e)))};var yn={};yn.count=void 0,yn.count=function(e){let t=0;for(const r of e)t++;return t};var hn,mn={};function gn(){return hn||(hn=1,function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(Mr(),e),r(Rr,e)}(Xe)),Xe}mn.countAsync=void 0,mn.countAsync=async function(e){let t=0;for await(const r of e)t++;return t},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(Nr,e),r(Br,e),r(zr,e),r(Ur,e),r(qr,e),r(Dr,e),r($r,e),r(Yr,e),r(Jr,e),r(Hr,e),r(Kr,e),r(Gr,e),r(Qr,e),r(Xr,e),r(en,e),r(rn,e),r(on,e),r(an,e),r(un,e),r(cn,e),r(ln,e),r(pn,e),r(vn,e),r(yn,e),r(mn,e)}(Rr);var wn={},On={};On.traverseErrorPrototypeChain=void 0,On.traverseErrorPrototypeChain=function*(e){let t=e;for(;(t=Object.getPrototypeOf(t))&&(yield t,t!==Error.prototype););},wn.getErrorNames=void 0;const Sn=g,_n=On;wn.getErrorNames=function*(e){var t;if((0,Sn.isError)(e))for(const r of(0,_n.traverseErrorPrototypeChain)(e))(null===(t=r.constructor)||void 0===t?void 0:t.name)&&(yield r.constructor.name);else yield e.name,yield*e.ancestors};var xn={isSerializableError:void 0};const jn=g;var En;function An(){if(En)return Qe;En=1,Qe.CustomError=void 0;const e=gn(),t=wn,r=g,n=xn;class o extends Error{get name(){var r,n;return null!==(n=null!==(r=(0,e.first)((0,t.getErrorNames)(this)))&&void 0!==r?r:o.name)&&void 0!==n?n:"CustomError"}static[Symbol.hasInstance](o){var i;if((0,r.isError)(o)||(0,n.isSerializableError)(o)){const r=[null!==(i=this.prototype.constructor.name)&&void 0!==i?i:this.name,...(0,t.getErrorNames)(this.prototype)].reverse(),n=(0,e.toArray)((0,t.getErrorNames)(o)).reverse();return r.every(((e,t)=>e===n[t]))}return!1}}return Qe.CustomError=o,Qe}xn.isSerializableError=function(e){return(0,jn.isObject)(e)&&(0,jn.isString)(e.name)&&(0,jn.isString)(e.message)&&((0,jn.isString)(e.stack)||(0,jn.isNull)(e.stack))&&(0,jn.isArray)(e.ancestors)&&e.ancestors.every(jn.isString)};var Pn,Tn={};function In(){if(Pn)return Tn;Pn=1,Tn.AssertionError=void 0;const e=An();class t extends e.CustomError{}return Tn.AssertionError=t,Tn}var kn,Cn={};var Fn={},Mn={},Rn={};Rn.pass=void 0,Rn.pass=function(){},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]});(n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)})(Rn,e)}(Mn),Fn.hydrate=void 0;const Nn=Mn;function Bn(e,t){const r=function(){(0,Nn.pass)()};return(r.prototype=Object.create(e.prototype)).constructor=r,Object.defineProperty(r,"name",{value:t}),r}Fn.hydrate=function(e){var t;const r=[e.name,...e.ancestors].slice(0,-1).reverse();let n=Error;for(const e of r)n=Bn(n,e);const o=new n;return o.name=e.name,o.message=e.message,o.stack=null!==(t=e.stack)&&void 0!==t?t:void 0,o};var Ln,zn,Un={};function Wn(){return zn||(zn=1,function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(An(),e),r(In(),e),r(xn,e),r(function(){if(kn)return Cn;kn=1,Cn.normalize=void 0;const e=wn,t=gn();return Cn.normalize=function(r){var n;const[o,...i]=(0,t.toArray)((0,e.getErrorNames)(r));return{name:o,ancestors:i,message:r.message,stack:null!==(n=r.stack)&&void 0!==n?n:null}},Cn}(),e),r(Fn,e),r(function(){if(Ln)return Un;Ln=1,Un.assert=void 0;const e=In();return Un.assert=function(t,r){if(!t)throw new e.AssertionError(r)},Un}(),e),r(wn,e),r(On,e)}(Ge)),Ge}var qn=Wn();function Dn(e,t){qn.assert(e.length>0,"The parameter values must be a non-empty array"),g.isntUndefined(t)&&qn.assert(t>=0&&t<e.length,"The parameter defaultSelectedIndex must be in the range of 0 to values.length");const[r,n]=o.exports.useState(t);return o.exports.useMemo((()=>({selectedValue:g.isUndefined(r)?void 0:e[r],options:e.map(((e,t)=>({value:e,index:t,selected:t===r,select:()=>n(t)})))})),[r])}var Vn=gn();function $n(e,t=[]){qn.assert(e.length>0,"The parameter values must be a non-empty array");for(const r of t)qn.assert(r>=0&&r<e.length,"The index of parameter defaultSelectedIndexes must be in the range of 0 to values.length");const[r,n]=o.exports.useState(new Set(t));return o.exports.useMemo((()=>({selectedValues:Vn.toArray(Vn.map(r,(t=>e[t]))),options:e.map(((e,t)=>{const o=r.has(t),i=()=>{const e=new Set(r);e.add(t),n(e)},a=()=>{const e=new Set(r);e.delete(t),n(e)};return{value:e,index:t,selected:o,select:i,unselect:a,toggle:o?a:i}}))})),[r])}function Yn(e,t=0){const[r,n]=o.exports.useState(t);return[e[r],()=>n((t=>t+1<e.length?t+1:0))]}function Jn(e=!1){const[t,r]=o.exports.useState(e);return[t,()=>r((e=>!e))]}function Hn(e,t){const r=t.map((e=>e.current));o.exports.useEffect((()=>{const r=new ResizeObserver(e);return t.map((e=>e.current)).filter(g.isntNull).forEach((e=>r.observe(e))),()=>r.disconnect()}),r)}function Kn(e,t=0){const[r,n]=o.exports.useState(t);return[e[r],()=>{n((t=>t===e.length-1?t:t+1))},()=>{n((e=>0===e?e:e-1))}]}function Gn(){const[,e]=o.exports.useState({});return()=>e({})}var Qn={},Xn={Box:void 0};Xn.Box=class{constructor(e){this.value=e}set(e){this.value=e}get(){return this.value}};var Zn={};Zn.convertArrayToCons=Zn.convertConsToArray=void 0,Zn.convertConsToArray=function e([t,r]){return null===r?[t]:[t,...e(r)]},Zn.convertArrayToCons=function e([t,...r]){return[t,r.length?e(r):null]};var eo={Emitter:void 0};class to{constructor(){this.map=new Map}get[Symbol.toStringTag](){return this.constructor.name}on(e,t){this.map.has(e)||this.map.set(e,new Set);return this.map.get(e).add(r),()=>{if(!this.map.has(e))return;const t=this.map.get(e);t.delete(r),0===t.size&&this.map.delete(e)};function r(...e){t(...e)}}once(e,t){const r=this.on(e,((...e)=>{t(...e),r()}));return r}emit(e,...t){this.map.has(e)&&this.map.get(e).forEach((e=>e(...t)))}}eo.Emitter=to;var ro={HashMap:void 0};class no{constructor(e){this.hash=e,this.map=new Map}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(e,t){return this.map.set(this.hash(e),t),this}has(e){return this.map.has(this.hash(e))}get(e){return this.map.get(this.hash(e))}delete(e){return this.map.delete(this.hash(e))}clear(){this.map.clear()}}ro.HashMap=no;var oo={HashSet:void 0};class io{constructor(e){this.hash=e,this.map=new Map}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}[Symbol.iterator](){return this.map.values()}add(e){return this.map.set(this.hash(e),e),this}delete(e){return this.map.delete(this.hash(e))}has(e){return this.map.has(this.hash(e))}clear(){this.map.clear()}values(){return this.map.values()}}oo.HashSet=io;var ao={Queue:void 0};class uo{constructor(){this.items=[]}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.items.length}empty(){this.items.length=0}enqueue(...e){this.items.push(...e)}dequeue(){return this.items.shift()}remove(e){let t;for(;(t=this.items.indexOf(e))>=0;)this.items.splice(t,1)}}ao.Queue=uo;var co={LRUMap:void 0};const so=Wn(),lo=gn();class fo{constructor(e){this.map=new Map,(0,so.assert)(Number.isInteger(e),"The parameter limit must be an integer"),(0,so.assert)(e>0,"The parameter limit must be a positive value"),this.limit=e}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(e,t){return this.map.has(e)?this.updateItem(e,t):(this.map.size===this.limit&&this.map.delete(this.getColdestKey()),this.map.set(e,t)),this}has(e){return this.map.has(e)}get(e){if(!this.has(e))return;const t=this.map.get(e);return this.updateItem(e,t),t}delete(e){return this.map.delete(e)}clear(){this.map.clear()}updateItem(e,t){this.map.delete(e),this.map.set(e,t)}getColdestKey(){return(0,lo.first)(this.map.keys())}}co.LRUMap=fo;var po={},vo={},bo={},yo={},ho={};ho.random=void 0,ho.random=function(e,t){return Math.random()*(t-e)+e};var mo={};mo.randomInt=void 0,mo.randomInt=function(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e))+e};var go={};go.randomIntInclusive=void 0,go.randomIntInclusive=function(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(ho,e),r(mo,e),r(go,e)}(yo),bo.calculateExponentialBackoffTimeout=void 0;const wo=yo;bo.calculateExponentialBackoffTimeout=function({baseTimeout:e,retries:t,maxTimeout:r=1/0,factor:n=2,jitter:o=!0}){const i=Math.min(n**t*e,r);return o?(0,wo.randomIntInclusive)(0,i):i};var Oo={};Oo.setTimeout=void 0,Oo.setTimeout=function(e,t){const r=globalThis.setTimeout(t,e);return()=>clearTimeout(r)};var So={setSchedule:void 0};const _o=Oo;So.setSchedule=function(e,t){const r=e-Date.now();return(0,_o.setTimeout)(r,t)};var xo={};xo.setInterval=void 0,xo.setInterval=function(e,t){const r=globalThis.setInterval(t,e);return()=>clearInterval(r)};var jo={setImmediate:void 0};const Eo=Oo;jo.setImmediate=function(e){if(globalThis.setImmediate){const t=globalThis.setImmediate(e);return()=>clearImmediate(t)}return(0,Eo.setTimeout)(0,e)};var Ao={setTimeoutLoop:void 0};const Po=Oo;Ao.setTimeoutLoop=function(e,t){let r=!1,n=(0,Po.setTimeout)(e,(async function o(){await t(),r||(n=(0,Po.setTimeout)(e,o))}));return()=>{r=!0,n()}};var To={setDynamicTimeoutLoop:void 0};const Io=Oo;To.setDynamicTimeoutLoop=function(e,t){let r=!1,n=(0,Io.setTimeout)(e,(async function o(){const i=Date.now();await t();const a=Date.now()-i;r||(n=(0,Io.setTimeout)(Math.max(e-a,0),o))}));return()=>{r=!0,n()}},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(bo,e),r(Oo,e),r(So,e),r(xo,e),r(jo,e),r(Ao,e),r(To,e)}(vo),po.ExpirableMap=void 0;const ko=vo;class Co{constructor(){this.map=new Map,this.itemMetadataSortedByExpirationTime=[]}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(e,t,r){return this.map.set(e,t),this.removeItemMetadata(e),this.addItemMetadata(e,Date.now()+r),this}has(e){return this.map.has(e)}get(e){return this.map.get(e)}delete(e){const t=this.map.delete(e);if(t){const t=this.itemMetadataSortedByExpirationTime.findIndex((t=>t.key===e));this.itemMetadataSortedByExpirationTime.splice(t,1),0===t&&this.rescheduleClearTimeout()}return t}clear(){var e;this.map.clear(),null===(e=this.cancelClearTimeout)||void 0===e||e.call(this),this.itemMetadataSortedByExpirationTime=[]}addItemMetadata(e,t){for(let r=0;r<this.itemMetadataSortedByExpirationTime.length;r++){if(t<this.itemMetadataSortedByExpirationTime[r].expirationTime)return this.itemMetadataSortedByExpirationTime.splice(r,0,{key:e,expirationTime:t}),void(0===r&&this.rescheduleClearTimeout())}this.itemMetadataSortedByExpirationTime.push({key:e,expirationTime:t}),1===this.itemMetadataSortedByExpirationTime.length&&this.rescheduleClearTimeout()}removeItemMetadata(e){const t=this.itemMetadataSortedByExpirationTime.findIndex((t=>t.key===e));t>=0&&(this.itemMetadataSortedByExpirationTime.splice(t,1),0===t&&this.rescheduleClearTimeout())}clearExpiredItems(e){const t=this.itemMetadataSortedByExpirationTime.findIndex((t=>t.expirationTime>e));(t>=0?this.itemMetadataSortedByExpirationTime.splice(0,t):this.itemMetadataSortedByExpirationTime.splice(0,this.itemMetadataSortedByExpirationTime.length)).forEach((e=>this.map.delete(e.key)))}rescheduleClearTimeout(){var e;if(null===(e=this.cancelClearTimeout)||void 0===e||e.call(this),this.itemMetadataSortedByExpirationTime.length>0){const e=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(e.expirationTime)){const t=(0,ko.setSchedule)(e.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));this.cancelClearTimeout=()=>{t(),this.cancelClearTimeout=void 0}}}}}po.ExpirableMap=Co;var Fo={TLRUMap:void 0};const Mo=Wn(),Ro=gn(),No=vo;class Bo{constructor(e){this.map=new Map,this.itemMetadataSortedByExpirationTime=[],(0,Mo.assert)(Number.isInteger(e),"The parameter limit must be an integer"),(0,Mo.assert)(e>0,"The parameter limit must be a positive value"),this.limit=e}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(e,t,r){return this.map.has(e)?(this.updateItem(e,t),this.removeItemMetadata(e),this.addItemMetadata(e,Date.now()+r)):(this.map.size===this.limit&&this.map.delete(this.getColdestKey()),this.map.set(e,t),this.addItemMetadata(e,Date.now()+r)),this}has(e){return this.map.has(e)}get(e){if(this.has(e)){const t=this.map.get(e);return this.updateItem(e,t),t}}delete(e){const t=this.map.delete(e);if(t){const t=this.itemMetadataSortedByExpirationTime.findIndex((t=>t.key===e));this.itemMetadataSortedByExpirationTime.splice(t,1),0===t&&this.rescheduleClearTimeout()}return t}clear(){var e;this.map.clear(),null===(e=this.cancelClearTimeout)||void 0===e||e.call(this),this.itemMetadataSortedByExpirationTime=[]}updateItem(e,t){this.map.delete(e),this.map.set(e,t)}addItemMetadata(e,t){for(let r=0;r<this.itemMetadataSortedByExpirationTime.length;r++){if(t<this.itemMetadataSortedByExpirationTime[r].expirationTime)return this.itemMetadataSortedByExpirationTime.splice(r,0,{key:e,expirationTime:t}),void(0===r&&this.rescheduleClearTimeout())}this.itemMetadataSortedByExpirationTime.push({key:e,expirationTime:t}),1===this.itemMetadataSortedByExpirationTime.length&&this.rescheduleClearTimeout()}removeItemMetadata(e){const t=this.itemMetadataSortedByExpirationTime.findIndex((t=>t.key===e));t>=0&&(this.itemMetadataSortedByExpirationTime.splice(t,1),0===t&&this.rescheduleClearTimeout())}clearExpiredItems(e){const t=this.itemMetadataSortedByExpirationTime.findIndex((t=>t.expirationTime>e));(t>=0?this.itemMetadataSortedByExpirationTime.splice(0,t):this.itemMetadataSortedByExpirationTime.splice(0,this.itemMetadataSortedByExpirationTime.length)).forEach((e=>this.map.delete(e.key)))}rescheduleClearTimeout(){var e;if(null===(e=this.cancelClearTimeout)||void 0===e||e.call(this),this.itemMetadataSortedByExpirationTime.length>0){const e=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(e.expirationTime)){const t=(0,No.setSchedule)(e.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));this.cancelClearTimeout=()=>{t(),this.cancelClearTimeout=void 0}}}}getColdestKey(){return(0,Ro.first)(this.map.keys())}}Fo.TLRUMap=Bo;var Lo={TrieMap:void 0};const zo=gn();class Uo{constructor(e){this.value=e,this.children=new Map}}class Wo{constructor(){this.root=new Uo}get[Symbol.toStringTag](){return this.constructor.name}set(e,t){let r=this.root;for(const t of e)r.children.has(t)||r.children.set(t,new Uo),r=r.children.get(t);return r.value=t,this}has(e){let t=this.root;for(const r of e){if(!t.children.has(r))return!1;t=t.children.get(r)}return void 0!==t.value}get(e){let t=this.root;for(const r of e){if(!t.children.has(r))return;t=t.children.get(r)}return t.value}delete(e){const t=[];let r=this.root;for(const n of e){if(!r.children.has(n))return!1;t.push(r),r=r.children.get(n)}if(delete r.value,0===r.children.size)for(const[r,n]of(0,zo.toArray)((0,zo.zip)(e,t)).reverse())if(n.children.delete(r),0!==n.children.size)break;return!0}}Lo.TrieMap=Wo;var qo={};qo.BadEventError=qo.FiniteStateMachine=void 0;const Do=Wn();qo.FiniteStateMachine=class{constructor(e,t){this.schema=e,this._state=t}get state(){return this._state}matches(e){return this._state===e}can(e){return e in this.schema[this.state]}send(e){if(!this.can(e))throw new Vo(this.state,e);this._state=this.schema[this.state][e]}};class Vo extends Do.CustomError{constructor(e,t){super(`State ${e} cannot react to event ${t}`)}}qo.BadEventError=Vo;var $o={},Yo={},Jo={},Ho={},Ko={};Ko.isFunction=void 0,Ko.isFunction=function(e){return"function"==typeof e};var Go={},Qo={},Xo={};Xo.createErrorClass=void 0,Xo.createErrorClass=function(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},Qo.UnsubscriptionError=void 0;var Zo=Xo;Qo.UnsubscriptionError=Zo.createErrorClass((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}}));var ei={};ei.arrRemove=void 0,ei.arrRemove=function(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}};var ti=n&&n.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ri=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},ni=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Go.isSubscription=Go.EMPTY_SUBSCRIPTION=Go.Subscription=void 0;var oi=Ko,ii=Qo,ai=ei,ui=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var a=ti(i),u=a.next();!u.done;u=a.next()){u.value.remove(this)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else i.remove(this);var c=this.initialTeardown;if(oi.isFunction(c))try{c()}catch(e){o=e instanceof ii.UnsubscriptionError?e.errors:[e]}var s=this._finalizers;if(s){this._finalizers=null;try{for(var l=ti(s),f=l.next();!f.done;f=l.next()){var p=f.value;try{ci(p)}catch(e){o=null!=o?o:[],e instanceof ii.UnsubscriptionError?o=ni(ni([],ri(o)),ri(e.errors)):o.push(e)}}}catch(e){r={error:e}}finally{try{f&&!f.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(o)throw new ii.UnsubscriptionError(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)ci(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).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)&&ai.arrRemove(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&ai.arrRemove(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();function ci(e){oi.isFunction(e)?e():e.unsubscribe()}Go.Subscription=ui,Go.EMPTY_SUBSCRIPTION=ui.EMPTY,Go.isSubscription=function(e){return e instanceof ui||e&&"closed"in e&&oi.isFunction(e.remove)&&oi.isFunction(e.add)&&oi.isFunction(e.unsubscribe)};var si={config:void 0};si.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var li={},fi={};!function(e){var t=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},r=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};e.timeoutProvider=void 0,e.timeoutProvider={setTimeout:function(n,o){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var u=e.timeoutProvider.delegate;return(null==u?void 0:u.setTimeout)?u.setTimeout.apply(u,r([n,o],t(i))):setTimeout.apply(void 0,r([n,o],t(i)))},clearTimeout:function(t){var r=e.timeoutProvider.delegate;return((null==r?void 0:r.clearTimeout)||clearTimeout)(t)},delegate:void 0}}(fi),li.reportUnhandledError=void 0;var pi=si,di=fi;li.reportUnhandledError=function(e){di.timeoutProvider.setTimeout((function(){var t=pi.config.onUnhandledError;if(!t)throw e;t(e)}))};var vi={};vi.noop=void 0,vi.noop=function(){};var bi={};function yi(e,t,r){return{kind:e,value:t,error:r}}bi.createNotification=bi.nextNotification=bi.errorNotification=bi.COMPLETE_NOTIFICATION=void 0,bi.COMPLETE_NOTIFICATION=yi("C",void 0,void 0),bi.errorNotification=function(e){return yi("E",void 0,e)},bi.nextNotification=function(e){return yi("N",e,void 0)},bi.createNotification=yi;var hi={};hi.captureError=hi.errorContext=void 0;var mi=si,gi=null;hi.errorContext=function(e){if(mi.config.useDeprecatedSynchronousErrorHandling){var t=!gi;if(t&&(gi={errorThrown:!1,error:null}),e(),t){var r=gi,n=r.errorThrown,o=r.error;if(gi=null,n)throw o}}else e()},hi.captureError=function(e){mi.config.useDeprecatedSynchronousErrorHandling&&gi&&(gi.errorThrown=!0,gi.error=e)},function(e){var t,r=n&&n.__extends||(t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,r)},function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)});e.EMPTY_OBSERVER=e.SafeSubscriber=e.Subscriber=void 0;var o=Ko,i=Go,a=si,u=li,c=vi,s=bi,l=fi,f=hi,p=function(t){function n(r){var n=t.call(this)||this;return n.isStopped=!1,r?(n.destination=r,i.isSubscription(r)&&r.add(n)):n.destination=e.EMPTY_OBSERVER,n}return r(n,t),n.create=function(e,t,r){return new y(e,t,r)},n.prototype.next=function(e){this.isStopped?m(s.nextNotification(e),this):this._next(e)},n.prototype.error=function(e){this.isStopped?m(s.errorNotification(e),this):(this.isStopped=!0,this._error(e))},n.prototype.complete=function(){this.isStopped?m(s.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},n.prototype._next=function(e){this.destination.next(e)},n.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},n.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},n}(i.Subscription);e.Subscriber=p;var d=Function.prototype.bind;function v(e,t){return d.call(e,t)}var b=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){h(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){h(e)}else h(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){h(e)}},e}(),y=function(e){function t(t,r,n){var i,u,c=e.call(this)||this;o.isFunction(t)||!t?i={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:c&&a.config.useDeprecatedNextContext?((u=Object.create(t)).unsubscribe=function(){return c.unsubscribe()},i={next:t.next&&v(t.next,u),error:t.error&&v(t.error,u),complete:t.complete&&v(t.complete,u)}):i=t;return c.destination=new b(i),c}return r(t,e),t}(p);function h(e){a.config.useDeprecatedSynchronousErrorHandling?f.captureError(e):u.reportUnhandledError(e)}function m(e,t){var r=a.config.onStoppedNotification;r&&l.timeoutProvider.setTimeout((function(){return r(e,t)}))}e.SafeSubscriber=y,e.EMPTY_OBSERVER={closed:!0,next:c.noop,error:function(e){throw e},complete:c.noop}}(Ho);var wi={observable:void 0};wi.observable="function"==typeof Symbol&&Symbol.observable||"@@observable";var Oi={},Si={};Si.identity=void 0,Si.identity=function(e){return e},Oi.pipeFromArray=Oi.pipe=void 0;var _i=Si;function xi(e){return 0===e.length?_i.identity:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}Oi.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return xi(e)},Oi.pipeFromArray=xi,Jo.Observable=void 0;var ji=Ho,Ei=Go,Ai=wi,Pi=Oi,Ti=si,Ii=Ko,ki=hi,Ci=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n,o=this,i=(n=e)&&n instanceof ji.Subscriber||function(e){return e&&Ii.isFunction(e.next)&&Ii.isFunction(e.error)&&Ii.isFunction(e.complete)}(n)&&Ei.isSubscription(n)?e:new ji.SafeSubscriber(e,t,r);return ki.errorContext((function(){var e=o,t=e.operator,r=e.source;i.add(t?t.call(i,r):r?o._subscribe(i):o._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 r=this;return new(t=Fi(t))((function(t,n){var o=new ji.SafeSubscriber({next:function(t){try{e(t)}catch(e){n(e),o.unsubscribe()}},error:n,complete:t});r.subscribe(o)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[Ai.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Pi.pipeFromArray(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=Fi(e))((function(e,r){var n;t.subscribe((function(e){return n=e}),(function(e){return r(e)}),(function(){return e(n)}))}))},e.create=function(t){return new e(t)},e}();function Fi(e){var t;return null!==(t=null!=e?e:Ti.config.Promise)&&void 0!==t?t:Promise}Jo.Observable=Ci;var Mi={},Ri={},Ni={};Ni.operate=Ni.hasLift=void 0;var Bi=Ko;function Li(e){return Bi.isFunction(null==e?void 0:e.lift)}Ni.hasLift=Li,Ni.operate=function(e){return function(t){if(Li(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")}};var zi,Ui={},Wi=n&&n.__extends||(zi=function(e,t){return(zi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}zi(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Ui.OperatorSubscriber=Ui.createOperatorSubscriber=void 0;var qi=Ho;Ui.createOperatorSubscriber=function(e,t,r,n,o){return new Di(e,t,r,n,o)};var Di=function(e){function t(t,r,n,o,i,a){var u=e.call(this,t)||this;return u.onFinalize=i,u.shouldUnsubscribe=a,u._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,u._error=o?function(e){try{o(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,u._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,u}return Wi(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(qi.Subscriber);Ui.OperatorSubscriber=Di,Ri.refCount=void 0;var Vi=Ni,$i=Ui;Ri.refCount=function(){return Vi.operate((function(e,t){var r=null;e._refCount++;var n=$i.createOperatorSubscriber(t,void 0,void 0,void 0,(function(){if(!e||e._refCount<=0||0<--e._refCount)r=null;else{var n=e._connection,o=r;r=null,!n||o&&n!==o||n.unsubscribe(),t.unsubscribe()}}));e.subscribe(n),n.closed||(r=e.connect())}))};var Yi=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Mi.ConnectableObservable=void 0;var Ji=Go,Hi=Ri,Ki=Ui,Gi=Ni,Qi=function(e){function t(t,r){var n=e.call(this)||this;return n.source=t,n.subjectFactory=r,n._subject=null,n._refCount=0,n._connection=null,Gi.hasLift(t)&&(n.lift=t.lift),n}return Yi(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,null==e||e.unsubscribe()},t.prototype.connect=function(){var e=this,t=this._connection;if(!t){t=this._connection=new Ji.Subscription;var r=this.getSubject();t.add(this.source.subscribe(Ki.createOperatorSubscriber(r,void 0,(function(){e._teardown(),r.complete()}),(function(t){e._teardown(),r.error(t)}),(function(){return e._teardown()})))),t.closed&&(this._connection=null,t=Ji.Subscription.EMPTY)}return t},t.prototype.refCount=function(){return Hi.refCount()(this)},t}(Jo.Observable);Mi.ConnectableObservable=Qi;var Xi={},Zi={};!function(e){e.performanceTimestampProvider=void 0,e.performanceTimestampProvider={now:function(){return(e.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}}(Zi);var ea={};!function(e){var t=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},r=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};e.animationFrameProvider=void 0;var o=Go;e.animationFrameProvider={schedule:function(t){var r=requestAnimationFrame,n=cancelAnimationFrame,i=e.animationFrameProvider.delegate;i&&(r=i.requestAnimationFrame,n=i.cancelAnimationFrame);var a=r((function(e){n=void 0,t(e)}));return new o.Subscription((function(){return null==n?void 0:n(a)}))},requestAnimationFrame:function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=e.animationFrameProvider.delegate;return((null==i?void 0:i.requestAnimationFrame)||requestAnimationFrame).apply(void 0,r([],t(n)))},cancelAnimationFrame:function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=e.animationFrameProvider.delegate;return((null==i?void 0:i.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,r([],t(n)))},delegate:void 0}}(ea),Xi.animationFrames=void 0;var ta=Jo,ra=Go,na=Zi,oa=ea;function ia(e){var t=oa.animationFrameProvider.schedule;return new ta.Observable((function(r){var n=new ra.Subscription,o=e||na.performanceTimestampProvider,i=o.now(),a=function(u){var c=o.now();r.next({timestamp:e?c:u,elapsed:c-i}),r.closed||n.add(t(a))};return n.add(t(a)),n}))}Xi.animationFrames=function(e){return e?ia(e):aa};var aa=ia(),ua={},ca={ObjectUnsubscribedError:void 0},sa=Xo;ca.ObjectUnsubscribedError=sa.createErrorClass((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}));var la=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),fa=n&&n.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};ua.AnonymousSubject=ua.Subject=void 0;var pa=Jo,da=Go,va=ca,ba=ei,ya=hi,ha=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 la(t,e),t.prototype.lift=function(e){var t=new ma(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new va.ObjectUnsubscribedError},t.prototype.next=function(e){var t=this;ya.errorContext((function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=fa(t.currentObservers),i=o.next();!i.done;i=o.next()){i.value.next(e)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}}))},t.prototype.error=function(e){var t=this;ya.errorContext((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}}))},t.prototype.complete=function(){var e=this;ya.errorContext((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,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?da.EMPTY_SUBSCRIPTION:(this.currentObservers=null,i.push(e),new da.Subscription((function(){t.currentObservers=null,ba.arrRemove(i,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,o=t.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new pa.Observable;return e.source=this,e},t.create=function(e,t){return new ma(e,t)},t}(pa.Observable);ua.Subject=ha;var ma=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return la(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.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,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:da.EMPTY_SUBSCRIPTION},t}(ha);ua.AnonymousSubject=ma;var ga={},wa=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();ga.BehaviorSubject=void 0;var Oa=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return wa(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return!r.closed&&t.next(this._value),r},t.prototype.getValue=function(){var e=this,t=e.hasError,r=e.thrownError,n=e._value;if(t)throw r;return this._throwIfClosed(),n},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(ua.Subject);ga.BehaviorSubject=Oa;var Sa={},_a={};!function(e){e.dateTimestampProvider=void 0,e.dateTimestampProvider={now:function(){return(e.dateTimestampProvider.delegate||Date).now()},delegate:void 0}}(_a);var xa=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Sa.ReplaySubject=void 0;var ja=_a,Ea=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=ja.dateTimestampProvider);var o=e.call(this)||this;return o._bufferSize=t,o._windowTime=r,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,t),o._windowTime=Math.max(1,r),o}return xa(t,e),t.prototype.next=function(t){var r=this,n=r.isStopped,o=r._buffer,i=r._infiniteTimeWindow,a=r._timestampProvider,u=r._windowTime;n||(o.push(t),!i&&o.push(a.now()+u)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!e.closed;o+=r?1:2)e.next(n[o]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,r=e._timestampProvider,n=e._buffer,o=e._infiniteTimeWindow,i=(o?1:2)*t;if(t<1/0&&i<n.length&&n.splice(0,n.length-i),!o){for(var a=r.now(),u=0,c=1;c<n.length&&n[c]<=a;c+=2)u=c;u&&n.splice(0,u+1)}},t}(ua.Subject);Sa.ReplaySubject=Ea;var Aa={},Pa=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Aa.AsyncSubject=void 0;var Ta=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return Pa(t,e),t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t._hasValue,o=t._value,i=t.thrownError,a=t.isStopped,u=t._isComplete;r?e.error(i):(a||u)&&(n&&e.next(o),e.complete())},t.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},t.prototype.complete=function(){var t=this,r=t._hasValue,n=t._value;t._isComplete||(this._isComplete=!0,r&&e.prototype.next.call(this,n),e.prototype.complete.call(this))},t}(ua.Subject);Aa.AsyncSubject=Ta;var Ia={},ka={},Ca={},Fa={},Ma=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Fa.Action=void 0;var Ra=function(e){function t(t,r){return e.call(this)||this}return Ma(t,e),t.prototype.schedule=function(e,t){return this},t}(Go.Subscription);Fa.Action=Ra;var Na={};!function(e){var t=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},r=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};e.intervalProvider=void 0,e.intervalProvider={setInterval:function(n,o){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var u=e.intervalProvider.delegate;return(null==u?void 0:u.setInterval)?u.setInterval.apply(u,r([n,o],t(i))):setInterval.apply(void 0,r([n,o],t(i)))},clearInterval:function(t){var r=e.intervalProvider.delegate;return((null==r?void 0:r.clearInterval)||clearInterval)(t)},delegate:void 0}}(Na);var Ba=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Ca.AsyncAction=void 0;var La=Na,za=ei,Ua=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n.pending=!1,n}return Ba(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(n,this.id,t),this},t.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),La.intervalProvider.setInterval(e.flush.bind(e,this),r)},t.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return t;La.intervalProvider.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var r,n=!1;try{this.work(e)}catch(e){n=!0,r=e||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,n=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,za.arrRemove(n,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(Fa.Action);Ca.AsyncAction=Ua;var Wa={},qa={};qa.TestTools=qa.Immediate=void 0;var Da,Va=1,$a={};function Ya(e){return e in $a&&(delete $a[e],!0)}qa.Immediate={setImmediate:function(e){var t=Va++;return $a[t]=!0,Da||(Da=Promise.resolve()),Da.then((function(){return Ya(t)&&e()})),t},clearImmediate:function(e){Ya(e)}},qa.TestTools={pending:function(){return Object.keys($a).length}},function(e){var t=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},r=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};e.immediateProvider=void 0;var o=qa,i=o.Immediate.setImmediate,a=o.Immediate.clearImmediate;e.immediateProvider={setImmediate:function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var a=e.immediateProvider.delegate;return((null==a?void 0:a.setImmediate)||i).apply(void 0,r([],t(n)))},clearImmediate:function(t){var r=e.immediateProvider.delegate;return((null==r?void 0:r.clearImmediate)||a)(t)},delegate:void 0}}(Wa);var Ja=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();ka.AsapAction=void 0;var Ha=Wa,Ka=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return Ja(t,e),t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t._scheduled||(t._scheduled=Ha.immediateProvider.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,r,n){if(void 0===n&&(n=0),null!=n&&n>0||null==n&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);t.actions.some((function(e){return e.id===r}))||(Ha.immediateProvider.clearImmediate(r),t._scheduled=void 0)},t}(Ca.AsyncAction);ka.AsapAction=Ka;var Ga={},Qa={},Xa={Scheduler:void 0},Za=_a,eu=function(){function e(t,r){void 0===r&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},e.now=Za.dateTimestampProvider.now,e}();Xa.Scheduler=eu;var tu=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Qa.AsyncScheduler=void 0;var ru=Xa,nu=function(e){function t(t,r){void 0===r&&(r=ru.Scheduler.now);var n=e.call(this,t,r)||this;return n.actions=[],n._active=!1,n._scheduled=void 0,n}return tu(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var r;this._active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}}},t}(ru.Scheduler);Qa.AsyncScheduler=nu;var ou=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Ga.AsapScheduler=void 0;var iu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ou(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var r,n=this.actions;e=e||n.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}},t}(Qa.AsyncScheduler);Ga.AsapScheduler=iu,function(e){e.asap=e.asapScheduler=void 0;var t=ka,r=Ga;e.asapScheduler=new r.AsapScheduler(t.AsapAction),e.asap=e.asapScheduler}(Ia);var au={};!function(e){e.async=e.asyncScheduler=void 0;var t=Ca,r=Qa;e.asyncScheduler=new r.AsyncScheduler(t.AsyncAction),e.async=e.asyncScheduler}(au);var uu={},cu={},su=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();cu.QueueAction=void 0;var lu=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return su(t,e),t.prototype.schedule=function(t,r){return void 0===r&&(r=0),r>0?e.prototype.schedule.call(this,t,r):(this.delay=r,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,r){return r>0||this.closed?e.prototype.execute.call(this,t,r):this._execute(t,r)},t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!=n&&n>0||null==n&&this.delay>0?e.prototype.requestAsyncId.call(this,t,r,n):t.flush(this)},t}(Ca.AsyncAction);cu.QueueAction=lu;var fu={},pu=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();fu.QueueScheduler=void 0;var du=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return pu(t,e),t}(Qa.AsyncScheduler);fu.QueueScheduler=du,function(e){e.queue=e.queueScheduler=void 0;var t=cu,r=fu;e.queueScheduler=new r.QueueScheduler(t.QueueAction),e.queue=e.queueScheduler}(uu);var vu={},bu={},yu=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();bu.AnimationFrameAction=void 0;var hu=ea,mu=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return yu(t,e),t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t._scheduled||(t._scheduled=hu.animationFrameProvider.requestAnimationFrame((function(){return t.flush(void 0)}))))},t.prototype.recycleAsyncId=function(t,r,n){if(void 0===n&&(n=0),null!=n&&n>0||null==n&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);t.actions.some((function(e){return e.id===r}))||(hu.animationFrameProvider.cancelAnimationFrame(r),t._scheduled=void 0)},t}(Ca.AsyncAction);bu.AnimationFrameAction=mu;var gu={},wu=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();gu.AnimationFrameScheduler=void 0;var Ou=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wu(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var r,n=this.actions;e=e||n.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}},t}(Qa.AsyncScheduler);gu.AnimationFrameScheduler=Ou,function(e){e.animationFrame=e.animationFrameScheduler=void 0;var t=bu,r=gu;e.animationFrameScheduler=new r.AnimationFrameScheduler(t.AnimationFrameAction),e.animationFrame=e.animationFrameScheduler}(vu);var Su={},_u=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Su.VirtualAction=Su.VirtualTimeScheduler=void 0;var xu=Ca,ju=Go,Eu=function(e){function t(t,r){void 0===t&&(t=Au),void 0===r&&(r=1/0);var n=e.call(this,t,(function(){return n.frame}))||this;return n.maxFrames=r,n.frame=0,n.index=-1,n}return _u(t,e),t.prototype.flush=function(){for(var e,t,r=this.actions,n=this.maxFrames;(t=r[0])&&t.delay<=n&&(r.shift(),this.frame=t.delay,!(e=t.execute(t.state,t.delay))););if(e){for(;t=r.shift();)t.unsubscribe();throw e}},t.frameTimeFactor=10,t}(Qa.AsyncScheduler);Su.VirtualTimeScheduler=Eu;var Au=function(e){function t(t,r,n){void 0===n&&(n=t.index+=1);var o=e.call(this,t,r)||this;return o.scheduler=t,o.work=r,o.index=n,o.active=!0,o.index=t.index=n,o}return _u(t,e),t.prototype.schedule=function(r,n){if(void 0===n&&(n=0),Number.isFinite(n)){if(!this.id)return e.prototype.schedule.call(this,r,n);this.active=!1;var o=new t(this.scheduler,this.work);return this.add(o),o.schedule(r,n)}return ju.Subscription.EMPTY},t.prototype.requestAsyncId=function(e,r,n){void 0===n&&(n=0),this.delay=e.frame+n;var o=e.actions;return o.push(this),o.sort(t.sortActions),!0},t.prototype.recycleAsyncId=function(e,t,r){},t.prototype._execute=function(t,r){if(!0===this.active)return e.prototype._execute.call(this,t,r)},t.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1},t}(xu.AsyncAction);Su.VirtualAction=Au;var Pu={},Tu={};!function(e){e.empty=e.EMPTY=void 0;var t=Jo;e.EMPTY=new t.Observable((function(e){return e.complete()})),e.empty=function(r){return r?function(e){return new t.Observable((function(t){return e.schedule((function(){return t.complete()}))}))}(r):e.EMPTY}}(Tu);var Iu={},ku={},Cu={isScheduler:void 0},Fu=Ko;Cu.isScheduler=function(e){return e&&Fu.isFunction(e.schedule)},ku.popNumber=ku.popScheduler=ku.popResultSelector=void 0;var Mu=Ko,Ru=Cu;function Nu(e){return e[e.length-1]}ku.popResultSelector=function(e){return Mu.isFunction(Nu(e))?e.pop():void 0},ku.popScheduler=function(e){return Ru.isScheduler(Nu(e))?e.pop():void 0},ku.popNumber=function(e,t){return"number"==typeof Nu(e)?e.pop():t};var Bu={},Lu={},zu={},Uu={},Wu={isArrayLike:void 0};Wu.isArrayLike=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};var qu={isPromise:void 0},Du=Ko;qu.isPromise=function(e){return Du.isFunction(null==e?void 0:e.then)};var Vu={isInteropObservable:void 0},$u=wi,Yu=Ko;Vu.isInteropObservable=function(e){return Yu.isFunction(e[$u.observable])};var Ju={isAsyncIterable:void 0},Hu=Ko;Ju.isAsyncIterable=function(e){return Symbol.asyncIterator&&Hu.isFunction(null==e?void 0:e[Symbol.asyncIterator])};var Ku={};Ku.createInvalidObservableTypeError=void 0,Ku.createInvalidObservableTypeError=function(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 Gu={},Qu={};function Xu(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}Qu.iterator=Qu.getSymbolIterator=void 0,Qu.getSymbolIterator=Xu,Qu.iterator=Xu(),Gu.isIterable=void 0;var Zu=Qu,ec=Ko;Gu.isIterable=function(e){return ec.isFunction(null==e?void 0:e[Zu.iterator])};var tc={},rc=n&&n.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},nc=n&&n.__await||function(e){return this instanceof nc?(this.v=e,this):new nc(e)},oc=n&&n.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){i.push([e,t,r,n])>1||u(e,t)}))})}function u(e,t){try{(r=o[e](t)).value instanceof nc?Promise.resolve(r.value.v).then(c,s):l(i[0][2],r)}catch(e){l(i[0][3],e)}var r}function c(e){u("next",e)}function s(e){u("throw",e)}function l(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}};tc.isReadableStreamLike=tc.readableStreamLikeToAsyncGenerator=void 0;var ic=Ko;tc.readableStreamLikeToAsyncGenerator=function(e){return oc(this,arguments,(function(){var t,r,n;return rc(this,(function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,nc(t.read())];case 3:return r=o.sent(),n=r.value,r.done?[4,nc(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,nc(n)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))},tc.isReadableStreamLike=function(e){return ic.isFunction(null==e?void 0:e.getReader)};var ac=n&&n.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}c((n=n.apply(e,t||[])).next())}))},uc=n&&n.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},cc=n&&n.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof sc?sc(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},sc=n&&n.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Uu.fromReadableStreamLike=Uu.fromAsyncIterable=Uu.fromIterable=Uu.fromPromise=Uu.fromArrayLike=Uu.fromInteropObservable=Uu.innerFrom=void 0;var lc=Wu,fc=qu,pc=Jo,dc=Vu,vc=Ju,bc=Ku,yc=Gu,hc=tc,mc=Ko,gc=li,wc=wi;function Oc(e){return new pc.Observable((function(t){var r=e[wc.observable]();if(mc.isFunction(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")}))}function Sc(e){return new pc.Observable((function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()}))}function _c(e){return new pc.Observable((function(t){e.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,gc.reportUnhandledError)}))}function xc(e){return new pc.Observable((function(t){var r,n;try{for(var o=sc(e),i=o.next();!i.done;i=o.next()){var a=i.value;if(t.next(a),t.closed)return}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}t.complete()}))}function jc(e){return new pc.Observable((function(t){(function(e,t){var r,n,o,i;return ac(this,void 0,void 0,(function(){var a,u;return uc(this,(function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=cc(e),c.label=1;case 1:return[4,r.next()];case 2:if((n=c.sent()).done)return[3,4];if(a=n.value,t.next(a),t.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return u=c.sent(),o={error:u},[3,11];case 6:return c.trys.push([6,,9,10]),n&&!n.done&&(i=r.return)?[4,i.call(r)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}}))}))})(e,t).catch((function(e){return t.error(e)}))}))}function Ec(e){return jc(hc.readableStreamLikeToAsyncGenerator(e))}Uu.innerFrom=function(e){if(e instanceof pc.Observable)return e;if(null!=e){if(dc.isInteropObservable(e))return Oc(e);if(lc.isArrayLike(e))return Sc(e);if(fc.isPromise(e))return _c(e);if(vc.isAsyncIterable(e))return jc(e);if(yc.isIterable(e))return xc(e);if(hc.isReadableStreamLike(e))return Ec(e)}throw bc.createInvalidObservableTypeError(e)},Uu.fromInteropObservable=Oc,Uu.fromArrayLike=Sc,Uu.fromPromise=_c,Uu.fromIterable=xc,Uu.fromAsyncIterable=jc,Uu.fromReadableStreamLike=Ec;var Ac={},Pc={};Pc.executeSchedule=void 0,Pc.executeSchedule=function(e,t,r,n,o){void 0===n&&(n=0),void 0===o&&(o=!1);var i=t.schedule((function(){r(),o?e.add(this.schedule(null,n)):this.unsubscribe()}),n);if(e.add(i),!o)return i},Ac.observeOn=void 0;var Tc=Pc,Ic=Ni,kc=Ui;Ac.observeOn=function(e,t){return void 0===t&&(t=0),Ic.operate((function(r,n){r.subscribe(kc.createOperatorSubscriber(n,(function(r){return Tc.executeSchedule(n,e,(function(){return n.next(r)}),t)}),(function(){return Tc.executeSchedule(n,e,(function(){return n.complete()}),t)}),(function(r){return Tc.executeSchedule(n,e,(function(){return n.error(r)}),t)})))}))};var Cc={subscribeOn:void 0},Fc=Ni;Cc.subscribeOn=function(e,t){return void 0===t&&(t=0),Fc.operate((function(r,n){n.add(e.schedule((function(){return r.subscribe(n)}),t))}))},zu.scheduleObservable=void 0;var Mc=Uu,Rc=Ac,Nc=Cc;zu.scheduleObservable=function(e,t){return Mc.innerFrom(e).pipe(Nc.subscribeOn(t),Rc.observeOn(t))};var Bc={schedulePromise:void 0},Lc=Uu,zc=Ac,Uc=Cc;Bc.schedulePromise=function(e,t){return Lc.innerFrom(e).pipe(Uc.subscribeOn(t),zc.observeOn(t))};var Wc={scheduleArray:void 0},qc=Jo;Wc.scheduleArray=function(e,t){return new qc.Observable((function(r){var n=0;return t.schedule((function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())}))}))};var Dc={scheduleIterable:void 0},Vc=Jo,$c=Qu,Yc=Ko,Jc=Pc;Dc.scheduleIterable=function(e,t){return new Vc.Observable((function(r){var n;return Jc.executeSchedule(r,t,(function(){n=e[$c.iterator](),Jc.executeSchedule(r,t,(function(){var e,t,o;try{t=(e=n.next()).value,o=e.done}catch(e){return void r.error(e)}o?r.complete():r.next(t)}),0,!0)})),function(){return Yc.isFunction(null==n?void 0:n.return)&&n.return()}}))};var Hc={scheduleAsyncIterable:void 0},Kc=Jo,Gc=Pc;Hc.scheduleAsyncIterable=function(e,t){if(!e)throw new Error("Iterable cannot be null");return new Kc.Observable((function(r){Gc.executeSchedule(r,t,(function(){var n=e[Symbol.asyncIterator]();Gc.executeSchedule(r,t,(function(){n.next().then((function(e){e.done?r.complete():r.next(e.value)}))}),0,!0)}))}))};var Qc={scheduleReadableStreamLike:void 0},Xc=Hc,Zc=tc;Qc.scheduleReadableStreamLike=function(e,t){return Xc.scheduleAsyncIterable(Zc.readableStreamLikeToAsyncGenerator(e),t)},Lu.scheduled=void 0;var es=zu,ts=Bc,rs=Wc,ns=Dc,os=Hc,is=Vu,as=qu,us=Wu,cs=Gu,ss=Ju,ls=Ku,fs=tc,ps=Qc;Lu.scheduled=function(e,t){if(null!=e){if(is.isInteropObservable(e))return es.scheduleObservable(e,t);if(us.isArrayLike(e))return rs.scheduleArray(e,t);if(as.isPromise(e))return ts.schedulePromise(e,t);if(ss.isAsyncIterable(e))return os.scheduleAsyncIterable(e,t);if(cs.isIterable(e))return ns.scheduleIterable(e,t);if(fs.isReadableStreamLike(e))return ps.scheduleReadableStreamLike(e,t)}throw ls.createInvalidObservableTypeError(e)},Bu.from=void 0;var ds=Lu,vs=Uu;Bu.from=function(e,t){return t?ds.scheduled(e,t):vs.innerFrom(e)},Iu.of=void 0;var bs=ku,ys=Bu;Iu.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=bs.popScheduler(e);return ys.from(e,r)};var hs={throwError:void 0},ms=Jo,gs=Ko;hs.throwError=function(e,t){var r=gs.isFunction(e)?e:function(){return e},n=function(e){return e.error(r())};return new ms.Observable(t?function(e){return t.schedule(n,0,e)}:n)},function(e){e.observeNotification=e.Notification=e.NotificationKind=void 0;var t,r=Tu,n=Iu,o=hs,i=Ko;(t=e.NotificationKind||(e.NotificationKind={})).NEXT="N",t.ERROR="E",t.COMPLETE="C";var a=function(){function e(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}return e.prototype.observe=function(e){return u(this,e)},e.prototype.do=function(e,t,r){var n=this,o=n.kind,i=n.value,a=n.error;return"N"===o?null==e?void 0:e(i):"E"===o?null==t?void 0:t(a):null==r?void 0:r()},e.prototype.accept=function(e,t,r){var n;return i.isFunction(null===(n=e)||void 0===n?void 0:n.next)?this.observe(e):this.do(e,t,r)},e.prototype.toObservable=function(){var e=this,t=e.kind,i=e.value,a=e.error,u="N"===t?n.of(i):"E"===t?o.throwError((function(){return a})):"C"===t?r.EMPTY:0;if(!u)throw new TypeError("Unexpected notification kind "+t);return u},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();function u(e,t){var r,n,o,i=e,a=i.kind,u=i.value,c=i.error;if("string"!=typeof a)throw new TypeError('Invalid notification, missing "kind"');"N"===a?null===(r=t.next)||void 0===r||r.call(t,u):"E"===a?null===(n=t.error)||void 0===n||n.call(t,c):null===(o=t.complete)||void 0===o||o.call(t)}e.Notification=a,e.observeNotification=u}(Pu);var ws={isObservable:void 0},Os=Jo,Ss=Ko;ws.isObservable=function(e){return!!e&&(e instanceof Os.Observable||Ss.isFunction(e.lift)&&Ss.isFunction(e.subscribe))};var _s={},xs={EmptyError:void 0},js=Xo;xs.EmptyError=js.createErrorClass((function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}})),_s.lastValueFrom=void 0;var Es=xs;_s.lastValueFrom=function(e,t){var r="object"==typeof t;return new Promise((function(n,o){var i,a=!1;e.subscribe({next:function(e){i=e,a=!0},error:o,complete:function(){a?n(i):r?n(t.defaultValue):o(new Es.EmptyError)}})}))};var As={firstValueFrom:void 0},Ps=xs,Ts=Ho;As.firstValueFrom=function(e,t){var r="object"==typeof t;return new Promise((function(n,o){var i=new Ts.SafeSubscriber({next:function(e){n(e),i.unsubscribe()},error:o,complete:function(){r?n(t.defaultValue):o(new Ps.EmptyError)}});e.subscribe(i)}))};var Is={ArgumentOutOfRangeError:void 0},ks=Xo;Is.ArgumentOutOfRangeError=ks.createErrorClass((function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}}));var Cs={NotFoundError:void 0},Fs=Xo;Cs.NotFoundError=Fs.createErrorClass((function(e){return function(t){e(this),this.name="NotFoundError",this.message=t}}));var Ms={SequenceError:void 0},Rs=Xo;Ms.SequenceError=Rs.createErrorClass((function(e){return function(t){e(this),this.name="SequenceError",this.message=t}}));var Ns={},Bs={};Bs.isValidDate=void 0,Bs.isValidDate=function(e){return e instanceof Date&&!isNaN(e)},function(e){e.timeout=e.TimeoutError=void 0;var t=au,r=Bs,n=Ni,o=Uu,i=Xo,a=Ui,u=Pc;function c(t){throw new e.TimeoutError(t)}e.TimeoutError=i.createErrorClass((function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}})),e.timeout=function(e,i){var s=r.isValidDate(e)?{first:e}:"number"==typeof e?{each:e}:e,l=s.first,f=s.each,p=s.with,d=void 0===p?c:p,v=s.scheduler,b=void 0===v?null!=i?i:t.asyncScheduler:v,y=s.meta,h=void 0===y?null:y;if(null==l&&null==f)throw new TypeError("No timeout provided.");return n.operate((function(e,t){var r,n,i=null,c=0,s=function(e){n=u.executeSchedule(t,b,(function(){try{r.unsubscribe(),o.innerFrom(d({meta:h,lastValue:i,seen:c})).subscribe(t)}catch(e){t.error(e)}}),e)};r=e.subscribe(a.createOperatorSubscriber(t,(function(e){null==n||n.unsubscribe(),c++,t.next(i=e),f>0&&s(f)}),void 0,void 0,(function(){(null==n?void 0:n.closed)||null==n||n.unsubscribe(),i=null}))),!c&&s(null!=l?"number"==typeof l?l:+l-b.now():f)}))}}(Ns);var Ls={},zs={},Us={},Ws={map:void 0},qs=Ni,Ds=Ui;Ws.map=function(e,t){return qs.operate((function(r,n){var o=0;r.subscribe(Ds.createOperatorSubscriber(n,(function(r){n.next(e.call(t,r,o++))})))}))};var Vs=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},$s=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Us.mapOneOrManyArgs=void 0;var Ys=Ws,Js=Array.isArray;Us.mapOneOrManyArgs=function(e){return Ys.map((function(t){return function(e,t){return Js(t)?e.apply(void 0,$s([],Vs(t))):e(t)}(e,t)}))};var Hs=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Ks=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};zs.bindCallbackInternals=void 0;var Gs=Cu,Qs=Jo,Xs=Cc,Zs=Us,el=Ac,tl=Aa;zs.bindCallbackInternals=function e(t,r,n,o){if(n){if(!Gs.isScheduler(n))return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];return e(t,r,o).apply(this,i).pipe(Zs.mapOneOrManyArgs(n))};o=n}return o?function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return e(t,r).apply(this,n).pipe(Xs.subscribeOn(o),el.observeOn(o))}:function(){for(var e=this,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=new tl.AsyncSubject,a=!0;return new Qs.Observable((function(o){var u=i.subscribe(o);if(a){a=!1;var c=!1,s=!1;r.apply(e,Ks(Ks([],Hs(n)),[function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(t){var n=e.shift();if(null!=n)return void i.error(n)}i.next(1<e.length?e:e[0]),s=!0,c&&i.complete()}])),s&&i.complete(),c=!0}return u}))}},Ls.bindCallback=void 0;var rl=zs;Ls.bindCallback=function(e,t,r){return rl.bindCallbackInternals(!1,e,t,r)};var nl={bindNodeCallback:void 0},ol=zs;nl.bindNodeCallback=function(e,t,r){return ol.bindCallbackInternals(!0,e,t,r)};var il={},al={argsArgArrayOrObject:void 0},ul=Array.isArray,cl=Object.getPrototypeOf,sl=Object.prototype,ll=Object.keys;al.argsArgArrayOrObject=function(e){if(1===e.length){var t=e[0];if(ul(t))return{args:t,keys:null};if((n=t)&&"object"==typeof n&&cl(n)===sl){var r=ll(t);return{args:r.map((function(e){return t[e]})),keys:r}}}var n;return{args:e,keys:null}};var fl={};fl.createObject=void 0,fl.createObject=function(e,t){return e.reduce((function(e,r,n){return e[r]=t[n],e}),{})},il.combineLatestInit=il.combineLatest=void 0;var pl=Jo,dl=al,vl=Bu,bl=Si,yl=Us,hl=ku,ml=fl,gl=Ui,wl=Pc;function Ol(e,t,r){return void 0===r&&(r=bl.identity),function(n){Sl(t,(function(){for(var o=e.length,i=new Array(o),a=o,u=o,c=function(o){Sl(t,(function(){var c=vl.from(e[o],t),s=!1;c.subscribe(gl.createOperatorSubscriber(n,(function(e){i[o]=e,s||(s=!0,u--),u||n.next(r(i.slice()))}),(function(){--a||n.complete()})))}),n)},s=0;s<o;s++)c(s)}),n)}}function Sl(e,t,r){e?wl.executeSchedule(r,e,t):t()}il.combineLatest=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=hl.popScheduler(e),n=hl.popResultSelector(e),o=dl.argsArgArrayOrObject(e),i=o.args,a=o.keys;if(0===i.length)return vl.from([],r);var u=new pl.Observable(Ol(i,r,a?function(e){return ml.createObject(a,e)}:bl.identity));return n?u.pipe(yl.mapOneOrManyArgs(n)):u},il.combineLatestInit=Ol;var _l={},xl={},jl={},El={},Al={mergeInternals:void 0},Pl=Uu,Tl=Pc,Il=Ui;Al.mergeInternals=function(e,t,r,n,o,i,a,u){var c=[],s=0,l=0,f=!1,p=function(){!f||c.length||s||t.complete()},d=function(e){return s<n?v(e):c.push(e)},v=function(e){i&&t.next(e),s++;var u=!1;Pl.innerFrom(r(e,l++)).subscribe(Il.createOperatorSubscriber(t,(function(e){null==o||o(e),i?d(e):t.next(e)}),(function(){u=!0}),void 0,(function(){if(u)try{s--;for(var e=function(){var e=c.shift();a?Tl.executeSchedule(t,a,(function(){return v(e)})):v(e)};c.length&&s<n;)e();p()}catch(e){t.error(e)}})))};return e.subscribe(Il.createOperatorSubscriber(t,d,(function(){f=!0,p()}))),function(){null==u||u()}},El.mergeMap=void 0;var kl=Ws,Cl=Uu,Fl=Ni,Ml=Al,Rl=Ko;El.mergeMap=function e(t,r,n){return void 0===n&&(n=1/0),Rl.isFunction(r)?e((function(e,n){return kl.map((function(t,o){return r(e,t,n,o)}))(Cl.innerFrom(t(e,n)))}),n):("number"==typeof r&&(n=r),Fl.operate((function(e,r){return Ml.mergeInternals(e,r,t,n)})))},jl.mergeAll=void 0;var Nl=El,Bl=Si;jl.mergeAll=function(e){return void 0===e&&(e=1/0),Nl.mergeMap(Bl.identity,e)},xl.concatAll=void 0;var Ll=jl;xl.concatAll=function(){return Ll.mergeAll(1)},_l.concat=void 0;var zl=xl,Ul=ku,Wl=Bu;_l.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return zl.concatAll()(Wl.from(e,Ul.popScheduler(e)))};var ql={},Dl={defer:void 0},Vl=Jo,$l=Uu;Dl.defer=function(e){return new Vl.Observable((function(t){$l.innerFrom(e()).subscribe(t)}))},ql.connectable=void 0;var Yl=ua,Jl=Jo,Hl=Dl,Kl={connector:function(){return new Yl.Subject},resetOnDisconnect:!0};ql.connectable=function(e,t){void 0===t&&(t=Kl);var r=null,n=t.connector,o=t.resetOnDisconnect,i=void 0===o||o,a=n(),u=new Jl.Observable((function(e){return a.subscribe(e)}));return u.connect=function(){return r&&!r.closed||(r=Hl.defer((function(){return e})).subscribe(a),i&&r.add((function(){return a=n()}))),r},u};var Gl={forkJoin:void 0},Ql=Jo,Xl=al,Zl=Uu,ef=ku,tf=Ui,rf=Us,nf=fl;Gl.forkJoin=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ef.popResultSelector(e),n=Xl.argsArgArrayOrObject(e),o=n.args,i=n.keys,a=new Ql.Observable((function(e){var t=o.length;if(t)for(var r=new Array(t),n=t,a=t,u=function(t){var u=!1;Zl.innerFrom(o[t]).subscribe(tf.createOperatorSubscriber(e,(function(e){u||(u=!0,a--),r[t]=e}),(function(){return n--}),void 0,(function(){n&&u||(a||e.next(i?nf.createObject(i,r):r),e.complete())})))},c=0;c<t;c++)u(c);else e.complete()}));return r?a.pipe(rf.mapOneOrManyArgs(r)):a};var of={},af=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};of.fromEvent=void 0;var uf=Uu,cf=Jo,sf=El,lf=Wu,ff=Ko,pf=Us,df=["addListener","removeListener"],vf=["addEventListener","removeEventListener"],bf=["on","off"];function yf(e,t){return function(r){return function(n){return e[r](t,n)}}}of.fromEvent=function e(t,r,n,o){if(ff.isFunction(n)&&(o=n,n=void 0),o)return e(t,r,n).pipe(pf.mapOneOrManyArgs(o));var i=af(function(e){return ff.isFunction(e.addEventListener)&&ff.isFunction(e.removeEventListener)}(t)?vf.map((function(e){return function(o){return t[e](r,o,n)}})):function(e){return ff.isFunction(e.addListener)&&ff.isFunction(e.removeListener)}(t)?df.map(yf(t,r)):function(e){return ff.isFunction(e.on)&&ff.isFunction(e.off)}(t)?bf.map(yf(t,r)):[],2),a=i[0],u=i[1];if(!a&&lf.isArrayLike(t))return sf.mergeMap((function(t){return e(t,r,n)}))(uf.innerFrom(t));if(!a)throw new TypeError("Invalid event target");return new cf.Observable((function(e){var t=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.next(1<t.length?t:t[0])};return a(t),function(){return u(t)}}))};var hf={fromEventPattern:void 0},mf=Jo,gf=Ko,wf=Us;hf.fromEventPattern=function e(t,r,n){return n?e(t,r).pipe(wf.mapOneOrManyArgs(n)):new mf.Observable((function(e){var n=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.next(1===t.length?t[0]:t)},o=t(n);return gf.isFunction(r)?function(){return r(n,o)}:void 0}))};var Of={},Sf=n&&n.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Of.generate=void 0;var _f=Si,xf=Cu,jf=Dl,Ef=Dc;Of.generate=function(e,t,r,n,o){var i,a,u,c;function s(){var e;return Sf(this,(function(n){switch(n.label){case 0:e=c,n.label=1;case 1:return t&&!t(e)?[3,4]:[4,u(e)];case 2:n.sent(),n.label=3;case 3:return e=r(e),[3,1];case 4:return[2]}}))}return 1===arguments.length?(c=(i=e).initialState,t=i.condition,r=i.iterate,a=i.resultSelector,u=void 0===a?_f.identity:a,o=i.scheduler):(c=e,!n||xf.isScheduler(n)?(u=_f.identity,o=n):u=n),jf.defer(o?function(){return Ef.scheduleIterable(s(),o)}:s)};var Af={iif:void 0},Pf=Dl;Af.iif=function(e,t,r){return Pf.defer((function(){return e()?t:r}))};var Tf={},If={timer:void 0},kf=Jo,Cf=au,Ff=Cu,Mf=Bs;If.timer=function(e,t,r){void 0===e&&(e=0),void 0===r&&(r=Cf.async);var n=-1;return null!=t&&(Ff.isScheduler(t)?r=t:n=t),new kf.Observable((function(t){var o=Mf.isValidDate(e)?+e-r.now():e;o<0&&(o=0);var i=0;return r.schedule((function(){t.closed||(t.next(i++),0<=n?this.schedule(void 0,n):t.complete())}),o)}))},Tf.interval=void 0;var Rf=au,Nf=If;Tf.interval=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=Rf.asyncScheduler),e<0&&(e=0),Nf.timer(e,e,t)};var Bf={merge:void 0},Lf=jl,zf=Uu,Uf=Tu,Wf=ku,qf=Bu;Bf.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Wf.popScheduler(e),n=Wf.popNumber(e,1/0),o=e;return o.length?1===o.length?zf.innerFrom(o[0]):Lf.mergeAll(n)(qf.from(o,r)):Uf.EMPTY};var Df={};!function(e){e.never=e.NEVER=void 0;var t=Jo,r=vi;e.NEVER=new t.Observable(r.noop),e.never=function(){return e.NEVER}}(Df);var Vf={},$f={},Yf={argsOrArgArray:void 0},Jf=Array.isArray;Yf.argsOrArgArray=function(e){return 1===e.length&&Jf(e[0])?e[0]:e};var Hf=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Kf=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};$f.onErrorResumeNext=void 0;var Gf=Ni,Qf=Uu,Xf=Yf,Zf=Ui,ep=vi;$f.onErrorResumeNext=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Xf.argsOrArgArray(e);return Gf.operate((function(e,t){var n=Kf([e],Hf(r)),o=function(){if(!t.closed)if(n.length>0){var e=void 0;try{e=Qf.innerFrom(n.shift())}catch(e){return void o()}var r=Zf.createOperatorSubscriber(t,void 0,ep.noop,ep.noop);e.subscribe(r),r.add(o)}else t.complete()};o()}))},Vf.onErrorResumeNext=void 0;var tp=Tu,rp=$f,np=Yf;Vf.onErrorResumeNext=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return rp.onErrorResumeNext(np.argsOrArgArray(e))(tp.EMPTY)};var op={pairs:void 0},ip=Bu;op.pairs=function(e,t){return ip.from(Object.entries(e),t)};var ap={},up={};up.not=void 0,up.not=function(e,t){return function(r,n){return!e.call(t,r,n)}};var cp={filter:void 0},sp=Ni,lp=Ui;cp.filter=function(e,t){return sp.operate((function(r,n){var o=0;r.subscribe(lp.createOperatorSubscriber(n,(function(r){return e.call(t,r,o++)&&n.next(r)})))}))},ap.partition=void 0;var fp=up,pp=cp,dp=Uu;ap.partition=function(e,t,r){return[pp.filter(t,r)(dp.innerFrom(e)),pp.filter(fp.not(t,r))(dp.innerFrom(e))]};var vp={};vp.raceInit=vp.race=void 0;var bp=Jo,yp=Uu,hp=Yf,mp=Ui;function gp(e){return function(t){for(var r=[],n=function(n){r.push(yp.innerFrom(e[n]).subscribe(mp.createOperatorSubscriber(t,(function(e){if(r){for(var o=0;o<r.length;o++)o!==n&&r[o].unsubscribe();r=null}t.next(e)}))))},o=0;r&&!t.closed&&o<e.length;o++)n(o)}}vp.race=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===(e=hp.argsOrArgArray(e)).length?yp.innerFrom(e[0]):new bp.Observable(gp(e))},vp.raceInit=gp;var wp={range:void 0},Op=Jo,Sp=Tu;wp.range=function(e,t,r){if(null==t&&(t=e,e=0),t<=0)return Sp.EMPTY;var n=t+e;return new Op.Observable(r?function(t){var o=e;return r.schedule((function(){o<n?(t.next(o++),this.schedule()):t.complete()}))}:function(t){for(var r=e;r<n&&!t.closed;)t.next(r++);t.complete()})};var _p={using:void 0},xp=Jo,jp=Uu,Ep=Tu;_p.using=function(e,t){return new xp.Observable((function(r){var n=e(),o=t(n);return(o?jp.innerFrom(o):Ep.EMPTY).subscribe(r),function(){n&&n.unsubscribe()}}))};var Ap={},Pp=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Tp=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Ap.zip=void 0;var Ip=Jo,kp=Uu,Cp=Yf,Fp=Tu,Mp=Ui,Rp=ku;Ap.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Rp.popResultSelector(e),n=Cp.argsOrArgArray(e);return n.length?new Ip.Observable((function(e){var t=n.map((function(){return[]})),o=n.map((function(){return!1}));e.add((function(){t=o=null}));for(var i=function(i){kp.innerFrom(n[i]).subscribe(Mp.createOperatorSubscriber(e,(function(n){if(t[i].push(n),t.every((function(e){return e.length}))){var a=t.map((function(e){return e.shift()}));e.next(r?r.apply(void 0,Tp([],Pp(a))):a),t.some((function(e,t){return!e.length&&o[t]}))&&e.complete()}}),(function(){o[i]=!0,!t[i].length&&e.complete()})))},a=0;!e.closed&&a<n.length;a++)i(a);return function(){t=o=null}})):Fp.EMPTY};var Np={},Bp={audit:void 0},Lp=Ni,zp=Uu,Up=Ui;Bp.audit=function(e){return Lp.operate((function(t,r){var n=!1,o=null,i=null,a=!1,u=function(){if(null==i||i.unsubscribe(),i=null,n){n=!1;var e=o;o=null,r.next(e)}a&&r.complete()},c=function(){i=null,a&&r.complete()};t.subscribe(Up.createOperatorSubscriber(r,(function(t){n=!0,o=t,i||zp.innerFrom(e(t)).subscribe(i=Up.createOperatorSubscriber(r,u,c))}),(function(){a=!0,(!n||!i||i.closed)&&r.complete()})))}))};var Wp={auditTime:void 0},qp=au,Dp=Bp,Vp=If;Wp.auditTime=function(e,t){return void 0===t&&(t=qp.asyncScheduler),Dp.audit((function(){return Vp.timer(e,t)}))};var $p={buffer:void 0},Yp=Ni,Jp=vi,Hp=Ui;$p.buffer=function(e){return Yp.operate((function(t,r){var n=[];return t.subscribe(Hp.createOperatorSubscriber(r,(function(e){return n.push(e)}),(function(){r.next(n),r.complete()}))),e.subscribe(Hp.createOperatorSubscriber(r,(function(){var e=n;n=[],r.next(e)}),Jp.noop)),function(){n=null}}))};var Kp={},Gp=n&&n.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Kp.bufferCount=void 0;var Qp=Ni,Xp=Ui,Zp=ei;Kp.bufferCount=function(e,t){return void 0===t&&(t=null),t=null!=t?t:e,Qp.operate((function(r,n){var o=[],i=0;r.subscribe(Xp.createOperatorSubscriber(n,(function(r){var a,u,c,s,l=null;i++%t==0&&o.push([]);try{for(var f=Gp(o),p=f.next();!p.done;p=f.next()){(b=p.value).push(r),e<=b.length&&(l=null!=l?l:[]).push(b)}}catch(e){a={error:e}}finally{try{p&&!p.done&&(u=f.return)&&u.call(f)}finally{if(a)throw a.error}}if(l)try{for(var d=Gp(l),v=d.next();!v.done;v=d.next()){var b=v.value;Zp.arrRemove(o,b),n.next(b)}}catch(e){c={error:e}}finally{try{v&&!v.done&&(s=d.return)&&s.call(d)}finally{if(c)throw c.error}}}),(function(){var e,t;try{for(var r=Gp(o),i=r.next();!i.done;i=r.next()){var a=i.value;n.next(a)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}n.complete()}),void 0,(function(){o=null})))}))};var ed={},td=n&&n.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};ed.bufferTime=void 0;var rd=Go,nd=Ni,od=Ui,id=ei,ad=au,ud=ku,cd=Pc;ed.bufferTime=function(e){for(var t,r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i=null!==(t=ud.popScheduler(n))&&void 0!==t?t:ad.asyncScheduler,a=null!==(r=n[0])&&void 0!==r?r:null,u=n[1]||1/0;return nd.operate((function(t,r){var n=[],o=!1,c=function(e){var t=e.buffer;e.subs.unsubscribe(),id.arrRemove(n,e),r.next(t),o&&s()},s=function(){if(n){var t=new rd.Subscription;r.add(t);var o={buffer:[],subs:t};n.push(o),cd.executeSchedule(t,i,(function(){return c(o)}),e)}};null!==a&&a>=0?cd.executeSchedule(r,i,s,a,!0):o=!0,s();var l=od.createOperatorSubscriber(r,(function(e){var t,r,o=n.slice();try{for(var i=td(o),a=i.next();!a.done;a=i.next()){var s=a.value,l=s.buffer;l.push(e),u<=l.length&&c(s)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}}),(function(){for(;null==n?void 0:n.length;)r.next(n.shift().buffer);null==l||l.unsubscribe(),r.complete(),r.unsubscribe()}),void 0,(function(){return n=null}));t.subscribe(l)}))};var sd={},ld=n&&n.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};sd.bufferToggle=void 0;var fd=Go,pd=Ni,dd=Uu,vd=Ui,bd=vi,yd=ei;sd.bufferToggle=function(e,t){return pd.operate((function(r,n){var o=[];dd.innerFrom(e).subscribe(vd.createOperatorSubscriber(n,(function(e){var r=[];o.push(r);var i=new fd.Subscription;i.add(dd.innerFrom(t(e)).subscribe(vd.createOperatorSubscriber(n,(function(){yd.arrRemove(o,r),n.next(r),i.unsubscribe()}),bd.noop)))}),bd.noop)),r.subscribe(vd.createOperatorSubscriber(n,(function(e){var t,r;try{for(var n=ld(o),i=n.next();!i.done;i=n.next()){i.value.push(e)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}}),(function(){for(;o.length>0;)n.next(o.shift());n.complete()})))}))};var hd={bufferWhen:void 0},md=Ni,gd=vi,wd=Ui,Od=Uu;hd.bufferWhen=function(e){return md.operate((function(t,r){var n=null,o=null,i=function(){null==o||o.unsubscribe();var t=n;n=[],t&&r.next(t),Od.innerFrom(e()).subscribe(o=wd.createOperatorSubscriber(r,i,gd.noop))};i(),t.subscribe(wd.createOperatorSubscriber(r,(function(e){return null==n?void 0:n.push(e)}),(function(){n&&r.next(n),r.complete()}),void 0,(function(){return n=o=null})))}))};var Sd={catchError:void 0},_d=Uu,xd=Ui,jd=Ni;Sd.catchError=function e(t){return jd.operate((function(r,n){var o,i=null,a=!1;i=r.subscribe(xd.createOperatorSubscriber(n,void 0,void 0,(function(u){o=_d.innerFrom(t(u,e(t)(r))),i?(i.unsubscribe(),i=null,o.subscribe(n)):a=!0}))),a&&(i.unsubscribe(),i=null,o.subscribe(n))}))};var Ed={},Ad={},Pd={},Td={},Id={},kd={scanInternals:void 0},Cd=Ui;kd.scanInternals=function(e,t,r,n,o){return function(i,a){var u=r,c=t,s=0;i.subscribe(Cd.createOperatorSubscriber(a,(function(t){var r=s++;c=u?e(c,t,r):(u=!0,t),n&&a.next(c)}),o&&function(){u&&a.next(c),a.complete()}))}},Id.reduce=void 0;var Fd=kd,Md=Ni;Id.reduce=function(e,t){return Md.operate(Fd.scanInternals(e,t,arguments.length>=2,!1,!0))},Td.toArray=void 0;var Rd=Id,Nd=Ni,Bd=function(e,t){return e.push(t),e};Td.toArray=function(){return Nd.operate((function(e,t){Rd.reduce(Bd,[])(e).subscribe(t)}))},Pd.joinAllInternals=void 0;var Ld=Si,zd=Us,Ud=Oi,Wd=El,qd=Td;Pd.joinAllInternals=function(e,t){return Ud.pipe(qd.toArray(),Wd.mergeMap((function(t){return e(t)})),t?zd.mapOneOrManyArgs(t):Ld.identity)},Ad.combineLatestAll=void 0;var Dd=il,Vd=Pd;Ad.combineLatestAll=function(e){return Vd.joinAllInternals(Dd.combineLatest,e)},Ed.combineAll=void 0;var $d=Ad;Ed.combineAll=$d.combineLatestAll;var Yd={},Jd={},Hd=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Kd=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Jd.combineLatest=void 0;var Gd=il,Qd=Ni,Xd=Yf,Zd=Us,ev=Oi,tv=ku;Jd.combineLatest=function e(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=tv.popResultSelector(t);return n?ev.pipe(e.apply(void 0,Kd([],Hd(t))),Zd.mapOneOrManyArgs(n)):Qd.operate((function(e,r){Gd.combineLatestInit(Kd([e],Hd(Xd.argsOrArgArray(t))))(r)}))};var rv=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},nv=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Yd.combineLatestWith=void 0;var ov=Jd;Yd.combineLatestWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ov.combineLatest.apply(void 0,nv([],rv(e)))};var iv={concatMap:void 0},av=El,uv=Ko;iv.concatMap=function(e,t){return uv.isFunction(t)?av.mergeMap(e,t,1):av.mergeMap(e,1)};var cv={concatMapTo:void 0},sv=iv,lv=Ko;cv.concatMapTo=function(e,t){return lv.isFunction(t)?sv.concatMap((function(){return e}),t):sv.concatMap((function(){return e}))};var fv={},pv={},dv=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},vv=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};pv.concat=void 0;var bv=Ni,yv=xl,hv=ku,mv=Bu;pv.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=hv.popScheduler(e);return bv.operate((function(t,n){yv.concatAll()(mv.from(vv([t],dv(e)),r)).subscribe(n)}))};var gv=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},wv=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};fv.concatWith=void 0;var Ov=pv;fv.concatWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ov.concat.apply(void 0,wv([],gv(e)))};var Sv={},_v={fromSubscribable:void 0},xv=Jo;_v.fromSubscribable=function(e){return new xv.Observable((function(t){return e.subscribe(t)}))},Sv.connect=void 0;var jv=ua,Ev=Bu,Av=Ni,Pv=_v,Tv={connector:function(){return new jv.Subject}};Sv.connect=function(e,t){void 0===t&&(t=Tv);var r=t.connector;return Av.operate((function(t,n){var o=r();Ev.from(e(Pv.fromSubscribable(o))).subscribe(n),n.add(t.subscribe(o))}))};var Iv={count:void 0},kv=Id;Iv.count=function(e){return kv.reduce((function(t,r,n){return!e||e(r,n)?t+1:t}),0)};var Cv={debounce:void 0},Fv=Ni,Mv=vi,Rv=Ui,Nv=Uu;Cv.debounce=function(e){return Fv.operate((function(t,r){var n=!1,o=null,i=null,a=function(){if(null==i||i.unsubscribe(),i=null,n){n=!1;var e=o;o=null,r.next(e)}};t.subscribe(Rv.createOperatorSubscriber(r,(function(t){null==i||i.unsubscribe(),n=!0,o=t,i=Rv.createOperatorSubscriber(r,a,Mv.noop),Nv.innerFrom(e(t)).subscribe(i)}),(function(){a(),r.complete()}),void 0,(function(){o=i=null})))}))};var Bv={debounceTime:void 0},Lv=au,zv=Ni,Uv=Ui;Bv.debounceTime=function(e,t){return void 0===t&&(t=Lv.asyncScheduler),zv.operate((function(r,n){var o=null,i=null,a=null,u=function(){if(o){o.unsubscribe(),o=null;var e=i;i=null,n.next(e)}};function c(){var r=a+e,i=t.now();if(i<r)return o=this.schedule(void 0,r-i),void n.add(o);u()}r.subscribe(Uv.createOperatorSubscriber(n,(function(r){i=r,a=t.now(),o||(o=t.schedule(c,e),n.add(o))}),(function(){u(),n.complete()}),void 0,(function(){i=o=null})))}))};var Wv={defaultIfEmpty:void 0},qv=Ni,Dv=Ui;Wv.defaultIfEmpty=function(e){return qv.operate((function(t,r){var n=!1;t.subscribe(Dv.createOperatorSubscriber(r,(function(e){n=!0,r.next(e)}),(function(){n||r.next(e),r.complete()})))}))};var Vv={},$v={},Yv={take:void 0},Jv=Tu,Hv=Ni,Kv=Ui;Yv.take=function(e){return e<=0?function(){return Jv.EMPTY}:Hv.operate((function(t,r){var n=0;t.subscribe(Kv.createOperatorSubscriber(r,(function(t){++n<=e&&(r.next(t),e<=n&&r.complete())})))}))};var Gv={ignoreElements:void 0},Qv=Ni,Xv=Ui,Zv=vi;Gv.ignoreElements=function(){return Qv.operate((function(e,t){e.subscribe(Xv.createOperatorSubscriber(t,Zv.noop))}))};var eb={mapTo:void 0},tb=Ws;eb.mapTo=function(e){return tb.map((function(){return e}))},$v.delayWhen=void 0;var rb=_l,nb=Yv,ob=Gv,ib=eb,ab=El;$v.delayWhen=function e(t,r){return r?function(n){return rb.concat(r.pipe(nb.take(1),ob.ignoreElements()),n.pipe(e(t)))}:ab.mergeMap((function(e,r){return t(e,r).pipe(nb.take(1),ib.mapTo(e))}))},Vv.delay=void 0;var ub=au,cb=$v,sb=If;Vv.delay=function(e,t){void 0===t&&(t=ub.asyncScheduler);var r=sb.timer(e,t);return cb.delayWhen((function(){return r}))};var lb={dematerialize:void 0},fb=Pu,pb=Ni,db=Ui;lb.dematerialize=function(){return pb.operate((function(e,t){e.subscribe(db.createOperatorSubscriber(t,(function(e){return fb.observeNotification(e,t)})))}))};var vb={distinct:void 0},bb=Ni,yb=Ui,hb=vi;vb.distinct=function(e,t){return bb.operate((function(r,n){var o=new Set;r.subscribe(yb.createOperatorSubscriber(n,(function(t){var r=e?e(t):t;o.has(r)||(o.add(r),n.next(t))}))),null==t||t.subscribe(yb.createOperatorSubscriber(n,(function(){return o.clear()}),hb.noop))}))};var mb={distinctUntilChanged:void 0},gb=Si,wb=Ni,Ob=Ui;function Sb(e,t){return e===t}mb.distinctUntilChanged=function(e,t){return void 0===t&&(t=gb.identity),e=null!=e?e:Sb,wb.operate((function(r,n){var o,i=!0;r.subscribe(Ob.createOperatorSubscriber(n,(function(r){var a=t(r);!i&&e(o,a)||(i=!1,o=a,n.next(r))})))}))};var _b={distinctUntilKeyChanged:void 0},xb=mb;_b.distinctUntilKeyChanged=function(e,t){return xb.distinctUntilChanged((function(r,n){return t?t(r[e],n[e]):r[e]===n[e]}))};var jb={},Eb={throwIfEmpty:void 0},Ab=xs,Pb=Ni,Tb=Ui;function Ib(){return new Ab.EmptyError}Eb.throwIfEmpty=function(e){return void 0===e&&(e=Ib),Pb.operate((function(t,r){var n=!1;t.subscribe(Tb.createOperatorSubscriber(r,(function(e){n=!0,r.next(e)}),(function(){return n?r.complete():r.error(e())})))}))},jb.elementAt=void 0;var kb=Is,Cb=cp,Fb=Eb,Mb=Wv,Rb=Yv;jb.elementAt=function(e,t){if(e<0)throw new kb.ArgumentOutOfRangeError;var r=arguments.length>=2;return function(n){return n.pipe(Cb.filter((function(t,r){return r===e})),Rb.take(1),r?Mb.defaultIfEmpty(t):Fb.throwIfEmpty((function(){return new kb.ArgumentOutOfRangeError})))}};var Nb={},Bb=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Lb=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Nb.endWith=void 0;var zb=_l,Ub=Iu;Nb.endWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return zb.concat(t,Ub.of.apply(void 0,Lb([],Bb(e))))}};var Wb={every:void 0},qb=Ni,Db=Ui;Wb.every=function(e,t){return qb.operate((function(r,n){var o=0;r.subscribe(Db.createOperatorSubscriber(n,(function(i){e.call(t,i,o++,r)||(n.next(!1),n.complete())}),(function(){n.next(!0),n.complete()})))}))};var Vb={},$b={exhaustAll:void 0},Yb=Ni,Jb=Uu,Hb=Ui;$b.exhaustAll=function(){return Yb.operate((function(e,t){var r=!1,n=null;e.subscribe(Hb.createOperatorSubscriber(t,(function(e){n||(n=Jb.innerFrom(e).subscribe(Hb.createOperatorSubscriber(t,void 0,(function(){n=null,r&&t.complete()}))))}),(function(){r=!0,!n&&t.complete()})))}))},Vb.exhaust=void 0;var Kb=$b;Vb.exhaust=Kb.exhaustAll;var Gb={exhaustMap:void 0},Qb=Ws,Xb=Uu,Zb=Ni,ey=Ui;Gb.exhaustMap=function e(t,r){return r?function(n){return n.pipe(e((function(e,n){return Xb.innerFrom(t(e,n)).pipe(Qb.map((function(t,o){return r(e,t,n,o)})))})))}:Zb.operate((function(e,r){var n=0,o=null,i=!1;e.subscribe(ey.createOperatorSubscriber(r,(function(e){o||(o=ey.createOperatorSubscriber(r,void 0,(function(){o=null,i&&r.complete()})),Xb.innerFrom(t(e,n++)).subscribe(o))}),(function(){i=!0,!o&&r.complete()})))}))};var ty={expand:void 0},ry=Ni,ny=Al;ty.expand=function(e,t,r){return void 0===t&&(t=1/0),t=(t||0)<1?1/0:t,ry.operate((function(n,o){return ny.mergeInternals(n,o,e,t,void 0,!0,r)}))};var oy={finalize:void 0},iy=Ni;oy.finalize=function(e){return iy.operate((function(t,r){try{t.subscribe(r)}finally{r.add(e)}}))};var ay={};ay.createFind=ay.find=void 0;var uy=Ni,cy=Ui;function sy(e,t,r){var n="index"===r;return function(r,o){var i=0;r.subscribe(cy.createOperatorSubscriber(o,(function(a){var u=i++;e.call(t,a,u,r)&&(o.next(n?u:a),o.complete())}),(function(){o.next(n?-1:void 0),o.complete()})))}}ay.find=function(e,t){return uy.operate(sy(e,t,"value"))},ay.createFind=sy;var ly={findIndex:void 0},fy=Ni,py=ay;ly.findIndex=function(e,t){return fy.operate(py.createFind(e,t,"index"))};var dy={first:void 0},vy=xs,by=cp,yy=Yv,hy=Wv,my=Eb,gy=Si;dy.first=function(e,t){var r=arguments.length>=2;return function(n){return n.pipe(e?by.filter((function(t,r){return e(t,r,n)})):gy.identity,yy.take(1),r?hy.defaultIfEmpty(t):my.throwIfEmpty((function(){return new vy.EmptyError})))}};var wy={groupBy:void 0},Oy=Jo,Sy=Uu,_y=ua,xy=Ni,jy=Ui;wy.groupBy=function(e,t,r,n){return xy.operate((function(o,i){var a;t&&"function"!=typeof t?(r=t.duration,a=t.element,n=t.connector):a=t;var u=new Map,c=function(e){u.forEach(e),e(i)},s=function(e){return c((function(t){return t.error(e)}))},l=0,f=!1,p=new jy.OperatorSubscriber(i,(function(t){try{var o=e(t),c=u.get(o);if(!c){u.set(o,c=n?n():new _y.Subject);var d=(b=o,y=c,(h=new Oy.Observable((function(e){l++;var t=y.subscribe(e);return function(){t.unsubscribe(),0==--l&&f&&p.unsubscribe()}}))).key=b,h);if(i.next(d),r){var v=jy.createOperatorSubscriber(c,(function(){c.complete(),null==v||v.unsubscribe()}),void 0,void 0,(function(){return u.delete(o)}));p.add(Sy.innerFrom(r(d)).subscribe(v))}}c.next(a?a(t):t)}catch(e){s(e)}var b,y,h}),(function(){return c((function(e){return e.complete()}))}),s,(function(){return u.clear()}),(function(){return f=!0,0===l}));o.subscribe(p)}))};var Ey={isEmpty:void 0},Ay=Ni,Py=Ui;Ey.isEmpty=function(){return Ay.operate((function(e,t){e.subscribe(Py.createOperatorSubscriber(t,(function(){t.next(!1),t.complete()}),(function(){t.next(!0),t.complete()})))}))};var Ty={},Iy={},ky=n&&n.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Iy.takeLast=void 0;var Cy=Tu,Fy=Ni,My=Ui;Iy.takeLast=function(e){return e<=0?function(){return Cy.EMPTY}:Fy.operate((function(t,r){var n=[];t.subscribe(My.createOperatorSubscriber(r,(function(t){n.push(t),e<n.length&&n.shift()}),(function(){var e,t;try{for(var o=ky(n),i=o.next();!i.done;i=o.next()){var a=i.value;r.next(a)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}r.complete()}),void 0,(function(){n=null})))}))},Ty.last=void 0;var Ry=xs,Ny=cp,By=Iy,Ly=Eb,zy=Wv,Uy=Si;Ty.last=function(e,t){var r=arguments.length>=2;return function(n){return n.pipe(e?Ny.filter((function(t,r){return e(t,r,n)})):Uy.identity,By.takeLast(1),r?zy.defaultIfEmpty(t):Ly.throwIfEmpty((function(){return new Ry.EmptyError})))}};var Wy={materialize:void 0},qy=Pu,Dy=Ni,Vy=Ui;Wy.materialize=function(){return Dy.operate((function(e,t){e.subscribe(Vy.createOperatorSubscriber(t,(function(e){t.next(qy.Notification.createNext(e))}),(function(){t.next(qy.Notification.createComplete()),t.complete()}),(function(e){t.next(qy.Notification.createError(e)),t.complete()})))}))};var $y={max:void 0},Yy=Id,Jy=Ko;$y.max=function(e){return Yy.reduce(Jy.isFunction(e)?function(t,r){return e(t,r)>0?t:r}:function(e,t){return e>t?e:t})};var Hy={flatMap:void 0},Ky=El;Hy.flatMap=Ky.mergeMap;var Gy={mergeMapTo:void 0},Qy=El,Xy=Ko;Gy.mergeMapTo=function(e,t,r){return void 0===r&&(r=1/0),Xy.isFunction(t)?Qy.mergeMap((function(){return e}),t,r):("number"==typeof t&&(r=t),Qy.mergeMap((function(){return e}),r))};var Zy={mergeScan:void 0},eh=Ni,th=Al;Zy.mergeScan=function(e,t,r){return void 0===r&&(r=1/0),eh.operate((function(n,o){var i=t;return th.mergeInternals(n,o,(function(t,r){return e(i,t,r)}),r,(function(e){i=e}),!1,void 0,(function(){return i=null}))}))};var rh={},nh={},oh=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},ih=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};nh.merge=void 0;var ah=Ni,uh=Yf,ch=jl,sh=ku,lh=Bu;nh.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=sh.popScheduler(e),n=sh.popNumber(e,1/0);return e=uh.argsOrArgArray(e),ah.operate((function(t,o){ch.mergeAll(n)(lh.from(ih([t],oh(e)),r)).subscribe(o)}))};var fh=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},ph=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};rh.mergeWith=void 0;var dh=nh;rh.mergeWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return dh.merge.apply(void 0,ph([],fh(e)))};var vh={min:void 0},bh=Id,yh=Ko;vh.min=function(e){return bh.reduce(yh.isFunction(e)?function(t,r){return e(t,r)<0?t:r}:function(e,t){return e<t?e:t})};var hh={multicast:void 0},mh=Mi,gh=Ko,wh=Sv;hh.multicast=function(e,t){var r=gh.isFunction(e)?e:function(){return e};return gh.isFunction(t)?wh.connect(t,{connector:r}):function(e){return new mh.ConnectableObservable(e,r)}};var Oh={pairwise:void 0},Sh=Ni,_h=Ui;Oh.pairwise=function(){return Sh.operate((function(e,t){var r,n=!1;e.subscribe(_h.createOperatorSubscriber(t,(function(e){var o=r;r=e,n&&t.next([o,e]),n=!0})))}))};var xh={pluck:void 0},jh=Ws;xh.pluck=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e.length;if(0===r)throw new Error("list of properties cannot be empty.");return jh.map((function(t){for(var n=t,o=0;o<r;o++){var i=null==n?void 0:n[e[o]];if(void 0===i)return;n=i}return n}))};var Eh={publish:void 0},Ah=ua,Ph=hh,Th=Sv;Eh.publish=function(e){return e?function(t){return Th.connect(e)(t)}:function(e){return Ph.multicast(new Ah.Subject)(e)}};var Ih={publishBehavior:void 0},kh=ga,Ch=Mi;Ih.publishBehavior=function(e){return function(t){var r=new kh.BehaviorSubject(e);return new Ch.ConnectableObservable(t,(function(){return r}))}};var Fh={publishLast:void 0},Mh=Aa,Rh=Mi;Fh.publishLast=function(){return function(e){var t=new Mh.AsyncSubject;return new Rh.ConnectableObservable(e,(function(){return t}))}};var Nh={publishReplay:void 0},Bh=Sa,Lh=hh,zh=Ko;Nh.publishReplay=function(e,t,r,n){r&&!zh.isFunction(r)&&(n=r);var o=zh.isFunction(r)?r:void 0;return function(r){return Lh.multicast(new Bh.ReplaySubject(e,t,n),o)(r)}};var Uh={},Wh=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},qh=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Uh.raceWith=void 0;var Dh=vp,Vh=Ni,$h=Si;Uh.raceWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length?Vh.operate((function(t,r){Dh.raceInit(qh([t],Wh(e)))(r)})):$h.identity};var Yh={repeat:void 0},Jh=Tu,Hh=Ni,Kh=Ui,Gh=Uu,Qh=If;Yh.repeat=function(e){var t,r,n=1/0;return null!=e&&("object"==typeof e?(t=e.count,n=void 0===t?1/0:t,r=e.delay):n=e),n<=0?function(){return Jh.EMPTY}:Hh.operate((function(e,t){var o,i=0,a=function(){if(null==o||o.unsubscribe(),o=null,null!=r){var e="number"==typeof r?Qh.timer(r):Gh.innerFrom(r(i)),n=Kh.createOperatorSubscriber(t,(function(){n.unsubscribe(),u()}));e.subscribe(n)}else u()},u=function(){var r=!1;o=e.subscribe(Kh.createOperatorSubscriber(t,void 0,(function(){++i<n?o?a():r=!0:t.complete()}))),r&&a()};u()}))};var Xh={repeatWhen:void 0},Zh=ua,em=Ni,tm=Ui;Xh.repeatWhen=function(e){return em.operate((function(t,r){var n,o,i=!1,a=!1,u=!1,c=function(){return u&&a&&(r.complete(),!0)},s=function(){u=!1,n=t.subscribe(tm.createOperatorSubscriber(r,void 0,(function(){u=!0,!c()&&(o||(o=new Zh.Subject,e(o).subscribe(tm.createOperatorSubscriber(r,(function(){n?s():i=!0}),(function(){a=!0,c()})))),o).next()}))),i&&(n.unsubscribe(),n=null,i=!1,s())};s()}))};var rm={retry:void 0},nm=Ni,om=Ui,im=Si,am=If,um=Uu;rm.retry=function(e){var t;void 0===e&&(e=1/0);var r=(t=e&&"object"==typeof e?e:{count:e}).count,n=void 0===r?1/0:r,o=t.delay,i=t.resetOnSuccess,a=void 0!==i&&i;return n<=0?im.identity:nm.operate((function(e,t){var r,i=0,u=function(){var c=!1;r=e.subscribe(om.createOperatorSubscriber(t,(function(e){a&&(i=0),t.next(e)}),void 0,(function(e){if(i++<n){var a=function(){r?(r.unsubscribe(),r=null,u()):c=!0};if(null!=o){var s="number"==typeof o?am.timer(o):um.innerFrom(o(e,i)),l=om.createOperatorSubscriber(t,(function(){l.unsubscribe(),a()}),(function(){t.complete()}));s.subscribe(l)}else a()}else t.error(e)}))),c&&(r.unsubscribe(),r=null,u())};u()}))};var cm={retryWhen:void 0},sm=ua,lm=Ni,fm=Ui;cm.retryWhen=function(e){return lm.operate((function(t,r){var n,o,i=!1,a=function(){n=t.subscribe(fm.createOperatorSubscriber(r,void 0,void 0,(function(t){o||(o=new sm.Subject,e(o).subscribe(fm.createOperatorSubscriber(r,(function(){return n?a():i=!0})))),o&&o.next(t)}))),i&&(n.unsubscribe(),n=null,i=!1,a())};a()}))};var pm={sample:void 0},dm=Ni,vm=vi,bm=Ui;pm.sample=function(e){return dm.operate((function(t,r){var n=!1,o=null;t.subscribe(bm.createOperatorSubscriber(r,(function(e){n=!0,o=e}))),e.subscribe(bm.createOperatorSubscriber(r,(function(){if(n){n=!1;var e=o;o=null,r.next(e)}}),vm.noop))}))};var ym={sampleTime:void 0},hm=au,mm=pm,gm=Tf;ym.sampleTime=function(e,t){return void 0===t&&(t=hm.asyncScheduler),mm.sample(gm.interval(e,t))};var wm={scan:void 0},Om=Ni,Sm=kd;wm.scan=function(e,t){return Om.operate(Sm.scanInternals(e,t,arguments.length>=2,!0))};var _m={sequenceEqual:void 0},xm=Ni,jm=Ui;_m.sequenceEqual=function(e,t){return void 0===t&&(t=function(e,t){return e===t}),xm.operate((function(r,n){var o={buffer:[],complete:!1},i={buffer:[],complete:!1},a=function(e){n.next(e),n.complete()},u=function(e,r){var o=jm.createOperatorSubscriber(n,(function(n){var o=r.buffer,i=r.complete;0===o.length?i?a(!1):e.buffer.push(n):!t(n,o.shift())&&a(!1)}),(function(){e.complete=!0;var t=r.complete,n=r.buffer;t&&a(0===n.length),null==o||o.unsubscribe()}));return o};r.subscribe(u(o,i)),e.subscribe(u(i,o))}))};var Em={},Am=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Pm=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Em.share=void 0;var Tm=Bu,Im=Yv,km=ua,Cm=Ho,Fm=Ni;function Mm(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return!0===t?(e(),null):!1===t?null:t.apply(void 0,Pm([],Am(r))).pipe(Im.take(1)).subscribe((function(){return e()}))}Em.share=function(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new km.Subject}:t,n=e.resetOnError,o=void 0===n||n,i=e.resetOnComplete,a=void 0===i||i,u=e.resetOnRefCountZero,c=void 0===u||u;return function(e){var t=null,n=null,i=null,u=0,s=!1,l=!1,f=function(){null==n||n.unsubscribe(),n=null},p=function(){f(),t=i=null,s=l=!1},d=function(){var e=t;p(),null==e||e.unsubscribe()};return Fm.operate((function(e,v){u++,l||s||f();var b=i=null!=i?i:r();v.add((function(){0!==--u||l||s||(n=Mm(d,c))})),b.subscribe(v),t||(t=new Cm.SafeSubscriber({next:function(e){return b.next(e)},error:function(e){l=!0,f(),n=Mm(p,o,e),b.error(e)},complete:function(){s=!0,f(),n=Mm(p,a),b.complete()}}),Tm.from(e).subscribe(t))}))(e)}};var Rm={shareReplay:void 0},Nm=Sa,Bm=Em;Rm.shareReplay=function(e,t,r){var n,o,i,a,u=!1;return e&&"object"==typeof e?(n=e.bufferSize,a=void 0===n?1/0:n,o=e.windowTime,t=void 0===o?1/0:o,u=void 0!==(i=e.refCount)&&i,r=e.scheduler):a=null!=e?e:1/0,Bm.share({connector:function(){return new Nm.ReplaySubject(a,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:u})};var Lm={single:void 0},zm=xs,Um=Ms,Wm=Cs,qm=Ni,Dm=Ui;Lm.single=function(e){return qm.operate((function(t,r){var n,o=!1,i=!1,a=0;t.subscribe(Dm.createOperatorSubscriber(r,(function(u){i=!0,e&&!e(u,a++,t)||(o&&r.error(new Um.SequenceError("Too many matching values")),o=!0,n=u)}),(function(){o?(r.next(n),r.complete()):r.error(i?new Wm.NotFoundError("No matching values"):new zm.EmptyError)})))}))};var Vm={skip:void 0},$m=cp;Vm.skip=function(e){return $m.filter((function(t,r){return e<=r}))};var Ym={skipLast:void 0},Jm=Si,Hm=Ni,Km=Ui;Ym.skipLast=function(e){return e<=0?Jm.identity:Hm.operate((function(t,r){var n=new Array(e),o=0;return t.subscribe(Km.createOperatorSubscriber(r,(function(t){var i=o++;if(i<e)n[i]=t;else{var a=i%e,u=n[a];n[a]=t,r.next(u)}}))),function(){n=null}}))};var Gm={skipUntil:void 0},Qm=Ni,Xm=Ui,Zm=Uu,eg=vi;Gm.skipUntil=function(e){return Qm.operate((function(t,r){var n=!1,o=Xm.createOperatorSubscriber(r,(function(){null==o||o.unsubscribe(),n=!0}),eg.noop);Zm.innerFrom(e).subscribe(o),t.subscribe(Xm.createOperatorSubscriber(r,(function(e){return n&&r.next(e)})))}))};var tg={skipWhile:void 0},rg=Ni,ng=Ui;tg.skipWhile=function(e){return rg.operate((function(t,r){var n=!1,o=0;t.subscribe(ng.createOperatorSubscriber(r,(function(t){return(n||(n=!e(t,o++)))&&r.next(t)})))}))};var og={startWith:void 0},ig=_l,ag=ku,ug=Ni;og.startWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ag.popScheduler(e);return ug.operate((function(t,n){(r?ig.concat(e,t,r):ig.concat(e,t)).subscribe(n)}))};var cg={},sg={switchMap:void 0},lg=Uu,fg=Ni,pg=Ui;sg.switchMap=function(e,t){return fg.operate((function(r,n){var o=null,i=0,a=!1,u=function(){return a&&!o&&n.complete()};r.subscribe(pg.createOperatorSubscriber(n,(function(r){null==o||o.unsubscribe();var a=0,c=i++;lg.innerFrom(e(r,c)).subscribe(o=pg.createOperatorSubscriber(n,(function(e){return n.next(t?t(r,e,c,a++):e)}),(function(){o=null,u()})))}),(function(){a=!0,u()})))}))},cg.switchAll=void 0;var dg=sg,vg=Si;cg.switchAll=function(){return dg.switchMap(vg.identity)};var bg={switchMapTo:void 0},yg=sg,hg=Ko;bg.switchMapTo=function(e,t){return hg.isFunction(t)?yg.switchMap((function(){return e}),t):yg.switchMap((function(){return e}))};var mg={switchScan:void 0},gg=sg,wg=Ni;mg.switchScan=function(e,t){return wg.operate((function(r,n){var o=t;return gg.switchMap((function(t,r){return e(o,t,r)}),(function(e,t){return o=t,t}))(r).subscribe(n),function(){o=null}}))};var Og={takeUntil:void 0},Sg=Ni,_g=Ui,xg=Uu,jg=vi;Og.takeUntil=function(e){return Sg.operate((function(t,r){xg.innerFrom(e).subscribe(_g.createOperatorSubscriber(r,(function(){return r.complete()}),jg.noop)),!r.closed&&t.subscribe(r)}))};var Eg={takeWhile:void 0},Ag=Ni,Pg=Ui;Eg.takeWhile=function(e,t){return void 0===t&&(t=!1),Ag.operate((function(r,n){var o=0;r.subscribe(Pg.createOperatorSubscriber(n,(function(r){var i=e(r,o++);(i||t)&&n.next(r),!i&&n.complete()})))}))};var Tg={tap:void 0},Ig=Ko,kg=Ni,Cg=Ui,Fg=Si;Tg.tap=function(e,t,r){var n=Ig.isFunction(e)||t||r?{next:e,error:t,complete:r}:e;return n?kg.operate((function(e,t){var r;null===(r=n.subscribe)||void 0===r||r.call(n);var o=!0;e.subscribe(Cg.createOperatorSubscriber(t,(function(e){var r;null===(r=n.next)||void 0===r||r.call(n,e),t.next(e)}),(function(){var e;o=!1,null===(e=n.complete)||void 0===e||e.call(n),t.complete()}),(function(e){var r;o=!1,null===(r=n.error)||void 0===r||r.call(n,e),t.error(e)}),(function(){var e,t;o&&(null===(e=n.unsubscribe)||void 0===e||e.call(n)),null===(t=n.finalize)||void 0===t||t.call(n)})))})):Fg.identity};var Mg={};!function(e){e.throttle=e.defaultThrottleConfig=void 0;var t=Ni,r=Ui,n=Uu;e.defaultThrottleConfig={leading:!0,trailing:!1},e.throttle=function(o,i){return void 0===i&&(i=e.defaultThrottleConfig),t.operate((function(e,t){var a=i.leading,u=i.trailing,c=!1,s=null,l=null,f=!1,p=function(){null==l||l.unsubscribe(),l=null,u&&(b(),f&&t.complete())},d=function(){l=null,f&&t.complete()},v=function(e){return l=n.innerFrom(o(e)).subscribe(r.createOperatorSubscriber(t,p,d))},b=function(){if(c){c=!1;var e=s;s=null,t.next(e),!f&&v(e)}};e.subscribe(r.createOperatorSubscriber(t,(function(e){c=!0,s=e,(!l||l.closed)&&(a?b():v(e))}),(function(){f=!0,(!(u&&c&&l)||l.closed)&&t.complete()})))}))}}(Mg);var Rg={throttleTime:void 0},Ng=au,Bg=Mg,Lg=If;Rg.throttleTime=function(e,t,r){void 0===t&&(t=Ng.asyncScheduler),void 0===r&&(r=Bg.defaultThrottleConfig);var n=Lg.timer(e,t);return Bg.throttle((function(){return n}),r)};var zg={};zg.TimeInterval=zg.timeInterval=void 0;var Ug=au,Wg=Ni,qg=Ui;zg.timeInterval=function(e){return void 0===e&&(e=Ug.asyncScheduler),Wg.operate((function(t,r){var n=e.now();t.subscribe(qg.createOperatorSubscriber(r,(function(t){var o=e.now(),i=o-n;n=o,r.next(new Dg(t,i))})))}))};var Dg=function(e,t){this.value=e,this.interval=t};zg.TimeInterval=Dg;var Vg={timeoutWith:void 0},$g=au,Yg=Bs,Jg=Ns;Vg.timeoutWith=function(e,t,r){var n,o,i;if(r=null!=r?r:$g.async,Yg.isValidDate(e)?n=e:"number"==typeof e&&(o=e),!t)throw new TypeError("No observable provided to switch to");if(i=function(){return t},null==n&&null==o)throw new TypeError("No timeout provided.");return Jg.timeout({first:n,each:o,scheduler:r,with:i})};var Hg={timestamp:void 0},Kg=_a,Gg=Ws;Hg.timestamp=function(e){return void 0===e&&(e=Kg.dateTimestampProvider),Gg.map((function(t){return{value:t,timestamp:e.now()}}))};var Qg={window:void 0},Xg=ua,Zg=Ni,ew=Ui,tw=vi;Qg.window=function(e){return Zg.operate((function(t,r){var n=new Xg.Subject;r.next(n.asObservable());var o=function(e){n.error(e),r.error(e)};return t.subscribe(ew.createOperatorSubscriber(r,(function(e){return null==n?void 0:n.next(e)}),(function(){n.complete(),r.complete()}),o)),e.subscribe(ew.createOperatorSubscriber(r,(function(){n.complete(),r.next(n=new Xg.Subject)}),tw.noop,o)),function(){null==n||n.unsubscribe(),n=null}}))};var rw={},nw=n&&n.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};rw.windowCount=void 0;var ow=ua,iw=Ni,aw=Ui;rw.windowCount=function(e,t){void 0===t&&(t=0);var r=t>0?t:e;return iw.operate((function(t,n){var o=[new ow.Subject],i=0;n.next(o[0].asObservable()),t.subscribe(aw.createOperatorSubscriber(n,(function(t){var a,u;try{for(var c=nw(o),s=c.next();!s.done;s=c.next()){s.value.next(t)}}catch(e){a={error:e}}finally{try{s&&!s.done&&(u=c.return)&&u.call(c)}finally{if(a)throw a.error}}var l=i-e+1;if(l>=0&&l%r==0&&o.shift().complete(),++i%r==0){var f=new ow.Subject;o.push(f),n.next(f.asObservable())}}),(function(){for(;o.length>0;)o.shift().complete();n.complete()}),(function(e){for(;o.length>0;)o.shift().error(e);n.error(e)}),(function(){o=null})))}))};var uw={windowTime:void 0},cw=ua,sw=au,lw=Go,fw=Ni,pw=Ui,dw=ei,vw=ku,bw=Pc;uw.windowTime=function(e){for(var t,r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i=null!==(t=vw.popScheduler(n))&&void 0!==t?t:sw.asyncScheduler,a=null!==(r=n[0])&&void 0!==r?r:null,u=n[1]||1/0;return fw.operate((function(t,r){var n=[],o=!1,c=function(e){var t=e.window,r=e.subs;t.complete(),r.unsubscribe(),dw.arrRemove(n,e),o&&s()},s=function(){if(n){var t=new lw.Subscription;r.add(t);var o=new cw.Subject,a={window:o,subs:t,seen:0};n.push(a),r.next(o.asObservable()),bw.executeSchedule(t,i,(function(){return c(a)}),e)}};null!==a&&a>=0?bw.executeSchedule(r,i,s,a,!0):o=!0,s();var l=function(e){return n.slice().forEach(e)},f=function(e){l((function(t){var r=t.window;return e(r)})),e(r),r.unsubscribe()};return t.subscribe(pw.createOperatorSubscriber(r,(function(e){l((function(t){t.window.next(e),u<=++t.seen&&c(t)}))}),(function(){return f((function(e){return e.complete()}))}),(function(e){return f((function(t){return t.error(e)}))}))),function(){n=null}}))};var yw={},hw=n&&n.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};yw.windowToggle=void 0;var mw=ua,gw=Go,ww=Ni,Ow=Uu,Sw=Ui,_w=vi,xw=ei;yw.windowToggle=function(e,t){return ww.operate((function(r,n){var o=[],i=function(e){for(;0<o.length;)o.shift().error(e);n.error(e)};Ow.innerFrom(e).subscribe(Sw.createOperatorSubscriber(n,(function(e){var r=new mw.Subject;o.push(r);var a,u=new gw.Subscription;try{a=Ow.innerFrom(t(e))}catch(e){return void i(e)}n.next(r.asObservable()),u.add(a.subscribe(Sw.createOperatorSubscriber(n,(function(){xw.arrRemove(o,r),r.complete(),u.unsubscribe()}),_w.noop,i)))}),_w.noop)),r.subscribe(Sw.createOperatorSubscriber(n,(function(e){var t,r,n=o.slice();try{for(var i=hw(n),a=i.next();!a.done;a=i.next()){a.value.next(e)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}}),(function(){for(;0<o.length;)o.shift().complete();n.complete()}),i,(function(){for(;0<o.length;)o.shift().unsubscribe()})))}))};var jw={windowWhen:void 0},Ew=ua,Aw=Ni,Pw=Ui,Tw=Uu;jw.windowWhen=function(e){return Aw.operate((function(t,r){var n,o,i=function(e){n.error(e),r.error(e)},a=function(){var t;null==o||o.unsubscribe(),null==n||n.complete(),n=new Ew.Subject,r.next(n.asObservable());try{t=Tw.innerFrom(e())}catch(e){return void i(e)}t.subscribe(o=Pw.createOperatorSubscriber(r,a,a,i))};a(),t.subscribe(Pw.createOperatorSubscriber(r,(function(e){return n.next(e)}),(function(){n.complete(),r.complete()}),i,(function(){null==o||o.unsubscribe(),n=null})))}))};var Iw={},kw=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Cw=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Iw.withLatestFrom=void 0;var Fw=Ni,Mw=Ui,Rw=Uu,Nw=Si,Bw=vi,Lw=ku;Iw.withLatestFrom=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Lw.popResultSelector(e);return Fw.operate((function(t,n){for(var o=e.length,i=new Array(o),a=e.map((function(){return!1})),u=!1,c=function(t){Rw.innerFrom(e[t]).subscribe(Mw.createOperatorSubscriber(n,(function(e){i[t]=e,u||a[t]||(a[t]=!0,(u=a.every(Nw.identity))&&(a=null))}),Bw.noop))},s=0;s<o;s++)c(s);t.subscribe(Mw.createOperatorSubscriber(n,(function(e){if(u){var t=Cw([e],kw(i));n.next(r?r.apply(void 0,Cw([],kw(t))):t)}})))}))};var zw={zipAll:void 0},Uw=Ap,Ww=Pd;zw.zipAll=function(e){return Ww.joinAllInternals(Uw.zip,e)};var qw={},Dw={},Vw=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},$w=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Dw.zip=void 0;var Yw=Ap,Jw=Ni;Dw.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Jw.operate((function(t,r){Yw.zip.apply(void 0,$w([t],Vw(e))).subscribe(r)}))};var Hw=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Kw=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};qw.zipWith=void 0;var Gw=Dw;function Qw(e,t){const r=Gn(),n=o.exports.useMemo((()=>new Qn.ObservableFiniteStateMachine(e,t)),[e]);return o.exports.useEffect((()=>{const e=n.observeStateChanges().subscribe((()=>r()));return()=>e.unsubscribe()}),[n]),n}qw.zipWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Gw.zip.apply(void 0,Kw([],Hw(e)))},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};e.interval=e.iif=e.generate=e.fromEventPattern=e.fromEvent=e.from=e.forkJoin=e.empty=e.defer=e.connectable=e.concat=e.combineLatest=e.bindNodeCallback=e.bindCallback=e.UnsubscriptionError=e.TimeoutError=e.SequenceError=e.ObjectUnsubscribedError=e.NotFoundError=e.EmptyError=e.ArgumentOutOfRangeError=e.firstValueFrom=e.lastValueFrom=e.isObservable=e.identity=e.noop=e.pipe=e.NotificationKind=e.Notification=e.Subscriber=e.Subscription=e.Scheduler=e.VirtualAction=e.VirtualTimeScheduler=e.animationFrameScheduler=e.animationFrame=e.queueScheduler=e.queue=e.asyncScheduler=e.async=e.asapScheduler=e.asap=e.AsyncSubject=e.ReplaySubject=e.BehaviorSubject=e.Subject=e.animationFrames=e.observable=e.ConnectableObservable=e.Observable=void 0,e.filter=e.expand=e.exhaustMap=e.exhaustAll=e.exhaust=e.every=e.endWith=e.elementAt=e.distinctUntilKeyChanged=e.distinctUntilChanged=e.distinct=e.dematerialize=e.delayWhen=e.delay=e.defaultIfEmpty=e.debounceTime=e.debounce=e.count=e.connect=e.concatWith=e.concatMapTo=e.concatMap=e.concatAll=e.combineLatestWith=e.combineLatestAll=e.combineAll=e.catchError=e.bufferWhen=e.bufferToggle=e.bufferTime=e.bufferCount=e.buffer=e.auditTime=e.audit=e.config=e.NEVER=e.EMPTY=e.scheduled=e.zip=e.using=e.timer=e.throwError=e.range=e.race=e.partition=e.pairs=e.onErrorResumeNext=e.of=e.never=e.merge=void 0,e.switchMapTo=e.switchMap=e.switchAll=e.subscribeOn=e.startWith=e.skipWhile=e.skipUntil=e.skipLast=e.skip=e.single=e.shareReplay=e.share=e.sequenceEqual=e.scan=e.sampleTime=e.sample=e.refCount=e.retryWhen=e.retry=e.repeatWhen=e.repeat=e.reduce=e.raceWith=e.publishReplay=e.publishLast=e.publishBehavior=e.publish=e.pluck=e.pairwise=e.observeOn=e.multicast=e.min=e.mergeWith=e.mergeScan=e.mergeMapTo=e.mergeMap=e.flatMap=e.mergeAll=e.max=e.materialize=e.mapTo=e.map=e.last=e.isEmpty=e.ignoreElements=e.groupBy=e.first=e.findIndex=e.find=e.finalize=void 0,e.zipWith=e.zipAll=e.withLatestFrom=e.windowWhen=e.windowToggle=e.windowTime=e.windowCount=e.window=e.toArray=e.timestamp=e.timeoutWith=e.timeout=e.timeInterval=e.throwIfEmpty=e.throttleTime=e.throttle=e.tap=e.takeWhile=e.takeUntil=e.takeLast=e.take=e.switchScan=void 0;var o=Jo;Object.defineProperty(e,"Observable",{enumerable:!0,get:function(){return o.Observable}});var i=Mi;Object.defineProperty(e,"ConnectableObservable",{enumerable:!0,get:function(){return i.ConnectableObservable}});var a=wi;Object.defineProperty(e,"observable",{enumerable:!0,get:function(){return a.observable}});var u=Xi;Object.defineProperty(e,"animationFrames",{enumerable:!0,get:function(){return u.animationFrames}});var c=ua;Object.defineProperty(e,"Subject",{enumerable:!0,get:function(){return c.Subject}});var s=ga;Object.defineProperty(e,"BehaviorSubject",{enumerable:!0,get:function(){return s.BehaviorSubject}});var l=Sa;Object.defineProperty(e,"ReplaySubject",{enumerable:!0,get:function(){return l.ReplaySubject}});var f=Aa;Object.defineProperty(e,"AsyncSubject",{enumerable:!0,get:function(){return f.AsyncSubject}});var p=Ia;Object.defineProperty(e,"asap",{enumerable:!0,get:function(){return p.asap}}),Object.defineProperty(e,"asapScheduler",{enumerable:!0,get:function(){return p.asapScheduler}});var d=au;Object.defineProperty(e,"async",{enumerable:!0,get:function(){return d.async}}),Object.defineProperty(e,"asyncScheduler",{enumerable:!0,get:function(){return d.asyncScheduler}});var v=uu;Object.defineProperty(e,"queue",{enumerable:!0,get:function(){return v.queue}}),Object.defineProperty(e,"queueScheduler",{enumerable:!0,get:function(){return v.queueScheduler}});var b=vu;Object.defineProperty(e,"animationFrame",{enumerable:!0,get:function(){return b.animationFrame}}),Object.defineProperty(e,"animationFrameScheduler",{enumerable:!0,get:function(){return b.animationFrameScheduler}});var y=Su;Object.defineProperty(e,"VirtualTimeScheduler",{enumerable:!0,get:function(){return y.VirtualTimeScheduler}}),Object.defineProperty(e,"VirtualAction",{enumerable:!0,get:function(){return y.VirtualAction}});var h=Xa;Object.defineProperty(e,"Scheduler",{enumerable:!0,get:function(){return h.Scheduler}});var m=Go;Object.defineProperty(e,"Subscription",{enumerable:!0,get:function(){return m.Subscription}});var g=Ho;Object.defineProperty(e,"Subscriber",{enumerable:!0,get:function(){return g.Subscriber}});var w=Pu;Object.defineProperty(e,"Notification",{enumerable:!0,get:function(){return w.Notification}}),Object.defineProperty(e,"NotificationKind",{enumerable:!0,get:function(){return w.NotificationKind}});var O=Oi;Object.defineProperty(e,"pipe",{enumerable:!0,get:function(){return O.pipe}});var S=vi;Object.defineProperty(e,"noop",{enumerable:!0,get:function(){return S.noop}});var _=Si;Object.defineProperty(e,"identity",{enumerable:!0,get:function(){return _.identity}});var x=ws;Object.defineProperty(e,"isObservable",{enumerable:!0,get:function(){return x.isObservable}});var j=_s;Object.defineProperty(e,"lastValueFrom",{enumerable:!0,get:function(){return j.lastValueFrom}});var E=As;Object.defineProperty(e,"firstValueFrom",{enumerable:!0,get:function(){return E.firstValueFrom}});var A=Is;Object.defineProperty(e,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return A.ArgumentOutOfRangeError}});var P=xs;Object.defineProperty(e,"EmptyError",{enumerable:!0,get:function(){return P.EmptyError}});var T=Cs;Object.defineProperty(e,"NotFoundError",{enumerable:!0,get:function(){return T.NotFoundError}});var I=ca;Object.defineProperty(e,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return I.ObjectUnsubscribedError}});var k=Ms;Object.defineProperty(e,"SequenceError",{enumerable:!0,get:function(){return k.SequenceError}});var C=Ns;Object.defineProperty(e,"TimeoutError",{enumerable:!0,get:function(){return C.TimeoutError}});var F=Qo;Object.defineProperty(e,"UnsubscriptionError",{enumerable:!0,get:function(){return F.UnsubscriptionError}});var M=Ls;Object.defineProperty(e,"bindCallback",{enumerable:!0,get:function(){return M.bindCallback}});var R=nl;Object.defineProperty(e,"bindNodeCallback",{enumerable:!0,get:function(){return R.bindNodeCallback}});var N=il;Object.defineProperty(e,"combineLatest",{enumerable:!0,get:function(){return N.combineLatest}});var B=_l;Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return B.concat}});var L=ql;Object.defineProperty(e,"connectable",{enumerable:!0,get:function(){return L.connectable}});var z=Dl;Object.defineProperty(e,"defer",{enumerable:!0,get:function(){return z.defer}});var U=Tu;Object.defineProperty(e,"empty",{enumerable:!0,get:function(){return U.empty}});var W=Gl;Object.defineProperty(e,"forkJoin",{enumerable:!0,get:function(){return W.forkJoin}});var q=Bu;Object.defineProperty(e,"from",{enumerable:!0,get:function(){return q.from}});var D=of;Object.defineProperty(e,"fromEvent",{enumerable:!0,get:function(){return D.fromEvent}});var V=hf;Object.defineProperty(e,"fromEventPattern",{enumerable:!0,get:function(){return V.fromEventPattern}});var $=Of;Object.defineProperty(e,"generate",{enumerable:!0,get:function(){return $.generate}});var Y=Af;Object.defineProperty(e,"iif",{enumerable:!0,get:function(){return Y.iif}});var J=Tf;Object.defineProperty(e,"interval",{enumerable:!0,get:function(){return J.interval}});var H=Bf;Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return H.merge}});var K=Df;Object.defineProperty(e,"never",{enumerable:!0,get:function(){return K.never}});var G=Iu;Object.defineProperty(e,"of",{enumerable:!0,get:function(){return G.of}});var Q=Vf;Object.defineProperty(e,"onErrorResumeNext",{enumerable:!0,get:function(){return Q.onErrorResumeNext}});var X=op;Object.defineProperty(e,"pairs",{enumerable:!0,get:function(){return X.pairs}});var Z=ap;Object.defineProperty(e,"partition",{enumerable:!0,get:function(){return Z.partition}});var ee=vp;Object.defineProperty(e,"race",{enumerable:!0,get:function(){return ee.race}});var te=wp;Object.defineProperty(e,"range",{enumerable:!0,get:function(){return te.range}});var re=hs;Object.defineProperty(e,"throwError",{enumerable:!0,get:function(){return re.throwError}});var ne=If;Object.defineProperty(e,"timer",{enumerable:!0,get:function(){return ne.timer}});var oe=_p;Object.defineProperty(e,"using",{enumerable:!0,get:function(){return oe.using}});var ie=Ap;Object.defineProperty(e,"zip",{enumerable:!0,get:function(){return ie.zip}});var ae=Lu;Object.defineProperty(e,"scheduled",{enumerable:!0,get:function(){return ae.scheduled}});var ue=Tu;Object.defineProperty(e,"EMPTY",{enumerable:!0,get:function(){return ue.EMPTY}});var ce=Df;Object.defineProperty(e,"NEVER",{enumerable:!0,get:function(){return ce.NEVER}}),r(Np,e);var se=si;Object.defineProperty(e,"config",{enumerable:!0,get:function(){return se.config}});var le=Bp;Object.defineProperty(e,"audit",{enumerable:!0,get:function(){return le.audit}});var fe=Wp;Object.defineProperty(e,"auditTime",{enumerable:!0,get:function(){return fe.auditTime}});var pe=$p;Object.defineProperty(e,"buffer",{enumerable:!0,get:function(){return pe.buffer}});var de=Kp;Object.defineProperty(e,"bufferCount",{enumerable:!0,get:function(){return de.bufferCount}});var ve=ed;Object.defineProperty(e,"bufferTime",{enumerable:!0,get:function(){return ve.bufferTime}});var be=sd;Object.defineProperty(e,"bufferToggle",{enumerable:!0,get:function(){return be.bufferToggle}});var ye=hd;Object.defineProperty(e,"bufferWhen",{enumerable:!0,get:function(){return ye.bufferWhen}});var he=Sd;Object.defineProperty(e,"catchError",{enumerable:!0,get:function(){return he.catchError}});var me=Ed;Object.defineProperty(e,"combineAll",{enumerable:!0,get:function(){return me.combineAll}});var ge=Ad;Object.defineProperty(e,"combineLatestAll",{enumerable:!0,get:function(){return ge.combineLatestAll}});var we=Yd;Object.defineProperty(e,"combineLatestWith",{enumerable:!0,get:function(){return we.combineLatestWith}});var Oe=xl;Object.defineProperty(e,"concatAll",{enumerable:!0,get:function(){return Oe.concatAll}});var Se=iv;Object.defineProperty(e,"concatMap",{enumerable:!0,get:function(){return Se.concatMap}});var _e=cv;Object.defineProperty(e,"concatMapTo",{enumerable:!0,get:function(){return _e.concatMapTo}});var xe=fv;Object.defineProperty(e,"concatWith",{enumerable:!0,get:function(){return xe.concatWith}});var je=Sv;Object.defineProperty(e,"connect",{enumerable:!0,get:function(){return je.connect}});var Ee=Iv;Object.defineProperty(e,"count",{enumerable:!0,get:function(){return Ee.count}});var Ae=Cv;Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return Ae.debounce}});var Pe=Bv;Object.defineProperty(e,"debounceTime",{enumerable:!0,get:function(){return Pe.debounceTime}});var Te=Wv;Object.defineProperty(e,"defaultIfEmpty",{enumerable:!0,get:function(){return Te.defaultIfEmpty}});var Ie=Vv;Object.defineProperty(e,"delay",{enumerable:!0,get:function(){return Ie.delay}});var ke=$v;Object.defineProperty(e,"delayWhen",{enumerable:!0,get:function(){return ke.delayWhen}});var Ce=lb;Object.defineProperty(e,"dematerialize",{enumerable:!0,get:function(){return Ce.dematerialize}});var Fe=vb;Object.defineProperty(e,"distinct",{enumerable:!0,get:function(){return Fe.distinct}});var Me=mb;Object.defineProperty(e,"distinctUntilChanged",{enumerable:!0,get:function(){return Me.distinctUntilChanged}});var Re=_b;Object.defineProperty(e,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return Re.distinctUntilKeyChanged}});var Ne=jb;Object.defineProperty(e,"elementAt",{enumerable:!0,get:function(){return Ne.elementAt}});var Be=Nb;Object.defineProperty(e,"endWith",{enumerable:!0,get:function(){return Be.endWith}});var Le=Wb;Object.defineProperty(e,"every",{enumerable:!0,get:function(){return Le.every}});var ze=Vb;Object.defineProperty(e,"exhaust",{enumerable:!0,get:function(){return ze.exhaust}});var Ue=$b;Object.defineProperty(e,"exhaustAll",{enumerable:!0,get:function(){return Ue.exhaustAll}});var We=Gb;Object.defineProperty(e,"exhaustMap",{enumerable:!0,get:function(){return We.exhaustMap}});var qe=ty;Object.defineProperty(e,"expand",{enumerable:!0,get:function(){return qe.expand}});var De=cp;Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return De.filter}});var Ve=oy;Object.defineProperty(e,"finalize",{enumerable:!0,get:function(){return Ve.finalize}});var $e=ay;Object.defineProperty(e,"find",{enumerable:!0,get:function(){return $e.find}});var Ye=ly;Object.defineProperty(e,"findIndex",{enumerable:!0,get:function(){return Ye.findIndex}});var Je=dy;Object.defineProperty(e,"first",{enumerable:!0,get:function(){return Je.first}});var He=wy;Object.defineProperty(e,"groupBy",{enumerable:!0,get:function(){return He.groupBy}});var Ke=Gv;Object.defineProperty(e,"ignoreElements",{enumerable:!0,get:function(){return Ke.ignoreElements}});var Ge=Ey;Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return Ge.isEmpty}});var Qe=Ty;Object.defineProperty(e,"last",{enumerable:!0,get:function(){return Qe.last}});var Xe=Ws;Object.defineProperty(e,"map",{enumerable:!0,get:function(){return Xe.map}});var Ze=eb;Object.defineProperty(e,"mapTo",{enumerable:!0,get:function(){return Ze.mapTo}});var et=Wy;Object.defineProperty(e,"materialize",{enumerable:!0,get:function(){return et.materialize}});var tt=$y;Object.defineProperty(e,"max",{enumerable:!0,get:function(){return tt.max}});var rt=jl;Object.defineProperty(e,"mergeAll",{enumerable:!0,get:function(){return rt.mergeAll}});var nt=Hy;Object.defineProperty(e,"flatMap",{enumerable:!0,get:function(){return nt.flatMap}});var ot=El;Object.defineProperty(e,"mergeMap",{enumerable:!0,get:function(){return ot.mergeMap}});var it=Gy;Object.defineProperty(e,"mergeMapTo",{enumerable:!0,get:function(){return it.mergeMapTo}});var at=Zy;Object.defineProperty(e,"mergeScan",{enumerable:!0,get:function(){return at.mergeScan}});var ut=rh;Object.defineProperty(e,"mergeWith",{enumerable:!0,get:function(){return ut.mergeWith}});var ct=vh;Object.defineProperty(e,"min",{enumerable:!0,get:function(){return ct.min}});var st=hh;Object.defineProperty(e,"multicast",{enumerable:!0,get:function(){return st.multicast}});var lt=Ac;Object.defineProperty(e,"observeOn",{enumerable:!0,get:function(){return lt.observeOn}});var ft=Oh;Object.defineProperty(e,"pairwise",{enumerable:!0,get:function(){return ft.pairwise}});var pt=xh;Object.defineProperty(e,"pluck",{enumerable:!0,get:function(){return pt.pluck}});var dt=Eh;Object.defineProperty(e,"publish",{enumerable:!0,get:function(){return dt.publish}});var vt=Ih;Object.defineProperty(e,"publishBehavior",{enumerable:!0,get:function(){return vt.publishBehavior}});var bt=Fh;Object.defineProperty(e,"publishLast",{enumerable:!0,get:function(){return bt.publishLast}});var yt=Nh;Object.defineProperty(e,"publishReplay",{enumerable:!0,get:function(){return yt.publishReplay}});var ht=Uh;Object.defineProperty(e,"raceWith",{enumerable:!0,get:function(){return ht.raceWith}});var mt=Id;Object.defineProperty(e,"reduce",{enumerable:!0,get:function(){return mt.reduce}});var gt=Yh;Object.defineProperty(e,"repeat",{enumerable:!0,get:function(){return gt.repeat}});var wt=Xh;Object.defineProperty(e,"repeatWhen",{enumerable:!0,get:function(){return wt.repeatWhen}});var Ot=rm;Object.defineProperty(e,"retry",{enumerable:!0,get:function(){return Ot.retry}});var St=cm;Object.defineProperty(e,"retryWhen",{enumerable:!0,get:function(){return St.retryWhen}});var _t=Ri;Object.defineProperty(e,"refCount",{enumerable:!0,get:function(){return _t.refCount}});var xt=pm;Object.defineProperty(e,"sample",{enumerable:!0,get:function(){return xt.sample}});var jt=ym;Object.defineProperty(e,"sampleTime",{enumerable:!0,get:function(){return jt.sampleTime}});var Et=wm;Object.defineProperty(e,"scan",{enumerable:!0,get:function(){return Et.scan}});var At=_m;Object.defineProperty(e,"sequenceEqual",{enumerable:!0,get:function(){return At.sequenceEqual}});var Pt=Em;Object.defineProperty(e,"share",{enumerable:!0,get:function(){return Pt.share}});var Tt=Rm;Object.defineProperty(e,"shareReplay",{enumerable:!0,get:function(){return Tt.shareReplay}});var It=Lm;Object.defineProperty(e,"single",{enumerable:!0,get:function(){return It.single}});var kt=Vm;Object.defineProperty(e,"skip",{enumerable:!0,get:function(){return kt.skip}});var Ct=Ym;Object.defineProperty(e,"skipLast",{enumerable:!0,get:function(){return Ct.skipLast}});var Ft=Gm;Object.defineProperty(e,"skipUntil",{enumerable:!0,get:function(){return Ft.skipUntil}});var Mt=tg;Object.defineProperty(e,"skipWhile",{enumerable:!0,get:function(){return Mt.skipWhile}});var Rt=og;Object.defineProperty(e,"startWith",{enumerable:!0,get:function(){return Rt.startWith}});var Nt=Cc;Object.defineProperty(e,"subscribeOn",{enumerable:!0,get:function(){return Nt.subscribeOn}});var Bt=cg;Object.defineProperty(e,"switchAll",{enumerable:!0,get:function(){return Bt.switchAll}});var Lt=sg;Object.defineProperty(e,"switchMap",{enumerable:!0,get:function(){return Lt.switchMap}});var zt=bg;Object.defineProperty(e,"switchMapTo",{enumerable:!0,get:function(){return zt.switchMapTo}});var Ut=mg;Object.defineProperty(e,"switchScan",{enumerable:!0,get:function(){return Ut.switchScan}});var Wt=Yv;Object.defineProperty(e,"take",{enumerable:!0,get:function(){return Wt.take}});var qt=Iy;Object.defineProperty(e,"takeLast",{enumerable:!0,get:function(){return qt.takeLast}});var Dt=Og;Object.defineProperty(e,"takeUntil",{enumerable:!0,get:function(){return Dt.takeUntil}});var Vt=Eg;Object.defineProperty(e,"takeWhile",{enumerable:!0,get:function(){return Vt.takeWhile}});var $t=Tg;Object.defineProperty(e,"tap",{enumerable:!0,get:function(){return $t.tap}});var Yt=Mg;Object.defineProperty(e,"throttle",{enumerable:!0,get:function(){return Yt.throttle}});var Jt=Rg;Object.defineProperty(e,"throttleTime",{enumerable:!0,get:function(){return Jt.throttleTime}});var Ht=Eb;Object.defineProperty(e,"throwIfEmpty",{enumerable:!0,get:function(){return Ht.throwIfEmpty}});var Kt=zg;Object.defineProperty(e,"timeInterval",{enumerable:!0,get:function(){return Kt.timeInterval}});var Gt=Ns;Object.defineProperty(e,"timeout",{enumerable:!0,get:function(){return Gt.timeout}});var Qt=Vg;Object.defineProperty(e,"timeoutWith",{enumerable:!0,get:function(){return Qt.timeoutWith}});var Xt=Hg;Object.defineProperty(e,"timestamp",{enumerable:!0,get:function(){return Xt.timestamp}});var Zt=Td;Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){return Zt.toArray}});var er=Qg;Object.defineProperty(e,"window",{enumerable:!0,get:function(){return er.window}});var tr=rw;Object.defineProperty(e,"windowCount",{enumerable:!0,get:function(){return tr.windowCount}});var rr=uw;Object.defineProperty(e,"windowTime",{enumerable:!0,get:function(){return rr.windowTime}});var nr=yw;Object.defineProperty(e,"windowToggle",{enumerable:!0,get:function(){return nr.windowToggle}});var or=jw;Object.defineProperty(e,"windowWhen",{enumerable:!0,get:function(){return or.windowWhen}});var ir=Iw;Object.defineProperty(e,"withLatestFrom",{enumerable:!0,get:function(){return ir.withLatestFrom}});var ar=zw;Object.defineProperty(e,"zipAll",{enumerable:!0,get:function(){return ar.zipAll}});var ur=qw;Object.defineProperty(e,"zipWith",{enumerable:!0,get:function(){return ur.zipWith}})}(Yo),function(e){e.BadEventError=e.ObservableFiniteStateMachine=void 0;const t=qo,r=Yo,n=g;class o extends t.FiniteStateMachine{constructor(){super(...arguments),this.stateChanges=new r.Subject}observeStateChanges(){return this.stateChanges}send(e){const t=this.state;super.send(e);const r=this.state;this.stateChanges.next({event:e,oldState:t,newState:r}),(0,n.isEmptyObject)(this.schema[r])&&this.stateChanges.complete()}}e.ObservableFiniteStateMachine=o;var i=qo;Object.defineProperty(e,"BadEventError",{enumerable:!0,get:function(){return i.BadEventError}})}($o),function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(Xn,e),r(Zn,e),r(eo,e),r(ro,e),r(oo,e),r(ao,e),r(co,e),r(po,e),r(Fo,e),r(Lo,e),r(qo,e),r($o,e)}(Qn);var Xw=Qn.ObservableFiniteStateMachine;export{Xw as ObservableFiniteStateMachine,Qw as useFiniteStateMachine,Gn as useForceUpdate,d as useIncrement,y as useIsFirstRender,b as useIsMounted,v as useMount,$n as useMultipleSelection,h as useRenderCounter,Hn as useResizeObserver,Dn as useSingleSelection,Yn as useStateCycle,Kn as useStep,Jn as useToggle,m as useUpdateEffect};
|
|
17
|
+
*/function p(){return c||(c=1,e=f,"production"!==process.env.NODE_ENV&&function(){var t=a(),r=60103,n=60106;e.Fragment=60107,e.StrictMode=60108,e.Profiler=60114;var o=60109,i=60110,u=60112;e.Suspense=60113;var c=60120,s=60115,l=60116,f=60121,p=60122,d=60117,v=60129,b=60131;if("function"==typeof Symbol&&Symbol.for){var y=Symbol.for;r=y("react.element"),n=y("react.portal"),e.Fragment=y("react.fragment"),e.StrictMode=y("react.strict_mode"),e.Profiler=y("react.profiler"),o=y("react.provider"),i=y("react.context"),u=y("react.forward_ref"),e.Suspense=y("react.suspense"),c=y("react.suspense_list"),s=y("react.memo"),l=y("react.lazy"),f=y("react.block"),p=y("react.server.block"),d=y("react.fundamental"),y("react.scope"),y("react.opaque.id"),v=y("react.debug_trace_mode"),y("react.offscreen"),b=y("react.legacy_hidden")}var h="function"==typeof Symbol&&Symbol.iterator;function m(e){if(null===e||"object"!=typeof e)return null;var t=h&&e[h]||e["@@iterator"];return"function"==typeof t?t:null}var g={current:null},O={current:null},w={},S=null;function _(e){S=e}w.setExtraStackFrame=function(e){S=e},w.getCurrentStack=null,w.getStackAddendum=function(){var e="";S&&(e+=S);var t=w.getCurrentStack;return t&&(e+=t()||""),e};var j={ReactCurrentDispatcher:g,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:O,IsSomeRendererActing:{current:!1},assign:t};function x(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];P("warn",e,r)}function E(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];P("error",e,r)}function P(e,t,r){var n=j.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(t+="%s",r=r.concat([n]));var o=r.map((function(e){return""+e}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}j.ReactDebugCurrentFrame=w;var A={};function T(e,t){var r=e.constructor,n=r&&(r.displayName||r.name)||"ReactClass",o=n+"."+t;A[o]||(E("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,n),A[o]=!0)}var I={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){T(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){T(e,"replaceState")},enqueueSetState:function(e,t,r,n){T(e,"setState")}},k={};function C(e,t,r){this.props=e,this.context=t,this.refs=k,this.updater=r||I}Object.freeze(k),C.prototype.isReactComponent={},C.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},C.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var F={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},N=function(e,t){Object.defineProperty(C.prototype,e,{get:function(){x("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var M in F)F.hasOwnProperty(M)&&N(M,F[M]);function R(){}function B(e,t,r){this.props=e,this.context=t,this.refs=k,this.updater=r||I}R.prototype=C.prototype;var L=B.prototype=new R;function U(e){return e.displayName||"Context"}function z(t){if(null==t)return null;if("number"==typeof t.tag&&E("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case e.Fragment:return"Fragment";case n:return"Portal";case e.Profiler:return"Profiler";case e.StrictMode:return"StrictMode";case e.Suspense:return"Suspense";case c:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case i:return U(t)+".Consumer";case o:return U(t._context)+".Provider";case u:return d=t,v=t.render,b="ForwardRef",y=v.displayName||v.name||"",d.displayName||(""!==y?b+"("+y+")":b);case s:return z(t.type);case f:return z(t._render);case l:var r=t,a=r._payload,p=r._init;try{return z(p(a))}catch(e){return null}}var d,v,b,y;return null}L.constructor=B,t(L,C.prototype),L.isPureReactComponent=!0;var W,D,q,V=Object.prototype.hasOwnProperty,$={key:!0,ref:!0,__self:!0,__source:!0};function Y(e){if(V.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function J(e){if(V.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function H(e,t){var r=function(){W||(W=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}function K(e,t){var r=function(){D||(D=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}function G(e){if("string"==typeof e.ref&&O.current&&e.__self&&O.current.stateNode!==e.__self){var t=z(O.current.type);q[t]||(E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',t,e.ref),q[t]=!0)}}q={};var Q=function(e,t,n,o,i,a,u){var c={$$typeof:r,type:e,key:t,ref:n,props:u,_owner:a,_store:{}};return Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function X(e,t,r){var n,o={},i=null,a=null,u=null,c=null;if(null!=t)for(n in Y(t)&&(a=t.ref,G(t)),J(t)&&(i=""+t.key),u=void 0===t.__self?null:t.__self,c=void 0===t.__source?null:t.__source,t)V.call(t,n)&&!$.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(1===s)o.children=r;else if(s>1){for(var l=Array(s),f=0;f<s;f++)l[f]=arguments[f+2];Object.freeze&&Object.freeze(l),o.children=l}if(e&&e.defaultProps){var p=e.defaultProps;for(n in p)void 0===o[n]&&(o[n]=p[n])}if(i||a){var d="function"==typeof e?e.displayName||e.name||"Unknown":e;i&&H(o,d),a&&K(o,d)}return Q(e,i,a,u,c,O.current,o)}function Z(e,r,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o,i,a=t({},e.props),u=e.key,c=e.ref,s=e._self,l=e._source,f=e._owner;if(null!=r)for(o in Y(r)&&(c=r.ref,f=O.current),J(r)&&(u=""+r.key),e.type&&e.type.defaultProps&&(i=e.type.defaultProps),r)V.call(r,o)&&!$.hasOwnProperty(o)&&(void 0===r[o]&&void 0!==i?a[o]=i[o]:a[o]=r[o]);var p=arguments.length-2;if(1===p)a.children=n;else if(p>1){for(var d=Array(p),v=0;v<p;v++)d[v]=arguments[v+2];a.children=d}return Q(e.type,u,c,s,l,f,a)}function ee(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var te=!1,re=/\/+/g;function ne(e){return e.replace(re,"$&/")}function oe(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,(function(e){return n[e]}))):t.toString(36);var r,n}function ie(e,t,o,i,a){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var c,s,l,f=!1;if(null===e)f=!0;else switch(u){case"string":case"number":f=!0;break;case"object":switch(e.$$typeof){case r:case n:f=!0}}if(f){var p=e,d=a(p),v=""===i?"."+oe(p,0):i;if(Array.isArray(d)){var b="";null!=v&&(b=ne(v)+"/"),ie(d,t,b,"",(function(e){return e}))}else null!=d&&(ee(d)&&(c=d,s=o+(!d.key||p&&p.key===d.key?"":ne(""+d.key)+"/")+v,d=Q(c.type,s,c.ref,c._self,c._source,c._owner,c.props)),t.push(d));return 1}var y=0,h=""===i?".":i+":";if(Array.isArray(e))for(var g=0;g<e.length;g++)y+=ie(l=e[g],t,o,h+oe(l,g),a);else{var O=m(e);if("function"==typeof O){var w=e;O===w.entries&&(te||x("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),te=!0);for(var S,_=O.call(w),j=0;!(S=_.next()).done;)y+=ie(l=S.value,t,o,h+oe(l,j++),a)}else if("object"===u){var E=""+e;throw Error("Objects are not valid as a React child (found: "+("[object Object]"===E?"object with keys {"+Object.keys(e).join(", ")+"}":E)+"). If you meant to render a collection of children, use an array instead.")}}return y}function ae(e,t,r){if(null==e)return e;var n=[],o=0;return ie(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function ue(e){if(-1===e._status){var t=(0,e._result)(),r=e;r._status=0,r._result=t,t.then((function(t){if(0===e._status){var r=t.default;void 0===r&&E("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",t);var n=e;n._status=1,n._result=r}}),(function(t){if(0===e._status){var r=e;r._status=2,r._result=t}}))}if(1===e._status)return e._result;throw e._result}function ce(t){return"string"==typeof t||"function"==typeof t||t===e.Fragment||t===e.Profiler||t===v||t===e.StrictMode||t===e.Suspense||t===c||t===b||"object"==typeof t&&null!==t&&(t.$$typeof===l||t.$$typeof===s||t.$$typeof===o||t.$$typeof===i||t.$$typeof===u||t.$$typeof===d||t.$$typeof===f||t[0]===p)}function se(){var e=g.current;if(null===e)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");return e}var le,fe,pe,de,ve,be,ye,he=0;function me(){}me.__reactDisabledLog=!0;var ge,Oe=j.ReactCurrentDispatcher;function we(e,t,r){if(void 0===ge)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);ge=n&&n[1]||""}return"\n"+ge+e}var Se,_e=!1,je="function"==typeof WeakMap?WeakMap:Map;function xe(e,r){if(!e||_e)return"";var n,o=Se.get(e);if(void 0!==o)return o;_e=!0;var i,a=Error.prepareStackTrace;Error.prepareStackTrace=void 0,i=Oe.current,Oe.current=null,function(){if(0===he){le=console.log,fe=console.info,pe=console.warn,de=console.error,ve=console.group,be=console.groupCollapsed,ye=console.groupEnd;var e={configurable:!0,enumerable:!0,value:me,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}he++}();try{if(r){var u=function(){throw Error()};if(Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(u,[])}catch(e){n=e}Reflect.construct(e,[],u)}else{try{u.call()}catch(e){n=e}e.call(u.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var c=t.stack.split("\n"),s=n.stack.split("\n"),l=c.length-1,f=s.length-1;l>=1&&f>=0&&c[l]!==s[f];)f--;for(;l>=1&&f>=0;l--,f--)if(c[l]!==s[f]){if(1!==l||1!==f)do{if(l--,--f<0||c[l]!==s[f]){var p="\n"+c[l].replace(" at new "," at ");return"function"==typeof e&&Se.set(e,p),p}}while(l>=1&&f>=0);break}}}finally{_e=!1,Oe.current=i,function(){if(0==--he){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:t({},e,{value:le}),info:t({},e,{value:fe}),warn:t({},e,{value:pe}),error:t({},e,{value:de}),group:t({},e,{value:ve}),groupCollapsed:t({},e,{value:be}),groupEnd:t({},e,{value:ye})})}he<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=a}var d=e?e.displayName||e.name:"",v=d?we(d):"";return"function"==typeof e&&Se.set(e,v),v}function Ee(e,t,r){return xe(e,!1)}function Pe(t,r,n){if(null==t)return"";if("function"==typeof t)return xe(t,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(t));if("string"==typeof t)return we(t);switch(t){case e.Suspense:return we("Suspense");case c:return we("SuspenseList")}if("object"==typeof t)switch(t.$$typeof){case u:return Ee(t.render);case s:return Pe(t.type,r,n);case f:return Ee(t._render);case l:var o=t,i=o._payload,a=o._init;try{return Pe(a(i),r,n)}catch(e){}}return""}Se=new je;var Ae,Te={},Ie=j.ReactDebugCurrentFrame;function ke(e){if(e){var t=e._owner,r=Pe(e.type,e._source,t?t.type:null);Ie.setExtraStackFrame(r)}else Ie.setExtraStackFrame(null)}function Ce(e){if(e){var t=e._owner;_(Pe(e.type,e._source,t?t.type:null))}else _(null)}function Fe(){if(O.current){var e=z(O.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}function Ne(e){return null!=e&&void 0!==(t=e.__source)?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":"";var t}Ae=!1;var Me={};function Re(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=function(e){var t=Fe();if(!t){var r="string"==typeof e?e:e.displayName||e.name;r&&(t="\n\nCheck the top-level render call using <"+r+">.")}return t}(t);if(!Me[r]){Me[r]=!0;var n="";e&&e._owner&&e._owner!==O.current&&(n=" It was passed a child from "+z(e._owner.type)+"."),Ce(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),Ce(null)}}}function Be(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];ee(n)&&Re(n,t)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var o=m(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)ee(i.value)&&Re(i.value,t)}}function Le(e){var t,r=e.type;if(null!=r&&"string"!=typeof r){if("function"==typeof r)t=r.propTypes;else{if("object"!=typeof r||r.$$typeof!==u&&r.$$typeof!==s)return;t=r.propTypes}if(t){var n=z(r);!function(e,t,r,n,o){var i=Function.call.bind(Object.prototype.hasOwnProperty);for(var a in e)if(i(e,a)){var u=void 0;try{if("function"!=typeof e[a]){var c=Error((n||"React class")+": "+r+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}u=e[a](t,a,n,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){u=e}!u||u instanceof Error||(ke(o),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",r,a,typeof u),ke(null)),u instanceof Error&&!(u.message in Te)&&(Te[u.message]=!0,ke(o),E("Failed %s type: %s",r,u.message),ke(null))}}(t,e.props,"prop",n,e)}else void 0===r.PropTypes||Ae||(Ae=!0,E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",z(r)||"Unknown"));"function"!=typeof r.getDefaultProps||r.getDefaultProps.isReactClassApproved||E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ue(e){for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if("children"!==n&&"key"!==n){Ce(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),Ce(null);break}}null!==e.ref&&(Ce(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),Ce(null))}function ze(t,n,o){var i=ce(t);if(!i){var a="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var u,c=Ne(n);a+=c||Fe(),null===t?u="null":Array.isArray(t)?u="array":void 0!==t&&t.$$typeof===r?(u="<"+(z(t.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):u=typeof t,E("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",u,a)}var s=X.apply(this,arguments);if(null==s)return s;if(i)for(var l=2;l<arguments.length;l++)Be(arguments[l],t);return t===e.Fragment?Ue(s):Le(s),s}var We=!1;try{var De=Object.freeze({});new Map([[De,null]]),new Set([De])}catch(e){}var qe=ze,Ve=function(e,t,r){for(var n=Z.apply(this,arguments),o=2;o<arguments.length;o++)Be(arguments[o],n.type);return Le(n),n},$e=function(e){var t=ze.bind(null,e);return t.type=e,We||(We=!0,x("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return x("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},Ye={map:ae,forEach:function(e,t,r){ae(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return ae(e,(function(){t++})),t},toArray:function(e){return ae(e,(function(e){return e}))||[]},only:function(e){if(!ee(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};e.Children=Ye,e.Component=C,e.PureComponent=B,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,e.cloneElement=Ve,e.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&E("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var r={$$typeof:i,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null};r.Provider={$$typeof:o,_context:r};var n=!1,a=!1,u=!1,c={$$typeof:i,_context:r,_calculateChangedBits:r._calculateChangedBits};return Object.defineProperties(c,{Provider:{get:function(){return a||(a=!0,E("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),r.Provider},set:function(e){r.Provider=e}},_currentValue:{get:function(){return r._currentValue},set:function(e){r._currentValue=e}},_currentValue2:{get:function(){return r._currentValue2},set:function(e){r._currentValue2=e}},_threadCount:{get:function(){return r._threadCount},set:function(e){r._threadCount=e}},Consumer:{get:function(){return n||(n=!0,E("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),r.Consumer}},displayName:{get:function(){return r.displayName},set:function(e){u||(x("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),u=!0)}}}),r.Consumer=c,r._currentRenderer=null,r._currentRenderer2=null,r},e.createElement=qe,e.createFactory=$e,e.createRef=function(){var e={current:null};return Object.seal(e),e},e.forwardRef=function(e){null!=e&&e.$$typeof===s?E("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?E("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&E("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||E("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,r={$$typeof:u,render:e};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(r){t=r,null==e.displayName&&(e.displayName=r)}}),r},e.isValidElement=ee,e.lazy=function(e){var t,r,n={$$typeof:l,_payload:{_status:-1,_result:e},_init:ue};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){E("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){E("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},e.memo=function(e,t){ce(e)||E("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var r,n={$$typeof:s,type:e,compare:void 0===t?null:t};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(t){r=t,null==e.displayName&&(e.displayName=t)}}),n},e.useCallback=function(e,t){return se().useCallback(e,t)},e.useContext=function(e,t){var r=se();if(void 0!==t&&E("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",t,"number"==typeof t&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://reactjs.org/link/rules-of-hooks":""),void 0!==e._context){var n=e._context;n.Consumer===e?E("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===e&&E("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return r.useContext(e,t)},e.useDebugValue=function(e,t){return se().useDebugValue(e,t)},e.useEffect=function(e,t){return se().useEffect(e,t)},e.useImperativeHandle=function(e,t,r){return se().useImperativeHandle(e,t,r)},e.useLayoutEffect=function(e,t){return se().useLayoutEffect(e,t)},e.useMemo=function(e,t){return se().useMemo(e,t)},e.useReducer=function(e,t,r){return se().useReducer(e,t,r)},e.useRef=function(e){return se().useRef(e)},e.useState=function(e){return se().useState(e)},e.version="17.0.2"}()),f;var e}function d(e){const[t,r]=o.exports.useState(e);return[t,function(e=1){r((t=>t+e))},function(){r(e)}]}function v(e){o.exports.useEffect(e,[])}function b(){const e=o.exports.useRef(!1);return v((()=>(e.current=!0,()=>{e.current=!1}))),()=>e.current}function y(){const e=o.exports.useRef(l.InitialValue);switch(e.current){case l.InitialValue:e.current=l.First;break;case l.First:e.current=l.NotFirst;break;case l.NotFirst:}return()=>e.current===l.First}function h(){const e=o.exports.useRef(0);return e.current++,e.current}function m(e,t){const r=y();o.exports.useEffect((()=>{if(!r())return e()}),t)}s=o,"production"===process.env.NODE_ENV?s.exports=u():s.exports=p(),function(e){e[e.InitialValue=0]="InitialValue",e[e.First=1]="First",e[e.NotFirst=2]="NotFirst"}(l||(l={}));var g={},O={};function w(e){return Array.isArray(e)}O.isntEmptyArray=O.isEmptyArray=O.isntArray=O.isArray=void 0,O.isArray=w,O.isntArray=function(e){return!w(e)},O.isEmptyArray=function(e){return 0===e.length},O.isntEmptyArray=function(e){return 0!==e.length};var S={},_={};function j(e){return null===e}_.isntNull=_.isNull=void 0,_.isNull=j,_.isntNull=function(e){return!j(e)};var x={};function E(e){return void 0===e}x.isntUndefined=x.isUndefined=void 0,x.isUndefined=E,x.isntUndefined=function(e){return!E(e)};var P={};function A(e){return"function"==typeof e}P.isntFunction=P.isFunction=void 0,P.isFunction=A,P.isntFunction=function(e){return!A(e)},S.isntAsyncIterable=S.isAsyncIterable=void 0;const T=_,I=x,k=P;function C(e){return(0,T.isntNull)(e)&&(0,I.isntUndefined)(e)&&(0,k.isFunction)(e[Symbol.asyncIterator])}S.isAsyncIterable=C,S.isntAsyncIterable=function(e){return!C(e)};var F={};function N(e){return"bigint"==typeof e}F.isntBigInt=F.isBigInt=void 0,F.isBigInt=N,F.isntBigInt=function(e){return!N(e)};var M={};function R(e){return"boolean"==typeof e}M.isntBoolean=M.isBoolean=void 0,M.isBoolean=R,M.isntBoolean=function(e){return!R(e)};var B={},L={};function U(e){return"string"==typeof e}L.isntString=L.isString=void 0,L.isString=U,L.isntString=function(e){return!U(e)},B.isntChar=B.isChar=void 0;const z=L;function W(e){return(0,z.isString)(e)&&1===e.length}B.isChar=W,B.isntChar=function(e){return!W(e)};var D={};function q(e){return e instanceof Date}D.isntDate=D.isDate=void 0,D.isDate=q,D.isntDate=function(e){return!q(e)};var V={};V.inEnum=void 0,V.inEnum=function(e,t){return Object.values(t).includes(e)};var $={};function Y(e){return e instanceof Error}$.isntError=$.isError=void 0,$.isError=Y,$.isntError=function(e){return!Y(e)};var J={};function H(e){return!e}J.isntFalsy=J.isFalsy=void 0,J.isFalsy=H,J.isntFalsy=function(e){return!H(e)};var K={};K.isntIterable=K.isIterable=void 0;const G=_,Q=x,X=P;function Z(e){return(0,G.isntNull)(e)&&(0,Q.isntUndefined)(e)&&(0,X.isFunction)(e[Symbol.iterator])}K.isIterable=Z,K.isntIterable=function(e){return!Z(e)};var ee={},te={};function re(e){return"number"==typeof e}function ne(e){return Number.isNaN(e)}te.isntNaN=te.isNaN=te.isNegativeInfinity=te.isPositiveInfinity=te.isFinite=te.isntNumber=te.isNumber=void 0,te.isNumber=re,te.isntNumber=function(e){return!re(e)},te.isFinite=function(e){return Number.isFinite(e)},te.isPositiveInfinity=function(e){return e===1/0},te.isNegativeInfinity=function(e){return e===-1/0},te.isNaN=ne,te.isntNaN=function(e){return!ne(e)};var oe={},ie="object"==typeof n&&n&&n.Object===Object&&n,ae="object"==typeof self&&self&&self.Object===Object&&self,ue=(ie||ae||Function("return this")()).Symbol,ce=ue,se=Object.prototype,le=se.hasOwnProperty,fe=se.toString,pe=ce?ce.toStringTag:void 0;var de=function(e){var t=le.call(e,pe),r=e[pe];try{e[pe]=void 0;var n=!0}catch(e){}var o=fe.call(e);return n&&(t?e[pe]=r:delete e[pe]),o},ve=Object.prototype.toString;var be=de,ye=function(e){return ve.call(e)},he=ue?ue.toStringTag:void 0;var me=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":he&&he in Object(e)?be(e):ye(e)};var ge=function(e,t){return function(r){return e(t(r))}}(Object.getPrototypeOf,Object);var Oe=me,we=ge,Se=function(e){return null!=e&&"object"==typeof e},_e=Function.prototype,je=Object.prototype,xe=_e.toString,Ee=je.hasOwnProperty,Pe=xe.call(Object);var Ae=function(e){if(!Se(e)||"[object Object]"!=Oe(e))return!1;var t=we(e);if(null===t)return!0;var r=Ee.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&xe.call(r)==Pe},Te=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};oe.isntEmptyObject=oe.isEmptyObject=oe.isntPlainObject=oe.isPlainObject=oe.isntObject=oe.isObject=void 0;const Ie=Te(Ae);function ke(e){return null!==e&&"object"==typeof e}function Ce(e){return(0,Ie.default)(e)}oe.isObject=ke,oe.isntObject=function(e){return!ke(e)},oe.isPlainObject=Ce,oe.isntPlainObject=function(e){return!Ce(e)},oe.isEmptyObject=function(e){return 0===Object.keys(e).length},oe.isntEmptyObject=function(e){return 0!==Object.keys(e).length},ee.isntJsonable=ee.isJsonable=ee.isntJson=ee.isJson=void 0;const Fe=_,Ne=M,Me=L,Re=te,Be=O,Le=oe;function Ue(e){return(0,Fe.isNull)(e)||(0,Ne.isBoolean)(e)||(0,Me.isString)(e)||(0,Re.isNumber)(e)||(0,Be.isArray)(e)&&e.every(Ue)||(0,Le.isPlainObject)(e)&&Object.values(e).every(Ue)}ee.isJson=Ue,ee.isntJson=function(e){return!Ue(e)},ee.isJsonable=function(e){try{return JSON.stringify(e),!0}catch(e){return!1}},ee.isntJsonable=function e(t){return!e()};var ze={};ze.isPromiseLike=ze.isntPromiseLike=ze.isntPromise=ze.isPromise=void 0;const We=oe,De=P;function qe(e){return e instanceof Promise}function Ve(e){return(0,We.isObject)(e)&&(0,De.isFunction)(e.then)}ze.isPromise=qe,ze.isntPromise=function(e){return!qe(e)},ze.isntPromiseLike=function(e){return!Ve(e)},ze.isPromiseLike=Ve;var $e={};$e.isAbsoluteURL=void 0,$e.isAbsoluteURL=function(e){try{return new URL(e),!0}catch(e){return!1}};var Ye,Je,He,Ke={};function Ge(e){return e instanceof RegExp}Ke.isntRegExp=Ke.isRegExp=void 0,Ke.isRegExp=Ge,Ke.isntRegExp=function(e){return!Ge(e)},Ye=g,Je=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),(He=n&&n.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||Je(t,e,r)})(O,Ye),He(S,Ye),He(F,Ye),He(M,Ye),He(B,Ye),He(D,Ye),He(V,Ye),He($,Ye),He(J,Ye),He(P,Ye),He(K,Ye),He(ee,Ye),He(_,Ye),He(te,Ye),He(oe,Ye),He(ze,Ye),He(L,Ye),He(x,Ye),He($e,Ye),He(Ke,Ye);var Qe,Xe={},Ze={},et={},tt={},rt={},nt={},ot={};ot.go=void 0,ot.go=function(e){return e()},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]});(n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)})(ot,e)}(nt);var it={},at={},ut={};function ct(e){return Array.isArray(e)}ut.isntEmptyArray=ut.isEmptyArray=ut.isntArray=ut.isArray=void 0,ut.isArray=ct,ut.isntArray=function(e){return!ct(e)},ut.isEmptyArray=function(e){return 0===e.length},ut.isntEmptyArray=function(e){return 0!==e.length};var st={},lt={};function ft(e){return null===e}lt.isntNull=lt.isNull=void 0,lt.isNull=ft,lt.isntNull=function(e){return!ft(e)};var pt={};function dt(e){return void 0===e}pt.isntUndefined=pt.isUndefined=void 0,pt.isUndefined=dt,pt.isntUndefined=function(e){return!dt(e)};var vt={};function bt(e){return"function"==typeof e}vt.isntFunction=vt.isFunction=void 0,vt.isFunction=bt,vt.isntFunction=function(e){return!bt(e)},st.isntAsyncIterable=st.isAsyncIterable=void 0;const yt=lt,ht=pt,mt=vt;function gt(e){return(0,yt.isntNull)(e)&&(0,ht.isntUndefined)(e)&&(0,mt.isFunction)(e[Symbol.asyncIterator])}st.isAsyncIterable=gt,st.isntAsyncIterable=function(e){return!gt(e)};var Ot={};function wt(e){return"bigint"==typeof e}Ot.isntBigInt=Ot.isBigInt=void 0,Ot.isBigInt=wt,Ot.isntBigInt=function(e){return!wt(e)};var St={};function _t(e){return"boolean"==typeof e}St.isntBoolean=St.isBoolean=void 0,St.isBoolean=_t,St.isntBoolean=function(e){return!_t(e)};var jt={},xt={};function Et(e){return"string"==typeof e}xt.isntString=xt.isString=void 0,xt.isString=Et,xt.isntString=function(e){return!Et(e)},jt.isntChar=jt.isChar=void 0;const Pt=xt;function At(e){return(0,Pt.isString)(e)&&1===e.length}jt.isChar=At,jt.isntChar=function(e){return!At(e)};var Tt={};function It(e){return e instanceof Date}Tt.isntDate=Tt.isDate=void 0,Tt.isDate=It,Tt.isntDate=function(e){return!It(e)};var kt={};kt.inEnum=void 0,kt.inEnum=function(e,t){return Object.values(t).includes(e)};var Ct={};function Ft(e){return e instanceof Error}Ct.isntError=Ct.isError=void 0,Ct.isError=Ft,Ct.isntError=function(e){return!Ft(e)};var Nt={};function Mt(e){return!e}Nt.isntFalsy=Nt.isFalsy=void 0,Nt.isFalsy=Mt,Nt.isntFalsy=function(e){return!Mt(e)};var Rt={};Rt.isntIterable=Rt.isIterable=void 0;const Bt=lt,Lt=pt,Ut=vt;function zt(e){return(0,Bt.isntNull)(e)&&(0,Lt.isntUndefined)(e)&&(0,Ut.isFunction)(e[Symbol.iterator])}Rt.isIterable=zt,Rt.isntIterable=function(e){return!zt(e)};var Wt={},Dt={};function qt(e){return"number"==typeof e}function Vt(e){return Number.isNaN(e)}Dt.isntNaN=Dt.isNaN=Dt.isNegativeInfinity=Dt.isPositiveInfinity=Dt.isFinite=Dt.isntNumber=Dt.isNumber=void 0,Dt.isNumber=qt,Dt.isntNumber=function(e){return!qt(e)},Dt.isFinite=function(e){return Number.isFinite(e)},Dt.isPositiveInfinity=function(e){return e===1/0},Dt.isNegativeInfinity=function(e){return e===-1/0},Dt.isNaN=Vt,Dt.isntNaN=function(e){return!Vt(e)};var $t={},Yt=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};$t.isntEmptyObject=$t.isEmptyObject=$t.isntPlainObject=$t.isPlainObject=$t.isntObject=$t.isObject=void 0;const Jt=Yt(Ae);function Ht(e){return null!==e&&"object"==typeof e}function Kt(e){return(0,Jt.default)(e)}$t.isObject=Ht,$t.isntObject=function(e){return!Ht(e)},$t.isPlainObject=Kt,$t.isntPlainObject=function(e){return!Kt(e)},$t.isEmptyObject=function(e){return 0===Object.keys(e).length},$t.isntEmptyObject=function(e){return 0!==Object.keys(e).length},Wt.isntJsonable=Wt.isJsonable=Wt.isntJson=Wt.isJson=void 0;const Gt=lt,Qt=St,Xt=xt,Zt=Dt,er=ut,tr=$t;function rr(e){return(0,Gt.isNull)(e)||(0,Qt.isBoolean)(e)||(0,Xt.isString)(e)||(0,Zt.isNumber)(e)||(0,er.isArray)(e)&&e.every(rr)||(0,tr.isPlainObject)(e)&&Object.values(e).every(rr)}Wt.isJson=rr,Wt.isntJson=function(e){return!rr(e)},Wt.isJsonable=function(e){try{return JSON.stringify(e),!0}catch(e){return!1}},Wt.isntJsonable=function e(t){return!e()};var nr={};nr.isPromiseLike=nr.isntPromiseLike=nr.isntPromise=nr.isPromise=void 0;const or=$t,ir=vt;function ar(e){return e instanceof Promise}function ur(e){return(0,or.isObject)(e)&&(0,ir.isFunction)(e.then)}nr.isPromise=ar,nr.isntPromise=function(e){return!ar(e)},nr.isntPromiseLike=function(e){return!ur(e)},nr.isPromiseLike=ur;var cr={};cr.isAbsoluteURL=void 0,cr.isAbsoluteURL=function(e){try{return new URL(e),!0}catch(e){return!1}},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(ut,e),r(st,e),r(Ot,e),r(St,e),r(jt,e),r(Tt,e),r(kt,e),r(Ct,e),r(Nt,e),r(vt,e),r(Rt,e),r(Wt,e),r(lt,e),r(Dt,e),r($t,e),r(nr,e),r(xt,e),r(pt,e),r(cr,e)}(at),it.chunkByAsync=void 0;const sr=at;it.chunkByAsync=function(e,t){return(0,sr.isAsyncIterable)(e)?async function*(e){let r=[],n=0;for await(const o of e)r.push(o),await t(o,n)&&(yield r,r=[]),n++;r.length&&(yield r)}(e):async function*(e){let r=[],n=0;for(const o of e)r.push(o),await t(o,n)&&(yield r,r=[]),n++;r.length&&(yield r)}(e)};var lr={};lr.chunkBy=void 0,lr.chunkBy=function*(e,t){let r=[],n=0;for(const o of e)r.push(o),t(o,n)&&(yield r,r=[]),n++;r.length&&(yield r)};var fr,pr={};var dr={concatAsync:void 0};const vr=at,br=nt;dr.concatAsync=function(e,...t){return(0,br.go)((async function*(){for(const r of[e,...t])if((0,vr.isAsyncIterable)(r))for await(const e of r)yield e;else for(const e of r)yield e}))};var yr={concat:void 0};const hr=nt;yr.concat=function(e,...t){return(0,hr.go)((function*(){for(const r of[e,...t])yield*r}))};var mr,gr={},Or={};Or.copyIterable=Or.copyAsyncIterable=void 0,Or.copyAsyncIterable=async function*(e){for await(const t of e)yield t},Or.copyIterable=function*(e){for(const t of e)yield t};var wr,Sr={};var _r,jr={};var xr={dropUntilAsync:void 0};const Er=at;xr.dropUntilAsync=function(e,t){return(0,Er.isAsyncIterable)(e)?async function*(e){var r;const n=e[Symbol.asyncIterator]();let o;try{let e,i=0;for(;!(({value:e,done:o}=await n.next()),o||await t(e,i++)););for(;!o;)yield e,({value:e,done:o}=await n.next())}finally{o||await(null===(r=n.return)||void 0===r?void 0:r.call(n))}}(e):async function*(e){var r;const n=e[Symbol.iterator]();let o;try{let e,i=0;for(;!(({value:e,done:o}=n.next()),o||await t(e,i++)););for(;!o;)yield e,({value:e,done:o}=n.next())}finally{o||null===(r=n.return)||void 0===r||r.call(n)}}(e)};var Pr={};Pr.dropUntil=void 0,Pr.dropUntil=function*(e,t){var r;const n=e[Symbol.iterator]();let o;try{let e,i=0;for(;!(({value:e,done:o}=n.next()),o||t(e,i++)););for(;!o;)yield e,({value:e,done:o}=n.next())}finally{o||null===(r=n.return)||void 0===r||r.call(n)}};var Ar,Tr={};var Ir={filterAsync:void 0};const kr=at;Ir.filterAsync=function(e,t){return(0,kr.isAsyncIterable)(e)?async function*(e){let r=0;for await(const n of e)await t(n,r)&&(yield n),r++}(e):async function*(e){let r=0;for(const n of e)await t(n,r)&&(yield n),r++}(e)};var Cr={};Cr.filter=void 0,Cr.filter=function*(e,t){let r=0;for(const n of e)t(n,r)&&(yield n),r++};var Fr={},Nr={},Mr={flattenByAsync:void 0};const Rr=at;function Br(e){return(0,Rr.isIterable)(e)&&(0,Rr.isntChar)(e)}var Lr,Ur;function zr(){if(Lr)return Nr;Lr=1,Nr.flattenDeepAsync=void 0;const e=Mr,t=Jo();return Nr.flattenDeepAsync=function(r,n=1/0){return(0,t.assert)(n===1/0||Number.isInteger(n),"The parameter depth must be an integer"),(0,t.assert)(n>=0,"The parameter depth must be greater than or equal to 0"),(0,e.flattenByAsync)(r,((e,t)=>t<=n))},Nr}Mr.flattenByAsync=function(e,t){return(0,Rr.isAsyncIterable)(e)?async function*(e){const n=1;for await(const o of e)Br(o)&&await t(o,n)?yield*r(o,n+1):yield o}(e):function(e){return r(e,1)}(e);async function*r(e,n){for(const o of e)Br(o)&&await t(o,n)?yield*r(o,n+1):yield o}};var Wr={flattenBy:void 0};const Dr=at;Wr.flattenBy=function(e,t){return function*e(r,n){for(const i of r)(0,Dr.isIterable)(o=i)&&(0,Dr.isntChar)(o)&&t(i,n)?yield*e(i,n+1):yield i;var o}(e,1)};var qr,Vr={};function $r(){if(qr)return Vr;qr=1,Vr.flattenDeep=void 0;const e=Wr,t=Jo();return Vr.flattenDeep=function(r,n=1/0){return(0,t.assert)(n===1/0||Number.isInteger(n),"The parameter depth must be an integer"),(0,t.assert)(n>=0,"The parameter depth must be greater than or equal to 0"),(0,e.flattenBy)(r,((e,t)=>t<=n))},Vr}var Yr,Jr={};var Hr={mapAsync:void 0};const Kr=at;Hr.mapAsync=function(e,t){return(0,Kr.isAsyncIterable)(e)?async function*(e){let r=0;for await(const n of e)yield await t(n,r),r++}(e):async function*(e){let r=0;for(const n of e)yield await t(n,r),r++}(e)};var Gr={};Gr.map=void 0,Gr.map=function*(e,t){let r=0;for(const n of e)yield t(n,r),r++};var Qr,Xr={};function Zr(){if(Qr)return Xr;Qr=1,Xr.repeatAsync=void 0;const e=nt,t=Jo();return Xr.repeatAsync=function(r,n){return(0,t.assert)(n===1/0||Number.isInteger(n),"The parameter times must be an integer"),(0,t.assert)(n>=0,"The parameter times must be greater than or equal to 0"),n===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,e.go)((async function*(){const e=[];if(n>0){for await(const t of r)yield t,e.push(t);n--}for(;n>0;)yield*e,n--}))},Xr}var en,tn={};function rn(){if(en)return tn;en=1,tn.repeat=void 0;const e=nt,t=Jo();return tn.repeat=function(r,n){return(0,t.assert)(n===1/0||Number.isInteger(n),"The parameter times must be an integer"),(0,t.assert)(n>=0,"The parameter times must be greater than or equal to 0"),n===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,e.go)((function*(){const e=[];if(n>0){for(const t of r)yield t,e.push(t);n--}for(;n>0;)yield*e,n--}))},tn}var nn,on={};var an,un={};var cn={};cn.splitAsync=void 0,cn.splitAsync=async function*(e,t){let r=[];for await(const n of e)n===t?(yield r,r=[]):r.push(n);yield r};var sn={splitByAsync:void 0};const ln=at;sn.splitByAsync=function(e,t){return(0,ln.isAsyncIterable)(e)?async function*(e){let r=[],n=0;for await(const o of e)await t(o,n)?(yield r,r=[]):r.push(o),n++;yield r}(e):async function*(e){let r=[],n=0;for(const o of e)await t(o,n)?(yield r,r=[]):r.push(o),n++;yield r}(e)};var fn={};fn.splitBy=void 0,fn.splitBy=function*(e,t){let r=[],n=0;for(const o of e)t(o,n)?(yield r,r=[]):r.push(o),n++;yield r};var pn={};pn.split=void 0,pn.split=function*(e,t){let r=[];for(const n of e)n===t?(yield r,r=[]):r.push(n);yield r};var dn,vn={};var bn,yn={};var hn,mn={};var gn={takeUntilAsync:void 0};const On=at;gn.takeUntilAsync=function(e,t){return(0,On.isAsyncIterable)(e)?async function*(e){let r=0;for await(const n of e){if(await t(n,r))break;yield n,r++}}(e):async function*(e){let r=0;for(const n of e){if(await t(n,r))break;yield n,r++}}(e)};var wn={};wn.takeUntil=void 0,wn.takeUntil=function*(e,t){let r=0;for(const n of e){if(t(n,r))break;yield n,r++}};var Sn,_n={};var jn={tapAsync:void 0};const xn=at;jn.tapAsync=function(e,t){return(0,xn.isAsyncIterable)(e)?async function*(e){let r=0;for await(const n of e)await t(n,r),yield n,r++}(e):async function*(e){let r=0;for(const n of e)await t(n,r),yield n,r++}(e)};var En={};En.tap=void 0,En.tap=function*(e,t){let r=0;for(const n of e)t(n,r),yield n,r++};var Pn={};Pn.toAsyncIterable=void 0,Pn.toAsyncIterable=async function*(e){for(const t of e)yield t};var An={};An.transformAsync=void 0,An.transformAsync=async function*(e,t){yield*t(e)};var Tn={};Tn.transform=void 0,Tn.transform=function*(e,t){yield*t(e)};var In={};In.uniqAsync=void 0,In.uniqAsync=async function*(e){const t=new Set;for await(const r of e)t.has(r)||(yield r,t.add(r))};var kn={uniqByAsync:void 0};const Cn=at;kn.uniqByAsync=function(e,t){return(0,Cn.isAsyncIterable)(e)?async function*(e){const r=new Set;let n=0;for await(const o of e){const e=await t(o,n);r.has(e)||(yield o,r.add(e)),n++}}(e):async function*(e){const r=new Set;let n=0;for(const o of e){const e=await t(o,n);r.has(e)||(yield o,r.add(e)),n++}}(e)};var Fn={};Fn.uniqBy=void 0,Fn.uniqBy=function*(e,t){const r=new Set;let n=0;for(const o of e){const e=t(o,n);r.has(e)||(yield o,r.add(e)),n++}};var Nn={};Nn.uniq=void 0,Nn.uniq=function*(e){const t=new Set;for(const r of e)t.has(r)||(yield r,t.add(r))};var Mn={zipAsync:void 0};const Rn=at;var Bn;!function(e){e[e.Sync=0]="Sync",e[e.Async=1]="Async"}(Bn||(Bn={})),Mn.zipAsync=function(e,...t){return async function*(...e){var t,r,n,o;const i=e.length,a=e.map((e=>(0,Rn.isAsyncIterable)(e)?[Bn.Async,e[Symbol.asyncIterator]()]:[Bn.Sync,e[Symbol.iterator]()])),u=a.map((()=>!1));try{for(;;){const e=new Array(i);for(let t=0;t<i;t++){const[r,n]=a[t];let o;if(o=r===Bn.Async?await n.next():n.next(),o.done)return void(u[t]=!0);e[t]=o.value}yield e}}finally{const e=a.filter(((e,t)=>!u[t]));for(const[i,a]of e)i===Bn.Async?await(null===(r=(t=a).return)||void 0===r?void 0:r.call(t)):null===(o=(n=a).return)||void 0===o||o.call(n)}}(e,...t)};var Ln,Un={};function zn(){return Ln||(Ln=1,function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(function(){if(Qe)return rt;Qe=1,rt.chunkAsync=void 0;const e=nt,t=Jo();return rt.chunkAsync=function(r,n){return(0,t.assert)(Number.isInteger(n),"The parameter size must be an integer"),(0,t.assert)(n>0,"The parameter size must be greater than 0"),(0,e.go)((async function*(){let e=[];for await(const t of r)e.push(t),e.length>=n&&(yield e,e=[]);e.length&&(yield e)}))},rt}(),e),r(it,e),r(lr,e),r(function(){if(fr)return pr;fr=1,pr.chunk=void 0;const e=nt,t=Jo();return pr.chunk=function(r,n){return(0,t.assert)(Number.isInteger(n),"The parameter size must be an integer"),(0,t.assert)(n>0,"The parameter size must be greater than 0"),(0,e.go)((function*(){let e=[];for(const t of r)e.push(t),e.length>=n&&(yield e,e=[]);e.length&&(yield e)}))},pr}(),e),r(dr,e),r(yr,e),r(function(){if(mr)return gr;mr=1,gr.dropAsync=void 0;const e=nt,t=Or,r=Jo();return gr.dropAsync=function(n,o){return(0,r.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,r.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,t.copyAsyncIterable)(n):(0,e.go)((async function*(){var e;const t=n[Symbol.asyncIterator]();let r;try{let n;for(;({value:n,done:r}=await t.next()),!(r||o<=0);)o--;for(;!r;)yield n,({value:n,done:r}=await t.next())}finally{r||await(null===(e=t.return)||void 0===e?void 0:e.call(t))}}))},gr}(),e),r(function(){if(wr)return Sr;wr=1,Sr.dropRightAsync=void 0;const e=nt,t=Or,r=Jo();return Sr.dropRightAsync=function(n,o){return(0,r.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,r.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,t.copyAsyncIterable)(n):(0,e.go)((async function*(){const e=(await async function(e){const t=[];for await(const r of e)t.push(r);return t}(n)).slice(0,-o);for(const t of e)yield t}))},Sr}(),e),r(function(){if(_r)return jr;_r=1,jr.dropRight=void 0;const e=nt,t=Or,r=Jo();return jr.dropRight=function(n,o){return(0,r.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,r.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,t.copyIterable)(n):(0,e.go)((function*(){const e=Array.from(n);yield*e.slice(0,-o)}))},jr}(),e),r(xr,e),r(Pr,e),r(function(){if(Ar)return Tr;Ar=1,Tr.drop=void 0;const e=nt,t=Or,r=Jo();return Tr.drop=function(n,o){return(0,r.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,r.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,t.copyIterable)(n):(0,e.go)((function*(){var e;const t=n[Symbol.iterator]();let r;try{let n;for(;({value:n,done:r}=t.next()),!(r||o<=0);)o--;for(;!r;)yield n,({value:n,done:r}=t.next())}finally{r||null===(e=t.return)||void 0===e||e.call(t)}}))},Tr}(),e),r(Ir,e),r(Cr,e),r(function(){if(Ur)return Fr;Ur=1,Fr.flattenAsync=void 0;const e=zr();return Fr.flattenAsync=function(t){return(0,e.flattenDeepAsync)(t,1)},Fr}(),e),r(Mr,e),r(Wr,e),r(zr(),e),r($r(),e),r(function(){if(Yr)return Jr;Yr=1,Jr.flatten=void 0;const e=$r();return Jr.flatten=function(t){return(0,e.flattenDeep)(t,1)},Jr}(),e),r(Hr,e),r(Gr,e),r(Zr(),e),r(rn(),e),r(function(){if(nn)return on;nn=1,on.sliceAsync=void 0;const e=nt,t=Jo();return on.sliceAsync=function(r,n,o=1/0){return(0,t.assert)(Number.isInteger(n),"The parameter start must be an integer"),(0,t.assert)(n>=0,"The parameter start must be greater than or equal to 0"),(0,t.assert)(Number.isInteger(o),"The parameter end must be an integer"),(0,t.assert)(o>=n,"The parameter end must be greater than or equal to start"),(0,e.go)((async function*(){let e=0;for await(const t of r){if(e>=o)break;e>=n&&(yield t),e++}}))},on}(),e),r(function(){if(an)return un;an=1,un.slice=void 0;const e=nt,t=Jo();return un.slice=function(r,n,o=1/0){return(0,t.assert)(Number.isInteger(n),"The parameter start must be an integer"),(0,t.assert)(n>=0,"The parameter start must be greater than or equal to 0"),(0,t.assert)(Number.isInteger(o),"The parameter end must be an integer"),(0,t.assert)(o>=n,"The parameter end must be greater than or equal to start"),(0,e.go)((function*(){let e=0;for(const t of r){if(e>=o)break;e>=n&&(yield t),e++}}))},un}(),e),r(cn,e),r(sn,e),r(fn,e),r(pn,e),r(function(){if(dn)return vn;dn=1,vn.takeAsync=void 0;const e=nt,t=Jo();return vn.takeAsync=function(r,n){return(0,t.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,t.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,e.go)((async function*(){if(0!==n)for await(const e of r)if(yield e,0==--n)break}))},vn}(),e),r(function(){if(bn)return yn;bn=1,yn.takeRightAsync=void 0;const e=nt,t=Jo();return yn.takeRightAsync=function(r,n){return(0,t.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,t.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,e.go)((async function*(){var e;const t=r[Symbol.asyncIterator]();let o;try{const r=[];let i;for(;({value:i,done:o}=await t.next()),!o;)r.push(i),r.length>n&&r.shift();yield*r}finally{o||await(null===(e=t.return)||void 0===e?void 0:e.call(t))}}))},yn}(),e),r(function(){if(hn)return mn;hn=1,mn.takeRight=void 0;const e=nt,t=Jo();return mn.takeRight=function(r,n){return(0,t.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,t.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,e.go)((function*(){var e;const t=r[Symbol.iterator]();let o;try{const r=[];let i;for(;({value:i,done:o}=t.next()),!o;)r.push(i),r.length>n&&r.shift();yield*r}finally{o||null===(e=t.return)||void 0===e||e.call(t)}}))},mn}(),e),r(gn,e),r(wn,e),r(function(){if(Sn)return _n;Sn=1,_n.take=void 0;const e=nt,t=Jo();return _n.take=function(r,n){return(0,t.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,t.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,e.go)((function*(){if(0!==n)for(const e of r)if(yield e,0==--n)break}))},_n}(),e),r(jn,e),r(En,e),r(Pn,e),r(An,e),r(Tn,e),r(In,e),r(kn,e),r(Fn,e),r(Nn,e),r(Mn,e),r(Un,e)}(tt)),tt}Un.zip=void 0,Un.zip=function(e,...t){return function*(...e){const t=e.length,r=e.map((e=>e[Symbol.iterator]())),n=r.map((()=>!1));try{for(;;){const e=new Array(t);for(let o=0;o<t;o++){const{value:t,done:i}=r[o].next();if(i)return void(n[o]=!0);e[o]=t}yield e}}finally{r.filter(((e,t)=>!n[t])).forEach((e=>{var t;return null===(t=e.return)||void 0===t?void 0:t.call(e)}))}}(e,...t)};var Wn={},Dn={};Dn.consume=void 0,Dn.consume=function(e,t){return t(e)};var qn={eachAsync:void 0};const Vn=at;qn.eachAsync=function(e,t){return(0,Vn.isAsyncIterable)(e)?async function(e){let r=0;for await(const n of e)await t(n,r),r++}(e):async function(e){let r=0;for(const n of e)await t(n,r),r++}(e)};var $n={};$n.each=void 0,$n.each=function(e,t){let r=0;for(const n of e)t(n,r),r++};var Yn={everyAsync:void 0};const Jn=at;Yn.everyAsync=function(e,t){return(0,Jn.isAsyncIterable)(e)?async function(e){let r=0;for await(const n of e){if(!await t(n,r))return!1;r++}return!0}(e):async function(e){let r=0;for(const n of e){if(!await t(n,r))return!1;r++}return!0}(e)};var Hn={};Hn.every=void 0,Hn.every=function(e,t){let r=0;for(const n of e){if(!t(n,r))return!1;r++}return!0};var Kn={findAsync:void 0};const Gn=at;Kn.findAsync=function(e,t){return(0,Gn.isAsyncIterable)(e)?async function(e){let r=0;for await(const n of e){if(await t(n,r))return n;r++}return}(e):async function(e){let r=0;for(const n of e){if(await t(n,r))return n;r++}return}(e)};var Qn={};Qn.find=void 0,Qn.find=function(e,t){let r=0;for(const n of e){if(t(n,r))return n;r++}};var Xn={};Xn.firstAsync=void 0,Xn.firstAsync=async function(e){for await(const t of e)return t};var Zn={};Zn.first=void 0,Zn.first=function(e){for(const t of e)return t};var eo={};eo.includesAsync=void 0,eo.includesAsync=async function(e,t){for await(const r of e)if(r===t)return!0;return!1};var to={};to.includes=void 0,to.includes=function(e,t){for(const r of e)if(r===t)return!0;return!1};var ro={};ro.matchAsync=void 0,ro.matchAsync=async function(e,t){const r=t.length;let n=0;for await(const o of e)if(o===t[n]&&n++,n===r)return!0;return!1};var no={};no.match=void 0,no.match=function(e,t){const r=t.length;let n=0;for(const o of e)if(o===t[n]&&n++,n===r)return!0;return!1};var oo={reduceAsync:void 0};const io=at;oo.reduceAsync=function(e,t,r){return(0,io.isUndefined)(r)?function(e,t){return(0,io.isAsyncIterable)(e)?r(e):n(e);async function r(e){var r;const n=e[Symbol.asyncIterator]();let o;try{let e,a=await i(n),u=1;for(;({value:e,done:o}=await n.next()),!o;)a=await t(a,e,u++);return a}finally{o||await(null===(r=n.return)||void 0===r?void 0:r.call(n))}async function i(e){const t=await e.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}async function n(e){var r;const n=e[Symbol.iterator]();let o;try{let e,a=i(n),u=1;for(;({value:e,done:o}=n.next()),!o;)a=await t(a,e,u++);return a}finally{o||null===(r=n.return)||void 0===r||r.call(n)}function i(e){const t=e.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}}(e,t):function(e,t,r){return(0,io.isAsyncIterable)(e)?o(e):n(e);async function n(e){let n=r,o=0;for(const r of e)n=await t(n,r,o++);return n}async function o(e){let n=r,o=0;for await(const r of e)n=await t(n,r,o++);return n}}(e,t,r)};var ao={reduce:void 0};const uo=at;ao.reduce=function(e,t,r){return(0,uo.isUndefined)(r)?function(e,t){var r;const n=e[Symbol.iterator]();let o;try{let e,a=i(n),u=1;for(;({value:e,done:o}=n.next()),!o;)a=t(a,e,u++);return a}finally{o||null===(r=n.return)||void 0===r||r.call(n)}function i(e){const t=e.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}(e,t):function(e,t,r){let n=r,o=0;for(const r of e)n=t(n,r,o++);return n}(e,t,r)};var co={someAsync:void 0};const so=at;co.someAsync=function(e,t){return(0,so.isAsyncIterable)(e)?async function(e){let r=0;for await(const n of e){if(await t(n,r))return!0;r++}return!1}(e):async function(e){let r=0;for(const n of e){if(await t(n,r))return!0;r++}return!1}(e)};var lo={};lo.some=void 0,lo.some=function(e,t){let r=0;for(const n of e){if(t(n,r))return!0;r++}return!1};var fo={};fo.lastAsync=void 0,fo.lastAsync=async function(e){var t;const r=e[Symbol.asyncIterator]();let n;try{let e,o;for(;({value:e,done:n}=await r.next()),!n;)o=e;return o}finally{n||await(null===(t=r.return)||void 0===t?void 0:t.call(r))}};var po={};po.last=void 0,po.last=function(e){var t;const r=e[Symbol.iterator]();let n;try{let e,o;for(;({value:e,done:n}=r.next()),!n;)o=e;return o}finally{n||null===(t=r.return)||void 0===t||t.call(r)}};var vo={toArrayAsync:void 0};const bo=Dn;vo.toArrayAsync=function(e){return(0,bo.consume)(e,(async e=>{const t=[];for await(const r of e)t.push(r);return t}))};var yo={toArray:void 0};const ho=Dn;yo.toArray=function(e){return(0,ho.consume)(e,(e=>Array.from(e)))};var mo={toSetAsync:void 0};const go=Dn;mo.toSetAsync=function(e){return(0,go.consume)(e,(async e=>{const t=new Set;for await(const r of e)t.add(r);return t}))};var Oo={toSet:void 0};const wo=Dn;Oo.toSet=function(e){return(0,wo.consume)(e,(e=>new Set(e)))};var So={};So.count=void 0,So.count=function(e){let t=0;for(const r of e)t++;return t};var _o,jo={};function xo(){return _o||(_o=1,function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(zn(),e),r(Wn,e)}(et)),et}jo.countAsync=void 0,jo.countAsync=async function(e){let t=0;for await(const r of e)t++;return t},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(Dn,e),r(qn,e),r($n,e),r(Yn,e),r(Hn,e),r(Kn,e),r(Qn,e),r(Xn,e),r(Zn,e),r(eo,e),r(to,e),r(ro,e),r(no,e),r(oo,e),r(ao,e),r(co,e),r(lo,e),r(fo,e),r(po,e),r(vo,e),r(yo,e),r(mo,e),r(Oo,e),r(So,e),r(jo,e)}(Wn);var Eo={},Po={};Po.traverseErrorPrototypeChain=void 0,Po.traverseErrorPrototypeChain=function*(e){let t=e;for(;(t=Object.getPrototypeOf(t))&&(yield t,t!==Error.prototype););},Eo.getErrorNames=void 0;const Ao=g,To=Po;Eo.getErrorNames=function*(e){var t;if((0,Ao.isError)(e))for(const r of(0,To.traverseErrorPrototypeChain)(e))(null===(t=r.constructor)||void 0===t?void 0:t.name)&&(yield r.constructor.name);else yield e.name,yield*e.ancestors};var Io={isSerializableError:void 0};const ko=g;var Co;function Fo(){if(Co)return Ze;Co=1,Ze.CustomError=void 0;const e=xo(),t=Eo,r=g,n=Io;class o extends Error{get name(){var r,n;return null!==(n=null!==(r=(0,e.first)((0,t.getErrorNames)(this)))&&void 0!==r?r:o.name)&&void 0!==n?n:"CustomError"}static[Symbol.hasInstance](o){var i;if((0,r.isError)(o)||(0,n.isSerializableError)(o)){const r=[null!==(i=this.prototype.constructor.name)&&void 0!==i?i:this.name,...(0,t.getErrorNames)(this.prototype)].reverse(),n=(0,e.toArray)((0,t.getErrorNames)(o)).reverse();return r.every(((e,t)=>e===n[t]))}return!1}}return Ze.CustomError=o,Ze}Io.isSerializableError=function(e){return(0,ko.isObject)(e)&&(0,ko.isString)(e.name)&&(0,ko.isString)(e.message)&&((0,ko.isString)(e.stack)||(0,ko.isNull)(e.stack))&&(0,ko.isArray)(e.ancestors)&&e.ancestors.every(ko.isString)};var No,Mo={};function Ro(){if(No)return Mo;No=1,Mo.AssertionError=void 0;const e=Fo();class t extends e.CustomError{}return Mo.AssertionError=t,Mo}var Bo,Lo={};var Uo={},zo={},Wo={};Wo.pass=void 0,Wo.pass=function(){},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]});(n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)})(Wo,e)}(zo),Uo.hydrate=void 0;const Do=zo;function qo(e,t){const r=function(){(0,Do.pass)()};return(r.prototype=Object.create(e.prototype)).constructor=r,Object.defineProperty(r,"name",{value:t}),r}Uo.hydrate=function(e){var t;const r=[e.name,...e.ancestors].slice(0,-1).reverse();let n=Error;for(const e of r)n=qo(n,e);const o=new n;return o.name=e.name,o.message=e.message,o.stack=null!==(t=e.stack)&&void 0!==t?t:void 0,o};var Vo,$o,Yo={};function Jo(){return $o||($o=1,function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(Fo(),e),r(Ro(),e),r(Io,e),r(function(){if(Bo)return Lo;Bo=1,Lo.normalize=void 0;const e=Eo,t=xo();return Lo.normalize=function(r){var n;const[o,...i]=(0,t.toArray)((0,e.getErrorNames)(r));return{name:o,ancestors:i,message:r.message,stack:null!==(n=r.stack)&&void 0!==n?n:null}},Lo}(),e),r(Uo,e),r(function(){if(Vo)return Yo;Vo=1,Yo.assert=void 0;const e=Ro();return Yo.assert=function(t,r){if(!t)throw new e.AssertionError(r)},Yo}(),e),r(Eo,e),r(Po,e)}(Xe)),Xe}var Ho=Jo();function Ko(e,t){Ho.assert(e.length>0,"The parameter values must be a non-empty array"),g.isntUndefined(t)&&Ho.assert(t>=0&&t<e.length,"The parameter defaultSelectedIndex must be in the range of 0 to values.length");const[r,n]=o.exports.useState(t);return o.exports.useMemo((()=>({selectedValue:g.isUndefined(r)?void 0:e[r],options:e.map(((e,t)=>({value:e,index:t,selected:t===r,select:()=>n(t)})))})),[r])}var Go=xo();function Qo(e,t=[]){Ho.assert(e.length>0,"The parameter values must be a non-empty array");for(const r of t)Ho.assert(r>=0&&r<e.length,"The index of parameter defaultSelectedIndexes must be in the range of 0 to values.length");const[r,n]=o.exports.useState(new Set(t));return o.exports.useMemo((()=>({selectedValues:Go.toArray(Go.map(r,(t=>e[t]))),options:e.map(((e,t)=>{const o=r.has(t),i=()=>{const e=new Set(r);e.add(t),n(e)},a=()=>{const e=new Set(r);e.delete(t),n(e)};return{value:e,index:t,selected:o,select:i,unselect:a,toggle:o?a:i}}))})),[r])}function Xo(e,t=0){const[r,n]=o.exports.useState(t);return[e[r],function(){n((t=>t+1<e.length?t+1:0))}]}function Zo(e=!1){const[t,r]=o.exports.useState(e);return[t,function(){r((e=>!e))}]}function ei(e,t){const r=t.map((e=>e.current));o.exports.useEffect((()=>{const r=new ResizeObserver(e);return t.map((e=>e.current)).filter(g.isntNull).forEach((e=>r.observe(e))),()=>r.disconnect()}),r)}function ti(e,t=0){const[r,n]=o.exports.useState(t);return[e[r],function(){n((t=>t===e.length-1?t:t+1))},function(){n((e=>0===e?e:e-1))}]}function ri(){const[,e]=o.exports.useState({});return()=>e({})}var ni={},oi={Box:void 0};oi.Box=class{constructor(e){this.value=e}set(e){this.value=e}get(){return this.value}};var ii={};ii.convertArrayToCons=ii.convertConsToArray=void 0,ii.convertConsToArray=function e([t,r]){return null===r?[t]:[t,...e(r)]},ii.convertArrayToCons=function e([t,...r]){return[t,r.length?e(r):null]};var ai={Emitter:void 0};class ui{constructor(){this.map=new Map}get[Symbol.toStringTag](){return this.constructor.name}on(e,t){this.map.has(e)||this.map.set(e,new Set);return this.map.get(e).add(r),()=>{if(!this.map.has(e))return;const t=this.map.get(e);t.delete(r),0===t.size&&this.map.delete(e)};function r(...e){t(...e)}}once(e,t){const r=this.on(e,((...e)=>{t(...e),r()}));return r}emit(e,...t){this.map.has(e)&&this.map.get(e).forEach((e=>e(...t)))}}ai.Emitter=ui;var ci={HashMap:void 0};class si{constructor(e){this.hash=e,this.map=new Map}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(e,t){return this.map.set(this.hash(e),t),this}has(e){return this.map.has(this.hash(e))}get(e){return this.map.get(this.hash(e))}delete(e){return this.map.delete(this.hash(e))}clear(){this.map.clear()}}ci.HashMap=si;var li={HashSet:void 0};class fi{constructor(e){this.hash=e,this.map=new Map}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}[Symbol.iterator](){return this.map.values()}add(e){return this.map.set(this.hash(e),e),this}delete(e){return this.map.delete(this.hash(e))}has(e){return this.map.has(this.hash(e))}clear(){this.map.clear()}values(){return this.map.values()}}li.HashSet=fi;var pi={Queue:void 0};class di{constructor(){this.items=[]}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.items.length}empty(){this.items.length=0}enqueue(...e){this.items.push(...e)}dequeue(){return this.items.shift()}remove(e){let t;for(;(t=this.items.indexOf(e))>=0;)this.items.splice(t,1)}}pi.Queue=di;var vi={LRUMap:void 0};const bi=Jo(),yi=xo();class hi{constructor(e){this.map=new Map,(0,bi.assert)(Number.isInteger(e),"The parameter limit must be an integer"),(0,bi.assert)(e>0,"The parameter limit must be a positive value"),this.limit=e}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(e,t){return this.map.has(e)?this.updateItem(e,t):(this.map.size===this.limit&&this.map.delete(this.getColdestKey()),this.map.set(e,t)),this}has(e){return this.map.has(e)}get(e){if(!this.has(e))return;const t=this.map.get(e);return this.updateItem(e,t),t}delete(e){return this.map.delete(e)}clear(){this.map.clear()}updateItem(e,t){this.map.delete(e),this.map.set(e,t)}getColdestKey(){return(0,yi.first)(this.map.keys())}}vi.LRUMap=hi;var mi={},gi={},Oi={},wi={},Si={};Si.random=void 0,Si.random=function(e,t){return Math.random()*(t-e)+e};var _i={};_i.randomInt=void 0,_i.randomInt=function(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e))+e};var ji={};ji.randomIntInclusive=void 0,ji.randomIntInclusive=function(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(Si,e),r(_i,e),r(ji,e)}(wi),Oi.calculateExponentialBackoffTimeout=void 0;const xi=wi;Oi.calculateExponentialBackoffTimeout=function({baseTimeout:e,retries:t,maxTimeout:r=1/0,factor:n=2,jitter:o=!0}){const i=Math.min(n**t*e,r);return o?(0,xi.randomIntInclusive)(0,i):i};var Ei={};Ei.setTimeout=void 0,Ei.setTimeout=function(e,t){const r=globalThis.setTimeout(t,e);return()=>clearTimeout(r)};var Pi={setSchedule:void 0};const Ai=Ei;Pi.setSchedule=function(e,t){const r=e-Date.now();return(0,Ai.setTimeout)(r,t)};var Ti={};Ti.setInterval=void 0,Ti.setInterval=function(e,t){const r=globalThis.setInterval(t,e);return()=>clearInterval(r)};var Ii={setImmediate:void 0};const ki=Ei;Ii.setImmediate=function(e){if(globalThis.setImmediate){const t=globalThis.setImmediate(e);return()=>clearImmediate(t)}return(0,ki.setTimeout)(0,e)};var Ci={setTimeoutLoop:void 0};const Fi=Ei;Ci.setTimeoutLoop=function(e,t){let r=!1,n=(0,Fi.setTimeout)(e,(async function o(){await t(),r||(n=(0,Fi.setTimeout)(e,o))}));return()=>{r=!0,n()}};var Ni={setDynamicTimeoutLoop:void 0};const Mi=Ei;Ni.setDynamicTimeoutLoop=function(e,t){let r=!1,n=(0,Mi.setTimeout)(e,(async function o(){const i=Date.now();await t();const a=Date.now()-i;r||(n=(0,Mi.setTimeout)(Math.max(e-a,0),o))}));return()=>{r=!0,n()}},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(Oi,e),r(Ei,e),r(Pi,e),r(Ti,e),r(Ii,e),r(Ci,e),r(Ni,e)}(gi),mi.ExpirableMap=void 0;const Ri=gi;class Bi{constructor(){this.map=new Map,this.itemMetadataSortedByExpirationTime=[]}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(e,t,r){return this.map.set(e,t),this.removeItemMetadata(e),this.addItemMetadata(e,Date.now()+r),this}has(e){return this.map.has(e)}get(e){return this.map.get(e)}delete(e){const t=this.map.delete(e);if(t){const t=this.itemMetadataSortedByExpirationTime.findIndex((t=>t.key===e));this.itemMetadataSortedByExpirationTime.splice(t,1),0===t&&this.rescheduleClearTimeout()}return t}clear(){var e;this.map.clear(),null===(e=this.cancelClearTimeout)||void 0===e||e.call(this),this.itemMetadataSortedByExpirationTime=[]}addItemMetadata(e,t){for(let r=0;r<this.itemMetadataSortedByExpirationTime.length;r++){if(t<this.itemMetadataSortedByExpirationTime[r].expirationTime)return this.itemMetadataSortedByExpirationTime.splice(r,0,{key:e,expirationTime:t}),void(0===r&&this.rescheduleClearTimeout())}this.itemMetadataSortedByExpirationTime.push({key:e,expirationTime:t}),1===this.itemMetadataSortedByExpirationTime.length&&this.rescheduleClearTimeout()}removeItemMetadata(e){const t=this.itemMetadataSortedByExpirationTime.findIndex((t=>t.key===e));t>=0&&(this.itemMetadataSortedByExpirationTime.splice(t,1),0===t&&this.rescheduleClearTimeout())}clearExpiredItems(e){const t=this.itemMetadataSortedByExpirationTime.findIndex((t=>t.expirationTime>e));(t>=0?this.itemMetadataSortedByExpirationTime.splice(0,t):this.itemMetadataSortedByExpirationTime.splice(0,this.itemMetadataSortedByExpirationTime.length)).forEach((e=>this.map.delete(e.key)))}rescheduleClearTimeout(){var e;if(null===(e=this.cancelClearTimeout)||void 0===e||e.call(this),this.itemMetadataSortedByExpirationTime.length>0){const e=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(e.expirationTime)){const t=(0,Ri.setSchedule)(e.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));this.cancelClearTimeout=()=>{t(),this.cancelClearTimeout=void 0}}}}}mi.ExpirableMap=Bi;var Li={TLRUMap:void 0};const Ui=Jo(),zi=xo(),Wi=gi;class Di{constructor(e){this.map=new Map,this.itemMetadataSortedByExpirationTime=[],(0,Ui.assert)(Number.isInteger(e),"The parameter limit must be an integer"),(0,Ui.assert)(e>0,"The parameter limit must be a positive value"),this.limit=e}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(e,t,r){return this.map.has(e)?(this.updateItem(e,t),this.removeItemMetadata(e),this.addItemMetadata(e,Date.now()+r)):(this.map.size===this.limit&&this.map.delete(this.getColdestKey()),this.map.set(e,t),this.addItemMetadata(e,Date.now()+r)),this}has(e){return this.map.has(e)}get(e){if(this.has(e)){const t=this.map.get(e);return this.updateItem(e,t),t}}delete(e){const t=this.map.delete(e);if(t){const t=this.itemMetadataSortedByExpirationTime.findIndex((t=>t.key===e));this.itemMetadataSortedByExpirationTime.splice(t,1),0===t&&this.rescheduleClearTimeout()}return t}clear(){var e;this.map.clear(),null===(e=this.cancelClearTimeout)||void 0===e||e.call(this),this.itemMetadataSortedByExpirationTime=[]}updateItem(e,t){this.map.delete(e),this.map.set(e,t)}addItemMetadata(e,t){for(let r=0;r<this.itemMetadataSortedByExpirationTime.length;r++){if(t<this.itemMetadataSortedByExpirationTime[r].expirationTime)return this.itemMetadataSortedByExpirationTime.splice(r,0,{key:e,expirationTime:t}),void(0===r&&this.rescheduleClearTimeout())}this.itemMetadataSortedByExpirationTime.push({key:e,expirationTime:t}),1===this.itemMetadataSortedByExpirationTime.length&&this.rescheduleClearTimeout()}removeItemMetadata(e){const t=this.itemMetadataSortedByExpirationTime.findIndex((t=>t.key===e));t>=0&&(this.itemMetadataSortedByExpirationTime.splice(t,1),0===t&&this.rescheduleClearTimeout())}clearExpiredItems(e){const t=this.itemMetadataSortedByExpirationTime.findIndex((t=>t.expirationTime>e));(t>=0?this.itemMetadataSortedByExpirationTime.splice(0,t):this.itemMetadataSortedByExpirationTime.splice(0,this.itemMetadataSortedByExpirationTime.length)).forEach((e=>this.map.delete(e.key)))}rescheduleClearTimeout(){var e;if(null===(e=this.cancelClearTimeout)||void 0===e||e.call(this),this.itemMetadataSortedByExpirationTime.length>0){const e=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(e.expirationTime)){const t=(0,Wi.setSchedule)(e.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));this.cancelClearTimeout=()=>{t(),this.cancelClearTimeout=void 0}}}}getColdestKey(){return(0,zi.first)(this.map.keys())}}Li.TLRUMap=Di;var qi={TrieMap:void 0};const Vi=xo();class $i{constructor(e){this.value=e,this.children=new Map}}class Yi{constructor(){this.root=new $i}get[Symbol.toStringTag](){return this.constructor.name}set(e,t){let r=this.root;for(const t of e)r.children.has(t)||r.children.set(t,new $i),r=r.children.get(t);return r.value=t,this}has(e){let t=this.root;for(const r of e){if(!t.children.has(r))return!1;t=t.children.get(r)}return void 0!==t.value}get(e){let t=this.root;for(const r of e){if(!t.children.has(r))return;t=t.children.get(r)}return t.value}delete(e){const t=[];let r=this.root;for(const n of e){if(!r.children.has(n))return!1;t.push(r),r=r.children.get(n)}if(delete r.value,0===r.children.size)for(const[r,n]of(0,Vi.toArray)((0,Vi.zip)(e,t)).reverse())if(n.children.delete(r),0!==n.children.size)break;return!0}}qi.TrieMap=Yi;var Ji={};Ji.BadEventError=Ji.FiniteStateMachine=void 0;const Hi=Jo();Ji.FiniteStateMachine=class{constructor(e,t){this.schema=e,this._state=t}get state(){return this._state}matches(e){return this._state===e}can(e){return e in this.schema[this.state]}send(e){if(!this.can(e))throw new Ki(this.state,e);this._state=this.schema[this.state][e]}};class Ki extends Hi.CustomError{constructor(e,t){super(`State ${e} cannot react to event ${t}`)}}Ji.BadEventError=Ki;var Gi={},Qi={},Xi={},Zi={},ea={};ea.isFunction=void 0,ea.isFunction=function(e){return"function"==typeof e};var ta={},ra={},na={};na.createErrorClass=void 0,na.createErrorClass=function(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},ra.UnsubscriptionError=void 0;var oa=na;ra.UnsubscriptionError=oa.createErrorClass((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}}));var ia={};ia.arrRemove=void 0,ia.arrRemove=function(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}};var aa=n&&n.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ua=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},ca=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};ta.isSubscription=ta.EMPTY_SUBSCRIPTION=ta.Subscription=void 0;var sa=ea,la=ra,fa=ia,pa=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var a=aa(i),u=a.next();!u.done;u=a.next()){u.value.remove(this)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else i.remove(this);var c=this.initialTeardown;if(sa.isFunction(c))try{c()}catch(e){o=e instanceof la.UnsubscriptionError?e.errors:[e]}var s=this._finalizers;if(s){this._finalizers=null;try{for(var l=aa(s),f=l.next();!f.done;f=l.next()){var p=f.value;try{da(p)}catch(e){o=null!=o?o:[],e instanceof la.UnsubscriptionError?o=ca(ca([],ua(o)),ua(e.errors)):o.push(e)}}}catch(e){r={error:e}}finally{try{f&&!f.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(o)throw new la.UnsubscriptionError(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)da(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).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)&&fa.arrRemove(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&fa.arrRemove(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();function da(e){sa.isFunction(e)?e():e.unsubscribe()}ta.Subscription=pa,ta.EMPTY_SUBSCRIPTION=pa.EMPTY,ta.isSubscription=function(e){return e instanceof pa||e&&"closed"in e&&sa.isFunction(e.remove)&&sa.isFunction(e.add)&&sa.isFunction(e.unsubscribe)};var va={config:void 0};va.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var ba={},ya={};!function(e){var t=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},r=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};e.timeoutProvider=void 0,e.timeoutProvider={setTimeout:function(n,o){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var u=e.timeoutProvider.delegate;return(null==u?void 0:u.setTimeout)?u.setTimeout.apply(u,r([n,o],t(i))):setTimeout.apply(void 0,r([n,o],t(i)))},clearTimeout:function(t){var r=e.timeoutProvider.delegate;return((null==r?void 0:r.clearTimeout)||clearTimeout)(t)},delegate:void 0}}(ya),ba.reportUnhandledError=void 0;var ha=va,ma=ya;ba.reportUnhandledError=function(e){ma.timeoutProvider.setTimeout((function(){var t=ha.config.onUnhandledError;if(!t)throw e;t(e)}))};var ga={};ga.noop=void 0,ga.noop=function(){};var Oa={};function wa(e,t,r){return{kind:e,value:t,error:r}}Oa.createNotification=Oa.nextNotification=Oa.errorNotification=Oa.COMPLETE_NOTIFICATION=void 0,Oa.COMPLETE_NOTIFICATION=wa("C",void 0,void 0),Oa.errorNotification=function(e){return wa("E",void 0,e)},Oa.nextNotification=function(e){return wa("N",e,void 0)},Oa.createNotification=wa;var Sa={};Sa.captureError=Sa.errorContext=void 0;var _a=va,ja=null;Sa.errorContext=function(e){if(_a.config.useDeprecatedSynchronousErrorHandling){var t=!ja;if(t&&(ja={errorThrown:!1,error:null}),e(),t){var r=ja,n=r.errorThrown,o=r.error;if(ja=null,n)throw o}}else e()},Sa.captureError=function(e){_a.config.useDeprecatedSynchronousErrorHandling&&ja&&(ja.errorThrown=!0,ja.error=e)},function(e){var t,r=n&&n.__extends||(t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,r)},function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)});e.EMPTY_OBSERVER=e.SafeSubscriber=e.Subscriber=void 0;var o=ea,i=ta,a=va,u=ba,c=ga,s=Oa,l=ya,f=Sa,p=function(t){function n(r){var n=t.call(this)||this;return n.isStopped=!1,r?(n.destination=r,i.isSubscription(r)&&r.add(n)):n.destination=e.EMPTY_OBSERVER,n}return r(n,t),n.create=function(e,t,r){return new y(e,t,r)},n.prototype.next=function(e){this.isStopped?m(s.nextNotification(e),this):this._next(e)},n.prototype.error=function(e){this.isStopped?m(s.errorNotification(e),this):(this.isStopped=!0,this._error(e))},n.prototype.complete=function(){this.isStopped?m(s.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},n.prototype._next=function(e){this.destination.next(e)},n.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},n.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},n}(i.Subscription);e.Subscriber=p;var d=Function.prototype.bind;function v(e,t){return d.call(e,t)}var b=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){h(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){h(e)}else h(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){h(e)}},e}(),y=function(e){function t(t,r,n){var i,u,c=e.call(this)||this;o.isFunction(t)||!t?i={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:c&&a.config.useDeprecatedNextContext?((u=Object.create(t)).unsubscribe=function(){return c.unsubscribe()},i={next:t.next&&v(t.next,u),error:t.error&&v(t.error,u),complete:t.complete&&v(t.complete,u)}):i=t;return c.destination=new b(i),c}return r(t,e),t}(p);function h(e){a.config.useDeprecatedSynchronousErrorHandling?f.captureError(e):u.reportUnhandledError(e)}function m(e,t){var r=a.config.onStoppedNotification;r&&l.timeoutProvider.setTimeout((function(){return r(e,t)}))}e.SafeSubscriber=y,e.EMPTY_OBSERVER={closed:!0,next:c.noop,error:function(e){throw e},complete:c.noop}}(Zi);var xa={observable:void 0};xa.observable="function"==typeof Symbol&&Symbol.observable||"@@observable";var Ea={},Pa={};Pa.identity=void 0,Pa.identity=function(e){return e},Ea.pipeFromArray=Ea.pipe=void 0;var Aa=Pa;function Ta(e){return 0===e.length?Aa.identity:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}Ea.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ta(e)},Ea.pipeFromArray=Ta,Xi.Observable=void 0;var Ia=Zi,ka=ta,Ca=xa,Fa=Ea,Na=va,Ma=ea,Ra=Sa,Ba=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n,o=this,i=(n=e)&&n instanceof Ia.Subscriber||function(e){return e&&Ma.isFunction(e.next)&&Ma.isFunction(e.error)&&Ma.isFunction(e.complete)}(n)&&ka.isSubscription(n)?e:new Ia.SafeSubscriber(e,t,r);return Ra.errorContext((function(){var e=o,t=e.operator,r=e.source;i.add(t?t.call(i,r):r?o._subscribe(i):o._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 r=this;return new(t=La(t))((function(t,n){var o=new Ia.SafeSubscriber({next:function(t){try{e(t)}catch(e){n(e),o.unsubscribe()}},error:n,complete:t});r.subscribe(o)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[Ca.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Fa.pipeFromArray(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=La(e))((function(e,r){var n;t.subscribe((function(e){return n=e}),(function(e){return r(e)}),(function(){return e(n)}))}))},e.create=function(t){return new e(t)},e}();function La(e){var t;return null!==(t=null!=e?e:Na.config.Promise)&&void 0!==t?t:Promise}Xi.Observable=Ba;var Ua={},za={},Wa={};Wa.operate=Wa.hasLift=void 0;var Da=ea;function qa(e){return Da.isFunction(null==e?void 0:e.lift)}Wa.hasLift=qa,Wa.operate=function(e){return function(t){if(qa(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")}};var Va,$a={},Ya=n&&n.__extends||(Va=function(e,t){return(Va=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Va(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});$a.OperatorSubscriber=$a.createOperatorSubscriber=void 0;var Ja=Zi;$a.createOperatorSubscriber=function(e,t,r,n,o){return new Ha(e,t,r,n,o)};var Ha=function(e){function t(t,r,n,o,i,a){var u=e.call(this,t)||this;return u.onFinalize=i,u.shouldUnsubscribe=a,u._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,u._error=o?function(e){try{o(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,u._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,u}return Ya(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(Ja.Subscriber);$a.OperatorSubscriber=Ha,za.refCount=void 0;var Ka=Wa,Ga=$a;za.refCount=function(){return Ka.operate((function(e,t){var r=null;e._refCount++;var n=Ga.createOperatorSubscriber(t,void 0,void 0,void 0,(function(){if(!e||e._refCount<=0||0<--e._refCount)r=null;else{var n=e._connection,o=r;r=null,!n||o&&n!==o||n.unsubscribe(),t.unsubscribe()}}));e.subscribe(n),n.closed||(r=e.connect())}))};var Qa=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Ua.ConnectableObservable=void 0;var Xa=ta,Za=za,eu=$a,tu=Wa,ru=function(e){function t(t,r){var n=e.call(this)||this;return n.source=t,n.subjectFactory=r,n._subject=null,n._refCount=0,n._connection=null,tu.hasLift(t)&&(n.lift=t.lift),n}return Qa(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,null==e||e.unsubscribe()},t.prototype.connect=function(){var e=this,t=this._connection;if(!t){t=this._connection=new Xa.Subscription;var r=this.getSubject();t.add(this.source.subscribe(eu.createOperatorSubscriber(r,void 0,(function(){e._teardown(),r.complete()}),(function(t){e._teardown(),r.error(t)}),(function(){return e._teardown()})))),t.closed&&(this._connection=null,t=Xa.Subscription.EMPTY)}return t},t.prototype.refCount=function(){return Za.refCount()(this)},t}(Xi.Observable);Ua.ConnectableObservable=ru;var nu={},ou={};!function(e){e.performanceTimestampProvider=void 0,e.performanceTimestampProvider={now:function(){return(e.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}}(ou);var iu={};!function(e){var t=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},r=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};e.animationFrameProvider=void 0;var o=ta;e.animationFrameProvider={schedule:function(t){var r=requestAnimationFrame,n=cancelAnimationFrame,i=e.animationFrameProvider.delegate;i&&(r=i.requestAnimationFrame,n=i.cancelAnimationFrame);var a=r((function(e){n=void 0,t(e)}));return new o.Subscription((function(){return null==n?void 0:n(a)}))},requestAnimationFrame:function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=e.animationFrameProvider.delegate;return((null==i?void 0:i.requestAnimationFrame)||requestAnimationFrame).apply(void 0,r([],t(n)))},cancelAnimationFrame:function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=e.animationFrameProvider.delegate;return((null==i?void 0:i.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,r([],t(n)))},delegate:void 0}}(iu),nu.animationFrames=void 0;var au=Xi,uu=ta,cu=ou,su=iu;function lu(e){var t=su.animationFrameProvider.schedule;return new au.Observable((function(r){var n=new uu.Subscription,o=e||cu.performanceTimestampProvider,i=o.now(),a=function(u){var c=o.now();r.next({timestamp:e?c:u,elapsed:c-i}),r.closed||n.add(t(a))};return n.add(t(a)),n}))}nu.animationFrames=function(e){return e?lu(e):fu};var fu=lu(),pu={},du={ObjectUnsubscribedError:void 0},vu=na;du.ObjectUnsubscribedError=vu.createErrorClass((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}));var bu=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),yu=n&&n.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};pu.AnonymousSubject=pu.Subject=void 0;var hu=Xi,mu=ta,gu=du,Ou=ia,wu=Sa,Su=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 bu(t,e),t.prototype.lift=function(e){var t=new _u(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new gu.ObjectUnsubscribedError},t.prototype.next=function(e){var t=this;wu.errorContext((function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=yu(t.currentObservers),i=o.next();!i.done;i=o.next()){i.value.next(e)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}}))},t.prototype.error=function(e){var t=this;wu.errorContext((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}}))},t.prototype.complete=function(){var e=this;wu.errorContext((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,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?mu.EMPTY_SUBSCRIPTION:(this.currentObservers=null,i.push(e),new mu.Subscription((function(){t.currentObservers=null,Ou.arrRemove(i,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,o=t.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new hu.Observable;return e.source=this,e},t.create=function(e,t){return new _u(e,t)},t}(hu.Observable);pu.Subject=Su;var _u=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return bu(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.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,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:mu.EMPTY_SUBSCRIPTION},t}(Su);pu.AnonymousSubject=_u;var ju={},xu=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();ju.BehaviorSubject=void 0;var Eu=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return xu(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return!r.closed&&t.next(this._value),r},t.prototype.getValue=function(){var e=this,t=e.hasError,r=e.thrownError,n=e._value;if(t)throw r;return this._throwIfClosed(),n},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(pu.Subject);ju.BehaviorSubject=Eu;var Pu={},Au={};!function(e){e.dateTimestampProvider=void 0,e.dateTimestampProvider={now:function(){return(e.dateTimestampProvider.delegate||Date).now()},delegate:void 0}}(Au);var Tu=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Pu.ReplaySubject=void 0;var Iu=Au,ku=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=Iu.dateTimestampProvider);var o=e.call(this)||this;return o._bufferSize=t,o._windowTime=r,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,t),o._windowTime=Math.max(1,r),o}return Tu(t,e),t.prototype.next=function(t){var r=this,n=r.isStopped,o=r._buffer,i=r._infiniteTimeWindow,a=r._timestampProvider,u=r._windowTime;n||(o.push(t),!i&&o.push(a.now()+u)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!e.closed;o+=r?1:2)e.next(n[o]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,r=e._timestampProvider,n=e._buffer,o=e._infiniteTimeWindow,i=(o?1:2)*t;if(t<1/0&&i<n.length&&n.splice(0,n.length-i),!o){for(var a=r.now(),u=0,c=1;c<n.length&&n[c]<=a;c+=2)u=c;u&&n.splice(0,u+1)}},t}(pu.Subject);Pu.ReplaySubject=ku;var Cu={},Fu=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Cu.AsyncSubject=void 0;var Nu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return Fu(t,e),t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t._hasValue,o=t._value,i=t.thrownError,a=t.isStopped,u=t._isComplete;r?e.error(i):(a||u)&&(n&&e.next(o),e.complete())},t.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},t.prototype.complete=function(){var t=this,r=t._hasValue,n=t._value;t._isComplete||(this._isComplete=!0,r&&e.prototype.next.call(this,n),e.prototype.complete.call(this))},t}(pu.Subject);Cu.AsyncSubject=Nu;var Mu={},Ru={},Bu={},Lu={},Uu=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Lu.Action=void 0;var zu=function(e){function t(t,r){return e.call(this)||this}return Uu(t,e),t.prototype.schedule=function(e,t){return this},t}(ta.Subscription);Lu.Action=zu;var Wu={};!function(e){var t=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},r=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};e.intervalProvider=void 0,e.intervalProvider={setInterval:function(n,o){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var u=e.intervalProvider.delegate;return(null==u?void 0:u.setInterval)?u.setInterval.apply(u,r([n,o],t(i))):setInterval.apply(void 0,r([n,o],t(i)))},clearInterval:function(t){var r=e.intervalProvider.delegate;return((null==r?void 0:r.clearInterval)||clearInterval)(t)},delegate:void 0}}(Wu);var Du=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Bu.AsyncAction=void 0;var qu=Wu,Vu=ia,$u=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n.pending=!1,n}return Du(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(n,this.id,t),this},t.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),qu.intervalProvider.setInterval(e.flush.bind(e,this),r)},t.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return t;qu.intervalProvider.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var r,n=!1;try{this.work(e)}catch(e){n=!0,r=e||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,n=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Vu.arrRemove(n,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(Lu.Action);Bu.AsyncAction=$u;var Yu={},Ju={};Ju.TestTools=Ju.Immediate=void 0;var Hu,Ku=1,Gu={};function Qu(e){return e in Gu&&(delete Gu[e],!0)}Ju.Immediate={setImmediate:function(e){var t=Ku++;return Gu[t]=!0,Hu||(Hu=Promise.resolve()),Hu.then((function(){return Qu(t)&&e()})),t},clearImmediate:function(e){Qu(e)}},Ju.TestTools={pending:function(){return Object.keys(Gu).length}},function(e){var t=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},r=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};e.immediateProvider=void 0;var o=Ju,i=o.Immediate.setImmediate,a=o.Immediate.clearImmediate;e.immediateProvider={setImmediate:function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var a=e.immediateProvider.delegate;return((null==a?void 0:a.setImmediate)||i).apply(void 0,r([],t(n)))},clearImmediate:function(t){var r=e.immediateProvider.delegate;return((null==r?void 0:r.clearImmediate)||a)(t)},delegate:void 0}}(Yu);var Xu=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Ru.AsapAction=void 0;var Zu=Yu,ec=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return Xu(t,e),t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t._scheduled||(t._scheduled=Zu.immediateProvider.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,r,n){if(void 0===n&&(n=0),null!=n&&n>0||null==n&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);t.actions.some((function(e){return e.id===r}))||(Zu.immediateProvider.clearImmediate(r),t._scheduled=void 0)},t}(Bu.AsyncAction);Ru.AsapAction=ec;var tc={},rc={},nc={Scheduler:void 0},oc=Au,ic=function(){function e(t,r){void 0===r&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},e.now=oc.dateTimestampProvider.now,e}();nc.Scheduler=ic;var ac=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();rc.AsyncScheduler=void 0;var uc=nc,cc=function(e){function t(t,r){void 0===r&&(r=uc.Scheduler.now);var n=e.call(this,t,r)||this;return n.actions=[],n._active=!1,n._scheduled=void 0,n}return ac(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var r;this._active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}}},t}(uc.Scheduler);rc.AsyncScheduler=cc;var sc=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();tc.AsapScheduler=void 0;var lc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sc(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var r,n=this.actions;e=e||n.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}},t}(rc.AsyncScheduler);tc.AsapScheduler=lc,function(e){e.asap=e.asapScheduler=void 0;var t=Ru,r=tc;e.asapScheduler=new r.AsapScheduler(t.AsapAction),e.asap=e.asapScheduler}(Mu);var fc={};!function(e){e.async=e.asyncScheduler=void 0;var t=Bu,r=rc;e.asyncScheduler=new r.AsyncScheduler(t.AsyncAction),e.async=e.asyncScheduler}(fc);var pc={},dc={},vc=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();dc.QueueAction=void 0;var bc=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return vc(t,e),t.prototype.schedule=function(t,r){return void 0===r&&(r=0),r>0?e.prototype.schedule.call(this,t,r):(this.delay=r,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,r){return r>0||this.closed?e.prototype.execute.call(this,t,r):this._execute(t,r)},t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!=n&&n>0||null==n&&this.delay>0?e.prototype.requestAsyncId.call(this,t,r,n):t.flush(this)},t}(Bu.AsyncAction);dc.QueueAction=bc;var yc={},hc=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();yc.QueueScheduler=void 0;var mc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return hc(t,e),t}(rc.AsyncScheduler);yc.QueueScheduler=mc,function(e){e.queue=e.queueScheduler=void 0;var t=dc,r=yc;e.queueScheduler=new r.QueueScheduler(t.QueueAction),e.queue=e.queueScheduler}(pc);var gc={},Oc={},wc=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Oc.AnimationFrameAction=void 0;var Sc=iu,_c=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return wc(t,e),t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t._scheduled||(t._scheduled=Sc.animationFrameProvider.requestAnimationFrame((function(){return t.flush(void 0)}))))},t.prototype.recycleAsyncId=function(t,r,n){if(void 0===n&&(n=0),null!=n&&n>0||null==n&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);t.actions.some((function(e){return e.id===r}))||(Sc.animationFrameProvider.cancelAnimationFrame(r),t._scheduled=void 0)},t}(Bu.AsyncAction);Oc.AnimationFrameAction=_c;var jc={},xc=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();jc.AnimationFrameScheduler=void 0;var Ec=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xc(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var r,n=this.actions;e=e||n.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}},t}(rc.AsyncScheduler);jc.AnimationFrameScheduler=Ec,function(e){e.animationFrame=e.animationFrameScheduler=void 0;var t=Oc,r=jc;e.animationFrameScheduler=new r.AnimationFrameScheduler(t.AnimationFrameAction),e.animationFrame=e.animationFrameScheduler}(gc);var Pc={},Ac=n&&n.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Pc.VirtualAction=Pc.VirtualTimeScheduler=void 0;var Tc=Bu,Ic=ta,kc=function(e){function t(t,r){void 0===t&&(t=Cc),void 0===r&&(r=1/0);var n=e.call(this,t,(function(){return n.frame}))||this;return n.maxFrames=r,n.frame=0,n.index=-1,n}return Ac(t,e),t.prototype.flush=function(){for(var e,t,r=this.actions,n=this.maxFrames;(t=r[0])&&t.delay<=n&&(r.shift(),this.frame=t.delay,!(e=t.execute(t.state,t.delay))););if(e){for(;t=r.shift();)t.unsubscribe();throw e}},t.frameTimeFactor=10,t}(rc.AsyncScheduler);Pc.VirtualTimeScheduler=kc;var Cc=function(e){function t(t,r,n){void 0===n&&(n=t.index+=1);var o=e.call(this,t,r)||this;return o.scheduler=t,o.work=r,o.index=n,o.active=!0,o.index=t.index=n,o}return Ac(t,e),t.prototype.schedule=function(r,n){if(void 0===n&&(n=0),Number.isFinite(n)){if(!this.id)return e.prototype.schedule.call(this,r,n);this.active=!1;var o=new t(this.scheduler,this.work);return this.add(o),o.schedule(r,n)}return Ic.Subscription.EMPTY},t.prototype.requestAsyncId=function(e,r,n){void 0===n&&(n=0),this.delay=e.frame+n;var o=e.actions;return o.push(this),o.sort(t.sortActions),!0},t.prototype.recycleAsyncId=function(e,t,r){},t.prototype._execute=function(t,r){if(!0===this.active)return e.prototype._execute.call(this,t,r)},t.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1},t}(Tc.AsyncAction);Pc.VirtualAction=Cc;var Fc={},Nc={};!function(e){e.empty=e.EMPTY=void 0;var t=Xi;e.EMPTY=new t.Observable((function(e){return e.complete()})),e.empty=function(r){return r?function(e){return new t.Observable((function(t){return e.schedule((function(){return t.complete()}))}))}(r):e.EMPTY}}(Nc);var Mc={},Rc={},Bc={isScheduler:void 0},Lc=ea;Bc.isScheduler=function(e){return e&&Lc.isFunction(e.schedule)},Rc.popNumber=Rc.popScheduler=Rc.popResultSelector=void 0;var Uc=ea,zc=Bc;function Wc(e){return e[e.length-1]}Rc.popResultSelector=function(e){return Uc.isFunction(Wc(e))?e.pop():void 0},Rc.popScheduler=function(e){return zc.isScheduler(Wc(e))?e.pop():void 0},Rc.popNumber=function(e,t){return"number"==typeof Wc(e)?e.pop():t};var Dc={},qc={},Vc={},$c={},Yc={isArrayLike:void 0};Yc.isArrayLike=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};var Jc={isPromise:void 0},Hc=ea;Jc.isPromise=function(e){return Hc.isFunction(null==e?void 0:e.then)};var Kc={isInteropObservable:void 0},Gc=xa,Qc=ea;Kc.isInteropObservable=function(e){return Qc.isFunction(e[Gc.observable])};var Xc={isAsyncIterable:void 0},Zc=ea;Xc.isAsyncIterable=function(e){return Symbol.asyncIterator&&Zc.isFunction(null==e?void 0:e[Symbol.asyncIterator])};var es={};es.createInvalidObservableTypeError=void 0,es.createInvalidObservableTypeError=function(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 ts={},rs={};function ns(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}rs.iterator=rs.getSymbolIterator=void 0,rs.getSymbolIterator=ns,rs.iterator=ns(),ts.isIterable=void 0;var os=rs,is=ea;ts.isIterable=function(e){return is.isFunction(null==e?void 0:e[os.iterator])};var as={},us=n&&n.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},cs=n&&n.__await||function(e){return this instanceof cs?(this.v=e,this):new cs(e)},ss=n&&n.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){i.push([e,t,r,n])>1||u(e,t)}))})}function u(e,t){try{(r=o[e](t)).value instanceof cs?Promise.resolve(r.value.v).then(c,s):l(i[0][2],r)}catch(e){l(i[0][3],e)}var r}function c(e){u("next",e)}function s(e){u("throw",e)}function l(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}};as.isReadableStreamLike=as.readableStreamLikeToAsyncGenerator=void 0;var ls=ea;as.readableStreamLikeToAsyncGenerator=function(e){return ss(this,arguments,(function(){var t,r,n;return us(this,(function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,cs(t.read())];case 3:return r=o.sent(),n=r.value,r.done?[4,cs(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,cs(n)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))},as.isReadableStreamLike=function(e){return ls.isFunction(null==e?void 0:e.getReader)};var fs=n&&n.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}c((n=n.apply(e,t||[])).next())}))},ps=n&&n.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},ds=n&&n.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof vs?vs(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},vs=n&&n.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};$c.fromReadableStreamLike=$c.fromAsyncIterable=$c.fromIterable=$c.fromPromise=$c.fromArrayLike=$c.fromInteropObservable=$c.innerFrom=void 0;var bs=Yc,ys=Jc,hs=Xi,ms=Kc,gs=Xc,Os=es,ws=ts,Ss=as,_s=ea,js=ba,xs=xa;function Es(e){return new hs.Observable((function(t){var r=e[xs.observable]();if(_s.isFunction(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")}))}function Ps(e){return new hs.Observable((function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()}))}function As(e){return new hs.Observable((function(t){e.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,js.reportUnhandledError)}))}function Ts(e){return new hs.Observable((function(t){var r,n;try{for(var o=vs(e),i=o.next();!i.done;i=o.next()){var a=i.value;if(t.next(a),t.closed)return}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}t.complete()}))}function Is(e){return new hs.Observable((function(t){(function(e,t){var r,n,o,i;return fs(this,void 0,void 0,(function(){var a,u;return ps(this,(function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=ds(e),c.label=1;case 1:return[4,r.next()];case 2:if((n=c.sent()).done)return[3,4];if(a=n.value,t.next(a),t.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return u=c.sent(),o={error:u},[3,11];case 6:return c.trys.push([6,,9,10]),n&&!n.done&&(i=r.return)?[4,i.call(r)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}}))}))})(e,t).catch((function(e){return t.error(e)}))}))}function ks(e){return Is(Ss.readableStreamLikeToAsyncGenerator(e))}$c.innerFrom=function(e){if(e instanceof hs.Observable)return e;if(null!=e){if(ms.isInteropObservable(e))return Es(e);if(bs.isArrayLike(e))return Ps(e);if(ys.isPromise(e))return As(e);if(gs.isAsyncIterable(e))return Is(e);if(ws.isIterable(e))return Ts(e);if(Ss.isReadableStreamLike(e))return ks(e)}throw Os.createInvalidObservableTypeError(e)},$c.fromInteropObservable=Es,$c.fromArrayLike=Ps,$c.fromPromise=As,$c.fromIterable=Ts,$c.fromAsyncIterable=Is,$c.fromReadableStreamLike=ks;var Cs={},Fs={};Fs.executeSchedule=void 0,Fs.executeSchedule=function(e,t,r,n,o){void 0===n&&(n=0),void 0===o&&(o=!1);var i=t.schedule((function(){r(),o?e.add(this.schedule(null,n)):this.unsubscribe()}),n);if(e.add(i),!o)return i},Cs.observeOn=void 0;var Ns=Fs,Ms=Wa,Rs=$a;Cs.observeOn=function(e,t){return void 0===t&&(t=0),Ms.operate((function(r,n){r.subscribe(Rs.createOperatorSubscriber(n,(function(r){return Ns.executeSchedule(n,e,(function(){return n.next(r)}),t)}),(function(){return Ns.executeSchedule(n,e,(function(){return n.complete()}),t)}),(function(r){return Ns.executeSchedule(n,e,(function(){return n.error(r)}),t)})))}))};var Bs={subscribeOn:void 0},Ls=Wa;Bs.subscribeOn=function(e,t){return void 0===t&&(t=0),Ls.operate((function(r,n){n.add(e.schedule((function(){return r.subscribe(n)}),t))}))},Vc.scheduleObservable=void 0;var Us=$c,zs=Cs,Ws=Bs;Vc.scheduleObservable=function(e,t){return Us.innerFrom(e).pipe(Ws.subscribeOn(t),zs.observeOn(t))};var Ds={schedulePromise:void 0},qs=$c,Vs=Cs,$s=Bs;Ds.schedulePromise=function(e,t){return qs.innerFrom(e).pipe($s.subscribeOn(t),Vs.observeOn(t))};var Ys={scheduleArray:void 0},Js=Xi;Ys.scheduleArray=function(e,t){return new Js.Observable((function(r){var n=0;return t.schedule((function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())}))}))};var Hs={scheduleIterable:void 0},Ks=Xi,Gs=rs,Qs=ea,Xs=Fs;Hs.scheduleIterable=function(e,t){return new Ks.Observable((function(r){var n;return Xs.executeSchedule(r,t,(function(){n=e[Gs.iterator](),Xs.executeSchedule(r,t,(function(){var e,t,o;try{t=(e=n.next()).value,o=e.done}catch(e){return void r.error(e)}o?r.complete():r.next(t)}),0,!0)})),function(){return Qs.isFunction(null==n?void 0:n.return)&&n.return()}}))};var Zs={scheduleAsyncIterable:void 0},el=Xi,tl=Fs;Zs.scheduleAsyncIterable=function(e,t){if(!e)throw new Error("Iterable cannot be null");return new el.Observable((function(r){tl.executeSchedule(r,t,(function(){var n=e[Symbol.asyncIterator]();tl.executeSchedule(r,t,(function(){n.next().then((function(e){e.done?r.complete():r.next(e.value)}))}),0,!0)}))}))};var rl={scheduleReadableStreamLike:void 0},nl=Zs,ol=as;rl.scheduleReadableStreamLike=function(e,t){return nl.scheduleAsyncIterable(ol.readableStreamLikeToAsyncGenerator(e),t)},qc.scheduled=void 0;var il=Vc,al=Ds,ul=Ys,cl=Hs,sl=Zs,ll=Kc,fl=Jc,pl=Yc,dl=ts,vl=Xc,bl=es,yl=as,hl=rl;qc.scheduled=function(e,t){if(null!=e){if(ll.isInteropObservable(e))return il.scheduleObservable(e,t);if(pl.isArrayLike(e))return ul.scheduleArray(e,t);if(fl.isPromise(e))return al.schedulePromise(e,t);if(vl.isAsyncIterable(e))return sl.scheduleAsyncIterable(e,t);if(dl.isIterable(e))return cl.scheduleIterable(e,t);if(yl.isReadableStreamLike(e))return hl.scheduleReadableStreamLike(e,t)}throw bl.createInvalidObservableTypeError(e)},Dc.from=void 0;var ml=qc,gl=$c;Dc.from=function(e,t){return t?ml.scheduled(e,t):gl.innerFrom(e)},Mc.of=void 0;var Ol=Rc,wl=Dc;Mc.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ol.popScheduler(e);return wl.from(e,r)};var Sl={throwError:void 0},_l=Xi,jl=ea;Sl.throwError=function(e,t){var r=jl.isFunction(e)?e:function(){return e},n=function(e){return e.error(r())};return new _l.Observable(t?function(e){return t.schedule(n,0,e)}:n)},function(e){e.observeNotification=e.Notification=e.NotificationKind=void 0;var t,r=Nc,n=Mc,o=Sl,i=ea;(t=e.NotificationKind||(e.NotificationKind={})).NEXT="N",t.ERROR="E",t.COMPLETE="C";var a=function(){function e(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}return e.prototype.observe=function(e){return u(this,e)},e.prototype.do=function(e,t,r){var n=this,o=n.kind,i=n.value,a=n.error;return"N"===o?null==e?void 0:e(i):"E"===o?null==t?void 0:t(a):null==r?void 0:r()},e.prototype.accept=function(e,t,r){var n;return i.isFunction(null===(n=e)||void 0===n?void 0:n.next)?this.observe(e):this.do(e,t,r)},e.prototype.toObservable=function(){var e=this,t=e.kind,i=e.value,a=e.error,u="N"===t?n.of(i):"E"===t?o.throwError((function(){return a})):"C"===t?r.EMPTY:0;if(!u)throw new TypeError("Unexpected notification kind "+t);return u},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();function u(e,t){var r,n,o,i=e,a=i.kind,u=i.value,c=i.error;if("string"!=typeof a)throw new TypeError('Invalid notification, missing "kind"');"N"===a?null===(r=t.next)||void 0===r||r.call(t,u):"E"===a?null===(n=t.error)||void 0===n||n.call(t,c):null===(o=t.complete)||void 0===o||o.call(t)}e.Notification=a,e.observeNotification=u}(Fc);var xl={isObservable:void 0},El=Xi,Pl=ea;xl.isObservable=function(e){return!!e&&(e instanceof El.Observable||Pl.isFunction(e.lift)&&Pl.isFunction(e.subscribe))};var Al={},Tl={EmptyError:void 0},Il=na;Tl.EmptyError=Il.createErrorClass((function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}})),Al.lastValueFrom=void 0;var kl=Tl;Al.lastValueFrom=function(e,t){var r="object"==typeof t;return new Promise((function(n,o){var i,a=!1;e.subscribe({next:function(e){i=e,a=!0},error:o,complete:function(){a?n(i):r?n(t.defaultValue):o(new kl.EmptyError)}})}))};var Cl={firstValueFrom:void 0},Fl=Tl,Nl=Zi;Cl.firstValueFrom=function(e,t){var r="object"==typeof t;return new Promise((function(n,o){var i=new Nl.SafeSubscriber({next:function(e){n(e),i.unsubscribe()},error:o,complete:function(){r?n(t.defaultValue):o(new Fl.EmptyError)}});e.subscribe(i)}))};var Ml={ArgumentOutOfRangeError:void 0},Rl=na;Ml.ArgumentOutOfRangeError=Rl.createErrorClass((function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}}));var Bl={NotFoundError:void 0},Ll=na;Bl.NotFoundError=Ll.createErrorClass((function(e){return function(t){e(this),this.name="NotFoundError",this.message=t}}));var Ul={SequenceError:void 0},zl=na;Ul.SequenceError=zl.createErrorClass((function(e){return function(t){e(this),this.name="SequenceError",this.message=t}}));var Wl={},Dl={};Dl.isValidDate=void 0,Dl.isValidDate=function(e){return e instanceof Date&&!isNaN(e)},function(e){e.timeout=e.TimeoutError=void 0;var t=fc,r=Dl,n=Wa,o=$c,i=na,a=$a,u=Fs;function c(t){throw new e.TimeoutError(t)}e.TimeoutError=i.createErrorClass((function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}})),e.timeout=function(e,i){var s=r.isValidDate(e)?{first:e}:"number"==typeof e?{each:e}:e,l=s.first,f=s.each,p=s.with,d=void 0===p?c:p,v=s.scheduler,b=void 0===v?null!=i?i:t.asyncScheduler:v,y=s.meta,h=void 0===y?null:y;if(null==l&&null==f)throw new TypeError("No timeout provided.");return n.operate((function(e,t){var r,n,i=null,c=0,s=function(e){n=u.executeSchedule(t,b,(function(){try{r.unsubscribe(),o.innerFrom(d({meta:h,lastValue:i,seen:c})).subscribe(t)}catch(e){t.error(e)}}),e)};r=e.subscribe(a.createOperatorSubscriber(t,(function(e){null==n||n.unsubscribe(),c++,t.next(i=e),f>0&&s(f)}),void 0,void 0,(function(){(null==n?void 0:n.closed)||null==n||n.unsubscribe(),i=null}))),!c&&s(null!=l?"number"==typeof l?l:+l-b.now():f)}))}}(Wl);var ql={},Vl={},$l={},Yl={map:void 0},Jl=Wa,Hl=$a;Yl.map=function(e,t){return Jl.operate((function(r,n){var o=0;r.subscribe(Hl.createOperatorSubscriber(n,(function(r){n.next(e.call(t,r,o++))})))}))};var Kl=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Gl=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};$l.mapOneOrManyArgs=void 0;var Ql=Yl,Xl=Array.isArray;$l.mapOneOrManyArgs=function(e){return Ql.map((function(t){return function(e,t){return Xl(t)?e.apply(void 0,Gl([],Kl(t))):e(t)}(e,t)}))};var Zl=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},ef=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Vl.bindCallbackInternals=void 0;var tf=Bc,rf=Xi,nf=Bs,of=$l,af=Cs,uf=Cu;Vl.bindCallbackInternals=function e(t,r,n,o){if(n){if(!tf.isScheduler(n))return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];return e(t,r,o).apply(this,i).pipe(of.mapOneOrManyArgs(n))};o=n}return o?function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return e(t,r).apply(this,n).pipe(nf.subscribeOn(o),af.observeOn(o))}:function(){for(var e=this,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=new uf.AsyncSubject,a=!0;return new rf.Observable((function(o){var u=i.subscribe(o);if(a){a=!1;var c=!1,s=!1;r.apply(e,ef(ef([],Zl(n)),[function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(t){var n=e.shift();if(null!=n)return void i.error(n)}i.next(1<e.length?e:e[0]),s=!0,c&&i.complete()}])),s&&i.complete(),c=!0}return u}))}},ql.bindCallback=void 0;var cf=Vl;ql.bindCallback=function(e,t,r){return cf.bindCallbackInternals(!1,e,t,r)};var sf={bindNodeCallback:void 0},lf=Vl;sf.bindNodeCallback=function(e,t,r){return lf.bindCallbackInternals(!0,e,t,r)};var ff={},pf={argsArgArrayOrObject:void 0},df=Array.isArray,vf=Object.getPrototypeOf,bf=Object.prototype,yf=Object.keys;pf.argsArgArrayOrObject=function(e){if(1===e.length){var t=e[0];if(df(t))return{args:t,keys:null};if((n=t)&&"object"==typeof n&&vf(n)===bf){var r=yf(t);return{args:r.map((function(e){return t[e]})),keys:r}}}var n;return{args:e,keys:null}};var hf={};hf.createObject=void 0,hf.createObject=function(e,t){return e.reduce((function(e,r,n){return e[r]=t[n],e}),{})},ff.combineLatestInit=ff.combineLatest=void 0;var mf=Xi,gf=pf,Of=Dc,wf=Pa,Sf=$l,_f=Rc,jf=hf,xf=$a,Ef=Fs;function Pf(e,t,r){return void 0===r&&(r=wf.identity),function(n){Af(t,(function(){for(var o=e.length,i=new Array(o),a=o,u=o,c=function(o){Af(t,(function(){var c=Of.from(e[o],t),s=!1;c.subscribe(xf.createOperatorSubscriber(n,(function(e){i[o]=e,s||(s=!0,u--),u||n.next(r(i.slice()))}),(function(){--a||n.complete()})))}),n)},s=0;s<o;s++)c(s)}),n)}}function Af(e,t,r){e?Ef.executeSchedule(r,e,t):t()}ff.combineLatest=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=_f.popScheduler(e),n=_f.popResultSelector(e),o=gf.argsArgArrayOrObject(e),i=o.args,a=o.keys;if(0===i.length)return Of.from([],r);var u=new mf.Observable(Pf(i,r,a?function(e){return jf.createObject(a,e)}:wf.identity));return n?u.pipe(Sf.mapOneOrManyArgs(n)):u},ff.combineLatestInit=Pf;var Tf={},If={},kf={},Cf={},Ff={mergeInternals:void 0},Nf=$c,Mf=Fs,Rf=$a;Ff.mergeInternals=function(e,t,r,n,o,i,a,u){var c=[],s=0,l=0,f=!1,p=function(){!f||c.length||s||t.complete()},d=function(e){return s<n?v(e):c.push(e)},v=function(e){i&&t.next(e),s++;var u=!1;Nf.innerFrom(r(e,l++)).subscribe(Rf.createOperatorSubscriber(t,(function(e){null==o||o(e),i?d(e):t.next(e)}),(function(){u=!0}),void 0,(function(){if(u)try{s--;for(var e=function(){var e=c.shift();a?Mf.executeSchedule(t,a,(function(){return v(e)})):v(e)};c.length&&s<n;)e();p()}catch(e){t.error(e)}})))};return e.subscribe(Rf.createOperatorSubscriber(t,d,(function(){f=!0,p()}))),function(){null==u||u()}},Cf.mergeMap=void 0;var Bf=Yl,Lf=$c,Uf=Wa,zf=Ff,Wf=ea;Cf.mergeMap=function e(t,r,n){return void 0===n&&(n=1/0),Wf.isFunction(r)?e((function(e,n){return Bf.map((function(t,o){return r(e,t,n,o)}))(Lf.innerFrom(t(e,n)))}),n):("number"==typeof r&&(n=r),Uf.operate((function(e,r){return zf.mergeInternals(e,r,t,n)})))},kf.mergeAll=void 0;var Df=Cf,qf=Pa;kf.mergeAll=function(e){return void 0===e&&(e=1/0),Df.mergeMap(qf.identity,e)},If.concatAll=void 0;var Vf=kf;If.concatAll=function(){return Vf.mergeAll(1)},Tf.concat=void 0;var $f=If,Yf=Rc,Jf=Dc;Tf.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return $f.concatAll()(Jf.from(e,Yf.popScheduler(e)))};var Hf={},Kf={defer:void 0},Gf=Xi,Qf=$c;Kf.defer=function(e){return new Gf.Observable((function(t){Qf.innerFrom(e()).subscribe(t)}))},Hf.connectable=void 0;var Xf=pu,Zf=Xi,ep=Kf,tp={connector:function(){return new Xf.Subject},resetOnDisconnect:!0};Hf.connectable=function(e,t){void 0===t&&(t=tp);var r=null,n=t.connector,o=t.resetOnDisconnect,i=void 0===o||o,a=n(),u=new Zf.Observable((function(e){return a.subscribe(e)}));return u.connect=function(){return r&&!r.closed||(r=ep.defer((function(){return e})).subscribe(a),i&&r.add((function(){return a=n()}))),r},u};var rp={forkJoin:void 0},np=Xi,op=pf,ip=$c,ap=Rc,up=$a,cp=$l,sp=hf;rp.forkJoin=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ap.popResultSelector(e),n=op.argsArgArrayOrObject(e),o=n.args,i=n.keys,a=new np.Observable((function(e){var t=o.length;if(t)for(var r=new Array(t),n=t,a=t,u=function(t){var u=!1;ip.innerFrom(o[t]).subscribe(up.createOperatorSubscriber(e,(function(e){u||(u=!0,a--),r[t]=e}),(function(){return n--}),void 0,(function(){n&&u||(a||e.next(i?sp.createObject(i,r):r),e.complete())})))},c=0;c<t;c++)u(c);else e.complete()}));return r?a.pipe(cp.mapOneOrManyArgs(r)):a};var lp={},fp=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};lp.fromEvent=void 0;var pp=$c,dp=Xi,vp=Cf,bp=Yc,yp=ea,hp=$l,mp=["addListener","removeListener"],gp=["addEventListener","removeEventListener"],Op=["on","off"];function wp(e,t){return function(r){return function(n){return e[r](t,n)}}}lp.fromEvent=function e(t,r,n,o){if(yp.isFunction(n)&&(o=n,n=void 0),o)return e(t,r,n).pipe(hp.mapOneOrManyArgs(o));var i=fp(function(e){return yp.isFunction(e.addEventListener)&&yp.isFunction(e.removeEventListener)}(t)?gp.map((function(e){return function(o){return t[e](r,o,n)}})):function(e){return yp.isFunction(e.addListener)&&yp.isFunction(e.removeListener)}(t)?mp.map(wp(t,r)):function(e){return yp.isFunction(e.on)&&yp.isFunction(e.off)}(t)?Op.map(wp(t,r)):[],2),a=i[0],u=i[1];if(!a&&bp.isArrayLike(t))return vp.mergeMap((function(t){return e(t,r,n)}))(pp.innerFrom(t));if(!a)throw new TypeError("Invalid event target");return new dp.Observable((function(e){var t=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.next(1<t.length?t:t[0])};return a(t),function(){return u(t)}}))};var Sp={fromEventPattern:void 0},_p=Xi,jp=ea,xp=$l;Sp.fromEventPattern=function e(t,r,n){return n?e(t,r).pipe(xp.mapOneOrManyArgs(n)):new _p.Observable((function(e){var n=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.next(1===t.length?t[0]:t)},o=t(n);return jp.isFunction(r)?function(){return r(n,o)}:void 0}))};var Ep={},Pp=n&&n.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Ep.generate=void 0;var Ap=Pa,Tp=Bc,Ip=Kf,kp=Hs;Ep.generate=function(e,t,r,n,o){var i,a,u,c;function s(){var e;return Pp(this,(function(n){switch(n.label){case 0:e=c,n.label=1;case 1:return t&&!t(e)?[3,4]:[4,u(e)];case 2:n.sent(),n.label=3;case 3:return e=r(e),[3,1];case 4:return[2]}}))}return 1===arguments.length?(c=(i=e).initialState,t=i.condition,r=i.iterate,a=i.resultSelector,u=void 0===a?Ap.identity:a,o=i.scheduler):(c=e,!n||Tp.isScheduler(n)?(u=Ap.identity,o=n):u=n),Ip.defer(o?function(){return kp.scheduleIterable(s(),o)}:s)};var Cp={iif:void 0},Fp=Kf;Cp.iif=function(e,t,r){return Fp.defer((function(){return e()?t:r}))};var Np={},Mp={timer:void 0},Rp=Xi,Bp=fc,Lp=Bc,Up=Dl;Mp.timer=function(e,t,r){void 0===e&&(e=0),void 0===r&&(r=Bp.async);var n=-1;return null!=t&&(Lp.isScheduler(t)?r=t:n=t),new Rp.Observable((function(t){var o=Up.isValidDate(e)?+e-r.now():e;o<0&&(o=0);var i=0;return r.schedule((function(){t.closed||(t.next(i++),0<=n?this.schedule(void 0,n):t.complete())}),o)}))},Np.interval=void 0;var zp=fc,Wp=Mp;Np.interval=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=zp.asyncScheduler),e<0&&(e=0),Wp.timer(e,e,t)};var Dp={merge:void 0},qp=kf,Vp=$c,$p=Nc,Yp=Rc,Jp=Dc;Dp.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Yp.popScheduler(e),n=Yp.popNumber(e,1/0),o=e;return o.length?1===o.length?Vp.innerFrom(o[0]):qp.mergeAll(n)(Jp.from(o,r)):$p.EMPTY};var Hp={};!function(e){e.never=e.NEVER=void 0;var t=Xi,r=ga;e.NEVER=new t.Observable(r.noop),e.never=function(){return e.NEVER}}(Hp);var Kp={},Gp={},Qp={argsOrArgArray:void 0},Xp=Array.isArray;Qp.argsOrArgArray=function(e){return 1===e.length&&Xp(e[0])?e[0]:e};var Zp=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},ed=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Gp.onErrorResumeNext=void 0;var td=Wa,rd=$c,nd=Qp,od=$a,id=ga;Gp.onErrorResumeNext=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=nd.argsOrArgArray(e);return td.operate((function(e,t){var n=ed([e],Zp(r)),o=function(){if(!t.closed)if(n.length>0){var e=void 0;try{e=rd.innerFrom(n.shift())}catch(e){return void o()}var r=od.createOperatorSubscriber(t,void 0,id.noop,id.noop);e.subscribe(r),r.add(o)}else t.complete()};o()}))},Kp.onErrorResumeNext=void 0;var ad=Nc,ud=Gp,cd=Qp;Kp.onErrorResumeNext=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ud.onErrorResumeNext(cd.argsOrArgArray(e))(ad.EMPTY)};var sd={pairs:void 0},ld=Dc;sd.pairs=function(e,t){return ld.from(Object.entries(e),t)};var fd={},pd={};pd.not=void 0,pd.not=function(e,t){return function(r,n){return!e.call(t,r,n)}};var dd={filter:void 0},vd=Wa,bd=$a;dd.filter=function(e,t){return vd.operate((function(r,n){var o=0;r.subscribe(bd.createOperatorSubscriber(n,(function(r){return e.call(t,r,o++)&&n.next(r)})))}))},fd.partition=void 0;var yd=pd,hd=dd,md=$c;fd.partition=function(e,t,r){return[hd.filter(t,r)(md.innerFrom(e)),hd.filter(yd.not(t,r))(md.innerFrom(e))]};var gd={};gd.raceInit=gd.race=void 0;var Od=Xi,wd=$c,Sd=Qp,_d=$a;function jd(e){return function(t){for(var r=[],n=function(n){r.push(wd.innerFrom(e[n]).subscribe(_d.createOperatorSubscriber(t,(function(e){if(r){for(var o=0;o<r.length;o++)o!==n&&r[o].unsubscribe();r=null}t.next(e)}))))},o=0;r&&!t.closed&&o<e.length;o++)n(o)}}gd.race=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===(e=Sd.argsOrArgArray(e)).length?wd.innerFrom(e[0]):new Od.Observable(jd(e))},gd.raceInit=jd;var xd={range:void 0},Ed=Xi,Pd=Nc;xd.range=function(e,t,r){if(null==t&&(t=e,e=0),t<=0)return Pd.EMPTY;var n=t+e;return new Ed.Observable(r?function(t){var o=e;return r.schedule((function(){o<n?(t.next(o++),this.schedule()):t.complete()}))}:function(t){for(var r=e;r<n&&!t.closed;)t.next(r++);t.complete()})};var Ad={using:void 0},Td=Xi,Id=$c,kd=Nc;Ad.using=function(e,t){return new Td.Observable((function(r){var n=e(),o=t(n);return(o?Id.innerFrom(o):kd.EMPTY).subscribe(r),function(){n&&n.unsubscribe()}}))};var Cd={},Fd=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Nd=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Cd.zip=void 0;var Md=Xi,Rd=$c,Bd=Qp,Ld=Nc,Ud=$a,zd=Rc;Cd.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=zd.popResultSelector(e),n=Bd.argsOrArgArray(e);return n.length?new Md.Observable((function(e){var t=n.map((function(){return[]})),o=n.map((function(){return!1}));e.add((function(){t=o=null}));for(var i=function(i){Rd.innerFrom(n[i]).subscribe(Ud.createOperatorSubscriber(e,(function(n){if(t[i].push(n),t.every((function(e){return e.length}))){var a=t.map((function(e){return e.shift()}));e.next(r?r.apply(void 0,Nd([],Fd(a))):a),t.some((function(e,t){return!e.length&&o[t]}))&&e.complete()}}),(function(){o[i]=!0,!t[i].length&&e.complete()})))},a=0;!e.closed&&a<n.length;a++)i(a);return function(){t=o=null}})):Ld.EMPTY};var Wd={},Dd={audit:void 0},qd=Wa,Vd=$c,$d=$a;Dd.audit=function(e){return qd.operate((function(t,r){var n=!1,o=null,i=null,a=!1,u=function(){if(null==i||i.unsubscribe(),i=null,n){n=!1;var e=o;o=null,r.next(e)}a&&r.complete()},c=function(){i=null,a&&r.complete()};t.subscribe($d.createOperatorSubscriber(r,(function(t){n=!0,o=t,i||Vd.innerFrom(e(t)).subscribe(i=$d.createOperatorSubscriber(r,u,c))}),(function(){a=!0,(!n||!i||i.closed)&&r.complete()})))}))};var Yd={auditTime:void 0},Jd=fc,Hd=Dd,Kd=Mp;Yd.auditTime=function(e,t){return void 0===t&&(t=Jd.asyncScheduler),Hd.audit((function(){return Kd.timer(e,t)}))};var Gd={buffer:void 0},Qd=Wa,Xd=ga,Zd=$a;Gd.buffer=function(e){return Qd.operate((function(t,r){var n=[];return t.subscribe(Zd.createOperatorSubscriber(r,(function(e){return n.push(e)}),(function(){r.next(n),r.complete()}))),e.subscribe(Zd.createOperatorSubscriber(r,(function(){var e=n;n=[],r.next(e)}),Xd.noop)),function(){n=null}}))};var ev={},tv=n&&n.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};ev.bufferCount=void 0;var rv=Wa,nv=$a,ov=ia;ev.bufferCount=function(e,t){return void 0===t&&(t=null),t=null!=t?t:e,rv.operate((function(r,n){var o=[],i=0;r.subscribe(nv.createOperatorSubscriber(n,(function(r){var a,u,c,s,l=null;i++%t==0&&o.push([]);try{for(var f=tv(o),p=f.next();!p.done;p=f.next()){(b=p.value).push(r),e<=b.length&&(l=null!=l?l:[]).push(b)}}catch(e){a={error:e}}finally{try{p&&!p.done&&(u=f.return)&&u.call(f)}finally{if(a)throw a.error}}if(l)try{for(var d=tv(l),v=d.next();!v.done;v=d.next()){var b=v.value;ov.arrRemove(o,b),n.next(b)}}catch(e){c={error:e}}finally{try{v&&!v.done&&(s=d.return)&&s.call(d)}finally{if(c)throw c.error}}}),(function(){var e,t;try{for(var r=tv(o),i=r.next();!i.done;i=r.next()){var a=i.value;n.next(a)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}n.complete()}),void 0,(function(){o=null})))}))};var iv={},av=n&&n.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};iv.bufferTime=void 0;var uv=ta,cv=Wa,sv=$a,lv=ia,fv=fc,pv=Rc,dv=Fs;iv.bufferTime=function(e){for(var t,r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i=null!==(t=pv.popScheduler(n))&&void 0!==t?t:fv.asyncScheduler,a=null!==(r=n[0])&&void 0!==r?r:null,u=n[1]||1/0;return cv.operate((function(t,r){var n=[],o=!1,c=function(e){var t=e.buffer;e.subs.unsubscribe(),lv.arrRemove(n,e),r.next(t),o&&s()},s=function(){if(n){var t=new uv.Subscription;r.add(t);var o={buffer:[],subs:t};n.push(o),dv.executeSchedule(t,i,(function(){return c(o)}),e)}};null!==a&&a>=0?dv.executeSchedule(r,i,s,a,!0):o=!0,s();var l=sv.createOperatorSubscriber(r,(function(e){var t,r,o=n.slice();try{for(var i=av(o),a=i.next();!a.done;a=i.next()){var s=a.value,l=s.buffer;l.push(e),u<=l.length&&c(s)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}}),(function(){for(;null==n?void 0:n.length;)r.next(n.shift().buffer);null==l||l.unsubscribe(),r.complete(),r.unsubscribe()}),void 0,(function(){return n=null}));t.subscribe(l)}))};var vv={},bv=n&&n.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};vv.bufferToggle=void 0;var yv=ta,hv=Wa,mv=$c,gv=$a,Ov=ga,wv=ia;vv.bufferToggle=function(e,t){return hv.operate((function(r,n){var o=[];mv.innerFrom(e).subscribe(gv.createOperatorSubscriber(n,(function(e){var r=[];o.push(r);var i=new yv.Subscription;i.add(mv.innerFrom(t(e)).subscribe(gv.createOperatorSubscriber(n,(function(){wv.arrRemove(o,r),n.next(r),i.unsubscribe()}),Ov.noop)))}),Ov.noop)),r.subscribe(gv.createOperatorSubscriber(n,(function(e){var t,r;try{for(var n=bv(o),i=n.next();!i.done;i=n.next()){i.value.push(e)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}}),(function(){for(;o.length>0;)n.next(o.shift());n.complete()})))}))};var Sv={bufferWhen:void 0},_v=Wa,jv=ga,xv=$a,Ev=$c;Sv.bufferWhen=function(e){return _v.operate((function(t,r){var n=null,o=null,i=function(){null==o||o.unsubscribe();var t=n;n=[],t&&r.next(t),Ev.innerFrom(e()).subscribe(o=xv.createOperatorSubscriber(r,i,jv.noop))};i(),t.subscribe(xv.createOperatorSubscriber(r,(function(e){return null==n?void 0:n.push(e)}),(function(){n&&r.next(n),r.complete()}),void 0,(function(){return n=o=null})))}))};var Pv={catchError:void 0},Av=$c,Tv=$a,Iv=Wa;Pv.catchError=function e(t){return Iv.operate((function(r,n){var o,i=null,a=!1;i=r.subscribe(Tv.createOperatorSubscriber(n,void 0,void 0,(function(u){o=Av.innerFrom(t(u,e(t)(r))),i?(i.unsubscribe(),i=null,o.subscribe(n)):a=!0}))),a&&(i.unsubscribe(),i=null,o.subscribe(n))}))};var kv={},Cv={},Fv={},Nv={},Mv={},Rv={scanInternals:void 0},Bv=$a;Rv.scanInternals=function(e,t,r,n,o){return function(i,a){var u=r,c=t,s=0;i.subscribe(Bv.createOperatorSubscriber(a,(function(t){var r=s++;c=u?e(c,t,r):(u=!0,t),n&&a.next(c)}),o&&function(){u&&a.next(c),a.complete()}))}},Mv.reduce=void 0;var Lv=Rv,Uv=Wa;Mv.reduce=function(e,t){return Uv.operate(Lv.scanInternals(e,t,arguments.length>=2,!1,!0))},Nv.toArray=void 0;var zv=Mv,Wv=Wa,Dv=function(e,t){return e.push(t),e};Nv.toArray=function(){return Wv.operate((function(e,t){zv.reduce(Dv,[])(e).subscribe(t)}))},Fv.joinAllInternals=void 0;var qv=Pa,Vv=$l,$v=Ea,Yv=Cf,Jv=Nv;Fv.joinAllInternals=function(e,t){return $v.pipe(Jv.toArray(),Yv.mergeMap((function(t){return e(t)})),t?Vv.mapOneOrManyArgs(t):qv.identity)},Cv.combineLatestAll=void 0;var Hv=ff,Kv=Fv;Cv.combineLatestAll=function(e){return Kv.joinAllInternals(Hv.combineLatest,e)},kv.combineAll=void 0;var Gv=Cv;kv.combineAll=Gv.combineLatestAll;var Qv={},Xv={},Zv=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},eb=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Xv.combineLatest=void 0;var tb=ff,rb=Wa,nb=Qp,ob=$l,ib=Ea,ab=Rc;Xv.combineLatest=function e(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=ab.popResultSelector(t);return n?ib.pipe(e.apply(void 0,eb([],Zv(t))),ob.mapOneOrManyArgs(n)):rb.operate((function(e,r){tb.combineLatestInit(eb([e],Zv(nb.argsOrArgArray(t))))(r)}))};var ub=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},cb=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Qv.combineLatestWith=void 0;var sb=Xv;Qv.combineLatestWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return sb.combineLatest.apply(void 0,cb([],ub(e)))};var lb={concatMap:void 0},fb=Cf,pb=ea;lb.concatMap=function(e,t){return pb.isFunction(t)?fb.mergeMap(e,t,1):fb.mergeMap(e,1)};var db={concatMapTo:void 0},vb=lb,bb=ea;db.concatMapTo=function(e,t){return bb.isFunction(t)?vb.concatMap((function(){return e}),t):vb.concatMap((function(){return e}))};var yb={},hb={},mb=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},gb=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};hb.concat=void 0;var Ob=Wa,wb=If,Sb=Rc,_b=Dc;hb.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Sb.popScheduler(e);return Ob.operate((function(t,n){wb.concatAll()(_b.from(gb([t],mb(e)),r)).subscribe(n)}))};var jb=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},xb=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};yb.concatWith=void 0;var Eb=hb;yb.concatWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Eb.concat.apply(void 0,xb([],jb(e)))};var Pb={},Ab={fromSubscribable:void 0},Tb=Xi;Ab.fromSubscribable=function(e){return new Tb.Observable((function(t){return e.subscribe(t)}))},Pb.connect=void 0;var Ib=pu,kb=Dc,Cb=Wa,Fb=Ab,Nb={connector:function(){return new Ib.Subject}};Pb.connect=function(e,t){void 0===t&&(t=Nb);var r=t.connector;return Cb.operate((function(t,n){var o=r();kb.from(e(Fb.fromSubscribable(o))).subscribe(n),n.add(t.subscribe(o))}))};var Mb={count:void 0},Rb=Mv;Mb.count=function(e){return Rb.reduce((function(t,r,n){return!e||e(r,n)?t+1:t}),0)};var Bb={debounce:void 0},Lb=Wa,Ub=ga,zb=$a,Wb=$c;Bb.debounce=function(e){return Lb.operate((function(t,r){var n=!1,o=null,i=null,a=function(){if(null==i||i.unsubscribe(),i=null,n){n=!1;var e=o;o=null,r.next(e)}};t.subscribe(zb.createOperatorSubscriber(r,(function(t){null==i||i.unsubscribe(),n=!0,o=t,i=zb.createOperatorSubscriber(r,a,Ub.noop),Wb.innerFrom(e(t)).subscribe(i)}),(function(){a(),r.complete()}),void 0,(function(){o=i=null})))}))};var Db={debounceTime:void 0},qb=fc,Vb=Wa,$b=$a;Db.debounceTime=function(e,t){return void 0===t&&(t=qb.asyncScheduler),Vb.operate((function(r,n){var o=null,i=null,a=null,u=function(){if(o){o.unsubscribe(),o=null;var e=i;i=null,n.next(e)}};function c(){var r=a+e,i=t.now();if(i<r)return o=this.schedule(void 0,r-i),void n.add(o);u()}r.subscribe($b.createOperatorSubscriber(n,(function(r){i=r,a=t.now(),o||(o=t.schedule(c,e),n.add(o))}),(function(){u(),n.complete()}),void 0,(function(){i=o=null})))}))};var Yb={defaultIfEmpty:void 0},Jb=Wa,Hb=$a;Yb.defaultIfEmpty=function(e){return Jb.operate((function(t,r){var n=!1;t.subscribe(Hb.createOperatorSubscriber(r,(function(e){n=!0,r.next(e)}),(function(){n||r.next(e),r.complete()})))}))};var Kb={},Gb={},Qb={take:void 0},Xb=Nc,Zb=Wa,ey=$a;Qb.take=function(e){return e<=0?function(){return Xb.EMPTY}:Zb.operate((function(t,r){var n=0;t.subscribe(ey.createOperatorSubscriber(r,(function(t){++n<=e&&(r.next(t),e<=n&&r.complete())})))}))};var ty={ignoreElements:void 0},ry=Wa,ny=$a,oy=ga;ty.ignoreElements=function(){return ry.operate((function(e,t){e.subscribe(ny.createOperatorSubscriber(t,oy.noop))}))};var iy={mapTo:void 0},ay=Yl;iy.mapTo=function(e){return ay.map((function(){return e}))},Gb.delayWhen=void 0;var uy=Tf,cy=Qb,sy=ty,ly=iy,fy=Cf;Gb.delayWhen=function e(t,r){return r?function(n){return uy.concat(r.pipe(cy.take(1),sy.ignoreElements()),n.pipe(e(t)))}:fy.mergeMap((function(e,r){return t(e,r).pipe(cy.take(1),ly.mapTo(e))}))},Kb.delay=void 0;var py=fc,dy=Gb,vy=Mp;Kb.delay=function(e,t){void 0===t&&(t=py.asyncScheduler);var r=vy.timer(e,t);return dy.delayWhen((function(){return r}))};var by={dematerialize:void 0},yy=Fc,hy=Wa,my=$a;by.dematerialize=function(){return hy.operate((function(e,t){e.subscribe(my.createOperatorSubscriber(t,(function(e){return yy.observeNotification(e,t)})))}))};var gy={distinct:void 0},Oy=Wa,wy=$a,Sy=ga;gy.distinct=function(e,t){return Oy.operate((function(r,n){var o=new Set;r.subscribe(wy.createOperatorSubscriber(n,(function(t){var r=e?e(t):t;o.has(r)||(o.add(r),n.next(t))}))),null==t||t.subscribe(wy.createOperatorSubscriber(n,(function(){return o.clear()}),Sy.noop))}))};var _y={distinctUntilChanged:void 0},jy=Pa,xy=Wa,Ey=$a;function Py(e,t){return e===t}_y.distinctUntilChanged=function(e,t){return void 0===t&&(t=jy.identity),e=null!=e?e:Py,xy.operate((function(r,n){var o,i=!0;r.subscribe(Ey.createOperatorSubscriber(n,(function(r){var a=t(r);!i&&e(o,a)||(i=!1,o=a,n.next(r))})))}))};var Ay={distinctUntilKeyChanged:void 0},Ty=_y;Ay.distinctUntilKeyChanged=function(e,t){return Ty.distinctUntilChanged((function(r,n){return t?t(r[e],n[e]):r[e]===n[e]}))};var Iy={},ky={throwIfEmpty:void 0},Cy=Tl,Fy=Wa,Ny=$a;function My(){return new Cy.EmptyError}ky.throwIfEmpty=function(e){return void 0===e&&(e=My),Fy.operate((function(t,r){var n=!1;t.subscribe(Ny.createOperatorSubscriber(r,(function(e){n=!0,r.next(e)}),(function(){return n?r.complete():r.error(e())})))}))},Iy.elementAt=void 0;var Ry=Ml,By=dd,Ly=ky,Uy=Yb,zy=Qb;Iy.elementAt=function(e,t){if(e<0)throw new Ry.ArgumentOutOfRangeError;var r=arguments.length>=2;return function(n){return n.pipe(By.filter((function(t,r){return r===e})),zy.take(1),r?Uy.defaultIfEmpty(t):Ly.throwIfEmpty((function(){return new Ry.ArgumentOutOfRangeError})))}};var Wy={},Dy=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},qy=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Wy.endWith=void 0;var Vy=Tf,$y=Mc;Wy.endWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return Vy.concat(t,$y.of.apply(void 0,qy([],Dy(e))))}};var Yy={every:void 0},Jy=Wa,Hy=$a;Yy.every=function(e,t){return Jy.operate((function(r,n){var o=0;r.subscribe(Hy.createOperatorSubscriber(n,(function(i){e.call(t,i,o++,r)||(n.next(!1),n.complete())}),(function(){n.next(!0),n.complete()})))}))};var Ky={},Gy={exhaustAll:void 0},Qy=Wa,Xy=$c,Zy=$a;Gy.exhaustAll=function(){return Qy.operate((function(e,t){var r=!1,n=null;e.subscribe(Zy.createOperatorSubscriber(t,(function(e){n||(n=Xy.innerFrom(e).subscribe(Zy.createOperatorSubscriber(t,void 0,(function(){n=null,r&&t.complete()}))))}),(function(){r=!0,!n&&t.complete()})))}))},Ky.exhaust=void 0;var eh=Gy;Ky.exhaust=eh.exhaustAll;var th={exhaustMap:void 0},rh=Yl,nh=$c,oh=Wa,ih=$a;th.exhaustMap=function e(t,r){return r?function(n){return n.pipe(e((function(e,n){return nh.innerFrom(t(e,n)).pipe(rh.map((function(t,o){return r(e,t,n,o)})))})))}:oh.operate((function(e,r){var n=0,o=null,i=!1;e.subscribe(ih.createOperatorSubscriber(r,(function(e){o||(o=ih.createOperatorSubscriber(r,void 0,(function(){o=null,i&&r.complete()})),nh.innerFrom(t(e,n++)).subscribe(o))}),(function(){i=!0,!o&&r.complete()})))}))};var ah={expand:void 0},uh=Wa,ch=Ff;ah.expand=function(e,t,r){return void 0===t&&(t=1/0),t=(t||0)<1?1/0:t,uh.operate((function(n,o){return ch.mergeInternals(n,o,e,t,void 0,!0,r)}))};var sh={finalize:void 0},lh=Wa;sh.finalize=function(e){return lh.operate((function(t,r){try{t.subscribe(r)}finally{r.add(e)}}))};var fh={};fh.createFind=fh.find=void 0;var ph=Wa,dh=$a;function vh(e,t,r){var n="index"===r;return function(r,o){var i=0;r.subscribe(dh.createOperatorSubscriber(o,(function(a){var u=i++;e.call(t,a,u,r)&&(o.next(n?u:a),o.complete())}),(function(){o.next(n?-1:void 0),o.complete()})))}}fh.find=function(e,t){return ph.operate(vh(e,t,"value"))},fh.createFind=vh;var bh={findIndex:void 0},yh=Wa,hh=fh;bh.findIndex=function(e,t){return yh.operate(hh.createFind(e,t,"index"))};var mh={first:void 0},gh=Tl,Oh=dd,wh=Qb,Sh=Yb,_h=ky,jh=Pa;mh.first=function(e,t){var r=arguments.length>=2;return function(n){return n.pipe(e?Oh.filter((function(t,r){return e(t,r,n)})):jh.identity,wh.take(1),r?Sh.defaultIfEmpty(t):_h.throwIfEmpty((function(){return new gh.EmptyError})))}};var xh={groupBy:void 0},Eh=Xi,Ph=$c,Ah=pu,Th=Wa,Ih=$a;xh.groupBy=function(e,t,r,n){return Th.operate((function(o,i){var a;t&&"function"!=typeof t?(r=t.duration,a=t.element,n=t.connector):a=t;var u=new Map,c=function(e){u.forEach(e),e(i)},s=function(e){return c((function(t){return t.error(e)}))},l=0,f=!1,p=new Ih.OperatorSubscriber(i,(function(t){try{var o=e(t),c=u.get(o);if(!c){u.set(o,c=n?n():new Ah.Subject);var d=(b=o,y=c,(h=new Eh.Observable((function(e){l++;var t=y.subscribe(e);return function(){t.unsubscribe(),0==--l&&f&&p.unsubscribe()}}))).key=b,h);if(i.next(d),r){var v=Ih.createOperatorSubscriber(c,(function(){c.complete(),null==v||v.unsubscribe()}),void 0,void 0,(function(){return u.delete(o)}));p.add(Ph.innerFrom(r(d)).subscribe(v))}}c.next(a?a(t):t)}catch(e){s(e)}var b,y,h}),(function(){return c((function(e){return e.complete()}))}),s,(function(){return u.clear()}),(function(){return f=!0,0===l}));o.subscribe(p)}))};var kh={isEmpty:void 0},Ch=Wa,Fh=$a;kh.isEmpty=function(){return Ch.operate((function(e,t){e.subscribe(Fh.createOperatorSubscriber(t,(function(){t.next(!1),t.complete()}),(function(){t.next(!0),t.complete()})))}))};var Nh={},Mh={},Rh=n&&n.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Mh.takeLast=void 0;var Bh=Nc,Lh=Wa,Uh=$a;Mh.takeLast=function(e){return e<=0?function(){return Bh.EMPTY}:Lh.operate((function(t,r){var n=[];t.subscribe(Uh.createOperatorSubscriber(r,(function(t){n.push(t),e<n.length&&n.shift()}),(function(){var e,t;try{for(var o=Rh(n),i=o.next();!i.done;i=o.next()){var a=i.value;r.next(a)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}r.complete()}),void 0,(function(){n=null})))}))},Nh.last=void 0;var zh=Tl,Wh=dd,Dh=Mh,qh=ky,Vh=Yb,$h=Pa;Nh.last=function(e,t){var r=arguments.length>=2;return function(n){return n.pipe(e?Wh.filter((function(t,r){return e(t,r,n)})):$h.identity,Dh.takeLast(1),r?Vh.defaultIfEmpty(t):qh.throwIfEmpty((function(){return new zh.EmptyError})))}};var Yh={materialize:void 0},Jh=Fc,Hh=Wa,Kh=$a;Yh.materialize=function(){return Hh.operate((function(e,t){e.subscribe(Kh.createOperatorSubscriber(t,(function(e){t.next(Jh.Notification.createNext(e))}),(function(){t.next(Jh.Notification.createComplete()),t.complete()}),(function(e){t.next(Jh.Notification.createError(e)),t.complete()})))}))};var Gh={max:void 0},Qh=Mv,Xh=ea;Gh.max=function(e){return Qh.reduce(Xh.isFunction(e)?function(t,r){return e(t,r)>0?t:r}:function(e,t){return e>t?e:t})};var Zh={flatMap:void 0},em=Cf;Zh.flatMap=em.mergeMap;var tm={mergeMapTo:void 0},rm=Cf,nm=ea;tm.mergeMapTo=function(e,t,r){return void 0===r&&(r=1/0),nm.isFunction(t)?rm.mergeMap((function(){return e}),t,r):("number"==typeof t&&(r=t),rm.mergeMap((function(){return e}),r))};var om={mergeScan:void 0},im=Wa,am=Ff;om.mergeScan=function(e,t,r){return void 0===r&&(r=1/0),im.operate((function(n,o){var i=t;return am.mergeInternals(n,o,(function(t,r){return e(i,t,r)}),r,(function(e){i=e}),!1,void 0,(function(){return i=null}))}))};var um={},cm={},sm=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},lm=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};cm.merge=void 0;var fm=Wa,pm=Qp,dm=kf,vm=Rc,bm=Dc;cm.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=vm.popScheduler(e),n=vm.popNumber(e,1/0);return e=pm.argsOrArgArray(e),fm.operate((function(t,o){dm.mergeAll(n)(bm.from(lm([t],sm(e)),r)).subscribe(o)}))};var ym=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},hm=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};um.mergeWith=void 0;var mm=cm;um.mergeWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return mm.merge.apply(void 0,hm([],ym(e)))};var gm={min:void 0},Om=Mv,wm=ea;gm.min=function(e){return Om.reduce(wm.isFunction(e)?function(t,r){return e(t,r)<0?t:r}:function(e,t){return e<t?e:t})};var Sm={multicast:void 0},_m=Ua,jm=ea,xm=Pb;Sm.multicast=function(e,t){var r=jm.isFunction(e)?e:function(){return e};return jm.isFunction(t)?xm.connect(t,{connector:r}):function(e){return new _m.ConnectableObservable(e,r)}};var Em={pairwise:void 0},Pm=Wa,Am=$a;Em.pairwise=function(){return Pm.operate((function(e,t){var r,n=!1;e.subscribe(Am.createOperatorSubscriber(t,(function(e){var o=r;r=e,n&&t.next([o,e]),n=!0})))}))};var Tm={pluck:void 0},Im=Yl;Tm.pluck=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e.length;if(0===r)throw new Error("list of properties cannot be empty.");return Im.map((function(t){for(var n=t,o=0;o<r;o++){var i=null==n?void 0:n[e[o]];if(void 0===i)return;n=i}return n}))};var km={publish:void 0},Cm=pu,Fm=Sm,Nm=Pb;km.publish=function(e){return e?function(t){return Nm.connect(e)(t)}:function(e){return Fm.multicast(new Cm.Subject)(e)}};var Mm={publishBehavior:void 0},Rm=ju,Bm=Ua;Mm.publishBehavior=function(e){return function(t){var r=new Rm.BehaviorSubject(e);return new Bm.ConnectableObservable(t,(function(){return r}))}};var Lm={publishLast:void 0},Um=Cu,zm=Ua;Lm.publishLast=function(){return function(e){var t=new Um.AsyncSubject;return new zm.ConnectableObservable(e,(function(){return t}))}};var Wm={publishReplay:void 0},Dm=Pu,qm=Sm,Vm=ea;Wm.publishReplay=function(e,t,r,n){r&&!Vm.isFunction(r)&&(n=r);var o=Vm.isFunction(r)?r:void 0;return function(r){return qm.multicast(new Dm.ReplaySubject(e,t,n),o)(r)}};var $m={},Ym=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Jm=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};$m.raceWith=void 0;var Hm=gd,Km=Wa,Gm=Pa;$m.raceWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length?Km.operate((function(t,r){Hm.raceInit(Jm([t],Ym(e)))(r)})):Gm.identity};var Qm={repeat:void 0},Xm=Nc,Zm=Wa,eg=$a,tg=$c,rg=Mp;Qm.repeat=function(e){var t,r,n=1/0;return null!=e&&("object"==typeof e?(t=e.count,n=void 0===t?1/0:t,r=e.delay):n=e),n<=0?function(){return Xm.EMPTY}:Zm.operate((function(e,t){var o,i=0,a=function(){if(null==o||o.unsubscribe(),o=null,null!=r){var e="number"==typeof r?rg.timer(r):tg.innerFrom(r(i)),n=eg.createOperatorSubscriber(t,(function(){n.unsubscribe(),u()}));e.subscribe(n)}else u()},u=function(){var r=!1;o=e.subscribe(eg.createOperatorSubscriber(t,void 0,(function(){++i<n?o?a():r=!0:t.complete()}))),r&&a()};u()}))};var ng={repeatWhen:void 0},og=pu,ig=Wa,ag=$a;ng.repeatWhen=function(e){return ig.operate((function(t,r){var n,o,i=!1,a=!1,u=!1,c=function(){return u&&a&&(r.complete(),!0)},s=function(){u=!1,n=t.subscribe(ag.createOperatorSubscriber(r,void 0,(function(){u=!0,!c()&&(o||(o=new og.Subject,e(o).subscribe(ag.createOperatorSubscriber(r,(function(){n?s():i=!0}),(function(){a=!0,c()})))),o).next()}))),i&&(n.unsubscribe(),n=null,i=!1,s())};s()}))};var ug={retry:void 0},cg=Wa,sg=$a,lg=Pa,fg=Mp,pg=$c;ug.retry=function(e){var t;void 0===e&&(e=1/0);var r=(t=e&&"object"==typeof e?e:{count:e}).count,n=void 0===r?1/0:r,o=t.delay,i=t.resetOnSuccess,a=void 0!==i&&i;return n<=0?lg.identity:cg.operate((function(e,t){var r,i=0,u=function(){var c=!1;r=e.subscribe(sg.createOperatorSubscriber(t,(function(e){a&&(i=0),t.next(e)}),void 0,(function(e){if(i++<n){var a=function(){r?(r.unsubscribe(),r=null,u()):c=!0};if(null!=o){var s="number"==typeof o?fg.timer(o):pg.innerFrom(o(e,i)),l=sg.createOperatorSubscriber(t,(function(){l.unsubscribe(),a()}),(function(){t.complete()}));s.subscribe(l)}else a()}else t.error(e)}))),c&&(r.unsubscribe(),r=null,u())};u()}))};var dg={retryWhen:void 0},vg=pu,bg=Wa,yg=$a;dg.retryWhen=function(e){return bg.operate((function(t,r){var n,o,i=!1,a=function(){n=t.subscribe(yg.createOperatorSubscriber(r,void 0,void 0,(function(t){o||(o=new vg.Subject,e(o).subscribe(yg.createOperatorSubscriber(r,(function(){return n?a():i=!0})))),o&&o.next(t)}))),i&&(n.unsubscribe(),n=null,i=!1,a())};a()}))};var hg={sample:void 0},mg=Wa,gg=ga,Og=$a;hg.sample=function(e){return mg.operate((function(t,r){var n=!1,o=null;t.subscribe(Og.createOperatorSubscriber(r,(function(e){n=!0,o=e}))),e.subscribe(Og.createOperatorSubscriber(r,(function(){if(n){n=!1;var e=o;o=null,r.next(e)}}),gg.noop))}))};var wg={sampleTime:void 0},Sg=fc,_g=hg,jg=Np;wg.sampleTime=function(e,t){return void 0===t&&(t=Sg.asyncScheduler),_g.sample(jg.interval(e,t))};var xg={scan:void 0},Eg=Wa,Pg=Rv;xg.scan=function(e,t){return Eg.operate(Pg.scanInternals(e,t,arguments.length>=2,!0))};var Ag={sequenceEqual:void 0},Tg=Wa,Ig=$a;Ag.sequenceEqual=function(e,t){return void 0===t&&(t=function(e,t){return e===t}),Tg.operate((function(r,n){var o={buffer:[],complete:!1},i={buffer:[],complete:!1},a=function(e){n.next(e),n.complete()},u=function(e,r){var o=Ig.createOperatorSubscriber(n,(function(n){var o=r.buffer,i=r.complete;0===o.length?i?a(!1):e.buffer.push(n):!t(n,o.shift())&&a(!1)}),(function(){e.complete=!0;var t=r.complete,n=r.buffer;t&&a(0===n.length),null==o||o.unsubscribe()}));return o};r.subscribe(u(o,i)),e.subscribe(u(i,o))}))};var kg={},Cg=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Fg=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};kg.share=void 0;var Ng=Dc,Mg=Qb,Rg=pu,Bg=Zi,Lg=Wa;function Ug(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return!0===t?(e(),null):!1===t?null:t.apply(void 0,Fg([],Cg(r))).pipe(Mg.take(1)).subscribe((function(){return e()}))}kg.share=function(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new Rg.Subject}:t,n=e.resetOnError,o=void 0===n||n,i=e.resetOnComplete,a=void 0===i||i,u=e.resetOnRefCountZero,c=void 0===u||u;return function(e){var t=null,n=null,i=null,u=0,s=!1,l=!1,f=function(){null==n||n.unsubscribe(),n=null},p=function(){f(),t=i=null,s=l=!1},d=function(){var e=t;p(),null==e||e.unsubscribe()};return Lg.operate((function(e,v){u++,l||s||f();var b=i=null!=i?i:r();v.add((function(){0!==--u||l||s||(n=Ug(d,c))})),b.subscribe(v),t||(t=new Bg.SafeSubscriber({next:function(e){return b.next(e)},error:function(e){l=!0,f(),n=Ug(p,o,e),b.error(e)},complete:function(){s=!0,f(),n=Ug(p,a),b.complete()}}),Ng.from(e).subscribe(t))}))(e)}};var zg={shareReplay:void 0},Wg=Pu,Dg=kg;zg.shareReplay=function(e,t,r){var n,o,i,a,u=!1;return e&&"object"==typeof e?(n=e.bufferSize,a=void 0===n?1/0:n,o=e.windowTime,t=void 0===o?1/0:o,u=void 0!==(i=e.refCount)&&i,r=e.scheduler):a=null!=e?e:1/0,Dg.share({connector:function(){return new Wg.ReplaySubject(a,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:u})};var qg={single:void 0},Vg=Tl,$g=Ul,Yg=Bl,Jg=Wa,Hg=$a;qg.single=function(e){return Jg.operate((function(t,r){var n,o=!1,i=!1,a=0;t.subscribe(Hg.createOperatorSubscriber(r,(function(u){i=!0,e&&!e(u,a++,t)||(o&&r.error(new $g.SequenceError("Too many matching values")),o=!0,n=u)}),(function(){o?(r.next(n),r.complete()):r.error(i?new Yg.NotFoundError("No matching values"):new Vg.EmptyError)})))}))};var Kg={skip:void 0},Gg=dd;Kg.skip=function(e){return Gg.filter((function(t,r){return e<=r}))};var Qg={skipLast:void 0},Xg=Pa,Zg=Wa,eO=$a;Qg.skipLast=function(e){return e<=0?Xg.identity:Zg.operate((function(t,r){var n=new Array(e),o=0;return t.subscribe(eO.createOperatorSubscriber(r,(function(t){var i=o++;if(i<e)n[i]=t;else{var a=i%e,u=n[a];n[a]=t,r.next(u)}}))),function(){n=null}}))};var tO={skipUntil:void 0},rO=Wa,nO=$a,oO=$c,iO=ga;tO.skipUntil=function(e){return rO.operate((function(t,r){var n=!1,o=nO.createOperatorSubscriber(r,(function(){null==o||o.unsubscribe(),n=!0}),iO.noop);oO.innerFrom(e).subscribe(o),t.subscribe(nO.createOperatorSubscriber(r,(function(e){return n&&r.next(e)})))}))};var aO={skipWhile:void 0},uO=Wa,cO=$a;aO.skipWhile=function(e){return uO.operate((function(t,r){var n=!1,o=0;t.subscribe(cO.createOperatorSubscriber(r,(function(t){return(n||(n=!e(t,o++)))&&r.next(t)})))}))};var sO={startWith:void 0},lO=Tf,fO=Rc,pO=Wa;sO.startWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=fO.popScheduler(e);return pO.operate((function(t,n){(r?lO.concat(e,t,r):lO.concat(e,t)).subscribe(n)}))};var dO={},vO={switchMap:void 0},bO=$c,yO=Wa,hO=$a;vO.switchMap=function(e,t){return yO.operate((function(r,n){var o=null,i=0,a=!1,u=function(){return a&&!o&&n.complete()};r.subscribe(hO.createOperatorSubscriber(n,(function(r){null==o||o.unsubscribe();var a=0,c=i++;bO.innerFrom(e(r,c)).subscribe(o=hO.createOperatorSubscriber(n,(function(e){return n.next(t?t(r,e,c,a++):e)}),(function(){o=null,u()})))}),(function(){a=!0,u()})))}))},dO.switchAll=void 0;var mO=vO,gO=Pa;dO.switchAll=function(){return mO.switchMap(gO.identity)};var OO={switchMapTo:void 0},wO=vO,SO=ea;OO.switchMapTo=function(e,t){return SO.isFunction(t)?wO.switchMap((function(){return e}),t):wO.switchMap((function(){return e}))};var _O={switchScan:void 0},jO=vO,xO=Wa;_O.switchScan=function(e,t){return xO.operate((function(r,n){var o=t;return jO.switchMap((function(t,r){return e(o,t,r)}),(function(e,t){return o=t,t}))(r).subscribe(n),function(){o=null}}))};var EO={takeUntil:void 0},PO=Wa,AO=$a,TO=$c,IO=ga;EO.takeUntil=function(e){return PO.operate((function(t,r){TO.innerFrom(e).subscribe(AO.createOperatorSubscriber(r,(function(){return r.complete()}),IO.noop)),!r.closed&&t.subscribe(r)}))};var kO={takeWhile:void 0},CO=Wa,FO=$a;kO.takeWhile=function(e,t){return void 0===t&&(t=!1),CO.operate((function(r,n){var o=0;r.subscribe(FO.createOperatorSubscriber(n,(function(r){var i=e(r,o++);(i||t)&&n.next(r),!i&&n.complete()})))}))};var NO={tap:void 0},MO=ea,RO=Wa,BO=$a,LO=Pa;NO.tap=function(e,t,r){var n=MO.isFunction(e)||t||r?{next:e,error:t,complete:r}:e;return n?RO.operate((function(e,t){var r;null===(r=n.subscribe)||void 0===r||r.call(n);var o=!0;e.subscribe(BO.createOperatorSubscriber(t,(function(e){var r;null===(r=n.next)||void 0===r||r.call(n,e),t.next(e)}),(function(){var e;o=!1,null===(e=n.complete)||void 0===e||e.call(n),t.complete()}),(function(e){var r;o=!1,null===(r=n.error)||void 0===r||r.call(n,e),t.error(e)}),(function(){var e,t;o&&(null===(e=n.unsubscribe)||void 0===e||e.call(n)),null===(t=n.finalize)||void 0===t||t.call(n)})))})):LO.identity};var UO={};!function(e){e.throttle=e.defaultThrottleConfig=void 0;var t=Wa,r=$a,n=$c;e.defaultThrottleConfig={leading:!0,trailing:!1},e.throttle=function(o,i){return void 0===i&&(i=e.defaultThrottleConfig),t.operate((function(e,t){var a=i.leading,u=i.trailing,c=!1,s=null,l=null,f=!1,p=function(){null==l||l.unsubscribe(),l=null,u&&(b(),f&&t.complete())},d=function(){l=null,f&&t.complete()},v=function(e){return l=n.innerFrom(o(e)).subscribe(r.createOperatorSubscriber(t,p,d))},b=function(){if(c){c=!1;var e=s;s=null,t.next(e),!f&&v(e)}};e.subscribe(r.createOperatorSubscriber(t,(function(e){c=!0,s=e,(!l||l.closed)&&(a?b():v(e))}),(function(){f=!0,(!(u&&c&&l)||l.closed)&&t.complete()})))}))}}(UO);var zO={throttleTime:void 0},WO=fc,DO=UO,qO=Mp;zO.throttleTime=function(e,t,r){void 0===t&&(t=WO.asyncScheduler),void 0===r&&(r=DO.defaultThrottleConfig);var n=qO.timer(e,t);return DO.throttle((function(){return n}),r)};var VO={};VO.TimeInterval=VO.timeInterval=void 0;var $O=fc,YO=Wa,JO=$a;VO.timeInterval=function(e){return void 0===e&&(e=$O.asyncScheduler),YO.operate((function(t,r){var n=e.now();t.subscribe(JO.createOperatorSubscriber(r,(function(t){var o=e.now(),i=o-n;n=o,r.next(new HO(t,i))})))}))};var HO=function(e,t){this.value=e,this.interval=t};VO.TimeInterval=HO;var KO={timeoutWith:void 0},GO=fc,QO=Dl,XO=Wl;KO.timeoutWith=function(e,t,r){var n,o,i;if(r=null!=r?r:GO.async,QO.isValidDate(e)?n=e:"number"==typeof e&&(o=e),!t)throw new TypeError("No observable provided to switch to");if(i=function(){return t},null==n&&null==o)throw new TypeError("No timeout provided.");return XO.timeout({first:n,each:o,scheduler:r,with:i})};var ZO={timestamp:void 0},ew=Au,tw=Yl;ZO.timestamp=function(e){return void 0===e&&(e=ew.dateTimestampProvider),tw.map((function(t){return{value:t,timestamp:e.now()}}))};var rw={window:void 0},nw=pu,ow=Wa,iw=$a,aw=ga;rw.window=function(e){return ow.operate((function(t,r){var n=new nw.Subject;r.next(n.asObservable());var o=function(e){n.error(e),r.error(e)};return t.subscribe(iw.createOperatorSubscriber(r,(function(e){return null==n?void 0:n.next(e)}),(function(){n.complete(),r.complete()}),o)),e.subscribe(iw.createOperatorSubscriber(r,(function(){n.complete(),r.next(n=new nw.Subject)}),aw.noop,o)),function(){null==n||n.unsubscribe(),n=null}}))};var uw={},cw=n&&n.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};uw.windowCount=void 0;var sw=pu,lw=Wa,fw=$a;uw.windowCount=function(e,t){void 0===t&&(t=0);var r=t>0?t:e;return lw.operate((function(t,n){var o=[new sw.Subject],i=0;n.next(o[0].asObservable()),t.subscribe(fw.createOperatorSubscriber(n,(function(t){var a,u;try{for(var c=cw(o),s=c.next();!s.done;s=c.next()){s.value.next(t)}}catch(e){a={error:e}}finally{try{s&&!s.done&&(u=c.return)&&u.call(c)}finally{if(a)throw a.error}}var l=i-e+1;if(l>=0&&l%r==0&&o.shift().complete(),++i%r==0){var f=new sw.Subject;o.push(f),n.next(f.asObservable())}}),(function(){for(;o.length>0;)o.shift().complete();n.complete()}),(function(e){for(;o.length>0;)o.shift().error(e);n.error(e)}),(function(){o=null})))}))};var pw={windowTime:void 0},dw=pu,vw=fc,bw=ta,yw=Wa,hw=$a,mw=ia,gw=Rc,Ow=Fs;pw.windowTime=function(e){for(var t,r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i=null!==(t=gw.popScheduler(n))&&void 0!==t?t:vw.asyncScheduler,a=null!==(r=n[0])&&void 0!==r?r:null,u=n[1]||1/0;return yw.operate((function(t,r){var n=[],o=!1,c=function(e){var t=e.window,r=e.subs;t.complete(),r.unsubscribe(),mw.arrRemove(n,e),o&&s()},s=function(){if(n){var t=new bw.Subscription;r.add(t);var o=new dw.Subject,a={window:o,subs:t,seen:0};n.push(a),r.next(o.asObservable()),Ow.executeSchedule(t,i,(function(){return c(a)}),e)}};null!==a&&a>=0?Ow.executeSchedule(r,i,s,a,!0):o=!0,s();var l=function(e){return n.slice().forEach(e)},f=function(e){l((function(t){var r=t.window;return e(r)})),e(r),r.unsubscribe()};return t.subscribe(hw.createOperatorSubscriber(r,(function(e){l((function(t){t.window.next(e),u<=++t.seen&&c(t)}))}),(function(){return f((function(e){return e.complete()}))}),(function(e){return f((function(t){return t.error(e)}))}))),function(){n=null}}))};var ww={},Sw=n&&n.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};ww.windowToggle=void 0;var _w=pu,jw=ta,xw=Wa,Ew=$c,Pw=$a,Aw=ga,Tw=ia;ww.windowToggle=function(e,t){return xw.operate((function(r,n){var o=[],i=function(e){for(;0<o.length;)o.shift().error(e);n.error(e)};Ew.innerFrom(e).subscribe(Pw.createOperatorSubscriber(n,(function(e){var r=new _w.Subject;o.push(r);var a,u=new jw.Subscription;try{a=Ew.innerFrom(t(e))}catch(e){return void i(e)}n.next(r.asObservable()),u.add(a.subscribe(Pw.createOperatorSubscriber(n,(function(){Tw.arrRemove(o,r),r.complete(),u.unsubscribe()}),Aw.noop,i)))}),Aw.noop)),r.subscribe(Pw.createOperatorSubscriber(n,(function(e){var t,r,n=o.slice();try{for(var i=Sw(n),a=i.next();!a.done;a=i.next()){a.value.next(e)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}}),(function(){for(;0<o.length;)o.shift().complete();n.complete()}),i,(function(){for(;0<o.length;)o.shift().unsubscribe()})))}))};var Iw={windowWhen:void 0},kw=pu,Cw=Wa,Fw=$a,Nw=$c;Iw.windowWhen=function(e){return Cw.operate((function(t,r){var n,o,i=function(e){n.error(e),r.error(e)},a=function(){var t;null==o||o.unsubscribe(),null==n||n.complete(),n=new kw.Subject,r.next(n.asObservable());try{t=Nw.innerFrom(e())}catch(e){return void i(e)}t.subscribe(o=Fw.createOperatorSubscriber(r,a,a,i))};a(),t.subscribe(Fw.createOperatorSubscriber(r,(function(e){return n.next(e)}),(function(){n.complete(),r.complete()}),i,(function(){null==o||o.unsubscribe(),n=null})))}))};var Mw={},Rw=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Bw=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Mw.withLatestFrom=void 0;var Lw=Wa,Uw=$a,zw=$c,Ww=Pa,Dw=ga,qw=Rc;Mw.withLatestFrom=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=qw.popResultSelector(e);return Lw.operate((function(t,n){for(var o=e.length,i=new Array(o),a=e.map((function(){return!1})),u=!1,c=function(t){zw.innerFrom(e[t]).subscribe(Uw.createOperatorSubscriber(n,(function(e){i[t]=e,u||a[t]||(a[t]=!0,(u=a.every(Ww.identity))&&(a=null))}),Dw.noop))},s=0;s<o;s++)c(s);t.subscribe(Uw.createOperatorSubscriber(n,(function(e){if(u){var t=Bw([e],Rw(i));n.next(r?r.apply(void 0,Bw([],Rw(t))):t)}})))}))};var Vw={zipAll:void 0},$w=Cd,Yw=Fv;Vw.zipAll=function(e){return Yw.joinAllInternals($w.zip,e)};var Jw={},Hw={},Kw=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},Gw=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Hw.zip=void 0;var Qw=Cd,Xw=Wa;Hw.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Xw.operate((function(t,r){Qw.zip.apply(void 0,Gw([t],Kw(e))).subscribe(r)}))};var Zw=n&&n.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},eS=n&&n.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Jw.zipWith=void 0;var tS=Hw;Jw.zipWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return tS.zip.apply(void 0,eS([],Zw(e)))},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};e.interval=e.iif=e.generate=e.fromEventPattern=e.fromEvent=e.from=e.forkJoin=e.empty=e.defer=e.connectable=e.concat=e.combineLatest=e.bindNodeCallback=e.bindCallback=e.UnsubscriptionError=e.TimeoutError=e.SequenceError=e.ObjectUnsubscribedError=e.NotFoundError=e.EmptyError=e.ArgumentOutOfRangeError=e.firstValueFrom=e.lastValueFrom=e.isObservable=e.identity=e.noop=e.pipe=e.NotificationKind=e.Notification=e.Subscriber=e.Subscription=e.Scheduler=e.VirtualAction=e.VirtualTimeScheduler=e.animationFrameScheduler=e.animationFrame=e.queueScheduler=e.queue=e.asyncScheduler=e.async=e.asapScheduler=e.asap=e.AsyncSubject=e.ReplaySubject=e.BehaviorSubject=e.Subject=e.animationFrames=e.observable=e.ConnectableObservable=e.Observable=void 0,e.filter=e.expand=e.exhaustMap=e.exhaustAll=e.exhaust=e.every=e.endWith=e.elementAt=e.distinctUntilKeyChanged=e.distinctUntilChanged=e.distinct=e.dematerialize=e.delayWhen=e.delay=e.defaultIfEmpty=e.debounceTime=e.debounce=e.count=e.connect=e.concatWith=e.concatMapTo=e.concatMap=e.concatAll=e.combineLatestWith=e.combineLatestAll=e.combineAll=e.catchError=e.bufferWhen=e.bufferToggle=e.bufferTime=e.bufferCount=e.buffer=e.auditTime=e.audit=e.config=e.NEVER=e.EMPTY=e.scheduled=e.zip=e.using=e.timer=e.throwError=e.range=e.race=e.partition=e.pairs=e.onErrorResumeNext=e.of=e.never=e.merge=void 0,e.switchMapTo=e.switchMap=e.switchAll=e.subscribeOn=e.startWith=e.skipWhile=e.skipUntil=e.skipLast=e.skip=e.single=e.shareReplay=e.share=e.sequenceEqual=e.scan=e.sampleTime=e.sample=e.refCount=e.retryWhen=e.retry=e.repeatWhen=e.repeat=e.reduce=e.raceWith=e.publishReplay=e.publishLast=e.publishBehavior=e.publish=e.pluck=e.pairwise=e.observeOn=e.multicast=e.min=e.mergeWith=e.mergeScan=e.mergeMapTo=e.mergeMap=e.flatMap=e.mergeAll=e.max=e.materialize=e.mapTo=e.map=e.last=e.isEmpty=e.ignoreElements=e.groupBy=e.first=e.findIndex=e.find=e.finalize=void 0,e.zipWith=e.zipAll=e.withLatestFrom=e.windowWhen=e.windowToggle=e.windowTime=e.windowCount=e.window=e.toArray=e.timestamp=e.timeoutWith=e.timeout=e.timeInterval=e.throwIfEmpty=e.throttleTime=e.throttle=e.tap=e.takeWhile=e.takeUntil=e.takeLast=e.take=e.switchScan=void 0;var o=Xi;Object.defineProperty(e,"Observable",{enumerable:!0,get:function(){return o.Observable}});var i=Ua;Object.defineProperty(e,"ConnectableObservable",{enumerable:!0,get:function(){return i.ConnectableObservable}});var a=xa;Object.defineProperty(e,"observable",{enumerable:!0,get:function(){return a.observable}});var u=nu;Object.defineProperty(e,"animationFrames",{enumerable:!0,get:function(){return u.animationFrames}});var c=pu;Object.defineProperty(e,"Subject",{enumerable:!0,get:function(){return c.Subject}});var s=ju;Object.defineProperty(e,"BehaviorSubject",{enumerable:!0,get:function(){return s.BehaviorSubject}});var l=Pu;Object.defineProperty(e,"ReplaySubject",{enumerable:!0,get:function(){return l.ReplaySubject}});var f=Cu;Object.defineProperty(e,"AsyncSubject",{enumerable:!0,get:function(){return f.AsyncSubject}});var p=Mu;Object.defineProperty(e,"asap",{enumerable:!0,get:function(){return p.asap}}),Object.defineProperty(e,"asapScheduler",{enumerable:!0,get:function(){return p.asapScheduler}});var d=fc;Object.defineProperty(e,"async",{enumerable:!0,get:function(){return d.async}}),Object.defineProperty(e,"asyncScheduler",{enumerable:!0,get:function(){return d.asyncScheduler}});var v=pc;Object.defineProperty(e,"queue",{enumerable:!0,get:function(){return v.queue}}),Object.defineProperty(e,"queueScheduler",{enumerable:!0,get:function(){return v.queueScheduler}});var b=gc;Object.defineProperty(e,"animationFrame",{enumerable:!0,get:function(){return b.animationFrame}}),Object.defineProperty(e,"animationFrameScheduler",{enumerable:!0,get:function(){return b.animationFrameScheduler}});var y=Pc;Object.defineProperty(e,"VirtualTimeScheduler",{enumerable:!0,get:function(){return y.VirtualTimeScheduler}}),Object.defineProperty(e,"VirtualAction",{enumerable:!0,get:function(){return y.VirtualAction}});var h=nc;Object.defineProperty(e,"Scheduler",{enumerable:!0,get:function(){return h.Scheduler}});var m=ta;Object.defineProperty(e,"Subscription",{enumerable:!0,get:function(){return m.Subscription}});var g=Zi;Object.defineProperty(e,"Subscriber",{enumerable:!0,get:function(){return g.Subscriber}});var O=Fc;Object.defineProperty(e,"Notification",{enumerable:!0,get:function(){return O.Notification}}),Object.defineProperty(e,"NotificationKind",{enumerable:!0,get:function(){return O.NotificationKind}});var w=Ea;Object.defineProperty(e,"pipe",{enumerable:!0,get:function(){return w.pipe}});var S=ga;Object.defineProperty(e,"noop",{enumerable:!0,get:function(){return S.noop}});var _=Pa;Object.defineProperty(e,"identity",{enumerable:!0,get:function(){return _.identity}});var j=xl;Object.defineProperty(e,"isObservable",{enumerable:!0,get:function(){return j.isObservable}});var x=Al;Object.defineProperty(e,"lastValueFrom",{enumerable:!0,get:function(){return x.lastValueFrom}});var E=Cl;Object.defineProperty(e,"firstValueFrom",{enumerable:!0,get:function(){return E.firstValueFrom}});var P=Ml;Object.defineProperty(e,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return P.ArgumentOutOfRangeError}});var A=Tl;Object.defineProperty(e,"EmptyError",{enumerable:!0,get:function(){return A.EmptyError}});var T=Bl;Object.defineProperty(e,"NotFoundError",{enumerable:!0,get:function(){return T.NotFoundError}});var I=du;Object.defineProperty(e,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return I.ObjectUnsubscribedError}});var k=Ul;Object.defineProperty(e,"SequenceError",{enumerable:!0,get:function(){return k.SequenceError}});var C=Wl;Object.defineProperty(e,"TimeoutError",{enumerable:!0,get:function(){return C.TimeoutError}});var F=ra;Object.defineProperty(e,"UnsubscriptionError",{enumerable:!0,get:function(){return F.UnsubscriptionError}});var N=ql;Object.defineProperty(e,"bindCallback",{enumerable:!0,get:function(){return N.bindCallback}});var M=sf;Object.defineProperty(e,"bindNodeCallback",{enumerable:!0,get:function(){return M.bindNodeCallback}});var R=ff;Object.defineProperty(e,"combineLatest",{enumerable:!0,get:function(){return R.combineLatest}});var B=Tf;Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return B.concat}});var L=Hf;Object.defineProperty(e,"connectable",{enumerable:!0,get:function(){return L.connectable}});var U=Kf;Object.defineProperty(e,"defer",{enumerable:!0,get:function(){return U.defer}});var z=Nc;Object.defineProperty(e,"empty",{enumerable:!0,get:function(){return z.empty}});var W=rp;Object.defineProperty(e,"forkJoin",{enumerable:!0,get:function(){return W.forkJoin}});var D=Dc;Object.defineProperty(e,"from",{enumerable:!0,get:function(){return D.from}});var q=lp;Object.defineProperty(e,"fromEvent",{enumerable:!0,get:function(){return q.fromEvent}});var V=Sp;Object.defineProperty(e,"fromEventPattern",{enumerable:!0,get:function(){return V.fromEventPattern}});var $=Ep;Object.defineProperty(e,"generate",{enumerable:!0,get:function(){return $.generate}});var Y=Cp;Object.defineProperty(e,"iif",{enumerable:!0,get:function(){return Y.iif}});var J=Np;Object.defineProperty(e,"interval",{enumerable:!0,get:function(){return J.interval}});var H=Dp;Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return H.merge}});var K=Hp;Object.defineProperty(e,"never",{enumerable:!0,get:function(){return K.never}});var G=Mc;Object.defineProperty(e,"of",{enumerable:!0,get:function(){return G.of}});var Q=Kp;Object.defineProperty(e,"onErrorResumeNext",{enumerable:!0,get:function(){return Q.onErrorResumeNext}});var X=sd;Object.defineProperty(e,"pairs",{enumerable:!0,get:function(){return X.pairs}});var Z=fd;Object.defineProperty(e,"partition",{enumerable:!0,get:function(){return Z.partition}});var ee=gd;Object.defineProperty(e,"race",{enumerable:!0,get:function(){return ee.race}});var te=xd;Object.defineProperty(e,"range",{enumerable:!0,get:function(){return te.range}});var re=Sl;Object.defineProperty(e,"throwError",{enumerable:!0,get:function(){return re.throwError}});var ne=Mp;Object.defineProperty(e,"timer",{enumerable:!0,get:function(){return ne.timer}});var oe=Ad;Object.defineProperty(e,"using",{enumerable:!0,get:function(){return oe.using}});var ie=Cd;Object.defineProperty(e,"zip",{enumerable:!0,get:function(){return ie.zip}});var ae=qc;Object.defineProperty(e,"scheduled",{enumerable:!0,get:function(){return ae.scheduled}});var ue=Nc;Object.defineProperty(e,"EMPTY",{enumerable:!0,get:function(){return ue.EMPTY}});var ce=Hp;Object.defineProperty(e,"NEVER",{enumerable:!0,get:function(){return ce.NEVER}}),r(Wd,e);var se=va;Object.defineProperty(e,"config",{enumerable:!0,get:function(){return se.config}});var le=Dd;Object.defineProperty(e,"audit",{enumerable:!0,get:function(){return le.audit}});var fe=Yd;Object.defineProperty(e,"auditTime",{enumerable:!0,get:function(){return fe.auditTime}});var pe=Gd;Object.defineProperty(e,"buffer",{enumerable:!0,get:function(){return pe.buffer}});var de=ev;Object.defineProperty(e,"bufferCount",{enumerable:!0,get:function(){return de.bufferCount}});var ve=iv;Object.defineProperty(e,"bufferTime",{enumerable:!0,get:function(){return ve.bufferTime}});var be=vv;Object.defineProperty(e,"bufferToggle",{enumerable:!0,get:function(){return be.bufferToggle}});var ye=Sv;Object.defineProperty(e,"bufferWhen",{enumerable:!0,get:function(){return ye.bufferWhen}});var he=Pv;Object.defineProperty(e,"catchError",{enumerable:!0,get:function(){return he.catchError}});var me=kv;Object.defineProperty(e,"combineAll",{enumerable:!0,get:function(){return me.combineAll}});var ge=Cv;Object.defineProperty(e,"combineLatestAll",{enumerable:!0,get:function(){return ge.combineLatestAll}});var Oe=Qv;Object.defineProperty(e,"combineLatestWith",{enumerable:!0,get:function(){return Oe.combineLatestWith}});var we=If;Object.defineProperty(e,"concatAll",{enumerable:!0,get:function(){return we.concatAll}});var Se=lb;Object.defineProperty(e,"concatMap",{enumerable:!0,get:function(){return Se.concatMap}});var _e=db;Object.defineProperty(e,"concatMapTo",{enumerable:!0,get:function(){return _e.concatMapTo}});var je=yb;Object.defineProperty(e,"concatWith",{enumerable:!0,get:function(){return je.concatWith}});var xe=Pb;Object.defineProperty(e,"connect",{enumerable:!0,get:function(){return xe.connect}});var Ee=Mb;Object.defineProperty(e,"count",{enumerable:!0,get:function(){return Ee.count}});var Pe=Bb;Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return Pe.debounce}});var Ae=Db;Object.defineProperty(e,"debounceTime",{enumerable:!0,get:function(){return Ae.debounceTime}});var Te=Yb;Object.defineProperty(e,"defaultIfEmpty",{enumerable:!0,get:function(){return Te.defaultIfEmpty}});var Ie=Kb;Object.defineProperty(e,"delay",{enumerable:!0,get:function(){return Ie.delay}});var ke=Gb;Object.defineProperty(e,"delayWhen",{enumerable:!0,get:function(){return ke.delayWhen}});var Ce=by;Object.defineProperty(e,"dematerialize",{enumerable:!0,get:function(){return Ce.dematerialize}});var Fe=gy;Object.defineProperty(e,"distinct",{enumerable:!0,get:function(){return Fe.distinct}});var Ne=_y;Object.defineProperty(e,"distinctUntilChanged",{enumerable:!0,get:function(){return Ne.distinctUntilChanged}});var Me=Ay;Object.defineProperty(e,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return Me.distinctUntilKeyChanged}});var Re=Iy;Object.defineProperty(e,"elementAt",{enumerable:!0,get:function(){return Re.elementAt}});var Be=Wy;Object.defineProperty(e,"endWith",{enumerable:!0,get:function(){return Be.endWith}});var Le=Yy;Object.defineProperty(e,"every",{enumerable:!0,get:function(){return Le.every}});var Ue=Ky;Object.defineProperty(e,"exhaust",{enumerable:!0,get:function(){return Ue.exhaust}});var ze=Gy;Object.defineProperty(e,"exhaustAll",{enumerable:!0,get:function(){return ze.exhaustAll}});var We=th;Object.defineProperty(e,"exhaustMap",{enumerable:!0,get:function(){return We.exhaustMap}});var De=ah;Object.defineProperty(e,"expand",{enumerable:!0,get:function(){return De.expand}});var qe=dd;Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return qe.filter}});var Ve=sh;Object.defineProperty(e,"finalize",{enumerable:!0,get:function(){return Ve.finalize}});var $e=fh;Object.defineProperty(e,"find",{enumerable:!0,get:function(){return $e.find}});var Ye=bh;Object.defineProperty(e,"findIndex",{enumerable:!0,get:function(){return Ye.findIndex}});var Je=mh;Object.defineProperty(e,"first",{enumerable:!0,get:function(){return Je.first}});var He=xh;Object.defineProperty(e,"groupBy",{enumerable:!0,get:function(){return He.groupBy}});var Ke=ty;Object.defineProperty(e,"ignoreElements",{enumerable:!0,get:function(){return Ke.ignoreElements}});var Ge=kh;Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return Ge.isEmpty}});var Qe=Nh;Object.defineProperty(e,"last",{enumerable:!0,get:function(){return Qe.last}});var Xe=Yl;Object.defineProperty(e,"map",{enumerable:!0,get:function(){return Xe.map}});var Ze=iy;Object.defineProperty(e,"mapTo",{enumerable:!0,get:function(){return Ze.mapTo}});var et=Yh;Object.defineProperty(e,"materialize",{enumerable:!0,get:function(){return et.materialize}});var tt=Gh;Object.defineProperty(e,"max",{enumerable:!0,get:function(){return tt.max}});var rt=kf;Object.defineProperty(e,"mergeAll",{enumerable:!0,get:function(){return rt.mergeAll}});var nt=Zh;Object.defineProperty(e,"flatMap",{enumerable:!0,get:function(){return nt.flatMap}});var ot=Cf;Object.defineProperty(e,"mergeMap",{enumerable:!0,get:function(){return ot.mergeMap}});var it=tm;Object.defineProperty(e,"mergeMapTo",{enumerable:!0,get:function(){return it.mergeMapTo}});var at=om;Object.defineProperty(e,"mergeScan",{enumerable:!0,get:function(){return at.mergeScan}});var ut=um;Object.defineProperty(e,"mergeWith",{enumerable:!0,get:function(){return ut.mergeWith}});var ct=gm;Object.defineProperty(e,"min",{enumerable:!0,get:function(){return ct.min}});var st=Sm;Object.defineProperty(e,"multicast",{enumerable:!0,get:function(){return st.multicast}});var lt=Cs;Object.defineProperty(e,"observeOn",{enumerable:!0,get:function(){return lt.observeOn}});var ft=Em;Object.defineProperty(e,"pairwise",{enumerable:!0,get:function(){return ft.pairwise}});var pt=Tm;Object.defineProperty(e,"pluck",{enumerable:!0,get:function(){return pt.pluck}});var dt=km;Object.defineProperty(e,"publish",{enumerable:!0,get:function(){return dt.publish}});var vt=Mm;Object.defineProperty(e,"publishBehavior",{enumerable:!0,get:function(){return vt.publishBehavior}});var bt=Lm;Object.defineProperty(e,"publishLast",{enumerable:!0,get:function(){return bt.publishLast}});var yt=Wm;Object.defineProperty(e,"publishReplay",{enumerable:!0,get:function(){return yt.publishReplay}});var ht=$m;Object.defineProperty(e,"raceWith",{enumerable:!0,get:function(){return ht.raceWith}});var mt=Mv;Object.defineProperty(e,"reduce",{enumerable:!0,get:function(){return mt.reduce}});var gt=Qm;Object.defineProperty(e,"repeat",{enumerable:!0,get:function(){return gt.repeat}});var Ot=ng;Object.defineProperty(e,"repeatWhen",{enumerable:!0,get:function(){return Ot.repeatWhen}});var wt=ug;Object.defineProperty(e,"retry",{enumerable:!0,get:function(){return wt.retry}});var St=dg;Object.defineProperty(e,"retryWhen",{enumerable:!0,get:function(){return St.retryWhen}});var _t=za;Object.defineProperty(e,"refCount",{enumerable:!0,get:function(){return _t.refCount}});var jt=hg;Object.defineProperty(e,"sample",{enumerable:!0,get:function(){return jt.sample}});var xt=wg;Object.defineProperty(e,"sampleTime",{enumerable:!0,get:function(){return xt.sampleTime}});var Et=xg;Object.defineProperty(e,"scan",{enumerable:!0,get:function(){return Et.scan}});var Pt=Ag;Object.defineProperty(e,"sequenceEqual",{enumerable:!0,get:function(){return Pt.sequenceEqual}});var At=kg;Object.defineProperty(e,"share",{enumerable:!0,get:function(){return At.share}});var Tt=zg;Object.defineProperty(e,"shareReplay",{enumerable:!0,get:function(){return Tt.shareReplay}});var It=qg;Object.defineProperty(e,"single",{enumerable:!0,get:function(){return It.single}});var kt=Kg;Object.defineProperty(e,"skip",{enumerable:!0,get:function(){return kt.skip}});var Ct=Qg;Object.defineProperty(e,"skipLast",{enumerable:!0,get:function(){return Ct.skipLast}});var Ft=tO;Object.defineProperty(e,"skipUntil",{enumerable:!0,get:function(){return Ft.skipUntil}});var Nt=aO;Object.defineProperty(e,"skipWhile",{enumerable:!0,get:function(){return Nt.skipWhile}});var Mt=sO;Object.defineProperty(e,"startWith",{enumerable:!0,get:function(){return Mt.startWith}});var Rt=Bs;Object.defineProperty(e,"subscribeOn",{enumerable:!0,get:function(){return Rt.subscribeOn}});var Bt=dO;Object.defineProperty(e,"switchAll",{enumerable:!0,get:function(){return Bt.switchAll}});var Lt=vO;Object.defineProperty(e,"switchMap",{enumerable:!0,get:function(){return Lt.switchMap}});var Ut=OO;Object.defineProperty(e,"switchMapTo",{enumerable:!0,get:function(){return Ut.switchMapTo}});var zt=_O;Object.defineProperty(e,"switchScan",{enumerable:!0,get:function(){return zt.switchScan}});var Wt=Qb;Object.defineProperty(e,"take",{enumerable:!0,get:function(){return Wt.take}});var Dt=Mh;Object.defineProperty(e,"takeLast",{enumerable:!0,get:function(){return Dt.takeLast}});var qt=EO;Object.defineProperty(e,"takeUntil",{enumerable:!0,get:function(){return qt.takeUntil}});var Vt=kO;Object.defineProperty(e,"takeWhile",{enumerable:!0,get:function(){return Vt.takeWhile}});var $t=NO;Object.defineProperty(e,"tap",{enumerable:!0,get:function(){return $t.tap}});var Yt=UO;Object.defineProperty(e,"throttle",{enumerable:!0,get:function(){return Yt.throttle}});var Jt=zO;Object.defineProperty(e,"throttleTime",{enumerable:!0,get:function(){return Jt.throttleTime}});var Ht=ky;Object.defineProperty(e,"throwIfEmpty",{enumerable:!0,get:function(){return Ht.throwIfEmpty}});var Kt=VO;Object.defineProperty(e,"timeInterval",{enumerable:!0,get:function(){return Kt.timeInterval}});var Gt=Wl;Object.defineProperty(e,"timeout",{enumerable:!0,get:function(){return Gt.timeout}});var Qt=KO;Object.defineProperty(e,"timeoutWith",{enumerable:!0,get:function(){return Qt.timeoutWith}});var Xt=ZO;Object.defineProperty(e,"timestamp",{enumerable:!0,get:function(){return Xt.timestamp}});var Zt=Nv;Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){return Zt.toArray}});var er=rw;Object.defineProperty(e,"window",{enumerable:!0,get:function(){return er.window}});var tr=uw;Object.defineProperty(e,"windowCount",{enumerable:!0,get:function(){return tr.windowCount}});var rr=pw;Object.defineProperty(e,"windowTime",{enumerable:!0,get:function(){return rr.windowTime}});var nr=ww;Object.defineProperty(e,"windowToggle",{enumerable:!0,get:function(){return nr.windowToggle}});var or=Iw;Object.defineProperty(e,"windowWhen",{enumerable:!0,get:function(){return or.windowWhen}});var ir=Mw;Object.defineProperty(e,"withLatestFrom",{enumerable:!0,get:function(){return ir.withLatestFrom}});var ar=Vw;Object.defineProperty(e,"zipAll",{enumerable:!0,get:function(){return ar.zipAll}});var ur=Jw;Object.defineProperty(e,"zipWith",{enumerable:!0,get:function(){return ur.zipWith}})}(Qi);var rS={},nS={};function oS(e){return Array.isArray(e)}nS.isntEmptyArray=nS.isEmptyArray=nS.isntArray=nS.isArray=void 0,nS.isArray=oS,nS.isntArray=function(e){return!oS(e)},nS.isEmptyArray=function(e){return 0===e.length},nS.isntEmptyArray=function(e){return 0!==e.length};var iS={},aS={};function uS(e){return null===e}aS.isntNull=aS.isNull=void 0,aS.isNull=uS,aS.isntNull=function(e){return!uS(e)};var cS={};function sS(e){return void 0===e}cS.isntUndefined=cS.isUndefined=void 0,cS.isUndefined=sS,cS.isntUndefined=function(e){return!sS(e)};var lS={};function fS(e){return"function"==typeof e}lS.isntFunction=lS.isFunction=void 0,lS.isFunction=fS,lS.isntFunction=function(e){return!fS(e)},iS.isntAsyncIterable=iS.isAsyncIterable=void 0;const pS=aS,dS=cS,vS=lS;function bS(e){return(0,pS.isntNull)(e)&&(0,dS.isntUndefined)(e)&&(0,vS.isFunction)(e[Symbol.asyncIterator])}iS.isAsyncIterable=bS,iS.isntAsyncIterable=function(e){return!bS(e)};var yS={};function hS(e){return"bigint"==typeof e}yS.isntBigInt=yS.isBigInt=void 0,yS.isBigInt=hS,yS.isntBigInt=function(e){return!hS(e)};var mS={};function gS(e){return"boolean"==typeof e}mS.isntBoolean=mS.isBoolean=void 0,mS.isBoolean=gS,mS.isntBoolean=function(e){return!gS(e)};var OS={},wS={};function SS(e){return"string"==typeof e}wS.isntString=wS.isString=void 0,wS.isString=SS,wS.isntString=function(e){return!SS(e)},OS.isntChar=OS.isChar=void 0;const _S=wS;function jS(e){return(0,_S.isString)(e)&&1===e.length}OS.isChar=jS,OS.isntChar=function(e){return!jS(e)};var xS={};function ES(e){return e instanceof Date}xS.isntDate=xS.isDate=void 0,xS.isDate=ES,xS.isntDate=function(e){return!ES(e)};var PS={};PS.inEnum=void 0,PS.inEnum=function(e,t){return Object.values(t).includes(e)};var AS={};function TS(e){return e instanceof Error}AS.isntError=AS.isError=void 0,AS.isError=TS,AS.isntError=function(e){return!TS(e)};var IS={};function kS(e){return!e}IS.isntFalsy=IS.isFalsy=void 0,IS.isFalsy=kS,IS.isntFalsy=function(e){return!kS(e)};var CS={};CS.isntIterable=CS.isIterable=void 0;const FS=aS,NS=cS,MS=lS;function RS(e){return(0,FS.isntNull)(e)&&(0,NS.isntUndefined)(e)&&(0,MS.isFunction)(e[Symbol.iterator])}CS.isIterable=RS,CS.isntIterable=function(e){return!RS(e)};var BS={},LS={};function US(e){return"number"==typeof e}function zS(e){return Number.isNaN(e)}LS.isntNaN=LS.isNaN=LS.isNegativeInfinity=LS.isPositiveInfinity=LS.isFinite=LS.isntNumber=LS.isNumber=void 0,LS.isNumber=US,LS.isntNumber=function(e){return!US(e)},LS.isFinite=function(e){return Number.isFinite(e)},LS.isPositiveInfinity=function(e){return e===1/0},LS.isNegativeInfinity=function(e){return e===-1/0},LS.isNaN=zS,LS.isntNaN=function(e){return!zS(e)};var WS={},DS=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};WS.isntEmptyObject=WS.isEmptyObject=WS.isntPlainObject=WS.isPlainObject=WS.isntObject=WS.isObject=void 0;const qS=DS(Ae);function VS(e){return null!==e&&"object"==typeof e}function $S(e){return(0,qS.default)(e)}WS.isObject=VS,WS.isntObject=function(e){return!VS(e)},WS.isPlainObject=$S,WS.isntPlainObject=function(e){return!$S(e)},WS.isEmptyObject=function(e){return 0===Object.keys(e).length},WS.isntEmptyObject=function(e){return 0!==Object.keys(e).length},BS.isntJsonable=BS.isJsonable=BS.isntJson=BS.isJson=void 0;const YS=aS,JS=mS,HS=wS,KS=LS,GS=nS,QS=WS;function XS(e){return(0,YS.isNull)(e)||(0,JS.isBoolean)(e)||(0,HS.isString)(e)||(0,KS.isNumber)(e)||(0,GS.isArray)(e)&&e.every(XS)||(0,QS.isPlainObject)(e)&&Object.values(e).every(XS)}BS.isJson=XS,BS.isntJson=function(e){return!XS(e)},BS.isJsonable=function(e){try{return JSON.stringify(e),!0}catch(e){return!1}},BS.isntJsonable=function e(t){return!e()};var ZS={};ZS.isPromiseLike=ZS.isntPromiseLike=ZS.isntPromise=ZS.isPromise=void 0;const e_=WS,t_=lS;function r_(e){return e instanceof Promise}function n_(e){return(0,e_.isObject)(e)&&(0,t_.isFunction)(e.then)}ZS.isPromise=r_,ZS.isntPromise=function(e){return!r_(e)},ZS.isntPromiseLike=function(e){return!n_(e)},ZS.isPromiseLike=n_;var o_={};function i_(e,t){const r=ri(),n=o.exports.useMemo((()=>new ni.ObservableFiniteStateMachine(e,t)),[e]);return o.exports.useEffect((()=>{const e=n.observeStateChanges().subscribe((()=>r()));return()=>e.unsubscribe()}),[n]),n}o_.isAbsoluteURL=void 0,o_.isAbsoluteURL=function(e){try{return new URL(e),!0}catch(e){return!1}},function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(nS,e),r(iS,e),r(yS,e),r(mS,e),r(OS,e),r(xS,e),r(PS,e),r(AS,e),r(IS,e),r(lS,e),r(CS,e),r(BS,e),r(aS,e),r(LS,e),r(WS,e),r(ZS,e),r(wS,e),r(cS,e),r(o_,e)}(rS),function(e){e.BadEventError=e.ObservableFiniteStateMachine=void 0;const t=Ji,r=Qi,n=rS;class o extends t.FiniteStateMachine{constructor(){super(...arguments),this.stateChanges=new r.Subject}observeStateChanges(){return this.stateChanges}send(e){const t=this.state;super.send(e);const r=this.state;this.stateChanges.next({event:e,oldState:t,newState:r}),(0,n.isEmptyObject)(this.schema[r])&&this.stateChanges.complete()}}e.ObservableFiniteStateMachine=o;var i=Ji;Object.defineProperty(e,"BadEventError",{enumerable:!0,get:function(){return i.BadEventError}})}(Gi),function(e){var t=n&&n.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=n&&n.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(oi,e),r(ii,e),r(ai,e),r(ci,e),r(li,e),r(pi,e),r(vi,e),r(mi,e),r(Li,e),r(qi,e),r(Ji,e),r(Gi,e)}(ni);var a_=ni.ObservableFiniteStateMachine;export{a_ as ObservableFiniteStateMachine,i_ as useFiniteStateMachine,ri as useForceUpdate,d as useIncrement,y as useIsFirstRender,b as useIsMounted,v as useMount,Qo as useMultipleSelection,h as useRenderCounter,ei as useResizeObserver,Ko as useSingleSelection,Xo as useStateCycle,ti as useStep,Zo as useToggle,m as useUpdateEffect};
|
|
18
18
|
//# sourceMappingURL=index.min.mjs.map
|