@webex/cc-task 1.28.0-ccwidgets.21 → 1.28.0-ccwidgets.23

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see index.js.LICENSE.txt */
2
- (()=>{"use strict";var e={178:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(63),i=n.n(r),o=n(248),a=n.n(o)()(i());a.push([e.id,".box{background-color:#fff;border-radius:8px;box-shadow:0 2px 4px rgba(0,0,0,.1);padding:20px;max-width:800px;margin:0 auto}.section-box{padding:10px;border:1px solid #ddd;border-radius:8px}.fieldset{border:1px solid #ccc;border-radius:5px;padding:10px;margin-bottom:20px}.legend-box{font-weight:bold;color:#0052bf}.btn{padding:10px 20px;background-color:#0052bf;color:#fff;border:none;border-radius:4px;cursor:pointer;transition:background-color .3s;margin-right:8px}.btn:disabled{background-color:gray;cursor:not-allowed}.select{width:100%;padding:8px;margin-top:8px;margin-bottom:12px;border:1px solid #ccc;border-radius:4px}.input{width:97%;padding:8px;margin-top:8px;margin-bottom:12px;border:1px solid #ccc;border-radius:4px}",""]);const s=a},248:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var u=this[s][0];null!=u&&(a[u]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);r&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),i&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=i):c[4]="".concat(i)),t.push(c))}},t}},63:e=>{e.exports=function(e){return e[1]}},62:(e,t,n)=>{function r(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("number"==typeof e?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}n.r(t),n.d(t,{Observer:()=>Dr,_observerFinalizationRegistry:()=>wr,clearTimers:()=>Nr,enableStaticRendering:()=>gr,isObserverBatched:()=>pr,isUsingStaticRendering:()=>mr,observer:()=>Cr,observerBatching:()=>vr,useAsObservableSource:()=>Br,useLocalObservable:()=>Vr,useLocalStore:()=>Lr,useObserver:()=>Ir,useStaticRendering:()=>Ur});var i={};function o(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:i}var a=Object.assign,s=Object.getOwnPropertyDescriptor,u=Object.defineProperty,l=Object.prototype,c=[];Object.freeze(c);var d={};Object.freeze(d);var f="undefined"!=typeof Proxy,h=Object.toString();function v(){f||r("Proxy not available")}function p(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var _=function(){};function b(e){return"function"==typeof e}function g(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function m(e){return null!==e&&"object"==typeof e}function y(e){if(!m(e))return!1;var t=Object.getPrototypeOf(e);if(null==t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n.toString()===h}function O(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function x(e,t,n){u(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function w(e,t,n){u(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function S(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return m(e)&&!0===e[n]}}function k(e){return null!=e&&"[object Map]"===Object.prototype.toString.call(e)}function A(e){return null!=e&&"[object Set]"===Object.prototype.toString.call(e)}var j=void 0!==Object.getOwnPropertySymbols,E="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:j?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function T(e){return null===e?null:"object"==typeof e?""+e:e}function P(e,t){return l.hasOwnProperty.call(e,t)}var C=Object.getOwnPropertyDescriptors||function(e){var t={};return E(e).forEach((function(n){t[n]=s(e,n)})),t};function R(e,t){return!!(e&t)}function M(e,t,n){return n?e|=t:e&=~t,e}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function V(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,K(r.key),r)}}function B(e,t,n){return t&&V(e.prototype,t),n&&V(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function L(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return D(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function N(){return N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N.apply(null,arguments)}function I(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,U(e,t)}function U(e,t){return U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},U(e,t)}function K(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var W=Symbol("mobx-stored-annotations");function z(e){return Object.assign((function(t,n){if(G(n))return e.decorate_20223_(t,n);q(t,n,e)}),e)}function q(e,t,n){P(e,W)||x(e,W,N({},e[W])),function(e){return e.annotationType_===Z}(n)||(e[W][t]=n)}function G(e){return"object"==typeof e&&"string"==typeof e.kind}var H=Symbol("mobx administration"),$=function(){function e(e){void 0===e&&(e="Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=Ye.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.reportObserved=function(){return mt(this)},t.reportChanged=function(){bt(),yt(this),gt()},t.toString=function(){return this.name_},B(e,[{key:"isBeingObserved",get:function(){return R(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=M(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return R(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=M(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return R(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=M(this.flags_,e.diffValueMask_,1===t)}}])}();$.isBeingObservedMask_=1,$.isPendingUnobservationMask_=2,$.diffValueMask_=4;var F=S("Atom",$);function X(e,t,n){void 0===t&&(t=_),void 0===n&&(n=_);var r=new $(e);return t!==_&&Kt(Nt,r,t,undefined),n!==_&&Ut(r,n),r}var Y={identity:function(e,t){return e===t},structural:function(e,t){return ir(e,t)},default:function(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e==1/t:e!=e&&t!=t},shallow:function(e,t){return ir(e,t,1)}};function J(e,t,n){return en(e)?e:Array.isArray(e)?Ve.array(e,{name:n}):y(e)?Ve.object(e,void 0,{name:n}):k(e)?Ve.map(e,{name:n}):A(e)?Ve.set(e,{name:n}):"function"!=typeof e||Bt(e)||Zt(e)?e:O(e)?Jt(e):Vt(n,e)}function Q(e){return e}var Z="override";function ee(e,t){return{annotationType_:e,options_:t,make_:te,extend_:ne,decorate_20223_:re}}function te(e,t,n,r){var i;if(null!=(i=this.options_)&&i.bound)return null===this.extend_(e,t,n,!1)?0:1;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(Bt(n.value))return 1;var o=ie(e,this,t,n,!1);return u(r,t,o),2}function ne(e,t,n,r){var i=ie(e,this,t,n);return e.defineProperty_(t,i,r)}function re(e,t){var n,i=t.kind,o=t.name,a=t.addInitializer,s=this,u=function(e){var t,n,r,i;return qe(null!=(t=null==(n=s.options_)?void 0:n.name)?t:o.toString(),e,null!=(r=null==(i=s.options_)?void 0:i.autoAction)&&r)};return"field"==i?function(e){var t,n=e;return Bt(n)||(n=u(n)),null!=(t=s.options_)&&t.bound&&((n=n.bind(this)).isMobxAction=!0),n}:"method"==i?(Bt(e)||(e=u(e)),null!=(n=this.options_)&&n.bound&&a((function(){var e=this,t=e[o].bind(e);t.isMobxAction=!0,e[o]=t})),e):void r("Cannot apply '"+s.annotationType_+"' to '"+String(o)+"' (kind: "+i+"):\n'"+s.annotationType_+"' can only be used on properties with a function value.")}function ie(e,t,n,r,i){var o,a,s,u,l,c,d,f;void 0===i&&(i=ht.safeDescriptors),f=r,t.annotationType_,f.value;var h,v=r.value;return null!=(o=t.options_)&&o.bound&&(v=v.bind(null!=(h=e.proxy_)?h:e.target_)),{value:qe(null!=(a=null==(s=t.options_)?void 0:s.name)?a:n.toString(),v,null!=(u=null==(l=t.options_)?void 0:l.autoAction)&&u,null!=(c=t.options_)&&c.bound?null!=(d=e.proxy_)?d:e.target_:void 0),configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function oe(e,t){return{annotationType_:e,options_:t,make_:ae,extend_:se,decorate_20223_:ue}}function ae(e,t,n,r){var i;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(null!=(i=this.options_)&&i.bound&&(!P(e.target_,t)||!Zt(e.target_[t]))&&null===this.extend_(e,t,n,!1))return 0;if(Zt(n.value))return 1;var o=le(e,this,0,n,!1,!1);return u(r,t,o),2}function se(e,t,n,r){var i,o=le(e,this,0,n,null==(i=this.options_)?void 0:i.bound);return e.defineProperty_(t,o,r)}function ue(e,t){var n,r=t.name,i=t.addInitializer;return Zt(e)||(e=Jt(e)),null!=(n=this.options_)&&n.bound&&i((function(){var e=this,t=e[r].bind(e);t.isMobXFlow=!0,e[r]=t})),e}function le(e,t,n,r,i,o){var a;void 0===o&&(o=ht.safeDescriptors),a=r,t.annotationType_,a.value;var s,u=r.value;return Zt(u)||(u=Jt(u)),i&&((u=u.bind(null!=(s=e.proxy_)?s:e.target_)).isMobXFlow=!0),{value:u,configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function ce(e,t){return{annotationType_:e,options_:t,make_:de,extend_:fe,decorate_20223_:he}}function de(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function fe(e,t,n,r){return i=n,this.annotationType_,i.get,e.defineComputedProperty_(t,N({},this.options_,{get:n.get,set:n.set}),r);var i}function he(e,t){var n=this,r=t.name;return(0,t.addInitializer)((function(){var t=Bn(this)[H],i=N({},n.options_,{get:e,context:this});i.name||(i.name="ObservableObject."+r.toString()),t.values_.set(r,new Xe(i))})),function(){return this[H].getObservablePropValue_(r)}}function ve(e,t){return{annotationType_:e,options_:t,make_:pe,extend_:_e,decorate_20223_:be}}function pe(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function _e(e,t,n,r){var i,o;return this.annotationType_,e.defineObservableProperty_(t,n.value,null!=(i=null==(o=this.options_)?void 0:o.enhancer)?i:J,r)}function be(e,t){var n=this,r=t.kind,i=t.name,o=new WeakSet;function a(e,t){var r,a,s=Bn(e)[H],u=new Fe(t,null!=(r=null==(a=n.options_)?void 0:a.enhancer)?r:J,"ObservableObject."+i.toString(),!1);s.values_.set(i,u),o.add(e)}if("accessor"==r)return{get:function(){return o.has(this)||a(this,e.get.call(this)),this[H].getObservablePropValue_(i)},set:function(e){return o.has(this)||a(this,e),this[H].setObservablePropValue_(i,e)},init:function(e){return o.has(this)||a(this,e),e}}}var ge="true",me=ye();function ye(e){return{annotationType_:ge,options_:e,make_:Oe,extend_:xe,decorate_20223_:we}}function Oe(e,t,n,r){var i,o,a,s;if(n.get)return Ie.make_(e,t,n,r);if(n.set){var l=qe(t.toString(),n.set);return r===e.target_?null===e.defineProperty_(t,{configurable:!ht.safeDescriptors||e.isPlainObject_,set:l})?0:2:(u(r,t,{configurable:!0,set:l}),2)}if(r!==e.target_&&"function"==typeof n.value)return O(n.value)?(null!=(s=this.options_)&&s.autoBind?Jt.bound:Jt).make_(e,t,n,r):(null!=(a=this.options_)&&a.autoBind?Vt.bound:Vt).make_(e,t,n,r);var c,d=!1===(null==(i=this.options_)?void 0:i.deep)?Ve.ref:Ve;return"function"==typeof n.value&&null!=(o=this.options_)&&o.autoBind&&(n.value=n.value.bind(null!=(c=e.proxy_)?c:e.target_)),d.make_(e,t,n,r)}function xe(e,t,n,r){var i,o,a;return n.get?Ie.extend_(e,t,n,r):n.set?e.defineProperty_(t,{configurable:!ht.safeDescriptors||e.isPlainObject_,set:qe(t.toString(),n.set)},r):("function"==typeof n.value&&null!=(i=this.options_)&&i.autoBind&&(n.value=n.value.bind(null!=(a=e.proxy_)?a:e.target_)),(!1===(null==(o=this.options_)?void 0:o.deep)?Ve.ref:Ve).extend_(e,t,n,r))}function we(e,t){r("'"+this.annotationType_+"' cannot be used as a decorator")}var Se={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function ke(e){return e||Se}Object.freeze(Se);var Ae=ve("observable"),je=ve("observable.ref",{enhancer:Q}),Ee=ve("observable.shallow",{enhancer:function(e,t,n){return null==e||In(e)||xn(e)||jn(e)||Cn(e)?e:Array.isArray(e)?Ve.array(e,{name:n,deep:!1}):y(e)?Ve.object(e,void 0,{name:n,deep:!1}):k(e)?Ve.map(e,{name:n,deep:!1}):A(e)?Ve.set(e,{name:n,deep:!1}):void 0}}),Te=ve("observable.struct",{enhancer:function(e,t){return ir(e,t)?t:e}}),Pe=z(Ae);function Ce(e){return!0===e.deep?J:!1===e.deep?Q:(t=e.defaultDecorator)&&null!=(n=null==(r=t.options_)?void 0:r.enhancer)?n:J;var t,n,r}function Re(e,t,n){return G(t)?Ae.decorate_20223_(e,t):g(t)?void q(e,t,Ae):en(e)?e:y(e)?Ve.object(e,t,n):Array.isArray(e)?Ve.array(e,t):k(e)?Ve.map(e,t):A(e)?Ve.set(e,t):"object"==typeof e&&null!==e?e:Ve.box(e,t)}a(Re,Pe);var Me,De,Ve=a(Re,{box:function(e,t){var n=ke(t);return new Fe(e,Ce(n),n.name,!0,n.equals)},array:function(e,t){var n=ke(t);return(!1===ht.useProxies||!1===n.proxy?Jn:pn)(e,Ce(n),n.name)},map:function(e,t){var n=ke(t);return new An(e,Ce(n),n.name)},set:function(e,t){var n=ke(t);return new Pn(e,Ce(n),n.name)},object:function(e,t,n){return tr((function(){return function(e,t,n,r){var i=C(t);return tr((function(){var t=Bn(e,r)[H];E(i).forEach((function(e){t.extend_(e,i[e],!n||!(e in n)||n[e])}))})),e}(!1===ht.useProxies||!1===(null==n?void 0:n.proxy)?Bn({},n):function(e,t){var n,r;return v(),null!=(r=(n=(e=Bn(e,t))[H]).proxy_)?r:n.proxy_=new Proxy(e,rn)}({},n),e,t)}))},ref:z(je),shallow:z(Ee),deep:Pe,struct:z(Te)}),Be="computed",Le=ce(Be),Ne=ce("computed.struct",{equals:Y.structural}),Ie=function(e,t){if(G(t))return Le.decorate_20223_(e,t);if(g(t))return q(e,t,Le);if(y(e))return z(ce(Be,e));var n=y(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new Xe(n)};Object.assign(Ie,Le),Ie.struct=z(Ne);var Ue=0,Ke=1,We=null!=(Me=null==(De=s((function(){}),"name"))?void 0:De.configurable)&&Me,ze={value:"action",configurable:!0,writable:!1,enumerable:!1};function qe(e,t,n,r){function i(){return Ge(0,n,t,r||this,arguments)}return void 0===n&&(n=!1),i.isMobxAction=!0,i.toString=function(){return t.toString()},We&&(ze.value=e,u(i,"name",ze)),i}function Ge(e,t,n,i,o){var a=function(e,t){var n=ht.trackingDerivation,r=!t||!n;bt();var i=ht.allowStateChanges;r&&(ot(),i=He(!0));var o={runAsAction_:r,prevDerivation_:n,prevAllowStateChanges_:i,prevAllowStateReads_:st(!0),notifySpy_:!1,startTime_:0,actionId_:Ke++,parentActionId_:Ue};return Ue=o.actionId_,o}(0,t);try{return n.apply(i,o)}catch(e){throw a.error_=e,e}finally{!function(e){Ue!==e.actionId_&&r(30),Ue=e.parentActionId_,void 0!==e.error_&&(ht.suppressReactionErrors=!0),$e(e.prevAllowStateChanges_),ut(e.prevAllowStateReads_),gt(),e.runAsAction_&&at(e.prevDerivation_),ht.suppressReactionErrors=!1}(a)}}function He(e){var t=ht.allowStateChanges;return ht.allowStateChanges=e,t}function $e(e){ht.allowStateChanges=e}var Fe=function(e){function t(t,n,r,i,o){var a;return void 0===r&&(r="ObservableValue"),void 0===i&&(i=!0),void 0===o&&(o=Y.default),(a=e.call(this,r)||this).enhancer=void 0,a.name_=void 0,a.equals=void 0,a.hasUnreportedChange_=!1,a.interceptors_=void 0,a.changeListeners_=void 0,a.value_=void 0,a.dehancer=void 0,a.enhancer=n,a.name_=r,a.equals=o,a.value_=n(t,void 0,r),a}I(t,e);var n=t.prototype;return n.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},n.set=function(e){this.value_,(e=this.prepareNewValue_(e))!==ht.UNCHANGED&&this.setNewValue_(e)},n.prepareNewValue_=function(e){if(on(this)){var t=sn(this,{object:this,type:fn,newValue:e});if(!t)return ht.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?ht.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),un(this)&&cn(this,{type:fn,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return an(this,e)},n.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:fn,newValue:this.value_,oldValue:void 0}),ln(this,e)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return T(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},t}($),Xe=function(){function e(e){this.dependenciesState_=Ye.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Ye.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Ze(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Je.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,e.get||r(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=qe("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?Y.structural:Y.default),this.scope_=e.context,this.requiresReaction_=e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){!function(e){e.lowestObserverState_===Ye.UP_TO_DATE_&&(e.lowestObserverState_=Ye.POSSIBLY_STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Ye.UP_TO_DATE_&&(e.dependenciesState_=Ye.POSSIBLY_STALE_,e.onBecomeStale_())})))}(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.get=function(){if(this.isComputing&&r(32,this.name_,this.derivation),0!==ht.inBatch||0!==this.observers_.size||this.keepAlive_){if(mt(this),tt(this)){var e=ht.trackingContext;this.keepAlive_&&!e&&(ht.trackingContext=this),this.trackAndCompute()&&function(e){e.lowestObserverState_!==Ye.STALE_&&(e.lowestObserverState_=Ye.STALE_,e.observers_.forEach((function(t){t.dependenciesState_===Ye.POSSIBLY_STALE_?t.dependenciesState_=Ye.STALE_:t.dependenciesState_===Ye.UP_TO_DATE_&&(e.lowestObserverState_=Ye.UP_TO_DATE_)})))}(this),ht.trackingContext=e}}else tt(this)&&(this.warnAboutUntrackedRead_(),bt(),this.value_=this.computeValue_(!1),gt());var t=this.value_;if(et(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter&&r(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter=!1}}else r(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===Ye.NOT_TRACKING_,n=this.computeValue_(!0),r=t||et(e)||et(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing=!0;var t,n=He(!1);if(e)t=nt(this,this.derivation,this.scope_);else if(!0===ht.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(e){t=new Ze(e)}return $e(n),this.isComputing=!1,t},t.suspend_=function(){this.keepAlive_||(rt(this),this.value_=void 0)},t.observe_=function(e,t){var n=this,r=!0,i=void 0;return function(e,t){var n,r,i,o;void 0===t&&(t=d);var a,s=null!=(n=null==(r=t)?void 0:r.name)?n:"Autorun";if(t.scheduler||t.delay){var u=function(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Lt}(t),l=!1;a=new Ot(s,(function(){l||(l=!0,u((function(){l=!1,a.isDisposed||a.track(c)})))}),t.onError,t.requiresObservable)}else a=new Ot(s,(function(){this.track(c)}),t.onError,t.requiresObservable);function c(){e(a)}return null!=(i=t)&&null!=(i=i.signal)&&i.aborted||a.schedule_(),a.getDisposer_(null==(o=t)?void 0:o.signal)}((function(){var o=n.get();if(!r||t){var a=ot();e({observableKind:"computed",debugObjectName:n.name_,type:fn,object:n,newValue:o,oldValue:i}),at(a)}r=!1,i=o}))},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return T(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},B(e,[{key:"isComputing",get:function(){return R(this.flags_,e.isComputingMask_)},set:function(t){this.flags_=M(this.flags_,e.isComputingMask_,t)}},{key:"isRunningSetter",get:function(){return R(this.flags_,e.isRunningSetterMask_)},set:function(t){this.flags_=M(this.flags_,e.isRunningSetterMask_,t)}},{key:"isBeingObserved",get:function(){return R(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=M(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return R(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=M(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return R(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=M(this.flags_,e.diffValueMask_,1===t)}}])}();Xe.isComputingMask_=1,Xe.isRunningSetterMask_=2,Xe.isBeingObservedMask_=4,Xe.isPendingUnobservationMask_=8,Xe.diffValueMask_=16;var Ye,Je,Qe=S("ComputedValue",Xe);!function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"}(Ye||(Ye={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Je||(Je={}));var Ze=function(e){this.cause=void 0,this.cause=e};function et(e){return e instanceof Ze}function tt(e){switch(e.dependenciesState_){case Ye.UP_TO_DATE_:return!1;case Ye.NOT_TRACKING_:case Ye.STALE_:return!0;case Ye.POSSIBLY_STALE_:for(var t=st(!0),n=ot(),r=e.observing_,i=r.length,o=0;o<i;o++){var a=r[o];if(Qe(a)){if(ht.disableErrorBoundaries)a.get();else try{a.get()}catch(e){return at(n),ut(t),!0}if(e.dependenciesState_===Ye.STALE_)return at(n),ut(t),!0}}return lt(e),at(n),ut(t),!1}}function nt(e,t,n){var r=st(!0);lt(e),e.newObserving_=new Array(0===e.runId_?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++ht.runId;var i,o=ht.trackingDerivation;if(ht.trackingDerivation=e,ht.inBatch++,!0===ht.disableErrorBoundaries)i=t.call(n);else try{i=t.call(n)}catch(e){i=new Ze(e)}return ht.inBatch--,ht.trackingDerivation=o,function(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=Ye.UP_TO_DATE_,i=0,o=e.unboundDepsCount_,a=0;a<o;a++){var s=n[a];0===s.diffValue&&(s.diffValue=1,i!==a&&(n[i]=s),i++),s.dependenciesState_>r&&(r=s.dependenciesState_)}for(n.length=i,e.newObserving_=null,o=t.length;o--;){var u=t[o];0===u.diffValue&&pt(u,e),u.diffValue=0}for(;i--;){var l=n[i];1===l.diffValue&&(l.diffValue=0,vt(l,e))}r!==Ye.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}(e),ut(r),i}function rt(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)pt(t[n],e);e.dependenciesState_=Ye.NOT_TRACKING_}function it(e){var t=ot();try{return e()}finally{at(t)}}function ot(){var e=ht.trackingDerivation;return ht.trackingDerivation=null,e}function at(e){ht.trackingDerivation=e}function st(e){var t=ht.allowStateReads;return ht.allowStateReads=e,t}function ut(e){ht.allowStateReads=e}function lt(e){if(e.dependenciesState_!==Ye.UP_TO_DATE_){e.dependenciesState_=Ye.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=Ye.UP_TO_DATE_}}var ct=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},dt=!0,ft=!1,ht=function(){var e=o();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(dt=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new ct).version&&(dt=!1),dt?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new ct):(setTimeout((function(){ft||r(35)}),1),new ct)}();function vt(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function pt(e,t){e.observers_.delete(t),0===e.observers_.size&&_t(e)}function _t(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,ht.pendingUnobservations.push(e))}function bt(){ht.inBatch++}function gt(){if(0==--ht.inBatch){St();for(var e=ht.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,0===n.observers_.size&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBUO()),n instanceof Xe&&n.suspend_())}ht.pendingUnobservations=[]}}function mt(e){var t=ht.trackingDerivation;return null!==t?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&ht.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(0===e.observers_.size&&ht.inBatch>0&&_t(e),!1)}function yt(e){e.lowestObserverState_!==Ye.STALE_&&(e.lowestObserverState_=Ye.STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Ye.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=Ye.STALE_})))}var Ot=function(){function e(e,t,n,r){void 0===e&&(e="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=Ye.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=Je.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=n,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,ht.pendingReactions.push(this),St())},t.runReaction_=function(){if(!this.isDisposed){bt(),this.isScheduled=!1;var e=ht.trackingContext;if(ht.trackingContext=this,tt(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(e){this.reportExceptionInDerivation_(e)}}ht.trackingContext=e,gt()}},t.track=function(e){if(!this.isDisposed){bt(),this.isRunning=!0;var t=ht.trackingContext;ht.trackingContext=this;var n=nt(this,e,void 0);ht.trackingContext=t,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&rt(this),et(n)&&this.reportExceptionInDerivation_(n.cause),gt()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(ht.disableErrorBoundaries)throw e;var n="[mobx] uncaught error in '"+this+"'";ht.suppressReactionErrors||console.error(n,e),ht.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(bt(),rt(this),gt()))},t.getDisposer_=function(e){var t=this,n=function n(){t.dispose(),null==e||null==e.removeEventListener||e.removeEventListener("abort",n)};return null==e||null==e.addEventListener||e.addEventListener("abort",n),n[H]=this,n},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1)},B(e,[{key:"isDisposed",get:function(){return R(this.flags_,e.isDisposedMask_)},set:function(t){this.flags_=M(this.flags_,e.isDisposedMask_,t)}},{key:"isScheduled",get:function(){return R(this.flags_,e.isScheduledMask_)},set:function(t){this.flags_=M(this.flags_,e.isScheduledMask_,t)}},{key:"isTrackPending",get:function(){return R(this.flags_,e.isTrackPendingMask_)},set:function(t){this.flags_=M(this.flags_,e.isTrackPendingMask_,t)}},{key:"isRunning",get:function(){return R(this.flags_,e.isRunningMask_)},set:function(t){this.flags_=M(this.flags_,e.isRunningMask_,t)}},{key:"diffValue",get:function(){return R(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=M(this.flags_,e.diffValueMask_,1===t)}}])}();Ot.isDisposedMask_=1,Ot.isScheduledMask_=2,Ot.isTrackPendingMask_=4,Ot.isRunningMask_=8,Ot.diffValueMask_=16;var xt=100,wt=function(e){return e()};function St(){ht.inBatch>0||ht.isRunningReactions||wt(kt)}function kt(){ht.isRunningReactions=!0;for(var e=ht.pendingReactions,t=0;e.length>0;){++t===xt&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r<i;r++)n[r].runReaction_()}ht.isRunningReactions=!1}var At=S("Reaction",Ot),jt="action",Et="autoAction",Tt=ee(jt),Pt=ee("action.bound",{bound:!0}),Ct=ee(Et,{autoAction:!0}),Rt=ee("autoAction.bound",{autoAction:!0,bound:!0});function Mt(e){return function(t,n){return b(t)?qe(t.name||"<unnamed action>",t,e):b(n)?qe(t,n,e):G(n)?(e?Ct:Tt).decorate_20223_(t,n):g(n)?q(t,n,e?Ct:Tt):g(t)?z(ee(e?Et:jt,{name:t,autoAction:e})):void 0}}var Dt=Mt(!1);Object.assign(Dt,Tt);var Vt=Mt(!0);function Bt(e){return b(e)&&!0===e.isMobxAction}Object.assign(Vt,Ct),Dt.bound=z(Pt),Vt.bound=z(Rt);var Lt=function(e){return e()};var Nt="onBO",It="onBUO";function Ut(e,t,n){return Kt(It,e,t,n)}function Kt(e,t,n,r){var i="function"==typeof r?Qn(t,n):Qn(t),o=b(r)?r:n,a=e+"L";return i[a]?i[a].add(o):i[a]=new Set([o]),function(){var e=i[a];e&&(e.delete(o),0===e.size&&delete i[a])}}var Wt="never",zt="always",qt="observed";function Gt(e){!0===e.isolateGlobalState&&function(){if((ht.pendingReactions.length||ht.inBatch||ht.isRunningReactions)&&r(36),ft=!0,dt){var e=o();0==--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),ht=new ct}}();var t,n,i=e.useProxies,a=e.enforceActions;if(void 0!==i&&(ht.useProxies=i===zt||i!==Wt&&"undefined"!=typeof Proxy),"ifavailable"===i&&(ht.verifyProxies=!0),void 0!==a){var s=a===zt?zt:a===qt;ht.enforceActions=s,ht.allowStateChanges=!0!==s&&s!==zt}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(t){t in e&&(ht[t]=!!e[t])})),ht.allowStateReads=!ht.observableRequiresReaction,e.reactionScheduler&&(t=e.reactionScheduler,n=wt,wt=function(e){return t((function(){return n(e)}))})}function Ht(e){var t,n={name:e.name_};return e.observing_&&e.observing_.length>0&&(n.dependencies=(t=e.observing_,Array.from(new Set(t))).map(Ht)),n}var $t=0;function Ft(){this.message="FLOW_CANCELLED"}Ft.prototype=Object.create(Error.prototype);var Xt=oe("flow"),Yt=oe("flow.bound",{bound:!0}),Jt=Object.assign((function(e,t){if(G(t))return Xt.decorate_20223_(e,t);if(g(t))return q(e,t,Xt);var n=e,r=n.name||"<unnamed flow>",i=function(){var e,t=arguments,i=++$t,o=Dt(r+" - runid: "+i+" - init",n).apply(this,t),a=void 0,s=new Promise((function(t,n){var s=0;function u(e){var t;a=void 0;try{t=Dt(r+" - runid: "+i+" - yield "+s++,o.next).call(o,e)}catch(e){return n(e)}c(t)}function l(e){var t;a=void 0;try{t=Dt(r+" - runid: "+i+" - yield "+s++,o.throw).call(o,e)}catch(e){return n(e)}c(t)}function c(e){if(!b(null==e?void 0:e.then))return e.done?t(e.value):(a=Promise.resolve(e.value)).then(u,l);e.then(c,n)}e=n,u(void 0)}));return s.cancel=Dt(r+" - runid: "+i+" - cancel",(function(){try{a&&Qt(a);var t=o.return(void 0),n=Promise.resolve(t.value);n.then(_,_),Qt(n),e(new Ft)}catch(t){e(t)}})),s};return i.isMobXFlow=!0,i}),Xt);function Qt(e){b(e.cancel)&&e.cancel()}function Zt(e){return!0===(null==e?void 0:e.isMobXFlow)}function en(e){return function(e,t){return!!e&&(void 0!==t?!!In(e)&&e[H].values_.has(t):In(e)||!!e[H]||F(e)||At(e)||Qe(e))}(e)}function tn(e,t){void 0===t&&(t=void 0),bt();try{return e.apply(t)}finally{gt()}}function nn(e){return e[H]}Jt.bound=z(Yt);var rn={has:function(e,t){return nn(e).has_(t)},get:function(e,t){return nn(e).get_(t)},set:function(e,t,n){var r;return!!g(t)&&(null==(r=nn(e).set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return!!g(t)&&(null==(n=nn(e).delete_(t,!0))||n)},defineProperty:function(e,t,n){var r;return null==(r=nn(e).defineProperty_(t,n))||r},ownKeys:function(e){return nn(e).ownKeys_()},preventExtensions:function(e){r(13)}};function on(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function an(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),p((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function sn(e,t){var n=ot();try{for(var i=[].concat(e.interceptors_||[]),o=0,a=i.length;o<a&&((t=i[o](t))&&!t.type&&r(14),t);o++);return t}finally{at(n)}}function un(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function ln(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),p((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function cn(e,t){var n=ot(),r=e.changeListeners_;if(r){for(var i=0,o=(r=r.slice()).length;i<o;i++)r[i](t);at(n)}}var dn="splice",fn="update",hn={get:function(e,t){var n=e[H];return t===H?n:"length"===t?n.getArrayLength_():"string"!=typeof t||isNaN(t)?P(_n,t)?_n[t]:e[t]:n.get_(parseInt(t))},set:function(e,t,n){var r=e[H];return"length"===t&&r.setArrayLength_(n),"symbol"==typeof t||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions:function(){r(15)}},vn=function(){function e(e,t,n,r){void 0===e&&(e="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=n,this.legacyMode_=r,this.atom_=new $(e),this.enhancer_=function(e,n){return t(e,n,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.dehanceValues_=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},t.intercept_=function(e){return an(this,e)},t.observe_=function(e,t){return void 0===t&&(t=!1),t&&e({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),ln(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!=typeof e||isNaN(e)||e<0)&&r("Out of range: "+e);var t=this.values_.length;if(e!==t)if(e>t){for(var n=new Array(e-t),i=0;i<e-t;i++)n[i]=void 0;this.spliceWithArray_(t,0,n)}else this.spliceWithArray_(e,t-e)},t.updateArrayLength_=function(e,t){e!==this.lastKnownLength_&&r(16),this.lastKnownLength_+=t,this.legacyMode_&&t>0&&Yn(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;this.atom_;var i=this.values_.length;if(void 0===e?e=0:e>i?e=i:e<0&&(e=Math.max(0,i+e)),t=1===arguments.length?i-e:null==t?0:Math.max(0,Math.min(t,i-e)),void 0===n&&(n=c),on(this)){var o=sn(this,{object:this.proxy_,type:dn,index:e,removedCount:t,added:n});if(!o)return c;t=o.removedCount,n=o.added}if(n=0===n.length?n:n.map((function(e){return r.enhancer_(e,void 0)})),this.legacyMode_){var a=n.length-t;this.updateArrayLength_(i,a)}var s=this.spliceItemsIntoValues_(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice_(e,n,s),this.dehanceValues_(s)},t.spliceItemsIntoValues_=function(e,t,n){var r;if(n.length<1e4)return(r=this.values_).splice.apply(r,[e,t].concat(n));var i=this.values_.slice(e,e+t),o=this.values_.slice(e+t);this.values_.length+=n.length-t;for(var a=0;a<n.length;a++)this.values_[e+a]=n[a];for(var s=0;s<o.length;s++)this.values_[e+n.length+s]=o[s];return i},t.notifyArrayChildUpdate_=function(e,t,n){var r=!this.owned_&&!1,i=un(this),o=i||r?{observableKind:"array",object:this.proxy_,type:fn,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;this.atom_.reportChanged(),i&&cn(this,o)},t.notifyArraySplice_=function(e,t,n){var r=!this.owned_&&!1,i=un(this),o=i||r?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:dn,index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom_.reportChanged(),i&&cn(this,o)},t.get_=function(e){if(!(this.legacyMode_&&e>=this.values_.length))return this.atom_.reportObserved(),this.dehanceValue_(this.values_[e]);console.warn("[mobx] Out of bounds read: "+e)},t.set_=function(e,t){var n=this.values_;if(this.legacyMode_&&e>n.length&&r(17,e,n.length),e<n.length){this.atom_;var i=n[e];if(on(this)){var o=sn(this,{type:fn,object:this.proxy_,index:e,newValue:t});if(!o)return;t=o.newValue}(t=this.enhancer_(t,i))!==i&&(n[e]=t,this.notifyArrayChildUpdate_(e,t,i))}else{for(var a=new Array(e+1-n.length),s=0;s<a.length-1;s++)a[s]=void 0;a[a.length-1]=t,this.spliceWithArray_(n.length,0,a)}},e}();function pn(e,t,n,r){return void 0===n&&(n="ObservableArray"),void 0===r&&(r=!1),v(),tr((function(){var i=new vn(n,t,r,!1);w(i.values_,H,i);var o=new Proxy(i.values_,hn);return i.proxy_=o,e&&e.length&&i.spliceWithArray_(0,0,e),o}))}var _n={clear:function(){return this.splice(0)},replace:function(e){var t=this[H];return t.spliceWithArray_(0,t.values_.length,e)},toJSON:function(){return this.slice()},splice:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=this[H];switch(arguments.length){case 0:return[];case 1:return o.spliceWithArray_(e);case 2:return o.spliceWithArray_(e,t)}return o.spliceWithArray_(e,t,r)},spliceWithArray:function(e,t,n){return this[H].spliceWithArray_(e,t,n)},push:function(){for(var e=this[H],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(e.values_.length,0,n),e.values_.length},pop:function(){return this.splice(Math.max(this[H].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[H],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(0,0,n),e.values_.length},reverse:function(){return ht.trackingDerivation&&r(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){ht.trackingDerivation&&r(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[H],n=t.dehanceValues_(t.values_).indexOf(e);return n>-1&&(this.splice(n,1),!0)}};function bn(e,t){"function"==typeof Array.prototype[e]&&(_n[e]=t(e))}function gn(e){return function(){var t=this[H];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function mn(e){return function(t,n){var r=this,i=this[H];return i.atom_.reportObserved(),i.dehanceValues_(i.values_)[e]((function(e,i){return t.call(n,e,i,r)}))}}function yn(e){return function(){var t=this,n=this[H];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),i=arguments[0];return arguments[0]=function(e,n,r){return i(e,n,r,t)},r[e].apply(r,arguments)}}bn("at",gn),bn("concat",gn),bn("flat",gn),bn("includes",gn),bn("indexOf",gn),bn("join",gn),bn("lastIndexOf",gn),bn("slice",gn),bn("toString",gn),bn("toLocaleString",gn),bn("toSorted",gn),bn("toSpliced",gn),bn("with",gn),bn("every",mn),bn("filter",mn),bn("find",mn),bn("findIndex",mn),bn("findLast",mn),bn("findLastIndex",mn),bn("flatMap",mn),bn("forEach",mn),bn("map",mn),bn("some",mn),bn("toReversed",mn),bn("reduce",yn),bn("reduceRight",yn);var On=S("ObservableArrayAdministration",vn);function xn(e){return m(e)&&On(e[H])}var wn={},Sn="add",kn="delete",An=function(){function e(e,t,n){var i=this;void 0===t&&(t=J),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[H]=wn,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=t,this.name_=n,b(Map)||r(18),tr((function(){i.keysAtom_=X("ObservableMap.keys()"),i.data_=new Map,i.hasMap_=new Map,e&&i.merge(e)}))}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!ht.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new Fe(this.has_(e),Q,"ObservableMap.key?",!1);this.hasMap_.set(e,r),Ut(r,(function(){return t.hasMap_.delete(e)}))}return n.get()},t.set=function(e,t){var n=this.has_(e);if(on(this)){var r=sn(this,{type:n?fn:Sn,object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this.updateValue_(e,t):this.addValue_(e,t),this},t.delete=function(e){var t=this;if(this.keysAtom_,on(this)&&!sn(this,{type:kn,object:this,name:e}))return!1;if(this.has_(e)){var n=un(this),r=n?{observableKind:"map",debugObjectName:this.name_,type:kn,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return tn((function(){var n;t.keysAtom_.reportChanged(),null==(n=t.hasMap_.get(e))||n.setNewValue_(!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)})),n&&cn(this,r),!0}return!1},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==ht.UNCHANGED){var r=un(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:fn,object:this,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),r&&cn(this,i)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,tn((function(){var r,i=new Fe(t,n.enhancer_,"ObservableMap.key",!1);n.data_.set(e,i),t=i.value_,null==(r=n.hasMap_.get(e))||r.setNewValue_(!0),n.keysAtom_.reportChanged()}));var r=un(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:Sn,object:this,name:e,newValue:t}:null;r&&cn(this,i)},t.get=function(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var e=this,t=this.keys();return En({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:e.get(i)}}})},t.entries=function(){var e=this,t=this.keys();return En({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:[i,e.get(i)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=L(this);!(n=r()).done;){var i=n.value,o=i[0],a=i[1];e.call(t,a,o,this)}},t.merge=function(e){var t=this;return jn(e)&&(e=new Map(e)),tn((function(){var n,i,o;y(e)?function(e){var t=Object.keys(e);if(!j)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter((function(t){return l.propertyIsEnumerable.call(e,t)}))):t}(e).forEach((function(n){return t.set(n,e[n])})):Array.isArray(e)?e.forEach((function(e){var n=e[0],r=e[1];return t.set(n,r)})):k(e)?(n=e,i=Object.getPrototypeOf(n),o=Object.getPrototypeOf(i),null!==Object.getPrototypeOf(o)&&r(19,e),e.forEach((function(e,n){return t.set(n,e)}))):null!=e&&r(20,e)})),this},t.clear=function(){var e=this;tn((function(){it((function(){for(var t,n=L(e.keys());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.replace=function(e){var t=this;return tn((function(){for(var n,i=function(e){if(k(e)||jn(e))return e;if(Array.isArray(e))return new Map(e);if(y(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return r(21,e)}(e),o=new Map,a=!1,s=L(t.data_.keys());!(n=s()).done;){var u=n.value;if(!i.has(u))if(t.delete(u))a=!0;else{var l=t.data_.get(u);o.set(u,l)}}for(var c,d=L(i.entries());!(c=d()).done;){var f=c.value,h=f[0],v=f[1],p=t.data_.has(h);if(t.set(h,v),t.data_.has(h)){var _=t.data_.get(h);o.set(h,_),p||(a=!0)}}if(!a)if(t.data_.size!==o.size)t.keysAtom_.reportChanged();else for(var b=t.data_.keys(),g=o.keys(),m=b.next(),O=g.next();!m.done;){if(m.value!==O.value){t.keysAtom_.reportChanged();break}m=b.next(),O=g.next()}t.data_=o})),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return ln(this,e)},t.intercept_=function(e){return an(this,e)},B(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),jn=S("ObservableMap",An);function En(e){return e[Symbol.toStringTag]="MapIterator",ur(e)}var Tn={},Pn=function(){function e(e,t,n){var i=this;void 0===t&&(t=J),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[H]=Tn,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=n,b(Set)||r(22),this.enhancer_=function(e,r){return t(e,r,n)},tr((function(){i.atom_=X(i.name_),e&&i.replace(e)}))}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.clear=function(){var e=this;tn((function(){it((function(){for(var t,n=L(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.forEach=function(e,t){for(var n,r=L(this);!(n=r()).done;){var i=n.value;e.call(t,i,i,this)}},t.add=function(e){var t=this;if(this.atom_,on(this)&&!sn(this,{type:Sn,object:this,newValue:e}))return this;if(!this.has(e)){tn((function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()}));var n=un(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:Sn,object:this,newValue:e}:null;n&&cn(this,r)}return this},t.delete=function(e){var t=this;if(on(this)&&!sn(this,{type:kn,object:this,oldValue:e}))return!1;if(this.has(e)){var n=un(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:kn,object:this,oldValue:e}:null;return tn((function(){t.atom_.reportChanged(),t.data_.delete(e)})),n&&cn(this,r),!0}return!1},t.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},t.entries=function(){var e=0,t=Array.from(this.keys()),n=Array.from(this.values());return Rn({next:function(){var r=e;return e+=1,r<n.length?{value:[t[r],n[r]],done:!1}:{value:void 0,done:!0}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var e=this,t=0,n=Array.from(this.data_.values());return Rn({next:function(){return t<n.length?{value:e.dehanceValue_(n[t++]),done:!1}:{value:void 0,done:!0}}})},t.intersection=function(e){return A(e)&&!Cn(e)?e.intersection(this):new Set(this).intersection(e)},t.union=function(e){return A(e)&&!Cn(e)?e.union(this):new Set(this).union(e)},t.difference=function(e){return new Set(this).difference(e)},t.symmetricDifference=function(e){return A(e)&&!Cn(e)?e.symmetricDifference(this):new Set(this).symmetricDifference(e)},t.isSubsetOf=function(e){return new Set(this).isSubsetOf(e)},t.isSupersetOf=function(e){return new Set(this).isSupersetOf(e)},t.isDisjointFrom=function(e){return A(e)&&!Cn(e)?e.isDisjointFrom(this):new Set(this).isDisjointFrom(e)},t.replace=function(e){var t=this;return Cn(e)&&(e=new Set(e)),tn((function(){Array.isArray(e)||A(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!=e&&r("Cannot initialize set from "+e)})),this},t.observe_=function(e,t){return ln(this,e)},t.intercept_=function(e){return an(this,e)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},B(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),Cn=S("ObservableSet",Pn);function Rn(e){return e[Symbol.toStringTag]="SetIterator",ur(e)}var Mn=Object.create(null),Dn="remove",Vn=function(){function e(e,t,n,r){void 0===t&&(t=new Map),void 0===r&&(r=me),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=e,this.values_=t,this.name_=n,this.defaultAnnotation_=r,this.keysAtom_=new $("ObservableObject.keys"),this.isPlainObject_=y(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(e){return this.values_.get(e).get()},t.setObservablePropValue_=function(e,t){var n=this.values_.get(e);if(n instanceof Xe)return n.set(t),!0;if(on(this)){var r=sn(this,{type:fn,object:this.proxy_||this.target_,name:e,newValue:t});if(!r)return null;t=r.newValue}if((t=n.prepareNewValue_(t))!==ht.UNCHANGED){var i=un(this),o=i?{type:fn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),i&&cn(this,o)}return!0},t.get_=function(e){return ht.trackingDerivation&&!P(this.target_,e)&&this.has_(e),this.target_[e]},t.set_=function(e,t,n){return void 0===n&&(n=!1),P(this.target_,e)?this.values_.has(e)?this.setObservablePropValue_(e,t):n?Reflect.set(this.target_,e,t):(this.target_[e]=t,!0):this.extend_(e,{value:t,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,n)},t.has_=function(e){if(!ht.trackingDerivation)return e in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var t=this.pendingKeys_.get(e);return t||(t=new Fe(e in this.target_,Q,"ObservableObject.key?",!1),this.pendingKeys_.set(e,t)),t.get()},t.make_=function(e,t){if(!0===t&&(t=this.defaultAnnotation_),!1!==t){if(!(e in this.target_)){var n;if(null!=(n=this.target_[W])&&n[e])return;r(1,t.annotationType_,this.name_+"."+e.toString())}for(var i=this.target_;i&&i!==l;){var o=s(i,e);if(o){var a=t.make_(this,e,o,i);if(0===a)return;if(1===a)break}i=Object.getPrototypeOf(i)}Un(this,0,e)}},t.extend_=function(e,t,n,r){if(void 0===r&&(r=!1),!0===n&&(n=this.defaultAnnotation_),!1===n)return this.defineProperty_(e,t,r);var i=n.extend_(this,e,t,r);return i&&Un(this,0,e),i},t.defineProperty_=function(e,t,n){void 0===n&&(n=!1),this.keysAtom_;try{bt();var r=this.delete_(e);if(!r)return r;if(on(this)){var i=sn(this,{object:this.proxy_||this.target_,name:e,type:Sn,newValue:t.value});if(!i)return null;var o=i.newValue;t.value!==o&&(t=N({},t,{value:o}))}if(n){if(!Reflect.defineProperty(this.target_,e,t))return!1}else u(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{gt()}return!0},t.defineObservableProperty_=function(e,t,n,r){void 0===r&&(r=!1),this.keysAtom_;try{bt();var i=this.delete_(e);if(!i)return i;if(on(this)){var o=sn(this,{object:this.proxy_||this.target_,name:e,type:Sn,newValue:t});if(!o)return null;t=o.newValue}var a=Nn(e),s={configurable:!ht.safeDescriptors||this.isPlainObject_,enumerable:!0,get:a.get,set:a.set};if(r){if(!Reflect.defineProperty(this.target_,e,s))return!1}else u(this.target_,e,s);var l=new Fe(t,n,"ObservableObject.key",!1);this.values_.set(e,l),this.notifyPropertyAddition_(e,l.value_)}finally{gt()}return!0},t.defineComputedProperty_=function(e,t,n){void 0===n&&(n=!1),this.keysAtom_;try{bt();var r=this.delete_(e);if(!r)return r;if(on(this)&&!sn(this,{object:this.proxy_||this.target_,name:e,type:Sn,newValue:void 0}))return null;t.name||(t.name="ObservableObject.key"),t.context=this.proxy_||this.target_;var i=Nn(e),o={configurable:!ht.safeDescriptors||this.isPlainObject_,enumerable:!1,get:i.get,set:i.set};if(n){if(!Reflect.defineProperty(this.target_,e,o))return!1}else u(this.target_,e,o);this.values_.set(e,new Xe(t)),this.notifyPropertyAddition_(e,void 0)}finally{gt()}return!0},t.delete_=function(e,t){if(void 0===t&&(t=!1),this.keysAtom_,!P(this.target_,e))return!0;if(on(this)&&!sn(this,{object:this.proxy_||this.target_,name:e,type:Dn}))return null;try{var n;bt();var r,i=un(this),o=this.values_.get(e),a=void 0;if(!o&&i&&(a=null==(r=s(this.target_,e))?void 0:r.value),t){if(!Reflect.deleteProperty(this.target_,e))return!1}else delete this.target_[e];if(o&&(this.values_.delete(e),o instanceof Fe&&(a=o.value_),yt(o)),this.keysAtom_.reportChanged(),null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(e in this.target_),i){var u={type:Dn,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:a,name:e};i&&cn(this,u)}}finally{gt()}return!0},t.observe_=function(e,t){return ln(this,e)},t.intercept_=function(e){return an(this,e)},t.notifyPropertyAddition_=function(e,t){var n,r=un(this);if(r){var i=r?{type:Sn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;r&&cn(this,i)}null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),E(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function Bn(e,t){var n;if(P(e,H))return e;var r=null!=(n=null==t?void 0:t.name)?n:"ObservableObject",i=new Vn(e,new Map,String(r),function(e){var t;return e?null!=(t=e.defaultDecorator)?t:ye(e):void 0}(t));return x(e,H,i),e}var Ln=S("ObservableObjectAdministration",Vn);function Nn(e){return Mn[e]||(Mn[e]={get:function(){return this[H].getObservablePropValue_(e)},set:function(t){return this[H].setObservablePropValue_(e,t)}})}function In(e){return!!m(e)&&Ln(e[H])}function Un(e,t,n){var r;null==(r=e.target_[W])||delete r[n]}var Kn,Wn,zn=Fn(0),qn=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,!1===e}(),Gn=0,Hn=function(){};Kn=Hn,Wn=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(Kn.prototype,Wn):void 0!==Kn.prototype.__proto__?Kn.prototype.__proto__=Wn:Kn.prototype=Wn;var $n=function(e){function t(t,n,r,i){var o;return void 0===r&&(r="ObservableArray"),void 0===i&&(i=!1),o=e.call(this)||this,tr((function(){var e=new vn(r,n,i,!0);e.proxy_=o,w(o,H,e),t&&t.length&&o.spliceWithArray(0,0,t),qn&&Object.defineProperty(o,"0",zn)})),o}I(t,e);var n=t.prototype;return n.concat=function(){this[H].atom_.reportObserved();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Array.prototype.concat.apply(this.slice(),t.map((function(e){return xn(e)?e.slice():e})))},n[Symbol.iterator]=function(){var e=this,t=0;return ur({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})},B(t,[{key:"length",get:function(){return this[H].getArrayLength_()},set:function(e){this[H].setArrayLength_(e)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(Hn);function Fn(e){return{enumerable:!1,configurable:!0,get:function(){return this[H].get_(e)},set:function(t){this[H].set_(e,t)}}}function Xn(e){u($n.prototype,""+e,Fn(e))}function Yn(e){if(e>Gn){for(var t=Gn;t<e+100;t++)Xn(t);Gn=e}}function Jn(e,t,n){return new $n(e,t,n)}function Qn(e,t){if("object"==typeof e&&null!==e){if(xn(e))return void 0!==t&&r(23),e[H].atom_;if(Cn(e))return e.atom_;if(jn(e)){if(void 0===t)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||r(25,t,er(e)),n}if(In(e)){if(!t)return r(26);var i=e[H].values_.get(t);return i||r(27,t,er(e)),i}if(F(e)||Qe(e)||At(e))return e}else if(b(e)&&At(e[H]))return e[H];r(28)}function Zn(e,t){return e||r(29),void 0!==t?Zn(Qn(e,t)):F(e)||Qe(e)||At(e)||jn(e)||Cn(e)?e:e[H]?e[H]:void r(24,e)}function er(e,t){var n;if(void 0!==t)n=Qn(e,t);else{if(Bt(e))return e.name;n=In(e)||jn(e)||Cn(e)?Zn(e):Qn(e)}return n.name_}function tr(e){var t=ot(),n=He(!0);bt();try{return e()}finally{gt(),$e(n),at(t)}}Object.entries(_n).forEach((function(e){var t=e[0],n=e[1];"concat"!==t&&x($n.prototype,t,n)})),Yn(1e3);var nr,rr=l.toString;function ir(e,t,n){return void 0===n&&(n=-1),or(e,t,n)}function or(e,t,n,r,i){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var o=typeof e;if("function"!==o&&"object"!==o&&"object"!=typeof t)return!1;var a=rr.call(e);if(a!==rr.call(t))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":n>=0&&n++}e=ar(e),t=ar(t);var s="[object Array]"===a;if(!s){if("object"!=typeof e||"object"!=typeof t)return!1;var u=e.constructor,l=t.constructor;if(u!==l&&!(b(u)&&u instanceof u&&b(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),i=i||[];for(var c=(r=r||[]).length;c--;)if(r[c]===e)return i[c]===t;if(r.push(e),i.push(t),s){if((c=e.length)!==t.length)return!1;for(;c--;)if(!or(e[c],t[c],n-1,r,i))return!1}else{var d,f=Object.keys(e);if(c=f.length,Object.keys(t).length!==c)return!1;for(;c--;)if(!P(t,d=f[c])||!or(e[d],t[d],n-1,r,i))return!1}return r.pop(),i.pop(),!0}function ar(e){return xn(e)?e.slice():k(e)||jn(e)||A(e)||Cn(e)?Array.from(e.entries()):e}var sr=(null==(nr=o().Iterator)?void 0:nr.prototype)||{};function ur(e){return e[Symbol.iterator]=lr,Object.assign(Object.create(sr),e)}function lr(){return this}["Symbol","Map","Set"].forEach((function(e){void 0===o()[e]&&r("MobX requires global '"+e+"' to be available or polyfilled")})),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}},extras:{getDebugName:er},$mobx:H});var cr=n(953),dr=n.n(cr);if(!cr.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!function(e,t,n){return tr((function(){var r=Bn(e,n)[H];null!=t||(t=function(e){return P(e,W)||x(e,W,N({},e[W])),e[W]}(e)),E(t).forEach((function(e){return r.make_(e,t[e])}))})),e})throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");const fr=require("react-dom");function hr(e){e()}function vr(e){e||(e=hr),Gt({reactionScheduler:e})}var pr=function(){return!0};function _r(e){return Ht(Qn(e,t));var t}var br=!1;function gr(e){br=e}function mr(){return br}var yr,Or,xr=function(){function e(e){var t=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(e){void 0===e&&(e=1e4),clearTimeout(t.sweepTimeout),t.sweepTimeout=void 0;var n=Date.now();t.registrations.forEach((function(r,i){n-r.registeredAt>=e&&(t.finalize(r.value),t.registrations.delete(i))})),t.registrations.size>0&&t.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){t.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){this.registrations.set(n,{value:t,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.registrations.delete(e)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){void 0===this.sweepTimeout&&(this.sweepTimeout=setTimeout(this.sweep,1e4))}}),e}(),wr=new("undefined"!=typeof FinalizationRegistry?FinalizationRegistry:xr)((function(e){var t;null===(t=e.reaction)||void 0===t||t.dispose(),e.reaction=null})),Sr=n(634);function kr(e){e.reaction=new Ot("observer".concat(e.name),(function(){var t;e.stateVersion=Symbol(),null===(t=e.onStoreChange)||void 0===t||t.call(e)}))}function Ar(e,t){if(void 0===t&&(t="observed"),mr())return e();var n=dr().useRef(null);if(!n.current){var r={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(e){return wr.unregister(r),r.onStoreChange=e,r.reaction||(kr(r),r.stateVersion=Symbol()),function(){var e;r.onStoreChange=null,null===(e=r.reaction)||void 0===e||e.dispose(),r.reaction=null}},getSnapshot:function(){return r.stateVersion}};n.current=r}var i,o,a=n.current;if(a.reaction||(kr(a),wr.register(n,a,a)),dr().useDebugValue(a.reaction,_r),(0,Sr.useSyncExternalStore)(a.subscribe,a.getSnapshot,a.getSnapshot),a.reaction.track((function(){try{i=e()}catch(e){o=e}})),o)throw o;return i}var jr="function"==typeof Symbol&&Symbol.for,Er=null!==(Or=null===(yr=Object.getOwnPropertyDescriptor((function(){}),"name"))||void 0===yr?void 0:yr.configurable)&&void 0!==Or&&Or,Tr=jr?Symbol.for("react.forward_ref"):"function"==typeof cr.forwardRef&&(0,cr.forwardRef)((function(e){return null})).$$typeof,Pr=jr?Symbol.for("react.memo"):"function"==typeof cr.memo&&(0,cr.memo)((function(e){return null})).$$typeof;function Cr(e,t){var n;if(Pr&&e.$$typeof===Pr)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");if(mr())return e;var r=null!==(n=null==t?void 0:t.forwardRef)&&void 0!==n&&n,i=e,o=e.displayName||e.name;if(Tr&&e.$$typeof===Tr&&(r=!0,"function"!=typeof(i=e.render)))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var a,s,u=function(e,t){return Ar((function(){return i(e,t)}),o)};return u.displayName=e.displayName,Er&&Object.defineProperty(u,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(u.contextTypes=e.contextTypes),r&&(u=(0,cr.forwardRef)(u)),u=(0,cr.memo)(u),a=e,s=u,Object.keys(a).forEach((function(e){Mr[e]||Object.defineProperty(s,e,Object.getOwnPropertyDescriptor(a,e))})),u}var Rr,Mr={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function Dr(e){var t=e.children,n=e.render;t&&n&&console.error("MobX Observer: Do not use children and render in the same time in `Observer`");var r=t||n;return"function"!=typeof r?null:Ar(r)}function Vr(e,t){return(0,cr.useState)((function(){return Ve(e(),t,{autoBind:!0})}))[0]}function Br(e){var t=(0,cr.useState)((function(){return Ve(e,{},{deep:!1})}))[0];return function(e){Ge(0,!1,e,this,void 0)}((function(){Object.assign(t,e)})),t}function Lr(e,t){var n=t&&Br(t);return(0,cr.useState)((function(){return Ve(e(n),void 0,{autoBind:!0})}))[0]}Dr.displayName="Observer",vr(fr.unstable_batchedUpdates);var Nr=null!==(Rr=wr.finalizeAllImmediately)&&void 0!==Rr?Rr:function(){};function Ir(e,t){return void 0===t&&(t="observed"),Ar(e,t)}function Ur(e){gr(e)}},31:(e,t,n)=>{n.r(t),n.d(t,{default:()=>b});var r=n(478),i=n.n(r),o=n(135),a=n.n(o),s=n(301),u=n.n(s),l=n(222),c=n.n(l),d=n(626),f=n.n(d),h=n(279),v=n.n(h),p=n(178),_={};_.styleTagTransform=v(),_.setAttributes=c(),_.insert=u().bind(null,"head"),_.domAPI=a(),_.insertStyleElement=f(),i()(p.A,_);const b=p.A&&p.A.locals?p.A.locals:void 0},478:e=>{var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var o={},a=[],s=0;s<e.length;s++){var u=e[s],l=r.base?u[0]+r.base:u[0],c=o[l]||0,d="".concat(l," ").concat(c);o[l]=c+1;var f=n(d),h={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==f)t[f].references++,t[f].updater(h);else{var v=i(h,r);r.byIndex=s,t.splice(s,0,{identifier:d,updater:v,references:1})}a.push(d)}return a}function i(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var o=r(e=e||[],i=i||{});return function(e){e=e||[];for(var a=0;a<o.length;a++){var s=n(o[a]);t[s].references--}for(var u=r(e,i),l=0;l<o.length;l++){var c=n(o[l]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}o=u}}},301:e=>{var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},626:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},222:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},135:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},279:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},319:(e,t,n)=>{var r=n(953),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,u=r.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s((function(){i.value=n,i.getSnapshot=t,l(i)&&c({inst:i})}),[e,n,t]),a((function(){return l(i)&&c({inst:i}),e((function(){l(i)&&c({inst:i})}))}),[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},634:(e,t,n)=>{e.exports=n(319)},159:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});const a=o(n(953));n(31),t.default=function(e){const[t,n]=(0,a.useState)(!1),[r,i]=(0,a.useState)(!0),[o,s]=(0,a.useState)(null),[u,l]=(0,a.useState)(null),{currentTask:c,audioRef:d,toggleHold:f,toggleRecording:h,endCall:v,wrapupCall:p,wrapupCodes:_,wrapupRequired:b}=e;return(0,a.useEffect)((()=>{if(!c||!c.data||!c.data.interaction)return;const{interaction:e,mediaResourceId:t}=c.data,{media:r,callProcessingDetails:o}=e,a=r&&r[t]&&r[t].isHold;if(n(a),o){const{isPaused:e}=o;i(!e)}}),[c]),a.default.createElement(a.default.Fragment,null,a.default.createElement("audio",{ref:d,id:"remote-audio",autoPlay:!0}),c&&a.default.createElement("div",{className:"box"},a.default.createElement("section",{className:"section-box"},a.default.createElement("fieldset",{className:"fieldset"},a.default.createElement("legend",{className:"legend-box"},"Call Control"),a.default.createElement("div",{style:{display:"flex",flexDirection:"column",flexGrow:1}},a.default.createElement("div",{style:{display:"flex",gap:"1rem"}},a.default.createElement("button",{className:"btn",onClick:()=>{f(!t),n(!t)},disabled:b},t?"Resume":"Hold"),a.default.createElement("button",{className:"btn",onClick:()=>{h(r),i(!r)},disabled:b},r?"Pause Recording":"Resume Recording"),a.default.createElement("button",{className:"btn",onClick:v,disabled:b||t},"End")),a.default.createElement("div",{style:{display:"flex",gap:"1rem",marginTop:"1rem"}},a.default.createElement("select",{className:"select",onChange:e=>{const{text:t,value:n}=e.target.options[e.target.selectedIndex];s(t),l(n)},disabled:!b},a.default.createElement("option",{value:""},"Select the wrap-up reason"),_.map((e=>a.default.createElement("option",{key:e.id,value:e.id},e.name)))),a.default.createElement("button",{className:"btn",onClick:()=>{o&&u&&(p(o,u),s(null),l(null))},disabled:!b&&!o},"Wrap Up")))))))}},681:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CallControl=void 0;const i=r(n(953)),o=n(62),a=r(n(768)),s=n(306),u=r(n(159)),l=(0,o.observer)((({onHoldResume:e,onEnd:t,onWrapUp:n})=>{const{logger:r,currentTask:o,deviceType:l,wrapupCodes:c,wrapupRequired:d}=a.default,f=Object.assign(Object.assign({},(0,s.useCallControl)({currentTask:o,deviceType:l,onHoldResume:e,onEnd:t,onWrapUp:n,logger:r})),{wrapupRequired:d,wrapupCodes:c});return i.default.createElement(u.default,Object.assign({},f))}));t.CallControl=l},869:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(953)),o={box:{backgroundColor:"#ffffff",borderRadius:"8px",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)",padding:"20px",maxWidth:"800px",margin:"0 auto"},sectionBox:{padding:"10px",border:"1px solid #ddd",borderRadius:"8px",marginBottom:"20px"},fieldset:{border:"1px solid #ccc",borderRadius:"5px",padding:"10px",marginBottom:"20px",position:"relative"},legendBox:{fontWeight:"bold",color:"#0052bf"},container:{border:"1px solid #ccc",borderRadius:"8px",padding:"16px",width:"350px",boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.2)",fontFamily:"Arial, sans-serif",backgroundColor:"#ffffff",display:"flex",flexDirection:"column"},topSection:{display:"flex",justifyContent:"space-between",alignItems:"center"},iconWrapper:{display:"inline-block",backgroundColor:"#d4f8e8",borderRadius:"50%",width:"40px",height:"40px",justifyContent:"center",alignItems:"center",marginRight:"10px"},iconSvg:{width:"24px",height:"24px",color:"#146f5c"},callInfo:{margin:0,fontSize:"1.2em",color:"#333"},aniText:{fontSize:"1.1em",fontWeight:"bold",margin:"4px 0",color:"#146f5c"},buttonsWrapper:{display:"flex",flexDirection:"column",alignItems:"flex-end",marginLeft:"16px"},answerButton:{padding:"8px 16px",border:"none",borderRadius:"6px",fontSize:"0.9em",cursor:"pointer",fontWeight:"bold",backgroundColor:"#28a745",color:"#fff",marginBottom:"8px"},declineButton:{padding:"8px 16px",border:"none",borderRadius:"6px",fontSize:"0.9em",cursor:"pointer",fontWeight:"bold",backgroundColor:"#dc3545",color:"#fff"},queueInfo:{fontSize:"0.9em",color:"#666",marginTop:"8px"},timeElapsed:{color:"#28a745",fontWeight:"bold"},callDetails:{marginTop:"16px",fontSize:"0.9em",color:"#333"},detailItem:{margin:"4px 0"},detailLabel:{color:"#555",fontWeight:"bold"}};t.default=e=>{const{incomingTask:t,accept:n,decline:r,isBrowser:a}=e;if(!t)return i.default.createElement(i.default.Fragment,null);const s=t.data.interaction.callAssociatedDetails,{ani:u,dn:l,virtualTeamName:c}=s;return i.default.createElement("div",{style:o.box},i.default.createElement("section",{style:o.sectionBox},i.default.createElement("fieldset",{style:o.fieldset},i.default.createElement("legend",{style:o.legendBox},"Incoming Task"),i.default.createElement("div",{"data-testid":"incoming-task-presentational",style:o.container},i.default.createElement("div",{style:o.topSection},i.default.createElement("div",{style:{display:"flex",alignItems:"center"}},i.default.createElement("span",{style:o.iconWrapper},i.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:o.iconSvg},i.default.createElement("path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.86 19.86 0 0 1-8.63-2.73 19.5 19.5 0 0 1-6-6A19.86 19.86 0 0 1 3.08 4.18 2 2 0 0 1 5 2h3a2 2 0 0 1 2 1.72c.2 1.52.71 2.94 1.41 4.24a2 2 0 0 1-.45 2.31L9.91 11a16 16 0 0 0 6 6l1.73-1.05a2 2 0 0 1 2.31-.45 16.11 16.11 0 0 0 4.24 1.41A2 2 0 0 1 22 16.92z"}))),i.default.createElement("div",null,i.default.createElement("h2",{style:o.callInfo},"Incoming Call"),i.default.createElement("p",{"data-testid":"incoming-task-ani",style:o.aniText},u))),a&&i.default.createElement("div",{style:o.buttonsWrapper},i.default.createElement("button",{style:o.answerButton,onClick:n},"Answer"),i.default.createElement("button",{style:o.declineButton,onClick:r},"Decline"))),i.default.createElement("p",{style:o.queueInfo},c," - ",i.default.createElement("span",{style:o.timeElapsed},"")),i.default.createElement("div",{style:o.callDetails},i.default.createElement("p",{style:o.detailItem},i.default.createElement("strong",{style:o.detailLabel},"Phone Number:")," ",u),i.default.createElement("p",{style:o.detailItem},i.default.createElement("strong",{style:o.detailLabel},"DNIS:")," ",l),i.default.createElement("p",{style:o.detailItem},i.default.createElement("strong",{style:o.detailLabel},"Queue Name:")," ",c))))))}},360:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.IncomingTask=void 0;const i=r(n(953)),o=n(62),a=r(n(768)),s=n(306),u=r(n(869)),l=(0,o.observer)((({onAccepted:e,onDeclined:t})=>{const{deviceType:n,incomingTask:r,logger:o}=a.default,l=(0,s.useIncomingTask)({incomingTask:r,onAccepted:e,onDeclined:t,deviceType:n,logger:o}),c=Object.assign({},l);return i.default.createElement(u.default,Object.assign({},c))}));t.IncomingTask=l},196:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TaskList=void 0;const i=r(n(953)),o=r(n(768)),a=n(62),s=r(n(859)),u=n(306),l=(0,a.observer)((()=>{const{cc:e,taskList:t,currentTask:n,deviceType:r,logger:a}=o.default,l=(0,u.useTaskList)({cc:e,deviceType:r,logger:a,taskList:t}),c=Object.assign(Object.assign({},l),{currentTask:n});return i.default.createElement(s.default,Object.assign({},c))}));t.TaskList=l},859:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(953)),o={box:{backgroundColor:"#ffffff",borderRadius:"8px",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)",padding:"20px",maxWidth:"800px",margin:"0 auto"},container:{display:"flex",flexDirection:"column",gap:"10px",padding:"20px"},card:{display:"flex",alignItems:"center",justifyContent:"space-between",backgroundColor:"#ffffff",border:"1px solid #ddd",borderRadius:"8px",padding:"10px 15px",boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.1)"},leftSection:{display:"flex",alignItems:"center",gap:"10px"},icon:{backgroundColor:"#bdf5cf",borderRadius:"50%",width:"40px",height:"40px",display:"flex",justifyContent:"center",alignItems:"center"},iconSvg:{width:"24px",height:"24px",color:"#146f5c"},textPrimary:{margin:0,fontSize:"16px",fontWeight:"bold"},textSecondary:{margin:0,fontSize:"14px",color:"#888"},rightSectionText:{margin:0,fontSize:"14px",fontWeight:"bold",color:"#333"},buttonsWrapper:{display:"flex",gap:"10px"},acceptButton:{padding:"8px 16px",border:"none",borderRadius:"6px",fontSize:"0.9em",cursor:"pointer",fontWeight:"bold",backgroundColor:"#28a745",color:"#fff"},rejectButton:{padding:"8px 16px",border:"none",borderRadius:"6px",fontSize:"0.9em",cursor:"pointer",fontWeight:"bold",backgroundColor:"#dc3545",color:"#fff"},fieldset:{border:"1px solid #ccc",borderRadius:"5px",padding:"10px",marginBottom:"20px",position:"relative"},legendBox:{fontWeight:"bold",color:"#0052bf"}};t.default=e=>{if(e.taskList.length<=0)return i.default.createElement(i.default.Fragment,null);const{currentTask:t,taskList:n,acceptTask:r,declineTask:a,isBrowser:s}=e;return i.default.createElement("div",{style:o.box},i.default.createElement("fieldset",{style:o.fieldset},i.default.createElement("legend",{style:o.legendBox},"TaskList"),i.default.createElement("div",{style:o.container},n.map(((e,n)=>{const u=e.data.interaction.callAssociatedDetails,{ani:l,dn:c,virtualTeamName:d}=u;return i.default.createElement("div",{key:n,style:o.card},i.default.createElement("div",{style:o.leftSection},i.default.createElement("div",{style:o.icon},i.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:o.iconSvg},i.default.createElement("path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.86 19.86 0 0 1-8.63-2.73 19.5 19.5 0 0 1-6-6A19.86 19.86 0 0 1 3.08 4.18 2 2 0 0 1 5 2h3a2 2 0 0 1 2 1.72c.2 1.52.71 2.94 1.41 4.24a2 2 0 0 1-.45 2.31L9.91 11a16 16 0 0 0 6 6l1.73-1.05a2 2 0 0 1 2.31-.45 16.11 16.11 0 0 0 4.24 1.41A2 2 0 0 1 22 16.92z"}))),i.default.createElement("div",null,i.default.createElement("p",{style:o.textPrimary},l),i.default.createElement("p",{style:o.textSecondary},d))),!t&&i.default.createElement("div",null,i.default.createElement("p",{style:o.rightSectionText},c),s&&i.default.createElement("div",{style:o.buttonsWrapper},i.default.createElement("button",{style:o.acceptButton,onClick:()=>r(e)},"Accept"),i.default.createElement("button",{style:o.rejectButton,onClick:()=>a(e)},"Reject"))))})))))}},306:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.useCallControl=t.useIncomingTask=t.useTaskList=void 0;const a=n(953),s=o(n(768));t.useTaskList=e=>{const{deviceType:t,onTaskAccepted:n,onTaskDeclined:r,logger:i,taskList:o}=e,a=(e,t)=>{i.error(e,{module:"widget-cc-task#helper.ts",method:`useTaskList#${t}`})};return{taskList:o,acceptTask:e=>{const t=null==e?void 0:e.data.interactionId;t&&e.accept(t).then((()=>{n&&n(e)})).catch((e=>{a(`Error accepting task: ${e}`,"acceptTask")}))},declineTask:e=>{const t=null==e?void 0:e.data.interactionId;t&&e.decline(t).then((()=>{r&&r(e)})).catch((e=>{a(`Error declining task: ${e}`,"declineTask")}))},isBrowser:"BROWSER"===t}},t.useIncomingTask=e=>{const{onAccepted:t,onDeclined:n,deviceType:r,incomingTask:i,logger:o}=e,a=(e,t)=>{o.error(e,{module:"widget-cc-task#helper.ts",method:`useIncomingTask#${t}`})};return{incomingTask:i,accept:()=>{const e=null==i?void 0:i.data.interactionId;e&&i.accept(e).then((()=>{t&&t()})).catch((e=>{a(`Error accepting incoming task: ${e}`,"accept")}))},decline:()=>{const e=null==i?void 0:i.data.interactionId;e&&i.decline(e).then((()=>{n&&n()})).catch((e=>{a(`Error declining incoming task: ${e}`,"decline")}))},isBrowser:"BROWSER"===r}},t.useCallControl=e=>{const{currentTask:t,onHoldResume:n,onEnd:r,onWrapUp:i,logger:o,deviceType:u}=e,l=(0,a.useRef)(null),c="BROWSER"===u,d=(e,t)=>{o.error(e,{module:"widget-cc-task#helper.ts",method:`useCallControl#${t}`})},f=(0,a.useCallback)((e=>{l.current&&(l.current.srcObject=new MediaStream([e]))}),[l,t]);return(0,a.useEffect)((()=>{if(t&&c)return t.on(s.TASK_EVENTS.TASK_MEDIA,f),()=>{t.off(s.TASK_EVENTS.TASK_MEDIA,f)}}),[t]),{currentTask:t,audioRef:l,endCall:()=>{t.end().then((()=>{r&&r()})).catch((e=>{d(`Error ending call: ${e}`,"endCall")}))},toggleHold:e=>{e?t.hold().then((()=>n&&n())).catch((e=>{d(`Error holding call: ${e}`,"toggleHold")})):t.resume().then((()=>n&&n())).catch((e=>{d(`Error resuming call: ${e}`,"toggleHold")}))},toggleRecording:e=>{e?t.pauseRecording().catch((e=>{d(`Error pausing recording: ${e}`,"toggleRecording")})):t.resumeRecording().catch((e=>{d(`Error resuming recording: ${e}`,"toggleRecording")}))},wrapupCall:(e,n)=>{t.wrapup({wrapUpReason:e,auxCodeId:n}).then((()=>{i&&i(),s.default.handleTaskRemove(t.data.interactionId)})).catch((e=>{d(`Error wrapping up call: ${e}`,"wrapupCall")}))}}}},768:e=>{e.exports=require("@webex/cc-store")},953:e=>{e.exports=require("react")}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var r={};(()=>{var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.CallControl=e.TaskList=e.IncomingTask=void 0;const t=n(360);Object.defineProperty(e,"IncomingTask",{enumerable:!0,get:function(){return t.IncomingTask}});const i=n(196);Object.defineProperty(e,"TaskList",{enumerable:!0,get:function(){return i.TaskList}});const o=n(681);Object.defineProperty(e,"CallControl",{enumerable:!0,get:function(){return o.CallControl}})})(),module.exports=r})();
2
+ (()=>{"use strict";var e={178:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(63),i=n.n(r),o=n(248),a=n.n(o)()(i());a.push([e.id,".box{background-color:#fff;border-radius:8px;box-shadow:0 2px 4px rgba(0,0,0,.1);padding:20px;max-width:800px;margin:0 auto}.section-box{padding:10px;border:1px solid #ddd;border-radius:8px}.fieldset{border:1px solid #ccc;border-radius:5px;padding:10px;margin-bottom:20px}.legend-box{font-weight:bold;color:#0052bf}.btn{padding:10px 20px;background-color:#0052bf;color:#fff;border:none;border-radius:4px;cursor:pointer;transition:background-color .3s;margin-right:8px}.btn:disabled{background-color:gray;cursor:not-allowed}.select{width:100%;padding:8px;margin-top:8px;margin-bottom:12px;border:1px solid #ccc;border-radius:4px}.input{width:97%;padding:8px;margin-top:8px;margin-bottom:12px;border:1px solid #ccc;border-radius:4px}",""]);const s=a},248:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var u=this[s][0];null!=u&&(a[u]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);r&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),i&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=i):c[4]="".concat(i)),t.push(c))}},t}},63:e=>{e.exports=function(e){return e[1]}},62:(e,t,n)=>{function r(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("number"==typeof e?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}n.r(t),n.d(t,{Observer:()=>Br,_observerFinalizationRegistry:()=>wr,clearTimers:()=>Ir,enableStaticRendering:()=>br,isObserverBatched:()=>pr,isUsingStaticRendering:()=>mr,observer:()=>Cr,observerBatching:()=>vr,useAsObservableSource:()=>Vr,useLocalObservable:()=>Dr,useLocalStore:()=>Lr,useObserver:()=>Nr,useStaticRendering:()=>Ur});var i={};function o(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:i}var a=Object.assign,s=Object.getOwnPropertyDescriptor,u=Object.defineProperty,l=Object.prototype,c=[];Object.freeze(c);var d={};Object.freeze(d);var f="undefined"!=typeof Proxy,h=Object.toString();function v(){f||r("Proxy not available")}function p(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var _=function(){};function g(e){return"function"==typeof e}function b(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function m(e){return null!==e&&"object"==typeof e}function y(e){if(!m(e))return!1;var t=Object.getPrototypeOf(e);if(null==t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n.toString()===h}function O(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function x(e,t,n){u(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function w(e,t,n){u(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function S(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return m(e)&&!0===e[n]}}function k(e){return null!=e&&"[object Map]"===Object.prototype.toString.call(e)}function A(e){return null!=e&&"[object Set]"===Object.prototype.toString.call(e)}var j=void 0!==Object.getOwnPropertySymbols,E="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:j?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function T(e){return null===e?null:"object"==typeof e?""+e:e}function P(e,t){return l.hasOwnProperty.call(e,t)}var C=Object.getOwnPropertyDescriptors||function(e){var t={};return E(e).forEach((function(n){t[n]=s(e,n)})),t};function R(e,t){return!!(e&t)}function M(e,t,n){return n?e|=t:e&=~t,e}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,K(r.key),r)}}function V(e,t,n){return t&&D(e.prototype,t),n&&D(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function L(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return B(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function I(){return I=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I.apply(null,arguments)}function N(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,U(e,t)}function U(e,t){return U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},U(e,t)}function K(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var W=Symbol("mobx-stored-annotations");function z(e){return Object.assign((function(t,n){if(G(n))return e.decorate_20223_(t,n);q(t,n,e)}),e)}function q(e,t,n){P(e,W)||x(e,W,I({},e[W])),function(e){return e.annotationType_===Z}(n)||(e[W][t]=n)}function G(e){return"object"==typeof e&&"string"==typeof e.kind}var H=Symbol("mobx administration"),$=function(){function e(e){void 0===e&&(e="Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=Ye.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.reportObserved=function(){return mt(this)},t.reportChanged=function(){gt(),yt(this),bt()},t.toString=function(){return this.name_},V(e,[{key:"isBeingObserved",get:function(){return R(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=M(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return R(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=M(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return R(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=M(this.flags_,e.diffValueMask_,1===t)}}])}();$.isBeingObservedMask_=1,$.isPendingUnobservationMask_=2,$.diffValueMask_=4;var F=S("Atom",$);function X(e,t,n){void 0===t&&(t=_),void 0===n&&(n=_);var r=new $(e);return t!==_&&Kt(It,r,t,undefined),n!==_&&Ut(r,n),r}var Y={identity:function(e,t){return e===t},structural:function(e,t){return ir(e,t)},default:function(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e==1/t:e!=e&&t!=t},shallow:function(e,t){return ir(e,t,1)}};function J(e,t,n){return en(e)?e:Array.isArray(e)?De.array(e,{name:n}):y(e)?De.object(e,void 0,{name:n}):k(e)?De.map(e,{name:n}):A(e)?De.set(e,{name:n}):"function"!=typeof e||Vt(e)||Zt(e)?e:O(e)?Jt(e):Dt(n,e)}function Q(e){return e}var Z="override";function ee(e,t){return{annotationType_:e,options_:t,make_:te,extend_:ne,decorate_20223_:re}}function te(e,t,n,r){var i;if(null!=(i=this.options_)&&i.bound)return null===this.extend_(e,t,n,!1)?0:1;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(Vt(n.value))return 1;var o=ie(e,this,t,n,!1);return u(r,t,o),2}function ne(e,t,n,r){var i=ie(e,this,t,n);return e.defineProperty_(t,i,r)}function re(e,t){var n,i=t.kind,o=t.name,a=t.addInitializer,s=this,u=function(e){var t,n,r,i;return qe(null!=(t=null==(n=s.options_)?void 0:n.name)?t:o.toString(),e,null!=(r=null==(i=s.options_)?void 0:i.autoAction)&&r)};return"field"==i?function(e){var t,n=e;return Vt(n)||(n=u(n)),null!=(t=s.options_)&&t.bound&&((n=n.bind(this)).isMobxAction=!0),n}:"method"==i?(Vt(e)||(e=u(e)),null!=(n=this.options_)&&n.bound&&a((function(){var e=this,t=e[o].bind(e);t.isMobxAction=!0,e[o]=t})),e):void r("Cannot apply '"+s.annotationType_+"' to '"+String(o)+"' (kind: "+i+"):\n'"+s.annotationType_+"' can only be used on properties with a function value.")}function ie(e,t,n,r,i){var o,a,s,u,l,c,d,f;void 0===i&&(i=ht.safeDescriptors),f=r,t.annotationType_,f.value;var h,v=r.value;return null!=(o=t.options_)&&o.bound&&(v=v.bind(null!=(h=e.proxy_)?h:e.target_)),{value:qe(null!=(a=null==(s=t.options_)?void 0:s.name)?a:n.toString(),v,null!=(u=null==(l=t.options_)?void 0:l.autoAction)&&u,null!=(c=t.options_)&&c.bound?null!=(d=e.proxy_)?d:e.target_:void 0),configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function oe(e,t){return{annotationType_:e,options_:t,make_:ae,extend_:se,decorate_20223_:ue}}function ae(e,t,n,r){var i;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(null!=(i=this.options_)&&i.bound&&(!P(e.target_,t)||!Zt(e.target_[t]))&&null===this.extend_(e,t,n,!1))return 0;if(Zt(n.value))return 1;var o=le(e,this,0,n,!1,!1);return u(r,t,o),2}function se(e,t,n,r){var i,o=le(e,this,0,n,null==(i=this.options_)?void 0:i.bound);return e.defineProperty_(t,o,r)}function ue(e,t){var n,r=t.name,i=t.addInitializer;return Zt(e)||(e=Jt(e)),null!=(n=this.options_)&&n.bound&&i((function(){var e=this,t=e[r].bind(e);t.isMobXFlow=!0,e[r]=t})),e}function le(e,t,n,r,i,o){var a;void 0===o&&(o=ht.safeDescriptors),a=r,t.annotationType_,a.value;var s,u=r.value;return Zt(u)||(u=Jt(u)),i&&((u=u.bind(null!=(s=e.proxy_)?s:e.target_)).isMobXFlow=!0),{value:u,configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function ce(e,t){return{annotationType_:e,options_:t,make_:de,extend_:fe,decorate_20223_:he}}function de(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function fe(e,t,n,r){return i=n,this.annotationType_,i.get,e.defineComputedProperty_(t,I({},this.options_,{get:n.get,set:n.set}),r);var i}function he(e,t){var n=this,r=t.name;return(0,t.addInitializer)((function(){var t=Vn(this)[H],i=I({},n.options_,{get:e,context:this});i.name||(i.name="ObservableObject."+r.toString()),t.values_.set(r,new Xe(i))})),function(){return this[H].getObservablePropValue_(r)}}function ve(e,t){return{annotationType_:e,options_:t,make_:pe,extend_:_e,decorate_20223_:ge}}function pe(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function _e(e,t,n,r){var i,o;return this.annotationType_,e.defineObservableProperty_(t,n.value,null!=(i=null==(o=this.options_)?void 0:o.enhancer)?i:J,r)}function ge(e,t){var n=this,r=t.kind,i=t.name,o=new WeakSet;function a(e,t){var r,a,s=Vn(e)[H],u=new Fe(t,null!=(r=null==(a=n.options_)?void 0:a.enhancer)?r:J,"ObservableObject."+i.toString(),!1);s.values_.set(i,u),o.add(e)}if("accessor"==r)return{get:function(){return o.has(this)||a(this,e.get.call(this)),this[H].getObservablePropValue_(i)},set:function(e){return o.has(this)||a(this,e),this[H].setObservablePropValue_(i,e)},init:function(e){return o.has(this)||a(this,e),e}}}var be="true",me=ye();function ye(e){return{annotationType_:be,options_:e,make_:Oe,extend_:xe,decorate_20223_:we}}function Oe(e,t,n,r){var i,o,a,s;if(n.get)return Ne.make_(e,t,n,r);if(n.set){var l=qe(t.toString(),n.set);return r===e.target_?null===e.defineProperty_(t,{configurable:!ht.safeDescriptors||e.isPlainObject_,set:l})?0:2:(u(r,t,{configurable:!0,set:l}),2)}if(r!==e.target_&&"function"==typeof n.value)return O(n.value)?(null!=(s=this.options_)&&s.autoBind?Jt.bound:Jt).make_(e,t,n,r):(null!=(a=this.options_)&&a.autoBind?Dt.bound:Dt).make_(e,t,n,r);var c,d=!1===(null==(i=this.options_)?void 0:i.deep)?De.ref:De;return"function"==typeof n.value&&null!=(o=this.options_)&&o.autoBind&&(n.value=n.value.bind(null!=(c=e.proxy_)?c:e.target_)),d.make_(e,t,n,r)}function xe(e,t,n,r){var i,o,a;return n.get?Ne.extend_(e,t,n,r):n.set?e.defineProperty_(t,{configurable:!ht.safeDescriptors||e.isPlainObject_,set:qe(t.toString(),n.set)},r):("function"==typeof n.value&&null!=(i=this.options_)&&i.autoBind&&(n.value=n.value.bind(null!=(a=e.proxy_)?a:e.target_)),(!1===(null==(o=this.options_)?void 0:o.deep)?De.ref:De).extend_(e,t,n,r))}function we(e,t){r("'"+this.annotationType_+"' cannot be used as a decorator")}var Se={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function ke(e){return e||Se}Object.freeze(Se);var Ae=ve("observable"),je=ve("observable.ref",{enhancer:Q}),Ee=ve("observable.shallow",{enhancer:function(e,t,n){return null==e||Nn(e)||xn(e)||jn(e)||Cn(e)?e:Array.isArray(e)?De.array(e,{name:n,deep:!1}):y(e)?De.object(e,void 0,{name:n,deep:!1}):k(e)?De.map(e,{name:n,deep:!1}):A(e)?De.set(e,{name:n,deep:!1}):void 0}}),Te=ve("observable.struct",{enhancer:function(e,t){return ir(e,t)?t:e}}),Pe=z(Ae);function Ce(e){return!0===e.deep?J:!1===e.deep?Q:(t=e.defaultDecorator)&&null!=(n=null==(r=t.options_)?void 0:r.enhancer)?n:J;var t,n,r}function Re(e,t,n){return G(t)?Ae.decorate_20223_(e,t):b(t)?void q(e,t,Ae):en(e)?e:y(e)?De.object(e,t,n):Array.isArray(e)?De.array(e,t):k(e)?De.map(e,t):A(e)?De.set(e,t):"object"==typeof e&&null!==e?e:De.box(e,t)}a(Re,Pe);var Me,Be,De=a(Re,{box:function(e,t){var n=ke(t);return new Fe(e,Ce(n),n.name,!0,n.equals)},array:function(e,t){var n=ke(t);return(!1===ht.useProxies||!1===n.proxy?Jn:pn)(e,Ce(n),n.name)},map:function(e,t){var n=ke(t);return new An(e,Ce(n),n.name)},set:function(e,t){var n=ke(t);return new Pn(e,Ce(n),n.name)},object:function(e,t,n){return tr((function(){return function(e,t,n,r){var i=C(t);return tr((function(){var t=Vn(e,r)[H];E(i).forEach((function(e){t.extend_(e,i[e],!n||!(e in n)||n[e])}))})),e}(!1===ht.useProxies||!1===(null==n?void 0:n.proxy)?Vn({},n):function(e,t){var n,r;return v(),null!=(r=(n=(e=Vn(e,t))[H]).proxy_)?r:n.proxy_=new Proxy(e,rn)}({},n),e,t)}))},ref:z(je),shallow:z(Ee),deep:Pe,struct:z(Te)}),Ve="computed",Le=ce(Ve),Ie=ce("computed.struct",{equals:Y.structural}),Ne=function(e,t){if(G(t))return Le.decorate_20223_(e,t);if(b(t))return q(e,t,Le);if(y(e))return z(ce(Ve,e));var n=y(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new Xe(n)};Object.assign(Ne,Le),Ne.struct=z(Ie);var Ue=0,Ke=1,We=null!=(Me=null==(Be=s((function(){}),"name"))?void 0:Be.configurable)&&Me,ze={value:"action",configurable:!0,writable:!1,enumerable:!1};function qe(e,t,n,r){function i(){return Ge(0,n,t,r||this,arguments)}return void 0===n&&(n=!1),i.isMobxAction=!0,i.toString=function(){return t.toString()},We&&(ze.value=e,u(i,"name",ze)),i}function Ge(e,t,n,i,o){var a=function(e,t){var n=ht.trackingDerivation,r=!t||!n;gt();var i=ht.allowStateChanges;r&&(ot(),i=He(!0));var o={runAsAction_:r,prevDerivation_:n,prevAllowStateChanges_:i,prevAllowStateReads_:st(!0),notifySpy_:!1,startTime_:0,actionId_:Ke++,parentActionId_:Ue};return Ue=o.actionId_,o}(0,t);try{return n.apply(i,o)}catch(e){throw a.error_=e,e}finally{!function(e){Ue!==e.actionId_&&r(30),Ue=e.parentActionId_,void 0!==e.error_&&(ht.suppressReactionErrors=!0),$e(e.prevAllowStateChanges_),ut(e.prevAllowStateReads_),bt(),e.runAsAction_&&at(e.prevDerivation_),ht.suppressReactionErrors=!1}(a)}}function He(e){var t=ht.allowStateChanges;return ht.allowStateChanges=e,t}function $e(e){ht.allowStateChanges=e}var Fe=function(e){function t(t,n,r,i,o){var a;return void 0===r&&(r="ObservableValue"),void 0===i&&(i=!0),void 0===o&&(o=Y.default),(a=e.call(this,r)||this).enhancer=void 0,a.name_=void 0,a.equals=void 0,a.hasUnreportedChange_=!1,a.interceptors_=void 0,a.changeListeners_=void 0,a.value_=void 0,a.dehancer=void 0,a.enhancer=n,a.name_=r,a.equals=o,a.value_=n(t,void 0,r),a}N(t,e);var n=t.prototype;return n.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},n.set=function(e){this.value_,(e=this.prepareNewValue_(e))!==ht.UNCHANGED&&this.setNewValue_(e)},n.prepareNewValue_=function(e){if(on(this)){var t=sn(this,{object:this,type:fn,newValue:e});if(!t)return ht.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?ht.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),un(this)&&cn(this,{type:fn,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return an(this,e)},n.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:fn,newValue:this.value_,oldValue:void 0}),ln(this,e)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return T(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},t}($),Xe=function(){function e(e){this.dependenciesState_=Ye.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Ye.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Ze(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Je.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,e.get||r(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=qe("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?Y.structural:Y.default),this.scope_=e.context,this.requiresReaction_=e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){!function(e){e.lowestObserverState_===Ye.UP_TO_DATE_&&(e.lowestObserverState_=Ye.POSSIBLY_STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Ye.UP_TO_DATE_&&(e.dependenciesState_=Ye.POSSIBLY_STALE_,e.onBecomeStale_())})))}(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.get=function(){if(this.isComputing&&r(32,this.name_,this.derivation),0!==ht.inBatch||0!==this.observers_.size||this.keepAlive_){if(mt(this),tt(this)){var e=ht.trackingContext;this.keepAlive_&&!e&&(ht.trackingContext=this),this.trackAndCompute()&&function(e){e.lowestObserverState_!==Ye.STALE_&&(e.lowestObserverState_=Ye.STALE_,e.observers_.forEach((function(t){t.dependenciesState_===Ye.POSSIBLY_STALE_?t.dependenciesState_=Ye.STALE_:t.dependenciesState_===Ye.UP_TO_DATE_&&(e.lowestObserverState_=Ye.UP_TO_DATE_)})))}(this),ht.trackingContext=e}}else tt(this)&&(this.warnAboutUntrackedRead_(),gt(),this.value_=this.computeValue_(!1),bt());var t=this.value_;if(et(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter&&r(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter=!1}}else r(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===Ye.NOT_TRACKING_,n=this.computeValue_(!0),r=t||et(e)||et(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing=!0;var t,n=He(!1);if(e)t=nt(this,this.derivation,this.scope_);else if(!0===ht.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(e){t=new Ze(e)}return $e(n),this.isComputing=!1,t},t.suspend_=function(){this.keepAlive_||(rt(this),this.value_=void 0)},t.observe_=function(e,t){var n=this,r=!0,i=void 0;return function(e,t){var n,r,i,o;void 0===t&&(t=d);var a,s=null!=(n=null==(r=t)?void 0:r.name)?n:"Autorun";if(t.scheduler||t.delay){var u=function(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Lt}(t),l=!1;a=new Ot(s,(function(){l||(l=!0,u((function(){l=!1,a.isDisposed||a.track(c)})))}),t.onError,t.requiresObservable)}else a=new Ot(s,(function(){this.track(c)}),t.onError,t.requiresObservable);function c(){e(a)}return null!=(i=t)&&null!=(i=i.signal)&&i.aborted||a.schedule_(),a.getDisposer_(null==(o=t)?void 0:o.signal)}((function(){var o=n.get();if(!r||t){var a=ot();e({observableKind:"computed",debugObjectName:n.name_,type:fn,object:n,newValue:o,oldValue:i}),at(a)}r=!1,i=o}))},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return T(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},V(e,[{key:"isComputing",get:function(){return R(this.flags_,e.isComputingMask_)},set:function(t){this.flags_=M(this.flags_,e.isComputingMask_,t)}},{key:"isRunningSetter",get:function(){return R(this.flags_,e.isRunningSetterMask_)},set:function(t){this.flags_=M(this.flags_,e.isRunningSetterMask_,t)}},{key:"isBeingObserved",get:function(){return R(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=M(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return R(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=M(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return R(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=M(this.flags_,e.diffValueMask_,1===t)}}])}();Xe.isComputingMask_=1,Xe.isRunningSetterMask_=2,Xe.isBeingObservedMask_=4,Xe.isPendingUnobservationMask_=8,Xe.diffValueMask_=16;var Ye,Je,Qe=S("ComputedValue",Xe);!function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"}(Ye||(Ye={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Je||(Je={}));var Ze=function(e){this.cause=void 0,this.cause=e};function et(e){return e instanceof Ze}function tt(e){switch(e.dependenciesState_){case Ye.UP_TO_DATE_:return!1;case Ye.NOT_TRACKING_:case Ye.STALE_:return!0;case Ye.POSSIBLY_STALE_:for(var t=st(!0),n=ot(),r=e.observing_,i=r.length,o=0;o<i;o++){var a=r[o];if(Qe(a)){if(ht.disableErrorBoundaries)a.get();else try{a.get()}catch(e){return at(n),ut(t),!0}if(e.dependenciesState_===Ye.STALE_)return at(n),ut(t),!0}}return lt(e),at(n),ut(t),!1}}function nt(e,t,n){var r=st(!0);lt(e),e.newObserving_=new Array(0===e.runId_?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++ht.runId;var i,o=ht.trackingDerivation;if(ht.trackingDerivation=e,ht.inBatch++,!0===ht.disableErrorBoundaries)i=t.call(n);else try{i=t.call(n)}catch(e){i=new Ze(e)}return ht.inBatch--,ht.trackingDerivation=o,function(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=Ye.UP_TO_DATE_,i=0,o=e.unboundDepsCount_,a=0;a<o;a++){var s=n[a];0===s.diffValue&&(s.diffValue=1,i!==a&&(n[i]=s),i++),s.dependenciesState_>r&&(r=s.dependenciesState_)}for(n.length=i,e.newObserving_=null,o=t.length;o--;){var u=t[o];0===u.diffValue&&pt(u,e),u.diffValue=0}for(;i--;){var l=n[i];1===l.diffValue&&(l.diffValue=0,vt(l,e))}r!==Ye.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}(e),ut(r),i}function rt(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)pt(t[n],e);e.dependenciesState_=Ye.NOT_TRACKING_}function it(e){var t=ot();try{return e()}finally{at(t)}}function ot(){var e=ht.trackingDerivation;return ht.trackingDerivation=null,e}function at(e){ht.trackingDerivation=e}function st(e){var t=ht.allowStateReads;return ht.allowStateReads=e,t}function ut(e){ht.allowStateReads=e}function lt(e){if(e.dependenciesState_!==Ye.UP_TO_DATE_){e.dependenciesState_=Ye.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=Ye.UP_TO_DATE_}}var ct=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},dt=!0,ft=!1,ht=function(){var e=o();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(dt=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new ct).version&&(dt=!1),dt?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new ct):(setTimeout((function(){ft||r(35)}),1),new ct)}();function vt(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function pt(e,t){e.observers_.delete(t),0===e.observers_.size&&_t(e)}function _t(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,ht.pendingUnobservations.push(e))}function gt(){ht.inBatch++}function bt(){if(0==--ht.inBatch){St();for(var e=ht.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,0===n.observers_.size&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBUO()),n instanceof Xe&&n.suspend_())}ht.pendingUnobservations=[]}}function mt(e){var t=ht.trackingDerivation;return null!==t?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&ht.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(0===e.observers_.size&&ht.inBatch>0&&_t(e),!1)}function yt(e){e.lowestObserverState_!==Ye.STALE_&&(e.lowestObserverState_=Ye.STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Ye.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=Ye.STALE_})))}var Ot=function(){function e(e,t,n,r){void 0===e&&(e="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=Ye.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=Je.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=n,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,ht.pendingReactions.push(this),St())},t.runReaction_=function(){if(!this.isDisposed){gt(),this.isScheduled=!1;var e=ht.trackingContext;if(ht.trackingContext=this,tt(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(e){this.reportExceptionInDerivation_(e)}}ht.trackingContext=e,bt()}},t.track=function(e){if(!this.isDisposed){gt(),this.isRunning=!0;var t=ht.trackingContext;ht.trackingContext=this;var n=nt(this,e,void 0);ht.trackingContext=t,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&rt(this),et(n)&&this.reportExceptionInDerivation_(n.cause),bt()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(ht.disableErrorBoundaries)throw e;var n="[mobx] uncaught error in '"+this+"'";ht.suppressReactionErrors||console.error(n,e),ht.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(gt(),rt(this),bt()))},t.getDisposer_=function(e){var t=this,n=function n(){t.dispose(),null==e||null==e.removeEventListener||e.removeEventListener("abort",n)};return null==e||null==e.addEventListener||e.addEventListener("abort",n),n[H]=this,n},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1)},V(e,[{key:"isDisposed",get:function(){return R(this.flags_,e.isDisposedMask_)},set:function(t){this.flags_=M(this.flags_,e.isDisposedMask_,t)}},{key:"isScheduled",get:function(){return R(this.flags_,e.isScheduledMask_)},set:function(t){this.flags_=M(this.flags_,e.isScheduledMask_,t)}},{key:"isTrackPending",get:function(){return R(this.flags_,e.isTrackPendingMask_)},set:function(t){this.flags_=M(this.flags_,e.isTrackPendingMask_,t)}},{key:"isRunning",get:function(){return R(this.flags_,e.isRunningMask_)},set:function(t){this.flags_=M(this.flags_,e.isRunningMask_,t)}},{key:"diffValue",get:function(){return R(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=M(this.flags_,e.diffValueMask_,1===t)}}])}();Ot.isDisposedMask_=1,Ot.isScheduledMask_=2,Ot.isTrackPendingMask_=4,Ot.isRunningMask_=8,Ot.diffValueMask_=16;var xt=100,wt=function(e){return e()};function St(){ht.inBatch>0||ht.isRunningReactions||wt(kt)}function kt(){ht.isRunningReactions=!0;for(var e=ht.pendingReactions,t=0;e.length>0;){++t===xt&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r<i;r++)n[r].runReaction_()}ht.isRunningReactions=!1}var At=S("Reaction",Ot),jt="action",Et="autoAction",Tt=ee(jt),Pt=ee("action.bound",{bound:!0}),Ct=ee(Et,{autoAction:!0}),Rt=ee("autoAction.bound",{autoAction:!0,bound:!0});function Mt(e){return function(t,n){return g(t)?qe(t.name||"<unnamed action>",t,e):g(n)?qe(t,n,e):G(n)?(e?Ct:Tt).decorate_20223_(t,n):b(n)?q(t,n,e?Ct:Tt):b(t)?z(ee(e?Et:jt,{name:t,autoAction:e})):void 0}}var Bt=Mt(!1);Object.assign(Bt,Tt);var Dt=Mt(!0);function Vt(e){return g(e)&&!0===e.isMobxAction}Object.assign(Dt,Ct),Bt.bound=z(Pt),Dt.bound=z(Rt);var Lt=function(e){return e()};var It="onBO",Nt="onBUO";function Ut(e,t,n){return Kt(Nt,e,t,n)}function Kt(e,t,n,r){var i="function"==typeof r?Qn(t,n):Qn(t),o=g(r)?r:n,a=e+"L";return i[a]?i[a].add(o):i[a]=new Set([o]),function(){var e=i[a];e&&(e.delete(o),0===e.size&&delete i[a])}}var Wt="never",zt="always",qt="observed";function Gt(e){!0===e.isolateGlobalState&&function(){if((ht.pendingReactions.length||ht.inBatch||ht.isRunningReactions)&&r(36),ft=!0,dt){var e=o();0==--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),ht=new ct}}();var t,n,i=e.useProxies,a=e.enforceActions;if(void 0!==i&&(ht.useProxies=i===zt||i!==Wt&&"undefined"!=typeof Proxy),"ifavailable"===i&&(ht.verifyProxies=!0),void 0!==a){var s=a===zt?zt:a===qt;ht.enforceActions=s,ht.allowStateChanges=!0!==s&&s!==zt}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(t){t in e&&(ht[t]=!!e[t])})),ht.allowStateReads=!ht.observableRequiresReaction,e.reactionScheduler&&(t=e.reactionScheduler,n=wt,wt=function(e){return t((function(){return n(e)}))})}function Ht(e){var t,n={name:e.name_};return e.observing_&&e.observing_.length>0&&(n.dependencies=(t=e.observing_,Array.from(new Set(t))).map(Ht)),n}var $t=0;function Ft(){this.message="FLOW_CANCELLED"}Ft.prototype=Object.create(Error.prototype);var Xt=oe("flow"),Yt=oe("flow.bound",{bound:!0}),Jt=Object.assign((function(e,t){if(G(t))return Xt.decorate_20223_(e,t);if(b(t))return q(e,t,Xt);var n=e,r=n.name||"<unnamed flow>",i=function(){var e,t=arguments,i=++$t,o=Bt(r+" - runid: "+i+" - init",n).apply(this,t),a=void 0,s=new Promise((function(t,n){var s=0;function u(e){var t;a=void 0;try{t=Bt(r+" - runid: "+i+" - yield "+s++,o.next).call(o,e)}catch(e){return n(e)}c(t)}function l(e){var t;a=void 0;try{t=Bt(r+" - runid: "+i+" - yield "+s++,o.throw).call(o,e)}catch(e){return n(e)}c(t)}function c(e){if(!g(null==e?void 0:e.then))return e.done?t(e.value):(a=Promise.resolve(e.value)).then(u,l);e.then(c,n)}e=n,u(void 0)}));return s.cancel=Bt(r+" - runid: "+i+" - cancel",(function(){try{a&&Qt(a);var t=o.return(void 0),n=Promise.resolve(t.value);n.then(_,_),Qt(n),e(new Ft)}catch(t){e(t)}})),s};return i.isMobXFlow=!0,i}),Xt);function Qt(e){g(e.cancel)&&e.cancel()}function Zt(e){return!0===(null==e?void 0:e.isMobXFlow)}function en(e){return function(e,t){return!!e&&(void 0!==t?!!Nn(e)&&e[H].values_.has(t):Nn(e)||!!e[H]||F(e)||At(e)||Qe(e))}(e)}function tn(e,t){void 0===t&&(t=void 0),gt();try{return e.apply(t)}finally{bt()}}function nn(e){return e[H]}Jt.bound=z(Yt);var rn={has:function(e,t){return nn(e).has_(t)},get:function(e,t){return nn(e).get_(t)},set:function(e,t,n){var r;return!!b(t)&&(null==(r=nn(e).set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return!!b(t)&&(null==(n=nn(e).delete_(t,!0))||n)},defineProperty:function(e,t,n){var r;return null==(r=nn(e).defineProperty_(t,n))||r},ownKeys:function(e){return nn(e).ownKeys_()},preventExtensions:function(e){r(13)}};function on(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function an(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),p((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function sn(e,t){var n=ot();try{for(var i=[].concat(e.interceptors_||[]),o=0,a=i.length;o<a&&((t=i[o](t))&&!t.type&&r(14),t);o++);return t}finally{at(n)}}function un(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function ln(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),p((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function cn(e,t){var n=ot(),r=e.changeListeners_;if(r){for(var i=0,o=(r=r.slice()).length;i<o;i++)r[i](t);at(n)}}var dn="splice",fn="update",hn={get:function(e,t){var n=e[H];return t===H?n:"length"===t?n.getArrayLength_():"string"!=typeof t||isNaN(t)?P(_n,t)?_n[t]:e[t]:n.get_(parseInt(t))},set:function(e,t,n){var r=e[H];return"length"===t&&r.setArrayLength_(n),"symbol"==typeof t||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions:function(){r(15)}},vn=function(){function e(e,t,n,r){void 0===e&&(e="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=n,this.legacyMode_=r,this.atom_=new $(e),this.enhancer_=function(e,n){return t(e,n,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.dehanceValues_=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},t.intercept_=function(e){return an(this,e)},t.observe_=function(e,t){return void 0===t&&(t=!1),t&&e({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),ln(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!=typeof e||isNaN(e)||e<0)&&r("Out of range: "+e);var t=this.values_.length;if(e!==t)if(e>t){for(var n=new Array(e-t),i=0;i<e-t;i++)n[i]=void 0;this.spliceWithArray_(t,0,n)}else this.spliceWithArray_(e,t-e)},t.updateArrayLength_=function(e,t){e!==this.lastKnownLength_&&r(16),this.lastKnownLength_+=t,this.legacyMode_&&t>0&&Yn(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;this.atom_;var i=this.values_.length;if(void 0===e?e=0:e>i?e=i:e<0&&(e=Math.max(0,i+e)),t=1===arguments.length?i-e:null==t?0:Math.max(0,Math.min(t,i-e)),void 0===n&&(n=c),on(this)){var o=sn(this,{object:this.proxy_,type:dn,index:e,removedCount:t,added:n});if(!o)return c;t=o.removedCount,n=o.added}if(n=0===n.length?n:n.map((function(e){return r.enhancer_(e,void 0)})),this.legacyMode_){var a=n.length-t;this.updateArrayLength_(i,a)}var s=this.spliceItemsIntoValues_(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice_(e,n,s),this.dehanceValues_(s)},t.spliceItemsIntoValues_=function(e,t,n){var r;if(n.length<1e4)return(r=this.values_).splice.apply(r,[e,t].concat(n));var i=this.values_.slice(e,e+t),o=this.values_.slice(e+t);this.values_.length+=n.length-t;for(var a=0;a<n.length;a++)this.values_[e+a]=n[a];for(var s=0;s<o.length;s++)this.values_[e+n.length+s]=o[s];return i},t.notifyArrayChildUpdate_=function(e,t,n){var r=!this.owned_&&!1,i=un(this),o=i||r?{observableKind:"array",object:this.proxy_,type:fn,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;this.atom_.reportChanged(),i&&cn(this,o)},t.notifyArraySplice_=function(e,t,n){var r=!this.owned_&&!1,i=un(this),o=i||r?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:dn,index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom_.reportChanged(),i&&cn(this,o)},t.get_=function(e){if(!(this.legacyMode_&&e>=this.values_.length))return this.atom_.reportObserved(),this.dehanceValue_(this.values_[e]);console.warn("[mobx] Out of bounds read: "+e)},t.set_=function(e,t){var n=this.values_;if(this.legacyMode_&&e>n.length&&r(17,e,n.length),e<n.length){this.atom_;var i=n[e];if(on(this)){var o=sn(this,{type:fn,object:this.proxy_,index:e,newValue:t});if(!o)return;t=o.newValue}(t=this.enhancer_(t,i))!==i&&(n[e]=t,this.notifyArrayChildUpdate_(e,t,i))}else{for(var a=new Array(e+1-n.length),s=0;s<a.length-1;s++)a[s]=void 0;a[a.length-1]=t,this.spliceWithArray_(n.length,0,a)}},e}();function pn(e,t,n,r){return void 0===n&&(n="ObservableArray"),void 0===r&&(r=!1),v(),tr((function(){var i=new vn(n,t,r,!1);w(i.values_,H,i);var o=new Proxy(i.values_,hn);return i.proxy_=o,e&&e.length&&i.spliceWithArray_(0,0,e),o}))}var _n={clear:function(){return this.splice(0)},replace:function(e){var t=this[H];return t.spliceWithArray_(0,t.values_.length,e)},toJSON:function(){return this.slice()},splice:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=this[H];switch(arguments.length){case 0:return[];case 1:return o.spliceWithArray_(e);case 2:return o.spliceWithArray_(e,t)}return o.spliceWithArray_(e,t,r)},spliceWithArray:function(e,t,n){return this[H].spliceWithArray_(e,t,n)},push:function(){for(var e=this[H],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(e.values_.length,0,n),e.values_.length},pop:function(){return this.splice(Math.max(this[H].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[H],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(0,0,n),e.values_.length},reverse:function(){return ht.trackingDerivation&&r(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){ht.trackingDerivation&&r(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[H],n=t.dehanceValues_(t.values_).indexOf(e);return n>-1&&(this.splice(n,1),!0)}};function gn(e,t){"function"==typeof Array.prototype[e]&&(_n[e]=t(e))}function bn(e){return function(){var t=this[H];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function mn(e){return function(t,n){var r=this,i=this[H];return i.atom_.reportObserved(),i.dehanceValues_(i.values_)[e]((function(e,i){return t.call(n,e,i,r)}))}}function yn(e){return function(){var t=this,n=this[H];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),i=arguments[0];return arguments[0]=function(e,n,r){return i(e,n,r,t)},r[e].apply(r,arguments)}}gn("at",bn),gn("concat",bn),gn("flat",bn),gn("includes",bn),gn("indexOf",bn),gn("join",bn),gn("lastIndexOf",bn),gn("slice",bn),gn("toString",bn),gn("toLocaleString",bn),gn("toSorted",bn),gn("toSpliced",bn),gn("with",bn),gn("every",mn),gn("filter",mn),gn("find",mn),gn("findIndex",mn),gn("findLast",mn),gn("findLastIndex",mn),gn("flatMap",mn),gn("forEach",mn),gn("map",mn),gn("some",mn),gn("toReversed",mn),gn("reduce",yn),gn("reduceRight",yn);var On=S("ObservableArrayAdministration",vn);function xn(e){return m(e)&&On(e[H])}var wn={},Sn="add",kn="delete",An=function(){function e(e,t,n){var i=this;void 0===t&&(t=J),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[H]=wn,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=t,this.name_=n,g(Map)||r(18),tr((function(){i.keysAtom_=X("ObservableMap.keys()"),i.data_=new Map,i.hasMap_=new Map,e&&i.merge(e)}))}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!ht.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new Fe(this.has_(e),Q,"ObservableMap.key?",!1);this.hasMap_.set(e,r),Ut(r,(function(){return t.hasMap_.delete(e)}))}return n.get()},t.set=function(e,t){var n=this.has_(e);if(on(this)){var r=sn(this,{type:n?fn:Sn,object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this.updateValue_(e,t):this.addValue_(e,t),this},t.delete=function(e){var t=this;if(this.keysAtom_,on(this)&&!sn(this,{type:kn,object:this,name:e}))return!1;if(this.has_(e)){var n=un(this),r=n?{observableKind:"map",debugObjectName:this.name_,type:kn,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return tn((function(){var n;t.keysAtom_.reportChanged(),null==(n=t.hasMap_.get(e))||n.setNewValue_(!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)})),n&&cn(this,r),!0}return!1},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==ht.UNCHANGED){var r=un(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:fn,object:this,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),r&&cn(this,i)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,tn((function(){var r,i=new Fe(t,n.enhancer_,"ObservableMap.key",!1);n.data_.set(e,i),t=i.value_,null==(r=n.hasMap_.get(e))||r.setNewValue_(!0),n.keysAtom_.reportChanged()}));var r=un(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:Sn,object:this,name:e,newValue:t}:null;r&&cn(this,i)},t.get=function(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var e=this,t=this.keys();return En({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:e.get(i)}}})},t.entries=function(){var e=this,t=this.keys();return En({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:[i,e.get(i)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=L(this);!(n=r()).done;){var i=n.value,o=i[0],a=i[1];e.call(t,a,o,this)}},t.merge=function(e){var t=this;return jn(e)&&(e=new Map(e)),tn((function(){var n,i,o;y(e)?function(e){var t=Object.keys(e);if(!j)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter((function(t){return l.propertyIsEnumerable.call(e,t)}))):t}(e).forEach((function(n){return t.set(n,e[n])})):Array.isArray(e)?e.forEach((function(e){var n=e[0],r=e[1];return t.set(n,r)})):k(e)?(n=e,i=Object.getPrototypeOf(n),o=Object.getPrototypeOf(i),null!==Object.getPrototypeOf(o)&&r(19,e),e.forEach((function(e,n){return t.set(n,e)}))):null!=e&&r(20,e)})),this},t.clear=function(){var e=this;tn((function(){it((function(){for(var t,n=L(e.keys());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.replace=function(e){var t=this;return tn((function(){for(var n,i=function(e){if(k(e)||jn(e))return e;if(Array.isArray(e))return new Map(e);if(y(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return r(21,e)}(e),o=new Map,a=!1,s=L(t.data_.keys());!(n=s()).done;){var u=n.value;if(!i.has(u))if(t.delete(u))a=!0;else{var l=t.data_.get(u);o.set(u,l)}}for(var c,d=L(i.entries());!(c=d()).done;){var f=c.value,h=f[0],v=f[1],p=t.data_.has(h);if(t.set(h,v),t.data_.has(h)){var _=t.data_.get(h);o.set(h,_),p||(a=!0)}}if(!a)if(t.data_.size!==o.size)t.keysAtom_.reportChanged();else for(var g=t.data_.keys(),b=o.keys(),m=g.next(),O=b.next();!m.done;){if(m.value!==O.value){t.keysAtom_.reportChanged();break}m=g.next(),O=b.next()}t.data_=o})),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return ln(this,e)},t.intercept_=function(e){return an(this,e)},V(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),jn=S("ObservableMap",An);function En(e){return e[Symbol.toStringTag]="MapIterator",ur(e)}var Tn={},Pn=function(){function e(e,t,n){var i=this;void 0===t&&(t=J),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[H]=Tn,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=n,g(Set)||r(22),this.enhancer_=function(e,r){return t(e,r,n)},tr((function(){i.atom_=X(i.name_),e&&i.replace(e)}))}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.clear=function(){var e=this;tn((function(){it((function(){for(var t,n=L(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.forEach=function(e,t){for(var n,r=L(this);!(n=r()).done;){var i=n.value;e.call(t,i,i,this)}},t.add=function(e){var t=this;if(this.atom_,on(this)&&!sn(this,{type:Sn,object:this,newValue:e}))return this;if(!this.has(e)){tn((function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()}));var n=un(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:Sn,object:this,newValue:e}:null;n&&cn(this,r)}return this},t.delete=function(e){var t=this;if(on(this)&&!sn(this,{type:kn,object:this,oldValue:e}))return!1;if(this.has(e)){var n=un(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:kn,object:this,oldValue:e}:null;return tn((function(){t.atom_.reportChanged(),t.data_.delete(e)})),n&&cn(this,r),!0}return!1},t.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},t.entries=function(){var e=0,t=Array.from(this.keys()),n=Array.from(this.values());return Rn({next:function(){var r=e;return e+=1,r<n.length?{value:[t[r],n[r]],done:!1}:{value:void 0,done:!0}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var e=this,t=0,n=Array.from(this.data_.values());return Rn({next:function(){return t<n.length?{value:e.dehanceValue_(n[t++]),done:!1}:{value:void 0,done:!0}}})},t.intersection=function(e){return A(e)&&!Cn(e)?e.intersection(this):new Set(this).intersection(e)},t.union=function(e){return A(e)&&!Cn(e)?e.union(this):new Set(this).union(e)},t.difference=function(e){return new Set(this).difference(e)},t.symmetricDifference=function(e){return A(e)&&!Cn(e)?e.symmetricDifference(this):new Set(this).symmetricDifference(e)},t.isSubsetOf=function(e){return new Set(this).isSubsetOf(e)},t.isSupersetOf=function(e){return new Set(this).isSupersetOf(e)},t.isDisjointFrom=function(e){return A(e)&&!Cn(e)?e.isDisjointFrom(this):new Set(this).isDisjointFrom(e)},t.replace=function(e){var t=this;return Cn(e)&&(e=new Set(e)),tn((function(){Array.isArray(e)||A(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!=e&&r("Cannot initialize set from "+e)})),this},t.observe_=function(e,t){return ln(this,e)},t.intercept_=function(e){return an(this,e)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},V(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),Cn=S("ObservableSet",Pn);function Rn(e){return e[Symbol.toStringTag]="SetIterator",ur(e)}var Mn=Object.create(null),Bn="remove",Dn=function(){function e(e,t,n,r){void 0===t&&(t=new Map),void 0===r&&(r=me),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=e,this.values_=t,this.name_=n,this.defaultAnnotation_=r,this.keysAtom_=new $("ObservableObject.keys"),this.isPlainObject_=y(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(e){return this.values_.get(e).get()},t.setObservablePropValue_=function(e,t){var n=this.values_.get(e);if(n instanceof Xe)return n.set(t),!0;if(on(this)){var r=sn(this,{type:fn,object:this.proxy_||this.target_,name:e,newValue:t});if(!r)return null;t=r.newValue}if((t=n.prepareNewValue_(t))!==ht.UNCHANGED){var i=un(this),o=i?{type:fn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),i&&cn(this,o)}return!0},t.get_=function(e){return ht.trackingDerivation&&!P(this.target_,e)&&this.has_(e),this.target_[e]},t.set_=function(e,t,n){return void 0===n&&(n=!1),P(this.target_,e)?this.values_.has(e)?this.setObservablePropValue_(e,t):n?Reflect.set(this.target_,e,t):(this.target_[e]=t,!0):this.extend_(e,{value:t,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,n)},t.has_=function(e){if(!ht.trackingDerivation)return e in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var t=this.pendingKeys_.get(e);return t||(t=new Fe(e in this.target_,Q,"ObservableObject.key?",!1),this.pendingKeys_.set(e,t)),t.get()},t.make_=function(e,t){if(!0===t&&(t=this.defaultAnnotation_),!1!==t){if(!(e in this.target_)){var n;if(null!=(n=this.target_[W])&&n[e])return;r(1,t.annotationType_,this.name_+"."+e.toString())}for(var i=this.target_;i&&i!==l;){var o=s(i,e);if(o){var a=t.make_(this,e,o,i);if(0===a)return;if(1===a)break}i=Object.getPrototypeOf(i)}Un(this,0,e)}},t.extend_=function(e,t,n,r){if(void 0===r&&(r=!1),!0===n&&(n=this.defaultAnnotation_),!1===n)return this.defineProperty_(e,t,r);var i=n.extend_(this,e,t,r);return i&&Un(this,0,e),i},t.defineProperty_=function(e,t,n){void 0===n&&(n=!1),this.keysAtom_;try{gt();var r=this.delete_(e);if(!r)return r;if(on(this)){var i=sn(this,{object:this.proxy_||this.target_,name:e,type:Sn,newValue:t.value});if(!i)return null;var o=i.newValue;t.value!==o&&(t=I({},t,{value:o}))}if(n){if(!Reflect.defineProperty(this.target_,e,t))return!1}else u(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{bt()}return!0},t.defineObservableProperty_=function(e,t,n,r){void 0===r&&(r=!1),this.keysAtom_;try{gt();var i=this.delete_(e);if(!i)return i;if(on(this)){var o=sn(this,{object:this.proxy_||this.target_,name:e,type:Sn,newValue:t});if(!o)return null;t=o.newValue}var a=In(e),s={configurable:!ht.safeDescriptors||this.isPlainObject_,enumerable:!0,get:a.get,set:a.set};if(r){if(!Reflect.defineProperty(this.target_,e,s))return!1}else u(this.target_,e,s);var l=new Fe(t,n,"ObservableObject.key",!1);this.values_.set(e,l),this.notifyPropertyAddition_(e,l.value_)}finally{bt()}return!0},t.defineComputedProperty_=function(e,t,n){void 0===n&&(n=!1),this.keysAtom_;try{gt();var r=this.delete_(e);if(!r)return r;if(on(this)&&!sn(this,{object:this.proxy_||this.target_,name:e,type:Sn,newValue:void 0}))return null;t.name||(t.name="ObservableObject.key"),t.context=this.proxy_||this.target_;var i=In(e),o={configurable:!ht.safeDescriptors||this.isPlainObject_,enumerable:!1,get:i.get,set:i.set};if(n){if(!Reflect.defineProperty(this.target_,e,o))return!1}else u(this.target_,e,o);this.values_.set(e,new Xe(t)),this.notifyPropertyAddition_(e,void 0)}finally{bt()}return!0},t.delete_=function(e,t){if(void 0===t&&(t=!1),this.keysAtom_,!P(this.target_,e))return!0;if(on(this)&&!sn(this,{object:this.proxy_||this.target_,name:e,type:Bn}))return null;try{var n;gt();var r,i=un(this),o=this.values_.get(e),a=void 0;if(!o&&i&&(a=null==(r=s(this.target_,e))?void 0:r.value),t){if(!Reflect.deleteProperty(this.target_,e))return!1}else delete this.target_[e];if(o&&(this.values_.delete(e),o instanceof Fe&&(a=o.value_),yt(o)),this.keysAtom_.reportChanged(),null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(e in this.target_),i){var u={type:Bn,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:a,name:e};i&&cn(this,u)}}finally{bt()}return!0},t.observe_=function(e,t){return ln(this,e)},t.intercept_=function(e){return an(this,e)},t.notifyPropertyAddition_=function(e,t){var n,r=un(this);if(r){var i=r?{type:Sn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;r&&cn(this,i)}null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),E(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function Vn(e,t){var n;if(P(e,H))return e;var r=null!=(n=null==t?void 0:t.name)?n:"ObservableObject",i=new Dn(e,new Map,String(r),function(e){var t;return e?null!=(t=e.defaultDecorator)?t:ye(e):void 0}(t));return x(e,H,i),e}var Ln=S("ObservableObjectAdministration",Dn);function In(e){return Mn[e]||(Mn[e]={get:function(){return this[H].getObservablePropValue_(e)},set:function(t){return this[H].setObservablePropValue_(e,t)}})}function Nn(e){return!!m(e)&&Ln(e[H])}function Un(e,t,n){var r;null==(r=e.target_[W])||delete r[n]}var Kn,Wn,zn=Fn(0),qn=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,!1===e}(),Gn=0,Hn=function(){};Kn=Hn,Wn=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(Kn.prototype,Wn):void 0!==Kn.prototype.__proto__?Kn.prototype.__proto__=Wn:Kn.prototype=Wn;var $n=function(e){function t(t,n,r,i){var o;return void 0===r&&(r="ObservableArray"),void 0===i&&(i=!1),o=e.call(this)||this,tr((function(){var e=new vn(r,n,i,!0);e.proxy_=o,w(o,H,e),t&&t.length&&o.spliceWithArray(0,0,t),qn&&Object.defineProperty(o,"0",zn)})),o}N(t,e);var n=t.prototype;return n.concat=function(){this[H].atom_.reportObserved();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Array.prototype.concat.apply(this.slice(),t.map((function(e){return xn(e)?e.slice():e})))},n[Symbol.iterator]=function(){var e=this,t=0;return ur({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})},V(t,[{key:"length",get:function(){return this[H].getArrayLength_()},set:function(e){this[H].setArrayLength_(e)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(Hn);function Fn(e){return{enumerable:!1,configurable:!0,get:function(){return this[H].get_(e)},set:function(t){this[H].set_(e,t)}}}function Xn(e){u($n.prototype,""+e,Fn(e))}function Yn(e){if(e>Gn){for(var t=Gn;t<e+100;t++)Xn(t);Gn=e}}function Jn(e,t,n){return new $n(e,t,n)}function Qn(e,t){if("object"==typeof e&&null!==e){if(xn(e))return void 0!==t&&r(23),e[H].atom_;if(Cn(e))return e.atom_;if(jn(e)){if(void 0===t)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||r(25,t,er(e)),n}if(Nn(e)){if(!t)return r(26);var i=e[H].values_.get(t);return i||r(27,t,er(e)),i}if(F(e)||Qe(e)||At(e))return e}else if(g(e)&&At(e[H]))return e[H];r(28)}function Zn(e,t){return e||r(29),void 0!==t?Zn(Qn(e,t)):F(e)||Qe(e)||At(e)||jn(e)||Cn(e)?e:e[H]?e[H]:void r(24,e)}function er(e,t){var n;if(void 0!==t)n=Qn(e,t);else{if(Vt(e))return e.name;n=Nn(e)||jn(e)||Cn(e)?Zn(e):Qn(e)}return n.name_}function tr(e){var t=ot(),n=He(!0);gt();try{return e()}finally{bt(),$e(n),at(t)}}Object.entries(_n).forEach((function(e){var t=e[0],n=e[1];"concat"!==t&&x($n.prototype,t,n)})),Yn(1e3);var nr,rr=l.toString;function ir(e,t,n){return void 0===n&&(n=-1),or(e,t,n)}function or(e,t,n,r,i){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var o=typeof e;if("function"!==o&&"object"!==o&&"object"!=typeof t)return!1;var a=rr.call(e);if(a!==rr.call(t))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":n>=0&&n++}e=ar(e),t=ar(t);var s="[object Array]"===a;if(!s){if("object"!=typeof e||"object"!=typeof t)return!1;var u=e.constructor,l=t.constructor;if(u!==l&&!(g(u)&&u instanceof u&&g(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),i=i||[];for(var c=(r=r||[]).length;c--;)if(r[c]===e)return i[c]===t;if(r.push(e),i.push(t),s){if((c=e.length)!==t.length)return!1;for(;c--;)if(!or(e[c],t[c],n-1,r,i))return!1}else{var d,f=Object.keys(e);if(c=f.length,Object.keys(t).length!==c)return!1;for(;c--;)if(!P(t,d=f[c])||!or(e[d],t[d],n-1,r,i))return!1}return r.pop(),i.pop(),!0}function ar(e){return xn(e)?e.slice():k(e)||jn(e)||A(e)||Cn(e)?Array.from(e.entries()):e}var sr=(null==(nr=o().Iterator)?void 0:nr.prototype)||{};function ur(e){return e[Symbol.iterator]=lr,Object.assign(Object.create(sr),e)}function lr(){return this}["Symbol","Map","Set"].forEach((function(e){void 0===o()[e]&&r("MobX requires global '"+e+"' to be available or polyfilled")})),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}},extras:{getDebugName:er},$mobx:H});var cr=n(953),dr=n.n(cr);if(!cr.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!function(e,t,n){return tr((function(){var r=Vn(e,n)[H];null!=t||(t=function(e){return P(e,W)||x(e,W,I({},e[W])),e[W]}(e)),E(t).forEach((function(e){return r.make_(e,t[e])}))})),e})throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");const fr=require("react-dom");function hr(e){e()}function vr(e){e||(e=hr),Gt({reactionScheduler:e})}var pr=function(){return!0};function _r(e){return Ht(Qn(e,t));var t}var gr=!1;function br(e){gr=e}function mr(){return gr}var yr,Or,xr=function(){function e(e){var t=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(e){void 0===e&&(e=1e4),clearTimeout(t.sweepTimeout),t.sweepTimeout=void 0;var n=Date.now();t.registrations.forEach((function(r,i){n-r.registeredAt>=e&&(t.finalize(r.value),t.registrations.delete(i))})),t.registrations.size>0&&t.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){t.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){this.registrations.set(n,{value:t,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.registrations.delete(e)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){void 0===this.sweepTimeout&&(this.sweepTimeout=setTimeout(this.sweep,1e4))}}),e}(),wr=new("undefined"!=typeof FinalizationRegistry?FinalizationRegistry:xr)((function(e){var t;null===(t=e.reaction)||void 0===t||t.dispose(),e.reaction=null})),Sr=n(634);function kr(e){e.reaction=new Ot("observer".concat(e.name),(function(){var t;e.stateVersion=Symbol(),null===(t=e.onStoreChange)||void 0===t||t.call(e)}))}function Ar(e,t){if(void 0===t&&(t="observed"),mr())return e();var n=dr().useRef(null);if(!n.current){var r={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(e){return wr.unregister(r),r.onStoreChange=e,r.reaction||(kr(r),r.stateVersion=Symbol()),function(){var e;r.onStoreChange=null,null===(e=r.reaction)||void 0===e||e.dispose(),r.reaction=null}},getSnapshot:function(){return r.stateVersion}};n.current=r}var i,o,a=n.current;if(a.reaction||(kr(a),wr.register(n,a,a)),dr().useDebugValue(a.reaction,_r),(0,Sr.useSyncExternalStore)(a.subscribe,a.getSnapshot,a.getSnapshot),a.reaction.track((function(){try{i=e()}catch(e){o=e}})),o)throw o;return i}var jr="function"==typeof Symbol&&Symbol.for,Er=null!==(Or=null===(yr=Object.getOwnPropertyDescriptor((function(){}),"name"))||void 0===yr?void 0:yr.configurable)&&void 0!==Or&&Or,Tr=jr?Symbol.for("react.forward_ref"):"function"==typeof cr.forwardRef&&(0,cr.forwardRef)((function(e){return null})).$$typeof,Pr=jr?Symbol.for("react.memo"):"function"==typeof cr.memo&&(0,cr.memo)((function(e){return null})).$$typeof;function Cr(e,t){var n;if(Pr&&e.$$typeof===Pr)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");if(mr())return e;var r=null!==(n=null==t?void 0:t.forwardRef)&&void 0!==n&&n,i=e,o=e.displayName||e.name;if(Tr&&e.$$typeof===Tr&&(r=!0,"function"!=typeof(i=e.render)))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var a,s,u=function(e,t){return Ar((function(){return i(e,t)}),o)};return u.displayName=e.displayName,Er&&Object.defineProperty(u,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(u.contextTypes=e.contextTypes),r&&(u=(0,cr.forwardRef)(u)),u=(0,cr.memo)(u),a=e,s=u,Object.keys(a).forEach((function(e){Mr[e]||Object.defineProperty(s,e,Object.getOwnPropertyDescriptor(a,e))})),u}var Rr,Mr={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function Br(e){var t=e.children,n=e.render;t&&n&&console.error("MobX Observer: Do not use children and render in the same time in `Observer`");var r=t||n;return"function"!=typeof r?null:Ar(r)}function Dr(e,t){return(0,cr.useState)((function(){return De(e(),t,{autoBind:!0})}))[0]}function Vr(e){var t=(0,cr.useState)((function(){return De(e,{},{deep:!1})}))[0];return function(e){Ge(0,!1,e,this,void 0)}((function(){Object.assign(t,e)})),t}function Lr(e,t){var n=t&&Vr(t);return(0,cr.useState)((function(){return De(e(n),void 0,{autoBind:!0})}))[0]}Br.displayName="Observer",vr(fr.unstable_batchedUpdates);var Ir=null!==(Rr=wr.finalizeAllImmediately)&&void 0!==Rr?Rr:function(){};function Nr(e,t){return void 0===t&&(t="observed"),Ar(e,t)}function Ur(e){br(e)}},31:(e,t,n)=>{n.r(t),n.d(t,{default:()=>g});var r=n(478),i=n.n(r),o=n(135),a=n.n(o),s=n(301),u=n.n(s),l=n(222),c=n.n(l),d=n(626),f=n.n(d),h=n(279),v=n.n(h),p=n(178),_={};_.styleTagTransform=v(),_.setAttributes=c(),_.insert=u().bind(null,"head"),_.domAPI=a(),_.insertStyleElement=f(),i()(p.A,_);const g=p.A&&p.A.locals?p.A.locals:void 0},478:e=>{var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var o={},a=[],s=0;s<e.length;s++){var u=e[s],l=r.base?u[0]+r.base:u[0],c=o[l]||0,d="".concat(l," ").concat(c);o[l]=c+1;var f=n(d),h={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==f)t[f].references++,t[f].updater(h);else{var v=i(h,r);r.byIndex=s,t.splice(s,0,{identifier:d,updater:v,references:1})}a.push(d)}return a}function i(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var o=r(e=e||[],i=i||{});return function(e){e=e||[];for(var a=0;a<o.length;a++){var s=n(o[a]);t[s].references--}for(var u=r(e,i),l=0;l<o.length;l++){var c=n(o[l]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}o=u}}},301:e=>{var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},626:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},222:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},135:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},279:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},319:(e,t,n)=>{var r=n(953),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,u=r.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s((function(){i.value=n,i.getSnapshot=t,l(i)&&c({inst:i})}),[e,n,t]),a((function(){return l(i)&&c({inst:i}),e((function(){l(i)&&c({inst:i})}))}),[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},634:(e,t,n)=>{e.exports=n(319)},159:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});const a=o(n(953));n(31);const s=n(729);t.default=function(e){const[t,n]=(0,a.useState)(!1),[r,i]=(0,a.useState)(!0),[o,u]=(0,a.useState)(null),[l,c]=(0,a.useState)(null),{currentTask:d,audioRef:f,toggleHold:h,toggleRecording:v,endCall:p,wrapupCall:_,wrapupCodes:g,wrapupRequired:b}=e;return(0,a.useEffect)((()=>{if(!d||!d.data||!d.data.interaction)return;const{interaction:e,mediaResourceId:t}=d.data,{media:r,callProcessingDetails:o}=e,a=r&&r[t]&&r[t].isHold;if(n(a),o){const{isPaused:e}=o;i(!e)}}),[d]),a.default.createElement(a.default.Fragment,null,a.default.createElement("audio",{ref:f,id:"remote-audio",autoPlay:!0}),d&&a.default.createElement("div",{className:"box"},a.default.createElement("section",{className:"section-box"},a.default.createElement("fieldset",{className:"fieldset"},a.default.createElement("legend",{className:"legend-box"},"Call Control"),a.default.createElement("div",{style:{display:"flex",flexDirection:"column",flexGrow:1}},a.default.createElement("div",{style:{display:"flex",gap:"1rem"}},a.default.createElement(s.ButtonPill,{onPress:()=>{h(!t),n(!t)},disabled:b,color:t?"join":"cancel"},t?"Resume":"Hold"),a.default.createElement(s.ButtonPill,{onPress:()=>{v(r),i(!r)},disabled:b},r?"Pause Recording":"Resume Recording"),a.default.createElement(s.ButtonPill,{onPress:p,disabled:b||t},"End")),a.default.createElement("div",{style:{display:"flex",gap:"1rem",marginTop:"1rem"}},a.default.createElement("select",{className:"select",onChange:e=>{const{text:t,value:n}=e.target.options[e.target.selectedIndex];u(t),c(n)},disabled:!b},a.default.createElement("option",{value:""},"Select the wrap-up reason"),g.map((e=>a.default.createElement("option",{key:e.id,value:e.id},e.name)))),a.default.createElement(s.ButtonPill,{onPress:()=>{o&&l&&(_(o,l),u(null),c(null))},disabled:!b&&!o},"Wrap Up")))))))}},681:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CallControl=void 0;const i=r(n(953)),o=n(62),a=r(n(768)),s=n(306),u=r(n(159)),l=(0,o.observer)((({onHoldResume:e,onEnd:t,onWrapUp:n})=>{const{logger:r,currentTask:o,deviceType:l,wrapupCodes:c,wrapupRequired:d}=a.default,f=Object.assign(Object.assign({},(0,s.useCallControl)({currentTask:o,deviceType:l,onHoldResume:e,onEnd:t,onWrapUp:n,logger:r})),{wrapupRequired:d,wrapupCodes:c});return i.default.createElement(u.default,Object.assign({},f))}));t.CallControl=l},869:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(953)),o=n(729),a={box:{backgroundColor:"#ffffff",borderRadius:"8px",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)",padding:"20px",maxWidth:"800px",margin:"0 auto"},sectionBox:{padding:"10px",border:"1px solid #ddd",borderRadius:"8px",marginBottom:"20px"},fieldset:{border:"1px solid #ccc",borderRadius:"5px",padding:"10px",marginBottom:"20px",position:"relative"},legendBox:{fontWeight:"bold",color:"#0052bf"},container:{border:"1px solid #ccc",borderRadius:"8px",padding:"16px",width:"350px",boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.2)",fontFamily:"Arial, sans-serif",backgroundColor:"#ffffff",display:"flex",flexDirection:"column"},topSection:{display:"flex",justifyContent:"space-between",alignItems:"center"},iconWrapper:{display:"inline-block",backgroundColor:"#d4f8e8",borderRadius:"50%",width:"40px",height:"40px",justifyContent:"center",alignItems:"center",marginRight:"10px"},iconSvg:{width:"24px",height:"24px",color:"#146f5c"},callInfo:{margin:0,fontSize:"1.2em",color:"#333"},aniText:{fontSize:"1.1em",fontWeight:"bold",margin:"4px 0",color:"#146f5c"},buttonsWrapper:{display:"flex",flexDirection:"column",alignItems:"flex-end",marginLeft:"16px"},answerButton:{padding:"8px 16px",border:"none",borderRadius:"6px",fontSize:"0.9em",cursor:"pointer",fontWeight:"bold",backgroundColor:"#28a745",color:"#fff",marginBottom:"8px"},declineButton:{padding:"8px 16px",border:"none",borderRadius:"6px",fontSize:"0.9em",cursor:"pointer",fontWeight:"bold",backgroundColor:"#dc3545",color:"#fff"},queueInfo:{fontSize:"0.9em",color:"#666",marginTop:"8px"},timeElapsed:{color:"#28a745",fontWeight:"bold"},callDetails:{marginTop:"16px",fontSize:"0.9em",color:"#333"},detailItem:{margin:"4px 0"},detailLabel:{color:"#555",fontWeight:"bold"}};t.default=e=>{const{incomingTask:t,accept:n,decline:r,isBrowser:s}=e;if(!t)return i.default.createElement(i.default.Fragment,null);const u=t.data.interaction.callAssociatedDetails,{ani:l,dn:c,virtualTeamName:d}=u;return i.default.createElement("div",{style:a.box},i.default.createElement("section",{style:a.sectionBox},i.default.createElement("fieldset",{style:a.fieldset},i.default.createElement("legend",{style:a.legendBox},"Incoming Task"),i.default.createElement("div",{"data-testid":"incoming-task-presentational",style:a.container},i.default.createElement("div",{style:a.topSection},i.default.createElement("div",{style:{display:"flex",alignItems:"center"}},i.default.createElement("span",{style:a.iconWrapper},i.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:a.iconSvg},i.default.createElement("path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.86 19.86 0 0 1-8.63-2.73 19.5 19.5 0 0 1-6-6A19.86 19.86 0 0 1 3.08 4.18 2 2 0 0 1 5 2h3a2 2 0 0 1 2 1.72c.2 1.52.71 2.94 1.41 4.24a2 2 0 0 1-.45 2.31L9.91 11a16 16 0 0 0 6 6l1.73-1.05a2 2 0 0 1 2.31-.45 16.11 16.11 0 0 0 4.24 1.41A2 2 0 0 1 22 16.92z"}))),i.default.createElement("div",null,i.default.createElement("h2",{style:a.callInfo},"Incoming Call"),i.default.createElement("p",{"data-testid":"incoming-task-ani",style:a.aniText},l))),s&&i.default.createElement("div",{style:a.buttonsWrapper},i.default.createElement(o.ButtonPill,{style:a.answerButton,onPress:n},"Answer"),i.default.createElement(o.ButtonPill,{style:a.declineButton,onPress:r},"Decline"))),i.default.createElement("p",{style:a.queueInfo},d," - ",i.default.createElement("span",{style:a.timeElapsed},"")),i.default.createElement("div",{style:a.callDetails},i.default.createElement("p",{style:a.detailItem},i.default.createElement("strong",{style:a.detailLabel},"Phone Number:")," ",l),i.default.createElement("p",{style:a.detailItem},i.default.createElement("strong",{style:a.detailLabel},"DNIS:")," ",c),i.default.createElement("p",{style:a.detailItem},i.default.createElement("strong",{style:a.detailLabel},"Queue Name:")," ",d))))))}},360:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.IncomingTask=void 0;const i=r(n(953)),o=n(62),a=r(n(768)),s=n(306),u=r(n(869)),l=(0,o.observer)((({onAccepted:e,onDeclined:t})=>{const{deviceType:n,incomingTask:r,logger:o}=a.default,l=(0,s.useIncomingTask)({incomingTask:r,onAccepted:e,onDeclined:t,deviceType:n,logger:o}),c=Object.assign({},l);return i.default.createElement(u.default,Object.assign({},c))}));t.IncomingTask=l},196:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TaskList=void 0;const i=r(n(953)),o=r(n(768)),a=n(62),s=r(n(859)),u=n(306),l=(0,a.observer)((()=>{const{cc:e,taskList:t,currentTask:n,deviceType:r,logger:a}=o.default,l=(0,u.useTaskList)({cc:e,deviceType:r,logger:a,taskList:t}),c=Object.assign(Object.assign({},l),{currentTask:n});return i.default.createElement(s.default,Object.assign({},c))}));t.TaskList=l},859:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(953)),o=n(729),a={box:{backgroundColor:"#ffffff",borderRadius:"8px",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)",padding:"20px",maxWidth:"800px",margin:"0 auto"},container:{display:"flex",flexDirection:"column",gap:"10px",padding:"20px"},card:{display:"flex",alignItems:"center",justifyContent:"space-between",backgroundColor:"#ffffff",border:"1px solid #ddd",borderRadius:"8px",padding:"10px 15px",boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.1)"},leftSection:{display:"flex",alignItems:"center",gap:"10px"},icon:{backgroundColor:"#bdf5cf",borderRadius:"50%",width:"40px",height:"40px",display:"flex",justifyContent:"center",alignItems:"center"},iconSvg:{width:"24px",height:"24px",color:"#146f5c"},textPrimary:{margin:0,fontSize:"16px",fontWeight:"bold"},textSecondary:{margin:0,fontSize:"14px",color:"#888"},rightSectionText:{margin:0,fontSize:"14px",fontWeight:"bold",color:"#333"},buttonsWrapper:{display:"flex",gap:"10px"},acceptButton:{padding:"8px 16px",border:"none",borderRadius:"6px",fontSize:"0.9em",cursor:"pointer",fontWeight:"bold",backgroundColor:"#28a745",color:"#fff"},rejectButton:{padding:"8px 16px",border:"none",borderRadius:"6px",fontSize:"0.9em",cursor:"pointer",fontWeight:"bold",backgroundColor:"#dc3545",color:"#fff"},fieldset:{border:"1px solid #ccc",borderRadius:"5px",padding:"10px",marginBottom:"20px",position:"relative"},legendBox:{fontWeight:"bold",color:"#0052bf"}};t.default=e=>{if(e.taskList.length<=0)return i.default.createElement(i.default.Fragment,null);const{currentTask:t,taskList:n,acceptTask:r,declineTask:s,isBrowser:u}=e;return i.default.createElement("div",{style:a.box},i.default.createElement("fieldset",{style:a.fieldset},i.default.createElement("legend",{style:a.legendBox},"TaskList"),i.default.createElement("div",{style:a.container},n.map(((e,n)=>{const l=e.data.interaction.callAssociatedDetails,{ani:c,dn:d,virtualTeamName:f}=l;return i.default.createElement("div",{key:n,style:a.card},i.default.createElement("div",{style:a.leftSection},i.default.createElement("div",{style:a.icon},i.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:a.iconSvg},i.default.createElement("path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.86 19.86 0 0 1-8.63-2.73 19.5 19.5 0 0 1-6-6A19.86 19.86 0 0 1 3.08 4.18 2 2 0 0 1 5 2h3a2 2 0 0 1 2 1.72c.2 1.52.71 2.94 1.41 4.24a2 2 0 0 1-.45 2.31L9.91 11a16 16 0 0 0 6 6l1.73-1.05a2 2 0 0 1 2.31-.45 16.11 16.11 0 0 0 4.24 1.41A2 2 0 0 1 22 16.92z"}))),i.default.createElement("div",null,i.default.createElement("p",{style:a.textPrimary},c),i.default.createElement("p",{style:a.textSecondary},f))),!t&&i.default.createElement("div",null,i.default.createElement("p",{style:a.rightSectionText},d),u&&i.default.createElement("div",{style:a.buttonsWrapper},i.default.createElement(o.ButtonPill,{style:a.acceptButton,onPress:()=>r(e)},"Accept"),i.default.createElement(o.ButtonPill,{style:a.rejectButton,onPress:()=>s(e)},"Reject"))))})))))}},306:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.useCallControl=t.useIncomingTask=t.useTaskList=void 0;const a=n(953),s=o(n(768));t.useTaskList=e=>{const{deviceType:t,onTaskAccepted:n,onTaskDeclined:r,logger:i,taskList:o}=e,a=(e,t)=>{i.error(e,{module:"widget-cc-task#helper.ts",method:`useTaskList#${t}`})};return{taskList:o,acceptTask:e=>{const t=null==e?void 0:e.data.interactionId;t&&e.accept(t).then((()=>{n&&n(e)})).catch((e=>{a(`Error accepting task: ${e}`,"acceptTask")}))},declineTask:e=>{const t=null==e?void 0:e.data.interactionId;t&&e.decline(t).then((()=>{r&&r(e)})).catch((e=>{a(`Error declining task: ${e}`,"declineTask")}))},isBrowser:"BROWSER"===t}},t.useIncomingTask=e=>{const{onAccepted:t,onDeclined:n,deviceType:r,incomingTask:i,logger:o}=e,a=(e,t)=>{o.error(e,{module:"widget-cc-task#helper.ts",method:`useIncomingTask#${t}`})};return{incomingTask:i,accept:()=>{const e=null==i?void 0:i.data.interactionId;e&&i.accept(e).then((()=>{t&&t()})).catch((e=>{a(`Error accepting incoming task: ${e}`,"accept")}))},decline:()=>{const e=null==i?void 0:i.data.interactionId;e&&i.decline(e).then((()=>{n&&n()})).catch((e=>{a(`Error declining incoming task: ${e}`,"decline")}))},isBrowser:"BROWSER"===r}},t.useCallControl=e=>{const{currentTask:t,onHoldResume:n,onEnd:r,onWrapUp:i,logger:o,deviceType:u}=e,l=(0,a.useRef)(null),c="BROWSER"===u,d=(e,t)=>{o.error(e,{module:"widget-cc-task#helper.ts",method:`useCallControl#${t}`})},f=(0,a.useCallback)((e=>{l.current&&(l.current.srcObject=new MediaStream([e]))}),[l,t]);return(0,a.useEffect)((()=>{if(t&&c)return t.on(s.TASK_EVENTS.TASK_MEDIA,f),()=>{t.off(s.TASK_EVENTS.TASK_MEDIA,f)}}),[t]),{currentTask:t,audioRef:l,endCall:()=>{t.end().then((()=>{r&&r()})).catch((e=>{d(`Error ending call: ${e}`,"endCall")}))},toggleHold:e=>{e?t.hold().then((()=>n&&n())).catch((e=>{d(`Error holding call: ${e}`,"toggleHold")})):t.resume().then((()=>n&&n())).catch((e=>{d(`Error resuming call: ${e}`,"toggleHold")}))},toggleRecording:e=>{e?t.pauseRecording().catch((e=>{d(`Error pausing recording: ${e}`,"toggleRecording")})):t.resumeRecording().catch((e=>{d(`Error resuming recording: ${e}`,"toggleRecording")}))},wrapupCall:(e,n)=>{t.wrapup({wrapUpReason:e,auxCodeId:n}).then((()=>{i&&i(),s.default.handleTaskRemove(t.data.interactionId)})).catch((e=>{d(`Error wrapping up call: ${e}`,"wrapupCall")}))}}}},729:e=>{e.exports=require("@momentum-ui/react-collaboration")},768:e=>{e.exports=require("@webex/cc-store")},953:e=>{e.exports=require("react")}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var r={};(()=>{var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.CallControl=e.TaskList=e.IncomingTask=void 0;const t=n(360);Object.defineProperty(e,"IncomingTask",{enumerable:!0,get:function(){return t.IncomingTask}});const i=n(196);Object.defineProperty(e,"TaskList",{enumerable:!0,get:function(){return i.TaskList}});const o=n(681);Object.defineProperty(e,"CallControl",{enumerable:!0,get:function(){return o.CallControl}})})(),module.exports=r})();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webex/cc-task",
3
3
  "description": "Webex Contact Center Widgets: Task",
4
- "version": "1.28.0-ccwidgets.21",
4
+ "version": "1.28.0-ccwidgets.23",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -20,7 +20,7 @@
20
20
  "test:styles": "eslint"
21
21
  },
22
22
  "dependencies": {
23
- "@webex/cc-store": "1.28.0-ccwidgets.21",
23
+ "@webex/cc-store": "1.28.0-ccwidgets.23",
24
24
  "mobx-react-lite": "^4.1.0"
25
25
  },
26
26
  "devDependencies": {
@@ -57,6 +57,7 @@
57
57
  "webpack-merge": "6.0.1"
58
58
  },
59
59
  "peerDependencies": {
60
+ "@momentum-ui/react-collaboration": ">=26.197.0",
60
61
  "react": ">=18.3.1",
61
62
  "react-dom": ">=18.3.1"
62
63
  },
@@ -69,6 +70,5 @@
69
70
  "moduleNameMapper": {
70
71
  "^.+\\.(css|less|scss)$": "babel-jest"
71
72
  }
72
- },
73
- "stableVersion": "1.28.0-ccwidgets.20"
73
+ }
74
74
  }