@webex/cc-widgets 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.
package/dist/wc.js CHANGED
@@ -1,1392 +1,2 @@
1
1
  /*! For license information please see wc.js.LICENSE.txt */
2
- (()=>{var e={776:(e,t,n)=>{"use strict";var r=n(180);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},824:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.store=void 0;const o=r(n(77)),i=n(207),a=n(758),s=r(n(768));t.store=s.default;const l=n(32),c=(0,o.default)(a.UserState),d=(0,o.default)(l.IncomingTask,{props:{onAccepted:"function",onDeclined:"function"}}),u=(0,o.default)(l.TaskList,{props:{onTaskAccepted:"function",onTaskDeclined:"function"}});[{name:"widget-cc-user-state",component:c},{name:"widget-cc-station-login",component:(0,o.default)(i.StationLogin,{props:{onLogin:"function",onLogout:"function"}})},{name:"widget-cc-incoming-task",component:d},{name:"widget-cc-task-list",component:u},{name:"widget-cc-call-control",component:(0,o.default)(l.CallControl,{props:{onHoldResume:"function",onEnd:"function",onWrapup:"function"}})}].forEach((({name:e,component:t})=>{customElements.get(e)||customElements.define(e,t)}))},207:(e,t,n)=>{(()=>{"use strict";var t={428:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(63),o=n.n(r),i=n(248),a=n.n(i)()(o());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}.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}.modal{width:400px;border:none;border-radius:10px;box-shadow:0 4px 8px rgba(0,0,0,.2);padding:20px;text-align:center}.modal-content{display:flex;justify-content:flex-end}.modal::backdrop{background:rgba(0,0,0,.5)}h2{margin-top:0}#ContinueButton{background-color:#0078d4;color:#fff;border:none;padding:10px 20px;border-radius:5px;cursor:pointer;font-size:16px;cursor:pointer}#ContinueButton:hover{background-color:#005a9e}",""]);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,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var c=0;c<e.length;c++){var d=[].concat(e[c]);r&&a[d[0]]||(void 0!==i&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=i),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),o&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=o):d[4]="".concat(o)),t.push(d))}},t}},63:e=>{e.exports=function(e){return e[1]}},62:(e,t,r)=>{function o(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)}r.r(t),r.d(t,{Observer:()=>Mr,_observerFinalizationRegistry:()=>Or,clearTimers:()=>Dr,enableStaticRendering:()=>br,isObserverBatched:()=>pr,isUsingStaticRendering:()=>yr,observer:()=>Rr,observerBatching:()=>hr,useAsObservableSource:()=>Ir,useLocalObservable:()=>Nr,useLocalStore:()=>Lr,useObserver:()=>Vr,useStaticRendering:()=>Br});var i={};function a(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:i}var s=Object.assign,l=Object.getOwnPropertyDescriptor,c=Object.defineProperty,d=Object.prototype,u=[];Object.freeze(u);var f={};Object.freeze(f);var m="undefined"!=typeof Proxy,h=Object.toString();function p(){m||o("Proxy not available")}function v(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var g=function(){};function b(e){return"function"==typeof e}function y(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function _(e){return null!==e&&"object"==typeof e}function x(e){if(!_(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 w(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function O(e,t,n){c(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function k(e,t,n){c(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 _(e)&&!0===e[n]}}function A(e){return null!=e&&"[object Map]"===Object.prototype.toString.call(e)}function E(e){return null!=e&&"[object Set]"===Object.prototype.toString.call(e)}var T=void 0!==Object.getOwnPropertySymbols,j="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:T?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function P(e){return null===e?null:"object"==typeof e?""+e:e}function R(e,t){return d.hasOwnProperty.call(e,t)}var C=Object.getOwnPropertyDescriptors||function(e){var t={};return j(e).forEach((function(n){t[n]=l(e,n)})),t};function z(e,t){return!!(e&t)}function M(e,t,n){return n?e|=t:e&=~t,e}function N(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 I(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,U(r.key),r)}}function L(e,t,n){return t&&I(e.prototype,t),n&&I(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function D(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 N(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)?N(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 V(){return V=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},V.apply(null,arguments)}function B(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$(e,t)}function $(e,t){return $=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$(e,t)}function U(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 H=Symbol("mobx-stored-annotations");function q(e){return Object.assign((function(t,n){if(G(n))return e.decorate_20223_(t,n);K(t,n,e)}),e)}function K(e,t,n){R(e,H)||O(e,H,V({},e[H])),function(e){return e.annotationType_===ee}(n)||(e[H][t]=n)}function G(e){return"object"==typeof e&&"string"==typeof e.kind}var W=Symbol("mobx administration"),F=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_=Xe.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 _t(this)},t.reportChanged=function(){bt(),xt(this),yt()},t.toString=function(){return this.name_},L(e,[{key:"isBeingObserved",get:function(){return z(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=M(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return z(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=M(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return z(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=M(this.flags_,e.diffValueMask_,1===t)}}])}();F.isBeingObservedMask_=1,F.isPendingUnobservationMask_=2,F.diffValueMask_=4;var Z=S("Atom",F);function Y(e,t,n){void 0===t&&(t=g),void 0===n&&(n=g);var r=new F(e);return t!==g&&Ut(Vt,r,t,void 0),n!==g&&$t(r,n),r}var X={identity:function(e,t){return e===t},structural:function(e,t){return or(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 or(e,t,1)}};function J(e,t,n){return en(e)?e:Array.isArray(e)?Ie.array(e,{name:n}):x(e)?Ie.object(e,void 0,{name:n}):A(e)?Ie.map(e,{name:n}):E(e)?Ie.set(e,{name:n}):"function"!=typeof e||Lt(e)||Qt(e)?e:w(e)?Xt(e):It(n,e)}function Q(e){return e}var ee="override";function te(e,t){return{annotationType_:e,options_:t,make_:ne,extend_:re,decorate_20223_:oe}}function ne(e,t,n,r){var o;if(null!=(o=this.options_)&&o.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(Lt(n.value))return 1;var i=ie(e,this,t,n,!1);return c(r,t,i),2}function re(e,t,n,r){var o=ie(e,this,t,n);return e.defineProperty_(t,o,r)}function oe(e,t){var n,r=t.kind,i=t.name,a=t.addInitializer,s=this,l=function(e){var t,n,r,o;return Ke(null!=(t=null==(n=s.options_)?void 0:n.name)?t:i.toString(),e,null!=(r=null==(o=s.options_)?void 0:o.autoAction)&&r)};return"field"==r?function(e){var t,n=e;return Lt(n)||(n=l(n)),null!=(t=s.options_)&&t.bound&&((n=n.bind(this)).isMobxAction=!0),n}:"method"==r?(Lt(e)||(e=l(e)),null!=(n=this.options_)&&n.bound&&a((function(){var e=this,t=e[i].bind(e);t.isMobxAction=!0,e[i]=t})),e):void o("Cannot apply '"+s.annotationType_+"' to '"+String(i)+"' (kind: "+r+"):\n'"+s.annotationType_+"' can only be used on properties with a function value.")}function ie(e,t,n,r,o){var i,a,s,l,c,d,u,f;void 0===o&&(o=ht.safeDescriptors),f=r,t.annotationType_,f.value;var m,h=r.value;return null!=(i=t.options_)&&i.bound&&(h=h.bind(null!=(m=e.proxy_)?m:e.target_)),{value:Ke(null!=(a=null==(s=t.options_)?void 0:s.name)?a:n.toString(),h,null!=(l=null==(c=t.options_)?void 0:c.autoAction)&&l,null!=(d=t.options_)&&d.bound?null!=(u=e.proxy_)?u:e.target_:void 0),configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function ae(e,t){return{annotationType_:e,options_:t,make_:se,extend_:le,decorate_20223_:ce}}function se(e,t,n,r){var o;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(null!=(o=this.options_)&&o.bound&&(!R(e.target_,t)||!Qt(e.target_[t]))&&null===this.extend_(e,t,n,!1))return 0;if(Qt(n.value))return 1;var i=de(e,this,0,n,!1,!1);return c(r,t,i),2}function le(e,t,n,r){var o,i=de(e,this,0,n,null==(o=this.options_)?void 0:o.bound);return e.defineProperty_(t,i,r)}function ce(e,t){var n,r=t.name,o=t.addInitializer;return Qt(e)||(e=Xt(e)),null!=(n=this.options_)&&n.bound&&o((function(){var e=this,t=e[r].bind(e);t.isMobXFlow=!0,e[r]=t})),e}function de(e,t,n,r,o,i){var a;void 0===i&&(i=ht.safeDescriptors),a=r,t.annotationType_,a.value;var s,l=r.value;return Qt(l)||(l=Xt(l)),o&&((l=l.bind(null!=(s=e.proxy_)?s:e.target_)).isMobXFlow=!0),{value:l,configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function ue(e,t){return{annotationType_:e,options_:t,make_:fe,extend_:me,decorate_20223_:he}}function fe(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function me(e,t,n,r){return o=n,this.annotationType_,o.get,e.defineComputedProperty_(t,V({},this.options_,{get:n.get,set:n.set}),r);var o}function he(e,t){var n=this,r=t.name;return(0,t.addInitializer)((function(){var t=In(this)[W],o=V({},n.options_,{get:e,context:this});o.name||(o.name="ObservableObject."+r.toString()),t.values_.set(r,new Ye(o))})),function(){return this[W].getObservablePropValue_(r)}}function pe(e,t){return{annotationType_:e,options_:t,make_:ve,extend_:ge,decorate_20223_:be}}function ve(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function ge(e,t,n,r){var o,i;return this.annotationType_,e.defineObservableProperty_(t,n.value,null!=(o=null==(i=this.options_)?void 0:i.enhancer)?o:J,r)}function be(e,t){var n=this,r=t.kind,o=t.name,i=new WeakSet;function a(e,t){var r,a,s=In(e)[W],l=new Ze(t,null!=(r=null==(a=n.options_)?void 0:a.enhancer)?r:J,"ObservableObject."+o.toString(),!1);s.values_.set(o,l),i.add(e)}if("accessor"==r)return{get:function(){return i.has(this)||a(this,e.get.call(this)),this[W].getObservablePropValue_(o)},set:function(e){return i.has(this)||a(this,e),this[W].setObservablePropValue_(o,e)},init:function(e){return i.has(this)||a(this,e),e}}}var ye="true",_e=xe();function xe(e){return{annotationType_:ye,options_:e,make_:we,extend_:Oe,decorate_20223_:ke}}function we(e,t,n,r){var o,i,a,s;if(n.get)return Be.make_(e,t,n,r);if(n.set){var l=Ke(t.toString(),n.set);return r===e.target_?null===e.defineProperty_(t,{configurable:!ht.safeDescriptors||e.isPlainObject_,set:l})?0:2:(c(r,t,{configurable:!0,set:l}),2)}if(r!==e.target_&&"function"==typeof n.value)return w(n.value)?(null!=(s=this.options_)&&s.autoBind?Xt.bound:Xt).make_(e,t,n,r):(null!=(a=this.options_)&&a.autoBind?It.bound:It).make_(e,t,n,r);var d,u=!1===(null==(o=this.options_)?void 0:o.deep)?Ie.ref:Ie;return"function"==typeof n.value&&null!=(i=this.options_)&&i.autoBind&&(n.value=n.value.bind(null!=(d=e.proxy_)?d:e.target_)),u.make_(e,t,n,r)}function Oe(e,t,n,r){var o,i,a;return n.get?Be.extend_(e,t,n,r):n.set?e.defineProperty_(t,{configurable:!ht.safeDescriptors||e.isPlainObject_,set:Ke(t.toString(),n.set)},r):("function"==typeof n.value&&null!=(o=this.options_)&&o.autoBind&&(n.value=n.value.bind(null!=(a=e.proxy_)?a:e.target_)),(!1===(null==(i=this.options_)?void 0:i.deep)?Ie.ref:Ie).extend_(e,t,n,r))}function ke(e,t){o("'"+this.annotationType_+"' cannot be used as a decorator")}var Se={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function Ae(e){return e||Se}Object.freeze(Se);var Ee=pe("observable"),Te=pe("observable.ref",{enhancer:Q}),je=pe("observable.shallow",{enhancer:function(e,t,n){return null==e||Vn(e)||wn(e)||En(e)||Rn(e)?e:Array.isArray(e)?Ie.array(e,{name:n,deep:!1}):x(e)?Ie.object(e,void 0,{name:n,deep:!1}):A(e)?Ie.map(e,{name:n,deep:!1}):E(e)?Ie.set(e,{name:n,deep:!1}):void 0}}),Pe=pe("observable.struct",{enhancer:function(e,t){return or(e,t)?t:e}}),Re=q(Ee);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 ze(e,t,n){return G(t)?Ee.decorate_20223_(e,t):y(t)?void K(e,t,Ee):en(e)?e:x(e)?Ie.object(e,t,n):Array.isArray(e)?Ie.array(e,t):A(e)?Ie.map(e,t):E(e)?Ie.set(e,t):"object"==typeof e&&null!==e?e:Ie.box(e,t)}s(ze,Re);var Me,Ne,Ie=s(ze,{box:function(e,t){var n=Ae(t);return new Ze(e,Ce(n),n.name,!0,n.equals)},array:function(e,t){var n=Ae(t);return(!1===ht.useProxies||!1===n.proxy?Xn:pn)(e,Ce(n),n.name)},map:function(e,t){var n=Ae(t);return new An(e,Ce(n),n.name)},set:function(e,t){var n=Ae(t);return new Pn(e,Ce(n),n.name)},object:function(e,t,n){return tr((function(){return function(e,t,n){var r=C(t);return tr((function(){var t=In(e,void 0)[W];j(r).forEach((function(e){t.extend_(e,r[e],!n||!(e in n)||n[e])}))})),e}(!1===ht.useProxies||!1===(null==n?void 0:n.proxy)?In({},n):function(e,t){var n,r;return p(),null!=(r=(n=(e=In(e,t))[W]).proxy_)?r:n.proxy_=new Proxy(e,rn)}({},n),e,t)}))},ref:q(Te),shallow:q(je),deep:Re,struct:q(Pe)}),Le="computed",De=ue(Le),Ve=ue("computed.struct",{equals:X.structural}),Be=function(e,t){if(G(t))return De.decorate_20223_(e,t);if(y(t))return K(e,t,De);if(x(e))return q(ue(Le,e));var n=x(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new Ye(n)};Object.assign(Be,De),Be.struct=q(Ve);var $e=0,Ue=1,He=null!=(Me=null==(Ne=l((function(){}),"name"))?void 0:Ne.configurable)&&Me,qe={value:"action",configurable:!0,writable:!1,enumerable:!1};function Ke(e,t,n,r){function o(){return Ge(0,n,t,r||this,arguments)}return void 0===n&&(n=!1),o.isMobxAction=!0,o.toString=function(){return t.toString()},He&&(qe.value=e,c(o,"name",qe)),o}function Ge(e,t,n,r,i){var a=function(e,t){var n=ht.trackingDerivation,r=!t||!n;bt();var o=ht.allowStateChanges;r&&(at(),o=We(!0));var i={runAsAction_:r,prevDerivation_:n,prevAllowStateChanges_:o,prevAllowStateReads_:lt(!0),notifySpy_:!1,startTime_:0,actionId_:Ue++,parentActionId_:$e};return $e=i.actionId_,i}(0,t);try{return n.apply(r,i)}catch(e){throw a.error_=e,e}finally{!function(e){$e!==e.actionId_&&o(30),$e=e.parentActionId_,void 0!==e.error_&&(ht.suppressReactionErrors=!0),Fe(e.prevAllowStateChanges_),ct(e.prevAllowStateReads_),yt(),e.runAsAction_&&st(e.prevDerivation_),ht.suppressReactionErrors=!1}(a)}}function We(e){var t=ht.allowStateChanges;return ht.allowStateChanges=e,t}function Fe(e){ht.allowStateChanges=e}var Ze=function(e){function t(t,n,r,o,i){var a;return void 0===r&&(r="ObservableValue"),void 0===o&&(o=!0),void 0===i&&(i=X.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=i,a.value_=n(t,void 0,r),a}B(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(),ln(this)&&dn(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}),cn(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 P(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},t}(F),Ye=function(){function e(e){this.dependenciesState_=Xe.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Xe.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new et(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||o(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=Ke("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?X.structural:X.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_===Xe.UP_TO_DATE_&&(e.lowestObserverState_=Xe.POSSIBLY_STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Xe.UP_TO_DATE_&&(e.dependenciesState_=Xe.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&&o(32,this.name_,this.derivation),0!==ht.inBatch||0!==this.observers_.size||this.keepAlive_){if(_t(this),nt(this)){var e=ht.trackingContext;this.keepAlive_&&!e&&(ht.trackingContext=this),this.trackAndCompute()&&function(e){e.lowestObserverState_!==Xe.STALE_&&(e.lowestObserverState_=Xe.STALE_,e.observers_.forEach((function(t){t.dependenciesState_===Xe.POSSIBLY_STALE_?t.dependenciesState_=Xe.STALE_:t.dependenciesState_===Xe.UP_TO_DATE_&&(e.lowestObserverState_=Xe.UP_TO_DATE_)})))}(this),ht.trackingContext=e}}else nt(this)&&(this.warnAboutUntrackedRead_(),bt(),this.value_=this.computeValue_(!1),yt());var t=this.value_;if(tt(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter&&o(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter=!1}}else o(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===Xe.NOT_TRACKING_,n=this.computeValue_(!0),r=t||tt(e)||tt(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing=!0;var t,n=We(!1);if(e)t=rt(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 et(e)}return Fe(n),this.isComputing=!1,t},t.suspend_=function(){this.keepAlive_||(ot(this),this.value_=void 0)},t.observe_=function(e,t){var n=this,r=!0,o=void 0;return function(e,t){var n,r,o,i;void 0===t&&(t=f);var a,s=null!=(n=null==(r=t)?void 0:r.name)?n:"Autorun";if(t.scheduler||t.delay){var l=function(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Dt}(t),c=!1;a=new wt(s,(function(){c||(c=!0,l((function(){c=!1,a.isDisposed||a.track(d)})))}),t.onError,t.requiresObservable)}else a=new wt(s,(function(){this.track(d)}),t.onError,t.requiresObservable);function d(){e()}return null!=(o=t)&&null!=(o=o.signal)&&o.aborted||a.schedule_(),a.getDisposer_(null==(i=t)?void 0:i.signal)}((function(){var i=n.get();if(!r||t){var a=at();e({observableKind:"computed",debugObjectName:n.name_,type:fn,object:n,newValue:i,oldValue:o}),st(a)}r=!1,o=i}))},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return P(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},L(e,[{key:"isComputing",get:function(){return z(this.flags_,e.isComputingMask_)},set:function(t){this.flags_=M(this.flags_,e.isComputingMask_,t)}},{key:"isRunningSetter",get:function(){return z(this.flags_,e.isRunningSetterMask_)},set:function(t){this.flags_=M(this.flags_,e.isRunningSetterMask_,t)}},{key:"isBeingObserved",get:function(){return z(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=M(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return z(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=M(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return z(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=M(this.flags_,e.diffValueMask_,1===t)}}])}();Ye.isComputingMask_=1,Ye.isRunningSetterMask_=2,Ye.isBeingObservedMask_=4,Ye.isPendingUnobservationMask_=8,Ye.diffValueMask_=16;var Xe,Je,Qe=S("ComputedValue",Ye);!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_"}(Xe||(Xe={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Je||(Je={}));var et=function(e){this.cause=void 0,this.cause=e};function tt(e){return e instanceof et}function nt(e){switch(e.dependenciesState_){case Xe.UP_TO_DATE_:return!1;case Xe.NOT_TRACKING_:case Xe.STALE_:return!0;case Xe.POSSIBLY_STALE_:for(var t=lt(!0),n=at(),r=e.observing_,o=r.length,i=0;i<o;i++){var a=r[i];if(Qe(a)){if(ht.disableErrorBoundaries)a.get();else try{a.get()}catch(e){return st(n),ct(t),!0}if(e.dependenciesState_===Xe.STALE_)return st(n),ct(t),!0}}return dt(e),st(n),ct(t),!1}}function rt(e,t,n){var r=lt(!0);dt(e),e.newObserving_=new Array(0===e.runId_?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++ht.runId;var o,i=ht.trackingDerivation;if(ht.trackingDerivation=e,ht.inBatch++,!0===ht.disableErrorBoundaries)o=t.call(n);else try{o=t.call(n)}catch(e){o=new et(e)}return ht.inBatch--,ht.trackingDerivation=i,function(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=Xe.UP_TO_DATE_,o=0,i=e.unboundDepsCount_,a=0;a<i;a++){var s=n[a];0===s.diffValue&&(s.diffValue=1,o!==a&&(n[o]=s),o++),s.dependenciesState_>r&&(r=s.dependenciesState_)}for(n.length=o,e.newObserving_=null,i=t.length;i--;){var l=t[i];0===l.diffValue&&vt(l,e),l.diffValue=0}for(;o--;){var c=n[o];1===c.diffValue&&(c.diffValue=0,pt(c,e))}r!==Xe.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}(e),ct(r),o}function ot(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)vt(t[n],e);e.dependenciesState_=Xe.NOT_TRACKING_}function it(e){var t=at();try{return e()}finally{st(t)}}function at(){var e=ht.trackingDerivation;return ht.trackingDerivation=null,e}function st(e){ht.trackingDerivation=e}function lt(e){var t=ht.allowStateReads;return ht.allowStateReads=e,t}function ct(e){ht.allowStateReads=e}function dt(e){if(e.dependenciesState_!==Xe.UP_TO_DATE_){e.dependenciesState_=Xe.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=Xe.UP_TO_DATE_}}var ut=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},ft=!0,mt=!1,ht=function(){var e=a();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(ft=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new ut).version&&(ft=!1),ft?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new ut):(setTimeout((function(){mt||o(35)}),1),new ut)}();function pt(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function vt(e,t){e.observers_.delete(t),0===e.observers_.size&&gt(e)}function gt(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,ht.pendingUnobservations.push(e))}function bt(){ht.inBatch++}function yt(){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 Ye&&n.suspend_())}ht.pendingUnobservations=[]}}function _t(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&&gt(e),!1)}function xt(e){e.lowestObserverState_!==Xe.STALE_&&(e.lowestObserverState_=Xe.STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Xe.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=Xe.STALE_})))}var wt=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_=Xe.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,nt(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(e){this.reportExceptionInDerivation_(e)}}ht.trackingContext=e,yt()}},t.track=function(e){if(!this.isDisposed){bt(),this.isRunning=!0;var t=ht.trackingContext;ht.trackingContext=this;var n=rt(this,e,void 0);ht.trackingContext=t,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&ot(this),tt(n)&&this.reportExceptionInDerivation_(n.cause),yt()}},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(),ot(this),yt()))},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[W]=this,n},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1)},L(e,[{key:"isDisposed",get:function(){return z(this.flags_,e.isDisposedMask_)},set:function(t){this.flags_=M(this.flags_,e.isDisposedMask_,t)}},{key:"isScheduled",get:function(){return z(this.flags_,e.isScheduledMask_)},set:function(t){this.flags_=M(this.flags_,e.isScheduledMask_,t)}},{key:"isTrackPending",get:function(){return z(this.flags_,e.isTrackPendingMask_)},set:function(t){this.flags_=M(this.flags_,e.isTrackPendingMask_,t)}},{key:"isRunning",get:function(){return z(this.flags_,e.isRunningMask_)},set:function(t){this.flags_=M(this.flags_,e.isRunningMask_,t)}},{key:"diffValue",get:function(){return z(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=M(this.flags_,e.diffValueMask_,1===t)}}])}();wt.isDisposedMask_=1,wt.isScheduledMask_=2,wt.isTrackPendingMask_=4,wt.isRunningMask_=8,wt.diffValueMask_=16;var Ot=100,kt=function(e){return e()};function St(){ht.inBatch>0||ht.isRunningReactions||kt(At)}function At(){ht.isRunningReactions=!0;for(var e=ht.pendingReactions,t=0;e.length>0;){++t===Ot&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,o=n.length;r<o;r++)n[r].runReaction_()}ht.isRunningReactions=!1}var Et=S("Reaction",wt),Tt="action",jt="autoAction",Pt=te(Tt),Rt=te("action.bound",{bound:!0}),Ct=te(jt,{autoAction:!0}),zt=te("autoAction.bound",{autoAction:!0,bound:!0});function Mt(e){return function(t,n){return b(t)?Ke(t.name||"<unnamed action>",t,e):b(n)?Ke(t,n,e):G(n)?(e?Ct:Pt).decorate_20223_(t,n):y(n)?K(t,n,e?Ct:Pt):y(t)?q(te(e?jt:Tt,{name:t,autoAction:e})):void 0}}var Nt=Mt(!1);Object.assign(Nt,Pt);var It=Mt(!0);function Lt(e){return b(e)&&!0===e.isMobxAction}Object.assign(It,Ct),Nt.bound=q(Rt),It.bound=q(zt);var Dt=function(e){return e()},Vt="onBO",Bt="onBUO";function $t(e,t,n){return Ut(Bt,e,t,n)}function Ut(e,t,n,r){var o="function"==typeof r?Jn(t,n):Jn(t),i=b(r)?r:n,a=e+"L";return o[a]?o[a].add(i):o[a]=new Set([i]),function(){var e=o[a];e&&(e.delete(i),0===e.size&&delete o[a])}}var Ht="never",qt="always",Kt="observed";function Gt(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(Gt)),n}var Wt=0;function Ft(){this.message="FLOW_CANCELLED"}Ft.prototype=Object.create(Error.prototype);var Zt=ae("flow"),Yt=ae("flow.bound",{bound:!0}),Xt=Object.assign((function(e,t){if(G(t))return Zt.decorate_20223_(e,t);if(y(t))return K(e,t,Zt);var n=e,r=n.name||"<unnamed flow>",o=function(){var e,t=arguments,o=++Wt,i=Nt(r+" - runid: "+o+" - init",n).apply(this,t),a=void 0,s=new Promise((function(t,n){var s=0;function l(e){var t;a=void 0;try{t=Nt(r+" - runid: "+o+" - yield "+s++,i.next).call(i,e)}catch(e){return n(e)}d(t)}function c(e){var t;a=void 0;try{t=Nt(r+" - runid: "+o+" - yield "+s++,i.throw).call(i,e)}catch(e){return n(e)}d(t)}function d(e){if(!b(null==e?void 0:e.then))return e.done?t(e.value):(a=Promise.resolve(e.value)).then(l,c);e.then(d,n)}e=n,l(void 0)}));return s.cancel=Nt(r+" - runid: "+o+" - cancel",(function(){try{a&&Jt(a);var t=i.return(void 0),n=Promise.resolve(t.value);n.then(g,g),Jt(n),e(new Ft)}catch(t){e(t)}})),s};return o.isMobXFlow=!0,o}),Zt);function Jt(e){b(e.cancel)&&e.cancel()}function Qt(e){return!0===(null==e?void 0:e.isMobXFlow)}function en(e){return function(e){return!!e&&(Vn(e)||!!e[W]||Z(e)||Et(e)||Qe(e))}(e)}function tn(e,t){void 0===t&&(t=void 0),bt();try{return e.apply(t)}finally{yt()}}function nn(e){return e[W]}Xt.bound=q(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!!y(t)&&(null==(r=nn(e).set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return!!y(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){o(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),v((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function sn(e,t){var n=at();try{for(var r=[].concat(e.interceptors_||[]),i=0,a=r.length;i<a&&((t=r[i](t))&&!t.type&&o(14),t);i++);return t}finally{st(n)}}function ln(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function cn(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),v((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function dn(e,t){var n=at(),r=e.changeListeners_;if(r){for(var o=0,i=(r=r.slice()).length;o<i;o++)r[o](t);st(n)}}var un="splice",fn="update",mn={get:function(e,t){var n=e[W];return t===W?n:"length"===t?n.getArrayLength_():"string"!=typeof t||isNaN(t)?R(vn,t)?vn[t]:e[t]:n.get_(parseInt(t))},set:function(e,t,n){var r=e[W];return"length"===t&&r.setArrayLength_(n),"symbol"==typeof t||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions:function(){o(15)}},hn=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 F(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}),cn(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!=typeof e||isNaN(e)||e<0)&&o("Out of range: "+e);var t=this.values_.length;if(e!==t)if(e>t){for(var n=new Array(e-t),r=0;r<e-t;r++)n[r]=void 0;this.spliceWithArray_(t,0,n)}else this.spliceWithArray_(e,t-e)},t.updateArrayLength_=function(e,t){e!==this.lastKnownLength_&&o(16),this.lastKnownLength_+=t,this.legacyMode_&&t>0&&Yn(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;this.atom_;var o=this.values_.length;if(void 0===e?e=0:e>o?e=o:e<0&&(e=Math.max(0,o+e)),t=1===arguments.length?o-e:null==t?0:Math.max(0,Math.min(t,o-e)),void 0===n&&(n=u),on(this)){var i=sn(this,{object:this.proxy_,type:un,index:e,removedCount:t,added:n});if(!i)return u;t=i.removedCount,n=i.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_(o,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 o=this.values_.slice(e,e+t),i=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<i.length;s++)this.values_[e+n.length+s]=i[s];return o},t.notifyArrayChildUpdate_=function(e,t,n){var r=!this.owned_&&!1,o=ln(this),i=o||r?{observableKind:"array",object:this.proxy_,type:fn,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;this.atom_.reportChanged(),o&&dn(this,i)},t.notifyArraySplice_=function(e,t,n){var r=!this.owned_&&!1,o=ln(this),i=o||r?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:un,index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom_.reportChanged(),o&&dn(this,i)},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&&o(17,e,n.length),e<n.length){this.atom_;var r=n[e];if(on(this)){var i=sn(this,{type:fn,object:this.proxy_,index:e,newValue:t});if(!i)return;t=i.newValue}(t=this.enhancer_(t,r))!==r&&(n[e]=t,this.notifyArrayChildUpdate_(e,t,r))}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),p(),tr((function(){var o=new hn(n,t,r,!1);k(o.values_,W,o);var i=new Proxy(o.values_,mn);return o.proxy_=i,e&&e.length&&o.spliceWithArray_(0,0,e),i}))}var vn={clear:function(){return this.splice(0)},replace:function(e){var t=this[W];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),o=2;o<n;o++)r[o-2]=arguments[o];var i=this[W];switch(arguments.length){case 0:return[];case 1:return i.spliceWithArray_(e);case 2:return i.spliceWithArray_(e,t)}return i.spliceWithArray_(e,t,r)},spliceWithArray:function(e,t,n){return this[W].spliceWithArray_(e,t,n)},push:function(){for(var e=this[W],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[W].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[W],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&&o(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){ht.trackingDerivation&&o(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[W],n=t.dehanceValues_(t.values_).indexOf(e);return n>-1&&(this.splice(n,1),!0)}};function gn(e,t){"function"==typeof Array.prototype[e]&&(vn[e]=t(e))}function bn(e){return function(){var t=this[W];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function yn(e){return function(t,n){var r=this,o=this[W];return o.atom_.reportObserved(),o.dehanceValues_(o.values_)[e]((function(e,o){return t.call(n,e,o,r)}))}}function _n(e){return function(){var t=this,n=this[W];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),o=arguments[0];return arguments[0]=function(e,n,r){return o(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",yn),gn("filter",yn),gn("find",yn),gn("findIndex",yn),gn("findLast",yn),gn("findLastIndex",yn),gn("flatMap",yn),gn("forEach",yn),gn("map",yn),gn("some",yn),gn("toReversed",yn),gn("reduce",_n),gn("reduceRight",_n);var xn=S("ObservableArrayAdministration",hn);function wn(e){return _(e)&&xn(e[W])}var On={},kn="add",Sn="delete",An=function(){function e(e,t,n){var r=this;void 0===t&&(t=J),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[W]=On,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)||o(18),tr((function(){r.keysAtom_=Y("ObservableMap.keys()"),r.data_=new Map,r.hasMap_=new Map,e&&r.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 Ze(this.has_(e),Q,"ObservableMap.key?",!1);this.hasMap_.set(e,r),$t(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:kn,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:Sn,object:this,name:e}))return!1;if(this.has_(e)){var n=ln(this),r=n?{observableKind:"map",debugObjectName:this.name_,type:Sn,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&&dn(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=ln(this),o=r?{observableKind:"map",debugObjectName:this.name_,type:fn,object:this,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),r&&dn(this,o)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,tn((function(){var r,o=new Ze(t,n.enhancer_,"ObservableMap.key",!1);n.data_.set(e,o),t=o.value_,null==(r=n.hasMap_.get(e))||r.setNewValue_(!0),n.keysAtom_.reportChanged()}));var r=ln(this),o=r?{observableKind:"map",debugObjectName:this.name_,type:kn,object:this,name:e,newValue:t}:null;r&&dn(this,o)},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 Tn({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:e.get(o)}}})},t.entries=function(){var e=this,t=this.keys();return Tn({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:[o,e.get(o)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=D(this);!(n=r()).done;){var o=n.value,i=o[0],a=o[1];e.call(t,a,i,this)}},t.merge=function(e){var t=this;return En(e)&&(e=new Map(e)),tn((function(){var n,r,i;x(e)?function(e){var t=Object.keys(e);if(!T)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter((function(t){return d.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)})):A(e)?(n=e,r=Object.getPrototypeOf(n),i=Object.getPrototypeOf(r),null!==Object.getPrototypeOf(i)&&o(19,e),e.forEach((function(e,n){return t.set(n,e)}))):null!=e&&o(20,e)})),this},t.clear=function(){var e=this;tn((function(){it((function(){for(var t,n=D(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,r=function(e){if(A(e)||En(e))return e;if(Array.isArray(e))return new Map(e);if(x(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return o(21,e)}(e),i=new Map,a=!1,s=D(t.data_.keys());!(n=s()).done;){var l=n.value;if(!r.has(l))if(t.delete(l))a=!0;else{var c=t.data_.get(l);i.set(l,c)}}for(var d,u=D(r.entries());!(d=u()).done;){var f=d.value,m=f[0],h=f[1],p=t.data_.has(m);if(t.set(m,h),t.data_.has(m)){var v=t.data_.get(m);i.set(m,v),p||(a=!0)}}if(!a)if(t.data_.size!==i.size)t.keysAtom_.reportChanged();else for(var g=t.data_.keys(),b=i.keys(),y=g.next(),_=b.next();!y.done;){if(y.value!==_.value){t.keysAtom_.reportChanged();break}y=g.next(),_=b.next()}t.data_=i})),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return cn(this,e)},t.intercept_=function(e){return an(this,e)},L(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),En=S("ObservableMap",An);function Tn(e){return e[Symbol.toStringTag]="MapIterator",lr(e)}var jn={},Pn=function(){function e(e,t,n){var r=this;void 0===t&&(t=J),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[W]=jn,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)||o(22),this.enhancer_=function(e,r){return t(e,r,n)},tr((function(){r.atom_=Y(r.name_),e&&r.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=D(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.forEach=function(e,t){for(var n,r=D(this);!(n=r()).done;){var o=n.value;e.call(t,o,o,this)}},t.add=function(e){var t=this;if(this.atom_,on(this)&&!sn(this,{type:kn,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=ln(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:kn,object:this,newValue:e}:null;n&&dn(this,r)}return this},t.delete=function(e){var t=this;if(on(this)&&!sn(this,{type:Sn,object:this,oldValue:e}))return!1;if(this.has(e)){var n=ln(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:Sn,object:this,oldValue:e}:null;return tn((function(){t.atom_.reportChanged(),t.data_.delete(e)})),n&&dn(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 Cn({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 Cn({next:function(){return t<n.length?{value:e.dehanceValue_(n[t++]),done:!1}:{value:void 0,done:!0}}})},t.intersection=function(e){return E(e)&&!Rn(e)?e.intersection(this):new Set(this).intersection(e)},t.union=function(e){return E(e)&&!Rn(e)?e.union(this):new Set(this).union(e)},t.difference=function(e){return new Set(this).difference(e)},t.symmetricDifference=function(e){return E(e)&&!Rn(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 E(e)&&!Rn(e)?e.isDisjointFrom(this):new Set(this).isDisjointFrom(e)},t.replace=function(e){var t=this;return Rn(e)&&(e=new Set(e)),tn((function(){Array.isArray(e)||E(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!=e&&o("Cannot initialize set from "+e)})),this},t.observe_=function(e,t){return cn(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()},L(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),Rn=S("ObservableSet",Pn);function Cn(e){return e[Symbol.toStringTag]="SetIterator",lr(e)}var zn=Object.create(null),Mn="remove",Nn=function(){function e(e,t,n,r){void 0===t&&(t=new Map),void 0===r&&(r=_e),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 F("ObservableObject.keys"),this.isPlainObject_=x(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 Ye)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 o=ln(this),i=o?{type:fn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),o&&dn(this,i)}return!0},t.get_=function(e){return ht.trackingDerivation&&!R(this.target_,e)&&this.has_(e),this.target_[e]},t.set_=function(e,t,n){return void 0===n&&(n=!1),R(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 Ze(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_[H])&&n[e])return;o(1,t.annotationType_,this.name_+"."+e.toString())}for(var r=this.target_;r&&r!==d;){var i=l(r,e);if(i){var a=t.make_(this,e,i,r);if(0===a)return;if(1===a)break}r=Object.getPrototypeOf(r)}Bn(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 o=n.extend_(this,e,t,r);return o&&Bn(this,0,e),o},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 o=sn(this,{object:this.proxy_||this.target_,name:e,type:kn,newValue:t.value});if(!o)return null;var i=o.newValue;t.value!==i&&(t=V({},t,{value:i}))}if(n){if(!Reflect.defineProperty(this.target_,e,t))return!1}else c(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{yt()}return!0},t.defineObservableProperty_=function(e,t,n,r){void 0===r&&(r=!1),this.keysAtom_;try{bt();var o=this.delete_(e);if(!o)return o;if(on(this)){var i=sn(this,{object:this.proxy_||this.target_,name:e,type:kn,newValue:t});if(!i)return null;t=i.newValue}var a=Dn(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 c(this.target_,e,s);var l=new Ze(t,n,"ObservableObject.key",!1);this.values_.set(e,l),this.notifyPropertyAddition_(e,l.value_)}finally{yt()}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:kn,newValue:void 0}))return null;t.name||(t.name="ObservableObject.key"),t.context=this.proxy_||this.target_;var o=Dn(e),i={configurable:!ht.safeDescriptors||this.isPlainObject_,enumerable:!1,get:o.get,set:o.set};if(n){if(!Reflect.defineProperty(this.target_,e,i))return!1}else c(this.target_,e,i);this.values_.set(e,new Ye(t)),this.notifyPropertyAddition_(e,void 0)}finally{yt()}return!0},t.delete_=function(e,t){if(void 0===t&&(t=!1),this.keysAtom_,!R(this.target_,e))return!0;if(on(this)&&!sn(this,{object:this.proxy_||this.target_,name:e,type:Mn}))return null;try{var n;bt();var r,o=ln(this),i=this.values_.get(e),a=void 0;if(!i&&o&&(a=null==(r=l(this.target_,e))?void 0:r.value),t){if(!Reflect.deleteProperty(this.target_,e))return!1}else delete this.target_[e];if(i&&(this.values_.delete(e),i instanceof Ze&&(a=i.value_),xt(i)),this.keysAtom_.reportChanged(),null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(e in this.target_),o){var s={type:Mn,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:a,name:e};o&&dn(this,s)}}finally{yt()}return!0},t.observe_=function(e,t){return cn(this,e)},t.intercept_=function(e){return an(this,e)},t.notifyPropertyAddition_=function(e,t){var n,r=ln(this);if(r){var o=r?{type:kn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;r&&dn(this,o)}null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),j(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function In(e,t){var n;if(R(e,W))return e;var r=null!=(n=null==t?void 0:t.name)?n:"ObservableObject",o=new Nn(e,new Map,String(r),function(e){var t;return e?null!=(t=e.defaultDecorator)?t:xe(e):void 0}(t));return O(e,W,o),e}var Ln=S("ObservableObjectAdministration",Nn);function Dn(e){return zn[e]||(zn[e]={get:function(){return this[W].getObservablePropValue_(e)},set:function(t){return this[W].setObservablePropValue_(e,t)}})}function Vn(e){return!!_(e)&&Ln(e[W])}function Bn(e,t,n){var r;null==(r=e.target_[H])||delete r[n]}var $n,Un,Hn=Fn(0),qn=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,!1===e}(),Kn=0,Gn=function(){};$n=Gn,Un=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf($n.prototype,Un):void 0!==$n.prototype.__proto__?$n.prototype.__proto__=Un:$n.prototype=Un;var Wn=function(e){function t(t,n,r,o){var i;return void 0===r&&(r="ObservableArray"),void 0===o&&(o=!1),i=e.call(this)||this,tr((function(){var e=new hn(r,n,o,!0);e.proxy_=i,k(i,W,e),t&&t.length&&i.spliceWithArray(0,0,t),qn&&Object.defineProperty(i,"0",Hn)})),i}B(t,e);var n=t.prototype;return n.concat=function(){this[W].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 wn(e)?e.slice():e})))},n[Symbol.iterator]=function(){var e=this,t=0;return lr({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})},L(t,[{key:"length",get:function(){return this[W].getArrayLength_()},set:function(e){this[W].setArrayLength_(e)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(Gn);function Fn(e){return{enumerable:!1,configurable:!0,get:function(){return this[W].get_(e)},set:function(t){this[W].set_(e,t)}}}function Zn(e){c(Wn.prototype,""+e,Fn(e))}function Yn(e){if(e>Kn){for(var t=Kn;t<e+100;t++)Zn(t);Kn=e}}function Xn(e,t,n){return new Wn(e,t,n)}function Jn(e,t){if("object"==typeof e&&null!==e){if(wn(e))return void 0!==t&&o(23),e[W].atom_;if(Rn(e))return e.atom_;if(En(e)){if(void 0===t)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||o(25,t,er(e)),n}if(Vn(e)){if(!t)return o(26);var r=e[W].values_.get(t);return r||o(27,t,er(e)),r}if(Z(e)||Qe(e)||Et(e))return e}else if(b(e)&&Et(e[W]))return e[W];o(28)}function Qn(e,t){return e||o(29),void 0!==t?Qn(Jn(e,t)):Z(e)||Qe(e)||Et(e)||En(e)||Rn(e)?e:e[W]?e[W]:void o(24,e)}function er(e,t){var n;if(void 0!==t)n=Jn(e,t);else{if(Lt(e))return e.name;n=Vn(e)||En(e)||Rn(e)?Qn(e):Jn(e)}return n.name_}function tr(e){var t=at(),n=We(!0);bt();try{return e()}finally{yt(),Fe(n),st(t)}}Object.entries(vn).forEach((function(e){var t=e[0],n=e[1];"concat"!==t&&O(Wn.prototype,t,n)})),Yn(1e3);var nr,rr=d.toString;function or(e,t,n){return void 0===n&&(n=-1),ir(e,t,n)}function ir(e,t,n,r,o){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;if("function"!==i&&"object"!==i&&"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 l=e.constructor,c=t.constructor;if(l!==c&&!(b(l)&&l instanceof l&&b(c)&&c instanceof c)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),o=o||[];for(var d=(r=r||[]).length;d--;)if(r[d]===e)return o[d]===t;if(r.push(e),o.push(t),s){if((d=e.length)!==t.length)return!1;for(;d--;)if(!ir(e[d],t[d],n-1,r,o))return!1}else{var u,f=Object.keys(e);if(d=f.length,Object.keys(t).length!==d)return!1;for(;d--;)if(!R(t,u=f[d])||!ir(e[u],t[u],n-1,r,o))return!1}return r.pop(),o.pop(),!0}function ar(e){return wn(e)?e.slice():A(e)||En(e)||E(e)||Rn(e)?Array.from(e.entries()):e}var sr=(null==(nr=a().Iterator)?void 0:nr.prototype)||{};function lr(e){return e[Symbol.iterator]=cr,Object.assign(Object.create(sr),e)}function cr(){return this}["Symbol","Map","Set"].forEach((function(e){void 0===a()[e]&&o("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:W});var dr=r(953),ur=r.n(dr);if(!dr.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!function(e,t,n){return tr((function(){var r=In(e,n)[W];null!=t||(t=function(e){return R(e,H)||O(e,H,V({},e[H])),e[H]}(e)),j(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=n(180);function mr(e){e()}function hr(e){e||(e=mr),function(e){!0===e.isolateGlobalState&&function(){if((ht.pendingReactions.length||ht.inBatch||ht.isRunningReactions)&&o(36),mt=!0,ft){var e=a();0==--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),ht=new ut}}();var t,n,r=e.useProxies,i=e.enforceActions;if(void 0!==r&&(ht.useProxies=r===qt||r!==Ht&&"undefined"!=typeof Proxy),"ifavailable"===r&&(ht.verifyProxies=!0),void 0!==i){var s=i===qt?qt:i===Kt;ht.enforceActions=s,ht.allowStateChanges=!0!==s&&s!==qt}["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=kt,kt=function(e){return t((function(){return n(e)}))})}({reactionScheduler:e})}var pr=function(){return!0};function vr(e){return Gt(Jn(e,void 0))}var gr=!1;function br(e){gr=e}function yr(){return gr}var _r,xr,wr=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,o){n-r.registeredAt>=e&&(t.finalize(r.value),t.registrations.delete(o))})),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}(),Or=new("undefined"!=typeof FinalizationRegistry?FinalizationRegistry:wr)((function(e){var t;null===(t=e.reaction)||void 0===t||t.dispose(),e.reaction=null})),kr=r(634);function Sr(e){e.reaction=new wt("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"),yr())return e();var n=ur().useRef(null);if(!n.current){var r={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(e){return Or.unregister(r),r.onStoreChange=e,r.reaction||(Sr(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 o,i,a=n.current;if(a.reaction||(Sr(a),Or.register(n,a,a)),ur().useDebugValue(a.reaction,vr),(0,kr.useSyncExternalStore)(a.subscribe,a.getSnapshot,a.getSnapshot),a.reaction.track((function(){try{o=e()}catch(e){i=e}})),i)throw i;return o}var Er="function"==typeof Symbol&&Symbol.for,Tr=null!==(xr=null===(_r=Object.getOwnPropertyDescriptor((function(){}),"name"))||void 0===_r?void 0:_r.configurable)&&void 0!==xr&&xr,jr=Er?Symbol.for("react.forward_ref"):"function"==typeof dr.forwardRef&&(0,dr.forwardRef)((function(e){return null})).$$typeof,Pr=Er?Symbol.for("react.memo"):"function"==typeof dr.memo&&(0,dr.memo)((function(e){return null})).$$typeof;function Rr(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(yr())return e;var r=null!==(n=null==t?void 0:t.forwardRef)&&void 0!==n&&n,o=e,i=e.displayName||e.name;if(jr&&e.$$typeof===jr&&(r=!0,"function"!=typeof(o=e.render)))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var a,s,l=function(e,t){return Ar((function(){return o(e,t)}),i)};return l.displayName=e.displayName,Tr&&Object.defineProperty(l,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(l.contextTypes=e.contextTypes),r&&(l=(0,dr.forwardRef)(l)),l=(0,dr.memo)(l),a=e,s=l,Object.keys(a).forEach((function(e){zr[e]||Object.defineProperty(s,e,Object.getOwnPropertyDescriptor(a,e))})),l}var Cr,zr={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function Mr(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 Nr(e,t){return(0,dr.useState)((function(){return Ie(e(),t,{autoBind:!0})}))[0]}function Ir(e){var t=(0,dr.useState)((function(){return Ie(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&&Ir(t);return(0,dr.useState)((function(){return Ie(e(n),void 0,{autoBind:!0})}))[0]}Mr.displayName="Observer",hr(fr.unstable_batchedUpdates);var Dr=null!==(Cr=Or.finalizeAllImmediately)&&void 0!==Cr?Cr:function(){};function Vr(e,t){return void 0===t&&(t="observed"),Ar(e,t)}function Br(e){br(e)}},89:(e,t,n)=>{n.r(t),n.d(t,{default:()=>g});var r=n(478),o=n.n(r),i=n(135),a=n.n(i),s=n(301),l=n.n(s),c=n(222),d=n.n(c),u=n(626),f=n.n(u),m=n(279),h=n.n(m),p=n(428),v={};v.styleTagTransform=h(),v.setAttributes=d(),v.insert=l().bind(null,"head"),v.domAPI=a(),v.insertStyleElement=f(),o()(p.A,v);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 i={},a=[],s=0;s<e.length;s++){var l=e[s],c=r.base?l[0]+r.base:l[0],d=i[c]||0,u="".concat(c," ").concat(d);i[c]=d+1;var f=n(u),m={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==f)t[f].references++,t[f].updater(m);else{var h=o(m,r);r.byIndex=s,t.splice(s,0,{identifier:u,updater:h,references:1})}a.push(u)}return a}function o(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,o){var i=r(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var s=n(i[a]);t[s].references--}for(var l=r(e,o),c=0;c<i.length;c++){var d=n(i[c]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}i=l}}},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 o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),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),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var d="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,d=r[1];return s((function(){o.value=n,o.getSnapshot=t,c(o)&&d({inst:o})}),[e,n,t]),a((function(){return c(o)&&d({inst:o}),e((function(){c(o)&&d({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:d},634:(e,t,n)=>{e.exports=n(319)},306:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useStationLogin=void 0;const i=n(953),a=o(n(768));t.useStationLogin=e=>{const t=e.cc,n=e.onLogin,o=e.onLogout,s=e.logger,[l,c]=(0,i.useState)(""),[d,u]=(0,i.useState)(e.deviceType||""),[f,m]=(0,i.useState)(""),[h,p]=(0,i.useState)(),[v,g]=(0,i.useState)(),[b,y]=(0,i.useState)();return{name:"StationLogin",setDeviceType:u,setDialNumber:c,setTeam:m,login:()=>{t.stationLogin({teamId:f,loginOption:d,dialNumber:l}).then((e=>{p(e),a.default.setDeviceType(d),a.default.setIsAgentLoggedIn(!0),e.data.auxCodeId&&a.default.setCurrentState(e.data.auxCodeId),e.data.lastStateChangeTimestamp&&a.default.setLastStateChangeTimestamp(new Date(e.data.lastStateChangeTimestamp)),n&&n()})).catch((e=>{s.error(`Error logging in: ${e}`,{module:"widget-station-login#helper.ts",method:"login"}),g(e)}))},logout:()=>{t.stationLogout({logoutReason:"User requested logout"}).then((e=>{y(e),a.default.setIsAgentLoggedIn(!1),a.default.setDeviceType(""),o&&o()})).catch((e=>{s.error(`Error logging out: ${e}`,{module:"widget-station-login#helper.ts",method:"logout"})}))},relogin:function(){a.default.setDeviceType(d),n&&n()},loginSuccess:h,loginFailure:v,logoutSuccess:b,handleContinue:()=>r(void 0,void 0,void 0,(function*(){try{a.default.setShowMultipleLoginAlert(!1),yield a.default.registerCC(),a.default.isAgentLoggedIn?s.log("Agent Relogin Success",{module:"widget-station-login#station-login/helper.ts",method:"handleContinue"}):s.error("Agent Relogin Failed",{module:"widget-station-login#station-login/helper.ts",method:"handleContinue"})}catch(e){s.error(`Error handling agent multi login continue: ${e}`,{module:"widget-station-login#station-login/index.tsx",method:"handleContinue"})}}))}}},214:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MULTIPLE_SIGN_IN_ALERT_TITLE=t.MULTIPLE_SIGN_IN_ALERT_MESSAGE=void 0,t.MULTIPLE_SIGN_IN_ALERT_MESSAGE="You are signed in to the Desktop in multiple application instances. Click Continue to proceed with the Desktop in this application instance. Else, close this window.",t.MULTIPLE_SIGN_IN_ALERT_TITLE="Multiple Sign In Alert"},17: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.StationLogin=void 0;const o=r(n(953)),i=r(n(768)),a=n(62),s=r(n(688)),l=n(306),c=(0,a.observer)((({onLogin:e,onLogout:t})=>{const{cc:n,teams:r,loginOptions:a,logger:c,isAgentLoggedIn:d,showMultipleLoginAlert:u,deviceType:f}=i.default,m=(0,l.useStationLogin)({cc:n,onLogin:e,onLogout:t,logger:c,deviceType:f}),h=Object.assign(Object.assign({},m),{teams:r,loginOptions:a,deviceType:f,isAgentLoggedIn:d,showMultipleLoginAlert:u});return o.default.createElement(s.default,Object.assign({},h))}));t.StationLogin=c},688:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=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 o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(953));n(89);const s=n(214);t.default=e=>{const{name:t,teams:n,loginOptions:r,login:o,logout:i,relogin:l,setDeviceType:c,setDialNumber:d,setTeam:u,isAgentLoggedIn:f,deviceType:m,showMultipleLoginAlert:h,handleContinue:p}=e,v=(0,a.useRef)(null);return(0,a.useEffect)((()=>{const e=document.getElementById("teamsDropdown"),t=document.querySelector("#LoginOption"),o=document.querySelector("#dialNumber");e&&(e.innerHTML="",n&&(n.forEach((t=>{const n=document.createElement("option");n.value=t.id,n.text=t.name,e.add(n)})),u(e.value),o.value="",o.disabled=!0)),r.length>0&&(r.forEach((e=>{const n=document.createElement("option");n.text=e,n.value=e,t.add(n)})),t&&m&&(t.value=m))}),[n,r]),(0,a.useEffect)((()=>{const e=v.current;h&&e&&e.showModal()}),[h,v]),(0,a.useEffect)((()=>{if(!f)return;const e=document.querySelector("#LoginOption");e&&!e.value&&(c(m),e.value=m,l())}),[f]),a.default.createElement(a.default.Fragment,null,h&&a.default.createElement("dialog",{ref:v,className:"modal"},a.default.createElement("h2",null,s.MULTIPLE_SIGN_IN_ALERT_TITLE),a.default.createElement("p",null,s.MULTIPLE_SIGN_IN_ALERT_MESSAGE),a.default.createElement("div",{className:"modal-content"},a.default.createElement("button",{id:"ContinueButton","data-testid":"ContinueButton",onClick:()=>{const e=v.current;e&&(e.close(),p())}},"Continue"))),a.default.createElement("h1",{"data-testid":"station-login-heading"},t),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"},"Agent"),a.default.createElement("div",{style:{display:"flex",flexDirection:"column",flexGrow:1}},a.default.createElement("div",{style:{display:"flex",gap:"1rem"}},a.default.createElement("fieldset",{style:{border:"1px solid #ccc",borderRadius:"5px",padding:"10px",marginBottom:"20px",flex:.69}},a.default.createElement("legend",{className:"legend-box"},"Select Team"),a.default.createElement("select",{id:"teamsDropdown",className:"select"},"Teams")),a.default.createElement("fieldset",{className:"fieldset"},a.default.createElement("legend",{className:"legend-box"},"Agent Login"),a.default.createElement("select",{name:"LoginOption",id:"LoginOption",className:"select",onChange:e=>{const t=document.querySelector("#dialNumber"),n=e.target.value;c(n),t.disabled="AGENT_DN"!==n&&"EXTENSION"!==n}},a.default.createElement("option",{value:"",hidden:!0},"Choose Agent Login Option...")),a.default.createElement("input",{className:"input",id:"dialNumber",name:"dialNumber",placeholder:"Extension/Dial Number",type:"text",onInput:function(){const e=document.querySelector("#dialNumber");d(e.value)}}),f?a.default.createElement("button",{id:"logoutAgent",className:"btn",onClick:i},"Logout"):a.default.createElement("button",{id:"AgentLogin",className:"btn",onClick:o},"Login"))))))))}},768:e=>{e.exports=n(768)},953:e=>{e.exports=n(953)}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var i=r[e]={id:e,exports:{}};return t[e].call(i.exports,i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var i={};(()=>{var e=i;Object.defineProperty(e,"__esModule",{value:!0}),e.StationLogin=void 0;const t=o(17);Object.defineProperty(e,"StationLogin",{enumerable:!0,get:function(){return t.StationLogin}})})(),e.exports=i})()},32:(e,t,n)=>{(()=>{"use strict";var t={178:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(63),o=n.n(r),i=n(248),a=n.n(i)()(o());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,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var c=0;c<e.length;c++){var d=[].concat(e[c]);r&&a[d[0]]||(void 0!==i&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=i),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),o&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=o):d[4]="".concat(o)),t.push(d))}},t}},63:e=>{e.exports=function(e){return e[1]}},62:(e,t,r)=>{function o(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)}r.r(t),r.d(t,{Observer:()=>Mr,_observerFinalizationRegistry:()=>Or,clearTimers:()=>Dr,enableStaticRendering:()=>br,isObserverBatched:()=>pr,isUsingStaticRendering:()=>yr,observer:()=>Rr,observerBatching:()=>hr,useAsObservableSource:()=>Ir,useLocalObservable:()=>Nr,useLocalStore:()=>Lr,useObserver:()=>Vr,useStaticRendering:()=>Br});var i={};function a(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:i}var s=Object.assign,l=Object.getOwnPropertyDescriptor,c=Object.defineProperty,d=Object.prototype,u=[];Object.freeze(u);var f={};Object.freeze(f);var m="undefined"!=typeof Proxy,h=Object.toString();function p(){m||o("Proxy not available")}function v(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var g=function(){};function b(e){return"function"==typeof e}function y(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function _(e){return null!==e&&"object"==typeof e}function x(e){if(!_(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 w(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function O(e,t,n){c(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function k(e,t,n){c(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 _(e)&&!0===e[n]}}function A(e){return null!=e&&"[object Map]"===Object.prototype.toString.call(e)}function E(e){return null!=e&&"[object Set]"===Object.prototype.toString.call(e)}var T=void 0!==Object.getOwnPropertySymbols,j="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:T?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function P(e){return null===e?null:"object"==typeof e?""+e:e}function R(e,t){return d.hasOwnProperty.call(e,t)}var C=Object.getOwnPropertyDescriptors||function(e){var t={};return j(e).forEach((function(n){t[n]=l(e,n)})),t};function z(e,t){return!!(e&t)}function M(e,t,n){return n?e|=t:e&=~t,e}function N(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 I(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,U(r.key),r)}}function L(e,t,n){return t&&I(e.prototype,t),n&&I(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function D(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 N(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)?N(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 V(){return V=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},V.apply(null,arguments)}function B(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$(e,t)}function $(e,t){return $=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$(e,t)}function U(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 H=Symbol("mobx-stored-annotations");function q(e){return Object.assign((function(t,n){if(G(n))return e.decorate_20223_(t,n);K(t,n,e)}),e)}function K(e,t,n){R(e,H)||O(e,H,V({},e[H])),function(e){return e.annotationType_===ee}(n)||(e[H][t]=n)}function G(e){return"object"==typeof e&&"string"==typeof e.kind}var W=Symbol("mobx administration"),F=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_=Xe.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 _t(this)},t.reportChanged=function(){bt(),xt(this),yt()},t.toString=function(){return this.name_},L(e,[{key:"isBeingObserved",get:function(){return z(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=M(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return z(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=M(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return z(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=M(this.flags_,e.diffValueMask_,1===t)}}])}();F.isBeingObservedMask_=1,F.isPendingUnobservationMask_=2,F.diffValueMask_=4;var Z=S("Atom",F);function Y(e,t,n){void 0===t&&(t=g),void 0===n&&(n=g);var r=new F(e);return t!==g&&Ut(Vt,r,t,void 0),n!==g&&$t(r,n),r}var X={identity:function(e,t){return e===t},structural:function(e,t){return or(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 or(e,t,1)}};function J(e,t,n){return en(e)?e:Array.isArray(e)?Ie.array(e,{name:n}):x(e)?Ie.object(e,void 0,{name:n}):A(e)?Ie.map(e,{name:n}):E(e)?Ie.set(e,{name:n}):"function"!=typeof e||Lt(e)||Qt(e)?e:w(e)?Xt(e):It(n,e)}function Q(e){return e}var ee="override";function te(e,t){return{annotationType_:e,options_:t,make_:ne,extend_:re,decorate_20223_:oe}}function ne(e,t,n,r){var o;if(null!=(o=this.options_)&&o.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(Lt(n.value))return 1;var i=ie(e,this,t,n,!1);return c(r,t,i),2}function re(e,t,n,r){var o=ie(e,this,t,n);return e.defineProperty_(t,o,r)}function oe(e,t){var n,r=t.kind,i=t.name,a=t.addInitializer,s=this,l=function(e){var t,n,r,o;return Ke(null!=(t=null==(n=s.options_)?void 0:n.name)?t:i.toString(),e,null!=(r=null==(o=s.options_)?void 0:o.autoAction)&&r)};return"field"==r?function(e){var t,n=e;return Lt(n)||(n=l(n)),null!=(t=s.options_)&&t.bound&&((n=n.bind(this)).isMobxAction=!0),n}:"method"==r?(Lt(e)||(e=l(e)),null!=(n=this.options_)&&n.bound&&a((function(){var e=this,t=e[i].bind(e);t.isMobxAction=!0,e[i]=t})),e):void o("Cannot apply '"+s.annotationType_+"' to '"+String(i)+"' (kind: "+r+"):\n'"+s.annotationType_+"' can only be used on properties with a function value.")}function ie(e,t,n,r,o){var i,a,s,l,c,d,u,f;void 0===o&&(o=ht.safeDescriptors),f=r,t.annotationType_,f.value;var m,h=r.value;return null!=(i=t.options_)&&i.bound&&(h=h.bind(null!=(m=e.proxy_)?m:e.target_)),{value:Ke(null!=(a=null==(s=t.options_)?void 0:s.name)?a:n.toString(),h,null!=(l=null==(c=t.options_)?void 0:c.autoAction)&&l,null!=(d=t.options_)&&d.bound?null!=(u=e.proxy_)?u:e.target_:void 0),configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function ae(e,t){return{annotationType_:e,options_:t,make_:se,extend_:le,decorate_20223_:ce}}function se(e,t,n,r){var o;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(null!=(o=this.options_)&&o.bound&&(!R(e.target_,t)||!Qt(e.target_[t]))&&null===this.extend_(e,t,n,!1))return 0;if(Qt(n.value))return 1;var i=de(e,this,0,n,!1,!1);return c(r,t,i),2}function le(e,t,n,r){var o,i=de(e,this,0,n,null==(o=this.options_)?void 0:o.bound);return e.defineProperty_(t,i,r)}function ce(e,t){var n,r=t.name,o=t.addInitializer;return Qt(e)||(e=Xt(e)),null!=(n=this.options_)&&n.bound&&o((function(){var e=this,t=e[r].bind(e);t.isMobXFlow=!0,e[r]=t})),e}function de(e,t,n,r,o,i){var a;void 0===i&&(i=ht.safeDescriptors),a=r,t.annotationType_,a.value;var s,l=r.value;return Qt(l)||(l=Xt(l)),o&&((l=l.bind(null!=(s=e.proxy_)?s:e.target_)).isMobXFlow=!0),{value:l,configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function ue(e,t){return{annotationType_:e,options_:t,make_:fe,extend_:me,decorate_20223_:he}}function fe(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function me(e,t,n,r){return o=n,this.annotationType_,o.get,e.defineComputedProperty_(t,V({},this.options_,{get:n.get,set:n.set}),r);var o}function he(e,t){var n=this,r=t.name;return(0,t.addInitializer)((function(){var t=In(this)[W],o=V({},n.options_,{get:e,context:this});o.name||(o.name="ObservableObject."+r.toString()),t.values_.set(r,new Ye(o))})),function(){return this[W].getObservablePropValue_(r)}}function pe(e,t){return{annotationType_:e,options_:t,make_:ve,extend_:ge,decorate_20223_:be}}function ve(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function ge(e,t,n,r){var o,i;return this.annotationType_,e.defineObservableProperty_(t,n.value,null!=(o=null==(i=this.options_)?void 0:i.enhancer)?o:J,r)}function be(e,t){var n=this,r=t.kind,o=t.name,i=new WeakSet;function a(e,t){var r,a,s=In(e)[W],l=new Ze(t,null!=(r=null==(a=n.options_)?void 0:a.enhancer)?r:J,"ObservableObject."+o.toString(),!1);s.values_.set(o,l),i.add(e)}if("accessor"==r)return{get:function(){return i.has(this)||a(this,e.get.call(this)),this[W].getObservablePropValue_(o)},set:function(e){return i.has(this)||a(this,e),this[W].setObservablePropValue_(o,e)},init:function(e){return i.has(this)||a(this,e),e}}}var ye="true",_e=xe();function xe(e){return{annotationType_:ye,options_:e,make_:we,extend_:Oe,decorate_20223_:ke}}function we(e,t,n,r){var o,i,a,s;if(n.get)return Be.make_(e,t,n,r);if(n.set){var l=Ke(t.toString(),n.set);return r===e.target_?null===e.defineProperty_(t,{configurable:!ht.safeDescriptors||e.isPlainObject_,set:l})?0:2:(c(r,t,{configurable:!0,set:l}),2)}if(r!==e.target_&&"function"==typeof n.value)return w(n.value)?(null!=(s=this.options_)&&s.autoBind?Xt.bound:Xt).make_(e,t,n,r):(null!=(a=this.options_)&&a.autoBind?It.bound:It).make_(e,t,n,r);var d,u=!1===(null==(o=this.options_)?void 0:o.deep)?Ie.ref:Ie;return"function"==typeof n.value&&null!=(i=this.options_)&&i.autoBind&&(n.value=n.value.bind(null!=(d=e.proxy_)?d:e.target_)),u.make_(e,t,n,r)}function Oe(e,t,n,r){var o,i,a;return n.get?Be.extend_(e,t,n,r):n.set?e.defineProperty_(t,{configurable:!ht.safeDescriptors||e.isPlainObject_,set:Ke(t.toString(),n.set)},r):("function"==typeof n.value&&null!=(o=this.options_)&&o.autoBind&&(n.value=n.value.bind(null!=(a=e.proxy_)?a:e.target_)),(!1===(null==(i=this.options_)?void 0:i.deep)?Ie.ref:Ie).extend_(e,t,n,r))}function ke(e,t){o("'"+this.annotationType_+"' cannot be used as a decorator")}var Se={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function Ae(e){return e||Se}Object.freeze(Se);var Ee=pe("observable"),Te=pe("observable.ref",{enhancer:Q}),je=pe("observable.shallow",{enhancer:function(e,t,n){return null==e||Vn(e)||wn(e)||En(e)||Rn(e)?e:Array.isArray(e)?Ie.array(e,{name:n,deep:!1}):x(e)?Ie.object(e,void 0,{name:n,deep:!1}):A(e)?Ie.map(e,{name:n,deep:!1}):E(e)?Ie.set(e,{name:n,deep:!1}):void 0}}),Pe=pe("observable.struct",{enhancer:function(e,t){return or(e,t)?t:e}}),Re=q(Ee);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 ze(e,t,n){return G(t)?Ee.decorate_20223_(e,t):y(t)?void K(e,t,Ee):en(e)?e:x(e)?Ie.object(e,t,n):Array.isArray(e)?Ie.array(e,t):A(e)?Ie.map(e,t):E(e)?Ie.set(e,t):"object"==typeof e&&null!==e?e:Ie.box(e,t)}s(ze,Re);var Me,Ne,Ie=s(ze,{box:function(e,t){var n=Ae(t);return new Ze(e,Ce(n),n.name,!0,n.equals)},array:function(e,t){var n=Ae(t);return(!1===ht.useProxies||!1===n.proxy?Xn:pn)(e,Ce(n),n.name)},map:function(e,t){var n=Ae(t);return new An(e,Ce(n),n.name)},set:function(e,t){var n=Ae(t);return new Pn(e,Ce(n),n.name)},object:function(e,t,n){return tr((function(){return function(e,t,n){var r=C(t);return tr((function(){var t=In(e,void 0)[W];j(r).forEach((function(e){t.extend_(e,r[e],!n||!(e in n)||n[e])}))})),e}(!1===ht.useProxies||!1===(null==n?void 0:n.proxy)?In({},n):function(e,t){var n,r;return p(),null!=(r=(n=(e=In(e,t))[W]).proxy_)?r:n.proxy_=new Proxy(e,rn)}({},n),e,t)}))},ref:q(Te),shallow:q(je),deep:Re,struct:q(Pe)}),Le="computed",De=ue(Le),Ve=ue("computed.struct",{equals:X.structural}),Be=function(e,t){if(G(t))return De.decorate_20223_(e,t);if(y(t))return K(e,t,De);if(x(e))return q(ue(Le,e));var n=x(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new Ye(n)};Object.assign(Be,De),Be.struct=q(Ve);var $e=0,Ue=1,He=null!=(Me=null==(Ne=l((function(){}),"name"))?void 0:Ne.configurable)&&Me,qe={value:"action",configurable:!0,writable:!1,enumerable:!1};function Ke(e,t,n,r){function o(){return Ge(0,n,t,r||this,arguments)}return void 0===n&&(n=!1),o.isMobxAction=!0,o.toString=function(){return t.toString()},He&&(qe.value=e,c(o,"name",qe)),o}function Ge(e,t,n,r,i){var a=function(e,t){var n=ht.trackingDerivation,r=!t||!n;bt();var o=ht.allowStateChanges;r&&(at(),o=We(!0));var i={runAsAction_:r,prevDerivation_:n,prevAllowStateChanges_:o,prevAllowStateReads_:lt(!0),notifySpy_:!1,startTime_:0,actionId_:Ue++,parentActionId_:$e};return $e=i.actionId_,i}(0,t);try{return n.apply(r,i)}catch(e){throw a.error_=e,e}finally{!function(e){$e!==e.actionId_&&o(30),$e=e.parentActionId_,void 0!==e.error_&&(ht.suppressReactionErrors=!0),Fe(e.prevAllowStateChanges_),ct(e.prevAllowStateReads_),yt(),e.runAsAction_&&st(e.prevDerivation_),ht.suppressReactionErrors=!1}(a)}}function We(e){var t=ht.allowStateChanges;return ht.allowStateChanges=e,t}function Fe(e){ht.allowStateChanges=e}var Ze=function(e){function t(t,n,r,o,i){var a;return void 0===r&&(r="ObservableValue"),void 0===o&&(o=!0),void 0===i&&(i=X.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=i,a.value_=n(t,void 0,r),a}B(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(),ln(this)&&dn(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}),cn(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 P(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},t}(F),Ye=function(){function e(e){this.dependenciesState_=Xe.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Xe.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new et(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||o(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=Ke("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?X.structural:X.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_===Xe.UP_TO_DATE_&&(e.lowestObserverState_=Xe.POSSIBLY_STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Xe.UP_TO_DATE_&&(e.dependenciesState_=Xe.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&&o(32,this.name_,this.derivation),0!==ht.inBatch||0!==this.observers_.size||this.keepAlive_){if(_t(this),nt(this)){var e=ht.trackingContext;this.keepAlive_&&!e&&(ht.trackingContext=this),this.trackAndCompute()&&function(e){e.lowestObserverState_!==Xe.STALE_&&(e.lowestObserverState_=Xe.STALE_,e.observers_.forEach((function(t){t.dependenciesState_===Xe.POSSIBLY_STALE_?t.dependenciesState_=Xe.STALE_:t.dependenciesState_===Xe.UP_TO_DATE_&&(e.lowestObserverState_=Xe.UP_TO_DATE_)})))}(this),ht.trackingContext=e}}else nt(this)&&(this.warnAboutUntrackedRead_(),bt(),this.value_=this.computeValue_(!1),yt());var t=this.value_;if(tt(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter&&o(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter=!1}}else o(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===Xe.NOT_TRACKING_,n=this.computeValue_(!0),r=t||tt(e)||tt(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing=!0;var t,n=We(!1);if(e)t=rt(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 et(e)}return Fe(n),this.isComputing=!1,t},t.suspend_=function(){this.keepAlive_||(ot(this),this.value_=void 0)},t.observe_=function(e,t){var n=this,r=!0,o=void 0;return function(e,t){var n,r,o,i;void 0===t&&(t=f);var a,s=null!=(n=null==(r=t)?void 0:r.name)?n:"Autorun";if(t.scheduler||t.delay){var l=function(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Dt}(t),c=!1;a=new wt(s,(function(){c||(c=!0,l((function(){c=!1,a.isDisposed||a.track(d)})))}),t.onError,t.requiresObservable)}else a=new wt(s,(function(){this.track(d)}),t.onError,t.requiresObservable);function d(){e()}return null!=(o=t)&&null!=(o=o.signal)&&o.aborted||a.schedule_(),a.getDisposer_(null==(i=t)?void 0:i.signal)}((function(){var i=n.get();if(!r||t){var a=at();e({observableKind:"computed",debugObjectName:n.name_,type:fn,object:n,newValue:i,oldValue:o}),st(a)}r=!1,o=i}))},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return P(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},L(e,[{key:"isComputing",get:function(){return z(this.flags_,e.isComputingMask_)},set:function(t){this.flags_=M(this.flags_,e.isComputingMask_,t)}},{key:"isRunningSetter",get:function(){return z(this.flags_,e.isRunningSetterMask_)},set:function(t){this.flags_=M(this.flags_,e.isRunningSetterMask_,t)}},{key:"isBeingObserved",get:function(){return z(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=M(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return z(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=M(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return z(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=M(this.flags_,e.diffValueMask_,1===t)}}])}();Ye.isComputingMask_=1,Ye.isRunningSetterMask_=2,Ye.isBeingObservedMask_=4,Ye.isPendingUnobservationMask_=8,Ye.diffValueMask_=16;var Xe,Je,Qe=S("ComputedValue",Ye);!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_"}(Xe||(Xe={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Je||(Je={}));var et=function(e){this.cause=void 0,this.cause=e};function tt(e){return e instanceof et}function nt(e){switch(e.dependenciesState_){case Xe.UP_TO_DATE_:return!1;case Xe.NOT_TRACKING_:case Xe.STALE_:return!0;case Xe.POSSIBLY_STALE_:for(var t=lt(!0),n=at(),r=e.observing_,o=r.length,i=0;i<o;i++){var a=r[i];if(Qe(a)){if(ht.disableErrorBoundaries)a.get();else try{a.get()}catch(e){return st(n),ct(t),!0}if(e.dependenciesState_===Xe.STALE_)return st(n),ct(t),!0}}return dt(e),st(n),ct(t),!1}}function rt(e,t,n){var r=lt(!0);dt(e),e.newObserving_=new Array(0===e.runId_?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++ht.runId;var o,i=ht.trackingDerivation;if(ht.trackingDerivation=e,ht.inBatch++,!0===ht.disableErrorBoundaries)o=t.call(n);else try{o=t.call(n)}catch(e){o=new et(e)}return ht.inBatch--,ht.trackingDerivation=i,function(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=Xe.UP_TO_DATE_,o=0,i=e.unboundDepsCount_,a=0;a<i;a++){var s=n[a];0===s.diffValue&&(s.diffValue=1,o!==a&&(n[o]=s),o++),s.dependenciesState_>r&&(r=s.dependenciesState_)}for(n.length=o,e.newObserving_=null,i=t.length;i--;){var l=t[i];0===l.diffValue&&vt(l,e),l.diffValue=0}for(;o--;){var c=n[o];1===c.diffValue&&(c.diffValue=0,pt(c,e))}r!==Xe.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}(e),ct(r),o}function ot(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)vt(t[n],e);e.dependenciesState_=Xe.NOT_TRACKING_}function it(e){var t=at();try{return e()}finally{st(t)}}function at(){var e=ht.trackingDerivation;return ht.trackingDerivation=null,e}function st(e){ht.trackingDerivation=e}function lt(e){var t=ht.allowStateReads;return ht.allowStateReads=e,t}function ct(e){ht.allowStateReads=e}function dt(e){if(e.dependenciesState_!==Xe.UP_TO_DATE_){e.dependenciesState_=Xe.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=Xe.UP_TO_DATE_}}var ut=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},ft=!0,mt=!1,ht=function(){var e=a();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(ft=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new ut).version&&(ft=!1),ft?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new ut):(setTimeout((function(){mt||o(35)}),1),new ut)}();function pt(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function vt(e,t){e.observers_.delete(t),0===e.observers_.size&&gt(e)}function gt(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,ht.pendingUnobservations.push(e))}function bt(){ht.inBatch++}function yt(){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 Ye&&n.suspend_())}ht.pendingUnobservations=[]}}function _t(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&&gt(e),!1)}function xt(e){e.lowestObserverState_!==Xe.STALE_&&(e.lowestObserverState_=Xe.STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Xe.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=Xe.STALE_})))}var wt=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_=Xe.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,nt(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(e){this.reportExceptionInDerivation_(e)}}ht.trackingContext=e,yt()}},t.track=function(e){if(!this.isDisposed){bt(),this.isRunning=!0;var t=ht.trackingContext;ht.trackingContext=this;var n=rt(this,e,void 0);ht.trackingContext=t,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&ot(this),tt(n)&&this.reportExceptionInDerivation_(n.cause),yt()}},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(),ot(this),yt()))},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[W]=this,n},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1)},L(e,[{key:"isDisposed",get:function(){return z(this.flags_,e.isDisposedMask_)},set:function(t){this.flags_=M(this.flags_,e.isDisposedMask_,t)}},{key:"isScheduled",get:function(){return z(this.flags_,e.isScheduledMask_)},set:function(t){this.flags_=M(this.flags_,e.isScheduledMask_,t)}},{key:"isTrackPending",get:function(){return z(this.flags_,e.isTrackPendingMask_)},set:function(t){this.flags_=M(this.flags_,e.isTrackPendingMask_,t)}},{key:"isRunning",get:function(){return z(this.flags_,e.isRunningMask_)},set:function(t){this.flags_=M(this.flags_,e.isRunningMask_,t)}},{key:"diffValue",get:function(){return z(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=M(this.flags_,e.diffValueMask_,1===t)}}])}();wt.isDisposedMask_=1,wt.isScheduledMask_=2,wt.isTrackPendingMask_=4,wt.isRunningMask_=8,wt.diffValueMask_=16;var Ot=100,kt=function(e){return e()};function St(){ht.inBatch>0||ht.isRunningReactions||kt(At)}function At(){ht.isRunningReactions=!0;for(var e=ht.pendingReactions,t=0;e.length>0;){++t===Ot&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,o=n.length;r<o;r++)n[r].runReaction_()}ht.isRunningReactions=!1}var Et=S("Reaction",wt),Tt="action",jt="autoAction",Pt=te(Tt),Rt=te("action.bound",{bound:!0}),Ct=te(jt,{autoAction:!0}),zt=te("autoAction.bound",{autoAction:!0,bound:!0});function Mt(e){return function(t,n){return b(t)?Ke(t.name||"<unnamed action>",t,e):b(n)?Ke(t,n,e):G(n)?(e?Ct:Pt).decorate_20223_(t,n):y(n)?K(t,n,e?Ct:Pt):y(t)?q(te(e?jt:Tt,{name:t,autoAction:e})):void 0}}var Nt=Mt(!1);Object.assign(Nt,Pt);var It=Mt(!0);function Lt(e){return b(e)&&!0===e.isMobxAction}Object.assign(It,Ct),Nt.bound=q(Rt),It.bound=q(zt);var Dt=function(e){return e()},Vt="onBO",Bt="onBUO";function $t(e,t,n){return Ut(Bt,e,t,n)}function Ut(e,t,n,r){var o="function"==typeof r?Jn(t,n):Jn(t),i=b(r)?r:n,a=e+"L";return o[a]?o[a].add(i):o[a]=new Set([i]),function(){var e=o[a];e&&(e.delete(i),0===e.size&&delete o[a])}}var Ht="never",qt="always",Kt="observed";function Gt(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(Gt)),n}var Wt=0;function Ft(){this.message="FLOW_CANCELLED"}Ft.prototype=Object.create(Error.prototype);var Zt=ae("flow"),Yt=ae("flow.bound",{bound:!0}),Xt=Object.assign((function(e,t){if(G(t))return Zt.decorate_20223_(e,t);if(y(t))return K(e,t,Zt);var n=e,r=n.name||"<unnamed flow>",o=function(){var e,t=arguments,o=++Wt,i=Nt(r+" - runid: "+o+" - init",n).apply(this,t),a=void 0,s=new Promise((function(t,n){var s=0;function l(e){var t;a=void 0;try{t=Nt(r+" - runid: "+o+" - yield "+s++,i.next).call(i,e)}catch(e){return n(e)}d(t)}function c(e){var t;a=void 0;try{t=Nt(r+" - runid: "+o+" - yield "+s++,i.throw).call(i,e)}catch(e){return n(e)}d(t)}function d(e){if(!b(null==e?void 0:e.then))return e.done?t(e.value):(a=Promise.resolve(e.value)).then(l,c);e.then(d,n)}e=n,l(void 0)}));return s.cancel=Nt(r+" - runid: "+o+" - cancel",(function(){try{a&&Jt(a);var t=i.return(void 0),n=Promise.resolve(t.value);n.then(g,g),Jt(n),e(new Ft)}catch(t){e(t)}})),s};return o.isMobXFlow=!0,o}),Zt);function Jt(e){b(e.cancel)&&e.cancel()}function Qt(e){return!0===(null==e?void 0:e.isMobXFlow)}function en(e){return function(e){return!!e&&(Vn(e)||!!e[W]||Z(e)||Et(e)||Qe(e))}(e)}function tn(e,t){void 0===t&&(t=void 0),bt();try{return e.apply(t)}finally{yt()}}function nn(e){return e[W]}Xt.bound=q(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!!y(t)&&(null==(r=nn(e).set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return!!y(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){o(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),v((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function sn(e,t){var n=at();try{for(var r=[].concat(e.interceptors_||[]),i=0,a=r.length;i<a&&((t=r[i](t))&&!t.type&&o(14),t);i++);return t}finally{st(n)}}function ln(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function cn(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),v((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function dn(e,t){var n=at(),r=e.changeListeners_;if(r){for(var o=0,i=(r=r.slice()).length;o<i;o++)r[o](t);st(n)}}var un="splice",fn="update",mn={get:function(e,t){var n=e[W];return t===W?n:"length"===t?n.getArrayLength_():"string"!=typeof t||isNaN(t)?R(vn,t)?vn[t]:e[t]:n.get_(parseInt(t))},set:function(e,t,n){var r=e[W];return"length"===t&&r.setArrayLength_(n),"symbol"==typeof t||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions:function(){o(15)}},hn=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 F(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}),cn(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!=typeof e||isNaN(e)||e<0)&&o("Out of range: "+e);var t=this.values_.length;if(e!==t)if(e>t){for(var n=new Array(e-t),r=0;r<e-t;r++)n[r]=void 0;this.spliceWithArray_(t,0,n)}else this.spliceWithArray_(e,t-e)},t.updateArrayLength_=function(e,t){e!==this.lastKnownLength_&&o(16),this.lastKnownLength_+=t,this.legacyMode_&&t>0&&Yn(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;this.atom_;var o=this.values_.length;if(void 0===e?e=0:e>o?e=o:e<0&&(e=Math.max(0,o+e)),t=1===arguments.length?o-e:null==t?0:Math.max(0,Math.min(t,o-e)),void 0===n&&(n=u),on(this)){var i=sn(this,{object:this.proxy_,type:un,index:e,removedCount:t,added:n});if(!i)return u;t=i.removedCount,n=i.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_(o,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 o=this.values_.slice(e,e+t),i=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<i.length;s++)this.values_[e+n.length+s]=i[s];return o},t.notifyArrayChildUpdate_=function(e,t,n){var r=!this.owned_&&!1,o=ln(this),i=o||r?{observableKind:"array",object:this.proxy_,type:fn,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;this.atom_.reportChanged(),o&&dn(this,i)},t.notifyArraySplice_=function(e,t,n){var r=!this.owned_&&!1,o=ln(this),i=o||r?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:un,index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom_.reportChanged(),o&&dn(this,i)},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&&o(17,e,n.length),e<n.length){this.atom_;var r=n[e];if(on(this)){var i=sn(this,{type:fn,object:this.proxy_,index:e,newValue:t});if(!i)return;t=i.newValue}(t=this.enhancer_(t,r))!==r&&(n[e]=t,this.notifyArrayChildUpdate_(e,t,r))}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),p(),tr((function(){var o=new hn(n,t,r,!1);k(o.values_,W,o);var i=new Proxy(o.values_,mn);return o.proxy_=i,e&&e.length&&o.spliceWithArray_(0,0,e),i}))}var vn={clear:function(){return this.splice(0)},replace:function(e){var t=this[W];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),o=2;o<n;o++)r[o-2]=arguments[o];var i=this[W];switch(arguments.length){case 0:return[];case 1:return i.spliceWithArray_(e);case 2:return i.spliceWithArray_(e,t)}return i.spliceWithArray_(e,t,r)},spliceWithArray:function(e,t,n){return this[W].spliceWithArray_(e,t,n)},push:function(){for(var e=this[W],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[W].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[W],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&&o(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){ht.trackingDerivation&&o(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[W],n=t.dehanceValues_(t.values_).indexOf(e);return n>-1&&(this.splice(n,1),!0)}};function gn(e,t){"function"==typeof Array.prototype[e]&&(vn[e]=t(e))}function bn(e){return function(){var t=this[W];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function yn(e){return function(t,n){var r=this,o=this[W];return o.atom_.reportObserved(),o.dehanceValues_(o.values_)[e]((function(e,o){return t.call(n,e,o,r)}))}}function _n(e){return function(){var t=this,n=this[W];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),o=arguments[0];return arguments[0]=function(e,n,r){return o(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",yn),gn("filter",yn),gn("find",yn),gn("findIndex",yn),gn("findLast",yn),gn("findLastIndex",yn),gn("flatMap",yn),gn("forEach",yn),gn("map",yn),gn("some",yn),gn("toReversed",yn),gn("reduce",_n),gn("reduceRight",_n);var xn=S("ObservableArrayAdministration",hn);function wn(e){return _(e)&&xn(e[W])}var On={},kn="add",Sn="delete",An=function(){function e(e,t,n){var r=this;void 0===t&&(t=J),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[W]=On,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)||o(18),tr((function(){r.keysAtom_=Y("ObservableMap.keys()"),r.data_=new Map,r.hasMap_=new Map,e&&r.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 Ze(this.has_(e),Q,"ObservableMap.key?",!1);this.hasMap_.set(e,r),$t(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:kn,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:Sn,object:this,name:e}))return!1;if(this.has_(e)){var n=ln(this),r=n?{observableKind:"map",debugObjectName:this.name_,type:Sn,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&&dn(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=ln(this),o=r?{observableKind:"map",debugObjectName:this.name_,type:fn,object:this,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),r&&dn(this,o)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,tn((function(){var r,o=new Ze(t,n.enhancer_,"ObservableMap.key",!1);n.data_.set(e,o),t=o.value_,null==(r=n.hasMap_.get(e))||r.setNewValue_(!0),n.keysAtom_.reportChanged()}));var r=ln(this),o=r?{observableKind:"map",debugObjectName:this.name_,type:kn,object:this,name:e,newValue:t}:null;r&&dn(this,o)},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 Tn({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:e.get(o)}}})},t.entries=function(){var e=this,t=this.keys();return Tn({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:[o,e.get(o)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=D(this);!(n=r()).done;){var o=n.value,i=o[0],a=o[1];e.call(t,a,i,this)}},t.merge=function(e){var t=this;return En(e)&&(e=new Map(e)),tn((function(){var n,r,i;x(e)?function(e){var t=Object.keys(e);if(!T)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter((function(t){return d.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)})):A(e)?(n=e,r=Object.getPrototypeOf(n),i=Object.getPrototypeOf(r),null!==Object.getPrototypeOf(i)&&o(19,e),e.forEach((function(e,n){return t.set(n,e)}))):null!=e&&o(20,e)})),this},t.clear=function(){var e=this;tn((function(){it((function(){for(var t,n=D(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,r=function(e){if(A(e)||En(e))return e;if(Array.isArray(e))return new Map(e);if(x(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return o(21,e)}(e),i=new Map,a=!1,s=D(t.data_.keys());!(n=s()).done;){var l=n.value;if(!r.has(l))if(t.delete(l))a=!0;else{var c=t.data_.get(l);i.set(l,c)}}for(var d,u=D(r.entries());!(d=u()).done;){var f=d.value,m=f[0],h=f[1],p=t.data_.has(m);if(t.set(m,h),t.data_.has(m)){var v=t.data_.get(m);i.set(m,v),p||(a=!0)}}if(!a)if(t.data_.size!==i.size)t.keysAtom_.reportChanged();else for(var g=t.data_.keys(),b=i.keys(),y=g.next(),_=b.next();!y.done;){if(y.value!==_.value){t.keysAtom_.reportChanged();break}y=g.next(),_=b.next()}t.data_=i})),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return cn(this,e)},t.intercept_=function(e){return an(this,e)},L(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),En=S("ObservableMap",An);function Tn(e){return e[Symbol.toStringTag]="MapIterator",lr(e)}var jn={},Pn=function(){function e(e,t,n){var r=this;void 0===t&&(t=J),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[W]=jn,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)||o(22),this.enhancer_=function(e,r){return t(e,r,n)},tr((function(){r.atom_=Y(r.name_),e&&r.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=D(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.forEach=function(e,t){for(var n,r=D(this);!(n=r()).done;){var o=n.value;e.call(t,o,o,this)}},t.add=function(e){var t=this;if(this.atom_,on(this)&&!sn(this,{type:kn,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=ln(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:kn,object:this,newValue:e}:null;n&&dn(this,r)}return this},t.delete=function(e){var t=this;if(on(this)&&!sn(this,{type:Sn,object:this,oldValue:e}))return!1;if(this.has(e)){var n=ln(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:Sn,object:this,oldValue:e}:null;return tn((function(){t.atom_.reportChanged(),t.data_.delete(e)})),n&&dn(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 Cn({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 Cn({next:function(){return t<n.length?{value:e.dehanceValue_(n[t++]),done:!1}:{value:void 0,done:!0}}})},t.intersection=function(e){return E(e)&&!Rn(e)?e.intersection(this):new Set(this).intersection(e)},t.union=function(e){return E(e)&&!Rn(e)?e.union(this):new Set(this).union(e)},t.difference=function(e){return new Set(this).difference(e)},t.symmetricDifference=function(e){return E(e)&&!Rn(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 E(e)&&!Rn(e)?e.isDisjointFrom(this):new Set(this).isDisjointFrom(e)},t.replace=function(e){var t=this;return Rn(e)&&(e=new Set(e)),tn((function(){Array.isArray(e)||E(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!=e&&o("Cannot initialize set from "+e)})),this},t.observe_=function(e,t){return cn(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()},L(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),Rn=S("ObservableSet",Pn);function Cn(e){return e[Symbol.toStringTag]="SetIterator",lr(e)}var zn=Object.create(null),Mn="remove",Nn=function(){function e(e,t,n,r){void 0===t&&(t=new Map),void 0===r&&(r=_e),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 F("ObservableObject.keys"),this.isPlainObject_=x(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 Ye)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 o=ln(this),i=o?{type:fn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),o&&dn(this,i)}return!0},t.get_=function(e){return ht.trackingDerivation&&!R(this.target_,e)&&this.has_(e),this.target_[e]},t.set_=function(e,t,n){return void 0===n&&(n=!1),R(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 Ze(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_[H])&&n[e])return;o(1,t.annotationType_,this.name_+"."+e.toString())}for(var r=this.target_;r&&r!==d;){var i=l(r,e);if(i){var a=t.make_(this,e,i,r);if(0===a)return;if(1===a)break}r=Object.getPrototypeOf(r)}Bn(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 o=n.extend_(this,e,t,r);return o&&Bn(this,0,e),o},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 o=sn(this,{object:this.proxy_||this.target_,name:e,type:kn,newValue:t.value});if(!o)return null;var i=o.newValue;t.value!==i&&(t=V({},t,{value:i}))}if(n){if(!Reflect.defineProperty(this.target_,e,t))return!1}else c(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{yt()}return!0},t.defineObservableProperty_=function(e,t,n,r){void 0===r&&(r=!1),this.keysAtom_;try{bt();var o=this.delete_(e);if(!o)return o;if(on(this)){var i=sn(this,{object:this.proxy_||this.target_,name:e,type:kn,newValue:t});if(!i)return null;t=i.newValue}var a=Dn(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 c(this.target_,e,s);var l=new Ze(t,n,"ObservableObject.key",!1);this.values_.set(e,l),this.notifyPropertyAddition_(e,l.value_)}finally{yt()}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:kn,newValue:void 0}))return null;t.name||(t.name="ObservableObject.key"),t.context=this.proxy_||this.target_;var o=Dn(e),i={configurable:!ht.safeDescriptors||this.isPlainObject_,enumerable:!1,get:o.get,set:o.set};if(n){if(!Reflect.defineProperty(this.target_,e,i))return!1}else c(this.target_,e,i);this.values_.set(e,new Ye(t)),this.notifyPropertyAddition_(e,void 0)}finally{yt()}return!0},t.delete_=function(e,t){if(void 0===t&&(t=!1),this.keysAtom_,!R(this.target_,e))return!0;if(on(this)&&!sn(this,{object:this.proxy_||this.target_,name:e,type:Mn}))return null;try{var n;bt();var r,o=ln(this),i=this.values_.get(e),a=void 0;if(!i&&o&&(a=null==(r=l(this.target_,e))?void 0:r.value),t){if(!Reflect.deleteProperty(this.target_,e))return!1}else delete this.target_[e];if(i&&(this.values_.delete(e),i instanceof Ze&&(a=i.value_),xt(i)),this.keysAtom_.reportChanged(),null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(e in this.target_),o){var s={type:Mn,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:a,name:e};o&&dn(this,s)}}finally{yt()}return!0},t.observe_=function(e,t){return cn(this,e)},t.intercept_=function(e){return an(this,e)},t.notifyPropertyAddition_=function(e,t){var n,r=ln(this);if(r){var o=r?{type:kn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;r&&dn(this,o)}null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),j(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function In(e,t){var n;if(R(e,W))return e;var r=null!=(n=null==t?void 0:t.name)?n:"ObservableObject",o=new Nn(e,new Map,String(r),function(e){var t;return e?null!=(t=e.defaultDecorator)?t:xe(e):void 0}(t));return O(e,W,o),e}var Ln=S("ObservableObjectAdministration",Nn);function Dn(e){return zn[e]||(zn[e]={get:function(){return this[W].getObservablePropValue_(e)},set:function(t){return this[W].setObservablePropValue_(e,t)}})}function Vn(e){return!!_(e)&&Ln(e[W])}function Bn(e,t,n){var r;null==(r=e.target_[H])||delete r[n]}var $n,Un,Hn=Fn(0),qn=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,!1===e}(),Kn=0,Gn=function(){};$n=Gn,Un=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf($n.prototype,Un):void 0!==$n.prototype.__proto__?$n.prototype.__proto__=Un:$n.prototype=Un;var Wn=function(e){function t(t,n,r,o){var i;return void 0===r&&(r="ObservableArray"),void 0===o&&(o=!1),i=e.call(this)||this,tr((function(){var e=new hn(r,n,o,!0);e.proxy_=i,k(i,W,e),t&&t.length&&i.spliceWithArray(0,0,t),qn&&Object.defineProperty(i,"0",Hn)})),i}B(t,e);var n=t.prototype;return n.concat=function(){this[W].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 wn(e)?e.slice():e})))},n[Symbol.iterator]=function(){var e=this,t=0;return lr({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})},L(t,[{key:"length",get:function(){return this[W].getArrayLength_()},set:function(e){this[W].setArrayLength_(e)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(Gn);function Fn(e){return{enumerable:!1,configurable:!0,get:function(){return this[W].get_(e)},set:function(t){this[W].set_(e,t)}}}function Zn(e){c(Wn.prototype,""+e,Fn(e))}function Yn(e){if(e>Kn){for(var t=Kn;t<e+100;t++)Zn(t);Kn=e}}function Xn(e,t,n){return new Wn(e,t,n)}function Jn(e,t){if("object"==typeof e&&null!==e){if(wn(e))return void 0!==t&&o(23),e[W].atom_;if(Rn(e))return e.atom_;if(En(e)){if(void 0===t)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||o(25,t,er(e)),n}if(Vn(e)){if(!t)return o(26);var r=e[W].values_.get(t);return r||o(27,t,er(e)),r}if(Z(e)||Qe(e)||Et(e))return e}else if(b(e)&&Et(e[W]))return e[W];o(28)}function Qn(e,t){return e||o(29),void 0!==t?Qn(Jn(e,t)):Z(e)||Qe(e)||Et(e)||En(e)||Rn(e)?e:e[W]?e[W]:void o(24,e)}function er(e,t){var n;if(void 0!==t)n=Jn(e,t);else{if(Lt(e))return e.name;n=Vn(e)||En(e)||Rn(e)?Qn(e):Jn(e)}return n.name_}function tr(e){var t=at(),n=We(!0);bt();try{return e()}finally{yt(),Fe(n),st(t)}}Object.entries(vn).forEach((function(e){var t=e[0],n=e[1];"concat"!==t&&O(Wn.prototype,t,n)})),Yn(1e3);var nr,rr=d.toString;function or(e,t,n){return void 0===n&&(n=-1),ir(e,t,n)}function ir(e,t,n,r,o){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;if("function"!==i&&"object"!==i&&"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 l=e.constructor,c=t.constructor;if(l!==c&&!(b(l)&&l instanceof l&&b(c)&&c instanceof c)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),o=o||[];for(var d=(r=r||[]).length;d--;)if(r[d]===e)return o[d]===t;if(r.push(e),o.push(t),s){if((d=e.length)!==t.length)return!1;for(;d--;)if(!ir(e[d],t[d],n-1,r,o))return!1}else{var u,f=Object.keys(e);if(d=f.length,Object.keys(t).length!==d)return!1;for(;d--;)if(!R(t,u=f[d])||!ir(e[u],t[u],n-1,r,o))return!1}return r.pop(),o.pop(),!0}function ar(e){return wn(e)?e.slice():A(e)||En(e)||E(e)||Rn(e)?Array.from(e.entries()):e}var sr=(null==(nr=a().Iterator)?void 0:nr.prototype)||{};function lr(e){return e[Symbol.iterator]=cr,Object.assign(Object.create(sr),e)}function cr(){return this}["Symbol","Map","Set"].forEach((function(e){void 0===a()[e]&&o("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:W});var dr=r(953),ur=r.n(dr);if(!dr.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!function(e,t,n){return tr((function(){var r=In(e,n)[W];null!=t||(t=function(e){return R(e,H)||O(e,H,V({},e[H])),e[H]}(e)),j(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=n(180);function mr(e){e()}function hr(e){e||(e=mr),function(e){!0===e.isolateGlobalState&&function(){if((ht.pendingReactions.length||ht.inBatch||ht.isRunningReactions)&&o(36),mt=!0,ft){var e=a();0==--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),ht=new ut}}();var t,n,r=e.useProxies,i=e.enforceActions;if(void 0!==r&&(ht.useProxies=r===qt||r!==Ht&&"undefined"!=typeof Proxy),"ifavailable"===r&&(ht.verifyProxies=!0),void 0!==i){var s=i===qt?qt:i===Kt;ht.enforceActions=s,ht.allowStateChanges=!0!==s&&s!==qt}["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=kt,kt=function(e){return t((function(){return n(e)}))})}({reactionScheduler:e})}var pr=function(){return!0};function vr(e){return Gt(Jn(e,void 0))}var gr=!1;function br(e){gr=e}function yr(){return gr}var _r,xr,wr=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,o){n-r.registeredAt>=e&&(t.finalize(r.value),t.registrations.delete(o))})),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}(),Or=new("undefined"!=typeof FinalizationRegistry?FinalizationRegistry:wr)((function(e){var t;null===(t=e.reaction)||void 0===t||t.dispose(),e.reaction=null})),kr=r(634);function Sr(e){e.reaction=new wt("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"),yr())return e();var n=ur().useRef(null);if(!n.current){var r={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(e){return Or.unregister(r),r.onStoreChange=e,r.reaction||(Sr(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 o,i,a=n.current;if(a.reaction||(Sr(a),Or.register(n,a,a)),ur().useDebugValue(a.reaction,vr),(0,kr.useSyncExternalStore)(a.subscribe,a.getSnapshot,a.getSnapshot),a.reaction.track((function(){try{o=e()}catch(e){i=e}})),i)throw i;return o}var Er="function"==typeof Symbol&&Symbol.for,Tr=null!==(xr=null===(_r=Object.getOwnPropertyDescriptor((function(){}),"name"))||void 0===_r?void 0:_r.configurable)&&void 0!==xr&&xr,jr=Er?Symbol.for("react.forward_ref"):"function"==typeof dr.forwardRef&&(0,dr.forwardRef)((function(e){return null})).$$typeof,Pr=Er?Symbol.for("react.memo"):"function"==typeof dr.memo&&(0,dr.memo)((function(e){return null})).$$typeof;function Rr(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(yr())return e;var r=null!==(n=null==t?void 0:t.forwardRef)&&void 0!==n&&n,o=e,i=e.displayName||e.name;if(jr&&e.$$typeof===jr&&(r=!0,"function"!=typeof(o=e.render)))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var a,s,l=function(e,t){return Ar((function(){return o(e,t)}),i)};return l.displayName=e.displayName,Tr&&Object.defineProperty(l,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(l.contextTypes=e.contextTypes),r&&(l=(0,dr.forwardRef)(l)),l=(0,dr.memo)(l),a=e,s=l,Object.keys(a).forEach((function(e){zr[e]||Object.defineProperty(s,e,Object.getOwnPropertyDescriptor(a,e))})),l}var Cr,zr={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function Mr(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 Nr(e,t){return(0,dr.useState)((function(){return Ie(e(),t,{autoBind:!0})}))[0]}function Ir(e){var t=(0,dr.useState)((function(){return Ie(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&&Ir(t);return(0,dr.useState)((function(){return Ie(e(n),void 0,{autoBind:!0})}))[0]}Mr.displayName="Observer",hr(fr.unstable_batchedUpdates);var Dr=null!==(Cr=Or.finalizeAllImmediately)&&void 0!==Cr?Cr:function(){};function Vr(e,t){return void 0===t&&(t="observed"),Ar(e,t)}function Br(e){br(e)}},31:(e,t,n)=>{n.r(t),n.d(t,{default:()=>g});var r=n(478),o=n.n(r),i=n(135),a=n.n(i),s=n(301),l=n.n(s),c=n(222),d=n.n(c),u=n(626),f=n.n(u),m=n(279),h=n.n(m),p=n(178),v={};v.styleTagTransform=h(),v.setAttributes=d(),v.insert=l().bind(null,"head"),v.domAPI=a(),v.insertStyleElement=f(),o()(p.A,v);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 i={},a=[],s=0;s<e.length;s++){var l=e[s],c=r.base?l[0]+r.base:l[0],d=i[c]||0,u="".concat(c," ").concat(d);i[c]=d+1;var f=n(u),m={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==f)t[f].references++,t[f].updater(m);else{var h=o(m,r);r.byIndex=s,t.splice(s,0,{identifier:u,updater:h,references:1})}a.push(u)}return a}function o(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,o){var i=r(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var s=n(i[a]);t[s].references--}for(var l=r(e,o),c=0;c<i.length;c++){var d=n(i[c]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}i=l}}},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 o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),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),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var d="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,d=r[1];return s((function(){o.value=n,o.getSnapshot=t,c(o)&&d({inst:o})}),[e,n,t]),a((function(){return c(o)&&d({inst:o}),e((function(){c(o)&&d({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:d},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 o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=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 o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(953));n(31),t.default=function(e){const[t,n]=(0,a.useState)(!1),[r,o]=(0,a.useState)(!0),[i,s]=(0,a.useState)(null),[l,c]=(0,a.useState)(null),{currentTask:d,audioRef:u,toggleHold:f,toggleRecording:m,endCall:h,wrapupCall:p,wrapupCodes:v,wrapupRequired:g}=e;return(0,a.useEffect)((()=>{if(!d||!d.data||!d.data.interaction)return;const{interaction:e,mediaResourceId:t}=d.data,{media:r,callProcessingDetails:i}=e,a=r&&r[t]&&r[t].isHold;if(n(a),i){const{isPaused:e}=i;o(!e)}}),[d]),a.default.createElement(a.default.Fragment,null,a.default.createElement("audio",{ref:u,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("button",{className:"btn",onClick:()=>{f(!t),n(!t)},disabled:g},t?"Resume":"Hold"),a.default.createElement("button",{className:"btn",onClick:()=>{m(r),o(!r)},disabled:g},r?"Pause Recording":"Resume Recording"),a.default.createElement("button",{className:"btn",onClick:h,disabled:g||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),c(n)},disabled:!g},a.default.createElement("option",{value:""},"Select the wrap-up reason"),v.map((e=>a.default.createElement("option",{key:e.id,value:e.id},e.name)))),a.default.createElement("button",{className:"btn",onClick:()=>{i&&l&&(p(i,l),s(null),c(null))},disabled:!g&&!i},"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 o=r(n(953)),i=n(62),a=r(n(768)),s=n(306),l=r(n(159)),c=(0,i.observer)((({onHoldResume:e,onEnd:t,onWrapUp:n})=>{const{logger:r,currentTask:i,deviceType:c,wrapupCodes:d,wrapupRequired:u}=a.default,f=Object.assign(Object.assign({},(0,s.useCallControl)({currentTask:i,deviceType:c,onHoldResume:e,onEnd:t,onWrapUp:n,logger:r})),{wrapupRequired:u,wrapupCodes:d});return o.default.createElement(l.default,Object.assign({},f))}));t.CallControl=c},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 o=r(n(953)),i={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 o.default.createElement(o.default.Fragment,null);const s=t.data.interaction.callAssociatedDetails,{ani:l,dn:c,virtualTeamName:d}=s;return o.default.createElement("div",{style:i.box},o.default.createElement("section",{style:i.sectionBox},o.default.createElement("fieldset",{style:i.fieldset},o.default.createElement("legend",{style:i.legendBox},"Incoming Task"),o.default.createElement("div",{"data-testid":"incoming-task-presentational",style:i.container},o.default.createElement("div",{style:i.topSection},o.default.createElement("div",{style:{display:"flex",alignItems:"center"}},o.default.createElement("span",{style:i.iconWrapper},o.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:i.iconSvg},o.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"}))),o.default.createElement("div",null,o.default.createElement("h2",{style:i.callInfo},"Incoming Call"),o.default.createElement("p",{"data-testid":"incoming-task-ani",style:i.aniText},l))),a&&o.default.createElement("div",{style:i.buttonsWrapper},o.default.createElement("button",{style:i.answerButton,onClick:n},"Answer"),o.default.createElement("button",{style:i.declineButton,onClick:r},"Decline"))),o.default.createElement("p",{style:i.queueInfo},d," - ",o.default.createElement("span",{style:i.timeElapsed},"")),o.default.createElement("div",{style:i.callDetails},o.default.createElement("p",{style:i.detailItem},o.default.createElement("strong",{style:i.detailLabel},"Phone Number:")," ",l),o.default.createElement("p",{style:i.detailItem},o.default.createElement("strong",{style:i.detailLabel},"DNIS:")," ",c),o.default.createElement("p",{style:i.detailItem},o.default.createElement("strong",{style:i.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 o=r(n(953)),i=n(62),a=r(n(768)),s=n(306),l=r(n(869)),c=(0,i.observer)((({onAccepted:e,onDeclined:t})=>{const{deviceType:n,incomingTask:r,logger:i}=a.default,c=(0,s.useIncomingTask)({incomingTask:r,onAccepted:e,onDeclined:t,deviceType:n,logger:i}),d=Object.assign({},c);return o.default.createElement(l.default,Object.assign({},d))}));t.IncomingTask=c},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 o=r(n(953)),i=r(n(768)),a=n(62),s=r(n(859)),l=n(306),c=(0,a.observer)((()=>{const{cc:e,taskList:t,currentTask:n,deviceType:r,logger:a}=i.default,c=(0,l.useTaskList)({cc:e,deviceType:r,logger:a,taskList:t}),d=Object.assign(Object.assign({},c),{currentTask:n});return o.default.createElement(s.default,Object.assign({},d))}));t.TaskList=c},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 o=r(n(953)),i={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 o.default.createElement(o.default.Fragment,null);const{currentTask:t,taskList:n,acceptTask:r,declineTask:a,isBrowser:s}=e;return o.default.createElement("div",{style:i.box},o.default.createElement("fieldset",{style:i.fieldset},o.default.createElement("legend",{style:i.legendBox},"TaskList"),o.default.createElement("div",{style:i.container},n.map(((e,n)=>{const l=e.data.interaction.callAssociatedDetails,{ani:c,dn:d,virtualTeamName:u}=l;return o.default.createElement("div",{key:n,style:i.card},o.default.createElement("div",{style:i.leftSection},o.default.createElement("div",{style:i.icon},o.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:i.iconSvg},o.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"}))),o.default.createElement("div",null,o.default.createElement("p",{style:i.textPrimary},c),o.default.createElement("p",{style:i.textSecondary},u))),!t&&o.default.createElement("div",null,o.default.createElement("p",{style:i.rightSectionText},d),s&&o.default.createElement("div",{style:i.buttonsWrapper},o.default.createElement("button",{style:i.acceptButton,onClick:()=>r(e)},"Accept"),o.default.createElement("button",{style:i.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 o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=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 o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.useCallControl=t.useIncomingTask=t.useTaskList=void 0;const a=n(953),s=i(n(768));t.useTaskList=e=>{const{deviceType:t,onTaskAccepted:n,onTaskDeclined:r,logger:o,taskList:i}=e,a=(e,t)=>{o.error(e,{module:"widget-cc-task#helper.ts",method:`useTaskList#${t}`})};return{taskList:i,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:o,logger:i}=e,a=(e,t)=>{i.error(e,{module:"widget-cc-task#helper.ts",method:`useIncomingTask#${t}`})};return{incomingTask:o,accept:()=>{const e=null==o?void 0:o.data.interactionId;e&&o.accept(e).then((()=>{t&&t()})).catch((e=>{a(`Error accepting incoming task: ${e}`,"accept")}))},decline:()=>{const e=null==o?void 0:o.data.interactionId;e&&o.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:o,logger:i,deviceType:l}=e,c=(0,a.useRef)(null),d="BROWSER"===l,u=(e,t)=>{i.error(e,{module:"widget-cc-task#helper.ts",method:`useCallControl#${t}`})},f=(0,a.useCallback)((e=>{c.current&&(c.current.srcObject=new MediaStream([e]))}),[c,t]);return(0,a.useEffect)((()=>{if(t&&d)return t.on(s.TASK_EVENTS.TASK_MEDIA,f),()=>{t.off(s.TASK_EVENTS.TASK_MEDIA,f)}}),[t]),{currentTask:t,audioRef:c,endCall:()=>{t.end().then((()=>{r&&r()})).catch((e=>{u(`Error ending call: ${e}`,"endCall")}))},toggleHold:e=>{e?t.hold().then((()=>n&&n())).catch((e=>{u(`Error holding call: ${e}`,"toggleHold")})):t.resume().then((()=>n&&n())).catch((e=>{u(`Error resuming call: ${e}`,"toggleHold")}))},toggleRecording:e=>{e?t.pauseRecording().catch((e=>{u(`Error pausing recording: ${e}`,"toggleRecording")})):t.resumeRecording().catch((e=>{u(`Error resuming recording: ${e}`,"toggleRecording")}))},wrapupCall:(e,n)=>{t.wrapup({wrapUpReason:e,auxCodeId:n}).then((()=>{o&&o(),s.default.handleTaskRemove(t.data.interactionId)})).catch((e=>{u(`Error wrapping up call: ${e}`,"wrapupCall")}))}}}},768:e=>{e.exports=n(768)},953:e=>{e.exports=n(953)}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var i=r[e]={id:e,exports:{}};return t[e].call(i.exports,i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var i={};(()=>{var e=i;Object.defineProperty(e,"__esModule",{value:!0}),e.CallControl=e.TaskList=e.IncomingTask=void 0;const t=o(360);Object.defineProperty(e,"IncomingTask",{enumerable:!0,get:function(){return t.IncomingTask}});const n=o(196);Object.defineProperty(e,"TaskList",{enumerable:!0,get:function(){return n.TaskList}});const r=o(681);Object.defineProperty(e,"CallControl",{enumerable:!0,get:function(){return r.CallControl}})})(),e.exports=i})()},758:(e,t,n)=>{(()=>{var t={62:(e,t,r)=>{"use strict";function o(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)}r.r(t),r.d(t,{Observer:()=>Mr,_observerFinalizationRegistry:()=>Or,clearTimers:()=>Dr,enableStaticRendering:()=>br,isObserverBatched:()=>pr,isUsingStaticRendering:()=>yr,observer:()=>Rr,observerBatching:()=>hr,useAsObservableSource:()=>Ir,useLocalObservable:()=>Nr,useLocalStore:()=>Lr,useObserver:()=>Vr,useStaticRendering:()=>Br});var i={};function a(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:i}var s=Object.assign,l=Object.getOwnPropertyDescriptor,c=Object.defineProperty,d=Object.prototype,u=[];Object.freeze(u);var f={};Object.freeze(f);var m="undefined"!=typeof Proxy,h=Object.toString();function p(){m||o("Proxy not available")}function v(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var g=function(){};function b(e){return"function"==typeof e}function y(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function _(e){return null!==e&&"object"==typeof e}function x(e){if(!_(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 w(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function O(e,t,n){c(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function k(e,t,n){c(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 _(e)&&!0===e[n]}}function A(e){return null!=e&&"[object Map]"===Object.prototype.toString.call(e)}function E(e){return null!=e&&"[object Set]"===Object.prototype.toString.call(e)}var T=void 0!==Object.getOwnPropertySymbols,j="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:T?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function P(e){return null===e?null:"object"==typeof e?""+e:e}function R(e,t){return d.hasOwnProperty.call(e,t)}var C=Object.getOwnPropertyDescriptors||function(e){var t={};return j(e).forEach((function(n){t[n]=l(e,n)})),t};function z(e,t){return!!(e&t)}function M(e,t,n){return n?e|=t:e&=~t,e}function N(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 I(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,U(r.key),r)}}function L(e,t,n){return t&&I(e.prototype,t),n&&I(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function D(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 N(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)?N(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 V(){return V=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},V.apply(null,arguments)}function B(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$(e,t)}function $(e,t){return $=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$(e,t)}function U(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 H=Symbol("mobx-stored-annotations");function q(e){return Object.assign((function(t,n){if(G(n))return e.decorate_20223_(t,n);K(t,n,e)}),e)}function K(e,t,n){R(e,H)||O(e,H,V({},e[H])),function(e){return e.annotationType_===ee}(n)||(e[H][t]=n)}function G(e){return"object"==typeof e&&"string"==typeof e.kind}var W=Symbol("mobx administration"),F=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_=Xe.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 _t(this)},t.reportChanged=function(){bt(),xt(this),yt()},t.toString=function(){return this.name_},L(e,[{key:"isBeingObserved",get:function(){return z(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=M(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return z(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=M(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return z(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=M(this.flags_,e.diffValueMask_,1===t)}}])}();F.isBeingObservedMask_=1,F.isPendingUnobservationMask_=2,F.diffValueMask_=4;var Z=S("Atom",F);function Y(e,t,n){void 0===t&&(t=g),void 0===n&&(n=g);var r=new F(e);return t!==g&&Ut(Vt,r,t,void 0),n!==g&&$t(r,n),r}var X={identity:function(e,t){return e===t},structural:function(e,t){return or(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 or(e,t,1)}};function J(e,t,n){return en(e)?e:Array.isArray(e)?Ie.array(e,{name:n}):x(e)?Ie.object(e,void 0,{name:n}):A(e)?Ie.map(e,{name:n}):E(e)?Ie.set(e,{name:n}):"function"!=typeof e||Lt(e)||Qt(e)?e:w(e)?Xt(e):It(n,e)}function Q(e){return e}var ee="override";function te(e,t){return{annotationType_:e,options_:t,make_:ne,extend_:re,decorate_20223_:oe}}function ne(e,t,n,r){var o;if(null!=(o=this.options_)&&o.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(Lt(n.value))return 1;var i=ie(e,this,t,n,!1);return c(r,t,i),2}function re(e,t,n,r){var o=ie(e,this,t,n);return e.defineProperty_(t,o,r)}function oe(e,t){var n,r=t.kind,i=t.name,a=t.addInitializer,s=this,l=function(e){var t,n,r,o;return Ke(null!=(t=null==(n=s.options_)?void 0:n.name)?t:i.toString(),e,null!=(r=null==(o=s.options_)?void 0:o.autoAction)&&r)};return"field"==r?function(e){var t,n=e;return Lt(n)||(n=l(n)),null!=(t=s.options_)&&t.bound&&((n=n.bind(this)).isMobxAction=!0),n}:"method"==r?(Lt(e)||(e=l(e)),null!=(n=this.options_)&&n.bound&&a((function(){var e=this,t=e[i].bind(e);t.isMobxAction=!0,e[i]=t})),e):void o("Cannot apply '"+s.annotationType_+"' to '"+String(i)+"' (kind: "+r+"):\n'"+s.annotationType_+"' can only be used on properties with a function value.")}function ie(e,t,n,r,o){var i,a,s,l,c,d,u,f;void 0===o&&(o=ht.safeDescriptors),f=r,t.annotationType_,f.value;var m,h=r.value;return null!=(i=t.options_)&&i.bound&&(h=h.bind(null!=(m=e.proxy_)?m:e.target_)),{value:Ke(null!=(a=null==(s=t.options_)?void 0:s.name)?a:n.toString(),h,null!=(l=null==(c=t.options_)?void 0:c.autoAction)&&l,null!=(d=t.options_)&&d.bound?null!=(u=e.proxy_)?u:e.target_:void 0),configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function ae(e,t){return{annotationType_:e,options_:t,make_:se,extend_:le,decorate_20223_:ce}}function se(e,t,n,r){var o;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(null!=(o=this.options_)&&o.bound&&(!R(e.target_,t)||!Qt(e.target_[t]))&&null===this.extend_(e,t,n,!1))return 0;if(Qt(n.value))return 1;var i=de(e,this,0,n,!1,!1);return c(r,t,i),2}function le(e,t,n,r){var o,i=de(e,this,0,n,null==(o=this.options_)?void 0:o.bound);return e.defineProperty_(t,i,r)}function ce(e,t){var n,r=t.name,o=t.addInitializer;return Qt(e)||(e=Xt(e)),null!=(n=this.options_)&&n.bound&&o((function(){var e=this,t=e[r].bind(e);t.isMobXFlow=!0,e[r]=t})),e}function de(e,t,n,r,o,i){var a;void 0===i&&(i=ht.safeDescriptors),a=r,t.annotationType_,a.value;var s,l=r.value;return Qt(l)||(l=Xt(l)),o&&((l=l.bind(null!=(s=e.proxy_)?s:e.target_)).isMobXFlow=!0),{value:l,configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function ue(e,t){return{annotationType_:e,options_:t,make_:fe,extend_:me,decorate_20223_:he}}function fe(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function me(e,t,n,r){return o=n,this.annotationType_,o.get,e.defineComputedProperty_(t,V({},this.options_,{get:n.get,set:n.set}),r);var o}function he(e,t){var n=this,r=t.name;return(0,t.addInitializer)((function(){var t=In(this)[W],o=V({},n.options_,{get:e,context:this});o.name||(o.name="ObservableObject."+r.toString()),t.values_.set(r,new Ye(o))})),function(){return this[W].getObservablePropValue_(r)}}function pe(e,t){return{annotationType_:e,options_:t,make_:ve,extend_:ge,decorate_20223_:be}}function ve(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function ge(e,t,n,r){var o,i;return this.annotationType_,e.defineObservableProperty_(t,n.value,null!=(o=null==(i=this.options_)?void 0:i.enhancer)?o:J,r)}function be(e,t){var n=this,r=t.kind,o=t.name,i=new WeakSet;function a(e,t){var r,a,s=In(e)[W],l=new Ze(t,null!=(r=null==(a=n.options_)?void 0:a.enhancer)?r:J,"ObservableObject."+o.toString(),!1);s.values_.set(o,l),i.add(e)}if("accessor"==r)return{get:function(){return i.has(this)||a(this,e.get.call(this)),this[W].getObservablePropValue_(o)},set:function(e){return i.has(this)||a(this,e),this[W].setObservablePropValue_(o,e)},init:function(e){return i.has(this)||a(this,e),e}}}var ye="true",_e=xe();function xe(e){return{annotationType_:ye,options_:e,make_:we,extend_:Oe,decorate_20223_:ke}}function we(e,t,n,r){var o,i,a,s;if(n.get)return Be.make_(e,t,n,r);if(n.set){var l=Ke(t.toString(),n.set);return r===e.target_?null===e.defineProperty_(t,{configurable:!ht.safeDescriptors||e.isPlainObject_,set:l})?0:2:(c(r,t,{configurable:!0,set:l}),2)}if(r!==e.target_&&"function"==typeof n.value)return w(n.value)?(null!=(s=this.options_)&&s.autoBind?Xt.bound:Xt).make_(e,t,n,r):(null!=(a=this.options_)&&a.autoBind?It.bound:It).make_(e,t,n,r);var d,u=!1===(null==(o=this.options_)?void 0:o.deep)?Ie.ref:Ie;return"function"==typeof n.value&&null!=(i=this.options_)&&i.autoBind&&(n.value=n.value.bind(null!=(d=e.proxy_)?d:e.target_)),u.make_(e,t,n,r)}function Oe(e,t,n,r){var o,i,a;return n.get?Be.extend_(e,t,n,r):n.set?e.defineProperty_(t,{configurable:!ht.safeDescriptors||e.isPlainObject_,set:Ke(t.toString(),n.set)},r):("function"==typeof n.value&&null!=(o=this.options_)&&o.autoBind&&(n.value=n.value.bind(null!=(a=e.proxy_)?a:e.target_)),(!1===(null==(i=this.options_)?void 0:i.deep)?Ie.ref:Ie).extend_(e,t,n,r))}function ke(e,t){o("'"+this.annotationType_+"' cannot be used as a decorator")}var Se={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function Ae(e){return e||Se}Object.freeze(Se);var Ee=pe("observable"),Te=pe("observable.ref",{enhancer:Q}),je=pe("observable.shallow",{enhancer:function(e,t,n){return null==e||Vn(e)||wn(e)||En(e)||Rn(e)?e:Array.isArray(e)?Ie.array(e,{name:n,deep:!1}):x(e)?Ie.object(e,void 0,{name:n,deep:!1}):A(e)?Ie.map(e,{name:n,deep:!1}):E(e)?Ie.set(e,{name:n,deep:!1}):void 0}}),Pe=pe("observable.struct",{enhancer:function(e,t){return or(e,t)?t:e}}),Re=q(Ee);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 ze(e,t,n){return G(t)?Ee.decorate_20223_(e,t):y(t)?void K(e,t,Ee):en(e)?e:x(e)?Ie.object(e,t,n):Array.isArray(e)?Ie.array(e,t):A(e)?Ie.map(e,t):E(e)?Ie.set(e,t):"object"==typeof e&&null!==e?e:Ie.box(e,t)}s(ze,Re);var Me,Ne,Ie=s(ze,{box:function(e,t){var n=Ae(t);return new Ze(e,Ce(n),n.name,!0,n.equals)},array:function(e,t){var n=Ae(t);return(!1===ht.useProxies||!1===n.proxy?Xn:pn)(e,Ce(n),n.name)},map:function(e,t){var n=Ae(t);return new An(e,Ce(n),n.name)},set:function(e,t){var n=Ae(t);return new Pn(e,Ce(n),n.name)},object:function(e,t,n){return tr((function(){return function(e,t,n){var r=C(t);return tr((function(){var t=In(e,void 0)[W];j(r).forEach((function(e){t.extend_(e,r[e],!n||!(e in n)||n[e])}))})),e}(!1===ht.useProxies||!1===(null==n?void 0:n.proxy)?In({},n):function(e,t){var n,r;return p(),null!=(r=(n=(e=In(e,t))[W]).proxy_)?r:n.proxy_=new Proxy(e,rn)}({},n),e,t)}))},ref:q(Te),shallow:q(je),deep:Re,struct:q(Pe)}),Le="computed",De=ue(Le),Ve=ue("computed.struct",{equals:X.structural}),Be=function(e,t){if(G(t))return De.decorate_20223_(e,t);if(y(t))return K(e,t,De);if(x(e))return q(ue(Le,e));var n=x(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new Ye(n)};Object.assign(Be,De),Be.struct=q(Ve);var $e=0,Ue=1,He=null!=(Me=null==(Ne=l((function(){}),"name"))?void 0:Ne.configurable)&&Me,qe={value:"action",configurable:!0,writable:!1,enumerable:!1};function Ke(e,t,n,r){function o(){return Ge(0,n,t,r||this,arguments)}return void 0===n&&(n=!1),o.isMobxAction=!0,o.toString=function(){return t.toString()},He&&(qe.value=e,c(o,"name",qe)),o}function Ge(e,t,n,r,i){var a=function(e,t){var n=ht.trackingDerivation,r=!t||!n;bt();var o=ht.allowStateChanges;r&&(at(),o=We(!0));var i={runAsAction_:r,prevDerivation_:n,prevAllowStateChanges_:o,prevAllowStateReads_:lt(!0),notifySpy_:!1,startTime_:0,actionId_:Ue++,parentActionId_:$e};return $e=i.actionId_,i}(0,t);try{return n.apply(r,i)}catch(e){throw a.error_=e,e}finally{!function(e){$e!==e.actionId_&&o(30),$e=e.parentActionId_,void 0!==e.error_&&(ht.suppressReactionErrors=!0),Fe(e.prevAllowStateChanges_),ct(e.prevAllowStateReads_),yt(),e.runAsAction_&&st(e.prevDerivation_),ht.suppressReactionErrors=!1}(a)}}function We(e){var t=ht.allowStateChanges;return ht.allowStateChanges=e,t}function Fe(e){ht.allowStateChanges=e}var Ze=function(e){function t(t,n,r,o,i){var a;return void 0===r&&(r="ObservableValue"),void 0===o&&(o=!0),void 0===i&&(i=X.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=i,a.value_=n(t,void 0,r),a}B(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(),ln(this)&&dn(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}),cn(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 P(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},t}(F),Ye=function(){function e(e){this.dependenciesState_=Xe.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Xe.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new et(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||o(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=Ke("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?X.structural:X.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_===Xe.UP_TO_DATE_&&(e.lowestObserverState_=Xe.POSSIBLY_STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Xe.UP_TO_DATE_&&(e.dependenciesState_=Xe.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&&o(32,this.name_,this.derivation),0!==ht.inBatch||0!==this.observers_.size||this.keepAlive_){if(_t(this),nt(this)){var e=ht.trackingContext;this.keepAlive_&&!e&&(ht.trackingContext=this),this.trackAndCompute()&&function(e){e.lowestObserverState_!==Xe.STALE_&&(e.lowestObserverState_=Xe.STALE_,e.observers_.forEach((function(t){t.dependenciesState_===Xe.POSSIBLY_STALE_?t.dependenciesState_=Xe.STALE_:t.dependenciesState_===Xe.UP_TO_DATE_&&(e.lowestObserverState_=Xe.UP_TO_DATE_)})))}(this),ht.trackingContext=e}}else nt(this)&&(this.warnAboutUntrackedRead_(),bt(),this.value_=this.computeValue_(!1),yt());var t=this.value_;if(tt(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter&&o(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter=!1}}else o(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===Xe.NOT_TRACKING_,n=this.computeValue_(!0),r=t||tt(e)||tt(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing=!0;var t,n=We(!1);if(e)t=rt(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 et(e)}return Fe(n),this.isComputing=!1,t},t.suspend_=function(){this.keepAlive_||(ot(this),this.value_=void 0)},t.observe_=function(e,t){var n=this,r=!0,o=void 0;return function(e,t){var n,r,o,i;void 0===t&&(t=f);var a,s=null!=(n=null==(r=t)?void 0:r.name)?n:"Autorun";if(t.scheduler||t.delay){var l=function(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Dt}(t),c=!1;a=new wt(s,(function(){c||(c=!0,l((function(){c=!1,a.isDisposed||a.track(d)})))}),t.onError,t.requiresObservable)}else a=new wt(s,(function(){this.track(d)}),t.onError,t.requiresObservable);function d(){e()}return null!=(o=t)&&null!=(o=o.signal)&&o.aborted||a.schedule_(),a.getDisposer_(null==(i=t)?void 0:i.signal)}((function(){var i=n.get();if(!r||t){var a=at();e({observableKind:"computed",debugObjectName:n.name_,type:fn,object:n,newValue:i,oldValue:o}),st(a)}r=!1,o=i}))},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return P(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},L(e,[{key:"isComputing",get:function(){return z(this.flags_,e.isComputingMask_)},set:function(t){this.flags_=M(this.flags_,e.isComputingMask_,t)}},{key:"isRunningSetter",get:function(){return z(this.flags_,e.isRunningSetterMask_)},set:function(t){this.flags_=M(this.flags_,e.isRunningSetterMask_,t)}},{key:"isBeingObserved",get:function(){return z(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=M(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return z(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=M(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return z(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=M(this.flags_,e.diffValueMask_,1===t)}}])}();Ye.isComputingMask_=1,Ye.isRunningSetterMask_=2,Ye.isBeingObservedMask_=4,Ye.isPendingUnobservationMask_=8,Ye.diffValueMask_=16;var Xe,Je,Qe=S("ComputedValue",Ye);!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_"}(Xe||(Xe={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Je||(Je={}));var et=function(e){this.cause=void 0,this.cause=e};function tt(e){return e instanceof et}function nt(e){switch(e.dependenciesState_){case Xe.UP_TO_DATE_:return!1;case Xe.NOT_TRACKING_:case Xe.STALE_:return!0;case Xe.POSSIBLY_STALE_:for(var t=lt(!0),n=at(),r=e.observing_,o=r.length,i=0;i<o;i++){var a=r[i];if(Qe(a)){if(ht.disableErrorBoundaries)a.get();else try{a.get()}catch(e){return st(n),ct(t),!0}if(e.dependenciesState_===Xe.STALE_)return st(n),ct(t),!0}}return dt(e),st(n),ct(t),!1}}function rt(e,t,n){var r=lt(!0);dt(e),e.newObserving_=new Array(0===e.runId_?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++ht.runId;var o,i=ht.trackingDerivation;if(ht.trackingDerivation=e,ht.inBatch++,!0===ht.disableErrorBoundaries)o=t.call(n);else try{o=t.call(n)}catch(e){o=new et(e)}return ht.inBatch--,ht.trackingDerivation=i,function(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=Xe.UP_TO_DATE_,o=0,i=e.unboundDepsCount_,a=0;a<i;a++){var s=n[a];0===s.diffValue&&(s.diffValue=1,o!==a&&(n[o]=s),o++),s.dependenciesState_>r&&(r=s.dependenciesState_)}for(n.length=o,e.newObserving_=null,i=t.length;i--;){var l=t[i];0===l.diffValue&&vt(l,e),l.diffValue=0}for(;o--;){var c=n[o];1===c.diffValue&&(c.diffValue=0,pt(c,e))}r!==Xe.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}(e),ct(r),o}function ot(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)vt(t[n],e);e.dependenciesState_=Xe.NOT_TRACKING_}function it(e){var t=at();try{return e()}finally{st(t)}}function at(){var e=ht.trackingDerivation;return ht.trackingDerivation=null,e}function st(e){ht.trackingDerivation=e}function lt(e){var t=ht.allowStateReads;return ht.allowStateReads=e,t}function ct(e){ht.allowStateReads=e}function dt(e){if(e.dependenciesState_!==Xe.UP_TO_DATE_){e.dependenciesState_=Xe.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=Xe.UP_TO_DATE_}}var ut=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},ft=!0,mt=!1,ht=function(){var e=a();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(ft=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new ut).version&&(ft=!1),ft?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new ut):(setTimeout((function(){mt||o(35)}),1),new ut)}();function pt(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function vt(e,t){e.observers_.delete(t),0===e.observers_.size&&gt(e)}function gt(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,ht.pendingUnobservations.push(e))}function bt(){ht.inBatch++}function yt(){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 Ye&&n.suspend_())}ht.pendingUnobservations=[]}}function _t(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&&gt(e),!1)}function xt(e){e.lowestObserverState_!==Xe.STALE_&&(e.lowestObserverState_=Xe.STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Xe.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=Xe.STALE_})))}var wt=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_=Xe.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,nt(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(e){this.reportExceptionInDerivation_(e)}}ht.trackingContext=e,yt()}},t.track=function(e){if(!this.isDisposed){bt(),this.isRunning=!0;var t=ht.trackingContext;ht.trackingContext=this;var n=rt(this,e,void 0);ht.trackingContext=t,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&ot(this),tt(n)&&this.reportExceptionInDerivation_(n.cause),yt()}},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(),ot(this),yt()))},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[W]=this,n},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1)},L(e,[{key:"isDisposed",get:function(){return z(this.flags_,e.isDisposedMask_)},set:function(t){this.flags_=M(this.flags_,e.isDisposedMask_,t)}},{key:"isScheduled",get:function(){return z(this.flags_,e.isScheduledMask_)},set:function(t){this.flags_=M(this.flags_,e.isScheduledMask_,t)}},{key:"isTrackPending",get:function(){return z(this.flags_,e.isTrackPendingMask_)},set:function(t){this.flags_=M(this.flags_,e.isTrackPendingMask_,t)}},{key:"isRunning",get:function(){return z(this.flags_,e.isRunningMask_)},set:function(t){this.flags_=M(this.flags_,e.isRunningMask_,t)}},{key:"diffValue",get:function(){return z(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=M(this.flags_,e.diffValueMask_,1===t)}}])}();wt.isDisposedMask_=1,wt.isScheduledMask_=2,wt.isTrackPendingMask_=4,wt.isRunningMask_=8,wt.diffValueMask_=16;var Ot=100,kt=function(e){return e()};function St(){ht.inBatch>0||ht.isRunningReactions||kt(At)}function At(){ht.isRunningReactions=!0;for(var e=ht.pendingReactions,t=0;e.length>0;){++t===Ot&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,o=n.length;r<o;r++)n[r].runReaction_()}ht.isRunningReactions=!1}var Et=S("Reaction",wt),Tt="action",jt="autoAction",Pt=te(Tt),Rt=te("action.bound",{bound:!0}),Ct=te(jt,{autoAction:!0}),zt=te("autoAction.bound",{autoAction:!0,bound:!0});function Mt(e){return function(t,n){return b(t)?Ke(t.name||"<unnamed action>",t,e):b(n)?Ke(t,n,e):G(n)?(e?Ct:Pt).decorate_20223_(t,n):y(n)?K(t,n,e?Ct:Pt):y(t)?q(te(e?jt:Tt,{name:t,autoAction:e})):void 0}}var Nt=Mt(!1);Object.assign(Nt,Pt);var It=Mt(!0);function Lt(e){return b(e)&&!0===e.isMobxAction}Object.assign(It,Ct),Nt.bound=q(Rt),It.bound=q(zt);var Dt=function(e){return e()},Vt="onBO",Bt="onBUO";function $t(e,t,n){return Ut(Bt,e,t,n)}function Ut(e,t,n,r){var o="function"==typeof r?Jn(t,n):Jn(t),i=b(r)?r:n,a=e+"L";return o[a]?o[a].add(i):o[a]=new Set([i]),function(){var e=o[a];e&&(e.delete(i),0===e.size&&delete o[a])}}var Ht="never",qt="always",Kt="observed";function Gt(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(Gt)),n}var Wt=0;function Ft(){this.message="FLOW_CANCELLED"}Ft.prototype=Object.create(Error.prototype);var Zt=ae("flow"),Yt=ae("flow.bound",{bound:!0}),Xt=Object.assign((function(e,t){if(G(t))return Zt.decorate_20223_(e,t);if(y(t))return K(e,t,Zt);var n=e,r=n.name||"<unnamed flow>",o=function(){var e,t=arguments,o=++Wt,i=Nt(r+" - runid: "+o+" - init",n).apply(this,t),a=void 0,s=new Promise((function(t,n){var s=0;function l(e){var t;a=void 0;try{t=Nt(r+" - runid: "+o+" - yield "+s++,i.next).call(i,e)}catch(e){return n(e)}d(t)}function c(e){var t;a=void 0;try{t=Nt(r+" - runid: "+o+" - yield "+s++,i.throw).call(i,e)}catch(e){return n(e)}d(t)}function d(e){if(!b(null==e?void 0:e.then))return e.done?t(e.value):(a=Promise.resolve(e.value)).then(l,c);e.then(d,n)}e=n,l(void 0)}));return s.cancel=Nt(r+" - runid: "+o+" - cancel",(function(){try{a&&Jt(a);var t=i.return(void 0),n=Promise.resolve(t.value);n.then(g,g),Jt(n),e(new Ft)}catch(t){e(t)}})),s};return o.isMobXFlow=!0,o}),Zt);function Jt(e){b(e.cancel)&&e.cancel()}function Qt(e){return!0===(null==e?void 0:e.isMobXFlow)}function en(e){return function(e){return!!e&&(Vn(e)||!!e[W]||Z(e)||Et(e)||Qe(e))}(e)}function tn(e,t){void 0===t&&(t=void 0),bt();try{return e.apply(t)}finally{yt()}}function nn(e){return e[W]}Xt.bound=q(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!!y(t)&&(null==(r=nn(e).set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return!!y(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){o(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),v((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function sn(e,t){var n=at();try{for(var r=[].concat(e.interceptors_||[]),i=0,a=r.length;i<a&&((t=r[i](t))&&!t.type&&o(14),t);i++);return t}finally{st(n)}}function ln(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function cn(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),v((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function dn(e,t){var n=at(),r=e.changeListeners_;if(r){for(var o=0,i=(r=r.slice()).length;o<i;o++)r[o](t);st(n)}}var un="splice",fn="update",mn={get:function(e,t){var n=e[W];return t===W?n:"length"===t?n.getArrayLength_():"string"!=typeof t||isNaN(t)?R(vn,t)?vn[t]:e[t]:n.get_(parseInt(t))},set:function(e,t,n){var r=e[W];return"length"===t&&r.setArrayLength_(n),"symbol"==typeof t||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions:function(){o(15)}},hn=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 F(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}),cn(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!=typeof e||isNaN(e)||e<0)&&o("Out of range: "+e);var t=this.values_.length;if(e!==t)if(e>t){for(var n=new Array(e-t),r=0;r<e-t;r++)n[r]=void 0;this.spliceWithArray_(t,0,n)}else this.spliceWithArray_(e,t-e)},t.updateArrayLength_=function(e,t){e!==this.lastKnownLength_&&o(16),this.lastKnownLength_+=t,this.legacyMode_&&t>0&&Yn(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;this.atom_;var o=this.values_.length;if(void 0===e?e=0:e>o?e=o:e<0&&(e=Math.max(0,o+e)),t=1===arguments.length?o-e:null==t?0:Math.max(0,Math.min(t,o-e)),void 0===n&&(n=u),on(this)){var i=sn(this,{object:this.proxy_,type:un,index:e,removedCount:t,added:n});if(!i)return u;t=i.removedCount,n=i.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_(o,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 o=this.values_.slice(e,e+t),i=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<i.length;s++)this.values_[e+n.length+s]=i[s];return o},t.notifyArrayChildUpdate_=function(e,t,n){var r=!this.owned_&&!1,o=ln(this),i=o||r?{observableKind:"array",object:this.proxy_,type:fn,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;this.atom_.reportChanged(),o&&dn(this,i)},t.notifyArraySplice_=function(e,t,n){var r=!this.owned_&&!1,o=ln(this),i=o||r?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:un,index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom_.reportChanged(),o&&dn(this,i)},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&&o(17,e,n.length),e<n.length){this.atom_;var r=n[e];if(on(this)){var i=sn(this,{type:fn,object:this.proxy_,index:e,newValue:t});if(!i)return;t=i.newValue}(t=this.enhancer_(t,r))!==r&&(n[e]=t,this.notifyArrayChildUpdate_(e,t,r))}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),p(),tr((function(){var o=new hn(n,t,r,!1);k(o.values_,W,o);var i=new Proxy(o.values_,mn);return o.proxy_=i,e&&e.length&&o.spliceWithArray_(0,0,e),i}))}var vn={clear:function(){return this.splice(0)},replace:function(e){var t=this[W];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),o=2;o<n;o++)r[o-2]=arguments[o];var i=this[W];switch(arguments.length){case 0:return[];case 1:return i.spliceWithArray_(e);case 2:return i.spliceWithArray_(e,t)}return i.spliceWithArray_(e,t,r)},spliceWithArray:function(e,t,n){return this[W].spliceWithArray_(e,t,n)},push:function(){for(var e=this[W],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[W].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[W],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&&o(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){ht.trackingDerivation&&o(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[W],n=t.dehanceValues_(t.values_).indexOf(e);return n>-1&&(this.splice(n,1),!0)}};function gn(e,t){"function"==typeof Array.prototype[e]&&(vn[e]=t(e))}function bn(e){return function(){var t=this[W];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function yn(e){return function(t,n){var r=this,o=this[W];return o.atom_.reportObserved(),o.dehanceValues_(o.values_)[e]((function(e,o){return t.call(n,e,o,r)}))}}function _n(e){return function(){var t=this,n=this[W];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),o=arguments[0];return arguments[0]=function(e,n,r){return o(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",yn),gn("filter",yn),gn("find",yn),gn("findIndex",yn),gn("findLast",yn),gn("findLastIndex",yn),gn("flatMap",yn),gn("forEach",yn),gn("map",yn),gn("some",yn),gn("toReversed",yn),gn("reduce",_n),gn("reduceRight",_n);var xn=S("ObservableArrayAdministration",hn);function wn(e){return _(e)&&xn(e[W])}var On={},kn="add",Sn="delete",An=function(){function e(e,t,n){var r=this;void 0===t&&(t=J),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[W]=On,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)||o(18),tr((function(){r.keysAtom_=Y("ObservableMap.keys()"),r.data_=new Map,r.hasMap_=new Map,e&&r.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 Ze(this.has_(e),Q,"ObservableMap.key?",!1);this.hasMap_.set(e,r),$t(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:kn,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:Sn,object:this,name:e}))return!1;if(this.has_(e)){var n=ln(this),r=n?{observableKind:"map",debugObjectName:this.name_,type:Sn,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&&dn(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=ln(this),o=r?{observableKind:"map",debugObjectName:this.name_,type:fn,object:this,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),r&&dn(this,o)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,tn((function(){var r,o=new Ze(t,n.enhancer_,"ObservableMap.key",!1);n.data_.set(e,o),t=o.value_,null==(r=n.hasMap_.get(e))||r.setNewValue_(!0),n.keysAtom_.reportChanged()}));var r=ln(this),o=r?{observableKind:"map",debugObjectName:this.name_,type:kn,object:this,name:e,newValue:t}:null;r&&dn(this,o)},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 Tn({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:e.get(o)}}})},t.entries=function(){var e=this,t=this.keys();return Tn({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:[o,e.get(o)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=D(this);!(n=r()).done;){var o=n.value,i=o[0],a=o[1];e.call(t,a,i,this)}},t.merge=function(e){var t=this;return En(e)&&(e=new Map(e)),tn((function(){var n,r,i;x(e)?function(e){var t=Object.keys(e);if(!T)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter((function(t){return d.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)})):A(e)?(n=e,r=Object.getPrototypeOf(n),i=Object.getPrototypeOf(r),null!==Object.getPrototypeOf(i)&&o(19,e),e.forEach((function(e,n){return t.set(n,e)}))):null!=e&&o(20,e)})),this},t.clear=function(){var e=this;tn((function(){it((function(){for(var t,n=D(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,r=function(e){if(A(e)||En(e))return e;if(Array.isArray(e))return new Map(e);if(x(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return o(21,e)}(e),i=new Map,a=!1,s=D(t.data_.keys());!(n=s()).done;){var l=n.value;if(!r.has(l))if(t.delete(l))a=!0;else{var c=t.data_.get(l);i.set(l,c)}}for(var d,u=D(r.entries());!(d=u()).done;){var f=d.value,m=f[0],h=f[1],p=t.data_.has(m);if(t.set(m,h),t.data_.has(m)){var v=t.data_.get(m);i.set(m,v),p||(a=!0)}}if(!a)if(t.data_.size!==i.size)t.keysAtom_.reportChanged();else for(var g=t.data_.keys(),b=i.keys(),y=g.next(),_=b.next();!y.done;){if(y.value!==_.value){t.keysAtom_.reportChanged();break}y=g.next(),_=b.next()}t.data_=i})),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return cn(this,e)},t.intercept_=function(e){return an(this,e)},L(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),En=S("ObservableMap",An);function Tn(e){return e[Symbol.toStringTag]="MapIterator",lr(e)}var jn={},Pn=function(){function e(e,t,n){var r=this;void 0===t&&(t=J),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[W]=jn,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)||o(22),this.enhancer_=function(e,r){return t(e,r,n)},tr((function(){r.atom_=Y(r.name_),e&&r.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=D(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.forEach=function(e,t){for(var n,r=D(this);!(n=r()).done;){var o=n.value;e.call(t,o,o,this)}},t.add=function(e){var t=this;if(this.atom_,on(this)&&!sn(this,{type:kn,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=ln(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:kn,object:this,newValue:e}:null;n&&dn(this,r)}return this},t.delete=function(e){var t=this;if(on(this)&&!sn(this,{type:Sn,object:this,oldValue:e}))return!1;if(this.has(e)){var n=ln(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:Sn,object:this,oldValue:e}:null;return tn((function(){t.atom_.reportChanged(),t.data_.delete(e)})),n&&dn(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 Cn({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 Cn({next:function(){return t<n.length?{value:e.dehanceValue_(n[t++]),done:!1}:{value:void 0,done:!0}}})},t.intersection=function(e){return E(e)&&!Rn(e)?e.intersection(this):new Set(this).intersection(e)},t.union=function(e){return E(e)&&!Rn(e)?e.union(this):new Set(this).union(e)},t.difference=function(e){return new Set(this).difference(e)},t.symmetricDifference=function(e){return E(e)&&!Rn(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 E(e)&&!Rn(e)?e.isDisjointFrom(this):new Set(this).isDisjointFrom(e)},t.replace=function(e){var t=this;return Rn(e)&&(e=new Set(e)),tn((function(){Array.isArray(e)||E(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!=e&&o("Cannot initialize set from "+e)})),this},t.observe_=function(e,t){return cn(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()},L(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),Rn=S("ObservableSet",Pn);function Cn(e){return e[Symbol.toStringTag]="SetIterator",lr(e)}var zn=Object.create(null),Mn="remove",Nn=function(){function e(e,t,n,r){void 0===t&&(t=new Map),void 0===r&&(r=_e),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 F("ObservableObject.keys"),this.isPlainObject_=x(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 Ye)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 o=ln(this),i=o?{type:fn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),o&&dn(this,i)}return!0},t.get_=function(e){return ht.trackingDerivation&&!R(this.target_,e)&&this.has_(e),this.target_[e]},t.set_=function(e,t,n){return void 0===n&&(n=!1),R(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 Ze(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_[H])&&n[e])return;o(1,t.annotationType_,this.name_+"."+e.toString())}for(var r=this.target_;r&&r!==d;){var i=l(r,e);if(i){var a=t.make_(this,e,i,r);if(0===a)return;if(1===a)break}r=Object.getPrototypeOf(r)}Bn(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 o=n.extend_(this,e,t,r);return o&&Bn(this,0,e),o},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 o=sn(this,{object:this.proxy_||this.target_,name:e,type:kn,newValue:t.value});if(!o)return null;var i=o.newValue;t.value!==i&&(t=V({},t,{value:i}))}if(n){if(!Reflect.defineProperty(this.target_,e,t))return!1}else c(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{yt()}return!0},t.defineObservableProperty_=function(e,t,n,r){void 0===r&&(r=!1),this.keysAtom_;try{bt();var o=this.delete_(e);if(!o)return o;if(on(this)){var i=sn(this,{object:this.proxy_||this.target_,name:e,type:kn,newValue:t});if(!i)return null;t=i.newValue}var a=Dn(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 c(this.target_,e,s);var l=new Ze(t,n,"ObservableObject.key",!1);this.values_.set(e,l),this.notifyPropertyAddition_(e,l.value_)}finally{yt()}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:kn,newValue:void 0}))return null;t.name||(t.name="ObservableObject.key"),t.context=this.proxy_||this.target_;var o=Dn(e),i={configurable:!ht.safeDescriptors||this.isPlainObject_,enumerable:!1,get:o.get,set:o.set};if(n){if(!Reflect.defineProperty(this.target_,e,i))return!1}else c(this.target_,e,i);this.values_.set(e,new Ye(t)),this.notifyPropertyAddition_(e,void 0)}finally{yt()}return!0},t.delete_=function(e,t){if(void 0===t&&(t=!1),this.keysAtom_,!R(this.target_,e))return!0;if(on(this)&&!sn(this,{object:this.proxy_||this.target_,name:e,type:Mn}))return null;try{var n;bt();var r,o=ln(this),i=this.values_.get(e),a=void 0;if(!i&&o&&(a=null==(r=l(this.target_,e))?void 0:r.value),t){if(!Reflect.deleteProperty(this.target_,e))return!1}else delete this.target_[e];if(i&&(this.values_.delete(e),i instanceof Ze&&(a=i.value_),xt(i)),this.keysAtom_.reportChanged(),null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(e in this.target_),o){var s={type:Mn,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:a,name:e};o&&dn(this,s)}}finally{yt()}return!0},t.observe_=function(e,t){return cn(this,e)},t.intercept_=function(e){return an(this,e)},t.notifyPropertyAddition_=function(e,t){var n,r=ln(this);if(r){var o=r?{type:kn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;r&&dn(this,o)}null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),j(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function In(e,t){var n;if(R(e,W))return e;var r=null!=(n=null==t?void 0:t.name)?n:"ObservableObject",o=new Nn(e,new Map,String(r),function(e){var t;return e?null!=(t=e.defaultDecorator)?t:xe(e):void 0}(t));return O(e,W,o),e}var Ln=S("ObservableObjectAdministration",Nn);function Dn(e){return zn[e]||(zn[e]={get:function(){return this[W].getObservablePropValue_(e)},set:function(t){return this[W].setObservablePropValue_(e,t)}})}function Vn(e){return!!_(e)&&Ln(e[W])}function Bn(e,t,n){var r;null==(r=e.target_[H])||delete r[n]}var $n,Un,Hn=Fn(0),qn=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,!1===e}(),Kn=0,Gn=function(){};$n=Gn,Un=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf($n.prototype,Un):void 0!==$n.prototype.__proto__?$n.prototype.__proto__=Un:$n.prototype=Un;var Wn=function(e){function t(t,n,r,o){var i;return void 0===r&&(r="ObservableArray"),void 0===o&&(o=!1),i=e.call(this)||this,tr((function(){var e=new hn(r,n,o,!0);e.proxy_=i,k(i,W,e),t&&t.length&&i.spliceWithArray(0,0,t),qn&&Object.defineProperty(i,"0",Hn)})),i}B(t,e);var n=t.prototype;return n.concat=function(){this[W].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 wn(e)?e.slice():e})))},n[Symbol.iterator]=function(){var e=this,t=0;return lr({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})},L(t,[{key:"length",get:function(){return this[W].getArrayLength_()},set:function(e){this[W].setArrayLength_(e)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(Gn);function Fn(e){return{enumerable:!1,configurable:!0,get:function(){return this[W].get_(e)},set:function(t){this[W].set_(e,t)}}}function Zn(e){c(Wn.prototype,""+e,Fn(e))}function Yn(e){if(e>Kn){for(var t=Kn;t<e+100;t++)Zn(t);Kn=e}}function Xn(e,t,n){return new Wn(e,t,n)}function Jn(e,t){if("object"==typeof e&&null!==e){if(wn(e))return void 0!==t&&o(23),e[W].atom_;if(Rn(e))return e.atom_;if(En(e)){if(void 0===t)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||o(25,t,er(e)),n}if(Vn(e)){if(!t)return o(26);var r=e[W].values_.get(t);return r||o(27,t,er(e)),r}if(Z(e)||Qe(e)||Et(e))return e}else if(b(e)&&Et(e[W]))return e[W];o(28)}function Qn(e,t){return e||o(29),void 0!==t?Qn(Jn(e,t)):Z(e)||Qe(e)||Et(e)||En(e)||Rn(e)?e:e[W]?e[W]:void o(24,e)}function er(e,t){var n;if(void 0!==t)n=Jn(e,t);else{if(Lt(e))return e.name;n=Vn(e)||En(e)||Rn(e)?Qn(e):Jn(e)}return n.name_}function tr(e){var t=at(),n=We(!0);bt();try{return e()}finally{yt(),Fe(n),st(t)}}Object.entries(vn).forEach((function(e){var t=e[0],n=e[1];"concat"!==t&&O(Wn.prototype,t,n)})),Yn(1e3);var nr,rr=d.toString;function or(e,t,n){return void 0===n&&(n=-1),ir(e,t,n)}function ir(e,t,n,r,o){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;if("function"!==i&&"object"!==i&&"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 l=e.constructor,c=t.constructor;if(l!==c&&!(b(l)&&l instanceof l&&b(c)&&c instanceof c)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),o=o||[];for(var d=(r=r||[]).length;d--;)if(r[d]===e)return o[d]===t;if(r.push(e),o.push(t),s){if((d=e.length)!==t.length)return!1;for(;d--;)if(!ir(e[d],t[d],n-1,r,o))return!1}else{var u,f=Object.keys(e);if(d=f.length,Object.keys(t).length!==d)return!1;for(;d--;)if(!R(t,u=f[d])||!ir(e[u],t[u],n-1,r,o))return!1}return r.pop(),o.pop(),!0}function ar(e){return wn(e)?e.slice():A(e)||En(e)||E(e)||Rn(e)?Array.from(e.entries()):e}var sr=(null==(nr=a().Iterator)?void 0:nr.prototype)||{};function lr(e){return e[Symbol.iterator]=cr,Object.assign(Object.create(sr),e)}function cr(){return this}["Symbol","Map","Set"].forEach((function(e){void 0===a()[e]&&o("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:W});var dr=r(953),ur=r.n(dr);if(!dr.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!function(e,t,n){return tr((function(){var r=In(e,n)[W];null!=t||(t=function(e){return R(e,H)||O(e,H,V({},e[H])),e[H]}(e)),j(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=n(180);function mr(e){e()}function hr(e){e||(e=mr),function(e){!0===e.isolateGlobalState&&function(){if((ht.pendingReactions.length||ht.inBatch||ht.isRunningReactions)&&o(36),mt=!0,ft){var e=a();0==--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),ht=new ut}}();var t,n,r=e.useProxies,i=e.enforceActions;if(void 0!==r&&(ht.useProxies=r===qt||r!==Ht&&"undefined"!=typeof Proxy),"ifavailable"===r&&(ht.verifyProxies=!0),void 0!==i){var s=i===qt?qt:i===Kt;ht.enforceActions=s,ht.allowStateChanges=!0!==s&&s!==qt}["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=kt,kt=function(e){return t((function(){return n(e)}))})}({reactionScheduler:e})}var pr=function(){return!0};function vr(e){return Gt(Jn(e,void 0))}var gr=!1;function br(e){gr=e}function yr(){return gr}var _r,xr,wr=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,o){n-r.registeredAt>=e&&(t.finalize(r.value),t.registrations.delete(o))})),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}(),Or=new("undefined"!=typeof FinalizationRegistry?FinalizationRegistry:wr)((function(e){var t;null===(t=e.reaction)||void 0===t||t.dispose(),e.reaction=null})),kr=r(634);function Sr(e){e.reaction=new wt("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"),yr())return e();var n=ur().useRef(null);if(!n.current){var r={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(e){return Or.unregister(r),r.onStoreChange=e,r.reaction||(Sr(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 o,i,a=n.current;if(a.reaction||(Sr(a),Or.register(n,a,a)),ur().useDebugValue(a.reaction,vr),(0,kr.useSyncExternalStore)(a.subscribe,a.getSnapshot,a.getSnapshot),a.reaction.track((function(){try{o=e()}catch(e){i=e}})),i)throw i;return o}var Er="function"==typeof Symbol&&Symbol.for,Tr=null!==(xr=null===(_r=Object.getOwnPropertyDescriptor((function(){}),"name"))||void 0===_r?void 0:_r.configurable)&&void 0!==xr&&xr,jr=Er?Symbol.for("react.forward_ref"):"function"==typeof dr.forwardRef&&(0,dr.forwardRef)((function(e){return null})).$$typeof,Pr=Er?Symbol.for("react.memo"):"function"==typeof dr.memo&&(0,dr.memo)((function(e){return null})).$$typeof;function Rr(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(yr())return e;var r=null!==(n=null==t?void 0:t.forwardRef)&&void 0!==n&&n,o=e,i=e.displayName||e.name;if(jr&&e.$$typeof===jr&&(r=!0,"function"!=typeof(o=e.render)))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var a,s,l=function(e,t){return Ar((function(){return o(e,t)}),i)};return l.displayName=e.displayName,Tr&&Object.defineProperty(l,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(l.contextTypes=e.contextTypes),r&&(l=(0,dr.forwardRef)(l)),l=(0,dr.memo)(l),a=e,s=l,Object.keys(a).forEach((function(e){zr[e]||Object.defineProperty(s,e,Object.getOwnPropertyDescriptor(a,e))})),l}var Cr,zr={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function Mr(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 Nr(e,t){return(0,dr.useState)((function(){return Ie(e(),t,{autoBind:!0})}))[0]}function Ir(e){var t=(0,dr.useState)((function(){return Ie(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&&Ir(t);return(0,dr.useState)((function(){return Ie(e(n),void 0,{autoBind:!0})}))[0]}Mr.displayName="Observer",hr(fr.unstable_batchedUpdates);var Dr=null!==(Cr=Or.finalizeAllImmediately)&&void 0!==Cr?Cr:function(){};function Vr(e,t){return void 0===t&&(t="observed"),Ar(e,t)}function Br(e){br(e)}},319:(e,t,n)=>{"use strict";var r=n(953),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var d="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,d=r[1];return s((function(){o.value=n,o.getSnapshot=t,c(o)&&d({inst:o})}),[e,n,t]),a((function(){return c(o)&&d({inst:o}),e((function(){c(o)&&d({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:d},634:(e,t,n)=>{"use strict";e.exports=n(319)},436:(e,t,n)=>{(()=>{"use strict";var t={393:(e,t,n)=>{n.d(t,{Ck:()=>a,IW:()=>d,Sv:()=>s,eg:()=>l,qT:()=>c,vS:()=>i,zY:()=>u});var r=n(974),o=n(125);const i=r.A.constructTagName("button"),a={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},s={40:40,32:32,28:28,24:24},l={64:64,52:52,20:20,...s},c={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},d={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},u={VARIANT:a.PRIMARY,SIZE:s[32],COLOR:c.DEFAULT,TYPE_INTERNAL:d.ICON,TYPE:o.II.BUTTON}},92:(e,t,n)=>{n.d(t,{default:()=>m});var r=n(918),o=n(477);const i=[r.AH`
3
- :host {
4
- background-color: transparent;
5
- border-radius: 1.25rem;
6
- font-weight: var(--mds-font-apps-body-large-medium-font-weight);
7
- outline: none;
8
-
9
- --mdc-button-primary-color: var(--mds-color-theme-inverted-text-primary-normal);
10
- --mdc-button-primary-background-color: var(--mds-color-theme-button-primary-normal);
11
- --mdc-button-primary-hover-background-color: var(--mds-color-theme-button-primary-hover);
12
- --mdc-button-primary-pressed-background-color: var(--mds-color-theme-button-primary-pressed);
13
- --mdc-button-primary-disabled-background-color: var(--mds-color-theme-button-primary-disabled);
14
- --mdc-button-primary-disabled-color: var(--mds-color-theme-text-primary-disabled);
15
-
16
- --mdc-button-secondary-color: var(--mds-color-theme-text-primary-normal);
17
- --mdc-button-secondary-border-color: var(--mds-color-theme-outline-button-normal);
18
- --mdc-button-secondary-hover-background-color: var(--mds-color-theme-button-secondary-hover);
19
- --mdc-button-secondary-pressed-background-color: var(--mds-color-theme-button-secondary-pressed);
20
- --mdc-button-secondary-disabled-background-color: var(--mds-color-theme-button-secondary-disabled);
21
- --mdc-button-secondary-disabled-color: var(--mds-color-theme-text-primary-disabled);
22
- --mdc-button-secondary-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
23
-
24
- --mdc-button-tertiary-color: var(--mds-color-theme-text-primary-normal);
25
- --mdc-button-tertiary-hover-background-color: var(--mds-color-theme-button-secondary-hover);
26
- --mdc-button-tertiary-pressed-background-color: var(--mds-color-theme-button-secondary-pressed);
27
- --mdc-button-tertiary-disabled-background-color: var(--mds-color-theme-button-secondary-disabled);
28
- --mdc-button-tertiary-disabled-color: var(--mds-color-theme-text-primary-disabled);
29
-
30
- --mdc-button-line-height-size-40: var(--mds-font-lineheight-body-large);
31
- --mdc-button-line-height-size-32: var(--mds-font-lineheight-body-large);
32
- --mdc-button-line-height-size-28: var(--mds-font-lineheight-body-midsize);
33
- --mdc-button-line-height-size-24: var(--mds-font-lineheight-body-small);
34
- }
35
-
36
- :host([active]){
37
- font-weight: var(--mds-font-apps-body-large-bold-font-weight);
38
- }
39
-
40
- :host([variant="primary"]){
41
- background: var(--mdc-button-primary-background-color);
42
- color: var(--mdc-button-primary-color);
43
- }
44
- :host([variant="primary"]:hover){
45
- background: var(--mdc-button-primary-hover-background-color);
46
- }
47
- :host([variant="primary"]:active), :host([variant="primary"].pressed){
48
- background: var(--mdc-button-primary-pressed-background-color);
49
- }
50
- :host([variant="primary"][disabled]), :host([variant="primary"][soft-disabled]){
51
- background: var(--mdc-button-primary-disabled-background-color);
52
- color: var(--mdc-button-primary-disabled-color);
53
- cursor: auto;
54
- }
55
-
56
- :host([variant="secondary"]){
57
- color: var(--mdc-button-secondary-color);
58
- border-color: var(--mdc-button-secondary-border-color);
59
- }
60
- :host([variant="secondary"]:hover){
61
- background: var(--mdc-button-secondary-hover-background-color);
62
- }
63
- :host([variant="secondary"]:active), :host([variant="secondary"].pressed){
64
- background: var(--mdc-button-secondary-pressed-background-color);
65
- }
66
- :host([variant="secondary"][disabled]),
67
- :host([variant="secondary"][soft-disabled]){
68
- color: var(--mdc-button-primary-disabled-color);
69
- border-color: var(--mdc-button-secondary-disabled-border-color);
70
- background: var(--mdc-button-secondary-disabled-background-color);
71
- cursor: auto;
72
- }
73
-
74
- :host([variant="tertiary"]){
75
- border-color: transparent;
76
- color: var(--mdc-button-tertiary-color);
77
- }
78
- :host([variant="tertiary"]:hover){
79
- background: var(--mdc-button-tertiary-hover-background-color);
80
- }
81
- :host([variant="tertiary"]:active), :host([variant="tertiary"].pressed){
82
- background: var(--mdc-button-tertiary-pressed-background-color);
83
- }
84
- :host([variant="tertiary"][disabled]),
85
- :host([variant="tertiary"][soft-disabled]){
86
- color: var(--mdc-button-tertiary-disabled-color);
87
- background: var(--mdc-button-tertiary-disabled-background-color);
88
- cursor: auto;
89
- }
90
-
91
- :host([size="64"][data-btn-type='icon']),
92
- :host([size="52"][data-btn-type='icon']),
93
- :host([size="40"][data-btn-type='icon']),
94
- :host([size="32"][data-btn-type='icon']),
95
- :host([size="28"][data-btn-type='icon']),
96
- :host([size="24"][data-btn-type='icon']){
97
- border-radius: 6.25rem;
98
- aspect-ratio: 1;
99
- padding: unset;
100
- }
101
- :host([size="40"]){
102
- font-size: var(--mds-font-size-body-large);
103
- line-height: var(--mdc-button-line-height-size-40);
104
- padding: 0 1rem;
105
- gap: 0.5rem;
106
- }
107
- :host([size="32"]){
108
- font-size: var(--mds-font-size-body-large);
109
- line-height: var(--mdc-button-line-height-size-32);
110
- padding: 0 0.75rem;
111
- gap: 0.375rem;
112
- }
113
- :host([size="28"]){
114
- font-size: var(--mds-font-size-body-midsize);
115
- line-height: var(--mdc-button-line-height-size-28);
116
- padding: 0 0.75rem;
117
- gap: 0.375rem;
118
- }
119
- :host([size="24"]){
120
- font-size: var(--mds-font-size-body-small);
121
- line-height: var(--mdc-button-line-height-size-24);
122
- padding: 0 0.625rem;
123
- gap: 0.25rem;
124
- }
125
- :host([size="20"]){
126
- padding: 0.0625rem;
127
- }
128
-
129
- :host([color="accent"]){
130
- --mdc-button-primary-color: var(--mds-color-theme-common-text-primary-normal);
131
- --mdc-button-primary-background-color: var(--mds-color-theme-button-accent-normal);
132
- --mdc-button-primary-hover-background-color: var(--mds-color-theme-button-accent-hover);
133
- --mdc-button-primary-pressed-background-color: var(--mds-color-theme-button-accent-pressed);
134
-
135
- --mdc-button-secondary-color: var(--mds-color-theme-text-accent-normal);
136
- --mdc-button-secondary-border-color: var(--mds-color-theme-outline-theme-normal);
137
- --mdc-button-secondary-hover-background-color: var(--mds-color-theme-button-secondary-hover);
138
- --mdc-button-secondary-pressed-background-color: var(--mds-color-theme-button-secondary-pressed);
139
- }
140
- :host([color="positive"]){
141
- --mdc-button-primary-color: var(--mds-color-theme-common-text-primary-normal);
142
- --mdc-button-primary-background-color: var(--mds-color-theme-button-join-normal);
143
- --mdc-button-primary-hover-background-color: var(--mds-color-theme-button-join-hover);
144
- --mdc-button-primary-pressed-background-color: var(--mds-color-theme-button-join-pressed);
145
-
146
- --mdc-button-secondary-color: var(--mds-color-theme-text-success-normal);
147
- --mdc-button-secondary-border-color: var(--mds-color-theme-outline-join-normal);
148
- --mdc-button-secondary-hover-background-color: var(--mds-color-theme-button-secondary-hover);
149
- --mdc-button-secondary-pressed-background-color: var(--mds-color-theme-button-secondary-pressed);
150
- }
151
- :host([color="negative"]){
152
- --mdc-button-primary-color: var(--mds-color-theme-common-text-primary-normal);
153
- --mdc-button-primary-background-color: var(--mds-color-theme-button-cancel-normal);
154
- --mdc-button-primary-hover-background-color: var(--mds-color-theme-button-cancel-hover);
155
- --mdc-button-primary-pressed-background-color: var(--mds-color-theme-button-cancel-pressed);
156
-
157
- --mdc-button-secondary-color: var(--mds-color-theme-text-error-normal);
158
- --mdc-button-secondary-border-color: var(--mds-color-theme-outline-cancel-normal);
159
- --mdc-button-secondary-hover-background-color: var(--mds-color-theme-button-secondary-hover);
160
- --mdc-button-secondary-pressed-background-color: var(--mds-color-theme-button-secondary-pressed);
161
- }
162
- :host([color="promotional"]){
163
- --mdc-button-primary-color: var(--mds-color-theme-common-text-primary-normal);
164
- --mdc-button-primary-background-color: var(--mds-color-theme-common-button-promotion-normal);
165
- --mdc-button-primary-hover-background-color: var(--mds-color-theme-common-button-promotion-hover);
166
- --mdc-button-primary-pressed-background-color: var(--mds-color-theme-common-button-promotion-active);
167
-
168
- --mdc-button-secondary-color: var(--mds-color-theme-text-primary-normal);
169
- --mdc-button-secondary-border-color: var(--mds-color-theme-outline-promotion-normal);
170
- --mdc-button-secondary-hover-background-color: var(--mds-color-theme-button-secondary-hover);
171
- --mdc-button-secondary-pressed-background-color: var(--mds-color-theme-button-secondary-pressed);
172
- }
173
- `];var a=n(393);const s=e=>{const t=e.split("-"),n=["bold","filled","regular","light"];return t.filter((e=>!n.includes(e))).join("-")};var l=n(199),c=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},d=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};class u extends l.A{constructor(){super(...arguments),this.variant=a.zY.VARIANT,this.size=a.zY.SIZE,this.color=a.zY.COLOR,this.role="button",this.typeInternal=a.zY.TYPE_INTERNAL,this.iconSize=1}update(e){super.update(e),e.has("active")&&this.modifyIconName(this.active),e.has("size")&&this.setSize(this.size),e.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),e.has("color")&&this.setColor(this.color),e.has("typeInternal")&&this.setSize(this.size),(e.has("prefixIcon")||e.has("postfixIcon"))&&this.inferButtonType()}modifyIconName(e){e?(this.prefixIcon&&(this.prevPrefixIcon=this.prefixIcon,this.prefixIcon=`${s(this.prefixIcon)}-filled`),this.postfixIcon&&(this.prevPostfixIcon=this.postfixIcon,this.postfixIcon=`${s(this.postfixIcon)}-filled`)):(this.prevPrefixIcon&&(this.prefixIcon=this.prevPrefixIcon),this.prevPostfixIcon&&(this.postfixIcon=this.prevPostfixIcon))}setVariant(e){this.setAttribute("variant",Object.values(a.Ck).includes(e)?e:a.zY.VARIANT)}setSize(e){const t=this.typeInternal===a.IW.ICON?Object.values(a.eg).includes(e)&&!(e===a.eg[20]&&this.variant!==a.Ck.TERTIARY):Object.values(a.Sv).includes(e);this.setAttribute("size",t?`${e}`:`${a.zY.SIZE}`),this.iconSize=(e=>{switch(e){case a.eg[64]:return 2;case a.eg[52]:return 1.75;case a.eg[40]:return 1.25;default:return 1}})(e)}setColor(e){Object.values(a.qT).includes(e)&&this.variant!==a.Ck.TERTIARY?this.setAttribute("color",e):this.setAttribute("color",`${a.zY.COLOR}`)}inferButtonType(){var e,t;const n=null===(t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("slot"))||void 0===t?void 0:t.assignedNodes().length;n&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=a.IW.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):n||!this.prefixIcon&&!this.postfixIcon?(this.typeInternal=a.IW.PILL,this.setAttribute("data-btn-type","pill")):(this.typeInternal=a.IW.ICON,this.setAttribute("data-btn-type","icon"))}render(){return r.qy`
174
- ${this.prefixIcon?r.qy`
175
- <mdc-icon
176
- name="${this.prefixIcon}"
177
- part="prefix-icon"
178
- size=${this.iconSize}
179
- length-unit="rem">
180
- </mdc-icon>`:""}
181
- <slot @slotchange=${this.inferButtonType}></slot>
182
- ${this.postfixIcon?r.qy`
183
- <mdc-icon
184
- name="${this.postfixIcon}"
185
- part="postfix-icon"
186
- size=${this.iconSize}
187
- length-unit="rem">
188
- </mdc-icon>`:""}
189
- `}}u.styles=[...l.A.styles,...i],c([(0,o.MZ)({type:String,attribute:"prefix-icon",reflect:!0}),d("design:type",String)],u.prototype,"prefixIcon",void 0),c([(0,o.MZ)({type:String,attribute:"postfix-icon",reflect:!0}),d("design:type",String)],u.prototype,"postfixIcon",void 0),c([(0,o.MZ)({type:String}),d("design:type",String)],u.prototype,"variant",void 0),c([(0,o.MZ)({type:Number}),d("design:type",Number)],u.prototype,"size",void 0),c([(0,o.MZ)({type:String}),d("design:type",String)],u.prototype,"color",void 0),c([(0,o.MZ)({type:String,reflect:!0}),d("design:type",Object)],u.prototype,"role",void 0),c([(0,o.wk)(),d("design:type",String)],u.prototype,"typeInternal",void 0),c([(0,o.wk)(),d("design:type",Object)],u.prototype,"iconSize",void 0);const f=u;n(289),f.register(a.vS);const m=f},199:(e,t,n)=>{n.d(t,{A:()=>p});var r=n(918),o=n(477),i=n(903);const a=[i.B,r.AH`
190
- :host {
191
- border: 0.0625rem solid transparent;
192
- cursor: pointer;
193
-
194
- background-color: var(--mds-color-theme-text-primary-normal);
195
- color: var(--mds-color-theme-inverted-text-secondary-normal);
196
- font-size: var(--mds-font-apps-body-midsize-regular-font-size);
197
- outline: none;
198
-
199
- --mdc-button-height-size-124: 7.75rem;
200
- --mdc-button-height-size-88: 5.5rem;
201
- --mdc-button-height-size-72: 4.5rem;
202
- --mdc-button-height-size-64: 4rem;
203
- --mdc-button-height-size-52: 3.25rem;
204
- --mdc-button-height-size-40: 2.5rem;
205
- --mdc-button-height-size-32: 2rem;
206
- --mdc-button-height-size-28: 1.75rem;
207
- --mdc-button-height-size-24: 1.5rem;
208
- --mdc-button-height-size-20: 1.25rem;
209
- }
210
-
211
- :host([disabled]), :host([soft-disabled]){
212
- background-color: var(--mds-color-theme-text-primary-disabled);
213
- }
214
- :host([size="124"]){
215
- height: var(--mdc-button-height-size-124);
216
- }
217
- :host([size="88"]){
218
- height: var(--mdc-button-height-size-88);
219
- }
220
- :host([size="72"]){
221
- height: var(--mdc-button-height-size-72);
222
- }
223
- :host([size="64"]){
224
- height: var(--mdc-button-height-size-64);
225
- }
226
- :host([size="52"]){
227
- height: var(--mdc-button-height-size-52);
228
- }
229
- :host([size="40"]){
230
- height: var(--mdc-button-height-size-40);
231
- }
232
- :host([size="32"]){
233
- height: var(--mdc-button-height-size-32);
234
- }
235
- :host([size="28"]){
236
- height: var(--mdc-button-height-size-28);
237
- font-size: var(--mds-font-size-body-midsize);
238
- }
239
- :host([size="24"]){
240
- height: var(--mdc-button-height-size-24);
241
- }
242
- :host([size="20"]){
243
- height: var(--mdc-button-height-size-20);
244
- }
245
- `,...(0,i.P)()];var s=n(370),l=n(125),c=n(18),d=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};const u=e=>{class t extends e{constructor(){super(...arguments),this.tabIndex=0}}return function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}([(0,o.MZ)({reflect:!0,type:Number}),d("design:type",Object)],t.prototype,"tabIndex",void 0),t};var f=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},m=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};class h extends(u((0,c.i)(s.u))){get form(){return this.internals.form}constructor(){super(),this.active=!1,this.softDisabled=!1,this.size=l.zY.SIZE,this.role=l.zY.ROLE,this.type=l.zY.TYPE,this.prevTabindex=0,this.addEventListener("click",this.executeAction.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.internals=this.attachInternals()}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this,this.disabled),e.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),e.has("active")&&this.setAriaPressed(this,this.active)}executeAction(){this.type===l.II.SUBMIT&&this.internals.form&&this.internals.form.requestSubmit(),this.type===l.II.RESET&&this.internals.form&&this.internals.form.reset()}setAriaPressed(e,t){t?e.setAttribute("aria-pressed","true"):e.removeAttribute("aria-pressed")}setSoftDisabled(e,t){t?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")}setDisabled(e,t){t?(e.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex=this.prevTabindex,e.removeAttribute("aria-disabled"))}triggerClickEvent(){const e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(e),this.executeAction()}handleKeyDown(e){["Enter"," "].includes(e.key)&&(this.classList.add("pressed"),"Enter"===e.key&&this.triggerClickEvent())}handleKeyUp(e){["Enter"," "].includes(e.key)&&(this.classList.remove("pressed")," "===e.key&&this.triggerClickEvent())}render(){return r.qy`
246
- <slot></slot>
247
- `}}h.formAssociated=!0,h.styles=[...s.u.styles,...a],f([(0,o.MZ)({type:Boolean}),m("design:type",Object)],h.prototype,"active",void 0),f([(0,o.MZ)({type:Boolean,attribute:"soft-disabled"}),m("design:type",Object)],h.prototype,"softDisabled",void 0),f([(0,o.MZ)({type:Number,reflect:!0}),m("design:type",Number)],h.prototype,"size",void 0),f([(0,o.MZ)({type:String,reflect:!0}),m("design:type",Object)],h.prototype,"role",void 0),f([(0,o.MZ)({reflect:!0}),m("design:type",String)],h.prototype,"type",void 0);const p=h},125:(e,t,n)=>{n.d(t,{II:()=>o,vS:()=>r,zY:()=>i});const r=n(974).A.constructTagName("buttonsimple"),o={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},i={SIZE:32,TYPE:o.BUTTON,ROLE:"button"}},787:(e,t,n)=>{n.d(t,{v:()=>r,z:()=>o});const r=n(974).A.constructTagName("icon"),o={NAME:void 0,SIZE:1}},289:(e,t,n)=>{n.d(t,{A:()=>p});var r=n(918),o=n(477),i=n(903);const a=[i.B,r.AH`
248
- :host {
249
- --mdc-icon-fill-color: currentColor;
250
- --mdc-icon-size: var(--computed-icon-size);
251
- --mdc-icon-border-radius: 0.25rem;
252
-
253
- height: var(--mdc-icon-size);
254
- width: var(--mdc-icon-size);
255
- border-radius: var(--mdc-icon-border-radius);
256
- }
257
- :host::part(icon) {
258
- height: 100%;
259
- width: 100%;
260
- fill: var(--mdc-icon-fill-color);
261
- }
262
- `,...(0,i.P)()];var s=n(370),l=n(603),c=n(892),d=n(787),u=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},f=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};class m extends s.u{constructor(){super(),this.name=d.z.NAME,this.ariaLabel=null,this.iconProviderContext=(e=>{const{host:t,context:n,subscribe:r}=e;return new l.G(t,{context:n,subscribe:null==r||r})})({host:this,context:c.A.Context}),this.abortController=new AbortController}async getIconData(){if(this.iconProviderContext.value){const{fileExtension:e,url:t}=this.iconProviderContext.value;if(t&&e&&this.name){this.abortController.abort(),this.abortController=new AbortController;try{const n=await(async(e,t,n,r)=>{const o=await fetch(`${e}/${t}.${n}`,{signal:r});if(!o.ok)throw new Error("There was a problem while fetching the icon!");const i=await o.text(),a=(new DOMParser).parseFromString(i,"text/html").body.children[0];return a.setAttribute("data-name",t),a.setAttribute("part","icon"),a.setAttribute("aria-hidden","true"),a})(t,this.name,e,this.abortController.signal);this.handleIconLoadedSuccess(n)}catch(e){this.handleIconLoadedFailure(e)}}}}handleIconLoadedSuccess(e){this.iconData=e;const t=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(t)}handleIconLoadedFailure(e){const t=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(t)}updateSize(){var e;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){const t=`${this.computedIconSize}${null!==(e=this.lengthUnit)&&void 0!==e?e:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",t)}}get computedIconSize(){var e,t;return null!==(t=null!==(e=this.size)&&void 0!==e?e:this.sizeFromContext)&&void 0!==t?t:d.z.SIZE}updated(e){var t,n,r,o;super.updated(e),e.has("name")&&this.getIconData().catch((e=>{"AbortError"!==e.name&&this.onerror&&this.onerror(e)})),e.has("ariaLabel")&&(this.role=this.ariaLabel?"img":null),(e.has("size")||e.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==(null===(t=this.iconProviderContext.value)||void 0===t?void 0:t.lengthUnit)&&(this.lengthUnitFromContext=null===(n=this.iconProviderContext.value)||void 0===n?void 0:n.lengthUnit,this.updateSize()),this.sizeFromContext!==(null===(r=this.iconProviderContext.value)||void 0===r?void 0:r.size)&&(this.sizeFromContext=null===(o=this.iconProviderContext.value)||void 0===o?void 0:o.size,this.updateSize())}render(){return r.qy` ${this.iconData} `}}m.styles=[...s.u.styles,...a],u([(0,o.wk)(),f("design:type",HTMLElement)],m.prototype,"iconData",void 0),u([(0,o.wk)(),f("design:type",String)],m.prototype,"lengthUnitFromContext",void 0),u([(0,o.wk)(),f("design:type",Number)],m.prototype,"sizeFromContext",void 0),u([(0,o.MZ)({type:String,reflect:!0}),f("design:type",String)],m.prototype,"name",void 0),u([(0,o.MZ)({type:Number}),f("design:type",Number)],m.prototype,"size",void 0),u([(0,o.MZ)({type:String,attribute:"length-unit"}),f("design:type",String)],m.prototype,"lengthUnit",void 0),u([(0,o.MZ)({type:String,attribute:"aria-label"}),f("design:type",Object)],m.prototype,"ariaLabel",void 0),u([(0,o.wk)(),f("design:type",AbortController)],m.prototype,"abortController",void 0);const h=m;h.register(d.v);const p=h},892:(e,t,n)=>{n.d(t,{A:()=>f});var r=n(477),o=n(370),i=n(603),a=n(497);class s{}s.context=(0,i.q6)(a.vS);const l=s;var c=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},d=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};class u extends o.K{constructor(){super({context:l.context,initialValue:new l}),this.fileExtension=a.zY.FILE_EXTENSION,this.lengthUnit=a.zY.LENGTH_UNIT,this.size=a.zY.SIZE}static get Context(){return l.context}updateValuesInContext(){this.fileExtension&&a.vH.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=a.zY.FILE_EXTENSION,this.context.value.fileExtension=a.zY.FILE_EXTENSION),this.context.value.url=this.url,this.context.value.size=this.size,this.lengthUnit&&a.yY.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=a.zY.LENGTH_UNIT,this.context.value.lengthUnit=a.zY.LENGTH_UNIT)}updateContext(){this.context.value.fileExtension===this.fileExtension&&this.context.value.url===this.url&&this.context.value.lengthUnit===this.lengthUnit&&this.context.value.size===this.size||(this.updateValuesInContext(),this.context.updateObservers())}}c([(0,r.MZ)({type:String}),d("design:type",String)],u.prototype,"url",void 0),c([(0,r.MZ)({type:String,attribute:"file-extension",reflect:!0}),d("design:type",String)],u.prototype,"fileExtension",void 0),c([(0,r.MZ)({type:String,attribute:"length-unit",reflect:!0}),d("design:type",String)],u.prototype,"lengthUnit",void 0),c([(0,r.MZ)({type:Number,reflect:!0}),d("design:type",Number)],u.prototype,"size",void 0);const f=u},497:(e,t,n)=>{n.d(t,{vH:()=>o,vS:()=>r,yY:()=>i,zY:()=>a});const r=n(974).A.constructTagName("iconprovider"),o=["svg"],i=["em","rem","px"],a={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:1}},584:(e,t,n)=>{n.d(t,{default:()=>i});var r=n(892),o=n(497);r.A.register(o.vS);const i=r.A},722:(e,t,n)=>{n.d(t,{default:()=>h});var r=n(477),o=n(583),i=n(370),a=n(603);class s{constructor(e){this.themeclass=e}}s.context=(0,a.q6)(o.v);const l=s,c=[n(918).AH`
263
- :host {
264
- --mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
265
- --mdc-themeprovider-font-family: var(--mds-font-family-primary);
266
- --mdc-themeprovider-font-weight: 400;
267
- /* adjusting Inter's letter spacing to better match the old CiscoSans */
268
- --mdc-themeprovider-letter-spacing-adjustment: -0.25px;
269
- /* Adjusting font feature settings for accessibility reasons */
270
- --mdc-themeprovider-font-feature-settings: "ss02" on;
271
-
272
- color: var(--mdc-themeprovider-color-default);
273
- font-family: var(--mdc-themeprovider-font-family);
274
- font-weight: var(--mdc-themeprovider-font-weight);
275
- letter-spacing: var(--mdc-themeprovider-letter-spacing-adjustment);
276
-
277
- font-feature-settings: var(--mdc-themeprovider-font-feature-settings);
278
- }
279
- `];var d=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},u=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};class f extends i.K{constructor(){super({context:l.context,initialValue:new l(o.z.THEMECLASS)}),this.themeclass=o.z.THEMECLASS}static get Context(){return l.context}updated(e){super.updated(e),e.has("themeclass")&&(this.setThemeInClassList(),this.currentThemeClass=this.themeclass)}updateContext(){this.context.value.themeclass!==this.themeclass&&(this.context.value.themeclass=this.themeclass,this.context.updateObservers())}setThemeInClassList(){this.currentThemeClass&&this.classList.remove(...this.currentThemeClass.split(" ")),this.themeclass&&this.classList.add(...this.themeclass.split(" "))}}f.styles=[...i.K.styles,...c],d([(0,r.wk)(),u("design:type",String)],f.prototype,"currentThemeClass",void 0),d([(0,r.MZ)({type:String}),u("design:type",String)],f.prototype,"themeclass",void 0);const m=f;m.register(o.v);const h=m},583:(e,t,n)=>{n.d(t,{v:()=>r,z:()=>o});const r=n(974).A.constructTagName("themeprovider"),o={THEMECLASS:"mds-theme-stable-darkWebex"}},370:(e,t,n)=>{n.d(t,{u:()=>a,K:()=>d});var r=n(918);const o=r.AH`
280
- :host {
281
- box-sizing: border-box;
282
- }
283
-
284
- :host *,
285
- :host *::before,
286
- :host *::after {
287
- box-sizing: inherit;
288
- }
289
- `;class i extends r.WF{static register(e){customElements.get(e)||customElements.define(e,this)}}i.styles=[o];const a=i;var s=n(603);const l=r.AH`
290
- :host {
291
- display: contents;
292
- }
293
- `;class c extends a{constructor({context:e,initialValue:t}){super(),this.context=new s.DT(this,{context:e,initialValue:t})}render(){return this.updateContext(),r.qy`<slot></slot>`}}c.styles=[...a.styles,l];const d=c},417:(e,t,n)=>{n.r(t),n.d(t,{Avatar:()=>re,AvatarButton:()=>de,Badge:()=>xe,Bullet:()=>Ae,Button:()=>Te,Buttonsimple:()=>Re,Divider:()=>Ue,FormfieldWrapper:()=>st,Icon:()=>lt,IconProvider:()=>dt,Link:()=>gt,Marker:()=>wt,Modalcontainer:()=>jt,Presence:()=>Pt,Text:()=>Rt,ThemeProvider:()=>zt});var r=n(953);const o=new Set(["children","localName","ref","style","className"]),i=new WeakMap,a=(e,t,n,r,o)=>{const a=o?.[t];void 0===a?(e[t]=n,null==n&&t in HTMLElement.prototype&&e.removeAttribute(t)):n!==r&&((e,t,n)=>{let r=i.get(e);void 0===r&&i.set(e,r=new Map);let o=r.get(t);void 0!==n?void 0===o?(r.set(t,o={handleEvent:n}),e.addEventListener(t,o)):o.handleEvent=n:void 0!==o&&(r.delete(t),e.removeEventListener(t,o))})(e,a,n)},s=({react:e,tagName:t,elementClass:n,events:r,displayName:i})=>{const s=new Set(Object.keys(r??{})),l=e.forwardRef(((i,l)=>{const c=e.useRef(new Map),d=e.useRef(null),u={},f={};for(const[e,t]of Object.entries(i))o.has(e)?u["className"===e?"class":e]=t:s.has(e)||e in n.prototype?f[e]=t:u[e]=t;return e.useLayoutEffect((()=>{if(null===d.current)return;const e=new Map;for(const t in f)a(d.current,t,i[t],c.current.get(t),r),c.current.delete(t),e.set(t,i[t]);for(const[e,t]of c.current)a(d.current,e,void 0,t,r);c.current=e})),e.useLayoutEffect((()=>{d.current?.removeAttribute("defer-hydration")}),[]),u.suppressHydrationWarning=!0,e.createElement(t,{...u,ref:e.useCallback((e=>{d.current=e,"function"==typeof l?l(e):null!==l&&(l.current=e)}),[l])})}));return l.displayName=i??n.name,l};var l=n(918),c=n(477),d=n(452);const u=e=>e??d.s6;var f=n(370),m=n(974);const h=m.A.constructTagName("avatar"),p="counter",v="icon",g="photo",b="text",y={24:24,32:32,48:48,64:64,72:72,88:88,124:124},_={TYPE:g,SIZE:y[32],ICON_NAME:"user-regular"};var x=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},w=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};const O=e=>{class t extends e{constructor(){super(...arguments),this.size=_.SIZE,this.isTyping=!1}}return x([(0,c.MZ)({type:String}),w("design:type",String)],t.prototype,"src",void 0),x([(0,c.MZ)({type:String}),w("design:type",String)],t.prototype,"initials",void 0),x([(0,c.MZ)({type:String}),w("design:type",String)],t.prototype,"presence",void 0),x([(0,c.MZ)({type:Number,reflect:!0,attribute:"size"}),w("design:type",Number)],t.prototype,"size",void 0),x([(0,c.MZ)({type:String,attribute:"icon-name"}),w("design:type",String)],t.prototype,"iconName",void 0),x([(0,c.MZ)({type:Number}),w("design:type",Number)],t.prototype,"counter",void 0),x([(0,c.MZ)({type:Boolean,attribute:"is-typing"}),w("design:type",Object)],t.prototype,"isTyping",void 0),t};var k=n(903);const S=[k.B,l.AH`
294
- :host {
295
- --mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
296
- --mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
297
- --mdc-avatar-loading-indicator-background-color: var(--mds-color-theme-common-text-primary-disabled);
298
- --mdc-avatar-loading-indicator-foreground-color: var(--mdc-avatar-default-foreground-color);
299
- --mdc-avatar-loading-overlay-background-color: var(--mds-color-theme-common-overlays-secondary-normal);
300
- }
301
- :host([size="124"]) .content {
302
- width: 7.75rem;
303
- height: 7.75rem;
304
- }
305
- :host([size="88"]) .content {
306
- width: 5.5rem;
307
- height: 5.5rem;
308
- }
309
- :host([size="72"]) .content {
310
- width: 4.5rem;
311
- height: 4.5rem;
312
- }
313
- :host([size="64"]) .content {
314
- width: 4rem;
315
- height: 4rem;
316
- }
317
- :host([size="48"]) .content {
318
- width: 3rem;
319
- height: 3rem;
320
- }
321
- :host([size="32"]) .content {
322
- width: 2rem;
323
- height: 2rem;
324
- }
325
- :host([size="24"]) .content {
326
- width: 1.5rem;
327
- height: 1.5rem;
328
- }
329
- :host([size="124"]) .content > .loading__wrapper > .loader {
330
- transform: scale(1.5);
331
- }
332
- :host([size="88"]) .content > .loading__wrapper > .loader {
333
- transform: scale(1.2);
334
- }
335
- :host([size="72"]) .content > .loading__wrapper > .loader,
336
- :host([size="64"]) .content > .loading__wrapper > .loader {
337
- transform: scale(0.8);
338
- }
339
- :host([size="48"]) .content > .loading__wrapper > .loader {
340
- transform: scale(0.6);
341
- }
342
- :host([size="32"]) .content > .loading__wrapper > .loader {
343
- transform: scale(0.4);
344
- }
345
- :host([size="24"]) .content > .loading__wrapper > .loader {
346
- transform: scale(0.3);
347
- }
348
- .content {
349
- width: 2rem;
350
- height: 2rem;
351
- background-color: var(--mdc-avatar-default-background-color);
352
- color: var(--mdc-avatar-default-foreground-color);
353
- border-radius: 100vh;
354
- position: relative;
355
- display: grid;
356
- place-items: center;
357
- }
358
- .photo {
359
- border-radius: 100vh;
360
- height: 100%;
361
- width: 100%;
362
- object-fit: cover;
363
- overflow: hidden;
364
- }
365
- .presence {
366
- position: absolute;
367
- bottom: 0;
368
- right: 0;
369
- }
370
- .loading__wrapper {
371
- position: absolute;
372
- border-radius: 100vh;
373
- width: 100%;
374
- height: 100%;
375
- background-color: var(--mdc-avatar-loading-overlay-background-color);
376
- display: grid;
377
- place-items: center;
378
- }
379
- .loader {
380
- position: absolute;
381
- width: 1rem;
382
- transform: scale(0.4);
383
- aspect-ratio: 1;
384
- border-radius: 100vh;
385
- animation: loading-key 1s infinite linear alternate;
386
- }
387
- @keyframes loading-key {
388
- 0% {
389
- box-shadow: 1.25rem 0 var(--mdc-avatar-loading-indicator-foreground-color),
390
- -1.25rem 0 var(--mdc-avatar-loading-indicator-background-color);
391
- background: var(--mdc-avatar-loading-indicator-foreground-color);
392
- }
393
- 33% {
394
- box-shadow: 1.25rem 0 var(--mdc-avatar-loading-indicator-foreground-color),
395
- -1.25rem 0 var(--mdc-avatar-loading-indicator-background-color);
396
- background: var(--mdc-avatar-loading-indicator-background-color);
397
- }
398
- 66% {
399
- box-shadow: 1.25rem 0 var(--mdc-avatar-loading-indicator-background-color),
400
- -1.25rem 0 var(--mdc-avatar-loading-indicator-foreground-color);
401
- background: var(--mdc-avatar-loading-indicator-background-color);
402
- }
403
- 100%{
404
- box-shadow: 1.25rem 0 var(--mdc-avatar-loading-indicator-background-color),
405
- -1.25rem 0 var(--mdc-avatar-loading-indicator-foreground-color);
406
- background: var(--mdc-avatar-loading-indicator-foreground-color);
407
- }
408
- }
409
-
410
- /* High Contrast Mode */
411
- @media (forced-colors: active) {
412
- .content:not(.photo) {
413
- outline: 0.125rem solid;
414
- }
415
- }
416
- `],A=m.A.constructTagName("presence"),E="x_small",T="small",j="midsize",P="large",R="x_large",C="xx_large",z="active",M=T,N=m.A.constructTagName("text"),I="body-small-medium",L="body-midsize-medium",D="heading-small-medium",V="span",B="text";class $ extends(O(f.u)){constructor(){super(...arguments),this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return(e!==p||!this.counter&&0!==this.counter)&&this.presence?l.qy`
417
- <mdc-presence class="presence" type="${this.presence}" size="${t=this.size,{[y[124]]:C,[y[88]]:R,[y[72]]:P,[y[64]]:j,[y[48]]:T,[y[32]]:E,[y[24]]:"xx_small"}[t]||E}"></mdc-presence>
418
- `:l.s6;var t}handleOnLoad(){this.isPhotoLoaded=!0}handleOnError(){this.isPhotoLoaded=!1,this.onerror&&this.onerror("There was a problem while fetching the <img/>. Please check the src attribute and try again.")}photoTemplate(){return l.qy`
419
- <img
420
- class="photo"
421
- src="${u(this.src)}"
422
- aria-hidden="true"
423
- ?hidden="${!this.isPhotoLoaded}"
424
- @load="${this.handleOnLoad}"
425
- @error="${this.handleOnError}"
426
- />
427
- `}iconTemplate(){const e=this.iconName||_.ICON_NAME;return l.qy`
428
- <mdc-icon
429
- name="${u(e)}"
430
- length-unit="rem"
431
- size="${t=this.size,{[y[124]]:4.75,[y[88]]:3,[y[72]]:2.5,[y[64]]:2.25,[y[48]]:1.75,[y[32]]:1.25,[y[24]]:1}[t]||1.25}"
432
- ></mdc-icon>
433
- `;var t}textTemplate(e){return l.qy`
434
- <mdc-text
435
- type="${t=this.size,{[y[124]]:"heading-xlarge-medium",[y[88]]:"heading-large-medium",[y[72]]:"heading-midsize-medium",[y[64]]:D,[y[48]]:D,[y[32]]:L,[y[24]]:I}[t]||L}"
436
- tagname="span"
437
- >
438
- ${e}
439
- </mdc-text>
440
- `;var t}generateCounterText(e){return e<0?"0":e>99?"99+":e.toString()}generateInitialsText(e){return e.toUpperCase().slice(0,2)}generateTextContent(e){let t="";return e===b&&this.initials&&(t=this.generateInitialsText(this.initials)),e!==p||!this.counter&&0!==this.counter||(t=this.generateCounterText(this.counter)),this.textTemplate(t)}getTypeBasedOnInputs(){return this.src?g:this.iconName?v:this.initials?b:this.counter||0===this.counter?p:v}getTemplateBasedOnType(e){switch(e){case g:return this.photoTemplate();case b:case p:return this.generateTextContent(e);default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?l.qy`<div class="loading__wrapper"><div class="loader"></div></div>`:l.s6}getPhotoPlaceHolderContent(e){return this.isPhotoLoaded?l.s6:e===g?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():l.s6}update(e){super.update(e),e.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){const e=this.getTypeBasedOnInputs();return l.qy`
441
- <div class="content" aria-hidden="true">
442
- ${this.getPhotoPlaceHolderContent(e)}
443
- ${this.getTemplateBasedOnType(e)}
444
- ${this.getLoadingContent()}
445
- ${this.getPresenceTemplateBasedOnType(e)}
446
- </div>
447
- `}}$.styles=[...f.u.styles,...S],function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}([(0,c.wk)(),function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",t)}(0,Object)],$.prototype,"isPhotoLoaded",void 0);const U=$;var H=n(289);const q=[k.B,l.AH`
448
- :host {
449
- --mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
450
-
451
- --mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
452
-
453
- --mdc-presence-away-calling-background-color: var(--mds-color-theme-indicator-locked);
454
-
455
- --mdc-presence-busy-background-color: var(--mds-color-theme-indicator-unstable);
456
-
457
- --mdc-presence-dnd-background-color: var(--mds-color-theme-indicator-attention);
458
-
459
- --mdc-presence-meeting-background-color: var(--mds-color-theme-indicator-unstable);
460
-
461
- --mdc-presence-on-call-background-color: var(--mds-color-theme-indicator-unstable);
462
-
463
- --mdc-presence-on-device-background-color: var(--mds-color-theme-indicator-locked);
464
-
465
- --mdc-presence-on-mobile-background-color: var(--mds-color-theme-indicator-locked);
466
-
467
- --mdc-presence-pause-background-color: var(--mds-color-theme-indicator-locked);
468
-
469
- --mdc-presence-pto-background-color: var(--mds-color-theme-indicator-locked);
470
-
471
- --mdc-presence-presenting-background-color: var(--mds-color-theme-indicator-attention);
472
-
473
- --mdc-presence-quiet-background-color: var(--mds-color-theme-indicator-locked);
474
-
475
- --mdc-presence-scheduled-background-color: var(--mds-color-theme-indicator-unstable);
476
-
477
- --mdc-presence-overlay-background-color: var(--mds-color-theme-background-solid-primary-normal);
478
- }
479
-
480
- .mdc-presence {
481
- border-radius: 50%;
482
- background-color: var(--mdc-presence-overlay-background-color);
483
- display: flex;
484
- justify-content: center;
485
- align-items: center;
486
- }
487
- .mdc-presence__xx_small,
488
- .mdc-presence__x_small,
489
- .mdc-presence__small {
490
- width: 1.0625rem;
491
- height: 1.0625rem;
492
- }
493
- .mdc-presence__midsize {
494
- width: 1.419375rem;
495
- height: 1.419375rem;
496
- }
497
- .mdc-presence__large {
498
- width: 1.596875rem;
499
- height: 1.596875rem;
500
- }
501
- .mdc-presence__x_large {
502
- width: 1.951875rem;
503
- height: 1.951875rem;
504
- }
505
- .mdc-presence__xx_large {
506
- width: 2.75rem;
507
- height: 2.75rem;
508
- }
509
-
510
- .mdc-presence-icon {
511
- border-radius: 50%;
512
- }
513
- .mdc-presence-icon__active {
514
- color: var(--mdc-presence-active-background-color);
515
- }
516
- .mdc-presence-icon__away {
517
- color: var(--mdc-presence-away-background-color);
518
- }
519
- .mdc-presence-icon__away-calling {
520
- color: var(--mdc-presence-away-calling-background-color);
521
- }
522
- .mdc-presence-icon__busy {
523
- color: var(--mdc-presence-busy-background-color);
524
- }
525
- .mdc-presence-icon__dnd {
526
- color: var(--mdc-presence-dnd-background-color);
527
- }
528
- .mdc-presence-icon__meeting {
529
- color: var(--mdc-presence-meeting-background-color);
530
- }
531
- .mdc-presence-icon__on-call {
532
- color: var(--mdc-presence-on-call-background-color);
533
- }
534
- .mdc-presence-icon__on-device {
535
- color: var(--mdc-presence-on-device-background-color);
536
- }
537
- .mdc-presence-icon__on-mobile {
538
- color: var(--mdc-presence-on-mobile-background-color);
539
- }
540
- .mdc-presence-icon__pause {
541
- color: var(--mdc-presence-pause-background-color);
542
- }
543
- .mdc-presence-icon__pto {
544
- color: var(--mdc-presence-pto-background-color);
545
- }
546
- .mdc-presence-icon__presenting {
547
- color: var(--mdc-presence-presenting-background-color);
548
- }
549
- .mdc-presence-icon__quiet {
550
- color: var(--mdc-presence-quiet-background-color);
551
- }
552
- .mdc-presence-icon__scheduled {
553
- color: var(--mdc-presence-scheduled-background-color);
554
- }
555
- `];var K=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},G=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};class W extends f.u{constructor(){super(...arguments),this.type=z,this.size=M,this.currentIconType=z}get iconSize(){switch(this.size){case j:return 1.16125;case P:return 1.30625;case R:return 1.596875;case C:return 2.25;default:return this.size=M,.875}}get icon(){const e=(()=>{switch(this.type){case"away":return"recents-presence-badge-filled";case"away-calling":return"away-calling-presence-filled";case"busy":return"busy-presence-bold";case"dnd":return"dnd-presence-badge-filled";case"meeting":return"camera-filled";case"on-call":return"handset-filled";case"on-device":return"generic-device-video-badge-filled";case"on-mobile":return"phone-badge-filled";case"pause":return"pause-badge-filled";case"pto":return"pto-presence-filled";case"presenting":return"share-screen-badge-filled";case"quiet":return"quiet-hours-presence-filled";case"scheduled":return"meetings-presence-badge-filled";default:return"active-presence-small-filled"}})();return"active-presence-small-filled"===e&&(this.type=z),e}handleOnLoad(){this.currentIconType=this.type}handleOnError(){this.onerror&&this.onerror("There was a problem while fetching the icon. Please check the icon name and try again.")}render(){return l.qy`
556
- <div class="mdc-presence mdc-presence__${this.size}">
557
- <mdc-icon
558
- class="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
559
- name="${this.icon}"
560
- size="${this.iconSize}"
561
- @load="${this.handleOnLoad}"
562
- @error="${this.handleOnError}"
563
- ></mdc-icon>
564
- </div>
565
- `}}W.styles=[...f.u.styles,...q],K([(0,c.MZ)({type:String,reflect:!0}),G("design:type",String)],W.prototype,"type",void 0),K([(0,c.MZ)({type:String,reflect:!0}),G("design:type",String)],W.prototype,"size",void 0),K([(0,c.wk)(),G("design:type",String)],W.prototype,"currentIconType",void 0);const F=W;F.register(A);const Z=F,Y=l.AH`
566
- :host::part(text) {
567
- font-size: unset;
568
- font-weight: unset;
569
- line-height: unset;
570
- text-decoration: unset;
571
- text-transform: unset;
572
- white-space: inherit;
573
- overflow: inherit;
574
- text-overflow: inherit;
575
- }
576
-
577
- :host([type="headline-small-regular"]) {
578
- font-size: var(--mds-font-apps-headline-small-regular-font-size);
579
- font-weight: var(--mds-font-apps-headline-small-regular-font-weight);
580
- line-height: var(--mds-font-apps-headline-small-regular-line-height);
581
- text-decoration: var(--mds-font-apps-headline-small-regular-text-decoration);
582
- text-transform: var(--mds-font-apps-headline-small-regular-text-case);
583
- }
584
-
585
- :host([type="headline-small-light"]) {
586
- font-size: var(--mds-font-apps-headline-small-light-font-size);
587
- font-weight: var(--mds-font-apps-headline-small-light-font-weight);
588
- line-height: var(--mds-font-apps-headline-small-light-line-height);
589
- text-decoration: var(--mds-font-apps-headline-small-light-text-decoration);
590
- text-transform: var(--mds-font-apps-headline-small-light-text-case);
591
- }
592
-
593
- :host([type="heading-xlarge-bold"]) {
594
- font-size: var(--mds-font-apps-heading-xlarge-bold-font-size);
595
- font-weight: var(--mds-font-apps-heading-xlarge-bold-font-weight);
596
- line-height: var(--mds-font-apps-heading-xlarge-bold-line-height);
597
- text-decoration: var(--mds-font-apps-heading-xlarge-bold-text-decoration);
598
- text-transform: var(--mds-font-apps-heading-xlarge-bold-text-case);
599
- }
600
-
601
- :host([type="heading-xlarge-medium"]) {
602
- font-size: var(--mds-font-apps-heading-xlarge-medium-font-size);
603
- font-weight: var(--mds-font-apps-heading-xlarge-medium-font-weight);
604
- line-height: var(--mds-font-apps-heading-xlarge-medium-line-height);
605
- text-decoration: var(--mds-font-apps-heading-xlarge-medium-text-decoration);
606
- text-transform: var(--mds-font-apps-heading-xlarge-medium-text-case);
607
- }
608
-
609
- :host([type="heading-xlarge-regular"]) {
610
- font-size: var(--mds-font-apps-heading-xlarge-regular-font-size);
611
- font-weight: var(--mds-font-apps-heading-xlarge-regular-font-weight);
612
- line-height: var(--mds-font-apps-heading-xlarge-regular-line-height);
613
- text-decoration: var(--mds-font-apps-heading-xlarge-regular-text-decoration);
614
- text-transform: var(--mds-font-apps-heading-xlarge-regular-text-case);
615
- }
616
-
617
- :host([type="heading-large-bold"]) {
618
- font-size: var(--mds-font-apps-heading-large-bold-font-size);
619
- font-weight: var(--mds-font-apps-heading-large-bold-font-weight);
620
- line-height: var(--mds-font-apps-heading-large-bold-line-height);
621
- text-decoration: var(--mds-font-apps-heading-large-bold-text-decoration);
622
- text-transform: var(--mds-font-apps-heading-large-bold-text-case);
623
- }
624
-
625
- :host([type="heading-large-medium"]) {
626
- font-size: var(--mds-font-apps-heading-large-medium-font-size);
627
- font-weight: var(--mds-font-apps-heading-large-medium-font-weight);
628
- line-height: var(--mds-font-apps-heading-large-medium-line-height);
629
- text-decoration: var(--mds-font-apps-heading-large-medium-text-decoration);
630
- text-transform: var(--mds-font-apps-heading-large-medium-text-case);
631
- }
632
-
633
- :host([type="heading-large-regular"]) {
634
- font-size: var(--mds-font-apps-heading-large-regular-font-size);
635
- font-weight: var(--mds-font-apps-heading-large-regular-font-weight);
636
- line-height: var(--mds-font-apps-heading-large-regular-line-height);
637
- text-decoration: var(--mds-font-apps-heading-large-regular-text-decoration);
638
- text-transform: var(--mds-font-apps-heading-large-regular-text-case);
639
- }
640
-
641
- :host([type="heading-midsize-bold"]) {
642
- font-size: var(--mds-font-apps-heading-midsize-bold-font-size);
643
- font-weight: var(--mds-font-apps-heading-midsize-bold-font-weight);
644
- line-height: var(--mds-font-apps-heading-midsize-bold-line-height);
645
- text-decoration: var(--mds-font-apps-heading-midsize-bold-text-decoration);
646
- text-transform: var(--mds-font-apps-heading-midsize-bold-text-case);
647
- }
648
-
649
- :host([type="heading-midsize-medium"]) {
650
- font-size: var(--mds-font-apps-heading-midsize-medium-font-size);
651
- font-weight: var(--mds-font-apps-heading-midsize-medium-font-weight);
652
- line-height: var(--mds-font-apps-heading-midsize-medium-line-height);
653
- text-decoration: var(--mds-font-apps-heading-midsize-medium-text-decoration);
654
- text-transform: var(--mds-font-apps-heading-midsize-medium-text-case);
655
- }
656
-
657
- :host([type="heading-midsize-regular"]) {
658
- font-size: var(--mds-font-apps-heading-midsize-regular-font-size);
659
- font-weight: var(--mds-font-apps-heading-midsize-regular-font-weight);
660
- line-height: var(--mds-font-apps-heading-midsize-regular-line-height);
661
- text-decoration: var(--mds-font-apps-heading-midsize-regular-text-decoration);
662
- text-transform: var(--mds-font-apps-heading-midsize-regular-text-case);
663
- }
664
-
665
- :host([type="heading-small-bold"]) {
666
- font-size: var(--mds-font-apps-heading-small-bold-font-size);
667
- font-weight: var(--mds-font-apps-heading-small-bold-font-weight);
668
- line-height: var(--mds-font-apps-heading-small-bold-line-height);
669
- text-decoration: var(--mds-font-apps-heading-small-bold-text-decoration);
670
- text-transform: var(--mds-font-apps-heading-small-bold-text-case);
671
- }
672
-
673
- :host([type="heading-small-medium"]) {
674
- font-size: var(--mds-font-apps-heading-small-medium-font-size);
675
- font-weight: var(--mds-font-apps-heading-small-medium-font-weight);
676
- line-height: var(--mds-font-apps-heading-small-medium-line-height);
677
- text-decoration: var(--mds-font-apps-heading-small-medium-text-decoration);
678
- text-transform: var(--mds-font-apps-heading-small-medium-text-case);
679
- }
680
-
681
- :host([type="heading-small-regular"]) {
682
- font-size: var(--mds-font-apps-heading-small-regular-font-size);
683
- font-weight: var(--mds-font-apps-heading-small-regular-font-weight);
684
- line-height: var(--mds-font-apps-heading-small-regular-line-height);
685
- text-decoration: var(--mds-font-apps-heading-small-regular-text-decoration);
686
- text-transform: var(--mds-font-apps-heading-small-regular-text-case);
687
- }
688
-
689
- :host([type="body-large-bold"]) {
690
- font-size: var(--mds-font-apps-body-large-bold-font-size);
691
- font-weight: var(--mds-font-apps-body-large-bold-font-weight);
692
- line-height: var(--mds-font-apps-body-large-bold-line-height);
693
- text-decoration: var(--mds-font-apps-body-large-bold-text-decoration);
694
- text-transform: var(--mds-font-apps-body-large-bold-text-case);
695
- }
696
-
697
- :host([type="body-large-medium-underline"]) {
698
- font-size: var(--mds-font-apps-body-large-medium-underline-font-size);
699
- font-weight: var(--mds-font-apps-body-large-medium-underline-font-weight);
700
- line-height: var(--mds-font-apps-body-large-medium-underline-line-height);
701
- text-decoration: var(--mds-font-apps-body-large-medium-underline-text-decoration);
702
- text-transform: var(--mds-font-apps-body-large-medium-underline-text-case);
703
- }
704
-
705
- :host([type="body-large-medium"]) {
706
- font-size: var(--mds-font-apps-body-large-medium-font-size);
707
- font-weight: var(--mds-font-apps-body-large-medium-font-weight);
708
- line-height: var(--mds-font-apps-body-large-medium-line-height);
709
- text-decoration: var(--mds-font-apps-body-large-medium-text-decoration);
710
- text-transform: var(--mds-font-apps-body-large-medium-text-case);
711
- }
712
-
713
- :host([type="body-large-regular-underline"]) {
714
- font-size: var(--mds-font-apps-body-large-regular-underline-font-size);
715
- font-weight: var(--mds-font-apps-body-large-regular-underline-font-weight);
716
- line-height: var(--mds-font-apps-body-large-regular-underline-line-height);
717
- text-decoration: var(--mds-font-apps-body-large-regular-underline-text-decoration);
718
- text-transform: var(--mds-font-apps-body-large-regular-underline-text-case);
719
- }
720
-
721
- :host([type="body-large-regular"]) {
722
- font-size: var(--mds-font-apps-body-large-regular-font-size);
723
- font-weight: var(--mds-font-apps-body-large-regular-font-weight);
724
- line-height: var(--mds-font-apps-body-large-regular-line-height);
725
- text-decoration: var(--mds-font-apps-body-large-regular-text-decoration);
726
- text-transform: var(--mds-font-apps-body-large-regular-text-case);
727
- }
728
-
729
- :host([type="body-midsize-bold"]) {
730
- font-size: var(--mds-font-apps-body-midsize-bold-font-size);
731
- font-weight: var(--mds-font-apps-body-midsize-bold-font-weight);
732
- line-height: var(--mds-font-apps-body-midsize-bold-line-height);
733
- text-decoration: var(--mds-font-apps-body-midsize-bold-text-decoration);
734
- text-transform: var(--mds-font-apps-body-midsize-bold-text-case);
735
- }
736
-
737
- :host([type="body-midsize-medium-underline"]) {
738
- font-size: var(--mds-font-apps-body-midsize-medium-underline-font-size);
739
- font-weight: var(--mds-font-apps-body-midsize-medium-underline-font-weight);
740
- line-height: var(--mds-font-apps-body-midsize-medium-underline-line-height);
741
- text-decoration: var(--mds-font-apps-body-midsize-medium-underline-text-decoration);
742
- text-transform: var(--mds-font-apps-body-midsize-medium-underline-text-case);
743
- }
744
-
745
- :host([type="body-midsize-medium"]) {
746
- font-size: var(--mds-font-apps-body-midsize-medium-font-size);
747
- font-weight: var(--mds-font-apps-body-midsize-medium-font-weight);
748
- line-height: var(--mds-font-apps-body-midsize-medium-line-height);
749
- text-decoration: var(--mds-font-apps-body-midsize-medium-text-decoration);
750
- text-transform: var(--mds-font-apps-body-midsize-medium-text-case);
751
- }
752
-
753
- :host([type="body-midsize-regular-underline"]) {
754
- font-size: var(--mds-font-apps-body-midsize-regular-underline-font-size);
755
- font-weight: var(--mds-font-apps-body-midsize-regular-underline-font-weight);
756
- line-height: var(--mds-font-apps-body-midsize-regular-underline-line-height);
757
- text-decoration: var(--mds-font-apps-body-midsize-regular-underline-text-decoration);
758
- text-transform: var(--mds-font-apps-body-midsize-regular-underline-text-case);
759
- }
760
-
761
- :host([type="body-midsize-regular"]) {
762
- font-size: var(--mds-font-apps-body-midsize-regular-font-size);
763
- font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
764
- line-height: var(--mds-font-apps-body-midsize-regular-line-height);
765
- text-decoration: var(--mds-font-apps-body-midsize-regular-text-decoration);
766
- text-transform: var(--mds-font-apps-body-midsize-regular-text-case);
767
- }
768
-
769
- :host([type="body-small-bold"]) {
770
- font-size: var(--mds-font-apps-body-small-bold-font-size);
771
- font-weight: var(--mds-font-apps-body-small-bold-font-weight);
772
- line-height: var(--mds-font-apps-body-small-bold-line-height);
773
- text-decoration: var(--mds-font-apps-body-small-bold-text-decoration);
774
- text-transform: var(--mds-font-apps-body-small-bold-text-case);
775
- }
776
-
777
- :host([type="body-small-medium-underline"]) {
778
- font-size: var(--mds-font-apps-body-small-medium-underline-font-size);
779
- font-weight: var(--mds-font-apps-body-small-medium-underline-font-weight);
780
- line-height: var(--mds-font-apps-body-small-medium-underline-line-height);
781
- text-decoration: var(--mds-font-apps-body-small-medium-underline-text-decoration);
782
- text-transform: var(--mds-font-apps-body-small-medium-underline-text-case);
783
- }
784
-
785
- :host([type="body-small-medium"]) {
786
- font-size: var(--mds-font-apps-body-small-medium-font-size);
787
- font-weight: var(--mds-font-apps-body-small-medium-font-weight);
788
- line-height: var(--mds-font-apps-body-small-medium-line-height);
789
- text-decoration: var(--mds-font-apps-body-small-medium-text-decoration);
790
- text-transform: var(--mds-font-apps-body-small-medium-text-case);
791
- }
792
-
793
- :host([type="body-small-regular-underline"]) {
794
- font-size: var(--mds-font-apps-body-small-regular-underline-font-size);
795
- font-weight: var(--mds-font-apps-body-small-regular-underline-font-weight);
796
- line-height: var(--mds-font-apps-body-small-regular-underline-line-height);
797
- text-decoration: var(--mds-font-apps-body-small-regular-underline-text-decoration);
798
- text-transform: var(--mds-font-apps-body-small-regular-underline-text-case);
799
- }
800
-
801
- :host([type="body-small-regular"]) {
802
- font-size: var(--mds-font-apps-body-small-regular-font-size);
803
- font-weight: var(--mds-font-apps-body-small-regular-font-weight);
804
- line-height: var(--mds-font-apps-body-small-regular-line-height);
805
- text-decoration: var(--mds-font-apps-body-small-regular-text-decoration);
806
- text-transform: var(--mds-font-apps-body-small-regular-text-case);
807
- }
808
- `,X=[l.AH`
809
- :host {
810
- --mdc-text-font-family: var(--mdc-themeprovider-font-family);
811
-
812
- display: block;
813
- font-family: var(--mdc-text-font-family);
814
- }
815
- `,Y];var J=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Q=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};class ee extends f.u{constructor(){super(...arguments),this.type="body-large-regular",this.tagname="p"}render(){switch(this.tagname){case"h1":return l.qy`<h1 part=${B}><slot></slot></h1>`;case"h2":return l.qy`<h2 part=${B}><slot></slot></h2>`;case"h3":return l.qy`<h3 part=${B}><slot></slot></h3>`;case"h4":return l.qy`<h4 part=${B}><slot></slot></h4>`;case"h5":return l.qy`<h5 part=${B}><slot></slot></h5>`;case"h6":return l.qy`<h6 part=${B}><slot></slot></h6>`;case"div":return l.qy`<div part=${B}><slot></slot></div>`;case V:return l.qy`<span part=${B}><slot></slot></span>`;case"small":return l.qy`<small part=${B}><slot></slot></small>`;default:return l.qy`<p part=${B}><slot></slot></p>`}}}ee.styles=[...f.u.styles,...X],J([(0,c.MZ)({attribute:"type",reflect:!0,type:String}),Q("design:type",String)],ee.prototype,"type",void 0),J([(0,c.MZ)({attribute:"tagname",reflect:!0,type:String}),Q("design:type",String)],ee.prototype,"tagname",void 0);const te=ee;te.register(N);const ne=te;U.register(h);const re=s({tagName:h,elementClass:U,react:r,events:{},displayName:"Avatar"});var oe=n(393),ie=n(199);const ae=[k.B,l.AH`
816
- :host {
817
- padding: unset;
818
- margin: unset;
819
- outline: none;
820
- border-radius: 0.25rem;
821
- }
822
- `,...(0,k.P)()];class se extends(O(ie.A)){constructor(){super(),this.ariaLabel=null,this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role="button",this.type=oe.zY.TYPE}update(e){super.update(e),e.has("size")&&this.setSize(this.size)}setSize(e){this.setAttribute("size",Object.values(y).includes(e)?`${e}`:_.SIZE.toString())}render(){return l.qy`
823
- <mdc-avatar
824
- slot="prefixIcon"
825
- ?is-typing="${this.isTyping}"
826
- counter="${u(this.counter)}"
827
- icon-name="${u(this.iconName)}"
828
- initials="${u(this.initials)}"
829
- presence="${u(this.presence)}"
830
- size="${u(this.size)}"
831
- src="${u(this.src)}"
832
- ></mdc-avatar>
833
- `}}se.styles=[...ae],function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}([(0,c.MZ)({type:String,attribute:"aria-label"}),function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",t)}(0,Object)],se.prototype,"ariaLabel",void 0);const le=se,ce=m.A.constructTagName("avatarbutton");le.register(ce);const de=s({tagName:ce,elementClass:le,react:r,events:{},displayName:"AvatarButton"});class ue{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}const fe=(e=>(...t)=>({_$litDirective$:e,values:t}))(class extends ue{constructor(e){if(super(e),1!==e.type||"class"!==e.name||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,[t]){if(void 0===this.st){this.st=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!this.nt?.has(e)&&this.st.add(e);return this.render(t)}const n=e.element.classList;for(const e of this.st)e in t||(n.remove(e),this.st.delete(e));for(const e in t){const r=!!t[e];r===this.st.has(e)||this.nt?.has(e)||(r?(n.add(e),this.st.add(e)):(n.remove(e),this.st.delete(e)))}return d.c0}}),me=m.A.constructTagName("badge"),he={PRIMARY:"primary",SECONDARY:"secondary"},pe={TYPE:"dot",MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:he.PRIMARY,ICON_SIZE:1},ve=[k.B,l.AH`
834
- :host {
835
- --mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
836
- --mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
837
-
838
- --mdc-badge-secondary-foreground-color: var(--mds-color-theme-text-secondary-normal);
839
- --mdc-badge-secondary-background-color: var(--mds-color-theme-background-alert-default-normal);
840
-
841
- --mdc-badge-success-foreground-color: var(--mds-color-theme-text-success-normal);
842
- --mdc-badge-success-background-color: var(--mds-color-theme-background-alert-success-normal);
843
-
844
- --mdc-badge-warning-foreground-color: var(--mds-color-theme-text-warning-normal);
845
- --mdc-badge-warning-background-color: var(--mds-color-theme-background-alert-warning-normal);
846
-
847
- --mdc-badge-error-foreground-color: var(--mds-color-theme-text-error-normal);
848
- --mdc-badge-error-background-color: var(--mds-color-theme-background-alert-error-normal);
849
-
850
- --mdc-badge-overlay-background-color: var(--mds-color-theme-background-solid-primary-normal);
851
-
852
- color: var(--mdc-badge-primary-foreground-color);
853
- }
854
- .mdc-badge-overlay {
855
- outline: 0.0625rem solid var(--mdc-badge-overlay-background-color);
856
- }
857
- .mdc-badge-text {
858
- padding: 0 0.25rem;
859
- border-radius: 6.25rem;
860
- min-width: 1rem;
861
- display: flex;
862
- justify-content: center;
863
- background-color: var(--mdc-badge-primary-background-color);
864
- }
865
- .mdc-badge-dot {
866
- width: 0.75rem;
867
- height: 0.75rem;
868
- border-radius: 50%;
869
- background-color: var(--mdc-badge-primary-background-color);
870
- }
871
- .mdc-badge-icon {
872
- padding: 2px;
873
- border-radius: 50%;
874
- }
875
- .mdc-badge-icon__primary {
876
- background-color: var(--mdc-badge-primary-background-color);
877
- color: var(--mdc-badge-primary-foreground-color);
878
- }
879
- .mdc-badge-icon__success {
880
- background-color: var(--mdc-badge-success-background-color);
881
- color: var(--mdc-badge-success-foreground-color);
882
- }
883
- .mdc-badge-icon__warning {
884
- background-color: var(--mdc-badge-warning-background-color);
885
- color: var(--mdc-badge-warning-foreground-color);
886
- }
887
- .mdc-badge-icon__error {
888
- background-color: var(--mdc-badge-error-background-color);
889
- color: var(--mdc-badge-error-foreground-color);
890
- }
891
- .mdc-badge-icon__secondary {
892
- background-color: var(--mdc-badge-secondary-background-color);
893
- color: var(--mdc-badge-secondary-foreground-color);
894
- }
895
-
896
- /* High Contrast Mode */
897
- @media (forced-colors: active) {
898
- .mdc-badge-dot, .mdc-badge-icon, .mdc-badge-text {
899
- outline: 0.125rem solid;
900
- }
901
- }
902
- `];var ge=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},be=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};class ye extends f.u{constructor(){super(...arguments),this.variant=pe.VARIANT,this.maxCounter=pe.MAX_COUNTER,this.overlay=!1,this.ariaLabel=null}getCounterText(e,t){return void 0===t||"number"!=typeof t||0===e?"":t>e?`${e}+`:e>pe.MAX_COUNTER_LIMIT||t>pe.MAX_COUNTER_LIMIT?`${pe.MAX_COUNTER_LIMIT}+`:t.toString()}getBadgeIcon(e,t){return l.qy`
903
- <mdc-icon
904
- class="mdc-badge-icon ${fe({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${t}`]:!0})}"
905
- name="${u(e)}"
906
- size="${pe.ICON_SIZE}"
907
- ></mdc-icon>
908
- `}getBadgeDot(){return l.qy`<div class="mdc-badge-dot ${fe({"mdc-badge-overlay":this.overlay})}"></div>`}getBadgeCounterText(){return l.qy`
909
- <mdc-text
910
- type="${I}"
911
- tagname="${"div"}"
912
- class="mdc-badge-text ${fe({"mdc-badge-overlay":this.overlay})}"
913
- >
914
- ${this.getCounterText(this.maxCounter,this.counter)}
915
- </mdc-text>
916
- `}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(he).includes(this.variant)&&(this.variant=pe.VARIANT);const{iconName:e,type:t,variant:n}=this;switch(t){case"icon":return this.getBadgeIcon(e||"",n);case"counter":return this.getBadgeCounterText();case"success":return this.getBadgeIcon("check-circle-badge-filled","success");case"warning":return this.getBadgeIcon("warning-badge-filled","warning");case"error":return this.getBadgeIcon("error-legacy-badge-filled","error");default:return this.type="dot",this.getBadgeDot()}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}}ye.styles=[...f.u.styles,...ve],ge([(0,c.MZ)({type:String,reflect:!0}),be("design:type",String)],ye.prototype,"type",void 0),ge([(0,c.MZ)({type:String,attribute:"icon-name"}),be("design:type",String)],ye.prototype,"iconName",void 0),ge([(0,c.MZ)({type:String,reflect:!0}),be("design:type",String)],ye.prototype,"variant",void 0),ge([(0,c.MZ)({type:Number}),be("design:type",Number)],ye.prototype,"counter",void 0),ge([(0,c.MZ)({type:Number,attribute:"max-counter",reflect:!0}),be("design:type",Number)],ye.prototype,"maxCounter",void 0),ge([(0,c.MZ)({type:Boolean}),be("design:type",Object)],ye.prototype,"overlay",void 0),ge([(0,c.MZ)({type:String,attribute:"aria-label"}),be("design:type",Object)],ye.prototype,"ariaLabel",void 0);const _e=ye;_e.register(me);const xe=s({tagName:me,elementClass:_e,react:r,events:{},displayName:"Badge"}),we=[l.AH`
917
- :host {
918
- --mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
919
- --mdc-bullet-size-small: 0.25rem;
920
- --mdc-bullet-size-medium: 0.5rem;
921
- --mdc-bullet-size-large: 1rem;
922
-
923
- border-radius: 50%;
924
- display: block;
925
- aspect-ratio: 1;
926
- background-color: var(--mdc-bullet-background-color);
927
- }
928
- :host([size="small"]) {
929
- height: var(--mdc-bullet-size-small);
930
- }
931
- :host([size="medium"]) {
932
- height: var(--mdc-bullet-size-medium);
933
- }
934
- :host([size="large"]) {
935
- height: var(--mdc-bullet-size-large);
936
- }
937
- `],Oe=m.A.constructTagName("bullet");class ke extends f.u{constructor(){super(...arguments),this.size="small"}}ke.styles=[...f.u.styles,...we],function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}([(0,c.MZ)({type:String,reflect:!0}),function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",t)}(0,String)],ke.prototype,"size",void 0);const Se=ke;Se.register(Oe);const Ae=s({tagName:Oe,elementClass:Se,react:r,events:{},displayName:"Bullet"});var Ee=n(92);const Te=s({tagName:oe.vS,elementClass:Ee.default,react:r,events:{},displayName:"Button"});var je=n(125);ie.A.register(je.vS);const Pe=ie.A,Re=s({tagName:je.vS,elementClass:Pe,react:r,events:{},displayName:"Buttonsimple"}),Ce=[k.B,l.AH`
938
- :host {
939
- --mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
940
- --mdc-divider-width: 0.0625rem;
941
- --mdc-divider-horizontal-gradient: var(--mds-color-theme-gradientdivider-default-normal);
942
- --mdc-divider-vertical-gradient: var(--mds-color-theme-gradientdivider-vertical-normal);
943
- --mdc-divider-text-size: var(--mds-font-size-body-midsize);
944
- --mdc-divider-text-color: var(--mds-color-theme-text-secondary-normal);
945
- --mdc-divider-text-line-height: var(--mds-font-lineheight-body-midsize);
946
- --mdc-divider-text-margin: 1.5rem;
947
- --mdc-divider-grabber-button-border-radius: 0.5rem;
948
-
949
- display: flex;
950
- justify-content: center;
951
- }
952
-
953
- /* Primary and grabber divider styles */
954
- :host([data-type='mdc-primary-divider']),
955
- :host([data-type='mdc-grabber-divider']) {
956
- background-color: var(--mdc-divider-background-color);
957
- }
958
-
959
- /* Orientation-specific styles */
960
- :host([orientation='horizontal']) {
961
- flex-direction: row;
962
- height: var(--mdc-divider-width);
963
- width: 100%;
964
- }
965
-
966
- :host([orientation='vertical']:not([data-type='mdc-text-divider'])) {
967
- flex-direction: column;
968
- height: 100%;
969
- width: var(--mdc-divider-width);
970
- }
971
-
972
- /* Gradient styles for primary and grabber dividers */
973
- :host([orientation='horizontal'][variant='gradient'][data-type='mdc-primary-divider']),
974
- :host([orientation='horizontal'][variant='gradient'][data-type='mdc-grabber-divider']) {
975
- background: var(--mdc-divider-horizontal-gradient);
976
- }
977
-
978
- :host([orientation='vertical'][variant='gradient'][data-type='mdc-primary-divider']),
979
- :host([orientation='vertical'][variant='gradient'][data-type='mdc-grabber-divider']) {
980
- background: var(--mdc-divider-vertical-gradient);
981
- }
982
-
983
- /* Hiding slotted content for primary dividers */
984
- :host([data-type='mdc-primary-divider']) ::slotted(*) {
985
- display: none;
986
- }
987
-
988
- /** Button divider styles */
989
- :host([orientation='vertical']) ::slotted(mdc-button) {
990
- width: 1.25rem;
991
- height: 2.5rem;
992
- border-radius: 0
993
- var(--mdc-divider-grabber-button-border-radius)
994
- var(--mdc-divider-grabber-button-border-radius)
995
- 0;
996
- }
997
-
998
- :host([orientation='horizontal']) ::slotted(mdc-button) {
999
- height: 1.25rem;
1000
- width: 2.5rem;
1001
- border-radius: 0
1002
- 0
1003
- var(--mdc-divider-grabber-button-border-radius)
1004
- var(--mdc-divider-grabber-button-border-radius);
1005
- }
1006
-
1007
- :host([orientation='horizontal'][button-position='positive']),
1008
- :host([orientation='vertical'][button-position='negative']) {
1009
- align-items: end;
1010
- }
1011
-
1012
- :host([orientation='horizontal'][button-position='negative']),
1013
- :host([orientation='vertical'][button-position='positive']) {
1014
- align-items: start;
1015
- }
1016
-
1017
- :host([orientation='horizontal'][button-position='positive']) ::slotted(mdc-button) {
1018
- border-radius: var(--mdc-divider-grabber-button-border-radius)
1019
- var(--mdc-divider-grabber-button-border-radius)
1020
- 0
1021
- 0;
1022
- border-bottom-color: transparent;
1023
- }
1024
-
1025
- :host([orientation='horizontal'][button-position='negative']) ::slotted(mdc-button) {
1026
- border-top-color: transparent;
1027
- }
1028
-
1029
- :host([orientation='vertical'][button-position='negative']:dir(ltr)) ::slotted(mdc-button),
1030
- :host([orientation='vertical'][button-position='negative']:dir(rtl)) ::slotted(mdc-button) {
1031
- border-radius: var(--mdc-divider-grabber-button-border-radius)
1032
- 0
1033
- 0
1034
- var(--mdc-divider-grabber-button-border-radius);
1035
- border-right-color: transparent;
1036
- }
1037
-
1038
- :host([orientation='vertical'][button-position='positive']:dir(ltr)) ::slotted(mdc-button),
1039
- :host([orientation='vertical'][button-position='positive']:dir(rtl)) ::slotted(mdc-button) {
1040
- border-left-color: transparent;
1041
- }
1042
-
1043
- :host([orientation='vertical'][button-position='positive']:dir(rtl)) ::slotted(mdc-button) {
1044
- border-radius: 0
1045
- var(--mdc-divider-grabber-button-border-radius)
1046
- var(--mdc-divider-grabber-button-border-radius)
1047
- 0;
1048
- transform: rotate(180deg);
1049
- }
1050
-
1051
- :host([orientation='vertical'][button-position='negative']:dir(rtl)) ::slotted(mdc-button) {
1052
- transform: rotate(180deg);
1053
- }
1054
-
1055
- /** Text divider styles */
1056
- :host([orientation='horizontal'][variant='gradient'][data-type='mdc-text-divider']),
1057
- :host([orientation='horizontal'][variant='solid'][data-type='mdc-text-divider']) {
1058
- align-items: center;
1059
- }
1060
-
1061
- :host([data-type='mdc-text-divider']) > div {
1062
- width: 100%;
1063
- height: 100%;
1064
- background-color: var(--mdc-divider-background-color);
1065
- }
1066
-
1067
- :host([orientation='horizontal'][variant='gradient'][data-type='mdc-text-divider']) > div:first-of-type {
1068
- background: linear-gradient(to right, transparent, 30%, var(--mdc-divider-background-color));
1069
- }
1070
-
1071
- :host([orientation='horizontal'][variant='gradient'][data-type='mdc-text-divider']) > div:last-of-type {
1072
- background: linear-gradient(to left, transparent, 30%, var(--mdc-divider-background-color));
1073
- }
1074
-
1075
- :host([data-type='mdc-text-divider']) ::slotted(mdc-text) {
1076
- margin: 0 var(--mdc-divider-text-margin);
1077
- color: var(--mdc-divider-text-color);
1078
- font-size: var(--mdc-divider-text-size);
1079
- line-height: var(--mdc-divider-text-line-height);
1080
- }
1081
- `],ze=m.A.constructTagName("divider"),Me={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Ne={SOLID:"solid",GRADIENT:"gradient"},Ie={POSITIVE:"positive",NEGATIVE:"negative"},Le={ORIENTATION:Me.HORIZONTAL,VARIANT:Ne.SOLID,ARROW_DIRECTION:Ie.NEGATIVE,BUTTON_DIRECTION:Ie.NEGATIVE};var De=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ve=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};class Be extends f.u{setVariant(e){this.setAttribute("variant",Object.values(Ne).includes(e)?e:Le.VARIANT)}setOrientation(e){this.setAttribute("orientation",Object.values(Me).includes(e)?e:Le.ORIENTATION)}ensureValidDirections(){const e=this.orientation===Me.HORIZONTAL?Ie.NEGATIVE:Ie.POSITIVE;Object.values(Ie).includes(this.buttonPosition)||(this.buttonPosition=e),Object.values(Ie).includes(this.arrowDirection)||(this.arrowDirection=e)}setGrabberButton(){this.ensureValidDirections();const e=this.querySelector("mdc-button");if(e){const t=this.getArrowIcon();e.setAttribute("variant","secondary"),e.setAttribute("prefix-icon",t)}}getArrowIcon(){const e=this.orientation===Me.HORIZONTAL,t=this.arrowDirection===Ie.POSITIVE;return e?t?"arrow-up-regular":"arrow-down-regular":t?"arrow-right-regular":"arrow-left-regular"}update(e){super.update(e),e.has("orientation")&&this.setOrientation(this.orientation),e.has("variant")&&this.setVariant(this.variant),(e.has("orientation")||e.has("arrowDirection")||e.has("buttonPosition"))&&this.setGrabberButton()}inferDividerType(){var e;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("slot"),n=(null==t?void 0:t.assignedElements({flatten:!0}))||[];if(n.length>1)return;const r=n.some((e=>e.tagName===N.toUpperCase())),o=n.some((e=>e.tagName===oe.vS.toUpperCase()));r&&!o?this.setAttribute("data-type","mdc-text-divider"):!r&&o&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}constructor(){super(),this.orientation=Le.ORIENTATION,this.variant=Le.VARIANT,this.arrowDirection=Le.ARROW_DIRECTION,this.buttonPosition=Le.BUTTON_DIRECTION,this.setAttribute("data-type","mdc-primary-divider")}render(){return l.qy`
1082
- <div></div>
1083
- <slot @slotchange=${this.inferDividerType}></slot>
1084
- <div></div>
1085
- `}}Be.styles=[...f.u.styles,...Ce],De([(0,c.MZ)({type:String,reflect:!0}),Ve("design:type",String)],Be.prototype,"orientation",void 0),De([(0,c.MZ)({type:String,reflect:!0}),Ve("design:type",String)],Be.prototype,"variant",void 0),De([(0,c.MZ)({type:String,attribute:"arrow-direction",reflect:!0}),Ve("design:type",String)],Be.prototype,"arrowDirection",void 0),De([(0,c.MZ)({type:String,attribute:"button-position",reflect:!0}),Ve("design:type",String)],Be.prototype,"buttonPosition",void 0);const $e=Be;$e.register(ze);const Ue=s({tagName:ze,elementClass:$e,react:r,events:{},displayName:"Divider"}),He={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let qe;const Ke=new Uint8Array(16),Ge=[];for(let e=0;e<256;++e)Ge.push((e+256).toString(16).slice(1));const We=[k.B,l.AH`
1086
- :host {
1087
- flex-direction: column;
1088
- align-items: flex-start;
1089
- gap: 0.5rem;
1090
- }
1091
- :host([disabled]),
1092
- :host([disabled]) .mdc-label,
1093
- :host([disabled]) .mdc-help-text,
1094
- :host([disabled][help-text-type='error']) .mdc-help-text,
1095
- :host([disabled][help-text-type='success']) .mdc-help-text,
1096
- :host([disabled][help-text-type='warning']) .mdc-help-text,
1097
- :host([disabled][help-text-type='priority']) .mdc-help-text {
1098
- color: var(--mds-color-theme-text-primary-disabled);
1099
- }
1100
-
1101
- .mdc-label-text,
1102
- .mdc-help-text {
1103
- font-size: var(--mds-font-size-body-midsize);
1104
- line-height: var(--mds-font-lineheight-body-midsize);
1105
- display: flex;
1106
- align-items: center;
1107
- gap: 0.5rem;
1108
- }
1109
-
1110
- .mdc-label {
1111
- color: var(--mds-color-theme-text-primary-normal);
1112
- }
1113
-
1114
- .mdc-help-text {
1115
- color: var(--mds-color-theme-text-secondary-normal);
1116
- }
1117
-
1118
- :host([help-text-type='error']) .mdc-help-text {
1119
- color: var(--mds-color-theme-text-error-normal);
1120
- }
1121
- :host([help-text-type='warning']) .mdc-help-text {
1122
- color: var(--mds-color-theme-text-warning-normal);
1123
- }
1124
- :host([help-text-type='success']) .mdc-help-text {
1125
- color: var(--mds-color-theme-text-success-normal);
1126
- }
1127
- :host([help-text-type='priority']) .mdc-help-text {
1128
- color: var(--mds-color-theme-text-accent-normal);
1129
- }
1130
- `],Fe=m.A.constructTagName("formfieldwrapper"),Ze="error",Ye="warning",Xe="success",Je="priority",Qe="default",et=Qe,tt=V;var nt=n(18),rt=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ot=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};class it extends((0,nt.i)(f.u)){constructor(){super(...arguments),this.id=`mdc-input-${function(e){if(He.randomUUID&&!e)return He.randomUUID();const t=(e=e||{}).random??e.rng?.()??function(){if(!qe){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");qe=crypto.getRandomValues.bind(crypto)}return qe(Ke)}();if(t.length<16)throw new Error("Random bytes length must be >= 16");return t[6]=15&t[6]|64,t[8]=63&t[8]|128,function(e,t=0){return(Ge[e[t+0]]+Ge[e[t+1]]+Ge[e[t+2]]+Ge[e[t+3]]+"-"+Ge[e[t+4]]+Ge[e[t+5]]+"-"+Ge[e[t+6]]+Ge[e[t+7]]+"-"+Ge[e[t+8]]+Ge[e[t+9]]+"-"+Ge[e[t+10]]+Ge[e[t+11]]+Ge[e[t+12]]+Ge[e[t+13]]+Ge[e[t+14]]+Ge[e[t+15]]).toLowerCase()}(t)}()}`,this.helpTextType=et}renderLabelElement(){return this.label?l.qy`<label for="${this.id}" class="mdc-label" part="label">${this.label}</label>`:l.s6}renderHelpTextIcon(){if(!this.helpText)return l.s6;const e=(t=this.helpTextType||et,{[Ze]:"error-legacy-filled",[Ye]:"warning-filled",[Xe]:"check-circle-filled",[Je]:"priority-circle-filled",[Qe]:""}[t]||"");var t;return e&&!this.disabled?l.qy`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${e}></mdc-icon>`:l.s6}renderHelpText(){return this.helpText?l.qy`
1131
- <mdc-text
1132
- part="help-text"
1133
- tagname=${tt}
1134
- type=${"body-midsize-regular"}
1135
- >
1136
- ${this.helpText}
1137
- </mdc-text>
1138
- `:l.s6}renderLabel(){return l.qy`<div class="mdc-label-text" part="label-text">
1139
- <slot name="label">${this.renderLabelElement()}</slot>
1140
- <slot name="label-info"></slot>
1141
- </div>`}renderHelperText(){return l.qy`<div class="mdc-help-text" part="mdc-help-text">
1142
- <slot name="help-icon">${this.renderHelpTextIcon()}</slot>
1143
- <slot name="help-text">${this.renderHelpText()}</slot>
1144
- </div>`}}it.styles=[...f.u.styles,...We],rt([(0,c.MZ)({reflect:!0,type:String}),ot("design:type",String)],it.prototype,"label",void 0),rt([(0,c.MZ)({type:String}),ot("design:type",Object)],it.prototype,"id",void 0),rt([(0,c.MZ)({reflect:!0,attribute:"help-text-type"}),ot("design:type",String)],it.prototype,"helpTextType",void 0),rt([(0,c.MZ)({type:String,reflect:!0,attribute:"help-text"}),ot("design:type",String)],it.prototype,"helpText",void 0);const at=it;at.register(Fe);const st=s({tagName:Fe,elementClass:at,react:r,events:{},displayName:"FormfieldWrapper"}),lt=s({tagName:n(787).v,elementClass:H.A,react:r,events:{},displayName:"Icon"});var ct=n(584);const dt=s({tagName:n(497).vS,elementClass:ct.default,react:r,events:{},displayName:"IconProvider"}),ut=m.A.constructTagName("link"),ft=[k.B,l.AH`
1145
-
1146
- :host {
1147
-
1148
- --mdc-link-border-radius: 0.25rem;
1149
- --mdc-link-color-active: var(--mds-color-theme-text-accent-active);
1150
- --mdc-link-color-disabled: var(--mds-color-theme-text-primary-disabled);
1151
- --mdc-link-color-hover: var(--mds-color-theme-text-accent-hover);
1152
- --mdc-link-color-normal: var(--mds-color-theme-text-accent-normal);
1153
- --mdc-link-icon-margin-left: 0.25rem;
1154
- --mdc-link-inverted-color-active: var(--mds-color-theme-inverted-text-accent-active);
1155
- --mdc-link-inverted-color-disabled: var(--mds-color-theme-inverted-text-primary-disabled);
1156
- --mdc-link-inverted-color-hover: var(--mds-color-theme-inverted-text-accent-hover);
1157
- --mdc-link-inverted-color-normal: var(--mds-color-theme-inverted-text-accent-normal);
1158
- --mdc-link-text-decoration-disabled: underline;
1159
-
1160
- border-radius: var(--mdc-link-border-radius);
1161
- color: var(--mdc-link-color-normal);
1162
- }
1163
-
1164
- ::slotted(a) {
1165
- outline: none;
1166
- align-items: center;
1167
- color: inherit;
1168
- display: flex;
1169
- gap: var(--mdc-link-icon-margin-left);
1170
- text-decoration: inherit;
1171
- text-underline-offset: auto;
1172
- text-underline-position: from-font;
1173
- }
1174
-
1175
- :host(:hover) {
1176
- color: var(--mdc-link-color-hover);
1177
- }
1178
-
1179
- :host(:active) {
1180
- color: var(--mdc-link-color-active);
1181
- }
1182
-
1183
- :host([inline]) {
1184
- display: inline-flex;
1185
- }
1186
-
1187
- :host([inverted]) {
1188
- color: var(--mdc-link-inverted-color-normal);
1189
- }
1190
-
1191
- :host([inverted]:hover) {
1192
- color: var(--mdc-link-inverted-color-hover);
1193
- }
1194
-
1195
- :host([inverted]:active) {
1196
- color: var(--mdc-link-inverted-color-active);
1197
- }
1198
-
1199
- :host([size="large"]) {
1200
- font-size: var(--mds-font-apps-body-large-regular-font-size);
1201
- font-weight: var(--mds-font-apps-body-large-regular-font-weight);
1202
- line-height: var(--mds-font-apps-body-large-regular-line-height);
1203
- text-decoration: var(--mds-font-apps-body-large-regular-text-decoration);
1204
- text-transform: var(--mds-font-apps-body-large-regular-text-case);
1205
- }
1206
-
1207
- :host([size="midsize"]) {
1208
- font-size: var(--mds-font-apps-body-midsize-regular-font-size);
1209
- font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
1210
- line-height: var(--mds-font-apps-body-midsize-regular-line-height);
1211
- text-decoration: var(--mds-font-apps-body-midsize-regular-text-decoration);
1212
- text-transform: var(--mds-font-apps-body-midsize-regular-text-case);
1213
- }
1214
-
1215
- :host([size="small"]) {
1216
- font-size: var(--mds-font-apps-body-small-regular-font-size);
1217
- font-weight: var(--mds-font-apps-body-small-regular-font-weight);
1218
- line-height: var(--mds-font-apps-body-small-regular-line-height);
1219
- text-decoration: var(--mds-font-apps-body-small-regular-text-decoration);
1220
- text-transform: var(--mds-font-apps-body-small-regular-text-case);
1221
- }
1222
-
1223
- :host([size="large"]:hover), :host([size="large"]:active), :host([size="large"][inline]) {
1224
- font-size: var(--mds-font-apps-body-large-regular-underline-font-size);
1225
- font-weight: var(--mds-font-apps-body-large-regular-underline-font-weight);
1226
- line-height: var(--mds-font-apps-body-large-regular-underline-line-height);
1227
- text-decoration: var(--mds-font-apps-body-large-regular-underline-text-decoration);
1228
- text-transform: var(--mds-font-apps-body-large-regular-underline-text-case);
1229
- }
1230
-
1231
- :host([size="midsize"]:hover), :host([size="midsize"]:active), :host([size="midsize"][inline]) {
1232
- font-size: var(--mds-font-apps-body-midsize-regular-underline-font-size);
1233
- font-weight: var(--mds-font-apps-body-midsize-regular-underline-font-weight);
1234
- line-height: var(--mds-font-apps-body-midsize-regular-underline-line-height);
1235
- text-decoration: var(--mds-font-apps-body-midsize-regular-underline-text-decoration);
1236
- text-transform: var(--mds-font-apps-body-midsize-regular-underline-text-case);
1237
- }
1238
-
1239
- :host([size="small"]:hover), :host([size="small"]:active), :host([size="small"][inline]) {
1240
- font-size: var(--mds-font-apps-body-small-regular-underline-font-size);
1241
- font-weight: var(--mds-font-apps-body-small-regular-underline-font-weight);
1242
- line-height: var(--mds-font-apps-body-small-regular-underline-line-height);
1243
- text-decoration: var(--mds-font-apps-body-small-regular-underline-text-decoration);
1244
- text-transform: var(--mds-font-apps-body-small-regular-underline-text-case);
1245
- }
1246
-
1247
- :host([disabled]) {
1248
- color: var(--mdc-link-color-disabled);
1249
- pointer-events: none;
1250
- }
1251
-
1252
- :host([inverted][disabled]) {
1253
- color: var(--mdc-link-inverted-color-disabled);
1254
- }
1255
- `,...(0,k.P)(),l.AH`
1256
- :host(:active) {
1257
- box-shadow: none;
1258
- }
1259
- `];var mt=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ht=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};class pt extends((0,nt.i)(f.u)){constructor(){super(...arguments),this.inline=!1,this.inverted=!1,this.size="large",this.prevTabindex=null}getIconSize(){switch(this.size){case"small":return.75;case"midsize":return.875;default:return 1}}setDisabled(e){e?(this.prevTabindex=this.hasAttribute("tabindex")?this.tabIndex:null,this.tabIndex=-1,this.setAttribute("aria-disabled","true")):null===this.prevTabindex?(this.removeAttribute("tabindex"),this.removeAttribute("aria-disabled")):(this.tabIndex=this.prevTabindex,this.removeAttribute("aria-disabled"))}updateTrailingIcon(){var e,t;const n=null===(t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("slot"))||void 0===t?void 0:t.assignedElements({flatten:!0}).find((e=>"A"===e.tagName)),r=this.getIconSize();if(this.iconName&&n){const e=document.createElement("mdc-icon");e.setAttribute("name",this.iconName),e.setAttribute("size",`${r}`),e.setAttribute("length-unit","rem"),n.appendChild(e)}}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this.disabled)}render(){return l.qy`<slot @slotchange=${this.updateTrailingIcon}></slot>`}}pt.styles=[...f.u.styles,...ft],mt([(0,c.MZ)({type:String,attribute:"icon-name"}),ht("design:type",String)],pt.prototype,"iconName",void 0),mt([(0,c.MZ)({type:Boolean,reflect:!0}),ht("design:type",Boolean)],pt.prototype,"inline",void 0),mt([(0,c.MZ)({type:Boolean,reflect:!0}),ht("design:type",Boolean)],pt.prototype,"inverted",void 0),mt([(0,c.MZ)({type:String,reflect:!0}),ht("design:type",String)],pt.prototype,"size",void 0);const vt=pt;vt.register(ut);const gt=s({tagName:ut,elementClass:vt,react:r,events:{},displayName:"Link"}),bt=[l.AH`
1260
- :host {
1261
- --mdc-marker-width: 0.25rem;
1262
- --mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
1263
- --mdc-marker-striped-color: var(--mds-color-theme-outline-secondary-normal);
1264
- --mdc-marker-striped-background-color: transparent;
1265
-
1266
- width: var(--mdc-marker-width);
1267
- height: 100%;
1268
- display: block;
1269
- }
1270
-
1271
- :host([variant='solid']) {
1272
- background: var(--mdc-marker-solid-background-color);
1273
- }
1274
-
1275
- :host([variant='striped']) {
1276
- background: repeating-linear-gradient(
1277
- 135deg,
1278
- var(--mdc-marker-striped-color),
1279
- var(--mdc-marker-striped-color) 0.1875rem,
1280
- var(--mdc-marker-striped-background-color) 0.1875rem,
1281
- var(--mdc-marker-striped-background-color) 0.375rem
1282
- );
1283
- }
1284
- `],yt=m.A.constructTagName("marker");class _t extends f.u{constructor(){super(...arguments),this.variant="solid"}}_t.styles=[...f.u.styles,...bt],function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}([(0,c.MZ)({type:String,reflect:!0}),function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",t)}(0,String)],_t.prototype,"variant",void 0);const xt=_t;xt.register(yt);const wt=s({tagName:yt,elementClass:xt,react:r,events:{},displayName:"Marker"}),Ot=[k.B,l.AH`
1285
- :host {
1286
- --mdc-modalcontainer-primary-background-color: var(--mds-color-theme-background-solid-primary-normal);
1287
- --mdc-modalcontainer-border-color: var(--mds-color-theme-outline-secondary-normal);
1288
- --mdc-modalcontainer-inverted-background-color: var(--mds-color-theme-inverted-background-normal);
1289
- --mdc-modalcontainer-inverted-border-color: var(--mds-color-theme-inverted-outline-primary-normal);
1290
- --mdc-modalcontainer-inverted-text-color: var(--mds-color-theme-inverted-text-primary-normal);
1291
- --mdc-modalcontainer-elevation-1: var(--mds-elevation-1);
1292
- --mdc-modalcontainer-elevation-2: var(--mds-elevation-2);
1293
- --mdc-modalcontainer-elevation-3: var(--mds-elevation-3);
1294
- --mdc-modalcontainer-elevation-4: var(--mds-elevation-4);
1295
- }
1296
-
1297
- .mdc-modal-container {
1298
- padding: 0.75rem;
1299
- background-color: var(--mdc-modalcontainer-primary-background-color);
1300
- border-radius: 0.5rem;
1301
- border: 0.0625rem solid var(--mdc-modalcontainer-border-color);
1302
- }
1303
-
1304
- .mdc-modal-container[contrast] {
1305
- background-color: var(--mdc-modalcontainer-inverted-background-color);
1306
- border: 0.0625rem solid var(--mdc-modalcontainer-inverted-border-color);
1307
- color: var(--mdc-modalcontainer-inverted-text-color);
1308
- }
1309
-
1310
- .mdc-modal-container[data-elevation='1'] {
1311
- filter: var(--mdc-modalcontainer-elevation-1);
1312
- }
1313
- .mdc-modal-container[data-elevation='2'] {
1314
- filter: var(--mdc-modalcontainer-elevation-2);
1315
- }
1316
- .mdc-modal-container[data-elevation='3'] {
1317
- filter: var(--mdc-modalcontainer-elevation-3);
1318
- }
1319
- .mdc-modal-container[data-elevation='4'] {
1320
- filter: var(--mdc-modalcontainer-elevation-4);
1321
- }
1322
- `],kt=m.A.constructTagName("modalcontainer");var St=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},At=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};class Et extends f.u{constructor(){super(...arguments),this.color="tonal",this.elevation=0,this.role="dialog"}render(){return l.qy`
1323
- <div
1324
- id='mdc-modal-container'
1325
- class='mdc-modal-container'
1326
- ?contrast="${"contrast"===this.color}"
1327
- role="${this.role}"
1328
- aria-modal='true'
1329
- aria-label=${u(this.ariaLabel)}
1330
- data-elevation="${this.elevation}"
1331
- >
1332
- <slot></slot>
1333
- </div>
1334
- `}}Et.styles=[...f.u.styles,...Ot],St([(0,c.MZ)({type:String,reflect:!0}),At("design:type",String)],Et.prototype,"color",void 0),St([(0,c.MZ)({type:Number,reflect:!0}),At("design:type",Number)],Et.prototype,"elevation",void 0),St([(0,c.MZ)({type:String}),At("design:type",String)],Et.prototype,"role",void 0);const Tt=Et;Tt.register(kt);const jt=s({tagName:kt,elementClass:Tt,react:r,events:{},displayName:"Modalcontainer"}),Pt=s({tagName:A,elementClass:Z,react:r,events:{},displayName:"Presence"}),Rt=s({tagName:N,elementClass:ne,react:r,events:{},displayName:"Text"});var Ct=n(722);const zt=s({tagName:n(583).v,elementClass:Ct.default,react:r,events:{},displayName:"ThemeProvider"})},18:(e,t,n)=>{n.d(t,{i:()=>i});var r=n(477),o=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};const i=e=>{class t extends e{constructor(){super(...arguments),this.disabled=!1}}return function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}([(0,r.MZ)({reflect:!0,type:Boolean}),o("design:type",Object)],t.prototype,"disabled",void 0),t}},903:(e,t,n)=>{n.d(t,{B:()=>o,P:()=>i});var r=n(918);const o=r.AH`
1335
- :host {
1336
- align-items: center;
1337
- display: flex;
1338
- height: fit-content;
1339
- justify-content: center;
1340
- width: fit-content;
1341
- }
1342
- `,i=(e=!1)=>{const t=r.AH`
1343
- :host {
1344
- --mdc-focus-ring-inner-color: var(--mds-color-theme-focus-default-0);
1345
- --mdc-focus-ring-middle-color: var(--mds-color-theme-focus-default-1);
1346
- --mdc-focus-ring-outer-color: var(--mds-color-theme-focus-default-2);
1347
-
1348
- --mdc-focus-ring-inner-width: 0.125rem;
1349
- --mdc-focus-ring-middle-width: calc(2 * var(--mdc-focus-ring-inner-width));
1350
- --mdc-focus-ring-outer-width: calc(0.0625rem + var(--mdc-focus-ring-middle-width));
1351
-
1352
- --mdc-focus-ring-middle-offset: var(--mdc-focus-ring-inner-width);
1353
- --mdc-focus-ring-outer-offset: calc(var(--mdc-focus-ring-inner-width) + var(--mdc-focus-ring-middle-width));
1354
- }
1355
- `,n=r.AH`0 0 0 var(--mdc-focus-ring-inner-width) var(--mdc-focus-ring-inner-color),
1356
- 0 0 0 var(--mdc-focus-ring-middle-width) var(--mdc-focus-ring-middle-color),
1357
- 0 0 0 var(--mdc-focus-ring-outer-width) var(--mdc-focus-ring-outer-color)
1358
- `;return e?[t,r.AH`
1359
- .mdc-focus-ring:focus-visible {
1360
- outline: none;
1361
- }
1362
- :host([disabled]) .mdc-focus-ring:focus {
1363
- box-shadow: none;
1364
- }
1365
- .mdc-focus-ring:focus-within {
1366
- position: relative;
1367
- box-shadow: ${n};
1368
- }
1369
- /* High Contrast Mode */
1370
- @media (forced-colors: active) {
1371
- .mdc-focus-ring:focus-within {
1372
- outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
1373
- }
1374
- }
1375
- `]:[t,r.AH`
1376
- :host(:focus-visible) {
1377
- outline: none;
1378
- }
1379
- :host([disabled]:focus) {
1380
- box-shadow: none;
1381
- }
1382
- :host(:focus), :host(:focus-within) {
1383
- position: relative;
1384
- box-shadow: ${n};
1385
- }
1386
- /* High Contrast Mode */
1387
- @media (forced-colors: active) {
1388
- :host(:focus), :host(:focus-within) {
1389
- outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
1390
- }
1391
- }
1392
- `]}},974:(e,t,n)=>{n.d(t,{A:()=>o});const r={NAMESPACE:{PREFIX:"mdc",SEPARATOR:"-"}},o={constructTagName:e=>[r.NAMESPACE.PREFIX,e].join(r.NAMESPACE.SEPARATOR)}},489:(e,t,n)=>{n.d(t,{A:()=>f});var r=n(63),o=n.n(r),i=n(248),a=n.n(i),s=n(243),l=n.n(s),c=new URL(n(28),n.b),d=a()(o()),u=l()(c);d.push([e.id,`@font-face {\n font-family: "Momentum";\n src: url(${u}) format("woff2");\n font-style: normal;\n font-display: swap;\n /* Required for Safari support */\n font-weight: 1 1000; \n}`,""]);const f=d},245:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(63),o=n.n(r),i=n(248),a=n.n(i)()(o());a.push([e.id,".mds-theme-stable-darkWebex {\n --mds-color-theme-text-primary-normal: #fffffff2;\n --mds-color-theme-text-primary-disabled: #ffffff66;\n --mds-color-theme-text-secondary-normal: #ffffffb3;\n --mds-color-theme-text-error-normal: #fc8b98;\n --mds-color-theme-text-error-hover: #ffd4da;\n --mds-color-theme-text-error-active: #ffd4da;\n --mds-color-theme-text-success-normal: #3cc29a;\n --mds-color-theme-text-success-hover: #9fedd8;\n --mds-color-theme-text-success-active: #9fedd8;\n --mds-color-theme-text-warning-normal: #f2990a;\n --mds-color-theme-text-warning-hover: #ffda94;\n --mds-color-theme-text-warning-active: #ffda94;\n --mds-color-theme-text-highlight: #063a75;\n --mds-color-theme-text-accent-normal: #64b4fa;\n --mds-color-theme-text-accent-hover: #bfe3ff;\n --mds-color-theme-text-accent-active: #bfe3ff;\n --mds-color-theme-text-teamdefault-normal: #ffffffb3;\n --mds-color-theme-text-teamdefault-hover: #ffffffb3;\n --mds-color-theme-text-teamdefault-active: #fffffff2;\n --mds-color-theme-text-alert-purple-normal: #f294f1;\n --mds-color-theme-text-alert-purple-hover: #fce1fc;\n --mds-color-theme-text-alert-purple-active: #fce1fc;\n --mds-color-theme-text-alert-orange-normal: #fd884e;\n --mds-color-theme-text-alert-orange-hover: #fed5ac;\n --mds-color-theme-text-alert-orange-active: #fed5ac;\n --mds-color-theme-text-team-cobalt-normal: #5ebff7;\n --mds-color-theme-text-team-cobalt-hover: #5ebff7;\n --mds-color-theme-text-team-cobalt-active: #c7eeff;\n --mds-color-theme-text-team-cyan-normal: #22c7d6;\n --mds-color-theme-text-team-cyan-hover: #22c7d6;\n --mds-color-theme-text-team-cyan-active: #b2f4f7;\n --mds-color-theme-text-team-mint-normal: #30c9b0;\n --mds-color-theme-text-team-mint-hover: #baf5e7;\n --mds-color-theme-text-team-mint-active: #baf5e7;\n --mds-color-theme-text-team-lime-normal: #93c437;\n --mds-color-theme-text-team-lime-hover: #93c437;\n --mds-color-theme-text-team-lime-active: #ddf2ae;\n --mds-color-theme-text-team-gold-normal: #d6b220;\n --mds-color-theme-text-team-gold-hover: #d6b220;\n --mds-color-theme-text-team-gold-active: #f5eaa2;\n --mds-color-theme-text-team-orange-normal: #fd884e;\n --mds-color-theme-text-team-orange-hover: #fd884e;\n --mds-color-theme-text-team-orange-active: #fed5ac;\n --mds-color-theme-text-team-pink-normal: #fc97aa;\n --mds-color-theme-text-team-pink-hover: #fc97aa;\n --mds-color-theme-text-team-pink-active: #ffe0e7;\n --mds-color-theme-text-team-purple-normal: #f294f1;\n --mds-color-theme-text-team-purple-hover: #f294f1;\n --mds-color-theme-text-team-purple-active: #fce1fc;\n --mds-color-theme-text-team-violet-normal: #c7a5fa;\n --mds-color-theme-text-team-violet-hover: #c7a5fa;\n --mds-color-theme-text-team-violet-active: #f0e3fc;\n --mds-color-theme-text-team-slate-normal: #b0b4d9;\n --mds-color-theme-text-team-slate-hover: #b0b4d9;\n --mds-color-theme-text-team-slate-active: #e3e7fa;\n --mds-color-theme-inverted-text-primary-normal: #000000f2;\n --mds-color-theme-inverted-text-primary-disabled: #00000066;\n --mds-color-theme-inverted-text-secondary-normal: #000000b3;\n --mds-color-theme-inverted-text-accent-normal: #0353a8;\n --mds-color-theme-inverted-text-accent-hover: #0a274a;\n --mds-color-theme-inverted-text-accent-active: #0a274a;\n --mds-color-theme-inverted-background-normal: #ffffff;\n --mds-color-theme-inverted-button-primary-normal: #000000f2;\n --mds-color-theme-inverted-button-primary-hover: #000000cc;\n --mds-color-theme-inverted-button-primary-pressed: #000000b3;\n --mds-color-theme-inverted-button-primary-disabled: #00000033;\n --mds-color-theme-inverted-button-secondary-normal: #00000000;\n --mds-color-theme-inverted-button-secondary-hover: #00000012;\n --mds-color-theme-inverted-button-secondary-pressed: #00000033;\n --mds-color-theme-inverted-button-secondary-disabled: #00000000;\n --mds-color-theme-inverted-outline-button-normal: #00000080;\n --mds-color-theme-inverted-outline-primary-normal: #00000075;\n --mds-color-theme-inverted-outline-disabled-normal: #00000033;\n --mds-color-theme-inverted-outline-theme-normal: #1170cf;\n --mds-color-theme-inverted-control-active-normal: #1170cf;\n --mds-color-theme-inverted-control-active-hover: #0353a8;\n --mds-color-theme-inverted-control-active-pressed: #063a75;\n --mds-color-theme-inverted-control-active-active: #063a75;\n --mds-color-theme-inverted-control-active-disabled: #00000033;\n --mds-color-theme-inverted-control-inactive-normal: #8f8f8f;\n --mds-color-theme-inverted-control-inactive-hover: #0000004d;\n --mds-color-theme-inverted-control-inactive-pressed: #00000066;\n --mds-color-theme-inverted-control-inactive-disabled: #00000033;\n --mds-color-theme-background-primary-ghost: #ffffff00;\n --mds-color-theme-background-primary-hover: #ffffff12;\n --mds-color-theme-background-primary-active: #ffffff1c;\n --mds-color-theme-background-primary-disabled: #ffffff00;\n --mds-color-theme-background-solid-primary-normal: #000000;\n --mds-color-theme-background-solid-secondary-normal: #1a1a1a;\n --mds-color-theme-background-solid-tertiary-normal: #262626;\n --mds-color-theme-background-solid-quaternary-normal: #3b3b3b;\n --mds-color-theme-background-secondary-normal: #ffffff1c;\n --mds-color-theme-background-secondary-hover: #ffffff33;\n --mds-color-theme-background-secondary-active: #ffffff33;\n --mds-color-theme-background-secondary-disabled: #ffffff00;\n --mds-color-theme-background-accent-normal: #1170cf;\n --mds-color-theme-background-accent-active: #64b4fa;\n --mds-color-theme-background-alert-default-normal: #3b3b3b;\n --mds-color-theme-background-alert-default-hover: #3b3b3b;\n --mds-color-theme-background-alert-default-active: #545454;\n --mds-color-theme-background-alert-success-normal: #0e2b20;\n --mds-color-theme-background-alert-success-hover: #0e2b20;\n --mds-color-theme-background-alert-success-active: #134231;\n --mds-color-theme-background-alert-warning-normal: #36220c;\n --mds-color-theme-background-alert-warning-hover: #36220c;\n --mds-color-theme-background-alert-warning-active: #57330a;\n --mds-color-theme-background-alert-error-normal: #4f0e10;\n --mds-color-theme-background-alert-error-hover: #4f0e10;\n --mds-color-theme-background-alert-error-active: #780d13;\n --mds-color-theme-background-alert-theme-normal: #0a274a;\n --mds-color-theme-background-alert-theme-hover: #0a274a;\n --mds-color-theme-background-alert-theme-active: #063a75;\n --mds-color-theme-background-alert-purple-normal: #3b1840;\n --mds-color-theme-background-alert-purple-hover: #3b1840;\n --mds-color-theme-background-alert-purple-active: #601e66;\n --mds-color-theme-background-alert-orange-normal: #411b04;\n --mds-color-theme-background-alert-orange-hover: #411b04;\n --mds-color-theme-background-alert-orange-active: #682601;\n --mds-color-theme-background-label-cobalt-normal: #12283d;\n --mds-color-theme-background-label-cobalt-hover: #103c63;\n --mds-color-theme-background-label-cobalt-active: #08599c;\n --mds-color-theme-background-label-gold-normal: #30240d;\n --mds-color-theme-background-label-gold-hover: #4d370c;\n --mds-color-theme-background-label-gold-active: #735107;\n --mds-color-theme-background-label-lime-normal: #1e2b10;\n --mds-color-theme-background-label-lime-hover: #2d4214;\n --mds-color-theme-background-label-lime-active: #416116;\n --mds-color-theme-background-label-mint-normal: #102b2a;\n --mds-color-theme-background-label-mint-hover: #12423f;\n --mds-color-theme-background-label-mint-active: #12615a;\n --mds-color-theme-background-label-orange-normal: #411b04;\n --mds-color-theme-background-label-orange-hover: #682601;\n --mds-color-theme-background-label-orange-active: #9c3202;\n --mds-color-theme-background-label-pink-normal: #3b1e21;\n --mds-color-theme-background-label-pink-hover: #66262d;\n --mds-color-theme-background-label-pink-active: #a12a3a;\n --mds-color-theme-background-label-purple-normal: #3b1840;\n --mds-color-theme-background-label-purple-hover: #601e66;\n --mds-color-theme-background-label-purple-active: #932099;\n --mds-color-theme-background-label-slate-normal: #26262b;\n --mds-color-theme-background-label-slate-hover: #393a47;\n --mds-color-theme-background-label-slate-active: #535573;\n --mds-color-theme-background-label-violet-normal: #29223d;\n --mds-color-theme-background-label-violet-hover: #432c78;\n --mds-color-theme-background-label-violet-active: #643abd;\n --mds-color-theme-background-label-default-normal: #262626;\n --mds-color-theme-background-label-default-hover: #3b3b3b;\n --mds-color-theme-background-label-default-active: #545454;\n --mds-color-theme-background-label-error-normal: #4f0e10;\n --mds-color-theme-background-label-error-hover: #780d13;\n --mds-color-theme-background-label-error-active: #ab0a15;\n --mds-color-theme-background-namelabel-normal: #00000099;\n --mds-color-theme-background-gradient-primary-normal: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);\n --mds-color-theme-background-gradient-secondary-normal: linear-gradient(180deg, #262626 0%, #0f0f0f 100%);\n --mds-color-theme-background-reaction-normal: linear-gradient(90deg, #1a1a1ae6 0%, #1a1a1a00 100%);\n --mds-color-theme-background-skeleton-normal: linear-gradient(123deg, #ffffff33 0%, #ffffff4d 33.85%, #ffffff66 70.31%, #ffffff80 100%);\n --mds-color-theme-background-glass-normal: #00000066;\n --mds-color-theme-background-glass-overlay-normal: #000000cc;\n --mds-color-theme-background-glass-overlay-inactive: #00000066;\n --mds-color-theme-button-primary-normal: #fffffff2;\n --mds-color-theme-button-primary-hover: #ffffffcc;\n --mds-color-theme-button-primary-pressed: #ffffffb3;\n --mds-color-theme-button-primary-disabled: #ffffff33;\n --mds-color-theme-button-secondary-normal: #ffffff00;\n --mds-color-theme-button-secondary-hover: #ffffff12;\n --mds-color-theme-button-secondary-pressed: #ffffff33;\n --mds-color-theme-button-secondary-disabled: #ffffff00;\n --mds-color-theme-button-secondary-active-normal: #ffffff33;\n --mds-color-theme-button-secondary-active-hover: #ffffff4d;\n --mds-color-theme-button-secondary-active-pressed: #ffffff66;\n --mds-color-theme-button-secondary-active-disabled: #ffffff1c;\n --mds-color-theme-button-join-normal: #1d805f;\n --mds-color-theme-button-join-hover: #185e46;\n --mds-color-theme-button-join-pressed: #134231;\n --mds-color-theme-button-cancel-normal: #db1f2e;\n --mds-color-theme-button-cancel-hover: #ab0a15;\n --mds-color-theme-button-cancel-pressed: #780d13;\n --mds-color-theme-button-accent-normal: #1170cf;\n --mds-color-theme-button-accent-hover: #0353a8;\n --mds-color-theme-button-accent-pressed: #063a75;\n --mds-color-theme-button-glass-primary-normal: #ffffffcc;\n --mds-color-theme-button-glass-primary-hover: #ffffffb3;\n --mds-color-theme-button-glass-primary-pressed: #ffffff99;\n --mds-color-theme-outline-primary-normal: #ffffff66;\n --mds-color-theme-outline-primary-disabled: #ffffff33;\n --mds-color-theme-outline-theme-normal: #64b4fa;\n --mds-color-theme-outline-secondary-normal: #ffffff33;\n --mds-color-theme-outline-input-normal: #ffffff80;\n --mds-color-theme-outline-input-active: #ffffffe6;\n --mds-color-theme-outline-button-normal: #ffffff80;\n --mds-color-theme-outline-join-normal: #3cc29a;\n --mds-color-theme-outline-cancel-normal: #fc8b98;\n --mds-color-theme-outline-share-selected: #27a17a;\n --mds-color-theme-outline-share-active: #ec6400;\n --mds-color-theme-outline-share-inactive: #8f8f8f;\n --mds-color-theme-outline-overlay-normal: #adadad;\n --mds-color-theme-outline-high-contrast-focus: #ffffff;\n --mds-color-theme-outline-label-cobalt: #5ebff7;\n --mds-color-theme-outline-label-gold: #d6b220;\n --mds-color-theme-outline-label-lime: #93c437;\n --mds-color-theme-outline-label-mint: #30c9b0;\n --mds-color-theme-outline-label-orange: #fd884e;\n --mds-color-theme-outline-label-pink: #fc97aa;\n --mds-color-theme-outline-label-purple: #f294f1;\n --mds-color-theme-outline-label-slate: #b0b4d9;\n --mds-color-theme-outline-label-violet: #c7a5fa;\n --mds-color-theme-outline-promotion-normal: #c233c4;\n --mds-color-theme-outline-gradient-active: linear-gradient(44deg, #3492eb 14.64%, #22c7d6 51.1%, #68debd 85.36%);\n --mds-color-theme-outline-warning-normal: #f2990a;\n --mds-color-theme-control-active-normal: #64b4fa;\n --mds-color-theme-control-active-hover: #3492eb;\n --mds-color-theme-control-active-pressed: #1170cf;\n --mds-color-theme-control-active-active: #1170cf;\n --mds-color-theme-control-active-disabled: #ffffff33;\n --mds-color-theme-control-indicator-inactive-normal: #8f8f8f;\n --mds-color-theme-control-inactive-normal: #ffffff1c;\n --mds-color-theme-control-inactive-hover: #ffffff33;\n --mds-color-theme-control-inactive-pressed: #ffffff4d;\n --mds-color-theme-control-inactive-disabled: #ffffff12;\n --mds-color-theme-overlay-meetings-normal: #000000b3;\n --mds-color-theme-overlay-button-secondary-normal: #0f0f0f;\n --mds-color-theme-overlay-button-secondary-hover: #262626;\n --mds-color-theme-overlay-button-secondary-pressed: #3b3b3b;\n --mds-color-theme-indicator-unstable: #ec6400;\n --mds-color-theme-indicator-attention: #f55868;\n --mds-color-theme-indicator-stable: #27a17a;\n --mds-color-theme-indicator-locked: #8f8f8f;\n --mds-color-theme-indicator-caution: #cf7900;\n --mds-color-theme-indicator-secure: #3492eb;\n --mds-color-theme-common-whiteboard-sticky-note-yellow: #ffbe4f;\n --mds-color-theme-common-whiteboard-sticky-note-red: #fc8b98;\n --mds-color-theme-common-whiteboard-sticky-note-purple: #f294f1;\n --mds-color-theme-common-whiteboard-sticky-note-cyan: #22c7d6;\n --mds-color-theme-common-whiteboard-sticky-note-mint: #30c9b0;\n --mds-color-theme-common-whiteboard-pen-black: #0f0f0f;\n --mds-color-theme-common-whiteboard-pen-red: #f55868;\n --mds-color-theme-common-whiteboard-pen-purple: #c233c4;\n --mds-color-theme-common-whiteboard-pen-blue: #64b4fa;\n --mds-color-theme-common-whiteboard-pen-green: #3cc29a;\n --mds-color-theme-common-whiteboard-pen-yellow: #f2990a;\n --mds-color-theme-common-whiteboard-pen-white: #ffffff;\n --mds-color-theme-common-text-primary-normal: #fffffff2;\n --mds-color-theme-common-text-primary-disabled: #ffffff66;\n --mds-color-theme-common-text-secondary-normal: #ffffffb3;\n --mds-color-theme-common-text-success-normal: #3cc29a;\n --mds-color-theme-common-text-success-hover: #9fedd8;\n --mds-color-theme-common-text-error-normal: #fc8b98;\n --mds-color-theme-common-text-error-hover: #ffd4da;\n --mds-color-theme-common-text-warning-normal: #f2990a;\n --mds-color-theme-common-text-warning-hover: #ffda94;\n --mds-color-theme-common-inverted-text-secondary-normal: #00000099;\n --mds-color-theme-common-inverted-text-primary-normal: #000000f2;\n --mds-color-theme-common-inverted-button-secondary-normal: #00000000;\n --mds-color-theme-common-inverted-button-secondary-hover: #00000012;\n --mds-color-theme-common-inverted-button-secondary-pressed: #00000033;\n --mds-color-theme-common-inverted-button-secondary-disabled: #00000000;\n --mds-color-theme-common-overlays-primary-normal: #000000e6;\n --mds-color-theme-common-overlays-secondary-normal: #00000066;\n --mds-color-theme-common-overlays-meeting-normal-0: #00000000;\n --mds-color-theme-common-overlays-meeting-normal-1: #0000004d;\n --mds-color-theme-common-overlays-meeting-normal-2: #000000cc;\n --mds-color-theme-common-button-primary-normal: #fffffff2;\n --mds-color-theme-common-button-primary-hover: #ffffffcc;\n --mds-color-theme-common-button-primary-pressed: #ffffffb3;\n --mds-color-theme-common-button-primary-disabled: #ffffff33;\n --mds-color-theme-common-button-secondary-normal: #ffffff00;\n --mds-color-theme-common-button-secondary-hover: #ffffff12;\n --mds-color-theme-common-button-secondary-active-normal: #ffffff33;\n --mds-color-theme-common-button-secondary-active-hover: #ffffff4d;\n --mds-color-theme-common-button-secondary-active-pressed: #ffffff66;\n --mds-color-theme-common-button-secondary-active-disabled: #ffffff1c;\n --mds-color-theme-common-button-secondary-disabled: #ffffff00;\n --mds-color-theme-common-button-join-animated-gradient-normal: linear-gradient(90deg, #30c9b0 0%, #64b4fa 51%, #30c9b0 100%);\n --mds-color-theme-common-button-promotion-normal: linear-gradient(45deg, #932099 0%, #a12a3a 100%);\n --mds-color-theme-common-button-promotion-hover: linear-gradient(45deg, #601e66 0%, #66262d 100%);\n --mds-color-theme-common-button-promotion-active: linear-gradient(45deg, #3b1840 0%, #3b1e21 100%);\n --mds-color-theme-common-outline-button-normal: #ffffff4d;\n --mds-color-theme-common-outline-primary-normal: #ffffff66;\n --mds-color-theme-common-outline-primary-disabled: #ffffff33;\n --mds-color-theme-common-outline-input-normal: #ffffff80;\n --mds-color-theme-common-outline-secondary-normal: #00000033;\n --mds-color-theme-common-outline-secondary-disabled: #00000033;\n --mds-color-theme-common-outline-warning-normal: #f2990a;\n --mds-color-theme-common-control-share-content-selected: #3cc29a;\n --mds-color-theme-common-control-share-content-active: #c94403;\n --mds-color-theme-common-control-share-content-inactive: #707070;\n --mds-color-theme-common-control-inactive-normal: #00000033;\n --mds-color-theme-common-background-alert-share-normal: #c94403;\n --mds-color-theme-common-background-solid-dark: #1a1a1a;\n --mds-color-theme-common-background-solid-light: #ffffff;\n --mds-color-theme-common-content-pdf: #ee0507;\n --mds-color-theme-common-content-word: #0078d6;\n --mds-color-theme-common-content-powerpoint: #d93e17;\n --mds-color-theme-common-content-excel: #00893e;\n --mds-color-theme-common-content-onenote: #b839db;\n --mds-color-theme-common-content-sheets: #f4b400;\n --mds-color-theme-common-content-slides: #0f9d58;\n --mds-color-theme-common-content-keynote: #029cfb;\n --mds-color-theme-common-content-doc: #4285f4;\n --mds-color-theme-common-touchbar-background-blue-normal: #1170cf;\n --mds-color-theme-common-touchbar-background-blue-pressed: #063a75;\n --mds-color-theme-common-touchbar-background-pink-normal: #d43b52;\n --mds-color-theme-common-touchbar-background-pink-pressed: #66262d;\n --mds-color-theme-common-touchbar-background-mint-normal: #148579;\n --mds-color-theme-common-touchbar-background-mint-pressed: #12423f;\n --mds-color-theme-common-touchbar-background-purple-normal: #c233c4;\n --mds-color-theme-common-touchbar-background-purple-pressed: #601e66;\n --mds-color-theme-common-touchbar-background-violet-normal: #875ae0;\n --mds-color-theme-common-touchbar-background-violet-pressed: #432c78;\n --mds-color-theme-common-touchbar-background-orange-normal: #c94403;\n --mds-color-theme-common-touchbar-background-orange-pressed: #682601;\n --mds-color-theme-common-touchbar-background-green-normal: #1d805f;\n --mds-color-theme-common-touchbar-background-green-pressed: #134231;\n --mds-color-theme-common-touchbar-background-red-normal: #db1f2e;\n --mds-color-theme-common-touchbar-background-red-pressed: #780d13;\n --mds-color-theme-common-touchbar-background-transparent: #00000000;\n --mds-color-theme-common-touchbar-icon-attention: #fc8b98;\n --mds-color-theme-common-touchbar-icon-stable: #27a17a;\n --mds-color-theme-common-touchbar-icon-secure: #64b4fa;\n --mds-color-theme-scrollbar-button-normal: #ffffff66;\n --mds-color-theme-scrollbar-button-hover: #ffffff80;\n --mds-color-theme-scrollbar-button-pressed: #ffffff99;\n --mds-color-theme-scrollbar-arrow-normal: #ffffffb3;\n --mds-color-theme-scrollbar-arrow-background-normal: #ffffff00;\n --mds-color-theme-scrollbar-arrow-background-hover: #ffffff33;\n --mds-color-theme-scrollbar-arrow-background-pressed: #ffffff4d;\n --mds-color-theme-scrollbar-background-secondary-ghost: #ffffff00;\n --mds-color-theme-scrollbar-background-secondary-normal: #ffffff1c;\n --mds-color-theme-illustrations-empty-primary-0: #93c437;\n --mds-color-theme-illustrations-empty-primary-1: #279be8;\n --mds-color-theme-illustrations-empty-secondary-0: #279be8;\n --mds-color-theme-illustrations-empty-secondary-1: #875ae0;\n --mds-color-theme-illustrations-onboarding-primary-0: #ffbe4f;\n --mds-color-theme-illustrations-onboarding-primary-1: #93c437;\n --mds-color-theme-illustrations-onboarding-secondary-0: #f55868;\n --mds-color-theme-illustrations-onboarding-secondary-1: #875ae0;\n --mds-color-theme-illustrations-onboarding-tertiary-0: #ffbe4f;\n --mds-color-theme-illustrations-onboarding-tertiary-1: #ec6400;\n --mds-color-theme-illustrations-onboarding-quartenary-0: #93c437;\n --mds-color-theme-illustrations-onboarding-quartenary-1: #279be8;\n --mds-color-theme-illustrations-onboarding-quinary-0: #279be8;\n --mds-color-theme-illustrations-onboarding-quinary-1: #875ae0;\n --mds-color-theme-illustrations-success-0: #3cc29a;\n --mds-color-theme-illustrations-success-1: #93c437;\n --mds-color-theme-illustrations-error-0: #f0677e;\n --mds-color-theme-illustrations-error-1: #db1f2e;\n --mds-color-theme-illustrations-default: #ffffff;\n --mds-color-theme-globaltint-normal: #3492eb;\n --mds-color-theme-globaltint-selected: #1170cf;\n --mds-color-theme-groupedbackground-primary-normal: #000000;\n --mds-color-theme-groupedbackground-secondary-normal: #1a1a1a;\n --mds-color-theme-groupedbackground-tertiary-normal: #262626;\n --mds-color-theme-groupedbackground-quaternary-normal: #3b3b3b;\n --mds-color-theme-gradientdivider-default-normal: linear-gradient(90deg, #ffffff00 0%, #ffffff33 22.4%, #ffffff33 72.4%, #ffffff00 100%);\n --mds-color-theme-gradientdivider-default-hover: linear-gradient(90deg, #ffffff00 0%, #ffffff99 22.4%, #ffffff99 72.4%, #ffffff00 100%);\n --mds-color-theme-gradientdivider-error-normal: linear-gradient(90deg, #fc8b9800 0%, #fc8b9899 22.4%, #fc8b9899 76.04%, #fc8b9800 100%);\n --mds-color-theme-gradientdivider-error-hover: linear-gradient(90deg, #fc8b9800 0%, #fc8b98e6 22.4%, #fc8b98e6 76.04%, #fc8b9800 100%);\n --mds-color-theme-gradientdivider-warning-normal: linear-gradient(90deg, #f2990a00 0%, #f2990a99 22.4%, #f2990a99 76.04%, #f2990a00 100%);\n --mds-color-theme-gradientdivider-warning-hover: linear-gradient(90deg, #f2990a00 0%, #f2990ae6 22.4%, #f2990ae6 76.04%, #f2990a00 100%);\n --mds-color-theme-gradientdivider-announce-normal: linear-gradient(90deg, #64b4fa00 0%, #64b4fa99 22.4%, #64b4fa99 76.04%, #64b4fa00 100%);\n --mds-color-theme-gradientdivider-announce-hover: linear-gradient(90deg, #64b4fa00 0%,#64b4faE6 22.4%, #64b4faE6 76.04%, #64b4fa00 100%);\n --mds-color-theme-gradientdivider-success-normal: linear-gradient(90deg, #3cc29a00 0%, #3cc29a99 22.4%, #3cc29a99 76.04%, #3cc29a00 100%);\n --mds-color-theme-gradientdivider-success-hover: linear-gradient(90deg, #3cc29a00 0%,#3cc29aE6 22.4%, #3cc29aE6 76.04%, #3cc29a00 100%);\n --mds-color-theme-gradientdivider-orange-normal: linear-gradient(90deg, #fd884e00 0%, #fd884e99 22.4%, #fd884e99 76.04%, #fd884e00 100%);\n --mds-color-theme-gradientdivider-orange-hover: linear-gradient(90deg, #fd884e00 0%,#fd884eE6 22.4%, #fd884eE6 76.04%, #fd884e00 100%);\n --mds-color-theme-gradientdivider-purple-normal: linear-gradient(90deg, #f294f100 0%, #f294f199 22.4%, #f294f199 76.04%, #f294f100 100%);\n --mds-color-theme-gradientdivider-purple-hover: linear-gradient(90deg, #f294f100 0%, #f294f1E6 22.4%, #f294f1E6 76.04%, #f294f100 100%);\n --mds-color-theme-gradientdivider-vertical-normal: linear-gradient(0deg, #ffffff00 0%, #ffffff33 22.4%, #ffffff33 72.4%, #ffffff00 100%);\n --mds-color-theme-gradientdivider-vertical-hover: linear-gradient(0deg, #ffffff00 0%, #ffffff99 22.4%, #ffffff99 72.4%, #ffffff00 100%);\n --mds-color-theme-avatar-default: #545454;\n --mds-color-theme-avatar-hover: #ffffff12;\n --mds-color-theme-avatar-pressed: #ffffff33;\n --mds-color-theme-avatar-cobalt: #08599c;\n --mds-color-theme-avatar-cyan: #066070;\n --mds-color-theme-avatar-gold: #735107;\n --mds-color-theme-avatar-lime: #416116;\n --mds-color-theme-avatar-mint: #12615a;\n --mds-color-theme-avatar-orange: #9c3202;\n --mds-color-theme-avatar-pink: #a12a3a;\n --mds-color-theme-avatar-purple: #932099;\n --mds-color-theme-avatar-slate: #535573;\n --mds-color-theme-avatar-violet: #643abd;\n --mds-color-theme-avatar-yellow: #7d4705;\n --mds-color-theme-avatar-glass-normal: #ffffff12;\n --mds-color-theme-avatar-glass-active: #ffffffcc;\n --mds-color-theme-focus-default-0: #000000;\n --mds-color-theme-focus-default-1: #64b4fa;\n --mds-color-theme-focus-default-2: #64b4fa59;\n}\n.mds-theme-stable-lightWebex {\n --mds-color-theme-text-primary-normal: #000000f2;\n --mds-color-theme-text-primary-disabled: #00000066;\n --mds-color-theme-text-secondary-normal: #000000b3;\n --mds-color-theme-text-error-normal: #ab0a15;\n --mds-color-theme-text-error-hover: #4f0e10;\n --mds-color-theme-text-error-active: #4f0e10;\n --mds-color-theme-text-success-normal: #185e46;\n --mds-color-theme-text-success-hover: #0e2b20;\n --mds-color-theme-text-success-active: #0e2b20;\n --mds-color-theme-text-warning-normal: #7d4705;\n --mds-color-theme-text-warning-hover: #36220c;\n --mds-color-theme-text-warning-active: #36220c;\n --mds-color-theme-text-highlight: #bfe3ff;\n --mds-color-theme-text-accent-normal: #0353a8;\n --mds-color-theme-text-accent-hover: #0a274a;\n --mds-color-theme-text-accent-active: #0a274a;\n --mds-color-theme-text-teamdefault-normal: #000000b3;\n --mds-color-theme-text-teamdefault-hover: #000000b3;\n --mds-color-theme-text-teamdefault-active: #000000f2;\n --mds-color-theme-text-alert-purple-normal: #932099;\n --mds-color-theme-text-alert-purple-hover: #3b1840;\n --mds-color-theme-text-alert-purple-active: #3b1840;\n --mds-color-theme-text-alert-orange-normal: #9c3202;\n --mds-color-theme-text-alert-orange-hover: #411b04;\n --mds-color-theme-text-alert-orange-active: #411b04;\n --mds-color-theme-text-team-cobalt-normal: #08599c;\n --mds-color-theme-text-team-cobalt-hover: #08599c;\n --mds-color-theme-text-team-cobalt-active: #12283d;\n --mds-color-theme-text-team-cyan-normal: #066070;\n --mds-color-theme-text-team-cyan-hover: #0b2a30;\n --mds-color-theme-text-team-cyan-active: #0b2a30;\n --mds-color-theme-text-team-mint-normal: #12615a;\n --mds-color-theme-text-team-mint-hover: #102b2a;\n --mds-color-theme-text-team-mint-active: #102b2a;\n --mds-color-theme-text-team-lime-normal: #416116;\n --mds-color-theme-text-team-lime-hover: #416116;\n --mds-color-theme-text-team-lime-active: #1e2b10;\n --mds-color-theme-text-team-gold-normal: #735107;\n --mds-color-theme-text-team-gold-hover: #735107;\n --mds-color-theme-text-team-gold-active: #30240d;\n --mds-color-theme-text-team-orange-normal: #9c3202;\n --mds-color-theme-text-team-orange-hover: #9c3202;\n --mds-color-theme-text-team-orange-active: #411b04;\n --mds-color-theme-text-team-pink-normal: #a12a3a;\n --mds-color-theme-text-team-pink-hover: #a12a3a;\n --mds-color-theme-text-team-pink-active: #3b1e21;\n --mds-color-theme-text-team-purple-normal: #932099;\n --mds-color-theme-text-team-purple-hover: #932099;\n --mds-color-theme-text-team-purple-active: #3b1840;\n --mds-color-theme-text-team-violet-normal: #643abd;\n --mds-color-theme-text-team-violet-hover: #643abd;\n --mds-color-theme-text-team-violet-active: #29223d;\n --mds-color-theme-text-team-slate-normal: #535573;\n --mds-color-theme-text-team-slate-hover: #535573;\n --mds-color-theme-text-team-slate-active: #26262b;\n --mds-color-theme-inverted-text-primary-normal: #fffffff2;\n --mds-color-theme-inverted-text-primary-disabled: #ffffff66;\n --mds-color-theme-inverted-text-secondary-normal: #ffffffb3;\n --mds-color-theme-inverted-text-accent-normal: #64b4fa;\n --mds-color-theme-inverted-text-accent-hover: #bfe3ff;\n --mds-color-theme-inverted-text-accent-active: #bfe3ff;\n --mds-color-theme-inverted-background-normal: #000000;\n --mds-color-theme-inverted-button-primary-normal: #fffffff2;\n --mds-color-theme-inverted-button-primary-hover: #ffffffcc;\n --mds-color-theme-inverted-button-primary-pressed: #ffffffb3;\n --mds-color-theme-inverted-button-primary-disabled: #ffffff33;\n --mds-color-theme-inverted-button-secondary-normal: #ffffff00;\n --mds-color-theme-inverted-button-secondary-hover: #ffffff12;\n --mds-color-theme-inverted-button-secondary-pressed: #ffffff33;\n --mds-color-theme-inverted-button-secondary-disabled: #ffffff00;\n --mds-color-theme-inverted-outline-button-normal: #ffffff80;\n --mds-color-theme-inverted-outline-primary-normal: #ffffff66;\n --mds-color-theme-inverted-outline-disabled-normal: #ffffff33;\n --mds-color-theme-inverted-outline-theme-normal: #64b4fa;\n --mds-color-theme-inverted-control-active-normal: #64b4fa;\n --mds-color-theme-inverted-control-active-hover: #3492eb;\n --mds-color-theme-inverted-control-active-pressed: #1170cf;\n --mds-color-theme-inverted-control-active-active: #1170cf;\n --mds-color-theme-inverted-control-active-disabled: #ffffff33;\n --mds-color-theme-inverted-control-inactive-normal: #8f8f8f;\n --mds-color-theme-inverted-control-inactive-hover: #ffffff4d;\n --mds-color-theme-inverted-control-inactive-pressed: #ffffff66;\n --mds-color-theme-inverted-control-inactive-disabled: #ffffff33;\n --mds-color-theme-background-primary-ghost: #00000000;\n --mds-color-theme-background-primary-hover: #00000012;\n --mds-color-theme-background-primary-active: #0000001c;\n --mds-color-theme-background-primary-disabled: #00000000;\n --mds-color-theme-background-solid-primary-normal: #ffffff;\n --mds-color-theme-background-solid-secondary-normal: #f7f7f7;\n --mds-color-theme-background-solid-tertiary-normal: #ededed;\n --mds-color-theme-background-solid-quaternary-normal: #ffffff;\n --mds-color-theme-background-secondary-normal: #0000001c;\n --mds-color-theme-background-secondary-hover: #00000033;\n --mds-color-theme-background-secondary-active: #0000004d;\n --mds-color-theme-background-secondary-disabled: #00000000;\n --mds-color-theme-background-accent-normal: #1170cf;\n --mds-color-theme-background-accent-active: #0353a8;\n --mds-color-theme-background-alert-default-normal: #dedede;\n --mds-color-theme-background-alert-default-hover: #dedede;\n --mds-color-theme-background-alert-default-active: #c9c9c9;\n --mds-color-theme-background-alert-success-normal: #cef5eb;\n --mds-color-theme-background-alert-success-hover: #cef5eb;\n --mds-color-theme-background-alert-success-active: #9fedd8;\n --mds-color-theme-background-alert-warning-normal: #ffebc2;\n --mds-color-theme-background-alert-warning-hover: #ffebc2;\n --mds-color-theme-background-alert-warning-active: #ffda94;\n --mds-color-theme-background-alert-error-normal: #ffe8ea;\n --mds-color-theme-background-alert-error-hover: #ffe8ea;\n --mds-color-theme-background-alert-error-active: #ffd4da;\n --mds-color-theme-background-alert-theme-normal: #dbf0ff;\n --mds-color-theme-background-alert-theme-hover: #dbf0ff;\n --mds-color-theme-background-alert-theme-active: #bfe3ff;\n --mds-color-theme-background-alert-purple-normal: #fcf2fc;\n --mds-color-theme-background-alert-purple-hover: #fcf2fc;\n --mds-color-theme-background-alert-purple-active: #fce1fc;\n --mds-color-theme-background-alert-orange-normal: #feebd7;\n --mds-color-theme-background-alert-orange-hover: #feebd7;\n --mds-color-theme-background-alert-orange-active: #fed5ac;\n --mds-color-theme-background-label-cobalt-normal: #e5f8ff;\n --mds-color-theme-background-label-cobalt-hover: #c7eeff;\n --mds-color-theme-background-label-cobalt-active: #99ddff;\n --mds-color-theme-background-label-gold-normal: #f7f6dc;\n --mds-color-theme-background-label-gold-hover: #f5eaa2;\n --mds-color-theme-background-label-gold-active: #ebd460;\n --mds-color-theme-background-label-lime-normal: #f3f7e9;\n --mds-color-theme-background-label-lime-hover: #ddf2ae;\n --mds-color-theme-background-label-lime-active: #bce36f;\n --mds-color-theme-background-label-mint-normal: #e9f7f3;\n --mds-color-theme-background-label-mint-hover: #baf5e7;\n --mds-color-theme-background-label-mint-active: #74e8d1;\n --mds-color-theme-background-label-orange-normal: #feebd7;\n --mds-color-theme-background-label-orange-hover: #fed5ac;\n --mds-color-theme-background-label-orange-active: #feba7f;\n --mds-color-theme-background-label-pink-normal: #fff2f5;\n --mds-color-theme-background-label-pink-hover: #ffe0e7;\n --mds-color-theme-background-label-pink-active: #ffc7d2;\n --mds-color-theme-background-label-purple-normal: #fcf2fc;\n --mds-color-theme-background-label-purple-hover: #fce1fc;\n --mds-color-theme-background-label-purple-active: #fac3f8;\n --mds-color-theme-background-label-slate-normal: #f2f4ff;\n --mds-color-theme-background-label-slate-hover: #e3e7fa;\n --mds-color-theme-background-label-slate-active: #ced2ed;\n --mds-color-theme-background-label-violet-normal: #f8f2fc;\n --mds-color-theme-background-label-violet-hover: #f0e3fc;\n --mds-color-theme-background-label-violet-active: #e2cafc;\n --mds-color-theme-background-label-default-normal: #ededed;\n --mds-color-theme-background-label-default-hover: #dedede;\n --mds-color-theme-background-label-default-active: #c9c9c9;\n --mds-color-theme-background-label-error-normal: #ffe8ea;\n --mds-color-theme-background-label-error-hover: #ffd4da;\n --mds-color-theme-background-label-error-active: #ffb8c1;\n --mds-color-theme-background-namelabel-normal: #00000099;\n --mds-color-theme-background-gradient-primary-normal: linear-gradient(180deg, #f0f0f0 0%, #ffffff 100%);\n --mds-color-theme-background-gradient-secondary-normal: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);\n --mds-color-theme-background-reaction-normal: linear-gradient(90deg, #ffffffe6 0%, #ffffff00 100%);\n --mds-color-theme-background-skeleton-normal: linear-gradient(123deg, #00000033 0%, #0000004d 27.6%, #00000066 58.85%, #00000080 100%);\n --mds-color-theme-background-glass-normal: #ffffff99;\n --mds-color-theme-background-glass-overlay-normal: #ffffffcc;\n --mds-color-theme-background-glass-overlay-inactive: #ffffff66;\n --mds-color-theme-button-primary-normal: #000000f2;\n --mds-color-theme-button-primary-hover: #000000cc;\n --mds-color-theme-button-primary-pressed: #000000b3;\n --mds-color-theme-button-primary-disabled: #00000033;\n --mds-color-theme-button-secondary-normal: #00000000;\n --mds-color-theme-button-secondary-hover: #00000012;\n --mds-color-theme-button-secondary-pressed: #00000033;\n --mds-color-theme-button-secondary-disabled: #00000000;\n --mds-color-theme-button-secondary-active-normal: #00000033;\n --mds-color-theme-button-secondary-active-hover: #0000004d;\n --mds-color-theme-button-secondary-active-pressed: #00000066;\n --mds-color-theme-button-secondary-active-disabled: #0000001c;\n --mds-color-theme-button-join-normal: #1d805f;\n --mds-color-theme-button-join-hover: #185e46;\n --mds-color-theme-button-join-pressed: #134231;\n --mds-color-theme-button-cancel-normal: #db1f2e;\n --mds-color-theme-button-cancel-hover: #ab0a15;\n --mds-color-theme-button-cancel-pressed: #780d13;\n --mds-color-theme-button-accent-normal: #1170cf;\n --mds-color-theme-button-accent-hover: #0353a8;\n --mds-color-theme-button-accent-pressed: #063a75;\n --mds-color-theme-button-glass-primary-normal: #000000cc;\n --mds-color-theme-button-glass-primary-hover: #000000b3;\n --mds-color-theme-button-glass-primary-pressed: #00000099;\n --mds-color-theme-outline-primary-normal: #00000075;\n --mds-color-theme-outline-primary-disabled: #00000033;\n --mds-color-theme-outline-theme-normal: #1170cf;\n --mds-color-theme-outline-secondary-normal: #00000033;\n --mds-color-theme-outline-input-normal: #00000080;\n --mds-color-theme-outline-input-active: #000000e6;\n --mds-color-theme-outline-button-normal: #00000080;\n --mds-color-theme-outline-join-normal: #185e46;\n --mds-color-theme-outline-cancel-normal: #ab0a15;\n --mds-color-theme-outline-share-selected: #27a17a;\n --mds-color-theme-outline-share-active: #ec6400;\n --mds-color-theme-outline-share-inactive: #8f8f8f;\n --mds-color-theme-outline-overlay-normal: #707070;\n --mds-color-theme-outline-high-contrast-focus: #000000;\n --mds-color-theme-outline-label-cobalt: #5ebff7;\n --mds-color-theme-outline-label-gold: #d6b220;\n --mds-color-theme-outline-label-lime: #93c437;\n --mds-color-theme-outline-label-mint: #30c9b0;\n --mds-color-theme-outline-label-orange: #fd884e;\n --mds-color-theme-outline-label-pink: #fc97aa;\n --mds-color-theme-outline-label-purple: #f294f1;\n --mds-color-theme-outline-label-slate: #b0b4d9;\n --mds-color-theme-outline-label-violet: #c7a5fa;\n --mds-color-theme-outline-promotion-normal: #c233c4;\n --mds-color-theme-outline-gradient-active: linear-gradient(44deg, #3492eb 14.64%, #00a3b5 51.1%, #3cc29a 85.36%);\n --mds-color-theme-outline-warning-normal: #7d4705;\n --mds-color-theme-control-active-normal: #1170cf;\n --mds-color-theme-control-active-hover: #0353a8;\n --mds-color-theme-control-active-pressed: #063a75;\n --mds-color-theme-control-active-active: #063a75;\n --mds-color-theme-control-active-disabled: #00000033;\n --mds-color-theme-control-indicator-inactive-normal: #707070;\n --mds-color-theme-control-inactive-normal: #0000001c;\n --mds-color-theme-control-inactive-hover: #00000033;\n --mds-color-theme-control-inactive-pressed: #0000004d;\n --mds-color-theme-control-inactive-disabled: #00000012;\n --mds-color-theme-overlay-meetings-normal: #ffffffcc;\n --mds-color-theme-overlay-button-secondary-normal: #ffffff;\n --mds-color-theme-overlay-button-secondary-hover: #ededed;\n --mds-color-theme-overlay-button-secondary-pressed: #dedede;\n --mds-color-theme-indicator-unstable: #c94403;\n --mds-color-theme-indicator-attention: #db1f2e;\n --mds-color-theme-indicator-stable: #1d805f;\n --mds-color-theme-indicator-locked: #707070;\n --mds-color-theme-indicator-caution: #a65e00;\n --mds-color-theme-indicator-secure: #1170cf;\n --mds-color-theme-common-whiteboard-sticky-note-yellow: #ffbe4f;\n --mds-color-theme-common-whiteboard-sticky-note-red: #fc8b98;\n --mds-color-theme-common-whiteboard-sticky-note-purple: #f294f1;\n --mds-color-theme-common-whiteboard-sticky-note-cyan: #22c7d6;\n --mds-color-theme-common-whiteboard-sticky-note-mint: #30c9b0;\n --mds-color-theme-common-whiteboard-pen-black: #0f0f0f;\n --mds-color-theme-common-whiteboard-pen-red: #f55868;\n --mds-color-theme-common-whiteboard-pen-purple: #c233c4;\n --mds-color-theme-common-whiteboard-pen-blue: #64b4fa;\n --mds-color-theme-common-whiteboard-pen-green: #3cc29a;\n --mds-color-theme-common-whiteboard-pen-yellow: #f2990a;\n --mds-color-theme-common-whiteboard-pen-white: #ffffff;\n --mds-color-theme-common-text-primary-normal: #fffffff2;\n --mds-color-theme-common-text-primary-disabled: #ffffff66;\n --mds-color-theme-common-text-secondary-normal: #ffffffb3;\n --mds-color-theme-common-text-success-normal: #3cc29a;\n --mds-color-theme-common-text-success-hover: #9fedd8;\n --mds-color-theme-common-text-error-normal: #fc8b98;\n --mds-color-theme-common-text-error-hover: #ffd4da;\n --mds-color-theme-common-text-warning-normal: #f2990a;\n --mds-color-theme-common-text-warning-hover: #ffda94;\n --mds-color-theme-common-inverted-text-primary-normal: #000000f2;\n --mds-color-theme-common-inverted-text-secondary-normal: #00000099;\n --mds-color-theme-common-inverted-button-secondary-normal: #00000000;\n --mds-color-theme-common-inverted-button-secondary-hover: #00000012;\n --mds-color-theme-common-inverted-button-secondary-pressed: #00000033;\n --mds-color-theme-common-inverted-button-secondary-disabled: #00000000;\n --mds-color-theme-common-overlays-primary-normal: #000000e6;\n --mds-color-theme-common-overlays-secondary-normal: #00000066;\n --mds-color-theme-common-overlays-meeting-normal-0: #00000000;\n --mds-color-theme-common-overlays-meeting-normal-1: #0000004d;\n --mds-color-theme-common-overlays-meeting-normal-2: #000000cc;\n --mds-color-theme-common-button-primary-normal: #fffffff2;\n --mds-color-theme-common-button-primary-hover: #ffffffcc;\n --mds-color-theme-common-button-primary-pressed: #ffffffb3;\n --mds-color-theme-common-button-primary-disabled: #ffffff33;\n --mds-color-theme-common-button-secondary-normal: #ffffff00;\n --mds-color-theme-common-button-secondary-hover: #ffffff12;\n --mds-color-theme-common-button-secondary-active-normal: #ffffff33;\n --mds-color-theme-common-button-secondary-active-hover: #ffffff4d;\n --mds-color-theme-common-button-secondary-active-pressed: #ffffff66;\n --mds-color-theme-common-button-secondary-active-disabled: #ffffff1c;\n --mds-color-theme-common-button-secondary-disabled: #ffffff00;\n --mds-color-theme-common-button-promotion-normal: linear-gradient(46deg, #932099 0%, #a12a3a 100%);\n --mds-color-theme-common-button-promotion-hover: linear-gradient(46deg, #601e66 0%, #66262d 100%);\n --mds-color-theme-common-button-promotion-active: linear-gradient(46deg, #3b1840 0%, #3b1e21 100%);\n --mds-color-theme-common-button-join-animated-gradient-normal: linear-gradient(90deg, #30c9b0 0%, #64b4fa 51%, #30c9b0 100%);\n --mds-color-theme-common-outline-button-normal: #ffffff4d;\n --mds-color-theme-common-outline-primary-normal: #ffffff66;\n --mds-color-theme-common-outline-primary-disabled: #ffffff33;\n --mds-color-theme-common-outline-input-normal: #ffffff80;\n --mds-color-theme-common-outline-secondary-normal: #00000033;\n --mds-color-theme-common-outline-secondary-disabled: #00000033;\n --mds-color-theme-common-outline-warning-normal: #f2990a;\n --mds-color-theme-common-control-share-content-selected: #3cc29a;\n --mds-color-theme-common-control-share-content-active: #c94403;\n --mds-color-theme-common-control-share-content-inactive: #707070;\n --mds-color-theme-common-control-inactive-normal: #00000033;\n --mds-color-theme-common-background-alert-share-normal: #c94403;\n --mds-color-theme-common-background-solid-dark: #1a1a1a;\n --mds-color-theme-common-background-solid-light: #ffffff;\n --mds-color-theme-common-content-pdf: #ee0507;\n --mds-color-theme-common-content-word: #0078d6;\n --mds-color-theme-common-content-powerpoint: #d93e17;\n --mds-color-theme-common-content-excel: #00893e;\n --mds-color-theme-common-content-onenote: #b839db;\n --mds-color-theme-common-content-sheets: #f4b400;\n --mds-color-theme-common-content-slides: #0f9d58;\n --mds-color-theme-common-content-keynote: #029cfb;\n --mds-color-theme-common-content-doc: #4285f4;\n --mds-color-theme-common-touchbar-background-blue-normal: #1170cf;\n --mds-color-theme-common-touchbar-background-blue-pressed: #063a75;\n --mds-color-theme-common-touchbar-background-pink-normal: #d43b52;\n --mds-color-theme-common-touchbar-background-pink-pressed: #66262d;\n --mds-color-theme-common-touchbar-background-mint-normal: #148579;\n --mds-color-theme-common-touchbar-background-mint-pressed: #12423f;\n --mds-color-theme-common-touchbar-background-purple-normal: #c233c4;\n --mds-color-theme-common-touchbar-background-purple-pressed: #601e66;\n --mds-color-theme-common-touchbar-background-violet-normal: #875ae0;\n --mds-color-theme-common-touchbar-background-violet-pressed: #432c78;\n --mds-color-theme-common-touchbar-background-orange-normal: #c94403;\n --mds-color-theme-common-touchbar-background-orange-pressed: #682601;\n --mds-color-theme-common-touchbar-background-green-normal: #1d805f;\n --mds-color-theme-common-touchbar-background-green-pressed: #134231;\n --mds-color-theme-common-touchbar-background-red-normal: #db1f2e;\n --mds-color-theme-common-touchbar-background-red-pressed: #780d13;\n --mds-color-theme-common-touchbar-background-transparent: #00000000;\n --mds-color-theme-common-touchbar-icon-attention: #fc8b98;\n --mds-color-theme-common-touchbar-icon-stable: #27a17a;\n --mds-color-theme-common-touchbar-icon-secure: #64b4fa;\n --mds-color-theme-scrollbar-button-normal: #00000075;\n --mds-color-theme-scrollbar-button-hover: #00000080;\n --mds-color-theme-scrollbar-button-pressed: #00000099;\n --mds-color-theme-scrollbar-arrow-normal: #00000099;\n --mds-color-theme-scrollbar-arrow-background-normal: #00000000;\n --mds-color-theme-scrollbar-arrow-background-hover: #00000033;\n --mds-color-theme-scrollbar-arrow-background-pressed: #0000004d;\n --mds-color-theme-scrollbar-background-secondary-ghost: #00000000;\n --mds-color-theme-scrollbar-background-secondary-normal: #0000001c;\n --mds-color-theme-illustrations-empty-primary-0: #93c437;\n --mds-color-theme-illustrations-empty-primary-1: #279be8;\n --mds-color-theme-illustrations-empty-secondary-0: #279be8;\n --mds-color-theme-illustrations-empty-secondary-1: #875ae0;\n --mds-color-theme-illustrations-onboarding-primary-0: #ffbe4f;\n --mds-color-theme-illustrations-onboarding-primary-1: #93c437;\n --mds-color-theme-illustrations-onboarding-secondary-0: #f55868;\n --mds-color-theme-illustrations-onboarding-secondary-1: #875ae0;\n --mds-color-theme-illustrations-onboarding-tertiary-0: #ffbe4f;\n --mds-color-theme-illustrations-onboarding-tertiary-1: #ec6400;\n --mds-color-theme-illustrations-onboarding-quartenary-0: #93c437;\n --mds-color-theme-illustrations-onboarding-quartenary-1: #279be8;\n --mds-color-theme-illustrations-onboarding-quinary-0: #279be8;\n --mds-color-theme-illustrations-onboarding-quinary-1: #875ae0;\n --mds-color-theme-illustrations-success-0: #3cc29a;\n --mds-color-theme-illustrations-success-1: #93c437;\n --mds-color-theme-illustrations-error-0: #f0677e;\n --mds-color-theme-illustrations-error-1: #db1f2e;\n --mds-color-theme-illustrations-default: #000000;\n --mds-color-theme-globaltint-normal: #1170cf;\n --mds-color-theme-globaltint-selected: #1170cf;\n --mds-color-theme-groupedbackground-primary-normal: #f7f7f7;\n --mds-color-theme-groupedbackground-secondary-normal: #ffffff;\n --mds-color-theme-groupedbackground-tertiary-normal: #f7f7f7;\n --mds-color-theme-groupedbackground-quaternary-normal: #ffffff;\n --mds-color-theme-avatar-default: #545454;\n --mds-color-theme-avatar-cobalt: #08599c;\n --mds-color-theme-avatar-cyan: #066070;\n --mds-color-theme-avatar-gold: #735107;\n --mds-color-theme-avatar-lime: #416116;\n --mds-color-theme-avatar-mint: #12615a;\n --mds-color-theme-avatar-orange: #9c3202;\n --mds-color-theme-avatar-pink: #a12a3a;\n --mds-color-theme-avatar-purple: #932099;\n --mds-color-theme-avatar-slate: #535573;\n --mds-color-theme-avatar-violet: #643abd;\n --mds-color-theme-avatar-yellow: #7d4705;\n --mds-color-theme-avatar-hover: #00000012;\n --mds-color-theme-avatar-pressed: #00000033;\n --mds-color-theme-avatar-glass-normal: #00000012;\n --mds-color-theme-avatar-glass-active: #ffffffcc;\n --mds-color-theme-gradientdivider-default-normal: linear-gradient(90deg, #00000000 0%, #00000033 22.4%, #00000033 72.4%, #00000000 100%);\n --mds-color-theme-gradientdivider-default-hover: linear-gradient(90deg, #00000000 0%, #00000099 22.4%, #00000099 72.4%, #00000000 100%);\n --mds-color-theme-gradientdivider-error-normal: linear-gradient(90deg, #ab0a1500 0%, #ab0a1599 22.4%, #ab0a1599 22.4%, #ab0a1500 100%);\n --mds-color-theme-gradientdivider-error-hover: linear-gradient(90deg, #ab0a1500 0%, #ab0a15e6 22.4%, #ab0a15e6 76.04%, #ab0a1500 100%);\n --mds-color-theme-gradientdivider-warning-normal: linear-gradient(90deg, #7d470500 0%, #7d470599 22.4%, #7d470599 76.04%, #7d470500 100%);\n --mds-color-theme-gradientdivider-warning-hover: linear-gradient(90deg, #7d470500 0%, #7d4705e6 22.4%, #7d4705e6 76.04%, #7d470500 100%);\n --mds-color-theme-gradientdivider-announce-normal: linear-gradient(90deg, #0353a800 0%, #0353a899 22.4%, #0353a899 22.4%, #0353a800 100%);\n --mds-color-theme-gradientdivider-announce-hover: linear-gradient(90deg, #0353a800 0%, #0353a8E6 76.04%, #0353a8E6 76.04%, #0353a800 100%);\n --mds-color-theme-gradientdivider-success-normal: linear-gradient(90deg, #185e4600 0%, #185e4699 22.4%, #185e4699 76.04%, #185e4600 100%);\n --mds-color-theme-gradientdivider-success-hover: linear-gradient(90deg, #185e4600 0%, #185e46E6 22.4%, #185e46E6 76.04%, #185e4600 100%);\n --mds-color-theme-gradientdivider-orange-normal: linear-gradient(90deg, #9c320200 0%, #9c320299 22.4%, #9c320299 76.04%, #9c320200 100%);\n --mds-color-theme-gradientdivider-orange-hover: linear-gradient(90deg, #9c320200 0%, #9c3202e6 22.4%, #9c3202e6 76.04%, #9c320200 100%);\n --mds-color-theme-gradientdivider-purple-normal: linear-gradient(90deg, #93209900 0%, #93209999 22.4%, #93209999 76.04%, #93209900 100%);\n --mds-color-theme-gradientdivider-purple-hover: linear-gradient(90deg, #93209900 0%,#932099E6 22.4%, #932099E6 76.04%, #93209900 100%);\n --mds-color-theme-gradientdivider-vertical-normal: linear-gradient(0deg, #00000000 0%, #00000033 22.4%, #00000033 72.4%, #00000000 100%);\n --mds-color-theme-gradientdivider-vertical-hover: linear-gradient(0deg, #00000000 0%, #00000099 22.4%, #00000099 72.4%, #00000000 100%);\n --mds-color-theme-focus-default-0: #ffffff;\n --mds-color-theme-focus-default-1: #1170cf;\n --mds-color-theme-focus-default-2: #1170cf59;\n}\n.mds-typography {\n --mds-font-lineheight-base: 1rem;\n --mds-font-lineheight-body-small: 1rem;\n --mds-font-lineheight-body-midsize: 1.25rem;\n --mds-font-lineheight-body-large: 1.5rem;\n --mds-font-lineheight-heading-small: 1.75rem;\n --mds-font-lineheight-heading-midsize: 2rem;\n --mds-font-lineheight-heading-large: 2.5rem;\n --mds-font-lineheight-heading-xlarge: 3.25rem;\n --mds-font-lineheight-headline-small: 4rem;\n --mds-font-family-primary: Momentum, Inter, Arial, Helvetica Neue, Helvetica, sans-serif;\n --mds-font-weight-light: 300;\n --mds-font-weight-regular: 400;\n --mds-font-weight-medium: 500;\n --mds-font-weight-bold: 700;\n --mds-font-size-base: 1rem;\n --mds-font-size-body-small: 0.75rem;\n --mds-font-size-body-midsize: 0.875rem;\n --mds-font-size-body-large: 1rem;\n --mds-font-size-heading-small: 1.25rem;\n --mds-font-size-heading-midsize: 1.5rem;\n --mds-font-size-heading-large: 2rem;\n --mds-font-size-heading-xlarge: 2.5rem;\n --mds-font-size-headline-small: 3.25rem;\n --mds-font-text-transform-none: none;\n --mds-font-text-transform-uppercase: uppercase;\n --mds-font-text-transform-lowercase: lowercase;\n --mds-font-text-transform-titlecase: titlecase;\n --mds-font-decoration-underline: underline;\n --mds-font-decoration-none: none;\n --mds-font-apps-body-small-regular-font-family: Momentum, Inter, Arial, Helvetica Neue, Helvetica, sans-serif;\n --mds-font-apps-body-small-regular-font-weight: 400;\n --mds-font-apps-body-small-regular-line-height: 1rem;\n --mds-font-apps-body-small-regular-font-size: 0.75rem;\n --mds-font-apps-body-small-regular-text-case: none;\n --mds-font-apps-body-small-regular-text-decoration: none;\n --mds-font-apps-body-small-regular-underline-font-family: Momentum, Inter, Arial, Helvetica Neue, Helvetica, sans-serif;\n --mds-font-apps-body-small-regular-underline-font-weight: 400;\n --mds-font-apps-body-small-regular-underline-line-height: 1rem;\n --mds-font-apps-body-small-regular-underline-font-size: 0.75rem;\n --mds-font-apps-body-small-regular-underline-text-case: none;\n --mds-font-apps-body-small-regular-underline-text-decoration: underline;\n --mds-font-apps-body-small-medium-font-family: Momentum, Inter, Arial, Helvetica Neue, Helvetica, sans-serif;\n --mds-font-apps-body-small-medium-font-weight: 500;\n --mds-font-apps-body-small-medium-line-height: 1rem;\n --mds-font-apps-body-small-medium-font-size: 0.75rem;\n --mds-font-apps-body-small-medium-text-case: none;\n --mds-font-apps-body-small-medium-text-decoration: none;\n --mds-font-apps-body-small-medium-underline-font-family: Momentum, Inter, Arial, Helvetica Neue, Helvetica, sans-serif;\n --mds-font-apps-body-small-medium-underline-font-weight: 500;\n --mds-font-apps-body-small-medium-underline-line-height: 1rem;\n --mds-font-apps-body-small-medium-underline-font-size: 0.75rem;\n --mds-font-apps-body-small-medium-underline-text-case: none;\n --mds-font-apps-body-small-medium-underline-text-decoration: underline;\n --mds-font-apps-body-small-bold-font-family: Momentum, Inter, Arial, Helvetica Neue, Helvetica, sans-serif;\n --mds-font-apps-body-small-bold-font-weight: 700;\n --mds-font-apps-body-small-bold-line-height: 1rem;\n --mds-font-apps-body-small-bold-font-size: 0.75rem;\n --mds-font-apps-body-small-bold-text-case: none;\n --mds-font-apps-body-small-bold-text-decoration: none;\n --mds-font-apps-body-midsize-regular-font-family: Momentum, Inter, Arial, Helvetica Neue, Helvetica, sans-serif;\n --mds-font-apps-body-midsize-regular-font-weight: 400;\n --mds-font-apps-body-midsize-regular-line-height: 1.25rem;\n --mds-font-apps-body-midsize-regular-font-size: 0.875rem;\n --mds-font-apps-body-midsize-regular-text-case: none;\n --mds-font-apps-body-midsize-regular-text-decoration: none;\n --mds-font-apps-body-midsize-regular-underline-font-family: Momentum, Inter, Arial, Helvetica Neue, Helvetica, sans-serif;\n --mds-font-apps-body-midsize-regular-underline-font-weight: 400;\n --mds-font-apps-body-midsize-regular-underline-line-height: 1.25rem;\n --mds-font-apps-body-midsize-regular-underline-font-size: 0.875rem;\n --mds-font-apps-body-midsize-regular-underline-text-case: none;\n --mds-font-apps-body-midsize-regular-underline-text-decoration: underline;\n --mds-font-apps-body-midsize-medium-font-family: Momentum, Inter, Arial, Helvetica Neue, Helvetica, sans-serif;\n --mds-font-apps-body-midsize-medium-font-weight: 500;\n --mds-font-apps-body-midsize-medium-line-height: 1.25rem;\n --mds-font-apps-body-midsize-medium-font-size: 0.875rem;\n --mds-font-apps-body-midsize-medium-text-case: none;\n --mds-font-apps-body-midsize-medium-text-decoration: none;\n --mds-font-apps-body-midsize-medium-underline-font-family: Momentum, Inter, Arial, Helvetica Neue, Helvetica, sans-serif;\n --mds-font-apps-body-midsize-medium-underline-font-weight: 500;\n --mds-font-apps-body-midsize-medium-underline-line-height: 1.25rem;\n --mds-font-apps-body-midsize-medium-underline-font-size: 0.875rem;\n --mds-font-apps-body-midsize-medium-underline-text-case: none;\n --mds-font-apps-body-midsize-medium-underline-text-decoration: underline;\n --mds-font-apps-body-midsize-bold-font-family: Momentum, Inter, Arial, Helvetica Neue, Helvetica, sans-serif;\n --mds-font-apps-body-midsize-bold-font-weight: 700;\n --mds-font-apps-body-midsize-bold-line-height: 1.25rem;\n --mds-font-apps-body-midsize-bold-font-size: 0.875rem;\n --mds-font-apps-body-midsize-bold-text-case: none;\n --mds-font-apps-body-midsize-bold-text-decoration: none;\n --mds-font-apps-body-large-regular-font-family: Momentum, Inter, Arial, Helvetica Neue, Helvetica, sans-serif;\n --mds-font-apps-body-large-regular-font-weight: 400;\n --mds-font-apps-body-large-regular-line-height: 1.5rem;\n --mds-font-apps-body-large-regular-font-size: 1rem;\n --mds-font-apps-body-large-regular-text-case: none;\n --mds-font-apps-body-large-regular-text-decoration: none;\n --mds-font-apps-body-large-regular-underline-font-family: Momentum, Inter, Arial, Helvetica Neue, Helvetica, sans-serif;\n --mds-font-apps-body-large-regular-underline-font-weight: 400;\n --mds-font-apps-body-large-regular-underline-line-height: 1.5rem;\n --mds-font-apps-body-large-regular-underline-font-size: 1rem;\n --mds-font-apps-body-large-regular-underline-text-case: none;\n --mds-font-apps-body-large-regular-underline-text-decoration: underline;\n --mds-font-apps-body-large-medium-font-family: Momentum, Inter, Arial, Helvetica Neue, Helvetica, sans-serif;\n --mds-font-apps-body-large-medium-font-weight: 500;\n --mds-font-apps-body-large-medium-line-height: 1.5rem;\n --mds-font-apps-body-large-medium-font-size: 1rem;\n --mds-font-apps-body-large-medium-text-case: none;\n --mds-font-apps-body-large-medium-text-decoration: none;\n --mds-font-apps-body-large-medium-underline-font-family: Momentum, Inter, Arial, Helvetica Neue, Helvetica, sans-serif;\n --mds-font-apps-body-large-medium-underline-font-weight: 500;\n --mds-font-apps-body-large-medium-underline-line-height: 1.5rem;\n --mds-font-apps-body-large-medium-underline-font-size: 1rem;\n --mds-font-apps-body-large-medium-underline-text-case: none;\n --mds-font-apps-body-large-medium-underline-text-decoration: underline;\n --mds-font-apps-body-large-bold-font-family: Momentum, Inter, Arial, Helvetica Neue, Helvetica, sans-serif;\n --mds-font-apps-body-large-bold-font-weight: 700;\n --mds-font-apps-body-large-bold-line-height: 1.5rem;\n --mds-font-apps-body-large-bold-font-size: 1rem;\n --mds-font-apps-body-large-bold-text-case: none;\n --mds-font-apps-body-large-bold-text-decoration: none;\n --mds-font-apps-heading-small-regular-font-family: Momentum, Inter, Arial, Helvetica Neue, Helvetica, sans-serif;\n --mds-font-apps-heading-small-regular-font-weight: 400;\n --mds-font-apps-heading-small-regular-line-height: 1.75rem;\n --mds-font-apps-heading-small-regular-font-size: 1.25rem;\n --mds-font-apps-heading-small-regular-text-case: none;\n --mds-font-apps-heading-small-regular-text-decoration: none;\n --mds-font-apps-heading-small-medium-font-family: Momentum, Inter, Arial, Helvetica Neue, Helvetica, sans-serif;\n --mds-font-apps-heading-small-medium-font-weight: 500;\n --mds-font-apps-heading-small-medium-line-height: 1.75rem;\n --mds-font-apps-heading-small-medium-font-size: 1.25rem;\n --mds-font-apps-heading-small-medium-text-case: none;\n --mds-font-apps-heading-small-medium-text-decoration: none;\n --mds-font-apps-heading-small-bold-font-family: Momentum, Inter, Arial, Helvetica Neue, Helvetica, sans-serif;\n --mds-font-apps-heading-small-bold-font-weight: 700;\n --mds-font-apps-heading-small-bold-line-height: 1.75rem;\n --mds-font-apps-heading-small-bold-font-size: 1.25rem;\n --mds-font-apps-heading-small-bold-text-case: none;\n --mds-font-apps-heading-small-bold-text-decoration: none;\n --mds-font-apps-heading-midsize-regular-font-family: Momentum, Inter, Arial, Helvetica Neue, Helvetica, sans-serif;\n --mds-font-apps-heading-midsize-regular-font-weight: 400;\n --mds-font-apps-heading-midsize-regular-line-height: 2rem;\n --mds-font-apps-heading-midsize-regular-font-size: 1.5rem;\n --mds-font-apps-heading-midsize-regular-text-case: none;\n --mds-font-apps-heading-midsize-regular-text-decoration: none;\n --mds-font-apps-heading-midsize-medium-font-family: Momentum, Inter, Arial, Helvetica Neue, Helvetica, sans-serif;\n --mds-font-apps-heading-midsize-medium-font-weight: 500;\n --mds-font-apps-heading-midsize-medium-line-height: 2rem;\n --mds-font-apps-heading-midsize-medium-font-size: 1.5rem;\n --mds-font-apps-heading-midsize-medium-text-case: none;\n --mds-font-apps-heading-midsize-medium-text-decoration: none;\n --mds-font-apps-heading-midsize-bold-font-family: Momentum, Inter, Arial, Helvetica Neue, Helvetica, sans-serif;\n --mds-font-apps-heading-midsize-bold-font-weight: 700;\n --mds-font-apps-heading-midsize-bold-line-height: 2rem;\n --mds-font-apps-heading-midsize-bold-font-size: 1.5rem;\n --mds-font-apps-heading-midsize-bold-text-case: none;\n --mds-font-apps-heading-midsize-bold-text-decoration: none;\n --mds-font-apps-heading-large-regular-font-family: Momentum, Inter, Arial, Helvetica Neue, Helvetica, sans-serif;\n --mds-font-apps-heading-large-regular-font-weight: 400;\n --mds-font-apps-heading-large-regular-line-height: 2.5rem;\n --mds-font-apps-heading-large-regular-font-size: 2rem;\n --mds-font-apps-heading-large-regular-text-case: none;\n --mds-font-apps-heading-large-regular-text-decoration: none;\n --mds-font-apps-heading-large-medium-font-family: Momentum, Inter, Arial, Helvetica Neue, Helvetica, sans-serif;\n --mds-font-apps-heading-large-medium-font-weight: 500;\n --mds-font-apps-heading-large-medium-line-height: 2.5rem;\n --mds-font-apps-heading-large-medium-font-size: 2rem;\n --mds-font-apps-heading-large-medium-text-case: none;\n --mds-font-apps-heading-large-medium-text-decoration: none;\n --mds-font-apps-heading-large-bold-font-family: Momentum, Inter, Arial, Helvetica Neue, Helvetica, sans-serif;\n --mds-font-apps-heading-large-bold-font-weight: 700;\n --mds-font-apps-heading-large-bold-line-height: 2.5rem;\n --mds-font-apps-heading-large-bold-font-size: 2rem;\n --mds-font-apps-heading-large-bold-text-case: none;\n --mds-font-apps-heading-large-bold-text-decoration: none;\n --mds-font-apps-heading-xlarge-regular-font-family: Momentum, Inter, Arial, Helvetica Neue, Helvetica, sans-serif;\n --mds-font-apps-heading-xlarge-regular-font-weight: 400;\n --mds-font-apps-heading-xlarge-regular-line-height: 3.25rem;\n --mds-font-apps-heading-xlarge-regular-font-size: 2.5rem;\n --mds-font-apps-heading-xlarge-regular-text-case: none;\n --mds-font-apps-heading-xlarge-regular-text-decoration: none;\n --mds-font-apps-heading-xlarge-medium-font-family: Momentum, Inter, Arial, Helvetica Neue, Helvetica, sans-serif;\n --mds-font-apps-heading-xlarge-medium-font-weight: 500;\n --mds-font-apps-heading-xlarge-medium-line-height: 3.25rem;\n --mds-font-apps-heading-xlarge-medium-font-size: 2.5rem;\n --mds-font-apps-heading-xlarge-medium-text-case: none;\n --mds-font-apps-heading-xlarge-medium-text-decoration: none;\n --mds-font-apps-heading-xlarge-bold-font-family: Momentum, Inter, Arial, Helvetica Neue, Helvetica, sans-serif;\n --mds-font-apps-heading-xlarge-bold-font-weight: 700;\n --mds-font-apps-heading-xlarge-bold-line-height: 3.25rem;\n --mds-font-apps-heading-xlarge-bold-font-size: 2.5rem;\n --mds-font-apps-heading-xlarge-bold-text-case: none;\n --mds-font-apps-heading-xlarge-bold-text-decoration: none;\n --mds-font-apps-headline-small-light-font-family: Momentum, Inter, Arial, Helvetica Neue, Helvetica, sans-serif;\n --mds-font-apps-headline-small-light-font-weight: 300;\n --mds-font-apps-headline-small-light-font-size: 3.25rem;\n --mds-font-apps-headline-small-light-line-height: 4rem;\n --mds-font-apps-headline-small-light-text-decoration: none;\n --mds-font-apps-headline-small-light-text-case: none;\n --mds-font-apps-headline-small-regular-font-family: Momentum, Inter, Arial, Helvetica Neue, Helvetica, sans-serif;\n --mds-font-apps-headline-small-regular-font-weight: 400;\n --mds-font-apps-headline-small-regular-font-size: 3.25rem;\n --mds-font-apps-headline-small-regular-line-height: 4rem;\n --mds-font-apps-headline-small-regular-text-decoration: none;\n --mds-font-apps-headline-small-regular-text-case: none;\n}\n.mds-effect {\n --mds-effect-backdrop-filter: blur(10px);\n}\n.mds-elevation {\n --mds-elevation-1: drop-shadow(0px 2px 8px rgba(0,0,0,0.2));\n --mds-elevation-2: drop-shadow(0px 4px 16px rgba(0,0,0,0.2));\n --mds-elevation-3: drop-shadow(0px 6px 24px rgba(0,0,0,0.25));\n --mds-elevation-4: drop-shadow(0px 12px 48px rgba(0,0,0,0.25));\n}\n",""]);const s=a},611:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(63),o=n.n(r),i=n(248),a=n.n(i)()(o());a.push([e.id,".light-theme.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}.light-theme .sectionBox{padding:10px;border:1px solid #ddd;border-radius:8px}.light-theme .fieldset{border:1px solid #ccc;border-radius:5px;padding:10px;margin-bottom:20px;position:relative}.light-theme .legendBox{font-weight:bold;color:#0052bf}.light-theme .btn{padding:10px 20px;background-color:#0052bf;color:#fff;border:none;border-radius:4px;cursor:pointer;transition:background-color .3s;margin-right:8px}.light-theme .select{width:100%;padding:8px;margin-top:8px;margin-bottom:12px;border:1px solid #ccc;border-radius:4px}.light-theme .input{width:97%;padding:8px;margin-top:8px;margin-bottom:12px;border:1px solid #ccc;border-radius:4px}.light-theme .elapsedTime{position:absolute;right:30px;top:25px;color:#000}.light-theme .elapsedTime-disabled{color:#ccc}.dark-theme.box{background-color:#1e1e1e;border-radius:8px;box-shadow:0 2px 4px rgba(0,0,0,.5);padding:20px;max-width:800px;margin:0 auto}.dark-theme .sectionBox{padding:10px;border:1px solid #444;border-radius:8px}.dark-theme .fieldset{border:1px solid #555;border-radius:5px;padding:10px;margin-bottom:20px;position:relative}.dark-theme .legendBox{font-weight:bold;color:#79a6d2}.dark-theme .btn{padding:10px 20px;background-color:#79a6d2;color:#1e1e1e;border:none;border-radius:4px;cursor:pointer;transition:background-color .3s;margin-right:8px}.dark-theme .select{width:100%;padding:8px;margin-top:8px;margin-bottom:12px;border:1px solid #555;border-radius:4px;background-color:#2a2a2a;color:#fff}.dark-theme .input{width:97%;padding:8px;margin-top:8px;margin-bottom:12px;border:1px solid #555;border-radius:4px;background-color:#2a2a2a;color:#fff}.dark-theme .elapsedTime{position:absolute;right:30px;top:25px;color:#ddd}.dark-theme .elapsedTime-disabled{color:#777}",""]);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,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var c=0;c<e.length;c++){var d=[].concat(e[c]);r&&a[d[0]]||(void 0!==i&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=i),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),o&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=o):d[4]="".concat(o)),t.push(d))}},t}},243:e=>{e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},63:e=>{e.exports=function(e){return e[1]}},378:(e,t,n)=>{n.r(t),n.d(t,{default:()=>g});var r=n(478),o=n.n(r),i=n(135),a=n.n(i),s=n(301),l=n.n(s),c=n(222),d=n.n(c),u=n(626),f=n.n(u),m=n(279),h=n.n(m),p=n(489),v={};v.styleTagTransform=h(),v.setAttributes=d(),v.insert=l().bind(null,"head"),v.domAPI=a(),v.insertStyleElement=f(),o()(p.A,v);const g=p.A&&p.A.locals?p.A.locals:void 0},576:(e,t,n)=>{n.r(t),n.d(t,{default:()=>g});var r=n(478),o=n.n(r),i=n(135),a=n.n(i),s=n(301),l=n.n(s),c=n(222),d=n.n(c),u=n(626),f=n.n(u),m=n(279),h=n.n(m),p=n(245),v={};v.styleTagTransform=h(),v.setAttributes=d(),v.insert=l().bind(null,"head"),v.domAPI=a(),v.insertStyleElement=f(),o()(p.A,v);const g=p.A&&p.A.locals?p.A.locals:void 0},126:(e,t,n)=>{n.r(t),n.d(t,{default:()=>g});var r=n(478),o=n.n(r),i=n(135),a=n.n(i),s=n(301),l=n.n(s),c=n(222),d=n.n(c),u=n(626),f=n.n(u),m=n(279),h=n.n(m),p=n(611),v={};v.styleTagTransform=h(),v.setAttributes=d(),v.insert=l().bind(null,"head"),v.domAPI=a(),v.insertStyleElement=f(),o()(p.A,v);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 i={},a=[],s=0;s<e.length;s++){var l=e[s],c=r.base?l[0]+r.base:l[0],d=i[c]||0,u="".concat(c," ").concat(d);i[c]=d+1;var f=n(u),m={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==f)t[f].references++,t[f].updater(m);else{var h=o(m,r);r.byIndex=s,t.splice(s,0,{identifier:u,updater:h,references:1})}a.push(u)}return a}function o(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,o){var i=r(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var s=n(i[a]);t[s].references--}for(var l=r(e,o),c=0;c<i.length;c++){var d=n(i[c]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}i=l}}},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 o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),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))}}},637: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 o=r(n(953)),i=n(185),a=n(417);n(126),t.default=e=>{const{idleCodes:t,setAgentStatus:n,isSettingAgentStatus:r,errorMessage:s,elapsedTime:l,currentState:c,currentTheme:d}=e;return o.default.createElement("div",{className:"box "+("DARK"===d?"dark-theme":"light-theme")},o.default.createElement("section",{className:"sectionBox"},o.default.createElement("fieldset",{className:"fieldset"},o.default.createElement("legend",{"data-testid":"user-state-title",className:"legendBox"},"Agent State"),o.default.createElement("div",{style:{display:"flex",flexDirection:"column",flexGrow:1}}),o.default.createElement("select",{id:"idleCodes",value:c,className:"select",onChange:e=>{const r=null==t?void 0:t.filter((t=>t.id===e.target.value))[0];n(r)},disabled:r},null==t?void 0:t.filter((e=>!e.isSystem)).map((e=>o.default.createElement("option",{key:e.id,value:e.id},e.name)))),o.default.createElement(a.Button,{variant:"primary",size:32,color:"default","prefix-icon":"","postfix-icon":"",type:"button",role:"button","aria-label":""},"Click Me"),o.default.createElement("div",{className:"elapsedTime "+(r?"elapsedTime-disabled":"")},(0,i.formatTime)(l)),s&&o.default.createElement("div",{style:{color:"red"}},s))))}},156: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.UserStateComponent=void 0;const o=r(n(637));t.UserStateComponent=o.default,n(378),n(576)},185:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatTime=void 0,t.formatTime=e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=e%60;return`${t.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}`}},28:(e,t,n)=>{e.exports=n.p+"fonts/Inter.var.woff2"},953:e=>{e.exports=n(953)},603:(e,t,n)=>{n.d(t,{G:()=>i,DT:()=>l,q6:()=>o});class r extends Event{constructor(e,t,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.callback=t,this.subscribe=n??!1}}function o(e){return e}class i{constructor(e,t,n,r){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(e,t)=>{this.unsubscribe&&(this.unsubscribe!==t&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=e,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(e,t)),this.unsubscribe=t},this.host=e,void 0!==t.context){const e=t;this.context=e.context,this.callback=e.callback,this.subscribe=e.subscribe??!1}else this.context=t,this.callback=n,this.subscribe=r??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new r(this.context,this.t,this.subscribe))}}class a{get value(){return this.o}set value(e){this.setValue(e)}setValue(e,t=!1){const n=t||!Object.is(e,this.o);this.o=e,n&&this.updateObservers()}constructor(e){this.subscriptions=new Map,this.updateObservers=()=>{for(const[e,{disposer:t}]of this.subscriptions)e(this.o,t)},void 0!==e&&(this.value=e)}addCallback(e,t,n){if(!n)return void e(this.value);this.subscriptions.has(e)||this.subscriptions.set(e,{disposer:()=>{this.subscriptions.delete(e)},consumerHost:t});const{disposer:r}=this.subscriptions.get(e);e(this.value,r)}clearCallbacks(){this.subscriptions.clear()}}class s extends Event{constructor(e){super("context-provider",{bubbles:!0,composed:!0}),this.context=e}}class l extends a{constructor(e,t,n){super(void 0!==t.context?t.initialValue:n),this.onContextRequest=e=>{const t=e.composedPath()[0];e.context===this.context&&t!==this.host&&(e.stopPropagation(),this.addCallback(e.callback,t,e.subscribe))},this.onProviderRequest=e=>{const t=e.composedPath()[0];if(e.context!==this.context||t===this.host)return;const n=new Set;for(const[e,{consumerHost:t}]of this.subscriptions)n.has(e)||(n.add(e),t.dispatchEvent(new r(this.context,e,!0)));e.stopPropagation()},this.host=e,void 0!==t.context?this.context=t.context:this.context=t,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new s(this.context))}}},934:(e,t,n)=>{n.d(t,{mN:()=>k,AH:()=>l,W3:()=>x,Ec:()=>w});const r=globalThis,o=r.ShadowRoot&&(void 0===r.ShadyCSS||r.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),a=new WeakMap;class s{constructor(e,t,n){if(this._$cssResult$=!0,n!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(o&&void 0===e){const n=void 0!==t&&1===t.length;n&&(e=a.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&a.set(t,e))}return e}toString(){return this.cssText}}const l=(e,...t)=>{const n=1===e.length?e[0]:t.reduce(((t,n,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+e[r+1]),e[0]);return new s(n,e,i)},c=o?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return(e=>new s("string"==typeof e?e:e+"",void 0,i))(t)})(e):e,{is:d,defineProperty:u,getOwnPropertyDescriptor:f,getOwnPropertyNames:m,getOwnPropertySymbols:h,getPrototypeOf:p}=Object,v=globalThis,g=v.trustedTypes,b=g?g.emptyScript:"",y=v.reactiveElementPolyfillSupport,_=(e,t)=>e,x={toAttribute(e,t){switch(t){case Boolean:e=e?b:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch(e){n=null}}return n}},w=(e,t)=>!d(e,t),O={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:w};Symbol.metadata??=Symbol("metadata"),v.litPropertyMetadata??=new WeakMap;class k extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=O){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const n=Symbol(),r=this.getPropertyDescriptor(e,n,t);void 0!==r&&u(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){const{get:r,set:o}=f(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get(){return r?.call(this)},set(t){const i=r?.call(this);o.call(this,t),this.requestUpdate(e,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??O}static _$Ei(){if(this.hasOwnProperty(_("elementProperties")))return;const e=p(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(_("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(_("properties"))){const e=this.properties,t=[...m(e),...h(e)];for(const n of t)this.createProperty(n,e[n])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,n]of t)this.elementProperties.set(e,n)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const n=this._$Eu(e,t);void 0!==n&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const e of n)t.unshift(c(e))}else void 0!==e&&t.push(c(e));return t}static _$Eu(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{if(o)e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const n of t){const t=document.createElement("style"),o=r.litNonce;void 0!==o&&t.setAttribute("nonce",o),t.textContent=n.cssText,e.appendChild(t)}})(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EC(e,t){const n=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,n);if(void 0!==r&&!0===n.reflect){const o=(void 0!==n.converter?.toAttribute?n.converter:x).toAttribute(t,n.type);this._$Em=e,null==o?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(e,t){const n=this.constructor,r=n._$Eh.get(e);if(void 0!==r&&this._$Em!==r){const e=n.getPropertyOptions(r),o="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:x;this._$Em=r,this[r]=o.fromAttribute(t,e.type),this._$Em=null}}requestUpdate(e,t,n){if(void 0!==e){if(n??=this.constructor.getPropertyOptions(e),!(n.hasChanged??w)(this[e],t))return;this.P(e,t,n)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(e,t,n){this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,n]of e)!0!==n.wrapped||this._$AL.has(t)||void 0===this[t]||this.P(t,this[t],n)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((e=>e.hostUpdate?.())),this.update(t)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach((e=>this._$EC(e,this[e]))),this._$EU()}updated(e){}firstUpdated(e){}}k.elementStyles=[],k.shadowRootOptions={mode:"open"},k[_("elementProperties")]=new Map,k[_("finalized")]=new Map,y?.({ReactiveElement:k}),(v.reactiveElementVersions??=[]).push("2.0.4")},452:(e,t,n)=>{n.d(t,{XX:()=>B,c0:()=>k,qy:()=>O,s6:()=>S});const r=globalThis,o=r.trustedTypes,i=o?o.createPolicy("lit-html",{createHTML:e=>e}):void 0,a="$lit$",s=`lit$${Math.random().toFixed(9).slice(2)}$`,l="?"+s,c=`<${l}>`,d=document,u=()=>d.createComment(""),f=e=>null===e||"object"!=typeof e&&"function"!=typeof e,m=Array.isArray,h="[ \t\n\f\r]",p=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,g=/>/g,b=RegExp(`>|${h}(?:([^\\s"'>=/]+)(${h}*=${h}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),y=/'/g,_=/"/g,x=/^(?:script|style|textarea|title)$/i,w=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),O=w(1),k=(w(2),w(3),Symbol.for("lit-noChange")),S=Symbol.for("lit-nothing"),A=new WeakMap,E=d.createTreeWalker(d,129);function T(e,t){if(!m(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==i?i.createHTML(t):t}const j=(e,t)=>{const n=e.length-1,r=[];let o,i=2===t?"<svg>":3===t?"<math>":"",l=p;for(let t=0;t<n;t++){const n=e[t];let d,u,f=-1,m=0;for(;m<n.length&&(l.lastIndex=m,u=l.exec(n),null!==u);)m=l.lastIndex,l===p?"!--"===u[1]?l=v:void 0!==u[1]?l=g:void 0!==u[2]?(x.test(u[2])&&(o=RegExp("</"+u[2],"g")),l=b):void 0!==u[3]&&(l=b):l===b?">"===u[0]?(l=o??p,f=-1):void 0===u[1]?f=-2:(f=l.lastIndex-u[2].length,d=u[1],l=void 0===u[3]?b:'"'===u[3]?_:y):l===_||l===y?l=b:l===v||l===g?l=p:(l=b,o=void 0);const h=l===b&&e[t+1].startsWith("/>")?" ":"";i+=l===p?n+c:f>=0?(r.push(d),n.slice(0,f)+a+n.slice(f)+s+h):n+s+(-2===f?t:h)}return[T(e,i+(e[n]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),r]};class P{constructor({strings:e,_$litType$:t},n){let r;this.parts=[];let i=0,c=0;const d=e.length-1,f=this.parts,[m,h]=j(e,t);if(this.el=P.createElement(m,n),E.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(r=E.nextNode())&&f.length<d;){if(1===r.nodeType){if(r.hasAttributes())for(const e of r.getAttributeNames())if(e.endsWith(a)){const t=h[c++],n=r.getAttribute(e).split(s),o=/([.?@])?(.*)/.exec(t);f.push({type:1,index:i,name:o[2],strings:n,ctor:"."===o[1]?N:"?"===o[1]?I:"@"===o[1]?L:M}),r.removeAttribute(e)}else e.startsWith(s)&&(f.push({type:6,index:i}),r.removeAttribute(e));if(x.test(r.tagName)){const e=r.textContent.split(s),t=e.length-1;if(t>0){r.textContent=o?o.emptyScript:"";for(let n=0;n<t;n++)r.append(e[n],u()),E.nextNode(),f.push({type:2,index:++i});r.append(e[t],u())}}}else if(8===r.nodeType)if(r.data===l)f.push({type:2,index:i});else{let e=-1;for(;-1!==(e=r.data.indexOf(s,e+1));)f.push({type:7,index:i}),e+=s.length-1}i++}}static createElement(e,t){const n=d.createElement("template");return n.innerHTML=e,n}}function R(e,t,n=e,r){if(t===k)return t;let o=void 0!==r?n._$Co?.[r]:n._$Cl;const i=f(t)?void 0:t._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(!1),void 0===i?o=void 0:(o=new i(e),o._$AT(e,n,r)),void 0!==r?(n._$Co??=[])[r]=o:n._$Cl=o),void 0!==o&&(t=R(e,o._$AS(e,t.values),o,r)),t}class C{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:n}=this._$AD,r=(e?.creationScope??d).importNode(t,!0);E.currentNode=r;let o=E.nextNode(),i=0,a=0,s=n[0];for(;void 0!==s;){if(i===s.index){let t;2===s.type?t=new z(o,o.nextSibling,this,e):1===s.type?t=new s.ctor(o,s.name,s.strings,this,e):6===s.type&&(t=new D(o,this,e)),this._$AV.push(t),s=n[++a]}i!==s?.index&&(o=E.nextNode(),i++)}return E.currentNode=d,r}p(e){let t=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}}class z{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,r){this.type=2,this._$AH=S,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=R(this,e,t),f(e)?e===S||null==e||""===e?(this._$AH!==S&&this._$AR(),this._$AH=S):e!==this._$AH&&e!==k&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):(e=>m(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==S&&f(this._$AH)?this._$AA.nextSibling.data=e:this.T(d.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:n}=e,r="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=P.createElement(T(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(t);else{const e=new C(r,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=A.get(e.strings);return void 0===t&&A.set(e.strings,t=new P(e)),t}k(e){m(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,r=0;for(const o of e)r===t.length?t.push(n=new z(this.O(u()),this.O(u()),this,this.options)):n=t[r],n._$AI(o),r++;r<t.length&&(this._$AR(n&&n._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class M{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,o){this.type=1,this._$AH=S,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=o,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=S}_$AI(e,t=this,n,r){const o=this.strings;let i=!1;if(void 0===o)e=R(this,e,t,0),i=!f(e)||e!==this._$AH&&e!==k,i&&(this._$AH=e);else{const r=e;let a,s;for(e=o[0],a=0;a<o.length-1;a++)s=R(this,r[n+a],t,a),s===k&&(s=this._$AH[a]),i||=!f(s)||s!==this._$AH[a],s===S?e=S:e!==S&&(e+=(s??"")+o[a+1]),this._$AH[a]=s}i&&!r&&this.j(e)}j(e){e===S?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class N extends M{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===S?void 0:e}}class I extends M{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==S)}}class L extends M{constructor(e,t,n,r,o){super(e,t,n,r,o),this.type=5}_$AI(e,t=this){if((e=R(this,e,t,0)??S)===k)return;const n=this._$AH,r=e===S&&n!==S||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==S&&(n===S||r);r&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class D{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){R(this,e)}}const V=r.litHtmlPolyfillSupport;V?.(P,z),(r.litHtmlVersions??=[]).push("3.2.1");const B=(e,t,n)=>{const r=n?.renderBefore??t;let o=r._$litPart$;if(void 0===o){const e=n?.renderBefore??null;r._$litPart$=o=new z(t.insertBefore(u(),e),e,void 0,n??{})}return o._$AI(e),o}},477:(e,t,n)=>{n.d(t,{MZ:()=>a,wk:()=>s});var r=n(934);const o={attribute:!0,type:String,converter:r.W3,reflect:!1,hasChanged:r.Ec},i=(e=o,t,n)=>{const{kind:r,metadata:i}=n;let a=globalThis.litPropertyMetadata.get(i);if(void 0===a&&globalThis.litPropertyMetadata.set(i,a=new Map),a.set(n.name,e),"accessor"===r){const{name:r}=n;return{set(n){const o=t.get.call(this);t.set.call(this,n),this.requestUpdate(r,o,e)},init(t){return void 0!==t&&this.P(r,void 0,e),t}}}if("setter"===r){const{name:r}=n;return function(n){const o=this[r];t.call(this,n),this.requestUpdate(r,o,e)}}throw Error("Unsupported decorator location: "+r)};function a(e){return(t,n)=>"object"==typeof n?i(e,t,n):((e,t,n)=>{const r=t.hasOwnProperty(n);return t.constructor.createProperty(n,r?{...e,wrapped:!0}:e),r?Object.getOwnPropertyDescriptor(t,n):void 0})(e,t,n)}function s(e){return a({...e,state:!0,attribute:!1})}},918:(e,t,n)=>{n.d(t,{WF:()=>i,AH:()=>r.AH,qy:()=>o.qy,s6:()=>o.s6});var r=n(934),o=n(452);class i extends r.mN{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=(0,o.XX)(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return o.c0}}i._$litElement$=!0,i.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:i});const a=globalThis.litElementPolyfillSupport;a?.({LitElement:i}),(globalThis.litElementVersions??=[]).push("4.1.1")}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var i=r[e]={id:e,exports:{}};return t[e].call(i.exports,i,i.exports,o),i.exports}o.m=t,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.p="",o.b=document.baseURI||self.location.href,o.nc=void 0;var i=o(156);e.exports=i})()},306:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useUserState=void 0;const o=n(953),i=r(n(768));t.useUserState=({idleCodes:e,agentId:t,cc:n,currentState:r,lastStateChangeTimestamp:a})=>{const[s,l]=(0,o.useState)(!1),[c,d]=(0,o.useState)(""),[u,f]=(0,o.useState)(0),m=(0,o.useRef)(null);return(0,o.useEffect)((()=>{const e=new Blob(["\n let intervalId;\n const startTimer = (startTime) => {\n if (intervalId) clearInterval(intervalId);\n intervalId = setInterval(() => {\n const elapsedTime = Math.floor((Date.now() - startTime) / 1000);\n self.postMessage(elapsedTime);\n }, 1000);\n };\n self.onmessage = (event) => {\n if (event.data.type === 'start' || event.data.type === 'reset') {\n const startTime = event.data.startTime;\n startTimer(startTime);\n }\n };\n "],{type:"application/javascript"}),t=URL.createObjectURL(e);m.current=new Worker(t),m.current.postMessage({type:"start",startTime:Date.now()}),m.current.onmessage=e=>{f(e.data)}}),[]),(0,o.useEffect)((()=>{if(m.current&&a){const e=new Date,t=Math.floor(Math.abs(e.getTime()-a.getTime())/1e3);f(t),m.current.postMessage({type:"reset",startTime:a.getTime()})}}),[a]),{idleCodes:e,setAgentStatus:e=>{const{auxCodeId:r,state:o}={auxCodeId:e.id,state:e.name};l(!0);const a="Available"===o?"Available":"Idle";n.setAgentState({state:a,auxCodeId:r,agentId:t,lastStateChangeReason:o}).then((e=>{i.default.setCurrentState(e.data.auxCodeId),i.default.setLastStateChangeTimestamp(new Date(e.data.lastStateChangeTimestamp))})).catch((e=>{d(e.toString())})).finally((()=>{l(!1)}))},isSettingAgentStatus:s,errorMessage:c,elapsedTime:u,currentState:r}}},994:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.UserState=void 0;const o=r(n(953)),i=r(n(768)),a=n(62),s=n(306),l=n(436),c=(0,a.observer)((()=>{const{cc:e,idleCodes:t,agentId:n,currentTheme:r,currentState:a,lastStateChangeTimestamp:c}=i.default,d=Object.assign(Object.assign({},(0,s.useUserState)({idleCodes:t,agentId:n,cc:e,currentState:a,lastStateChangeTimestamp:c})),{currentTheme:r});return o.default.createElement(l.UserStateComponent,Object.assign({},d))}));t.UserState=c},768:e=>{"use strict";e.exports=n(768)},953:e=>{"use strict";e.exports=n(953)}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var i=r[e]={exports:{}};return t[e].call(i.exports,i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{"use strict";var e=i;Object.defineProperty(e,"__esModule",{value:!0}),e.UserState=void 0;const t=o(994);Object.defineProperty(e,"UserState",{enumerable:!0,get:function(){return t.UserState}})})(),e.exports=i})()},768:e=>{"use strict";e.exports=require("@webex/cc-store")},953:e=>{"use strict";e.exports=require("react")},180:e=>{"use strict";e.exports=require("react-dom")},33:(e,t,n)=>{"use strict";var r=Object.defineProperty,o=(e,t,n)=>(((e,t,n)=>{t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);const i={string:{stringify:e=>e,parse:e=>e},number:{stringify:e=>`${e}`,parse:e=>parseFloat(e)},boolean:{stringify:e=>e?"true":"false",parse:e=>/^[ty1-9]/i.test(e)},function:{stringify:e=>e.name,parse:(e,t,r)=>{const o=typeof window<"u"&&e in window?window[e]:typeof n.g<"u"&&e in n.g?n.g[e]:void 0;return"function"==typeof o?o.bind(r):void 0}},json:{stringify:e=>JSON.stringify(e),parse:e=>JSON.parse(e)}};function a(e){return e.replace(/([a-z0-9])([A-Z])/g,((e,t,n)=>`${t}-${n.toLowerCase()}`))}const s=Symbol.for("r2wc.render"),l=Symbol.for("r2wc.connected"),c=Symbol.for("r2wc.context"),d=Symbol.for("r2wc.props");e.exports=function(e,t,n){var r,u,f;t.props||(t.props=e.propTypes?Object.keys(e.propTypes):[]);const m=Array.isArray(t.props)?t.props.slice():Object.keys(t.props),h={},p={},v={};for(const e of m){h[e]=Array.isArray(t.props)?"string":t.props[e];const n=a(e);p[e]=n,v[n]=e}class g extends HTMLElement{constructor(){super(),o(this,r,!0),o(this,u),o(this,f,{}),o(this,"container"),t.shadow?this.container=this.attachShadow({mode:t.shadow}):this.container=this,this[d].container=this.container;for(const e of m){const t=p[e],n=this.getAttribute(t),r=h[e],o=r?i[r]:null;null!=o&&o.parse&&n&&(this[d][e]=o.parse(n,t,this))}}static get observedAttributes(){return Object.keys(v)}connectedCallback(){this[l]=!0,this[s]()}disconnectedCallback(){this[l]=!1,this[c]&&n.unmount(this[c]),delete this[c]}attributeChangedCallback(e,t,n){const r=v[e],o=h[r],a=o?i[o]:null;r in h&&null!=a&&a.parse&&n&&(this[d][r]=a.parse(n,e,this),this[s]())}[(r=l,u=c,f=d,s)](){this[l]&&(this[c]?n.update(this[c],this[d]):this[c]=n.mount(this.container,e,this[d]))}}for(const e of m){const t=p[e],n=h[e];Object.defineProperty(g.prototype,e,{enumerable:!0,configurable:!0,get(){return this[d][e]},set(r){this[d][e]=r;const o=n?i[n]:null;if(null!=o&&o.stringify){const e=o.stringify(r,t,this);this.getAttribute(t)!==e&&this.setAttribute(t,e)}else this[s]()}})}return g}},77:(e,t,n)=>{"use strict";const r=n(953),o=n(776),i=n(33);function a(e,t,n){const i=o.createRoot(e),a=r.createElement(t,n);return i.render(a),{root:i,ReactComponent:t}}function s({root:e,ReactComponent:t},n){const o=r.createElement(t,n);e.render(o)}function l({root:e}){e.unmount()}e.exports=function(e,t={}){return i(e,t,{mount:a,update:s,unmount:l})}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();var r=n(824);module.exports=r})();
2
+ (()=>{var e={3776:(e,t,n)=>{"use strict";var r=n(180);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},6824:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.store=void 0;const i=r(n(5077)),o=n(7207),a=n(3758),s=r(n(5768));t.store=s.default;const u=n(7032),c=(0,i.default)(a.UserState),l=(0,i.default)(u.IncomingTask,{props:{onAccepted:"function",onDeclined:"function"}}),f=(0,i.default)(u.TaskList,{props:{onTaskAccepted:"function",onTaskDeclined:"function"}});[{name:"widget-cc-user-state",component:c},{name:"widget-cc-station-login",component:(0,i.default)(o.StationLogin,{props:{onLogin:"function",onLogout:"function"}})},{name:"widget-cc-incoming-task",component:l},{name:"widget-cc-task-list",component:f},{name:"widget-cc-call-control",component:(0,i.default)(u.CallControl,{props:{onHoldResume:"function",onEnd:"function",onWrapup:"function"}})}].forEach((({name:e,component:t})=>{customElements.get(e)||customElements.define(e,t)}))},7207:(e,t,n)=>{(()=>{"use strict";var t={428:(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}.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}.modal{width:400px;border:none;border-radius:10px;box-shadow:0 4px 8px rgba(0,0,0,.2);padding:20px;text-align:center}.modal-content{display:flex;justify-content:flex-end}.modal::backdrop{background:rgba(0,0,0,.5)}h2{margin-top:0}#ContinueButton{background-color:#0078d4;color:#fff;border:none;padding:10px 20px;border-radius:5px;cursor:pointer;font-size:16px;cursor:pointer}#ContinueButton:hover{background-color:#005a9e}",""]);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 c=0;c<e.length;c++){var l=[].concat(e[c]);r&&a[l[0]]||(void 0!==o&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),t.push(l))}},t}},63:e=>{e.exports=function(e){return e[1]}},62:(e,t,r)=>{function i(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)}r.r(t),r.d(t,{Observer:()=>Lr,_observerFinalizationRegistry:()=>Sr,clearTimers:()=>Br,enableStaticRendering:()=>gr,isObserverBatched:()=>pr,isUsingStaticRendering:()=>yr,observer:()=>Mr,observerBatching:()=>vr,useAsObservableSource:()=>Nr,useLocalObservable:()=>Dr,useLocalStore:()=>Vr,useObserver:()=>Ir,useStaticRendering:()=>Ur});var o={};function a(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:o}var s=Object.assign,u=Object.getOwnPropertyDescriptor,c=Object.defineProperty,l=Object.prototype,f=[];Object.freeze(f);var d={};Object.freeze(d);var h="undefined"!=typeof Proxy,v=Object.toString();function p(){h||i("Proxy not available")}function _(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var b=function(){};function g(e){return"function"==typeof e}function y(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function m(e){return null!==e&&"object"==typeof e}function O(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()===v}function w(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function S(e,t,n){c(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function x(e,t,n){c(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function A(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 j(e){return null!=e&&"[object Set]"===Object.prototype.toString.call(e)}var E=void 0!==Object.getOwnPropertySymbols,T="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:E?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function P(e){return null===e?null:"object"==typeof e?""+e:e}function M(e,t){return l.hasOwnProperty.call(e,t)}var C=Object.getOwnPropertyDescriptors||function(e){var t={};return T(e).forEach((function(n){t[n]=u(e,n)})),t};function R(e,t){return!!(e&t)}function L(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 N(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,G(r.key),r)}}function V(e,t,n){return t&&N(e.prototype,t),n&&N(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function B(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 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 U(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,K(e,t)}function K(e,t){return K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},K(e,t)}function G(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 q=Symbol("mobx-stored-annotations");function z(e){return Object.assign((function(t,n){if(H(n))return e.decorate_20223_(t,n);W(t,n,e)}),e)}function W(e,t,n){M(e,q)||S(e,q,I({},e[q])),function(e){return e.annotationType_===ee}(n)||(e[q][t]=n)}function H(e){return"object"==typeof e&&"string"==typeof e.kind}var F=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_=Je.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(),Ot(this),yt()},t.toString=function(){return this.name_},V(e,[{key:"isBeingObserved",get:function(){return R(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=L(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return R(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=L(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return R(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=L(this.flags_,e.diffValueMask_,1===t)}}])}();$.isBeingObservedMask_=1,$.isPendingUnobservationMask_=2,$.diffValueMask_=4;var X=A("Atom",$);function Y(e,t,n){void 0===t&&(t=b),void 0===n&&(n=b);var r=new $(e);return t!==b&&Gt(It,r,t,void 0),n!==b&&Kt(r,n),r}var J={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 Q(e,t,n){return en(e)?e:Array.isArray(e)?Ne.array(e,{name:n}):O(e)?Ne.object(e,void 0,{name:n}):k(e)?Ne.map(e,{name:n}):j(e)?Ne.set(e,{name:n}):"function"!=typeof e||Vt(e)||Zt(e)?e:w(e)?Jt(e):Nt(n,e)}function Z(e){return e}var ee="override";function te(e,t){return{annotationType_:e,options_:t,make_:ne,extend_:re,decorate_20223_:ie}}function ne(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=oe(e,this,t,n,!1);return c(r,t,o),2}function re(e,t,n,r){var i=oe(e,this,t,n);return e.defineProperty_(t,i,r)}function ie(e,t){var n,r=t.kind,o=t.name,a=t.addInitializer,s=this,u=function(e){var t,n,r,i;return We(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"==r?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"==r?(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 i("Cannot apply '"+s.annotationType_+"' to '"+String(o)+"' (kind: "+r+"):\n'"+s.annotationType_+"' can only be used on properties with a function value.")}function oe(e,t,n,r,i){var o,a,s,u,c,l,f,d;void 0===i&&(i=vt.safeDescriptors),d=r,t.annotationType_,d.value;var h,v=r.value;return null!=(o=t.options_)&&o.bound&&(v=v.bind(null!=(h=e.proxy_)?h:e.target_)),{value:We(null!=(a=null==(s=t.options_)?void 0:s.name)?a:n.toString(),v,null!=(u=null==(c=t.options_)?void 0:c.autoAction)&&u,null!=(l=t.options_)&&l.bound?null!=(f=e.proxy_)?f:e.target_:void 0),configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function ae(e,t){return{annotationType_:e,options_:t,make_:se,extend_:ue,decorate_20223_:ce}}function se(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&&(!M(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 c(r,t,o),2}function ue(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 ce(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=vt.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 fe(e,t){return{annotationType_:e,options_:t,make_:de,extend_:he,decorate_20223_:ve}}function de(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function he(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 ve(e,t){var n=this,r=t.name;return(0,t.addInitializer)((function(){var t=Nn(this)[F],i=I({},n.options_,{get:e,context:this});i.name||(i.name="ObservableObject."+r.toString()),t.values_.set(r,new Ye(i))})),function(){return this[F].getObservablePropValue_(r)}}function pe(e,t){return{annotationType_:e,options_:t,make_:_e,extend_:be,decorate_20223_:ge}}function _e(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function be(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:Q,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=Nn(e)[F],u=new Xe(t,null!=(r=null==(a=n.options_)?void 0:a.enhancer)?r:Q,"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[F].getObservablePropValue_(i)},set:function(e){return o.has(this)||a(this,e),this[F].setObservablePropValue_(i,e)},init:function(e){return o.has(this)||a(this,e),e}}}var ye="true",me=Oe();function Oe(e){return{annotationType_:ye,options_:e,make_:we,extend_:Se,decorate_20223_:xe}}function we(e,t,n,r){var i,o,a,s;if(n.get)return Ue.make_(e,t,n,r);if(n.set){var u=We(t.toString(),n.set);return r===e.target_?null===e.defineProperty_(t,{configurable:!vt.safeDescriptors||e.isPlainObject_,set:u})?0:2:(c(r,t,{configurable:!0,set:u}),2)}if(r!==e.target_&&"function"==typeof n.value)return w(n.value)?(null!=(s=this.options_)&&s.autoBind?Jt.bound:Jt).make_(e,t,n,r):(null!=(a=this.options_)&&a.autoBind?Nt.bound:Nt).make_(e,t,n,r);var l,f=!1===(null==(i=this.options_)?void 0:i.deep)?Ne.ref:Ne;return"function"==typeof n.value&&null!=(o=this.options_)&&o.autoBind&&(n.value=n.value.bind(null!=(l=e.proxy_)?l:e.target_)),f.make_(e,t,n,r)}function Se(e,t,n,r){var i,o,a;return n.get?Ue.extend_(e,t,n,r):n.set?e.defineProperty_(t,{configurable:!vt.safeDescriptors||e.isPlainObject_,set:We(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)?Ne.ref:Ne).extend_(e,t,n,r))}function xe(e,t){i("'"+this.annotationType_+"' cannot be used as a decorator")}var Ae={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function ke(e){return e||Ae}Object.freeze(Ae);var je=pe("observable"),Ee=pe("observable.ref",{enhancer:Z}),Te=pe("observable.shallow",{enhancer:function(e,t,n){return null==e||In(e)||wn(e)||jn(e)||Mn(e)?e:Array.isArray(e)?Ne.array(e,{name:n,deep:!1}):O(e)?Ne.object(e,void 0,{name:n,deep:!1}):k(e)?Ne.map(e,{name:n,deep:!1}):j(e)?Ne.set(e,{name:n,deep:!1}):void 0}}),Pe=pe("observable.struct",{enhancer:function(e,t){return ir(e,t)?t:e}}),Me=z(je);function Ce(e){return!0===e.deep?Q:!1===e.deep?Z:(t=e.defaultDecorator)&&null!=(n=null==(r=t.options_)?void 0:r.enhancer)?n:Q;var t,n,r}function Re(e,t,n){return H(t)?je.decorate_20223_(e,t):y(t)?void W(e,t,je):en(e)?e:O(e)?Ne.object(e,t,n):Array.isArray(e)?Ne.array(e,t):k(e)?Ne.map(e,t):j(e)?Ne.set(e,t):"object"==typeof e&&null!==e?e:Ne.box(e,t)}s(Re,Me);var Le,De,Ne=s(Re,{box:function(e,t){var n=ke(t);return new Xe(e,Ce(n),n.name,!0,n.equals)},array:function(e,t){var n=ke(t);return(!1===vt.useProxies||!1===n.proxy?Jn:pn)(e,Ce(n),n.name)},map:function(e,t){var n=ke(t);return new kn(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){var r=C(t);return tr((function(){var t=Nn(e,void 0)[F];T(r).forEach((function(e){t.extend_(e,r[e],!n||!(e in n)||n[e])}))})),e}(!1===vt.useProxies||!1===(null==n?void 0:n.proxy)?Nn({},n):function(e,t){var n,r;return p(),null!=(r=(n=(e=Nn(e,t))[F]).proxy_)?r:n.proxy_=new Proxy(e,rn)}({},n),e,t)}))},ref:z(Ee),shallow:z(Te),deep:Me,struct:z(Pe)}),Ve="computed",Be=fe(Ve),Ie=fe("computed.struct",{equals:J.structural}),Ue=function(e,t){if(H(t))return Be.decorate_20223_(e,t);if(y(t))return W(e,t,Be);if(O(e))return z(fe(Ve,e));var n=O(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new Ye(n)};Object.assign(Ue,Be),Ue.struct=z(Ie);var Ke=0,Ge=1,qe=null!=(Le=null==(De=u((function(){}),"name"))?void 0:De.configurable)&&Le,ze={value:"action",configurable:!0,writable:!1,enumerable:!1};function We(e,t,n,r){function i(){return He(0,n,t,r||this,arguments)}return void 0===n&&(n=!1),i.isMobxAction=!0,i.toString=function(){return t.toString()},qe&&(ze.value=e,c(i,"name",ze)),i}function He(e,t,n,r,o){var a=function(e,t){var n=vt.trackingDerivation,r=!t||!n;gt();var i=vt.allowStateChanges;r&&(at(),i=Fe(!0));var o={runAsAction_:r,prevDerivation_:n,prevAllowStateChanges_:i,prevAllowStateReads_:ut(!0),notifySpy_:!1,startTime_:0,actionId_:Ge++,parentActionId_:Ke};return Ke=o.actionId_,o}(0,t);try{return n.apply(r,o)}catch(e){throw a.error_=e,e}finally{!function(e){Ke!==e.actionId_&&i(30),Ke=e.parentActionId_,void 0!==e.error_&&(vt.suppressReactionErrors=!0),$e(e.prevAllowStateChanges_),ct(e.prevAllowStateReads_),yt(),e.runAsAction_&&st(e.prevDerivation_),vt.suppressReactionErrors=!1}(a)}}function Fe(e){var t=vt.allowStateChanges;return vt.allowStateChanges=e,t}function $e(e){vt.allowStateChanges=e}var Xe=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=J.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}U(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))!==vt.UNCHANGED&&this.setNewValue_(e)},n.prepareNewValue_=function(e){if(on(this)){var t=sn(this,{object:this,type:dn,newValue:e});if(!t)return vt.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?vt.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),un(this)&&ln(this,{type:dn,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:dn,newValue:this.value_,oldValue:void 0}),cn(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 P(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},t}($),Ye=function(){function e(e){this.dependenciesState_=Je.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Je.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new et(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Qe.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||i(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=We("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?J.structural:J.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_===Je.UP_TO_DATE_&&(e.lowestObserverState_=Je.POSSIBLY_STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Je.UP_TO_DATE_&&(e.dependenciesState_=Je.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&&i(32,this.name_,this.derivation),0!==vt.inBatch||0!==this.observers_.size||this.keepAlive_){if(mt(this),nt(this)){var e=vt.trackingContext;this.keepAlive_&&!e&&(vt.trackingContext=this),this.trackAndCompute()&&function(e){e.lowestObserverState_!==Je.STALE_&&(e.lowestObserverState_=Je.STALE_,e.observers_.forEach((function(t){t.dependenciesState_===Je.POSSIBLY_STALE_?t.dependenciesState_=Je.STALE_:t.dependenciesState_===Je.UP_TO_DATE_&&(e.lowestObserverState_=Je.UP_TO_DATE_)})))}(this),vt.trackingContext=e}}else nt(this)&&(this.warnAboutUntrackedRead_(),gt(),this.value_=this.computeValue_(!1),yt());var t=this.value_;if(tt(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter&&i(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter=!1}}else i(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===Je.NOT_TRACKING_,n=this.computeValue_(!0),r=t||tt(e)||tt(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing=!0;var t,n=Fe(!1);if(e)t=rt(this,this.derivation,this.scope_);else if(!0===vt.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(e){t=new et(e)}return $e(n),this.isComputing=!1,t},t.suspend_=function(){this.keepAlive_||(it(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)}:Bt}(t),c=!1;a=new wt(s,(function(){c||(c=!0,u((function(){c=!1,a.isDisposed||a.track(l)})))}),t.onError,t.requiresObservable)}else a=new wt(s,(function(){this.track(l)}),t.onError,t.requiresObservable);function l(){e()}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=at();e({observableKind:"computed",debugObjectName:n.name_,type:dn,object:n,newValue:o,oldValue:i}),st(a)}r=!1,i=o}))},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return P(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_=L(this.flags_,e.isComputingMask_,t)}},{key:"isRunningSetter",get:function(){return R(this.flags_,e.isRunningSetterMask_)},set:function(t){this.flags_=L(this.flags_,e.isRunningSetterMask_,t)}},{key:"isBeingObserved",get:function(){return R(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=L(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return R(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=L(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return R(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=L(this.flags_,e.diffValueMask_,1===t)}}])}();Ye.isComputingMask_=1,Ye.isRunningSetterMask_=2,Ye.isBeingObservedMask_=4,Ye.isPendingUnobservationMask_=8,Ye.diffValueMask_=16;var Je,Qe,Ze=A("ComputedValue",Ye);!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_"}(Je||(Je={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Qe||(Qe={}));var et=function(e){this.cause=void 0,this.cause=e};function tt(e){return e instanceof et}function nt(e){switch(e.dependenciesState_){case Je.UP_TO_DATE_:return!1;case Je.NOT_TRACKING_:case Je.STALE_:return!0;case Je.POSSIBLY_STALE_:for(var t=ut(!0),n=at(),r=e.observing_,i=r.length,o=0;o<i;o++){var a=r[o];if(Ze(a)){if(vt.disableErrorBoundaries)a.get();else try{a.get()}catch(e){return st(n),ct(t),!0}if(e.dependenciesState_===Je.STALE_)return st(n),ct(t),!0}}return lt(e),st(n),ct(t),!1}}function rt(e,t,n){var r=ut(!0);lt(e),e.newObserving_=new Array(0===e.runId_?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++vt.runId;var i,o=vt.trackingDerivation;if(vt.trackingDerivation=e,vt.inBatch++,!0===vt.disableErrorBoundaries)i=t.call(n);else try{i=t.call(n)}catch(e){i=new et(e)}return vt.inBatch--,vt.trackingDerivation=o,function(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=Je.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&&_t(u,e),u.diffValue=0}for(;i--;){var c=n[i];1===c.diffValue&&(c.diffValue=0,pt(c,e))}r!==Je.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}(e),ct(r),i}function it(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)_t(t[n],e);e.dependenciesState_=Je.NOT_TRACKING_}function ot(e){var t=at();try{return e()}finally{st(t)}}function at(){var e=vt.trackingDerivation;return vt.trackingDerivation=null,e}function st(e){vt.trackingDerivation=e}function ut(e){var t=vt.allowStateReads;return vt.allowStateReads=e,t}function ct(e){vt.allowStateReads=e}function lt(e){if(e.dependenciesState_!==Je.UP_TO_DATE_){e.dependenciesState_=Je.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=Je.UP_TO_DATE_}}var ft=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,ht=!1,vt=function(){var e=a();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(dt=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new ft).version&&(dt=!1),dt?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new ft):(setTimeout((function(){ht||i(35)}),1),new ft)}();function pt(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function _t(e,t){e.observers_.delete(t),0===e.observers_.size&&bt(e)}function bt(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,vt.pendingUnobservations.push(e))}function gt(){vt.inBatch++}function yt(){if(0==--vt.inBatch){At();for(var e=vt.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 Ye&&n.suspend_())}vt.pendingUnobservations=[]}}function mt(e){var t=vt.trackingDerivation;return null!==t?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&vt.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(0===e.observers_.size&&vt.inBatch>0&&bt(e),!1)}function Ot(e){e.lowestObserverState_!==Je.STALE_&&(e.lowestObserverState_=Je.STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Je.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=Je.STALE_})))}var wt=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_=Je.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=Qe.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,vt.pendingReactions.push(this),At())},t.runReaction_=function(){if(!this.isDisposed){gt(),this.isScheduled=!1;var e=vt.trackingContext;if(vt.trackingContext=this,nt(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(e){this.reportExceptionInDerivation_(e)}}vt.trackingContext=e,yt()}},t.track=function(e){if(!this.isDisposed){gt(),this.isRunning=!0;var t=vt.trackingContext;vt.trackingContext=this;var n=rt(this,e,void 0);vt.trackingContext=t,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&it(this),tt(n)&&this.reportExceptionInDerivation_(n.cause),yt()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(vt.disableErrorBoundaries)throw e;var n="[mobx] uncaught error in '"+this+"'";vt.suppressReactionErrors||console.error(n,e),vt.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(gt(),it(this),yt()))},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[F]=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_=L(this.flags_,e.isDisposedMask_,t)}},{key:"isScheduled",get:function(){return R(this.flags_,e.isScheduledMask_)},set:function(t){this.flags_=L(this.flags_,e.isScheduledMask_,t)}},{key:"isTrackPending",get:function(){return R(this.flags_,e.isTrackPendingMask_)},set:function(t){this.flags_=L(this.flags_,e.isTrackPendingMask_,t)}},{key:"isRunning",get:function(){return R(this.flags_,e.isRunningMask_)},set:function(t){this.flags_=L(this.flags_,e.isRunningMask_,t)}},{key:"diffValue",get:function(){return R(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=L(this.flags_,e.diffValueMask_,1===t)}}])}();wt.isDisposedMask_=1,wt.isScheduledMask_=2,wt.isTrackPendingMask_=4,wt.isRunningMask_=8,wt.diffValueMask_=16;var St=100,xt=function(e){return e()};function At(){vt.inBatch>0||vt.isRunningReactions||xt(kt)}function kt(){vt.isRunningReactions=!0;for(var e=vt.pendingReactions,t=0;e.length>0;){++t===St&&(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_()}vt.isRunningReactions=!1}var jt=A("Reaction",wt),Et="action",Tt="autoAction",Pt=te(Et),Mt=te("action.bound",{bound:!0}),Ct=te(Tt,{autoAction:!0}),Rt=te("autoAction.bound",{autoAction:!0,bound:!0});function Lt(e){return function(t,n){return g(t)?We(t.name||"<unnamed action>",t,e):g(n)?We(t,n,e):H(n)?(e?Ct:Pt).decorate_20223_(t,n):y(n)?W(t,n,e?Ct:Pt):y(t)?z(te(e?Tt:Et,{name:t,autoAction:e})):void 0}}var Dt=Lt(!1);Object.assign(Dt,Pt);var Nt=Lt(!0);function Vt(e){return g(e)&&!0===e.isMobxAction}Object.assign(Nt,Ct),Dt.bound=z(Mt),Nt.bound=z(Rt);var Bt=function(e){return e()},It="onBO",Ut="onBUO";function Kt(e,t,n){return Gt(Ut,e,t,n)}function Gt(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 qt="never",zt="always",Wt="observed";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 Ft=0;function $t(){this.message="FLOW_CANCELLED"}$t.prototype=Object.create(Error.prototype);var Xt=ae("flow"),Yt=ae("flow.bound",{bound:!0}),Jt=Object.assign((function(e,t){if(H(t))return Xt.decorate_20223_(e,t);if(y(t))return W(e,t,Xt);var n=e,r=n.name||"<unnamed flow>",i=function(){var e,t=arguments,i=++Ft,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)}l(t)}function c(e){var t;a=void 0;try{t=Dt(r+" - runid: "+i+" - yield "+s++,o.throw).call(o,e)}catch(e){return n(e)}l(t)}function l(e){if(!g(null==e?void 0:e.then))return e.done?t(e.value):(a=Promise.resolve(e.value)).then(u,c);e.then(l,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(b,b),Qt(n),e(new $t)}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){return!!e&&(In(e)||!!e[F]||X(e)||jt(e)||Ze(e))}(e)}function tn(e,t){void 0===t&&(t=void 0),gt();try{return e.apply(t)}finally{yt()}}function nn(e){return e[F]}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!!y(t)&&(null==(r=nn(e).set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return!!y(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){i(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),_((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function sn(e,t){var n=at();try{for(var r=[].concat(e.interceptors_||[]),o=0,a=r.length;o<a&&((t=r[o](t))&&!t.type&&i(14),t);o++);return t}finally{st(n)}}function un(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function cn(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),_((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function ln(e,t){var n=at(),r=e.changeListeners_;if(r){for(var i=0,o=(r=r.slice()).length;i<o;i++)r[i](t);st(n)}}var fn="splice",dn="update",hn={get:function(e,t){var n=e[F];return t===F?n:"length"===t?n.getArrayLength_():"string"!=typeof t||isNaN(t)?M(_n,t)?_n[t]:e[t]:n.get_(parseInt(t))},set:function(e,t,n){var r=e[F];return"length"===t&&r.setArrayLength_(n),"symbol"==typeof t||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions:function(){i(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}),cn(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!=typeof e||isNaN(e)||e<0)&&i("Out of range: "+e);var t=this.values_.length;if(e!==t)if(e>t){for(var n=new Array(e-t),r=0;r<e-t;r++)n[r]=void 0;this.spliceWithArray_(t,0,n)}else this.spliceWithArray_(e,t-e)},t.updateArrayLength_=function(e,t){e!==this.lastKnownLength_&&i(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=f),on(this)){var o=sn(this,{object:this.proxy_,type:fn,index:e,removedCount:t,added:n});if(!o)return f;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:dn,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;this.atom_.reportChanged(),i&&ln(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:fn,index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom_.reportChanged(),i&&ln(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&&i(17,e,n.length),e<n.length){this.atom_;var r=n[e];if(on(this)){var o=sn(this,{type:dn,object:this.proxy_,index:e,newValue:t});if(!o)return;t=o.newValue}(t=this.enhancer_(t,r))!==r&&(n[e]=t,this.notifyArrayChildUpdate_(e,t,r))}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),p(),tr((function(){var i=new vn(n,t,r,!1);x(i.values_,F,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[F];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[F];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[F].spliceWithArray_(e,t,n)},push:function(){for(var e=this[F],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[F].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[F],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 vt.trackingDerivation&&i(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){vt.trackingDerivation&&i(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[F],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[F];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function yn(e){return function(t,n){var r=this,i=this[F];return i.atom_.reportObserved(),i.dehanceValues_(i.values_)[e]((function(e,i){return t.call(n,e,i,r)}))}}function mn(e){return function(){var t=this,n=this[F];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",yn),bn("filter",yn),bn("find",yn),bn("findIndex",yn),bn("findLast",yn),bn("findLastIndex",yn),bn("flatMap",yn),bn("forEach",yn),bn("map",yn),bn("some",yn),bn("toReversed",yn),bn("reduce",mn),bn("reduceRight",mn);var On=A("ObservableArrayAdministration",vn);function wn(e){return m(e)&&On(e[F])}var Sn={},xn="add",An="delete",kn=function(){function e(e,t,n){var r=this;void 0===t&&(t=Q),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[F]=Sn,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)||i(18),tr((function(){r.keysAtom_=Y("ObservableMap.keys()"),r.data_=new Map,r.hasMap_=new Map,e&&r.merge(e)}))}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!vt.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new Xe(this.has_(e),Z,"ObservableMap.key?",!1);this.hasMap_.set(e,r),Kt(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?dn:xn,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:An,object:this,name:e}))return!1;if(this.has_(e)){var n=un(this),r=n?{observableKind:"map",debugObjectName:this.name_,type:An,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&&ln(this,r),!0}return!1},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==vt.UNCHANGED){var r=un(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:dn,object:this,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),r&&ln(this,i)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,tn((function(){var r,i=new Xe(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:xn,object:this,name:e,newValue:t}:null;r&&ln(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=B(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,r,o;O(e)?function(e){var t=Object.keys(e);if(!E)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,r=Object.getPrototypeOf(n),o=Object.getPrototypeOf(r),null!==Object.getPrototypeOf(o)&&i(19,e),e.forEach((function(e,n){return t.set(n,e)}))):null!=e&&i(20,e)})),this},t.clear=function(){var e=this;tn((function(){ot((function(){for(var t,n=B(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,r=function(e){if(k(e)||jn(e))return e;if(Array.isArray(e))return new Map(e);if(O(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return i(21,e)}(e),o=new Map,a=!1,s=B(t.data_.keys());!(n=s()).done;){var u=n.value;if(!r.has(u))if(t.delete(u))a=!0;else{var c=t.data_.get(u);o.set(u,c)}}for(var l,f=B(r.entries());!(l=f()).done;){var d=l.value,h=d[0],v=d[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(),y=b.next(),m=g.next();!y.done;){if(y.value!==m.value){t.keysAtom_.reportChanged();break}y=b.next(),m=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 cn(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=A("ObservableMap",kn);function En(e){return e[Symbol.toStringTag]="MapIterator",ur(e)}var Tn={},Pn=function(){function e(e,t,n){var r=this;void 0===t&&(t=Q),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[F]=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)||i(22),this.enhancer_=function(e,r){return t(e,r,n)},tr((function(){r.atom_=Y(r.name_),e&&r.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(){ot((function(){for(var t,n=B(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.forEach=function(e,t){for(var n,r=B(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:xn,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:xn,object:this,newValue:e}:null;n&&ln(this,r)}return this},t.delete=function(e){var t=this;if(on(this)&&!sn(this,{type:An,object:this,oldValue:e}))return!1;if(this.has(e)){var n=un(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:An,object:this,oldValue:e}:null;return tn((function(){t.atom_.reportChanged(),t.data_.delete(e)})),n&&ln(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 Cn({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 Cn({next:function(){return t<n.length?{value:e.dehanceValue_(n[t++]),done:!1}:{value:void 0,done:!0}}})},t.intersection=function(e){return j(e)&&!Mn(e)?e.intersection(this):new Set(this).intersection(e)},t.union=function(e){return j(e)&&!Mn(e)?e.union(this):new Set(this).union(e)},t.difference=function(e){return new Set(this).difference(e)},t.symmetricDifference=function(e){return j(e)&&!Mn(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 j(e)&&!Mn(e)?e.isDisjointFrom(this):new Set(this).isDisjointFrom(e)},t.replace=function(e){var t=this;return Mn(e)&&(e=new Set(e)),tn((function(){Array.isArray(e)||j(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!=e&&i("Cannot initialize set from "+e)})),this},t.observe_=function(e,t){return cn(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"}}])}(),Mn=A("ObservableSet",Pn);function Cn(e){return e[Symbol.toStringTag]="SetIterator",ur(e)}var Rn=Object.create(null),Ln="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_=O(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 Ye)return n.set(t),!0;if(on(this)){var r=sn(this,{type:dn,object:this.proxy_||this.target_,name:e,newValue:t});if(!r)return null;t=r.newValue}if((t=n.prepareNewValue_(t))!==vt.UNCHANGED){var i=un(this),o=i?{type:dn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),i&&ln(this,o)}return!0},t.get_=function(e){return vt.trackingDerivation&&!M(this.target_,e)&&this.has_(e),this.target_[e]},t.set_=function(e,t,n){return void 0===n&&(n=!1),M(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(!vt.trackingDerivation)return e in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var t=this.pendingKeys_.get(e);return t||(t=new Xe(e in this.target_,Z,"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_[q])&&n[e])return;i(1,t.annotationType_,this.name_+"."+e.toString())}for(var r=this.target_;r&&r!==l;){var o=u(r,e);if(o){var a=t.make_(this,e,o,r);if(0===a)return;if(1===a)break}r=Object.getPrototypeOf(r)}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:xn,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 c(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{yt()}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:xn,newValue:t});if(!o)return null;t=o.newValue}var a=Bn(e),s={configurable:!vt.safeDescriptors||this.isPlainObject_,enumerable:!0,get:a.get,set:a.set};if(r){if(!Reflect.defineProperty(this.target_,e,s))return!1}else c(this.target_,e,s);var u=new Xe(t,n,"ObservableObject.key",!1);this.values_.set(e,u),this.notifyPropertyAddition_(e,u.value_)}finally{yt()}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:xn,newValue:void 0}))return null;t.name||(t.name="ObservableObject.key"),t.context=this.proxy_||this.target_;var i=Bn(e),o={configurable:!vt.safeDescriptors||this.isPlainObject_,enumerable:!1,get:i.get,set:i.set};if(n){if(!Reflect.defineProperty(this.target_,e,o))return!1}else c(this.target_,e,o);this.values_.set(e,new Ye(t)),this.notifyPropertyAddition_(e,void 0)}finally{yt()}return!0},t.delete_=function(e,t){if(void 0===t&&(t=!1),this.keysAtom_,!M(this.target_,e))return!0;if(on(this)&&!sn(this,{object:this.proxy_||this.target_,name:e,type:Ln}))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=u(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 Xe&&(a=o.value_),Ot(o)),this.keysAtom_.reportChanged(),null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(e in this.target_),i){var s={type:Ln,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:a,name:e};i&&ln(this,s)}}finally{yt()}return!0},t.observe_=function(e,t){return cn(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:xn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;r&&ln(this,i)}null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),T(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function Nn(e,t){var n;if(M(e,F))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:Oe(e):void 0}(t));return S(e,F,i),e}var Vn=A("ObservableObjectAdministration",Dn);function Bn(e){return Rn[e]||(Rn[e]={get:function(){return this[F].getObservablePropValue_(e)},set:function(t){return this[F].setObservablePropValue_(e,t)}})}function In(e){return!!m(e)&&Vn(e[F])}function Un(e,t,n){var r;null==(r=e.target_[q])||delete r[n]}var Kn,Gn,qn=$n(0),zn=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,!1===e}(),Wn=0,Hn=function(){};Kn=Hn,Gn=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(Kn.prototype,Gn):void 0!==Kn.prototype.__proto__?Kn.prototype.__proto__=Gn:Kn.prototype=Gn;var Fn=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,x(o,F,e),t&&t.length&&o.spliceWithArray(0,0,t),zn&&Object.defineProperty(o,"0",qn)})),o}U(t,e);var n=t.prototype;return n.concat=function(){this[F].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 wn(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[F].getArrayLength_()},set:function(e){this[F].setArrayLength_(e)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(Hn);function $n(e){return{enumerable:!1,configurable:!0,get:function(){return this[F].get_(e)},set:function(t){this[F].set_(e,t)}}}function Xn(e){c(Fn.prototype,""+e,$n(e))}function Yn(e){if(e>Wn){for(var t=Wn;t<e+100;t++)Xn(t);Wn=e}}function Jn(e,t,n){return new Fn(e,t,n)}function Qn(e,t){if("object"==typeof e&&null!==e){if(wn(e))return void 0!==t&&i(23),e[F].atom_;if(Mn(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||i(25,t,er(e)),n}if(In(e)){if(!t)return i(26);var r=e[F].values_.get(t);return r||i(27,t,er(e)),r}if(X(e)||Ze(e)||jt(e))return e}else if(g(e)&&jt(e[F]))return e[F];i(28)}function Zn(e,t){return e||i(29),void 0!==t?Zn(Qn(e,t)):X(e)||Ze(e)||jt(e)||jn(e)||Mn(e)?e:e[F]?e[F]:void i(24,e)}function er(e,t){var n;if(void 0!==t)n=Qn(e,t);else{if(Vt(e))return e.name;n=In(e)||jn(e)||Mn(e)?Zn(e):Qn(e)}return n.name_}function tr(e){var t=at(),n=Fe(!0);gt();try{return e()}finally{yt(),$e(n),st(t)}}Object.entries(_n).forEach((function(e){var t=e[0],n=e[1];"concat"!==t&&S(Fn.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,c=t.constructor;if(u!==c&&!(g(u)&&u instanceof u&&g(c)&&c instanceof c)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),i=i||[];for(var l=(r=r||[]).length;l--;)if(r[l]===e)return i[l]===t;if(r.push(e),i.push(t),s){if((l=e.length)!==t.length)return!1;for(;l--;)if(!or(e[l],t[l],n-1,r,i))return!1}else{var f,d=Object.keys(e);if(l=d.length,Object.keys(t).length!==l)return!1;for(;l--;)if(!M(t,f=d[l])||!or(e[f],t[f],n-1,r,i))return!1}return r.pop(),i.pop(),!0}function ar(e){return wn(e)?e.slice():k(e)||jn(e)||j(e)||Mn(e)?Array.from(e.entries()):e}var sr=(null==(nr=a().Iterator)?void 0:nr.prototype)||{};function ur(e){return e[Symbol.iterator]=cr,Object.assign(Object.create(sr),e)}function cr(){return this}["Symbol","Map","Set"].forEach((function(e){void 0===a()[e]&&i("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:F});var lr=r(953),fr=r.n(lr);if(!lr.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!function(e,t,n){return tr((function(){var r=Nn(e,n)[F];null!=t||(t=function(e){return M(e,q)||S(e,q,I({},e[q])),e[q]}(e)),T(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 dr=n(180);function hr(e){e()}function vr(e){e||(e=hr),function(e){!0===e.isolateGlobalState&&function(){if((vt.pendingReactions.length||vt.inBatch||vt.isRunningReactions)&&i(36),ht=!0,dt){var e=a();0==--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),vt=new ft}}();var t,n,r=e.useProxies,o=e.enforceActions;if(void 0!==r&&(vt.useProxies=r===zt||r!==qt&&"undefined"!=typeof Proxy),"ifavailable"===r&&(vt.verifyProxies=!0),void 0!==o){var s=o===zt?zt:o===Wt;vt.enforceActions=s,vt.allowStateChanges=!0!==s&&s!==zt}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(t){t in e&&(vt[t]=!!e[t])})),vt.allowStateReads=!vt.observableRequiresReaction,e.reactionScheduler&&(t=e.reactionScheduler,n=xt,xt=function(e){return t((function(){return n(e)}))})}({reactionScheduler:e})}var pr=function(){return!0};function _r(e){return Ht(Qn(e,void 0))}var br=!1;function gr(e){br=e}function yr(){return br}var mr,Or,wr=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}(),Sr=new("undefined"!=typeof FinalizationRegistry?FinalizationRegistry:wr)((function(e){var t;null===(t=e.reaction)||void 0===t||t.dispose(),e.reaction=null})),xr=r(634);function Ar(e){e.reaction=new wt("observer".concat(e.name),(function(){var t;e.stateVersion=Symbol(),null===(t=e.onStoreChange)||void 0===t||t.call(e)}))}function kr(e,t){if(void 0===t&&(t="observed"),yr())return e();var n=fr().useRef(null);if(!n.current){var r={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(e){return Sr.unregister(r),r.onStoreChange=e,r.reaction||(Ar(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||(Ar(a),Sr.register(n,a,a)),fr().useDebugValue(a.reaction,_r),(0,xr.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===(mr=Object.getOwnPropertyDescriptor((function(){}),"name"))||void 0===mr?void 0:mr.configurable)&&void 0!==Or&&Or,Tr=jr?Symbol.for("react.forward_ref"):"function"==typeof lr.forwardRef&&(0,lr.forwardRef)((function(e){return null})).$$typeof,Pr=jr?Symbol.for("react.memo"):"function"==typeof lr.memo&&(0,lr.memo)((function(e){return null})).$$typeof;function Mr(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(yr())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 kr((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,lr.forwardRef)(u)),u=(0,lr.memo)(u),a=e,s=u,Object.keys(a).forEach((function(e){Rr[e]||Object.defineProperty(s,e,Object.getOwnPropertyDescriptor(a,e))})),u}var Cr,Rr={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function Lr(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:kr(r)}function Dr(e,t){return(0,lr.useState)((function(){return Ne(e(),t,{autoBind:!0})}))[0]}function Nr(e){var t=(0,lr.useState)((function(){return Ne(e,{},{deep:!1})}))[0];return function(e){He(0,!1,e,this,void 0)}((function(){Object.assign(t,e)})),t}function Vr(e,t){var n=t&&Nr(t);return(0,lr.useState)((function(){return Ne(e(n),void 0,{autoBind:!0})}))[0]}Lr.displayName="Observer",vr(dr.unstable_batchedUpdates);var Br=null!==(Cr=Sr.finalizeAllImmediately)&&void 0!==Cr?Cr:function(){};function Ir(e,t){return void 0===t&&(t="observed"),kr(e,t)}function Ur(e){gr(e)}},89:(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),c=n(222),l=n.n(c),f=n(626),d=n.n(f),h=n(279),v=n.n(h),p=n(428),_={};_.styleTagTransform=v(),_.setAttributes=l(),_.insert=u().bind(null,"head"),_.domAPI=a(),_.insertStyleElement=d(),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],c=r.base?u[0]+r.base:u[0],l=o[c]||0,f="".concat(c," ").concat(l);o[c]=l+1;var d=n(f),h={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==d)t[d].references++,t[d].updater(h);else{var v=i(h,r);r.byIndex=s,t.splice(s,0,{identifier:f,updater:v,references:1})}a.push(f)}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),c=0;c<o.length;c++){var l=n(o[c]);0===t[l].references&&(t[l].updater(),t.splice(l,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 c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var l="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,l=r[1];return s((function(){i.value=n,i.getSnapshot=t,c(i)&&l({inst:i})}),[e,n,t]),a((function(){return c(i)&&l({inst:i}),e((function(){c(i)&&l({inst:i})}))}),[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},634:(e,t,n)=>{e.exports=n(319)},306:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useStationLogin=void 0;const o=n(953),a=i(n(768));t.useStationLogin=e=>{const t=e.cc,n=e.onLogin,i=e.onLogout,s=e.logger,[u,c]=(0,o.useState)(""),[l,f]=(0,o.useState)(e.deviceType||""),[d,h]=(0,o.useState)(""),[v,p]=(0,o.useState)(),[_,b]=(0,o.useState)(),[g,y]=(0,o.useState)();return{name:"StationLogin",setDeviceType:f,setDialNumber:c,setTeam:h,login:()=>{t.stationLogin({teamId:d,loginOption:l,dialNumber:u}).then((e=>{p(e),a.default.setDeviceType(l),a.default.setIsAgentLoggedIn(!0),e.data.auxCodeId&&a.default.setCurrentState(e.data.auxCodeId),e.data.lastStateChangeTimestamp&&a.default.setLastStateChangeTimestamp(new Date(e.data.lastStateChangeTimestamp)),n&&n()})).catch((e=>{s.error(`Error logging in: ${e}`,{module:"widget-station-login#helper.ts",method:"login"}),b(e)}))},logout:()=>{t.stationLogout({logoutReason:"User requested logout"}).then((e=>{y(e),a.default.setIsAgentLoggedIn(!1),a.default.setDeviceType(""),i&&i()})).catch((e=>{s.error(`Error logging out: ${e}`,{module:"widget-station-login#helper.ts",method:"logout"})}))},relogin:function(){a.default.setDeviceType(l),n&&n()},loginSuccess:v,loginFailure:_,logoutSuccess:g,handleContinue:()=>r(void 0,void 0,void 0,(function*(){try{a.default.setShowMultipleLoginAlert(!1),yield a.default.registerCC(),a.default.isAgentLoggedIn?s.log("Agent Relogin Success",{module:"widget-station-login#station-login/helper.ts",method:"handleContinue"}):s.error("Agent Relogin Failed",{module:"widget-station-login#station-login/helper.ts",method:"handleContinue"})}catch(e){s.error(`Error handling agent multi login continue: ${e}`,{module:"widget-station-login#station-login/index.tsx",method:"handleContinue"})}}))}}},214:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MULTIPLE_SIGN_IN_ALERT_TITLE=t.MULTIPLE_SIGN_IN_ALERT_MESSAGE=void 0,t.MULTIPLE_SIGN_IN_ALERT_MESSAGE="You are signed in to the Desktop in multiple application instances. Click Continue to proceed with the Desktop in this application instance. Else, close this window.",t.MULTIPLE_SIGN_IN_ALERT_TITLE="Multiple Sign In Alert"},17: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.StationLogin=void 0;const i=r(n(953)),o=r(n(768)),a=n(62),s=r(n(688)),u=n(306),c=(0,a.observer)((({onLogin:e,onLogout:t})=>{const{cc:n,teams:r,loginOptions:a,logger:c,isAgentLoggedIn:l,showMultipleLoginAlert:f,deviceType:d}=o.default,h=(0,u.useStationLogin)({cc:n,onLogin:e,onLogout:t,logger:c,deviceType:d}),v=Object.assign(Object.assign({},h),{teams:r,loginOptions:a,deviceType:d,isAgentLoggedIn:l,showMultipleLoginAlert:f});return i.default.createElement(s.default,Object.assign({},v))}));t.StationLogin=c},688: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(89);const s=n(214),u=n(729);t.default=e=>{const{teams:t,loginOptions:n,login:r,logout:i,relogin:o,setDeviceType:c,setDialNumber:l,setTeam:f,isAgentLoggedIn:d,deviceType:h,showMultipleLoginAlert:v,handleContinue:p}=e,_=(0,a.useRef)(null);return(0,a.useEffect)((()=>{const e=document.getElementById("teamsDropdown"),r=document.querySelector("#LoginOption"),i=document.querySelector("#dialNumber");e&&(e.innerHTML="",t&&(t.forEach((t=>{const n=document.createElement("option");n.value=t.id,n.text=t.name,e.add(n)})),f(e.value),i.value="",i.disabled=!0)),n.length>0&&(n.forEach((e=>{const t=document.createElement("option");t.text=e,t.value=e,r.add(t)})),r&&h&&(r.value=h))}),[t,n]),(0,a.useEffect)((()=>{const e=_.current;v&&e&&e.showModal()}),[v,_]),(0,a.useEffect)((()=>{if(!d)return;const e=document.querySelector("#LoginOption");e&&!e.value&&(c(h),e.value=h,o())}),[d]),a.default.createElement(a.default.Fragment,null,v&&a.default.createElement("dialog",{ref:_,className:"modal"},a.default.createElement("h2",null,s.MULTIPLE_SIGN_IN_ALERT_TITLE),a.default.createElement("p",null,s.MULTIPLE_SIGN_IN_ALERT_MESSAGE),a.default.createElement("div",{className:"modal-content"},a.default.createElement("button",{id:"ContinueButton","data-testid":"ContinueButton",onClick:()=>{const e=_.current;e&&(e.close(),p())}},"Continue"))),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"},"Agent"),a.default.createElement("div",{style:{display:"flex",flexDirection:"column",flexGrow:1}},a.default.createElement("div",{style:{display:"flex",gap:"1rem"}},a.default.createElement("fieldset",{style:{border:"1px solid #ccc",borderRadius:"5px",padding:"10px",marginBottom:"20px",flex:.69}},a.default.createElement("legend",{className:"legend-box"},"Select Team"),a.default.createElement("select",{id:"teamsDropdown",className:"select"},"Teams")),a.default.createElement("fieldset",{className:"fieldset"},a.default.createElement("legend",{className:"legend-box"},"Agent Login"),a.default.createElement("select",{name:"LoginOption",id:"LoginOption",className:"select",onChange:e=>{const t=document.querySelector("#dialNumber"),n=e.target.value;c(n),t.disabled="AGENT_DN"!==n&&"EXTENSION"!==n}},a.default.createElement("option",{value:"",hidden:!0},"Choose Agent Login Option...")),a.default.createElement("input",{className:"input",id:"dialNumber",name:"dialNumber",placeholder:"Extension/Dial Number",type:"text",onInput:function(){const e=document.querySelector("#dialNumber");l(e.value)}}),d?a.default.createElement(u.ButtonPill,{id:"logoutAgent",onPress:i,color:"cancel"},"Logout"):a.default.createElement(u.ButtonPill,{id:"AgentLogin",onPress:r,color:"join"},"Login"))))))))}},729:e=>{e.exports=n(1729)},768:e=>{e.exports=n(5768)},953:e=>{e.exports=n(4953)}},r={};function i(e){var n=r[e];if(void 0!==n)return n.exports;var o=r[e]={id:e,exports:{}};return t[e].call(o.exports,o,o.exports,i),o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nc=void 0;var o={};(()=>{var e=o;Object.defineProperty(e,"__esModule",{value:!0}),e.StationLogin=void 0;const t=i(17);Object.defineProperty(e,"StationLogin",{enumerable:!0,get:function(){return t.StationLogin}})})(),e.exports=o})()},7032:(e,t,n)=>{(()=>{"use strict";var t={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 c=0;c<e.length;c++){var l=[].concat(e[c]);r&&a[l[0]]||(void 0!==o&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),t.push(l))}},t}},63:e=>{e.exports=function(e){return e[1]}},62:(e,t,r)=>{function i(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)}r.r(t),r.d(t,{Observer:()=>Lr,_observerFinalizationRegistry:()=>Sr,clearTimers:()=>Br,enableStaticRendering:()=>gr,isObserverBatched:()=>pr,isUsingStaticRendering:()=>yr,observer:()=>Mr,observerBatching:()=>vr,useAsObservableSource:()=>Nr,useLocalObservable:()=>Dr,useLocalStore:()=>Vr,useObserver:()=>Ir,useStaticRendering:()=>Ur});var o={};function a(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:o}var s=Object.assign,u=Object.getOwnPropertyDescriptor,c=Object.defineProperty,l=Object.prototype,f=[];Object.freeze(f);var d={};Object.freeze(d);var h="undefined"!=typeof Proxy,v=Object.toString();function p(){h||i("Proxy not available")}function _(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var b=function(){};function g(e){return"function"==typeof e}function y(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function m(e){return null!==e&&"object"==typeof e}function O(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()===v}function w(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function S(e,t,n){c(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function x(e,t,n){c(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function A(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 j(e){return null!=e&&"[object Set]"===Object.prototype.toString.call(e)}var E=void 0!==Object.getOwnPropertySymbols,T="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:E?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function P(e){return null===e?null:"object"==typeof e?""+e:e}function M(e,t){return l.hasOwnProperty.call(e,t)}var C=Object.getOwnPropertyDescriptors||function(e){var t={};return T(e).forEach((function(n){t[n]=u(e,n)})),t};function R(e,t){return!!(e&t)}function L(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 N(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,G(r.key),r)}}function V(e,t,n){return t&&N(e.prototype,t),n&&N(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function B(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 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 U(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,K(e,t)}function K(e,t){return K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},K(e,t)}function G(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 q=Symbol("mobx-stored-annotations");function z(e){return Object.assign((function(t,n){if(H(n))return e.decorate_20223_(t,n);W(t,n,e)}),e)}function W(e,t,n){M(e,q)||S(e,q,I({},e[q])),function(e){return e.annotationType_===ee}(n)||(e[q][t]=n)}function H(e){return"object"==typeof e&&"string"==typeof e.kind}var F=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_=Je.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(),Ot(this),yt()},t.toString=function(){return this.name_},V(e,[{key:"isBeingObserved",get:function(){return R(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=L(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return R(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=L(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return R(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=L(this.flags_,e.diffValueMask_,1===t)}}])}();$.isBeingObservedMask_=1,$.isPendingUnobservationMask_=2,$.diffValueMask_=4;var X=A("Atom",$);function Y(e,t,n){void 0===t&&(t=b),void 0===n&&(n=b);var r=new $(e);return t!==b&&Gt(It,r,t,void 0),n!==b&&Kt(r,n),r}var J={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 Q(e,t,n){return en(e)?e:Array.isArray(e)?Ne.array(e,{name:n}):O(e)?Ne.object(e,void 0,{name:n}):k(e)?Ne.map(e,{name:n}):j(e)?Ne.set(e,{name:n}):"function"!=typeof e||Vt(e)||Zt(e)?e:w(e)?Jt(e):Nt(n,e)}function Z(e){return e}var ee="override";function te(e,t){return{annotationType_:e,options_:t,make_:ne,extend_:re,decorate_20223_:ie}}function ne(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=oe(e,this,t,n,!1);return c(r,t,o),2}function re(e,t,n,r){var i=oe(e,this,t,n);return e.defineProperty_(t,i,r)}function ie(e,t){var n,r=t.kind,o=t.name,a=t.addInitializer,s=this,u=function(e){var t,n,r,i;return We(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"==r?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"==r?(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 i("Cannot apply '"+s.annotationType_+"' to '"+String(o)+"' (kind: "+r+"):\n'"+s.annotationType_+"' can only be used on properties with a function value.")}function oe(e,t,n,r,i){var o,a,s,u,c,l,f,d;void 0===i&&(i=vt.safeDescriptors),d=r,t.annotationType_,d.value;var h,v=r.value;return null!=(o=t.options_)&&o.bound&&(v=v.bind(null!=(h=e.proxy_)?h:e.target_)),{value:We(null!=(a=null==(s=t.options_)?void 0:s.name)?a:n.toString(),v,null!=(u=null==(c=t.options_)?void 0:c.autoAction)&&u,null!=(l=t.options_)&&l.bound?null!=(f=e.proxy_)?f:e.target_:void 0),configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function ae(e,t){return{annotationType_:e,options_:t,make_:se,extend_:ue,decorate_20223_:ce}}function se(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&&(!M(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 c(r,t,o),2}function ue(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 ce(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=vt.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 fe(e,t){return{annotationType_:e,options_:t,make_:de,extend_:he,decorate_20223_:ve}}function de(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function he(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 ve(e,t){var n=this,r=t.name;return(0,t.addInitializer)((function(){var t=Nn(this)[F],i=I({},n.options_,{get:e,context:this});i.name||(i.name="ObservableObject."+r.toString()),t.values_.set(r,new Ye(i))})),function(){return this[F].getObservablePropValue_(r)}}function pe(e,t){return{annotationType_:e,options_:t,make_:_e,extend_:be,decorate_20223_:ge}}function _e(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function be(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:Q,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=Nn(e)[F],u=new Xe(t,null!=(r=null==(a=n.options_)?void 0:a.enhancer)?r:Q,"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[F].getObservablePropValue_(i)},set:function(e){return o.has(this)||a(this,e),this[F].setObservablePropValue_(i,e)},init:function(e){return o.has(this)||a(this,e),e}}}var ye="true",me=Oe();function Oe(e){return{annotationType_:ye,options_:e,make_:we,extend_:Se,decorate_20223_:xe}}function we(e,t,n,r){var i,o,a,s;if(n.get)return Ue.make_(e,t,n,r);if(n.set){var u=We(t.toString(),n.set);return r===e.target_?null===e.defineProperty_(t,{configurable:!vt.safeDescriptors||e.isPlainObject_,set:u})?0:2:(c(r,t,{configurable:!0,set:u}),2)}if(r!==e.target_&&"function"==typeof n.value)return w(n.value)?(null!=(s=this.options_)&&s.autoBind?Jt.bound:Jt).make_(e,t,n,r):(null!=(a=this.options_)&&a.autoBind?Nt.bound:Nt).make_(e,t,n,r);var l,f=!1===(null==(i=this.options_)?void 0:i.deep)?Ne.ref:Ne;return"function"==typeof n.value&&null!=(o=this.options_)&&o.autoBind&&(n.value=n.value.bind(null!=(l=e.proxy_)?l:e.target_)),f.make_(e,t,n,r)}function Se(e,t,n,r){var i,o,a;return n.get?Ue.extend_(e,t,n,r):n.set?e.defineProperty_(t,{configurable:!vt.safeDescriptors||e.isPlainObject_,set:We(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)?Ne.ref:Ne).extend_(e,t,n,r))}function xe(e,t){i("'"+this.annotationType_+"' cannot be used as a decorator")}var Ae={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function ke(e){return e||Ae}Object.freeze(Ae);var je=pe("observable"),Ee=pe("observable.ref",{enhancer:Z}),Te=pe("observable.shallow",{enhancer:function(e,t,n){return null==e||In(e)||wn(e)||jn(e)||Mn(e)?e:Array.isArray(e)?Ne.array(e,{name:n,deep:!1}):O(e)?Ne.object(e,void 0,{name:n,deep:!1}):k(e)?Ne.map(e,{name:n,deep:!1}):j(e)?Ne.set(e,{name:n,deep:!1}):void 0}}),Pe=pe("observable.struct",{enhancer:function(e,t){return ir(e,t)?t:e}}),Me=z(je);function Ce(e){return!0===e.deep?Q:!1===e.deep?Z:(t=e.defaultDecorator)&&null!=(n=null==(r=t.options_)?void 0:r.enhancer)?n:Q;var t,n,r}function Re(e,t,n){return H(t)?je.decorate_20223_(e,t):y(t)?void W(e,t,je):en(e)?e:O(e)?Ne.object(e,t,n):Array.isArray(e)?Ne.array(e,t):k(e)?Ne.map(e,t):j(e)?Ne.set(e,t):"object"==typeof e&&null!==e?e:Ne.box(e,t)}s(Re,Me);var Le,De,Ne=s(Re,{box:function(e,t){var n=ke(t);return new Xe(e,Ce(n),n.name,!0,n.equals)},array:function(e,t){var n=ke(t);return(!1===vt.useProxies||!1===n.proxy?Jn:pn)(e,Ce(n),n.name)},map:function(e,t){var n=ke(t);return new kn(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){var r=C(t);return tr((function(){var t=Nn(e,void 0)[F];T(r).forEach((function(e){t.extend_(e,r[e],!n||!(e in n)||n[e])}))})),e}(!1===vt.useProxies||!1===(null==n?void 0:n.proxy)?Nn({},n):function(e,t){var n,r;return p(),null!=(r=(n=(e=Nn(e,t))[F]).proxy_)?r:n.proxy_=new Proxy(e,rn)}({},n),e,t)}))},ref:z(Ee),shallow:z(Te),deep:Me,struct:z(Pe)}),Ve="computed",Be=fe(Ve),Ie=fe("computed.struct",{equals:J.structural}),Ue=function(e,t){if(H(t))return Be.decorate_20223_(e,t);if(y(t))return W(e,t,Be);if(O(e))return z(fe(Ve,e));var n=O(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new Ye(n)};Object.assign(Ue,Be),Ue.struct=z(Ie);var Ke=0,Ge=1,qe=null!=(Le=null==(De=u((function(){}),"name"))?void 0:De.configurable)&&Le,ze={value:"action",configurable:!0,writable:!1,enumerable:!1};function We(e,t,n,r){function i(){return He(0,n,t,r||this,arguments)}return void 0===n&&(n=!1),i.isMobxAction=!0,i.toString=function(){return t.toString()},qe&&(ze.value=e,c(i,"name",ze)),i}function He(e,t,n,r,o){var a=function(e,t){var n=vt.trackingDerivation,r=!t||!n;gt();var i=vt.allowStateChanges;r&&(at(),i=Fe(!0));var o={runAsAction_:r,prevDerivation_:n,prevAllowStateChanges_:i,prevAllowStateReads_:ut(!0),notifySpy_:!1,startTime_:0,actionId_:Ge++,parentActionId_:Ke};return Ke=o.actionId_,o}(0,t);try{return n.apply(r,o)}catch(e){throw a.error_=e,e}finally{!function(e){Ke!==e.actionId_&&i(30),Ke=e.parentActionId_,void 0!==e.error_&&(vt.suppressReactionErrors=!0),$e(e.prevAllowStateChanges_),ct(e.prevAllowStateReads_),yt(),e.runAsAction_&&st(e.prevDerivation_),vt.suppressReactionErrors=!1}(a)}}function Fe(e){var t=vt.allowStateChanges;return vt.allowStateChanges=e,t}function $e(e){vt.allowStateChanges=e}var Xe=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=J.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}U(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))!==vt.UNCHANGED&&this.setNewValue_(e)},n.prepareNewValue_=function(e){if(on(this)){var t=sn(this,{object:this,type:dn,newValue:e});if(!t)return vt.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?vt.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),un(this)&&ln(this,{type:dn,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:dn,newValue:this.value_,oldValue:void 0}),cn(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 P(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},t}($),Ye=function(){function e(e){this.dependenciesState_=Je.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Je.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new et(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Qe.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||i(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=We("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?J.structural:J.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_===Je.UP_TO_DATE_&&(e.lowestObserverState_=Je.POSSIBLY_STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Je.UP_TO_DATE_&&(e.dependenciesState_=Je.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&&i(32,this.name_,this.derivation),0!==vt.inBatch||0!==this.observers_.size||this.keepAlive_){if(mt(this),nt(this)){var e=vt.trackingContext;this.keepAlive_&&!e&&(vt.trackingContext=this),this.trackAndCompute()&&function(e){e.lowestObserverState_!==Je.STALE_&&(e.lowestObserverState_=Je.STALE_,e.observers_.forEach((function(t){t.dependenciesState_===Je.POSSIBLY_STALE_?t.dependenciesState_=Je.STALE_:t.dependenciesState_===Je.UP_TO_DATE_&&(e.lowestObserverState_=Je.UP_TO_DATE_)})))}(this),vt.trackingContext=e}}else nt(this)&&(this.warnAboutUntrackedRead_(),gt(),this.value_=this.computeValue_(!1),yt());var t=this.value_;if(tt(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter&&i(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter=!1}}else i(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===Je.NOT_TRACKING_,n=this.computeValue_(!0),r=t||tt(e)||tt(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing=!0;var t,n=Fe(!1);if(e)t=rt(this,this.derivation,this.scope_);else if(!0===vt.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(e){t=new et(e)}return $e(n),this.isComputing=!1,t},t.suspend_=function(){this.keepAlive_||(it(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)}:Bt}(t),c=!1;a=new wt(s,(function(){c||(c=!0,u((function(){c=!1,a.isDisposed||a.track(l)})))}),t.onError,t.requiresObservable)}else a=new wt(s,(function(){this.track(l)}),t.onError,t.requiresObservable);function l(){e()}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=at();e({observableKind:"computed",debugObjectName:n.name_,type:dn,object:n,newValue:o,oldValue:i}),st(a)}r=!1,i=o}))},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return P(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_=L(this.flags_,e.isComputingMask_,t)}},{key:"isRunningSetter",get:function(){return R(this.flags_,e.isRunningSetterMask_)},set:function(t){this.flags_=L(this.flags_,e.isRunningSetterMask_,t)}},{key:"isBeingObserved",get:function(){return R(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=L(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return R(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=L(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return R(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=L(this.flags_,e.diffValueMask_,1===t)}}])}();Ye.isComputingMask_=1,Ye.isRunningSetterMask_=2,Ye.isBeingObservedMask_=4,Ye.isPendingUnobservationMask_=8,Ye.diffValueMask_=16;var Je,Qe,Ze=A("ComputedValue",Ye);!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_"}(Je||(Je={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Qe||(Qe={}));var et=function(e){this.cause=void 0,this.cause=e};function tt(e){return e instanceof et}function nt(e){switch(e.dependenciesState_){case Je.UP_TO_DATE_:return!1;case Je.NOT_TRACKING_:case Je.STALE_:return!0;case Je.POSSIBLY_STALE_:for(var t=ut(!0),n=at(),r=e.observing_,i=r.length,o=0;o<i;o++){var a=r[o];if(Ze(a)){if(vt.disableErrorBoundaries)a.get();else try{a.get()}catch(e){return st(n),ct(t),!0}if(e.dependenciesState_===Je.STALE_)return st(n),ct(t),!0}}return lt(e),st(n),ct(t),!1}}function rt(e,t,n){var r=ut(!0);lt(e),e.newObserving_=new Array(0===e.runId_?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++vt.runId;var i,o=vt.trackingDerivation;if(vt.trackingDerivation=e,vt.inBatch++,!0===vt.disableErrorBoundaries)i=t.call(n);else try{i=t.call(n)}catch(e){i=new et(e)}return vt.inBatch--,vt.trackingDerivation=o,function(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=Je.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&&_t(u,e),u.diffValue=0}for(;i--;){var c=n[i];1===c.diffValue&&(c.diffValue=0,pt(c,e))}r!==Je.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}(e),ct(r),i}function it(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)_t(t[n],e);e.dependenciesState_=Je.NOT_TRACKING_}function ot(e){var t=at();try{return e()}finally{st(t)}}function at(){var e=vt.trackingDerivation;return vt.trackingDerivation=null,e}function st(e){vt.trackingDerivation=e}function ut(e){var t=vt.allowStateReads;return vt.allowStateReads=e,t}function ct(e){vt.allowStateReads=e}function lt(e){if(e.dependenciesState_!==Je.UP_TO_DATE_){e.dependenciesState_=Je.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=Je.UP_TO_DATE_}}var ft=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,ht=!1,vt=function(){var e=a();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(dt=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new ft).version&&(dt=!1),dt?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new ft):(setTimeout((function(){ht||i(35)}),1),new ft)}();function pt(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function _t(e,t){e.observers_.delete(t),0===e.observers_.size&&bt(e)}function bt(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,vt.pendingUnobservations.push(e))}function gt(){vt.inBatch++}function yt(){if(0==--vt.inBatch){At();for(var e=vt.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 Ye&&n.suspend_())}vt.pendingUnobservations=[]}}function mt(e){var t=vt.trackingDerivation;return null!==t?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&vt.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(0===e.observers_.size&&vt.inBatch>0&&bt(e),!1)}function Ot(e){e.lowestObserverState_!==Je.STALE_&&(e.lowestObserverState_=Je.STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Je.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=Je.STALE_})))}var wt=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_=Je.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=Qe.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,vt.pendingReactions.push(this),At())},t.runReaction_=function(){if(!this.isDisposed){gt(),this.isScheduled=!1;var e=vt.trackingContext;if(vt.trackingContext=this,nt(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(e){this.reportExceptionInDerivation_(e)}}vt.trackingContext=e,yt()}},t.track=function(e){if(!this.isDisposed){gt(),this.isRunning=!0;var t=vt.trackingContext;vt.trackingContext=this;var n=rt(this,e,void 0);vt.trackingContext=t,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&it(this),tt(n)&&this.reportExceptionInDerivation_(n.cause),yt()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(vt.disableErrorBoundaries)throw e;var n="[mobx] uncaught error in '"+this+"'";vt.suppressReactionErrors||console.error(n,e),vt.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(gt(),it(this),yt()))},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[F]=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_=L(this.flags_,e.isDisposedMask_,t)}},{key:"isScheduled",get:function(){return R(this.flags_,e.isScheduledMask_)},set:function(t){this.flags_=L(this.flags_,e.isScheduledMask_,t)}},{key:"isTrackPending",get:function(){return R(this.flags_,e.isTrackPendingMask_)},set:function(t){this.flags_=L(this.flags_,e.isTrackPendingMask_,t)}},{key:"isRunning",get:function(){return R(this.flags_,e.isRunningMask_)},set:function(t){this.flags_=L(this.flags_,e.isRunningMask_,t)}},{key:"diffValue",get:function(){return R(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=L(this.flags_,e.diffValueMask_,1===t)}}])}();wt.isDisposedMask_=1,wt.isScheduledMask_=2,wt.isTrackPendingMask_=4,wt.isRunningMask_=8,wt.diffValueMask_=16;var St=100,xt=function(e){return e()};function At(){vt.inBatch>0||vt.isRunningReactions||xt(kt)}function kt(){vt.isRunningReactions=!0;for(var e=vt.pendingReactions,t=0;e.length>0;){++t===St&&(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_()}vt.isRunningReactions=!1}var jt=A("Reaction",wt),Et="action",Tt="autoAction",Pt=te(Et),Mt=te("action.bound",{bound:!0}),Ct=te(Tt,{autoAction:!0}),Rt=te("autoAction.bound",{autoAction:!0,bound:!0});function Lt(e){return function(t,n){return g(t)?We(t.name||"<unnamed action>",t,e):g(n)?We(t,n,e):H(n)?(e?Ct:Pt).decorate_20223_(t,n):y(n)?W(t,n,e?Ct:Pt):y(t)?z(te(e?Tt:Et,{name:t,autoAction:e})):void 0}}var Dt=Lt(!1);Object.assign(Dt,Pt);var Nt=Lt(!0);function Vt(e){return g(e)&&!0===e.isMobxAction}Object.assign(Nt,Ct),Dt.bound=z(Mt),Nt.bound=z(Rt);var Bt=function(e){return e()},It="onBO",Ut="onBUO";function Kt(e,t,n){return Gt(Ut,e,t,n)}function Gt(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 qt="never",zt="always",Wt="observed";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 Ft=0;function $t(){this.message="FLOW_CANCELLED"}$t.prototype=Object.create(Error.prototype);var Xt=ae("flow"),Yt=ae("flow.bound",{bound:!0}),Jt=Object.assign((function(e,t){if(H(t))return Xt.decorate_20223_(e,t);if(y(t))return W(e,t,Xt);var n=e,r=n.name||"<unnamed flow>",i=function(){var e,t=arguments,i=++Ft,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)}l(t)}function c(e){var t;a=void 0;try{t=Dt(r+" - runid: "+i+" - yield "+s++,o.throw).call(o,e)}catch(e){return n(e)}l(t)}function l(e){if(!g(null==e?void 0:e.then))return e.done?t(e.value):(a=Promise.resolve(e.value)).then(u,c);e.then(l,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(b,b),Qt(n),e(new $t)}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){return!!e&&(In(e)||!!e[F]||X(e)||jt(e)||Ze(e))}(e)}function tn(e,t){void 0===t&&(t=void 0),gt();try{return e.apply(t)}finally{yt()}}function nn(e){return e[F]}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!!y(t)&&(null==(r=nn(e).set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return!!y(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){i(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),_((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function sn(e,t){var n=at();try{for(var r=[].concat(e.interceptors_||[]),o=0,a=r.length;o<a&&((t=r[o](t))&&!t.type&&i(14),t);o++);return t}finally{st(n)}}function un(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function cn(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),_((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function ln(e,t){var n=at(),r=e.changeListeners_;if(r){for(var i=0,o=(r=r.slice()).length;i<o;i++)r[i](t);st(n)}}var fn="splice",dn="update",hn={get:function(e,t){var n=e[F];return t===F?n:"length"===t?n.getArrayLength_():"string"!=typeof t||isNaN(t)?M(_n,t)?_n[t]:e[t]:n.get_(parseInt(t))},set:function(e,t,n){var r=e[F];return"length"===t&&r.setArrayLength_(n),"symbol"==typeof t||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions:function(){i(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}),cn(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!=typeof e||isNaN(e)||e<0)&&i("Out of range: "+e);var t=this.values_.length;if(e!==t)if(e>t){for(var n=new Array(e-t),r=0;r<e-t;r++)n[r]=void 0;this.spliceWithArray_(t,0,n)}else this.spliceWithArray_(e,t-e)},t.updateArrayLength_=function(e,t){e!==this.lastKnownLength_&&i(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=f),on(this)){var o=sn(this,{object:this.proxy_,type:fn,index:e,removedCount:t,added:n});if(!o)return f;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:dn,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;this.atom_.reportChanged(),i&&ln(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:fn,index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom_.reportChanged(),i&&ln(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&&i(17,e,n.length),e<n.length){this.atom_;var r=n[e];if(on(this)){var o=sn(this,{type:dn,object:this.proxy_,index:e,newValue:t});if(!o)return;t=o.newValue}(t=this.enhancer_(t,r))!==r&&(n[e]=t,this.notifyArrayChildUpdate_(e,t,r))}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),p(),tr((function(){var i=new vn(n,t,r,!1);x(i.values_,F,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[F];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[F];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[F].spliceWithArray_(e,t,n)},push:function(){for(var e=this[F],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[F].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[F],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 vt.trackingDerivation&&i(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){vt.trackingDerivation&&i(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[F],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[F];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function yn(e){return function(t,n){var r=this,i=this[F];return i.atom_.reportObserved(),i.dehanceValues_(i.values_)[e]((function(e,i){return t.call(n,e,i,r)}))}}function mn(e){return function(){var t=this,n=this[F];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",yn),bn("filter",yn),bn("find",yn),bn("findIndex",yn),bn("findLast",yn),bn("findLastIndex",yn),bn("flatMap",yn),bn("forEach",yn),bn("map",yn),bn("some",yn),bn("toReversed",yn),bn("reduce",mn),bn("reduceRight",mn);var On=A("ObservableArrayAdministration",vn);function wn(e){return m(e)&&On(e[F])}var Sn={},xn="add",An="delete",kn=function(){function e(e,t,n){var r=this;void 0===t&&(t=Q),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[F]=Sn,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)||i(18),tr((function(){r.keysAtom_=Y("ObservableMap.keys()"),r.data_=new Map,r.hasMap_=new Map,e&&r.merge(e)}))}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!vt.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new Xe(this.has_(e),Z,"ObservableMap.key?",!1);this.hasMap_.set(e,r),Kt(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?dn:xn,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:An,object:this,name:e}))return!1;if(this.has_(e)){var n=un(this),r=n?{observableKind:"map",debugObjectName:this.name_,type:An,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&&ln(this,r),!0}return!1},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==vt.UNCHANGED){var r=un(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:dn,object:this,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),r&&ln(this,i)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,tn((function(){var r,i=new Xe(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:xn,object:this,name:e,newValue:t}:null;r&&ln(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=B(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,r,o;O(e)?function(e){var t=Object.keys(e);if(!E)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,r=Object.getPrototypeOf(n),o=Object.getPrototypeOf(r),null!==Object.getPrototypeOf(o)&&i(19,e),e.forEach((function(e,n){return t.set(n,e)}))):null!=e&&i(20,e)})),this},t.clear=function(){var e=this;tn((function(){ot((function(){for(var t,n=B(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,r=function(e){if(k(e)||jn(e))return e;if(Array.isArray(e))return new Map(e);if(O(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return i(21,e)}(e),o=new Map,a=!1,s=B(t.data_.keys());!(n=s()).done;){var u=n.value;if(!r.has(u))if(t.delete(u))a=!0;else{var c=t.data_.get(u);o.set(u,c)}}for(var l,f=B(r.entries());!(l=f()).done;){var d=l.value,h=d[0],v=d[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(),y=b.next(),m=g.next();!y.done;){if(y.value!==m.value){t.keysAtom_.reportChanged();break}y=b.next(),m=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 cn(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=A("ObservableMap",kn);function En(e){return e[Symbol.toStringTag]="MapIterator",ur(e)}var Tn={},Pn=function(){function e(e,t,n){var r=this;void 0===t&&(t=Q),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[F]=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)||i(22),this.enhancer_=function(e,r){return t(e,r,n)},tr((function(){r.atom_=Y(r.name_),e&&r.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(){ot((function(){for(var t,n=B(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.forEach=function(e,t){for(var n,r=B(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:xn,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:xn,object:this,newValue:e}:null;n&&ln(this,r)}return this},t.delete=function(e){var t=this;if(on(this)&&!sn(this,{type:An,object:this,oldValue:e}))return!1;if(this.has(e)){var n=un(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:An,object:this,oldValue:e}:null;return tn((function(){t.atom_.reportChanged(),t.data_.delete(e)})),n&&ln(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 Cn({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 Cn({next:function(){return t<n.length?{value:e.dehanceValue_(n[t++]),done:!1}:{value:void 0,done:!0}}})},t.intersection=function(e){return j(e)&&!Mn(e)?e.intersection(this):new Set(this).intersection(e)},t.union=function(e){return j(e)&&!Mn(e)?e.union(this):new Set(this).union(e)},t.difference=function(e){return new Set(this).difference(e)},t.symmetricDifference=function(e){return j(e)&&!Mn(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 j(e)&&!Mn(e)?e.isDisjointFrom(this):new Set(this).isDisjointFrom(e)},t.replace=function(e){var t=this;return Mn(e)&&(e=new Set(e)),tn((function(){Array.isArray(e)||j(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!=e&&i("Cannot initialize set from "+e)})),this},t.observe_=function(e,t){return cn(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"}}])}(),Mn=A("ObservableSet",Pn);function Cn(e){return e[Symbol.toStringTag]="SetIterator",ur(e)}var Rn=Object.create(null),Ln="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_=O(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 Ye)return n.set(t),!0;if(on(this)){var r=sn(this,{type:dn,object:this.proxy_||this.target_,name:e,newValue:t});if(!r)return null;t=r.newValue}if((t=n.prepareNewValue_(t))!==vt.UNCHANGED){var i=un(this),o=i?{type:dn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),i&&ln(this,o)}return!0},t.get_=function(e){return vt.trackingDerivation&&!M(this.target_,e)&&this.has_(e),this.target_[e]},t.set_=function(e,t,n){return void 0===n&&(n=!1),M(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(!vt.trackingDerivation)return e in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var t=this.pendingKeys_.get(e);return t||(t=new Xe(e in this.target_,Z,"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_[q])&&n[e])return;i(1,t.annotationType_,this.name_+"."+e.toString())}for(var r=this.target_;r&&r!==l;){var o=u(r,e);if(o){var a=t.make_(this,e,o,r);if(0===a)return;if(1===a)break}r=Object.getPrototypeOf(r)}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:xn,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 c(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{yt()}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:xn,newValue:t});if(!o)return null;t=o.newValue}var a=Bn(e),s={configurable:!vt.safeDescriptors||this.isPlainObject_,enumerable:!0,get:a.get,set:a.set};if(r){if(!Reflect.defineProperty(this.target_,e,s))return!1}else c(this.target_,e,s);var u=new Xe(t,n,"ObservableObject.key",!1);this.values_.set(e,u),this.notifyPropertyAddition_(e,u.value_)}finally{yt()}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:xn,newValue:void 0}))return null;t.name||(t.name="ObservableObject.key"),t.context=this.proxy_||this.target_;var i=Bn(e),o={configurable:!vt.safeDescriptors||this.isPlainObject_,enumerable:!1,get:i.get,set:i.set};if(n){if(!Reflect.defineProperty(this.target_,e,o))return!1}else c(this.target_,e,o);this.values_.set(e,new Ye(t)),this.notifyPropertyAddition_(e,void 0)}finally{yt()}return!0},t.delete_=function(e,t){if(void 0===t&&(t=!1),this.keysAtom_,!M(this.target_,e))return!0;if(on(this)&&!sn(this,{object:this.proxy_||this.target_,name:e,type:Ln}))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=u(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 Xe&&(a=o.value_),Ot(o)),this.keysAtom_.reportChanged(),null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(e in this.target_),i){var s={type:Ln,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:a,name:e};i&&ln(this,s)}}finally{yt()}return!0},t.observe_=function(e,t){return cn(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:xn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;r&&ln(this,i)}null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),T(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function Nn(e,t){var n;if(M(e,F))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:Oe(e):void 0}(t));return S(e,F,i),e}var Vn=A("ObservableObjectAdministration",Dn);function Bn(e){return Rn[e]||(Rn[e]={get:function(){return this[F].getObservablePropValue_(e)},set:function(t){return this[F].setObservablePropValue_(e,t)}})}function In(e){return!!m(e)&&Vn(e[F])}function Un(e,t,n){var r;null==(r=e.target_[q])||delete r[n]}var Kn,Gn,qn=$n(0),zn=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,!1===e}(),Wn=0,Hn=function(){};Kn=Hn,Gn=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(Kn.prototype,Gn):void 0!==Kn.prototype.__proto__?Kn.prototype.__proto__=Gn:Kn.prototype=Gn;var Fn=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,x(o,F,e),t&&t.length&&o.spliceWithArray(0,0,t),zn&&Object.defineProperty(o,"0",qn)})),o}U(t,e);var n=t.prototype;return n.concat=function(){this[F].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 wn(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[F].getArrayLength_()},set:function(e){this[F].setArrayLength_(e)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(Hn);function $n(e){return{enumerable:!1,configurable:!0,get:function(){return this[F].get_(e)},set:function(t){this[F].set_(e,t)}}}function Xn(e){c(Fn.prototype,""+e,$n(e))}function Yn(e){if(e>Wn){for(var t=Wn;t<e+100;t++)Xn(t);Wn=e}}function Jn(e,t,n){return new Fn(e,t,n)}function Qn(e,t){if("object"==typeof e&&null!==e){if(wn(e))return void 0!==t&&i(23),e[F].atom_;if(Mn(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||i(25,t,er(e)),n}if(In(e)){if(!t)return i(26);var r=e[F].values_.get(t);return r||i(27,t,er(e)),r}if(X(e)||Ze(e)||jt(e))return e}else if(g(e)&&jt(e[F]))return e[F];i(28)}function Zn(e,t){return e||i(29),void 0!==t?Zn(Qn(e,t)):X(e)||Ze(e)||jt(e)||jn(e)||Mn(e)?e:e[F]?e[F]:void i(24,e)}function er(e,t){var n;if(void 0!==t)n=Qn(e,t);else{if(Vt(e))return e.name;n=In(e)||jn(e)||Mn(e)?Zn(e):Qn(e)}return n.name_}function tr(e){var t=at(),n=Fe(!0);gt();try{return e()}finally{yt(),$e(n),st(t)}}Object.entries(_n).forEach((function(e){var t=e[0],n=e[1];"concat"!==t&&S(Fn.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,c=t.constructor;if(u!==c&&!(g(u)&&u instanceof u&&g(c)&&c instanceof c)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),i=i||[];for(var l=(r=r||[]).length;l--;)if(r[l]===e)return i[l]===t;if(r.push(e),i.push(t),s){if((l=e.length)!==t.length)return!1;for(;l--;)if(!or(e[l],t[l],n-1,r,i))return!1}else{var f,d=Object.keys(e);if(l=d.length,Object.keys(t).length!==l)return!1;for(;l--;)if(!M(t,f=d[l])||!or(e[f],t[f],n-1,r,i))return!1}return r.pop(),i.pop(),!0}function ar(e){return wn(e)?e.slice():k(e)||jn(e)||j(e)||Mn(e)?Array.from(e.entries()):e}var sr=(null==(nr=a().Iterator)?void 0:nr.prototype)||{};function ur(e){return e[Symbol.iterator]=cr,Object.assign(Object.create(sr),e)}function cr(){return this}["Symbol","Map","Set"].forEach((function(e){void 0===a()[e]&&i("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:F});var lr=r(953),fr=r.n(lr);if(!lr.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!function(e,t,n){return tr((function(){var r=Nn(e,n)[F];null!=t||(t=function(e){return M(e,q)||S(e,q,I({},e[q])),e[q]}(e)),T(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 dr=n(180);function hr(e){e()}function vr(e){e||(e=hr),function(e){!0===e.isolateGlobalState&&function(){if((vt.pendingReactions.length||vt.inBatch||vt.isRunningReactions)&&i(36),ht=!0,dt){var e=a();0==--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),vt=new ft}}();var t,n,r=e.useProxies,o=e.enforceActions;if(void 0!==r&&(vt.useProxies=r===zt||r!==qt&&"undefined"!=typeof Proxy),"ifavailable"===r&&(vt.verifyProxies=!0),void 0!==o){var s=o===zt?zt:o===Wt;vt.enforceActions=s,vt.allowStateChanges=!0!==s&&s!==zt}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(t){t in e&&(vt[t]=!!e[t])})),vt.allowStateReads=!vt.observableRequiresReaction,e.reactionScheduler&&(t=e.reactionScheduler,n=xt,xt=function(e){return t((function(){return n(e)}))})}({reactionScheduler:e})}var pr=function(){return!0};function _r(e){return Ht(Qn(e,void 0))}var br=!1;function gr(e){br=e}function yr(){return br}var mr,Or,wr=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}(),Sr=new("undefined"!=typeof FinalizationRegistry?FinalizationRegistry:wr)((function(e){var t;null===(t=e.reaction)||void 0===t||t.dispose(),e.reaction=null})),xr=r(634);function Ar(e){e.reaction=new wt("observer".concat(e.name),(function(){var t;e.stateVersion=Symbol(),null===(t=e.onStoreChange)||void 0===t||t.call(e)}))}function kr(e,t){if(void 0===t&&(t="observed"),yr())return e();var n=fr().useRef(null);if(!n.current){var r={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(e){return Sr.unregister(r),r.onStoreChange=e,r.reaction||(Ar(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||(Ar(a),Sr.register(n,a,a)),fr().useDebugValue(a.reaction,_r),(0,xr.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===(mr=Object.getOwnPropertyDescriptor((function(){}),"name"))||void 0===mr?void 0:mr.configurable)&&void 0!==Or&&Or,Tr=jr?Symbol.for("react.forward_ref"):"function"==typeof lr.forwardRef&&(0,lr.forwardRef)((function(e){return null})).$$typeof,Pr=jr?Symbol.for("react.memo"):"function"==typeof lr.memo&&(0,lr.memo)((function(e){return null})).$$typeof;function Mr(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(yr())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 kr((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,lr.forwardRef)(u)),u=(0,lr.memo)(u),a=e,s=u,Object.keys(a).forEach((function(e){Rr[e]||Object.defineProperty(s,e,Object.getOwnPropertyDescriptor(a,e))})),u}var Cr,Rr={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function Lr(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:kr(r)}function Dr(e,t){return(0,lr.useState)((function(){return Ne(e(),t,{autoBind:!0})}))[0]}function Nr(e){var t=(0,lr.useState)((function(){return Ne(e,{},{deep:!1})}))[0];return function(e){He(0,!1,e,this,void 0)}((function(){Object.assign(t,e)})),t}function Vr(e,t){var n=t&&Nr(t);return(0,lr.useState)((function(){return Ne(e(n),void 0,{autoBind:!0})}))[0]}Lr.displayName="Observer",vr(dr.unstable_batchedUpdates);var Br=null!==(Cr=Sr.finalizeAllImmediately)&&void 0!==Cr?Cr:function(){};function Ir(e,t){return void 0===t&&(t="observed"),kr(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),c=n(222),l=n.n(c),f=n(626),d=n.n(f),h=n(279),v=n.n(h),p=n(178),_={};_.styleTagTransform=v(),_.setAttributes=l(),_.insert=u().bind(null,"head"),_.domAPI=a(),_.insertStyleElement=d(),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],c=r.base?u[0]+r.base:u[0],l=o[c]||0,f="".concat(c," ").concat(l);o[c]=l+1;var d=n(f),h={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==d)t[d].references++,t[d].updater(h);else{var v=i(h,r);r.byIndex=s,t.splice(s,0,{identifier:f,updater:v,references:1})}a.push(f)}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),c=0;c<o.length;c++){var l=n(o[c]);0===t[l].references&&(t[l].updater(),t.splice(l,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 c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var l="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,l=r[1];return s((function(){i.value=n,i.getSnapshot=t,c(i)&&l({inst:i})}),[e,n,t]),a((function(){return c(i)&&l({inst:i}),e((function(){c(i)&&l({inst:i})}))}),[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},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),[c,l]=(0,a.useState)(null),{currentTask:f,audioRef:d,toggleHold:h,toggleRecording:v,endCall:p,wrapupCall:_,wrapupCodes:b,wrapupRequired:g}=e;return(0,a.useEffect)((()=>{if(!f||!f.data||!f.data.interaction)return;const{interaction:e,mediaResourceId:t}=f.data,{media:r,callProcessingDetails:o}=e,a=r&&r[t]&&r[t].isHold;if(n(a),o){const{isPaused:e}=o;i(!e)}}),[f]),a.default.createElement(a.default.Fragment,null,a.default.createElement("audio",{ref:d,id:"remote-audio",autoPlay:!0}),f&&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:g,color:t?"join":"cancel"},t?"Resume":"Hold"),a.default.createElement(s.ButtonPill,{onPress:()=>{v(r),i(!r)},disabled:g},r?"Pause Recording":"Resume Recording"),a.default.createElement(s.ButtonPill,{onPress:p,disabled:g||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),l(n)},disabled:!g},a.default.createElement("option",{value:""},"Select the wrap-up reason"),b.map((e=>a.default.createElement("option",{key:e.id,value:e.id},e.name)))),a.default.createElement(s.ButtonPill,{onPress:()=>{o&&c&&(_(o,c),u(null),l(null))},disabled:!g&&!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)),c=(0,o.observer)((({onHoldResume:e,onEnd:t,onWrapUp:n})=>{const{logger:r,currentTask:o,deviceType:c,wrapupCodes:l,wrapupRequired:f}=a.default,d=Object.assign(Object.assign({},(0,s.useCallControl)({currentTask:o,deviceType:c,onHoldResume:e,onEnd:t,onWrapUp:n,logger:r})),{wrapupRequired:f,wrapupCodes:l});return i.default.createElement(u.default,Object.assign({},d))}));t.CallControl=c},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:c,dn:l,virtualTeamName:f}=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},c))),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},f," - ",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:")," ",c),i.default.createElement("p",{style:a.detailItem},i.default.createElement("strong",{style:a.detailLabel},"DNIS:")," ",l),i.default.createElement("p",{style:a.detailItem},i.default.createElement("strong",{style:a.detailLabel},"Queue Name:")," ",f))))))}},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)),c=(0,o.observer)((({onAccepted:e,onDeclined:t})=>{const{deviceType:n,incomingTask:r,logger:o}=a.default,c=(0,s.useIncomingTask)({incomingTask:r,onAccepted:e,onDeclined:t,deviceType:n,logger:o}),l=Object.assign({},c);return i.default.createElement(u.default,Object.assign({},l))}));t.IncomingTask=c},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),c=(0,a.observer)((()=>{const{cc:e,taskList:t,currentTask:n,deviceType:r,logger:a}=o.default,c=(0,u.useTaskList)({cc:e,deviceType:r,logger:a,taskList:t}),l=Object.assign(Object.assign({},c),{currentTask:n});return i.default.createElement(s.default,Object.assign({},l))}));t.TaskList=c},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 c=e.data.interaction.callAssociatedDetails,{ani:l,dn:f,virtualTeamName:d}=c;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},l),i.default.createElement("p",{style:a.textSecondary},d))),!t&&i.default.createElement("div",null,i.default.createElement("p",{style:a.rightSectionText},f),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,c=(0,a.useRef)(null),l="BROWSER"===u,f=(e,t)=>{o.error(e,{module:"widget-cc-task#helper.ts",method:`useCallControl#${t}`})},d=(0,a.useCallback)((e=>{c.current&&(c.current.srcObject=new MediaStream([e]))}),[c,t]);return(0,a.useEffect)((()=>{if(t&&l)return t.on(s.TASK_EVENTS.TASK_MEDIA,d),()=>{t.off(s.TASK_EVENTS.TASK_MEDIA,d)}}),[t]),{currentTask:t,audioRef:c,endCall:()=>{t.end().then((()=>{r&&r()})).catch((e=>{f(`Error ending call: ${e}`,"endCall")}))},toggleHold:e=>{e?t.hold().then((()=>n&&n())).catch((e=>{f(`Error holding call: ${e}`,"toggleHold")})):t.resume().then((()=>n&&n())).catch((e=>{f(`Error resuming call: ${e}`,"toggleHold")}))},toggleRecording:e=>{e?t.pauseRecording().catch((e=>{f(`Error pausing recording: ${e}`,"toggleRecording")})):t.resumeRecording().catch((e=>{f(`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=>{f(`Error wrapping up call: ${e}`,"wrapupCall")}))}}}},729:e=>{e.exports=n(1729)},768:e=>{e.exports=n(5768)},953:e=>{e.exports=n(4953)}},r={};function i(e){var n=r[e];if(void 0!==n)return n.exports;var o=r[e]={id:e,exports:{}};return t[e].call(o.exports,o,o.exports,i),o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nc=void 0;var o={};(()=>{var e=o;Object.defineProperty(e,"__esModule",{value:!0}),e.CallControl=e.TaskList=e.IncomingTask=void 0;const t=i(360);Object.defineProperty(e,"IncomingTask",{enumerable:!0,get:function(){return t.IncomingTask}});const n=i(196);Object.defineProperty(e,"TaskList",{enumerable:!0,get:function(){return n.TaskList}});const r=i(681);Object.defineProperty(e,"CallControl",{enumerable:!0,get:function(){return r.CallControl}})})(),e.exports=o})()},3758:(e,t,n)=>{(()=>{var t={62:(e,t,r)=>{"use strict";function i(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)}r.r(t),r.d(t,{Observer:()=>Lr,_observerFinalizationRegistry:()=>Sr,clearTimers:()=>Br,enableStaticRendering:()=>gr,isObserverBatched:()=>pr,isUsingStaticRendering:()=>yr,observer:()=>Mr,observerBatching:()=>vr,useAsObservableSource:()=>Nr,useLocalObservable:()=>Dr,useLocalStore:()=>Vr,useObserver:()=>Ir,useStaticRendering:()=>Ur});var o={};function a(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:o}var s=Object.assign,u=Object.getOwnPropertyDescriptor,c=Object.defineProperty,l=Object.prototype,f=[];Object.freeze(f);var d={};Object.freeze(d);var h="undefined"!=typeof Proxy,v=Object.toString();function p(){h||i("Proxy not available")}function _(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var b=function(){};function g(e){return"function"==typeof e}function y(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function m(e){return null!==e&&"object"==typeof e}function O(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()===v}function w(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function S(e,t,n){c(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function x(e,t,n){c(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function A(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 j(e){return null!=e&&"[object Set]"===Object.prototype.toString.call(e)}var E=void 0!==Object.getOwnPropertySymbols,T="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:E?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function P(e){return null===e?null:"object"==typeof e?""+e:e}function M(e,t){return l.hasOwnProperty.call(e,t)}var C=Object.getOwnPropertyDescriptors||function(e){var t={};return T(e).forEach((function(n){t[n]=u(e,n)})),t};function R(e,t){return!!(e&t)}function L(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 N(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,G(r.key),r)}}function V(e,t,n){return t&&N(e.prototype,t),n&&N(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function B(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 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 U(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,K(e,t)}function K(e,t){return K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},K(e,t)}function G(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 q=Symbol("mobx-stored-annotations");function z(e){return Object.assign((function(t,n){if(H(n))return e.decorate_20223_(t,n);W(t,n,e)}),e)}function W(e,t,n){M(e,q)||S(e,q,I({},e[q])),function(e){return e.annotationType_===ee}(n)||(e[q][t]=n)}function H(e){return"object"==typeof e&&"string"==typeof e.kind}var F=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_=Je.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(),Ot(this),yt()},t.toString=function(){return this.name_},V(e,[{key:"isBeingObserved",get:function(){return R(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=L(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return R(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=L(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return R(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=L(this.flags_,e.diffValueMask_,1===t)}}])}();$.isBeingObservedMask_=1,$.isPendingUnobservationMask_=2,$.diffValueMask_=4;var X=A("Atom",$);function Y(e,t,n){void 0===t&&(t=b),void 0===n&&(n=b);var r=new $(e);return t!==b&&Gt(It,r,t,void 0),n!==b&&Kt(r,n),r}var J={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 Q(e,t,n){return en(e)?e:Array.isArray(e)?Ne.array(e,{name:n}):O(e)?Ne.object(e,void 0,{name:n}):k(e)?Ne.map(e,{name:n}):j(e)?Ne.set(e,{name:n}):"function"!=typeof e||Vt(e)||Zt(e)?e:w(e)?Jt(e):Nt(n,e)}function Z(e){return e}var ee="override";function te(e,t){return{annotationType_:e,options_:t,make_:ne,extend_:re,decorate_20223_:ie}}function ne(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=oe(e,this,t,n,!1);return c(r,t,o),2}function re(e,t,n,r){var i=oe(e,this,t,n);return e.defineProperty_(t,i,r)}function ie(e,t){var n,r=t.kind,o=t.name,a=t.addInitializer,s=this,u=function(e){var t,n,r,i;return We(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"==r?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"==r?(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 i("Cannot apply '"+s.annotationType_+"' to '"+String(o)+"' (kind: "+r+"):\n'"+s.annotationType_+"' can only be used on properties with a function value.")}function oe(e,t,n,r,i){var o,a,s,u,c,l,f,d;void 0===i&&(i=vt.safeDescriptors),d=r,t.annotationType_,d.value;var h,v=r.value;return null!=(o=t.options_)&&o.bound&&(v=v.bind(null!=(h=e.proxy_)?h:e.target_)),{value:We(null!=(a=null==(s=t.options_)?void 0:s.name)?a:n.toString(),v,null!=(u=null==(c=t.options_)?void 0:c.autoAction)&&u,null!=(l=t.options_)&&l.bound?null!=(f=e.proxy_)?f:e.target_:void 0),configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function ae(e,t){return{annotationType_:e,options_:t,make_:se,extend_:ue,decorate_20223_:ce}}function se(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&&(!M(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 c(r,t,o),2}function ue(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 ce(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=vt.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 fe(e,t){return{annotationType_:e,options_:t,make_:de,extend_:he,decorate_20223_:ve}}function de(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function he(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 ve(e,t){var n=this,r=t.name;return(0,t.addInitializer)((function(){var t=Nn(this)[F],i=I({},n.options_,{get:e,context:this});i.name||(i.name="ObservableObject."+r.toString()),t.values_.set(r,new Ye(i))})),function(){return this[F].getObservablePropValue_(r)}}function pe(e,t){return{annotationType_:e,options_:t,make_:_e,extend_:be,decorate_20223_:ge}}function _e(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function be(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:Q,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=Nn(e)[F],u=new Xe(t,null!=(r=null==(a=n.options_)?void 0:a.enhancer)?r:Q,"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[F].getObservablePropValue_(i)},set:function(e){return o.has(this)||a(this,e),this[F].setObservablePropValue_(i,e)},init:function(e){return o.has(this)||a(this,e),e}}}var ye="true",me=Oe();function Oe(e){return{annotationType_:ye,options_:e,make_:we,extend_:Se,decorate_20223_:xe}}function we(e,t,n,r){var i,o,a,s;if(n.get)return Ue.make_(e,t,n,r);if(n.set){var u=We(t.toString(),n.set);return r===e.target_?null===e.defineProperty_(t,{configurable:!vt.safeDescriptors||e.isPlainObject_,set:u})?0:2:(c(r,t,{configurable:!0,set:u}),2)}if(r!==e.target_&&"function"==typeof n.value)return w(n.value)?(null!=(s=this.options_)&&s.autoBind?Jt.bound:Jt).make_(e,t,n,r):(null!=(a=this.options_)&&a.autoBind?Nt.bound:Nt).make_(e,t,n,r);var l,f=!1===(null==(i=this.options_)?void 0:i.deep)?Ne.ref:Ne;return"function"==typeof n.value&&null!=(o=this.options_)&&o.autoBind&&(n.value=n.value.bind(null!=(l=e.proxy_)?l:e.target_)),f.make_(e,t,n,r)}function Se(e,t,n,r){var i,o,a;return n.get?Ue.extend_(e,t,n,r):n.set?e.defineProperty_(t,{configurable:!vt.safeDescriptors||e.isPlainObject_,set:We(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)?Ne.ref:Ne).extend_(e,t,n,r))}function xe(e,t){i("'"+this.annotationType_+"' cannot be used as a decorator")}var Ae={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function ke(e){return e||Ae}Object.freeze(Ae);var je=pe("observable"),Ee=pe("observable.ref",{enhancer:Z}),Te=pe("observable.shallow",{enhancer:function(e,t,n){return null==e||In(e)||wn(e)||jn(e)||Mn(e)?e:Array.isArray(e)?Ne.array(e,{name:n,deep:!1}):O(e)?Ne.object(e,void 0,{name:n,deep:!1}):k(e)?Ne.map(e,{name:n,deep:!1}):j(e)?Ne.set(e,{name:n,deep:!1}):void 0}}),Pe=pe("observable.struct",{enhancer:function(e,t){return ir(e,t)?t:e}}),Me=z(je);function Ce(e){return!0===e.deep?Q:!1===e.deep?Z:(t=e.defaultDecorator)&&null!=(n=null==(r=t.options_)?void 0:r.enhancer)?n:Q;var t,n,r}function Re(e,t,n){return H(t)?je.decorate_20223_(e,t):y(t)?void W(e,t,je):en(e)?e:O(e)?Ne.object(e,t,n):Array.isArray(e)?Ne.array(e,t):k(e)?Ne.map(e,t):j(e)?Ne.set(e,t):"object"==typeof e&&null!==e?e:Ne.box(e,t)}s(Re,Me);var Le,De,Ne=s(Re,{box:function(e,t){var n=ke(t);return new Xe(e,Ce(n),n.name,!0,n.equals)},array:function(e,t){var n=ke(t);return(!1===vt.useProxies||!1===n.proxy?Jn:pn)(e,Ce(n),n.name)},map:function(e,t){var n=ke(t);return new kn(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){var r=C(t);return tr((function(){var t=Nn(e,void 0)[F];T(r).forEach((function(e){t.extend_(e,r[e],!n||!(e in n)||n[e])}))})),e}(!1===vt.useProxies||!1===(null==n?void 0:n.proxy)?Nn({},n):function(e,t){var n,r;return p(),null!=(r=(n=(e=Nn(e,t))[F]).proxy_)?r:n.proxy_=new Proxy(e,rn)}({},n),e,t)}))},ref:z(Ee),shallow:z(Te),deep:Me,struct:z(Pe)}),Ve="computed",Be=fe(Ve),Ie=fe("computed.struct",{equals:J.structural}),Ue=function(e,t){if(H(t))return Be.decorate_20223_(e,t);if(y(t))return W(e,t,Be);if(O(e))return z(fe(Ve,e));var n=O(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new Ye(n)};Object.assign(Ue,Be),Ue.struct=z(Ie);var Ke=0,Ge=1,qe=null!=(Le=null==(De=u((function(){}),"name"))?void 0:De.configurable)&&Le,ze={value:"action",configurable:!0,writable:!1,enumerable:!1};function We(e,t,n,r){function i(){return He(0,n,t,r||this,arguments)}return void 0===n&&(n=!1),i.isMobxAction=!0,i.toString=function(){return t.toString()},qe&&(ze.value=e,c(i,"name",ze)),i}function He(e,t,n,r,o){var a=function(e,t){var n=vt.trackingDerivation,r=!t||!n;gt();var i=vt.allowStateChanges;r&&(at(),i=Fe(!0));var o={runAsAction_:r,prevDerivation_:n,prevAllowStateChanges_:i,prevAllowStateReads_:ut(!0),notifySpy_:!1,startTime_:0,actionId_:Ge++,parentActionId_:Ke};return Ke=o.actionId_,o}(0,t);try{return n.apply(r,o)}catch(e){throw a.error_=e,e}finally{!function(e){Ke!==e.actionId_&&i(30),Ke=e.parentActionId_,void 0!==e.error_&&(vt.suppressReactionErrors=!0),$e(e.prevAllowStateChanges_),ct(e.prevAllowStateReads_),yt(),e.runAsAction_&&st(e.prevDerivation_),vt.suppressReactionErrors=!1}(a)}}function Fe(e){var t=vt.allowStateChanges;return vt.allowStateChanges=e,t}function $e(e){vt.allowStateChanges=e}var Xe=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=J.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}U(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))!==vt.UNCHANGED&&this.setNewValue_(e)},n.prepareNewValue_=function(e){if(on(this)){var t=sn(this,{object:this,type:dn,newValue:e});if(!t)return vt.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?vt.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),un(this)&&ln(this,{type:dn,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:dn,newValue:this.value_,oldValue:void 0}),cn(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 P(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},t}($),Ye=function(){function e(e){this.dependenciesState_=Je.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Je.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new et(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Qe.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||i(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=We("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?J.structural:J.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_===Je.UP_TO_DATE_&&(e.lowestObserverState_=Je.POSSIBLY_STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Je.UP_TO_DATE_&&(e.dependenciesState_=Je.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&&i(32,this.name_,this.derivation),0!==vt.inBatch||0!==this.observers_.size||this.keepAlive_){if(mt(this),nt(this)){var e=vt.trackingContext;this.keepAlive_&&!e&&(vt.trackingContext=this),this.trackAndCompute()&&function(e){e.lowestObserverState_!==Je.STALE_&&(e.lowestObserverState_=Je.STALE_,e.observers_.forEach((function(t){t.dependenciesState_===Je.POSSIBLY_STALE_?t.dependenciesState_=Je.STALE_:t.dependenciesState_===Je.UP_TO_DATE_&&(e.lowestObserverState_=Je.UP_TO_DATE_)})))}(this),vt.trackingContext=e}}else nt(this)&&(this.warnAboutUntrackedRead_(),gt(),this.value_=this.computeValue_(!1),yt());var t=this.value_;if(tt(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter&&i(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter=!1}}else i(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===Je.NOT_TRACKING_,n=this.computeValue_(!0),r=t||tt(e)||tt(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing=!0;var t,n=Fe(!1);if(e)t=rt(this,this.derivation,this.scope_);else if(!0===vt.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(e){t=new et(e)}return $e(n),this.isComputing=!1,t},t.suspend_=function(){this.keepAlive_||(it(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)}:Bt}(t),c=!1;a=new wt(s,(function(){c||(c=!0,u((function(){c=!1,a.isDisposed||a.track(l)})))}),t.onError,t.requiresObservable)}else a=new wt(s,(function(){this.track(l)}),t.onError,t.requiresObservable);function l(){e()}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=at();e({observableKind:"computed",debugObjectName:n.name_,type:dn,object:n,newValue:o,oldValue:i}),st(a)}r=!1,i=o}))},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return P(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_=L(this.flags_,e.isComputingMask_,t)}},{key:"isRunningSetter",get:function(){return R(this.flags_,e.isRunningSetterMask_)},set:function(t){this.flags_=L(this.flags_,e.isRunningSetterMask_,t)}},{key:"isBeingObserved",get:function(){return R(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=L(this.flags_,e.isBeingObservedMask_,t)}},{key:"isPendingUnobservation",get:function(){return R(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=L(this.flags_,e.isPendingUnobservationMask_,t)}},{key:"diffValue",get:function(){return R(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=L(this.flags_,e.diffValueMask_,1===t)}}])}();Ye.isComputingMask_=1,Ye.isRunningSetterMask_=2,Ye.isBeingObservedMask_=4,Ye.isPendingUnobservationMask_=8,Ye.diffValueMask_=16;var Je,Qe,Ze=A("ComputedValue",Ye);!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_"}(Je||(Je={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Qe||(Qe={}));var et=function(e){this.cause=void 0,this.cause=e};function tt(e){return e instanceof et}function nt(e){switch(e.dependenciesState_){case Je.UP_TO_DATE_:return!1;case Je.NOT_TRACKING_:case Je.STALE_:return!0;case Je.POSSIBLY_STALE_:for(var t=ut(!0),n=at(),r=e.observing_,i=r.length,o=0;o<i;o++){var a=r[o];if(Ze(a)){if(vt.disableErrorBoundaries)a.get();else try{a.get()}catch(e){return st(n),ct(t),!0}if(e.dependenciesState_===Je.STALE_)return st(n),ct(t),!0}}return lt(e),st(n),ct(t),!1}}function rt(e,t,n){var r=ut(!0);lt(e),e.newObserving_=new Array(0===e.runId_?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++vt.runId;var i,o=vt.trackingDerivation;if(vt.trackingDerivation=e,vt.inBatch++,!0===vt.disableErrorBoundaries)i=t.call(n);else try{i=t.call(n)}catch(e){i=new et(e)}return vt.inBatch--,vt.trackingDerivation=o,function(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=Je.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&&_t(u,e),u.diffValue=0}for(;i--;){var c=n[i];1===c.diffValue&&(c.diffValue=0,pt(c,e))}r!==Je.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}(e),ct(r),i}function it(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)_t(t[n],e);e.dependenciesState_=Je.NOT_TRACKING_}function ot(e){var t=at();try{return e()}finally{st(t)}}function at(){var e=vt.trackingDerivation;return vt.trackingDerivation=null,e}function st(e){vt.trackingDerivation=e}function ut(e){var t=vt.allowStateReads;return vt.allowStateReads=e,t}function ct(e){vt.allowStateReads=e}function lt(e){if(e.dependenciesState_!==Je.UP_TO_DATE_){e.dependenciesState_=Je.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=Je.UP_TO_DATE_}}var ft=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,ht=!1,vt=function(){var e=a();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(dt=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new ft).version&&(dt=!1),dt?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new ft):(setTimeout((function(){ht||i(35)}),1),new ft)}();function pt(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function _t(e,t){e.observers_.delete(t),0===e.observers_.size&&bt(e)}function bt(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,vt.pendingUnobservations.push(e))}function gt(){vt.inBatch++}function yt(){if(0==--vt.inBatch){At();for(var e=vt.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 Ye&&n.suspend_())}vt.pendingUnobservations=[]}}function mt(e){var t=vt.trackingDerivation;return null!==t?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&vt.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(0===e.observers_.size&&vt.inBatch>0&&bt(e),!1)}function Ot(e){e.lowestObserverState_!==Je.STALE_&&(e.lowestObserverState_=Je.STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Je.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=Je.STALE_})))}var wt=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_=Je.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=Qe.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,vt.pendingReactions.push(this),At())},t.runReaction_=function(){if(!this.isDisposed){gt(),this.isScheduled=!1;var e=vt.trackingContext;if(vt.trackingContext=this,nt(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(e){this.reportExceptionInDerivation_(e)}}vt.trackingContext=e,yt()}},t.track=function(e){if(!this.isDisposed){gt(),this.isRunning=!0;var t=vt.trackingContext;vt.trackingContext=this;var n=rt(this,e,void 0);vt.trackingContext=t,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&it(this),tt(n)&&this.reportExceptionInDerivation_(n.cause),yt()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(vt.disableErrorBoundaries)throw e;var n="[mobx] uncaught error in '"+this+"'";vt.suppressReactionErrors||console.error(n,e),vt.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(gt(),it(this),yt()))},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[F]=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_=L(this.flags_,e.isDisposedMask_,t)}},{key:"isScheduled",get:function(){return R(this.flags_,e.isScheduledMask_)},set:function(t){this.flags_=L(this.flags_,e.isScheduledMask_,t)}},{key:"isTrackPending",get:function(){return R(this.flags_,e.isTrackPendingMask_)},set:function(t){this.flags_=L(this.flags_,e.isTrackPendingMask_,t)}},{key:"isRunning",get:function(){return R(this.flags_,e.isRunningMask_)},set:function(t){this.flags_=L(this.flags_,e.isRunningMask_,t)}},{key:"diffValue",get:function(){return R(this.flags_,e.diffValueMask_)?1:0},set:function(t){this.flags_=L(this.flags_,e.diffValueMask_,1===t)}}])}();wt.isDisposedMask_=1,wt.isScheduledMask_=2,wt.isTrackPendingMask_=4,wt.isRunningMask_=8,wt.diffValueMask_=16;var St=100,xt=function(e){return e()};function At(){vt.inBatch>0||vt.isRunningReactions||xt(kt)}function kt(){vt.isRunningReactions=!0;for(var e=vt.pendingReactions,t=0;e.length>0;){++t===St&&(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_()}vt.isRunningReactions=!1}var jt=A("Reaction",wt),Et="action",Tt="autoAction",Pt=te(Et),Mt=te("action.bound",{bound:!0}),Ct=te(Tt,{autoAction:!0}),Rt=te("autoAction.bound",{autoAction:!0,bound:!0});function Lt(e){return function(t,n){return g(t)?We(t.name||"<unnamed action>",t,e):g(n)?We(t,n,e):H(n)?(e?Ct:Pt).decorate_20223_(t,n):y(n)?W(t,n,e?Ct:Pt):y(t)?z(te(e?Tt:Et,{name:t,autoAction:e})):void 0}}var Dt=Lt(!1);Object.assign(Dt,Pt);var Nt=Lt(!0);function Vt(e){return g(e)&&!0===e.isMobxAction}Object.assign(Nt,Ct),Dt.bound=z(Mt),Nt.bound=z(Rt);var Bt=function(e){return e()},It="onBO",Ut="onBUO";function Kt(e,t,n){return Gt(Ut,e,t,n)}function Gt(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 qt="never",zt="always",Wt="observed";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 Ft=0;function $t(){this.message="FLOW_CANCELLED"}$t.prototype=Object.create(Error.prototype);var Xt=ae("flow"),Yt=ae("flow.bound",{bound:!0}),Jt=Object.assign((function(e,t){if(H(t))return Xt.decorate_20223_(e,t);if(y(t))return W(e,t,Xt);var n=e,r=n.name||"<unnamed flow>",i=function(){var e,t=arguments,i=++Ft,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)}l(t)}function c(e){var t;a=void 0;try{t=Dt(r+" - runid: "+i+" - yield "+s++,o.throw).call(o,e)}catch(e){return n(e)}l(t)}function l(e){if(!g(null==e?void 0:e.then))return e.done?t(e.value):(a=Promise.resolve(e.value)).then(u,c);e.then(l,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(b,b),Qt(n),e(new $t)}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){return!!e&&(In(e)||!!e[F]||X(e)||jt(e)||Ze(e))}(e)}function tn(e,t){void 0===t&&(t=void 0),gt();try{return e.apply(t)}finally{yt()}}function nn(e){return e[F]}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!!y(t)&&(null==(r=nn(e).set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return!!y(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){i(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),_((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function sn(e,t){var n=at();try{for(var r=[].concat(e.interceptors_||[]),o=0,a=r.length;o<a&&((t=r[o](t))&&!t.type&&i(14),t);o++);return t}finally{st(n)}}function un(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function cn(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),_((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function ln(e,t){var n=at(),r=e.changeListeners_;if(r){for(var i=0,o=(r=r.slice()).length;i<o;i++)r[i](t);st(n)}}var fn="splice",dn="update",hn={get:function(e,t){var n=e[F];return t===F?n:"length"===t?n.getArrayLength_():"string"!=typeof t||isNaN(t)?M(_n,t)?_n[t]:e[t]:n.get_(parseInt(t))},set:function(e,t,n){var r=e[F];return"length"===t&&r.setArrayLength_(n),"symbol"==typeof t||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions:function(){i(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}),cn(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!=typeof e||isNaN(e)||e<0)&&i("Out of range: "+e);var t=this.values_.length;if(e!==t)if(e>t){for(var n=new Array(e-t),r=0;r<e-t;r++)n[r]=void 0;this.spliceWithArray_(t,0,n)}else this.spliceWithArray_(e,t-e)},t.updateArrayLength_=function(e,t){e!==this.lastKnownLength_&&i(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=f),on(this)){var o=sn(this,{object:this.proxy_,type:fn,index:e,removedCount:t,added:n});if(!o)return f;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:dn,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;this.atom_.reportChanged(),i&&ln(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:fn,index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom_.reportChanged(),i&&ln(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&&i(17,e,n.length),e<n.length){this.atom_;var r=n[e];if(on(this)){var o=sn(this,{type:dn,object:this.proxy_,index:e,newValue:t});if(!o)return;t=o.newValue}(t=this.enhancer_(t,r))!==r&&(n[e]=t,this.notifyArrayChildUpdate_(e,t,r))}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),p(),tr((function(){var i=new vn(n,t,r,!1);x(i.values_,F,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[F];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[F];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[F].spliceWithArray_(e,t,n)},push:function(){for(var e=this[F],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[F].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[F],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 vt.trackingDerivation&&i(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){vt.trackingDerivation&&i(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[F],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[F];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function yn(e){return function(t,n){var r=this,i=this[F];return i.atom_.reportObserved(),i.dehanceValues_(i.values_)[e]((function(e,i){return t.call(n,e,i,r)}))}}function mn(e){return function(){var t=this,n=this[F];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",yn),bn("filter",yn),bn("find",yn),bn("findIndex",yn),bn("findLast",yn),bn("findLastIndex",yn),bn("flatMap",yn),bn("forEach",yn),bn("map",yn),bn("some",yn),bn("toReversed",yn),bn("reduce",mn),bn("reduceRight",mn);var On=A("ObservableArrayAdministration",vn);function wn(e){return m(e)&&On(e[F])}var Sn={},xn="add",An="delete",kn=function(){function e(e,t,n){var r=this;void 0===t&&(t=Q),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[F]=Sn,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)||i(18),tr((function(){r.keysAtom_=Y("ObservableMap.keys()"),r.data_=new Map,r.hasMap_=new Map,e&&r.merge(e)}))}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!vt.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new Xe(this.has_(e),Z,"ObservableMap.key?",!1);this.hasMap_.set(e,r),Kt(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?dn:xn,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:An,object:this,name:e}))return!1;if(this.has_(e)){var n=un(this),r=n?{observableKind:"map",debugObjectName:this.name_,type:An,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&&ln(this,r),!0}return!1},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==vt.UNCHANGED){var r=un(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:dn,object:this,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),r&&ln(this,i)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,tn((function(){var r,i=new Xe(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:xn,object:this,name:e,newValue:t}:null;r&&ln(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=B(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,r,o;O(e)?function(e){var t=Object.keys(e);if(!E)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,r=Object.getPrototypeOf(n),o=Object.getPrototypeOf(r),null!==Object.getPrototypeOf(o)&&i(19,e),e.forEach((function(e,n){return t.set(n,e)}))):null!=e&&i(20,e)})),this},t.clear=function(){var e=this;tn((function(){ot((function(){for(var t,n=B(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,r=function(e){if(k(e)||jn(e))return e;if(Array.isArray(e))return new Map(e);if(O(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return i(21,e)}(e),o=new Map,a=!1,s=B(t.data_.keys());!(n=s()).done;){var u=n.value;if(!r.has(u))if(t.delete(u))a=!0;else{var c=t.data_.get(u);o.set(u,c)}}for(var l,f=B(r.entries());!(l=f()).done;){var d=l.value,h=d[0],v=d[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(),y=b.next(),m=g.next();!y.done;){if(y.value!==m.value){t.keysAtom_.reportChanged();break}y=b.next(),m=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 cn(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=A("ObservableMap",kn);function En(e){return e[Symbol.toStringTag]="MapIterator",ur(e)}var Tn={},Pn=function(){function e(e,t,n){var r=this;void 0===t&&(t=Q),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[F]=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)||i(22),this.enhancer_=function(e,r){return t(e,r,n)},tr((function(){r.atom_=Y(r.name_),e&&r.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(){ot((function(){for(var t,n=B(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.forEach=function(e,t){for(var n,r=B(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:xn,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:xn,object:this,newValue:e}:null;n&&ln(this,r)}return this},t.delete=function(e){var t=this;if(on(this)&&!sn(this,{type:An,object:this,oldValue:e}))return!1;if(this.has(e)){var n=un(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:An,object:this,oldValue:e}:null;return tn((function(){t.atom_.reportChanged(),t.data_.delete(e)})),n&&ln(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 Cn({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 Cn({next:function(){return t<n.length?{value:e.dehanceValue_(n[t++]),done:!1}:{value:void 0,done:!0}}})},t.intersection=function(e){return j(e)&&!Mn(e)?e.intersection(this):new Set(this).intersection(e)},t.union=function(e){return j(e)&&!Mn(e)?e.union(this):new Set(this).union(e)},t.difference=function(e){return new Set(this).difference(e)},t.symmetricDifference=function(e){return j(e)&&!Mn(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 j(e)&&!Mn(e)?e.isDisjointFrom(this):new Set(this).isDisjointFrom(e)},t.replace=function(e){var t=this;return Mn(e)&&(e=new Set(e)),tn((function(){Array.isArray(e)||j(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!=e&&i("Cannot initialize set from "+e)})),this},t.observe_=function(e,t){return cn(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"}}])}(),Mn=A("ObservableSet",Pn);function Cn(e){return e[Symbol.toStringTag]="SetIterator",ur(e)}var Rn=Object.create(null),Ln="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_=O(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 Ye)return n.set(t),!0;if(on(this)){var r=sn(this,{type:dn,object:this.proxy_||this.target_,name:e,newValue:t});if(!r)return null;t=r.newValue}if((t=n.prepareNewValue_(t))!==vt.UNCHANGED){var i=un(this),o=i?{type:dn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),i&&ln(this,o)}return!0},t.get_=function(e){return vt.trackingDerivation&&!M(this.target_,e)&&this.has_(e),this.target_[e]},t.set_=function(e,t,n){return void 0===n&&(n=!1),M(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(!vt.trackingDerivation)return e in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var t=this.pendingKeys_.get(e);return t||(t=new Xe(e in this.target_,Z,"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_[q])&&n[e])return;i(1,t.annotationType_,this.name_+"."+e.toString())}for(var r=this.target_;r&&r!==l;){var o=u(r,e);if(o){var a=t.make_(this,e,o,r);if(0===a)return;if(1===a)break}r=Object.getPrototypeOf(r)}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:xn,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 c(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{yt()}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:xn,newValue:t});if(!o)return null;t=o.newValue}var a=Bn(e),s={configurable:!vt.safeDescriptors||this.isPlainObject_,enumerable:!0,get:a.get,set:a.set};if(r){if(!Reflect.defineProperty(this.target_,e,s))return!1}else c(this.target_,e,s);var u=new Xe(t,n,"ObservableObject.key",!1);this.values_.set(e,u),this.notifyPropertyAddition_(e,u.value_)}finally{yt()}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:xn,newValue:void 0}))return null;t.name||(t.name="ObservableObject.key"),t.context=this.proxy_||this.target_;var i=Bn(e),o={configurable:!vt.safeDescriptors||this.isPlainObject_,enumerable:!1,get:i.get,set:i.set};if(n){if(!Reflect.defineProperty(this.target_,e,o))return!1}else c(this.target_,e,o);this.values_.set(e,new Ye(t)),this.notifyPropertyAddition_(e,void 0)}finally{yt()}return!0},t.delete_=function(e,t){if(void 0===t&&(t=!1),this.keysAtom_,!M(this.target_,e))return!0;if(on(this)&&!sn(this,{object:this.proxy_||this.target_,name:e,type:Ln}))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=u(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 Xe&&(a=o.value_),Ot(o)),this.keysAtom_.reportChanged(),null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(e in this.target_),i){var s={type:Ln,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:a,name:e};i&&ln(this,s)}}finally{yt()}return!0},t.observe_=function(e,t){return cn(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:xn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;r&&ln(this,i)}null==(n=this.pendingKeys_)||null==(n=n.get(e))||n.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),T(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function Nn(e,t){var n;if(M(e,F))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:Oe(e):void 0}(t));return S(e,F,i),e}var Vn=A("ObservableObjectAdministration",Dn);function Bn(e){return Rn[e]||(Rn[e]={get:function(){return this[F].getObservablePropValue_(e)},set:function(t){return this[F].setObservablePropValue_(e,t)}})}function In(e){return!!m(e)&&Vn(e[F])}function Un(e,t,n){var r;null==(r=e.target_[q])||delete r[n]}var Kn,Gn,qn=$n(0),zn=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,!1===e}(),Wn=0,Hn=function(){};Kn=Hn,Gn=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(Kn.prototype,Gn):void 0!==Kn.prototype.__proto__?Kn.prototype.__proto__=Gn:Kn.prototype=Gn;var Fn=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,x(o,F,e),t&&t.length&&o.spliceWithArray(0,0,t),zn&&Object.defineProperty(o,"0",qn)})),o}U(t,e);var n=t.prototype;return n.concat=function(){this[F].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 wn(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[F].getArrayLength_()},set:function(e){this[F].setArrayLength_(e)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(Hn);function $n(e){return{enumerable:!1,configurable:!0,get:function(){return this[F].get_(e)},set:function(t){this[F].set_(e,t)}}}function Xn(e){c(Fn.prototype,""+e,$n(e))}function Yn(e){if(e>Wn){for(var t=Wn;t<e+100;t++)Xn(t);Wn=e}}function Jn(e,t,n){return new Fn(e,t,n)}function Qn(e,t){if("object"==typeof e&&null!==e){if(wn(e))return void 0!==t&&i(23),e[F].atom_;if(Mn(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||i(25,t,er(e)),n}if(In(e)){if(!t)return i(26);var r=e[F].values_.get(t);return r||i(27,t,er(e)),r}if(X(e)||Ze(e)||jt(e))return e}else if(g(e)&&jt(e[F]))return e[F];i(28)}function Zn(e,t){return e||i(29),void 0!==t?Zn(Qn(e,t)):X(e)||Ze(e)||jt(e)||jn(e)||Mn(e)?e:e[F]?e[F]:void i(24,e)}function er(e,t){var n;if(void 0!==t)n=Qn(e,t);else{if(Vt(e))return e.name;n=In(e)||jn(e)||Mn(e)?Zn(e):Qn(e)}return n.name_}function tr(e){var t=at(),n=Fe(!0);gt();try{return e()}finally{yt(),$e(n),st(t)}}Object.entries(_n).forEach((function(e){var t=e[0],n=e[1];"concat"!==t&&S(Fn.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,c=t.constructor;if(u!==c&&!(g(u)&&u instanceof u&&g(c)&&c instanceof c)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),i=i||[];for(var l=(r=r||[]).length;l--;)if(r[l]===e)return i[l]===t;if(r.push(e),i.push(t),s){if((l=e.length)!==t.length)return!1;for(;l--;)if(!or(e[l],t[l],n-1,r,i))return!1}else{var f,d=Object.keys(e);if(l=d.length,Object.keys(t).length!==l)return!1;for(;l--;)if(!M(t,f=d[l])||!or(e[f],t[f],n-1,r,i))return!1}return r.pop(),i.pop(),!0}function ar(e){return wn(e)?e.slice():k(e)||jn(e)||j(e)||Mn(e)?Array.from(e.entries()):e}var sr=(null==(nr=a().Iterator)?void 0:nr.prototype)||{};function ur(e){return e[Symbol.iterator]=cr,Object.assign(Object.create(sr),e)}function cr(){return this}["Symbol","Map","Set"].forEach((function(e){void 0===a()[e]&&i("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:F});var lr=r(953),fr=r.n(lr);if(!lr.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!function(e,t,n){return tr((function(){var r=Nn(e,n)[F];null!=t||(t=function(e){return M(e,q)||S(e,q,I({},e[q])),e[q]}(e)),T(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 dr=n(180);function hr(e){e()}function vr(e){e||(e=hr),function(e){!0===e.isolateGlobalState&&function(){if((vt.pendingReactions.length||vt.inBatch||vt.isRunningReactions)&&i(36),ht=!0,dt){var e=a();0==--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),vt=new ft}}();var t,n,r=e.useProxies,o=e.enforceActions;if(void 0!==r&&(vt.useProxies=r===zt||r!==qt&&"undefined"!=typeof Proxy),"ifavailable"===r&&(vt.verifyProxies=!0),void 0!==o){var s=o===zt?zt:o===Wt;vt.enforceActions=s,vt.allowStateChanges=!0!==s&&s!==zt}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(t){t in e&&(vt[t]=!!e[t])})),vt.allowStateReads=!vt.observableRequiresReaction,e.reactionScheduler&&(t=e.reactionScheduler,n=xt,xt=function(e){return t((function(){return n(e)}))})}({reactionScheduler:e})}var pr=function(){return!0};function _r(e){return Ht(Qn(e,void 0))}var br=!1;function gr(e){br=e}function yr(){return br}var mr,Or,wr=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}(),Sr=new("undefined"!=typeof FinalizationRegistry?FinalizationRegistry:wr)((function(e){var t;null===(t=e.reaction)||void 0===t||t.dispose(),e.reaction=null})),xr=r(634);function Ar(e){e.reaction=new wt("observer".concat(e.name),(function(){var t;e.stateVersion=Symbol(),null===(t=e.onStoreChange)||void 0===t||t.call(e)}))}function kr(e,t){if(void 0===t&&(t="observed"),yr())return e();var n=fr().useRef(null);if(!n.current){var r={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(e){return Sr.unregister(r),r.onStoreChange=e,r.reaction||(Ar(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||(Ar(a),Sr.register(n,a,a)),fr().useDebugValue(a.reaction,_r),(0,xr.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===(mr=Object.getOwnPropertyDescriptor((function(){}),"name"))||void 0===mr?void 0:mr.configurable)&&void 0!==Or&&Or,Tr=jr?Symbol.for("react.forward_ref"):"function"==typeof lr.forwardRef&&(0,lr.forwardRef)((function(e){return null})).$$typeof,Pr=jr?Symbol.for("react.memo"):"function"==typeof lr.memo&&(0,lr.memo)((function(e){return null})).$$typeof;function Mr(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(yr())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 kr((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,lr.forwardRef)(u)),u=(0,lr.memo)(u),a=e,s=u,Object.keys(a).forEach((function(e){Rr[e]||Object.defineProperty(s,e,Object.getOwnPropertyDescriptor(a,e))})),u}var Cr,Rr={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function Lr(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:kr(r)}function Dr(e,t){return(0,lr.useState)((function(){return Ne(e(),t,{autoBind:!0})}))[0]}function Nr(e){var t=(0,lr.useState)((function(){return Ne(e,{},{deep:!1})}))[0];return function(e){He(0,!1,e,this,void 0)}((function(){Object.assign(t,e)})),t}function Vr(e,t){var n=t&&Nr(t);return(0,lr.useState)((function(){return Ne(e(n),void 0,{autoBind:!0})}))[0]}Lr.displayName="Observer",vr(dr.unstable_batchedUpdates);var Br=null!==(Cr=Sr.finalizeAllImmediately)&&void 0!==Cr?Cr:function(){};function Ir(e,t){return void 0===t&&(t="observed"),kr(e,t)}function Ur(e){gr(e)}},319:(e,t,n)=>{"use strict";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 c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var l="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,l=r[1];return s((function(){i.value=n,i.getSnapshot=t,c(i)&&l({inst:i})}),[e,n,t]),a((function(){return c(i)&&l({inst:i}),e((function(){c(i)&&l({inst:i})}))}),[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},634:(e,t,n)=>{"use strict";e.exports=n(319)},436:(e,t,n)=>{(()=>{"use strict";var t={611:(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,".light-theme.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}.light-theme .sectionBox{padding:10px;border:1px solid #ddd;border-radius:8px}.light-theme .fieldset{border:1px solid #ccc;border-radius:5px;padding:10px;margin-bottom:20px;position:relative}.light-theme .legendBox{font-weight:bold;color:#0052bf}.light-theme .btn{padding:10px 20px;background-color:#0052bf;color:#fff;border:none;border-radius:4px;cursor:pointer;transition:background-color .3s;margin-right:8px}.light-theme .select{width:100%;padding:8px;margin-top:8px;margin-bottom:12px;border:1px solid #ccc;border-radius:4px}.light-theme .input{width:97%;padding:8px;margin-top:8px;margin-bottom:12px;border:1px solid #ccc;border-radius:4px}.light-theme .elapsedTime{position:absolute;right:30px;top:25px;color:#000}.light-theme .elapsedTime-disabled{color:#ccc}.dark-theme.box{background-color:#1e1e1e;border-radius:8px;box-shadow:0 2px 4px rgba(0,0,0,.5);padding:20px;max-width:800px;margin:0 auto}.dark-theme .sectionBox{padding:10px;border:1px solid #444;border-radius:8px}.dark-theme .fieldset{border:1px solid #555;border-radius:5px;padding:10px;margin-bottom:20px;position:relative}.dark-theme .legendBox{font-weight:bold;color:#79a6d2}.dark-theme .btn{padding:10px 20px;background-color:#79a6d2;color:#1e1e1e;border:none;border-radius:4px;cursor:pointer;transition:background-color .3s;margin-right:8px}.dark-theme .select{width:100%;padding:8px;margin-top:8px;margin-bottom:12px;border:1px solid #555;border-radius:4px;background-color:#2a2a2a;color:#fff}.dark-theme .input{width:97%;padding:8px;margin-top:8px;margin-bottom:12px;border:1px solid #555;border-radius:4px;background-color:#2a2a2a;color:#fff}.dark-theme .elapsedTime{position:absolute;right:30px;top:25px;color:#ddd}.dark-theme .elapsedTime-disabled{color:#777}",""]);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 c=0;c<e.length;c++){var l=[].concat(e[c]);r&&a[l[0]]||(void 0!==o&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),t.push(l))}},t}},63:e=>{e.exports=function(e){return e[1]}},126:(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),c=n(222),l=n.n(c),f=n(626),d=n.n(f),h=n(279),v=n.n(h),p=n(611),_={};_.styleTagTransform=v(),_.setAttributes=l(),_.insert=u().bind(null,"head"),_.domAPI=a(),_.insertStyleElement=d(),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],c=r.base?u[0]+r.base:u[0],l=o[c]||0,f="".concat(c," ").concat(l);o[c]=l+1;var d=n(f),h={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==d)t[d].references++,t[d].updater(h);else{var v=i(h,r);r.byIndex=s,t.splice(s,0,{identifier:f,updater:v,references:1})}a.push(f)}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),c=0;c<o.length;c++){var l=n(o[c]);0===t[l].references&&(t[l].updater(),t.splice(l,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))}}},637: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(185),a=n(729);n(126),t.default=e=>{const{idleCodes:t,setAgentStatus:n,isSettingAgentStatus:r,errorMessage:s,elapsedTime:u,currentState:c,currentTheme:l}=e;return i.default.createElement("div",{className:"box "+("DARK"===l?"dark-theme":"light-theme")},i.default.createElement("section",{className:"sectionBox"},i.default.createElement("fieldset",{className:"fieldset"},i.default.createElement("legend",{"data-testid":"user-state-title",className:"legendBox"},"Agent State"),i.default.createElement("div",{style:{display:"flex",flexDirection:"column",flexGrow:1}}),i.default.createElement("select",{id:"idleCodes",value:c,className:"select",onChange:e=>{const r=null==t?void 0:t.filter((t=>t.id===e.target.value))[0];n(r)},disabled:r},null==t?void 0:t.filter((e=>!e.isSystem)).map((e=>i.default.createElement("option",{key:e.id,value:e.id},e.name)))),i.default.createElement(a.ButtonPill,{type:"button"},"Set state"),i.default.createElement("div",{className:"elapsedTime "+(r?"elapsedTime-disabled":"")},(0,o.formatTime)(u)),s&&i.default.createElement("div",{style:{color:"red"}},s))))}},156: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.UserStateComponent=void 0;const i=r(n(637));t.UserStateComponent=i.default},185:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.formatTime=void 0,t.formatTime=e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=e%60;return`${t.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}`}},729:e=>{e.exports=n(729)},953:e=>{e.exports=n(953)}},r={};function i(e){var n=r[e];if(void 0!==n)return n.exports;var o=r[e]={id:e,exports:{}};return t[e].call(o.exports,o,o.exports,i),o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nc=void 0;var o=i(156);e.exports=o})()},306:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useUserState=void 0;const i=n(953),o=r(n(768));t.useUserState=({idleCodes:e,agentId:t,cc:n,currentState:r,lastStateChangeTimestamp:a})=>{const[s,u]=(0,i.useState)(!1),[c,l]=(0,i.useState)(""),[f,d]=(0,i.useState)(0),h=(0,i.useRef)(null);return(0,i.useEffect)((()=>{const e=new Blob(["\n let intervalId;\n const startTimer = (startTime) => {\n if (intervalId) clearInterval(intervalId);\n intervalId = setInterval(() => {\n const elapsedTime = Math.floor((Date.now() - startTime) / 1000);\n self.postMessage(elapsedTime);\n }, 1000);\n };\n self.onmessage = (event) => {\n if (event.data.type === 'start' || event.data.type === 'reset') {\n const startTime = event.data.startTime;\n startTimer(startTime);\n }\n };\n "],{type:"application/javascript"}),t=URL.createObjectURL(e);h.current=new Worker(t),h.current.postMessage({type:"start",startTime:Date.now()}),h.current.onmessage=e=>{d(e.data)}}),[]),(0,i.useEffect)((()=>{if(h.current&&a){const e=new Date,t=Math.floor(Math.abs(e.getTime()-a.getTime())/1e3);d(t),h.current.postMessage({type:"reset",startTime:a.getTime()})}}),[a]),{idleCodes:e,setAgentStatus:e=>{const{auxCodeId:r,state:i}={auxCodeId:e.id,state:e.name};u(!0);const a="Available"===i?"Available":"Idle";n.setAgentState({state:a,auxCodeId:r,agentId:t,lastStateChangeReason:i}).then((e=>{o.default.setCurrentState(e.data.auxCodeId),o.default.setLastStateChangeTimestamp(new Date(e.data.lastStateChangeTimestamp))})).catch((e=>{l(e.toString())})).finally((()=>{u(!1)}))},isSettingAgentStatus:s,errorMessage:c,elapsedTime:f,currentState:r}}},994:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.UserState=void 0;const i=r(n(953)),o=r(n(768)),a=n(62),s=n(306),u=n(436),c=(0,a.observer)((()=>{const{cc:e,idleCodes:t,agentId:n,currentTheme:r,currentState:a,lastStateChangeTimestamp:c}=o.default,l=Object.assign(Object.assign({},(0,s.useUserState)({idleCodes:t,agentId:n,cc:e,currentState:a,lastStateChangeTimestamp:c})),{currentTheme:r});return i.default.createElement(u.UserStateComponent,Object.assign({},l))}));t.UserState=c},729:e=>{"use strict";e.exports=n(1729)},768:e=>{"use strict";e.exports=n(5768)},953:e=>{"use strict";e.exports=n(4953)}},r={};function i(e){var n=r[e];if(void 0!==n)return n.exports;var o=r[e]={exports:{}};return t[e].call(o.exports,o,o.exports,i),o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{"use strict";var e=o;Object.defineProperty(e,"__esModule",{value:!0}),e.UserState=void 0;const t=i(994);Object.defineProperty(e,"UserState",{enumerable:!0,get:function(){return t.UserState}})})(),e.exports=o})()},1729:e=>{"use strict";e.exports=require("@momentum-ui/react-collaboration")},5768:e=>{"use strict";e.exports=require("@webex/cc-store")},4953:e=>{"use strict";e.exports=require("react")},180:e=>{"use strict";e.exports=require("react-dom")},2033:(e,t,n)=>{"use strict";var r=Object.defineProperty,i=(e,t,n)=>(((e,t,n)=>{t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);const o={string:{stringify:e=>e,parse:e=>e},number:{stringify:e=>`${e}`,parse:e=>parseFloat(e)},boolean:{stringify:e=>e?"true":"false",parse:e=>/^[ty1-9]/i.test(e)},function:{stringify:e=>e.name,parse:(e,t,r)=>{const i=typeof window<"u"&&e in window?window[e]:typeof n.g<"u"&&e in n.g?n.g[e]:void 0;return"function"==typeof i?i.bind(r):void 0}},json:{stringify:e=>JSON.stringify(e),parse:e=>JSON.parse(e)}};function a(e){return e.replace(/([a-z0-9])([A-Z])/g,((e,t,n)=>`${t}-${n.toLowerCase()}`))}const s=Symbol.for("r2wc.render"),u=Symbol.for("r2wc.connected"),c=Symbol.for("r2wc.context"),l=Symbol.for("r2wc.props");e.exports=function(e,t,n){var r,f,d;t.props||(t.props=e.propTypes?Object.keys(e.propTypes):[]);const h=Array.isArray(t.props)?t.props.slice():Object.keys(t.props),v={},p={},_={};for(const e of h){v[e]=Array.isArray(t.props)?"string":t.props[e];const n=a(e);p[e]=n,_[n]=e}class b extends HTMLElement{constructor(){super(),i(this,r,!0),i(this,f),i(this,d,{}),i(this,"container"),t.shadow?this.container=this.attachShadow({mode:t.shadow}):this.container=this,this[l].container=this.container;for(const e of h){const t=p[e],n=this.getAttribute(t),r=v[e],i=r?o[r]:null;null!=i&&i.parse&&n&&(this[l][e]=i.parse(n,t,this))}}static get observedAttributes(){return Object.keys(_)}connectedCallback(){this[u]=!0,this[s]()}disconnectedCallback(){this[u]=!1,this[c]&&n.unmount(this[c]),delete this[c]}attributeChangedCallback(e,t,n){const r=_[e],i=v[r],a=i?o[i]:null;r in v&&null!=a&&a.parse&&n&&(this[l][r]=a.parse(n,e,this),this[s]())}[(r=u,f=c,d=l,s)](){this[u]&&(this[c]?n.update(this[c],this[l]):this[c]=n.mount(this.container,e,this[l]))}}for(const e of h){const t=p[e],n=v[e];Object.defineProperty(b.prototype,e,{enumerable:!0,configurable:!0,get(){return this[l][e]},set(r){this[l][e]=r;const i=n?o[n]:null;if(null!=i&&i.stringify){const e=i.stringify(r,t,this);this.getAttribute(t)!==e&&this.setAttribute(t,e)}else this[s]()}})}return b}},5077:(e,t,n)=>{"use strict";const r=n(4953),i=n(3776),o=n(2033);function a(e,t,n){const o=i.createRoot(e),a=r.createElement(t,n);return o.render(a),{root:o,ReactComponent:t}}function s({root:e,ReactComponent:t},n){const i=r.createElement(t,n);e.render(i)}function u({root:e}){e.unmount()}e.exports=function(e,t={}){return o(e,t,{mount:a,update:s,unmount:u})}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();var r=n(6824);module.exports=r})();