arbor-timetravel
Version:
Provides time traveling functionality to Arbor stores
1 lines • 45.1 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["arbor-store"]=e():t["arbor-store"]=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=23)}([function(t,e,n){t.exports=!n(3)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var n=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(14),o=n(19),u=n(21),i=Object.defineProperty;e.f=n(0)?Object.defineProperty:function(t,e,n){if(r(t),e=u(e,!0),r(n),o)try{return i(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(8),o=function(t){return t&&t.__esModule?t:{default:t}}(r),u=function(t){return t.timeline=new o.default(t),t};e.default=u},function(t,e,n){!function(e,n){t.exports=n()}(0,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=114)}([function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(66),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()},function(t,e,n){var r=n(32)("wks"),o=n(18),u=n(4).Symbol,i="function"==typeof u;(t.exports=function(t){return r[t]||(r[t]=i&&u[t]||(i?u:o)("Symbol."+t))}).store=r},function(t,e){var n=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(9),o=n(42),u=n(35),i=Object.defineProperty;e.f=n(6)?Object.defineProperty:function(t,e,n){if(r(t),e=u(e,!0),r(n),o)try{return i(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){t.exports=!n(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(4),o=n(3),u=n(24),i=n(10),c=function(t,e,n){var a,f,s,l=t&c.F,p=t&c.G,h=t&c.S,d=t&c.P,v=t&c.B,y=t&c.W,b=p?o:o[e]||(o[e]={}),g=b.prototype,_=p?r:h?r[e]:(r[e]||{}).prototype;p&&(n=e);for(a in n)(f=!l&&_&&void 0!==_[a])&&a in b||(s=f?_[a]:n[a],b[a]=p&&"function"!=typeof _[a]?n[a]:v&&f?u(s,r):y&&_[a]==s?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(s):d&&"function"==typeof s?u(Function.call,s):s,d&&((b.virtual||(b.virtual={}))[a]=s,t&c.R&&g&&!g[a]&&i(g,a,s)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(13);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var r=n(5),o=n(15);t.exports=n(6)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(43),o=n(25);t.exports=function(t){return r(o(t))}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports={}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(47),o=n(26);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(0),u=r(o),i=n(1),c=r(i),a=n(57),f=r(a),s=function(t){return void 0===t||null===t||t.constructor!==Object&&t.constructor!==Array},l=function(t){return t&&void 0!==t.$value?t.$unpack():t},p={set:function(t){return function(e,n){e.$value[n]=l(t)}},transaction:function(t){return function(e,n){var r=e.$refreshChild(n);e.$tree.transactions.push(r),t(r),e.$tree.transactions.pop()}}},h=function(){function t(e,n,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new f.default;if((0,u.default)(this,t),this.constructor===t)throw new TypeError("Node is an abstract class and must be subclassed");this.$tree=e,this.$path=n,this.$value=r,this.$children=o}return(0,c.default)(t,[{key:"get",value:function(t,e){var n=t[e];return this[e]?this[e]:s(n)?n:(this.$children.has(n)||this.$children.set(n,this.$proxify(e,n)),this.$children.get(n))}},{key:"set",value:function(t,e,n){return this.$tree.mutate(this.$path.child(e),p.set(n)),!0}},{key:"$transaction",value:function(t){return this.$tree.mutate(this.$path,p.transaction(t)),this.$path.traverse(this.$tree.root)}},{key:"$refresh",value:function(){return this.$children.clear(),this}},{key:"$refreshChild",value:function(t){var e=this[t].$copy();return this.$value[t]=e.$value,this.$children.set(e.$value,e),e}},{key:"$proxify",value:function(t,e){return this.$tree.create(this.$path.child(t),e)}},{key:"$copy",value:function(){return this.$tree.create(this.$path,this.$unpack(),this.$children)}},{key:"$transactionPath",get:function(){return this.$path.child(".*")}}]),t}();e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(60),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=o.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(67),u=r(o),i=n(65),c=r(i),a=n(40),f=r(a);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,f.default)(e)));t.prototype=(0,c.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(u.default?(0,u.default)(t,e):t.__proto__=e)}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(40),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,o.default)(e))&&"function"!=typeof e?t:e}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(81);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){t.exports=!0},function(t,e,n){var r=n(9),o=n(96),u=n(26),i=n(31)("IE_PROTO"),c=function(){},a=function(){var t,e=n(41)("iframe"),r=u.length;for(e.style.display="none",n(87).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;r--;)delete a.prototype[u[r]];return a()};t.exports=Object.create||function(t,e){var n;return null!==t?(c.prototype=r(t),n=new c,c.prototype=null,n[i]=t):n=a(),void 0===e?n:o(n,e)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(5).f,o=n(8),u=n(2)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,u)&&r(t,u,{configurable:!0,value:e})}},function(t,e,n){var r=n(32)("keys"),o=n(18);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(4),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(25);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(13);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(4),o=n(3),u=n(27),i=n(37),c=n(5).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=u?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||c(e,t,{value:i.f(t)})}},function(t,e,n){e.f=n(2)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectNode=e.ArrayNode=e.Node=void 0;var o=n(19),u=r(o),i=n(56),c=r(i),a=n(58),f=r(a),s=function(t,e,n,r){return Array.isArray(n)?new c.default(t,e,n,r):new f.default(t,e,n,r)};e.default=s,e.Node=u.default,e.ArrayNode=c.default,e.ObjectNode=f.default},function(t,e,n){"use strict";e.__esModule=!0;var r=n(63),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return(0,o.default)(t)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(69),u=r(o),i=n(68),c=r(i),a="function"==typeof c.default&&"symbol"==typeof u.default?function(t){return typeof t}:function(t){return t&&"function"==typeof c.default&&t.constructor===c.default&&t!==c.default.prototype?"symbol":typeof t};e.default="function"==typeof c.default&&"symbol"===a(u.default)?function(t){return void 0===t?"undefined":a(t)}:function(t){return t&&"function"==typeof c.default&&t.constructor===c.default&&t!==c.default.prototype?"symbol":void 0===t?"undefined":a(t)}},function(t,e,n){var r=n(13),o=n(4).document,u=r(o)&&r(o.createElement);t.exports=function(t){return u?o.createElement(t):{}}},function(t,e,n){t.exports=!n(6)&&!n(12)(function(){return 7!=Object.defineProperty(n(41)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(23);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){"use strict";var r=n(27),o=n(7),u=n(48),i=n(10),c=n(8),a=n(14),f=n(91),s=n(30),l=n(98),p=n(2)("iterator"),h=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,v,y,b,g){f(n,e,v);var _,m,x,w=function(t){if(!h&&t in M)return M[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},O=e+" Iterator",j="values"==y,k=!1,M=t.prototype,S=M[p]||M["@@iterator"]||y&&M[y],P=S||w(y),$=y?j?w("entries"):P:void 0,E="Array"==e?M.entries||S:S;if(E&&(x=l(E.call(new t)))!==Object.prototype&&x.next&&(s(x,O,!0),r||c(x,p)||i(x,p,d)),j&&S&&"values"!==S.name&&(k=!0,P=function(){return S.call(this)}),r&&!g||!h&&!k&&M[p]||i(M,p,P),a[e]=P,a[O]=d,y)if(_={values:j?P:w("values"),keys:b?P:w("keys"),entries:$},g)for(m in _)m in M||u(M,m,_[m]);else o(o.P+o.F*(h||k),e,_);return _}},function(t,e,n){var r=n(17),o=n(15),u=n(11),i=n(35),c=n(8),a=n(42),f=Object.getOwnPropertyDescriptor;e.f=n(6)?f:function(t,e){if(t=u(t),e=i(e,!0),a)try{return f(t,e)}catch(t){}if(c(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(47),o=n(26).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(8),o=n(11),u=n(83)(!1),i=n(31)("IE_PROTO");t.exports=function(t,e){var n,c=o(t),a=0,f=[];for(n in c)n!=i&&r(c,n)&&f.push(n);for(;e.length>a;)r(c,n=e[a++])&&(~u(f,n)||f.push(n));return f}},function(t,e,n){t.exports=n(10)},function(t,e,n){var r=n(33),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){"use strict";var r=n(100)(!0);n(44)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.Path=void 0;var o=n(38);Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})});var u=n(52),i=r(u),c=n(20),a=r(c);e.default=i.default,e.Path=a.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(0),u=r(o),i=n(1),c=r(i),a=n(20),f=r(a),s=n(62),l=r(s),p=n(61),h=r(p),d=n(38),v=r(d),y=n(53),b=r(y),g=function t(e,n,r){var o=e.subpath(r.$path.depth+1),u=o.leaf;o.match(e)?n(r,u):t(e,n,r.$refreshChild(u))},_=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,u.default)(this,t),this.pubsub=new h.default,this.models=new y.Registry,this.transactions=new l.default,this.root=this.create(new f.default,e)}return(0,c.default)(t,[{key:"subscribe",value:function(t,e){return this.pubsub.subscribe(t,e)}},{key:"create",value:function(t,e,n){var r=(0,v.default)(this,t,e,n);return this.wrapped(new Proxy(e,r))}},{key:"restore",value:function(t){var e=this.root;this.root=t,this.pubsub.publish(f.default.root,t,e)}},{key:"wrapped",value:function(t){var e=this.models&&this.models.fetch(t.$path);return e?new Proxy(t,new e(t)):t}},{key:"bind",value:function(t){var e=this,n=(0,b.default)(t);return{to:function(){for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];r.forEach(function(t){return e.models.register(t,n)})}}}},{key:"mutate",value:function(t,e){var n=this.transactions.peek();if(n){var r=n.$transactionPath;if(!t.match(r))throw new TypeError("Mutation path "+t+" does not belong to transaction path "+r);g(t,e,n)}else{var o=this.root,u=this.root.$copy();g(t,e,u),this.root=u,this.pubsub.publish(t,u,o)}}},{key:"state",get:function(){return this.root},set:function(t){var e=this;t.constructor===Promise?(this.root=this.create(new f.default,{}),t.then(function(t){return e.restore(e.create(new f.default,t))})):this.root=this.create(new f.default,t)}}]),t}();e.default=_},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.Registry=void 0;var o=n(54),u=r(o),i=n(55),c=r(i);e.default=u.default,e.Registry=c.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),u=r(o),i=n(1),c=r(i),a=n(22),f=r(a),s=n(21),l=r(s),p=function(t){return function(e){function n(t){(0,u.default)(this,n);var e=(0,f.default)(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return e.$proxy=new Proxy(t,e),e}return(0,l.default)(n,e),(0,c.default)(n,[{key:"get",value:function(e,n){if("constructor"===n)return t;var r=e[n];if("function"==typeof r)return r.bind(e);var o=Reflect.get(this,n,this.$proxy);return"function"==typeof o?o.bind(this.$proxy):void 0!==o?o:e[n]}}]),n}(t)};e.default=p},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(0),u=r(o),i=n(1),c=r(i),a=function(){function t(){(0,u.default)(this,t),this.models={}}return(0,c.default)(t,[{key:"fetch",value:function(t){var e=Object.keys(this.models),n=e.find(function(e){return t.match(e)});return this.models[n]}},{key:"register",value:function(t,e){this.models[t.toString()]=e}}]),t}();e.default=a},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(39),u=r(o),i=n(0),c=r(i),a=n(1),f=r(a),s=n(22),l=r(s),p=n(21),h=r(p),d=n(19),v=r(d),y=function(t){function e(){return(0,c.default)(this,e),(0,l.default)(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return(0,h.default)(e,t),(0,f.default)(e,[{key:"fill",value:function(t,e,n){return this.$transaction(function(r){r.$refresh().$value.fill(t,e,n)})}},{key:"sort",value:function(t){return this.$transaction(function(e){e.$refresh().$value.sort(t)})}},{key:"splice",value:function(t,e){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var u=void 0;return this.$transaction(function(n){var o;u=(o=n.$refresh().$value).splice.apply(o,[t,e].concat(r))}),u}},{key:"copyWithin",value:function(t,e,n){return this.$transaction(function(r){r.$refresh().$value.copyWithin(t,e,n)})}},{key:"shift",value:function(){var t=void 0;return this.$transaction(function(e){t=e.$refresh().$value.shift()}),t}},{key:"unshift",value:function(t){var e=void 0;return this.$transaction(function(n){e=n.$refresh().$value.unshift(t)}),e}},{key:"reverse",value:function(){var t=void 0;return this.$transaction(function(e){t=e.$refresh().$value.reverse()}),t}},{key:"$unpack",value:function(){return[].concat((0,u.default)(this.$value))}}]),e}(v.default);e.default=y},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(0),u=r(o),i=n(1),c=r(i),a=function(){function t(){(0,u.default)(this,t),this.items=new WeakMap}return(0,c.default)(t,[{key:"set",value:function(t,e){this.items.set(t,e)}},{key:"get",value:function(t){return this.items.get(t)}},{key:"has",value:function(t){return this.items.has(t)}},{key:"clear",value:function(){this.items=new WeakMap}}]),t}();e.default=a},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(70),u=r(o),i=n(0),c=r(i),a=n(1),f=r(a),s=n(22),l=r(s),p=n(21),h=r(p),d=n(19),v=r(d),y=function(t){function e(){return(0,c.default)(this,e),(0,l.default)(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return(0,h.default)(e,t),(0,f.default)(e,[{key:"$unpack",value:function(){return(0,u.default)({},this.$value)}}]),e}(v.default);e.default=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=function(t){return t&&t.__esModule?t:{default:t}}(r),u=function(t){return function(e){var n={};return function(){function r(){(0,o.default)(this,r);var u=t.apply(void 0,arguments);return n[u]||(n[u]=new(Function.prototype.bind.apply(e,[null].concat(Array.prototype.slice.call(arguments))))),n[u]}return r}()}};e.default=u},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,u,i=n(73),c=r(i),a=n(39),f=r(a),s=n(0),l=r(s),p=n(1),h=r(p),d=n(59),v=r(d),y=(o=(0,v.default)(function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.toString()}))(u=function(){function t(){(0,l.default)(this,t);for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];this.nodes=n}return(0,h.default)(t,[{key:"child",value:function(e){return new(Function.prototype.bind.apply(t,[null].concat([].concat((0,f.default)(this.nodes),[e]))))}},{key:"match",value:function(t){return new RegExp("^"+t.toString().replace(/:index/g,"\\d+")+"$").test(this.toString())}},{key:"traverse",value:function(t){return this.nodes.reduce(function(t,e){return t[e]},t)}},{key:"toString",value:function(){return"/"+this.nodes.join("/")}},{key:"subpath",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!(e<0))return new(Function.prototype.bind.apply(t,[null].concat((0,f.default)(this.nodes.slice(0,e)))))}},{key:Symbol.iterator,value:c.default.mark(function t(){var e,n,r,o,u,i;return c.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=!0,n=!1,r=void 0,t.prev=3,o=this.nodes[Symbol.iterator]();case 5:if(e=(u=o.next()).done){t.next=12;break}return i=u.value,t.next=9,i;case 9:e=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(3),n=!0,r=t.t0;case 18:t.prev=18,t.prev=19,!e&&o.return&&o.return();case 21:if(t.prev=21,!n){t.next=24;break}throw r;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}},t,this,[[3,14,18,26],[19,,21,25]])})},{key:"parent",get:function(){return this.subpath(this.depth-1)}},{key:"leaf",get:function(){return this.nodes[this.nodes.length-1]}},{key:"depth",get:function(){return this.nodes.length}}]),t}())||u;y.root=new y,y.parse=function(t){var e=t.split("/").slice(1);return new(Function.prototype.bind.apply(y,[null].concat((0,f.default)(e))))},y.resolve=function(t){return t.constructor===String?y.parse(t):t},e.default=y},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(0),u=r(o),i=n(1),c=r(i),a=n(20),f=r(a),s=function(){function t(){(0,u.default)(this,t),this.subscriptions=[]}return(0,c.default)(t,[{key:"subscribe",value:function(t,e){var n=this;"function"==typeof t&&(e=t,t=f.default.root);var r={path:t,subscriber:e};return this.subscriptions.push(r),function(){n.subscriptions=n.subscriptions.filter(function(t){return t!==r})}}},{key:"publish",value:function(t,e,n){this.subscriptions.forEach(function(r){var o=r.path,u=r.subscriber;o===f.default.root?u(e,n):t.match(o)&&u(t.traverse(e),t.traverse(n))})}}]),t}();e.default=s},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(0),u=r(o),i=n(1),c=r(i),a=function(){function t(){(0,u.default)(this,t),this.items=[]}return(0,c.default)(t,[{key:"push",value:function(t){this.items.push(t)}},{key:"pop",value:function(){return this.items.pop()}},{key:"clear",value:function(){this.items=[]}},{key:"peek",value:function(){return this.items.slice(-1)[0]}},{key:"length",get:function(){return this.items.length}}]),t}();e.default=a},function(t,e,n){t.exports={default:n(74),__esModule:!0}},function(t,e,n){t.exports={default:n(75),__esModule:!0}},function(t,e,n){t.exports={default:n(76),__esModule:!0}},function(t,e,n){t.exports={default:n(77),__esModule:!0}},function(t,e,n){t.exports={default:n(78),__esModule:!0}},function(t,e,n){t.exports={default:n(79),__esModule:!0}},function(t,e,n){t.exports={default:n(80),__esModule:!0}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(64),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},function(t,e,n){var r=function(){return this}()||Function("return this")(),o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,u=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n(72),o)r.regeneratorRuntime=u;else try{delete r.regeneratorRuntime}catch(t){r.regeneratorRuntime=void 0}},function(t,e){!function(e){"use strict";function n(t,e,n,r){var u=e&&e.prototype instanceof o?e:o,i=Object.create(u.prototype),c=new h(r||[]);return i._invoke=f(t,n,c),i}function r(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function o(){}function u(){}function i(){}function c(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function a(t){function e(n,o,u,i){var c=r(t[n],t,o);if("throw"!==c.type){var a=c.arg,f=a.value;return f&&"object"==typeof f&&g.call(f,"__await")?Promise.resolve(f.__await).then(function(t){e("next",t,u,i)},function(t){e("throw",t,u,i)}):Promise.resolve(f).then(function(t){a.value=t,u(a)},i)}i(c.arg)}function n(t,n){function r(){return new Promise(function(r,o){e(t,n,r,o)})}return o=o?o.then(r,r):r()}var o;this._invoke=n}function f(t,e,n){var o=k;return function(u,i){if(o===S)throw new Error("Generator is already running");if(o===P){if("throw"===u)throw i;return v()}for(n.method=u,n.arg=i;;){var c=n.delegate;if(c){var a=s(c,n);if(a){if(a===$)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===k)throw o=P,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=S;var f=r(t,e,n);if("normal"===f.type){if(o=n.done?P:M,f.arg===$)continue;return{value:f.arg,done:n.done}}"throw"===f.type&&(o=P,n.method="throw",n.arg=f.arg)}}}function s(t,e){var n=t.iterator[e.method];if(n===y){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=y,s(t,e),"throw"===e.method))return $;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return $}var o=r(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,$;var u=o.arg;return u?u.done?(e[t.resultName]=u.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=y),e.delegate=null,$):u:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,$)}function l(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function p(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function h(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(l,this),this.reset(!0)}function d(t){if(t){var e=t[m];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(g.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=y,e.done=!0,e};return r.next=r}}return{next:v}}function v(){return{value:y,done:!0}}var y,b=Object.prototype,g=b.hasOwnProperty,_="function"==typeof Symbol?Symbol:{},m=_.iterator||"@@iterator",x=_.asyncIterator||"@@asyncIterator",w=_.toStringTag||"@@toStringTag",O="object"==typeof t,j=e.regeneratorRuntime;if(j)return void(O&&(t.exports=j));j=e.regeneratorRuntime=O?t.exports:{},j.wrap=n;var k="suspendedStart",M="suspendedYield",S="executing",P="completed",$={},E={};E[m]=function(){return this};var L=Object.getPrototypeOf,A=L&&L(L(d([])));A&&A!==b&&g.call(A,m)&&(E=A);var T=i.prototype=o.prototype=Object.create(E);u.prototype=T.constructor=i,i.constructor=u,i[w]=u.displayName="GeneratorFunction",j.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===u||"GeneratorFunction"===(e.displayName||e.name))},j.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,i):(t.__proto__=i,w in t||(t[w]="GeneratorFunction")),t.prototype=Object.create(T),t},j.awrap=function(t){return{__await:t}},c(a.prototype),a.prototype[x]=function(){return this},j.AsyncIterator=a,j.async=function(t,e,r,o){var u=new a(n(t,e,r,o));return j.isGeneratorFunction(e)?u:u.next().then(function(t){return t.done?t.value:u.next()})},c(T),T[w]="Generator",T[m]=function(){return this},T.toString=function(){return"[object Generator]"},j.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},j.values=d,h.prototype={constructor:h,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=y,this.done=!1,this.delegate=null,this.method="next",this.arg=y,this.tryEntries.forEach(p),!t)for(var e in this)"t"===e.charAt(0)&&g.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=y)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,r){return u.type="throw",u.arg=t,n.next=e,r&&(n.method="next",n.arg=y),!!r}if(this.done)throw t;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],u=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var i=g.call(o,"catchLoc"),c=g.call(o,"finallyLoc");if(i&&c){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(i){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&g.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var u=o?o.completion:{};return u.type=t,u.arg=e,o?(this.method="next",this.next=o.finallyLoc,$):this.complete(u)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),$},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),p(n),$}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;p(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:d(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=y),$}}}(function(){return this}()||Function("return this")())},function(t,e,n){t.exports=n(71)},function(t,e,n){n(50),n(103),t.exports=n(3).Array.from},function(t,e,n){n(105),t.exports=n(3).Object.assign},function(t,e,n){n(106);var r=n(3).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){n(107);var r=n(3).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){n(108),t.exports=n(3).Object.setPrototypeOf},function(t,e,n){n(110),n(109),n(111),n(112),t.exports=n(3).Symbol},function(t,e,n){n(50),n(113),t.exports=n(37).f("iterator")},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=function(){}},function(t,e,n){var r=n(11),o=n(49),u=n(101);t.exports=function(t){return function(e,n,i){var c,a=r(e),f=o(a.length),s=u(i,f);if(t&&n!=n){for(;f>s;)if((c=a[s++])!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===n)return t||s||0;return!t&&-1}}},function(t,e,n){var r=n(23),o=n(2)("toStringTag"),u="Arguments"==r(function(){return arguments}()),i=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=i(e=Object(t),o))?n:u?r(e):"Object"==(c=r(e))&&"function"==typeof e.callee?"Arguments":c}},function(t,e,n){"use strict";var r=n(5),o=n(15);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(16),o=n(29),u=n(17);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var i,c=n(t),a=u.f,f=0;c.length>f;)a.call(t,i=c[f++])&&e.push(i);return e}},function(t,e,n){var r=n(4).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(14),o=n(2)("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||u[o]===t)}},function(t,e,n){var r=n(23);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(9);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var u=t.return;throw void 0!==u&&r(u.call(t)),e}}},function(t,e,n){"use strict";var r=n(28),o=n(15),u=n(30),i={};n(10)(i,n(2)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(i,{next:o(1,n)}),u(t,e+" Iterator")}},function(t,e,n){var r=n(2)("iterator"),o=!1;try{var u=[7][r]();u.return=function(){o=!0},Array.from(u,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var u=[7],i=u[r]();i.next=function(){return{done:n=!0}},u[r]=function(){return i},t(u)}catch(t){}return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(18)("meta"),o=n(13),u=n(8),i=n(5).f,c=0,a=Object.isExtensible||function(){return!0},f=!n(12)(function(){return a(Object.preventExtensions({}))}),s=function(t){i(t,r,{value:{i:"O"+ ++c,w:{}}})},l=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!u(t,r)){if(!a(t))return"F";if(!e)return"E";s(t)}return t[r].i},p=function(t,e){if(!u(t,r)){if(!a(t))return!0;if(!e)return!1;s(t)}return t[r].w},h=function(t){return f&&d.NEED&&a(t)&&!u(t,r)&&s(t),t},d=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:h}},function(t,e,n){"use strict";var r=n(16),o=n(29),u=n(17),i=n(34),c=n(43),a=Object.assign;t.exports=!a||n(12)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=a({},t)[n]||Object.keys(a({},e)).join("")!=r})?function(t,e){for(var n=i(t),a=arguments.length,f=1,s=o.f,l=u.f;a>f;)for(var p,h=c(arguments[f++]),d=s?r(h).concat(s(h)):r(h),v=d.length,y=0;v>y;)l.call(h,p=d[y++])&&(n[p]=h[p]);return n}:a},function(t,e,n){var r=n(5),o=n(9),u=n(16);t.exports=n(6)?Object.defineProperties:function(t,e){o(t);for(var n,i=u(e),c=i.length,a=0;c>a;)r.f(t,n=i[a++],e[n]);return t}},function(t,e,n){var r=n(11),o=n(46).f,u={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(t){return i.slice()}};t.exports.f=function(t){return i&&"[object Window]"==u.call(t)?c(t):o(r(t))}},function(t,e,n){var r=n(8),o=n(34),u=n(31)("IE_PROTO"),i=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,u)?t[u]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?i:null}},function(t,e,n){var r=n(13),o=n(9),u=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(24)(Function.call,n(45).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return u(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:u}},function(t,e,n){var r=n(33),o=n(25);t.exports=function(t){return function(e,n){var u,i,c=String(o(e)),a=r(n),f=c.length;return a<0||a>=f?t?"":void 0:(u=c.charCodeAt(a),u<55296||u>56319||a+1===f||(i=c.charCodeAt(a+1))<56320||i>57343?t?c.charAt(a):u:t?c.slice(a,a+2):i-56320+(u-55296<<10)+65536)}}},function(t,e,n){var r=n(33),o=Math.max,u=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):u(t,e)}},function(t,e,n){var r=n(84),o=n(2)("iterator"),u=n(14);t.exports=n(3).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||u[r(t)]}},function(t,e,n){"use strict";var r=n(24),o=n(7),u=n(34),i=n(90),c=n(88),a=n(49),f=n(85),s=n(102);o(o.S+o.F*!n(92)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,o,l,p=u(t),h="function"==typeof this?this:Array,d=arguments.length,v=d>1?arguments[1]:void 0,y=void 0!==v,b=0,g=s(p);if(y&&(v=r(v,d>2?arguments[2]:void 0,2)),void 0==g||h==Array&&c(g))for(e=a(p.length),n=new h(e);e>b;b++)f(n,b,y?v(p[b],b):p[b]);else for(l=g.call(p),n=new h;!(o=l.next()).done;b++)f(n,b,y?i(l,v,[o.value,b],!0):o.value);return n.length=b,n}})},function(t,e,n){"use strict";var r=n(82),o=n(93),u=n(14),i=n(11);t.exports=n(44)(Array,"Array",function(t,e){this._t=i(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),u.Arguments=u.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r=n(7);r(r.S+r.F,"Object",{assign:n(95)})},function(t,e,n){var r=n(7);r(r.S,"Object",{create:n(28)})},function(t,e,n){var r=n(7);r(r.S+r.F*!n(6),"Object",{defineProperty:n(5).f})},function(t,e,n){var r=n(7);r(r.S,"Object",{setPrototypeOf:n(99).set})},function(t,e){},function(t,e,n){"use strict";var r=n(4),o=n(8),u=n(6),i=n(7),c=n(48),a=n(94).KEY,f=n(12),s=n(32),l=n(30),p=n(18),h=n(2),d=n(37),v=n(36),y=n(86),b=n(89),g=n(9),_=n(11),m=n(35),x=n(15),w=n(28),O=n(97),j=n(45),k=n(5),M=n(16),S=j.f,P=k.f,$=O.f,E=r.Symbol,L=r.JSON,A=L&&L.stringify,T=h("_hidden"),F=h("toPrimitive"),N={}.propertyIsEnumerable,R=s("symbol-registry"),C=s("symbols"),G=s("op-symbols"),I=Object.prototype,W="function"==typeof E,D=r.QObject,V=!D||!D.prototype||!D.prototype.findChild,B=u&&f(function(){return 7!=w(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=S(I,e);r&&delete I[e],P(t,e,n),r&&t!==I&&P(I,e,r)}:P,H=function(t){var e=C[t]=w(E.prototype);return e._k=t,e},J=W&&"symbol"==typeof E.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof E},Y=function(t,e,n){return t===I&&Y(G,e,n),g(t),e=m(e,!0),g(n),o(C,e)?(n.enumerable?(o(t,T)&&t[T][e]&&(t[T][e]=!1),n=w(n,{enumerable:x(0,!1)})):(o(t,T)||P(t,T,x(1,{})),t[T][e]=!0),B(t,e,n)):P(t,e,n)},K=function(t,e){g(t);for(var n,r=y(e=_(e)),o=0,u=r.length;u>o;)Y(t,n=r[o++],e[n]);return t},U=function(t,e){return void 0===e?w(t):K(w(t),e)},q=function(t){var e=N.call(this,t=m(t,!0));return!(this===I&&o(C,t)&&!o(G,t))&&(!(e||!o(this,t)||!o(C,t)||o(this,T)&&this[T][t])||e)},z=function(t,e){if(t=_(t),e=m(e,!0),t!==I||!o(C,e)||o(G,e)){var n=S(t,e);return!n||!o(C,e)||o(t,T)&&t[T][e]||(n.enumerable=!0),n}},Q=function(t){for(var e,n=$(_(t)),r=[],u=0;n.length>u;)o(C,e=n[u++])||e==T||e==a||r.push(e);return r},X=function(t){for(var e,n=t===I,r=$(n?G:_(t)),u=[],i=0;r.length>i;)!o(C,e=r[i++])||n&&!o(I,e)||u.push(C[e]);return u};W||(E=function(){if(this instanceof E)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===I&&e.call(G,n),o(this,T)&&o(this[T],t)&&(this[T][t]=!1),B(this,t,x(1,n))};return u&&V&&B(I,t,{configurable:!0,set:e}),H(t)},c(E.prototype,"toString",function(){return this._k}),j.f=z,k.f=Y,n(46).f=O.f=Q,n(17).f=q,n(29).f=X,u&&!n(27)&&c(I,"propertyIsEnumerable",q,!0),d.f=function(t){return H(h(t))}),i(i.G+i.W+i.F*!W,{Symbol:E});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Z.length>tt;)h(Z[tt++]);for(var et=M(h.store),nt=0;et.length>nt;)v(et[nt++]);i(i.S+i.F*!W,"Symbol",{for:function(t){return o(R,t+="")?R[t]:R[t]=E(t)},keyFor:function(t){if(!J(t))throw TypeError(t+" is not a symbol!");for(var e in R)if(R[e]===t)return e},useSetter:function(){V=!0},useSimple:function(){V=!1}}),i(i.S+i.F*!W,"Object",{create:U,defineProperty:Y,defineProperties:K,getOwnPropertyDescriptor:z,getOwnPropertyNames:Q,getOwnPropertySymbols:X}),L&&i(i.S+i.F*(!W||f(function(){var t=E();return"[null]"!=A([t])||"{}"!=A({a:t})||"{}"!=A(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!J(t)){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);return e=r[1],"function"==typeof e&&(n=e),!n&&b(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!J(e))return e}),r[1]=e,A.apply(L,r)}}}),E.prototype[F]||n(10)(E.prototype,F,E.prototype.valueOf),l(E,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){n(36)("asyncIterator")},function(t,e,n){n(36)("observable")},function(t,e,n){n(104);for(var r=n(4),o=n(10),u=n(14),i=n(2)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),a=0;a<c.length;a++){var f=c[a],s=r[f],l=s&&s.prototype;l&&!l[i]&&o(l,i,f),u[f]=u.Array}},function(t,e,n){t.exports=n(51)}])})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(10),u=r(o),i=n(11),c=r(i),a=(n(7),function(){function t(e){(0,u.default)(this,t),this.store=e,this.cursor=0,this.history=[],this.history.push(this.store.state)}return(0,c.default)(t,[{key:"on",value:function(){var t=this;this.unsubscribe=this.store.subscribe(function(e){t.history.push(e),t.travel.present()})}},{key:"off",value:function(){this.unsubscribe&&this.unsubscribe(),this.unsubscribe=void 0}},{key:"go",value:function(){this.cursor<0&&(this.cursor=0),this.cursor>=this.history.length&&(this.cursor=this.history.length-1);var t=this.history[this.cursor];this.off(),this.store.restore(t),this.on()}},{key:"isOn",get:function(){return void 0!==this.unsubscribe}},{key:"isOff",get:function(){return!this.isOn}},{key:"travel",get:function(){var t=this;return{step:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=this.cursor;t.cursor+=e,t.cursor!==n&&t.go()},to:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;t.cursor=e,t.go()},origin:function(){t.cursor=0,t.go()},present:function(){t.cursor=t.history.length-1,t.go()}}}}]),t}());e.default=a},function(t,e,n){t.exports={default:n(12),__esModule:!0}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(9),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()},function(t,e,n){n(22);var r=n(2).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(1);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var r=n(13);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(1),o=n(4).document,u=r(o)&&r(o.createElement);t.exports=function(t){return u?o.createElement(t):{}}},function(t,e,n){var r=n(4),o=n(2),u=n(15),i=n(18),c=function(t,e,n){var a,f,s,l=t&c.F,p=t&c.G,h=t&c.S,d=t&c.P,v=t&c.B,y=t&c.W,b=p?o:o[e]||(o[e]={}),g=b.prototype,_=p?r:h?r[e]:(r[e]||{}).prototype;p&&(n=e);for(a in n)(f=!l&&_&&void 0!==_[a])&&a in b||(s=f?_[a]:n[a],b[a]=p&&"function"!=typeof _[a]?n[a]:v&&f?u(s,r):y&&_[a]==s?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(s):d&&"function"==typeof s?u(Function.call,s):s,d&&((b.virtual||(b.virtual={}))[a]=s,t&c.R&&g&&!g[a]&&i(g,a,s)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){var r=n(5),o=n(20);t.exports=n(0)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){t.exports=!n(0)&&!n(3)(function(){return 7!=Object.defineProperty(n(16)("div"),"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(1);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(17);r(r.S+r.F*!n(0),"Object",{defineProperty:n(5).f})},function(t,e,n){t.exports=n(6)}])});