UNPKG

@sync-in/server

Version:

The secure, open-source platform for file storage, sharing, collaboration, and sync

16 lines (12 loc) 182 kB
import{a as kr}from"./chunk-MGGT6MIJ.js";import{c as Tr}from"./chunk-JXZCNFW7.js";import{a as Mr}from"./chunk-MCLQFZ3S.js";import{a as xr,b as wr,c as Ar,d as Dr,e as Nr,f as _i,i as Or}from"./chunk-FNFGUIQH.js";import{b as Lr,c as xi,d as Ir,e as Mi}from"./chunk-F2J2IIJE.js";import{a as Pr,d as Jt,g as Ot}from"./chunk-MVO4WZLK.js";import{f as Si}from"./chunk-VPJ2V27B.js";import{Aa as mr,Ba as gr,Ga as vr,Gb as Ci,Hb as ee,Ib as Dt,Ja as xt,La as Mt,Ma as br,O as rt,Za as on,f as tr,ib as yr,kb as wt,lb as At,mb as le,nb as Be,pb as Cr,wb as H,xb as Sr,za as hr,zb as _r}from"./chunk-4U5A2DEP.js";import{a as Ei,c as je,d as zr,h as st,m as Nt}from"./chunk-22EANI6R.js";import{d as Xn}from"./chunk-BIUNUYZ5.js";import{$ as Gn,$b as bt,$c as Jn,Ab as ke,Ac as Ve,B as T,C as Gt,Cb as b,Db as qn,Dc as nt,Eb as f,Ed as er,Fb as Wt,Fd as Ce,Ga as ze,Gb as Kt,Gf as dr,Ha as $n,Hb as et,Hc as be,Ib as Me,If as ur,Jb as J,Jd as ir,Je as or,Kb as Z,L as pt,La as Ji,Lb as Yt,Ma as l,Mb as j,Mc as Qt,Na as Zi,Nb as V,Ob as Fe,Oc as He,Pb as h,Qa as ht,Qb as R,Ra as me,Rb as se,Re as ar,Rf as fr,Sa as en,Tb as mt,Ub as gt,Vb as vt,Wf as pr,X as jn,Xa as y,Xb as Re,Xc as gi,Ya as ge,Za as xe,Zb as tt,Zc as ye,_a as tn,_b as it,_c as Qn,_e as lr,ab as P,ad as vi,ba as Un,bb as L,bc as Wn,bf as yi,c as Hn,ca as Q,cb as Ut,cc as hi,cg as Er,da as he,dc as ve,ec as mi,ed as Ct,f as Bt,fc as yt,ha as p,hc as Xt,jb as D,jd as St,kb as N,ke as nr,kf as cr,ma as S,na as _,nb as nn,ob as rn,pb as u,pe as rr,qb as c,qc as sn,rb as d,rc as Kn,sb as g,se as sr,tb as $t,td as bi,u as Qi,ub as qt,v as jt,va as Qe,vb as pi,w as Bn,wb as Je,wd as _t,xb as Ze,xd as Zn,ya as ae,yb as Ie,yd as Et,zb as F,zc as Yn}from"./chunk-HW2H3ISM.js";import{a as oe,b as Ye,j as Xe}from"./chunk-RTRJ3KFH.js";var ml={prefix:"far",iconName:"bell",icon:[448,512,[128276,61602],"f0f3","M224 0c-13.3 0-24 10.7-24 24l0 9.7C118.6 45.3 56 115.4 56 200l0 14.5c0 37.7-10 74.7-29 107.3L5.1 359.2C1.8 365 0 371.5 0 378.2 0 399.1 16.9 416 37.8 416l372.4 0c20.9 0 37.8-16.9 37.8-37.8 0-6.7-1.8-13.3-5.1-19L421 321.7c-19-32.6-29-69.6-29-107.3l0-14.5c0-84.6-62.6-154.7-144-166.3l0-9.7c0-13.3-10.7-24-24-24zM392.4 368l-336.9 0 12.9-22.1C91.7 306 104 260.6 104 214.5l0-14.5c0-66.3 53.7-120 120-120s120 53.7 120 120l0 14.5c0 46.2 12.3 91.5 35.5 131.4L392.4 368zM156.1 464c9.9 28 36.6 48 67.9 48s58-20 67.9-48l-135.8 0z"]};var go={prefix:"far",iconName:"file-zipper",icon:[384,512,["file-archive"],"f1c6","M64 48l112 0 0 88c0 39.8 32.2 72 72 72l88 0 0 240c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16L48 64c0-8.8 7.2-16 16-16zM224 67.9l92.1 92.1-68.1 0c-13.3 0-24-10.7-24-24l0-68.1zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-261.5c0-17-6.7-33.3-18.7-45.3L242.7 18.7C230.7 6.7 214.5 0 197.5 0L64 0zM80 104c0 13.3 10.7 24 24 24l16 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-16 0c-13.3 0-24 10.7-24 24zm0 80c0 13.3 10.7 24 24 24l32 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-32 0c-13.3 0-24 10.7-24 24zm64 56l-32 0c-17.7 0-32 14.3-32 32l0 48c0 26.5 21.5 48 48 48s48-21.5 48-48l0-48c0-17.7-14.3-32-32-32zm-16 64a16 16 0 1 1 0 32 16 16 0 1 1 0-32z"]},gl=go;var vl={prefix:"far",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M464 256a208 208 0 1 1 -416 0 208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0 256 256 0 1 0 -512 0zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]};var wi={prefix:"far",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M176 48L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16l256 0c8.8 0 16-7.2 16-16l0-240-88 0c-39.8 0-72-32.2-72-72l0-88zM316.1 160L224 67.9 224 136c0 13.3 10.7 24 24 24l68.1 0zM0 64C0 28.7 28.7 0 64 0L197.5 0c17 0 33.3 6.7 45.3 18.7L365.3 141.3c12 12 18.7 28.3 18.7 45.3L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64z"]};var bl={prefix:"far",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M166.2-16c-13.3 0-25.3 8.3-30 20.8L120 48 24 48C10.7 48 0 58.7 0 72S10.7 96 24 96l400 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-96 0-16.2-43.2C307.1-7.7 295.2-16 281.8-16L166.2-16zM32 144l0 304c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-304-48 0 0 304c0 8.8-7.2 16-16 16L96 464c-8.8 0-16-7.2-16-16l0-304-48 0zm160 72c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 176c0 13.3 10.7 24 24 24s24-10.7 24-24l0-176zm112 0c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 176c0 13.3 10.7 24 24 24s24-10.7 24-24l0-176z"]};var yl={prefix:"far",iconName:"user",icon:[448,512,[128100,62144,62470,"user-alt","user-large"],"f007","M144 128a80 80 0 1 1 160 0 80 80 0 1 1 -160 0zm208 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0zM48 480c0-70.7 57.3-128 128-128l96 0c70.7 0 128 57.3 128 128l0 8c0 13.3 10.7 24 24 24s24-10.7 24-24l0-8c0-97.2-78.8-176-176-176l-96 0C78.8 304 0 382.8 0 480l0 8c0 13.3 10.7 24 24 24s24-10.7 24-24l0-8z"]};var Cl={prefix:"far",iconName:"file-lines",icon:[384,512,[128441,128462,61686,"file-alt","file-text"],"f15c","M64 48l112 0 0 88c0 39.8 32.2 72 72 72l88 0 0 240c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16L48 64c0-8.8 7.2-16 16-16zM224 67.9l92.1 92.1-68.1 0c-13.3 0-24-10.7-24-24l0-68.1zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-261.5c0-17-6.7-33.3-18.7-45.3L242.7 18.7C230.7 6.7 214.5 0 197.5 0L64 0zm56 256c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0zm0 96c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0z"]};var Sl={prefix:"far",iconName:"comment-dots",icon:[512,512,[128172,62075,"commenting"],"f4ad","M0 240c0 54.4 19.3 104.6 51.9 144.9L3.1 474.3c-2 3.7-3.1 7.9-3.1 12.2 0 14.1 11.4 25.5 25.5 25.5 4 0 7.8-.6 11.5-2.1L153.4 460c31.4 12.9 66.1 20 102.6 20 141.4 0 256-107.5 256-240S397.4 0 256 0 0 107.5 0 240zM94 407.9c9.3-17.1 7.4-38.1-4.8-53.2-26.1-32.3-41.2-71.9-41.2-114.7 0-103.2 90.2-192 208-192s208 88.8 208 192-90.2 192-208 192c-30.2 0-58.7-5.9-84.3-16.4-11.9-4.9-25.3-4.8-37.1 .3L76 440.9 94 407.9zM144 272a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm144-32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm80 32a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]};var _l={prefix:"far",iconName:"flag",icon:[448,512,[127988,61725],"f024","M48 24C48 10.7 37.3 0 24 0S0 10.7 0 24L0 488c0 13.3 10.7 24 24 24s24-10.7 24-24l0-100 80.3-20.1c41.1-10.3 84.6-5.5 122.5 13.4 44.2 22.1 95.5 24.8 141.7 7.4l34.7-13c12.5-4.7 20.8-16.6 20.8-30l0-279.7c0-23-24.2-38-44.8-27.7l-9.6 4.8c-46.3 23.2-100.8 23.2-147.1 0-35.1-17.6-75.4-22-113.5-12.5L48 52 48 24zm0 77.5l96.6-24.2c27-6.7 55.5-3.6 80.4 8.8 54.9 27.4 118.7 29.7 175 6.8l0 241.8-24.4 9.1c-33.7 12.6-71.2 10.7-103.4-5.4-48.2-24.1-103.3-30.1-155.6-17.1l-68.6 17.2 0-237z"]};var El={prefix:"far",iconName:"window-restore",icon:[576,512,[],"f2d2","M512 80L224 80c-8.8 0-16 7.2-16 16l0 16-48 0 0-16c0-35.3 28.7-64 64-64l288 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64l-48 0 0-48 48 0c8.8 0 16-7.2 16-16l0-192c0-8.8-7.2-16-16-16zM368 288l-320 0 0 128c0 8.8 7.2 16 16 16l288 0c8.8 0 16-7.2 16-16l0-128zM64 160l288 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64z"]};var Fr={prefix:"far",iconName:"folder-closed",icon:[512,512,[],"e185","M448 400L64 400c-8.8 0-16-7.2-16-16l0-144 416 0 0 144c0 8.8-7.2 16-16 16zm16-208l-416 0 0-96c0-8.8 7.2-16 16-16l138.7 0c3.5 0 6.8 1.1 9.6 3.2L250.7 112c13.8 10.4 30.7 16 48 16L448 128c8.8 0 16 7.2 16 16l0 48zM64 448l384 0c35.3 0 64-28.7 64-64l0-240c0-35.3-28.7-64-64-64L298.7 80c-6.9 0-13.7-2.2-19.2-6.4L241.1 44.8C230 36.5 216.5 32 202.7 32L64 32C28.7 32 0 60.7 0 96L0 384c0 35.3 28.7 64 64 64z"]};var Rr=(()=>{let e=class e{transform(t,n=0,s=void 0){return Mt(t,n,s)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275pipe=tn({name:"pathSlice",type:e,pure:!0});let i=e;return i})();var dn=function(i,e){return dn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n])},dn(i,e)};function Yr(i,e){dn(i,e);function r(){this.constructor=i}i.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var te=function(){return te=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},te.apply(this,arguments)};function Xr(i,e){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var t=r.call(i),n,s=[],o;try{for(;(e===void 0||e-- >0)&&!(n=t.next()).done;)s.push(n.value)}catch(a){o={error:a}}finally{try{n&&!n.done&&(r=t.return)&&r.call(t)}finally{if(o)throw o.error}}return s}function un(){for(var i=[],e=0;e<arguments.length;e++)i=i.concat(Xr(arguments[e]));return i}var vo="An invariant failed, however the error is obfuscated because this is an production build.",Ni=[];Object.freeze(Ni);var vn={};Object.freeze(vn);var bo={};function fn(){return typeof window<"u"?window:typeof global<"u"?global:bo}function ie(){return++v.mobxGuid}function k(i){throw ei(!1,i),"X"}function ei(i,e){if(!i)throw new Error("[mobx] "+(e||vo))}var Vr=[];function De(i,e){return!1}function bn(i){var e=!1;return function(){if(!e)return e=!0,i.apply(this,arguments)}}var Hr=function(){};function yo(i){var e=[];return i.forEach(function(r){e.indexOf(r)===-1&&e.push(r)}),e}function yn(i){return i!==null&&typeof i=="object"}function zt(i){if(i===null||typeof i!="object")return!1;var e=Object.getPrototypeOf(i);return e===Object.prototype||e===null}function Co(i){return It(i)||ut(i)?i:Array.isArray(i)?new Map(i):zt(i)?new Map(Object.entries(i)):k("Cannot convert to map from '"+i+"'")}function So(i,e){for(var r=0;r<e.length;r++)ct(i,e[r],i[e[r]])}function ct(i,e,r){Object.defineProperty(i,e,{enumerable:!1,writable:!0,configurable:!0,value:r})}function ri(i,e,r){Object.defineProperty(i,e,{enumerable:!1,writable:!1,configurable:!0,value:r})}function qe(i,e){var r="isMobX"+i;return e.prototype[r]=!0,function(t){return yn(t)&&t[r]===!0}}function _o(i,e){return typeof i=="number"&&typeof e=="number"&&isNaN(i)&&isNaN(e)}function It(i){return fn().Map!==void 0&&i instanceof fn().Map}function si(i){return i instanceof Set}function Pt(i){for(var e=[];;){var r=i.next();if(r.done)break;e.push(r.value)}return e}function Qr(){return typeof Symbol=="function"&&Symbol.toPrimitive||"@@toPrimitive"}function Jr(i){return i===null?null:typeof i=="object"?""+i:i}function Cn(){return typeof Symbol=="function"&&Symbol.iterator||"@@iterator"}function Sn(i,e){ri(i,Cn(),e)}function ti(i){return i[Cn()]=Eo,i}function _n(){return typeof Symbol=="function"&&Symbol.toStringTag||"@@toStringTag"}function Eo(){return this}var Ii=(function(){function i(e){e===void 0&&(e="Atom@"+ie()),this.name=e,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=O.NOT_TRACKING}return i.prototype.onBecomeUnobserved=function(){},i.prototype.onBecomeObserved=function(){},i.prototype.reportObserved=function(){return fs(this)},i.prototype.reportChanged=function(){Ne(),qo(this),Oe()},i.prototype.toString=function(){return this.name},i})(),En=qe("Atom",Ii);function xo(i,e,r){e===void 0&&(e=Hr),r===void 0&&(r=Hr);var t=new Ii(i);return ra(t,e),vs(t,r),t}function Zr(i,e){return i===e}function Mo(i,e){return An(i,e)}function wo(i,e){return An(i,e,1)}function Ao(i,e){return _o(i,e)||Zr(i,e)}var Lt={identity:Zr,structural:Mo,default:Ao,shallow:wo},Do={},No={};function Oo(i,e){var r=e?Do:No;return r[i]||(r[i]={configurable:!0,enumerable:e,get:function(){return at(this),this[i]},set:function(t){at(this),this[i]=t}})}function at(i){if(i.__mobxDidRunLazyInitializers!==!0){var e=i.__mobxDecorators;if(e){ct(i,"__mobxDidRunLazyInitializers",!0);for(var r in e){var t=e[r];t.propertyCreator(i,t.prop,t.descriptor,t.decoratorTarget,t.decoratorArguments)}}}}function es(i,e){return function(){var t,n=function(o,a,m,C){if(C===!0)return e(o,a,m,o,t),null;if(!Object.prototype.hasOwnProperty.call(o,"__mobxDecorators")){var I=o.__mobxDecorators;ct(o,"__mobxDecorators",te({},I))}return o.__mobxDecorators[a]={prop:a,propertyCreator:e,descriptor:m,decoratorTarget:o,decoratorArguments:t},Oo(a,i)};return To(arguments)?(t=Ni,n.apply(null,arguments)):(t=Array.prototype.slice.call(arguments),n)}}function To(i){return(i.length===2||i.length===3)&&typeof i[1]=="string"||i.length===4&&i[3]===!0}function oi(i,e,r){return Cs(i)?i:Array.isArray(i)?M.array(i,{name:r}):zt(i)?M.object(i,void 0,{name:r}):It(i)?M.map(i,{name:r}):si(i)?M.set(i,{name:r}):i}function Po(i,e,r){return i==null||ni(i)||Vi(i)||ut(i)||Ft(i)?i:Array.isArray(i)?M.array(i,{name:r,deep:!1}):zt(i)?M.object(i,void 0,{name:r,deep:!1}):It(i)?M.map(i,{name:r,deep:!1}):si(i)?M.set(i,{name:r,deep:!1}):k(!1)}function ii(i){return i}function Lo(i,e,r){return An(i,e)?e:i}function ki(i){var e=es(!0,function(t,n,s,o,a){var m=s?s.initializer?s.initializer.call(t):s.value:void 0;ba(t,n,m,i)}),r=(typeof process<"u"&&process.env,e);return r.enhancer=i,r}var ts={deep:!0,name:void 0,defaultDecorator:void 0},zo={deep:!1,name:void 0,defaultDecorator:void 0};Object.freeze(ts);Object.freeze(zo);function Tt(i){return i==null?ts:typeof i=="string"?{name:i,deep:!0}:i}function Ai(i){return i.defaultDecorator?i.defaultDecorator.enhancer:i.deep===!1?ii:oi}var xn=ki(oi),Io=ki(Po),is=ki(ii),ko=ki(Lo);function Fo(i,e,r){if(typeof arguments[1]=="string")return xn.apply(null,arguments);if(Cs(i))return i;var t=zt(i)?M.object(i,e,r):Array.isArray(i)?M.array(i,e):It(i)?M.map(i,e):si(i)?M.set(i,e):i;if(t!==i)return t;k(!1)}var Br={box:function(i,e){arguments.length>2&&we("box");var r=Tt(e);return new Ue(i,Ai(r),r.name,!0,r.equals)},shallowBox:function(i,e){return arguments.length>2&&we("shallowBox"),De("observable.shallowBox","observable.box(value, { deep: false })"),M.box(i,{name:e,deep:!1})},array:function(i,e){arguments.length>2&&we("array");var r=Tt(e);return new Pe(i,Ai(r),r.name)},shallowArray:function(i,e){return arguments.length>2&&we("shallowArray"),De("observable.shallowArray","observable.array(values, { deep: false })"),M.array(i,{name:e,deep:!1})},map:function(i,e){arguments.length>2&&we("map");var r=Tt(e);return new Hi(i,Ai(r),r.name)},shallowMap:function(i,e){return arguments.length>2&&we("shallowMap"),De("observable.shallowMap","observable.map(values, { deep: false })"),M.map(i,{name:e,deep:!1})},set:function(i,e){arguments.length>2&&we("set");var r=Tt(e);return new Bi(i,Ai(r),r.name)},object:function(i,e,r){typeof arguments[1]=="string"&&we("object");var t=Tt(r);return sa({},i,e,t)},shallowObject:function(i,e){return typeof arguments[1]=="string"&&we("shallowObject"),De("observable.shallowObject","observable.object(values, {}, { deep: false })"),M.object(i,{},{name:e,deep:!1})},ref:is,shallow:Io,deep:xn,struct:ko},M=Fo;Object.keys(Br).forEach(function(i){return M[i]=Br[i]});function we(i){k("Expected one or two arguments to observable."+i+". Did you accidentally try to use observable."+i+" as decorator?")}var Oi=es(!1,function(i,e,r,t,n){var s=r.get,o=r.set,a=n[0]||{};ya(i,e,te({get:s,set:o},a))}),Ro=Oi({equals:Lt.structural}),U=function(e,r,t){if(typeof r=="string"||e!==null&&typeof e=="object"&&arguments.length===1)return Oi.apply(null,arguments);var n=typeof r=="object"?r:{};return n.get=e,n.set=typeof r=="function"?r:n.set,n.name=n.name||e.name||"",new $e(n)};U.struct=Ro;var O=(function(i){return i[i.NOT_TRACKING=-1]="NOT_TRACKING",i[i.UP_TO_DATE=0]="UP_TO_DATE",i[i.POSSIBLY_STALE=1]="POSSIBLY_STALE",i[i.STALE=2]="STALE",i})(O||{}),Se=(function(i){return i[i.NONE=0]="NONE",i[i.LOG=1]="LOG",i[i.BREAK=2]="BREAK",i})(Se||{}),Ti=(function(){function i(e){this.cause=e}return i})();function Zt(i){return i instanceof Ti}function pn(i){switch(i.dependenciesState){case O.UP_TO_DATE:return!1;case O.NOT_TRACKING:case O.STALE:return!0;case O.POSSIBLY_STALE:{for(var e=kt(),r=i.observing,t=r.length,n=0;n<t;n++){var s=r[n];if(Ri(s)){if(v.disableErrorBoundaries)s.get();else try{s.get()}catch{return Ge(e),!0}if(i.dependenciesState===O.STALE)return Ge(e),!0}}return as(i),Ge(e),!1}}}function Fi(i){var e=i.observers.length>0;v.computationDepth>0&&e&&k(!1),!v.allowStateChanges&&(e||v.enforceActions==="strict")&&k(!1)}function ns(i,e,r){var t=ss(!0);as(i),i.newObserving=new Array(i.observing.length+100),i.unboundDepsCount=0,i.runId=++v.runId;var n=v.trackingDerivation;v.trackingDerivation=i;var s;if(v.disableErrorBoundaries===!0)s=e.call(r);else try{s=e.call(r)}catch(o){s=new Ti(o)}return v.trackingDerivation=n,Vo(i),i.observing.length===0&&void 0,os(t),s}function Vo(i){for(var e=i.observing,r=i.observing=i.newObserving,t=O.UP_TO_DATE,n=0,s=i.unboundDepsCount,o=0;o<s;o++){var a=r[o];a.diffValue===0&&(a.diffValue=1,n!==o&&(r[n]=a),n++),a.dependenciesState>t&&(t=a.dependenciesState)}for(r.length=n,i.newObserving=null,s=e.length;s--;){var a=e[s];a.diffValue===0&&ds(a,i),a.diffValue=0}for(;n--;){var a=r[n];a.diffValue===1&&(a.diffValue=0,$o(a,i))}t!==O.UP_TO_DATE&&(i.dependenciesState=t,i.onBecomeStale())}function hn(i){var e=i.observing;i.observing=[];for(var r=e.length;r--;)ds(e[r],i);i.dependenciesState=O.NOT_TRACKING}function rs(i){var e=kt(),r=i();return Ge(e),r}function kt(){var i=v.trackingDerivation;return v.trackingDerivation=null,i}function Ge(i){v.trackingDerivation=i}function ss(i){var e=v.allowStateReads;return v.allowStateReads=i,e}function os(i){v.allowStateReads=i}function as(i){if(i.dependenciesState!==O.UP_TO_DATE){i.dependenciesState=O.UP_TO_DATE;for(var e=i.observing,r=e.length;r--;)e[r].lowestObserverState=O.UP_TO_DATE}}var Pi=0,Ho=1;function ot(i,e){var r=function(){return Bo(i,e,this,arguments)};return r.isMobxAction=!0,r}function Bo(i,e,r,t){var n=jo(i,r,t);try{return e.apply(r,t)}catch(s){throw n.error=s,s}finally{Go(n)}}function jo(i,e,r){var t=K()&&!!i,n=0;if(t){n=Date.now();var s=r&&r.length||0,o=new Array(s);if(s>0)for(var a=0;a<s;a++)o[a]=r[a];ce({type:"action",name:i,object:e,arguments:o})}var m=kt();Ne();var C=ls(!0),I=ss(!0),ne={prevDerivation:m,prevAllowStateChanges:C,prevAllowStateReads:I,notifySpy:t,startTime:n,actionId:Ho++,parentActionId:Pi};return Pi=ne.actionId,ne}function Go(i){Pi!==i.actionId&&k("invalid action stack. did you forget to finish an action?"),Pi=i.parentActionId,i.error!==void 0&&(v.suppressReactionErrors=!0),cs(i.prevAllowStateChanges),os(i.prevAllowStateReads),Oe(),Ge(i.prevDerivation),i.notifySpy&&de({time:Date.now()-i.startTime}),v.suppressReactionErrors=!1}function ls(i){var e=v.allowStateChanges;return v.allowStateChanges=i,e}function cs(i){v.allowStateChanges=i}var Ue=(function(i){Yr(e,i);function e(r,t,n,s,o){n===void 0&&(n="ObservableValue@"+ie()),s===void 0&&(s=!0),o===void 0&&(o=Lt.default);var a=i.call(this,n)||this;return a.enhancer=t,a.name=n,a.equals=o,a.hasUnreportedChange=!1,a.value=t(r,void 0,n),s&&K()&&lt({type:"create",name:a.name,newValue:""+a.value}),a}return e.prototype.dehanceValue=function(r){return this.dehancer!==void 0?this.dehancer(r):r},e.prototype.set=function(r){var t=this.value;if(r=this.prepareNewValue(r),r!==v.UNCHANGED){var n=K();n&&ce({type:"update",name:this.name,newValue:r,oldValue:t}),this.setNewValue(r),n&&de()}},e.prototype.prepareNewValue=function(r){if(Fi(this),_e(this)){var t=Ee(this,{object:this,type:"update",newValue:r});if(!t)return v.UNCHANGED;r=t.newValue}return r=this.enhancer(r,this.value,this.name),this.equals(this.value,r)?v.UNCHANGED:r},e.prototype.setNewValue=function(r){var t=this.value;this.value=r,this.reportChanged(),ue(this)&&fe(this,{type:"update",object:this,newValue:r,oldValue:t})},e.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},e.prototype.intercept=function(r){return li(this,r)},e.prototype.observe=function(r,t){return t&&r({object:this,type:"update",newValue:this.value,oldValue:void 0}),ci(this,r)},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.value+"]"},e.prototype.valueOf=function(){return Jr(this.get())},e})(Ii);Ue.prototype[Qr()]=Ue.prototype.valueOf;var Al=qe("ObservableValue",Ue),$e=(function(){function i(e){this.dependenciesState=O.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=O.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+ie(),this.value=new Ti(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=Se.NONE,this.derivation=e.get,this.name=e.name||"ComputedValue@"+ie(),e.set&&(this.setter=ot(this.name+"-setter",e.set)),this.equals=e.equals||(e.compareStructural||e.struct?Lt.structural:Lt.default),this.scope=e.context,this.requiresReaction=!!e.requiresReaction,this.keepAlive=!!e.keepAlive}return i.prototype.onBecomeStale=function(){Ko(this)},i.prototype.onBecomeUnobserved=function(){},i.prototype.onBecomeObserved=function(){},i.prototype.get=function(){this.isComputing&&k("Cycle detected in computation "+this.name+": "+this.derivation),v.inBatch===0&&this.observers.length===0&&!this.keepAlive?pn(this)&&(this.warnAboutUntrackedRead(),Ne(),this.value=this.computeValue(!1),Oe()):(fs(this),pn(this)&&this.trackAndCompute()&&Wo(this));var e=this.value;if(Zt(e))throw e.cause;return e},i.prototype.peek=function(){var e=this.computeValue(!1);if(Zt(e))throw e.cause;return e},i.prototype.set=function(e){if(this.setter){ei(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else ei(!1,!1)},i.prototype.trackAndCompute=function(){K()&&lt({object:this.scope,type:"compute",name:this.name});var e=this.value,r=this.dependenciesState===O.NOT_TRACKING,t=this.computeValue(!0),n=r||Zt(e)||Zt(t)||!this.equals(e,t);return n&&(this.value=t),n},i.prototype.computeValue=function(e){this.isComputing=!0,v.computationDepth++;var r;if(e)r=ns(this,this.derivation,this.scope);else if(v.disableErrorBoundaries===!0)r=this.derivation.call(this.scope);else try{r=this.derivation.call(this.scope)}catch(t){r=new Ti(t)}return v.computationDepth--,this.isComputing=!1,r},i.prototype.suspend=function(){this.keepAlive||(hn(this),this.value=void 0)},i.prototype.observe=function(e,r){var t=this,n=!0,s=void 0;return ai(function(){var o=t.get();if(!n||r){var a=kt();e({type:"update",object:t,newValue:o,oldValue:s}),Ge(a)}n=!1,s=o})},i.prototype.warnAboutUntrackedRead=function(){},i.prototype.toJSON=function(){return this.get()},i.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},i.prototype.valueOf=function(){return Jr(this.get())},i})();$e.prototype[Qr()]=$e.prototype.valueOf;var Ri=qe("ComputedValue",$e);var an=(function(){function i(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.allowStateReads=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1}return i})(),ln=!0,Uo=!1,v=(function(){var i=fn();return i.__mobxInstanceCount>0&&!i.__mobxGlobals&&(ln=!1),i.__mobxGlobals&&i.__mobxGlobals.version!==new an().version&&(ln=!1),ln?i.__mobxGlobals?(i.__mobxInstanceCount+=1,i.__mobxGlobals.UNCHANGED||(i.__mobxGlobals.UNCHANGED={}),i.__mobxGlobals):(i.__mobxInstanceCount=1,i.__mobxGlobals=new an):(setTimeout(function(){Uo||k("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new an)})();function $o(i,e){var r=i.observers.length;r&&(i.observersIndexes[e.__mapid]=r),i.observers[r]=e,i.lowestObserverState>e.dependenciesState&&(i.lowestObserverState=e.dependenciesState)}function ds(i,e){if(i.observers.length===1)i.observers.length=0,us(i);else{var r=i.observers,t=i.observersIndexes,n=r.pop();if(n!==e){var s=t[e.__mapid]||0;s?t[n.__mapid]=s:delete t[n.__mapid],r[s]=n}delete t[e.__mapid]}}function us(i){i.isPendingUnobservation===!1&&(i.isPendingUnobservation=!0,v.pendingUnobservations.push(i))}function Ne(){v.inBatch++}function Oe(){if(--v.inBatch===0){ms();for(var i=v.pendingUnobservations,e=0;e<i.length;e++){var r=i[e];r.isPendingUnobservation=!1,r.observers.length===0&&(r.isBeingObserved&&(r.isBeingObserved=!1,r.onBecomeUnobserved()),r instanceof $e&&r.suspend())}v.pendingUnobservations=[]}}function fs(i){var e=v.trackingDerivation;return e!==null?(e.runId!==i.lastAccessedBy&&(i.lastAccessedBy=e.runId,e.newObserving[e.unboundDepsCount++]=i,i.isBeingObserved||(i.isBeingObserved=!0,i.onBecomeObserved())),!0):(i.observers.length===0&&v.inBatch>0&&us(i),!1)}function qo(i){if(i.lowestObserverState!==O.STALE){i.lowestObserverState=O.STALE;for(var e=i.observers,r=e.length;r--;){var t=e[r];t.dependenciesState===O.UP_TO_DATE&&(t.isTracing!==Se.NONE&&ps(t,i),t.onBecomeStale()),t.dependenciesState=O.STALE}}}function Wo(i){if(i.lowestObserverState!==O.STALE){i.lowestObserverState=O.STALE;for(var e=i.observers,r=e.length;r--;){var t=e[r];t.dependenciesState===O.POSSIBLY_STALE?t.dependenciesState=O.STALE:t.dependenciesState===O.UP_TO_DATE&&(i.lowestObserverState=O.UP_TO_DATE)}}}function Ko(i){if(i.lowestObserverState===O.UP_TO_DATE){i.lowestObserverState=O.POSSIBLY_STALE;for(var e=i.observers,r=e.length;r--;){var t=e[r];t.dependenciesState===O.UP_TO_DATE&&(t.dependenciesState=O.POSSIBLY_STALE,t.isTracing!==Se.NONE&&ps(t,i),t.onBecomeStale())}}}function ps(i,e){if(console.log("[mobx.trace] '"+i.name+"' is invalidated due to a change in: '"+e.name+"'"),i.isTracing===Se.BREAK){var r=[];hs(oa(i),r,1),new Function(`debugger; /* Tracing '`+i.name+`' You are entering this break point because derivation '`+i.name+"' is being traced and '"+e.name+`' is now forcing it to update. Just follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update The stackframe you are looking for is at least ~6-8 stack-frames up. `+(i instanceof $e?i.derivation.toString().replace(/[*]\//g,"/"):"")+` The dependencies for this derivation are: `+r.join(` `)+` */ `)()}}function hs(i,e,r){if(e.length>=1e3){e.push("(and many more)");return}e.push(""+new Array(r).join(" ")+i.name),i.dependencies&&i.dependencies.forEach(function(t){return hs(t,e,r+1)})}var Li=(function(){function i(e,r,t,n){e===void 0&&(e="Reaction@"+ie()),n===void 0&&(n=!1),this.name=e,this.onInvalidate=r,this.errorHandler=t,this.requiresObservable=n,this.observing=[],this.newObserving=[],this.dependenciesState=O.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+ie(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=Se.NONE}return i.prototype.onBecomeStale=function(){this.schedule()},i.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,v.pendingReactions.push(this),ms())},i.prototype.isScheduled=function(){return this._isScheduled},i.prototype.runReaction=function(){if(!this.isDisposed){if(Ne(),this._isScheduled=!1,pn(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending&&K()&&lt({name:this.name,type:"scheduled-reaction"})}catch(e){this.reportExceptionInDerivation(e)}}Oe()}},i.prototype.track=function(e){Ne();var r=K(),t;r&&(t=Date.now(),ce({name:this.name,type:"reaction"})),this._isRunning=!0;var n=ns(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&hn(this),Zt(n)&&this.reportExceptionInDerivation(n.cause),r&&de({time:Date.now()-t}),Oe()},i.prototype.reportExceptionInDerivation=function(e){var r=this;if(this.errorHandler){this.errorHandler(e,this);return}if(v.disableErrorBoundaries)throw e;var t="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";v.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(t,e),K()&&lt({type:"error",name:this.name,message:t,error:""+e}),v.globalReactionErrorHandlers.forEach(function(n){return n(e,r)})},i.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Ne(),hn(this),Oe()))},i.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e.$mobx=this,e},i.prototype.toString=function(){return"Reaction["+this.name+"]"},i.prototype.trace=function(e){e===void 0&&(e=!1),la(this,e)},i})();var jr=100,Yo=function(i){return i()};function ms(){v.inBatch>0||v.isRunningReactions||Yo(Xo)}function Xo(){v.isRunningReactions=!0;for(var i=v.pendingReactions,e=0;i.length>0;){++e===jr&&(console.error("Reaction doesn't converge to a stable state after "+jr+" iterations."+(" Probably there is a cycle in the reactive function: "+i[0])),i.splice(0));for(var r=i.splice(0),t=0,n=r.length;t<n;t++)r[t].runReaction()}v.isRunningReactions=!1}var zi=qe("Reaction",Li);function K(){return!!v.spyListeners.length}function lt(i){if(v.spyListeners.length)for(var e=v.spyListeners,r=0,t=e.length;r<t;r++)e[r](i)}function ce(i){var e=te({},i,{spyReportStart:!0});lt(e)}var Qo={spyReportEnd:!0};function de(i){lt(i?te({},i,{spyReportEnd:!0}):Qo)}function Jo(i){return v.spyListeners.push(i),bn(function(){v.spyListeners=v.spyListeners.filter(function(e){return e!==i})})}function Zo(){k(!1)}function Gr(i){return function(e,r,t){if(t){if(t.value)return{value:ot(i,t.value),enumerable:!1,configurable:!0,writable:!0};var n=t.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return ot(i,n.call(this))}}}return ea(i).apply(this,arguments)}}function ea(i){return function(e,r,t){Object.defineProperty(e,r,{configurable:!0,enumerable:!1,get:function(){},set:function(n){ct(this,r,w(i,n))}})}}function ta(i,e,r,t){return t===!0?(cn(i,e,r.value),null):r?{configurable:!0,enumerable:!1,get:function(){return cn(this,e,r.value||r.initializer.call(this)),this[e]},set:Zo}:{enumerable:!1,configurable:!0,set:function(n){cn(this,e,n)},get:function(){}}}var w=function(e,r,t,n){if(arguments.length===1&&typeof e=="function")return ot(e.name||"<unnamed action>",e);if(arguments.length===2&&typeof r=="function")return ot(e,r);if(arguments.length===1&&typeof e=="string")return Gr(e);if(n===!0)e[r]=ot(e.name||r,t.value);else return Gr(r).apply(null,arguments)};w.bound=ta;function cn(i,e,r){ct(i,e,ot(e,r.bind(i)))}function ai(i,e){e===void 0&&(e=vn);var r=e&&e.name||i.name||"Autorun@"+ie(),t=!e.scheduler&&!e.delay,n;if(t)n=new Li(r,function(){this.track(a)},e.onError,e.requiresObservable);else{var s=gs(e),o=!1;n=new Li(r,function(){o||(o=!0,s(function(){o=!1,n.isDisposed||n.track(a)}))},e.onError,e.requiresObservable)}function a(){i(n)}return n.schedule(),n.getDisposer()}var ia=function(i){return i()};function gs(i){return i.scheduler?i.scheduler:i.delay?function(e){return setTimeout(e,i.delay)}:ia}function dt(i,e,r){r===void 0&&(r=vn),typeof r=="boolean"&&(r={fireImmediately:r},De("Using fireImmediately as argument is deprecated. Use '{ fireImmediately: true }' instead"));var t=r.name||"Reaction@"+ie(),n=w(t,r.onError?na(r.onError,e):e),s=!r.scheduler&&!r.delay,o=gs(r),a=!0,m=!1,C,I=r.compareStructural?Lt.structural:r.equals||Lt.default,ne=new Li(t,function(){a||s?Ke():m||(m=!0,o(Ke))},r.onError,r.requiresObservable);function Ke(){if(m=!1,!ne.isDisposed){var Rn=!1;ne.track(function(){var Vn=i(ne);Rn=a||!I(C,Vn),C=Vn}),a&&r.fireImmediately&&n(C,ne),!a&&Rn===!0&&n(C,ne),a&&(a=!1)}}return ne.schedule(),ne.getDisposer()}function na(i,e){return function(){try{return e.apply(this,arguments)}catch(r){i.call(this,r)}}}function ra(i,e,r){return bs("onBecomeObserved",i,e,r)}function vs(i,e,r){return bs("onBecomeUnobserved",i,e,r)}function bs(i,e,r,t){var n=typeof t=="function"?Te(e,r):Te(e),s=typeof t=="function"?t:r,o=n[i];return typeof o!="function"?k(!1):(n[i]=function(){o.call(this),s.call(this)},function(){n[i]=o})}function sa(i,e,r,t){if(0&&r)for(var n in r);t=Tt(t);var s=t.defaultDecorator||(t.deep===!1?is:xn);at(i),wn(i,t.name,s.enhancer),Ne();try{for(var n in e){var o=Object.getOwnPropertyDescriptor(e,n),a=r&&n in r?r[n]:o.get?Oi:s,m=a(i,n,o,!0);m&&Object.defineProperty(i,n,m)}}finally{Oe()}return i}function oa(i,e){return ys(Te(i,e))}function ys(i){var e={name:i.name};return i.observing&&i.observing.length>0&&(e.dependencies=yo(i.observing).map(ys)),e}function aa(i,e){if(i==null)return!1;if(e!==void 0){if(ni(i)){var r=i.$mobx;return r.values&&!!r.values[e]}return!1}return ni(i)||!!i.$mobx||En(i)||zi(i)||Ri(i)}function Cs(i){return arguments.length!==1&&k(!1),aa(i)}function la(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];var r=!1;typeof i[i.length-1]=="boolean"&&(r=i.pop());var t=ca(i);if(!t)return k(!1);t.isTracing===Se.NONE&&console.log("[mobx.trace] '"+t.name+"' tracing enabled"),t.isTracing=r?Se.BREAK:Se.LOG}function ca(i){switch(i.length){case 0:return v.trackingDerivation;case 1:return Te(i[0]);case 2:return Te(i[0],i[1])}}function Ae(i,e){e===void 0&&(e=void 0),Ne();try{return i.apply(e)}finally{Oe()}}function _e(i){return i.interceptors!==void 0&&i.interceptors.length>0}function li(i,e){var r=i.interceptors||(i.interceptors=[]);return r.push(e),bn(function(){var t=r.indexOf(e);t!==-1&&r.splice(t,1)})}function Ee(i,e){var r=kt();try{var t=i.interceptors;if(t)for(var n=0,s=t.length;n<s&&(e=t[n](e),ei(!e||e.type,"Intercept handlers should return nothing or a change object"),!!e);n++);return e}finally{Ge(r)}}function ue(i){return i.changeListeners!==void 0&&i.changeListeners.length>0}function ci(i,e){var r=i.changeListeners||(i.changeListeners=[]);return r.push(e),bn(function(){var t=r.indexOf(e);t!==-1&&r.splice(t,1)})}function fe(i,e){var r=kt(),t=i.changeListeners;if(t){t=t.slice();for(var n=0,s=t.length;n<s;n++)t[n](e);Ge(r)}}var da=1e4,ua=(function(){var i=!1,e={};return Object.defineProperty(e,"0",{set:function(){i=!0}}),Object.create(e)[0]=1,i===!1})(),mn=0,Mn=(function(){function i(){}return i})();function fa(i,e){typeof Object.setPrototypeOf<"u"?Object.setPrototypeOf(i.prototype,e):typeof i.prototype.__proto__<"u"?i.prototype.__proto__=e:i.prototype=e}fa(Mn,Array.prototype);Object.isFrozen(Array)&&["constructor","push","shift","concat","pop","unshift","replace","find","findIndex","splice","reverse","sort"].forEach(function(i){Object.defineProperty(Mn.prototype,i,{configurable:!0,writable:!0,value:Array.prototype[i]})});var Ss=(function(){function i(e,r,t,n){this.array=t,this.owned=n,this.values=[],this.lastKnownLength=0,this.atom=new Ii(e||"ObservableArray@"+ie()),this.enhancer=function(s,o){return r(s,o,e+"[..]")}}return i.prototype.dehanceValue=function(e){return this.dehancer!==void 0?this.dehancer(e):e},i.prototype.dehanceValues=function(e){return this.dehancer!==void 0&&e.length>0?e.map(this.dehancer):e},i.prototype.intercept=function(e){return li(this,e)},i.prototype.observe=function(e,r){return r===void 0&&(r=!1),r&&e({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),ci(this,e)},i.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},i.prototype.setArrayLength=function(e){if(typeof e!="number"||e<0)throw new Error("[mobx.array] Out of range: "+e);var r=this.values.length;if(e!==r)if(e>r){for(var t=new Array(e-r),n=0;n<e-r;n++)t[n]=void 0;this.spliceWithArray(r,0,t)}else this.spliceWithArray(e,r-e)},i.prototype.updateArrayLength=function(e,r){if(e!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed. Did you use peek() to change it?");this.lastKnownLength+=r,r>0&&e+r+1>mn&&Es(e+r+1)},i.prototype.spliceWithArray=function(e,r,t){var n=this;Fi(this.atom);var s=this.values.length;if(e===void 0?e=0:e>s?e=s:e<0&&(e=Math.max(0,s+e)),arguments.length===1?r=s-e:r==null?r=0:r=Math.max(0,Math.min(r,s-e)),t===void 0&&(t=Ni),_e(this)){var o=Ee(this,{object:this.array,type:"splice",index:e,removedCount:r,added:t});if(!o)return Ni;r=o.removedCount,t=o.added}t=t.length===0?t:t.map(function(C){return n.enhancer(C,void 0)});var a=t.length-r;this.updateArrayLength(s,a);var m=this.spliceItemsIntoValues(e,r,t);return(r!==0||t.length!==0)&&this.notifyArraySplice(e,t,m),this.dehanceValues(m)},i.prototype.spliceItemsIntoValues=function(e,r,t){var n;if(t.length<da)return(n=this.values).splice.apply(n,un([e,r],t));var s=this.values.slice(e,e+r);return this.values=this.values.slice(0,e).concat(t,this.values.slice(e+r)),s},i.prototype.notifyArrayChildUpdate=function(e,r,t){var n=!this.owned&&K(),s=ue(this),o=s||n?{object:this.array,type:"update",index:e,newValue:r,oldValue:t}:null;n&&ce(te({},o,{name:this.atom.name})),this.atom.reportChanged(),s&&fe(this,o),n&&de()},i.prototype.notifyArraySplice=function(e,r,t){var n=!this.owned&&K(),s=ue(this),o=s||n?{object:this.array,type:"splice",index:e,removed:t,added:r,removedCount:t.length,addedCount:r.length}:null;n&&ce(te({},o,{name:this.atom.name})),this.atom.reportChanged(),s&&fe(this,o),n&&de()},i})(),Pe=(function(i){Yr(e,i);function e(r,t,n,s){n===void 0&&(n="ObservableArray@"+ie()),s===void 0&&(s=!1);var o=i.call(this)||this,a=new Ss(n,t,o,s);if(ri(o,"$mobx",a),r&&r.length){var m=ls(!0);o.spliceWithArray(0,0,r),cs(m)}return ua&&Object.defineProperty(a.array,"0",pa),o}return e.prototype.intercept=function(r){return this.$mobx.intercept(r)},e.prototype.observe=function(r,t){return t===void 0&&(t=!1),this.$mobx.observe(r,t)},e.prototype.clear=function(){return this.splice(0)},e.prototype.concat=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return this.$mobx.atom.reportObserved(),Array.prototype.concat.apply(this.peek(),r.map(function(n){return Vi(n)?n.peek():n}))},e.prototype.replace=function(r){return this.$mobx.spliceWithArray(0,this.$mobx.values.length,r)},e.prototype.toJS=function(){return this.slice()},e.prototype.toJSON=function(){return this.toJS()},e.prototype.peek=function(){return this.$mobx.atom.reportObserved(),this.$mobx.dehanceValues(this.$mobx.values)},e.prototype.find=function(r,t,n){n===void 0&&(n=0),arguments.length===3&&De("The array.find fromIndex argument to find will not be supported anymore in the next major");var s=this.findIndex.apply(this,arguments);return s===-1?void 0:this.get(s)},e.prototype.findIndex=function(r,t,n){n===void 0&&(n=0),arguments.length===3&&De("The array.findIndex fromIndex argument to find will not be supported anymore in the next major");for(var s=this.peek(),o=s.length,a=n;a<o;a++)if(r.call(t,s[a],a,this))return a;return-1},e.prototype.splice=function(r,t){for(var n=[],s=2;s<arguments.length;s++)n[s-2]=arguments[s];switch(arguments.length){case 0:return[];case 1:return this.$mobx.spliceWithArray(r);case 2:return this.$mobx.spliceWithArray(r,t)}return this.$mobx.spliceWithArray(r,t,n)},e.prototype.spliceWithArray=function(r,t,n){return this.$mobx.spliceWithArray(r,t,n)},e.prototype.push=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var n=this.$mobx;return n.spliceWithArray(n.values.length,0,r),n.values.length},e.prototype.pop=function(){return this.splice(Math.max(this.$mobx.values.length-1,0),1)[0]},e.prototype.shift=function(){return this.splice(0,1)[0]},e.prototype.unshift=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var n=this.$mobx;return n.spliceWithArray(0,0,r),n.values.length},e.prototype.reverse=function(){var r=this.slice();return r.reverse.apply(r,arguments)},e.prototype.sort=function(r){var t=this.slice();return t.sort.apply(t,arguments)},e.prototype.remove=function(r){var t=this.$mobx.dehanceValues(this.$mobx.values).indexOf(r);return t>-1?(this.splice(t,1),!0):!1},e.prototype.move=function(r,t){De("observableArray.move is deprecated, use .slice() & .replace() instead");function n(a){if(a<0)throw new Error("[mobx.array] Index out of bounds: "+a+" is negative");var m=this.$mobx.values.length;if(a>=m)throw new Error("[mobx.array] Index out of bounds: "+a+" is not smaller than "+m)}if(n.call(this,r),n.call(this,t),r!==t){var s=this.$mobx.values,o;r<t?o=un(s.slice(0,r),s.slice(r+1,t+1),[s[r]],s.slice(t+1)):o=un(s.slice(0,t),[s[r]],s.slice(t,r),s.slice(r+1)),this.replace(o)}},e.prototype.get=function(r){var t=this.$mobx;if(t){if(r<t.values.length)return t.atom.reportObserved(),t.dehanceValue(t.values[r]);console.warn("[mobx.array] Attempt to read an array index ("+r+") that is out of bounds ("+t.values.length+"). Please check length first. Out of bound indices will not be tracked by MobX")}},e.prototype.set=function(r,t){var n=this.$mobx,s=n.values;if(r<s.length){Fi(n.atom);var o=s[r];if(_e(n)){var a=Ee(n,{type:"update",object:this,index:r,newValue:t});if(!a)return;t=a.newValue}t=n.enhancer(t,o);var m=t!==o;m&&(s[r]=t,n.notifyArrayChildUpdate(r,t,o))}else if(r===s.length)n.spliceWithArray(r,0,[t]);else throw new Error("[mobx.array] Index out of bounds, "+r+" is larger than "+s.length)},e})(Mn);Sn(Pe.prototype,function(){this.$mobx.atom.reportObserved();var i=this,e=0;return ti({next:function(){return e<i.length?{value:i[e++],done:!1}:{done:!0,value:void 0}}})});Object.defineProperty(Pe.prototype,"length",{enumerable:!1,configurable:!0,get:function(){return this.$mobx.getArrayLength()},set:function(i){this.$mobx.setArrayLength(i)}});ct(Pe.prototype,_n(),"Array");["every","filter","forEach","indexOf","join","lastIndexOf","map","reduce","reduceRight","slice","some","toString","toLocaleString"].forEach(function(i){var e=Array.prototype[i];ei(typeof e=="function","Base function not defined on Array prototype: '"+i+"'"),ct(Pe.prototype,i,function(){return e.apply(this.peek(),arguments)})});So(Pe.prototype,["constructor","intercept","observe","clear","concat","get","replace","toJS","toJSON","peek","find","findIndex","splice","spliceWithArray","push","pop","set","shift","unshift","reverse","sort","remove","move","toString","toLocaleString"]);var pa=_s(0);function _s(i){return{enumerable:!1,configurable:!1,get:function(){return this.get(i)},set:function(e){this.set(i,e)}}}function ha(i){Object.defineProperty(Pe.prototype,""+i,_s(i))}function Es(i){for(var e=mn;e<i;e++)ha(e);mn=i}Es(1e3);var ma=qe("ObservableArrayAdministration",Ss);function Vi(i){return yn(i)&&ma(i.$mobx)}var ga={},Hi=(function(){function i(e,r,t){if(r===void 0&&(r=oi),t===void 0&&(t="ObservableMap@"+ie()),this.enhancer=r,this.name=t,this.$mobx=ga,this._keys=new Pe(void 0,ii,this.name+".keys()",!0),typeof Map!="function")throw new Error("mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js");this._data=new Map,this._hasMap=new Map,this.merge(e)}return i.prototype._has=function(e){return this._data.has(e)},i.prototype.has=function(e){var r=this;if(!v.trackingDerivation)return this._has(e);var t=this._hasMap.get(e);if(!t){var n=t=new Ue(this._has(e),ii,this.name+"."+Di(e)+"?",!1);this._hasMap.set(e,n),vs(n,function(){return r._hasMap.delete(e)})}return t.get()},i.prototype.set=function(e,r){var t=this._has(e);if(_e(this)){var n=Ee(this,{type:t?"update":"add",object:this,newValue:r,name:e});if(!n)return this;r=n.newValue}return t?this._updateValue(e,r):this._addValue(e,r),this},i.prototype.delete=function(e){var r=this;if(_e(this)){var t=Ee(this,{type:"delete",object:this,name:e});if(!t)return!1}if(this._has(e)){var n=K(),s=ue(this),t=s||n?{type:"delete",object:this,oldValue:this._data.get(e).value,name:e}:null;return n&&ce(te({},t,{name:this.name,key:e})),Ae(function(){r._keys.remove(e),r._updateHasMapEntry(e,!1);var a=r._data.get(e);a.setNewValue(void 0),r._data.delete(e)}),s&&fe(this,t),n&&de(),!0}return!1},i.prototype._updateHasMapEntry=function(e,r){var t=this._hasMap.get(e);t&&t.setNewValue(r)},i.prototype._updateValue=function(e,r){var t=this._data.get(e);if(r=t.prepareNewValue(r),r!==v.UNCHANGED){var n=K(),s=ue(this),o=s||n?{type:"update",object:this,oldValue:t.value,name:e,newValue:r}:null;n&&ce(te({},o,{name:this.name,key:e})),t.setNewValue(r),s&&fe(this,o),n&&de()}},i.prototype._addValue=function(e,r){var t=this;Ae(function(){var a=new Ue(r,t.enhancer,t.name+"."+Di(e),!1);t._data.set(e,a),r=a.value,t._updateHasMapEntry(e,!0),t._keys.push(e)});var n=K(),s=ue(this),o=s||n?{type:"add",object:this,name:e,newValue:r}:null;n&&ce(te({},o,{name:this.name,key:e})),s&&fe(this,o),n&&de()},i.prototype.get=function(e){return this.has(e)?this.dehanceValue(this._data.get(e).get()):this.dehanceValue(void 0)},i.prototype.dehanceValue=function(e){return this.dehancer!==void 0?this.dehancer(e):e},i.prototype.keys=function(){return this._keys[Cn()]()},i.prototype.values=function(){var e=this,r=0;return ti({next:function(){return r<e._keys.length?{value:e.get(e._keys[r++]),done:!1}:{value:void 0,done:!0}}})},i.prototype.entries=function(){var e=this,r=0;return ti({next:function(){if(r<e._keys.length){var t=e._keys[r++];return{value:[t,e.get(t)],done:!1}}return{done:!0}}})},i.prototype.forEach=function(e,r){var t=this;this._keys.forEach(function(n){return e.call(r,t.get(n),n,t)})},i.prototype.merge=function(e){var r=this;return ut(e)&&(e=e.toJS()),Ae(function(){zt(e)?Object.keys(e).forEach(function(t){return r.set(t,e[t])}):Array.isArray(e)?e.forEach(function(t){var n=Xr(t,2),s=n[0],o=n[1];return r.set(s,o)}):It(e)?e.constructor!==Map?k("Cannot initialize from classes that inherit from Map: "+e.constructor.name):e.forEach(function(t,n){return r.set(n,t)}):e!=null&&k("Cannot initialize map from "+e)}),this},i.prototype.clear=function(){var e=this;Ae(function(){rs(function(){e._keys.slice().forEach(function(r){return e.delete(r)})})})},i.prototype.replace=function(e){var r=this;return Ae(function(){for(var t=Co(e),n=r._keys,s=Array.from(t.keys()),o=!1,a=0;a<n.length;a++){var m=n[a];n.length===s.length&&m!==s[a]&&(o=!0),t.has(m)||(o=!0,r.delete(m))}t.forEach(function(C,I){r._data.has(I)||(o=!0),r.set(I,C)}),o&&r._keys.replace(s)}),this},Object.defineProperty(i.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),i.prototype.toPOJO=function(){var e=this,r={};return this._keys.forEach(function(t){return r[typeof t=="symbol"?t:Di(t)]=e.get(t)}),r},i.prototype.toJS=function(){var e=this,r=new Map;return this._keys.forEach(function(t){return r.set(t,e.get(t))}),r},i.prototype.toJSON=function(){return this.toPOJO()},i.prototype.toString=function(){var e=this;return this.name+"[{ "+this._keys.map(function(r){return Di(r)+": "+(""+e.get(r))}).join(", ")+" }]"},i.prototype.observe=function(e,r){return ci(this,e)},i.prototype.intercept=function(e){return li(this,e)},i})();function Di(i){return i&&i.toString?i.toString():new String(i).toString()}Sn(Hi.prototype,function(){return this.entries()});ri(Hi.prototype,_n(),"Map");var ut=qe("ObservableMap",Hi),va={},Bi=(function(){function i(e,r,t){if(r===void 0&&(r=oi),t===void 0&&(t="ObservableSet@"+ie()),this.name=t,this.$mobx=va,this._data=new Set,this._atom=xo(this.name),typeof Set!="function")throw new Error("mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js");this.enhancer=function(n,s){return r(n,s,t)},e&&this.replace(e)}return i.prototype.dehanceValue=function(e){return this.dehancer!==void 0?this.dehancer(e):e},i.prototype.clear=function(){var e=this;Ae(function(){rs(function(){e._data.forEach(function(r){e.delete(r)})})})},i.prototype.forEach=function(e,r){var t=this;this._data.forEach(function(n){e.call(r,n,n,t)})},Object.defineProperty(i.prototype,"size",{get:function(){return this._atom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),i.prototype.add=function(e){var r=this;if(Fi(this._atom),_e(this)){var t=Ee(this,{type:"add",object:this,newValue:e});if(!t)return this}if(!this.has(e)){Ae(function(){r._data.add(r.enhancer(e,void 0)),r._atom.reportChanged()});var n=K(),s=ue(this),t=s||n?{type:"add",object:this,newValue:e}:null;s&&fe(this,t)}return this},i.prototype.delete=function(e){var r=this;if(_e(this)){var t=Ee(this,{type:"delete",object:this,oldValue:e});if(!t)return!1}if(this.has(e)){var n=K(),s=ue(this),t=s||n?{type:"delete",object:this,oldValue:e}:null;return Ae(function(){r._atom.reportChanged(),r._data.delete(e)}),s&&fe(this,t),!0}return!1},i.prototype.has=function(e){return this._atom.reportObserved(),this._data.has(this.dehanceValue(e))},i.prototype.entries=function(){var e=0,r=Pt(this.keys()),t=Pt(this.values());return ti({next:function(){var n=e;return e+=1,n<t.length?{value:[r[n],t[n]],done:!1}:{done:!0}}})},i.prototype.keys=function(){return this.values()},i.prototype.values=function(){this._atom.reportObserved();var e=this,r=0,t;return this._data.values!==void 0?t=Pt(this._data.values()):(t=[],this._data.forEach(function(n){return t.push(n)})),ti({next:function(){return r<t.length?{value:e.dehanceValue(t[r++]),done:!1}:{done:!0}}})},i.prototype.replace=function(e){var r=this;return Ft(e)&&(e=e.toJS()),Ae(function(){Array.isArray(e)?(r.clear(),e.forEach(function(t){return r.add(t)})):si(e)?(r.clear(),e.forEach(function(t){return r.add(t)})):e!=null&&k("Cannot initialize set from "+e)}),this},i.prototype.observe=function(e,r){return ci(this,e)},i.prototype.intercept=function(e){return li(this,e)},i.prototype.toJS=function(){return new Set(this)},i.prototype.toString=function(){return this.name+"[ "+Pt(this.keys()).join(", ")+" ]"},i})();Sn(Bi.prototype,function(){return this.values()});ri(Bi.prototype,_n(),"Set");var Ft=qe("ObservableSet",Bi),xs=(function(){function i(e,r,t){this.target=e,this.name=r,this.defaultEnhancer=t,this.values={}}return i.prototype.read=function(e,r){if(!(this.target!==e&&(this.illegalAccess(e,r),!this.values[r])))return this.values[r].get()},i.prototype.write=function(e,r,t){var n=this.target;n!==e&&this.illegalA