@ikas/storefront 2.0.0-alpha.3 → 2.0.0-alpha.4
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/build/_virtual/index.js_commonjs-proxy2.js +1 -1
- package/build/_virtual/index.js_commonjs-proxy3.js +1 -1
- package/build/scripts/generators/config/index.d.ts +1 -1
- package/build/scripts/generators/index.js +2 -2
- package/build/scripts/generators/scripts/generators/api/index.d.ts +1 -1
- package/build/scripts/generators/scripts/generators/components/index.d.ts +1 -1
- package/build/scripts/generators/scripts/generators/config/index.d.ts +1 -1
- package/build/scripts/generators/scripts/generators/pages/index.d.ts +1 -1
- package/build/scripts/generators/scripts/generators/store/index.d.ts +1 -1
- package/build/scripts/generators/scripts/generators/theme/index.d.ts +1 -1
- package/build/scripts/generators/theme/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from'../ext/
|
|
1
|
+
import e from'../ext/decode-uri-component/index.js';export{default}from"../node_modules/decode-uri-component/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from'../ext/
|
|
1
|
+
import e from'../ext/strict-uri-encode/index.js';export{default}from"../node_modules/strict-uri-encode/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e from"path";import t from"fs";import n from"constants";import r from"stream";import
|
|
1
|
+
import e from"path";import t from"fs";import n from"constants";import r from"stream";import o from"util";import i from"assert";
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
|
@@ -12,4 +12,4 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
12
12
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
14
|
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */var s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},s.apply(this,arguments)},a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function c(e){var t={exports:{}};return e(t,t.exports),t.exports}var u=function(e){return Object.defineProperty((function(...t){if("function"!=typeof t[t.length-1])return new Promise(((n,r)=>{e.call(this,...t,((e,t)=>null!=e?r(e):n(t)))}));e.apply(this,t)}),"name",{value:e.name})},l=function(e){return Object.defineProperty((function(...t){const n=t[t.length-1];if("function"!=typeof n)return e.apply(this,t);e.apply(this,t.slice(0,-1)).then((e=>n(null,e)),n)}),"name",{value:e.name})},f=process.cwd,d=null,h=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return d||(d=f.call(process)),d};try{process.cwd()}catch(e){}var p=process.chdir;process.chdir=function(e){d=null,p.call(process,e)};var v=function(e){n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,r,i){e.open(t,n.O_WRONLY|n.O_SYMLINK,r,(function(t,n){t?i&&i(t):e.fchmod(n,r,(function(t){e.close(n,(function(e){i&&i(t||e)}))}))}))},e.lchmodSync=function(t,r){var i,o=e.openSync(t,n.O_WRONLY|n.O_SYMLINK,r),s=!0;try{i=e.fchmodSync(o,r),s=!1}finally{if(s)try{e.closeSync(o)}catch(e){}else e.closeSync(o)}return i}}(e);e.lutimes||function(e){n.hasOwnProperty("O_SYMLINK")?(e.lutimes=function(t,r,i,o){e.open(t,n.O_SYMLINK,(function(t,n){t?o&&o(t):e.futimes(n,r,i,(function(t){e.close(n,(function(e){o&&o(t||e)}))}))}))},e.lutimesSync=function(t,r,i){var o,s=e.openSync(t,n.O_SYMLINK),a=!0;try{o=e.futimesSync(s,r,i),a=!1}finally{if(a)try{e.closeSync(s)}catch(e){}else e.closeSync(s)}return o}):(e.lutimes=function(e,t,n,r){r&&process.nextTick(r)},e.lutimesSync=function(){})}(e);e.chown=o(e.chown),e.fchown=o(e.fchown),e.lchown=o(e.lchown),e.chmod=r(e.chmod),e.fchmod=r(e.fchmod),e.lchmod=r(e.lchmod),e.chownSync=s(e.chownSync),e.fchownSync=s(e.fchownSync),e.lchownSync=s(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=c(e.statSync),e.fstatSync=c(e.fstatSync),e.lstatSync=c(e.lstatSync),e.lchmod||(e.lchmod=function(e,t,n){n&&process.nextTick(n)},e.lchmodSync=function(){});e.lchown||(e.lchown=function(e,t,n,r){r&&process.nextTick(r)},e.lchownSync=function(){});"win32"===h&&(e.rename=(t=e.rename,function(n,r,i){var o=Date.now(),s=0;t(n,r,(function a(c){if(c&&("EACCES"===c.code||"EPERM"===c.code)&&Date.now()-o<6e4)return setTimeout((function(){e.stat(r,(function(e,o){e&&"ENOENT"===e.code?t(n,r,a):i(c)}))}),s),void(s<100&&(s+=10));i&&i(c)}))}));var t;function r(t){return t?function(n,r,i){return t.call(e,n,r,(function(e){u(e)&&(e=null),i&&i.apply(this,arguments)}))}:t}function i(t){return t?function(n,r){try{return t.call(e,n,r)}catch(e){if(!u(e))throw e}}:t}function o(t){return t?function(n,r,i,o){return t.call(e,n,r,i,(function(e){u(e)&&(e=null),o&&o.apply(this,arguments)}))}:t}function s(t){return t?function(n,r,i){try{return t.call(e,n,r,i)}catch(e){if(!u(e))throw e}}:t}function a(t){return t?function(n,r,i){function o(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),i&&i.apply(this,arguments)}return"function"==typeof r&&(i=r,r=null),r?t.call(e,n,r,o):t.call(e,n,o)}:t}function c(t){return t?function(n,r){var i=r?t.call(e,n,r):t.call(e,n);return i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296),i}:t}function u(e){return!e||("ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code))}e.read=function(t){function n(n,r,i,o,s,a){var c;if(a&&"function"==typeof a){var u=0;c=function(l,f,d){if(l&&"EAGAIN"===l.code&&u<10)return u++,t.call(e,n,r,i,o,s,c);a.apply(this,arguments)}}return t.call(e,n,r,i,o,s,c)}return n.__proto__=t,n}(e.read),e.readSync=(l=e.readSync,function(t,n,r,i,o){for(var s=0;;)try{return l.call(e,t,n,r,i,o)}catch(e){if("EAGAIN"===e.code&&s<10){s++;continue}throw e}});var l};var _=r.Stream,y=function(e){return{ReadStream:function t(n,r){if(!(this instanceof t))return new t(n,r);_.call(this);var i=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,r=r||{};for(var o=Object.keys(r),s=0,a=o.length;s<a;s++){var c=o[s];this[c]=r[c]}this.encoding&&this.setEncoding(this.encoding);if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(null!==this.fd)return void process.nextTick((function(){i._read()}));e.open(this.path,this.flags,this.mode,(function(e,t){if(e)return i.emit("error",e),void(i.readable=!1);i.fd=t,i.emit("open",t),i._read()}))},WriteStream:function t(n,r){if(!(this instanceof t))return new t(n,r);_.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,r=r||{};for(var i=Object.keys(r),o=0,s=i.length;o<s;o++){var a=i[o];this[a]=r[a]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}};var b=function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var t={__proto__:e.__proto__};else t=Object.create(null);return Object.getOwnPropertyNames(e).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t};var m=c((function(e){var n,r;function s(e,t){Object.defineProperty(e,n,{get:function(){return t}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(n=Symbol.for("graceful-fs.queue"),r=Symbol.for("graceful-fs.previous")):(n="___graceful-fs.queue",r="___graceful-fs.previous");var c=function(){};if(i.debuglog?c=i.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(c=function(){var e=i.format.apply(i,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!t[n]){var u=a[n]||[];s(t,u),t.close=function(e){function n(n,r){return e.call(t,n,(function(e){e||d(),"function"==typeof r&&r.apply(this,arguments)}))}return Object.defineProperty(n,r,{value:e}),n}(t.close),t.closeSync=function(e){function n(n){e.apply(t,arguments),d()}return Object.defineProperty(n,r,{value:e}),n}(t.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){c(t[n]),o.equal(t[n].length,0)}))}function l(e){v(e),e.gracefulify=l,e.createReadStream=function(t,n){return new e.ReadStream(t,n)},e.createWriteStream=function(t,n){return new e.WriteStream(t,n)};var t=e.readFile;e.readFile=function(e,n,r){"function"==typeof n&&(r=n,n=null);return function e(n,r,i){return t(n,r,(function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?("function"==typeof i&&i.apply(this,arguments),d()):f([e,[n,r,i]])}))}(e,n,r)};var n=e.writeFile;e.writeFile=function(e,t,r,i){"function"==typeof r&&(i=r,r=null);return function e(t,r,i,o){return n(t,r,i,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?("function"==typeof o&&o.apply(this,arguments),d()):f([e,[t,r,i,o]])}))}(e,t,r,i)};var r=e.appendFile;r&&(e.appendFile=function(e,t,n,i){"function"==typeof n&&(i=n,n=null);return function e(t,n,i,o){return r(t,n,i,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?("function"==typeof o&&o.apply(this,arguments),d()):f([e,[t,n,i,o]])}))}(e,t,n,i)});var i=e.readdir;function o(t){return i.apply(e,t)}if(e.readdir=function(e,t,n){var r=[e];"function"!=typeof t?r.push(t):n=t;return r.push((function(e,t){t&&t.sort&&t.sort();!e||"EMFILE"!==e.code&&"ENFILE"!==e.code?("function"==typeof n&&n.apply(this,arguments),d()):f([o,[r]])})),o(r)},"v0.8"===process.version.substr(0,4)){var s=y(e);p=s.ReadStream,_=s.WriteStream}var a=e.ReadStream;a&&(p.prototype=Object.create(a.prototype),p.prototype.open=function(){var e=this;m(e.path,e.flags,e.mode,(function(t,n){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n),e.read())}))});var c=e.WriteStream;c&&(_.prototype=Object.create(c.prototype),_.prototype.open=function(){var e=this;m(e.path,e.flags,e.mode,(function(t,n){t?(e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n))}))}),Object.defineProperty(e,"ReadStream",{get:function(){return p},set:function(e){p=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return _},set:function(e){_=e},enumerable:!0,configurable:!0});var u=p;Object.defineProperty(e,"FileReadStream",{get:function(){return u},set:function(e){u=e},enumerable:!0,configurable:!0});var h=_;function p(e,t){return this instanceof p?(a.apply(this,arguments),this):p.apply(Object.create(p.prototype),arguments)}function _(e,t){return this instanceof _?(c.apply(this,arguments),this):_.apply(Object.create(_.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return h},set:function(e){h=e},enumerable:!0,configurable:!0});var b=e.open;function m(e,t,n,r){return"function"==typeof n&&(r=n,n=null),function e(t,n,r,i){return b(t,n,r,(function(o,s){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?("function"==typeof i&&i.apply(this,arguments),d()):f([e,[t,n,r,i]])}))}(e,t,n,r)}return e.open=m,e}function f(e){c("ENQUEUE",e[0].name,e[1]),t[n].push(e)}function d(){var e=t[n].shift();e&&(c("RETRY",e[0].name,e[1]),e[0].apply(null,e[1]))}a[n]||s(a,t[n]),e.exports=l(b(t)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!t.__patched&&(e.exports=l(t),t.__patched=!0)})),g=c((function(e,t){const n=u,r=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter((e=>"function"==typeof m[e]));Object.assign(t,m),r.forEach((e=>{t[e]=n(m[e])})),t.realpath.native=n(m.realpath.native),t.exists=function(e,t){return"function"==typeof t?m.exists(e,t):new Promise((t=>m.exists(e,t)))},t.read=function(e,t,n,r,i,o){return"function"==typeof o?m.read(e,t,n,r,i,o):new Promise(((o,s)=>{m.read(e,t,n,r,i,((e,t,n)=>{if(e)return s(e);o({bytesRead:t,buffer:n})}))}))},t.write=function(e,t,...n){return"function"==typeof n[n.length-1]?m.write(e,t,...n):new Promise(((r,i)=>{m.write(e,t,...n,((e,t,n)=>{if(e)return i(e);r({bytesWritten:t,buffer:n})}))}))},"function"==typeof m.writev&&(t.writev=function(e,t,...n){return"function"==typeof n[n.length-1]?m.writev(e,t,...n):new Promise(((r,i)=>{m.writev(e,t,...n,((e,t,n)=>{if(e)return i(e);r({bytesWritten:t,buffers:n})}))}))})})),O={checkPath:function(t){if("win32"===process.platform){if(/[<>:"|?*]/.test(t.replace(e.parse(t).root,""))){const e=new Error(`Path contains invalid characters: ${t}`);throw e.code="EINVAL",e}}}};const{checkPath:E}=O,w=e=>"number"==typeof e?e:{mode:511,...e}.mode;var S={makeDir:async(e,t)=>(E(e),g.mkdir(e,{mode:w(t),recursive:!0})),makeDirSync:(e,t)=>(E(e),g.mkdirSync(e,{mode:w(t),recursive:!0}))};const N=l,{makeDir:A,makeDirSync:T}=S,D=N(A);var C={mkdirs:D,mkdirsSync:T,mkdirp:D,mkdirpSync:T,ensureDir:D,ensureDirSync:T};var R=function(e,t,n,r){m.open(e,"r+",((e,i)=>{if(e)return r(e);m.futimes(i,t,n,(e=>{m.close(i,(t=>{r&&r(e||t)}))}))}))};function j(e,t,n){const r=n.dereference?e=>g.stat(e,{bigint:!0}):e=>g.lstat(e,{bigint:!0});return Promise.all([r(e),r(t).catch((e=>{if("ENOENT"===e.code)return null;throw e}))]).then((([e,t])=>({srcStat:e,destStat:t})))}function x(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function L(t,n){const r=e.resolve(t).split(e.sep).filter((e=>e)),i=e.resolve(n).split(e.sep).filter((e=>e));return r.reduce(((e,t,n)=>e&&i[n]===t),!0)}function k(e,t,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${t}'.`}var V={checkPaths:function(t,n,r,o,s){i.callbackify(j)(t,n,o,((i,o)=>{if(i)return s(i);const{srcStat:a,destStat:c}=o;if(c){if(x(a,c)){const i=e.basename(t),o=e.basename(n);return"move"===r&&i!==o&&i.toLowerCase()===o.toLowerCase()?s(null,{srcStat:a,destStat:c,isChangingCase:!0}):s(new Error("Source and destination must not be the same."))}if(a.isDirectory()&&!c.isDirectory())return s(new Error(`Cannot overwrite non-directory '${n}' with directory '${t}'.`));if(!a.isDirectory()&&c.isDirectory())return s(new Error(`Cannot overwrite directory '${n}' with non-directory '${t}'.`))}return a.isDirectory()&&L(t,n)?s(new Error(k(t,n,r))):s(null,{srcStat:a,destStat:c})}))},checkPathsSync:function(t,n,r,i){const{srcStat:o,destStat:s}=function(e,t,n){let r;const i=n.dereference?e=>g.statSync(e,{bigint:!0}):e=>g.lstatSync(e,{bigint:!0}),o=i(e);try{r=i(t)}catch(e){if("ENOENT"===e.code)return{srcStat:o,destStat:null};throw e}return{srcStat:o,destStat:r}}(t,n,i);if(s){if(x(o,s)){const i=e.basename(t),a=e.basename(n);if("move"===r&&i!==a&&i.toLowerCase()===a.toLowerCase())return{srcStat:o,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(o.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${t}'.`);if(!o.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${n}' with non-directory '${t}'.`)}if(o.isDirectory()&&L(t,n))throw new Error(k(t,n,r));return{srcStat:o,destStat:s}},checkParentPaths:function t(n,r,i,o,s){const a=e.resolve(e.dirname(n)),c=e.resolve(e.dirname(i));if(c===a||c===e.parse(c).root)return s();g.stat(c,{bigint:!0},((e,a)=>e?"ENOENT"===e.code?s():s(e):x(r,a)?s(new Error(k(n,i,o))):t(n,r,c,o,s)))},checkParentPathsSync:function t(n,r,i,o){const s=e.resolve(e.dirname(n)),a=e.resolve(e.dirname(i));if(a===s||a===e.parse(a).root)return;let c;try{c=g.statSync(a,{bigint:!0})}catch(e){if("ENOENT"===e.code)return;throw e}if(x(r,c))throw new Error(k(n,i,o));return t(n,r,a,o)},isSrcSubdir:L,areIdentical:x};C.mkdirsSync;var P={pathExists:l((function(e){return g.access(e).then((()=>!0)).catch((()=>!1))})),pathExistsSync:g.existsSync};const I=C.mkdirs,F=P.pathExists,B=R;function U(t,n,r,i,o){const s=e.dirname(r);F(s,((e,a)=>e?o(e):a?G(t,n,r,i,o):void I(s,(e=>e?o(e):G(t,n,r,i,o)))))}function M(e,t,n,r,i,o){Promise.resolve(i.filter(n,r)).then((s=>s?e(t,n,r,i,o):o()),(e=>o(e)))}function G(e,t,n,r,i){(r.dereference?m.stat:m.lstat)(t,((o,s)=>o?i(o):s.isDirectory()?function(e,t,n,r,i,o){return t?H(n,r,i,o):function(e,t,n,r,i){m.mkdir(n,(o=>{if(o)return i(o);H(t,n,r,(t=>t?i(t):W(n,e,i)))}))}(e.mode,n,r,i,o)}(s,e,t,n,r,i):s.isFile()||s.isCharacterDevice()||s.isBlockDevice()?function(e,t,n,r,i,o){return t?function(e,t,n,r,i){if(!r.overwrite)return r.errorOnExist?i(new Error(`'${n}' already exists`)):i();m.unlink(n,(o=>o?i(o):K(e,t,n,r,i)))}(e,n,r,i,o):K(e,n,r,i,o)}(s,e,t,n,r,i):s.isSymbolicLink()?$(e,t,n,r,i):s.isSocket()?i(new Error(`Cannot copy a socket file: ${t}`)):s.isFIFO()?i(new Error(`Cannot copy a FIFO pipe: ${t}`)):i(new Error(`Unknown file: ${t}`))))}function K(e,t,n,r,i){m.copyFile(t,n,(o=>o?i(o):r.preserveTimestamps?function(e,t,n,r){if(function(e){return 0==(128&e)}(e))return function(e,t,n){return W(e,128|t,n)}(n,e,(i=>i?r(i):q(e,t,n,r)));return q(e,t,n,r)}(e.mode,t,n,i):W(n,e.mode,i)))}function q(e,t,n,r){!function(e,t,n){m.stat(e,((e,r)=>e?n(e):B(t,r.atime,r.mtime,n)))}(t,n,(t=>t?r(t):W(n,e,r)))}function W(e,t,n){return m.chmod(e,t,n)}function H(e,t,n,r){m.readdir(e,((i,o)=>i?r(i):Y(o,e,t,n,r)))}function Y(t,n,r,i,o){const s=t.pop();return s?function(t,n,r,i,o,s){const a=e.join(r,n),c=e.join(i,n);V.checkPaths(a,c,"copy",o,((e,n)=>{if(e)return s(e);const{destStat:u}=n;!function(e,t,n,r,i){r.filter?M(G,e,t,n,r,i):G(e,t,n,r,i)}(u,a,c,o,(e=>e?s(e):Y(t,r,i,o,s)))}))}(t,s,n,r,i,o):o()}function $(t,n,r,i,o){m.readlink(n,((n,s)=>n?o(n):(i.dereference&&(s=e.resolve(process.cwd(),s)),t?void m.readlink(r,((n,a)=>n?"EINVAL"===n.code||"UNKNOWN"===n.code?m.symlink(s,r,o):o(n):(i.dereference&&(a=e.resolve(process.cwd(),a)),V.isSrcSubdir(s,a)?o(new Error(`Cannot copy '${s}' to a subdirectory of itself, '${a}'.`)):t.isDirectory()&&V.isSrcSubdir(a,s)?o(new Error(`Cannot overwrite '${a}' with '${s}'.`)):function(e,t,n){m.unlink(t,(r=>r?n(r):m.symlink(e,t,n)))}(s,r,o)))):m.symlink(s,r,o))))}var z={copy:u((function(e,t,n,r){"function"!=typeof n||r?"function"==typeof n&&(n={filter:n}):(r=n,n={}),r=r||function(){},(n=n||{}).clobber=!("clobber"in n)||!!n.clobber,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269"),V.checkPaths(e,t,"copy",n,((i,o)=>{if(i)return r(i);const{srcStat:s,destStat:a}=o;V.checkParentPaths(e,s,t,"copy",(i=>i?r(i):n.filter?M(U,a,e,t,n,r):U(a,e,t,n,r)))}))}))};const X="win32"===process.platform;function J(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach((t=>{e[t]=e[t]||m[t],e[t+="Sync"]=e[t]||m[t]})),e.maxBusyTries=e.maxBusyTries||3}function Q(e,t,n){let r=0;"function"==typeof t&&(n=t,t={}),o(e,"rimraf: missing path"),o.strictEqual(typeof e,"string","rimraf: path should be a string"),o.strictEqual(typeof n,"function","rimraf: callback function required"),o(t,"rimraf: invalid options argument provided"),o.strictEqual(typeof t,"object","rimraf: options should be object"),J(t),Z(e,t,(function i(o){if(o){if(("EBUSY"===o.code||"ENOTEMPTY"===o.code||"EPERM"===o.code)&&r<t.maxBusyTries){r++;return setTimeout((()=>Z(e,t,i)),100*r)}"ENOENT"===o.code&&(o=null)}n(o)}))}function Z(e,t,n){o(e),o(t),o("function"==typeof n),t.lstat(e,((r,i)=>r&&"ENOENT"===r.code?n(null):r&&"EPERM"===r.code&&X?ee(e,t,r,n):i&&i.isDirectory()?ne(e,t,r,n):void t.unlink(e,(r=>{if(r){if("ENOENT"===r.code)return n(null);if("EPERM"===r.code)return X?ee(e,t,r,n):ne(e,t,r,n);if("EISDIR"===r.code)return ne(e,t,r,n)}return n(r)}))))}function ee(e,t,n,r){o(e),o(t),o("function"==typeof r),t.chmod(e,438,(i=>{i?r("ENOENT"===i.code?null:n):t.stat(e,((i,o)=>{i?r("ENOENT"===i.code?null:n):o.isDirectory()?ne(e,t,n,r):t.unlink(e,r)}))}))}function te(e,t,n){let r;o(e),o(t);try{t.chmodSync(e,438)}catch(e){if("ENOENT"===e.code)return;throw n}try{r=t.statSync(e)}catch(e){if("ENOENT"===e.code)return;throw n}r.isDirectory()?ie(e,t,n):t.unlinkSync(e)}function ne(t,n,r,i){o(t),o(n),o("function"==typeof i),n.rmdir(t,(s=>{!s||"ENOTEMPTY"!==s.code&&"EEXIST"!==s.code&&"EPERM"!==s.code?s&&"ENOTDIR"===s.code?i(r):i(s):function(t,n,r){o(t),o(n),o("function"==typeof r),n.readdir(t,((i,o)=>{if(i)return r(i);let s,a=o.length;if(0===a)return n.rmdir(t,r);o.forEach((i=>{Q(e.join(t,i),n,(e=>{if(!s)return e?r(s=e):void(0==--a&&n.rmdir(t,r))}))}))}))}(t,n,i)}))}function re(e,t){let n;J(t=t||{}),o(e,"rimraf: missing path"),o.strictEqual(typeof e,"string","rimraf: path should be a string"),o(t,"rimraf: missing options"),o.strictEqual(typeof t,"object","rimraf: options should be object");try{n=t.lstatSync(e)}catch(n){if("ENOENT"===n.code)return;"EPERM"===n.code&&X&&te(e,t,n)}try{n&&n.isDirectory()?ie(e,t,null):t.unlinkSync(e)}catch(n){if("ENOENT"===n.code)return;if("EPERM"===n.code)return X?te(e,t,n):ie(e,t,n);if("EISDIR"!==n.code)throw n;ie(e,t,n)}}function ie(t,n,r){o(t),o(n);try{n.rmdirSync(t)}catch(i){if("ENOTDIR"===i.code)throw r;if("ENOTEMPTY"===i.code||"EEXIST"===i.code||"EPERM"===i.code)!function(t,n){if(o(t),o(n),n.readdirSync(t).forEach((r=>re(e.join(t,r),n))),!X){return n.rmdirSync(t,n)}{const e=Date.now();do{try{return n.rmdirSync(t,n)}catch{}}while(Date.now()-e<500)}}(t,n);else if("ENOENT"!==i.code)throw i}}var oe=Q;Q.sync=re;var se={remove:u((function(e,t){if(m.rm)return m.rm(e,{recursive:!0,force:!0},t);oe(e,t)})),removeSync:function(e){if(m.rmSync)return m.rmSync(e,{recursive:!0,force:!0});oe.sync(e)}};l((async function(t){let n;try{n=await g.readdir(t)}catch{return C.mkdirs(t)}return Promise.all(n.map((n=>se.remove(e.join(t,n)))))}));u((function(t,n){function r(){m.writeFile(t,"",(e=>{if(e)return n(e);n()}))}m.stat(t,((i,o)=>{if(!i&&o.isFile())return n();const s=e.dirname(t);m.stat(s,((e,t)=>{if(e)return"ENOENT"===e.code?C.mkdirs(s,(e=>{if(e)return n(e);r()})):n(e);t.isDirectory()?r():m.readdir(s,(e=>{if(e)return n(e)}))}))}))}));const ae=u,ce=P.pathExists,{areIdentical:ue}=V;ae((function(t,n,r){function i(e,t){m.link(e,t,(e=>{if(e)return r(e);r(null)}))}m.lstat(n,((o,s)=>{m.lstat(t,((o,a)=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),r(o);if(s&&ue(a,s))return r(null);const c=e.dirname(n);ce(c,((e,o)=>e?r(e):o?i(t,n):void C.mkdirs(c,(e=>{if(e)return r(e);i(t,n)}))))}))}))}));const le=P.pathExists;var fe=function(t,n,r){if(e.isAbsolute(t))return m.lstat(t,(e=>e?(e.message=e.message.replace("lstat","ensureSymlink"),r(e)):r(null,{toCwd:t,toDst:t})));{const i=e.dirname(n),o=e.join(i,t);return le(o,((n,s)=>n?r(n):s?r(null,{toCwd:o,toDst:t}):m.lstat(t,(n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:t,toDst:e.relative(i,t)})))))}},de=function(t,n){let r;if(e.isAbsolute(t)){if(r=m.existsSync(t),!r)throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}{const i=e.dirname(n),o=e.join(i,t);if(r=m.existsSync(o),r)return{toCwd:o,toDst:t};if(r=m.existsSync(t),!r)throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:e.relative(i,t)}}};var he=function(e,t,n){if(n="function"==typeof t?t:n,t="function"!=typeof t&&t)return n(null,t);m.lstat(e,((e,r)=>{if(e)return n(null,"file");t=r&&r.isDirectory()?"dir":"file",n(null,t)}))},pe=function(e,t){let n;if(t)return t;try{n=m.lstatSync(e)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"};const ve=u,_e=C.mkdirs,ye=C.mkdirsSync,be=fe,me=de,ge=he,Oe=pe,Ee=P.pathExists,{areIdentical:we}=V;function Se(t,n,r,i){be(t,n,((o,s)=>{if(o)return i(o);t=s.toDst,ge(s.toCwd,r,((r,o)=>{if(r)return i(r);const s=e.dirname(n);Ee(s,((e,r)=>e?i(e):r?g.symlink(t,n,o,i):void _e(s,(e=>{if(e)return i(e);g.symlink(t,n,o,i)}))))}))}))}ve((function(e,t,n,r){r="function"==typeof n?n:r,n="function"!=typeof n&&n,g.lstat(t,((i,o)=>{!i&&o.isSymbolicLink()?Promise.all([g.stat(e),g.stat(t)]).then((([i,o])=>{if(we(i,o))return r(null);Se(e,t,n,r)})):Se(e,t,n,r)}))}));var Ne={stringify:function(e,{EOL:t="\n",finalEOL:n=!0,replacer:r=null,spaces:i}={}){const o=n?t:"";return JSON.stringify(e,r,i).replace(/\n/g,t)+o},stripBom:function(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}};let Ae;try{Ae=m}catch(e){Ae=t}const{stringify:Te,stripBom:De}=Ne;const Ce=l((async function(e,t={}){"string"==typeof t&&(t={encoding:t});const n=t.fs||Ae,r=!("throws"in t)||t.throws;let i,o=await u(n.readFile)(e,t);o=De(o);try{i=JSON.parse(o,t?t.reviver:null)}catch(t){if(r)throw t.message=`${e}: ${t.message}`,t;return null}return i}));const Re=l((async function(e,t,n={}){const r=n.fs||Ae,i=Te(t,n);await u(r.writeFile)(e,i,n)}));const je={readFile:Ce,readFileSync:function(e,t={}){"string"==typeof t&&(t={encoding:t});const n=t.fs||Ae,r=!("throws"in t)||t.throws;try{let r=n.readFileSync(e,t);return r=De(r),JSON.parse(r,t.reviver)}catch(t){if(r)throw t.message=`${e}: ${t.message}`,t;return null}},writeFile:Re,writeFileSync:function(e,t,n={}){const r=n.fs||Ae,i=Te(t,n);return r.writeFileSync(e,i,n)}};var xe={readJson:je.readFile,readJsonSync:je.readFileSync,writeJson:je.writeFile,writeJsonSync:je.writeFileSync};const Le=P.pathExists;var ke={outputFile:u((function(t,n,r,i){"function"==typeof r&&(i=r,r="utf8");const o=e.dirname(t);Le(o,((e,s)=>e?i(e):s?m.writeFile(t,n,r,i):void C.mkdirs(o,(e=>{if(e)return i(e);m.writeFile(t,n,r,i)}))))})),outputFileSync:function(t,...n){const r=e.dirname(t);if(m.existsSync(r))return m.writeFileSync(t,...n);C.mkdirsSync(r),m.writeFileSync(t,...n)}};const{stringify:Ve}=Ne,{outputFile:Pe}=ke;var Ie=async function(e,t,n={}){const r=Ve(t,n);await Pe(e,r,n)};const{stringify:Fe}=Ne,{outputFileSync:Be}=ke;var Ue=function(e,t,n){const r=Fe(t,n);Be(e,r,n)};const Me=l;xe.outputJson=Me(Ie),xe.outputJsonSync=Ue,xe.outputJSON=xe.outputJson,xe.outputJSONSync=xe.outputJsonSync,xe.writeJSON=xe.writeJson,xe.writeJSONSync=xe.writeJsonSync,xe.readJSON=xe.readJson,xe.readJSONSync=xe.readJsonSync;se.removeSync,C.mkdirpSync;const Ge=z.copy,Ke=se.remove,qe=C.mkdirp,We=P.pathExists;function He(e,t,n,r,i){return r?Ye(e,t,n,i):n?Ke(t,(r=>r?i(r):Ye(e,t,n,i))):void We(t,((r,o)=>r?i(r):o?i(new Error("dest already exists.")):Ye(e,t,n,i)))}function Ye(e,t,n,r){m.rename(e,t,(i=>i?"EXDEV"!==i.code?r(i):function(e,t,n,r){Ge(e,t,{overwrite:n,errorOnExist:!0},(t=>t?r(t):Ke(e,r)))}(e,t,n,r):r()))}u((function(t,n,r,i){"function"==typeof r&&(i=r,r={});const o=r.overwrite||r.clobber||!1;V.checkPaths(t,n,"move",r,((r,s)=>{if(r)return i(r);const{srcStat:a,isChangingCase:c=!1}=s;V.checkParentPaths(t,a,n,"move",(r=>r?i(r):function(t){const n=e.dirname(t);return e.parse(n).root===n}(n)?He(t,n,o,c,i):void qe(e.dirname(n),(e=>e?i(e):He(t,n,o,c,i)))))}))}));var $e="object"==typeof a&&a&&a.Object===Object&&a,ze="object"==typeof self&&self&&self.Object===Object&&self,Xe=$e||ze||Function("return this")(),Je=Xe.Symbol,Qe=Object.prototype,Ze=Qe.hasOwnProperty,et=Qe.toString,tt=Je?Je.toStringTag:void 0;var nt=function(e){var t=Ze.call(e,tt),n=e[tt];try{e[tt]=void 0;var r=!0}catch(e){}var i=et.call(e);return r&&(t?e[tt]=n:delete e[tt]),i},rt=Object.prototype.toString;var it=function(e){return rt.call(e)},ot=Je?Je.toStringTag:void 0;var st=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ot&&ot in Object(e)?nt(e):it(e)};var at=function(e){return null!=e&&"object"==typeof e};var ct=function(e){return at(e)&&"[object Arguments]"==st(e)},ut=Object.prototype;ut.hasOwnProperty,ut.propertyIsEnumerable;ct(function(){return arguments}());var lt=function(){return!1};c((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n?Xe.Buffer:void 0,o=(i?i.isBuffer:void 0)||lt;e.exports=o}));var ft=c((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n&&$e.process,o=function(){try{var e=r&&r.require&&r.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=o}));ft&&ft.isTypedArray;var dt=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var ht,pt=function(e){if(!dt(e))return!1;var t=st(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},vt=Xe["__core-js_shared__"],_t=(ht=/[^.]+$/.exec(vt&&vt.keys&&vt.keys.IE_PROTO||""))?"Symbol(src)_1."+ht:"";var yt=function(e){return!!_t&&_t in e},bt=Function.prototype.toString;var mt=function(e){if(null!=e){try{return bt.call(e)}catch(e){}try{return e+""}catch(e){}}return""},gt=/^\[object .+?Constructor\]$/,Ot=Function.prototype,Et=Object.prototype,wt=Ot.toString,St=Et.hasOwnProperty,Nt=RegExp("^"+wt.call(St).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var At=function(e){return!(!dt(e)||yt(e))&&(pt(e)?Nt:gt).test(mt(e))};var Tt=function(e,t){return null==e?void 0:e[t]};var Dt=function(e,t){var n=Tt(e,t);return At(n)?n:void 0},Ct=Dt(Object,"create");var Rt=function(){this.__data__=Ct?Ct(null):{},this.size=0};var jt=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},xt=Object.prototype.hasOwnProperty;var Lt=function(e){var t=this.__data__;if(Ct){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return xt.call(t,e)?t[e]:void 0},kt=Object.prototype.hasOwnProperty;var Vt=function(e){var t=this.__data__;return Ct?void 0!==t[e]:kt.call(t,e)};var Pt=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ct&&void 0===t?"__lodash_hash_undefined__":t,this};function It(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}It.prototype.clear=Rt,It.prototype.delete=jt,It.prototype.get=Lt,It.prototype.has=Vt,It.prototype.set=Pt;var Ft=It;var Bt=function(){this.__data__=[],this.size=0};var Ut=function(e,t){return e===t||e!=e&&t!=t};var Mt=function(e,t){for(var n=e.length;n--;)if(Ut(e[n][0],t))return n;return-1},Gt=Array.prototype.splice;var Kt=function(e){var t=this.__data__,n=Mt(t,e);return!(n<0)&&(n==t.length-1?t.pop():Gt.call(t,n,1),--this.size,!0)};var qt=function(e){var t=this.__data__,n=Mt(t,e);return n<0?void 0:t[n][1]};var Wt=function(e){return Mt(this.__data__,e)>-1};var Ht=function(e,t){var n=this.__data__,r=Mt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Yt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Yt.prototype.clear=Bt,Yt.prototype.delete=Kt,Yt.prototype.get=qt,Yt.prototype.has=Wt,Yt.prototype.set=Ht;var $t=Yt,zt=Dt(Xe,"Map");var Xt=function(){this.size=0,this.__data__={hash:new Ft,map:new(zt||$t),string:new Ft}};var Jt=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Qt=function(e,t){var n=e.__data__;return Jt(t)?n["string"==typeof t?"string":"hash"]:n.map};var Zt=function(e){var t=Qt(this,e).delete(e);return this.size-=t?1:0,t};var en=function(e){return Qt(this,e).get(e)};var tn=function(e){return Qt(this,e).has(e)};var nn=function(e,t){var n=Qt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function rn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}rn.prototype.clear=Xt,rn.prototype.delete=Zt,rn.prototype.get=en,rn.prototype.has=tn,rn.prototype.set=nn;var on=rn;function sn(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(sn.Cache||on),n}sn.Cache=on;var an=sn;var cn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,un=/\\(\\)?/g;(function(e){var t=an(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache})((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(cn,(function(e,n,r,i){t.push(r?i.replace(un,"$1"):n||e)})),t}));var ln=Je?Je.prototype:void 0;ln&&ln.toString;var fn="production"!==process.env.NODE_ENV?{0:"Invalid value for configuration 'enforceActions', expected 'never', 'always' or 'observed'",1:function(e,t){return"Cannot apply '"+e+"' to '"+t.toString()+"': Field not found."},5:"'keys()' can only be used on observable objects, arrays, sets and maps",6:"'values()' can only be used on observable objects, arrays, sets and maps",7:"'entries()' can only be used on observable objects, arrays and maps",8:"'set()' can only be used on observable objects, arrays and maps",9:"'remove()' can only be used on observable objects, arrays and maps",10:"'has()' can only be used on observable objects, arrays and maps",11:"'get()' can only be used on observable objects, arrays and maps",12:"Invalid annotation",13:"Dynamic observable objects cannot be frozen",14:"Intercept handlers should return nothing or a change object",15:"Observable arrays cannot be frozen",16:"Modification exception: the internal structure of an observable array was changed.",17:function(e,t){return"[mobx.array] Index out of bounds, "+e+" is larger than "+t},18:"mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js",19:function(e){return"Cannot initialize from classes that inherit from Map: "+e.constructor.name},20:function(e){return"Cannot initialize map from "+e},21:function(e){return"Cannot convert to map from '"+e+"'"},22:"mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js",23:"It is not possible to get index atoms from arrays",24:function(e){return"Cannot obtain administration from "+e},25:function(e,t){return"the entry '"+e+"' does not exist in the observable map '"+t+"'"},26:"please specify a property",27:function(e,t){return"no observable property '"+e.toString()+"' found on the observable object '"+t+"'"},28:function(e){return"Cannot obtain atom from "+e},29:"Expecting some object",30:"invalid action stack. did you forget to finish an action?",31:"missing option for computed: get",32:function(e,t){return"Cycle detected in computation "+e+": "+t},33:function(e){return"The setter of computed value '"+e+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"},34:function(e){return"[ComputedValue '"+e+"'] It is not possible to assign a new value to a computed value."},35:"There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`",36:"isolateGlobalState should be called before MobX is running any reactions",37:function(e){return"[mobx] `observableArray."+e+"()` mutates the array in-place, which is not allowed inside a derivation. Use `array.slice()."+e+"()` instead"}}:{};function dn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if("production"!==process.env.NODE_ENV){var i="string"==typeof e?e:fn[e];throw"function"==typeof i&&(i=i.apply(null,n)),new Error("[MobX] "+i)}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)}var hn={};function pn(){return"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:hn}var vn=Object.assign,_n=Object.getOwnPropertyDescriptor,yn=Object.defineProperty,bn=Object.prototype,mn=[];Object.freeze(mn);var gn={};Object.freeze(gn);var On="undefined"!=typeof Proxy,En=Object.toString();function wn(){On||dn("production"!==process.env.NODE_ENV?"`Proxy` objects are not available in the current environment. Please configure MobX to enable a fallback implementation.`":"Proxy not available")}function Sn(e){"production"!==process.env.NODE_ENV&&hi.verifyProxies&&dn("MobX is currently configured to be able to run in ES5 mode, but in ES5 MobX won't be able to "+e)}function Nn(){return++hi.mobxGuid}function An(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var Tn=function(){};function Dn(e){return"function"==typeof e}function Cn(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function Rn(e){return null!==e&&"object"==typeof e}function jn(e){var t;if(!Rn(e))return!1;var n=Object.getPrototypeOf(e);return null==n||(null==(t=n.constructor)?void 0:t.toString())===En}function xn(e,t,n){yn(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function Ln(e,t,n){yn(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function kn(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return Rn(e)&&!0===e[n]}}function Vn(e){return e instanceof Map}function Pn(e){return e instanceof Set}var In=void 0!==Object.getOwnPropertySymbols;var Fn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:In?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function Bn(e){return"string"==typeof e?e:"symbol"==typeof e?e.toString():new String(e).toString()}function Un(e){return null===e?null:"object"==typeof e?""+e:e}function Mn(e,t){return bn.hasOwnProperty.call(e,t)}var Gn=Object.getOwnPropertyDescriptors||function(e){var t={};return Fn(e).forEach((function(n){t[n]=_n(e,n)})),t};function Kn(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,r.key,r)}}function qn(e,t,n){return t&&Kn(e.prototype,t),n&&Kn(e,n),e}function Wn(){return Wn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wn.apply(this,arguments)}function Hn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Yn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zn(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return $n(e,t);var n=Object.prototype.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.")}return(n=e[Symbol.iterator]()).next.bind(n)}var Xn=Symbol("mobx-stored-annotations");function Jn(e){return Object.assign((function(t,n){Qn(t,n,e)}),e)}function Qn(e,t,n){(Mn(e,Xn)||xn(e,Xn,Wn({},e[Xn])),"production"!==process.env.NODE_ENV&&sr(n)&&!Mn(e[Xn],t))&&dn("'"+(e.constructor.name+".prototype."+t.toString())+"' is decorated with 'override', but no such decorated member was found on prototype.");!function(e,t,n){if("production"!==process.env.NODE_ENV&&!sr(t)&&Mn(e[Xn],n)){var r=e.constructor.name+".prototype."+n.toString(),i=e[Xn][n].annotationType_;dn("Cannot apply '@"+t.annotationType_+"' to '"+r+"':\nThe field is already decorated with '@"+i+"'.\nRe-decorating fields is not allowed.\nUse '@override' decorator for methods overriden by subclass.")}}(e,n,t),sr(n)||(e[Xn][t]=Wn({},n,{isDecorator_:!0}))}var Zn=Symbol("mobx administration"),er=function(){function e(e){void 0===e&&(e="Atom@"+Nn()),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=zr.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 mi(this)},t.reportChanged=function(){yi(),gi(this),bi()},t.toString=function(){return this.name_},e}(),tr=kn("Atom",er);function nr(e,t,n){void 0===t&&(t=Tn),void 0===n&&(n=Tn);var r,i=new er(e);return t!==Tn&&Ki("onBO",i,t,r),n!==Tn&&Gi(i,n),i}var rr={identity:function(e,t){return e===t},structural:function(e,t){return ts(e,t)},default:function(e,t){return Object.is(e,t)},shallow:function(e,t){return ts(e,t,1)}};function ir(e,t,n){return Zi(e)?e:Array.isArray(e)?kr.array(e,{name:n}):jn(e)?kr.object(e,void 0,{name:n}):Vn(e)?kr.map(e,{name:n}):Pn(e)?kr.set(e,{name:n}):e}function or(e){return e}function sr(e){return"override"===e.annotationType_}function ar(e,t){return{annotationType_:e,options_:t,make_:cr,extend_:ur}}function cr(e,t){for(var n,r,i=!1,o=e.target_,s=null!=(n=null==(r=this.options_)?void 0:r.bound)&&n;o&&o!==bn;){var a=_n(o,t);if(a){if(o===e.target_||s){var c=lr(e,this,t,a);if(!e.defineProperty_(t,c))return;if(i=!0,s)break}if(o!==e.target_){if(Ui(a.value)){i=!0;break}var u=lr(e,this,t,a,!1);yn(o,t,u),i=!0}}o=Object.getPrototypeOf(o)}i?Mo(e,this,t):this.isDecorator_||dn(1,this.annotationType_,e.name_+"."+t.toString())}function ur(e,t,n,r){var i=lr(e,this,t,n);return e.defineProperty_(t,i,r)}function lr(e,t,n,r,i){var o,s,a,c,u;void 0===i&&(i=hi.safeDescriptors),function(e,t,n,r){var i=t.annotationType_,o=r.value;"production"===process.env.NODE_ENV||Dn(o)||dn("Cannot apply '"+i+"' to '"+e.name_+"."+n.toString()+"':\n'"+i+"' can only be used on properties with a function value.")}(e,t,n,r);var l,f=r.value;(null==(o=t.options_)?void 0:o.bound)&&(f=f.bind(null!=(l=e.proxy_)?l:e.target_));return{value:Kr(null!=(s=null==(a=t.options_)?void 0:a.name)?s:n.toString(),f,null!=(c=null==(u=t.options_)?void 0:u.autoAction)&&c),configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function fr(e,t){return{annotationType_:e,options_:t,make_:dr,extend_:hr}}function dr(e,t){for(var n=!1,r=e.target_;r&&r!==bn;){var i=_n(r,t);if(i){if(r!==e.target_){if(Ji(i.value)){n=!0;break}var o=pr(e,this,t,i,!1);yn(r,t,o)}else{var s=pr(e,this,t,i);if(!e.defineProperty_(t,s))return}n=!0}r=Object.getPrototypeOf(r)}n?Mo(e,this,t):this.isDecorator_||dn(1,this.annotationType_,e.name_+"."+t.toString())}function hr(e,t,n,r){var i=pr(e,this,t,n);return e.defineProperty_(t,i,r)}function pr(e,t,n,r,i){return void 0===i&&(i=hi.safeDescriptors),function(e,t,n,r){var i=t.annotationType_,o=r.value;"production"===process.env.NODE_ENV||Dn(o)||dn("Cannot apply '"+i+"' to '"+e.name_+"."+n.toString()+"':\n'"+i+"' can only be used on properties with a generator function value.")}(e,t,n,r),{value:zi(r.value),configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function vr(e,t){return{annotationType_:e,options_:t,make_:_r,extend_:yr}}function _r(e,t){for(var n=e.target_;n&&n!==bn;){var r=_n(n,t);if(r){if(br(e,this,t,r),!e.defineComputedProperty_(t,Wn({},this.options_,{get:r.get,set:r.set})))return;return void Mo(e,this,t)}n=Object.getPrototypeOf(n)}this.isDecorator_||dn(1,this.annotationType_,e.name_+"."+t.toString())}function yr(e,t,n,r){return br(e,this,t,n),e.defineComputedProperty_(t,Wn({},this.options_,{get:n.get,set:n.set}),r)}function br(e,t,n,r){var i=t.annotationType_,o=r.get;"production"===process.env.NODE_ENV||o||dn("Cannot apply '"+i+"' to '"+e.name_+"."+n.toString()+"':\n'"+i+"' can only be used on getter(+setter) properties.")}function mr(e,t){return{annotationType_:e,options_:t,make_:gr,extend_:Or}}function gr(e,t){for(var n=e.target_;n&&n!==bn;){var r=_n(n,t);if(r){var i,o;if(Er(e,this,t,r),!e.defineObservableProperty_(t,r.value,null!=(i=null==(o=this.options_)?void 0:o.enhancer)?i:ir))return;return void Mo(e,this,t)}n=Object.getPrototypeOf(n)}this.isDecorator_||dn(1,this.annotationType_,e.name_+"."+t.toString())}function Or(e,t,n,r){var i,o;return Er(e,this,t,n),e.defineObservableProperty_(t,n.value,null!=(i=null==(o=this.options_)?void 0:o.enhancer)?i:ir,r)}function Er(e,t,n,r){var i=t.annotationType_;"production"===process.env.NODE_ENV||"value"in r||dn("Cannot apply '"+i+"' to '"+e.name_+"."+n.toString()+"':\n'"+i+"' cannot be used on getter/setter properties")}var wr={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function Sr(e){return e||wr}Object.freeze(wr);var Nr=mr("observable"),Ar=mr("observable.ref",{enhancer:or}),Tr=mr("observable.shallow",{enhancer:function(e,t,n){return null==e||Uo(e)||So(e)||Ro(e)||Lo(e)?e:Array.isArray(e)?kr.array(e,{name:n,deep:!1}):jn(e)?kr.object(e,void 0,{name:n,deep:!1}):Vn(e)?kr.map(e,{name:n,deep:!1}):Pn(e)?kr.set(e,{name:n,deep:!1}):void("production"!==process.env.NODE_ENV&&dn("The shallow modifier / decorator can only used in combination with arrays, objects, maps and sets"))}}),Dr=mr("observable.struct",{enhancer:function(e,t){return"production"!==process.env.NODE_ENV&&Zi(e)&&dn("observable.struct should not be used with observable values"),ts(e,t)?t:e}}),Cr=Jn(Nr);function Rr(e){return!0===e.deep?ir:!1===e.deep?or:(t=e.defaultDecorator)&&null!=(n=null==(r=t.options_)?void 0:r.enhancer)?n:ir;var t,n,r}function jr(e,t,n){if(!Cn(t))return Zi(e)?e:jn(e)?kr.object(e,t,n):Array.isArray(e)?kr.array(e,t):Vn(e)?kr.map(e,t):Pn(e)?kr.set(e,t):"object"==typeof e&&null!==e?e:kr.box(e);Qn(e,t,Nr)}Object.assign(jr,Cr);var xr,Lr,kr=vn(jr,{box:function(e,t){var n=Sr(t);return new $r(e,Rr(n),n.name,!0,n.equals)},array:function(e,t){var n=Sr(t);return(!1===hi.useProxies||!1===n.proxy?Xo:vo)(e,Rr(n),n.name)},map:function(e,t){var n=Sr(t);return new Co(e,Rr(n),n.name)},set:function(e,t){var n=Sr(t);return new xo(e,Rr(n),n.name)},object:function(e,t,n){return qi(!1===hi.useProxies||!1===(null==n?void 0:n.proxy)?Io({},n):function(e,t){var n,r;return wn(),e=Io(e,t),null!=(r=(n=e[Zn]).proxy_)?r:n.proxy_=new Proxy(e,ro)}({},n),e,t)},ref:Jn(Ar),shallow:Jn(Tr),deep:Cr,struct:Jn(Dr)}),Vr=vr("computed"),Pr=vr("computed.struct",{equals:rr.structural}),Ir=function(e,t){if(Cn(t))return Qn(e,t,Vr);if(jn(e))return Jn(vr("computed",e));"production"!==process.env.NODE_ENV&&(Dn(e)||dn("First argument to `computed` should be an expression."),Dn(t)&&dn("A setter as second argument is no longer supported, use `{ set: fn }` option instead"));var n=jn(t)?t:{};return n.get=e,n.name=n.name||e.name||"",new Jr(n)};Object.assign(Ir,Vr),Ir.struct=Jn(Pr);var Fr,Br=0,Ur=1,Mr=null!=(xr=null==(Lr=_n((function(){}),"name"))?void 0:Lr.configurable)&&xr,Gr={value:"action",configurable:!0,writable:!1,enumerable:!1};function Kr(e,t,n,r){function i(){return qr(e,n,t,r||this,arguments)}return void 0===n&&(n=!1),"production"!==process.env.NODE_ENV&&(Dn(t)||dn("`action` can only be invoked on functions"),"string"==typeof e&&e||dn("actions should have valid names, got: '"+e+"'")),i.isMobxAction=!0,Mr&&(Gr.value=e,Object.defineProperty(i,"name",Gr)),i}function qr(e,t,n,r,i){var o=function(e,t,n,r){var i="production"!==process.env.NODE_ENV&&Ti()&&!!e,o=0;if("production"!==process.env.NODE_ENV&&i){o=Date.now();var s=r?Array.from(r):mn;Ci({type:xi,name:e,object:n,arguments:s})}var a=hi.trackingDerivation,c=!t||!a;yi();var u=hi.allowStateChanges;c&&(si(),u=Wr(!0));var l=ci(!0),f={runAsAction_:c,prevDerivation_:a,prevAllowStateChanges_:u,prevAllowStateReads_:l,notifySpy_:i,startTime_:o,actionId_:Ur++,parentActionId_:Br};return Br=f.actionId_,f}(e,t,r,i);try{return n.apply(r,i)}catch(e){throw o.error_=e,e}finally{!function(e){Br!==e.actionId_&&dn(30);Br=e.parentActionId_,void 0!==e.error_&&(hi.suppressReactionErrors=!0);Hr(e.prevAllowStateChanges_),ui(e.prevAllowStateReads_),bi(),e.runAsAction_&&ai(e.prevDerivation_);"production"!==process.env.NODE_ENV&&e.notifySpy_&&ji({time:Date.now()-e.startTime_});hi.suppressReactionErrors=!1}(o)}}function Wr(e){var t=hi.allowStateChanges;return hi.allowStateChanges=e,t}function Hr(e){hi.allowStateChanges=e}Fr=Symbol.toPrimitive;var Yr,$r=function(e){function t(t,n,r,i,o){var s;return void 0===r&&(r="ObservableValue@"+Nn()),void 0===i&&(i=!0),void 0===o&&(o=rr.default),(s=e.call(this,r)||this).enhancer=void 0,s.name_=void 0,s.equals=void 0,s.hasUnreportedChange_=!1,s.interceptors_=void 0,s.changeListeners_=void 0,s.value_=void 0,s.dehancer=void 0,s.enhancer=n,s.name_=r,s.equals=o,s.value_=n(t,void 0,r),"production"!==process.env.NODE_ENV&&i&&Ti()&&Di({type:"create",object:Yn(s),observableKind:"value",debugObjectName:s.name_,newValue:""+s.value_}),s}Hn(t,e);var n=t.prototype;return n.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},n.set=function(e){var t=this.value_;if((e=this.prepareNewValue_(e))!==hi.UNCHANGED){var n=Ti();"production"!==process.env.NODE_ENV&&n&&Ci({type:fo,object:this,observableKind:"value",debugObjectName:this.name_,newValue:e,oldValue:t}),this.setNewValue_(e),"production"!==process.env.NODE_ENV&&n&&ji()}},n.prepareNewValue_=function(e){if(ni(this),io(this)){var t=so(this,{object:this,type:fo,newValue:e});if(!t)return hi.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?hi.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),ao(this)&&uo(this,{type:fo,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return oo(this,e)},n.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:fo,newValue:this.value_,oldValue:void 0}),co(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 Un(this.get())},n[Fr]=function(){return this.valueOf()},t}(er);Yr=Symbol.toPrimitive;var zr,Xr,Jr=function(){function e(e){this.dependenciesState_=zr.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=zr.UP_TO_DATE_,this.unboundDepsCount_=0,this.mapid_="#"+Nn(),this.value_=new Zr(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Xr.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||dn(31),this.derivation=e.get,this.name_=e.name||"ComputedValue@"+Nn(),e.set&&(this.setter_=Kr(this.name_+"-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?rr.structural:rr.default),this.scope_=e.context,this.requiresReaction_=!!e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){!function(e){if(e.lowestObserverState_!==zr.UP_TO_DATE_)return;e.lowestObserverState_=zr.POSSIBLY_STALE_,e.observers_.forEach((function(t){t.dependenciesState_===zr.UP_TO_DATE_&&(t.dependenciesState_=zr.POSSIBLY_STALE_,"production"!==process.env.NODE_ENV&&t.isTracing_!==Xr.NONE&&Oi(t,e),t.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_&&dn(32,this.name_,this.derivation),0!==hi.inBatch||0!==this.observers_.size||this.keepAlive_){if(mi(this),ti(this)){var e=hi.trackingContext;this.keepAlive_&&!e&&(hi.trackingContext=this),this.trackAndCompute()&&function(e){if(e.lowestObserverState_===zr.STALE_)return;e.lowestObserverState_=zr.STALE_,e.observers_.forEach((function(t){t.dependenciesState_===zr.POSSIBLY_STALE_?t.dependenciesState_=zr.STALE_:t.dependenciesState_===zr.UP_TO_DATE_&&(e.lowestObserverState_=zr.UP_TO_DATE_)}))}(this),hi.trackingContext=e}}else ti(this)&&(this.warnAboutUntrackedRead_(),yi(),this.value_=this.computeValue_(!1),bi());var t=this.value_;if(ei(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter_&&dn(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter_=!1}}else dn(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===zr.NOT_TRACKING_,n=this.computeValue_(!0);"production"!==process.env.NODE_ENV&&Ti()&&Di({observableKind:"computed",debugObjectName:this.name_,object:this.scope_,type:"update",oldValue:this.value_,newValue:n});var r=t||ei(e)||ei(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing_=!0;var t,n=Wr(!1);if(e)t=ri(this,this.derivation,this.scope_);else if(!0===hi.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(e){t=new Zr(e)}return Hr(n),this.isComputing_=!1,t},t.suspend_=function(){this.keepAlive_||(ii(this),this.value_=void 0)},t.observe_=function(e,t){var n=this,r=!0,i=void 0;return function(e,t){void 0===t&&(t=gn);"production"!==process.env.NODE_ENV&&(Dn(e)||dn("Autorun expects a function as first argument"),Ui(e)&&dn("Autorun does not accept actions since actions are untrackable"));var n,r=t&&t.name||e.name||"Autorun@"+Nn();if(t.scheduler||t.delay){var i=function(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Mi}(t),o=!1;n=new wi(r,(function(){o||(o=!0,i((function(){o=!1,n.isDisposed_||n.track(s)})))}),t.onError,t.requiresObservable)}else n=new wi(r,(function(){this.track(s)}),t.onError,t.requiresObservable);function s(){e(n)}return n.schedule_(),n.getDisposer_()}((function(){var o=n.get();if(!r||t){var s=si();e({observableKind:"computed",debugObjectName:n.name_,type:fo,object:n,newValue:o,oldValue:i}),ai(s)}r=!1,i=o}))},t.warnAboutUntrackedRead_=function(){"production"!==process.env.NODE_ENV&&(!0===this.requiresReaction_&&dn("[mobx] Computed value "+this.name_+" is read outside a reactive context"),this.isTracing_!==Xr.NONE&&console.log("[mobx.trace] '"+this.name_+"' is being read outside a reactive context. Doing a full recompute"),hi.computedRequiresReaction&&console.warn("[mobx] Computed value "+this.name_+" is being read outside a reactive context. Doing a full recompute"))},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return Un(this.get())},t[Yr]=function(){return this.valueOf()},e}(),Qr=kn("ComputedValue",Jr);!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_"}(zr||(zr={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Xr||(Xr={}));var Zr=function(e){this.cause=void 0,this.cause=e};function ei(e){return e instanceof Zr}function ti(e){switch(e.dependenciesState_){case zr.UP_TO_DATE_:return!1;case zr.NOT_TRACKING_:case zr.STALE_:return!0;case zr.POSSIBLY_STALE_:for(var t=ci(!0),n=si(),r=e.observing_,i=r.length,o=0;o<i;o++){var s=r[o];if(Qr(s)){if(hi.disableErrorBoundaries)s.get();else try{s.get()}catch(e){return ai(n),ui(t),!0}if(e.dependenciesState_===zr.STALE_)return ai(n),ui(t),!0}}return li(e),ai(n),ui(t),!1}}function ni(e){if("production"!==process.env.NODE_ENV){var t=e.observers_.size>0;hi.allowStateChanges||!t&&"always"!==hi.enforceActions||console.warn("[MobX] "+(hi.enforceActions?"Since strict-mode is enabled, changing (observed) observable values without using an action is not allowed. Tried to modify: ":"Side effects like changing state are not allowed at this point. Are you trying to modify state from, for example, a computed value or the render function of a React component? You can wrap side effects in 'runInAction' (or decorate functions with 'action') if needed. Tried to modify: ")+e.name_)}}function ri(e,t,n){var r=ci(!0);li(e),e.newObserving_=new Array(e.observing_.length+100),e.unboundDepsCount_=0,e.runId_=++hi.runId;var i,o=hi.trackingDerivation;if(hi.trackingDerivation=e,hi.inBatch++,!0===hi.disableErrorBoundaries)i=t.call(n);else try{i=t.call(n)}catch(e){i=new Zr(e)}return hi.inBatch--,hi.trackingDerivation=o,function(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=zr.UP_TO_DATE_,i=0,o=e.unboundDepsCount_,s=0;s<o;s++){var a=n[s];0===a.diffValue_&&(a.diffValue_=1,i!==s&&(n[i]=a),i++),a.dependenciesState_>r&&(r=a.dependenciesState_)}n.length=i,e.newObserving_=null,o=t.length;for(;o--;){var c=t[o];0===c.diffValue_&&vi(c,e),c.diffValue_=0}for(;i--;){var u=n[i];1===u.diffValue_&&(u.diffValue_=0,pi(u,e))}r!==zr.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}(e),function(e){if("production"===process.env.NODE_ENV)return;if(0!==e.observing_.length)return;(hi.reactionRequiresObservable||e.requiresObservable_)&&console.warn("[mobx] Derivation "+e.name_+" is created/updated without reading any observable value")}(e),ui(r),i}function ii(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)vi(t[n],e);e.dependenciesState_=zr.NOT_TRACKING_}function oi(e){var t=si();try{return e()}finally{ai(t)}}function si(){var e=hi.trackingDerivation;return hi.trackingDerivation=null,e}function ai(e){hi.trackingDerivation=e}function ci(e){var t=hi.allowStateReads;return hi.allowStateReads=e,t}function ui(e){hi.allowStateReads=e}function li(e){if(e.dependenciesState_!==zr.UP_TO_DATE_){e.dependenciesState_=zr.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=zr.UP_TO_DATE_}}var fi=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},di=!0,hi=function(){var e=pn();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(di=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new fi).version&&(di=!1),di?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new fi):(setTimeout((function(){dn(35)}),1),new fi)}();function pi(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function vi(e,t){e.observers_.delete(t),0===e.observers_.size&&_i(e)}function _i(e){!1===e.isPendingUnobservation_&&(e.isPendingUnobservation_=!0,hi.pendingUnobservations.push(e))}function yi(){hi.inBatch++}function bi(){if(0==--hi.inBatch){Si();for(var e=hi.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 Jr&&n.suspend_())}hi.pendingUnobservations=[]}}function mi(e){!function(e){"production"!==process.env.NODE_ENV&&!hi.allowStateReads&&hi.observableRequiresReaction&&console.warn("[mobx] Observable "+e.name_+" being read outside a reactive context")}(e);var t=hi.trackingDerivation;return null!==t?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved_&&hi.trackingContext&&(e.isBeingObserved_=!0,e.onBO())),!0):(0===e.observers_.size&&hi.inBatch>0&&_i(e),!1)}function gi(e){e.lowestObserverState_!==zr.STALE_&&(e.lowestObserverState_=zr.STALE_,e.observers_.forEach((function(t){t.dependenciesState_===zr.UP_TO_DATE_&&("production"!==process.env.NODE_ENV&&t.isTracing_!==Xr.NONE&&Oi(t,e),t.onBecomeStale_()),t.dependenciesState_=zr.STALE_})))}function Oi(e,t){if(console.log("[mobx.trace] '"+e.name_+"' is invalidated due to a change in: '"+t.name_+"'"),e.isTracing_===Xr.BREAK){var n=[];Ei(Wi(Jo(e,r)),n,1),new Function("debugger;\n/*\nTracing '"+e.name_+"'\n\nYou are entering this break point because derivation '"+e.name_+"' is being traced and '"+t.name_+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(e instanceof Jr?e.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n ")()}var r}function Ei(e,t,n){t.length>=1e3?t.push("(and many more)"):(t.push(""+new Array(n).join("\t")+e.name),e.dependencies&&e.dependencies.forEach((function(e){return Ei(e,t,n+1)})))}var wi=function(){function e(e,t,n,r){void 0===e&&(e="Reaction@"+Nn()),void 0===r&&(r=!1),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=zr.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.mapid_="#"+Nn(),this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=Xr.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,hi.pendingReactions.push(this),Si())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){yi(),this.isScheduled_=!1;var e=hi.trackingContext;if(hi.trackingContext=this,ti(this)){this.isTrackPending_=!0;try{this.onInvalidate_(),"production"!==process.env.NODE_ENV&&this.isTrackPending_&&Ti()&&Di({name:this.name_,type:"scheduled-reaction"})}catch(e){this.reportExceptionInDerivation_(e)}}hi.trackingContext=e,bi()}},t.track=function(e){if(!this.isDisposed_){yi();var t,n=Ti();"production"!==process.env.NODE_ENV&&n&&(t=Date.now(),Ci({name:this.name_,type:"reaction"})),this.isRunning_=!0;var r=hi.trackingContext;hi.trackingContext=this;var i=ri(this,e,void 0);hi.trackingContext=r,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&ii(this),ei(i)&&this.reportExceptionInDerivation_(i.cause),"production"!==process.env.NODE_ENV&&n&&ji({time:Date.now()-t}),bi()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(hi.disableErrorBoundaries)throw e;var n="production"!==process.env.NODE_ENV?"[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'":"[mobx] uncaught error in '"+this+"'";hi.suppressReactionErrors?"production"!==process.env.NODE_ENV&&console.warn("[mobx] (error in reaction '"+this.name_+"' suppressed, fix error of causing action below)"):console.error(n,e),"production"!==process.env.NODE_ENV&&Ti()&&Di({type:"error",name:this.name_,message:n,error:""+e}),hi.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(yi(),ii(this),bi()))},t.getDisposer_=function(){var e=this.dispose.bind(this);return e[Zn]=this,e},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1),function(){"production"===process.env.NODE_ENV&&dn("trace() is not available in production builds");for(var e=!1,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"boolean"==typeof n[n.length-1]&&(e=n.pop());var i=eo(n);if(!i)return dn("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");i.isTracing_===Xr.NONE&&console.log("[mobx.trace] '"+i.name_+"' tracing enabled");i.isTracing_=e?Xr.BREAK:Xr.LOG}(this,e)},e}();function Si(){hi.inBatch>0||hi.isRunningReactions||Ni()}function Ni(){hi.isRunningReactions=!0;for(var e=hi.pendingReactions,t=0;e.length>0;){100==++t&&(console.error("production"!==process.env.NODE_ENV?"Reaction doesn't converge to a stable state after 100 iterations. Probably there is a cycle in the reactive function: "+e[0]:"[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_()}hi.isRunningReactions=!1}var Ai=kn("Reaction",wi);function Ti(){return"production"!==process.env.NODE_ENV&&!!hi.spyListeners.length}function Di(e){if("production"!==process.env.NODE_ENV&&hi.spyListeners.length)for(var t=hi.spyListeners,n=0,r=t.length;n<r;n++)t[n](e)}function Ci(e){"production"!==process.env.NODE_ENV&&Di(Wn({},e,{spyReportStart:!0}))}var Ri={type:"report-end",spyReportEnd:!0};function ji(e){"production"!==process.env.NODE_ENV&&Di(e?Wn({},e,{type:"report-end",spyReportEnd:!0}):Ri)}var xi="action",Li=ar(xi),ki=ar("action.bound",{bound:!0}),Vi=ar("autoAction",{autoAction:!0}),Pi=ar("autoAction.bound",{autoAction:!0,bound:!0});function Ii(e){return function(t,n){return Dn(t)?Kr(t.name||"<unnamed action>",t,e):Dn(n)?Kr(t,n,e):Cn(n)?Qn(t,n,e?Vi:Li):Cn(t)?Jn(ar(e?"autoAction":xi,{name:t,autoAction:e})):void("production"!==process.env.NODE_ENV&&dn("Invalid arguments for `action`"))}}var Fi=Ii(!1);Object.assign(Fi,Li);var Bi=Ii(!0);function Ui(e){return Dn(e)&&!0===e.isMobxAction}Object.assign(Bi,Vi),Fi.bound=Jn(ki),Bi.bound=Jn(Pi);var Mi=function(e){return e()};function Gi(e,t,n){return Ki("onBUO",e,t,n)}function Ki(e,t,n,r){var i="function"==typeof r?Jo(t,n):Jo(t),o=Dn(r)?r:n,s=e+"L";return i[s]?i[s].add(o):i[s]=new Set([o]),function(){var e=i[s];e&&(e.delete(o),0===e.size&&delete i[s])}}function qi(e,t,n,r){"production"!==process.env.NODE_ENV&&(arguments.length>4&&dn("'extendObservable' expected 2-4 arguments"),"object"!=typeof e&&dn("'extendObservable' expects an object as first argument"),Ro(e)&&dn("'extendObservable' should not be used on maps, use map.merge instead"),jn(t)||dn("'extendObservabe' only accepts plain objects as second argument"),(Zi(t)||Zi(n))&&dn("Extending an object with another observable (object) is not supported"));var i=Gn(t),o=Io(e,r)[Zn];yi();try{Fn(i).forEach((function(e){o.extend_(e,i[e],!n||(!(e in n)||n[e]))}))}finally{bi()}return e}function Wi(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(Wi)),n}var Hi=0;function Yi(){this.message="FLOW_CANCELLED"}Yi.prototype=Object.create(Error.prototype);var $i=fr("flow"),zi=Object.assign((function(e,t){if(Cn(t))return Qn(e,t,$i);"production"!==process.env.NODE_ENV&&1!==arguments.length&&dn("Flow expects single argument with generator function");var n=e,r=n.name||"<unnamed flow>",i=function(){var e,t=this,i=arguments,o=++Hi,s=Fi(r+" - runid: "+o+" - init",n).apply(t,i),a=void 0,c=new Promise((function(t,n){var i=0;function c(e){var t;a=void 0;try{t=Fi(r+" - runid: "+o+" - yield "+i++,s.next).call(s,e)}catch(e){return n(e)}l(t)}function u(e){var t;a=void 0;try{t=Fi(r+" - runid: "+o+" - yield "+i++,s.throw).call(s,e)}catch(e){return n(e)}l(t)}function l(e){if(!Dn(null==e?void 0:e.then))return e.done?t(e.value):(a=Promise.resolve(e.value)).then(c,u);e.then(l,n)}e=n,c(void 0)}));return c.cancel=Fi(r+" - runid: "+o+" - cancel",(function(){try{a&&Xi(a);var t=s.return(void 0),n=Promise.resolve(t.value);n.then(Tn,Tn),Xi(n),e(new Yi)}catch(t){e(t)}})),c};return i.isMobXFlow=!0,i}),$i);function Xi(e){Dn(e.cancel)&&e.cancel()}function Ji(e){return!0===(null==e?void 0:e.isMobXFlow)}function Qi(e,t){return!!e&&(void 0!==t?"production"!==process.env.NODE_ENV&&(Ro(e)||So(e))?dn("isObservable(object, propertyName) is not supported for arrays and maps. Use map.has or array.length instead."):!!Uo(e)&&e[Zn].values_.has(t):Uo(e)||!!e[Zn]||tr(e)||Ai(e)||Qr(e))}function Zi(e){return"production"!==process.env.NODE_ENV&&1!==arguments.length&&dn("isObservable expects only 1 argument. Use isObservableProp to inspect the observability of a property"),Qi(e)}function eo(e){switch(e.length){case 0:return hi.trackingDerivation;case 1:return Jo(e[0]);case 2:return Jo(e[0],e[1])}}function to(e,t){void 0===t&&(t=void 0),yi();try{return e.apply(t)}finally{bi()}}function no(e){return e[Zn]}var ro={has:function(e,t){return"production"!==process.env.NODE_ENV&&hi.trackingDerivation&&Sn("detect new properties using the 'in' operator. Use 'has' from 'mobx' instead."),no(e).has_(t)},get:function(e,t){return no(e).get_(t)},set:function(e,t,n){var r;return!!Cn(t)&&("production"===process.env.NODE_ENV||no(e).values_.has(t)||Sn("add a new observable property through direct assignment. Use 'set' from 'mobx' instead."),null==(r=no(e).set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return"production"!==process.env.NODE_ENV&&Sn("delete properties from an observable object. Use 'remove' from 'mobx' instead."),!!Cn(t)&&(null==(n=no(e).delete_(t,!0))||n)},defineProperty:function(e,t,n){var r;return"production"!==process.env.NODE_ENV&&Sn("define property on an observable object. Use 'defineProperty' from 'mobx' instead."),null==(r=no(e).defineProperty_(t,n))||r},ownKeys:function(e){return"production"!==process.env.NODE_ENV&&hi.trackingDerivation&&Sn("iterate keys to detect added / removed properties. Use `keys` from 'mobx' instead."),no(e).ownKeys_()},preventExtensions:function(e){dn(13)}};function io(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function oo(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),An((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function so(e,t){var n=si();try{for(var r=[].concat(e.interceptors_||[]),i=0,o=r.length;i<o&&((t=r[i](t))&&!t.type&&dn(14),t);i++);return t}finally{ai(n)}}function ao(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function co(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),An((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function uo(e,t){var n=si(),r=e.changeListeners_;if(r){for(var i=0,o=(r=r.slice()).length;i<o;i++)r[i](t);ai(n)}}function lo(e,t,n){if("production"!==process.env.NODE_ENV&&(jn(e)||jn(Object.getPrototypeOf(e))||dn("'makeAutoObservable' can only be used for classes that don't have a superclass"),Uo(e)&&dn("makeAutoObservable can only be used on objects not already made observable")),jn(e))return qi(e,e,t,n);var r=Io(e,n)[Zn];yi();try{if(e[ko])for(var i in e[ko])r.make_(i,e[ko][i]);else for(var o,s=((o={})[Zn]=1,o[ko]=1,o.constructor=1,o),a=function(e){s[e]||(s[e]=1,r.make_(e,!t||(!(e in t)||t[e])))},c=e;c&&c!==bn;)Fn(c).forEach(a),c=Object.getPrototypeOf(c)}finally{bi()}return e}var fo="update",ho={get:function(e,t){var n=e[Zn];return t===Zn?n:"length"===t?n.getArrayLength_():"string"!=typeof t||isNaN(t)?Mn(_o,t)?_o[t]:e[t]:n.get_(parseInt(t))},set:function(e,t,n){var r=e[Zn];return"length"===t&&r.setArrayLength_(n),"symbol"==typeof t||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions:function(){dn(15)}},po=function(){function e(e,t,n,r){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 er(e||"ObservableArray@"+Nn()),this.enhancer_=function(n,r){return t(n,r,e+"[..]")}}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 oo(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}),co(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!=typeof e||e<0)&&dn("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_&&dn(16),this.lastKnownLength_+=t,this.legacyMode_&&t>0&&zo(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;ni(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=mn),io(this)){var o=so(this,{object:this.proxy_,type:"splice",index:e,removedCount:t,added:n});if(!o)return mn;t=o.removedCount,n=o.added}if(n=0===n.length?n:n.map((function(e){return r.enhancer_(e,void 0)})),this.legacyMode_||"production"!==process.env.NODE_ENV){var s=n.length-t;this.updateArrayLength_(i,s)}var a=this.spliceItemsIntoValues_(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice_(e,n,a),this.dehanceValues_(a)},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=e+n.length-t;for(var s=0;s<n.length;s++)this.values_[e+s]=n[s];for(var a=0;a<o.length;a++)this.values_[e+n.length+a]=o[a];return i},t.notifyArrayChildUpdate_=function(e,t,n){var r=!this.owned_&&Ti(),i=ao(this),o=i||r?{observableKind:"array",object:this.proxy_,type:fo,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;"production"!==process.env.NODE_ENV&&r&&Ci(o),this.atom_.reportChanged(),i&&uo(this,o),"production"!==process.env.NODE_ENV&&r&&ji()},t.notifyArraySplice_=function(e,t,n){var r=!this.owned_&&Ti(),i=ao(this),o=i||r?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;"production"!==process.env.NODE_ENV&&r&&Ci(o),this.atom_.reportChanged(),i&&uo(this,o),"production"!==process.env.NODE_ENV&&r&&ji()},t.get_=function(e){if(e<this.values_.length)return this.atom_.reportObserved(),this.dehanceValue_(this.values_[e]);console.warn("production"!==process.env.NODE_ENV?"[mobx] Out of bounds read: "+e:"[mobx.array] Attempt to read an array index ("+e+") that is out of bounds ("+this.values_.length+"). Please check length first. Out of bound indices will not be tracked by MobX")},t.set_=function(e,t){var n=this.values_;if(e<n.length){ni(this.atom_);var r=n[e];if(io(this)){var i=so(this,{type:fo,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 e===n.length?this.spliceWithArray_(e,0,[t]):dn(17,e,n.length)},e}();function vo(e,t,n,r){void 0===n&&(n="ObservableArray@"+Nn()),void 0===r&&(r=!1),wn();var i=new po(n,t,r,!1);Ln(i.values_,Zn,i);var o=new Proxy(i.values_,ho);if(i.proxy_=o,e&&e.length){var s=Wr(!0);i.spliceWithArray_(0,0,e),Hr(s)}return o}var _o={clear:function(){return this.splice(0)},replace:function(e){var t=this[Zn];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[Zn];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[Zn].spliceWithArray_(e,t,n)},push:function(){for(var e=this[Zn],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[Zn].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[Zn],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 hi.trackingDerivation&&dn(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){hi.trackingDerivation&&dn(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[Zn],n=t.dehanceValues_(t.values_).indexOf(e);return n>-1&&(this.splice(n,1),!0)}};function yo(e,t){"function"==typeof Array.prototype[e]&&(_o[e]=t(e))}function bo(e){return function(){var t=this[Zn];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function mo(e){return function(t,n){var r=this,i=this[Zn];return i.atom_.reportObserved(),i.dehanceValues_(i.values_)[e]((function(e,i){return t.call(n,e,i,r)}))}}function go(e){return function(){var t=this,n=this[Zn];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)}}yo("concat",bo),yo("flat",bo),yo("includes",bo),yo("indexOf",bo),yo("join",bo),yo("lastIndexOf",bo),yo("slice",bo),yo("toString",bo),yo("toLocaleString",bo),yo("every",mo),yo("filter",mo),yo("find",mo),yo("findIndex",mo),yo("flatMap",mo),yo("forEach",mo),yo("map",mo),yo("some",mo),yo("reduce",go),yo("reduceRight",go);var Oo,Eo,wo=kn("ObservableArrayAdministration",po);function So(e){return Rn(e)&&wo(e[Zn])}var No={},Ao="add";Oo=Symbol.iterator,Eo=Symbol.toStringTag;var To,Do,Co=function(){function e(e,t,n){void 0===t&&(t=ir),void 0===n&&(n="ObservableMap@"+Nn()),this.enhancer_=void 0,this.name_=void 0,this[Zn]=No,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,Dn(Map)||dn(18),this.keysAtom_=nr(this.name_+".keys()"),this.data_=new Map,this.hasMap_=new Map,this.merge(e)}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!hi.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new $r(this.has_(e),or,this.name_+"."+Bn(e)+"?",!1);this.hasMap_.set(e,r),Gi(r,(function(){return t.hasMap_.delete(e)}))}return n.get()},t.set=function(e,t){var n=this.has_(e);if(io(this)){var r=so(this,{type:n?fo:Ao,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((ni(this.keysAtom_),io(this))&&!so(this,{type:"delete",object:this,name:e}))return!1;if(this.has_(e)){var n=Ti(),r=ao(this),i=r||n?{observableKind:"map",debugObjectName:this.name_,type:"delete",object:this,oldValue:this.data_.get(e).value_,name:e}:null;return"production"!==process.env.NODE_ENV&&n&&Ci(i),to((function(){t.keysAtom_.reportChanged(),t.updateHasMapEntry_(e,!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)})),r&&uo(this,i),"production"!==process.env.NODE_ENV&&n&&ji(),!0}return!1},t.updateHasMapEntry_=function(e,t){var n=this.hasMap_.get(e);n&&n.setNewValue_(t)},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==hi.UNCHANGED){var r=Ti(),i=ao(this),o=i||r?{observableKind:"map",debugObjectName:this.name_,type:fo,object:this,oldValue:n.value_,name:e,newValue:t}:null;"production"!==process.env.NODE_ENV&&r&&Ci(o),n.setNewValue_(t),i&&uo(this,o),"production"!==process.env.NODE_ENV&&r&&ji()}},t.addValue_=function(e,t){var n=this;ni(this.keysAtom_),to((function(){var r=new $r(t,n.enhancer_,n.name_+"."+Bn(e),!1);n.data_.set(e,r),t=r.value_,n.updateHasMapEntry_(e,!0),n.keysAtom_.reportChanged()}));var r=Ti(),i=ao(this),o=i||r?{observableKind:"map",debugObjectName:this.name_,type:Ao,object:this,name:e,newValue:t}:null;"production"!==process.env.NODE_ENV&&r&&Ci(o),i&&uo(this,o),"production"!==process.env.NODE_ENV&&r&&ji()},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 is({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 is({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:[i,e.get(i)]}}})},t[Oo]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=zn(this);!(n=r()).done;){var i=n.value,o=i[0],s=i[1];e.call(t,s,o,this)}},t.merge=function(e){var t=this;return Ro(e)&&(e=new Map(e)),to((function(){jn(e)?function(e){var t=Object.keys(e);if(!In)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter((function(t){return bn.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)})):Vn(e)?(e.constructor!==Map&&dn(19,e),e.forEach((function(e,n){return t.set(n,e)}))):null!=e&&dn(20,e)})),this},t.clear=function(){var e=this;to((function(){oi((function(){for(var t,n=zn(e.keys());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.replace=function(e){var t=this;return to((function(){for(var n,r=function(e){if(Vn(e)||Ro(e))return e;if(Array.isArray(e))return new Map(e);if(jn(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return dn(21,e)}(e),i=new Map,o=!1,s=zn(t.data_.keys());!(n=s()).done;){var a=n.value;if(!r.has(a))if(t.delete(a))o=!0;else{var c=t.data_.get(a);i.set(a,c)}}for(var u,l=zn(r.entries());!(u=l()).done;){var f=u.value,d=f[0],h=f[1],p=t.data_.has(d);if(t.set(d,h),t.data_.has(d)){var v=t.data_.get(d);i.set(d,v),p||(o=!0)}}if(!o)if(t.data_.size!==i.size)t.keysAtom_.reportChanged();else for(var _=t.data_.keys(),y=i.keys(),b=_.next(),m=y.next();!b.done;){if(b.value!==m.value){t.keysAtom_.reportChanged();break}b=_.next(),m=y.next()}t.data_=i})),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return"production"!==process.env.NODE_ENV&&!0===t&&dn("`observe` doesn't support fireImmediately=true in combination with maps."),co(this,e)},t.intercept_=function(e){return oo(this,e)},qn(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Eo,get:function(){return"Map"}}]),e}(),Ro=kn("ObservableMap",Co);var jo={};To=Symbol.iterator,Do=Symbol.toStringTag;var xo=function(){function e(e,t,n){void 0===t&&(t=ir),void 0===n&&(n="ObservableSet@"+Nn()),this.name_=void 0,this[Zn]=jo,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,Dn(Set)||dn(22),this.atom_=nr(this.name_),this.enhancer_=function(e,r){return t(e,r,n)},e&&this.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;to((function(){oi((function(){for(var t,n=zn(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.forEach=function(e,t){for(var n,r=zn(this);!(n=r()).done;){var i=n.value;e.call(t,i,i,this)}},t.add=function(e){var t=this;if((ni(this.atom_),io(this))&&!so(this,{type:Ao,object:this,newValue:e}))return this;if(!this.has(e)){to((function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()}));var n="production"!==process.env.NODE_ENV&&Ti(),r=ao(this),i=r||n?{observableKind:"set",debugObjectName:this.name_,type:Ao,object:this,newValue:e}:null;n&&"production"!==process.env.NODE_ENV&&Ci(i),r&&uo(this,i),n&&"production"!==process.env.NODE_ENV&&ji()}return this},t.delete=function(e){var t=this;if(io(this)&&!so(this,{type:"delete",object:this,oldValue:e}))return!1;if(this.has(e)){var n="production"!==process.env.NODE_ENV&&Ti(),r=ao(this),i=r||n?{observableKind:"set",debugObjectName:this.name_,type:"delete",object:this,oldValue:e}:null;return n&&"production"!==process.env.NODE_ENV&&Ci(i),to((function(){t.atom_.reportChanged(),t.data_.delete(e)})),r&&uo(this,i),n&&"production"!==process.env.NODE_ENV&&ji(),!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 is({next:function(){var r=e;return e+=1,r<n.length?{value:[t[r],n[r]],done:!1}:{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 is({next:function(){return t<n.length?{value:e.dehanceValue_(n[t++]),done:!1}:{done:!0}}})},t.replace=function(e){var t=this;return Lo(e)&&(e=new Set(e)),to((function(){Array.isArray(e)||Pn(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!=e&&dn("Cannot initialize set from "+e)})),this},t.observe_=function(e,t){return"production"!==process.env.NODE_ENV&&!0===t&&dn("`observe` doesn't support fireImmediately=true in combination with sets."),co(this,e)},t.intercept_=function(e){return oo(this,e)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[To]=function(){return this.values()},qn(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Do,get:function(){return"Set"}}]),e}(),Lo=kn("ObservableSet",xo),ko=Symbol("mobx-inferred-annotations"),Vo=Object.create(null),Po=function(){function e(e,t,n,r,i){void 0===t&&(t=new Map),void 0===r&&(r=kr),void 0===i&&(i=!1),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.autoBind_=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.autoBind_=i,this.keysAtom_=new er(n+".keys"),this.isPlainObject_=jn(this.target_),"production"===process.env.NODE_ENV||as(this.defaultAnnotation_)||dn("defaultAnnotation must be valid annotation"),"production"!==process.env.NODE_ENV&&"boolean"!=typeof this.autoBind_&&dn("autoBind must be boolean"),"production"!==process.env.NODE_ENV&&(this.appliedAnnotations_={})}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 Jr)return n.set(t),!0;if(io(this)){var r=so(this,{type:fo,object:this.proxy_||this.target_,name:e,newValue:t});if(!r)return null;t=r.newValue}if((t=n.prepareNewValue_(t))!==hi.UNCHANGED){var i=ao(this),o="production"!==process.env.NODE_ENV&&Ti(),s=i||o?{type:fo,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;"production"!==process.env.NODE_ENV&&o&&Ci(s),n.setNewValue_(t),i&&uo(this,s),"production"!==process.env.NODE_ENV&&o&&ji()}return!0},t.get_=function(e){return hi.trackingDerivation&&!Mn(this.target_,e)&&this.has_(e),this.target_[e]},t.set_=function(e,t,n){return void 0===n&&(n=!1),Mn(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(!hi.trackingDerivation)return e in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var t=this.pendingKeys_.get(e);return t||(t=new $r(e in this.target_,or,this.name_+"."+Bn(e)+"?",!1),this.pendingKeys_.set(e,t)),t.get()},t.make_=function(e,t){!0===t&&(t=this.inferAnnotation_(e)),!1!==t&&(Go(this,t,e),t.make_(this,e))},t.extend_=function(e,t,n,r){if(void 0===r&&(r=!1),!0===n&&(n=ss(t,this.defaultAnnotation_,this.autoBind_)),!1===n)return this.defineProperty_(e,t,r);Go(this,n,e);var i=n.extend_(this,e,t,r);return i&&Mo(this,n,e),i},t.inferAnnotation_=function(e){var t,n=null==(t=this.target_[ko])?void 0:t[e];if(n)return n;for(var r=this.target_;r&&r!==bn;){var i=_n(r,e);if(i){n=ss(i,this.defaultAnnotation_,this.autoBind_);break}r=Object.getPrototypeOf(r)}if(void 0===n&&dn(1,"true",e),!this.isPlainObject_){var o=Object.getPrototypeOf(this.target_);Mn(o,ko)||xn(o,ko,{}),o[ko][e]=n}return n},t.defineProperty_=function(e,t,n){void 0===n&&(n=!1);try{yi();var r=this.delete_(e);if(!r)return r;if(io(this)){var i=so(this,{object:this.proxy_||this.target_,name:e,type:Ao,newValue:t.value});if(!i)return null;var o=i.newValue;t.value!==o&&(t=Wn({},t,{value:o}))}if(n){if(!Reflect.defineProperty(this.target_,e,t))return!1}else yn(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{bi()}return!0},t.defineObservableProperty_=function(e,t,n,r){void 0===r&&(r=!1);try{yi();var i=this.delete_(e);if(!i)return i;if(io(this)){var o=so(this,{object:this.proxy_||this.target_,name:e,type:Ao,newValue:t});if(!o)return null;t=o.newValue}var s=Bo(e),a={configurable:!hi.safeDescriptors||this.isPlainObject_,enumerable:!0,get:s.get,set:s.set};if(r){if(!Reflect.defineProperty(this.target_,e,a))return!1}else yn(this.target_,e,a);var c=new $r(t,n,this.name_+"."+Bn(e),!1);this.values_.set(e,c),this.notifyPropertyAddition_(e,c.value_)}finally{bi()}return!0},t.defineComputedProperty_=function(e,t,n){void 0===n&&(n=!1);try{yi();var r=this.delete_(e);if(!r)return r;if(io(this))if(!so(this,{object:this.proxy_||this.target_,name:e,type:Ao,newValue:void 0}))return null;t.name||(t.name=this.name_+"."+Bn(e)),t.context=this.proxy_||this.target_;var i=Bo(e),o={configurable:!hi.safeDescriptors||this.isPlainObject_,enumerable:!1,get:i.get,set:i.set};if(n){if(!Reflect.defineProperty(this.target_,e,o))return!1}else yn(this.target_,e,o);this.values_.set(e,new Jr(t)),this.notifyPropertyAddition_(e,void 0)}finally{bi()}return!0},t.delete_=function(e,t){if(void 0===t&&(t=!1),!Mn(this.target_,e))return!0;if(io(this)&&!so(this,{object:this.proxy_||this.target_,name:e,type:"remove"}))return null;try{var n,r;yi();var i,o=ao(this),s="production"!==process.env.NODE_ENV&&Ti(),a=this.values_.get(e),c=void 0;if(!a&&(o||s))c=null==(i=_n(this.target_,e))?void 0:i.value;if(t){if(!Reflect.deleteProperty(this.target_,e))return!1}else delete this.target_[e];if("production"!==process.env.NODE_ENV&&delete this.appliedAnnotations_[e],a&&(this.values_.delete(e),a instanceof $r&&(c=a.value_),gi(a)),this.keysAtom_.reportChanged(),null==(n=this.pendingKeys_)||null==(r=n.get(e))||r.set(e in this.target_),o||s){var u={type:"remove",observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:c,name:e};"production"!==process.env.NODE_ENV&&s&&Ci(u),o&&uo(this,u),"production"!==process.env.NODE_ENV&&s&&ji()}}finally{bi()}return!0},t.observe_=function(e,t){return"production"!==process.env.NODE_ENV&&!0===t&&dn("`observe` doesn't support the fire immediately property for observable objects."),co(this,e)},t.intercept_=function(e){return oo(this,e)},t.notifyPropertyAddition_=function(e,t){var n,r,i=ao(this),o="production"!==process.env.NODE_ENV&&Ti();if(i||o){var s=i||o?{type:Ao,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;"production"!==process.env.NODE_ENV&&o&&Ci(s),i&&uo(this,s),"production"!==process.env.NODE_ENV&&o&&ji()}null==(n=this.pendingKeys_)||null==(r=n.get(e))||r.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),Fn(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function Io(e,t){var n;if("production"!==process.env.NODE_ENV&&t&&Uo(e)&&dn("Options can't be provided for already observable objects."),Mn(e,Zn))return e;"production"===process.env.NODE_ENV||Object.isExtensible(e)||dn("Cannot make the designated object observable; it is not extensible");var r=null!=(n=null==t?void 0:t.name)?n:(jn(e)?"ObservableObject":e.constructor.name)+"@"+Nn(),i=new Po(e,new Map,Bn(r),function(e){return e?!0===e.deep?Nr:!1===e.deep?Ar:e.defaultDecorator:void 0}(t),null==t?void 0:t.autoBind);return xn(e,Zn,i),e}var Fo=kn("ObservableObjectAdministration",Po);function Bo(e){return Vo[e]||(Vo[e]={get:function(){return this[Zn].getObservablePropValue_(e)},set:function(t){return this[Zn].setObservablePropValue_(e,t)}})}function Uo(e){return!!Rn(e)&&Fo(e[Zn])}function Mo(e,t,n){"production"!==process.env.NODE_ENV&&(e.appliedAnnotations_[n]=t),t.isDecorator_&&delete e.target_[Xn][n]}function Go(e,t,n){if("production"===process.env.NODE_ENV||as(t)||dn("Cannot annotate '"+e.name_+"."+n.toString()+"': Invalid annotation."),"production"!==process.env.NODE_ENV&&!sr(t)&&Mn(e.appliedAnnotations_,n)){var r=e.name_+"."+n.toString(),i=e.appliedAnnotations_[n].annotationType_;dn("Cannot apply '"+t.annotationType_+"' to '"+r+"':\nThe field is already annotated with '"+i+"'.\nRe-annotating fields is not allowed.\nUse 'override' annotation for methods overriden by subclass.")}}var Ko,qo,Wo=0,Ho=function(){};Ko=Ho,qo=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(Ko.prototype,qo):void 0!==Ko.prototype.__proto__?Ko.prototype.__proto__=qo:Ko.prototype=qo;var Yo=function(e){function t(t,n,r,i){var o;void 0===r&&(r="ObservableArray@"+Nn()),void 0===i&&(i=!1),o=e.call(this)||this;var s=new po(r,n,i,!0);if(s.proxy_=Yn(o),Ln(Yn(o),Zn,s),t&&t.length){var a=Wr(!0);o.spliceWithArray(0,0,t),Hr(a)}return o}Hn(t,e);var n=t.prototype;return n.concat=function(){this[Zn].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 So(e)?e.slice():e})))},n[Symbol.iterator]=function(){var e=this,t=0;return is({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})},qn(t,[{key:"length",get:function(){return this[Zn].getArrayLength_()},set:function(e){this[Zn].setArrayLength_(e)}},{key:Symbol.toStringTag,get:function(){return"Array"}}]),t}(Ho);function $o(e){yn(Yo.prototype,""+e,function(e){return{enumerable:!1,configurable:!0,get:function(){return this[Zn].get_(e)},set:function(t){this[Zn].set_(e,t)}}}(e))}function zo(e){if(e>Wo){for(var t=Wo;t<e+100;t++)$o(t);Wo=e}}function Xo(e,t,n){return new Yo(e,t,n)}function Jo(e,t){if("object"==typeof e&&null!==e){if(So(e))return void 0!==t&&dn(23),e[Zn].atom_;if(Lo(e))return e[Zn];if(Ro(e)){if(void 0===t)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||dn(25,t,Zo(e)),n}if(Uo(e)){if(!t)return dn(26);var r=e[Zn].values_.get(t);return r||dn(27,t,Zo(e)),r}if(tr(e)||Qr(e)||Ai(e))return e}else if(Dn(e)&&Ai(e[Zn]))return e[Zn];dn(28)}function Qo(e,t){return e||dn(29),void 0!==t?Qo(Jo(e,t)):tr(e)||Qr(e)||Ai(e)||Ro(e)||Lo(e)?e:e[Zn]?e[Zn]:void dn(24,e)}function Zo(e,t){return(void 0!==t?Jo(e,t):Uo(e)||Ro(e)||Lo(e)?Qo(e):Jo(e)).name_}Object.entries(_o).forEach((function(e){var t=e[0],n=e[1];"concat"!==t&&xn(Yo.prototype,t,n)})),zo(1e3);var es=bn.toString;function ts(e,t,n){return void 0===n&&(n=-1),ns(e,t,n)}function ns(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(!Dn(o)&&"object"!==o&&"object"!=typeof t)return!1;var s=es.call(e);if(s!==es.call(t))return!1;switch(s){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=rs(e),t=rs(t);var a="[object Array]"===s;if(!a){if("object"!=typeof e||"object"!=typeof t)return!1;var c=e.constructor,u=t.constructor;if(c!==u&&!(Dn(c)&&c instanceof c&&Dn(u)&&u instanceof u)&&"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),a){if((l=e.length)!==t.length)return!1;for(;l--;)if(!ns(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(!Mn(t,f=d[l])||!ns(e[f],t[f],n-1,r,i))return!1}return r.pop(),i.pop(),!0}function rs(e){return So(e)?e.slice():Vn(e)||Ro(e)||Pn(e)||Lo(e)?Array.from(e.entries()):e}function is(e){return e[Symbol.iterator]=os,e}function os(){return this}function ss(e,t,n){return e.get?Ir:!e.set&&(Dn(e.value)?(r=e.value,!(i=null==r?void 0:r.constructor)||"GeneratorFunction"!==i.name&&"GeneratorFunction"!==i.displayName?!Ui(e.value)&&(n?Bi.bound:Bi):!Ji(e.value)&&zi):t);var r,i}function as(e){return e instanceof Object&&"string"==typeof e.annotationType_&&Dn(e.make_)&&Dn(e.extend_)}["Symbol","Map","Set","Symbol"].forEach((function(e){void 0===pn()[e]&&dn("MobX requires global '"+e+"' to be available or polyfilled")})),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return"production"===process.env.NODE_ENV?(console.warn("[mobx.spy] Is a no-op in production builds"),function(){}):(hi.spyListeners.push(e),An((function(){hi.spyListeners=hi.spyListeners.filter((function(t){return t!==e}))})))},extras:{getDebugName:Zo},$mobx:Zn});var cs,us=function(e){this.id=e.id||"",this.componentId=e.componentId||"",this.propValues=e.propValues||{},lo(this)},ls=function(e){this.id=e.id||Date.now()+"",this.name=e.name||null,this.type=e.type||cs.INDEX,this.slug=e.slug||null,this.pageTitle=e.pageTitle||null,this.description=e.description||null,this.components=e.components?e.components.map((function(e){return new us(e)})):[],this.specifications=e.specifications?e.specifications.map((function(e){return new fs(e)})):null,lo(this)},fs=function(e){this.id=e.id||"",this.components=e.components?e.components.map((function(e){return new us(e)})):[],lo(this)};!function(e){e.INDEX="INDEX",e.CATEGORY="CATEGORY",e.BRAND="BRAND",e.PRODUCT="PRODUCT",e.CUSTOM="CUSTOM",e.ACCOUNT="ACCOUNT",e.ADDRESSES="ADDRESSES",e.ORDERS="ORDERS",e.ORDER_DETAIL="ORDER_DETAIL",e.LOGIN="LOGIN",e.REGISTER="REGISTER",e.FORGOT_PASSWORD="FORGOT_PASSWORD",e.RECOVER_PASSWORD="RECOVER_PASSWORD",e.CART="CART",e.FAVORITE_PRODUCTS="FAVORITE_PRODUCTS",e.SEARCH="SEARCH",e.NOT_FOUND="NOT_FOUND",e.BLOG="BLOG",e.BLOG_INDEX="BLOG_INDEX",e.BLOG_CATEGORY="BLOG_CATEGORY",e.CHECKOUT="CHECKOUT",e.RAFFLE="RAFFLE",e.RAFFLE_DETAIL="RAFFLE_DETAIL",e.RAFFLE_ACCOUNT="RAFFLE_ACCOUNT"}(cs||(cs={})),cs.PRODUCT,cs.CATEGORY,cs.BRAND,cs.ORDER_DETAIL,cs.ORDERS,cs.ADDRESSES,cs.FAVORITE_PRODUCTS,cs.FORGOT_PASSWORD,cs.ACCOUNT,cs.LOGIN,cs.RAFFLE_ACCOUNT,cs.RECOVER_PASSWORD,cs.REGISTER,cs.BLOG,cs.BLOG_CATEGORY,cs.BLOG_INDEX,cs.CUSTOM,cs.RAFFLE_DETAIL,cs.RAFFLE,cs.NOT_FOUND,cs.CART,cs.INDEX,cs.SEARCH;var ds,hs=function(e){this.id=e.id||Date.now()+"",this.name=e.name||"",this.displayName=e.displayName||"",this.type=e.type||ds.TEXT,this.isRequired=e.isRequired||!1,this.customDataId=e.customDataId||null,this.attributeTypes=e.attributeTypes||null,lo(this)};!function(e){e.TEXT="TEXT",e.RICH_TEXT="RICH_TEXT",e.BOOLEAN="BOOLEAN",e.IMAGE="IMAGE",e.IMAGE_LIST="IMAGE_LIST",e.LINK="LINK",e.LIST_OF_LINK="LIST_OF_LINK",e.PRODUCT_DETAIL="PRODUCT_DETAIL",e.PRODUCT_LIST="PRODUCT_LIST",e.PRODUCT_ATTRIBUTE="PRODUCT_ATTRIBUTE",e.PRODUCT_ATTRIBUTE_LIST="PRODUCT_ATTRIBUTE_LIST",e.BRAND="BRAND",e.BRAND_LIST="BRAND_LIST",e.CATEGORY="CATEGORY",e.CATEGORY_LIST="CATEGORY_LIST",e.COLOR="COLOR",e.CUSTOM="CUSTOM",e.COMPONENT="COMPONENT",e.COMPONENT_LIST="COMPONENT_LIST",e.BLOG="BLOG",e.BLOG_LIST="BLOG_LIST",e.BLOG_CATEGORY="BLOG_CATEGORY",e.BLOG_CATEGORY_LIST="BLOG_CATEGORY_LIST",e.RAFFLE="RAFFLE",e.RAFFLE_LIST="RAFFLE_LIST",e.OBJECT="OBJECT",e.STATIC_LIST="STATIC_LIST",e.DYNAMIC_LIST="DYNAMIC_LIST",e.ENUM="ENUM"}(ds||(ds={}));var ps,vs=function(e){this.id=e.id||"",this.dir=e.dir||"",this.displayName=e.displayName||"",this.props=e.props?e.props.map((function(e){return new hs(e)})):[],this.isHeader=e.isHeader||!1,this.isFooter=e.isFooter||!1,lo(this)},_s=function(){function e(t){var n,r=this;void 0===t&&(t={}),this.customDataId=null,this.id=t.id||"",this.name=t.name||null,this.type=t.type||ds.TEXT,this.isRequired=void 0===t.isRequired||t.isRequired,this.key=t.key||null,this.parent=t.parent||null,this.itemCount=t.itemCount||null,this.attributeTypes=t.attributeTypes||null,this.enumOptions=(null===(n=t.enumOptions)||void 0===n?void 0:n.map((function(e){return new ys(e)})))||null,this.customDataId=t.customDataId||null,this.isRoot=t.isRoot||!1,this.nestedData=t.nestedData?t.nestedData.map((function(t){return new e(s(s({},t),{parent:r}))})):null,this.type!==ds.STATIC_LIST||this.itemCount||(this.itemCount=1),lo(this)}return e.prototype.toJSON=function(){var e=s({},this);return delete e.parent,e},e}(),ys=function(e){void 0===e&&(e={}),this.id=e.id||"",this.displayName=e.displayName||"",this.value=e.value||"",lo(this)},bs=new Uint8Array(16);function ms(){if(!ps&&!(ps="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ps(bs)}var gs=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Os(e){return"string"==typeof e&&gs.test(e)}for(var Es=[],ws=0;ws<256;++ws)Es.push((ws+256).toString(16).substr(1));function Ss(e,t,n){var r=(e=e||{}).random||(e.rng||ms)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Es[e[t+0]]+Es[e[t+1]]+Es[e[t+2]]+Es[e[t+3]]+"-"+Es[e[t+4]]+Es[e[t+5]]+"-"+Es[e[t+6]]+Es[e[t+7]]+"-"+Es[e[t+8]]+Es[e[t+9]]+"-"+Es[e[t+10]]+Es[e[t+11]]+Es[e[t+12]]+Es[e[t+13]]+Es[e[t+14]]+Es[e[t+15]]).toLowerCase();if(!Os(n))throw TypeError("Stringified UUID is invalid");return n}(r)}var Ns,As=function(e){this.id=e.id||Ss(),this.displayName=e.displayName||"",this.key=e.key||"",this.color=e.color||"",lo(this)},Ts=function(e){this.id=(null==e?void 0:e.id)||null,lo(this)},Ds=function(e){var t;void 0===e&&(e={}),this.colors=e.colors?e.colors.map((function(e){return new As(e)})):[],this.favicon=(null===(t=e.favicon)||void 0===t?void 0:t.id)?e.favicon:new Ts,this.stockPreference=e.stockPreference||Ns.SHOW_ALL,lo(this)};!function(e){e.HIDE_OUT_OF_STOCK="HIDE_OUT_OF_STOCK",e.SHOW_ALL="SHOW_ALL",e.SHOW_OUT_OF_STOCK_AT_END="SHOW_OUT_OF_STOCK_AT_END"}(Ns||(Ns={}));!function(){function e(e){var t;void 0===e&&(e={}),this.name=e.name||"",this.components=e.components?e.components.map((function(e){return new vs(e)})):[],this.pages=e.pages?e.pages.map((function(e){return new ls(e)})):[],this.settings=e.settings?new Ds(e.settings):new Ds,this.customData=e.customData?null===(t=e.customData)||void 0===t?void 0:t.map((function(e){return new _s(e)})):[],this.createCheckoutData(),lo(this)}Object.defineProperty(e.prototype,"headerComponent",{get:function(){return this.components.find((function(e){return e.isHeader}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"footerComponent",{get:function(){return this.components.find((function(e){return e.isFooter}))},enumerable:!1,configurable:!0}),e.prototype.createCheckoutData=function(){var e=this.components.find((function(e){return"checkout"===e.id})),t=this.pages.find((function(e){return"checkout"===e.id}));e||(e=new vs({id:"checkout",dir:"",displayName:"",props:[new hs({name:"buttonBgColor",isRequired:!1,type:ds.COLOR}),new hs({name:"buttonTextColor",isRequired:!1,type:ds.COLOR}),new hs({name:"buttonDisabledBgColor",isRequired:!1,type:ds.COLOR}),new hs({name:"buttonDisabledTextColor",isRequired:!1,type:ds.COLOR}),new hs({name:"primaryTextColor",isRequired:!1,type:ds.COLOR}),new hs({name:"secondaryTextColor",isRequired:!1,type:ds.COLOR}),new hs({name:"primaryBgColor",isRequired:!1,type:ds.COLOR}),new hs({name:"secondaryBgColor",isRequired:!1,type:ds.COLOR}),new hs({name:"borderColor",isRequired:!1,type:ds.COLOR}),new hs({name:"cardBgColor",isRequired:!1,type:ds.COLOR}),new hs({name:"errorColor",isRequired:!1,type:ds.COLOR}),new hs({name:"errorLightColor",isRequired:!1,type:ds.COLOR}),new hs({name:"warningColor",isRequired:!1,type:ds.COLOR}),new hs({name:"warningLightColor",isRequired:!1,type:ds.COLOR}),new hs({name:"successColor",isRequired:!1,type:ds.COLOR}),new hs({name:"successLightColor",isRequired:!1,type:ds.COLOR})]}),this.components.push(e)),t||this.pages.push(new ls({id:"checkout",type:cs.CHECKOUT,components:[new us({componentId:e.id,propValues:{buttonBgColor:Cs,buttonTextColor:Rs,buttonDisabledBgColor:js,buttonDisabledTextColor:xs,primaryTextColor:Ls,secondaryTextColor:ks,primaryBgColor:Vs,secondaryBgColor:Ps,borderColor:Is,cardBgColor:Fs,errorColor:Bs,errorLightColor:Us,warningColor:Ms,warningLightColor:Gs,successColor:Ks,successLightColor:qs}})]}))}}();var Cs="#272727",Rs="#FFFFFF",js="#F7F7F9",xs="#8A8B94",Ls="#272727",ks="#8A8B94",Vs="#FFFFFF",Ps="#F7F7F9",Is="#E5E4E9",Fs="#F7F7F9",Bs="#FB4E4E",Us="#FCF3F4",Ms="#FFBC1F",Gs="#FFFAEE",Ks="#2DCA73",qs="#F6FFED";
|
|
15
|
+
***************************************************************************** */var s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)};var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function c(e){var t={exports:{}};return e(t,t.exports),t.exports}var u=function(e){return Object.defineProperty((function(...t){if("function"!=typeof t[t.length-1])return new Promise(((n,r)=>{e.call(this,...t,((e,t)=>null!=e?r(e):n(t)))}));e.apply(this,t)}),"name",{value:e.name})},l=function(e){return Object.defineProperty((function(...t){const n=t[t.length-1];if("function"!=typeof n)return e.apply(this,t);e.apply(this,t.slice(0,-1)).then((e=>n(null,e)),n)}),"name",{value:e.name})},f=process.cwd,p=null,d=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return p||(p=f.call(process)),p};try{process.cwd()}catch(e){}var h=process.chdir;process.chdir=function(e){p=null,h.call(process,e)};var v=function(e){n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,r,o){e.open(t,n.O_WRONLY|n.O_SYMLINK,r,(function(t,n){t?o&&o(t):e.fchmod(n,r,(function(t){e.close(n,(function(e){o&&o(t||e)}))}))}))},e.lchmodSync=function(t,r){var o,i=e.openSync(t,n.O_WRONLY|n.O_SYMLINK,r),s=!0;try{o=e.fchmodSync(i,r),s=!1}finally{if(s)try{e.closeSync(i)}catch(e){}else e.closeSync(i)}return o}}(e);e.lutimes||function(e){n.hasOwnProperty("O_SYMLINK")?(e.lutimes=function(t,r,o,i){e.open(t,n.O_SYMLINK,(function(t,n){t?i&&i(t):e.futimes(n,r,o,(function(t){e.close(n,(function(e){i&&i(t||e)}))}))}))},e.lutimesSync=function(t,r,o){var i,s=e.openSync(t,n.O_SYMLINK),a=!0;try{i=e.futimesSync(s,r,o),a=!1}finally{if(a)try{e.closeSync(s)}catch(e){}else e.closeSync(s)}return i}):(e.lutimes=function(e,t,n,r){r&&process.nextTick(r)},e.lutimesSync=function(){})}(e);e.chown=i(e.chown),e.fchown=i(e.fchown),e.lchown=i(e.lchown),e.chmod=r(e.chmod),e.fchmod=r(e.fchmod),e.lchmod=r(e.lchmod),e.chownSync=s(e.chownSync),e.fchownSync=s(e.fchownSync),e.lchownSync=s(e.lchownSync),e.chmodSync=o(e.chmodSync),e.fchmodSync=o(e.fchmodSync),e.lchmodSync=o(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=c(e.statSync),e.fstatSync=c(e.fstatSync),e.lstatSync=c(e.lstatSync),e.lchmod||(e.lchmod=function(e,t,n){n&&process.nextTick(n)},e.lchmodSync=function(){});e.lchown||(e.lchown=function(e,t,n,r){r&&process.nextTick(r)},e.lchownSync=function(){});"win32"===d&&(e.rename=(t=e.rename,function(n,r,o){var i=Date.now(),s=0;t(n,r,(function a(c){if(c&&("EACCES"===c.code||"EPERM"===c.code)&&Date.now()-i<6e4)return setTimeout((function(){e.stat(r,(function(e,i){e&&"ENOENT"===e.code?t(n,r,a):o(c)}))}),s),void(s<100&&(s+=10));o&&o(c)}))}));var t;function r(t){return t?function(n,r,o){return t.call(e,n,r,(function(e){u(e)&&(e=null),o&&o.apply(this,arguments)}))}:t}function o(t){return t?function(n,r){try{return t.call(e,n,r)}catch(e){if(!u(e))throw e}}:t}function i(t){return t?function(n,r,o,i){return t.call(e,n,r,o,(function(e){u(e)&&(e=null),i&&i.apply(this,arguments)}))}:t}function s(t){return t?function(n,r,o){try{return t.call(e,n,r,o)}catch(e){if(!u(e))throw e}}:t}function a(t){return t?function(n,r,o){function i(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),o&&o.apply(this,arguments)}return"function"==typeof r&&(o=r,r=null),r?t.call(e,n,r,i):t.call(e,n,i)}:t}function c(t){return t?function(n,r){var o=r?t.call(e,n,r):t.call(e,n);return o.uid<0&&(o.uid+=4294967296),o.gid<0&&(o.gid+=4294967296),o}:t}function u(e){return!e||("ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code))}e.read=function(t){function n(n,r,o,i,s,a){var c;if(a&&"function"==typeof a){var u=0;c=function(l,f,p){if(l&&"EAGAIN"===l.code&&u<10)return u++,t.call(e,n,r,o,i,s,c);a.apply(this,arguments)}}return t.call(e,n,r,o,i,s,c)}return n.__proto__=t,n}(e.read),e.readSync=(l=e.readSync,function(t,n,r,o,i){for(var s=0;;)try{return l.call(e,t,n,r,o,i)}catch(e){if("EAGAIN"===e.code&&s<10){s++;continue}throw e}});var l};var _=r.Stream,y=function(e){return{ReadStream:function t(n,r){if(!(this instanceof t))return new t(n,r);_.call(this);var o=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,r=r||{};for(var i=Object.keys(r),s=0,a=i.length;s<a;s++){var c=i[s];this[c]=r[c]}this.encoding&&this.setEncoding(this.encoding);if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(null!==this.fd)return void process.nextTick((function(){o._read()}));e.open(this.path,this.flags,this.mode,(function(e,t){if(e)return o.emit("error",e),void(o.readable=!1);o.fd=t,o.emit("open",t),o._read()}))},WriteStream:function t(n,r){if(!(this instanceof t))return new t(n,r);_.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,r=r||{};for(var o=Object.keys(r),i=0,s=o.length;i<s;i++){var a=o[i];this[a]=r[a]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}};var m=function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var t={__proto__:e.__proto__};else t=Object.create(null);return Object.getOwnPropertyNames(e).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t};var g=c((function(e){var n,r;function s(e,t){Object.defineProperty(e,n,{get:function(){return t}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(n=Symbol.for("graceful-fs.queue"),r=Symbol.for("graceful-fs.previous")):(n="___graceful-fs.queue",r="___graceful-fs.previous");var c=function(){};if(o.debuglog?c=o.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(c=function(){var e=o.format.apply(o,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!t[n]){var u=a[n]||[];s(t,u),t.close=function(e){function n(n,r){return e.call(t,n,(function(e){e||p(),"function"==typeof r&&r.apply(this,arguments)}))}return Object.defineProperty(n,r,{value:e}),n}(t.close),t.closeSync=function(e){function n(n){e.apply(t,arguments),p()}return Object.defineProperty(n,r,{value:e}),n}(t.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){c(t[n]),i.equal(t[n].length,0)}))}function l(e){v(e),e.gracefulify=l,e.createReadStream=function(t,n){return new e.ReadStream(t,n)},e.createWriteStream=function(t,n){return new e.WriteStream(t,n)};var t=e.readFile;e.readFile=function(e,n,r){"function"==typeof n&&(r=n,n=null);return function e(n,r,o){return t(n,r,(function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?("function"==typeof o&&o.apply(this,arguments),p()):f([e,[n,r,o]])}))}(e,n,r)};var n=e.writeFile;e.writeFile=function(e,t,r,o){"function"==typeof r&&(o=r,r=null);return function e(t,r,o,i){return n(t,r,o,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?("function"==typeof i&&i.apply(this,arguments),p()):f([e,[t,r,o,i]])}))}(e,t,r,o)};var r=e.appendFile;r&&(e.appendFile=function(e,t,n,o){"function"==typeof n&&(o=n,n=null);return function e(t,n,o,i){return r(t,n,o,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?("function"==typeof i&&i.apply(this,arguments),p()):f([e,[t,n,o,i]])}))}(e,t,n,o)});var o=e.readdir;function i(t){return o.apply(e,t)}if(e.readdir=function(e,t,n){var r=[e];"function"!=typeof t?r.push(t):n=t;return r.push((function(e,t){t&&t.sort&&t.sort();!e||"EMFILE"!==e.code&&"ENFILE"!==e.code?("function"==typeof n&&n.apply(this,arguments),p()):f([i,[r]])})),i(r)},"v0.8"===process.version.substr(0,4)){var s=y(e);h=s.ReadStream,_=s.WriteStream}var a=e.ReadStream;a&&(h.prototype=Object.create(a.prototype),h.prototype.open=function(){var e=this;g(e.path,e.flags,e.mode,(function(t,n){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n),e.read())}))});var c=e.WriteStream;c&&(_.prototype=Object.create(c.prototype),_.prototype.open=function(){var e=this;g(e.path,e.flags,e.mode,(function(t,n){t?(e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n))}))}),Object.defineProperty(e,"ReadStream",{get:function(){return h},set:function(e){h=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return _},set:function(e){_=e},enumerable:!0,configurable:!0});var u=h;Object.defineProperty(e,"FileReadStream",{get:function(){return u},set:function(e){u=e},enumerable:!0,configurable:!0});var d=_;function h(e,t){return this instanceof h?(a.apply(this,arguments),this):h.apply(Object.create(h.prototype),arguments)}function _(e,t){return this instanceof _?(c.apply(this,arguments),this):_.apply(Object.create(_.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return d},set:function(e){d=e},enumerable:!0,configurable:!0});var m=e.open;function g(e,t,n,r){return"function"==typeof n&&(r=n,n=null),function e(t,n,r,o){return m(t,n,r,(function(i,s){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?("function"==typeof o&&o.apply(this,arguments),p()):f([e,[t,n,r,o]])}))}(e,t,n,r)}return e.open=g,e}function f(e){c("ENQUEUE",e[0].name,e[1]),t[n].push(e)}function p(){var e=t[n].shift();e&&(c("RETRY",e[0].name,e[1]),e[0].apply(null,e[1]))}a[n]||s(a,t[n]),e.exports=l(m(t)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!t.__patched&&(e.exports=l(t),t.__patched=!0)})),b=c((function(e,t){const n=u,r=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter((e=>"function"==typeof g[e]));Object.assign(t,g),r.forEach((e=>{t[e]=n(g[e])})),t.realpath.native=n(g.realpath.native),t.exists=function(e,t){return"function"==typeof t?g.exists(e,t):new Promise((t=>g.exists(e,t)))},t.read=function(e,t,n,r,o,i){return"function"==typeof i?g.read(e,t,n,r,o,i):new Promise(((i,s)=>{g.read(e,t,n,r,o,((e,t,n)=>{if(e)return s(e);i({bytesRead:t,buffer:n})}))}))},t.write=function(e,t,...n){return"function"==typeof n[n.length-1]?g.write(e,t,...n):new Promise(((r,o)=>{g.write(e,t,...n,((e,t,n)=>{if(e)return o(e);r({bytesWritten:t,buffer:n})}))}))},"function"==typeof g.writev&&(t.writev=function(e,t,...n){return"function"==typeof n[n.length-1]?g.writev(e,t,...n):new Promise(((r,o)=>{g.writev(e,t,...n,((e,t,n)=>{if(e)return o(e);r({bytesWritten:t,buffers:n})}))}))})})),O={checkPath:function(t){if("win32"===process.platform){if(/[<>:"|?*]/.test(t.replace(e.parse(t).root,""))){const e=new Error(`Path contains invalid characters: ${t}`);throw e.code="EINVAL",e}}}};const{checkPath:E}=O,S=e=>"number"==typeof e?e:{mode:511,...e}.mode;var w={makeDir:async(e,t)=>(E(e),b.mkdir(e,{mode:S(t),recursive:!0})),makeDirSync:(e,t)=>(E(e),b.mkdirSync(e,{mode:S(t),recursive:!0}))};const N=l,{makeDir:T,makeDirSync:C}=w,A=N(T);var D={mkdirs:A,mkdirsSync:C,mkdirp:A,mkdirpSync:C,ensureDir:A,ensureDirSync:C};var k=function(e,t,n,r){g.open(e,"r+",((e,o)=>{if(e)return r(e);g.futimes(o,t,n,(e=>{g.close(o,(t=>{r&&r(e||t)}))}))}))},x=function(e,t,n){const r=g.openSync(e,"r+");return g.futimesSync(r,t,n),g.closeSync(r)};function P(e,t,n){const r=n.dereference?e=>b.stat(e,{bigint:!0}):e=>b.lstat(e,{bigint:!0});return Promise.all([r(e),r(t).catch((e=>{if("ENOENT"===e.code)return null;throw e}))]).then((([e,t])=>({srcStat:e,destStat:t})))}function R(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function L(t,n){const r=e.resolve(t).split(e.sep).filter((e=>e)),o=e.resolve(n).split(e.sep).filter((e=>e));return r.reduce(((e,t,n)=>e&&o[n]===t),!0)}function j(e,t,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${t}'.`}var I={checkPaths:function(t,n,r,i,s){o.callbackify(P)(t,n,i,((o,i)=>{if(o)return s(o);const{srcStat:a,destStat:c}=i;if(c){if(R(a,c)){const o=e.basename(t),i=e.basename(n);return"move"===r&&o!==i&&o.toLowerCase()===i.toLowerCase()?s(null,{srcStat:a,destStat:c,isChangingCase:!0}):s(new Error("Source and destination must not be the same."))}if(a.isDirectory()&&!c.isDirectory())return s(new Error(`Cannot overwrite non-directory '${n}' with directory '${t}'.`));if(!a.isDirectory()&&c.isDirectory())return s(new Error(`Cannot overwrite directory '${n}' with non-directory '${t}'.`))}return a.isDirectory()&&L(t,n)?s(new Error(j(t,n,r))):s(null,{srcStat:a,destStat:c})}))},checkPathsSync:function(t,n,r,o){const{srcStat:i,destStat:s}=function(e,t,n){let r;const o=n.dereference?e=>b.statSync(e,{bigint:!0}):e=>b.lstatSync(e,{bigint:!0}),i=o(e);try{r=o(t)}catch(e){if("ENOENT"===e.code)return{srcStat:i,destStat:null};throw e}return{srcStat:i,destStat:r}}(t,n,o);if(s){if(R(i,s)){const o=e.basename(t),a=e.basename(n);if("move"===r&&o!==a&&o.toLowerCase()===a.toLowerCase())return{srcStat:i,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(i.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${t}'.`);if(!i.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${n}' with non-directory '${t}'.`)}if(i.isDirectory()&&L(t,n))throw new Error(j(t,n,r));return{srcStat:i,destStat:s}},checkParentPaths:function t(n,r,o,i,s){const a=e.resolve(e.dirname(n)),c=e.resolve(e.dirname(o));if(c===a||c===e.parse(c).root)return s();b.stat(c,{bigint:!0},((e,a)=>e?"ENOENT"===e.code?s():s(e):R(r,a)?s(new Error(j(n,o,i))):t(n,r,c,i,s)))},checkParentPathsSync:function t(n,r,o,i){const s=e.resolve(e.dirname(n)),a=e.resolve(e.dirname(o));if(a===s||a===e.parse(a).root)return;let c;try{c=b.statSync(a,{bigint:!0})}catch(e){if("ENOENT"===e.code)return;throw e}if(R(r,c))throw new Error(j(n,o,i));return t(n,r,a,i)},isSrcSubdir:L,areIdentical:R};const V=D.mkdirsSync,F=x;function B(t,n,r,o){const i=(o.dereference?g.statSync:g.lstatSync)(n);if(i.isDirectory())return function(e,t,n,r,o){return t?G(n,r,o):function(e,t,n,r){return g.mkdirSync(n),G(t,n,r),M(n,e)}(e.mode,n,r,o)}(i,t,n,r,o);if(i.isFile()||i.isCharacterDevice()||i.isBlockDevice())return function(e,t,n,r,o){return t?function(e,t,n,r){if(r.overwrite)return g.unlinkSync(n),U(e,t,n,r);if(r.errorOnExist)throw new Error(`'${n}' already exists`)}(e,n,r,o):U(e,n,r,o)}(i,t,n,r,o);if(i.isSymbolicLink())return function(t,n,r,o){let i=g.readlinkSync(n);o.dereference&&(i=e.resolve(process.cwd(),i));if(t){let t;try{t=g.readlinkSync(r)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)return g.symlinkSync(i,r);throw e}if(o.dereference&&(t=e.resolve(process.cwd(),t)),I.isSrcSubdir(i,t))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${t}'.`);if(g.statSync(r).isDirectory()&&I.isSrcSubdir(t,i))throw new Error(`Cannot overwrite '${t}' with '${i}'.`);return function(e,t){return g.unlinkSync(t),g.symlinkSync(e,t)}(i,r)}return g.symlinkSync(i,r)}(t,n,r,o);if(i.isSocket())throw new Error(`Cannot copy a socket file: ${n}`);if(i.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${n}`);throw new Error(`Unknown file: ${n}`)}function U(e,t,n,r){return g.copyFileSync(t,n),r.preserveTimestamps&&function(e,t,n){(function(e){return 0==(128&e)})(e)&&function(e,t){M(e,128|t)}(n,e);(function(e,t){const n=g.statSync(e);F(t,n.atime,n.mtime)})(t,n)}(e.mode,t,n),M(n,e.mode)}function M(e,t){return g.chmodSync(e,t)}function G(t,n,r){g.readdirSync(t).forEach((o=>function(t,n,r,o){const i=e.join(n,t),s=e.join(r,t),{destStat:a}=I.checkPathsSync(i,s,"copy",o);return function(e,t,n,r){if(!r.filter||r.filter(t,n))return B(e,t,n,r)}(a,i,s,o)}(o,t,n,r)))}var q={copySync:function(t,n,r){"function"==typeof r&&(r={filter:r}),(r=r||{}).clobber=!("clobber"in r)||!!r.clobber,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269");const{srcStat:o,destStat:i}=I.checkPathsSync(t,n,"copy",r);return I.checkParentPathsSync(t,o,n,"copy"),function(t,n,r,o){if(o.filter&&!o.filter(n,r))return;const i=e.dirname(r);g.existsSync(i)||V(i);return B(t,n,r,o)}(i,t,n,r)}};var K={pathExists:l((function(e){return b.access(e).then((()=>!0)).catch((()=>!1))})),pathExistsSync:b.existsSync};const X=D.mkdirs,W=K.pathExists,$=k;function H(t,n,r,o,i){const s=e.dirname(r);W(s,((e,a)=>e?i(e):a?J(t,n,r,o,i):void X(s,(e=>e?i(e):J(t,n,r,o,i)))))}function Y(e,t,n,r,o,i){Promise.resolve(o.filter(n,r)).then((s=>s?e(t,n,r,o,i):i()),(e=>i(e)))}function J(e,t,n,r,o){(r.dereference?g.stat:g.lstat)(t,((i,s)=>i?o(i):s.isDirectory()?function(e,t,n,r,o,i){return t?ee(n,r,o,i):function(e,t,n,r,o){g.mkdir(n,(i=>{if(i)return o(i);ee(t,n,r,(t=>t?o(t):Z(n,e,o)))}))}(e.mode,n,r,o,i)}(s,e,t,n,r,o):s.isFile()||s.isCharacterDevice()||s.isBlockDevice()?function(e,t,n,r,o,i){return t?function(e,t,n,r,o){if(!r.overwrite)return r.errorOnExist?o(new Error(`'${n}' already exists`)):o();g.unlink(n,(i=>i?o(i):z(e,t,n,r,o)))}(e,n,r,o,i):z(e,n,r,o,i)}(s,e,t,n,r,o):s.isSymbolicLink()?ne(e,t,n,r,o):s.isSocket()?o(new Error(`Cannot copy a socket file: ${t}`)):s.isFIFO()?o(new Error(`Cannot copy a FIFO pipe: ${t}`)):o(new Error(`Unknown file: ${t}`))))}function z(e,t,n,r,o){g.copyFile(t,n,(i=>i?o(i):r.preserveTimestamps?function(e,t,n,r){if(function(e){return 0==(128&e)}(e))return function(e,t,n){return Z(e,128|t,n)}(n,e,(o=>o?r(o):Q(e,t,n,r)));return Q(e,t,n,r)}(e.mode,t,n,o):Z(n,e.mode,o)))}function Q(e,t,n,r){!function(e,t,n){g.stat(e,((e,r)=>e?n(e):$(t,r.atime,r.mtime,n)))}(t,n,(t=>t?r(t):Z(n,e,r)))}function Z(e,t,n){return g.chmod(e,t,n)}function ee(e,t,n,r){g.readdir(e,((o,i)=>o?r(o):te(i,e,t,n,r)))}function te(t,n,r,o,i){const s=t.pop();return s?function(t,n,r,o,i,s){const a=e.join(r,n),c=e.join(o,n);I.checkPaths(a,c,"copy",i,((e,n)=>{if(e)return s(e);const{destStat:u}=n;!function(e,t,n,r,o){r.filter?Y(J,e,t,n,r,o):J(e,t,n,r,o)}(u,a,c,i,(e=>e?s(e):te(t,r,o,i,s)))}))}(t,s,n,r,o,i):i()}function ne(t,n,r,o,i){g.readlink(n,((n,s)=>n?i(n):(o.dereference&&(s=e.resolve(process.cwd(),s)),t?void g.readlink(r,((n,a)=>n?"EINVAL"===n.code||"UNKNOWN"===n.code?g.symlink(s,r,i):i(n):(o.dereference&&(a=e.resolve(process.cwd(),a)),I.isSrcSubdir(s,a)?i(new Error(`Cannot copy '${s}' to a subdirectory of itself, '${a}'.`)):t.isDirectory()&&I.isSrcSubdir(a,s)?i(new Error(`Cannot overwrite '${a}' with '${s}'.`)):function(e,t,n){g.unlink(t,(r=>r?n(r):g.symlink(e,t,n)))}(s,r,i)))):g.symlink(s,r,i))))}var re={copy:u((function(e,t,n,r){"function"!=typeof n||r?"function"==typeof n&&(n={filter:n}):(r=n,n={}),r=r||function(){},(n=n||{}).clobber=!("clobber"in n)||!!n.clobber,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269"),I.checkPaths(e,t,"copy",n,((o,i)=>{if(o)return r(o);const{srcStat:s,destStat:a}=i;I.checkParentPaths(e,s,t,"copy",(o=>o?r(o):n.filter?Y(H,a,e,t,n,r):H(a,e,t,n,r)))}))}))};const oe="win32"===process.platform;function ie(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach((t=>{e[t]=e[t]||g[t],e[t+="Sync"]=e[t]||g[t]})),e.maxBusyTries=e.maxBusyTries||3}function se(e,t,n){let r=0;"function"==typeof t&&(n=t,t={}),i(e,"rimraf: missing path"),i.strictEqual(typeof e,"string","rimraf: path should be a string"),i.strictEqual(typeof n,"function","rimraf: callback function required"),i(t,"rimraf: invalid options argument provided"),i.strictEqual(typeof t,"object","rimraf: options should be object"),ie(t),ae(e,t,(function o(i){if(i){if(("EBUSY"===i.code||"ENOTEMPTY"===i.code||"EPERM"===i.code)&&r<t.maxBusyTries){r++;return setTimeout((()=>ae(e,t,o)),100*r)}"ENOENT"===i.code&&(i=null)}n(i)}))}function ae(e,t,n){i(e),i(t),i("function"==typeof n),t.lstat(e,((r,o)=>r&&"ENOENT"===r.code?n(null):r&&"EPERM"===r.code&&oe?ce(e,t,r,n):o&&o.isDirectory()?le(e,t,r,n):void t.unlink(e,(r=>{if(r){if("ENOENT"===r.code)return n(null);if("EPERM"===r.code)return oe?ce(e,t,r,n):le(e,t,r,n);if("EISDIR"===r.code)return le(e,t,r,n)}return n(r)}))))}function ce(e,t,n,r){i(e),i(t),i("function"==typeof r),t.chmod(e,438,(o=>{o?r("ENOENT"===o.code?null:n):t.stat(e,((o,i)=>{o?r("ENOENT"===o.code?null:n):i.isDirectory()?le(e,t,n,r):t.unlink(e,r)}))}))}function ue(e,t,n){let r;i(e),i(t);try{t.chmodSync(e,438)}catch(e){if("ENOENT"===e.code)return;throw n}try{r=t.statSync(e)}catch(e){if("ENOENT"===e.code)return;throw n}r.isDirectory()?pe(e,t,n):t.unlinkSync(e)}function le(t,n,r,o){i(t),i(n),i("function"==typeof o),n.rmdir(t,(s=>{!s||"ENOTEMPTY"!==s.code&&"EEXIST"!==s.code&&"EPERM"!==s.code?s&&"ENOTDIR"===s.code?o(r):o(s):function(t,n,r){i(t),i(n),i("function"==typeof r),n.readdir(t,((o,i)=>{if(o)return r(o);let s,a=i.length;if(0===a)return n.rmdir(t,r);i.forEach((o=>{se(e.join(t,o),n,(e=>{if(!s)return e?r(s=e):void(0==--a&&n.rmdir(t,r))}))}))}))}(t,n,o)}))}function fe(e,t){let n;ie(t=t||{}),i(e,"rimraf: missing path"),i.strictEqual(typeof e,"string","rimraf: path should be a string"),i(t,"rimraf: missing options"),i.strictEqual(typeof t,"object","rimraf: options should be object");try{n=t.lstatSync(e)}catch(n){if("ENOENT"===n.code)return;"EPERM"===n.code&&oe&&ue(e,t,n)}try{n&&n.isDirectory()?pe(e,t,null):t.unlinkSync(e)}catch(n){if("ENOENT"===n.code)return;if("EPERM"===n.code)return oe?ue(e,t,n):pe(e,t,n);if("EISDIR"!==n.code)throw n;pe(e,t,n)}}function pe(t,n,r){i(t),i(n);try{n.rmdirSync(t)}catch(o){if("ENOTDIR"===o.code)throw r;if("ENOTEMPTY"===o.code||"EEXIST"===o.code||"EPERM"===o.code)!function(t,n){if(i(t),i(n),n.readdirSync(t).forEach((r=>fe(e.join(t,r),n))),!oe){return n.rmdirSync(t,n)}{const e=Date.now();do{try{return n.rmdirSync(t,n)}catch{}}while(Date.now()-e<500)}}(t,n);else if("ENOENT"!==o.code)throw o}}var de=se;se.sync=fe;var he={remove:u((function(e,t){if(g.rm)return g.rm(e,{recursive:!0,force:!0},t);de(e,t)})),removeSync:function(e){if(g.rmSync)return g.rmSync(e,{recursive:!0,force:!0});de.sync(e)}};const ve=l((async function(t){let n;try{n=await b.readdir(t)}catch{return D.mkdirs(t)}return Promise.all(n.map((n=>he.remove(e.join(t,n)))))}));function _e(t){let n;try{n=b.readdirSync(t)}catch{return D.mkdirsSync(t)}n.forEach((n=>{n=e.join(t,n),he.removeSync(n)}))}var ye={emptyDirSync:_e,emptydirSync:_e,emptyDir:ve,emptydir:ve};var me={createFile:u((function(t,n){function r(){g.writeFile(t,"",(e=>{if(e)return n(e);n()}))}g.stat(t,((o,i)=>{if(!o&&i.isFile())return n();const s=e.dirname(t);g.stat(s,((e,t)=>{if(e)return"ENOENT"===e.code?D.mkdirs(s,(e=>{if(e)return n(e);r()})):n(e);t.isDirectory()?r():g.readdir(s,(e=>{if(e)return n(e)}))}))}))})),createFileSync:function(t){let n;try{n=g.statSync(t)}catch{}if(n&&n.isFile())return;const r=e.dirname(t);try{g.statSync(r).isDirectory()||g.readdirSync(r)}catch(e){if(!e||"ENOENT"!==e.code)throw e;D.mkdirsSync(r)}g.writeFileSync(t,"")}};const ge=u,be=K.pathExists,{areIdentical:Oe}=I;var Ee={createLink:ge((function(t,n,r){function o(e,t){g.link(e,t,(e=>{if(e)return r(e);r(null)}))}g.lstat(n,((i,s)=>{g.lstat(t,((i,a)=>{if(i)return i.message=i.message.replace("lstat","ensureLink"),r(i);if(s&&Oe(a,s))return r(null);const c=e.dirname(n);be(c,((e,i)=>e?r(e):i?o(t,n):void D.mkdirs(c,(e=>{if(e)return r(e);o(t,n)}))))}))}))})),createLinkSync:function(t,n){let r;try{r=g.lstatSync(n)}catch{}try{const e=g.lstatSync(t);if(r&&Oe(e,r))return}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}const o=e.dirname(n);return g.existsSync(o)||D.mkdirsSync(o),g.linkSync(t,n)}};const Se=K.pathExists;var we=function(t,n,r){if(e.isAbsolute(t))return g.lstat(t,(e=>e?(e.message=e.message.replace("lstat","ensureSymlink"),r(e)):r(null,{toCwd:t,toDst:t})));{const o=e.dirname(n),i=e.join(o,t);return Se(i,((n,s)=>n?r(n):s?r(null,{toCwd:i,toDst:t}):g.lstat(t,(n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:t,toDst:e.relative(o,t)})))))}},Ne=function(t,n){let r;if(e.isAbsolute(t)){if(r=g.existsSync(t),!r)throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}{const o=e.dirname(n),i=e.join(o,t);if(r=g.existsSync(i),r)return{toCwd:i,toDst:t};if(r=g.existsSync(t),!r)throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:e.relative(o,t)}}};var Te=function(e,t,n){if(n="function"==typeof t?t:n,t="function"!=typeof t&&t)return n(null,t);g.lstat(e,((e,r)=>{if(e)return n(null,"file");t=r&&r.isDirectory()?"dir":"file",n(null,t)}))},Ce=function(e,t){let n;if(t)return t;try{n=g.lstatSync(e)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"};const Ae=u,De=D.mkdirs,ke=D.mkdirsSync,xe=we,Pe=Ne,Re=Te,Le=Ce,je=K.pathExists,{areIdentical:Ie}=I;function Ve(t,n,r,o){xe(t,n,((i,s)=>{if(i)return o(i);t=s.toDst,Re(s.toCwd,r,((r,i)=>{if(r)return o(r);const s=e.dirname(n);je(s,((e,r)=>e?o(e):r?b.symlink(t,n,i,o):void De(s,(e=>{if(e)return o(e);b.symlink(t,n,i,o)}))))}))}))}var Fe={createSymlink:Ae((function(e,t,n,r){r="function"==typeof n?n:r,n="function"!=typeof n&&n,b.lstat(t,((o,i)=>{!o&&i.isSymbolicLink()?Promise.all([b.stat(e),b.stat(t)]).then((([o,i])=>{if(Ie(o,i))return r(null);Ve(e,t,n,r)})):Ve(e,t,n,r)}))})),createSymlinkSync:function(t,n,r){let o;try{o=b.lstatSync(n)}catch{}if(o&&o.isSymbolicLink()){const e=b.statSync(t),r=b.statSync(n);if(Ie(e,r))return}const i=Pe(t,n);t=i.toDst,r=Le(i.toCwd,r);const s=e.dirname(n);return b.existsSync(s)||ke(s),b.symlinkSync(t,n,r)}},Be={createFile:me.createFile,createFileSync:me.createFileSync,ensureFile:me.createFile,ensureFileSync:me.createFileSync,createLink:Ee.createLink,createLinkSync:Ee.createLinkSync,ensureLink:Ee.createLink,ensureLinkSync:Ee.createLinkSync,createSymlink:Fe.createSymlink,createSymlinkSync:Fe.createSymlinkSync,ensureSymlink:Fe.createSymlink,ensureSymlinkSync:Fe.createSymlinkSync};var Ue={stringify:function(e,{EOL:t="\n",finalEOL:n=!0,replacer:r=null,spaces:o}={}){const i=n?t:"";return JSON.stringify(e,r,o).replace(/\n/g,t)+i},stripBom:function(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}};let Me;try{Me=g}catch(e){Me=t}const{stringify:Ge,stripBom:qe}=Ue;const Ke=l((async function(e,t={}){"string"==typeof t&&(t={encoding:t});const n=t.fs||Me,r=!("throws"in t)||t.throws;let o,i=await u(n.readFile)(e,t);i=qe(i);try{o=JSON.parse(i,t?t.reviver:null)}catch(t){if(r)throw t.message=`${e}: ${t.message}`,t;return null}return o}));const Xe=l((async function(e,t,n={}){const r=n.fs||Me,o=Ge(t,n);await u(r.writeFile)(e,o,n)}));const We={readFile:Ke,readFileSync:function(e,t={}){"string"==typeof t&&(t={encoding:t});const n=t.fs||Me,r=!("throws"in t)||t.throws;try{let r=n.readFileSync(e,t);return r=qe(r),JSON.parse(r,t.reviver)}catch(t){if(r)throw t.message=`${e}: ${t.message}`,t;return null}},writeFile:Xe,writeFileSync:function(e,t,n={}){const r=n.fs||Me,o=Ge(t,n);return r.writeFileSync(e,o,n)}};var $e={readJson:We.readFile,readJsonSync:We.readFileSync,writeJson:We.writeFile,writeJsonSync:We.writeFileSync};const He=K.pathExists;var Ye={outputFile:u((function(t,n,r,o){"function"==typeof r&&(o=r,r="utf8");const i=e.dirname(t);He(i,((e,s)=>e?o(e):s?g.writeFile(t,n,r,o):void D.mkdirs(i,(e=>{if(e)return o(e);g.writeFile(t,n,r,o)}))))})),outputFileSync:function(t,...n){const r=e.dirname(t);if(g.existsSync(r))return g.writeFileSync(t,...n);D.mkdirsSync(r),g.writeFileSync(t,...n)}};const{stringify:Je}=Ue,{outputFile:ze}=Ye;var Qe=async function(e,t,n={}){const r=Je(t,n);await ze(e,r,n)};const{stringify:Ze}=Ue,{outputFileSync:et}=Ye;var tt=function(e,t,n){const r=Ze(t,n);et(e,r,n)};const nt=l;$e.outputJson=nt(Qe),$e.outputJsonSync=tt,$e.outputJSON=$e.outputJson,$e.outputJSONSync=$e.outputJsonSync,$e.writeJSON=$e.writeJson,$e.writeJSONSync=$e.writeJsonSync,$e.readJSON=$e.readJson,$e.readJSONSync=$e.readJsonSync;var rt=$e;const ot=q.copySync,it=he.removeSync,st=D.mkdirpSync;function at(e,t,n){try{g.renameSync(e,t)}catch(r){if("EXDEV"!==r.code)throw r;return function(e,t,n){return ot(e,t,{overwrite:n,errorOnExist:true}),it(e)}(e,t,n)}}var ct={moveSync:function(t,n,r){const o=(r=r||{}).overwrite||r.clobber||!1,{srcStat:i,isChangingCase:s=!1}=I.checkPathsSync(t,n,"move",r);return I.checkParentPathsSync(t,i,n,"move"),function(t){const n=e.dirname(t);return e.parse(n).root===n}(n)||st(e.dirname(n)),function(e,t,n,r){if(r)return at(e,t,n);if(n)return it(t),at(e,t,n);if(g.existsSync(t))throw new Error("dest already exists.");return at(e,t,n)}(t,n,o,s)}};const ut=re.copy,lt=he.remove,ft=D.mkdirp,pt=K.pathExists;function dt(e,t,n,r,o){return r?ht(e,t,n,o):n?lt(t,(r=>r?o(r):ht(e,t,n,o))):void pt(t,((r,i)=>r?o(r):i?o(new Error("dest already exists.")):ht(e,t,n,o)))}function ht(e,t,n,r){g.rename(e,t,(o=>o?"EXDEV"!==o.code?r(o):function(e,t,n,r){ut(e,t,{overwrite:n,errorOnExist:!0},(t=>t?r(t):lt(e,r)))}(e,t,n,r):r()))}var vt={move:u((function(t,n,r,o){"function"==typeof r&&(o=r,r={});const i=r.overwrite||r.clobber||!1;I.checkPaths(t,n,"move",r,((r,s)=>{if(r)return o(r);const{srcStat:a,isChangingCase:c=!1}=s;I.checkParentPaths(t,a,n,"move",(r=>r?o(r):function(t){const n=e.dirname(t);return e.parse(n).root===n}(n)?dt(t,n,i,c,o):void ft(e.dirname(n),(e=>e?o(e):dt(t,n,i,c,o)))))}))}))},_t={...b,...q,...re,...ye,...Be,...rt,...D,...ct,...vt,...Ye,...K,...he};function yt(t,n){try{return _t.readdirSync(t).forEach((function(r){(null==n?void 0:n.includes(r))||_t.removeSync(e.join(t,r))})),!0}catch(e){return!1}}function mt(t,n,r){var o;try{var i=t,s=function(e){var t=e.split("/");return t.length>1?{dirParts:t.slice(0,t.length-1),filePart:t[t.length-1]}:{filePart:e}}(n);(null===(o=s.dirParts)||void 0===o?void 0:o.length)&&(i=e.join.apply(e,function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)r[o]=i[s];return r}([i],s.dirParts)));var a=e.join(i,s.filePart);return _t.outputFileSync(a,r),!0}catch(e){return console.error(e),!1}}var gt=[{content:'import { IkasLocalThemeAPI } from "@ikas/storefront/src/pages/api";\n\nexport default IkasLocalThemeAPI.GetComponentDirs.getComponentDirs;\nexport const config = IkasLocalThemeAPI.GetComponentDirs.config;\n',fileName:"getComponentDirs.ts"},{content:'import { IkasLocalThemeAPI } from "@ikas/storefront/src/pages/api";\n\nexport default IkasLocalThemeAPI.GetTheme.getTheme;\nexport const config = IkasLocalThemeAPI.GetTheme.config;\n',fileName:"getTheme.ts"},{content:'import { IkasLocalThemeAPI } from "@ikas/storefront/src/pages/api";\n\nexport default IkasLocalThemeAPI.UpdateTheme.updateTheme;\nexport const config = IkasLocalThemeAPI.UpdateTheme.config;\n',fileName:"updateTheme.ts"},{content:'import { IkasLocalThemeAPI } from "@ikas/storefront/src/pages/api";\n\nexport default IkasLocalThemeAPI.UploadTheme.uploadTheme;\nexport const config = IkasLocalThemeAPI.UploadTheme.config;\n',fileName:"uploadTheme.ts"}],bt=function(){function t(){}return t.generate=function(){return yt(e.join(process.cwd(),"src","pages","api")),gt.reduce((function(e,n){return e&&t.generateAPI(n)}),!0)},t.generateAPI=function(t){return mt(e.join(process.cwd(),"src","pages","api"),t.fileName,t.content)},t}(),Ot=function(){function t(){}return t.generate=function(n){return yt(e.join(process.cwd(),"src","components","__generated__")),t.generateAllComponentImportsFile(n)&&t.generateAllComponentImportsFileForEditor(n)},t.generateAllComponentImportsFileForEditor=function(t){try{var n='import dynamic from "next/dynamic.js";\r\n';n+='import { IkasEditorComponentLoader } from "@ikas/storefront/src/components/page-editor/loader";\r\n',n+="\r\n",n+="const loader = { loading: () => <IkasEditorComponentLoader /> };\r\n",n+="\r\n";var r=t.components.filter((function(e){return"checkout"!==e.id}));return r.filter((function(e){return"checkout"!==e.id})).forEach((function(e,t){n+="const Component"+t+' = dynamic(() => import("../'+e.dir+'"), loader);\r\n'})),n+="\r\n",n+="\nconst Components = {\n "+r.map((function(e,t){return'"'+e.id+'": Component'+t}))+"\n};\n",n+="\r\n",n+="export default Components;",mt(e.join(process.cwd(),"src","components","__generated__"),"editor.tsx",n)}catch(e){return console.error(e),!1}},t.generateAllComponentImportsFile=function(t){try{var n="",r=t.components.filter((function(e){return"checkout"!==e.id}));return r.filter((function(e){return"checkout"!==e.id})).forEach((function(e,t){n+="import Component"+t+' from "../'+e.dir+'";\r\n'})),n+="\r\n",n+="\nconst Components = {\n "+r.map((function(e,t){return'"'+e.id+'": Component'+t}))+"\n};\n",n+="\r\n",n+="export default Components;",mt(e.join(process.cwd(),"src","components","__generated__"),"index.tsx",n)}catch(e){return console.error(e),!1}},t}(),Et="object"==typeof a&&a&&a.Object===Object&&a,St="object"==typeof self&&self&&self.Object===Object&&self,wt=Et||St||Function("return this")(),Nt=wt.Symbol,Tt=Object.prototype,Ct=Tt.hasOwnProperty,At=Tt.toString,Dt=Nt?Nt.toStringTag:void 0;var kt=function(e){var t=Ct.call(e,Dt),n=e[Dt];try{e[Dt]=void 0;var r=!0}catch(e){}var o=At.call(e);return r&&(t?e[Dt]=n:delete e[Dt]),o},xt=Object.prototype.toString;var Pt=function(e){return xt.call(e)},Rt=Nt?Nt.toStringTag:void 0;var Lt=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Rt&&Rt in Object(e)?kt(e):Pt(e)};var jt=function(e){return null!=e&&"object"==typeof e};var It=function(e){return jt(e)&&"[object Arguments]"==Lt(e)},Vt=Object.prototype;Vt.hasOwnProperty,Vt.propertyIsEnumerable;It(function(){return arguments}());var Ft=function(){return!1};c((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,o=r&&r.exports===n?wt.Buffer:void 0,i=(o?o.isBuffer:void 0)||Ft;e.exports=i}));var Bt=c((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,o=r&&r.exports===n&&Et.process,i=function(){try{var e=r&&r.require&&r.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=i}));Bt&&Bt.isTypedArray;var Ut=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var Mt=function(e){if(!Ut(e))return!1;var t=Lt(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};var Gt,qt=wt["__core-js_shared__"],Kt=(Gt=/[^.]+$/.exec(qt&&qt.keys&&qt.keys.IE_PROTO||""))?"Symbol(src)_1."+Gt:"";var Xt=function(e){return!!Kt&&Kt in e},Wt=Function.prototype.toString;var $t=function(e){if(null!=e){try{return Wt.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Ht=/^\[object .+?Constructor\]$/,Yt=Function.prototype,Jt=Object.prototype,zt=Yt.toString,Qt=Jt.hasOwnProperty,Zt=RegExp("^"+zt.call(Qt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var en=function(e){return!(!Ut(e)||Xt(e))&&(Mt(e)?Zt:Ht).test($t(e))};var tn=function(e,t){return null==e?void 0:e[t]};var nn=function(e,t){var n=tn(e,t);return en(n)?n:void 0},rn=nn(Object,"create");var on=function(){this.__data__=rn?rn(null):{},this.size=0};var sn=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},an=Object.prototype.hasOwnProperty;var cn=function(e){var t=this.__data__;if(rn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return an.call(t,e)?t[e]:void 0},un=Object.prototype.hasOwnProperty;var ln=function(e){var t=this.__data__;return rn?void 0!==t[e]:un.call(t,e)};var fn=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=rn&&void 0===t?"__lodash_hash_undefined__":t,this};function pn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}pn.prototype.clear=on,pn.prototype.delete=sn,pn.prototype.get=cn,pn.prototype.has=ln,pn.prototype.set=fn;var dn=pn;var hn=function(){this.__data__=[],this.size=0};var vn=function(e,t){return e===t||e!=e&&t!=t};var _n=function(e,t){for(var n=e.length;n--;)if(vn(e[n][0],t))return n;return-1},yn=Array.prototype.splice;var mn=function(e){var t=this.__data__,n=_n(t,e);return!(n<0)&&(n==t.length-1?t.pop():yn.call(t,n,1),--this.size,!0)};var gn=function(e){var t=this.__data__,n=_n(t,e);return n<0?void 0:t[n][1]};var bn=function(e){return _n(this.__data__,e)>-1};var On=function(e,t){var n=this.__data__,r=_n(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function En(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}En.prototype.clear=hn,En.prototype.delete=mn,En.prototype.get=gn,En.prototype.has=bn,En.prototype.set=On;var Sn=En,wn=nn(wt,"Map");var Nn=function(){this.size=0,this.__data__={hash:new dn,map:new(wn||Sn),string:new dn}};var Tn=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Cn=function(e,t){var n=e.__data__;return Tn(t)?n["string"==typeof t?"string":"hash"]:n.map};var An=function(e){var t=Cn(this,e).delete(e);return this.size-=t?1:0,t};var Dn=function(e){return Cn(this,e).get(e)};var kn=function(e){return Cn(this,e).has(e)};var xn=function(e,t){var n=Cn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Pn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Pn.prototype.clear=Nn,Pn.prototype.delete=An,Pn.prototype.get=Dn,Pn.prototype.has=kn,Pn.prototype.set=xn;var Rn=Pn;function Ln(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(Ln.Cache||Rn),n}Ln.Cache=Rn;var jn=Ln;var In=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Vn=/\\(\\)?/g;(function(e){var t=jn(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache})((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(In,(function(e,n,r,o){t.push(r?o.replace(Vn,"$1"):n||e)})),t}));var Fn=Nt?Nt.prototype:void 0;Fn&&Fn.toString;var Bn={next:"11.1.2",react:"17.0.2","react-dom":"17.0.2",mobx:"^6.1.3","mobx-react-lite":"^3.1.5","next-transpile-modules":"^9.0.0"},Un={"@types/node":"^14.14.6","@types/react":"^16.9.55","@typescript-eslint/eslint-plugin":"^2.10.0","@typescript-eslint/parser":"^2.10.0",eslint:"^6.6.0","eslint-config-react-app":"^5.2.1","eslint-loader":"3.0.3","eslint-plugin-flowtype":"4.6.0","eslint-plugin-import":"2.20.1","eslint-plugin-jsx-a11y":"6.2.3","eslint-plugin-react":"7.19.0","eslint-plugin-react-hooks":"^1.6.1",sass:"^1.43.4",typescript:"^4.5.2"},Mn={upgradeDependencies:"yarn upgrade @ikas/storefront",dev:"next dev -p 3333",build:"next build",start:"next start",generate:"ikas --generate","prettier:all":"npx prettier@^2.1 './**/src/**/*.(ts|tsx|css|scss)' --write"},Gn=function(){function t(){}return t.generate=function(e){return t.generateTsConfig()&&t.generateNextConfig()&&t.generatePackageJson()&&t.generateEnv(e)},t.generateTsConfig=function(){return mt(process.cwd(),"tsconfig.json",'{\n "compilerOptions": {\n "target": "esnext",\n "lib": [\n "dom",\n "dom.iterable",\n "esnext"\n ],\n "allowJs": true,\n "skipLibCheck": true,\n "strict": true,\n "forceConsistentCasingInFileNames": true,\n "experimentalDecorators": true,\n "noEmit": true,\n "esModuleInterop": true,\n "module": "esnext",\n "moduleResolution": "node",\n "resolveJsonModule": true,\n "isolatedModules": true,\n "jsx": "preserve",\n "baseUrl": ".",\n "useUnknownInCatchVariables": false\n },\n "typeRoots": [\n "./node_modules/@types"\n ],\n "include": [\n "next-env.d.ts",\n "**/*.ts",\n "**/*.tsx",\n "**/typings/global.d.ts",\n ],\n "exclude": [\n "node_modules",\n "./src/pages/api",\n ]\n}')},t.generateNextConfig=function(){return mt(process.cwd(),"next.config.js",'const withTM = require("next-transpile-modules")(["@ikas/storefront"]);\n\nconst config = {\n i18n: {\n defaultLocale: "en",\n locales: ["en"],\n localeDetection: false,\n },\n basePath: process.env.NEXTJS_BASE_PATH || "",\n\n images: {\n deviceSizes: [\n 180,\n 360,\n 540,\n 720,\n 900,\n 1080,\n 1296,\n 1512,\n 1728,\n 1950,\n 2560,\n 3840,\n ],\n },\n\n webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {\n if (!isServer) {\n config.resolve.fallback.fs = false;\n }\n return config;\n },\n};\n\nmodule.exports = withTM(config);')},t.generatePackageJson=function(){try{var t=e.join(process.cwd(),"package.json"),n=_t.readFileSync(t);if(n.length){var r=JSON.parse(n.toString()),o=function(e){var t="dev"===e?Un:Bn,n="dev"===e?"devDependencies":"dependencies";r[n]&&"object"==typeof r[n]?r[n]=s(s({},r[n]),t):r[n]=t;var o,i=(o=r[n],Object.keys(o).sort().reduce((function(e,t){return e[t]=o[t],e}),{}));r[n]=i};return o("dev"),o("normal"),r.scripts&&"object"==typeof r.scripts?r.scripts=s(s({},r.scripts),Mn):r.scripts=Mn,mt(t,"",JSON.stringify(r,null,2))}}catch(e){return console.error(e),!1}},t.generateEnv=function(e){var t="dev"===e?"NEXT_PUBLIC_ENV=local\nNEXT_PUBLIC_BASE_URL=https://api.myikas.dev\nNEXT_PUBLIC_IMG_HOST=cdn.myikas.dev\nNEXT_PUBLIC_IMG_BASE_URL=https://cdn.myikas.dev/\nNEXT_PUBLIC_UPLOAD_GQL_URL=https://api.myikas.dev/api/admin/graphql\nNEXT_PUBLIC_GQL_URL=https://api.myikas.dev/api/sf/graphql\n":"NEXT_PUBLIC_ENV=local\nNEXT_PUBLIC_BASE_URL=https://api.myikas.com\nNEXT_PUBLIC_IMG_HOST=cdn.myikas.com\nNEXT_PUBLIC_IMG_BASE_URL=https://cdn.myikas.com/\nNEXT_PUBLIC_UPLOAD_GQL_URL=https://api.myikas.com/api/admin/graphql\nNEXT_PUBLIC_GQL_URL=https://api.myikas.com/api/sf/graphql\n";return mt(process.cwd(),".env",t)},t}(),qn="production"!==process.env.NODE_ENV?{0:"Invalid value for configuration 'enforceActions', expected 'never', 'always' or 'observed'",1:function(e,t){return"Cannot apply '"+e+"' to '"+t.toString()+"': Field not found."},5:"'keys()' can only be used on observable objects, arrays, sets and maps",6:"'values()' can only be used on observable objects, arrays, sets and maps",7:"'entries()' can only be used on observable objects, arrays and maps",8:"'set()' can only be used on observable objects, arrays and maps",9:"'remove()' can only be used on observable objects, arrays and maps",10:"'has()' can only be used on observable objects, arrays and maps",11:"'get()' can only be used on observable objects, arrays and maps",12:"Invalid annotation",13:"Dynamic observable objects cannot be frozen",14:"Intercept handlers should return nothing or a change object",15:"Observable arrays cannot be frozen",16:"Modification exception: the internal structure of an observable array was changed.",17:function(e,t){return"[mobx.array] Index out of bounds, "+e+" is larger than "+t},18:"mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js",19:function(e){return"Cannot initialize from classes that inherit from Map: "+e.constructor.name},20:function(e){return"Cannot initialize map from "+e},21:function(e){return"Cannot convert to map from '"+e+"'"},22:"mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js",23:"It is not possible to get index atoms from arrays",24:function(e){return"Cannot obtain administration from "+e},25:function(e,t){return"the entry '"+e+"' does not exist in the observable map '"+t+"'"},26:"please specify a property",27:function(e,t){return"no observable property '"+e.toString()+"' found on the observable object '"+t+"'"},28:function(e){return"Cannot obtain atom from "+e},29:"Expecting some object",30:"invalid action stack. did you forget to finish an action?",31:"missing option for computed: get",32:function(e,t){return"Cycle detected in computation "+e+": "+t},33:function(e){return"The setter of computed value '"+e+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"},34:function(e){return"[ComputedValue '"+e+"'] It is not possible to assign a new value to a computed value."},35:"There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`",36:"isolateGlobalState should be called before MobX is running any reactions",37:function(e){return"[mobx] `observableArray."+e+"()` mutates the array in-place, which is not allowed inside a derivation. Use `array.slice()."+e+"()` instead"}}:{};function Kn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if("production"!==process.env.NODE_ENV){var o="string"==typeof e?e:qn[e];throw"function"==typeof o&&(o=o.apply(null,n)),new Error("[MobX] "+o)}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)}var Xn={};function Wn(){return"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:Xn}var $n=Object.assign,Hn=Object.getOwnPropertyDescriptor,Yn=Object.defineProperty,Jn=Object.prototype,zn=[];Object.freeze(zn);var Qn={};Object.freeze(Qn);var Zn="undefined"!=typeof Proxy,er=Object.toString();function tr(){Zn||Kn("production"!==process.env.NODE_ENV?"`Proxy` objects are not available in the current environment. Please configure MobX to enable a fallback implementation.`":"Proxy not available")}function nr(e){"production"!==process.env.NODE_ENV&&Wo.verifyProxies&&Kn("MobX is currently configured to be able to run in ES5 mode, but in ES5 MobX won't be able to "+e)}function rr(){return++Wo.mobxGuid}function or(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var ir=function(){};function sr(e){return"function"==typeof e}function ar(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function cr(e){return null!==e&&"object"==typeof e}function ur(e){var t;if(!cr(e))return!1;var n=Object.getPrototypeOf(e);return null==n||(null==(t=n.constructor)?void 0:t.toString())===er}function lr(e,t,n){Yn(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function fr(e,t,n){Yn(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function pr(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return cr(e)&&!0===e[n]}}function dr(e){return e instanceof Map}function hr(e){return e instanceof Set}var vr=void 0!==Object.getOwnPropertySymbols;var _r="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:vr?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function yr(e){return"string"==typeof e?e:"symbol"==typeof e?e.toString():new String(e).toString()}function mr(e){return null===e?null:"object"==typeof e?""+e:e}function gr(e,t){return Jn.hasOwnProperty.call(e,t)}var br=Object.getOwnPropertyDescriptors||function(e){var t={};return _r(e).forEach((function(n){t[n]=Hn(e,n)})),t};function Or(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,r.key,r)}}function Er(e,t,n){return t&&Or(e.prototype,t),n&&Or(e,n),e}function Sr(){return Sr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sr.apply(this,arguments)}function wr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Nr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Cr(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Tr(e,t);var n=Object.prototype.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)?Tr(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.")}return(n=e[Symbol.iterator]()).next.bind(n)}var Ar=Symbol("mobx-stored-annotations");function Dr(e){return Object.assign((function(t,n){kr(t,n,e)}),e)}function kr(e,t,n){(gr(e,Ar)||lr(e,Ar,Sr({},e[Ar])),"production"!==process.env.NODE_ENV&&Fr(n)&&!gr(e[Ar],t))&&Kn("'"+(e.constructor.name+".prototype."+t.toString())+"' is decorated with 'override', but no such decorated member was found on prototype.");!function(e,t,n){if("production"!==process.env.NODE_ENV&&!Fr(t)&&gr(e[Ar],n)){var r=e.constructor.name+".prototype."+n.toString(),o=e[Ar][n].annotationType_;Kn("Cannot apply '@"+t.annotationType_+"' to '"+r+"':\nThe field is already decorated with '@"+o+"'.\nRe-decorating fields is not allowed.\nUse '@override' decorator for methods overriden by subclass.")}}(e,n,t),Fr(n)||(e[Ar][t]=Sr({},n,{isDecorator_:!0}))}var xr=Symbol("mobx administration"),Pr=function(){function e(e){void 0===e&&(e="Atom@"+rr()),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Ao.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 Qo(this)},t.reportChanged=function(){Jo(),Zo(this),zo()},t.toString=function(){return this.name_},e}(),Rr=pr("Atom",Pr);function Lr(e,t,n){void 0===t&&(t=ir),void 0===n&&(n=ir);var r,o=new Pr(e);return t!==ir&&Ei("onBO",o,t,r),n!==ir&&Oi(o,n),o}var jr={identity:function(e,t){return e===t},structural:function(e,t){return Rs(e,t)},default:function(e,t){return Object.is(e,t)},shallow:function(e,t){return Rs(e,t,1)}};function Ir(e,t,n){return Pi(e)?e:Array.isArray(e)?po.array(e,{name:n}):ur(e)?po.object(e,void 0,{name:n}):dr(e)?po.map(e,{name:n}):hr(e)?po.set(e,{name:n}):e}function Vr(e){return e}function Fr(e){return"override"===e.annotationType_}function Br(e,t){return{annotationType_:e,options_:t,make_:Ur,extend_:Mr}}function Ur(e,t){for(var n,r,o=!1,i=e.target_,s=null!=(n=null==(r=this.options_)?void 0:r.bound)&&n;i&&i!==Jn;){var a=Hn(i,t);if(a){if(i===e.target_||s){var c=Gr(e,this,t,a);if(!e.defineProperty_(t,c))return;if(o=!0,s)break}if(i!==e.target_){if(gi(a.value)){o=!0;break}var u=Gr(e,this,t,a,!1);Yn(i,t,u),o=!0}}i=Object.getPrototypeOf(i)}o?gs(e,this,t):this.isDecorator_||Kn(1,this.annotationType_,e.name_+"."+t.toString())}function Mr(e,t,n,r){var o=Gr(e,this,t,n);return e.defineProperty_(t,o,r)}function Gr(e,t,n,r,o){var i,s,a,c,u;void 0===o&&(o=Wo.safeDescriptors),function(e,t,n,r){var o=t.annotationType_,i=r.value;"production"===process.env.NODE_ENV||sr(i)||Kn("Cannot apply '"+o+"' to '"+e.name_+"."+n.toString()+"':\n'"+o+"' can only be used on properties with a function value.")}(e,t,n,r);var l,f=r.value;(null==(i=t.options_)?void 0:i.bound)&&(f=f.bind(null!=(l=e.proxy_)?l:e.target_));return{value:Eo(null!=(s=null==(a=t.options_)?void 0:a.name)?s:n.toString(),f,null!=(c=null==(u=t.options_)?void 0:u.autoAction)&&c),configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function qr(e,t){return{annotationType_:e,options_:t,make_:Kr,extend_:Xr}}function Kr(e,t){for(var n=!1,r=e.target_;r&&r!==Jn;){var o=Hn(r,t);if(o){if(r!==e.target_){if(ki(o.value)){n=!0;break}var i=Wr(e,this,t,o,!1);Yn(r,t,i)}else{var s=Wr(e,this,t,o);if(!e.defineProperty_(t,s))return}n=!0}r=Object.getPrototypeOf(r)}n?gs(e,this,t):this.isDecorator_||Kn(1,this.annotationType_,e.name_+"."+t.toString())}function Xr(e,t,n,r){var o=Wr(e,this,t,n);return e.defineProperty_(t,o,r)}function Wr(e,t,n,r,o){return void 0===o&&(o=Wo.safeDescriptors),function(e,t,n,r){var o=t.annotationType_,i=r.value;"production"===process.env.NODE_ENV||sr(i)||Kn("Cannot apply '"+o+"' to '"+e.name_+"."+n.toString()+"':\n'"+o+"' can only be used on properties with a generator function value.")}(e,t,n,r),{value:Ai(r.value),configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function $r(e,t){return{annotationType_:e,options_:t,make_:Hr,extend_:Yr}}function Hr(e,t){for(var n=e.target_;n&&n!==Jn;){var r=Hn(n,t);if(r){if(Jr(e,this,t,r),!e.defineComputedProperty_(t,Sr({},this.options_,{get:r.get,set:r.set})))return;return void gs(e,this,t)}n=Object.getPrototypeOf(n)}this.isDecorator_||Kn(1,this.annotationType_,e.name_+"."+t.toString())}function Yr(e,t,n,r){return Jr(e,this,t,n),e.defineComputedProperty_(t,Sr({},this.options_,{get:n.get,set:n.set}),r)}function Jr(e,t,n,r){var o=t.annotationType_,i=r.get;"production"===process.env.NODE_ENV||i||Kn("Cannot apply '"+o+"' to '"+e.name_+"."+n.toString()+"':\n'"+o+"' can only be used on getter(+setter) properties.")}function zr(e,t){return{annotationType_:e,options_:t,make_:Qr,extend_:Zr}}function Qr(e,t){for(var n=e.target_;n&&n!==Jn;){var r=Hn(n,t);if(r){var o,i;if(eo(e,this,t,r),!e.defineObservableProperty_(t,r.value,null!=(o=null==(i=this.options_)?void 0:i.enhancer)?o:Ir))return;return void gs(e,this,t)}n=Object.getPrototypeOf(n)}this.isDecorator_||Kn(1,this.annotationType_,e.name_+"."+t.toString())}function Zr(e,t,n,r){var o,i;return eo(e,this,t,n),e.defineObservableProperty_(t,n.value,null!=(o=null==(i=this.options_)?void 0:i.enhancer)?o:Ir,r)}function eo(e,t,n,r){var o=t.annotationType_;"production"===process.env.NODE_ENV||"value"in r||Kn("Cannot apply '"+o+"' to '"+e.name_+"."+n.toString()+"':\n'"+o+"' cannot be used on getter/setter properties")}var to={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function no(e){return e||to}Object.freeze(to);var ro=zr("observable"),oo=zr("observable.ref",{enhancer:Vr}),io=zr("observable.shallow",{enhancer:function(e,t,n){return null==e||ms(e)||ns(e)||cs(e)||fs(e)?e:Array.isArray(e)?po.array(e,{name:n,deep:!1}):ur(e)?po.object(e,void 0,{name:n,deep:!1}):dr(e)?po.map(e,{name:n,deep:!1}):hr(e)?po.set(e,{name:n,deep:!1}):void("production"!==process.env.NODE_ENV&&Kn("The shallow modifier / decorator can only used in combination with arrays, objects, maps and sets"))}}),so=zr("observable.struct",{enhancer:function(e,t){return"production"!==process.env.NODE_ENV&&Pi(e)&&Kn("observable.struct should not be used with observable values"),Rs(e,t)?t:e}}),ao=Dr(ro);function co(e){return!0===e.deep?Ir:!1===e.deep?Vr:(t=e.defaultDecorator)&&null!=(n=null==(r=t.options_)?void 0:r.enhancer)?n:Ir;var t,n,r}function uo(e,t,n){if(!ar(t))return Pi(e)?e:ur(e)?po.object(e,t,n):Array.isArray(e)?po.array(e,t):dr(e)?po.map(e,t):hr(e)?po.set(e,t):"object"==typeof e&&null!==e?e:po.box(e);kr(e,t,ro)}Object.assign(uo,ao);var lo,fo,po=$n(uo,{box:function(e,t){var n=no(t);return new Co(e,co(n),n.name,!0,n.equals)},array:function(e,t){var n=no(t);return(!1===Wo.useProxies||!1===n.proxy?As:$i)(e,co(n),n.name)},map:function(e,t){var n=no(t);return new as(e,co(n),n.name)},set:function(e,t){var n=no(t);return new ls(e,co(n),n.name)},object:function(e,t,n){return Si(!1===Wo.useProxies||!1===(null==n?void 0:n.proxy)?vs({},n):function(e,t){var n,r;return tr(),e=vs(e,t),null!=(r=(n=e[xr]).proxy_)?r:n.proxy_=new Proxy(e,Ii)}({},n),e,t)},ref:Dr(oo),shallow:Dr(io),deep:ao,struct:Dr(so)}),ho=$r("computed"),vo=$r("computed.struct",{equals:jr.structural}),_o=function(e,t){if(ar(t))return kr(e,t,ho);if(ur(e))return Dr($r("computed",e));"production"!==process.env.NODE_ENV&&(sr(e)||Kn("First argument to `computed` should be an expression."),sr(t)&&Kn("A setter as second argument is no longer supported, use `{ set: fn }` option instead"));var n=ur(t)?t:{};return n.get=e,n.name=n.name||e.name||"",new ko(n)};Object.assign(_o,ho),_o.struct=Dr(vo);var yo,mo=0,go=1,bo=null!=(lo=null==(fo=Hn((function(){}),"name"))?void 0:fo.configurable)&&lo,Oo={value:"action",configurable:!0,writable:!1,enumerable:!1};function Eo(e,t,n,r){function o(){return So(e,n,t,r||this,arguments)}return void 0===n&&(n=!1),"production"!==process.env.NODE_ENV&&(sr(t)||Kn("`action` can only be invoked on functions"),"string"==typeof e&&e||Kn("actions should have valid names, got: '"+e+"'")),o.isMobxAction=!0,bo&&(Oo.value=e,Object.defineProperty(o,"name",Oo)),o}function So(e,t,n,r,o){var i=function(e,t,n,r){var o="production"!==process.env.NODE_ENV&&si()&&!!e,i=0;if("production"!==process.env.NODE_ENV&&o){i=Date.now();var s=r?Array.from(r):zn;ci({type:fi,name:e,object:n,arguments:s})}var a=Wo.trackingDerivation,c=!t||!a;Jo();var u=Wo.allowStateChanges;c&&(Bo(),u=wo(!0));var l=Mo(!0),f={runAsAction_:c,prevDerivation_:a,prevAllowStateChanges_:u,prevAllowStateReads_:l,notifySpy_:o,startTime_:i,actionId_:go++,parentActionId_:mo};return mo=f.actionId_,f}(e,t,r,o);try{return n.apply(r,o)}catch(e){throw i.error_=e,e}finally{!function(e){mo!==e.actionId_&&Kn(30);mo=e.parentActionId_,void 0!==e.error_&&(Wo.suppressReactionErrors=!0);No(e.prevAllowStateChanges_),Go(e.prevAllowStateReads_),zo(),e.runAsAction_&&Uo(e.prevDerivation_);"production"!==process.env.NODE_ENV&&e.notifySpy_&&li({time:Date.now()-e.startTime_});Wo.suppressReactionErrors=!1}(i)}}function wo(e){var t=Wo.allowStateChanges;return Wo.allowStateChanges=e,t}function No(e){Wo.allowStateChanges=e}yo=Symbol.toPrimitive;var To,Co=function(e){function t(t,n,r,o,i){var s;return void 0===r&&(r="ObservableValue@"+rr()),void 0===o&&(o=!0),void 0===i&&(i=jr.default),(s=e.call(this,r)||this).enhancer=void 0,s.name_=void 0,s.equals=void 0,s.hasUnreportedChange_=!1,s.interceptors_=void 0,s.changeListeners_=void 0,s.value_=void 0,s.dehancer=void 0,s.enhancer=n,s.name_=r,s.equals=i,s.value_=n(t,void 0,r),"production"!==process.env.NODE_ENV&&o&&si()&&ai({type:"create",object:Nr(s),observableKind:"value",debugObjectName:s.name_,newValue:""+s.value_}),s}wr(t,e);var n=t.prototype;return n.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},n.set=function(e){var t=this.value_;if((e=this.prepareNewValue_(e))!==Wo.UNCHANGED){var n=si();"production"!==process.env.NODE_ENV&&n&&ci({type:Ki,object:this,observableKind:"value",debugObjectName:this.name_,newValue:e,oldValue:t}),this.setNewValue_(e),"production"!==process.env.NODE_ENV&&n&&li()}},n.prepareNewValue_=function(e){if(jo(this),Vi(this)){var t=Bi(this,{object:this,type:Ki,newValue:e});if(!t)return Wo.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?Wo.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),Ui(this)&&Gi(this,{type:Ki,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return Fi(this,e)},n.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:Ki,newValue:this.value_,oldValue:void 0}),Mi(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 mr(this.get())},n[yo]=function(){return this.valueOf()},t}(Pr);To=Symbol.toPrimitive;var Ao,Do,ko=function(){function e(e){this.dependenciesState_=Ao.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Ao.UP_TO_DATE_,this.unboundDepsCount_=0,this.mapid_="#"+rr(),this.value_=new Po(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Do.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||Kn(31),this.derivation=e.get,this.name_=e.name||"ComputedValue@"+rr(),e.set&&(this.setter_=Eo(this.name_+"-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?jr.structural:jr.default),this.scope_=e.context,this.requiresReaction_=!!e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){!function(e){if(e.lowestObserverState_!==Ao.UP_TO_DATE_)return;e.lowestObserverState_=Ao.POSSIBLY_STALE_,e.observers_.forEach((function(t){t.dependenciesState_===Ao.UP_TO_DATE_&&(t.dependenciesState_=Ao.POSSIBLY_STALE_,"production"!==process.env.NODE_ENV&&t.isTracing_!==Do.NONE&&ei(t,e),t.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_&&Kn(32,this.name_,this.derivation),0!==Wo.inBatch||0!==this.observers_.size||this.keepAlive_){if(Qo(this),Lo(this)){var e=Wo.trackingContext;this.keepAlive_&&!e&&(Wo.trackingContext=this),this.trackAndCompute()&&function(e){if(e.lowestObserverState_===Ao.STALE_)return;e.lowestObserverState_=Ao.STALE_,e.observers_.forEach((function(t){t.dependenciesState_===Ao.POSSIBLY_STALE_?t.dependenciesState_=Ao.STALE_:t.dependenciesState_===Ao.UP_TO_DATE_&&(e.lowestObserverState_=Ao.UP_TO_DATE_)}))}(this),Wo.trackingContext=e}}else Lo(this)&&(this.warnAboutUntrackedRead_(),Jo(),this.value_=this.computeValue_(!1),zo());var t=this.value_;if(Ro(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter_&&Kn(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter_=!1}}else Kn(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===Ao.NOT_TRACKING_,n=this.computeValue_(!0);"production"!==process.env.NODE_ENV&&si()&&ai({observableKind:"computed",debugObjectName:this.name_,object:this.scope_,type:"update",oldValue:this.value_,newValue:n});var r=t||Ro(e)||Ro(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing_=!0;var t,n=wo(!1);if(e)t=Io(this,this.derivation,this.scope_);else if(!0===Wo.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(e){t=new Po(e)}return No(n),this.isComputing_=!1,t},t.suspend_=function(){this.keepAlive_||(Vo(this),this.value_=void 0)},t.observe_=function(e,t){var n=this,r=!0,o=void 0;return function(e,t){void 0===t&&(t=Qn);"production"!==process.env.NODE_ENV&&(sr(e)||Kn("Autorun expects a function as first argument"),gi(e)&&Kn("Autorun does not accept actions since actions are untrackable"));var n,r=t&&t.name||e.name||"Autorun@"+rr();if(t.scheduler||t.delay){var o=function(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:bi}(t),i=!1;n=new ni(r,(function(){i||(i=!0,o((function(){i=!1,n.isDisposed_||n.track(s)})))}),t.onError,t.requiresObservable)}else n=new ni(r,(function(){this.track(s)}),t.onError,t.requiresObservable);function s(){e(n)}return n.schedule_(),n.getDisposer_()}((function(){var i=n.get();if(!r||t){var s=Bo();e({observableKind:"computed",debugObjectName:n.name_,type:Ki,object:n,newValue:i,oldValue:o}),Uo(s)}r=!1,o=i}))},t.warnAboutUntrackedRead_=function(){"production"!==process.env.NODE_ENV&&(!0===this.requiresReaction_&&Kn("[mobx] Computed value "+this.name_+" is read outside a reactive context"),this.isTracing_!==Do.NONE&&console.log("[mobx.trace] '"+this.name_+"' is being read outside a reactive context. Doing a full recompute"),Wo.computedRequiresReaction&&console.warn("[mobx] Computed value "+this.name_+" is being read outside a reactive context. Doing a full recompute"))},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return mr(this.get())},t[To]=function(){return this.valueOf()},e}(),xo=pr("ComputedValue",ko);!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_"}(Ao||(Ao={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Do||(Do={}));var Po=function(e){this.cause=void 0,this.cause=e};function Ro(e){return e instanceof Po}function Lo(e){switch(e.dependenciesState_){case Ao.UP_TO_DATE_:return!1;case Ao.NOT_TRACKING_:case Ao.STALE_:return!0;case Ao.POSSIBLY_STALE_:for(var t=Mo(!0),n=Bo(),r=e.observing_,o=r.length,i=0;i<o;i++){var s=r[i];if(xo(s)){if(Wo.disableErrorBoundaries)s.get();else try{s.get()}catch(e){return Uo(n),Go(t),!0}if(e.dependenciesState_===Ao.STALE_)return Uo(n),Go(t),!0}}return qo(e),Uo(n),Go(t),!1}}function jo(e){if("production"!==process.env.NODE_ENV){var t=e.observers_.size>0;Wo.allowStateChanges||!t&&"always"!==Wo.enforceActions||console.warn("[MobX] "+(Wo.enforceActions?"Since strict-mode is enabled, changing (observed) observable values without using an action is not allowed. Tried to modify: ":"Side effects like changing state are not allowed at this point. Are you trying to modify state from, for example, a computed value or the render function of a React component? You can wrap side effects in 'runInAction' (or decorate functions with 'action') if needed. Tried to modify: ")+e.name_)}}function Io(e,t,n){var r=Mo(!0);qo(e),e.newObserving_=new Array(e.observing_.length+100),e.unboundDepsCount_=0,e.runId_=++Wo.runId;var o,i=Wo.trackingDerivation;if(Wo.trackingDerivation=e,Wo.inBatch++,!0===Wo.disableErrorBoundaries)o=t.call(n);else try{o=t.call(n)}catch(e){o=new Po(e)}return Wo.inBatch--,Wo.trackingDerivation=i,function(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=Ao.UP_TO_DATE_,o=0,i=e.unboundDepsCount_,s=0;s<i;s++){var a=n[s];0===a.diffValue_&&(a.diffValue_=1,o!==s&&(n[o]=a),o++),a.dependenciesState_>r&&(r=a.dependenciesState_)}n.length=o,e.newObserving_=null,i=t.length;for(;i--;){var c=t[i];0===c.diffValue_&&Ho(c,e),c.diffValue_=0}for(;o--;){var u=n[o];1===u.diffValue_&&(u.diffValue_=0,$o(u,e))}r!==Ao.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}(e),function(e){if("production"===process.env.NODE_ENV)return;if(0!==e.observing_.length)return;(Wo.reactionRequiresObservable||e.requiresObservable_)&&console.warn("[mobx] Derivation "+e.name_+" is created/updated without reading any observable value")}(e),Go(r),o}function Vo(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)Ho(t[n],e);e.dependenciesState_=Ao.NOT_TRACKING_}function Fo(e){var t=Bo();try{return e()}finally{Uo(t)}}function Bo(){var e=Wo.trackingDerivation;return Wo.trackingDerivation=null,e}function Uo(e){Wo.trackingDerivation=e}function Mo(e){var t=Wo.allowStateReads;return Wo.allowStateReads=e,t}function Go(e){Wo.allowStateReads=e}function qo(e){if(e.dependenciesState_!==Ao.UP_TO_DATE_){e.dependenciesState_=Ao.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=Ao.UP_TO_DATE_}}var Ko=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},Xo=!0,Wo=function(){var e=Wn();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Xo=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new Ko).version&&(Xo=!1),Xo?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Ko):(setTimeout((function(){Kn(35)}),1),new Ko)}();function $o(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function Ho(e,t){e.observers_.delete(t),0===e.observers_.size&&Yo(e)}function Yo(e){!1===e.isPendingUnobservation_&&(e.isPendingUnobservation_=!0,Wo.pendingUnobservations.push(e))}function Jo(){Wo.inBatch++}function zo(){if(0==--Wo.inBatch){ri();for(var e=Wo.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 ko&&n.suspend_())}Wo.pendingUnobservations=[]}}function Qo(e){!function(e){"production"!==process.env.NODE_ENV&&!Wo.allowStateReads&&Wo.observableRequiresReaction&&console.warn("[mobx] Observable "+e.name_+" being read outside a reactive context")}(e);var t=Wo.trackingDerivation;return null!==t?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved_&&Wo.trackingContext&&(e.isBeingObserved_=!0,e.onBO())),!0):(0===e.observers_.size&&Wo.inBatch>0&&Yo(e),!1)}function Zo(e){e.lowestObserverState_!==Ao.STALE_&&(e.lowestObserverState_=Ao.STALE_,e.observers_.forEach((function(t){t.dependenciesState_===Ao.UP_TO_DATE_&&("production"!==process.env.NODE_ENV&&t.isTracing_!==Do.NONE&&ei(t,e),t.onBecomeStale_()),t.dependenciesState_=Ao.STALE_})))}function ei(e,t){if(console.log("[mobx.trace] '"+e.name_+"' is invalidated due to a change in: '"+t.name_+"'"),e.isTracing_===Do.BREAK){var n=[];ti(wi(Ds(e,r)),n,1),new Function("debugger;\n/*\nTracing '"+e.name_+"'\n\nYou are entering this break point because derivation '"+e.name_+"' is being traced and '"+t.name_+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(e instanceof ko?e.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n ")()}var r}function ti(e,t,n){t.length>=1e3?t.push("(and many more)"):(t.push(""+new Array(n).join("\t")+e.name),e.dependencies&&e.dependencies.forEach((function(e){return ti(e,t,n+1)})))}var ni=function(){function e(e,t,n,r){void 0===e&&(e="Reaction@"+rr()),void 0===r&&(r=!1),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=Ao.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.mapid_="#"+rr(),this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=Do.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,Wo.pendingReactions.push(this),ri())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){Jo(),this.isScheduled_=!1;var e=Wo.trackingContext;if(Wo.trackingContext=this,Lo(this)){this.isTrackPending_=!0;try{this.onInvalidate_(),"production"!==process.env.NODE_ENV&&this.isTrackPending_&&si()&&ai({name:this.name_,type:"scheduled-reaction"})}catch(e){this.reportExceptionInDerivation_(e)}}Wo.trackingContext=e,zo()}},t.track=function(e){if(!this.isDisposed_){Jo();var t,n=si();"production"!==process.env.NODE_ENV&&n&&(t=Date.now(),ci({name:this.name_,type:"reaction"})),this.isRunning_=!0;var r=Wo.trackingContext;Wo.trackingContext=this;var o=Io(this,e,void 0);Wo.trackingContext=r,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&Vo(this),Ro(o)&&this.reportExceptionInDerivation_(o.cause),"production"!==process.env.NODE_ENV&&n&&li({time:Date.now()-t}),zo()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(Wo.disableErrorBoundaries)throw e;var n="production"!==process.env.NODE_ENV?"[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'":"[mobx] uncaught error in '"+this+"'";Wo.suppressReactionErrors?"production"!==process.env.NODE_ENV&&console.warn("[mobx] (error in reaction '"+this.name_+"' suppressed, fix error of causing action below)"):console.error(n,e),"production"!==process.env.NODE_ENV&&si()&&ai({type:"error",name:this.name_,message:n,error:""+e}),Wo.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(Jo(),Vo(this),zo()))},t.getDisposer_=function(){var e=this.dispose.bind(this);return e[xr]=this,e},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1),function(){"production"===process.env.NODE_ENV&&Kn("trace() is not available in production builds");for(var e=!1,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"boolean"==typeof n[n.length-1]&&(e=n.pop());var o=Ri(n);if(!o)return Kn("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");o.isTracing_===Do.NONE&&console.log("[mobx.trace] '"+o.name_+"' tracing enabled");o.isTracing_=e?Do.BREAK:Do.LOG}(this,e)},e}();function ri(){Wo.inBatch>0||Wo.isRunningReactions||oi()}function oi(){Wo.isRunningReactions=!0;for(var e=Wo.pendingReactions,t=0;e.length>0;){100==++t&&(console.error("production"!==process.env.NODE_ENV?"Reaction doesn't converge to a stable state after 100 iterations. Probably there is a cycle in the reactive function: "+e[0]:"[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_()}Wo.isRunningReactions=!1}var ii=pr("Reaction",ni);function si(){return"production"!==process.env.NODE_ENV&&!!Wo.spyListeners.length}function ai(e){if("production"!==process.env.NODE_ENV&&Wo.spyListeners.length)for(var t=Wo.spyListeners,n=0,r=t.length;n<r;n++)t[n](e)}function ci(e){"production"!==process.env.NODE_ENV&&ai(Sr({},e,{spyReportStart:!0}))}var ui={type:"report-end",spyReportEnd:!0};function li(e){"production"!==process.env.NODE_ENV&&ai(e?Sr({},e,{type:"report-end",spyReportEnd:!0}):ui)}var fi="action",pi=Br(fi),di=Br("action.bound",{bound:!0}),hi=Br("autoAction",{autoAction:!0}),vi=Br("autoAction.bound",{autoAction:!0,bound:!0});function _i(e){return function(t,n){return sr(t)?Eo(t.name||"<unnamed action>",t,e):sr(n)?Eo(t,n,e):ar(n)?kr(t,n,e?hi:pi):ar(t)?Dr(Br(e?"autoAction":fi,{name:t,autoAction:e})):void("production"!==process.env.NODE_ENV&&Kn("Invalid arguments for `action`"))}}var yi=_i(!1);Object.assign(yi,pi);var mi=_i(!0);function gi(e){return sr(e)&&!0===e.isMobxAction}Object.assign(mi,hi),yi.bound=Dr(di),mi.bound=Dr(vi);var bi=function(e){return e()};function Oi(e,t,n){return Ei("onBUO",e,t,n)}function Ei(e,t,n,r){var o="function"==typeof r?Ds(t,n):Ds(t),i=sr(r)?r:n,s=e+"L";return o[s]?o[s].add(i):o[s]=new Set([i]),function(){var e=o[s];e&&(e.delete(i),0===e.size&&delete o[s])}}function Si(e,t,n,r){"production"!==process.env.NODE_ENV&&(arguments.length>4&&Kn("'extendObservable' expected 2-4 arguments"),"object"!=typeof e&&Kn("'extendObservable' expects an object as first argument"),cs(e)&&Kn("'extendObservable' should not be used on maps, use map.merge instead"),ur(t)||Kn("'extendObservabe' only accepts plain objects as second argument"),(Pi(t)||Pi(n))&&Kn("Extending an object with another observable (object) is not supported"));var o=br(t),i=vs(e,r)[xr];Jo();try{_r(o).forEach((function(e){i.extend_(e,o[e],!n||(!(e in n)||n[e]))}))}finally{zo()}return e}function wi(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(wi)),n}var Ni=0;function Ti(){this.message="FLOW_CANCELLED"}Ti.prototype=Object.create(Error.prototype);var Ci=qr("flow"),Ai=Object.assign((function(e,t){if(ar(t))return kr(e,t,Ci);"production"!==process.env.NODE_ENV&&1!==arguments.length&&Kn("Flow expects single argument with generator function");var n=e,r=n.name||"<unnamed flow>",o=function(){var e,t=this,o=arguments,i=++Ni,s=yi(r+" - runid: "+i+" - init",n).apply(t,o),a=void 0,c=new Promise((function(t,n){var o=0;function c(e){var t;a=void 0;try{t=yi(r+" - runid: "+i+" - yield "+o++,s.next).call(s,e)}catch(e){return n(e)}l(t)}function u(e){var t;a=void 0;try{t=yi(r+" - runid: "+i+" - yield "+o++,s.throw).call(s,e)}catch(e){return n(e)}l(t)}function l(e){if(!sr(null==e?void 0:e.then))return e.done?t(e.value):(a=Promise.resolve(e.value)).then(c,u);e.then(l,n)}e=n,c(void 0)}));return c.cancel=yi(r+" - runid: "+i+" - cancel",(function(){try{a&&Di(a);var t=s.return(void 0),n=Promise.resolve(t.value);n.then(ir,ir),Di(n),e(new Ti)}catch(t){e(t)}})),c};return o.isMobXFlow=!0,o}),Ci);function Di(e){sr(e.cancel)&&e.cancel()}function ki(e){return!0===(null==e?void 0:e.isMobXFlow)}function xi(e,t){return!!e&&(void 0!==t?"production"!==process.env.NODE_ENV&&(cs(e)||ns(e))?Kn("isObservable(object, propertyName) is not supported for arrays and maps. Use map.has or array.length instead."):!!ms(e)&&e[xr].values_.has(t):ms(e)||!!e[xr]||Rr(e)||ii(e)||xo(e))}function Pi(e){return"production"!==process.env.NODE_ENV&&1!==arguments.length&&Kn("isObservable expects only 1 argument. Use isObservableProp to inspect the observability of a property"),xi(e)}function Ri(e){switch(e.length){case 0:return Wo.trackingDerivation;case 1:return Ds(e[0]);case 2:return Ds(e[0],e[1])}}function Li(e,t){void 0===t&&(t=void 0),Jo();try{return e.apply(t)}finally{zo()}}function ji(e){return e[xr]}var Ii={has:function(e,t){return"production"!==process.env.NODE_ENV&&Wo.trackingDerivation&&nr("detect new properties using the 'in' operator. Use 'has' from 'mobx' instead."),ji(e).has_(t)},get:function(e,t){return ji(e).get_(t)},set:function(e,t,n){var r;return!!ar(t)&&("production"===process.env.NODE_ENV||ji(e).values_.has(t)||nr("add a new observable property through direct assignment. Use 'set' from 'mobx' instead."),null==(r=ji(e).set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return"production"!==process.env.NODE_ENV&&nr("delete properties from an observable object. Use 'remove' from 'mobx' instead."),!!ar(t)&&(null==(n=ji(e).delete_(t,!0))||n)},defineProperty:function(e,t,n){var r;return"production"!==process.env.NODE_ENV&&nr("define property on an observable object. Use 'defineProperty' from 'mobx' instead."),null==(r=ji(e).defineProperty_(t,n))||r},ownKeys:function(e){return"production"!==process.env.NODE_ENV&&Wo.trackingDerivation&&nr("iterate keys to detect added / removed properties. Use `keys` from 'mobx' instead."),ji(e).ownKeys_()},preventExtensions:function(e){Kn(13)}};function Vi(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function Fi(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),or((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Bi(e,t){var n=Bo();try{for(var r=[].concat(e.interceptors_||[]),o=0,i=r.length;o<i&&((t=r[o](t))&&!t.type&&Kn(14),t);o++);return t}finally{Uo(n)}}function Ui(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function Mi(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),or((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Gi(e,t){var n=Bo(),r=e.changeListeners_;if(r){for(var o=0,i=(r=r.slice()).length;o<i;o++)r[o](t);Uo(n)}}function qi(e,t,n){if("production"!==process.env.NODE_ENV&&(ur(e)||ur(Object.getPrototypeOf(e))||Kn("'makeAutoObservable' can only be used for classes that don't have a superclass"),ms(e)&&Kn("makeAutoObservable can only be used on objects not already made observable")),ur(e))return Si(e,e,t,n);var r=vs(e,n)[xr];Jo();try{if(e[ps])for(var o in e[ps])r.make_(o,e[ps][o]);else for(var i,s=((i={})[xr]=1,i[ps]=1,i.constructor=1,i),a=function(e){s[e]||(s[e]=1,r.make_(e,!t||(!(e in t)||t[e])))},c=e;c&&c!==Jn;)_r(c).forEach(a),c=Object.getPrototypeOf(c)}finally{zo()}return e}var Ki="update",Xi={get:function(e,t){var n=e[xr];return t===xr?n:"length"===t?n.getArrayLength_():"string"!=typeof t||isNaN(t)?gr(Hi,t)?Hi[t]:e[t]:n.get_(parseInt(t))},set:function(e,t,n){var r=e[xr];return"length"===t&&r.setArrayLength_(n),"symbol"==typeof t||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions:function(){Kn(15)}},Wi=function(){function e(e,t,n,r){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 Pr(e||"ObservableArray@"+rr()),this.enhancer_=function(n,r){return t(n,r,e+"[..]")}}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 Fi(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}),Mi(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!=typeof e||e<0)&&Kn("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_&&Kn(16),this.lastKnownLength_+=t,this.legacyMode_&&t>0&&Cs(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;jo(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=zn),Vi(this)){var i=Bi(this,{object:this.proxy_,type:"splice",index:e,removedCount:t,added:n});if(!i)return zn;t=i.removedCount,n=i.added}if(n=0===n.length?n:n.map((function(e){return r.enhancer_(e,void 0)})),this.legacyMode_||"production"!==process.env.NODE_ENV){var s=n.length-t;this.updateArrayLength_(o,s)}var a=this.spliceItemsIntoValues_(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice_(e,n,a),this.dehanceValues_(a)},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=e+n.length-t;for(var s=0;s<n.length;s++)this.values_[e+s]=n[s];for(var a=0;a<i.length;a++)this.values_[e+n.length+a]=i[a];return o},t.notifyArrayChildUpdate_=function(e,t,n){var r=!this.owned_&&si(),o=Ui(this),i=o||r?{observableKind:"array",object:this.proxy_,type:Ki,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;"production"!==process.env.NODE_ENV&&r&&ci(i),this.atom_.reportChanged(),o&&Gi(this,i),"production"!==process.env.NODE_ENV&&r&&li()},t.notifyArraySplice_=function(e,t,n){var r=!this.owned_&&si(),o=Ui(this),i=o||r?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;"production"!==process.env.NODE_ENV&&r&&ci(i),this.atom_.reportChanged(),o&&Gi(this,i),"production"!==process.env.NODE_ENV&&r&&li()},t.get_=function(e){if(e<this.values_.length)return this.atom_.reportObserved(),this.dehanceValue_(this.values_[e]);console.warn("production"!==process.env.NODE_ENV?"[mobx] Out of bounds read: "+e:"[mobx.array] Attempt to read an array index ("+e+") that is out of bounds ("+this.values_.length+"). Please check length first. Out of bound indices will not be tracked by MobX")},t.set_=function(e,t){var n=this.values_;if(e<n.length){jo(this.atom_);var r=n[e];if(Vi(this)){var o=Bi(this,{type:Ki,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 e===n.length?this.spliceWithArray_(e,0,[t]):Kn(17,e,n.length)},e}();function $i(e,t,n,r){void 0===n&&(n="ObservableArray@"+rr()),void 0===r&&(r=!1),tr();var o=new Wi(n,t,r,!1);fr(o.values_,xr,o);var i=new Proxy(o.values_,Xi);if(o.proxy_=i,e&&e.length){var s=wo(!0);o.spliceWithArray_(0,0,e),No(s)}return i}var Hi={clear:function(){return this.splice(0)},replace:function(e){var t=this[xr];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[xr];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[xr].spliceWithArray_(e,t,n)},push:function(){for(var e=this[xr],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[xr].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[xr],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 Wo.trackingDerivation&&Kn(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){Wo.trackingDerivation&&Kn(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[xr],n=t.dehanceValues_(t.values_).indexOf(e);return n>-1&&(this.splice(n,1),!0)}};function Yi(e,t){"function"==typeof Array.prototype[e]&&(Hi[e]=t(e))}function Ji(e){return function(){var t=this[xr];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function zi(e){return function(t,n){var r=this,o=this[xr];return o.atom_.reportObserved(),o.dehanceValues_(o.values_)[e]((function(e,o){return t.call(n,e,o,r)}))}}function Qi(e){return function(){var t=this,n=this[xr];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)}}Yi("concat",Ji),Yi("flat",Ji),Yi("includes",Ji),Yi("indexOf",Ji),Yi("join",Ji),Yi("lastIndexOf",Ji),Yi("slice",Ji),Yi("toString",Ji),Yi("toLocaleString",Ji),Yi("every",zi),Yi("filter",zi),Yi("find",zi),Yi("findIndex",zi),Yi("flatMap",zi),Yi("forEach",zi),Yi("map",zi),Yi("some",zi),Yi("reduce",Qi),Yi("reduceRight",Qi);var Zi,es,ts=pr("ObservableArrayAdministration",Wi);function ns(e){return cr(e)&&ts(e[xr])}var rs={},os="add";Zi=Symbol.iterator,es=Symbol.toStringTag;var is,ss,as=function(){function e(e,t,n){void 0===t&&(t=Ir),void 0===n&&(n="ObservableMap@"+rr()),this.enhancer_=void 0,this.name_=void 0,this[xr]=rs,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,sr(Map)||Kn(18),this.keysAtom_=Lr(this.name_+".keys()"),this.data_=new Map,this.hasMap_=new Map,this.merge(e)}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!Wo.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new Co(this.has_(e),Vr,this.name_+"."+yr(e)+"?",!1);this.hasMap_.set(e,r),Oi(r,(function(){return t.hasMap_.delete(e)}))}return n.get()},t.set=function(e,t){var n=this.has_(e);if(Vi(this)){var r=Bi(this,{type:n?Ki:os,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((jo(this.keysAtom_),Vi(this))&&!Bi(this,{type:"delete",object:this,name:e}))return!1;if(this.has_(e)){var n=si(),r=Ui(this),o=r||n?{observableKind:"map",debugObjectName:this.name_,type:"delete",object:this,oldValue:this.data_.get(e).value_,name:e}:null;return"production"!==process.env.NODE_ENV&&n&&ci(o),Li((function(){t.keysAtom_.reportChanged(),t.updateHasMapEntry_(e,!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)})),r&&Gi(this,o),"production"!==process.env.NODE_ENV&&n&&li(),!0}return!1},t.updateHasMapEntry_=function(e,t){var n=this.hasMap_.get(e);n&&n.setNewValue_(t)},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==Wo.UNCHANGED){var r=si(),o=Ui(this),i=o||r?{observableKind:"map",debugObjectName:this.name_,type:Ki,object:this,oldValue:n.value_,name:e,newValue:t}:null;"production"!==process.env.NODE_ENV&&r&&ci(i),n.setNewValue_(t),o&&Gi(this,i),"production"!==process.env.NODE_ENV&&r&&li()}},t.addValue_=function(e,t){var n=this;jo(this.keysAtom_),Li((function(){var r=new Co(t,n.enhancer_,n.name_+"."+yr(e),!1);n.data_.set(e,r),t=r.value_,n.updateHasMapEntry_(e,!0),n.keysAtom_.reportChanged()}));var r=si(),o=Ui(this),i=o||r?{observableKind:"map",debugObjectName:this.name_,type:os,object:this,name:e,newValue:t}:null;"production"!==process.env.NODE_ENV&&r&&ci(i),o&&Gi(this,i),"production"!==process.env.NODE_ENV&&r&&li()},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 Is({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 Is({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:[o,e.get(o)]}}})},t[Zi]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=Cr(this);!(n=r()).done;){var o=n.value,i=o[0],s=o[1];e.call(t,s,i,this)}},t.merge=function(e){var t=this;return cs(e)&&(e=new Map(e)),Li((function(){ur(e)?function(e){var t=Object.keys(e);if(!vr)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter((function(t){return Jn.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)})):dr(e)?(e.constructor!==Map&&Kn(19,e),e.forEach((function(e,n){return t.set(n,e)}))):null!=e&&Kn(20,e)})),this},t.clear=function(){var e=this;Li((function(){Fo((function(){for(var t,n=Cr(e.keys());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.replace=function(e){var t=this;return Li((function(){for(var n,r=function(e){if(dr(e)||cs(e))return e;if(Array.isArray(e))return new Map(e);if(ur(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return Kn(21,e)}(e),o=new Map,i=!1,s=Cr(t.data_.keys());!(n=s()).done;){var a=n.value;if(!r.has(a))if(t.delete(a))i=!0;else{var c=t.data_.get(a);o.set(a,c)}}for(var u,l=Cr(r.entries());!(u=l()).done;){var f=u.value,p=f[0],d=f[1],h=t.data_.has(p);if(t.set(p,d),t.data_.has(p)){var v=t.data_.get(p);o.set(p,v),h||(i=!0)}}if(!i)if(t.data_.size!==o.size)t.keysAtom_.reportChanged();else for(var _=t.data_.keys(),y=o.keys(),m=_.next(),g=y.next();!m.done;){if(m.value!==g.value){t.keysAtom_.reportChanged();break}m=_.next(),g=y.next()}t.data_=o})),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return"production"!==process.env.NODE_ENV&&!0===t&&Kn("`observe` doesn't support fireImmediately=true in combination with maps."),Mi(this,e)},t.intercept_=function(e){return Fi(this,e)},Er(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:es,get:function(){return"Map"}}]),e}(),cs=pr("ObservableMap",as);var us={};is=Symbol.iterator,ss=Symbol.toStringTag;var ls=function(){function e(e,t,n){void 0===t&&(t=Ir),void 0===n&&(n="ObservableSet@"+rr()),this.name_=void 0,this[xr]=us,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,sr(Set)||Kn(22),this.atom_=Lr(this.name_),this.enhancer_=function(e,r){return t(e,r,n)},e&&this.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;Li((function(){Fo((function(){for(var t,n=Cr(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.forEach=function(e,t){for(var n,r=Cr(this);!(n=r()).done;){var o=n.value;e.call(t,o,o,this)}},t.add=function(e){var t=this;if((jo(this.atom_),Vi(this))&&!Bi(this,{type:os,object:this,newValue:e}))return this;if(!this.has(e)){Li((function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()}));var n="production"!==process.env.NODE_ENV&&si(),r=Ui(this),o=r||n?{observableKind:"set",debugObjectName:this.name_,type:os,object:this,newValue:e}:null;n&&"production"!==process.env.NODE_ENV&&ci(o),r&&Gi(this,o),n&&"production"!==process.env.NODE_ENV&&li()}return this},t.delete=function(e){var t=this;if(Vi(this)&&!Bi(this,{type:"delete",object:this,oldValue:e}))return!1;if(this.has(e)){var n="production"!==process.env.NODE_ENV&&si(),r=Ui(this),o=r||n?{observableKind:"set",debugObjectName:this.name_,type:"delete",object:this,oldValue:e}:null;return n&&"production"!==process.env.NODE_ENV&&ci(o),Li((function(){t.atom_.reportChanged(),t.data_.delete(e)})),r&&Gi(this,o),n&&"production"!==process.env.NODE_ENV&&li(),!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 Is({next:function(){var r=e;return e+=1,r<n.length?{value:[t[r],n[r]],done:!1}:{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 Is({next:function(){return t<n.length?{value:e.dehanceValue_(n[t++]),done:!1}:{done:!0}}})},t.replace=function(e){var t=this;return fs(e)&&(e=new Set(e)),Li((function(){Array.isArray(e)||hr(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!=e&&Kn("Cannot initialize set from "+e)})),this},t.observe_=function(e,t){return"production"!==process.env.NODE_ENV&&!0===t&&Kn("`observe` doesn't support fireImmediately=true in combination with sets."),Mi(this,e)},t.intercept_=function(e){return Fi(this,e)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[is]=function(){return this.values()},Er(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:ss,get:function(){return"Set"}}]),e}(),fs=pr("ObservableSet",ls),ps=Symbol("mobx-inferred-annotations"),ds=Object.create(null),hs=function(){function e(e,t,n,r,o){void 0===t&&(t=new Map),void 0===r&&(r=po),void 0===o&&(o=!1),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.autoBind_=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.autoBind_=o,this.keysAtom_=new Pr(n+".keys"),this.isPlainObject_=ur(this.target_),"production"===process.env.NODE_ENV||Bs(this.defaultAnnotation_)||Kn("defaultAnnotation must be valid annotation"),"production"!==process.env.NODE_ENV&&"boolean"!=typeof this.autoBind_&&Kn("autoBind must be boolean"),"production"!==process.env.NODE_ENV&&(this.appliedAnnotations_={})}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 ko)return n.set(t),!0;if(Vi(this)){var r=Bi(this,{type:Ki,object:this.proxy_||this.target_,name:e,newValue:t});if(!r)return null;t=r.newValue}if((t=n.prepareNewValue_(t))!==Wo.UNCHANGED){var o=Ui(this),i="production"!==process.env.NODE_ENV&&si(),s=o||i?{type:Ki,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;"production"!==process.env.NODE_ENV&&i&&ci(s),n.setNewValue_(t),o&&Gi(this,s),"production"!==process.env.NODE_ENV&&i&&li()}return!0},t.get_=function(e){return Wo.trackingDerivation&&!gr(this.target_,e)&&this.has_(e),this.target_[e]},t.set_=function(e,t,n){return void 0===n&&(n=!1),gr(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(!Wo.trackingDerivation)return e in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var t=this.pendingKeys_.get(e);return t||(t=new Co(e in this.target_,Vr,this.name_+"."+yr(e)+"?",!1),this.pendingKeys_.set(e,t)),t.get()},t.make_=function(e,t){!0===t&&(t=this.inferAnnotation_(e)),!1!==t&&(bs(this,t,e),t.make_(this,e))},t.extend_=function(e,t,n,r){if(void 0===r&&(r=!1),!0===n&&(n=Fs(t,this.defaultAnnotation_,this.autoBind_)),!1===n)return this.defineProperty_(e,t,r);bs(this,n,e);var o=n.extend_(this,e,t,r);return o&&gs(this,n,e),o},t.inferAnnotation_=function(e){var t,n=null==(t=this.target_[ps])?void 0:t[e];if(n)return n;for(var r=this.target_;r&&r!==Jn;){var o=Hn(r,e);if(o){n=Fs(o,this.defaultAnnotation_,this.autoBind_);break}r=Object.getPrototypeOf(r)}if(void 0===n&&Kn(1,"true",e),!this.isPlainObject_){var i=Object.getPrototypeOf(this.target_);gr(i,ps)||lr(i,ps,{}),i[ps][e]=n}return n},t.defineProperty_=function(e,t,n){void 0===n&&(n=!1);try{Jo();var r=this.delete_(e);if(!r)return r;if(Vi(this)){var o=Bi(this,{object:this.proxy_||this.target_,name:e,type:os,newValue:t.value});if(!o)return null;var i=o.newValue;t.value!==i&&(t=Sr({},t,{value:i}))}if(n){if(!Reflect.defineProperty(this.target_,e,t))return!1}else Yn(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{zo()}return!0},t.defineObservableProperty_=function(e,t,n,r){void 0===r&&(r=!1);try{Jo();var o=this.delete_(e);if(!o)return o;if(Vi(this)){var i=Bi(this,{object:this.proxy_||this.target_,name:e,type:os,newValue:t});if(!i)return null;t=i.newValue}var s=ys(e),a={configurable:!Wo.safeDescriptors||this.isPlainObject_,enumerable:!0,get:s.get,set:s.set};if(r){if(!Reflect.defineProperty(this.target_,e,a))return!1}else Yn(this.target_,e,a);var c=new Co(t,n,this.name_+"."+yr(e),!1);this.values_.set(e,c),this.notifyPropertyAddition_(e,c.value_)}finally{zo()}return!0},t.defineComputedProperty_=function(e,t,n){void 0===n&&(n=!1);try{Jo();var r=this.delete_(e);if(!r)return r;if(Vi(this))if(!Bi(this,{object:this.proxy_||this.target_,name:e,type:os,newValue:void 0}))return null;t.name||(t.name=this.name_+"."+yr(e)),t.context=this.proxy_||this.target_;var o=ys(e),i={configurable:!Wo.safeDescriptors||this.isPlainObject_,enumerable:!1,get:o.get,set:o.set};if(n){if(!Reflect.defineProperty(this.target_,e,i))return!1}else Yn(this.target_,e,i);this.values_.set(e,new ko(t)),this.notifyPropertyAddition_(e,void 0)}finally{zo()}return!0},t.delete_=function(e,t){if(void 0===t&&(t=!1),!gr(this.target_,e))return!0;if(Vi(this)&&!Bi(this,{object:this.proxy_||this.target_,name:e,type:"remove"}))return null;try{var n,r;Jo();var o,i=Ui(this),s="production"!==process.env.NODE_ENV&&si(),a=this.values_.get(e),c=void 0;if(!a&&(i||s))c=null==(o=Hn(this.target_,e))?void 0:o.value;if(t){if(!Reflect.deleteProperty(this.target_,e))return!1}else delete this.target_[e];if("production"!==process.env.NODE_ENV&&delete this.appliedAnnotations_[e],a&&(this.values_.delete(e),a instanceof Co&&(c=a.value_),Zo(a)),this.keysAtom_.reportChanged(),null==(n=this.pendingKeys_)||null==(r=n.get(e))||r.set(e in this.target_),i||s){var u={type:"remove",observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:c,name:e};"production"!==process.env.NODE_ENV&&s&&ci(u),i&&Gi(this,u),"production"!==process.env.NODE_ENV&&s&&li()}}finally{zo()}return!0},t.observe_=function(e,t){return"production"!==process.env.NODE_ENV&&!0===t&&Kn("`observe` doesn't support the fire immediately property for observable objects."),Mi(this,e)},t.intercept_=function(e){return Fi(this,e)},t.notifyPropertyAddition_=function(e,t){var n,r,o=Ui(this),i="production"!==process.env.NODE_ENV&&si();if(o||i){var s=o||i?{type:os,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;"production"!==process.env.NODE_ENV&&i&&ci(s),o&&Gi(this,s),"production"!==process.env.NODE_ENV&&i&&li()}null==(n=this.pendingKeys_)||null==(r=n.get(e))||r.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),_r(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function vs(e,t){var n;if("production"!==process.env.NODE_ENV&&t&&ms(e)&&Kn("Options can't be provided for already observable objects."),gr(e,xr))return e;"production"===process.env.NODE_ENV||Object.isExtensible(e)||Kn("Cannot make the designated object observable; it is not extensible");var r=null!=(n=null==t?void 0:t.name)?n:(ur(e)?"ObservableObject":e.constructor.name)+"@"+rr(),o=new hs(e,new Map,yr(r),function(e){return e?!0===e.deep?ro:!1===e.deep?oo:e.defaultDecorator:void 0}(t),null==t?void 0:t.autoBind);return lr(e,xr,o),e}var _s=pr("ObservableObjectAdministration",hs);function ys(e){return ds[e]||(ds[e]={get:function(){return this[xr].getObservablePropValue_(e)},set:function(t){return this[xr].setObservablePropValue_(e,t)}})}function ms(e){return!!cr(e)&&_s(e[xr])}function gs(e,t,n){"production"!==process.env.NODE_ENV&&(e.appliedAnnotations_[n]=t),t.isDecorator_&&delete e.target_[Ar][n]}function bs(e,t,n){if("production"===process.env.NODE_ENV||Bs(t)||Kn("Cannot annotate '"+e.name_+"."+n.toString()+"': Invalid annotation."),"production"!==process.env.NODE_ENV&&!Fr(t)&&gr(e.appliedAnnotations_,n)){var r=e.name_+"."+n.toString(),o=e.appliedAnnotations_[n].annotationType_;Kn("Cannot apply '"+t.annotationType_+"' to '"+r+"':\nThe field is already annotated with '"+o+"'.\nRe-annotating fields is not allowed.\nUse 'override' annotation for methods overriden by subclass.")}}var Os,Es,Ss=0,ws=function(){};Os=ws,Es=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(Os.prototype,Es):void 0!==Os.prototype.__proto__?Os.prototype.__proto__=Es:Os.prototype=Es;var Ns=function(e){function t(t,n,r,o){var i;void 0===r&&(r="ObservableArray@"+rr()),void 0===o&&(o=!1),i=e.call(this)||this;var s=new Wi(r,n,o,!0);if(s.proxy_=Nr(i),fr(Nr(i),xr,s),t&&t.length){var a=wo(!0);i.spliceWithArray(0,0,t),No(a)}return i}wr(t,e);var n=t.prototype;return n.concat=function(){this[xr].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 ns(e)?e.slice():e})))},n[Symbol.iterator]=function(){var e=this,t=0;return Is({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})},Er(t,[{key:"length",get:function(){return this[xr].getArrayLength_()},set:function(e){this[xr].setArrayLength_(e)}},{key:Symbol.toStringTag,get:function(){return"Array"}}]),t}(ws);function Ts(e){Yn(Ns.prototype,""+e,function(e){return{enumerable:!1,configurable:!0,get:function(){return this[xr].get_(e)},set:function(t){this[xr].set_(e,t)}}}(e))}function Cs(e){if(e>Ss){for(var t=Ss;t<e+100;t++)Ts(t);Ss=e}}function As(e,t,n){return new Ns(e,t,n)}function Ds(e,t){if("object"==typeof e&&null!==e){if(ns(e))return void 0!==t&&Kn(23),e[xr].atom_;if(fs(e))return e[xr];if(cs(e)){if(void 0===t)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||Kn(25,t,xs(e)),n}if(ms(e)){if(!t)return Kn(26);var r=e[xr].values_.get(t);return r||Kn(27,t,xs(e)),r}if(Rr(e)||xo(e)||ii(e))return e}else if(sr(e)&&ii(e[xr]))return e[xr];Kn(28)}function ks(e,t){return e||Kn(29),void 0!==t?ks(Ds(e,t)):Rr(e)||xo(e)||ii(e)||cs(e)||fs(e)?e:e[xr]?e[xr]:void Kn(24,e)}function xs(e,t){return(void 0!==t?Ds(e,t):ms(e)||cs(e)||fs(e)?ks(e):Ds(e)).name_}Object.entries(Hi).forEach((function(e){var t=e[0],n=e[1];"concat"!==t&&lr(Ns.prototype,t,n)})),Cs(1e3);var Ps=Jn.toString;function Rs(e,t,n){return void 0===n&&(n=-1),Ls(e,t,n)}function Ls(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(!sr(i)&&"object"!==i&&"object"!=typeof t)return!1;var s=Ps.call(e);if(s!==Ps.call(t))return!1;switch(s){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=js(e),t=js(t);var a="[object Array]"===s;if(!a){if("object"!=typeof e||"object"!=typeof t)return!1;var c=e.constructor,u=t.constructor;if(c!==u&&!(sr(c)&&c instanceof c&&sr(u)&&u instanceof u)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),o=o||[];for(var l=(r=r||[]).length;l--;)if(r[l]===e)return o[l]===t;if(r.push(e),o.push(t),a){if((l=e.length)!==t.length)return!1;for(;l--;)if(!Ls(e[l],t[l],n-1,r,o))return!1}else{var f,p=Object.keys(e);if(l=p.length,Object.keys(t).length!==l)return!1;for(;l--;)if(!gr(t,f=p[l])||!Ls(e[f],t[f],n-1,r,o))return!1}return r.pop(),o.pop(),!0}function js(e){return ns(e)?e.slice():dr(e)||cs(e)||hr(e)||fs(e)?Array.from(e.entries()):e}function Is(e){return e[Symbol.iterator]=Vs,e}function Vs(){return this}function Fs(e,t,n){return e.get?_o:!e.set&&(sr(e.value)?(r=e.value,!(o=null==r?void 0:r.constructor)||"GeneratorFunction"!==o.name&&"GeneratorFunction"!==o.displayName?!gi(e.value)&&(n?mi.bound:mi):!ki(e.value)&&Ai):t);var r,o}function Bs(e){return e instanceof Object&&"string"==typeof e.annotationType_&&sr(e.make_)&&sr(e.extend_)}["Symbol","Map","Set","Symbol"].forEach((function(e){void 0===Wn()[e]&&Kn("MobX requires global '"+e+"' to be available or polyfilled")})),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return"production"===process.env.NODE_ENV?(console.warn("[mobx.spy] Is a no-op in production builds"),function(){}):(Wo.spyListeners.push(e),or((function(){Wo.spyListeners=Wo.spyListeners.filter((function(t){return t!==e}))})))},extras:{getDebugName:xs},$mobx:xr});var Us,Ms=function(e){this.id=e.id||"",this.componentId=e.componentId||"",this.propValues=e.propValues||{},qi(this)},Gs=function(e){this.id=e.id||Date.now()+"",this.name=e.name||null,this.type=e.type||Us.INDEX,this.slug=e.slug||null,this.pageTitle=e.pageTitle||null,this.description=e.description||null,this.components=e.components?e.components.map((function(e){return new Ms(e)})):[],this.specifications=e.specifications?e.specifications.map((function(e){return new qs(e)})):null,qi(this)},qs=function(e){this.id=e.id||"",this.components=e.components?e.components.map((function(e){return new Ms(e)})):[],qi(this)};!function(e){e.INDEX="INDEX",e.CATEGORY="CATEGORY",e.BRAND="BRAND",e.PRODUCT="PRODUCT",e.CUSTOM="CUSTOM",e.ACCOUNT="ACCOUNT",e.ADDRESSES="ADDRESSES",e.ORDERS="ORDERS",e.ORDER_DETAIL="ORDER_DETAIL",e.LOGIN="LOGIN",e.REGISTER="REGISTER",e.FORGOT_PASSWORD="FORGOT_PASSWORD",e.RECOVER_PASSWORD="RECOVER_PASSWORD",e.CART="CART",e.FAVORITE_PRODUCTS="FAVORITE_PRODUCTS",e.SEARCH="SEARCH",e.NOT_FOUND="NOT_FOUND",e.BLOG="BLOG",e.BLOG_INDEX="BLOG_INDEX",e.BLOG_CATEGORY="BLOG_CATEGORY",e.CHECKOUT="CHECKOUT",e.RAFFLE="RAFFLE",e.RAFFLE_DETAIL="RAFFLE_DETAIL",e.RAFFLE_ACCOUNT="RAFFLE_ACCOUNT"}(Us||(Us={}));var Ks,Xs=[{path:"[slug]/index.tsx",pageComponentName:"SlugPage",pageTypes:[Us.PRODUCT,Us.CATEGORY,Us.BRAND],isDynamicSSG:!0},{path:"account/orders/[id].tsx",pageComponentName:"OrderDetailPage",pageTypes:[Us.ORDER_DETAIL],isSSR:!0},{path:"account/orders/index.tsx",pageComponentName:"OrdersPage",pageTypes:[Us.ORDERS]},{path:"account/addresses.tsx",pageComponentName:"AddressesPage",pageTypes:[Us.ADDRESSES]},{path:"account/favorite-products.tsx",pageComponentName:"FavoriteProductsPage",pageTypes:[Us.FAVORITE_PRODUCTS]},{path:"account/forgot-password.tsx",pageComponentName:"ForgotPasswordPage",pageTypes:[Us.FORGOT_PASSWORD]},{path:"account/index.tsx",pageComponentName:"AccountPage",pageTypes:[Us.ACCOUNT]},{path:"account/login.tsx",pageComponentName:"LoginPage",pageTypes:[Us.LOGIN]},{path:"account/raffles.tsx",pageComponentName:"AccountRafflesPage",pageTypes:[Us.RAFFLE_ACCOUNT]},{path:"account/recover-password.tsx",pageComponentName:"RecoverPasswordPage",pageTypes:[Us.RECOVER_PASSWORD]},{path:"account/register.tsx",pageComponentName:"RegisterPage",pageTypes:[Us.REGISTER]},{path:"blog/[slug].tsx",pageComponentName:"BlogSlugPage",pageTypes:[Us.BLOG,Us.BLOG_CATEGORY],isDynamicSSG:!0},{path:"blog/index.tsx",pageComponentName:"BlogPage",pageTypes:[Us.BLOG_INDEX]},{path:"pages/[slug].tsx",pageComponentName:"CustomPage",pageTypes:[Us.CUSTOM],isDynamicSSG:!0},{path:"raffle/[slug].tsx",pageComponentName:"RafflePage",pageTypes:[Us.RAFFLE_DETAIL],isDynamicSSG:!0},{path:"raffle/index.tsx",pageComponentName:"RafflesPage",pageTypes:[Us.RAFFLE]},{path:"404.tsx",pageComponentName:"NotFoundPage",pageTypes:[Us.NOT_FOUND]},{path:"cart.tsx",pageComponentName:"CartPage",pageTypes:[Us.CART]},{path:"index.tsx",pageComponentName:"IndexPage",pageTypes:[Us.INDEX]},{path:"search.tsx",pageComponentName:"SearchPage",pageTypes:[Us.SEARCH]},{path:"checkout.tsx",pageComponentName:"CheckoutPage",pageTypes:[],isCheckout:!0},{path:"editor.tsx",pageComponentName:"EditorPage",pageTypes:[],isEditor:!0}],Ws=function(){function t(){}return t.generate=function(){yt(e.join(process.cwd(),"src","pages"),["_app.tsx","_document.tsx","api"]);for(var n=!0,r=0,o=Xs;r<o.length;r++){var i=o[r];n=n&&t.generatePageWithInfo(i)}var s=Xs.find((function(e){return e.isCheckout})),a=Xs.find((function(e){return e.isEditor})),c=!!s&&t.generatePageWithInfo(s),u=!!a&&t.generatePageWithInfo(a);return n&&c&&u},t.generatePageWithInfo=function(t){try{var n="";if(t.isCheckout)n='import { CheckoutPage } from "@ikas/storefront";\n\nexport default CheckoutPage.default;\nexport const getStaticProps = CheckoutPage.getStaticProps;\n';else if(t.isEditor)n='import { EditorPage } from "@ikas/storefront";\nimport Components from "../components/__generated__/editor";\n\nconst PageComponent = EditorPage.default;\n\nconst Page = (props: any) => {\n return <PageComponent components={Components} {...props} />;\n};\n\nexport default Page;\nexport const getStaticProps = EditorPage.getStaticProps;\n';else{var r="import { "+t.pageComponentName+' } from "@ikas/storefront";\r\n';n=r+'import Components from "src/components/__generated__/index";\r\n'+("\nconst PageComponent = "+t.pageComponentName+".default;\n\nconst Page = (props: any) => {\n return <PageComponent components={Components} {...props} />;\n};\n\nexport default Page;\r\n")+(t.isDynamicSSG?"export const getStaticPaths = "+t.pageComponentName+".getStaticPaths;\r\n":"")+(t.isSSR?"export const getServerSideProps = "+t.pageComponentName+".getServerSideProps;\r\n":"export const getStaticProps = "+t.pageComponentName+".getStaticProps;\r\n")}return mt(e.join(process.cwd(),"src","pages"),t.path,n)}catch(e){return console.error(e),!1}},t.generatePageWithType=function(e){var n=Xs.find((function(t){return t.pageTypes.includes(e)}));return!!n&&t.generatePageWithInfo(n)},t}(),$s=function(){function t(){}return t.generate=function(){return!!_t.existsSync(e.join(process.cwd(),"src","store","index.ts"))||mt(e.join(process.cwd(),"src","store"),"index.ts",'import { IkasBaseStore } from "@ikas/storefront";\n\nexport default class Store extends IkasBaseStore {\n // Add your own stores here if needed\n // ex: yourStore: YourStore;\n\n constructor() {\n super();\n\n // Init your own stores here\n // ex: this.yourStore = new YourStore();\n }\n}\n')},t}(),Hs=function(e){this.id=e.id||Date.now()+"",this.name=e.name||"",this.displayName=e.displayName||"",this.type=e.type||Ks.TEXT,this.isRequired=e.isRequired||!1,this.customDataId=e.customDataId||null,this.attributeTypes=e.attributeTypes||null,qi(this)};!function(e){e.TEXT="TEXT",e.RICH_TEXT="RICH_TEXT",e.BOOLEAN="BOOLEAN",e.IMAGE="IMAGE",e.IMAGE_LIST="IMAGE_LIST",e.LINK="LINK",e.LIST_OF_LINK="LIST_OF_LINK",e.PRODUCT_DETAIL="PRODUCT_DETAIL",e.PRODUCT_LIST="PRODUCT_LIST",e.PRODUCT_ATTRIBUTE="PRODUCT_ATTRIBUTE",e.PRODUCT_ATTRIBUTE_LIST="PRODUCT_ATTRIBUTE_LIST",e.BRAND="BRAND",e.BRAND_LIST="BRAND_LIST",e.CATEGORY="CATEGORY",e.CATEGORY_LIST="CATEGORY_LIST",e.COLOR="COLOR",e.CUSTOM="CUSTOM",e.COMPONENT="COMPONENT",e.COMPONENT_LIST="COMPONENT_LIST",e.BLOG="BLOG",e.BLOG_LIST="BLOG_LIST",e.BLOG_CATEGORY="BLOG_CATEGORY",e.BLOG_CATEGORY_LIST="BLOG_CATEGORY_LIST",e.RAFFLE="RAFFLE",e.RAFFLE_LIST="RAFFLE_LIST",e.OBJECT="OBJECT",e.STATIC_LIST="STATIC_LIST",e.DYNAMIC_LIST="DYNAMIC_LIST",e.ENUM="ENUM"}(Ks||(Ks={}));var Ys,Js=function(e){this.id=e.id||"",this.dir=e.dir||"",this.displayName=e.displayName||"",this.props=e.props?e.props.map((function(e){return new Hs(e)})):[],this.isHeader=e.isHeader||!1,this.isFooter=e.isFooter||!1,qi(this)},zs=function(){function e(t){var n,r=this;void 0===t&&(t={}),this.customDataId=null,this.id=t.id||"",this.name=t.name||null,this.type=t.type||Ks.TEXT,this.isRequired=void 0===t.isRequired||t.isRequired,this.key=t.key||null,this.parent=t.parent||null,this.itemCount=t.itemCount||null,this.attributeTypes=t.attributeTypes||null,this.enumOptions=(null===(n=t.enumOptions)||void 0===n?void 0:n.map((function(e){return new Qs(e)})))||null,this.customDataId=t.customDataId||null,this.isRoot=t.isRoot||!1,this.nestedData=t.nestedData?t.nestedData.map((function(t){return new e(s(s({},t),{parent:r}))})):null,this.type!==Ks.STATIC_LIST||this.itemCount||(this.itemCount=1),qi(this)}return e.prototype.toJSON=function(){var e=s({},this);return delete e.parent,e},e}(),Qs=function(e){void 0===e&&(e={}),this.id=e.id||"",this.displayName=e.displayName||"",this.value=e.value||"",qi(this)},Zs=new Uint8Array(16);function ea(){if(!Ys&&!(Ys="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ys(Zs)}var ta=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function na(e){return"string"==typeof e&&ta.test(e)}for(var ra=[],oa=0;oa<256;++oa)ra.push((oa+256).toString(16).substr(1));function ia(e,t,n){var r=(e=e||{}).random||(e.rng||ea)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(ra[e[t+0]]+ra[e[t+1]]+ra[e[t+2]]+ra[e[t+3]]+"-"+ra[e[t+4]]+ra[e[t+5]]+"-"+ra[e[t+6]]+ra[e[t+7]]+"-"+ra[e[t+8]]+ra[e[t+9]]+"-"+ra[e[t+10]]+ra[e[t+11]]+ra[e[t+12]]+ra[e[t+13]]+ra[e[t+14]]+ra[e[t+15]]).toLowerCase();if(!na(n))throw TypeError("Stringified UUID is invalid");return n}(r)}var sa,aa=function(e){this.id=e.id||ia(),this.displayName=e.displayName||"",this.key=e.key||"",this.color=e.color||"",qi(this)},ca=function(e){this.id=(null==e?void 0:e.id)||null,qi(this)},ua=function(e){var t;void 0===e&&(e={}),this.colors=e.colors?e.colors.map((function(e){return new aa(e)})):[],this.favicon=(null===(t=e.favicon)||void 0===t?void 0:t.id)?e.favicon:new ca,this.stockPreference=e.stockPreference||sa.SHOW_ALL,qi(this)};!function(e){e.HIDE_OUT_OF_STOCK="HIDE_OUT_OF_STOCK",e.SHOW_ALL="SHOW_ALL",e.SHOW_OUT_OF_STOCK_AT_END="SHOW_OUT_OF_STOCK_AT_END"}(sa||(sa={}));var la=function(){function e(e){var t;void 0===e&&(e={}),this.name=e.name||"",this.components=e.components?e.components.map((function(e){return new Js(e)})):[],this.pages=e.pages?e.pages.map((function(e){return new Gs(e)})):[],this.settings=e.settings?new ua(e.settings):new ua,this.customData=e.customData?null===(t=e.customData)||void 0===t?void 0:t.map((function(e){return new zs(e)})):[],this.createCheckoutData(),qi(this)}return Object.defineProperty(e.prototype,"headerComponent",{get:function(){return this.components.find((function(e){return e.isHeader}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"footerComponent",{get:function(){return this.components.find((function(e){return e.isFooter}))},enumerable:!1,configurable:!0}),e.prototype.createCheckoutData=function(){var e=this.components.find((function(e){return"checkout"===e.id})),t=this.pages.find((function(e){return"checkout"===e.id}));e||(e=new Js({id:"checkout",dir:"",displayName:"",props:[new Hs({name:"buttonBgColor",isRequired:!1,type:Ks.COLOR}),new Hs({name:"buttonTextColor",isRequired:!1,type:Ks.COLOR}),new Hs({name:"buttonDisabledBgColor",isRequired:!1,type:Ks.COLOR}),new Hs({name:"buttonDisabledTextColor",isRequired:!1,type:Ks.COLOR}),new Hs({name:"primaryTextColor",isRequired:!1,type:Ks.COLOR}),new Hs({name:"secondaryTextColor",isRequired:!1,type:Ks.COLOR}),new Hs({name:"primaryBgColor",isRequired:!1,type:Ks.COLOR}),new Hs({name:"secondaryBgColor",isRequired:!1,type:Ks.COLOR}),new Hs({name:"borderColor",isRequired:!1,type:Ks.COLOR}),new Hs({name:"cardBgColor",isRequired:!1,type:Ks.COLOR}),new Hs({name:"errorColor",isRequired:!1,type:Ks.COLOR}),new Hs({name:"errorLightColor",isRequired:!1,type:Ks.COLOR}),new Hs({name:"warningColor",isRequired:!1,type:Ks.COLOR}),new Hs({name:"warningLightColor",isRequired:!1,type:Ks.COLOR}),new Hs({name:"successColor",isRequired:!1,type:Ks.COLOR}),new Hs({name:"successLightColor",isRequired:!1,type:Ks.COLOR})]}),this.components.push(e)),t||this.pages.push(new Gs({id:"checkout",type:Us.CHECKOUT,components:[new Ms({componentId:e.id,propValues:{buttonBgColor:fa,buttonTextColor:pa,buttonDisabledBgColor:da,buttonDisabledTextColor:ha,primaryTextColor:va,secondaryTextColor:_a,primaryBgColor:ya,secondaryBgColor:ma,borderColor:ga,cardBgColor:ba,errorColor:Oa,errorLightColor:Ea,warningColor:Sa,warningLightColor:wa,successColor:Na,successLightColor:Ta}})]}))},e}(),fa="#272727",pa="#FFFFFF",da="#F7F7F9",ha="#8A8B94",va="#272727",_a="#8A8B94",ya="#FFFFFF",ma="#F7F7F9",ga="#E5E4E9",ba="#F7F7F9",Oa="#FB4E4E",Ea="#FCF3F4",Sa="#FFBC1F",wa="#FFFAEE",Na="#2DCA73",Ta="#F6FFED",Ca=function(){function t(){}return t.generate=function(t){return mt(e.join(process.cwd(),"src","theme.json"),"",JSON.stringify(t,null,2))},t.generateInitialThemeJsonFile=function(){var e=new la;return e.pages.push(new Gs({type:Us.INDEX})),t.generate(e)},t.getTheme=function(){try{var t=e.join(process.cwd(),"src","theme.json"),n=_t.readFileSync(t);return n.length?JSON.parse(n.toString()):null}catch(e){console.error(e)}},t}();export{bt as APIGenerator,Ot as ComponentImportsGenerator,Gn as ConfigGenerator,Ws as PageGenerator,$s as StoreGenerator,Ca as ThemeJsonGenerator};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IkasTheme } from "../../../models/theme/theme";
|
|
2
|
-
export
|
|
2
|
+
export declare class ComponentImportsGenerator {
|
|
3
3
|
static generate(themeJson: IkasTheme): boolean;
|
|
4
4
|
static generateAllComponentImportsFileForEditor(themeJson: IkasTheme): boolean;
|
|
5
5
|
static generateAllComponentImportsFile(themeJson: IkasTheme): boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IkasThemePageType } from "../../../models/theme/page";
|
|
2
2
|
import { PageInfo } from "./info";
|
|
3
|
-
export
|
|
3
|
+
export declare class PageGenerator {
|
|
4
4
|
static generate(): boolean;
|
|
5
5
|
static generatePageWithInfo(pageInfo: PageInfo): boolean;
|
|
6
6
|
static generatePageWithType(pageType: IkasThemePageType): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IkasTheme } from "../../../models/theme/theme";
|
|
2
|
-
export
|
|
2
|
+
export declare class ThemeJsonGenerator {
|
|
3
3
|
static generate(themeJson: IkasTheme): boolean;
|
|
4
4
|
static generateInitialThemeJsonFile(): boolean;
|
|
5
5
|
static getTheme(): any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IkasTheme } from "../../../models/theme/theme";
|
|
2
|
-
export
|
|
2
|
+
export declare class ThemeJsonGenerator {
|
|
3
3
|
static generate(themeJson: IkasTheme): boolean;
|
|
4
4
|
static generateInitialThemeJsonFile(): boolean;
|
|
5
5
|
static getTheme(): any;
|